@wix/patterns-fields-utils 1.109.0 → 1.111.0
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.
- package/@wix/patterns-fields-bundled-ricos/dist/esm/chunk-KHN2AZGW.mjs +3 -0
- package/@wix/patterns-fields-bundled-ricos/dist/esm/chunk-KHN2AZGW.mjs.map +1 -0
- package/@wix/patterns-fields-bundled-ricos/dist/esm/chunk-Q65L4JWS.mjs +3 -0
- package/@wix/patterns-fields-bundled-ricos/dist/esm/chunk-Q65L4JWS.mjs.map +1 -0
- package/@wix/patterns-fields-bundled-ricos/dist/esm/es-446MBZIF.mjs +3 -0
- package/@wix/patterns-fields-bundled-ricos/dist/esm/es-446MBZIF.mjs.map +1 -0
- package/@wix/patterns-fields-bundled-ricos/dist/esm/index.mjs +1 -1
- package/@wix/patterns-fields-bundled-ricos/dist/esm/index.mjs.map +1 -1
- package/@wix/patterns-fields-bundled-ricos/dist/esm/wixClient-CIRP2LMN.mjs +3 -0
- package/@wix/patterns-fields-bundled-ricos/dist/esm/wixClient-CIRP2LMN.mjs.map +1 -0
- package/@wix/patterns-fields-bundled-ricos/package.json +5 -5
- package/@wix/patterns-fields-ricos-statics/package.json +6 -6
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/@wix/sdk-runtime/build/transform-error.js","../../../../node_modules/@wix/sdk-runtime/build/utils.js","../../../../node_modules/@wix/sdk-runtime/build/constants.js","../../../../node_modules/@wix/sdk-runtime/build/rename-all-nested-keys.js","../../../../node_modules/@wix/sdk-runtime/build/field-rename.js","../../../../node_modules/@wix/sdk-runtime/build/transformations/float.js","../../../../node_modules/@wix/sdk-runtime/build/transformations/timestamp.js","../../../../node_modules/@wix/sdk-runtime/build/transformations/transform-paths.js","../../../../node_modules/@wix/sdk-runtime/build/rest-modules.js","../../../../node_modules/@wix/sdk-runtime/build/context-v2.js","../../../../node_modules/@wix/sdk-runtime/build/context.js","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-documents/src/ricos-v1-document-ricos-documents.universal.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-documents/src/ricos-v1-document-ricos-documents.http.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-documents/src/ricos-v1-document-ricos-documents.public.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-documents/src/ricos-v1-document-ricos-documents.context.ts","../../../../node_modules/@wix/sdk-runtime/build/transformations/image.js","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-embeddables/src/ricos-v1-embeddable-item-ricos-embeddables.universal.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-embeddables/src/ricos-v1-embeddable-item-ricos-embeddables.http.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-embeddables/src/ricos-v1-embeddable-item-ricos-embeddables.public.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-embeddables/src/ricos-v1-embeddable-item-ricos-embeddables.context.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-conversations/src/ricos-v1-ricos-conversation-ricos-conversations.universal.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-conversations/src/ricos-v1-ricos-conversation-ricos-conversations.http.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-conversations/src/ricos-v1-ricos-conversation-ricos-conversations.public.ts","../../../../node_modules/@wix/auto_sdk_rich-content_ricos-conversations/src/ricos-v1-ricos-conversation-ricos-conversations.context.ts"],"sourcesContent":["import { constantCase } from './utils.js';\nconst isValidationError = (httpClientError) => 'validationError' in (httpClientError.response?.data?.details ?? {});\nconst isApplicationError = (httpClientError) => 'applicationError' in\n (httpClientError.response?.data?.details ?? {});\nconst isClientError = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 &&\n (httpClientError.response?.status ?? -1) < 500;\nexport function transformError(httpClientError, pathsToArguments = {\n explicitPathsToArguments: {},\n spreadPathsToArguments: {},\n singleArgumentUnchanged: false,\n}, argumentNames = []) {\n if (typeof httpClientError !== 'object' || httpClientError === null) {\n throw httpClientError;\n }\n if (isValidationError(httpClientError)) {\n return buildValidationError(httpClientError, pathsToArguments, argumentNames);\n }\n if (isApplicationError(httpClientError)) {\n return buildApplicationError(httpClientError);\n }\n if (isClientError(httpClientError)) {\n const status = httpClientError.response?.status;\n const statusText = httpClientError.response?.statusText ?? 'UNKNOWN';\n const message = httpClientError.response?.data?.message ?? statusText;\n const details = {\n applicationError: {\n description: statusText,\n code: constantCase(statusText),\n data: {},\n },\n requestId: httpClientError.requestId,\n };\n return wrapError(httpClientError, {\n message: JSON.stringify({\n message,\n details,\n }, null, 2),\n extraProperties: {\n details,\n status,\n },\n });\n }\n return buildSystemError(httpClientError);\n}\nconst buildValidationError = (httpClientError, pathsToArguments, argumentNames) => {\n const validationErrorResponse = httpClientError.response\n ?.data;\n const requestId = httpClientError.requestId;\n const { fieldViolations } = validationErrorResponse.details.validationError;\n const transformedFieldViolations = violationsWithRenamedFields(pathsToArguments, fieldViolations, argumentNames)?.sort((a, b) => (a.field < b.field ? -1 : 1));\n const message = `INVALID_ARGUMENT: ${transformedFieldViolations\n ?.map(({ field, description }) => `\"${field}\" ${description}`)\n ?.join(', ')}`;\n const details = {\n validationError: { fieldViolations: transformedFieldViolations },\n requestId,\n };\n return wrapError(httpClientError, {\n message: JSON.stringify({ message, details }, null, 2),\n extraProperties: {\n details,\n status: httpClientError.response?.status,\n requestId,\n },\n });\n};\nconst wrapError = (baseError, { message, extraProperties, }) => {\n return Object.assign(baseError, {\n ...extraProperties,\n message,\n });\n};\nconst buildApplicationError = (httpClientError) => {\n const status = httpClientError.response?.status;\n const statusText = httpClientError.response?.statusText ?? 'UNKNOWN';\n const message = httpClientError.response?.data?.message ?? statusText;\n const description = httpClientError.response?.data?.details?.applicationError?.description ??\n statusText;\n const code = httpClientError.response?.data?.details?.applicationError?.code ??\n constantCase(statusText);\n const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};\n const combinedMessage = message === description ? message : `${message}: ${description}`;\n const details = {\n applicationError: {\n description,\n code,\n data,\n },\n requestId: httpClientError.requestId,\n };\n return wrapError(httpClientError, {\n message: JSON.stringify({ message: combinedMessage, details }, null, 2),\n extraProperties: {\n details,\n status,\n requestId: httpClientError.requestId,\n },\n });\n};\nconst buildSystemError = (httpClientError) => {\n const message = httpClientError.requestId\n ? `System error occurred, request-id: ${httpClientError.requestId}`\n : `System error occurred: ${JSON.stringify(httpClientError)}`;\n return wrapError(httpClientError, {\n message,\n extraProperties: {\n requestId: httpClientError.requestId,\n status: httpClientError.response?.status,\n code: constantCase(httpClientError.response?.statusText ?? 'UNKNOWN'),\n ...(!httpClientError.response && {\n runtimeError: httpClientError,\n }),\n },\n });\n};\nconst violationsWithRenamedFields = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged, }, fieldViolations, argumentNames) => {\n const allPathsToArguments = {\n ...spreadPathsToArguments,\n ...explicitPathsToArguments,\n };\n const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);\n return fieldViolations\n ?.filter((fieldViolation) => {\n // In some cases, the violations error will include both some.nested and some.nested.path,\n // so we'll pick the more specific one if it's covered by the paths in the transformation.\n const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length &&\n anotherViolation.field.startsWith(fieldViolation.field) &&\n allPathsToArgumentsKeys.includes(anotherViolation.field));\n return !containedInAMoreSpecificViolationField;\n })\n .map((fieldViolation) => {\n // This means we've got some.nested.field in the violation,\n // matched against { some: { nested: { field: $[0].a.b.c } } } in the transformation.\n // some.nested.field is replaced entirely with $[0].a.b.c, with $[0] replaced with the name of argument 0\n const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];\n if (exactMatchArgumentExpression) {\n return {\n ...fieldViolation,\n field: withRenamedArgument(exactMatchArgumentExpression, argumentNames),\n };\n }\n const longestPartialPathMatch = allPathsToArgumentsKeys\n ?.sort((a, b) => b.length - a.length)\n ?.find((path) => fieldViolation.field.startsWith(path));\n if (longestPartialPathMatch) {\n // This means we've got some.nested.field in the violation,\n // matched against { some: { nested: { *: $[0].a.b.c } } } in the transformation.\n // Only the prefix some.nested is replaced with $[0].a.b.c, with $[0] replaced with the name of argument 0\n // This can also happen in the case where the #wrap function is used.\n const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];\n if (partialMatchArgumentExpression) {\n return {\n ...fieldViolation,\n field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument(partialMatchArgumentExpression, argumentNames)),\n };\n }\n }\n if (singleArgumentUnchanged) {\n return {\n ...fieldViolation,\n field: `${argumentNames[0]}.${fieldViolation.field}`,\n };\n }\n return fieldViolation;\n });\n};\nconst withRenamedArgument = (fieldValue, argumentNames) => {\n const argIndex = getArgumentIndex(fieldValue);\n if (argIndex !== null && typeof argIndex !== 'undefined') {\n return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);\n }\n return fieldValue;\n};\nconst getArgumentIndex = (s) => {\n const match = s.match(/\\$\\[(?<argIndex>\\d+)\\]/);\n return match && match.groups && Number(match.groups.argIndex);\n};\n","import { WIX_PROTOCOL } from './constants.js';\nexport function alignIfLegacy(url, type) {\n const { protocol } = new URL(url);\n return protocol === `${type}:` ? `${WIX_PROTOCOL}${url}` : url;\n}\nexport function removeUndefinedKeys(obj) {\n return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined));\n}\nexport function constantCase(input) {\n return split(input)\n .map((part) => part.toLocaleUpperCase())\n .join('_');\n}\nconst SPLIT_LOWER_UPPER_RE = /([\\p{Ll}\\d])(\\p{Lu})/gu;\nconst SPLIT_UPPER_UPPER_RE = /(\\p{Lu})([\\p{Lu}][\\p{Ll}])/gu;\nconst SPLIT_REPLACE_VALUE = '$1\\0$2';\nconst DEFAULT_STRIP_REGEXP = /[^\\p{L}\\d]+/giu;\nexport function split(value) {\n let result = value.trim();\n result = result\n .replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE)\n .replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);\n result = result.replace(DEFAULT_STRIP_REGEXP, '\\0');\n let start = 0;\n let end = result.length;\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === '\\0') {\n start++;\n }\n if (start === end) {\n return [];\n }\n while (result.charAt(end - 1) === '\\0') {\n end--;\n }\n return result.slice(start, end).split(/\\0/g);\n}\n","export const WIX_PROTOCOL = 'wix:';\nexport const SDKRequestToRESTRequestRenameMap = {\n _id: 'id',\n _createdDate: 'createdDate',\n _updatedDate: 'updatedDate',\n};\nexport const RESTResponseToSDKResponseRenameMap = {\n id: '_id',\n createdDate: '_createdDate',\n updatedDate: '_updatedDate',\n};\nexport const ITEMS_RESULT_PROPERTY_NAME = 'items';\nexport const PAGING_METADATA_RESULT_PROPERTY_NAME = 'pagingMetadata';\nexport const DEFAULT_LIMIT = 50;\n","import { RESTResponseToSDKResponseRenameMap, SDKRequestToRESTRequestRenameMap, } from './constants.js';\nimport { renameSortFieldNameValue } from './field-rename.js';\n/**\n * Recursively rename nested keys provided in `renameMap` in the given object.\n * Providing a list of paths to ignore will prevent renaming of keys in nested objects.\n *\n * Paths are provided in the format of 'path.to.nested.field'\n * @param payload The object to rename keys for\n * @param renameMap A map of keys to rename, where the key is the original key and the value is the new key\n * @param ignorePaths Paths of nested fields to ignore while traversing the object\n * @returns The object with renamed keys\n */\nexport function renameAllNestedKeys(payload, renameMap, ignorePaths) {\n const isIgnored = (path) => ignorePaths.includes(path);\n const traverse = (obj, path) => {\n if (Array.isArray(obj)) {\n obj.forEach((item) => {\n traverse(item, path);\n });\n }\n else if (typeof obj === 'object' && obj !== null) {\n const objAsRecord = obj;\n Object.keys(objAsRecord).forEach((key) => {\n const newPath = path === '' ? key : `${path}.${key}`;\n if (isIgnored(newPath)) {\n return;\n }\n const transformedKey = renameKey(key, renameMap);\n if (transformedKey !== key && !(transformedKey in objAsRecord)) {\n objAsRecord[transformedKey] = objAsRecord[key];\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete objAsRecord[key];\n }\n objAsRecord[transformedKey] = renameSortFieldNameValue(newPath, objAsRecord[transformedKey], renameMap);\n traverse(objAsRecord[transformedKey], newPath);\n });\n }\n };\n traverse(payload, '');\n return payload;\n}\nfunction renameKey(key, renameMap) {\n let transformedKey;\n if (key.includes('.')) {\n const parts = key.split('.');\n const transformedParts = parts.map((part) => renameMap[part] ?? part);\n transformedKey = transformedParts.join('.');\n }\n else {\n transformedKey = renameMap[key] ?? key;\n }\n return transformedKey;\n}\nexport function renameKeysFromSDKRequestToRESTRequest(payload, ignorePaths = []) {\n return renameAllNestedKeys(payload, SDKRequestToRESTRequestRenameMap, ignorePaths);\n}\nexport function renameKeysFromRESTResponseToSDKResponse(payload, ignorePaths = []) {\n return renameAllNestedKeys(payload, RESTResponseToSDKResponseRenameMap, ignorePaths);\n}\n","import { SDKRequestToRESTRequestRenameMap } from './constants.js';\nexport const systemFieldRenameMap = SDKRequestToRESTRequestRenameMap;\nexport function renameFieldPathBySegment(fieldPath, renameMap) {\n return fieldPath\n ?.split('.')\n .map((segment) => renameMap?.[segment] ?? segment)\n .join('.');\n}\nexport function renameSystemFieldPath(fieldPath, { transformSystemFields = true } = {}) {\n return transformSystemFields\n ? renameFieldPathBySegment(fieldPath, systemFieldRenameMap)\n : fieldPath;\n}\nconst SORT_FIELD_NAME_PATH = 'sort.fieldName';\nexport function renameSortFieldNameValue(path, value, renameMap) {\n const isSortFieldName = path === SORT_FIELD_NAME_PATH || path.endsWith(`.${SORT_FIELD_NAME_PATH}`);\n return isSortFieldName && typeof value === 'string'\n ? renameFieldPathBySegment(value, renameMap)\n : value;\n}\n","export function transformSDKFloatToRESTFloat(val) {\n return isFinite(val) ? val : val.toString();\n}\nexport function transformRESTFloatToSDKFloat(val) {\n if (val === 'NaN') {\n return NaN;\n }\n if (val === 'Infinity') {\n return Infinity;\n }\n if (val === '-Infinity') {\n return -Infinity;\n }\n return val;\n}\n","export function transformSDKTimestampToRESTTimestamp(val) {\n return val?.toISOString();\n}\nexport function transformRESTTimestampToSDKTimestamp(val) {\n return val ? new Date(val) : undefined;\n}\n","const pathTrees = new WeakMap();\nfunction createPathTree() {\n return {\n leaves: undefined,\n fields: undefined,\n mapFields: undefined,\n anyField: undefined,\n };\n}\nfunction getOrCreateChild(children, key) {\n let child = children.get(key);\n if (!child) {\n child = createPathTree();\n children.set(key, child);\n }\n return child;\n}\nfunction getChild(tree, segment) {\n if (segment === '*') {\n tree.anyField ??= createPathTree();\n return tree.anyField;\n }\n if (segment.endsWith('{}')) {\n tree.mapFields ??= new Map();\n return getOrCreateChild(tree.mapFields, segment.slice(0, -2));\n }\n tree.fields ??= new Map();\n return getOrCreateChild(tree.fields, segment);\n}\nfunction buildPathTree(paths) {\n const root = createPathTree();\n for (const transformPath of paths) {\n const tree = transformPath.path.split('.').reduce(getChild, root);\n tree.leaves ??= [];\n tree.leaves.push(transformPath);\n }\n return root;\n}\nfunction getPathTree(paths) {\n let tree = pathTrees.get(paths);\n if (!tree) {\n tree = buildPathTree(paths);\n pathTrees.set(paths, tree);\n }\n return tree;\n}\nfunction isObject(value) {\n return typeof value === 'object' && value !== null;\n}\nfunction transformLeaf(value, { isRepeated, isMap }, transformFn) {\n if (isRepeated) {\n return Array.isArray(value) ? value.map(transformFn) : value;\n }\n if (isMap) {\n return isObject(value)\n ? Object.fromEntries(Object.entries(value).map(([key, entry]) => [\n key,\n transformFn(entry),\n ]))\n : value;\n }\n return transformFn(value);\n}\nfunction transformNested(value, tree, transformFn) {\n if (isObject(value)) {\n transformObject(value, tree, transformFn);\n }\n}\nfunction transformFields(obj, fields, transformFn) {\n for (const [key, field] of fields) {\n if (!(key in obj)) {\n continue;\n }\n if (field.leaves) {\n for (const leaf of field.leaves) {\n obj[key] = transformLeaf(obj[key], leaf, transformFn);\n }\n }\n const value = obj[key];\n if (Array.isArray(value)) {\n value.forEach((item) => transformNested(item, field, transformFn));\n }\n else {\n transformNested(value, field, transformFn);\n }\n }\n}\nfunction transformMapFields(obj, mapFields, transformFn) {\n for (const [key, valueTree] of mapFields) {\n const map = obj[key];\n if (isObject(map)) {\n Object.values(map).forEach((value) => transformNested(value, valueTree, transformFn));\n }\n }\n}\nfunction transformObject(obj, { fields, mapFields, anyField }, transformFn) {\n if (fields) {\n transformFields(obj, fields, transformFn);\n }\n if (mapFields) {\n transformMapFields(obj, mapFields, transformFn);\n }\n if (anyField) {\n Object.values(obj).forEach((value) => transformNested(value, anyField, transformFn));\n }\n}\nexport function transformPaths(obj, transformations) {\n if (!isObject(obj)) {\n return obj;\n }\n for (const { paths, transformFn } of transformations) {\n transformObject(obj, getPathTree(paths), transformFn);\n }\n return obj;\n}\n","import { contextualizeRESTModuleV2 } from './context-v2.js';\nexport { RESTResponseToSDKResponseRenameMap } from './constants.js';\nexport function createRESTModule(descriptor, elevated = false) {\n return contextualizeRESTModuleV2(descriptor, elevated);\n}\nexport function toURLSearchParams(params, isComplexRequest) {\n const flatten = flattenParams(params);\n // payloads with deep arrays or complex arrays are not serializable as URLSearchParams\n const isPayloadNonSerializableAsUrlSearchParams = Object.entries(flatten).some(([key, value]) => key.includes('.') ||\n (Array.isArray(value) && value.some((v) => typeof v === 'object')));\n const shouldSerializeToRParam = isComplexRequest && isPayloadNonSerializableAsUrlSearchParams;\n if (shouldSerializeToRParam) {\n return new URLSearchParams({ '.r': base64Encode(JSON.stringify(params)) });\n }\n else {\n return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {\n // inorder to make `foo: [1,2]` turn into `foo=1&foo=2` and not `foo[]=1&foo[]=2`\n const keyParams = Array.isArray(value) ? value : [value];\n keyParams.forEach((param) => {\n if (param === undefined ||\n param === null ||\n (Array.isArray(value) && typeof param === 'object')) {\n return;\n }\n urlSearchParams.append(key, param);\n });\n return urlSearchParams;\n }, new URLSearchParams());\n }\n}\nexport function resolveUrl(opts) {\n const domain = resolveDomain(opts.host);\n const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);\n const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});\n return resolvePathFromMappings(path, mappings);\n}\nfunction flattenParams(data, path = '') {\n const params = {};\n Object.entries(data).forEach(([key, value]) => {\n const isObject = value !== null && typeof value === 'object' && !Array.isArray(value);\n const fieldPath = resolvePath(path, key);\n if (isObject) {\n const serializedObject = flattenParams(value, fieldPath);\n Object.assign(params, serializedObject);\n }\n else {\n params[fieldPath] = value;\n }\n });\n return params;\n}\nfunction resolvePath(path, key) {\n return `${path}${path ? '.' : ''}${key}`;\n}\nconst base64Encode = (value) => {\n const bytes = new TextEncoder().encode(value);\n const base64 = typeof btoa !== 'undefined'\n ? btoa(String.fromCodePoint(...bytes))\n : Buffer.from(value, 'utf-8').toString('base64');\n return base64.replace(/=/g, '').replace(/\\+/g, '-').replace(/\\//g, '_');\n};\nconst DOMAINS = ['wix.com', 'editorx.com'];\nconst USER_DOMAIN = '_';\nconst WILDCARD_PREFIX = '*.';\nconst REGEX_CAPTURE_DOMAINS = new RegExp(`\\\\.(${DOMAINS.join('|')})$`);\nconst WIX_API_DOMAINS = [\n '42.wixprod.net',\n 'uw2-edt-1.wixprod.net',\n 'virginia-edt.wixprod.net',\n];\nconst HOST_ALIASES = {\n // payments.base44.com runs customised Business Manager, which needs to work exactly the same as normal BM on manage.wix.com\n 'payments.base44.com': 'manage.wix.com',\n // https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom\n 'create.editorx.com': 'editor.editorx.com',\n};\nconst DEV_WIX_CODE_DOMAIN = 'dev.wix-code.com';\nconst REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;\nconst REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\\\.(${WIX_API_DOMAINS.join('|')})$`);\nconst REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\\\.${DEV_WIX_CODE_DOMAIN}$`);\nfunction resolveDomain(host) {\n const resolvedHost = fixHostExceptions(host);\n return resolvedHost\n .replace(REGEX_CAPTURE_DOMAINS, '._base_domain_')\n .replace(REGEX_CAPTURE_API_DOMAINS, '._api_base_domain_')\n .replace(REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN, '*.dev.wix-code.com');\n}\n// hosts which standard string replacing doesn't apply to them, will be fixed here.\nfunction fixHostExceptions(host) {\n return HOST_ALIASES[host] ?? host;\n}\nfunction resolveMappingsByDomain(domain, domainToMappings) {\n const mappings = domainToMappings[domain];\n if (mappings) {\n return mappings;\n }\n const matchedMappings = resolveRootDomain(domain, domainToMappings) ??\n resolveWildcardDomain(domain, domainToMappings);\n if (!matchedMappings) {\n if (isBaseDomain(domain)) {\n // fallback <lang>.wix.com sub domains to www.wix.com\n // since all of the languages subdomain are not mapped automatically in FP and we want to support those kind of calls\n // for example: fr.wix.com\n const wwwMappings = domainToMappings[wwwBaseDomain];\n if (wwwMappings) {\n return wwwMappings;\n }\n }\n const userMappings = domainToMappings[USER_DOMAIN];\n if (userMappings) {\n return userMappings;\n }\n }\n return matchedMappings ?? [];\n}\nfunction resolveRootDomain(domain, domainToMappings) {\n return Object.entries(domainToMappings).find(([entryDomain]) => {\n const [, ...rooDomainSegments] = domain.split('.');\n return rooDomainSegments.join('.') === entryDomain;\n })?.[1];\n}\nfunction resolveWildcardDomain(domain, domainToMappings) {\n const matchingEntries = Object.entries(domainToMappings).filter(([entryDomain]) => matchesWildcardDomain(domain, entryDomain));\n const [mostSpecificEntry] = matchingEntries.sort(([entryDomainA], [entryDomainB]) => entryDomainB.length - entryDomainA.length);\n if (!mostSpecificEntry) {\n return undefined;\n }\n const [, mappings] = mostSpecificEntry;\n return mappings;\n}\nfunction matchesWildcardDomain(domain, entryDomain) {\n if (!entryDomain.startsWith(WILDCARD_PREFIX)) {\n return false;\n }\n const suffix = entryDomain.slice(WILDCARD_PREFIX.length - 1);\n return domain.length > suffix.length && domain.endsWith(suffix);\n}\nfunction isBaseDomain(domain) {\n return !!domain.match(/\\._base_domain_$/);\n}\nconst wwwBaseDomain = 'www._base_domain_';\nfunction injectDataIntoProtoPath(protoPath, data) {\n return protoPath\n .split('/')\n .map((path) => maybeProtoPathToData(path, data))\n .join('/');\n}\nfunction maybeProtoPathToData(protoPath, data) {\n const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];\n const field = protoRegExpMatch[1];\n if (field) {\n const suffix = protoPath.replace(protoRegExpMatch[0], '');\n return findByPath(data, field, protoPath, suffix);\n }\n return protoPath;\n}\nfunction findByPath(obj, path, defaultValue, suffix) {\n let result = obj;\n for (const field of path.split('.')) {\n if (!result) {\n return defaultValue;\n }\n result = result[field];\n }\n return `${result}${suffix}`;\n}\nfunction resolvePathFromMappings(protoPath, mappings) {\n const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));\n if (!mapping) {\n // todo: should we return the path? if no - what should we do in case of testings?\n return protoPath;\n }\n return mapping.srcPath + protoPath.slice(mapping.destPath.length);\n}\n","import { EventDefinition, ServicePluginDefinition, } from '@wix/sdk-types';\nimport { resolveContext } from './context.js';\nexport { EventDefinition, ServicePluginDefinition, };\nexport function contextualizeHostModuleV2(hostModule, props) {\n return {\n ...hostModule,\n ...Object.fromEntries(props.map((prop) => [\n prop,\n (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(hostModule)[prop].apply(undefined, args);\n },\n ])),\n };\n}\nexport function contextualizeRESTModuleV2(restModule, elevated) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n // @ts-expect-error - if there is no context, we want to behave like the original module\n return restModule.apply(undefined, args);\n }\n return (context\n .initWixModules(restModule, elevated)\n // @ts-expect-error - we know the args here are meant to be passed to the initalized module\n .apply(undefined, args));\n });\n}\nexport function contextualizeEventDefinitionModuleV2(eventDefinition) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => {\n // used by the CLI for webhook registration on build time\n return {\n slug: eventDefinition.type,\n };\n };\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n contextualMethod.__type = eventDefinition.__type;\n contextualMethod.type = eventDefinition.type;\n contextualMethod.isDomainEvent = eventDefinition.isDomainEvent;\n contextualMethod.transformations = eventDefinition.transformations;\n return contextualMethod;\n}\nexport function contextualizeSerivcePluginModuleV2(servicePlugin) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => { };\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n contextualMethod.__type = servicePlugin.__type;\n contextualMethod.componentType = servicePlugin.componentType;\n contextualMethod.methods = servicePlugin.methods;\n return contextualMethod;\n}\n","import { wixContext } from '@wix/sdk-context';\nexport function resolveContext() {\n const oldContext = typeof $wixContext !== 'undefined' && $wixContext.initWixModules\n ? $wixContext.initWixModules\n : typeof globalThis.__wix_context__ !== 'undefined' &&\n globalThis.__wix_context__.initWixModules\n ? globalThis.__wix_context__.initWixModules\n : undefined;\n if (oldContext) {\n return {\n // @ts-expect-error\n initWixModules(modules, elevated) {\n return runWithoutContext(() => oldContext(modules, elevated));\n },\n fetchWithAuth() {\n throw new Error('fetchWithAuth is not available in this context');\n },\n graphql() {\n throw new Error('graphql is not available in this context');\n },\n };\n }\n const contextualClient = typeof $wixContext !== 'undefined'\n ? $wixContext.client\n : typeof wixContext.client !== 'undefined'\n ? wixContext.client\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.client\n : undefined;\n const elevatedClient = typeof $wixContext !== 'undefined'\n ? $wixContext.elevatedClient\n : typeof wixContext.elevatedClient !== 'undefined'\n ? wixContext.elevatedClient\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.elevatedClient\n : undefined;\n if (!contextualClient && !elevatedClient) {\n return;\n }\n return {\n initWixModules(wixModules, elevated) {\n if (elevated) {\n if (!elevatedClient) {\n throw new Error('An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules');\n }\n return runWithoutContext(() => elevatedClient.use(wixModules));\n }\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return runWithoutContext(() => contextualClient.use(wixModules));\n },\n fetchWithAuth: (urlOrRequest, requestInit) => {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.fetchWithAuth(urlOrRequest, requestInit);\n },\n getAuth() {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.auth;\n },\n async graphql(query, variables, opts) {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.graphql(query, variables, opts);\n },\n };\n}\nexport function contextualizeHostModule(hostModule, prop) {\n return (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(hostModule)[prop].apply(undefined, args);\n };\n}\nexport function getContextualAuth() {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.getAuth();\n}\nexport function contextualizeRESTModule(restModule, expectedArgsLength) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(restModule, args[expectedArgsLength]?.suppressAuth ? true : false)\n .apply(undefined, args);\n });\n}\nexport function contextualizeEventDefinitionModule(eventDefinition) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n}\nexport function contextualizeSerivcePluginModule(servicePlugin) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n}\nexport * from './context-v2.js';\nexport function runWithoutContext(fn) {\n const globalContext = globalThis.__wix_context__;\n const moduleContext = {\n client: wixContext.client,\n elevatedClient: wixContext.elevatedClient,\n };\n let closureContext;\n globalThis.__wix_context__ = undefined;\n wixContext.client = undefined;\n wixContext.elevatedClient = undefined;\n if (typeof $wixContext !== 'undefined') {\n closureContext = {\n client: $wixContext?.client,\n elevatedClient: $wixContext?.elevatedClient,\n };\n delete $wixContext.client;\n delete $wixContext.elevatedClient;\n }\n try {\n return fn();\n }\n finally {\n globalThis.__wix_context__ = globalContext;\n wixContext.client = moduleContext.client;\n wixContext.elevatedClient = moduleContext.elevatedClient;\n if (typeof $wixContext !== 'undefined') {\n $wixContext.client = closureContext.client;\n $wixContext.elevatedClient = closureContext.elevatedClient;\n }\n }\n}\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 } from '@wix/sdk-types';\nimport * as ambassadorWixRicosV1Document from './ricos-v1-document-ricos-documents.http.js';\n\n/** A Ricos document is an object that defines rich content, such as text, images, and files, in Wix's standardized rich content format. */\nexport interface RicosDocumentPlaceholder {\n /**\n * Document ID.\n * @format GUID\n */\n _id?: string;\n}\n\nexport interface ValidateDocumentRequest {\n /**\n * Ricos document to validate.\n *\n * Accepts any JSON object, including documents that aren't valid Ricos documents.\n */\n document: Record<string, any> | null;\n /**\n * List of [plugins](https://dev.wix.com/docs/ricos/getting-started/introduction#plugins) to enable in the document.\n * @maxSize 100\n */\n plugins?: PluginWithLiterals[];\n /**\n * Whether to return a valid version of the document in the response.\n *\n * Default: `false`\n */\n fixDocument?: boolean;\n}\n\n/** Available plugins for Ricos documents */\nexport enum Plugin {\n UNKNOWN_PLUGIN = 'UNKNOWN_PLUGIN',\n ACTION_BUTTON = 'ACTION_BUTTON',\n AUDIO = 'AUDIO',\n CODE_BLOCK = 'CODE_BLOCK',\n COLLAPSIBLE_LIST = 'COLLAPSIBLE_LIST',\n DIVIDER = 'DIVIDER',\n EMOJI = 'EMOJI',\n FILE = 'FILE',\n GALLERY = 'GALLERY',\n GIPHY = 'GIPHY',\n HASHTAG = 'HASHTAG',\n HEADING = 'HEADING',\n HTML = 'HTML',\n IMAGE = 'IMAGE',\n INDENT = 'INDENT',\n LAYOUT = 'LAYOUT',\n LINE_SPACING = 'LINE_SPACING',\n LINK = 'LINK',\n LINK_BUTTON = 'LINK_BUTTON',\n LINK_PREVIEW = 'LINK_PREVIEW',\n MENTIONS = 'MENTIONS',\n POLL = 'POLL',\n SPOILER = 'SPOILER',\n TABLE = 'TABLE',\n TEXT_COLOR = 'TEXT_COLOR',\n TEXT_HIGHLIGHT = 'TEXT_HIGHLIGHT',\n VERTICAL_EMBED = 'VERTICAL_EMBED',\n VIDEO = 'VIDEO',\n FONT_FAMILY = 'FONT_FAMILY',\n CARD = 'CARD',\n SMART_BLOCK = 'SMART_BLOCK',\n TOC = 'TOC',\n SHAPE = 'SHAPE',\n SLOT = 'SLOT',\n}\n\n/** @enumType */\nexport type PluginWithLiterals =\n | Plugin\n | 'UNKNOWN_PLUGIN'\n | 'ACTION_BUTTON'\n | 'AUDIO'\n | 'CODE_BLOCK'\n | 'COLLAPSIBLE_LIST'\n | 'DIVIDER'\n | 'EMOJI'\n | 'FILE'\n | 'GALLERY'\n | 'GIPHY'\n | 'HASHTAG'\n | 'HEADING'\n | 'HTML'\n | 'IMAGE'\n | 'INDENT'\n | 'LAYOUT'\n | 'LINE_SPACING'\n | 'LINK'\n | 'LINK_BUTTON'\n | 'LINK_PREVIEW'\n | 'MENTIONS'\n | 'POLL'\n | 'SPOILER'\n | 'TABLE'\n | 'TEXT_COLOR'\n | 'TEXT_HIGHLIGHT'\n | 'VERTICAL_EMBED'\n | 'VIDEO'\n | 'FONT_FAMILY'\n | 'CARD'\n | 'SMART_BLOCK'\n | 'TOC'\n | 'SHAPE'\n | 'SLOT';\n\nexport interface ValidateDocumentResponse {\n /** Whether the document is valid. */\n valid?: boolean;\n /**\n * Validation violations found in the document.\n * @maxSize 100\n */\n violations?: RicosDocumentViolation[];\n /**\n * Valid version of the specified Ricos document.\n *\n * Returned only when `fixDocument` is `true`.\n */\n validDocument?: RichContent;\n}\n\nexport interface RicosDocumentViolation {\n /**\n * Path to the field in the Ricos document that violated a validation rule.\n * @maxSize 100\n * @maxLength 100\n */\n path?: string[];\n /**\n * Description of the validation rule the document violated.\n * @maxLength 300\n */\n message?: string;\n}\n\nexport interface RichContent {\n /** Node objects representing a rich content document. */\n nodes?: Node[];\n /** Object metadata. */\n metadata?: Metadata;\n /** Global styling for header, paragraph, block quote, and code block nodes in the object. */\n documentStyle?: DocumentStyle;\n}\n\nexport interface Node extends NodeDataOneOf {\n /** Data for a button node. */\n buttonData?: ButtonData;\n /** Data for a code block node. */\n codeBlockData?: CodeBlockData;\n /** Data for a divider node. */\n dividerData?: DividerData;\n /** Data for a file node. */\n fileData?: FileData;\n /** Data for a gallery node. */\n galleryData?: GalleryData;\n /** Data for a GIF node. */\n gifData?: GIFData;\n /** Data for a heading node. */\n headingData?: HeadingData;\n /** Data for an embedded HTML node. */\n htmlData?: HTMLData;\n /** Data for an image node. */\n imageData?: ImageData;\n /** Data for a link preview node. */\n linkPreviewData?: LinkPreviewData;\n /** @deprecated */\n mapData?: MapData;\n /** Data for a paragraph node. */\n paragraphData?: ParagraphData;\n /** Data for a poll node. */\n pollData?: PollData;\n /** Data for a text node. Used to apply decorations to text. */\n textData?: TextData;\n /** Data for an app embed node. */\n appEmbedData?: AppEmbedData;\n /** Data for a video node. */\n videoData?: VideoData;\n /** Data for an oEmbed node. */\n embedData?: EmbedData;\n /** Data for a collapsible list node. */\n collapsibleListData?: CollapsibleListData;\n /** Data for a table node. */\n tableData?: TableData;\n /** Data for a table cell node. */\n tableCellData?: TableCellData;\n /** Data for a custom external node. */\n externalData?: Record<string, any> | null;\n /** Data for an audio node. */\n audioData?: AudioData;\n /** Data for an ordered list node. */\n orderedListData?: OrderedListData;\n /** Data for a bulleted list node. */\n bulletedListData?: BulletedListData;\n /** Data for a block quote node. */\n blockquoteData?: BlockquoteData;\n /** Data for a caption node. */\n captionData?: CaptionData;\n /** Data for a layout node. Reserved for future use. */\n layoutData?: LayoutData;\n /** Data for a cell node. */\n layoutCellData?: LayoutCellData;\n /** Data for a shape node. */\n shapeData?: ShapeData;\n /** Data for a card node. */\n cardData?: CardData;\n /** Data for a table of contents node. */\n tocData?: TocData;\n /** Data for a smart block node. */\n smartBlockData?: SmartBlockData;\n /** Data for a smart block cell node. */\n smartBlockCellData?: SmartBlockCellData;\n /** Data for a checkbox list node. */\n checkboxListData?: CheckboxListData;\n /** Data for a list item node. */\n listItemData?: ListItemNodeData;\n /** Data for a slot node. */\n slotData?: SlotData;\n /** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */\n type?: NodeTypeWithLiterals;\n /** Node ID. */\n id?: string;\n /** A list of child nodes. */\n nodes?: Node[];\n /** Padding and background color styling for the node. */\n style?: NodeStyle;\n}\n\n/** @oneof */\nexport interface NodeDataOneOf {\n /** Data for a button node. */\n buttonData?: ButtonData;\n /** Data for a code block node. */\n codeBlockData?: CodeBlockData;\n /** Data for a divider node. */\n dividerData?: DividerData;\n /** Data for a file node. */\n fileData?: FileData;\n /** Data for a gallery node. */\n galleryData?: GalleryData;\n /** Data for a GIF node. */\n gifData?: GIFData;\n /** Data for a heading node. */\n headingData?: HeadingData;\n /** Data for an embedded HTML node. */\n htmlData?: HTMLData;\n /** Data for an image node. */\n imageData?: ImageData;\n /** Data for a link preview node. */\n linkPreviewData?: LinkPreviewData;\n /** @deprecated */\n mapData?: MapData;\n /** Data for a paragraph node. */\n paragraphData?: ParagraphData;\n /** Data for a poll node. */\n pollData?: PollData;\n /** Data for a text node. Used to apply decorations to text. */\n textData?: TextData;\n /** Data for an app embed node. */\n appEmbedData?: AppEmbedData;\n /** Data for a video node. */\n videoData?: VideoData;\n /** Data for an oEmbed node. */\n embedData?: EmbedData;\n /** Data for a collapsible list node. */\n collapsibleListData?: CollapsibleListData;\n /** Data for a table node. */\n tableData?: TableData;\n /** Data for a table cell node. */\n tableCellData?: TableCellData;\n /** Data for a custom external node. */\n externalData?: Record<string, any> | null;\n /** Data for an audio node. */\n audioData?: AudioData;\n /** Data for an ordered list node. */\n orderedListData?: OrderedListData;\n /** Data for a bulleted list node. */\n bulletedListData?: BulletedListData;\n /** Data for a block quote node. */\n blockquoteData?: BlockquoteData;\n /** Data for a caption node. */\n captionData?: CaptionData;\n /** Data for a layout node. Reserved for future use. */\n layoutData?: LayoutData;\n /** Data for a cell node. */\n layoutCellData?: LayoutCellData;\n /** Data for a shape node. */\n shapeData?: ShapeData;\n /** Data for a card node. */\n cardData?: CardData;\n /** Data for a table of contents node. */\n tocData?: TocData;\n /** Data for a smart block node. */\n smartBlockData?: SmartBlockData;\n /** Data for a smart block cell node. */\n smartBlockCellData?: SmartBlockCellData;\n /** Data for a checkbox list node. */\n checkboxListData?: CheckboxListData;\n /** Data for a list item node. */\n listItemData?: ListItemNodeData;\n /** Data for a slot node. */\n slotData?: SlotData;\n}\n\nexport enum NodeType {\n PARAGRAPH = 'PARAGRAPH',\n TEXT = 'TEXT',\n HEADING = 'HEADING',\n BULLETED_LIST = 'BULLETED_LIST',\n ORDERED_LIST = 'ORDERED_LIST',\n LIST_ITEM = 'LIST_ITEM',\n BLOCKQUOTE = 'BLOCKQUOTE',\n CODE_BLOCK = 'CODE_BLOCK',\n VIDEO = 'VIDEO',\n DIVIDER = 'DIVIDER',\n FILE = 'FILE',\n GALLERY = 'GALLERY',\n GIF = 'GIF',\n HTML = 'HTML',\n IMAGE = 'IMAGE',\n LINK_PREVIEW = 'LINK_PREVIEW',\n /** @deprecated */\n MAP = 'MAP',\n POLL = 'POLL',\n APP_EMBED = 'APP_EMBED',\n BUTTON = 'BUTTON',\n COLLAPSIBLE_LIST = 'COLLAPSIBLE_LIST',\n TABLE = 'TABLE',\n EMBED = 'EMBED',\n COLLAPSIBLE_ITEM = 'COLLAPSIBLE_ITEM',\n COLLAPSIBLE_ITEM_TITLE = 'COLLAPSIBLE_ITEM_TITLE',\n COLLAPSIBLE_ITEM_BODY = 'COLLAPSIBLE_ITEM_BODY',\n TABLE_CELL = 'TABLE_CELL',\n TABLE_ROW = 'TABLE_ROW',\n EXTERNAL = 'EXTERNAL',\n AUDIO = 'AUDIO',\n CAPTION = 'CAPTION',\n LAYOUT = 'LAYOUT',\n LAYOUT_CELL = 'LAYOUT_CELL',\n SHAPE = 'SHAPE',\n CARD = 'CARD',\n TOC = 'TOC',\n SMART_BLOCK = 'SMART_BLOCK',\n SMART_BLOCK_CELL = 'SMART_BLOCK_CELL',\n CHECKBOX_LIST = 'CHECKBOX_LIST',\n SLOT = 'SLOT',\n}\n\n/** @enumType */\nexport type NodeTypeWithLiterals =\n | NodeType\n | 'PARAGRAPH'\n | 'TEXT'\n | 'HEADING'\n | 'BULLETED_LIST'\n | 'ORDERED_LIST'\n | 'LIST_ITEM'\n | 'BLOCKQUOTE'\n | 'CODE_BLOCK'\n | 'VIDEO'\n | 'DIVIDER'\n | 'FILE'\n | 'GALLERY'\n | 'GIF'\n | 'HTML'\n | 'IMAGE'\n | 'LINK_PREVIEW'\n | 'MAP'\n | 'POLL'\n | 'APP_EMBED'\n | 'BUTTON'\n | 'COLLAPSIBLE_LIST'\n | 'TABLE'\n | 'EMBED'\n | 'COLLAPSIBLE_ITEM'\n | 'COLLAPSIBLE_ITEM_TITLE'\n | 'COLLAPSIBLE_ITEM_BODY'\n | 'TABLE_CELL'\n | 'TABLE_ROW'\n | 'EXTERNAL'\n | 'AUDIO'\n | 'CAPTION'\n | 'LAYOUT'\n | 'LAYOUT_CELL'\n | 'SHAPE'\n | 'CARD'\n | 'TOC'\n | 'SMART_BLOCK'\n | 'SMART_BLOCK_CELL'\n | 'CHECKBOX_LIST'\n | 'SLOT';\n\nexport interface NodeStyle {\n /** The top padding value in pixels. */\n paddingTop?: string | null;\n /** The bottom padding value in pixels. */\n paddingBottom?: string | null;\n /** The background color as a hexadecimal value. */\n backgroundColor?: string | null;\n}\n\nexport interface ButtonData {\n /** Styling for the button's container. */\n containerData?: PluginContainerData;\n /** The button type. */\n type?: ButtonDataTypeWithLiterals;\n /** Styling for the button. */\n styles?: Styles;\n /** The text to display on the button. */\n text?: string | null;\n /** Button link details. */\n link?: Link;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** Background type */\nexport enum BackgroundType {\n /** Solid color background */\n COLOR = 'COLOR',\n /** Gradient background */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type BackgroundTypeWithLiterals = BackgroundType | 'COLOR' | 'GRADIENT';\n\nexport interface Gradient {\n /** Gradient type. */\n type?: GradientTypeWithLiterals;\n /**\n * Color stops for the gradient.\n * @maxSize 1000\n */\n stops?: Stop[];\n /** Angle in degrees for linear gradient (0-360). */\n angle?: number | null;\n /**\n * Horizontal center position for radial gradient (0-100).\n * @max 100\n */\n centerX?: number | null;\n /**\n * Vertical center position for radial gradient (0-100).\n * @max 100\n */\n centerY?: number | null;\n}\n\n/** Gradient type. */\nexport enum GradientType {\n /** Linear gradient. */\n LINEAR = 'LINEAR',\n /** Radial gradient. */\n RADIAL = 'RADIAL',\n}\n\n/** @enumType */\nexport type GradientTypeWithLiterals = GradientType | 'LINEAR' | 'RADIAL';\n\n/** A single color stop in the gradient. */\nexport interface Stop {\n /**\n * Stop color as hex value.\n * @maxLength 19\n */\n color?: string | null;\n /** Stop position (0-1). */\n position?: number | null;\n}\n\nexport interface Border {\n /**\n * Deprecated: Use `borderWidth` in `styles` instead.\n * @deprecated\n */\n width?: number | null;\n /**\n * Deprecated: Use `borderRadius` in `styles` instead.\n * @deprecated\n */\n radius?: number | null;\n}\n\nexport interface Colors {\n /**\n * Deprecated: Use `textColor` in `styles` instead.\n * @deprecated\n */\n text?: string | null;\n /**\n * Deprecated: Use `borderColor` in `styles` instead.\n * @deprecated\n */\n border?: string | null;\n /**\n * Deprecated: Use `backgroundColor` in `styles` instead.\n * @deprecated\n */\n background?: string | null;\n}\n\n/** Background styling (color or gradient) */\nexport interface Background {\n /** Background type. */\n type?: BackgroundTypeWithLiterals;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\nexport interface PluginContainerData {\n /** The width of the node when it's displayed. */\n width?: PluginContainerDataWidth;\n /** The node's alignment within its container. */\n alignment?: PluginContainerDataAlignmentWithLiterals;\n /** Spoiler cover settings for the node. */\n spoiler?: Spoiler;\n /** The height of the node when it's displayed. */\n height?: Height;\n /** Sets whether text should wrap around this node when it's displayed. If `textWrap` is `false`, the node takes up the width of its container. Defaults to `true` for all node types except 'DIVIVDER' where it defaults to `false`. */\n textWrap?: boolean | null;\n}\n\nexport enum WidthType {\n /** Width matches the content width */\n CONTENT = 'CONTENT',\n /** Small Width */\n SMALL = 'SMALL',\n /** Width will match the original asset width */\n ORIGINAL = 'ORIGINAL',\n /** coast-to-coast display */\n FULL_WIDTH = 'FULL_WIDTH',\n}\n\n/** @enumType */\nexport type WidthTypeWithLiterals =\n | WidthType\n | 'CONTENT'\n | 'SMALL'\n | 'ORIGINAL'\n | 'FULL_WIDTH';\n\nexport interface PluginContainerDataWidth\n extends PluginContainerDataWidthDataOneOf {\n /**\n * One of the following predefined width options:\n * `CONTENT`: The width of the container matches the content width.\n * `SMALL`: A small width.\n * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.\n * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.\n */\n size?: WidthTypeWithLiterals;\n /** A custom width value in pixels. */\n custom?: string | null;\n}\n\n/** @oneof */\nexport interface PluginContainerDataWidthDataOneOf {\n /**\n * One of the following predefined width options:\n * `CONTENT`: The width of the container matches the content width.\n * `SMALL`: A small width.\n * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.\n * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.\n */\n size?: WidthTypeWithLiterals;\n /** A custom width value in pixels. */\n custom?: string | null;\n}\n\nexport enum PluginContainerDataAlignment {\n /** Center Alignment */\n CENTER = 'CENTER',\n /** Left Alignment */\n LEFT = 'LEFT',\n /** Right Alignment */\n RIGHT = 'RIGHT',\n}\n\n/** @enumType */\nexport type PluginContainerDataAlignmentWithLiterals =\n | PluginContainerDataAlignment\n | 'CENTER'\n | 'LEFT'\n | 'RIGHT';\n\nexport interface Spoiler {\n /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */\n enabled?: boolean | null;\n /** The description displayed on top of the spoiler cover. */\n description?: string | null;\n /** The text for the button used to remove the spoiler cover. */\n buttonText?: string | null;\n}\n\nexport interface Height {\n /** A custom height value in pixels. */\n custom?: string | null;\n}\n\nexport enum ButtonDataType {\n /** Regular link button */\n LINK = 'LINK',\n /** Triggers custom action that is defined in plugin configuration by the consumer */\n ACTION = 'ACTION',\n}\n\n/** @enumType */\nexport type ButtonDataTypeWithLiterals = ButtonDataType | 'LINK' | 'ACTION';\n\nexport interface Styles {\n /**\n * Deprecated: Use `borderWidth` and `borderRadius` instead.\n * @deprecated\n */\n border?: Border;\n /**\n * Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.\n * @deprecated\n */\n colors?: Colors;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /**\n * Deprecated: Use `borderWidth` for normal/hover states instead.\n * @deprecated\n */\n borderWidthHover?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /**\n * Border color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n borderColorHover?: string | null;\n /**\n * Text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n /**\n * Text color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n textColorHover?: string | null;\n /**\n * Deprecated: Use `background` instead.\n * @maxLength 19\n * @deprecated\n */\n backgroundColor?: string | null;\n /**\n * Deprecated: Use `backgroundHover` instead.\n * @maxLength 19\n * @deprecated\n */\n backgroundColorHover?: string | null;\n /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */\n buttonSize?: string | null;\n /** Background styling (color or gradient). */\n background?: Background;\n /** Background styling for hover state (color or gradient). */\n backgroundHover?: Background;\n}\n\nexport interface Link extends LinkDataOneOf {\n /** The absolute URL for the linked document. */\n url?: string;\n /** The target node's ID. Used for linking to another node in this object. */\n anchor?: string;\n /**\n * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:\n * `SELF` - Default. Opens the linked document in the same frame as the link.\n * `BLANK` - Opens the linked document in a new browser tab or window.\n * `PARENT` - Opens the linked document in the link's parent frame.\n * `TOP` - Opens the linked document in the full body of the link's browser tab or window.\n */\n target?: TargetWithLiterals;\n /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */\n rel?: Rel;\n /** A serialized object used for a custom or external link panel. */\n customData?: string | null;\n}\n\n/** @oneof */\nexport interface LinkDataOneOf {\n /** The absolute URL for the linked document. */\n url?: string;\n /** The target node's ID. Used for linking to another node in this object. */\n anchor?: string;\n}\n\nexport enum Target {\n /** Opens the linked document in the same frame as it was clicked (this is default) */\n SELF = 'SELF',\n /** Opens the linked document in a new window or tab */\n BLANK = 'BLANK',\n /** Opens the linked document in the parent frame */\n PARENT = 'PARENT',\n /** Opens the linked document in the full body of the window */\n TOP = 'TOP',\n}\n\n/** @enumType */\nexport type TargetWithLiterals = Target | 'SELF' | 'BLANK' | 'PARENT' | 'TOP';\n\nexport interface Rel {\n /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */\n nofollow?: boolean | null;\n /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */\n sponsored?: boolean | null;\n /** Indicates that this link is user-generated content and isn't necessarily trusted or endorsed by the page’s author. For example, a link in a fourm post. Defaults to `false`. */\n ugc?: boolean | null;\n /** Indicates that this link protect referral information from being passed to the target website. */\n noreferrer?: boolean | null;\n}\n\nexport interface Animation {\n /** Animation kind. */\n type?: TypeWithLiterals;\n /** Entrance animation, played once when the node first enters the viewport (VIEW). */\n entrance?: EntranceAnimation;\n /** Looping animation, repeated indefinitely while the node is on the page. When combined with entrance, the loop starts after the entrance finishes (VIEW). */\n loop?: LoopAnimation;\n /**\n * POINTER carries its fields directly on the union member in the JTD wall, hence\n * flat fields here (ts-proto camelCase must equal the JTD property names). A future\n * kind that also needs an `effect` field would contend for this JSON name.\n */\n effect?: PointerEffect;\n /** How quickly the node settles toward the pointer, in milliseconds (POINTER). */\n transitionDuration?: number | null;\n}\n\nexport enum Type {\n /** Animations that play while the node is in view. */\n VIEW = 'VIEW',\n /** Animations driven by the visitor's mouse position. */\n POINTER = 'POINTER',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'VIEW' | 'POINTER';\n\nexport interface EntranceAnimation {\n /** The entrance effect to play. */\n effect?: EntranceEffect;\n /** Effect duration in milliseconds. Each effect has its own default. */\n duration?: number | null;\n /** Delay before the effect starts, in milliseconds. */\n delay?: number | null;\n}\n\nexport interface EntranceEffect {\n /** The entrance effect type. */\n type?: EntranceEffectTypeWithLiterals;\n /**\n * Direction the effect enters from. Allowed values depend on the effect type (e.g. TOP/RIGHT/BOTTOM/LEFT, the diagonals with or without CENTER, corners, HORIZONTAL/VERTICAL, CLOCKWISE/COUNTER_CLOCKWISE).\n * @maxLength 20\n */\n direction?: string | null;\n /**\n * Clip-path shape: ELLIPSE, CIRCLE, RECTANGLE, or DIAMOND (SHAPE).\n * @maxLength 12\n */\n shape?: string | null;\n /**\n * Motion style: GENTLE, MODERATE, or INTENSE. Only the effects that expose one accept it.\n * @maxLength 100\n */\n easing?: string | null;\n}\n\nexport enum EntranceEffectType {\n /** Fades in from fully transparent to fully opaque. */\n FADE = 'FADE',\n /** Enters along a 3D arc path. */\n ARC = 'ARC',\n /** Transitions from blurred to sharp. */\n BLUR = 'BLUR',\n /** Bounces into place with an elastic curve. */\n BOUNCE = 'BOUNCE',\n /** Shrinks down from a larger size. */\n DROP = 'DROP',\n /** Expands from a point, scaling to full size. */\n EXPAND = 'EXPAND',\n /** Flips into view with a 3D rotation. */\n FLIP = 'FLIP',\n /** Drifts gently into place. */\n FLOAT = 'FLOAT',\n /** Unfolds from an edge as if hinged. */\n FOLD = 'FOLD',\n /** Glides in smoothly from off-screen. */\n GLIDE = 'GLIDE',\n /** Progressively revealed by an expanding clip-path. */\n REVEAL = 'REVEAL',\n /** Appears through an expanding geometric clip-path shape. */\n SHAPE = 'SHAPE',\n /** Revealed through shutter-like strips. */\n SHUTTERS = 'SHUTTERS',\n /** Slides in from one side. */\n SLIDE = 'SLIDE',\n /** Spins into view while scaling up. */\n SPIN = 'SPIN',\n /** Tilts in from the side with 3D rotation. */\n TILT = 'TILT',\n /** Rotates into view around a corner pivot. */\n TURN = 'TURN',\n /** Expands from its horizontal or vertical center. */\n WINK = 'WINK',\n}\n\n/** @enumType */\nexport type EntranceEffectTypeWithLiterals =\n | EntranceEffectType\n | 'FADE'\n | 'ARC'\n | 'BLUR'\n | 'BOUNCE'\n | 'DROP'\n | 'EXPAND'\n | 'FLIP'\n | 'FLOAT'\n | 'FOLD'\n | 'GLIDE'\n | 'REVEAL'\n | 'SHAPE'\n | 'SHUTTERS'\n | 'SLIDE'\n | 'SPIN'\n | 'TILT'\n | 'TURN'\n | 'WINK';\n\nexport interface LoopAnimation {\n /** The looping effect to repeat. */\n effect?: LoopEffect;\n /** Duration of a single iteration in milliseconds. Each effect has its own default. */\n duration?: number | null;\n /** Pause between iterations in milliseconds. */\n iterationDelay?: number | null;\n}\n\nexport interface LoopEffect {\n /** The looping effect type. */\n type?: LoopEffectTypeWithLiterals;\n /**\n * Direction of the effect. Allowed values depend on the effect type (e.g. TOP/RIGHT/BOTTOM/LEFT, LEFT/RIGHT, HORIZONTAL/VERTICAL with or without CENTER, CLOCKWISE/COUNTER_CLOCKWISE).\n * @maxLength 20\n */\n direction?: string | null;\n /**\n * Motion style: GENTLE, MODERATE, or INTENSE. Only the effects that expose one accept it.\n * @maxLength 100\n */\n easing?: string | null;\n}\n\nexport enum LoopEffectType {\n /** Bounces up and down in place. */\n BOUNCE = 'BOUNCE',\n /** Scales gently in and out along an axis. */\n BREATHE = 'BREATHE',\n /** Drifts toward one side, then re-enters from the opposite side. */\n CROSS = 'CROSS',\n /** Fades out to fully transparent and back in. */\n FLASH = 'FLASH',\n /** Rotates a full turn around its horizontal or vertical axis. */\n FLIP = 'FLIP',\n /** Folds back and forth around a hinged edge. */\n FOLD = 'FOLD',\n /** Wobbles with a jelly-like skew. */\n JELLO = 'JELLO',\n /** Nudges repeatedly toward a direction. */\n POKE = 'POKE',\n /** Scales up and back down rhythmically. */\n PULSE = 'PULSE',\n /** Stretches and squashes like a rubber band. */\n RUBBER = 'RUBBER',\n /** Rotates continuously around its center. */\n SPIN = 'SPIN',\n /** Swings back and forth around an edge pivot. */\n SWING = 'SWING',\n /** Rocks side to side with an accumulating rotation. */\n WIGGLE = 'WIGGLE',\n}\n\n/** @enumType */\nexport type LoopEffectTypeWithLiterals =\n | LoopEffectType\n | 'BOUNCE'\n | 'BREATHE'\n | 'CROSS'\n | 'FLASH'\n | 'FLIP'\n | 'FOLD'\n | 'JELLO'\n | 'POKE'\n | 'PULSE'\n | 'RUBBER'\n | 'SPIN'\n | 'SWING'\n | 'WIGGLE';\n\nexport interface PointerEffect {\n /** The mouse effect type. */\n type?: PointerEffectTypeWithLiterals;\n /** Reacts away from the pointer instead of toward it. */\n inverted?: boolean | null;\n /**\n * One field, two value spaces (the effect type says which): the axis the movement is constrained to — HORIZONTAL, VERTICAL, or BOTH (AIRY, SCALE, SKEW, TRACK, TRACK_3D) — or the edge/center axis the node swivels around — TOP, BOTTOM, LEFT, RIGHT, CENTER_HORIZONTAL, or CENTER_VERTICAL (SWIVEL). Only the effects that expose one accept it.\n * @maxLength 20\n */\n axis?: string | null;\n /**\n * Whether the node grows or shrinks as the pointer nears: UP or DOWN (SCALE).\n * @maxLength 8\n */\n direction?: string | null;\n /**\n * Motion style: GENTLE, MODERATE, or INTENSE.\n * @maxLength 100\n */\n easing?: string | null;\n}\n\nexport enum PointerEffectType {\n /** Drifts loosely after the pointer with a light rotation. */\n AIRY = 'AIRY',\n /** Squashes and stretches toward the pointer. */\n BLOB = 'BLOB',\n /** Shifts after the pointer while blurring. */\n BLUR = 'BLUR',\n /** Scales as the pointer approaches. */\n SCALE = 'SCALE',\n /** Skews toward the pointer. */\n SKEW = 'SKEW',\n /** Rotates around a pivot edge or axis, following the pointer. */\n SWIVEL = 'SWIVEL',\n /** Tilts in 3D perspective toward the pointer. */\n TILT_3D = 'TILT_3D',\n /** Follows the pointer's position. */\n TRACK = 'TRACK',\n /** Follows the pointer with a 3D depth motion. */\n TRACK_3D = 'TRACK_3D',\n}\n\n/** @enumType */\nexport type PointerEffectTypeWithLiterals =\n | PointerEffectType\n | 'AIRY'\n | 'BLOB'\n | 'BLUR'\n | 'SCALE'\n | 'SKEW'\n | 'SWIVEL'\n | 'TILT_3D'\n | 'TRACK'\n | 'TRACK_3D';\n\nexport interface CodeBlockData {\n /** Styling for the code block's text. */\n textStyle?: TextStyle;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface TextStyle {\n /** Text alignment. Defaults to `AUTO`. */\n textAlignment?: TextAlignmentWithLiterals;\n /** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */\n lineHeight?: string | null;\n /** Font size of an empty block: it sizes the empty line, its list marker and the text typed into it. Ignored on a block with text, which is sized by its text's `FONT_SIZE` decorations. */\n fontSize?: FontSizeData;\n}\n\nexport enum TextAlignment {\n /** browser default, eqivalent to `initial` */\n AUTO = 'AUTO',\n /** Left align */\n LEFT = 'LEFT',\n /** Right align */\n RIGHT = 'RIGHT',\n /** Center align */\n CENTER = 'CENTER',\n /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */\n JUSTIFY = 'JUSTIFY',\n}\n\n/** @enumType */\nexport type TextAlignmentWithLiterals =\n | TextAlignment\n | 'AUTO'\n | 'LEFT'\n | 'RIGHT'\n | 'CENTER'\n | 'JUSTIFY';\n\nexport interface FontSizeData {\n /** The units used for the font size. */\n unit?: FontTypeWithLiterals;\n /** Font size value. */\n value?: number | null;\n}\n\nexport enum FontType {\n PX = 'PX',\n EM = 'EM',\n}\n\n/** @enumType */\nexport type FontTypeWithLiterals = FontType | 'PX' | 'EM';\n\nexport interface DividerData {\n /** Styling for the divider's container. */\n containerData?: PluginContainerData;\n /** Divider line style. */\n lineStyle?: LineStyleWithLiterals;\n /** Divider width. */\n width?: WidthWithLiterals;\n /** Divider alignment. */\n alignment?: DividerDataAlignmentWithLiterals;\n /** Visual styling for the divider lines. */\n styles?: DividerDataStyles;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum LineCap {\n /** Square line endings. */\n SQUARE = 'SQUARE',\n /** Rounded line endings. */\n ROUND = 'ROUND',\n}\n\n/** @enumType */\nexport type LineCapWithLiterals = LineCap | 'SQUARE' | 'ROUND';\n\nexport enum LineStyle {\n /** Single Line */\n SINGLE = 'SINGLE',\n /** Double Line */\n DOUBLE = 'DOUBLE',\n /** Dashed Line */\n DASHED = 'DASHED',\n /** Dotted Line */\n DOTTED = 'DOTTED',\n}\n\n/** @enumType */\nexport type LineStyleWithLiterals =\n | LineStyle\n | 'SINGLE'\n | 'DOUBLE'\n | 'DASHED'\n | 'DOTTED';\n\nexport enum Width {\n /** Large line */\n LARGE = 'LARGE',\n /** Medium line */\n MEDIUM = 'MEDIUM',\n /** Small line */\n SMALL = 'SMALL',\n}\n\n/** @enumType */\nexport type WidthWithLiterals = Width | 'LARGE' | 'MEDIUM' | 'SMALL';\n\nexport enum DividerDataAlignment {\n /** Center alignment */\n CENTER = 'CENTER',\n /** Left alignment */\n LEFT = 'LEFT',\n /** Right alignment */\n RIGHT = 'RIGHT',\n}\n\n/** @enumType */\nexport type DividerDataAlignmentWithLiterals =\n | DividerDataAlignment\n | 'CENTER'\n | 'LEFT'\n | 'RIGHT';\n\nexport interface DividerDataStyles {\n /**\n * Divider color as a hexadecimal value. An alpha channel controls opacity.\n * @maxLength 19\n */\n color?: string | null;\n /** Divider line ending shape. */\n lineCap?: LineCapWithLiterals;\n /**\n * Line thicknesses in pixels, ordered from first line to last line.\n * @maxSize 10\n */\n lineThickness?: number[];\n /** Visible dash length for dashed dividers, in pixels. The pattern is snapped to a whole number of dashes so that the first and last dash touch the divider's edges - narrower containers show fewer dashes at the same size. */\n dashLength?: number | null;\n /** Visible gap between dashes or dots, in pixels. */\n dashGap?: number | null;\n /** Gap between divider lines in pixels. */\n lineGap?: number | null;\n}\n\nexport interface FileData {\n /** Styling for the file's container. */\n containerData?: PluginContainerData;\n /** The source for the file's data. */\n src?: FileSource;\n /** File name. */\n name?: string | null;\n /** File type. */\n type?: string | null;\n /**\n * Use `sizeInKb` instead.\n * @deprecated\n */\n size?: number | null;\n /** Settings for PDF files. */\n pdfSettings?: PDFSettings;\n /** File MIME type. */\n mimeType?: string | null;\n /** File path. */\n path?: string | null;\n /** File size in KB. */\n sizeInKb?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum ViewMode {\n /** No PDF view */\n NONE = 'NONE',\n /** Full PDF view */\n FULL = 'FULL',\n /** Mini PDF view */\n MINI = 'MINI',\n}\n\n/** @enumType */\nexport type ViewModeWithLiterals = ViewMode | 'NONE' | 'FULL' | 'MINI';\n\nexport interface FileSource extends FileSourceDataOneOf {\n /** The absolute URL for the file's source. */\n url?: string | null;\n /**\n * Custom ID. Use `id` instead.\n * @deprecated\n */\n custom?: string | null;\n /** An ID that's resolved to a URL by a resolver function. */\n id?: string | null;\n /** Indicates whether the file's source is private. Defaults to `false`. */\n private?: boolean | null;\n}\n\n/** @oneof */\nexport interface FileSourceDataOneOf {\n /** The absolute URL for the file's source. */\n url?: string | null;\n /**\n * Custom ID. Use `id` instead.\n * @deprecated\n */\n custom?: string | null;\n /** An ID that's resolved to a URL by a resolver function. */\n id?: string | null;\n}\n\nexport interface PDFSettings {\n /**\n * PDF view mode. One of the following:\n * `NONE` : The PDF isn't displayed.\n * `FULL` : A full page view of the PDF is displayed.\n * `MINI` : A mini view of the PDF is displayed.\n */\n viewMode?: ViewModeWithLiterals;\n /** Sets whether the PDF download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Sets whether the PDF print button is disabled. Defaults to `false`. */\n disablePrint?: boolean | null;\n}\n\nexport interface GalleryData {\n /** Styling for the gallery's container. */\n containerData?: PluginContainerData;\n /** The items in the gallery. */\n items?: Item[];\n /** Options for defining the gallery's appearance. */\n options?: GalleryOptions;\n /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */\n disableExpand?: boolean | null;\n /** Sets whether the gallery's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface Media {\n /** The source for the media's data. */\n src?: FileSource;\n /** Media width in pixels. */\n width?: number | null;\n /** Media height in pixels. */\n height?: number | null;\n /** Media duration in seconds. Only relevant for audio and video files. */\n duration?: number | null;\n}\n\nexport interface Image {\n /** Image file details. */\n media?: Media;\n /** Link details for images that are links. */\n link?: Link;\n}\n\nexport interface Video {\n /** Video file details. */\n media?: Media;\n /** Video thumbnail file details. */\n thumbnail?: Media;\n}\n\nexport interface Item extends ItemDataOneOf {\n /** An image item. */\n image?: Image;\n /** A video item. */\n video?: Video;\n /** Item title. */\n title?: string | null;\n /** Item's alternative text. */\n altText?: string | null;\n}\n\n/** @oneof */\nexport interface ItemDataOneOf {\n /** An image item. */\n image?: Image;\n /** A video item. */\n video?: Video;\n}\n\nexport interface GalleryOptions {\n /** Gallery layout. */\n layout?: GalleryOptionsLayout;\n /** Styling for gallery items. */\n item?: ItemStyle;\n /** Styling for gallery thumbnail images. */\n thumbnails?: Thumbnails;\n}\n\nexport enum LayoutType {\n /** Collage type */\n COLLAGE = 'COLLAGE',\n /** Masonry type */\n MASONRY = 'MASONRY',\n /** Grid type */\n GRID = 'GRID',\n /** Thumbnail type */\n THUMBNAIL = 'THUMBNAIL',\n /** Slider type */\n SLIDER = 'SLIDER',\n /** Slideshow type */\n SLIDESHOW = 'SLIDESHOW',\n /** Panorama type */\n PANORAMA = 'PANORAMA',\n /** Column type */\n COLUMN = 'COLUMN',\n /** Magic type */\n MAGIC = 'MAGIC',\n /** Fullsize images type */\n FULLSIZE = 'FULLSIZE',\n}\n\n/** @enumType */\nexport type LayoutTypeWithLiterals =\n | LayoutType\n | 'COLLAGE'\n | 'MASONRY'\n | 'GRID'\n | 'THUMBNAIL'\n | 'SLIDER'\n | 'SLIDESHOW'\n | 'PANORAMA'\n | 'COLUMN'\n | 'MAGIC'\n | 'FULLSIZE';\n\nexport enum Orientation {\n /** Rows Orientation */\n ROWS = 'ROWS',\n /** Columns Orientation */\n COLUMNS = 'COLUMNS',\n}\n\n/** @enumType */\nexport type OrientationWithLiterals = Orientation | 'ROWS' | 'COLUMNS';\n\nexport enum Crop {\n /** Crop to fill */\n FILL = 'FILL',\n /** Crop to fit */\n FIT = 'FIT',\n}\n\n/** @enumType */\nexport type CropWithLiterals = Crop | 'FILL' | 'FIT';\n\nexport enum ThumbnailsAlignment {\n /** Top alignment */\n TOP = 'TOP',\n /** Right alignment */\n RIGHT = 'RIGHT',\n /** Bottom alignment */\n BOTTOM = 'BOTTOM',\n /** Left alignment */\n LEFT = 'LEFT',\n /** No thumbnail */\n NONE = 'NONE',\n}\n\n/** @enumType */\nexport type ThumbnailsAlignmentWithLiterals =\n | ThumbnailsAlignment\n | 'TOP'\n | 'RIGHT'\n | 'BOTTOM'\n | 'LEFT'\n | 'NONE';\n\nexport interface GalleryOptionsLayout {\n /** Gallery layout type. */\n type?: LayoutTypeWithLiterals;\n /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */\n horizontalScroll?: boolean | null;\n /** Gallery orientation. */\n orientation?: OrientationWithLiterals;\n /** The number of columns to display on full size screens. */\n numberOfColumns?: number | null;\n /** The number of columns to display on mobile screens. */\n mobileNumberOfColumns?: number | null;\n}\n\nexport interface ItemStyle {\n /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */\n targetSize?: number | null;\n /** Item ratio */\n ratio?: number | null;\n /** Sets how item images are cropped. */\n crop?: CropWithLiterals;\n /** The spacing between items in pixels. */\n spacing?: number | null;\n}\n\nexport interface Thumbnails {\n /** Thumbnail alignment. */\n placement?: ThumbnailsAlignmentWithLiterals;\n /** Spacing between thumbnails in pixels. */\n spacing?: number | null;\n}\n\nexport interface GIFData {\n /** Styling for the GIF's container. */\n containerData?: PluginContainerData;\n /** The source of the full size GIF. */\n original?: GIF;\n /** The source of the downsized GIF. */\n downsized?: GIF;\n /** Height in pixels. */\n height?: number;\n /** Width in pixels. */\n width?: number;\n /** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */\n gifType?: GIFTypeWithLiterals;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface GIF {\n /**\n * GIF format URL.\n * @format WEB_URL\n */\n gif?: string | null;\n /**\n * MP4 format URL.\n * @format WEB_URL\n */\n mp4?: string | null;\n /**\n * Thumbnail URL.\n * @format WEB_URL\n */\n still?: string | null;\n}\n\nexport enum GIFType {\n NORMAL = 'NORMAL',\n STICKER = 'STICKER',\n}\n\n/** @enumType */\nexport type GIFTypeWithLiterals = GIFType | 'NORMAL' | 'STICKER';\n\nexport interface HeadingData {\n /** Heading level from 1-6. */\n level?: number;\n /** Styling for the heading text. */\n textStyle?: TextStyle;\n /** Indentation level from 1-4. */\n indentation?: number | null;\n /** Rendered heading level for SEO/accessibility, overrides the HTML tag when set. */\n renderedLevel?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface HTMLData extends HTMLDataDataOneOf {\n /** The URL for the HTML code for the node. */\n url?: string;\n /** The HTML code for the node. */\n html?: string;\n /**\n * Whether this is an AdSense element. Use `source` instead.\n * @deprecated\n */\n isAdsense?: boolean | null;\n /** The WixelWidget ID for AI_WIDGET source nodes. */\n widgetId?: string;\n /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */\n containerData?: PluginContainerData;\n /** The type of HTML code. */\n source?: SourceWithLiterals;\n /** If container height is aligned with its content height. Defaults to `true`. */\n autoHeight?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** @oneof */\nexport interface HTMLDataDataOneOf {\n /** The URL for the HTML code for the node. */\n url?: string;\n /** The HTML code for the node. */\n html?: string;\n /**\n * Whether this is an AdSense element. Use `source` instead.\n * @deprecated\n */\n isAdsense?: boolean | null;\n /** The WixelWidget ID for AI_WIDGET source nodes. */\n widgetId?: string;\n}\n\nexport enum Source {\n HTML = 'HTML',\n ADSENSE = 'ADSENSE',\n AI = 'AI',\n AI_WIDGET = 'AI_WIDGET',\n}\n\n/** @enumType */\nexport type SourceWithLiterals =\n | Source\n | 'HTML'\n | 'ADSENSE'\n | 'AI'\n | 'AI_WIDGET';\n\nexport interface ImageData {\n /** Styling for the image's container. */\n containerData?: PluginContainerData;\n /** Image file details. */\n image?: Media;\n /** Link details for images that are links. */\n link?: Link;\n /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */\n disableExpand?: boolean | null;\n /** Image's alternative text. */\n altText?: string | null;\n /**\n * Deprecated: use Caption node instead.\n * @deprecated\n */\n caption?: string | null;\n /** Sets whether the image's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Sets whether the image is decorative and does not need an explanation. Defaults to `false`. */\n decorative?: boolean | null;\n /** Styling for the image. */\n styles?: ImageDataStyles;\n /** Non-destructive crop rectangle, expressed as fractions (0-1) of the original image. When omitted, the full image is shown. */\n crop?: ImageDataCrop;\n /** Optional shape mask applied to the visible crop. Supported values: CIRCLE, OVAL, STAR, PENTAGON, HEXAGON, TRIANGLE, HEART, RHOMBUS, FLUID, WINDOW. */\n cropShape?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface StylesBorder {\n /** Border width in pixels. */\n width?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Border radius in pixels. */\n radius?: number | null;\n}\n\nexport interface ImageDataStyles {\n /** Border attributes. */\n border?: StylesBorder;\n}\n\nexport interface ImageDataCrop {\n /** Left edge of the crop, as a fraction (0-1) of the original image width. */\n x?: number | null;\n /** Top edge of the crop, as a fraction (0-1) of the original image height. */\n y?: number | null;\n /** Visible width of the crop, as a fraction (0-1) of the original image width. */\n width?: number | null;\n /** Visible height of the crop, as a fraction (0-1) of the original image height. */\n height?: number | null;\n}\n\nexport interface LinkPreviewData {\n /** Styling for the link preview's container. */\n containerData?: PluginContainerData;\n /** Link details. */\n link?: Link;\n /** Preview title. */\n title?: string | null;\n /** Preview thumbnail URL. */\n thumbnailUrl?: string | null;\n /** Preview description. */\n description?: string | null;\n /** The preview content as HTML. */\n html?: string | null;\n /** Styling for the link preview. */\n styles?: LinkPreviewDataStyles;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum StylesPosition {\n /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */\n START = 'START',\n /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */\n END = 'END',\n /** Thumbnail positioned at the top */\n TOP = 'TOP',\n /** Thumbnail hidden and not displayed */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type StylesPositionWithLiterals =\n | StylesPosition\n | 'START'\n | 'END'\n | 'TOP'\n | 'HIDDEN';\n\nexport interface LinkPreviewDataStyles {\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Title color as a hexadecimal value.\n * @maxLength 19\n */\n titleColor?: string | null;\n /**\n * Subtitle color as a hexadecimal value.\n * @maxLength 19\n */\n subtitleColor?: string | null;\n /**\n * Link color as a hexadecimal value.\n * @maxLength 19\n */\n linkColor?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Position of thumbnail. Defaults to `START`. */\n thumbnailPosition?: StylesPositionWithLiterals;\n}\n\nexport interface MapData {\n /** Styling for the map's container. */\n containerData?: PluginContainerData;\n /** Map settings. */\n mapSettings?: MapSettings;\n}\n\nexport interface MapSettings {\n /** The address to display on the map. */\n address?: string | null;\n /** Sets whether the map is draggable. */\n draggable?: boolean | null;\n /** Sets whether the location marker is visible. */\n marker?: boolean | null;\n /** Sets whether street view control is enabled. */\n streetViewControl?: boolean | null;\n /** Sets whether zoom control is enabled. */\n zoomControl?: boolean | null;\n /** Location latitude. */\n lat?: number | null;\n /** Location longitude. */\n lng?: number | null;\n /** Location name. */\n locationName?: string | null;\n /** Sets whether view mode control is enabled. */\n viewModeControl?: boolean | null;\n /** Initial zoom value. */\n initialZoom?: number | null;\n /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */\n mapType?: MapTypeWithLiterals;\n}\n\nexport enum MapType {\n /** Roadmap map type */\n ROADMAP = 'ROADMAP',\n /** Satellite map type */\n SATELITE = 'SATELITE',\n /** Hybrid map type */\n HYBRID = 'HYBRID',\n /** Terrain map type */\n TERRAIN = 'TERRAIN',\n}\n\n/** @enumType */\nexport type MapTypeWithLiterals =\n | MapType\n | 'ROADMAP'\n | 'SATELITE'\n | 'HYBRID'\n | 'TERRAIN';\n\nexport interface ParagraphData {\n /** Styling for the paragraph text. */\n textStyle?: TextStyle;\n /** Indentation level from 1-4. */\n indentation?: number | null;\n /** Paragraph level */\n level?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface PollData {\n /** Styling for the poll's container. */\n containerData?: PluginContainerData;\n /** Poll data. */\n poll?: Poll;\n /** Layout settings for the poll and voting options. */\n layout?: PollDataLayout;\n /** Styling for the poll and voting options. */\n design?: Design;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum ViewRole {\n /** Only Poll creator can view the results */\n CREATOR = 'CREATOR',\n /** Anyone who voted can see the results */\n VOTERS = 'VOTERS',\n /** Anyone can see the results, even if one didn't vote */\n EVERYONE = 'EVERYONE',\n}\n\n/** @enumType */\nexport type ViewRoleWithLiterals = ViewRole | 'CREATOR' | 'VOTERS' | 'EVERYONE';\n\nexport enum VoteRole {\n /** Logged in member */\n SITE_MEMBERS = 'SITE_MEMBERS',\n /** Anyone */\n ALL = 'ALL',\n}\n\n/** @enumType */\nexport type VoteRoleWithLiterals = VoteRole | 'SITE_MEMBERS' | 'ALL';\n\nexport interface Permissions {\n /** Sets who can view the poll results. */\n view?: ViewRoleWithLiterals;\n /** Sets who can vote. */\n vote?: VoteRoleWithLiterals;\n /** Sets whether one voter can vote multiple times. Defaults to `false`. */\n allowMultipleVotes?: boolean | null;\n}\n\nexport interface Option {\n /** Option ID. */\n id?: string | null;\n /** Option title. */\n title?: string | null;\n /** The image displayed with the option. */\n image?: Media;\n}\n\nexport interface Settings {\n /** Permissions settings for voting. */\n permissions?: Permissions;\n /** Sets whether voters are displayed in the vote results. Defaults to `true`. */\n showVoters?: boolean | null;\n /** Sets whether the vote count is displayed. Defaults to `true`. */\n showVotesCount?: boolean | null;\n}\n\nexport enum PollLayoutType {\n /** List */\n LIST = 'LIST',\n /** Grid */\n GRID = 'GRID',\n}\n\n/** @enumType */\nexport type PollLayoutTypeWithLiterals = PollLayoutType | 'LIST' | 'GRID';\n\nexport enum PollLayoutDirection {\n /** Left-to-right */\n LTR = 'LTR',\n /** Right-to-left */\n RTL = 'RTL',\n}\n\n/** @enumType */\nexport type PollLayoutDirectionWithLiterals =\n | PollLayoutDirection\n | 'LTR'\n | 'RTL';\n\nexport interface PollLayout {\n /** The layout for displaying the voting options. */\n type?: PollLayoutTypeWithLiterals;\n /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */\n direction?: PollLayoutDirectionWithLiterals;\n /** Sets whether to display the main poll image. Defaults to `false`. */\n enableImage?: boolean | null;\n}\n\nexport interface OptionLayout {\n /** Sets whether to display option images. Defaults to `false`. */\n enableImage?: boolean | null;\n}\n\nexport enum PollDesignBackgroundType {\n /** Color background type */\n COLOR = 'COLOR',\n /** Image background type */\n IMAGE = 'IMAGE',\n /** Gradiant background type */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type PollDesignBackgroundTypeWithLiterals =\n | PollDesignBackgroundType\n | 'COLOR'\n | 'IMAGE'\n | 'GRADIENT';\n\nexport interface BackgroundGradient {\n /** The gradient angle in degrees. */\n angle?: number | null;\n /**\n * The start color as a hexademical value.\n * @maxLength 19\n */\n startColor?: string | null;\n /**\n * The end color as a hexademical value.\n * @maxLength 19\n */\n lastColor?: string | null;\n}\n\nexport interface PollDesignBackground\n extends PollDesignBackgroundBackgroundOneOf {\n /**\n * The background color as a hexademical value.\n * @maxLength 19\n */\n color?: string | null;\n /** An image to use for the background. */\n image?: Media;\n /** Details for a gradient background. */\n gradient?: BackgroundGradient;\n /** Background type. For each option, include the relevant details. */\n type?: PollDesignBackgroundTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PollDesignBackgroundBackgroundOneOf {\n /**\n * The background color as a hexademical value.\n * @maxLength 19\n */\n color?: string | null;\n /** An image to use for the background. */\n image?: Media;\n /** Details for a gradient background. */\n gradient?: BackgroundGradient;\n}\n\nexport interface PollDesign {\n /** Background styling. */\n background?: PollDesignBackground;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n}\n\nexport interface OptionDesign {\n /** Border radius in pixels. */\n borderRadius?: number | null;\n}\n\nexport interface Poll {\n /** Poll ID. */\n id?: string | null;\n /** Poll title. */\n title?: string | null;\n /** Poll creator ID. */\n creatorId?: string | null;\n /** Main poll image. */\n image?: Media;\n /** Voting options. */\n options?: Option[];\n /** The poll's permissions and display settings. */\n settings?: Settings;\n}\n\nexport interface PollDataLayout {\n /** Poll layout settings. */\n poll?: PollLayout;\n /** Voting otpions layout settings. */\n options?: OptionLayout;\n}\n\nexport interface Design {\n /** Styling for the poll. */\n poll?: PollDesign;\n /** Styling for voting options. */\n options?: OptionDesign;\n}\n\nexport interface TextData {\n /** The text to apply decorations to. */\n text?: string;\n /** The decorations to apply. */\n decorations?: Decoration[];\n}\n\n/** Adds appearence changes to text */\nexport interface Decoration extends DecorationDataOneOf {\n /** Data for an anchor link decoration. */\n anchorData?: AnchorData;\n /** Data for a color decoration. */\n colorData?: ColorData;\n /** Data for an external link decoration. */\n linkData?: LinkData;\n /** Data for a mention decoration. */\n mentionData?: MentionData;\n /** Data for a font size decoration. */\n fontSizeData?: FontSizeData;\n /** Font weight for a bold decoration. */\n fontWeightValue?: number | null;\n /** Data for an italic decoration. Defaults to `true`. */\n italicData?: boolean | null;\n /** Data for an underline decoration. Defaults to `true`. */\n underlineData?: boolean | null;\n /** Data for a spoiler decoration. */\n spoilerData?: SpoilerData;\n /** Data for a strikethrough decoration. Defaults to `true`. */\n strikethroughData?: boolean | null;\n /** Data for a superscript decoration. Defaults to `true`. */\n superscriptData?: boolean | null;\n /** Data for a subscript decoration. Defaults to `true`. */\n subscriptData?: boolean | null;\n /** Data for a font family decoration. */\n fontFamilyData?: FontFamilyData;\n /** Data for a hand-drawn sketch annotation decoration. */\n sketchData?: SketchData;\n /** The type of decoration to apply. */\n type?: DecorationTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface DecorationDataOneOf {\n /** Data for an anchor link decoration. */\n anchorData?: AnchorData;\n /** Data for a color decoration. */\n colorData?: ColorData;\n /** Data for an external link decoration. */\n linkData?: LinkData;\n /** Data for a mention decoration. */\n mentionData?: MentionData;\n /** Data for a font size decoration. */\n fontSizeData?: FontSizeData;\n /** Font weight for a bold decoration. */\n fontWeightValue?: number | null;\n /** Data for an italic decoration. Defaults to `true`. */\n italicData?: boolean | null;\n /** Data for an underline decoration. Defaults to `true`. */\n underlineData?: boolean | null;\n /** Data for a spoiler decoration. */\n spoilerData?: SpoilerData;\n /** Data for a strikethrough decoration. Defaults to `true`. */\n strikethroughData?: boolean | null;\n /** Data for a superscript decoration. Defaults to `true`. */\n superscriptData?: boolean | null;\n /** Data for a subscript decoration. Defaults to `true`. */\n subscriptData?: boolean | null;\n /** Data for a font family decoration. */\n fontFamilyData?: FontFamilyData;\n /** Data for a hand-drawn sketch annotation decoration. */\n sketchData?: SketchData;\n}\n\nexport enum DecorationType {\n BOLD = 'BOLD',\n ITALIC = 'ITALIC',\n UNDERLINE = 'UNDERLINE',\n SPOILER = 'SPOILER',\n ANCHOR = 'ANCHOR',\n MENTION = 'MENTION',\n LINK = 'LINK',\n COLOR = 'COLOR',\n FONT_SIZE = 'FONT_SIZE',\n EXTERNAL = 'EXTERNAL',\n STRIKETHROUGH = 'STRIKETHROUGH',\n SUPERSCRIPT = 'SUPERSCRIPT',\n SUBSCRIPT = 'SUBSCRIPT',\n FONT_FAMILY = 'FONT_FAMILY',\n SKETCH = 'SKETCH',\n}\n\n/** @enumType */\nexport type DecorationTypeWithLiterals =\n | DecorationType\n | 'BOLD'\n | 'ITALIC'\n | 'UNDERLINE'\n | 'SPOILER'\n | 'ANCHOR'\n | 'MENTION'\n | 'LINK'\n | 'COLOR'\n | 'FONT_SIZE'\n | 'EXTERNAL'\n | 'STRIKETHROUGH'\n | 'SUPERSCRIPT'\n | 'SUBSCRIPT'\n | 'FONT_FAMILY'\n | 'SKETCH';\n\nexport interface AnchorData {\n /** The target node's ID. */\n anchor?: string;\n}\n\nexport interface ColorData {\n /**\n * Deprecated: Use `backgroundStyle` instead. The text's background color as a hexadecimal value.\n * @deprecated\n */\n background?: string | null;\n /**\n * Deprecated: Use `foregroundStyle` instead. The text's foreground color as a hexadecimal value.\n * @deprecated\n */\n foreground?: string | null;\n /** Text fill styling (color or gradient). When present, takes precedence over `foreground`. */\n foregroundStyle?: ColorDataBackground;\n /** Text background (highlight) styling (color or gradient). When present, takes precedence over `background`. */\n backgroundStyle?: ColorDataBackground;\n}\n\n/** Background type */\nexport enum ColorDataBackgroundType {\n /** Solid color */\n COLOR = 'COLOR',\n /** Gradient */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type ColorDataBackgroundTypeWithLiterals =\n | ColorDataBackgroundType\n | 'COLOR'\n | 'GRADIENT';\n\n/** Fill styling (color or gradient) */\nexport interface ColorDataBackground {\n /** Background type. */\n type?: ColorDataBackgroundTypeWithLiterals;\n /**\n * Color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\nexport interface LinkData {\n /** Link details. */\n link?: Link;\n}\n\nexport interface MentionData {\n /** The mentioned user's name. */\n name?: string;\n /** The version of the user's name that appears after the `@` character in the mention. */\n slug?: string;\n /** Mentioned user's ID. */\n id?: string | null;\n /** The kind of entity the mention refers to. Any value is accepted, and it's usually used to mark a mention as a group mention (for example, `group`). When empty, the mention refers to a member. */\n type?: string | null;\n}\n\nexport interface SpoilerData {\n /** Spoiler ID. */\n id?: string | null;\n}\n\nexport interface FontFamilyData {\n /** @maxLength 1000 */\n value?: string | null;\n}\n\nexport interface SketchData {\n /** The sketch annotation variant to draw over the text. */\n variant?: VariantWithLiterals;\n /**\n * Annotation color. Defaults to the theme action color.\n * @maxLength 19\n */\n color?: string | null;\n /** Whether the annotation animates on first paint. Defaults to `true`. */\n animate?: boolean | null;\n}\n\nexport enum Variant {\n UNDERLINE = 'UNDERLINE',\n BOX = 'BOX',\n CIRCLE = 'CIRCLE',\n HIGHLIGHT = 'HIGHLIGHT',\n STRIKETHROUGH = 'STRIKETHROUGH',\n CROSSED_OFF = 'CROSSED_OFF',\n}\n\n/** @enumType */\nexport type VariantWithLiterals =\n | Variant\n | 'UNDERLINE'\n | 'BOX'\n | 'CIRCLE'\n | 'HIGHLIGHT'\n | 'STRIKETHROUGH'\n | 'CROSSED_OFF';\n\nexport interface AppEmbedData extends AppEmbedDataAppDataOneOf {\n /** Data for embedded Wix Bookings content. */\n bookingData?: BookingData;\n /** Data for embedded Wix Events content. */\n eventData?: EventData;\n /** The type of Wix App content being embedded. */\n type?: AppTypeWithLiterals;\n /** The ID of the embedded content. */\n itemId?: string | null;\n /** The name of the embedded content. */\n name?: string | null;\n /**\n * Deprecated: Use `image` instead.\n * @deprecated\n */\n imageSrc?: string | null;\n /** The URL for the embedded content. */\n url?: string | null;\n /** An image for the embedded content. */\n image?: Media;\n /** Whether to hide the image. */\n hideImage?: boolean | null;\n /** Whether to hide the title. */\n hideTitle?: boolean | null;\n /** Whether to hide the price. */\n hidePrice?: boolean | null;\n /** Whether to hide the description (Event and Booking). */\n hideDescription?: boolean | null;\n /** Whether to hide the date and time (Event). */\n hideDateTime?: boolean | null;\n /** Whether to hide the location (Event). */\n hideLocation?: boolean | null;\n /** Whether to hide the duration (Booking). */\n hideDuration?: boolean | null;\n /** Whether to hide the button. */\n hideButton?: boolean | null;\n /** Whether to hide the ribbon. */\n hideRibbon?: boolean | null;\n /** Button styling options. */\n buttonStyles?: ButtonStyles;\n /** Image styling options. */\n imageStyles?: ImageStyles;\n /** Ribbon styling options. */\n ribbonStyles?: RibbonStyles;\n /** Card styling options. */\n cardStyles?: CardStyles;\n /** Styling for the app embed's container. */\n containerData?: PluginContainerData;\n /** Pricing data for embedded Wix App content. */\n pricingData?: PricingData;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** @oneof */\nexport interface AppEmbedDataAppDataOneOf {\n /** Data for embedded Wix Bookings content. */\n bookingData?: BookingData;\n /** Data for embedded Wix Events content. */\n eventData?: EventData;\n}\n\nexport enum Position {\n /** Image positioned at the start (left in LTR layouts, right in RTL layouts) */\n START = 'START',\n /** Image positioned at the end (right in LTR layouts, left in RTL layouts) */\n END = 'END',\n /** Image positioned at the top */\n TOP = 'TOP',\n}\n\n/** @enumType */\nexport type PositionWithLiterals = Position | 'START' | 'END' | 'TOP';\n\nexport enum AspectRatio {\n /** 1:1 aspect ratio */\n SQUARE = 'SQUARE',\n /** 16:9 aspect ratio */\n RECTANGLE = 'RECTANGLE',\n}\n\n/** @enumType */\nexport type AspectRatioWithLiterals = AspectRatio | 'SQUARE' | 'RECTANGLE';\n\nexport enum Resizing {\n /** Fill the container, may crop the image */\n FILL = 'FILL',\n /** Fit the image within the container */\n FIT = 'FIT',\n}\n\n/** @enumType */\nexport type ResizingWithLiterals = Resizing | 'FILL' | 'FIT';\n\nexport enum Placement {\n /** Ribbon placed on the image */\n IMAGE = 'IMAGE',\n /** Ribbon placed on the product information */\n PRODUCT_INFO = 'PRODUCT_INFO',\n}\n\n/** @enumType */\nexport type PlacementWithLiterals = Placement | 'IMAGE' | 'PRODUCT_INFO';\n\nexport enum CardStylesType {\n /** Card with visible border and background */\n CONTAINED = 'CONTAINED',\n /** Card without visible border */\n FRAMELESS = 'FRAMELESS',\n}\n\n/** @enumType */\nexport type CardStylesTypeWithLiterals =\n | CardStylesType\n | 'CONTAINED'\n | 'FRAMELESS';\n\nexport enum Alignment {\n /** Content aligned to start (left in LTR layouts, right in RTL layouts) */\n START = 'START',\n /** Content centered */\n CENTER = 'CENTER',\n /** Content aligned to end (right in LTR layouts, left in RTL layouts) */\n END = 'END',\n}\n\n/** @enumType */\nexport type AlignmentWithLiterals = Alignment | 'START' | 'CENTER' | 'END';\n\nexport enum Layout {\n /** Elements stacked vertically */\n STACKED = 'STACKED',\n /** Elements arranged horizontally */\n SIDE_BY_SIDE = 'SIDE_BY_SIDE',\n}\n\n/** @enumType */\nexport type LayoutWithLiterals = Layout | 'STACKED' | 'SIDE_BY_SIDE';\n\nexport enum AppType {\n PRODUCT = 'PRODUCT',\n EVENT = 'EVENT',\n BOOKING = 'BOOKING',\n}\n\n/** @enumType */\nexport type AppTypeWithLiterals = AppType | 'PRODUCT' | 'EVENT' | 'BOOKING';\n\nexport interface BookingData {\n /** Booking duration in minutes. */\n durations?: string | null;\n}\n\nexport interface EventData {\n /** Event schedule. */\n scheduling?: string | null;\n /** Event location. */\n location?: string | null;\n}\n\nexport interface ButtonStyles {\n /** Text to display on the button. */\n buttonText?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /**\n * Text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Border color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n borderColorHover?: string | null;\n /**\n * Text color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n textColorHover?: string | null;\n /**\n * Background color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n backgroundColorHover?: string | null;\n /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */\n buttonSize?: string | null;\n}\n\nexport interface ImageStyles {\n /** Whether to hide the image. */\n hideImage?: boolean | null;\n /** Position of image. Defaults to `START`. */\n imagePosition?: PositionWithLiterals;\n /** Aspect ratio for the image. Defaults to `SQUARE`. */\n aspectRatio?: AspectRatioWithLiterals;\n /** How the image should be resized. Defaults to `FILL`. */\n resizing?: ResizingWithLiterals;\n /**\n * Image border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Image border width in pixels. */\n borderWidth?: number | null;\n /** Image border radius in pixels. */\n borderRadius?: number | null;\n}\n\nexport interface RibbonStyles {\n /** Text to display on the ribbon. */\n ribbonText?: string | null;\n /**\n * Ribbon background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Ribbon text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n /**\n * Ribbon border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Ribbon border width in pixels. */\n borderWidth?: number | null;\n /** Ribbon border radius in pixels. */\n borderRadius?: number | null;\n /** Placement of the ribbon. Defaults to `IMAGE`. */\n ribbonPlacement?: PlacementWithLiterals;\n}\n\nexport interface CardStyles {\n /**\n * Card background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Card border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Card border width in pixels. */\n borderWidth?: number | null;\n /** Card border radius in pixels. */\n borderRadius?: number | null;\n /** Card type. Defaults to `CONTAINED`. */\n type?: CardStylesTypeWithLiterals;\n /** Content alignment. Defaults to `START`. */\n alignment?: AlignmentWithLiterals;\n /** Layout for title and price. Defaults to `STACKED`. */\n titlePriceLayout?: LayoutWithLiterals;\n /**\n * Title text color as a hexadecimal value.\n * @maxLength 19\n */\n titleColor?: string | null;\n /**\n * Text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n}\n\nexport interface PricingData {\n /**\n * Minimum numeric price value as string (e.g., \"10.99\").\n * @decimalValue options { maxScale:2 }\n */\n valueFrom?: string | null;\n /**\n * Maximum numeric price value as string (e.g., \"19.99\").\n * @decimalValue options { maxScale:2 }\n */\n valueTo?: string | null;\n /**\n * Numeric price value as string after discount application (e.g., \"15.99\").\n * @decimalValue options { maxScale:2 }\n */\n discountedValue?: string | null;\n /**\n * Currency of the value in ISO 4217 format (e.g., \"USD\", \"EUR\").\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * Pricing plan ID.\n * @format GUID\n */\n pricingPlanId?: string | null;\n}\n\nexport interface VideoData {\n /** Styling for the video's container. */\n containerData?: PluginContainerData;\n /** Video details. */\n video?: Media;\n /** Video thumbnail details. */\n thumbnail?: Media;\n /** Sets whether the video's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Video title. */\n title?: string | null;\n /** Video options. */\n options?: PlaybackOptions;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface PlaybackOptions {\n /** Sets whether the media will automatically start playing. */\n autoPlay?: boolean | null;\n /** Sets whether media's will be looped. */\n playInLoop?: boolean | null;\n /** Sets whether media's controls will be shown. */\n showControls?: boolean | null;\n}\n\nexport interface EmbedData {\n /** Styling for the oEmbed node's container. */\n containerData?: PluginContainerData;\n /** An [oEmbed](https://www.oembed.com) object. */\n oembed?: Oembed;\n /** Origin asset source. */\n src?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface Oembed {\n /** The resource type. */\n type?: string | null;\n /** The width of the resource specified in the `url` property in pixels. */\n width?: number | null;\n /** The height of the resource specified in the `url` property in pixels. */\n height?: number | null;\n /** Resource title. */\n title?: string | null;\n /** The source URL for the resource. */\n url?: string | null;\n /** HTML for embedding a video player. The HTML should have no padding or margins. */\n html?: string | null;\n /** The name of the author or owner of the resource. */\n authorName?: string | null;\n /** The URL for the author or owner of the resource. */\n authorUrl?: string | null;\n /** The name of the resource provider. */\n providerName?: string | null;\n /** The URL for the resource provider. */\n providerUrl?: string | null;\n /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */\n thumbnailUrl?: string | null;\n /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */\n thumbnailWidth?: string | null;\n /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */\n thumbnailHeight?: string | null;\n /** The URL for an embedded viedo. */\n videoUrl?: string | null;\n /** The oEmbed version number. This value must be `1.0`. */\n version?: string | null;\n}\n\nexport interface CollapsibleListData {\n /** Styling for the collapsible list's container. */\n containerData?: PluginContainerData;\n /** If `true`, only one item can be expanded at a time. Defaults to `false`. */\n expandOnlyOne?: boolean | null;\n /** Sets which items are expanded when the page loads. */\n initialExpandedItems?: InitialExpandedItemsWithLiterals;\n /** The direction of the text in the list. Either left-to-right or right-to-left. */\n direction?: DirectionWithLiterals;\n /** If `true`, The collapsible item will appear in search results as an FAQ. */\n isQapageData?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum InitialExpandedItems {\n /** First item will be expended initally */\n FIRST = 'FIRST',\n /** All items will expended initally */\n ALL = 'ALL',\n /** All items collapsed initally */\n NONE = 'NONE',\n}\n\n/** @enumType */\nexport type InitialExpandedItemsWithLiterals =\n | InitialExpandedItems\n | 'FIRST'\n | 'ALL'\n | 'NONE';\n\nexport enum Direction {\n /** Left-to-right */\n LTR = 'LTR',\n /** Right-to-left */\n RTL = 'RTL',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals = Direction | 'LTR' | 'RTL';\n\nexport interface TableData {\n /** Styling for the table's container. */\n containerData?: PluginContainerData;\n /** The table's dimensions. */\n dimensions?: Dimensions;\n /**\n * Deprecated: Use `rowHeader` and `columnHeader` instead.\n * @deprecated\n */\n header?: boolean | null;\n /** Sets whether the table's first row is a header. Defaults to `false`. */\n rowHeader?: boolean | null;\n /** Sets whether the table's first column is a header. Defaults to `false`. */\n columnHeader?: boolean | null;\n /** The spacing between cells in pixels. Defaults to `0`. */\n cellSpacing?: number | null;\n /**\n * Padding in pixels for cells. Follows CSS order: top, right, bottom, left.\n * @maxSize 4\n */\n cellPadding?: number[];\n /** Table's alternative text. */\n altText?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface Dimensions {\n /** An array representing relative width of each column in relation to the other columns. */\n colsWidthRatio?: number[];\n /** An array representing the height of each row in pixels. */\n rowsHeight?: number[];\n /** An array representing the minimum width of each column in pixels. */\n colsMinWidth?: number[];\n}\n\nexport interface TableCellData {\n /** Styling for the cell's background color and text alignment. */\n cellStyle?: CellStyle;\n /** The cell's border colors. */\n borderColors?: BorderColors;\n /** Defines how many columns the cell spans. Default: 1. */\n colspan?: number | null;\n /** Defines how many rows the cell spans. Default: 1. */\n rowspan?: number | null;\n /** The cell's border widths. */\n borderWidths?: BorderWidths;\n}\n\nexport enum VerticalAlignment {\n /** Top alignment */\n TOP = 'TOP',\n /** Middle alignment */\n MIDDLE = 'MIDDLE',\n /** Bottom alignment */\n BOTTOM = 'BOTTOM',\n}\n\n/** @enumType */\nexport type VerticalAlignmentWithLiterals =\n | VerticalAlignment\n | 'TOP'\n | 'MIDDLE'\n | 'BOTTOM';\n\nexport interface CellStyle {\n /** Vertical alignment for the cell's text. */\n verticalAlignment?: VerticalAlignmentWithLiterals;\n /**\n * Cell background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n}\n\nexport interface BorderColors {\n /**\n * Left border color as a hexadecimal value.\n * @maxLength 19\n */\n left?: string | null;\n /**\n * Right border color as a hexadecimal value.\n * @maxLength 19\n */\n right?: string | null;\n /**\n * Top border color as a hexadecimal value.\n * @maxLength 19\n */\n top?: string | null;\n /**\n * Bottom border color as a hexadecimal value.\n * @maxLength 19\n */\n bottom?: string | null;\n}\n\nexport interface BorderWidths {\n /** Left border width in pixels. */\n left?: number | null;\n /** Right border width in pixels. */\n right?: number | null;\n /** Top border width in pixels. */\n top?: number | null;\n /** Bottom border width in pixels. */\n bottom?: number | null;\n}\n\n/**\n * `NullValue` is a singleton enumeration to represent the null value for the\n * `Value` type union.\n *\n * The JSON representation for `NullValue` is JSON `null`.\n */\nexport enum NullValue {\n /** Null value. */\n NULL_VALUE = 'NULL_VALUE',\n}\n\n/** @enumType */\nexport type NullValueWithLiterals = NullValue | 'NULL_VALUE';\n\n/**\n * `ListValue` is a wrapper around a repeated field of values.\n *\n * The JSON representation for `ListValue` is JSON array.\n */\nexport interface ListValue {\n /** Repeated field of dynamically typed values. */\n values?: any[];\n}\n\nexport interface AudioData {\n /** Styling for the audio node's container. */\n containerData?: PluginContainerData;\n /** Audio file details. */\n audio?: Media;\n /** Sets whether the audio node's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Cover image. */\n coverImage?: Media;\n /** Track name. */\n name?: string | null;\n /** Author name. */\n authorName?: string | null;\n /** An HTML version of the audio node. */\n html?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface OrderedListData {\n /** Indentation level from 0-4. */\n indentation?: number;\n /** Offset level from 0-4. */\n offset?: number | null;\n /** List start number. */\n start?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface BulletedListData {\n /** Indentation level from 0-4. */\n indentation?: number;\n /** Offset level from 0-4. */\n offset?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface BlockquoteData {\n /** Indentation level from 1-4. */\n indentation?: number;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface CaptionData {\n textStyle?: TextStyle;\n}\n\nexport interface LayoutData {\n /**\n * Deprecated: Use `background` instead.\n * @maxLength 19\n * @deprecated\n */\n backgroundColor?: string | null;\n /** Background image. */\n backgroundImage?: LayoutDataBackgroundImage;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Deprecated: Use `backdrop` instead.\n * @maxLength 19\n * @deprecated\n */\n backdropColor?: string | null;\n /** Backdrop image. */\n backdropImage?: LayoutDataBackgroundImage;\n /** Backdrop top padding. */\n backdropPaddingTop?: number | null;\n /** Backdrop bottom padding */\n backdropPaddingBottom?: number | null;\n /** Horizontal and vertical gap between columns */\n gap?: number | null;\n /**\n * Padding in pixels for cells. Follows CSS order: top, right, bottom, left\n * @maxSize 4\n */\n cellPadding?: number[];\n /** Vertical alignment for the cell's items. */\n cellVerticalAlignment?: VerticalAlignmentAlignmentWithLiterals;\n /** Responsiveness behaviour of columns when responsiveness applies. Either stacks or wrappers. */\n responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;\n /** Size in pixels when responsiveness_behaviour applies */\n responsivenessBreakpoint?: number | null;\n /** Styling for the layout's container. */\n containerData?: PluginContainerData;\n /** Defines where selected design propertied applies to */\n designTarget?: DesignTargetWithLiterals;\n /** Where this layout sits: an edge banner, or the paywall cut. One field, so the two can never be combined. */\n banner?: Banner;\n /** Background styling (color or gradient). */\n background?: LayoutDataBackground;\n /** Backdrop styling (color or gradient). */\n backdrop?: Backdrop;\n /** Node animation. */\n animation?: Animation;\n /** Shape divider at the top edge of the layout. */\n topDivider?: SectionDivider;\n /** Shape divider at the bottom edge of the layout. */\n bottomDivider?: SectionDivider;\n}\n\nexport enum ImageScalingScaling {\n /** Auto image scaling */\n AUTO = 'AUTO',\n /** Contain image scaling */\n CONTAIN = 'CONTAIN',\n /** Cover image scaling */\n COVER = 'COVER',\n}\n\n/** @enumType */\nexport type ImageScalingScalingWithLiterals =\n | ImageScalingScaling\n | 'AUTO'\n | 'CONTAIN'\n | 'COVER';\n\nexport enum ImagePosition {\n /** Image positioned at the center */\n CENTER = 'CENTER',\n /** Image positioned on the left */\n CENTER_LEFT = 'CENTER_LEFT',\n /** Image positioned on the right */\n CENTER_RIGHT = 'CENTER_RIGHT',\n /** Image positioned at the center top */\n TOP = 'TOP',\n /** Image positioned at the top left */\n TOP_LEFT = 'TOP_LEFT',\n /** Image positioned at the top right */\n TOP_RIGHT = 'TOP_RIGHT',\n /** Image positioned at the center bottom */\n BOTTOM = 'BOTTOM',\n /** Image positioned at the bottom left */\n BOTTOM_LEFT = 'BOTTOM_LEFT',\n /** Image positioned at the bottom right */\n BOTTOM_RIGHT = 'BOTTOM_RIGHT',\n}\n\n/** @enumType */\nexport type ImagePositionWithLiterals =\n | ImagePosition\n | 'CENTER'\n | 'CENTER_LEFT'\n | 'CENTER_RIGHT'\n | 'TOP'\n | 'TOP_LEFT'\n | 'TOP_RIGHT'\n | 'BOTTOM'\n | 'BOTTOM_LEFT'\n | 'BOTTOM_RIGHT';\n\n/** Background styling (color or gradient) */\nexport interface LayoutDataBackground {\n /** Background type. */\n type?: LayoutDataBackgroundTypeWithLiterals;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\n/** Background type */\nexport enum LayoutDataBackgroundType {\n /** Solid color background */\n COLOR = 'COLOR',\n /** Gradient background */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type LayoutDataBackgroundTypeWithLiterals =\n | LayoutDataBackgroundType\n | 'COLOR'\n | 'GRADIENT';\n\nexport enum Origin {\n /** Banner originated from an image */\n IMAGE = 'IMAGE',\n /** Banner originated from a layout */\n LAYOUT = 'LAYOUT',\n}\n\n/** @enumType */\nexport type OriginWithLiterals = Origin | 'IMAGE' | 'LAYOUT';\n\nexport enum BannerPosition {\n /** Attached to the top edge (banner). The default, so a banner written before this field existed decodes as TOP. */\n TOP = 'TOP',\n /** Attached to the bottom edge (footer). */\n BOTTOM = 'BOTTOM',\n /** The cut between free and paid content, not an edge banner. `origin` carries no meaning for it. */\n PAYWALL = 'PAYWALL',\n}\n\n/** @enumType */\nexport type BannerPositionWithLiterals =\n | BannerPosition\n | 'TOP'\n | 'BOTTOM'\n | 'PAYWALL';\n\n/** How the stacked layers fade relative to the base shape. Named for a bottom divider; top dividers render mirrored, so the visual fade flips. */\nexport enum LayerEffect {\n /** Shape keeps its height, a solid filler bar pushes it away from the edge */\n CENTER = 'CENTER',\n /** Deeper (more transparent) layers shrink toward the edge inside the original band while a solid filler bar keeps its full height, so the faded copies hug the top of the band */\n FADE_TO_TOP = 'FADE_TO_TOP',\n /** Deeper (more transparent) layers stretch taller into the section, so the faded copies fan out above the base shape and descend to the layout edge */\n FADE_TO_BOTTOM = 'FADE_TO_BOTTOM',\n}\n\n/** @enumType */\nexport type LayerEffectWithLiterals =\n | LayerEffect\n | 'CENTER'\n | 'FADE_TO_TOP'\n | 'FADE_TO_BOTTOM';\n\n/** Divider shape preset */\nexport enum Shape {\n /** Ellipse shape */\n ELLIPSE = 'ELLIPSE',\n /** Tilt shape */\n TILT = 'TILT',\n /** Liquid shape */\n LIQUID = 'LIQUID',\n /** Left wave shape */\n LEFT_WAVE = 'LEFT_WAVE',\n /** Paint scribble shape */\n PAINT_SCRIBBLE = 'PAINT_SCRIBBLE',\n /** Inverted ellipse shape */\n INVERTED_ELLIPSE = 'INVERTED_ELLIPSE',\n /** Right wave shape */\n RIGHT_WAVE = 'RIGHT_WAVE',\n /** Dunes shape */\n DUNES = 'DUNES',\n /** Waves shape */\n WAVES = 'WAVES',\n /** Triangle shape */\n TRIANGLE = 'TRIANGLE',\n /** Semi-ellipse shape */\n SEMI_ELLIPSE = 'SEMI_ELLIPSE',\n /** Plants shape */\n PLANTS = 'PLANTS',\n /** Layered ellipse shape */\n LAYERED_ELLIPSE = 'LAYERED_ELLIPSE',\n /** Pixels shape */\n PIXELS = 'PIXELS',\n /** Paint shape */\n PAINT = 'PAINT',\n /** Clouds shape */\n CLOUDS = 'CLOUDS',\n /** Optical illusion shape */\n OPTICAL_ILLUSION = 'OPTICAL_ILLUSION',\n /** Stripes shape */\n STRIPES = 'STRIPES',\n /** Blobs shape */\n BLOBS = 'BLOBS',\n /** Semi-circles shape */\n SEMI_CIRCLES = 'SEMI_CIRCLES',\n /** Hill shape */\n HILL = 'HILL',\n /** Brush shape */\n BRUSH = 'BRUSH',\n /** Peaks shape */\n PEAKS = 'PEAKS',\n /** Angled triangle shape */\n ANGLED_TRIANGLE = 'ANGLED_TRIANGLE',\n}\n\n/** @enumType */\nexport type ShapeWithLiterals =\n | Shape\n | 'ELLIPSE'\n | 'TILT'\n | 'LIQUID'\n | 'LEFT_WAVE'\n | 'PAINT_SCRIBBLE'\n | 'INVERTED_ELLIPSE'\n | 'RIGHT_WAVE'\n | 'DUNES'\n | 'WAVES'\n | 'TRIANGLE'\n | 'SEMI_ELLIPSE'\n | 'PLANTS'\n | 'LAYERED_ELLIPSE'\n | 'PIXELS'\n | 'PAINT'\n | 'CLOUDS'\n | 'OPTICAL_ILLUSION'\n | 'STRIPES'\n | 'BLOBS'\n | 'SEMI_CIRCLES'\n | 'HILL'\n | 'BRUSH'\n | 'PEAKS'\n | 'ANGLED_TRIANGLE';\n\n/** Layers effect - stacked semi-transparent copies of the divider shape */\nexport interface Layers {\n /** Total number of layers including the base shape (1-4). Absent or 1 disables the effect. */\n count?: number | null;\n /** Vertical distance in pixels between the silhouettes of consecutive layers: each successive layer's silhouette is offset from the previous one by this amount. The divider's own `height` is unchanged. Defaults to 20. */\n offsetY?: number | null;\n /** How the stacked layers fade relative to the base shape. */\n layerEffect?: LayerEffectWithLiterals;\n /** Horizontal distance between consecutive layers in pixels. Defaults to 0. Only applies to shapes that support horizontal offset. */\n offsetX?: number | null;\n}\n\n/** Backdrop type */\nexport enum BackdropType {\n /** Solid color backdrop */\n COLOR = 'COLOR',\n /** Gradient backdrop */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type BackdropTypeWithLiterals = BackdropType | 'COLOR' | 'GRADIENT';\n\nexport interface LayoutDataBackgroundImage {\n /** Background image. */\n media?: Media;\n /**\n * Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background`/`backdrop` color behind it.\n * @deprecated\n */\n opacity?: number | null;\n /** Background image scaling. */\n scaling?: ImageScalingScalingWithLiterals;\n /** Position of background. Defaults to `CENTER`. */\n position?: ImagePositionWithLiterals;\n /** Blur radius in pixels applied to the image layer. `0` (default) leaves the image unblurred; blur is independent of any color overlay and the two stack. */\n blur?: number | null;\n /** Color or gradient drawn on top of the image. When present, this is the authoritative overlay and `opacity` is ignored. Its presence also marks content as authored under the new overlay model (vs. the legacy `opacity`-based dimming on `background`/`backdrop`). */\n overlay?: LayoutDataBackground;\n}\n\nexport enum VerticalAlignmentAlignment {\n /** Top alignment */\n TOP = 'TOP',\n /** Middle alignment */\n MIDDLE = 'MIDDLE',\n /** Bottom alignment */\n BOTTOM = 'BOTTOM',\n}\n\n/** @enumType */\nexport type VerticalAlignmentAlignmentWithLiterals =\n | VerticalAlignmentAlignment\n | 'TOP'\n | 'MIDDLE'\n | 'BOTTOM';\n\nexport enum ResponsivenessBehaviour {\n /** Stacking of columns */\n STACK = 'STACK',\n /** Wrapping of columns */\n WRAP = 'WRAP',\n}\n\n/** @enumType */\nexport type ResponsivenessBehaviourWithLiterals =\n | ResponsivenessBehaviour\n | 'STACK'\n | 'WRAP';\n\nexport enum DesignTarget {\n /** Design applied to layout */\n LAYOUT = 'LAYOUT',\n /** Design applied to cells */\n CELL = 'CELL',\n}\n\n/** @enumType */\nexport type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';\n\nexport interface Banner extends BannerOriginPresenceOneOf {\n /** Origin of the banner. Edge positions only. */\n origin?: OriginWithLiterals;\n /** Where the layout sits: an edge, or the paywall cut. */\n position?: BannerPositionWithLiterals;\n}\n\n/** @oneof */\nexport interface BannerOriginPresenceOneOf {\n /** Origin of the banner. Edge positions only. */\n origin?: OriginWithLiterals;\n}\n\n/** Backdrop styling (color or gradient) */\nexport interface Backdrop {\n /** Backdrop type. */\n type?: BackdropTypeWithLiterals;\n /**\n * Backdrop color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\n/** Decorative shape divider at a layout edge */\nexport interface SectionDivider {\n /** Divider shape preset. Determines which customization properties apply. */\n type?: ShapeWithLiterals;\n /**\n * Divider fill color as a hexadecimal value (may include alpha).\n * @maxLength 19\n */\n color?: string | null;\n /** Divider height in pixels. */\n height?: number | null;\n /** Horizontal offset in pixels. */\n offsetX?: number | null;\n /** Whether the shape is flipped horizontally. */\n flipped?: boolean | null;\n /** Layers effect - stacked semi-transparent copies of the divider shape. */\n layers?: Layers;\n}\n\nexport interface LayoutCellData {\n /** Size of the cell in 12 columns grid. */\n colSpan?: number | null;\n}\n\nexport interface ShapeData {\n /** Styling for the shape's container. */\n containerData?: PluginContainerData;\n /** Shape file details. */\n shape?: Media;\n /** Styling for the shape. */\n styles?: ShapeDataStyles;\n /** Node animation. */\n animation?: Animation;\n /** Link details for shapes that are links. */\n link?: Link;\n /**\n * Alternate text describing the link's purpose for accessibility. Applies only when `link` is set.\n * @maxLength 1000\n */\n altText?: string | null;\n}\n\nexport interface ShapeDataStyles {\n /**\n * Shape fill color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Map of original color keys to their new color values. */\n colors?: Record<string, string>;\n}\n\nexport interface CardData {\n /** Background styling (color or gradient). */\n background?: CardDataBackground;\n /** Background image. */\n backgroundImage?: BackgroundImage;\n}\n\nexport enum Scaling {\n /** Auto image scaling */\n AUTO = 'AUTO',\n /** Contain image scaling */\n CONTAIN = 'CONTAIN',\n /** Cover image scaling */\n COVER = 'COVER',\n}\n\n/** @enumType */\nexport type ScalingWithLiterals = Scaling | 'AUTO' | 'CONTAIN' | 'COVER';\n\nexport enum ImagePositionPosition {\n /** Image positioned at the center */\n CENTER = 'CENTER',\n /** Image positioned on the left */\n CENTER_LEFT = 'CENTER_LEFT',\n /** Image positioned on the right */\n CENTER_RIGHT = 'CENTER_RIGHT',\n /** Image positioned at the center top */\n TOP = 'TOP',\n /** Image positioned at the top left */\n TOP_LEFT = 'TOP_LEFT',\n /** Image positioned at the top right */\n TOP_RIGHT = 'TOP_RIGHT',\n /** Image positioned at the center bottom */\n BOTTOM = 'BOTTOM',\n /** Image positioned at the bottom left */\n BOTTOM_LEFT = 'BOTTOM_LEFT',\n /** Image positioned at the bottom right */\n BOTTOM_RIGHT = 'BOTTOM_RIGHT',\n}\n\n/** @enumType */\nexport type ImagePositionPositionWithLiterals =\n | ImagePositionPosition\n | 'CENTER'\n | 'CENTER_LEFT'\n | 'CENTER_RIGHT'\n | 'TOP'\n | 'TOP_LEFT'\n | 'TOP_RIGHT'\n | 'BOTTOM'\n | 'BOTTOM_LEFT'\n | 'BOTTOM_RIGHT';\n\n/** Background styling (color or gradient) */\nexport interface CardDataBackground {\n /** Background type. */\n type?: CardDataBackgroundTypeWithLiterals;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\n/** Background type */\nexport enum CardDataBackgroundType {\n /** Solid color background */\n COLOR = 'COLOR',\n /** Gradient background */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type CardDataBackgroundTypeWithLiterals =\n | CardDataBackgroundType\n | 'COLOR'\n | 'GRADIENT';\n\nexport interface BackgroundImage {\n /** Background image. */\n media?: Media;\n /**\n * Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background` color behind it.\n * @deprecated\n */\n opacity?: number | null;\n /** Background image scaling. */\n scaling?: ScalingWithLiterals;\n /** Position of background. Defaults to `CENTER`. */\n position?: ImagePositionPositionWithLiterals;\n /** Color or gradient drawn on top of the image. When present, this is the authoritative overlay and `opacity` is ignored. Its presence also marks content as authored under the new overlay model (vs. the legacy `opacity`-based dimming on `background`). */\n overlay?: CardDataBackground;\n /** Blur radius in pixels applied to the image layer. `0` (default) leaves the image unblurred; blur is independent of any color overlay and the two stack. */\n blur?: number | null;\n}\n\nexport interface TocData {\n /** Heading levels included in the table of contents. Default: [1, 2, 3, 4, 5, 6]. */\n includedHeadings?: number[];\n /** List style. Default: PLAIN. */\n listStyle?: ListStyleWithLiterals;\n /** Optional override for the font size in pixels. */\n fontSize?: number | null;\n /** Optional override for the vertical spacing between items in pixels. */\n itemSpacing?: number | null;\n /**\n * Optional override for the text color.\n * @maxLength 19\n */\n color?: string | null;\n /** Indentation style. Default: NESTED. */\n indentation?: IndentationWithLiterals;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** List style. */\nexport enum ListStyle {\n /** No markers (default) */\n PLAIN = 'PLAIN',\n /** Numbered list */\n NUMBERED = 'NUMBERED',\n /** Alphabetic letters */\n LETTERS = 'LETTERS',\n /** Roman numerals */\n ROMAN = 'ROMAN',\n /** Bulleted list */\n BULLETED = 'BULLETED',\n /** Alphabetical index */\n ALPHABETICAL_INDEX = 'ALPHABETICAL_INDEX',\n /** Alphabetical index (compact top-row only) */\n ALPHABETICAL_INDEX_COMPACT = 'ALPHABETICAL_INDEX_COMPACT',\n}\n\n/** @enumType */\nexport type ListStyleWithLiterals =\n | ListStyle\n | 'PLAIN'\n | 'NUMBERED'\n | 'LETTERS'\n | 'ROMAN'\n | 'BULLETED'\n | 'ALPHABETICAL_INDEX'\n | 'ALPHABETICAL_INDEX_COMPACT';\n\n/** Indentation style. */\nexport enum Indentation {\n /** Sub-headings indented under parents (default) */\n NESTED = 'NESTED',\n /** All items at the same level */\n FLAT = 'FLAT',\n}\n\n/** @enumType */\nexport type IndentationWithLiterals = Indentation | 'NESTED' | 'FLAT';\n\n/** Data for a smart block node. */\nexport interface SmartBlockData {\n /** The type of the smart block. */\n type?: SmartBlockDataTypeWithLiterals;\n /** Layout orientation. HORIZONTAL or VERTICAL. Optional for variants with fixed orientation. */\n orientation?: string | null;\n /** Column size controlling cells per row. */\n columnSize?: ColumnSizeWithLiterals;\n /**\n * Border color (for SOLID_JOINED_BOXES variant).\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Border width in pixels (for SOLID_JOINED_BOXES variant). */\n borderWidth?: number | null;\n /** Border radius in pixels (for SOLID_JOINED_BOXES variant). */\n borderRadius?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** Layout type of the smart block */\nexport enum SmartBlockDataType {\n /** Grid-based layouts with solid box items containing title, body, and icon/image. */\n SOLID_BOXES = 'SOLID_BOXES',\n /** Numbered boxes. */\n NUMBERED_BOXES = 'NUMBERED_BOXES',\n /** Statistics display with large numbers/values. */\n STATS = 'STATS',\n /** Statistics with circular visual elements. */\n CIRCLE_STATS = 'CIRCLE_STATS',\n /** Staggered/zigzag grid layout with alternating box positions. */\n SOLID_BOXES_ALTERNATING = 'SOLID_BOXES_ALTERNATING',\n /** Grid layout with boxes visually joined (no gaps, shared container border). */\n SOLID_JOINED_BOXES = 'SOLID_JOINED_BOXES',\n /** Transparent cells with only a left side line. */\n SIDE_LINE_TEXT = 'SIDE_LINE_TEXT',\n /** Transparent cells with only a top line. */\n TOP_LINE_TEXT = 'TOP_LINE_TEXT',\n /** Outlined boxes with a numbered/icon circle at the top. */\n OUTLINE_BOXES_WITH_TOP_CIRCLE = 'OUTLINE_BOXES_WITH_TOP_CIRCLE',\n /** Large icon bullets with text content. */\n BIG_BULLETS = 'BIG_BULLETS',\n /** Small dot bullets with text content. */\n SMALL_BULLETS = 'SMALL_BULLETS',\n /** Arrow icon bullets with text content. */\n ARROW_BULLETS = 'ARROW_BULLETS',\n /** Process steps with numbered/icon labels above a horizontal line. */\n PROCESS_STEPS = 'PROCESS_STEPS',\n /** Statistics with bar visual elements. */\n BAR_STATS = 'BAR_STATS',\n /** Timeline layout with numbered chips on a connecting line; cells alternate around the line. */\n TIMELINE = 'TIMELINE',\n /** Timeline layout with plain dot indicators; no numbers or shapes; cells alternate around the line. */\n MINIMAL_TIMELINE = 'MINIMAL_TIMELINE',\n /** Numbered pill-shaped labels (stadium chips) with text content; supports HORIZONTAL (pill on top) and VERTICAL (pill on left) orientations. */\n PILLS = 'PILLS',\n /** Star rating display with stars and a numeric value per cell. */\n STAR_RATING = 'STAR_RATING',\n /** Outlined boxes with decorative quote glyphs at the top-left and bottom-right corners. */\n QUOTE_BOXES = 'QUOTE_BOXES',\n /** Donut/ring with numbered annular-sector segments; cell text labels sit outside the ring. */\n CIRCLE = 'CIRCLE',\n /** Hierarchical pyramid where each cell renders as a horizontal slice (apex at top, base at bottom) with the cell number or shape centered inside; text content sits beside (desktop) or below (mobile) the pyramid. */\n PYRAMID = 'PYRAMID',\n /** Cells render a horizontal bar whose width scales with cell index, creating a staircase pattern; bar carries the cell number or a custom shape. */\n STAIRCASE = 'STAIRCASE',\n /** Hierarchical funnel where each cell renders as a horizontal slice (wide at top, narrowing toward the bottom) with the cell number or shape centered inside; text content sits beside (desktop) or below (mobile) the funnel. */\n VERTICAL_FUNNEL = 'VERTICAL_FUNNEL',\n}\n\n/** @enumType */\nexport type SmartBlockDataTypeWithLiterals =\n | SmartBlockDataType\n | 'SOLID_BOXES'\n | 'NUMBERED_BOXES'\n | 'STATS'\n | 'CIRCLE_STATS'\n | 'SOLID_BOXES_ALTERNATING'\n | 'SOLID_JOINED_BOXES'\n | 'SIDE_LINE_TEXT'\n | 'TOP_LINE_TEXT'\n | 'OUTLINE_BOXES_WITH_TOP_CIRCLE'\n | 'BIG_BULLETS'\n | 'SMALL_BULLETS'\n | 'ARROW_BULLETS'\n | 'PROCESS_STEPS'\n | 'BAR_STATS'\n | 'TIMELINE'\n | 'MINIMAL_TIMELINE'\n | 'PILLS'\n | 'STAR_RATING'\n | 'QUOTE_BOXES'\n | 'CIRCLE'\n | 'PYRAMID'\n | 'STAIRCASE'\n | 'VERTICAL_FUNNEL';\n\n/** Column size controlling how many cells appear per row. */\nexport enum ColumnSize {\n /** Up to 4 cells in a row. */\n SMALL = 'SMALL',\n /** Up to 3 cells in a row (default). */\n MEDIUM = 'MEDIUM',\n /** Up to 2 cells in a row. */\n LARGE = 'LARGE',\n /** 1 cell in a row. */\n EXTRA_LARGE = 'EXTRA_LARGE',\n}\n\n/** @enumType */\nexport type ColumnSizeWithLiterals =\n | ColumnSize\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE'\n | 'EXTRA_LARGE';\n\n/** Data for a smart block cell node. */\nexport interface SmartBlockCellData {\n /** Optional label text for the cell (e.g., for stats variants). */\n label?: string | null;\n /** Shape file details. */\n shape?: Media;\n /**\n * Border color of the cell.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /** The type of the parent smart block (must match parent). */\n type?: SmartBlockDataTypeWithLiterals;\n /**\n * Accent color for non-background variants (e.g., line, bullet, label color).\n * @maxLength 19\n */\n accentColor?: string | null;\n /**\n * Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES).\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Shape fill color as a hexadecimal value.\n * @maxLength 19\n */\n shapeColor?: string | null;\n}\n\nexport interface CheckboxListData {\n /** Indentation level from 0-4. */\n indentation?: number;\n /** Offset level from 0-4. */\n offset?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface ListItemNodeData {\n /** Checkbox list item state. Defaults to `false`. */\n checked?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n /** Styling of the list item's marker (bullet or number), independent of the item's text. Unset properties follow the item's text. */\n markerStyle?: ListItemMarkerStyle;\n}\n\nexport interface ListItemMarkerStyle {\n /** Marker font size. */\n fontSize?: FontSizeData;\n /** Marker font weight, for example `700` for bold. */\n fontWeight?: number | null;\n /** Whether the marker is italic. */\n italic?: boolean | null;\n /** Marker color. */\n color?: ListItemMarkerColor;\n /** Marker font family. */\n fontFamily?: FontFamilyData;\n}\n\nexport interface ListItemMarkerColor {\n /** Marker fill styling. */\n foregroundStyle?: ListItemMarkerColorBackground;\n}\n\n/** Background type */\nexport enum ListItemMarkerColorBackgroundType {\n /** Solid color */\n COLOR = 'COLOR',\n}\n\n/** @enumType */\nexport type ListItemMarkerColorBackgroundTypeWithLiterals =\n | ListItemMarkerColorBackgroundType\n | 'COLOR';\n\n/** Fill styling: a solid color, shaped as `ColorData.Background` so other fills can be added later */\nexport interface ListItemMarkerColorBackground {\n /** Background type. */\n type?: ListItemMarkerColorBackgroundTypeWithLiterals;\n /**\n * Color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n}\n\nexport interface SlotData {\n /** Integration type, for example `wix.forms.form`. Used to render the slot in the editor and viewer. */\n integrationType?: string | null;\n /** ID of the resource the slot renders, for example a form ID. Passed as-is to the integration. */\n resourceId?: string | null;\n /** Node animation. */\n animation?: Animation;\n /** Design overrides for this slot. Unset colours use the Ricos theme; unset sizes default to 0. */\n design?: SlotDesign;\n}\n\nexport interface SlotDesign {\n /** Text colour: CSS colour or `$theme-color-N[-opacity]` token. */\n textColor?: string | null;\n /** Accent colour. */\n accentColor?: string | null;\n /** Button background colour. */\n buttonColor?: string | null;\n /** Button text colour. */\n buttonTextColor?: string | null;\n /** Block background colour. */\n backgroundColor?: string | null;\n /** Block border colour. */\n borderColor?: string | null;\n /** Block border width, px. */\n borderWidth?: number | null;\n /** Block corner radius, px. */\n borderRadius?: number | null;\n /** Horizontal inner padding, px. */\n paddingHorizontal?: number | null;\n /** Vertical inner padding, px. */\n paddingVertical?: number | null;\n /** Vertical gap between rows, px. */\n rowGap?: number | null;\n /** Horizontal gap between columns, px. */\n columnGap?: number | null;\n}\n\nexport interface Metadata {\n /** Schema version. */\n version?: number;\n /**\n * When the object was created.\n * @readonly\n * @deprecated\n */\n createdTimestamp?: Date | null;\n /**\n * When the object was most recently updated.\n * @deprecated\n */\n updatedTimestamp?: Date | null;\n /** Object ID. */\n _id?: string | null;\n}\n\nexport interface DocumentStyle {\n /** Styling for H1 nodes. */\n headerOne?: TextNodeStyle;\n /** Styling for H2 nodes. */\n headerTwo?: TextNodeStyle;\n /** Styling for H3 nodes. */\n headerThree?: TextNodeStyle;\n /** Styling for H4 nodes. */\n headerFour?: TextNodeStyle;\n /** Styling for H5 nodes. */\n headerFive?: TextNodeStyle;\n /** Styling for H6 nodes. */\n headerSix?: TextNodeStyle;\n /** Styling for paragraph nodes. */\n paragraph?: TextNodeStyle;\n /** Styling for block quote nodes. */\n blockquote?: TextNodeStyle;\n /** Styling for code block nodes. */\n codeBlock?: TextNodeStyle;\n}\n\nexport interface TextNodeStyle {\n /** The decorations to apply to the node. */\n decorations?: Decoration[];\n /** Padding and background color for the node. */\n nodeStyle?: NodeStyle;\n /** Line height for text in the node. */\n lineHeight?: string | null;\n}\n\nexport interface ConvertToRicosDocumentRequest\n extends ConvertToRicosDocumentRequestSourceOneOf {\n /**\n * Markdown content to convert.\n * @maxLength 30000\n */\n markdown?: string;\n /**\n * HTML content to convert.\n * @maxLength 30000\n */\n html?: string;\n /**\n * Plain text content to convert.\n * @maxLength 30000\n */\n plainText?: string;\n /** Options for the converted Ricos document. */\n options?: RicosDocumentOptions;\n}\n\n/** @oneof */\nexport interface ConvertToRicosDocumentRequestSourceOneOf {\n /**\n * Markdown content to convert.\n * @maxLength 30000\n */\n markdown?: string;\n /**\n * HTML content to convert.\n * @maxLength 30000\n */\n html?: string;\n /**\n * Plain text content to convert.\n * @maxLength 30000\n */\n plainText?: string;\n}\n\nexport interface RicosDocumentOptions {\n /**\n * [Plugins](https://dev.wix.com/docs/ricos/getting-started/introduction#plugins) to enable in the Ricos document to create.\n *\n * Used only when converting from HTML.\n * @maxSize 100\n */\n plugins?: PluginWithLiterals[];\n}\n\nexport interface ConvertToRicosDocumentResponse {\n /** Specified content in Ricos document format. */\n document?: RichContent;\n}\n\nexport interface ConvertFromRicosDocumentRequest\n extends ConvertFromRicosDocumentRequestOptionsOneOf {\n /** Options for converting to plain text. */\n plainTextOptions?: PlainTextOptions;\n /** Ricos document to convert. */\n document: RichContent;\n /** Format to convert the document to. */\n targetFormat: TargetFormatWithLiterals;\n}\n\n/** @oneof */\nexport interface ConvertFromRicosDocumentRequestOptionsOneOf {\n /** Options for converting to plain text. */\n plainTextOptions?: PlainTextOptions;\n}\n\n/** Format to convert the document to. */\nexport enum TargetFormat {\n MARKDOWN = 'MARKDOWN',\n HTML = 'HTML',\n PLAIN_TEXT = 'PLAIN_TEXT',\n}\n\n/** @enumType */\nexport type TargetFormatWithLiterals =\n | TargetFormat\n | 'MARKDOWN'\n | 'HTML'\n | 'PLAIN_TEXT';\n\nexport interface PlainTextOptions {\n /**\n * Whether to include the URLs of links in the plain text.\n *\n * Default: `false`\n */\n includeLinks?: boolean;\n /**\n * Whether to include the URLs of media, such as images, in the plain text.\n *\n * Default: `false`\n */\n includeMediaLinks?: boolean;\n}\n\nexport interface ConvertFromRicosDocumentResponse\n extends ConvertFromRicosDocumentResponseResultOneOf {\n /**\n * Specified Ricos document in Markdown format.\n * @maxLength 30000\n */\n markdown?: string;\n /**\n * Specified Ricos document in HTML format.\n * @maxLength 30000\n */\n html?: string;\n /**\n * Specified Ricos document in plain text format.\n * @maxLength 30000\n */\n plainText?: string;\n}\n\n/** @oneof */\nexport interface ConvertFromRicosDocumentResponseResultOneOf {\n /**\n * Specified Ricos document in Markdown format.\n * @maxLength 30000\n */\n markdown?: string;\n /**\n * Specified Ricos document in HTML format.\n * @maxLength 30000\n */\n html?: string;\n /**\n * Specified Ricos document in plain text format.\n * @maxLength 30000\n */\n plainText?: string;\n}\n\nexport interface GenerateFileDownloadUrlRequest {\n /**\n * ID of the file, as specified in the file node's `fileData.src.id`.\n *\n * Can include a path prefix. For example, `ugd/1a2b3c_4d5e6f.pdf` and `1a2b3c_4d5e6f.pdf` refer to the same file.\n * @maxLength 1000\n */\n fileId: string;\n}\n\nexport interface GenerateFileDownloadUrlResponse {\n /**\n * Download URLs for the file.\n *\n * Contains a single URL for the original file.\n * @maxSize 100\n */\n downloadUrls?: FileDownloadUrl[];\n}\n\nexport interface FileDownloadUrl {\n /**\n * Temporary URL that downloads the file as an attachment. Expires after 10 hours.\n * @format WEB_URL\n */\n url?: string;\n /**\n * Key of the file asset the URL downloads. `src` is the original file.\n * @maxLength 100\n */\n assetKey?: string;\n}\n\nexport interface GenerateFileUploadUrlRequest {\n /**\n * MIME type of the file to upload. For example, `application/pdf`.\n * @maxLength 255\n */\n mimeType: string;\n /**\n * Name of the file as it appears in the Media Manager.\n * @maxLength 1000\n */\n fileName?: string | null;\n /**\n * ID of the Media Manager folder to upload the file to. Learn more about [folders](https://dev.wix.com/docs/api-reference/assets/media/media-manager/folders/introduction).\n *\n * Default: Media Manager root folder\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * Whether the file is private. Private files can't be accessed from their file URL.\n * To download a private file, call [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url).\n *\n * Default: `false`\n */\n private?: boolean | null;\n}\n\nexport interface GenerateFileUploadUrlResponse {\n /**\n * URL to upload the file to with a `PUT` request. Expires after 24 hours.\n * @format WEB_URL\n */\n uploadUrl?: string;\n}\n\nexport interface GenerateSiteMediaTokenRequest {}\n\nexport interface GenerateSiteMediaTokenResponse {\n /**\n * Site media token to pass to the Wix media tool. Expires after 14 days.\n * Treat the token as a secret. Don't log it or share it.\n * @maxLength 5000\n */\n token?: string;\n}\n\n/** @docsIgnore */\nexport type GenerateFileDownloadUrlApplicationErrors = {\n code?: 'MEDIA_RESOURCE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GenerateSiteMediaTokenApplicationErrors = {\n code?: 'WIX_USER_REQUIRED';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Checks whether a Ricos document is valid given the specified plugins.\n *\n * Use the `fixDocument` parameter to include a valid version of your Ricos document in the response.\n * @param document - Ricos document to validate.\n *\n * Accepts any JSON object, including documents that aren't valid Ricos documents.\n * @public\n * @requiredField document\n * @param options - Options to use when validating the document.\n * @permissionId RICOS.RICOS_DOCUMENT_VALIDATE\n * @applicableIdentity APP\n * @fqn wix.ricos.v1.RicosDocument.ValidateDocument\n */\nexport async function validateDocument(\n document: Record<string, any> | null,\n options?: ValidateDocumentOptions\n): Promise<ValidateDocumentResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n document: document,\n plugins: options?.plugins,\n fixDocument: options?.fixDocument,\n });\n\n const reqOpts = ambassadorWixRicosV1Document.validateDocument(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 document: '$[0]',\n plugins: '$[1].plugins',\n fixDocument: '$[1].fixDocument',\n },\n singleArgumentUnchanged: false,\n },\n ['document', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ValidateDocumentOptions {\n /**\n * List of [plugins](https://dev.wix.com/docs/ricos/getting-started/introduction#plugins) to enable in the document.\n * @maxSize 100\n */\n plugins?: PluginWithLiterals[];\n /**\n * Whether to return a valid version of the document in the response.\n *\n * Default: `false`\n */\n fixDocument?: boolean;\n}\n\n/**\n * Converts content in the specified format to a Ricos document.\n * @public\n * @requiredField options.source\n * @param options - Options to use when converting to a Ricos document.\n * @permissionId RICOS.RICOS_DOCUMENT_CONVERT_TO\n * @applicableIdentity APP\n * @fqn wix.ricos.v1.RicosDocument.ConvertToRicosDocument\n */\nexport async function convertToRicosDocument(\n options?: ConvertToRicosDocumentOptions\n): Promise<ConvertToRicosDocumentResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n markdown: options?.markdown,\n html: options?.html,\n plainText: options?.plainText,\n options: options?.options,\n });\n\n const reqOpts = ambassadorWixRicosV1Document.convertToRicosDocument(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 markdown: '$[0].markdown',\n html: '$[0].html',\n plainText: '$[0].plainText',\n options: '$[0].options',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ConvertToRicosDocumentOptions\n extends ConvertToRicosDocumentOptionsSourceOneOf {\n /**\n * Markdown content to convert.\n * @maxLength 30000\n */\n markdown?: string;\n /**\n * HTML content to convert.\n * @maxLength 30000\n */\n html?: string;\n /**\n * Plain text content to convert.\n * @maxLength 30000\n */\n plainText?: string;\n /** Options for the converted Ricos document. */\n options?: RicosDocumentOptions;\n}\n\n/** @oneof */\nexport interface ConvertToRicosDocumentOptionsSourceOneOf {\n /**\n * Markdown content to convert.\n * @maxLength 30000\n */\n markdown?: string;\n /**\n * HTML content to convert.\n * @maxLength 30000\n */\n html?: string;\n /**\n * Plain text content to convert.\n * @maxLength 30000\n */\n plainText?: string;\n}\n\n/**\n * Converts a Ricos document to the specified format.\n * @param document - Ricos document to convert.\n * @param targetFormat - Format to convert the document to.\n * @public\n * @requiredField document\n * @requiredField targetFormat\n * @param options - Options to use when converting from a Ricos document.\n * @permissionId RICOS.RICOS_DOCUMENT_CONVERT_FROM\n * @applicableIdentity APP\n * @fqn wix.ricos.v1.RicosDocument.ConvertFromRicosDocument\n */\nexport async function convertFromRicosDocument(\n document: RichContent,\n targetFormat: TargetFormatWithLiterals,\n options?: ConvertFromRicosDocumentOptions\n): Promise<ConvertFromRicosDocumentResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n document: document,\n targetFormat: targetFormat,\n plainTextOptions: options?.plainTextOptions,\n });\n\n const reqOpts =\n ambassadorWixRicosV1Document.convertFromRicosDocument(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 document: '$[0]',\n targetFormat: '$[1]',\n plainTextOptions: '$[2].plainTextOptions',\n },\n singleArgumentUnchanged: false,\n },\n ['document', 'targetFormat', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ConvertFromRicosDocumentOptions\n extends ConvertFromRicosDocumentOptionsOptionsOneOf {\n /** Options for converting to plain text. */\n plainTextOptions?: PlainTextOptions;\n}\n\n/** @oneof */\nexport interface ConvertFromRicosDocumentOptionsOptionsOneOf {\n /** Options for converting to plain text. */\n plainTextOptions?: PlainTextOptions;\n}\n\n/**\n * Generates a temporary URL for downloading the file referenced by a file node in a Ricos document.\n *\n * Specify the file node's `fileData.src.id` as `fileId`. The returned URL downloads the original file\n * as an attachment and expires after 10 hours. Private files are supported, so you can use this method\n * to let site visitors download files that aren't publicly accessible.\n *\n * The method doesn't check whether the file appears in a specific document. Any file of the site can be\n * retrieved by its ID, so control which file IDs you expose to site visitors in your app.\n *\n * If the file doesn't exist, the method fails with a `MEDIA_RESOURCE_NOT_FOUND` error.\n * @param fileId - ID of the file, as specified in the file node's `fileData.src.id`.\n *\n * Can include a path prefix. For example, `ugd/1a2b3c_4d5e6f.pdf` and `1a2b3c_4d5e6f.pdf` refer to the same file.\n * @public\n * @documentationMaturity preview\n * @requiredField fileId\n * @permissionId ricos:v1:document:generate_file_download_url\n * @applicableIdentity APP\n * @fqn wix.ricos.v1.RicosDocument.GenerateFileDownloadUrl\n */\nexport async function generateFileDownloadUrl(fileId: string): Promise<\n GenerateFileDownloadUrlResponse & {\n __applicationErrorsType?: GenerateFileDownloadUrlApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fileId: fileId });\n\n const reqOpts = ambassadorWixRicosV1Document.generateFileDownloadUrl(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: { fileId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fileId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Generates a URL for uploading a file to the site's Media Manager, so you can add the file to a Ricos document.\n *\n * To upload the file, send a `PUT` request to `uploadUrl` with the file content as the request body and a\n * `Content-Type` header that matches `mimeType`. If you didn't specify `fileName`, add the file name as the\n * `filename` query parameter. For example, `PUT {uploadUrl}?filename=report.pdf`. The URL expires after 24 hours.\n * Learn more about the [Upload API](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api).\n *\n * The upload response contains the uploaded file's\n * [file descriptor](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-object).\n * Specify its `file.id` as the file node's `fileData.src.id` in the Ricos document.\n * A successful upload response doesn't mean the file is ready. To run code when it's ready, listen for the\n * [File Ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-ready) and\n * [File Failed](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-failed) events.\n *\n * Use this method to let site visitors and members add files to the content they create.\n * To download a private file, call [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url).\n *\n * This method doesn't support resumable uploads. For the supported file types and sizes, see\n * [Wix Media: Supported Media File Types and File Sizes](https://support.wix.com/en/article/wix-media-supported-media-file-types-and-file-sizes).\n * @param mimeType - MIME type of the file to upload. For example, `application/pdf`.\n * @public\n * @documentationMaturity preview\n * @requiredField mimeType\n * @permissionId ricos:v1:document:generate_file_upload_url\n * @applicableIdentity APP\n * @fqn wix.ricos.v1.RicosDocument.GenerateFileUploadUrl\n */\nexport async function generateFileUploadUrl(\n mimeType: string,\n options?: GenerateFileUploadUrlOptions\n): Promise<GenerateFileUploadUrlResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mimeType: mimeType,\n fileName: options?.fileName,\n parentFolderId: options?.parentFolderId,\n private: options?.private,\n });\n\n const reqOpts = ambassadorWixRicosV1Document.generateFileUploadUrl(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 mimeType: '$[0]',\n fileName: '$[1].fileName',\n parentFolderId: '$[1].parentFolderId',\n private: '$[1].private',\n },\n singleArgumentUnchanged: false,\n },\n ['mimeType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GenerateFileUploadUrlOptions {\n /**\n * Name of the file as it appears in the Media Manager.\n * @maxLength 1000\n */\n fileName?: string | null;\n /**\n * ID of the Media Manager folder to upload the file to. Learn more about [folders](https://dev.wix.com/docs/api-reference/assets/media/media-manager/folders/introduction).\n *\n * Default: Media Manager root folder\n * @maxLength 100\n */\n parentFolderId?: string | null;\n /**\n * Whether the file is private. Private files can't be accessed from their file URL.\n * To download a private file, call [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url).\n *\n * Default: `false`\n */\n private?: boolean | null;\n}\n\n/**\n * Generates a site media token that lets a Ricos editor open Wix media tools, such as Image Studio, for the current Wix user.\n *\n * Pass the token as `siteToken` when you open Image Studio from the Ricos image plugin. The token identifies\n * the site and the Wix user, and is valid only in a browser where that user is logged in to Wix.\n * It expires after 14 days, so you can reuse it for the editor session.\n *\n * Only Wix users can call this method. Calls by site members, site visitors, or anonymous callers\n * fail with a permission error. Wix app calls without a Wix user fail with a `WIX_USER_REQUIRED` error.\n * @public\n * @documentationMaturity preview\n * @permissionId ricos:v1:document:generate_site_media_token\n * @applicableIdentity APP\n * @fqn wix.ricos.v1.RicosDocument.GenerateSiteMediaToken\n */\nexport async function generateSiteMediaToken(): Promise<\n GenerateSiteMediaTokenResponse & {\n __applicationErrorsType?: GenerateSiteMediaTokenApplicationErrors;\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 = ambassadorWixRicosV1Document.generateSiteMediaToken(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","import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { 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: 'validDocument.nodes.buttonData.styles.background.gradient.centerX' },\n { path: 'validDocument.nodes.buttonData.styles.background.gradient.centerY' },\n {\n path: 'validDocument.nodes.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'validDocument.nodes.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'validDocument.nodes.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'validDocument.nodes.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n { path: 'validDocument.nodes.galleryData.items.image.media.duration' },\n { path: 'validDocument.nodes.galleryData.items.video.media.duration' },\n { path: 'validDocument.nodes.galleryData.items.video.thumbnail.duration' },\n { path: 'validDocument.nodes.galleryData.options.item.ratio' },\n { path: 'validDocument.nodes.imageData.image.duration' },\n { path: 'validDocument.nodes.imageData.crop.x' },\n { path: 'validDocument.nodes.imageData.crop.y' },\n { path: 'validDocument.nodes.imageData.crop.width' },\n { path: 'validDocument.nodes.imageData.crop.height' },\n { path: 'validDocument.nodes.mapData.mapSettings.lat' },\n { path: 'validDocument.nodes.mapData.mapSettings.lng' },\n { path: 'validDocument.nodes.pollData.poll.image.duration' },\n { path: 'validDocument.nodes.pollData.poll.options.image.duration' },\n {\n path: 'validDocument.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'validDocument.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'validDocument.nodes.appEmbedData.image.duration' },\n { path: 'validDocument.nodes.videoData.video.duration' },\n { path: 'validDocument.nodes.videoData.thumbnail.duration' },\n { path: 'validDocument.nodes.audioData.audio.duration' },\n { path: 'validDocument.nodes.audioData.coverImage.duration' },\n { path: 'validDocument.nodes.layoutData.backgroundImage.media.duration' },\n {\n path: 'validDocument.nodes.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'validDocument.nodes.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'validDocument.nodes.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'validDocument.nodes.layoutData.backdropImage.media.duration' },\n {\n path: 'validDocument.nodes.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'validDocument.nodes.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'validDocument.nodes.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n { path: 'validDocument.nodes.layoutData.background.gradient.centerX' },\n { path: 'validDocument.nodes.layoutData.background.gradient.centerY' },\n { path: 'validDocument.nodes.layoutData.background.gradient.stops.position' },\n { path: 'validDocument.nodes.layoutData.backdrop.gradient.centerX' },\n { path: 'validDocument.nodes.layoutData.backdrop.gradient.centerY' },\n { path: 'validDocument.nodes.layoutData.backdrop.gradient.stops.position' },\n { path: 'validDocument.nodes.shapeData.shape.duration' },\n { path: 'validDocument.nodes.cardData.background.gradient.centerX' },\n { path: 'validDocument.nodes.cardData.background.gradient.centerY' },\n { path: 'validDocument.nodes.cardData.background.gradient.stops.position' },\n { path: 'validDocument.nodes.cardData.backgroundImage.media.duration' },\n {\n path: 'validDocument.nodes.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'validDocument.nodes.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'validDocument.nodes.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'validDocument.nodes.tocData.fontSize' },\n { path: 'validDocument.nodes.tocData.itemSpacing' },\n { path: 'validDocument.nodes.smartBlockCellData.shape.duration' },\n {\n path: 'validDocument.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'validDocument.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'validDocument.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'validDocument.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n];\nconst TRANSFORM_PATHS_1 = [\n { path: 'validDocument.metadata.createdTimestamp' },\n { path: 'validDocument.metadata.updatedTimestamp' },\n];\nconst TRANSFORM_PATHS_2 = [\n { path: 'document.nodes.buttonData.styles.background.gradient.centerX' },\n { path: 'document.nodes.buttonData.styles.background.gradient.centerY' },\n {\n path: 'document.nodes.buttonData.styles.background.gradient.stops.position',\n },\n { path: 'document.nodes.buttonData.styles.backgroundHover.gradient.centerX' },\n { path: 'document.nodes.buttonData.styles.backgroundHover.gradient.centerY' },\n {\n path: 'document.nodes.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n { path: 'document.nodes.galleryData.items.image.media.duration' },\n { path: 'document.nodes.galleryData.items.video.media.duration' },\n { path: 'document.nodes.galleryData.items.video.thumbnail.duration' },\n { path: 'document.nodes.galleryData.options.item.ratio' },\n { path: 'document.nodes.imageData.image.duration' },\n { path: 'document.nodes.imageData.crop.x' },\n { path: 'document.nodes.imageData.crop.y' },\n { path: 'document.nodes.imageData.crop.width' },\n { path: 'document.nodes.imageData.crop.height' },\n { path: 'document.nodes.mapData.mapSettings.lat' },\n { path: 'document.nodes.mapData.mapSettings.lng' },\n { path: 'document.nodes.pollData.poll.image.duration' },\n { path: 'document.nodes.pollData.poll.options.image.duration' },\n { path: 'document.nodes.pollData.design.poll.background.image.duration' },\n {\n path: 'document.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'document.nodes.appEmbedData.image.duration' },\n { path: 'document.nodes.videoData.video.duration' },\n { path: 'document.nodes.videoData.thumbnail.duration' },\n { path: 'document.nodes.audioData.audio.duration' },\n { path: 'document.nodes.audioData.coverImage.duration' },\n { path: 'document.nodes.layoutData.backgroundImage.media.duration' },\n {\n path: 'document.nodes.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'document.nodes.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'document.nodes.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'document.nodes.layoutData.backdropImage.media.duration' },\n { path: 'document.nodes.layoutData.backdropImage.overlay.gradient.centerX' },\n { path: 'document.nodes.layoutData.backdropImage.overlay.gradient.centerY' },\n {\n path: 'document.nodes.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n { path: 'document.nodes.layoutData.background.gradient.centerX' },\n { path: 'document.nodes.layoutData.background.gradient.centerY' },\n { path: 'document.nodes.layoutData.background.gradient.stops.position' },\n { path: 'document.nodes.layoutData.backdrop.gradient.centerX' },\n { path: 'document.nodes.layoutData.backdrop.gradient.centerY' },\n { path: 'document.nodes.layoutData.backdrop.gradient.stops.position' },\n { path: 'document.nodes.shapeData.shape.duration' },\n { path: 'document.nodes.cardData.background.gradient.centerX' },\n { path: 'document.nodes.cardData.background.gradient.centerY' },\n { path: 'document.nodes.cardData.background.gradient.stops.position' },\n { path: 'document.nodes.cardData.backgroundImage.media.duration' },\n { path: 'document.nodes.cardData.backgroundImage.overlay.gradient.centerX' },\n { path: 'document.nodes.cardData.backgroundImage.overlay.gradient.centerY' },\n {\n path: 'document.nodes.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'document.nodes.tocData.fontSize' },\n { path: 'document.nodes.tocData.itemSpacing' },\n { path: 'document.nodes.smartBlockCellData.shape.duration' },\n {\n path: 'document.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'document.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'document.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'document.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n];\nconst TRANSFORM_PATHS_3 = [\n { path: 'document.metadata.createdTimestamp' },\n { path: 'document.metadata.updatedTimestamp' },\n];\n\nfunction resolveWixRicosV1RicosDocumentUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/ricos/v1/ricos-document',\n destPath: '/v1/ricos-document',\n },\n ],\n _: [\n {\n srcPath: '/ricos/v1/ricos-document',\n destPath: '/v1/ricos-document',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ricos/v1/ricos-document',\n destPath: '/v1/ricos-document',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/ricos-document-api',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/ricos-document-api',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/ricos-document-api',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/ricos-document-api',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_rich-content_ricos-documents';\n\n/**\n * Checks whether a Ricos document is valid given the specified plugins.\n *\n * Use the `fixDocument` parameter to include a valid version of your Ricos document in the response.\n */\nexport function validateDocument(payload: object): RequestOptionsFactory<any> {\n function __validateDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosDocument.ValidateDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosDocumentUrl({\n protoPath: '/v1/ricos-document/validate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: TRANSFORM_PATHS_0,\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __validateDocument;\n}\n\n/** Converts content in the specified format to a Ricos document. */\nexport function convertToRicosDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __convertToRicosDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosDocument.ConvertToRicosDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosDocumentUrl({\n protoPath: '/v1/ricos-document/convert/to-ricos',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: TRANSFORM_PATHS_2,\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_3,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __convertToRicosDocument;\n}\n\n/** Converts a Ricos document to the specified format. */\nexport function convertFromRicosDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __convertFromRicosDocument({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: TRANSFORM_PATHS_2,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_3,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ricos.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosDocument.ConvertFromRicosDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosDocumentUrl({\n protoPath: '/v1/ricos-document/convert/from-ricos',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __convertFromRicosDocument;\n}\n\n/**\n * Generates a temporary URL for downloading the file referenced by a file node in a Ricos document.\n *\n * Specify the file node's `fileData.src.id` as `fileId`. The returned URL downloads the original file\n * as an attachment and expires after 10 hours. Private files are supported, so you can use this method\n * to let site visitors download files that aren't publicly accessible.\n *\n * The method doesn't check whether the file appears in a specific document. Any file of the site can be\n * retrieved by its ID, so control which file IDs you expose to site visitors in your app.\n *\n * If the file doesn't exist, the method fails with a `MEDIA_RESOURCE_NOT_FOUND` error.\n */\nexport function generateFileDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosDocument.GenerateFileDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosDocumentUrl({\n protoPath: '/v1/ricos-document/generate-file-download-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileDownloadUrl;\n}\n\n/**\n * Generates a URL for uploading a file to the site's Media Manager, so you can add the file to a Ricos document.\n *\n * To upload the file, send a `PUT` request to `uploadUrl` with the file content as the request body and a\n * `Content-Type` header that matches `mimeType`. If you didn't specify `fileName`, add the file name as the\n * `filename` query parameter. For example, `PUT {uploadUrl}?filename=report.pdf`. The URL expires after 24 hours.\n * Learn more about the [Upload API](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api).\n *\n * The upload response contains the uploaded file's\n * [file descriptor](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-object).\n * Specify its `file.id` as the file node's `fileData.src.id` in the Ricos document.\n * A successful upload response doesn't mean the file is ready. To run code when it's ready, listen for the\n * [File Ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-ready) and\n * [File Failed](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-failed) events.\n *\n * Use this method to let site visitors and members add files to the content they create.\n * To download a private file, call [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url).\n *\n * This method doesn't support resumable uploads. For the supported file types and sizes, see\n * [Wix Media: Supported Media File Types and File Sizes](https://support.wix.com/en/article/wix-media-supported-media-file-types-and-file-sizes).\n */\nexport function generateFileUploadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateFileUploadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosDocument.GenerateFileUploadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosDocumentUrl({\n protoPath: '/v1/ricos-document/generate-file-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateFileUploadUrl;\n}\n\n/**\n * Generates a site media token that lets a Ricos editor open Wix media tools, such as Image Studio, for the current Wix user.\n *\n * Pass the token as `siteToken` when you open Image Studio from the Ricos image plugin. The token identifies\n * the site and the Wix user, and is valid only in a browser where that user is logged in to Wix.\n * It expires after 14 days, so you can reuse it for the editor session.\n *\n * Only Wix users can call this method. Calls by site members, site visitors, or anonymous callers\n * fail with a permission error. Wix app calls without a Wix user fail with a `WIX_USER_REQUIRED` error.\n */\nexport function generateSiteMediaToken(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateSiteMediaToken({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosDocument.GenerateSiteMediaToken',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosDocumentUrl({\n protoPath: '/v1/ricos-document/generate-site-media-token',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateSiteMediaToken;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n ConvertFromRicosDocumentOptions,\n ConvertFromRicosDocumentResponse,\n ConvertToRicosDocumentOptions,\n ConvertToRicosDocumentResponse,\n GenerateFileDownloadUrlApplicationErrors,\n GenerateFileDownloadUrlResponse,\n GenerateFileUploadUrlOptions,\n GenerateFileUploadUrlResponse,\n GenerateSiteMediaTokenApplicationErrors,\n GenerateSiteMediaTokenResponse,\n RichContent,\n TargetFormatWithLiterals,\n ValidateDocumentOptions,\n ValidateDocumentResponse,\n convertFromRicosDocument as universalConvertFromRicosDocument,\n convertToRicosDocument as universalConvertToRicosDocument,\n generateFileDownloadUrl as universalGenerateFileDownloadUrl,\n generateFileUploadUrl as universalGenerateFileUploadUrl,\n generateSiteMediaToken as universalGenerateSiteMediaToken,\n validateDocument as universalValidateDocument,\n} from './ricos-v1-document-ricos-documents.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/rich-content' };\n\nexport function validateDocument(\n httpClient: HttpClient\n): ValidateDocumentSignature {\n return (\n document: Record<string, any> | null,\n options?: ValidateDocumentOptions\n ) =>\n universalValidateDocument(\n document,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ValidateDocumentSignature {\n /**\n * Checks whether a Ricos document is valid given the specified plugins.\n *\n * Use the `fixDocument` parameter to include a valid version of your Ricos document in the response.\n * @param - Ricos document to validate.\n *\n * Accepts any JSON object, including documents that aren't valid Ricos documents.\n * @param - Options to use when validating the document.\n */\n (\n document: Record<string, any> | null,\n options?: ValidateDocumentOptions\n ): Promise<ValidateDocumentResponse>;\n}\n\nexport function convertToRicosDocument(\n httpClient: HttpClient\n): ConvertToRicosDocumentSignature {\n return (options?: ConvertToRicosDocumentOptions) =>\n universalConvertToRicosDocument(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ConvertToRicosDocumentSignature {\n /**\n * Converts content in the specified format to a Ricos document.\n * @param - Options to use when converting to a Ricos document.\n */\n (\n options?: ConvertToRicosDocumentOptions\n ): Promise<ConvertToRicosDocumentResponse>;\n}\n\nexport function convertFromRicosDocument(\n httpClient: HttpClient\n): ConvertFromRicosDocumentSignature {\n return (\n document: RichContent,\n targetFormat: TargetFormatWithLiterals,\n options?: ConvertFromRicosDocumentOptions\n ) =>\n universalConvertFromRicosDocument(\n document,\n targetFormat,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ConvertFromRicosDocumentSignature {\n /**\n * Converts a Ricos document to the specified format.\n * @param - Ricos document to convert.\n * @param - Format to convert the document to.\n * @param - Options to use when converting from a Ricos document.\n */\n (\n document: RichContent,\n targetFormat: TargetFormatWithLiterals,\n options?: ConvertFromRicosDocumentOptions\n ): Promise<ConvertFromRicosDocumentResponse>;\n}\n\nexport function generateFileDownloadUrl(\n httpClient: HttpClient\n): GenerateFileDownloadUrlSignature {\n return (fileId: string) =>\n universalGenerateFileDownloadUrl(\n fileId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileDownloadUrlSignature {\n /**\n * Generates a temporary URL for downloading the file referenced by a file node in a Ricos document.\n *\n * Specify the file node's `fileData.src.id` as `fileId`. The returned URL downloads the original file\n * as an attachment and expires after 10 hours. Private files are supported, so you can use this method\n * to let site visitors download files that aren't publicly accessible.\n *\n * The method doesn't check whether the file appears in a specific document. Any file of the site can be\n * retrieved by its ID, so control which file IDs you expose to site visitors in your app.\n *\n * If the file doesn't exist, the method fails with a `MEDIA_RESOURCE_NOT_FOUND` error.\n * @param - ID of the file, as specified in the file node's `fileData.src.id`.\n *\n * Can include a path prefix. For example, `ugd/1a2b3c_4d5e6f.pdf` and `1a2b3c_4d5e6f.pdf` refer to the same file.\n */\n (fileId: string): Promise<\n GenerateFileDownloadUrlResponse & {\n __applicationErrorsType?: GenerateFileDownloadUrlApplicationErrors;\n }\n >;\n}\n\nexport function generateFileUploadUrl(\n httpClient: HttpClient\n): GenerateFileUploadUrlSignature {\n return (mimeType: string, options?: GenerateFileUploadUrlOptions) =>\n universalGenerateFileUploadUrl(\n mimeType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateFileUploadUrlSignature {\n /**\n * Generates a URL for uploading a file to the site's Media Manager, so you can add the file to a Ricos document.\n *\n * To upload the file, send a `PUT` request to `uploadUrl` with the file content as the request body and a\n * `Content-Type` header that matches `mimeType`. If you didn't specify `fileName`, add the file name as the\n * `filename` query parameter. For example, `PUT {uploadUrl}?filename=report.pdf`. The URL expires after 24 hours.\n * Learn more about the [Upload API](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api).\n *\n * The upload response contains the uploaded file's\n * [file descriptor](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-object).\n * Specify its `file.id` as the file node's `fileData.src.id` in the Ricos document.\n * A successful upload response doesn't mean the file is ready. To run code when it's ready, listen for the\n * [File Ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-ready) and\n * [File Failed](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-failed) events.\n *\n * Use this method to let site visitors and members add files to the content they create.\n * To download a private file, call [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url).\n *\n * This method doesn't support resumable uploads. For the supported file types and sizes, see\n * [Wix Media: Supported Media File Types and File Sizes](https://support.wix.com/en/article/wix-media-supported-media-file-types-and-file-sizes).\n * @param - MIME type of the file to upload. For example, `application/pdf`.\n */\n (\n mimeType: string,\n options?: GenerateFileUploadUrlOptions\n ): Promise<GenerateFileUploadUrlResponse>;\n}\n\nexport function generateSiteMediaToken(\n httpClient: HttpClient\n): GenerateSiteMediaTokenSignature {\n return () =>\n universalGenerateSiteMediaToken(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GenerateSiteMediaTokenSignature {\n /**\n * Generates a site media token that lets a Ricos editor open Wix media tools, such as Image Studio, for the current Wix user.\n *\n * Pass the token as `siteToken` when you open Image Studio from the Ricos image plugin. The token identifies\n * the site and the Wix user, and is valid only in a browser where that user is logged in to Wix.\n * It expires after 14 days, so you can reuse it for the editor session.\n *\n * Only Wix users can call this method. Calls by site members, site visitors, or anonymous callers\n * fail with a permission error. Wix app calls without a Wix user fail with a `WIX_USER_REQUIRED` error.\n */\n (): Promise<\n GenerateSiteMediaTokenResponse & {\n __applicationErrorsType?: GenerateSiteMediaTokenApplicationErrors;\n }\n >;\n}\n\nexport {\n Alignment,\n AnchorData,\n Animation,\n AppEmbedData,\n AppEmbedDataAppDataOneOf,\n AppType,\n AspectRatio,\n AudioData,\n Backdrop,\n BackdropType,\n Background,\n BackgroundGradient,\n BackgroundImage,\n BackgroundType,\n Banner,\n BannerOriginPresenceOneOf,\n BannerPosition,\n BlockquoteData,\n BookingData,\n Border,\n BorderColors,\n BorderWidths,\n BulletedListData,\n ButtonData,\n ButtonDataType,\n ButtonStyles,\n CaptionData,\n CardData,\n CardDataBackground,\n CardDataBackgroundType,\n CardStyles,\n CardStylesType,\n CellStyle,\n CheckboxListData,\n CodeBlockData,\n CollapsibleListData,\n ColorData,\n ColorDataBackground,\n ColorDataBackgroundType,\n Colors,\n ColumnSize,\n ConvertFromRicosDocumentOptions,\n ConvertFromRicosDocumentOptionsOptionsOneOf,\n ConvertFromRicosDocumentRequest,\n ConvertFromRicosDocumentRequestOptionsOneOf,\n ConvertFromRicosDocumentResponse,\n ConvertFromRicosDocumentResponseResultOneOf,\n ConvertToRicosDocumentOptions,\n ConvertToRicosDocumentOptionsSourceOneOf,\n ConvertToRicosDocumentRequest,\n ConvertToRicosDocumentRequestSourceOneOf,\n ConvertToRicosDocumentResponse,\n Crop,\n Decoration,\n DecorationDataOneOf,\n DecorationType,\n Design,\n DesignTarget,\n Dimensions,\n Direction,\n DividerData,\n DividerDataAlignment,\n DividerDataStyles,\n DocumentStyle,\n EmbedData,\n EntranceAnimation,\n EntranceEffect,\n EntranceEffectType,\n EventData,\n FileData,\n FileDownloadUrl,\n FileSource,\n FileSourceDataOneOf,\n FontFamilyData,\n FontSizeData,\n FontType,\n GIF,\n GIFData,\n GIFType,\n GalleryData,\n GalleryOptions,\n GalleryOptionsLayout,\n GenerateFileDownloadUrlRequest,\n GenerateFileDownloadUrlResponse,\n GenerateFileUploadUrlOptions,\n GenerateFileUploadUrlRequest,\n GenerateFileUploadUrlResponse,\n GenerateSiteMediaTokenRequest,\n GenerateSiteMediaTokenResponse,\n Gradient,\n GradientType,\n HTMLData,\n HTMLDataDataOneOf,\n HeadingData,\n Height,\n Image,\n ImageData,\n ImageDataCrop,\n ImageDataStyles,\n ImagePosition,\n ImagePositionPosition,\n ImageScalingScaling,\n ImageStyles,\n Indentation,\n InitialExpandedItems,\n Item,\n ItemDataOneOf,\n ItemStyle,\n LayerEffect,\n Layers,\n Layout,\n LayoutCellData,\n LayoutData,\n LayoutDataBackground,\n LayoutDataBackgroundImage,\n LayoutDataBackgroundType,\n LayoutType,\n LineCap,\n LineStyle,\n Link,\n LinkData,\n LinkDataOneOf,\n LinkPreviewData,\n LinkPreviewDataStyles,\n ListItemMarkerColor,\n ListItemMarkerColorBackground,\n ListItemMarkerColorBackgroundType,\n ListItemMarkerStyle,\n ListItemNodeData,\n ListStyle,\n ListValue,\n LoopAnimation,\n LoopEffect,\n LoopEffectType,\n MapData,\n MapSettings,\n MapType,\n Media,\n MentionData,\n Metadata,\n Node,\n NodeDataOneOf,\n NodeStyle,\n NodeType,\n NullValue,\n Oembed,\n Option,\n OptionDesign,\n OptionLayout,\n OrderedListData,\n Orientation,\n Origin,\n PDFSettings,\n ParagraphData,\n Permissions,\n Placement,\n PlainTextOptions,\n PlaybackOptions,\n Plugin,\n PluginContainerData,\n PluginContainerDataAlignment,\n PluginContainerDataWidth,\n PluginContainerDataWidthDataOneOf,\n PointerEffect,\n PointerEffectType,\n Poll,\n PollData,\n PollDataLayout,\n PollDesign,\n PollDesignBackground,\n PollDesignBackgroundBackgroundOneOf,\n PollDesignBackgroundType,\n PollLayout,\n PollLayoutDirection,\n PollLayoutType,\n Position,\n PricingData,\n Rel,\n Resizing,\n ResponsivenessBehaviour,\n RibbonStyles,\n RichContent,\n RicosDocumentOptions,\n RicosDocumentPlaceholder,\n RicosDocumentViolation,\n Scaling,\n SectionDivider,\n Settings,\n Shape,\n ShapeData,\n ShapeDataStyles,\n SketchData,\n SlotData,\n SlotDesign,\n SmartBlockCellData,\n SmartBlockData,\n SmartBlockDataType,\n Source,\n Spoiler,\n SpoilerData,\n Stop,\n Styles,\n StylesBorder,\n StylesPosition,\n TableCellData,\n TableData,\n Target,\n TargetFormat,\n TextAlignment,\n TextData,\n TextNodeStyle,\n TextStyle,\n Thumbnails,\n ThumbnailsAlignment,\n TocData,\n Type,\n ValidateDocumentOptions,\n ValidateDocumentRequest,\n ValidateDocumentResponse,\n Variant,\n VerticalAlignment,\n VerticalAlignmentAlignment,\n Video,\n VideoData,\n ViewMode,\n ViewRole,\n VoteRole,\n Width,\n WidthType,\n} from './ricos-v1-document-ricos-documents.universal.js';\n","import {\n validateDocument as publicValidateDocument,\n convertToRicosDocument as publicConvertToRicosDocument,\n convertFromRicosDocument as publicConvertFromRicosDocument,\n generateFileDownloadUrl as publicGenerateFileDownloadUrl,\n generateFileUploadUrl as publicGenerateFileUploadUrl,\n generateSiteMediaToken as publicGenerateSiteMediaToken,\n} from './ricos-v1-document-ricos-documents.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const validateDocument: MaybeContext<\n BuildRESTFunction<typeof publicValidateDocument> &\n typeof publicValidateDocument\n> = /*#__PURE__*/ createRESTModule(publicValidateDocument);\nexport const convertToRicosDocument: MaybeContext<\n BuildRESTFunction<typeof publicConvertToRicosDocument> &\n typeof publicConvertToRicosDocument\n> = /*#__PURE__*/ createRESTModule(publicConvertToRicosDocument);\nexport const convertFromRicosDocument: MaybeContext<\n BuildRESTFunction<typeof publicConvertFromRicosDocument> &\n typeof publicConvertFromRicosDocument\n> = /*#__PURE__*/ createRESTModule(publicConvertFromRicosDocument);\nexport const generateFileDownloadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileDownloadUrl> &\n typeof publicGenerateFileDownloadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileDownloadUrl);\nexport const generateFileUploadUrl: MaybeContext<\n BuildRESTFunction<typeof publicGenerateFileUploadUrl> &\n typeof publicGenerateFileUploadUrl\n> = /*#__PURE__*/ createRESTModule(publicGenerateFileUploadUrl);\nexport const generateSiteMediaToken: MaybeContext<\n BuildRESTFunction<typeof publicGenerateSiteMediaToken> &\n typeof publicGenerateSiteMediaToken\n> = /*#__PURE__*/ createRESTModule(publicGenerateSiteMediaToken);\n\nexport {\n Plugin,\n NodeType,\n BackgroundType,\n GradientType,\n WidthType,\n PluginContainerDataAlignment,\n ButtonDataType,\n Target,\n Type,\n EntranceEffectType,\n LoopEffectType,\n PointerEffectType,\n TextAlignment,\n FontType,\n LineCap,\n LineStyle,\n Width,\n DividerDataAlignment,\n ViewMode,\n LayoutType,\n Orientation,\n Crop,\n ThumbnailsAlignment,\n GIFType,\n Source,\n StylesPosition,\n MapType,\n ViewRole,\n VoteRole,\n PollLayoutType,\n PollLayoutDirection,\n PollDesignBackgroundType,\n DecorationType,\n ColorDataBackgroundType,\n Variant,\n Position,\n AspectRatio,\n Resizing,\n Placement,\n CardStylesType,\n Alignment,\n Layout,\n AppType,\n InitialExpandedItems,\n Direction,\n VerticalAlignment,\n NullValue,\n ImageScalingScaling,\n ImagePosition,\n LayoutDataBackgroundType,\n Origin,\n BannerPosition,\n LayerEffect,\n Shape,\n BackdropType,\n VerticalAlignmentAlignment,\n ResponsivenessBehaviour,\n DesignTarget,\n Scaling,\n ImagePositionPosition,\n CardDataBackgroundType,\n ListStyle,\n Indentation,\n SmartBlockDataType,\n ColumnSize,\n ListItemMarkerColorBackgroundType,\n TargetFormat,\n} from './ricos-v1-document-ricos-documents.universal.js';\nexport {\n RicosDocumentPlaceholder,\n ValidateDocumentRequest,\n ValidateDocumentResponse,\n RicosDocumentViolation,\n RichContent,\n Node,\n NodeDataOneOf,\n NodeStyle,\n ButtonData,\n Gradient,\n Stop,\n Border,\n Colors,\n Background,\n PluginContainerData,\n PluginContainerDataWidth,\n PluginContainerDataWidthDataOneOf,\n Spoiler,\n Height,\n Styles,\n Link,\n LinkDataOneOf,\n Rel,\n Animation,\n EntranceAnimation,\n EntranceEffect,\n LoopAnimation,\n LoopEffect,\n PointerEffect,\n CodeBlockData,\n TextStyle,\n FontSizeData,\n DividerData,\n DividerDataStyles,\n FileData,\n FileSource,\n FileSourceDataOneOf,\n PDFSettings,\n GalleryData,\n Media,\n Image,\n Video,\n Item,\n ItemDataOneOf,\n GalleryOptions,\n GalleryOptionsLayout,\n ItemStyle,\n Thumbnails,\n GIFData,\n GIF,\n HeadingData,\n HTMLData,\n HTMLDataDataOneOf,\n ImageData,\n StylesBorder,\n ImageDataStyles,\n ImageDataCrop,\n LinkPreviewData,\n LinkPreviewDataStyles,\n MapData,\n MapSettings,\n ParagraphData,\n PollData,\n Permissions,\n Option,\n Settings,\n PollLayout,\n OptionLayout,\n BackgroundGradient,\n PollDesignBackground,\n PollDesignBackgroundBackgroundOneOf,\n PollDesign,\n OptionDesign,\n Poll,\n PollDataLayout,\n Design,\n TextData,\n Decoration,\n DecorationDataOneOf,\n AnchorData,\n ColorData,\n ColorDataBackground,\n LinkData,\n MentionData,\n SpoilerData,\n FontFamilyData,\n SketchData,\n AppEmbedData,\n AppEmbedDataAppDataOneOf,\n BookingData,\n EventData,\n ButtonStyles,\n ImageStyles,\n RibbonStyles,\n CardStyles,\n PricingData,\n VideoData,\n PlaybackOptions,\n EmbedData,\n Oembed,\n CollapsibleListData,\n TableData,\n Dimensions,\n TableCellData,\n CellStyle,\n BorderColors,\n BorderWidths,\n ListValue,\n AudioData,\n OrderedListData,\n BulletedListData,\n BlockquoteData,\n CaptionData,\n LayoutData,\n LayoutDataBackground,\n Layers,\n LayoutDataBackgroundImage,\n Banner,\n BannerOriginPresenceOneOf,\n Backdrop,\n SectionDivider,\n LayoutCellData,\n ShapeData,\n ShapeDataStyles,\n CardData,\n CardDataBackground,\n BackgroundImage,\n TocData,\n SmartBlockData,\n SmartBlockCellData,\n CheckboxListData,\n ListItemNodeData,\n ListItemMarkerStyle,\n ListItemMarkerColor,\n ListItemMarkerColorBackground,\n SlotData,\n SlotDesign,\n Metadata,\n DocumentStyle,\n TextNodeStyle,\n ConvertToRicosDocumentRequest,\n ConvertToRicosDocumentRequestSourceOneOf,\n RicosDocumentOptions,\n ConvertToRicosDocumentResponse,\n ConvertFromRicosDocumentRequest,\n ConvertFromRicosDocumentRequestOptionsOneOf,\n PlainTextOptions,\n ConvertFromRicosDocumentResponse,\n ConvertFromRicosDocumentResponseResultOneOf,\n GenerateFileDownloadUrlRequest,\n GenerateFileDownloadUrlResponse,\n FileDownloadUrl,\n GenerateFileUploadUrlRequest,\n GenerateFileUploadUrlResponse,\n GenerateSiteMediaTokenRequest,\n GenerateSiteMediaTokenResponse,\n ValidateDocumentOptions,\n ConvertToRicosDocumentOptions,\n ConvertToRicosDocumentOptionsSourceOneOf,\n ConvertFromRicosDocumentOptions,\n ConvertFromRicosDocumentOptionsOptionsOneOf,\n GenerateFileUploadUrlOptions,\n} from './ricos-v1-document-ricos-documents.universal.js';\nexport {\n PluginWithLiterals,\n NodeTypeWithLiterals,\n BackgroundTypeWithLiterals,\n GradientTypeWithLiterals,\n WidthTypeWithLiterals,\n PluginContainerDataAlignmentWithLiterals,\n ButtonDataTypeWithLiterals,\n TargetWithLiterals,\n TypeWithLiterals,\n EntranceEffectTypeWithLiterals,\n LoopEffectTypeWithLiterals,\n PointerEffectTypeWithLiterals,\n TextAlignmentWithLiterals,\n FontTypeWithLiterals,\n LineCapWithLiterals,\n LineStyleWithLiterals,\n WidthWithLiterals,\n DividerDataAlignmentWithLiterals,\n ViewModeWithLiterals,\n LayoutTypeWithLiterals,\n OrientationWithLiterals,\n CropWithLiterals,\n ThumbnailsAlignmentWithLiterals,\n GIFTypeWithLiterals,\n SourceWithLiterals,\n StylesPositionWithLiterals,\n MapTypeWithLiterals,\n ViewRoleWithLiterals,\n VoteRoleWithLiterals,\n PollLayoutTypeWithLiterals,\n PollLayoutDirectionWithLiterals,\n PollDesignBackgroundTypeWithLiterals,\n DecorationTypeWithLiterals,\n ColorDataBackgroundTypeWithLiterals,\n VariantWithLiterals,\n PositionWithLiterals,\n AspectRatioWithLiterals,\n ResizingWithLiterals,\n PlacementWithLiterals,\n CardStylesTypeWithLiterals,\n AlignmentWithLiterals,\n LayoutWithLiterals,\n AppTypeWithLiterals,\n InitialExpandedItemsWithLiterals,\n DirectionWithLiterals,\n VerticalAlignmentWithLiterals,\n NullValueWithLiterals,\n ImageScalingScalingWithLiterals,\n ImagePositionWithLiterals,\n LayoutDataBackgroundTypeWithLiterals,\n OriginWithLiterals,\n BannerPositionWithLiterals,\n LayerEffectWithLiterals,\n ShapeWithLiterals,\n BackdropTypeWithLiterals,\n VerticalAlignmentAlignmentWithLiterals,\n ResponsivenessBehaviourWithLiterals,\n DesignTargetWithLiterals,\n ScalingWithLiterals,\n ImagePositionPositionWithLiterals,\n CardDataBackgroundTypeWithLiterals,\n ListStyleWithLiterals,\n IndentationWithLiterals,\n SmartBlockDataTypeWithLiterals,\n ColumnSizeWithLiterals,\n ListItemMarkerColorBackgroundTypeWithLiterals,\n TargetFormatWithLiterals,\n GenerateFileDownloadUrlApplicationErrors,\n GenerateSiteMediaTokenApplicationErrors,\n} from './ricos-v1-document-ricos-documents.universal.js';\n","import { alignIfLegacy } from '../utils.js';\nimport { WIX_PROTOCOL } from '../constants.js';\nexport function transformSDKImageToRESTImage(val) {\n if (!val) {\n return;\n }\n const alignedImage = alignIfLegacy(val, 'image');\n const { protocol, hash, pathname } = new URL(alignedImage);\n const params = new URLSearchParams(hash.replace('#', ''));\n const height = params.get('originHeight');\n const width = params.get('originWidth');\n const [id, filenameOrAltText] = pathname\n .replace(`image://v1/`, '')\n .split('/');\n const decodedFilenameOrAltText = filenameOrAltText && decodeURIComponent(filenameOrAltText);\n if (protocol === WIX_PROTOCOL) {\n const res = { id, height: Number(height), width: Number(width) };\n if (!decodedFilenameOrAltText) {\n return res;\n }\n return {\n ...res,\n altText: decodedFilenameOrAltText,\n filename: decodedFilenameOrAltText,\n url: val,\n };\n }\n return { url: val };\n}\nexport function transformRESTImageToSDKImage(payload) {\n if (!payload) {\n return;\n }\n let fileNameOrAltText = '';\n if (payload.filename || payload.altText) {\n fileNameOrAltText = `/${encodeURIComponent((payload.filename || payload.altText))}`;\n }\n return payload.id\n ? `wix:image://v1/${payload.id}${fileNameOrAltText}#originWidth=${payload.width}&originHeight=${payload.height}`\n : payload.url;\n}\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 } from '@wix/sdk-types';\nimport * as ambassadorWixRicosV1EmbeddableItem from './ricos-v1-embeddable-item-ricos-embeddables.http.js';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nconst TRANSFORM_PATHS_0 = [{ path: 'embeddableItem.image' }];\nconst TRANSFORM_PATHS_1 = [{ path: 'items.image' }];\n\n/** An embeddable item represents business content from Wix applications that can be integrated into rich text content and applications. Each item contains unified data structure with core fields, media, pricing, and type-specific details. */\nexport interface EmbeddableItem extends EmbeddableItemItemTypeDetailsOneOf {\n /** Booking-specific details. Available only when `itemType` is `BOOKING`. */\n bookingDetails?: BookingDetails;\n /** Event-specific details. Available only when `itemType` is `EVENT`. */\n eventDetails?: EventDetails;\n /**\n * Embeddable item ID.\n * @format GUID\n */\n _id?: string | null;\n /**\n * Display title of the embeddable item.\n * @maxLength 300\n */\n title?: string;\n /** Image associated with the embeddable item. */\n image?: string;\n /**\n * Universal page URL for the embeddable item.\n * @format WEB_URL\n */\n pageUrl?: string;\n /** Pricing information for the embeddable item. Fields are populated based on business logic - single services show `minValue` only, variable pricing shows ranges, and `discountedValue` only appears during active promotions. */\n pricingData?: PricingData;\n /** Type of the app content */\n itemType?: ItemTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface EmbeddableItemItemTypeDetailsOneOf {\n /** Booking-specific details. Available only when `itemType` is `BOOKING`. */\n bookingDetails?: BookingDetails;\n /** Event-specific details. Available only when `itemType` is `EVENT`. */\n eventDetails?: EventDetails;\n}\n\n/**\n * Embed provided pricing data\n * Pricing information for embeddable items. Fields are populated based on business logic and pricing model.\n */\nexport interface PricingData {\n /**\n * Minimum price value. For example, `10.99`.\n * @decimalValue options { maxScale:2 }\n */\n minValue?: string | null;\n /**\n * Maximum price value. For example, `19.99`.\n * @decimalValue options { maxScale:2 }\n */\n maxValue?: string | null;\n /**\n * Price value after discount application. For example, `15.99`. Available only during active promotions.\n * @decimalValue options { maxScale:2 }\n */\n discountedValue?: string | null;\n /**\n * Three-letter currency code in @ISO-4217 alphabetic format.\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * Pricing plan ID.\n * @format GUID\n */\n pricingPlanId?: string | null;\n}\n\n/**\n * Type of the embeddable item.\n * Type of embeddable item from Wix business applications.\n */\nexport enum ItemType {\n /** Booking service from Wix Bookings. */\n BOOKING = 'BOOKING',\n /** Event from Wix Events. */\n EVENT = 'EVENT',\n /** Product from Wix Stores. Only includes published and available products. */\n PRODUCT = 'PRODUCT',\n}\n\n/** @enumType */\nexport type ItemTypeWithLiterals = ItemType | 'BOOKING' | 'EVENT' | 'PRODUCT';\n\n/**\n * Booking-specific details\n * Booking-specific details for embeddable items from Wix Bookings.\n */\nexport interface BookingDetails {\n /**\n * Available session durations in minutes.\n * @min 1\n * @max 44639\n * @maxSize 50\n */\n durations?: number[];\n}\n\n/**\n * Event-specific details\n * Event-specific details for embeddable items from Wix Events.\n */\nexport interface EventDetails {\n /**\n * Human-readable date and time representation of the event.\n * @maxLength 500\n */\n formattedDateAndTime?: string | null;\n /** Date and time when the event starts. */\n startDate?: Date | null;\n /** Date and time when the event ends. */\n endDate?: Date | null;\n /**\n * Event time zone ID in @IANA TZ database format.\n * @maxLength 100\n */\n timeZoneId?: string | null;\n /**\n * Event location name.\n * @maxLength 50\n */\n location?: string | null;\n}\n\n/**\n * Request message for getting app embedded content\n * Request to retrieve a specific embeddable item.\n */\nexport interface GetEmbeddableItemRequest {\n /** Type of embeddable item to retrieve. */\n itemType: ItemTypeWithLiterals;\n /**\n * ID of the embeddable item to retrieve.\n * @format GUID\n */\n embeddableItemId: string;\n}\n\n/**\n * Response message containing app embedded content\n * Response containing the requested embeddable item.\n */\nexport interface GetEmbeddableItemResponse {\n /** Retrieved embeddable item. */\n embeddableItem?: EmbeddableItem;\n}\n\n/**\n * Request message for querying app embedded content\n * Request to list embeddable items with optional filtering.\n */\nexport interface ListEmbeddableItemsRequest {\n /** Type of embeddable items to list. */\n itemType: ItemTypeWithLiterals;\n /**\n * Search query to filter items by title.\n * @maxLength 300\n */\n query?: string | null;\n /** Cursor-based pagination parameters. */\n paging?: CursorPaging;\n}\n\n/** Cursor-based pagination parameters for listing requests. */\nexport interface CursorPaging {\n /**\n * Number of items to load per page.\n *\n * Default: `50`\n * @max 100\n */\n limit?: number | null;\n /**\n * Cursor token for pagination. Use the cursor from the previous response to get the next page of results.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\n/**\n * Response message containing app embedded content items\n * Response containing a list of embeddable items.\n */\nexport interface ListEmbeddableItemsResponse {\n /** List of embeddable items matching the request criteria. */\n items?: EmbeddableItem[];\n /** Pagination metadata for navigating through results. */\n pagingMetadata?: PagingMetadataV2;\n}\n\n/** Pagination metadata returned with list responses. */\nexport interface PagingMetadataV2 {\n /** Number of items returned in the current response. */\n count?: number | null;\n /** Navigation cursors for moving between result pages. */\n cursors?: Cursors;\n}\n\n/** Navigation cursors for pagination. */\nexport interface Cursors {\n /**\n * Cursor for retrieving the next page of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor for retrieving the previous page of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\n/**\n * Retrieves a specific embeddable item by ID and type.\n * @param embeddableItemId - ID of the embeddable item to retrieve.\n * @param itemType - Type of embeddable item to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField embeddableItemId\n * @requiredField itemType\n * @permissionId RICOS.RICOS_EMBEDDABLES_READ\n * @applicableIdentity APP\n * @returns Retrieved embeddable item.\n * @fqn wix.ricos.v1.RicosEmbeddables.GetEmbeddableItem\n */\nexport async function getEmbeddableItem(\n embeddableItemId: string,\n itemType: ItemTypeWithLiterals\n): Promise<EmbeddableItem> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n embeddableItemId: embeddableItemId,\n itemType: itemType,\n });\n\n const reqOpts = ambassadorWixRicosV1EmbeddableItem.getEmbeddableItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: TRANSFORM_PATHS_0,\n },\n ])\n )?.embeddableItem!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n embeddableItemId: '$[0]',\n itemType: '$[1]',\n },\n singleArgumentUnchanged: false,\n },\n ['embeddableItemId', 'itemType']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Lists embeddable items by type with optional search and pagination.\n * @param itemType - Type of embeddable items to list.\n * @public\n * @documentationMaturity preview\n * @requiredField itemType\n * @permissionId RICOS.RICOS_EMBEDDABLES_READ\n * @applicableIdentity APP\n * @returns Response message containing app embedded content items\n * Response containing a list of embeddable items.\n * @fqn wix.ricos.v1.RicosEmbeddables.ListEmbeddableItems\n */\nexport async function listEmbeddableItems(\n itemType: ItemTypeWithLiterals,\n options?: ListEmbeddableItemsOptions\n): Promise<ListEmbeddableItemsResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n itemType: itemType,\n query: options?.query,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixRicosV1EmbeddableItem.listEmbeddableItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: TRANSFORM_PATHS_1,\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n itemType: '$[0]',\n query: '$[1].query',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['itemType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListEmbeddableItemsOptions {\n /**\n * Search query to filter items by title.\n * @maxLength 300\n */\n query?: string | null;\n /** Cursor-based pagination parameters. */\n paging?: CursorPaging;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { 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: 'embeddableItem.eventDetails.startDate' },\n { path: 'embeddableItem.eventDetails.endDate' },\n];\nconst TRANSFORM_PATHS_1 = [\n { path: 'items.eventDetails.startDate' },\n { path: 'items.eventDetails.endDate' },\n];\n\nfunction resolveWixRicosV1RicosEmbeddablesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/ricos/v1/embeddable-items',\n destPath: '/v1/embeddable-items',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/ricos-embeddables',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/ricos-embeddables',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/ricos-embeddables',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/ricos-embeddables',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/ricos/v1/embeddable-items',\n destPath: '/v1/embeddable-items',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ricos/v1/embeddable-items',\n destPath: '/v1/embeddable-items',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_rich-content_ricos-embeddables';\n\n/** Retrieves a specific embeddable item by ID and type. */\nexport function getEmbeddableItem(payload: object): RequestOptionsFactory<any> {\n function __getEmbeddableItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.embeddable_item',\n method: 'GET' as any,\n methodFqn: 'wix.ricos.v1.RicosEmbeddables.GetEmbeddableItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosEmbeddablesUrl({\n protoPath: '/v1/embeddable-items/{embeddableItemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(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 __getEmbeddableItem;\n}\n\n/** Lists embeddable items by type with optional search and pagination. */\nexport function listEmbeddableItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __listEmbeddableItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.embeddable_item',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosEmbeddables.ListEmbeddableItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosEmbeddablesUrl({\n protoPath: '/v1/embeddable-items/list',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listEmbeddableItems;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n EmbeddableItem,\n ItemTypeWithLiterals,\n ListEmbeddableItemsOptions,\n ListEmbeddableItemsResponse,\n getEmbeddableItem as universalGetEmbeddableItem,\n listEmbeddableItems as universalListEmbeddableItems,\n} from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/rich-content' };\n\nexport function getEmbeddableItem(\n httpClient: HttpClient\n): GetEmbeddableItemSignature {\n return (embeddableItemId: string, itemType: ItemTypeWithLiterals) =>\n universalGetEmbeddableItem(\n embeddableItemId,\n itemType,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetEmbeddableItemSignature {\n /**\n * Retrieves a specific embeddable item by ID and type.\n * @param - ID of the embeddable item to retrieve.\n * @param - Type of embeddable item to retrieve.\n * @returns Retrieved embeddable item.\n */\n (\n embeddableItemId: string,\n itemType: ItemTypeWithLiterals\n ): Promise<EmbeddableItem>;\n}\n\nexport function listEmbeddableItems(\n httpClient: HttpClient\n): ListEmbeddableItemsSignature {\n return (\n itemType: ItemTypeWithLiterals,\n options?: ListEmbeddableItemsOptions\n ) =>\n universalListEmbeddableItems(\n itemType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListEmbeddableItemsSignature {\n /**\n * Lists embeddable items by type with optional search and pagination.\n * @param - Type of embeddable items to list.\n * @returns Response message containing app embedded content items\n * Response containing a list of embeddable items.\n */\n (\n itemType: ItemTypeWithLiterals,\n options?: ListEmbeddableItemsOptions\n ): Promise<ListEmbeddableItemsResponse>;\n}\n\nexport {\n BookingDetails,\n CursorPaging,\n Cursors,\n EmbeddableItem,\n EmbeddableItemItemTypeDetailsOneOf,\n EventDetails,\n GetEmbeddableItemRequest,\n GetEmbeddableItemResponse,\n ItemType,\n ListEmbeddableItemsOptions,\n ListEmbeddableItemsRequest,\n ListEmbeddableItemsResponse,\n PagingMetadataV2,\n PricingData,\n} from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\n","import {\n getEmbeddableItem as publicGetEmbeddableItem,\n listEmbeddableItems as publicListEmbeddableItems,\n} from './ricos-v1-embeddable-item-ricos-embeddables.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getEmbeddableItem: MaybeContext<\n BuildRESTFunction<typeof publicGetEmbeddableItem> &\n typeof publicGetEmbeddableItem\n> = /*#__PURE__*/ createRESTModule(publicGetEmbeddableItem);\nexport const listEmbeddableItems: MaybeContext<\n BuildRESTFunction<typeof publicListEmbeddableItems> &\n typeof publicListEmbeddableItems\n> = /*#__PURE__*/ createRESTModule(publicListEmbeddableItems);\n\nexport { ItemType } from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\nexport {\n EmbeddableItem,\n EmbeddableItemItemTypeDetailsOneOf,\n PricingData,\n BookingDetails,\n EventDetails,\n GetEmbeddableItemRequest,\n GetEmbeddableItemResponse,\n ListEmbeddableItemsRequest,\n CursorPaging,\n ListEmbeddableItemsResponse,\n PagingMetadataV2,\n Cursors,\n ListEmbeddableItemsOptions,\n} from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\nexport { ItemTypeWithLiterals } from './ricos-v1-embeddable-item-ricos-embeddables.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 } from '@wix/sdk-types';\nimport * as ambassadorWixRicosV1RicosConversation from './ricos-v1-ricos-conversation-ricos-conversations.http.js';\n\n/**\n * Represents a conversation session between a user and the Ricos AI Assistant\n * Contains the document being edited and the complete message history\n */\nexport interface RicosConversation extends RicosConversationUserMessageOneOf {\n /**\n * Plain text message\n * @maxLength 10000\n */\n message?: string;\n /** Rich content message */\n messageInRichContent?: RichContent;\n /**\n * Unique identifier for this conversation session.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** The Ricos document being edited in this conversation. */\n document?: RichContent;\n /** The Ricos subset of user selected content */\n documentSelection?: RichContent;\n /**\n * Ability to overwrite default system prompt with one from prompt hub.\n * @internal\n * @format GUID\n */\n promptId?: string | null;\n /**\n * Exposes METADATA chunk with costs and used tokens\n * @internal\n */\n returnMetadata?: boolean | null;\n /**\n * Files\n * @internal\n * @maxSize 10\n */\n files?: File[];\n /**\n * List of enabled tools available to the conversation\n * @maxSize 100\n * @deprecated List of enabled tools available to the conversation\n * @targetRemovalDate 2026-01-01\n */\n tools?: Tool[];\n /** Current Ricos theme */\n theme?: Theme;\n /**\n * Trace parameters\n * @internal\n * @maxSize 10\n */\n traceParams?: Record<string, string>;\n /**\n * Ability to overwrite default project with a custom project from prompt hub.\n * @internal\n * @format GUID\n */\n projectId?: string | null;\n}\n\n/** @oneof */\nexport interface RicosConversationUserMessageOneOf {\n /**\n * Plain text message\n * @maxLength 10000\n */\n message?: string;\n /** Rich content message */\n messageInRichContent?: RichContent;\n}\n\nexport interface RichContent {\n /** Node objects representing a rich content document. */\n nodes?: Node[];\n /** Object metadata. */\n metadata?: Metadata;\n /** Global styling for header, paragraph, block quote, and code block nodes in the object. */\n documentStyle?: DocumentStyle;\n}\n\nexport interface Node extends NodeDataOneOf {\n /** Data for a button node. */\n buttonData?: ButtonData;\n /** Data for a code block node. */\n codeBlockData?: CodeBlockData;\n /** Data for a divider node. */\n dividerData?: DividerData;\n /** Data for a file node. */\n fileData?: FileData;\n /** Data for a gallery node. */\n galleryData?: GalleryData;\n /** Data for a GIF node. */\n gifData?: GIFData;\n /** Data for a heading node. */\n headingData?: HeadingData;\n /** Data for an embedded HTML node. */\n htmlData?: HTMLData;\n /** Data for an image node. */\n imageData?: ImageData;\n /** Data for a link preview node. */\n linkPreviewData?: LinkPreviewData;\n /** @deprecated */\n mapData?: MapData;\n /** Data for a paragraph node. */\n paragraphData?: ParagraphData;\n /** Data for a poll node. */\n pollData?: PollData;\n /** Data for a text node. Used to apply decorations to text. */\n textData?: TextData;\n /** Data for an app embed node. */\n appEmbedData?: AppEmbedData;\n /** Data for a video node. */\n videoData?: VideoData;\n /** Data for an oEmbed node. */\n embedData?: EmbedData;\n /** Data for a collapsible list node. */\n collapsibleListData?: CollapsibleListData;\n /** Data for a table node. */\n tableData?: TableData;\n /** Data for a table cell node. */\n tableCellData?: TableCellData;\n /** Data for a custom external node. */\n externalData?: Record<string, any> | null;\n /** Data for an audio node. */\n audioData?: AudioData;\n /** Data for an ordered list node. */\n orderedListData?: OrderedListData;\n /** Data for a bulleted list node. */\n bulletedListData?: BulletedListData;\n /** Data for a block quote node. */\n blockquoteData?: BlockquoteData;\n /** Data for a caption node. */\n captionData?: CaptionData;\n /** Data for a layout node. Reserved for future use. */\n layoutData?: LayoutData;\n /** Data for a cell node. */\n layoutCellData?: LayoutCellData;\n /** Data for a shape node. */\n shapeData?: ShapeData;\n /** Data for a card node. */\n cardData?: CardData;\n /** Data for a table of contents node. */\n tocData?: TocData;\n /** Data for a smart block node. */\n smartBlockData?: SmartBlockData;\n /** Data for a smart block cell node. */\n smartBlockCellData?: SmartBlockCellData;\n /** Data for a checkbox list node. */\n checkboxListData?: CheckboxListData;\n /** Data for a list item node. */\n listItemData?: ListItemNodeData;\n /** Data for a slot node. */\n slotData?: SlotData;\n /** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */\n type?: NodeTypeWithLiterals;\n /** Node ID. */\n id?: string;\n /** A list of child nodes. */\n nodes?: Node[];\n /** Padding and background color styling for the node. */\n style?: NodeStyle;\n}\n\n/** @oneof */\nexport interface NodeDataOneOf {\n /** Data for a button node. */\n buttonData?: ButtonData;\n /** Data for a code block node. */\n codeBlockData?: CodeBlockData;\n /** Data for a divider node. */\n dividerData?: DividerData;\n /** Data for a file node. */\n fileData?: FileData;\n /** Data for a gallery node. */\n galleryData?: GalleryData;\n /** Data for a GIF node. */\n gifData?: GIFData;\n /** Data for a heading node. */\n headingData?: HeadingData;\n /** Data for an embedded HTML node. */\n htmlData?: HTMLData;\n /** Data for an image node. */\n imageData?: ImageData;\n /** Data for a link preview node. */\n linkPreviewData?: LinkPreviewData;\n /** @deprecated */\n mapData?: MapData;\n /** Data for a paragraph node. */\n paragraphData?: ParagraphData;\n /** Data for a poll node. */\n pollData?: PollData;\n /** Data for a text node. Used to apply decorations to text. */\n textData?: TextData;\n /** Data for an app embed node. */\n appEmbedData?: AppEmbedData;\n /** Data for a video node. */\n videoData?: VideoData;\n /** Data for an oEmbed node. */\n embedData?: EmbedData;\n /** Data for a collapsible list node. */\n collapsibleListData?: CollapsibleListData;\n /** Data for a table node. */\n tableData?: TableData;\n /** Data for a table cell node. */\n tableCellData?: TableCellData;\n /** Data for a custom external node. */\n externalData?: Record<string, any> | null;\n /** Data for an audio node. */\n audioData?: AudioData;\n /** Data for an ordered list node. */\n orderedListData?: OrderedListData;\n /** Data for a bulleted list node. */\n bulletedListData?: BulletedListData;\n /** Data for a block quote node. */\n blockquoteData?: BlockquoteData;\n /** Data for a caption node. */\n captionData?: CaptionData;\n /** Data for a layout node. Reserved for future use. */\n layoutData?: LayoutData;\n /** Data for a cell node. */\n layoutCellData?: LayoutCellData;\n /** Data for a shape node. */\n shapeData?: ShapeData;\n /** Data for a card node. */\n cardData?: CardData;\n /** Data for a table of contents node. */\n tocData?: TocData;\n /** Data for a smart block node. */\n smartBlockData?: SmartBlockData;\n /** Data for a smart block cell node. */\n smartBlockCellData?: SmartBlockCellData;\n /** Data for a checkbox list node. */\n checkboxListData?: CheckboxListData;\n /** Data for a list item node. */\n listItemData?: ListItemNodeData;\n /** Data for a slot node. */\n slotData?: SlotData;\n}\n\nexport enum NodeType {\n PARAGRAPH = 'PARAGRAPH',\n TEXT = 'TEXT',\n HEADING = 'HEADING',\n BULLETED_LIST = 'BULLETED_LIST',\n ORDERED_LIST = 'ORDERED_LIST',\n LIST_ITEM = 'LIST_ITEM',\n BLOCKQUOTE = 'BLOCKQUOTE',\n CODE_BLOCK = 'CODE_BLOCK',\n VIDEO = 'VIDEO',\n DIVIDER = 'DIVIDER',\n FILE = 'FILE',\n GALLERY = 'GALLERY',\n GIF = 'GIF',\n HTML = 'HTML',\n IMAGE = 'IMAGE',\n LINK_PREVIEW = 'LINK_PREVIEW',\n /** @deprecated */\n MAP = 'MAP',\n POLL = 'POLL',\n APP_EMBED = 'APP_EMBED',\n BUTTON = 'BUTTON',\n COLLAPSIBLE_LIST = 'COLLAPSIBLE_LIST',\n TABLE = 'TABLE',\n EMBED = 'EMBED',\n COLLAPSIBLE_ITEM = 'COLLAPSIBLE_ITEM',\n COLLAPSIBLE_ITEM_TITLE = 'COLLAPSIBLE_ITEM_TITLE',\n COLLAPSIBLE_ITEM_BODY = 'COLLAPSIBLE_ITEM_BODY',\n TABLE_CELL = 'TABLE_CELL',\n TABLE_ROW = 'TABLE_ROW',\n EXTERNAL = 'EXTERNAL',\n AUDIO = 'AUDIO',\n CAPTION = 'CAPTION',\n LAYOUT = 'LAYOUT',\n LAYOUT_CELL = 'LAYOUT_CELL',\n SHAPE = 'SHAPE',\n CARD = 'CARD',\n TOC = 'TOC',\n SMART_BLOCK = 'SMART_BLOCK',\n SMART_BLOCK_CELL = 'SMART_BLOCK_CELL',\n CHECKBOX_LIST = 'CHECKBOX_LIST',\n SLOT = 'SLOT',\n}\n\n/** @enumType */\nexport type NodeTypeWithLiterals =\n | NodeType\n | 'PARAGRAPH'\n | 'TEXT'\n | 'HEADING'\n | 'BULLETED_LIST'\n | 'ORDERED_LIST'\n | 'LIST_ITEM'\n | 'BLOCKQUOTE'\n | 'CODE_BLOCK'\n | 'VIDEO'\n | 'DIVIDER'\n | 'FILE'\n | 'GALLERY'\n | 'GIF'\n | 'HTML'\n | 'IMAGE'\n | 'LINK_PREVIEW'\n | 'MAP'\n | 'POLL'\n | 'APP_EMBED'\n | 'BUTTON'\n | 'COLLAPSIBLE_LIST'\n | 'TABLE'\n | 'EMBED'\n | 'COLLAPSIBLE_ITEM'\n | 'COLLAPSIBLE_ITEM_TITLE'\n | 'COLLAPSIBLE_ITEM_BODY'\n | 'TABLE_CELL'\n | 'TABLE_ROW'\n | 'EXTERNAL'\n | 'AUDIO'\n | 'CAPTION'\n | 'LAYOUT'\n | 'LAYOUT_CELL'\n | 'SHAPE'\n | 'CARD'\n | 'TOC'\n | 'SMART_BLOCK'\n | 'SMART_BLOCK_CELL'\n | 'CHECKBOX_LIST'\n | 'SLOT';\n\nexport interface NodeStyle {\n /** The top padding value in pixels. */\n paddingTop?: string | null;\n /** The bottom padding value in pixels. */\n paddingBottom?: string | null;\n /** The background color as a hexadecimal value. */\n backgroundColor?: string | null;\n}\n\nexport interface ButtonData {\n /** Styling for the button's container. */\n containerData?: PluginContainerData;\n /** The button type. */\n type?: ButtonDataTypeWithLiterals;\n /** Styling for the button. */\n styles?: Styles;\n /** The text to display on the button. */\n text?: string | null;\n /** Button link details. */\n link?: Link;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** Background type */\nexport enum BackgroundType {\n /** Solid color background */\n COLOR = 'COLOR',\n /** Gradient background */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type BackgroundTypeWithLiterals = BackgroundType | 'COLOR' | 'GRADIENT';\n\nexport interface Gradient {\n /** Gradient type. */\n type?: GradientTypeWithLiterals;\n /**\n * Color stops for the gradient.\n * @maxSize 1000\n */\n stops?: Stop[];\n /** Angle in degrees for linear gradient (0-360). */\n angle?: number | null;\n /**\n * Horizontal center position for radial gradient (0-100).\n * @max 100\n */\n centerX?: number | null;\n /**\n * Vertical center position for radial gradient (0-100).\n * @max 100\n */\n centerY?: number | null;\n}\n\n/** Gradient type. */\nexport enum GradientType {\n /** Linear gradient. */\n LINEAR = 'LINEAR',\n /** Radial gradient. */\n RADIAL = 'RADIAL',\n}\n\n/** @enumType */\nexport type GradientTypeWithLiterals = GradientType | 'LINEAR' | 'RADIAL';\n\n/** A single color stop in the gradient. */\nexport interface Stop {\n /**\n * Stop color as hex value.\n * @maxLength 19\n */\n color?: string | null;\n /** Stop position (0-1). */\n position?: number | null;\n}\n\nexport interface Border {\n /**\n * Deprecated: Use `borderWidth` in `styles` instead.\n * @deprecated\n */\n width?: number | null;\n /**\n * Deprecated: Use `borderRadius` in `styles` instead.\n * @deprecated\n */\n radius?: number | null;\n}\n\nexport interface Colors {\n /**\n * Deprecated: Use `textColor` in `styles` instead.\n * @deprecated\n */\n text?: string | null;\n /**\n * Deprecated: Use `borderColor` in `styles` instead.\n * @deprecated\n */\n border?: string | null;\n /**\n * Deprecated: Use `backgroundColor` in `styles` instead.\n * @deprecated\n */\n background?: string | null;\n}\n\n/** Background styling (color or gradient) */\nexport interface Background {\n /** Background type. */\n type?: BackgroundTypeWithLiterals;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\nexport interface PluginContainerData {\n /** The width of the node when it's displayed. */\n width?: PluginContainerDataWidth;\n /** The node's alignment within its container. */\n alignment?: PluginContainerDataAlignmentWithLiterals;\n /** Spoiler cover settings for the node. */\n spoiler?: Spoiler;\n /** The height of the node when it's displayed. */\n height?: Height;\n /** Sets whether text should wrap around this node when it's displayed. If `textWrap` is `false`, the node takes up the width of its container. Defaults to `true` for all node types except 'DIVIVDER' where it defaults to `false`. */\n textWrap?: boolean | null;\n}\n\nexport enum WidthType {\n /** Width matches the content width */\n CONTENT = 'CONTENT',\n /** Small Width */\n SMALL = 'SMALL',\n /** Width will match the original asset width */\n ORIGINAL = 'ORIGINAL',\n /** coast-to-coast display */\n FULL_WIDTH = 'FULL_WIDTH',\n}\n\n/** @enumType */\nexport type WidthTypeWithLiterals =\n | WidthType\n | 'CONTENT'\n | 'SMALL'\n | 'ORIGINAL'\n | 'FULL_WIDTH';\n\nexport interface PluginContainerDataWidth\n extends PluginContainerDataWidthDataOneOf {\n /**\n * One of the following predefined width options:\n * `CONTENT`: The width of the container matches the content width.\n * `SMALL`: A small width.\n * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.\n * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.\n */\n size?: WidthTypeWithLiterals;\n /** A custom width value in pixels. */\n custom?: string | null;\n}\n\n/** @oneof */\nexport interface PluginContainerDataWidthDataOneOf {\n /**\n * One of the following predefined width options:\n * `CONTENT`: The width of the container matches the content width.\n * `SMALL`: A small width.\n * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.\n * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.\n */\n size?: WidthTypeWithLiterals;\n /** A custom width value in pixels. */\n custom?: string | null;\n}\n\nexport enum PluginContainerDataAlignment {\n /** Center Alignment */\n CENTER = 'CENTER',\n /** Left Alignment */\n LEFT = 'LEFT',\n /** Right Alignment */\n RIGHT = 'RIGHT',\n}\n\n/** @enumType */\nexport type PluginContainerDataAlignmentWithLiterals =\n | PluginContainerDataAlignment\n | 'CENTER'\n | 'LEFT'\n | 'RIGHT';\n\nexport interface Spoiler {\n /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */\n enabled?: boolean | null;\n /** The description displayed on top of the spoiler cover. */\n description?: string | null;\n /** The text for the button used to remove the spoiler cover. */\n buttonText?: string | null;\n}\n\nexport interface Height {\n /** A custom height value in pixels. */\n custom?: string | null;\n}\n\nexport enum ButtonDataType {\n /** Regular link button */\n LINK = 'LINK',\n /** Triggers custom action that is defined in plugin configuration by the consumer */\n ACTION = 'ACTION',\n}\n\n/** @enumType */\nexport type ButtonDataTypeWithLiterals = ButtonDataType | 'LINK' | 'ACTION';\n\nexport interface Styles {\n /**\n * Deprecated: Use `borderWidth` and `borderRadius` instead.\n * @deprecated\n */\n border?: Border;\n /**\n * Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.\n * @deprecated\n */\n colors?: Colors;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /**\n * Deprecated: Use `borderWidth` for normal/hover states instead.\n * @deprecated\n */\n borderWidthHover?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /**\n * Border color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n borderColorHover?: string | null;\n /**\n * Text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n /**\n * Text color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n textColorHover?: string | null;\n /**\n * Deprecated: Use `background` instead.\n * @maxLength 19\n * @deprecated\n */\n backgroundColor?: string | null;\n /**\n * Deprecated: Use `backgroundHover` instead.\n * @maxLength 19\n * @deprecated\n */\n backgroundColorHover?: string | null;\n /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */\n buttonSize?: string | null;\n /** Background styling (color or gradient). */\n background?: Background;\n /** Background styling for hover state (color or gradient). */\n backgroundHover?: Background;\n}\n\nexport interface Link extends LinkDataOneOf {\n /** The absolute URL for the linked document. */\n url?: string;\n /** The target node's ID. Used for linking to another node in this object. */\n anchor?: string;\n /**\n * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:\n * `SELF` - Default. Opens the linked document in the same frame as the link.\n * `BLANK` - Opens the linked document in a new browser tab or window.\n * `PARENT` - Opens the linked document in the link's parent frame.\n * `TOP` - Opens the linked document in the full body of the link's browser tab or window.\n */\n target?: TargetWithLiterals;\n /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */\n rel?: Rel;\n /** A serialized object used for a custom or external link panel. */\n customData?: string | null;\n}\n\n/** @oneof */\nexport interface LinkDataOneOf {\n /** The absolute URL for the linked document. */\n url?: string;\n /** The target node's ID. Used for linking to another node in this object. */\n anchor?: string;\n}\n\nexport enum Target {\n /** Opens the linked document in the same frame as it was clicked (this is default) */\n SELF = 'SELF',\n /** Opens the linked document in a new window or tab */\n BLANK = 'BLANK',\n /** Opens the linked document in the parent frame */\n PARENT = 'PARENT',\n /** Opens the linked document in the full body of the window */\n TOP = 'TOP',\n}\n\n/** @enumType */\nexport type TargetWithLiterals = Target | 'SELF' | 'BLANK' | 'PARENT' | 'TOP';\n\nexport interface Rel {\n /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */\n nofollow?: boolean | null;\n /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */\n sponsored?: boolean | null;\n /** Indicates that this link is user-generated content and isn't necessarily trusted or endorsed by the page’s author. For example, a link in a fourm post. Defaults to `false`. */\n ugc?: boolean | null;\n /** Indicates that this link protect referral information from being passed to the target website. */\n noreferrer?: boolean | null;\n}\n\nexport interface Animation {\n /** Animation kind. */\n type?: TypeWithLiterals;\n /** Entrance animation, played once when the node first enters the viewport (VIEW). */\n entrance?: EntranceAnimation;\n /** Looping animation, repeated indefinitely while the node is on the page. When combined with entrance, the loop starts after the entrance finishes (VIEW). */\n loop?: LoopAnimation;\n /**\n * POINTER carries its fields directly on the union member in the JTD wall, hence\n * flat fields here (ts-proto camelCase must equal the JTD property names). A future\n * kind that also needs an `effect` field would contend for this JSON name.\n */\n effect?: PointerEffect;\n /** How quickly the node settles toward the pointer, in milliseconds (POINTER). */\n transitionDuration?: number | null;\n}\n\nexport enum Type {\n /** Animations that play while the node is in view. */\n VIEW = 'VIEW',\n /** Animations driven by the visitor's mouse position. */\n POINTER = 'POINTER',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'VIEW' | 'POINTER';\n\nexport interface EntranceAnimation {\n /** The entrance effect to play. */\n effect?: EntranceEffect;\n /** Effect duration in milliseconds. Each effect has its own default. */\n duration?: number | null;\n /** Delay before the effect starts, in milliseconds. */\n delay?: number | null;\n}\n\nexport interface EntranceEffect {\n /** The entrance effect type. */\n type?: EntranceEffectTypeWithLiterals;\n /**\n * Direction the effect enters from. Allowed values depend on the effect type (e.g. TOP/RIGHT/BOTTOM/LEFT, the diagonals with or without CENTER, corners, HORIZONTAL/VERTICAL, CLOCKWISE/COUNTER_CLOCKWISE).\n * @maxLength 20\n */\n direction?: string | null;\n /**\n * Clip-path shape: ELLIPSE, CIRCLE, RECTANGLE, or DIAMOND (SHAPE).\n * @maxLength 12\n */\n shape?: string | null;\n /**\n * Motion style: GENTLE, MODERATE, or INTENSE. Only the effects that expose one accept it.\n * @maxLength 100\n */\n easing?: string | null;\n}\n\nexport enum EntranceEffectType {\n /** Fades in from fully transparent to fully opaque. */\n FADE = 'FADE',\n /** Enters along a 3D arc path. */\n ARC = 'ARC',\n /** Transitions from blurred to sharp. */\n BLUR = 'BLUR',\n /** Bounces into place with an elastic curve. */\n BOUNCE = 'BOUNCE',\n /** Shrinks down from a larger size. */\n DROP = 'DROP',\n /** Expands from a point, scaling to full size. */\n EXPAND = 'EXPAND',\n /** Flips into view with a 3D rotation. */\n FLIP = 'FLIP',\n /** Drifts gently into place. */\n FLOAT = 'FLOAT',\n /** Unfolds from an edge as if hinged. */\n FOLD = 'FOLD',\n /** Glides in smoothly from off-screen. */\n GLIDE = 'GLIDE',\n /** Progressively revealed by an expanding clip-path. */\n REVEAL = 'REVEAL',\n /** Appears through an expanding geometric clip-path shape. */\n SHAPE = 'SHAPE',\n /** Revealed through shutter-like strips. */\n SHUTTERS = 'SHUTTERS',\n /** Slides in from one side. */\n SLIDE = 'SLIDE',\n /** Spins into view while scaling up. */\n SPIN = 'SPIN',\n /** Tilts in from the side with 3D rotation. */\n TILT = 'TILT',\n /** Rotates into view around a corner pivot. */\n TURN = 'TURN',\n /** Expands from its horizontal or vertical center. */\n WINK = 'WINK',\n}\n\n/** @enumType */\nexport type EntranceEffectTypeWithLiterals =\n | EntranceEffectType\n | 'FADE'\n | 'ARC'\n | 'BLUR'\n | 'BOUNCE'\n | 'DROP'\n | 'EXPAND'\n | 'FLIP'\n | 'FLOAT'\n | 'FOLD'\n | 'GLIDE'\n | 'REVEAL'\n | 'SHAPE'\n | 'SHUTTERS'\n | 'SLIDE'\n | 'SPIN'\n | 'TILT'\n | 'TURN'\n | 'WINK';\n\nexport interface LoopAnimation {\n /** The looping effect to repeat. */\n effect?: LoopEffect;\n /** Duration of a single iteration in milliseconds. Each effect has its own default. */\n duration?: number | null;\n /** Pause between iterations in milliseconds. */\n iterationDelay?: number | null;\n}\n\nexport interface LoopEffect {\n /** The looping effect type. */\n type?: LoopEffectTypeWithLiterals;\n /**\n * Direction of the effect. Allowed values depend on the effect type (e.g. TOP/RIGHT/BOTTOM/LEFT, LEFT/RIGHT, HORIZONTAL/VERTICAL with or without CENTER, CLOCKWISE/COUNTER_CLOCKWISE).\n * @maxLength 20\n */\n direction?: string | null;\n /**\n * Motion style: GENTLE, MODERATE, or INTENSE. Only the effects that expose one accept it.\n * @maxLength 100\n */\n easing?: string | null;\n}\n\nexport enum LoopEffectType {\n /** Bounces up and down in place. */\n BOUNCE = 'BOUNCE',\n /** Scales gently in and out along an axis. */\n BREATHE = 'BREATHE',\n /** Drifts toward one side, then re-enters from the opposite side. */\n CROSS = 'CROSS',\n /** Fades out to fully transparent and back in. */\n FLASH = 'FLASH',\n /** Rotates a full turn around its horizontal or vertical axis. */\n FLIP = 'FLIP',\n /** Folds back and forth around a hinged edge. */\n FOLD = 'FOLD',\n /** Wobbles with a jelly-like skew. */\n JELLO = 'JELLO',\n /** Nudges repeatedly toward a direction. */\n POKE = 'POKE',\n /** Scales up and back down rhythmically. */\n PULSE = 'PULSE',\n /** Stretches and squashes like a rubber band. */\n RUBBER = 'RUBBER',\n /** Rotates continuously around its center. */\n SPIN = 'SPIN',\n /** Swings back and forth around an edge pivot. */\n SWING = 'SWING',\n /** Rocks side to side with an accumulating rotation. */\n WIGGLE = 'WIGGLE',\n}\n\n/** @enumType */\nexport type LoopEffectTypeWithLiterals =\n | LoopEffectType\n | 'BOUNCE'\n | 'BREATHE'\n | 'CROSS'\n | 'FLASH'\n | 'FLIP'\n | 'FOLD'\n | 'JELLO'\n | 'POKE'\n | 'PULSE'\n | 'RUBBER'\n | 'SPIN'\n | 'SWING'\n | 'WIGGLE';\n\nexport interface PointerEffect {\n /** The mouse effect type. */\n type?: PointerEffectTypeWithLiterals;\n /** Reacts away from the pointer instead of toward it. */\n inverted?: boolean | null;\n /**\n * One field, two value spaces (the effect type says which): the axis the movement is constrained to — HORIZONTAL, VERTICAL, or BOTH (AIRY, SCALE, SKEW, TRACK, TRACK_3D) — or the edge/center axis the node swivels around — TOP, BOTTOM, LEFT, RIGHT, CENTER_HORIZONTAL, or CENTER_VERTICAL (SWIVEL). Only the effects that expose one accept it.\n * @maxLength 20\n */\n axis?: string | null;\n /**\n * Whether the node grows or shrinks as the pointer nears: UP or DOWN (SCALE).\n * @maxLength 8\n */\n direction?: string | null;\n /**\n * Motion style: GENTLE, MODERATE, or INTENSE.\n * @maxLength 100\n */\n easing?: string | null;\n}\n\nexport enum PointerEffectType {\n /** Drifts loosely after the pointer with a light rotation. */\n AIRY = 'AIRY',\n /** Squashes and stretches toward the pointer. */\n BLOB = 'BLOB',\n /** Shifts after the pointer while blurring. */\n BLUR = 'BLUR',\n /** Scales as the pointer approaches. */\n SCALE = 'SCALE',\n /** Skews toward the pointer. */\n SKEW = 'SKEW',\n /** Rotates around a pivot edge or axis, following the pointer. */\n SWIVEL = 'SWIVEL',\n /** Tilts in 3D perspective toward the pointer. */\n TILT_3D = 'TILT_3D',\n /** Follows the pointer's position. */\n TRACK = 'TRACK',\n /** Follows the pointer with a 3D depth motion. */\n TRACK_3D = 'TRACK_3D',\n}\n\n/** @enumType */\nexport type PointerEffectTypeWithLiterals =\n | PointerEffectType\n | 'AIRY'\n | 'BLOB'\n | 'BLUR'\n | 'SCALE'\n | 'SKEW'\n | 'SWIVEL'\n | 'TILT_3D'\n | 'TRACK'\n | 'TRACK_3D';\n\nexport interface CodeBlockData {\n /** Styling for the code block's text. */\n textStyle?: TextStyle;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface TextStyle {\n /** Text alignment. Defaults to `AUTO`. */\n textAlignment?: TextAlignmentWithLiterals;\n /** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */\n lineHeight?: string | null;\n /** Font size of an empty block: it sizes the empty line, its list marker and the text typed into it. Ignored on a block with text, which is sized by its text's `FONT_SIZE` decorations. */\n fontSize?: FontSizeData;\n}\n\nexport enum TextAlignment {\n /** browser default, eqivalent to `initial` */\n AUTO = 'AUTO',\n /** Left align */\n LEFT = 'LEFT',\n /** Right align */\n RIGHT = 'RIGHT',\n /** Center align */\n CENTER = 'CENTER',\n /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */\n JUSTIFY = 'JUSTIFY',\n}\n\n/** @enumType */\nexport type TextAlignmentWithLiterals =\n | TextAlignment\n | 'AUTO'\n | 'LEFT'\n | 'RIGHT'\n | 'CENTER'\n | 'JUSTIFY';\n\nexport interface FontSizeData {\n /** The units used for the font size. */\n unit?: FontTypeWithLiterals;\n /** Font size value. */\n value?: number | null;\n}\n\nexport enum FontType {\n PX = 'PX',\n EM = 'EM',\n}\n\n/** @enumType */\nexport type FontTypeWithLiterals = FontType | 'PX' | 'EM';\n\nexport interface DividerData {\n /** Styling for the divider's container. */\n containerData?: PluginContainerData;\n /** Divider line style. */\n lineStyle?: LineStyleWithLiterals;\n /** Divider width. */\n width?: WidthWithLiterals;\n /** Divider alignment. */\n alignment?: DividerDataAlignmentWithLiterals;\n /** Visual styling for the divider lines. */\n styles?: DividerDataStyles;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum LineCap {\n /** Square line endings. */\n SQUARE = 'SQUARE',\n /** Rounded line endings. */\n ROUND = 'ROUND',\n}\n\n/** @enumType */\nexport type LineCapWithLiterals = LineCap | 'SQUARE' | 'ROUND';\n\nexport enum LineStyle {\n /** Single Line */\n SINGLE = 'SINGLE',\n /** Double Line */\n DOUBLE = 'DOUBLE',\n /** Dashed Line */\n DASHED = 'DASHED',\n /** Dotted Line */\n DOTTED = 'DOTTED',\n}\n\n/** @enumType */\nexport type LineStyleWithLiterals =\n | LineStyle\n | 'SINGLE'\n | 'DOUBLE'\n | 'DASHED'\n | 'DOTTED';\n\nexport enum Width {\n /** Large line */\n LARGE = 'LARGE',\n /** Medium line */\n MEDIUM = 'MEDIUM',\n /** Small line */\n SMALL = 'SMALL',\n}\n\n/** @enumType */\nexport type WidthWithLiterals = Width | 'LARGE' | 'MEDIUM' | 'SMALL';\n\nexport enum DividerDataAlignment {\n /** Center alignment */\n CENTER = 'CENTER',\n /** Left alignment */\n LEFT = 'LEFT',\n /** Right alignment */\n RIGHT = 'RIGHT',\n}\n\n/** @enumType */\nexport type DividerDataAlignmentWithLiterals =\n | DividerDataAlignment\n | 'CENTER'\n | 'LEFT'\n | 'RIGHT';\n\nexport interface DividerDataStyles {\n /**\n * Divider color as a hexadecimal value. An alpha channel controls opacity.\n * @maxLength 19\n */\n color?: string | null;\n /** Divider line ending shape. */\n lineCap?: LineCapWithLiterals;\n /**\n * Line thicknesses in pixels, ordered from first line to last line.\n * @maxSize 10\n */\n lineThickness?: number[];\n /** Visible dash length for dashed dividers, in pixels. The pattern is snapped to a whole number of dashes so that the first and last dash touch the divider's edges - narrower containers show fewer dashes at the same size. */\n dashLength?: number | null;\n /** Visible gap between dashes or dots, in pixels. */\n dashGap?: number | null;\n /** Gap between divider lines in pixels. */\n lineGap?: number | null;\n}\n\nexport interface FileData {\n /** Styling for the file's container. */\n containerData?: PluginContainerData;\n /** The source for the file's data. */\n src?: FileSource;\n /** File name. */\n name?: string | null;\n /** File type. */\n type?: string | null;\n /**\n * Use `sizeInKb` instead.\n * @deprecated\n */\n size?: number | null;\n /** Settings for PDF files. */\n pdfSettings?: PDFSettings;\n /** File MIME type. */\n mimeType?: string | null;\n /** File path. */\n path?: string | null;\n /** File size in KB. */\n sizeInKb?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum ViewMode {\n /** No PDF view */\n NONE = 'NONE',\n /** Full PDF view */\n FULL = 'FULL',\n /** Mini PDF view */\n MINI = 'MINI',\n}\n\n/** @enumType */\nexport type ViewModeWithLiterals = ViewMode | 'NONE' | 'FULL' | 'MINI';\n\nexport interface FileSource extends FileSourceDataOneOf {\n /** The absolute URL for the file's source. */\n url?: string | null;\n /**\n * Custom ID. Use `id` instead.\n * @deprecated\n */\n custom?: string | null;\n /** An ID that's resolved to a URL by a resolver function. */\n id?: string | null;\n /** Indicates whether the file's source is private. Defaults to `false`. */\n private?: boolean | null;\n}\n\n/** @oneof */\nexport interface FileSourceDataOneOf {\n /** The absolute URL for the file's source. */\n url?: string | null;\n /**\n * Custom ID. Use `id` instead.\n * @deprecated\n */\n custom?: string | null;\n /** An ID that's resolved to a URL by a resolver function. */\n id?: string | null;\n}\n\nexport interface PDFSettings {\n /**\n * PDF view mode. One of the following:\n * `NONE` : The PDF isn't displayed.\n * `FULL` : A full page view of the PDF is displayed.\n * `MINI` : A mini view of the PDF is displayed.\n */\n viewMode?: ViewModeWithLiterals;\n /** Sets whether the PDF download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Sets whether the PDF print button is disabled. Defaults to `false`. */\n disablePrint?: boolean | null;\n}\n\nexport interface GalleryData {\n /** Styling for the gallery's container. */\n containerData?: PluginContainerData;\n /** The items in the gallery. */\n items?: Item[];\n /** Options for defining the gallery's appearance. */\n options?: GalleryOptions;\n /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */\n disableExpand?: boolean | null;\n /** Sets whether the gallery's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface Media {\n /** The source for the media's data. */\n src?: FileSource;\n /** Media width in pixels. */\n width?: number | null;\n /** Media height in pixels. */\n height?: number | null;\n /** Media duration in seconds. Only relevant for audio and video files. */\n duration?: number | null;\n}\n\nexport interface Image {\n /** Image file details. */\n media?: Media;\n /** Link details for images that are links. */\n link?: Link;\n}\n\nexport interface Video {\n /** Video file details. */\n media?: Media;\n /** Video thumbnail file details. */\n thumbnail?: Media;\n}\n\nexport interface Item extends ItemDataOneOf {\n /** An image item. */\n image?: Image;\n /** A video item. */\n video?: Video;\n /** Item title. */\n title?: string | null;\n /** Item's alternative text. */\n altText?: string | null;\n}\n\n/** @oneof */\nexport interface ItemDataOneOf {\n /** An image item. */\n image?: Image;\n /** A video item. */\n video?: Video;\n}\n\nexport interface GalleryOptions {\n /** Gallery layout. */\n layout?: GalleryOptionsLayout;\n /** Styling for gallery items. */\n item?: ItemStyle;\n /** Styling for gallery thumbnail images. */\n thumbnails?: Thumbnails;\n}\n\nexport enum LayoutType {\n /** Collage type */\n COLLAGE = 'COLLAGE',\n /** Masonry type */\n MASONRY = 'MASONRY',\n /** Grid type */\n GRID = 'GRID',\n /** Thumbnail type */\n THUMBNAIL = 'THUMBNAIL',\n /** Slider type */\n SLIDER = 'SLIDER',\n /** Slideshow type */\n SLIDESHOW = 'SLIDESHOW',\n /** Panorama type */\n PANORAMA = 'PANORAMA',\n /** Column type */\n COLUMN = 'COLUMN',\n /** Magic type */\n MAGIC = 'MAGIC',\n /** Fullsize images type */\n FULLSIZE = 'FULLSIZE',\n}\n\n/** @enumType */\nexport type LayoutTypeWithLiterals =\n | LayoutType\n | 'COLLAGE'\n | 'MASONRY'\n | 'GRID'\n | 'THUMBNAIL'\n | 'SLIDER'\n | 'SLIDESHOW'\n | 'PANORAMA'\n | 'COLUMN'\n | 'MAGIC'\n | 'FULLSIZE';\n\nexport enum Orientation {\n /** Rows Orientation */\n ROWS = 'ROWS',\n /** Columns Orientation */\n COLUMNS = 'COLUMNS',\n}\n\n/** @enumType */\nexport type OrientationWithLiterals = Orientation | 'ROWS' | 'COLUMNS';\n\nexport enum Crop {\n /** Crop to fill */\n FILL = 'FILL',\n /** Crop to fit */\n FIT = 'FIT',\n}\n\n/** @enumType */\nexport type CropWithLiterals = Crop | 'FILL' | 'FIT';\n\nexport enum ThumbnailsAlignment {\n /** Top alignment */\n TOP = 'TOP',\n /** Right alignment */\n RIGHT = 'RIGHT',\n /** Bottom alignment */\n BOTTOM = 'BOTTOM',\n /** Left alignment */\n LEFT = 'LEFT',\n /** No thumbnail */\n NONE = 'NONE',\n}\n\n/** @enumType */\nexport type ThumbnailsAlignmentWithLiterals =\n | ThumbnailsAlignment\n | 'TOP'\n | 'RIGHT'\n | 'BOTTOM'\n | 'LEFT'\n | 'NONE';\n\nexport interface GalleryOptionsLayout {\n /** Gallery layout type. */\n type?: LayoutTypeWithLiterals;\n /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */\n horizontalScroll?: boolean | null;\n /** Gallery orientation. */\n orientation?: OrientationWithLiterals;\n /** The number of columns to display on full size screens. */\n numberOfColumns?: number | null;\n /** The number of columns to display on mobile screens. */\n mobileNumberOfColumns?: number | null;\n}\n\nexport interface ItemStyle {\n /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */\n targetSize?: number | null;\n /** Item ratio */\n ratio?: number | null;\n /** Sets how item images are cropped. */\n crop?: CropWithLiterals;\n /** The spacing between items in pixels. */\n spacing?: number | null;\n}\n\nexport interface Thumbnails {\n /** Thumbnail alignment. */\n placement?: ThumbnailsAlignmentWithLiterals;\n /** Spacing between thumbnails in pixels. */\n spacing?: number | null;\n}\n\nexport interface GIFData {\n /** Styling for the GIF's container. */\n containerData?: PluginContainerData;\n /** The source of the full size GIF. */\n original?: GIF;\n /** The source of the downsized GIF. */\n downsized?: GIF;\n /** Height in pixels. */\n height?: number;\n /** Width in pixels. */\n width?: number;\n /** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */\n gifType?: GIFTypeWithLiterals;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface GIF {\n /**\n * GIF format URL.\n * @format WEB_URL\n */\n gif?: string | null;\n /**\n * MP4 format URL.\n * @format WEB_URL\n */\n mp4?: string | null;\n /**\n * Thumbnail URL.\n * @format WEB_URL\n */\n still?: string | null;\n}\n\nexport enum GIFType {\n NORMAL = 'NORMAL',\n STICKER = 'STICKER',\n}\n\n/** @enumType */\nexport type GIFTypeWithLiterals = GIFType | 'NORMAL' | 'STICKER';\n\nexport interface HeadingData {\n /** Heading level from 1-6. */\n level?: number;\n /** Styling for the heading text. */\n textStyle?: TextStyle;\n /** Indentation level from 1-4. */\n indentation?: number | null;\n /** Rendered heading level for SEO/accessibility, overrides the HTML tag when set. */\n renderedLevel?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface HTMLData extends HTMLDataDataOneOf {\n /** The URL for the HTML code for the node. */\n url?: string;\n /** The HTML code for the node. */\n html?: string;\n /**\n * Whether this is an AdSense element. Use `source` instead.\n * @deprecated\n */\n isAdsense?: boolean | null;\n /** The WixelWidget ID for AI_WIDGET source nodes. */\n widgetId?: string;\n /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */\n containerData?: PluginContainerData;\n /** The type of HTML code. */\n source?: SourceWithLiterals;\n /** If container height is aligned with its content height. Defaults to `true`. */\n autoHeight?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** @oneof */\nexport interface HTMLDataDataOneOf {\n /** The URL for the HTML code for the node. */\n url?: string;\n /** The HTML code for the node. */\n html?: string;\n /**\n * Whether this is an AdSense element. Use `source` instead.\n * @deprecated\n */\n isAdsense?: boolean | null;\n /** The WixelWidget ID for AI_WIDGET source nodes. */\n widgetId?: string;\n}\n\nexport enum Source {\n HTML = 'HTML',\n ADSENSE = 'ADSENSE',\n AI = 'AI',\n AI_WIDGET = 'AI_WIDGET',\n}\n\n/** @enumType */\nexport type SourceWithLiterals =\n | Source\n | 'HTML'\n | 'ADSENSE'\n | 'AI'\n | 'AI_WIDGET';\n\nexport interface ImageData {\n /** Styling for the image's container. */\n containerData?: PluginContainerData;\n /** Image file details. */\n image?: Media;\n /** Link details for images that are links. */\n link?: Link;\n /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */\n disableExpand?: boolean | null;\n /** Image's alternative text. */\n altText?: string | null;\n /**\n * Deprecated: use Caption node instead.\n * @deprecated\n */\n caption?: string | null;\n /** Sets whether the image's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Sets whether the image is decorative and does not need an explanation. Defaults to `false`. */\n decorative?: boolean | null;\n /** Styling for the image. */\n styles?: ImageDataStyles;\n /** Non-destructive crop rectangle, expressed as fractions (0-1) of the original image. When omitted, the full image is shown. */\n crop?: ImageDataCrop;\n /** Optional shape mask applied to the visible crop. Supported values: CIRCLE, OVAL, STAR, PENTAGON, HEXAGON, TRIANGLE, HEART, RHOMBUS, FLUID, WINDOW. */\n cropShape?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface StylesBorder {\n /** Border width in pixels. */\n width?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Border radius in pixels. */\n radius?: number | null;\n}\n\nexport interface ImageDataStyles {\n /** Border attributes. */\n border?: StylesBorder;\n}\n\nexport interface ImageDataCrop {\n /** Left edge of the crop, as a fraction (0-1) of the original image width. */\n x?: number | null;\n /** Top edge of the crop, as a fraction (0-1) of the original image height. */\n y?: number | null;\n /** Visible width of the crop, as a fraction (0-1) of the original image width. */\n width?: number | null;\n /** Visible height of the crop, as a fraction (0-1) of the original image height. */\n height?: number | null;\n}\n\nexport interface LinkPreviewData {\n /** Styling for the link preview's container. */\n containerData?: PluginContainerData;\n /** Link details. */\n link?: Link;\n /** Preview title. */\n title?: string | null;\n /** Preview thumbnail URL. */\n thumbnailUrl?: string | null;\n /** Preview description. */\n description?: string | null;\n /** The preview content as HTML. */\n html?: string | null;\n /** Styling for the link preview. */\n styles?: LinkPreviewDataStyles;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum StylesPosition {\n /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */\n START = 'START',\n /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */\n END = 'END',\n /** Thumbnail positioned at the top */\n TOP = 'TOP',\n /** Thumbnail hidden and not displayed */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type StylesPositionWithLiterals =\n | StylesPosition\n | 'START'\n | 'END'\n | 'TOP'\n | 'HIDDEN';\n\nexport interface LinkPreviewDataStyles {\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Title color as a hexadecimal value.\n * @maxLength 19\n */\n titleColor?: string | null;\n /**\n * Subtitle color as a hexadecimal value.\n * @maxLength 19\n */\n subtitleColor?: string | null;\n /**\n * Link color as a hexadecimal value.\n * @maxLength 19\n */\n linkColor?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Position of thumbnail. Defaults to `START`. */\n thumbnailPosition?: StylesPositionWithLiterals;\n}\n\nexport interface MapData {\n /** Styling for the map's container. */\n containerData?: PluginContainerData;\n /** Map settings. */\n mapSettings?: MapSettings;\n}\n\nexport interface MapSettings {\n /** The address to display on the map. */\n address?: string | null;\n /** Sets whether the map is draggable. */\n draggable?: boolean | null;\n /** Sets whether the location marker is visible. */\n marker?: boolean | null;\n /** Sets whether street view control is enabled. */\n streetViewControl?: boolean | null;\n /** Sets whether zoom control is enabled. */\n zoomControl?: boolean | null;\n /** Location latitude. */\n lat?: number | null;\n /** Location longitude. */\n lng?: number | null;\n /** Location name. */\n locationName?: string | null;\n /** Sets whether view mode control is enabled. */\n viewModeControl?: boolean | null;\n /** Initial zoom value. */\n initialZoom?: number | null;\n /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */\n mapType?: MapTypeWithLiterals;\n}\n\nexport enum MapType {\n /** Roadmap map type */\n ROADMAP = 'ROADMAP',\n /** Satellite map type */\n SATELITE = 'SATELITE',\n /** Hybrid map type */\n HYBRID = 'HYBRID',\n /** Terrain map type */\n TERRAIN = 'TERRAIN',\n}\n\n/** @enumType */\nexport type MapTypeWithLiterals =\n | MapType\n | 'ROADMAP'\n | 'SATELITE'\n | 'HYBRID'\n | 'TERRAIN';\n\nexport interface ParagraphData {\n /** Styling for the paragraph text. */\n textStyle?: TextStyle;\n /** Indentation level from 1-4. */\n indentation?: number | null;\n /** Paragraph level */\n level?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface PollData {\n /** Styling for the poll's container. */\n containerData?: PluginContainerData;\n /** Poll data. */\n poll?: Poll;\n /** Layout settings for the poll and voting options. */\n layout?: PollDataLayout;\n /** Styling for the poll and voting options. */\n design?: Design;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum ViewRole {\n /** Only Poll creator can view the results */\n CREATOR = 'CREATOR',\n /** Anyone who voted can see the results */\n VOTERS = 'VOTERS',\n /** Anyone can see the results, even if one didn't vote */\n EVERYONE = 'EVERYONE',\n}\n\n/** @enumType */\nexport type ViewRoleWithLiterals = ViewRole | 'CREATOR' | 'VOTERS' | 'EVERYONE';\n\nexport enum VoteRole {\n /** Logged in member */\n SITE_MEMBERS = 'SITE_MEMBERS',\n /** Anyone */\n ALL = 'ALL',\n}\n\n/** @enumType */\nexport type VoteRoleWithLiterals = VoteRole | 'SITE_MEMBERS' | 'ALL';\n\nexport interface Permissions {\n /** Sets who can view the poll results. */\n view?: ViewRoleWithLiterals;\n /** Sets who can vote. */\n vote?: VoteRoleWithLiterals;\n /** Sets whether one voter can vote multiple times. Defaults to `false`. */\n allowMultipleVotes?: boolean | null;\n}\n\nexport interface Option {\n /** Option ID. */\n id?: string | null;\n /** Option title. */\n title?: string | null;\n /** The image displayed with the option. */\n image?: Media;\n}\n\nexport interface Settings {\n /** Permissions settings for voting. */\n permissions?: Permissions;\n /** Sets whether voters are displayed in the vote results. Defaults to `true`. */\n showVoters?: boolean | null;\n /** Sets whether the vote count is displayed. Defaults to `true`. */\n showVotesCount?: boolean | null;\n}\n\nexport enum PollLayoutType {\n /** List */\n LIST = 'LIST',\n /** Grid */\n GRID = 'GRID',\n}\n\n/** @enumType */\nexport type PollLayoutTypeWithLiterals = PollLayoutType | 'LIST' | 'GRID';\n\nexport enum PollLayoutDirection {\n /** Left-to-right */\n LTR = 'LTR',\n /** Right-to-left */\n RTL = 'RTL',\n}\n\n/** @enumType */\nexport type PollLayoutDirectionWithLiterals =\n | PollLayoutDirection\n | 'LTR'\n | 'RTL';\n\nexport interface PollLayout {\n /** The layout for displaying the voting options. */\n type?: PollLayoutTypeWithLiterals;\n /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */\n direction?: PollLayoutDirectionWithLiterals;\n /** Sets whether to display the main poll image. Defaults to `false`. */\n enableImage?: boolean | null;\n}\n\nexport interface OptionLayout {\n /** Sets whether to display option images. Defaults to `false`. */\n enableImage?: boolean | null;\n}\n\nexport enum PollDesignBackgroundType {\n /** Color background type */\n COLOR = 'COLOR',\n /** Image background type */\n IMAGE = 'IMAGE',\n /** Gradiant background type */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type PollDesignBackgroundTypeWithLiterals =\n | PollDesignBackgroundType\n | 'COLOR'\n | 'IMAGE'\n | 'GRADIENT';\n\nexport interface BackgroundGradient {\n /** The gradient angle in degrees. */\n angle?: number | null;\n /**\n * The start color as a hexademical value.\n * @maxLength 19\n */\n startColor?: string | null;\n /**\n * The end color as a hexademical value.\n * @maxLength 19\n */\n lastColor?: string | null;\n}\n\nexport interface PollDesignBackground\n extends PollDesignBackgroundBackgroundOneOf {\n /**\n * The background color as a hexademical value.\n * @maxLength 19\n */\n color?: string | null;\n /** An image to use for the background. */\n image?: Media;\n /** Details for a gradient background. */\n gradient?: BackgroundGradient;\n /** Background type. For each option, include the relevant details. */\n type?: PollDesignBackgroundTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PollDesignBackgroundBackgroundOneOf {\n /**\n * The background color as a hexademical value.\n * @maxLength 19\n */\n color?: string | null;\n /** An image to use for the background. */\n image?: Media;\n /** Details for a gradient background. */\n gradient?: BackgroundGradient;\n}\n\nexport interface PollDesign {\n /** Background styling. */\n background?: PollDesignBackground;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n}\n\nexport interface OptionDesign {\n /** Border radius in pixels. */\n borderRadius?: number | null;\n}\n\nexport interface Poll {\n /** Poll ID. */\n id?: string | null;\n /** Poll title. */\n title?: string | null;\n /** Poll creator ID. */\n creatorId?: string | null;\n /** Main poll image. */\n image?: Media;\n /** Voting options. */\n options?: Option[];\n /** The poll's permissions and display settings. */\n settings?: Settings;\n}\n\nexport interface PollDataLayout {\n /** Poll layout settings. */\n poll?: PollLayout;\n /** Voting otpions layout settings. */\n options?: OptionLayout;\n}\n\nexport interface Design {\n /** Styling for the poll. */\n poll?: PollDesign;\n /** Styling for voting options. */\n options?: OptionDesign;\n}\n\nexport interface TextData {\n /** The text to apply decorations to. */\n text?: string;\n /** The decorations to apply. */\n decorations?: Decoration[];\n}\n\n/** Adds appearence changes to text */\nexport interface Decoration extends DecorationDataOneOf {\n /** Data for an anchor link decoration. */\n anchorData?: AnchorData;\n /** Data for a color decoration. */\n colorData?: ColorData;\n /** Data for an external link decoration. */\n linkData?: LinkData;\n /** Data for a mention decoration. */\n mentionData?: MentionData;\n /** Data for a font size decoration. */\n fontSizeData?: FontSizeData;\n /** Font weight for a bold decoration. */\n fontWeightValue?: number | null;\n /** Data for an italic decoration. Defaults to `true`. */\n italicData?: boolean | null;\n /** Data for an underline decoration. Defaults to `true`. */\n underlineData?: boolean | null;\n /** Data for a spoiler decoration. */\n spoilerData?: SpoilerData;\n /** Data for a strikethrough decoration. Defaults to `true`. */\n strikethroughData?: boolean | null;\n /** Data for a superscript decoration. Defaults to `true`. */\n superscriptData?: boolean | null;\n /** Data for a subscript decoration. Defaults to `true`. */\n subscriptData?: boolean | null;\n /** Data for a font family decoration. */\n fontFamilyData?: FontFamilyData;\n /** Data for a hand-drawn sketch annotation decoration. */\n sketchData?: SketchData;\n /** The type of decoration to apply. */\n type?: DecorationTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface DecorationDataOneOf {\n /** Data for an anchor link decoration. */\n anchorData?: AnchorData;\n /** Data for a color decoration. */\n colorData?: ColorData;\n /** Data for an external link decoration. */\n linkData?: LinkData;\n /** Data for a mention decoration. */\n mentionData?: MentionData;\n /** Data for a font size decoration. */\n fontSizeData?: FontSizeData;\n /** Font weight for a bold decoration. */\n fontWeightValue?: number | null;\n /** Data for an italic decoration. Defaults to `true`. */\n italicData?: boolean | null;\n /** Data for an underline decoration. Defaults to `true`. */\n underlineData?: boolean | null;\n /** Data for a spoiler decoration. */\n spoilerData?: SpoilerData;\n /** Data for a strikethrough decoration. Defaults to `true`. */\n strikethroughData?: boolean | null;\n /** Data for a superscript decoration. Defaults to `true`. */\n superscriptData?: boolean | null;\n /** Data for a subscript decoration. Defaults to `true`. */\n subscriptData?: boolean | null;\n /** Data for a font family decoration. */\n fontFamilyData?: FontFamilyData;\n /** Data for a hand-drawn sketch annotation decoration. */\n sketchData?: SketchData;\n}\n\nexport enum DecorationType {\n BOLD = 'BOLD',\n ITALIC = 'ITALIC',\n UNDERLINE = 'UNDERLINE',\n SPOILER = 'SPOILER',\n ANCHOR = 'ANCHOR',\n MENTION = 'MENTION',\n LINK = 'LINK',\n COLOR = 'COLOR',\n FONT_SIZE = 'FONT_SIZE',\n EXTERNAL = 'EXTERNAL',\n STRIKETHROUGH = 'STRIKETHROUGH',\n SUPERSCRIPT = 'SUPERSCRIPT',\n SUBSCRIPT = 'SUBSCRIPT',\n FONT_FAMILY = 'FONT_FAMILY',\n SKETCH = 'SKETCH',\n}\n\n/** @enumType */\nexport type DecorationTypeWithLiterals =\n | DecorationType\n | 'BOLD'\n | 'ITALIC'\n | 'UNDERLINE'\n | 'SPOILER'\n | 'ANCHOR'\n | 'MENTION'\n | 'LINK'\n | 'COLOR'\n | 'FONT_SIZE'\n | 'EXTERNAL'\n | 'STRIKETHROUGH'\n | 'SUPERSCRIPT'\n | 'SUBSCRIPT'\n | 'FONT_FAMILY'\n | 'SKETCH';\n\nexport interface AnchorData {\n /** The target node's ID. */\n anchor?: string;\n}\n\nexport interface ColorData {\n /**\n * Deprecated: Use `backgroundStyle` instead. The text's background color as a hexadecimal value.\n * @deprecated\n */\n background?: string | null;\n /**\n * Deprecated: Use `foregroundStyle` instead. The text's foreground color as a hexadecimal value.\n * @deprecated\n */\n foreground?: string | null;\n /** Text fill styling (color or gradient). When present, takes precedence over `foreground`. */\n foregroundStyle?: ColorDataBackground;\n /** Text background (highlight) styling (color or gradient). When present, takes precedence over `background`. */\n backgroundStyle?: ColorDataBackground;\n}\n\n/** Background type */\nexport enum ColorDataBackgroundType {\n /** Solid color */\n COLOR = 'COLOR',\n /** Gradient */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type ColorDataBackgroundTypeWithLiterals =\n | ColorDataBackgroundType\n | 'COLOR'\n | 'GRADIENT';\n\n/** Fill styling (color or gradient) */\nexport interface ColorDataBackground {\n /** Background type. */\n type?: ColorDataBackgroundTypeWithLiterals;\n /**\n * Color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\nexport interface LinkData {\n /** Link details. */\n link?: Link;\n}\n\nexport interface MentionData {\n /** The mentioned user's name. */\n name?: string;\n /** The version of the user's name that appears after the `@` character in the mention. */\n slug?: string;\n /** Mentioned user's ID. */\n id?: string | null;\n /** The kind of entity the mention refers to. Any value is accepted, and it's usually used to mark a mention as a group mention (for example, `group`). When empty, the mention refers to a member. */\n type?: string | null;\n}\n\nexport interface SpoilerData {\n /** Spoiler ID. */\n id?: string | null;\n}\n\nexport interface FontFamilyData {\n /** @maxLength 1000 */\n value?: string | null;\n}\n\nexport interface SketchData {\n /** The sketch annotation variant to draw over the text. */\n variant?: VariantWithLiterals;\n /**\n * Annotation color. Defaults to the theme action color.\n * @maxLength 19\n */\n color?: string | null;\n /** Whether the annotation animates on first paint. Defaults to `true`. */\n animate?: boolean | null;\n}\n\nexport enum Variant {\n UNDERLINE = 'UNDERLINE',\n BOX = 'BOX',\n CIRCLE = 'CIRCLE',\n HIGHLIGHT = 'HIGHLIGHT',\n STRIKETHROUGH = 'STRIKETHROUGH',\n CROSSED_OFF = 'CROSSED_OFF',\n}\n\n/** @enumType */\nexport type VariantWithLiterals =\n | Variant\n | 'UNDERLINE'\n | 'BOX'\n | 'CIRCLE'\n | 'HIGHLIGHT'\n | 'STRIKETHROUGH'\n | 'CROSSED_OFF';\n\nexport interface AppEmbedData extends AppEmbedDataAppDataOneOf {\n /** Data for embedded Wix Bookings content. */\n bookingData?: BookingData;\n /** Data for embedded Wix Events content. */\n eventData?: EventData;\n /** The type of Wix App content being embedded. */\n type?: AppTypeWithLiterals;\n /** The ID of the embedded content. */\n itemId?: string | null;\n /** The name of the embedded content. */\n name?: string | null;\n /**\n * Deprecated: Use `image` instead.\n * @deprecated\n */\n imageSrc?: string | null;\n /** The URL for the embedded content. */\n url?: string | null;\n /** An image for the embedded content. */\n image?: Media;\n /** Whether to hide the image. */\n hideImage?: boolean | null;\n /** Whether to hide the title. */\n hideTitle?: boolean | null;\n /** Whether to hide the price. */\n hidePrice?: boolean | null;\n /** Whether to hide the description (Event and Booking). */\n hideDescription?: boolean | null;\n /** Whether to hide the date and time (Event). */\n hideDateTime?: boolean | null;\n /** Whether to hide the location (Event). */\n hideLocation?: boolean | null;\n /** Whether to hide the duration (Booking). */\n hideDuration?: boolean | null;\n /** Whether to hide the button. */\n hideButton?: boolean | null;\n /** Whether to hide the ribbon. */\n hideRibbon?: boolean | null;\n /** Button styling options. */\n buttonStyles?: ButtonStyles;\n /** Image styling options. */\n imageStyles?: ImageStyles;\n /** Ribbon styling options. */\n ribbonStyles?: RibbonStyles;\n /** Card styling options. */\n cardStyles?: CardStyles;\n /** Styling for the app embed's container. */\n containerData?: PluginContainerData;\n /** Pricing data for embedded Wix App content. */\n pricingData?: PricingData;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** @oneof */\nexport interface AppEmbedDataAppDataOneOf {\n /** Data for embedded Wix Bookings content. */\n bookingData?: BookingData;\n /** Data for embedded Wix Events content. */\n eventData?: EventData;\n}\n\nexport enum Position {\n /** Image positioned at the start (left in LTR layouts, right in RTL layouts) */\n START = 'START',\n /** Image positioned at the end (right in LTR layouts, left in RTL layouts) */\n END = 'END',\n /** Image positioned at the top */\n TOP = 'TOP',\n}\n\n/** @enumType */\nexport type PositionWithLiterals = Position | 'START' | 'END' | 'TOP';\n\nexport enum AspectRatio {\n /** 1:1 aspect ratio */\n SQUARE = 'SQUARE',\n /** 16:9 aspect ratio */\n RECTANGLE = 'RECTANGLE',\n}\n\n/** @enumType */\nexport type AspectRatioWithLiterals = AspectRatio | 'SQUARE' | 'RECTANGLE';\n\nexport enum Resizing {\n /** Fill the container, may crop the image */\n FILL = 'FILL',\n /** Fit the image within the container */\n FIT = 'FIT',\n}\n\n/** @enumType */\nexport type ResizingWithLiterals = Resizing | 'FILL' | 'FIT';\n\nexport enum Placement {\n /** Ribbon placed on the image */\n IMAGE = 'IMAGE',\n /** Ribbon placed on the product information */\n PRODUCT_INFO = 'PRODUCT_INFO',\n}\n\n/** @enumType */\nexport type PlacementWithLiterals = Placement | 'IMAGE' | 'PRODUCT_INFO';\n\nexport enum CardStylesType {\n /** Card with visible border and background */\n CONTAINED = 'CONTAINED',\n /** Card without visible border */\n FRAMELESS = 'FRAMELESS',\n}\n\n/** @enumType */\nexport type CardStylesTypeWithLiterals =\n | CardStylesType\n | 'CONTAINED'\n | 'FRAMELESS';\n\nexport enum Alignment {\n /** Content aligned to start (left in LTR layouts, right in RTL layouts) */\n START = 'START',\n /** Content centered */\n CENTER = 'CENTER',\n /** Content aligned to end (right in LTR layouts, left in RTL layouts) */\n END = 'END',\n}\n\n/** @enumType */\nexport type AlignmentWithLiterals = Alignment | 'START' | 'CENTER' | 'END';\n\nexport enum Layout {\n /** Elements stacked vertically */\n STACKED = 'STACKED',\n /** Elements arranged horizontally */\n SIDE_BY_SIDE = 'SIDE_BY_SIDE',\n}\n\n/** @enumType */\nexport type LayoutWithLiterals = Layout | 'STACKED' | 'SIDE_BY_SIDE';\n\nexport enum AppType {\n PRODUCT = 'PRODUCT',\n EVENT = 'EVENT',\n BOOKING = 'BOOKING',\n}\n\n/** @enumType */\nexport type AppTypeWithLiterals = AppType | 'PRODUCT' | 'EVENT' | 'BOOKING';\n\nexport interface BookingData {\n /** Booking duration in minutes. */\n durations?: string | null;\n}\n\nexport interface EventData {\n /** Event schedule. */\n scheduling?: string | null;\n /** Event location. */\n location?: string | null;\n}\n\nexport interface ButtonStyles {\n /** Text to display on the button. */\n buttonText?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /**\n * Text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Border color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n borderColorHover?: string | null;\n /**\n * Text color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n textColorHover?: string | null;\n /**\n * Background color as a hexadecimal value (hover state).\n * @maxLength 19\n */\n backgroundColorHover?: string | null;\n /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */\n buttonSize?: string | null;\n}\n\nexport interface ImageStyles {\n /** Whether to hide the image. */\n hideImage?: boolean | null;\n /** Position of image. Defaults to `START`. */\n imagePosition?: PositionWithLiterals;\n /** Aspect ratio for the image. Defaults to `SQUARE`. */\n aspectRatio?: AspectRatioWithLiterals;\n /** How the image should be resized. Defaults to `FILL`. */\n resizing?: ResizingWithLiterals;\n /**\n * Image border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Image border width in pixels. */\n borderWidth?: number | null;\n /** Image border radius in pixels. */\n borderRadius?: number | null;\n}\n\nexport interface RibbonStyles {\n /** Text to display on the ribbon. */\n ribbonText?: string | null;\n /**\n * Ribbon background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Ribbon text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n /**\n * Ribbon border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Ribbon border width in pixels. */\n borderWidth?: number | null;\n /** Ribbon border radius in pixels. */\n borderRadius?: number | null;\n /** Placement of the ribbon. Defaults to `IMAGE`. */\n ribbonPlacement?: PlacementWithLiterals;\n}\n\nexport interface CardStyles {\n /**\n * Card background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Card border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Card border width in pixels. */\n borderWidth?: number | null;\n /** Card border radius in pixels. */\n borderRadius?: number | null;\n /** Card type. Defaults to `CONTAINED`. */\n type?: CardStylesTypeWithLiterals;\n /** Content alignment. Defaults to `START`. */\n alignment?: AlignmentWithLiterals;\n /** Layout for title and price. Defaults to `STACKED`. */\n titlePriceLayout?: LayoutWithLiterals;\n /**\n * Title text color as a hexadecimal value.\n * @maxLength 19\n */\n titleColor?: string | null;\n /**\n * Text color as a hexadecimal value.\n * @maxLength 19\n */\n textColor?: string | null;\n}\n\nexport interface PricingData {\n /**\n * Minimum numeric price value as string (e.g., \"10.99\").\n * @decimalValue options { maxScale:2 }\n */\n valueFrom?: string | null;\n /**\n * Maximum numeric price value as string (e.g., \"19.99\").\n * @decimalValue options { maxScale:2 }\n */\n valueTo?: string | null;\n /**\n * Numeric price value as string after discount application (e.g., \"15.99\").\n * @decimalValue options { maxScale:2 }\n */\n discountedValue?: string | null;\n /**\n * Currency of the value in ISO 4217 format (e.g., \"USD\", \"EUR\").\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * Pricing plan ID.\n * @format GUID\n */\n pricingPlanId?: string | null;\n}\n\nexport interface VideoData {\n /** Styling for the video's container. */\n containerData?: PluginContainerData;\n /** Video details. */\n video?: Media;\n /** Video thumbnail details. */\n thumbnail?: Media;\n /** Sets whether the video's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Video title. */\n title?: string | null;\n /** Video options. */\n options?: PlaybackOptions;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface PlaybackOptions {\n /** Sets whether the media will automatically start playing. */\n autoPlay?: boolean | null;\n /** Sets whether media's will be looped. */\n playInLoop?: boolean | null;\n /** Sets whether media's controls will be shown. */\n showControls?: boolean | null;\n}\n\nexport interface EmbedData {\n /** Styling for the oEmbed node's container. */\n containerData?: PluginContainerData;\n /** An [oEmbed](https://www.oembed.com) object. */\n oembed?: Oembed;\n /** Origin asset source. */\n src?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface Oembed {\n /** The resource type. */\n type?: string | null;\n /** The width of the resource specified in the `url` property in pixels. */\n width?: number | null;\n /** The height of the resource specified in the `url` property in pixels. */\n height?: number | null;\n /** Resource title. */\n title?: string | null;\n /** The source URL for the resource. */\n url?: string | null;\n /** HTML for embedding a video player. The HTML should have no padding or margins. */\n html?: string | null;\n /** The name of the author or owner of the resource. */\n authorName?: string | null;\n /** The URL for the author or owner of the resource. */\n authorUrl?: string | null;\n /** The name of the resource provider. */\n providerName?: string | null;\n /** The URL for the resource provider. */\n providerUrl?: string | null;\n /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */\n thumbnailUrl?: string | null;\n /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */\n thumbnailWidth?: string | null;\n /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */\n thumbnailHeight?: string | null;\n /** The URL for an embedded viedo. */\n videoUrl?: string | null;\n /** The oEmbed version number. This value must be `1.0`. */\n version?: string | null;\n}\n\nexport interface CollapsibleListData {\n /** Styling for the collapsible list's container. */\n containerData?: PluginContainerData;\n /** If `true`, only one item can be expanded at a time. Defaults to `false`. */\n expandOnlyOne?: boolean | null;\n /** Sets which items are expanded when the page loads. */\n initialExpandedItems?: InitialExpandedItemsWithLiterals;\n /** The direction of the text in the list. Either left-to-right or right-to-left. */\n direction?: DirectionWithLiterals;\n /** If `true`, The collapsible item will appear in search results as an FAQ. */\n isQapageData?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport enum InitialExpandedItems {\n /** First item will be expended initally */\n FIRST = 'FIRST',\n /** All items will expended initally */\n ALL = 'ALL',\n /** All items collapsed initally */\n NONE = 'NONE',\n}\n\n/** @enumType */\nexport type InitialExpandedItemsWithLiterals =\n | InitialExpandedItems\n | 'FIRST'\n | 'ALL'\n | 'NONE';\n\nexport enum Direction {\n /** Left-to-right */\n LTR = 'LTR',\n /** Right-to-left */\n RTL = 'RTL',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals = Direction | 'LTR' | 'RTL';\n\nexport interface TableData {\n /** Styling for the table's container. */\n containerData?: PluginContainerData;\n /** The table's dimensions. */\n dimensions?: Dimensions;\n /**\n * Deprecated: Use `rowHeader` and `columnHeader` instead.\n * @deprecated\n */\n header?: boolean | null;\n /** Sets whether the table's first row is a header. Defaults to `false`. */\n rowHeader?: boolean | null;\n /** Sets whether the table's first column is a header. Defaults to `false`. */\n columnHeader?: boolean | null;\n /** The spacing between cells in pixels. Defaults to `0`. */\n cellSpacing?: number | null;\n /**\n * Padding in pixels for cells. Follows CSS order: top, right, bottom, left.\n * @maxSize 4\n */\n cellPadding?: number[];\n /** Table's alternative text. */\n altText?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface Dimensions {\n /** An array representing relative width of each column in relation to the other columns. */\n colsWidthRatio?: number[];\n /** An array representing the height of each row in pixels. */\n rowsHeight?: number[];\n /** An array representing the minimum width of each column in pixels. */\n colsMinWidth?: number[];\n}\n\nexport interface TableCellData {\n /** Styling for the cell's background color and text alignment. */\n cellStyle?: CellStyle;\n /** The cell's border colors. */\n borderColors?: BorderColors;\n /** Defines how many columns the cell spans. Default: 1. */\n colspan?: number | null;\n /** Defines how many rows the cell spans. Default: 1. */\n rowspan?: number | null;\n /** The cell's border widths. */\n borderWidths?: BorderWidths;\n}\n\nexport enum VerticalAlignment {\n /** Top alignment */\n TOP = 'TOP',\n /** Middle alignment */\n MIDDLE = 'MIDDLE',\n /** Bottom alignment */\n BOTTOM = 'BOTTOM',\n}\n\n/** @enumType */\nexport type VerticalAlignmentWithLiterals =\n | VerticalAlignment\n | 'TOP'\n | 'MIDDLE'\n | 'BOTTOM';\n\nexport interface CellStyle {\n /** Vertical alignment for the cell's text. */\n verticalAlignment?: VerticalAlignmentWithLiterals;\n /**\n * Cell background color as a hexadecimal value.\n * @maxLength 19\n */\n backgroundColor?: string | null;\n}\n\nexport interface BorderColors {\n /**\n * Left border color as a hexadecimal value.\n * @maxLength 19\n */\n left?: string | null;\n /**\n * Right border color as a hexadecimal value.\n * @maxLength 19\n */\n right?: string | null;\n /**\n * Top border color as a hexadecimal value.\n * @maxLength 19\n */\n top?: string | null;\n /**\n * Bottom border color as a hexadecimal value.\n * @maxLength 19\n */\n bottom?: string | null;\n}\n\nexport interface BorderWidths {\n /** Left border width in pixels. */\n left?: number | null;\n /** Right border width in pixels. */\n right?: number | null;\n /** Top border width in pixels. */\n top?: number | null;\n /** Bottom border width in pixels. */\n bottom?: number | null;\n}\n\n/**\n * `NullValue` is a singleton enumeration to represent the null value for the\n * `Value` type union.\n *\n * The JSON representation for `NullValue` is JSON `null`.\n */\nexport enum NullValue {\n /** Null value. */\n NULL_VALUE = 'NULL_VALUE',\n}\n\n/** @enumType */\nexport type NullValueWithLiterals = NullValue | 'NULL_VALUE';\n\n/**\n * `ListValue` is a wrapper around a repeated field of values.\n *\n * The JSON representation for `ListValue` is JSON array.\n */\nexport interface ListValue {\n /** Repeated field of dynamically typed values. */\n values?: any[];\n}\n\nexport interface AudioData {\n /** Styling for the audio node's container. */\n containerData?: PluginContainerData;\n /** Audio file details. */\n audio?: Media;\n /** Sets whether the audio node's download button is disabled. Defaults to `false`. */\n disableDownload?: boolean | null;\n /** Cover image. */\n coverImage?: Media;\n /** Track name. */\n name?: string | null;\n /** Author name. */\n authorName?: string | null;\n /** An HTML version of the audio node. */\n html?: string | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface OrderedListData {\n /** Indentation level from 0-4. */\n indentation?: number;\n /** Offset level from 0-4. */\n offset?: number | null;\n /** List start number. */\n start?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface BulletedListData {\n /** Indentation level from 0-4. */\n indentation?: number;\n /** Offset level from 0-4. */\n offset?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface BlockquoteData {\n /** Indentation level from 1-4. */\n indentation?: number;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface CaptionData {\n textStyle?: TextStyle;\n}\n\nexport interface LayoutData {\n /**\n * Deprecated: Use `background` instead.\n * @maxLength 19\n * @deprecated\n */\n backgroundColor?: string | null;\n /** Background image. */\n backgroundImage?: LayoutDataBackgroundImage;\n /**\n * Border color as a hexadecimal value.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /**\n * Deprecated: Use `backdrop` instead.\n * @maxLength 19\n * @deprecated\n */\n backdropColor?: string | null;\n /** Backdrop image. */\n backdropImage?: LayoutDataBackgroundImage;\n /** Backdrop top padding. */\n backdropPaddingTop?: number | null;\n /** Backdrop bottom padding */\n backdropPaddingBottom?: number | null;\n /** Horizontal and vertical gap between columns */\n gap?: number | null;\n /**\n * Padding in pixels for cells. Follows CSS order: top, right, bottom, left\n * @maxSize 4\n */\n cellPadding?: number[];\n /** Vertical alignment for the cell's items. */\n cellVerticalAlignment?: VerticalAlignmentAlignmentWithLiterals;\n /** Responsiveness behaviour of columns when responsiveness applies. Either stacks or wrappers. */\n responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;\n /** Size in pixels when responsiveness_behaviour applies */\n responsivenessBreakpoint?: number | null;\n /** Styling for the layout's container. */\n containerData?: PluginContainerData;\n /** Defines where selected design propertied applies to */\n designTarget?: DesignTargetWithLiterals;\n /** Where this layout sits: an edge banner, or the paywall cut. One field, so the two can never be combined. */\n banner?: Banner;\n /** Background styling (color or gradient). */\n background?: LayoutDataBackground;\n /** Backdrop styling (color or gradient). */\n backdrop?: Backdrop;\n /** Node animation. */\n animation?: Animation;\n /** Shape divider at the top edge of the layout. */\n topDivider?: SectionDivider;\n /** Shape divider at the bottom edge of the layout. */\n bottomDivider?: SectionDivider;\n}\n\nexport enum ImageScalingScaling {\n /** Auto image scaling */\n AUTO = 'AUTO',\n /** Contain image scaling */\n CONTAIN = 'CONTAIN',\n /** Cover image scaling */\n COVER = 'COVER',\n}\n\n/** @enumType */\nexport type ImageScalingScalingWithLiterals =\n | ImageScalingScaling\n | 'AUTO'\n | 'CONTAIN'\n | 'COVER';\n\nexport enum ImagePosition {\n /** Image positioned at the center */\n CENTER = 'CENTER',\n /** Image positioned on the left */\n CENTER_LEFT = 'CENTER_LEFT',\n /** Image positioned on the right */\n CENTER_RIGHT = 'CENTER_RIGHT',\n /** Image positioned at the center top */\n TOP = 'TOP',\n /** Image positioned at the top left */\n TOP_LEFT = 'TOP_LEFT',\n /** Image positioned at the top right */\n TOP_RIGHT = 'TOP_RIGHT',\n /** Image positioned at the center bottom */\n BOTTOM = 'BOTTOM',\n /** Image positioned at the bottom left */\n BOTTOM_LEFT = 'BOTTOM_LEFT',\n /** Image positioned at the bottom right */\n BOTTOM_RIGHT = 'BOTTOM_RIGHT',\n}\n\n/** @enumType */\nexport type ImagePositionWithLiterals =\n | ImagePosition\n | 'CENTER'\n | 'CENTER_LEFT'\n | 'CENTER_RIGHT'\n | 'TOP'\n | 'TOP_LEFT'\n | 'TOP_RIGHT'\n | 'BOTTOM'\n | 'BOTTOM_LEFT'\n | 'BOTTOM_RIGHT';\n\n/** Background styling (color or gradient) */\nexport interface LayoutDataBackground {\n /** Background type. */\n type?: LayoutDataBackgroundTypeWithLiterals;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\n/** Background type */\nexport enum LayoutDataBackgroundType {\n /** Solid color background */\n COLOR = 'COLOR',\n /** Gradient background */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type LayoutDataBackgroundTypeWithLiterals =\n | LayoutDataBackgroundType\n | 'COLOR'\n | 'GRADIENT';\n\nexport enum Origin {\n /** Banner originated from an image */\n IMAGE = 'IMAGE',\n /** Banner originated from a layout */\n LAYOUT = 'LAYOUT',\n}\n\n/** @enumType */\nexport type OriginWithLiterals = Origin | 'IMAGE' | 'LAYOUT';\n\nexport enum BannerPosition {\n /** Attached to the top edge (banner). The default, so a banner written before this field existed decodes as TOP. */\n TOP = 'TOP',\n /** Attached to the bottom edge (footer). */\n BOTTOM = 'BOTTOM',\n /** The cut between free and paid content, not an edge banner. `origin` carries no meaning for it. */\n PAYWALL = 'PAYWALL',\n}\n\n/** @enumType */\nexport type BannerPositionWithLiterals =\n | BannerPosition\n | 'TOP'\n | 'BOTTOM'\n | 'PAYWALL';\n\n/** How the stacked layers fade relative to the base shape. Named for a bottom divider; top dividers render mirrored, so the visual fade flips. */\nexport enum LayerEffect {\n /** Shape keeps its height, a solid filler bar pushes it away from the edge */\n CENTER = 'CENTER',\n /** Deeper (more transparent) layers shrink toward the edge inside the original band while a solid filler bar keeps its full height, so the faded copies hug the top of the band */\n FADE_TO_TOP = 'FADE_TO_TOP',\n /** Deeper (more transparent) layers stretch taller into the section, so the faded copies fan out above the base shape and descend to the layout edge */\n FADE_TO_BOTTOM = 'FADE_TO_BOTTOM',\n}\n\n/** @enumType */\nexport type LayerEffectWithLiterals =\n | LayerEffect\n | 'CENTER'\n | 'FADE_TO_TOP'\n | 'FADE_TO_BOTTOM';\n\n/** Divider shape preset */\nexport enum Shape {\n /** Ellipse shape */\n ELLIPSE = 'ELLIPSE',\n /** Tilt shape */\n TILT = 'TILT',\n /** Liquid shape */\n LIQUID = 'LIQUID',\n /** Left wave shape */\n LEFT_WAVE = 'LEFT_WAVE',\n /** Paint scribble shape */\n PAINT_SCRIBBLE = 'PAINT_SCRIBBLE',\n /** Inverted ellipse shape */\n INVERTED_ELLIPSE = 'INVERTED_ELLIPSE',\n /** Right wave shape */\n RIGHT_WAVE = 'RIGHT_WAVE',\n /** Dunes shape */\n DUNES = 'DUNES',\n /** Waves shape */\n WAVES = 'WAVES',\n /** Triangle shape */\n TRIANGLE = 'TRIANGLE',\n /** Semi-ellipse shape */\n SEMI_ELLIPSE = 'SEMI_ELLIPSE',\n /** Plants shape */\n PLANTS = 'PLANTS',\n /** Layered ellipse shape */\n LAYERED_ELLIPSE = 'LAYERED_ELLIPSE',\n /** Pixels shape */\n PIXELS = 'PIXELS',\n /** Paint shape */\n PAINT = 'PAINT',\n /** Clouds shape */\n CLOUDS = 'CLOUDS',\n /** Optical illusion shape */\n OPTICAL_ILLUSION = 'OPTICAL_ILLUSION',\n /** Stripes shape */\n STRIPES = 'STRIPES',\n /** Blobs shape */\n BLOBS = 'BLOBS',\n /** Semi-circles shape */\n SEMI_CIRCLES = 'SEMI_CIRCLES',\n /** Hill shape */\n HILL = 'HILL',\n /** Brush shape */\n BRUSH = 'BRUSH',\n /** Peaks shape */\n PEAKS = 'PEAKS',\n /** Angled triangle shape */\n ANGLED_TRIANGLE = 'ANGLED_TRIANGLE',\n}\n\n/** @enumType */\nexport type ShapeWithLiterals =\n | Shape\n | 'ELLIPSE'\n | 'TILT'\n | 'LIQUID'\n | 'LEFT_WAVE'\n | 'PAINT_SCRIBBLE'\n | 'INVERTED_ELLIPSE'\n | 'RIGHT_WAVE'\n | 'DUNES'\n | 'WAVES'\n | 'TRIANGLE'\n | 'SEMI_ELLIPSE'\n | 'PLANTS'\n | 'LAYERED_ELLIPSE'\n | 'PIXELS'\n | 'PAINT'\n | 'CLOUDS'\n | 'OPTICAL_ILLUSION'\n | 'STRIPES'\n | 'BLOBS'\n | 'SEMI_CIRCLES'\n | 'HILL'\n | 'BRUSH'\n | 'PEAKS'\n | 'ANGLED_TRIANGLE';\n\n/** Layers effect - stacked semi-transparent copies of the divider shape */\nexport interface Layers {\n /** Total number of layers including the base shape (1-4). Absent or 1 disables the effect. */\n count?: number | null;\n /** Vertical distance in pixels between the silhouettes of consecutive layers: each successive layer's silhouette is offset from the previous one by this amount. The divider's own `height` is unchanged. Defaults to 20. */\n offsetY?: number | null;\n /** How the stacked layers fade relative to the base shape. */\n layerEffect?: LayerEffectWithLiterals;\n /** Horizontal distance between consecutive layers in pixels. Defaults to 0. Only applies to shapes that support horizontal offset. */\n offsetX?: number | null;\n}\n\n/** Backdrop type */\nexport enum BackdropType {\n /** Solid color backdrop */\n COLOR = 'COLOR',\n /** Gradient backdrop */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type BackdropTypeWithLiterals = BackdropType | 'COLOR' | 'GRADIENT';\n\nexport interface LayoutDataBackgroundImage {\n /** Background image. */\n media?: Media;\n /**\n * Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background`/`backdrop` color behind it.\n * @deprecated\n */\n opacity?: number | null;\n /** Background image scaling. */\n scaling?: ImageScalingScalingWithLiterals;\n /** Position of background. Defaults to `CENTER`. */\n position?: ImagePositionWithLiterals;\n /** Blur radius in pixels applied to the image layer. `0` (default) leaves the image unblurred; blur is independent of any color overlay and the two stack. */\n blur?: number | null;\n /** Color or gradient drawn on top of the image. When present, this is the authoritative overlay and `opacity` is ignored. Its presence also marks content as authored under the new overlay model (vs. the legacy `opacity`-based dimming on `background`/`backdrop`). */\n overlay?: LayoutDataBackground;\n}\n\nexport enum VerticalAlignmentAlignment {\n /** Top alignment */\n TOP = 'TOP',\n /** Middle alignment */\n MIDDLE = 'MIDDLE',\n /** Bottom alignment */\n BOTTOM = 'BOTTOM',\n}\n\n/** @enumType */\nexport type VerticalAlignmentAlignmentWithLiterals =\n | VerticalAlignmentAlignment\n | 'TOP'\n | 'MIDDLE'\n | 'BOTTOM';\n\nexport enum ResponsivenessBehaviour {\n /** Stacking of columns */\n STACK = 'STACK',\n /** Wrapping of columns */\n WRAP = 'WRAP',\n}\n\n/** @enumType */\nexport type ResponsivenessBehaviourWithLiterals =\n | ResponsivenessBehaviour\n | 'STACK'\n | 'WRAP';\n\nexport enum DesignTarget {\n /** Design applied to layout */\n LAYOUT = 'LAYOUT',\n /** Design applied to cells */\n CELL = 'CELL',\n}\n\n/** @enumType */\nexport type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';\n\nexport interface Banner extends BannerOriginPresenceOneOf {\n /** Origin of the banner. Edge positions only. */\n origin?: OriginWithLiterals;\n /** Where the layout sits: an edge, or the paywall cut. */\n position?: BannerPositionWithLiterals;\n}\n\n/** @oneof */\nexport interface BannerOriginPresenceOneOf {\n /** Origin of the banner. Edge positions only. */\n origin?: OriginWithLiterals;\n}\n\n/** Backdrop styling (color or gradient) */\nexport interface Backdrop {\n /** Backdrop type. */\n type?: BackdropTypeWithLiterals;\n /**\n * Backdrop color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\n/** Decorative shape divider at a layout edge */\nexport interface SectionDivider {\n /** Divider shape preset. Determines which customization properties apply. */\n type?: ShapeWithLiterals;\n /**\n * Divider fill color as a hexadecimal value (may include alpha).\n * @maxLength 19\n */\n color?: string | null;\n /** Divider height in pixels. */\n height?: number | null;\n /** Horizontal offset in pixels. */\n offsetX?: number | null;\n /** Whether the shape is flipped horizontally. */\n flipped?: boolean | null;\n /** Layers effect - stacked semi-transparent copies of the divider shape. */\n layers?: Layers;\n}\n\nexport interface LayoutCellData {\n /** Size of the cell in 12 columns grid. */\n colSpan?: number | null;\n}\n\nexport interface ShapeData {\n /** Styling for the shape's container. */\n containerData?: PluginContainerData;\n /** Shape file details. */\n shape?: Media;\n /** Styling for the shape. */\n styles?: ShapeDataStyles;\n /** Node animation. */\n animation?: Animation;\n /** Link details for shapes that are links. */\n link?: Link;\n /**\n * Alternate text describing the link's purpose for accessibility. Applies only when `link` is set.\n * @maxLength 1000\n */\n altText?: string | null;\n}\n\nexport interface ShapeDataStyles {\n /**\n * Shape fill color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Map of original color keys to their new color values. */\n colors?: Record<string, string>;\n}\n\nexport interface CardData {\n /** Background styling (color or gradient). */\n background?: CardDataBackground;\n /** Background image. */\n backgroundImage?: BackgroundImage;\n}\n\nexport enum Scaling {\n /** Auto image scaling */\n AUTO = 'AUTO',\n /** Contain image scaling */\n CONTAIN = 'CONTAIN',\n /** Cover image scaling */\n COVER = 'COVER',\n}\n\n/** @enumType */\nexport type ScalingWithLiterals = Scaling | 'AUTO' | 'CONTAIN' | 'COVER';\n\nexport enum ImagePositionPosition {\n /** Image positioned at the center */\n CENTER = 'CENTER',\n /** Image positioned on the left */\n CENTER_LEFT = 'CENTER_LEFT',\n /** Image positioned on the right */\n CENTER_RIGHT = 'CENTER_RIGHT',\n /** Image positioned at the center top */\n TOP = 'TOP',\n /** Image positioned at the top left */\n TOP_LEFT = 'TOP_LEFT',\n /** Image positioned at the top right */\n TOP_RIGHT = 'TOP_RIGHT',\n /** Image positioned at the center bottom */\n BOTTOM = 'BOTTOM',\n /** Image positioned at the bottom left */\n BOTTOM_LEFT = 'BOTTOM_LEFT',\n /** Image positioned at the bottom right */\n BOTTOM_RIGHT = 'BOTTOM_RIGHT',\n}\n\n/** @enumType */\nexport type ImagePositionPositionWithLiterals =\n | ImagePositionPosition\n | 'CENTER'\n | 'CENTER_LEFT'\n | 'CENTER_RIGHT'\n | 'TOP'\n | 'TOP_LEFT'\n | 'TOP_RIGHT'\n | 'BOTTOM'\n | 'BOTTOM_LEFT'\n | 'BOTTOM_RIGHT';\n\n/** Background styling (color or gradient) */\nexport interface CardDataBackground {\n /** Background type. */\n type?: CardDataBackgroundTypeWithLiterals;\n /**\n * Background color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n /** Gradient configuration. */\n gradient?: Gradient;\n}\n\n/** Background type */\nexport enum CardDataBackgroundType {\n /** Solid color background */\n COLOR = 'COLOR',\n /** Gradient background */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type CardDataBackgroundTypeWithLiterals =\n | CardDataBackgroundType\n | 'COLOR'\n | 'GRADIENT';\n\nexport interface BackgroundImage {\n /** Background image. */\n media?: Media;\n /**\n * Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background` color behind it.\n * @deprecated\n */\n opacity?: number | null;\n /** Background image scaling. */\n scaling?: ScalingWithLiterals;\n /** Position of background. Defaults to `CENTER`. */\n position?: ImagePositionPositionWithLiterals;\n /** Color or gradient drawn on top of the image. When present, this is the authoritative overlay and `opacity` is ignored. Its presence also marks content as authored under the new overlay model (vs. the legacy `opacity`-based dimming on `background`). */\n overlay?: CardDataBackground;\n /** Blur radius in pixels applied to the image layer. `0` (default) leaves the image unblurred; blur is independent of any color overlay and the two stack. */\n blur?: number | null;\n}\n\nexport interface TocData {\n /** Heading levels included in the table of contents. Default: [1, 2, 3, 4, 5, 6]. */\n includedHeadings?: number[];\n /** List style. Default: PLAIN. */\n listStyle?: ListStyleWithLiterals;\n /** Optional override for the font size in pixels. */\n fontSize?: number | null;\n /** Optional override for the vertical spacing between items in pixels. */\n itemSpacing?: number | null;\n /**\n * Optional override for the text color.\n * @maxLength 19\n */\n color?: string | null;\n /** Indentation style. Default: NESTED. */\n indentation?: IndentationWithLiterals;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** List style. */\nexport enum ListStyle {\n /** No markers (default) */\n PLAIN = 'PLAIN',\n /** Numbered list */\n NUMBERED = 'NUMBERED',\n /** Alphabetic letters */\n LETTERS = 'LETTERS',\n /** Roman numerals */\n ROMAN = 'ROMAN',\n /** Bulleted list */\n BULLETED = 'BULLETED',\n /** Alphabetical index */\n ALPHABETICAL_INDEX = 'ALPHABETICAL_INDEX',\n /** Alphabetical index (compact top-row only) */\n ALPHABETICAL_INDEX_COMPACT = 'ALPHABETICAL_INDEX_COMPACT',\n}\n\n/** @enumType */\nexport type ListStyleWithLiterals =\n | ListStyle\n | 'PLAIN'\n | 'NUMBERED'\n | 'LETTERS'\n | 'ROMAN'\n | 'BULLETED'\n | 'ALPHABETICAL_INDEX'\n | 'ALPHABETICAL_INDEX_COMPACT';\n\n/** Indentation style. */\nexport enum Indentation {\n /** Sub-headings indented under parents (default) */\n NESTED = 'NESTED',\n /** All items at the same level */\n FLAT = 'FLAT',\n}\n\n/** @enumType */\nexport type IndentationWithLiterals = Indentation | 'NESTED' | 'FLAT';\n\n/** Data for a smart block node. */\nexport interface SmartBlockData {\n /** The type of the smart block. */\n type?: SmartBlockDataTypeWithLiterals;\n /** Layout orientation. HORIZONTAL or VERTICAL. Optional for variants with fixed orientation. */\n orientation?: string | null;\n /** Column size controlling cells per row. */\n columnSize?: ColumnSizeWithLiterals;\n /**\n * Border color (for SOLID_JOINED_BOXES variant).\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Border width in pixels (for SOLID_JOINED_BOXES variant). */\n borderWidth?: number | null;\n /** Border radius in pixels (for SOLID_JOINED_BOXES variant). */\n borderRadius?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\n/** Layout type of the smart block */\nexport enum SmartBlockDataType {\n /** Grid-based layouts with solid box items containing title, body, and icon/image. */\n SOLID_BOXES = 'SOLID_BOXES',\n /** Numbered boxes. */\n NUMBERED_BOXES = 'NUMBERED_BOXES',\n /** Statistics display with large numbers/values. */\n STATS = 'STATS',\n /** Statistics with circular visual elements. */\n CIRCLE_STATS = 'CIRCLE_STATS',\n /** Staggered/zigzag grid layout with alternating box positions. */\n SOLID_BOXES_ALTERNATING = 'SOLID_BOXES_ALTERNATING',\n /** Grid layout with boxes visually joined (no gaps, shared container border). */\n SOLID_JOINED_BOXES = 'SOLID_JOINED_BOXES',\n /** Transparent cells with only a left side line. */\n SIDE_LINE_TEXT = 'SIDE_LINE_TEXT',\n /** Transparent cells with only a top line. */\n TOP_LINE_TEXT = 'TOP_LINE_TEXT',\n /** Outlined boxes with a numbered/icon circle at the top. */\n OUTLINE_BOXES_WITH_TOP_CIRCLE = 'OUTLINE_BOXES_WITH_TOP_CIRCLE',\n /** Large icon bullets with text content. */\n BIG_BULLETS = 'BIG_BULLETS',\n /** Small dot bullets with text content. */\n SMALL_BULLETS = 'SMALL_BULLETS',\n /** Arrow icon bullets with text content. */\n ARROW_BULLETS = 'ARROW_BULLETS',\n /** Process steps with numbered/icon labels above a horizontal line. */\n PROCESS_STEPS = 'PROCESS_STEPS',\n /** Statistics with bar visual elements. */\n BAR_STATS = 'BAR_STATS',\n /** Timeline layout with numbered chips on a connecting line; cells alternate around the line. */\n TIMELINE = 'TIMELINE',\n /** Timeline layout with plain dot indicators; no numbers or shapes; cells alternate around the line. */\n MINIMAL_TIMELINE = 'MINIMAL_TIMELINE',\n /** Numbered pill-shaped labels (stadium chips) with text content; supports HORIZONTAL (pill on top) and VERTICAL (pill on left) orientations. */\n PILLS = 'PILLS',\n /** Star rating display with stars and a numeric value per cell. */\n STAR_RATING = 'STAR_RATING',\n /** Outlined boxes with decorative quote glyphs at the top-left and bottom-right corners. */\n QUOTE_BOXES = 'QUOTE_BOXES',\n /** Donut/ring with numbered annular-sector segments; cell text labels sit outside the ring. */\n CIRCLE = 'CIRCLE',\n /** Hierarchical pyramid where each cell renders as a horizontal slice (apex at top, base at bottom) with the cell number or shape centered inside; text content sits beside (desktop) or below (mobile) the pyramid. */\n PYRAMID = 'PYRAMID',\n /** Cells render a horizontal bar whose width scales with cell index, creating a staircase pattern; bar carries the cell number or a custom shape. */\n STAIRCASE = 'STAIRCASE',\n /** Hierarchical funnel where each cell renders as a horizontal slice (wide at top, narrowing toward the bottom) with the cell number or shape centered inside; text content sits beside (desktop) or below (mobile) the funnel. */\n VERTICAL_FUNNEL = 'VERTICAL_FUNNEL',\n}\n\n/** @enumType */\nexport type SmartBlockDataTypeWithLiterals =\n | SmartBlockDataType\n | 'SOLID_BOXES'\n | 'NUMBERED_BOXES'\n | 'STATS'\n | 'CIRCLE_STATS'\n | 'SOLID_BOXES_ALTERNATING'\n | 'SOLID_JOINED_BOXES'\n | 'SIDE_LINE_TEXT'\n | 'TOP_LINE_TEXT'\n | 'OUTLINE_BOXES_WITH_TOP_CIRCLE'\n | 'BIG_BULLETS'\n | 'SMALL_BULLETS'\n | 'ARROW_BULLETS'\n | 'PROCESS_STEPS'\n | 'BAR_STATS'\n | 'TIMELINE'\n | 'MINIMAL_TIMELINE'\n | 'PILLS'\n | 'STAR_RATING'\n | 'QUOTE_BOXES'\n | 'CIRCLE'\n | 'PYRAMID'\n | 'STAIRCASE'\n | 'VERTICAL_FUNNEL';\n\n/** Column size controlling how many cells appear per row. */\nexport enum ColumnSize {\n /** Up to 4 cells in a row. */\n SMALL = 'SMALL',\n /** Up to 3 cells in a row (default). */\n MEDIUM = 'MEDIUM',\n /** Up to 2 cells in a row. */\n LARGE = 'LARGE',\n /** 1 cell in a row. */\n EXTRA_LARGE = 'EXTRA_LARGE',\n}\n\n/** @enumType */\nexport type ColumnSizeWithLiterals =\n | ColumnSize\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE'\n | 'EXTRA_LARGE';\n\n/** Data for a smart block cell node. */\nexport interface SmartBlockCellData {\n /** Optional label text for the cell (e.g., for stats variants). */\n label?: string | null;\n /** Shape file details. */\n shape?: Media;\n /**\n * Border color of the cell.\n * @maxLength 19\n */\n borderColor?: string | null;\n /** Border width in pixels. */\n borderWidth?: number | null;\n /** Border radius in pixels. */\n borderRadius?: number | null;\n /** The type of the parent smart block (must match parent). */\n type?: SmartBlockDataTypeWithLiterals;\n /**\n * Accent color for non-background variants (e.g., line, bullet, label color).\n * @maxLength 19\n */\n accentColor?: string | null;\n /**\n * Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES).\n * @maxLength 19\n */\n backgroundColor?: string | null;\n /**\n * Shape fill color as a hexadecimal value.\n * @maxLength 19\n */\n shapeColor?: string | null;\n}\n\nexport interface CheckboxListData {\n /** Indentation level from 0-4. */\n indentation?: number;\n /** Offset level from 0-4. */\n offset?: number | null;\n /** Node animation. */\n animation?: Animation;\n}\n\nexport interface ListItemNodeData {\n /** Checkbox list item state. Defaults to `false`. */\n checked?: boolean | null;\n /** Node animation. */\n animation?: Animation;\n /** Styling of the list item's marker (bullet or number), independent of the item's text. Unset properties follow the item's text. */\n markerStyle?: ListItemMarkerStyle;\n}\n\nexport interface ListItemMarkerStyle {\n /** Marker font size. */\n fontSize?: FontSizeData;\n /** Marker font weight, for example `700` for bold. */\n fontWeight?: number | null;\n /** Whether the marker is italic. */\n italic?: boolean | null;\n /** Marker color. */\n color?: ListItemMarkerColor;\n /** Marker font family. */\n fontFamily?: FontFamilyData;\n}\n\nexport interface ListItemMarkerColor {\n /** Marker fill styling. */\n foregroundStyle?: ListItemMarkerColorBackground;\n}\n\n/** Background type */\nexport enum ListItemMarkerColorBackgroundType {\n /** Solid color */\n COLOR = 'COLOR',\n}\n\n/** @enumType */\nexport type ListItemMarkerColorBackgroundTypeWithLiterals =\n | ListItemMarkerColorBackgroundType\n | 'COLOR';\n\n/** Fill styling: a solid color, shaped as `ColorData.Background` so other fills can be added later */\nexport interface ListItemMarkerColorBackground {\n /** Background type. */\n type?: ListItemMarkerColorBackgroundTypeWithLiterals;\n /**\n * Color as a hexadecimal value.\n * @maxLength 19\n */\n color?: string | null;\n}\n\nexport interface SlotData {\n /** Integration type, for example `wix.forms.form`. Used to render the slot in the editor and viewer. */\n integrationType?: string | null;\n /** ID of the resource the slot renders, for example a form ID. Passed as-is to the integration. */\n resourceId?: string | null;\n /** Node animation. */\n animation?: Animation;\n /** Design overrides for this slot. Unset colours use the Ricos theme; unset sizes default to 0. */\n design?: SlotDesign;\n}\n\nexport interface SlotDesign {\n /** Text colour: CSS colour or `$theme-color-N[-opacity]` token. */\n textColor?: string | null;\n /** Accent colour. */\n accentColor?: string | null;\n /** Button background colour. */\n buttonColor?: string | null;\n /** Button text colour. */\n buttonTextColor?: string | null;\n /** Block background colour. */\n backgroundColor?: string | null;\n /** Block border colour. */\n borderColor?: string | null;\n /** Block border width, px. */\n borderWidth?: number | null;\n /** Block corner radius, px. */\n borderRadius?: number | null;\n /** Horizontal inner padding, px. */\n paddingHorizontal?: number | null;\n /** Vertical inner padding, px. */\n paddingVertical?: number | null;\n /** Vertical gap between rows, px. */\n rowGap?: number | null;\n /** Horizontal gap between columns, px. */\n columnGap?: number | null;\n}\n\nexport interface Metadata {\n /** Schema version. */\n version?: number;\n /**\n * When the object was created.\n * @readonly\n * @deprecated\n */\n createdTimestamp?: Date | null;\n /**\n * When the object was most recently updated.\n * @deprecated\n */\n updatedTimestamp?: Date | null;\n /** Object ID. */\n _id?: string | null;\n}\n\nexport interface DocumentStyle {\n /** Styling for H1 nodes. */\n headerOne?: TextNodeStyle;\n /** Styling for H2 nodes. */\n headerTwo?: TextNodeStyle;\n /** Styling for H3 nodes. */\n headerThree?: TextNodeStyle;\n /** Styling for H4 nodes. */\n headerFour?: TextNodeStyle;\n /** Styling for H5 nodes. */\n headerFive?: TextNodeStyle;\n /** Styling for H6 nodes. */\n headerSix?: TextNodeStyle;\n /** Styling for paragraph nodes. */\n paragraph?: TextNodeStyle;\n /** Styling for block quote nodes. */\n blockquote?: TextNodeStyle;\n /** Styling for code block nodes. */\n codeBlock?: TextNodeStyle;\n}\n\nexport interface TextNodeStyle {\n /** The decorations to apply to the node. */\n decorations?: Decoration[];\n /** Padding and background color for the node. */\n nodeStyle?: NodeStyle;\n /** Line height for text in the node. */\n lineHeight?: string | null;\n}\n\nexport interface File {\n /**\n * File name\n * @maxLength 100\n */\n fileName?: string;\n /**\n * File id. Must be uploaded file to media manager. Read more - https://dev.wix.com/docs/api-reference/assets/media/media-manager/introduction\n * @maxLength 2048\n */\n fileId?: string | null;\n /**\n * File URL. Reference to a file accessible via URL\n * @maxLength 2048\n */\n fileUrl?: string | null;\n /**\n * MIME type of the file (e.g., \"image/png\", \"application/pdf\")\n * @maxLength 100\n */\n mimeType?: string | null;\n}\n\nexport interface Tool extends ToolConfigurationOneOf {\n templateSearchConfiguration?: TemplateSearchConfiguration;\n name?: NameWithLiterals;\n}\n\n/** @oneof */\nexport interface ToolConfigurationOneOf {\n templateSearchConfiguration?: TemplateSearchConfiguration;\n}\n\nexport enum Name {\n IMAGE_GENERATION = 'IMAGE_GENERATION',\n IMAGE_SEARCH = 'IMAGE_SEARCH',\n WEB_SEARCH = 'WEB_SEARCH',\n READ_WIX_BLOG_POST = 'READ_WIX_BLOG_POST',\n READ_WIX_BOOKING_SERVICE = 'READ_WIX_BOOKING_SERVICE',\n READ_WIX_EVENT = 'READ_WIX_EVENT',\n READ_WIX_STORES_PRODUCT = 'READ_WIX_STORES_PRODUCT',\n ANALYZE_RESOURCE = 'ANALYZE_RESOURCE',\n TEMPLATE_SEARCH = 'TEMPLATE_SEARCH',\n WEB_SCRAPE = 'WEB_SCRAPE',\n GENERATE_THEME = 'GENERATE_THEME',\n PLANNER = 'PLANNER',\n}\n\n/** @enumType */\nexport type NameWithLiterals =\n | Name\n | 'IMAGE_GENERATION'\n | 'IMAGE_SEARCH'\n | 'WEB_SEARCH'\n | 'READ_WIX_BLOG_POST'\n | 'READ_WIX_BOOKING_SERVICE'\n | 'READ_WIX_EVENT'\n | 'READ_WIX_STORES_PRODUCT'\n | 'ANALYZE_RESOURCE'\n | 'TEMPLATE_SEARCH'\n | 'WEB_SCRAPE'\n | 'GENERATE_THEME'\n | 'PLANNER';\n\nexport interface TemplateSearchConfiguration {\n /**\n * @format GUID\n * @maxSize 100\n */\n knowledgeBaseIds?: string[];\n}\n\n/**\n * Theme represents the complete visual styling configuration for a ricos document.\n * It encapsulates all theme elements including colors, fonts, and component styling.\n */\nexport interface Theme {\n /**\n * Palette of colors used in the theme\n * Limited to 6 colors in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n * @maxSize 6\n */\n colorPalette?: string[];\n /**\n * Background configuration for the page\n * Can be either a solid color or an image with various styling options\n */\n background?: V1Background;\n /**\n * Typography settings for various text elements\n * Includes styling for headings and paragraphs\n */\n typography?: Typography;\n /**\n * Button styling configuration\n * Defines how buttons appear, including their hover states\n */\n button?: Button;\n /**\n * Image styling configuration\n * Defines how images appear, including borders\n */\n image?: V1Image;\n /** Page setup configuration for layout and spacing */\n pageSetup?: PageSetup;\n}\n\n/**\n * Background defines the styling for a page's background.\n * Supports either color or image backgrounds with configuration options for each.\n */\nexport interface V1Background extends V1BackgroundBackgroundTypeOptionsOneOf {\n /** Settings for color backgrounds, available when type = COLOR */\n colorOptions?: ColorOptions;\n /** Settings for image backgrounds, available when type = IMAGE */\n imageOptions?: ImageOptions;\n /** Background type determines whether this is a color or image background */\n type?: BackgroundBackgroundTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface V1BackgroundBackgroundTypeOptionsOneOf {\n /** Settings for color backgrounds, available when type = COLOR */\n colorOptions?: ColorOptions;\n /** Settings for image backgrounds, available when type = IMAGE */\n imageOptions?: ImageOptions;\n}\n\n/**\n * ColorSwatch defines a color or gradient that can be used for styling elements.\n * Supports either solid colors or gradients with configuration options for each.\n */\nexport interface ColorSwatch extends ColorSwatchColorTypeOptionsOneOf {\n /**\n * Solid color value, available when type = COLOR\n * @format COLOR_HEX\n */\n colorOptions?: string | null;\n /** Gradient configuration, available when type = GRADIENT */\n gradientOptions?: V1Gradient;\n /** Type determines whether this is a solid color or gradient */\n type?: ColorSwatchTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ColorSwatchColorTypeOptionsOneOf {\n /**\n * Solid color value, available when type = COLOR\n * @format COLOR_HEX\n */\n colorOptions?: string | null;\n /** Gradient configuration, available when type = GRADIENT */\n gradientOptions?: V1Gradient;\n}\n\n/** ColorSwatchType determines what kind of color styling is being used. */\nexport enum ColorSwatchType {\n /** Color swatch is a solid color */\n COLOR = 'COLOR',\n /** Color swatch is a gradient */\n GRADIENT = 'GRADIENT',\n}\n\n/** @enumType */\nexport type ColorSwatchTypeWithLiterals =\n | ColorSwatchType\n | 'COLOR'\n | 'GRADIENT';\n\n/**\n * Gradient defines a color gradient configuration.\n * Supports both linear and radial gradients with multiple color stops.\n */\nexport interface V1Gradient extends V1GradientGradientTypeOptionsOneOf {\n /**\n * Angle in degrees for linear gradients (0-360)\n * @max 360\n */\n linearOptions?: number | null;\n /** Center point for radial gradients */\n radialOptions?: Center;\n /** Type determines whether this is a linear or radial gradient */\n type?: GradientGradientTypeWithLiterals;\n /**\n * Color stops that define the gradient colors and positions\n * @maxSize 10\n */\n stops?: GradientStop[];\n /**\n * Global opacity of the gradients (0.0 to 1.0)\n * @max 1\n */\n opacity?: number | null;\n}\n\n/** @oneof */\nexport interface V1GradientGradientTypeOptionsOneOf {\n /**\n * Angle in degrees for linear gradients (0-360)\n * @max 360\n */\n linearOptions?: number | null;\n /** Center point for radial gradients */\n radialOptions?: Center;\n}\n\n/** GradientType determines what kind of gradient is being used. */\nexport enum GradientGradientType {\n /** Linear gradient that transitions colors along a straight line */\n LINEAR = 'LINEAR',\n /** Radial gradient that transitions colors outward from a center point */\n RADIAL = 'RADIAL',\n}\n\n/** @enumType */\nexport type GradientGradientTypeWithLiterals =\n | GradientGradientType\n | 'LINEAR'\n | 'RADIAL';\n\n/**\n * GradientStop defines a color position within a gradient.\n * Each stop has a color, opacity, and position value.\n */\nexport interface GradientStop {\n /**\n * Color in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n color?: string | null;\n /**\n * Opacity of the color at this stop (0.0 to 1.0)\n * Deprecated, opacity is an alpha part of the color field\n * @max 1\n * @deprecated Opacity of the color at this stop (0.0 to 1.0)\n * Deprecated, opacity is an alpha part of the color field\n * @replacedBy color\n * @targetRemovalDate 2025-11-30\n */\n opacity?: number | null;\n /**\n * Position of this stop within the gradient (0.0 to 1.0)\n * 0.0 represents the start of the gradient, 1.0 represents the end\n * @max 1\n */\n position?: number | null;\n}\n\n/**\n * Center defines the center point for a radial gradient.\n * Uses normalized coordinates (0.0 to 1.0) where (0,0) is top-left\n * and (1,1) is bottom-right of the container.\n */\nexport interface Center {\n /**\n * X-coordinate of the center point (0.0 to 1.0)\n * @max 1\n */\n x?: number | null;\n /**\n * Y-coordinate of the center point (0.0 to 1.0)\n * @max 1\n */\n y?: number | null;\n}\n\n/** ImageScaling defines how the background image should be sized. */\nexport enum ImageScaling {\n /** Image will cover the entire container, potentially cropping parts of the image */\n COVER = 'COVER',\n /** Image will be contained within the container, maintaining its aspect ratio */\n CONTAIN = 'CONTAIN',\n /** Image will use its original size without scaling */\n AUTO = 'AUTO',\n}\n\n/** @enumType */\nexport type ImageScalingWithLiterals =\n | ImageScaling\n | 'COVER'\n | 'CONTAIN'\n | 'AUTO';\n\n/** ImagePosition defines how the image is positioned within its container. */\nexport enum ImageOptionsImagePosition {\n /** Position image at the top center of the container */\n TOP = 'TOP',\n /** Position image at the top left corner of the container */\n TOP_LEFT = 'TOP_LEFT',\n /** Position image at the top right corner of the container */\n TOP_RIGHT = 'TOP_RIGHT',\n /** Position image at the center of the container */\n CENTER = 'CENTER',\n /** Position image at the middle left of the container */\n CENTER_LEFT = 'CENTER_LEFT',\n /** Position image at the middle right of the container */\n CENTER_RIGHT = 'CENTER_RIGHT',\n /** Position image at the bottom center of the container */\n BOTTOM = 'BOTTOM',\n /** Position image at the bottom left corner of the container */\n BOTTOM_LEFT = 'BOTTOM_LEFT',\n /** Position image at the bottom right corner of the container */\n BOTTOM_RIGHT = 'BOTTOM_RIGHT',\n}\n\n/** @enumType */\nexport type ImageOptionsImagePositionWithLiterals =\n | ImageOptionsImagePosition\n | 'TOP'\n | 'TOP_LEFT'\n | 'TOP_RIGHT'\n | 'CENTER'\n | 'CENTER_LEFT'\n | 'CENTER_RIGHT'\n | 'BOTTOM'\n | 'BOTTOM_LEFT'\n | 'BOTTOM_RIGHT';\n\n/** BackgroundType determines what kind of background is being used. */\nexport enum BackgroundBackgroundType {\n /** Background is a solid color */\n COLOR = 'COLOR',\n /** Background is an image */\n IMAGE = 'IMAGE',\n}\n\n/** @enumType */\nexport type BackgroundBackgroundTypeWithLiterals =\n | BackgroundBackgroundType\n | 'COLOR'\n | 'IMAGE';\n\n/**\n * Options for configuring a solid color background.\n * Includes color and opacity settings.\n */\nexport interface ColorOptions {\n /** Background color swatch, supporting both solid colors and gradients */\n color?: ColorSwatch;\n}\n\n/**\n * Options for configuring an image background.\n * Includes image source, positioning, scaling, and overlay settings.\n */\nexport interface ImageOptions {\n /**\n * Background image URL pointing to the source image\n * @format WEB_URL\n */\n url?: string | null;\n /**\n * Image opacity, ranging from 0 (fully transparent) to 1 (fully opaque)\n * @max 1\n */\n opacity?: number | null;\n /** Image background color (overlay color) swatch, supporting both solid colors and gradients */\n color?: ColorSwatch;\n /** Image scaling method that determines how the image fits in the container */\n scaling?: ImageScalingWithLiterals;\n /** Image position within the container when it doesn't fill the entire space */\n position?: ImageOptionsImagePositionWithLiterals;\n}\n\n/**\n * Typography defines styling for all text elements in a quick-page.\n * Includes configurations for different heading levels and paragraph text.\n */\nexport interface Typography {\n /** Styling for primary/largest heading (h1) */\n heading1?: TypographyTextStyle;\n /** Styling for secondary heading (h2) */\n heading2?: TypographyTextStyle;\n /** Styling for tertiary heading (h3) */\n heading3?: TypographyTextStyle;\n /** Styling for fourth-level heading (h4) */\n heading4?: TypographyTextStyle;\n /** Styling for fifth-level heading (h5) */\n heading5?: TypographyTextStyle;\n /** Styling for sixth-level heading (h6) */\n heading6?: TypographyTextStyle;\n /** Styling for regular paragraph text */\n paragraph?: TypographyTextStyle;\n}\n\n/**\n * TextStyle defines the visual properties of text elements.\n * Includes font family, weight, color, size, and spacing options.\n */\nexport interface TypographyTextStyle {\n /**\n * Font family name, limited to 50 characters\n * Determines the typeface used for the text\n * @maxLength 50\n */\n fontFamily?: string | null;\n /**\n * Font weight value (0-1000)\n * Standard values: 400 (normal), 700 (bold)\n * @max 1000\n */\n weight?: number | null;\n /**\n * Text color in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n color?: string | null;\n /**\n * Font size in pixels (0-400)\n * @max 400\n */\n size?: number | null;\n /**\n * Defines the spacing between each line of the text (0-10)\n * 1.0 is standard single line spacing\n * @max 10\n */\n lineHeight?: number | null;\n /**\n * The text letter spacing in em units (0-10)\n * Controls the space between each character\n * @min -10\n * @max 10\n */\n letterSpacing?: number | null;\n}\n\n/**\n * Button defines the styling configuration for buttons.\n * Includes normal state styling and hover effects.\n */\nexport interface Button {\n /**\n * Background color in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n backgroundColor?: string | null;\n /**\n * Text color in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n textColor?: string | null;\n /** Button size preset (small, medium, large) */\n size?: ButtonSizeWithLiterals;\n /** Border configuration */\n border?: ButtonBorder;\n /** Hover state styling when user's cursor is over the button */\n hover?: Hover;\n}\n\n/**\n * ButtonSize defines the preset size options for buttons.\n * Affects padding, font size, and overall button dimensions.\n */\nexport enum ButtonSize {\n /** Small button size - minimal padding, smaller text */\n SMALL = 'SMALL',\n /** Medium button size - standard padding and text size */\n MEDIUM = 'MEDIUM',\n /** Large button size - generous padding, larger text */\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type ButtonSizeWithLiterals = ButtonSize | 'SMALL' | 'MEDIUM' | 'LARGE';\n\n/**\n * Border defines the styling for button borders.\n * Includes settings for radius, width, color, and opacity.\n */\nexport interface ButtonBorder {\n /**\n * Border radius in pixels (0-100)\n * Controls how rounded the corners of the button will be\n * @max 100\n */\n radius?: number | null;\n /**\n * Border width in pixels (0-10)\n * Controls the thickness of the border around the button\n * @max 10\n */\n width?: number | null;\n /**\n * Border color in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n color?: string | null;\n}\n\n/**\n * Hover defines styling for the button's hover state.\n * These styles are applied when the user's cursor is over the button.\n */\nexport interface Hover {\n /**\n * Background color on hover in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n backgroundColor?: string | null;\n /**\n * Text color on hover in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n textColor?: string | null;\n /**\n * Border color on hover in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n borderColor?: string | null;\n}\n\n/**\n * Image message defines styling configurations for images used in quick-pages.\n * Currently supports border styling with plans for additional image styling options.\n */\nexport interface V1Image {\n /** Border configuration for the image */\n border?: ImageBorder;\n}\n\n/**\n * Border defines the styling for image borders.\n * Includes settings for radius, width, color, and opacity.\n */\nexport interface ImageBorder {\n /**\n * Border radius in pixels (0-100)\n * Controls how rounded the corners of the image will be\n * @max 100\n */\n radius?: number | null;\n /**\n * Border width in pixels (0-10)\n * Controls the thickness of the border around the image\n * @max 10\n */\n width?: number | null;\n /**\n * Border color in eight-value hexadecimal format (e.g., #FF0099AA)\n * @format COLOR_HEX\n */\n color?: string | null;\n}\n\n/**\n * PageSetup defines the layout configuration for pages.\n * Includes settings for horizontal padding and vertical padding to control page spacing.\n */\nexport interface PageSetup {\n /**\n * Deprecated: superseded by margin_preset / custom_margins, which set all four\n * sides together. Still read so documents authored before margins existed keep\n * their original spacing.\n */\n horizontalPadding?: HorizontalPaddingTypeWithLiterals;\n /**\n * Deprecated: superseded by margin_preset / custom_margins, which set all four\n * sides together. Still read so documents authored before margins existed keep\n * their original spacing.\n */\n verticalPadding?: VerticalPaddingTypeWithLiterals;\n /** Page format configuration that determines the page dimensions and layout style */\n format?: FormatTypeWithLiterals;\n /**\n * Whether the page stands upright or on its side. Has no meaning for FLUID,\n * which has no fixed height, or for SQUARE, whose sides are equal.\n */\n orientation?: OrientationTypeWithLiterals;\n /**\n * The unit margins and page dimensions are displayed in. Presentation only —\n * it never changes the stored values.\n */\n unit?: UnitTypeWithLiterals;\n /** Which margin preset is in effect. CUSTOM means read custom_margins instead. */\n marginPreset?: MarginPresetTypeWithLiterals;\n /** The four margins, used when margin_preset is CUSTOM. */\n customMargins?: Margins;\n}\n\n/**\n * Type defines the preset horizontal padding options for page content.\n * Each option provides different amounts of horizontal spacing for content layout.\n */\nexport enum HorizontalPaddingType {\n /** No horizontal padding - content extends to page edges */\n NONE = 'NONE',\n /** Small horizontal padding - minimal left/right spacing, results in wide content area */\n SMALL = 'SMALL',\n /** Medium horizontal padding - standard left/right spacing, results in balanced content width */\n MEDIUM = 'MEDIUM',\n /** Large horizontal padding - generous left/right spacing, results in narrow content area */\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type HorizontalPaddingTypeWithLiterals =\n | HorizontalPaddingType\n | 'NONE'\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE';\n\n/**\n * Type defines the preset vertical padding options for page content.\n * Each option provides different amounts of spacing around content.\n */\nexport enum VerticalPaddingType {\n /** No vertical padding - content extends to page edges */\n NONE = 'NONE',\n /** Small vertical padding - minimal spacing around content */\n SMALL = 'SMALL',\n /** Medium vertical padding - standard spacing around content */\n MEDIUM = 'MEDIUM',\n /** Large vertical padding - generous spacing around content */\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type VerticalPaddingTypeWithLiterals =\n | VerticalPaddingType\n | 'NONE'\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE';\n\n/**\n * Type defines the preset page format options.\n * Each option provides different page dimensions and layout behavior.\n */\nexport enum FormatType {\n /** Default value. Fluid format - content adapts to container height with no fixed dimensions */\n FLUID = 'FLUID',\n /** A4 format - standard A4 paper dimensions */\n A4 = 'A4',\n /** Letter format - US letter paper dimensions */\n LETTER = 'LETTER',\n /** Legal format - US legal paper dimensions */\n LEGAL = 'LEGAL',\n /** Square format - equal width and height dimensions */\n SQUARE = 'SQUARE',\n /** Tabloid format - 11 x 17 inch paper dimensions */\n TABLOID = 'TABLOID',\n}\n\n/** @enumType */\nexport type FormatTypeWithLiterals =\n | FormatType\n | 'FLUID'\n | 'A4'\n | 'LETTER'\n | 'LEGAL'\n | 'SQUARE'\n | 'TABLOID';\n\n/** Type defines the available page orientations. */\nexport enum OrientationType {\n /** Portrait - the page is taller than it is wide */\n PORTRAIT = 'PORTRAIT',\n /** Landscape - the page is wider than it is tall */\n LANDSCAPE = 'LANDSCAPE',\n}\n\n/** @enumType */\nexport type OrientationTypeWithLiterals =\n | OrientationType\n | 'PORTRAIT'\n | 'LANDSCAPE';\n\n/** Type defines the available measurement units. */\nexport enum UnitType {\n /** Millimetres */\n MM = 'MM',\n /** Centimetres */\n CM = 'CM',\n /** Inches */\n IN = 'IN',\n /** Pixels */\n PX = 'PX',\n}\n\n/** @enumType */\nexport type UnitTypeWithLiterals = UnitType | 'MM' | 'CM' | 'IN' | 'PX';\n\n/** Type defines the preset margin options. */\nexport enum MarginPresetType {\n /** Small margins - 0.5 inch on every side */\n SMALL = 'SMALL',\n /** Medium margins - 1 inch on every side */\n MEDIUM = 'MEDIUM',\n /** Large margins - 1.5 inches on every side */\n LARGE = 'LARGE',\n /** Custom margins - each side is set independently via custom_margins */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type MarginPresetTypeWithLiterals =\n | MarginPresetType\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE'\n | 'CUSTOM';\n\n/**\n * Margins defines the space between the page edge and its content, per side.\n *\n * Values are page pixels, the same coordinate space the page dimensions use,\n * so they stay exact regardless of the unit chosen for display.\n */\nexport interface Margins {\n /** Space above the content */\n top?: number | null;\n /** Space to the right of the content */\n right?: number | null;\n /** Space below the content */\n bottom?: number | null;\n /** Space to the left of the content */\n left?: number | null;\n}\n\n/** Request message for prompting the AI assistant with streaming response delivery */\nexport interface CreateConversationStreamedRequest {\n /**\n * The conversation context including the current document state and message history.\n * Same as the non-streamed version, but the response will be delivered incrementally\n * through multiple response chunks rather than a single complete response.\n */\n ricosConversation?: RicosConversation;\n /**\n * Flag to control whether this conversation should be persisted for future continuation.\n * When true, the conversation will be stored and can be continued using the continue endpoint.\n * When false, the conversation will not be persisted .\n */\n persist?: boolean;\n /**\n * Invocation id\n * @format GUID\n */\n invocationId?: string | null;\n}\n\n/** Streaming response message containing individual chunks of the AI's response */\nexport interface ConversationResponse {\n /** A single chunk of the AI's response stream. */\n chunk?: RicosConversationChunk;\n /** Cursor next chunks. Only available for GetConversationStream */\n next?: string | null;\n}\n\n/**\n * Represents a single chunk in a Ricos AI conversation flow\n * Used for streaming responses where the AI assistant delivers content incrementally\n */\nexport interface RicosConversationChunk\n extends RicosConversationChunkTypeDataOneOf {\n /** Options for explanation chunks that provide textual context */\n explainOptions?: ExplainOption;\n /** Options for insertion chunks that specify where content should be added */\n insertOptions?: InsertOptions;\n /** Options for replacement chunks that specify content range to replace */\n replaceOptions?: ReplaceOptions;\n /** Options for node chunks that contain rich content nodes */\n nodeOptions?: NodeOptions;\n /** Options for node text chunks that contain text with decorations */\n nodeTextOptions?: NodeTextOptions;\n /** Options to notify about existing tool use */\n toolUseOptions?: ToolUseOptions;\n /**\n * Debug options\n * @internal\n */\n debugOptions?: DebugOptions;\n /**\n * Metadata options\n * @internal\n */\n metadataOptions?: MetadataOptions;\n /** Patch options */\n patchOptions?: PatchOptions;\n /** Progress options */\n progressOptions?: ProgressOptions;\n /** Summary options */\n summaryOptions?: SummaryOptions;\n /** Suggestion options */\n suggestionOptions?: SuggestionOptions;\n /** Theme options */\n themeOptions?: ThemeOptions;\n /** Error Options */\n errorOptions?: ErrorOptions;\n /** The type of chunk that determines its behavior and purpose */\n type?: ChunkTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface RicosConversationChunkTypeDataOneOf {\n /** Options for explanation chunks that provide textual context */\n explainOptions?: ExplainOption;\n /** Options for insertion chunks that specify where content should be added */\n insertOptions?: InsertOptions;\n /** Options for replacement chunks that specify content range to replace */\n replaceOptions?: ReplaceOptions;\n /** Options for node chunks that contain rich content nodes */\n nodeOptions?: NodeOptions;\n /** Options for node text chunks that contain text with decorations */\n nodeTextOptions?: NodeTextOptions;\n /** Options to notify about existing tool use */\n toolUseOptions?: ToolUseOptions;\n /**\n * Debug options\n * @internal\n */\n debugOptions?: DebugOptions;\n /**\n * Metadata options\n * @internal\n */\n metadataOptions?: MetadataOptions;\n /** Patch options */\n patchOptions?: PatchOptions;\n /** Progress options */\n progressOptions?: ProgressOptions;\n /** Summary options */\n summaryOptions?: SummaryOptions;\n /** Suggestion options */\n suggestionOptions?: SuggestionOptions;\n /** Theme options */\n themeOptions?: ThemeOptions;\n /** Error Options */\n errorOptions?: ErrorOptions;\n}\n\n/** Defines the type of operation this chunk represents in the conversation flow */\nexport enum ChunkType {\n /** Explanation chunk containing descriptive text about changes being made */\n EXPLAIN = 'EXPLAIN',\n /** Insert operation chunk that adds content after a specified reference point */\n INSERT = 'INSERT',\n /** Replace operation chunk that substitutes content within a specified range */\n REPLACE = 'REPLACE',\n /** Node chunk that represents a rich content node (images, headings, etc.) */\n NODE = 'NODE',\n /** Node text chunk that represents text content within a node with optional decorations */\n NODE_TEXT = 'NODE_TEXT',\n /** Marker indicating the end of an insert operation range */\n INSERT_END = 'INSERT_END',\n /** Marker indicating the end of a replace operation range */\n REPLACE_END = 'REPLACE_END',\n /** Tool use notification chunk indicating that a tool has been used */\n TOOL_USE = 'TOOL_USE',\n /**\n * Debug chunk type\n * @internal\n */\n DEBUG = 'DEBUG',\n /**\n * Debug chunk type\n * @internal\n */\n METADATA = 'METADATA',\n /** Patch chunk type */\n PATCH = 'PATCH',\n /** Progress chunk type */\n PROGRESS = 'PROGRESS',\n /** Summary chunk type */\n SUMMARY = 'SUMMARY',\n /** Suggestion chunk type */\n SUGGESTION = 'SUGGESTION',\n /** Theme chunk type */\n THEME = 'THEME',\n /** Update document operation chunk start */\n UPDATE_DOCUMENT = 'UPDATE_DOCUMENT',\n /** Marker indicating the end of update document chunk */\n UPDATE_DOCUMENT_END = 'UPDATE_DOCUMENT_END',\n /** Error */\n ERROR = 'ERROR',\n}\n\n/** @enumType */\nexport type ChunkTypeWithLiterals =\n | ChunkType\n | 'EXPLAIN'\n | 'INSERT'\n | 'REPLACE'\n | 'NODE'\n | 'NODE_TEXT'\n | 'INSERT_END'\n | 'REPLACE_END'\n | 'TOOL_USE'\n | 'PATCH'\n | 'PROGRESS'\n | 'SUMMARY'\n | 'SUGGESTION'\n | 'THEME'\n | 'UPDATE_DOCUMENT'\n | 'UPDATE_DOCUMENT_END'\n | 'ERROR';\n\n/** Options for explanation chunks that provide context about AI operations */\nexport interface ExplainOption {\n /**\n * The explanatory text content describing what changes are being made\n * @maxLength 100000\n */\n text?: string;\n}\n\n/** Options for insert operation chunks that specify insertion behavior */\nexport interface InsertOptions {\n /**\n * The ID of the chunk after which new content will be inserted\n * @maxLength 100\n */\n after?: string;\n}\n\n/** Options for replace operation chunks that specify replacement range */\nexport interface ReplaceOptions {\n /**\n * The starting chunk ID of the range to be replaced (inclusive)\n * @maxLength 100\n */\n from?: string;\n /**\n * The ending chunk ID of the range to be replaced (inclusive)\n * @maxLength 100\n */\n to?: string;\n}\n\n/** Options for node chunks that contain rich content elements */\nexport interface NodeOptions {\n /**\n * The parent node ID for hierarchical content structure (null for root level)\n * @maxLength 100\n */\n parent?: string | null;\n /** The rich content node to be inserted or manipulated (images, headings, paragraphs, etc.) */\n node?: Node;\n /** Indication that node is still loading and should treated as such */\n pending?: boolean;\n}\n\n/** Options for node text chunks that contain formatted text content */\nexport interface NodeTextOptions {\n /**\n * The parent node ID to which this text content belongs\n * @maxLength 100\n */\n parent?: string;\n /**\n * The plain text content to be added to the node\n * @maxLength 100000\n */\n text?: string;\n /**\n * Text decorations applied to this content (bold, italic, links, etc.)\n * @maxSize 15\n */\n decorations?: Decoration[];\n}\n\nexport interface ToolUseOptions {\n /**\n * The name of the tool that was used in the conversation\n * @maxLength 100\n */\n toolName?: string;\n /** The parameters used when invoking the tool */\n parameters?: Record<string, any> | null;\n}\n\nexport interface DebugOptions {\n /**\n * Raw text received from LLM\n * @maxLength 100\n */\n text?: string;\n}\n\nexport interface MetadataOptions {\n microcentsSpent?: string | null;\n inputTokens?: number | null;\n outputTokens?: number | null;\n cacheCreationInputTokens?: number | null;\n cacheReadInputTokens?: number | null;\n}\n\nexport interface PatchOptions {\n /** The rich content node to be patched. Most likely this node was in the pending state */\n node?: Node;\n}\n\nexport interface ProgressOptions {\n /**\n * The text content describing current progress or ongoing work\n * @maxLength 100000\n */\n text?: string;\n}\n\nexport interface SummaryOptions {\n /**\n * The text content providing a summary of completed work or results\n * @maxLength 100000\n */\n text?: string;\n}\n\nexport interface SuggestionOptions {\n /**\n * The starting node ID of the region for suggestion (inclusive, optional if no specific region)\n * @maxLength 100\n */\n from?: string | null;\n /**\n * The ending node ID of the region for suggestion (inclusive, optional if no specific region)\n * @maxLength 100\n */\n to?: string | null;\n /** The type of action to perform: either replace existing content or insert new content */\n action?: SuggestionActionWithLiterals;\n /**\n * Specific, actionable prompt describing the improvement to be made\n * @maxLength 1000\n */\n prompt?: string;\n /**\n * Brief summary of the prompt in a few words\n * @maxLength 200\n */\n summary?: string;\n}\n\n/** Defines the type of suggestion action */\nexport enum SuggestionAction {\n /** Replace the content in the specified range */\n REPLACE = 'REPLACE',\n /** Insert new content after the specified range */\n INSERT = 'INSERT',\n}\n\n/** @enumType */\nexport type SuggestionActionWithLiterals =\n | SuggestionAction\n | 'REPLACE'\n | 'INSERT';\n\nexport interface ThemeOptions {\n /** Generated theme */\n theme?: Theme;\n}\n\nexport interface ErrorOptions {\n /**\n * The text content providing a error message\n * @maxLength 100000\n */\n text?: string;\n}\n\nexport interface CreateConversationAsyncRequest {\n /**\n * The conversation context including the current document state and message history.\n * Same as the non-streamed version, but the response will be delivered incrementally\n * through multiple response chunks rather than a single complete response.\n */\n ricosConversation?: RicosConversation;\n /**\n * Invocation id\n * @format GUID\n */\n invocationId?: string | null;\n /**\n * Additional user request info which will be logged\n * @maxSize 10\n */\n userRequestInfo?: Record<string, string>;\n}\n\nexport interface CreateConversationAsyncResponse {\n /**\n * Conversation Id\n * @format GUID\n */\n conversationId?: string;\n}\n\nexport interface GetConversationStreamRequest {\n /**\n * Conversation Id\n * @format GUID\n */\n conversationId: string;\n /**\n * Cursor\n * @maxLength 1000\n */\n cursor?: string | null;\n /** Enable streaming without any delay */\n streamWithoutDelay?: boolean | null;\n}\n\n/** Request message for creating a new conversation with non-streamed response */\nexport interface CreateRicosConversationRequest {\n /** The conversation context including the current document state and message history */\n ricosConversation?: RicosConversation;\n /**\n * Idempotency key for at-most-once execution. When provided, enables the execution guard:\n * the same invocation_id always returns the same result, and long-running generations\n * can be polled by retrying with the same id.\n * @format GUID\n */\n invocationId?: string | null;\n}\n\n/** Response message containing complete RichContent and metadata */\nexport interface CreateRicosConversationResponse {\n /** The complete assembled RichContent from all buffered chunks */\n richContent?: RichContent;\n /**\n * Unique identifier for this conversation session\n * @format GUID\n */\n conversationId?: string | null;\n /** List of explain entries produced during processing */\n explain?: ExplainOption[];\n /** List of summary entries produced during processing */\n summary?: SummaryOptions[];\n /** OList of tool use notifications produced during processing */\n toolUse?: ToolUseOptions[];\n /** OList of metadata entries (included only when requested) */\n metadata?: MetadataOptions[];\n /** OList of progress entries produced during processing */\n progress?: ProgressOptions[];\n /** List of suggestion entries produced during processing */\n suggestions?: SuggestionOptions[];\n /** Theme */\n theme?: ThemeOptions;\n}\n\n/** Request message for listing RichContent document suggestions */\nexport interface ListConversationSuggestionsRequest {\n /** The RichContent document, for which the suggestions should be retrieved */\n richContent: RichContent;\n /**\n * Existing suggestions\n * @maxSize 100\n */\n suggestions?: Suggestion[];\n /**\n * Additional user request info which will be logged\n * @maxSize 10\n */\n userRequestInfo?: Record<string, string>;\n /** Kind of suggestions to generate. Defaults to DOCUMENT_EDITS when unspecified. */\n type?: SuggestionTypeWithLiterals;\n}\n\n/** Suggestion structure */\nexport interface Suggestion extends SuggestionPositionDetailsOneOf {\n /** Details for the range of the suggestion */\n rangeDetails?: RangeDetails;\n /** Details for a suggested new page */\n newPageDetails?: NewPageDetails;\n /** Indication, what action is suggested */\n action?: ActionWithLiterals;\n /**\n * The suggested prompt, to complete the suggestions\n * @maxLength 3000\n */\n prompt?: string | null;\n /**\n * The summary of the suggestion\n * @maxLength 3000\n */\n summary?: string | null;\n /** Position description to what part of the document does the suggestion apply */\n position?: PositionsPositionWithLiterals;\n}\n\n/** @oneof */\nexport interface SuggestionPositionDetailsOneOf {\n /** Details for the range of the suggestion */\n rangeDetails?: RangeDetails;\n /** Details for a suggested new page */\n newPageDetails?: NewPageDetails;\n}\n\nexport enum Action {\n /** Insert suggestions that adds content after a specified reference point */\n INSERT = 'INSERT',\n /** Replace suggestion that substitutes content within a specific suggestion */\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type ActionWithLiterals = Action | 'INSERT' | 'REPLACE';\n\nexport enum PositionsPosition {\n /** Suggestion applies to an specific range between two points. */\n RANGE = 'RANGE',\n /** Suggestion proposes a new page that is missing from the document. */\n NEW_PAGE = 'NEW_PAGE',\n}\n\n/** @enumType */\nexport type PositionsPositionWithLiterals =\n | PositionsPosition\n | 'RANGE'\n | 'NEW_PAGE';\n\n/** Define specific range from beginning and the end */\nexport interface RangeDetails {\n /**\n * Point from where the suggestion begins\n * @maxLength 100\n */\n fromNodeId?: string | null;\n /**\n * Point to where the suggestions ends\n * @maxLength 100\n */\n toNodeId?: string | null;\n}\n\n/** Details of a suggested new page that is missing from the document */\nexport interface NewPageDetails {\n /**\n * Title of the suggested page\n * @maxLength 300\n */\n title?: string | null;\n}\n\nexport enum SuggestionType {\n /** Suggestions for edits within the existing document */\n DOCUMENT_EDITS = 'DOCUMENT_EDITS',\n /** Suggestions for new pages that are missing from the document */\n NEW_PAGES = 'NEW_PAGES',\n}\n\n/** @enumType */\nexport type SuggestionTypeWithLiterals =\n | SuggestionType\n | 'DOCUMENT_EDITS'\n | 'NEW_PAGES';\n\n/** Response message containing suggestions fro the provided RichContent document */\nexport interface ListConversationSuggestionsResponse {\n /**\n * List of suggestions for the document\n * @maxSize 100\n */\n suggestions?: Suggestion[];\n}\n\n/** Request message for creating a document summary */\nexport interface CreateDocumentSummaryRequest {\n /** The RichContent document to summarize */\n richContent: RichContent;\n}\n\n/** Response message containing the document summary */\nexport interface CreateDocumentSummaryResponse {\n /**\n * Text summary of the document\n * @maxLength 2000000\n */\n summary?: string | null;\n}\n\n/** Request message for creating a new conversation for HTML widget */\nexport interface CreateRicosConversationHTMLRequest {\n /** The conversation context including the current document state and message history */\n ricosConversation?: RicosConversation;\n /**\n * Additional user request info which will be logged\n * @maxSize 10\n */\n userRequestInfo?: Record<string, string>;\n /** Output mode: HTML (default) runs the AI prompt pipeline, WIDGET proxies to wixel-widgets async. */\n outputMode?: OutputModeWithLiterals;\n}\n\nexport enum OutputMode {\n /** Run AI prompt pipeline, return assembled HTML. */\n HTML = 'HTML',\n /** Proxy to wixel-widgets async endpoint, return widget_id. */\n WIDGET = 'WIDGET',\n}\n\n/** @enumType */\nexport type OutputModeWithLiterals = OutputMode | 'HTML' | 'WIDGET';\n\n/** Response message containing complete HTML and metadata */\nexport interface CreateRicosConversationHTMLResponse {\n /**\n * The complete assembled HTML from all buffered chunks\n * @maxLength 2000000\n */\n html?: string | null;\n /**\n * Width in pixels\n * @max 10000\n */\n width?: number | null;\n /**\n * Height in pixels\n * @max 10000\n */\n height?: number | null;\n /**\n * Widget ID returned when output_mode is WIDGET\n * @format GUID\n */\n widgetId?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Prompts the AI assistant with streaming response delivery.\n * This method processes the user's request and streams back response chunks in real-time,\n * enabling interactive editing experiences where users can see content being generated\n * and modified as it happens.\n *\n * Use this method for interactive editing sessions where immediate feedback enhances\n * the user experience, such as live content generation or real-time collaborative editing.\n *\n * The persist_conversation flag controls whether this conversation will be stored for\n * future continuation. When true, the conversation can be continued using the continue endpoint.\n * When false (default), the conversation operates in stateless mode.\n * @public\n * @documentationMaturity preview\n * @requiredField options.ricosConversation.userMessage\n * @permissionId RICOS_AI_ASSISTANT.RICOS_CONVERSATION_CREATE_STREAMED\n * @returns Streaming response message containing individual chunks of the AI's response\n * @fqn wix.ricos.v1.RicosAiAssistant.CreateConversationStreamed\n */\nexport async function createConversationStreamed(\n options?: CreateConversationStreamedOptions\n): Promise<ConversationResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest(\n {\n ricosConversation: options?.ricosConversation,\n persist: options?.persist,\n invocationId: options?.invocationId,\n },\n [\n 'ricosConversation.messageInRichContent',\n 'ricosConversation.document',\n 'ricosConversation.documentSelection',\n ]\n );\n\n const reqOpts =\n ambassadorWixRicosV1RicosConversation.createConversationStreamed(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 ricosConversation: '$[0].ricosConversation',\n persist: '$[0].persist',\n invocationId: '$[0].invocationId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateConversationStreamedOptions {\n /**\n * The conversation context including the current document state and message history.\n * Same as the non-streamed version, but the response will be delivered incrementally\n * through multiple response chunks rather than a single complete response.\n */\n ricosConversation?: RicosConversation;\n /**\n * Flag to control whether this conversation should be persisted for future continuation.\n * When true, the conversation will be stored and can be continued using the continue endpoint.\n * When false, the conversation will not be persisted .\n */\n persist?: boolean;\n /**\n * Invocation id\n * @format GUID\n */\n invocationId?: string | null;\n}\n\n/**\n * Creates a new conversation asynchronously and returns a conversation identifier.\n * This method initiates conversation processing in the background and returns immediately\n * with a conversation_id that can be used to retrieve the streaming response via GetConversationStream.\n *\n * Use this method when you need to start a conversation without waiting for processing to begin,\n * allowing for better resource management and the ability to retrieve results on-demand.\n * The conversation is automatically persisted and can be streamed using the returned conversation_id.\n * @public\n * @documentationMaturity preview\n * @requiredField options.ricosConversation.userMessage\n * @permissionId RICOS_AI_ASSISTANT.RICOS_CONVERSATION_CREATE_ASYNC\n * @fqn wix.ricos.v1.RicosAiAssistant.CreateConversationAsync\n */\nexport async function createConversationAsync(\n options?: CreateConversationAsyncOptions\n): Promise<CreateConversationAsyncResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest(\n {\n ricosConversation: options?.ricosConversation,\n invocationId: options?.invocationId,\n userRequestInfo: options?.userRequestInfo,\n },\n [\n 'ricosConversation.messageInRichContent',\n 'ricosConversation.document',\n 'ricosConversation.documentSelection',\n ]\n );\n\n const reqOpts =\n ambassadorWixRicosV1RicosConversation.createConversationAsync(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 ricosConversation: '$[0].ricosConversation',\n invocationId: '$[0].invocationId',\n userRequestInfo: '$[0].userRequestInfo',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateConversationAsyncOptions {\n /**\n * The conversation context including the current document state and message history.\n * Same as the non-streamed version, but the response will be delivered incrementally\n * through multiple response chunks rather than a single complete response.\n */\n ricosConversation?: RicosConversation;\n /**\n * Invocation id\n * @format GUID\n */\n invocationId?: string | null;\n /**\n * Additional user request info which will be logged\n * @maxSize 10\n */\n userRequestInfo?: Record<string, string>;\n}\n\n/**\n * Retrieves the streaming response for an existing conversation.\n * This method streams back response chunks for a conversation that was previously created\n * using CreateConversationAsync, enabling clients to receive incremental updates as they become available.\n *\n * Use this method to retrieve the streaming results of an asynchronously created conversation,\n * or to resume streaming from a specific point using the optional cursor parameter.\n * This enables flexible consumption patterns where clients can poll for results or resume\n * interrupted streams without losing progress.\n * @param conversationId - Conversation Id\n * @public\n * @documentationMaturity preview\n * @requiredField conversationId\n * @permissionId RICOS_AI_ASSISTANT.RICOS_CONVERSATION_GET_STREAM\n * @returns Streaming response message containing individual chunks of the AI's response\n * @fqn wix.ricos.v1.RicosAiAssistant.GetConversationStream\n */\nexport async function getConversationStream(\n conversationId: string,\n options?: GetConversationStreamOptions\n): Promise<ConversationResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest(\n {\n conversationId: conversationId,\n cursor: options?.cursor,\n streamWithoutDelay: options?.streamWithoutDelay,\n },\n []\n );\n\n const reqOpts =\n ambassadorWixRicosV1RicosConversation.getConversationStream(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 conversationId: '$[0]',\n cursor: '$[1].cursor',\n streamWithoutDelay: '$[1].streamWithoutDelay',\n },\n singleArgumentUnchanged: false,\n },\n ['conversationId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetConversationStreamOptions {\n /**\n * Cursor\n * @maxLength 1000\n */\n cursor?: string | null;\n /** Enable streaming without any delay */\n streamWithoutDelay?: boolean | null;\n}\n\n/**\n * Creates a new conversation and returns complete RichContent after processing.\n * This method processes the user's request and waits for completion before returning\n * the assembled RichContent along with metadata. Unlike the streaming version,\n * this method buffers all chunks internally and returns the final result.\n *\n * Use this method when you need the complete processed content in a single response\n * rather than receiving incremental updates.\n *\n * Long-running generation: when `invocation_id` is provided, the server uses an\n * execution guard for at-most-once semantics. If generation exceeds 90 seconds,\n * the server returns DEADLINE_EXCEEDED while the execution continues in the background.\n * Callers should retry with the same `invocation_id` — subsequent calls return\n * ALREADY_EXISTS while in progress, or the cached result once complete.\n * @public\n * @documentationMaturity preview\n * @requiredField options.ricosConversation.userMessage\n * @permissionId RICOS_AI_ASSISTANT.RICOS_CONVERSATION_CREATE\n * @returns Response message containing complete RichContent and metadata\n * @fqn wix.ricos.v1.RicosAiAssistant.CreateRicosConversation\n */\nexport async function createRicosConversation(\n options?: CreateRicosConversationOptions\n): Promise<CreateRicosConversationResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest(\n {\n ricosConversation: options?.ricosConversation,\n invocationId: options?.invocationId,\n },\n [\n 'ricosConversation.messageInRichContent',\n 'ricosConversation.document',\n 'ricosConversation.documentSelection',\n ]\n );\n\n const reqOpts =\n ambassadorWixRicosV1RicosConversation.createRicosConversation(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 ricosConversation: '$[0].ricosConversation',\n invocationId: '$[0].invocationId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateRicosConversationOptions {\n /** The conversation context including the current document state and message history */\n ricosConversation?: RicosConversation;\n /**\n * Idempotency key for at-most-once execution. When provided, enables the execution guard:\n * the same invocation_id always returns the same result, and long-running generations\n * can be polled by retrying with the same id.\n * @format GUID\n */\n invocationId?: string | null;\n}\n\n/**\n * List RichContent document suggestions\n * @param richContent - The RichContent document, for which the suggestions should be retrieved\n * @public\n * @documentationMaturity preview\n * @requiredField richContent\n * @permissionId RICOS_AI_ASSISTANT.RICOS_CONVERSATION_LIST_SUGGESTIONS\n * @returns Response message containing suggestions fro the provided RichContent document\n * @fqn wix.ricos.v1.RicosAiAssistant.ListConversationSuggestions\n */\nexport async function listConversationSuggestions(\n richContent: RichContent,\n options?: ListConversationSuggestionsOptions\n): Promise<ListConversationSuggestionsResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest(\n {\n richContent: richContent,\n suggestions: options?.suggestions,\n userRequestInfo: options?.userRequestInfo,\n type: options?.type,\n },\n []\n );\n\n const reqOpts =\n ambassadorWixRicosV1RicosConversation.listConversationSuggestions(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 richContent: '$[0]',\n suggestions: '$[1].suggestions',\n userRequestInfo: '$[1].userRequestInfo',\n type: '$[1].type',\n },\n singleArgumentUnchanged: false,\n },\n ['richContent', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListConversationSuggestionsOptions {\n /**\n * Existing suggestions\n * @maxSize 100\n */\n suggestions?: Suggestion[];\n /**\n * Additional user request info which will be logged\n * @maxSize 10\n */\n userRequestInfo?: Record<string, string>;\n /** Kind of suggestions to generate. Defaults to DOCUMENT_EDITS when unspecified. */\n type?: SuggestionTypeWithLiterals;\n}\n\n/**\n * Create a short text summary of a RichContent document\n * @param richContent - The RichContent document to summarize\n * @public\n * @documentationMaturity preview\n * @requiredField richContent\n * @permissionId RICOS_AI_ASSISTANT.RICOS_CONVERSATION_CREATE_DOCUMENT_SUMMARY\n * @returns Response message containing the document summary\n * @fqn wix.ricos.v1.RicosAiAssistant.CreateDocumentSummary\n */\nexport async function createDocumentSummary(\n richContent: RichContent\n): Promise<CreateDocumentSummaryResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest(\n { richContent: richContent },\n []\n );\n\n const reqOpts =\n ambassadorWixRicosV1RicosConversation.createDocumentSummary(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: { richContent: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['richContent']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a new conversation and returns complete HTML after processing.\n * This method processes the user's request and waits for completion before returning\n * the assembled HTML along with metadata.\n * @public\n * @documentationMaturity preview\n * @requiredField options.ricosConversation.userMessage\n * @permissionId RICOS_AI_ASSISTANT.RICOS_CONVERSATION_CREATE\n * @returns Response message containing complete HTML and metadata\n * @fqn wix.ricos.v1.RicosAiAssistant.CreateRicosConversationHTML\n */\nexport async function createRicosConversationHtml(\n options?: CreateRicosConversationHtmlOptions\n): Promise<CreateRicosConversationHTMLResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest(\n {\n ricosConversation: options?.ricosConversation,\n userRequestInfo: options?.userRequestInfo,\n outputMode: options?.outputMode,\n },\n [\n 'ricosConversation.messageInRichContent',\n 'ricosConversation.document',\n 'ricosConversation.documentSelection',\n ]\n );\n\n const reqOpts =\n ambassadorWixRicosV1RicosConversation.createRicosConversationHtml(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 ricosConversation: '$[0].ricosConversation',\n userRequestInfo: '$[0].userRequestInfo',\n outputMode: '$[0].outputMode',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateRicosConversationHtmlOptions {\n /** The conversation context including the current document state and message history */\n ricosConversation?: RicosConversation;\n /**\n * Additional user request info which will be logged\n * @maxSize 10\n */\n userRequestInfo?: Record<string, string>;\n /** Output mode: HTML (default) runs the AI prompt pipeline, WIDGET proxies to wixel-widgets async. */\n outputMode?: OutputModeWithLiterals;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { 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 {\n path: 'ricosConversation.messageInRichContent.nodes.buttonData.styles.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.buttonData.styles.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.imageData.image.duration',\n },\n { path: 'ricosConversation.messageInRichContent.nodes.imageData.crop.x' },\n { path: 'ricosConversation.messageInRichContent.nodes.imageData.crop.y' },\n { path: 'ricosConversation.messageInRichContent.nodes.imageData.crop.width' },\n {\n path: 'ricosConversation.messageInRichContent.nodes.imageData.crop.height',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.pollData.poll.image.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.appEmbedData.image.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.videoData.video.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.audioData.audio.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.audioData.coverImage.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backgroundImage.media.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backdropImage.media.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backdrop.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backdrop.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.layoutData.backdrop.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.shapeData.shape.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.cardData.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.cardData.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.cardData.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.cardData.backgroundImage.media.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'ricosConversation.messageInRichContent.nodes.tocData.fontSize' },\n { path: 'ricosConversation.messageInRichContent.nodes.tocData.itemSpacing' },\n {\n path: 'ricosConversation.messageInRichContent.nodes.smartBlockCellData.shape.duration',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.messageInRichContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.buttonData.styles.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.buttonData.styles.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'ricosConversation.document.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'ricosConversation.document.nodes.galleryData.items.video.thumbnail.duration',\n },\n { path: 'ricosConversation.document.nodes.galleryData.options.item.ratio' },\n { path: 'ricosConversation.document.nodes.imageData.image.duration' },\n { path: 'ricosConversation.document.nodes.imageData.crop.x' },\n { path: 'ricosConversation.document.nodes.imageData.crop.y' },\n { path: 'ricosConversation.document.nodes.imageData.crop.width' },\n { path: 'ricosConversation.document.nodes.imageData.crop.height' },\n { path: 'ricosConversation.document.nodes.mapData.mapSettings.lat' },\n { path: 'ricosConversation.document.nodes.mapData.mapSettings.lng' },\n { path: 'ricosConversation.document.nodes.pollData.poll.image.duration' },\n {\n path: 'ricosConversation.document.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'ricosConversation.document.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'ricosConversation.document.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'ricosConversation.document.nodes.appEmbedData.image.duration' },\n { path: 'ricosConversation.document.nodes.videoData.video.duration' },\n { path: 'ricosConversation.document.nodes.videoData.thumbnail.duration' },\n { path: 'ricosConversation.document.nodes.audioData.audio.duration' },\n { path: 'ricosConversation.document.nodes.audioData.coverImage.duration' },\n {\n path: 'ricosConversation.document.nodes.layoutData.backgroundImage.media.duration',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backdropImage.media.duration',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backdrop.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backdrop.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.layoutData.backdrop.gradient.stops.position',\n },\n { path: 'ricosConversation.document.nodes.shapeData.shape.duration' },\n {\n path: 'ricosConversation.document.nodes.cardData.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.cardData.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.cardData.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.nodes.cardData.backgroundImage.media.duration',\n },\n {\n path: 'ricosConversation.document.nodes.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.nodes.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.nodes.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'ricosConversation.document.nodes.tocData.fontSize' },\n { path: 'ricosConversation.document.nodes.tocData.itemSpacing' },\n {\n path: 'ricosConversation.document.nodes.smartBlockCellData.shape.duration',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.document.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.document.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.document.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.buttonData.styles.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.buttonData.styles.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.imageData.image.duration',\n },\n { path: 'ricosConversation.documentSelection.nodes.imageData.crop.x' },\n { path: 'ricosConversation.documentSelection.nodes.imageData.crop.y' },\n { path: 'ricosConversation.documentSelection.nodes.imageData.crop.width' },\n { path: 'ricosConversation.documentSelection.nodes.imageData.crop.height' },\n { path: 'ricosConversation.documentSelection.nodes.mapData.mapSettings.lat' },\n { path: 'ricosConversation.documentSelection.nodes.mapData.mapSettings.lng' },\n {\n path: 'ricosConversation.documentSelection.nodes.pollData.poll.image.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.appEmbedData.image.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.videoData.video.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.audioData.audio.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.audioData.coverImage.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backgroundImage.media.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backdropImage.media.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backdrop.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backdrop.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.layoutData.backdrop.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.shapeData.shape.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.cardData.background.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.cardData.background.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.cardData.background.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.cardData.backgroundImage.media.duration',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.nodes.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'ricosConversation.documentSelection.nodes.tocData.fontSize' },\n { path: 'ricosConversation.documentSelection.nodes.tocData.itemSpacing' },\n {\n path: 'ricosConversation.documentSelection.nodes.smartBlockCellData.shape.duration',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'ricosConversation.documentSelection.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'ricosConversation.theme.background.colorOptions.color.gradientOptions.opacity',\n },\n {\n path: 'ricosConversation.theme.background.colorOptions.color.gradientOptions.radialOptions.x',\n },\n {\n path: 'ricosConversation.theme.background.colorOptions.color.gradientOptions.radialOptions.y',\n },\n {\n path: 'ricosConversation.theme.background.colorOptions.color.gradientOptions.stops.opacity',\n },\n {\n path: 'ricosConversation.theme.background.colorOptions.color.gradientOptions.stops.position',\n },\n { path: 'ricosConversation.theme.background.imageOptions.opacity' },\n {\n path: 'ricosConversation.theme.background.imageOptions.color.gradientOptions.opacity',\n },\n {\n path: 'ricosConversation.theme.background.imageOptions.color.gradientOptions.radialOptions.x',\n },\n {\n path: 'ricosConversation.theme.background.imageOptions.color.gradientOptions.radialOptions.y',\n },\n {\n path: 'ricosConversation.theme.background.imageOptions.color.gradientOptions.stops.opacity',\n },\n {\n path: 'ricosConversation.theme.background.imageOptions.color.gradientOptions.stops.position',\n },\n { path: 'ricosConversation.theme.typography.heading1.lineHeight' },\n { path: 'ricosConversation.theme.typography.heading1.letterSpacing' },\n { path: 'ricosConversation.theme.typography.heading2.lineHeight' },\n { path: 'ricosConversation.theme.typography.heading2.letterSpacing' },\n { path: 'ricosConversation.theme.typography.heading3.lineHeight' },\n { path: 'ricosConversation.theme.typography.heading3.letterSpacing' },\n { path: 'ricosConversation.theme.typography.heading4.lineHeight' },\n { path: 'ricosConversation.theme.typography.heading4.letterSpacing' },\n { path: 'ricosConversation.theme.typography.heading5.lineHeight' },\n { path: 'ricosConversation.theme.typography.heading5.letterSpacing' },\n { path: 'ricosConversation.theme.typography.heading6.lineHeight' },\n { path: 'ricosConversation.theme.typography.heading6.letterSpacing' },\n { path: 'ricosConversation.theme.typography.paragraph.lineHeight' },\n { path: 'ricosConversation.theme.typography.paragraph.letterSpacing' },\n { path: 'ricosConversation.theme.pageSetup.customMargins.top' },\n { path: 'ricosConversation.theme.pageSetup.customMargins.right' },\n { path: 'ricosConversation.theme.pageSetup.customMargins.bottom' },\n { path: 'ricosConversation.theme.pageSetup.customMargins.left' },\n];\nconst TRANSFORM_PATHS_1 = [\n { path: 'ricosConversation.messageInRichContent.metadata.createdTimestamp' },\n { path: 'ricosConversation.messageInRichContent.metadata.updatedTimestamp' },\n { path: 'ricosConversation.document.metadata.createdTimestamp' },\n { path: 'ricosConversation.document.metadata.updatedTimestamp' },\n { path: 'ricosConversation.documentSelection.metadata.createdTimestamp' },\n { path: 'ricosConversation.documentSelection.metadata.updatedTimestamp' },\n];\nconst TRANSFORM_PATHS_2 = [\n {\n path: 'chunk.nodeOptions.node.buttonData.styles.background.gradient.centerX',\n },\n {\n path: 'chunk.nodeOptions.node.buttonData.styles.background.gradient.centerY',\n },\n {\n path: 'chunk.nodeOptions.node.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'chunk.nodeOptions.node.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'chunk.nodeOptions.node.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'chunk.nodeOptions.node.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.galleryData.items.image.media.duration' },\n { path: 'chunk.nodeOptions.node.galleryData.items.video.media.duration' },\n { path: 'chunk.nodeOptions.node.galleryData.items.video.thumbnail.duration' },\n { path: 'chunk.nodeOptions.node.galleryData.options.item.ratio' },\n { path: 'chunk.nodeOptions.node.imageData.image.duration' },\n { path: 'chunk.nodeOptions.node.imageData.crop.x' },\n { path: 'chunk.nodeOptions.node.imageData.crop.y' },\n { path: 'chunk.nodeOptions.node.imageData.crop.width' },\n { path: 'chunk.nodeOptions.node.imageData.crop.height' },\n { path: 'chunk.nodeOptions.node.mapData.mapSettings.lat' },\n { path: 'chunk.nodeOptions.node.mapData.mapSettings.lng' },\n { path: 'chunk.nodeOptions.node.pollData.poll.image.duration' },\n { path: 'chunk.nodeOptions.node.pollData.poll.options.image.duration' },\n {\n path: 'chunk.nodeOptions.node.pollData.design.poll.background.image.duration',\n },\n {\n path: 'chunk.nodeOptions.node.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'chunk.nodeOptions.node.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'chunk.nodeOptions.node.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'chunk.nodeOptions.node.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'chunk.nodeOptions.node.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'chunk.nodeOptions.node.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.appEmbedData.image.duration' },\n { path: 'chunk.nodeOptions.node.videoData.video.duration' },\n { path: 'chunk.nodeOptions.node.videoData.thumbnail.duration' },\n { path: 'chunk.nodeOptions.node.audioData.audio.duration' },\n { path: 'chunk.nodeOptions.node.audioData.coverImage.duration' },\n { path: 'chunk.nodeOptions.node.layoutData.backgroundImage.media.duration' },\n {\n path: 'chunk.nodeOptions.node.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'chunk.nodeOptions.node.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'chunk.nodeOptions.node.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.layoutData.backdropImage.media.duration' },\n {\n path: 'chunk.nodeOptions.node.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'chunk.nodeOptions.node.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'chunk.nodeOptions.node.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.layoutData.background.gradient.centerX' },\n { path: 'chunk.nodeOptions.node.layoutData.background.gradient.centerY' },\n {\n path: 'chunk.nodeOptions.node.layoutData.background.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.layoutData.backdrop.gradient.centerX' },\n { path: 'chunk.nodeOptions.node.layoutData.backdrop.gradient.centerY' },\n {\n path: 'chunk.nodeOptions.node.layoutData.backdrop.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.shapeData.shape.duration' },\n { path: 'chunk.nodeOptions.node.cardData.background.gradient.centerX' },\n { path: 'chunk.nodeOptions.node.cardData.background.gradient.centerY' },\n {\n path: 'chunk.nodeOptions.node.cardData.background.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.cardData.backgroundImage.media.duration' },\n {\n path: 'chunk.nodeOptions.node.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'chunk.nodeOptions.node.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'chunk.nodeOptions.node.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'chunk.nodeOptions.node.tocData.fontSize' },\n { path: 'chunk.nodeOptions.node.tocData.itemSpacing' },\n { path: 'chunk.nodeOptions.node.smartBlockCellData.shape.duration' },\n {\n path: 'chunk.nodeTextOptions.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'chunk.nodeTextOptions.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'chunk.nodeTextOptions.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'chunk.nodeTextOptions.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'chunk.nodeTextOptions.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'chunk.nodeTextOptions.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'chunk.patchOptions.node.buttonData.styles.background.gradient.centerX',\n },\n {\n path: 'chunk.patchOptions.node.buttonData.styles.background.gradient.centerY',\n },\n {\n path: 'chunk.patchOptions.node.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'chunk.patchOptions.node.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'chunk.patchOptions.node.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'chunk.patchOptions.node.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.galleryData.items.image.media.duration' },\n { path: 'chunk.patchOptions.node.galleryData.items.video.media.duration' },\n {\n path: 'chunk.patchOptions.node.galleryData.items.video.thumbnail.duration',\n },\n { path: 'chunk.patchOptions.node.galleryData.options.item.ratio' },\n { path: 'chunk.patchOptions.node.imageData.image.duration' },\n { path: 'chunk.patchOptions.node.imageData.crop.x' },\n { path: 'chunk.patchOptions.node.imageData.crop.y' },\n { path: 'chunk.patchOptions.node.imageData.crop.width' },\n { path: 'chunk.patchOptions.node.imageData.crop.height' },\n { path: 'chunk.patchOptions.node.mapData.mapSettings.lat' },\n { path: 'chunk.patchOptions.node.mapData.mapSettings.lng' },\n { path: 'chunk.patchOptions.node.pollData.poll.image.duration' },\n { path: 'chunk.patchOptions.node.pollData.poll.options.image.duration' },\n {\n path: 'chunk.patchOptions.node.pollData.design.poll.background.image.duration',\n },\n {\n path: 'chunk.patchOptions.node.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'chunk.patchOptions.node.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'chunk.patchOptions.node.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'chunk.patchOptions.node.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'chunk.patchOptions.node.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'chunk.patchOptions.node.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.appEmbedData.image.duration' },\n { path: 'chunk.patchOptions.node.videoData.video.duration' },\n { path: 'chunk.patchOptions.node.videoData.thumbnail.duration' },\n { path: 'chunk.patchOptions.node.audioData.audio.duration' },\n { path: 'chunk.patchOptions.node.audioData.coverImage.duration' },\n { path: 'chunk.patchOptions.node.layoutData.backgroundImage.media.duration' },\n {\n path: 'chunk.patchOptions.node.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'chunk.patchOptions.node.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'chunk.patchOptions.node.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.layoutData.backdropImage.media.duration' },\n {\n path: 'chunk.patchOptions.node.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'chunk.patchOptions.node.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'chunk.patchOptions.node.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.layoutData.background.gradient.centerX' },\n { path: 'chunk.patchOptions.node.layoutData.background.gradient.centerY' },\n {\n path: 'chunk.patchOptions.node.layoutData.background.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.layoutData.backdrop.gradient.centerX' },\n { path: 'chunk.patchOptions.node.layoutData.backdrop.gradient.centerY' },\n {\n path: 'chunk.patchOptions.node.layoutData.backdrop.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.shapeData.shape.duration' },\n { path: 'chunk.patchOptions.node.cardData.background.gradient.centerX' },\n { path: 'chunk.patchOptions.node.cardData.background.gradient.centerY' },\n {\n path: 'chunk.patchOptions.node.cardData.background.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.cardData.backgroundImage.media.duration' },\n {\n path: 'chunk.patchOptions.node.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'chunk.patchOptions.node.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'chunk.patchOptions.node.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'chunk.patchOptions.node.tocData.fontSize' },\n { path: 'chunk.patchOptions.node.tocData.itemSpacing' },\n { path: 'chunk.patchOptions.node.smartBlockCellData.shape.duration' },\n {\n path: 'chunk.themeOptions.theme.background.colorOptions.color.gradientOptions.opacity',\n },\n {\n path: 'chunk.themeOptions.theme.background.colorOptions.color.gradientOptions.radialOptions.x',\n },\n {\n path: 'chunk.themeOptions.theme.background.colorOptions.color.gradientOptions.radialOptions.y',\n },\n {\n path: 'chunk.themeOptions.theme.background.colorOptions.color.gradientOptions.stops.opacity',\n },\n {\n path: 'chunk.themeOptions.theme.background.colorOptions.color.gradientOptions.stops.position',\n },\n { path: 'chunk.themeOptions.theme.background.imageOptions.opacity' },\n {\n path: 'chunk.themeOptions.theme.background.imageOptions.color.gradientOptions.opacity',\n },\n {\n path: 'chunk.themeOptions.theme.background.imageOptions.color.gradientOptions.radialOptions.x',\n },\n {\n path: 'chunk.themeOptions.theme.background.imageOptions.color.gradientOptions.radialOptions.y',\n },\n {\n path: 'chunk.themeOptions.theme.background.imageOptions.color.gradientOptions.stops.opacity',\n },\n {\n path: 'chunk.themeOptions.theme.background.imageOptions.color.gradientOptions.stops.position',\n },\n { path: 'chunk.themeOptions.theme.typography.heading1.lineHeight' },\n { path: 'chunk.themeOptions.theme.typography.heading1.letterSpacing' },\n { path: 'chunk.themeOptions.theme.typography.heading2.lineHeight' },\n { path: 'chunk.themeOptions.theme.typography.heading2.letterSpacing' },\n { path: 'chunk.themeOptions.theme.typography.heading3.lineHeight' },\n { path: 'chunk.themeOptions.theme.typography.heading3.letterSpacing' },\n { path: 'chunk.themeOptions.theme.typography.heading4.lineHeight' },\n { path: 'chunk.themeOptions.theme.typography.heading4.letterSpacing' },\n { path: 'chunk.themeOptions.theme.typography.heading5.lineHeight' },\n { path: 'chunk.themeOptions.theme.typography.heading5.letterSpacing' },\n { path: 'chunk.themeOptions.theme.typography.heading6.lineHeight' },\n { path: 'chunk.themeOptions.theme.typography.heading6.letterSpacing' },\n { path: 'chunk.themeOptions.theme.typography.paragraph.lineHeight' },\n { path: 'chunk.themeOptions.theme.typography.paragraph.letterSpacing' },\n { path: 'chunk.themeOptions.theme.pageSetup.customMargins.top' },\n { path: 'chunk.themeOptions.theme.pageSetup.customMargins.right' },\n { path: 'chunk.themeOptions.theme.pageSetup.customMargins.bottom' },\n { path: 'chunk.themeOptions.theme.pageSetup.customMargins.left' },\n];\nconst TRANSFORM_PATHS_3 = [\n { path: 'richContent.nodes.buttonData.styles.background.gradient.centerX' },\n { path: 'richContent.nodes.buttonData.styles.background.gradient.centerY' },\n {\n path: 'richContent.nodes.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n { path: 'richContent.nodes.galleryData.items.image.media.duration' },\n { path: 'richContent.nodes.galleryData.items.video.media.duration' },\n { path: 'richContent.nodes.galleryData.items.video.thumbnail.duration' },\n { path: 'richContent.nodes.galleryData.options.item.ratio' },\n { path: 'richContent.nodes.imageData.image.duration' },\n { path: 'richContent.nodes.imageData.crop.x' },\n { path: 'richContent.nodes.imageData.crop.y' },\n { path: 'richContent.nodes.imageData.crop.width' },\n { path: 'richContent.nodes.imageData.crop.height' },\n { path: 'richContent.nodes.mapData.mapSettings.lat' },\n { path: 'richContent.nodes.mapData.mapSettings.lng' },\n { path: 'richContent.nodes.pollData.poll.image.duration' },\n { path: 'richContent.nodes.pollData.poll.options.image.duration' },\n { path: 'richContent.nodes.pollData.design.poll.background.image.duration' },\n {\n path: 'richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'richContent.nodes.appEmbedData.image.duration' },\n { path: 'richContent.nodes.videoData.video.duration' },\n { path: 'richContent.nodes.videoData.thumbnail.duration' },\n { path: 'richContent.nodes.audioData.audio.duration' },\n { path: 'richContent.nodes.audioData.coverImage.duration' },\n { path: 'richContent.nodes.layoutData.backgroundImage.media.duration' },\n {\n path: 'richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'richContent.nodes.layoutData.backdropImage.media.duration' },\n {\n path: 'richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n { path: 'richContent.nodes.layoutData.background.gradient.centerX' },\n { path: 'richContent.nodes.layoutData.background.gradient.centerY' },\n { path: 'richContent.nodes.layoutData.background.gradient.stops.position' },\n { path: 'richContent.nodes.layoutData.backdrop.gradient.centerX' },\n { path: 'richContent.nodes.layoutData.backdrop.gradient.centerY' },\n { path: 'richContent.nodes.layoutData.backdrop.gradient.stops.position' },\n { path: 'richContent.nodes.shapeData.shape.duration' },\n { path: 'richContent.nodes.cardData.background.gradient.centerX' },\n { path: 'richContent.nodes.cardData.background.gradient.centerY' },\n { path: 'richContent.nodes.cardData.background.gradient.stops.position' },\n { path: 'richContent.nodes.cardData.backgroundImage.media.duration' },\n {\n path: 'richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'richContent.nodes.tocData.fontSize' },\n { path: 'richContent.nodes.tocData.itemSpacing' },\n { path: 'richContent.nodes.smartBlockCellData.shape.duration' },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'theme.theme.background.colorOptions.color.gradientOptions.opacity' },\n {\n path: 'theme.theme.background.colorOptions.color.gradientOptions.radialOptions.x',\n },\n {\n path: 'theme.theme.background.colorOptions.color.gradientOptions.radialOptions.y',\n },\n {\n path: 'theme.theme.background.colorOptions.color.gradientOptions.stops.opacity',\n },\n {\n path: 'theme.theme.background.colorOptions.color.gradientOptions.stops.position',\n },\n { path: 'theme.theme.background.imageOptions.opacity' },\n { path: 'theme.theme.background.imageOptions.color.gradientOptions.opacity' },\n {\n path: 'theme.theme.background.imageOptions.color.gradientOptions.radialOptions.x',\n },\n {\n path: 'theme.theme.background.imageOptions.color.gradientOptions.radialOptions.y',\n },\n {\n path: 'theme.theme.background.imageOptions.color.gradientOptions.stops.opacity',\n },\n {\n path: 'theme.theme.background.imageOptions.color.gradientOptions.stops.position',\n },\n { path: 'theme.theme.typography.heading1.lineHeight' },\n { path: 'theme.theme.typography.heading1.letterSpacing' },\n { path: 'theme.theme.typography.heading2.lineHeight' },\n { path: 'theme.theme.typography.heading2.letterSpacing' },\n { path: 'theme.theme.typography.heading3.lineHeight' },\n { path: 'theme.theme.typography.heading3.letterSpacing' },\n { path: 'theme.theme.typography.heading4.lineHeight' },\n { path: 'theme.theme.typography.heading4.letterSpacing' },\n { path: 'theme.theme.typography.heading5.lineHeight' },\n { path: 'theme.theme.typography.heading5.letterSpacing' },\n { path: 'theme.theme.typography.heading6.lineHeight' },\n { path: 'theme.theme.typography.heading6.letterSpacing' },\n { path: 'theme.theme.typography.paragraph.lineHeight' },\n { path: 'theme.theme.typography.paragraph.letterSpacing' },\n { path: 'theme.theme.pageSetup.customMargins.top' },\n { path: 'theme.theme.pageSetup.customMargins.right' },\n { path: 'theme.theme.pageSetup.customMargins.bottom' },\n { path: 'theme.theme.pageSetup.customMargins.left' },\n];\nconst TRANSFORM_PATHS_4 = [\n { path: 'richContent.metadata.createdTimestamp' },\n { path: 'richContent.metadata.updatedTimestamp' },\n];\nconst TRANSFORM_PATHS_5 = [\n { path: 'richContent.nodes.buttonData.styles.background.gradient.centerX' },\n { path: 'richContent.nodes.buttonData.styles.background.gradient.centerY' },\n {\n path: 'richContent.nodes.buttonData.styles.background.gradient.stops.position',\n },\n {\n path: 'richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX',\n },\n {\n path: 'richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY',\n },\n {\n path: 'richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position',\n },\n { path: 'richContent.nodes.galleryData.items.image.media.duration' },\n { path: 'richContent.nodes.galleryData.items.video.media.duration' },\n { path: 'richContent.nodes.galleryData.items.video.thumbnail.duration' },\n { path: 'richContent.nodes.galleryData.options.item.ratio' },\n { path: 'richContent.nodes.imageData.image.duration' },\n { path: 'richContent.nodes.imageData.crop.x' },\n { path: 'richContent.nodes.imageData.crop.y' },\n { path: 'richContent.nodes.imageData.crop.width' },\n { path: 'richContent.nodes.imageData.crop.height' },\n { path: 'richContent.nodes.mapData.mapSettings.lat' },\n { path: 'richContent.nodes.mapData.mapSettings.lng' },\n { path: 'richContent.nodes.pollData.poll.image.duration' },\n { path: 'richContent.nodes.pollData.poll.options.image.duration' },\n { path: 'richContent.nodes.pollData.design.poll.background.image.duration' },\n {\n path: 'richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n { path: 'richContent.nodes.appEmbedData.image.duration' },\n { path: 'richContent.nodes.videoData.video.duration' },\n { path: 'richContent.nodes.videoData.thumbnail.duration' },\n { path: 'richContent.nodes.audioData.audio.duration' },\n { path: 'richContent.nodes.audioData.coverImage.duration' },\n { path: 'richContent.nodes.layoutData.backgroundImage.media.duration' },\n {\n path: 'richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'richContent.nodes.layoutData.backdropImage.media.duration' },\n {\n path: 'richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX',\n },\n {\n path: 'richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY',\n },\n {\n path: 'richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position',\n },\n { path: 'richContent.nodes.layoutData.background.gradient.centerX' },\n { path: 'richContent.nodes.layoutData.background.gradient.centerY' },\n { path: 'richContent.nodes.layoutData.background.gradient.stops.position' },\n { path: 'richContent.nodes.layoutData.backdrop.gradient.centerX' },\n { path: 'richContent.nodes.layoutData.backdrop.gradient.centerY' },\n { path: 'richContent.nodes.layoutData.backdrop.gradient.stops.position' },\n { path: 'richContent.nodes.shapeData.shape.duration' },\n { path: 'richContent.nodes.cardData.background.gradient.centerX' },\n { path: 'richContent.nodes.cardData.background.gradient.centerY' },\n { path: 'richContent.nodes.cardData.background.gradient.stops.position' },\n { path: 'richContent.nodes.cardData.backgroundImage.media.duration' },\n {\n path: 'richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX',\n },\n {\n path: 'richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY',\n },\n {\n path: 'richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position',\n },\n { path: 'richContent.nodes.tocData.fontSize' },\n { path: 'richContent.nodes.tocData.itemSpacing' },\n { path: 'richContent.nodes.smartBlockCellData.shape.duration' },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY',\n },\n {\n path: 'richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position',\n },\n];\n\nfunction resolveWixRicosV1RicosAiAssistantUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/ricos-ai-assistant',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/ricos-ai-assistant',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/ricos-ai-assistant',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/ricos-ai-assistant',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ricos/v1/ricos-conversations',\n destPath: '/v1/ricos-conversations',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/ricos-ai-assistant',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/ricos-ai-assistant',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/ricos-ai-assistant',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_rich-content_ricos-conversations';\n\n/**\n * Prompts the AI assistant with streaming response delivery.\n * This method processes the user's request and streams back response chunks in real-time,\n * enabling interactive editing experiences where users can see content being generated\n * and modified as it happens.\n *\n * Use this method for interactive editing sessions where immediate feedback enhances\n * the user experience, such as live content generation or real-time collaborative editing.\n *\n * The persist_conversation flag controls whether this conversation will be stored for\n * future continuation. When true, the conversation can be continued using the continue endpoint.\n * When false (default), the conversation operates in stateless mode.\n */\nexport function createConversationStreamed(\n payload: object\n): RequestOptionsFactory<any> {\n function __createConversationStreamed({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: TRANSFORM_PATHS_0,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ricos.v1.ricos_conversation',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosAiAssistant.CreateConversationStreamed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosAiAssistantUrl({\n protoPath: '/v1/ricos-conversations/streamed',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createConversationStreamed;\n}\n\n/**\n * Creates a new conversation asynchronously and returns a conversation identifier.\n * This method initiates conversation processing in the background and returns immediately\n * with a conversation_id that can be used to retrieve the streaming response via GetConversationStream.\n *\n * Use this method when you need to start a conversation without waiting for processing to begin,\n * allowing for better resource management and the ability to retrieve results on-demand.\n * The conversation is automatically persisted and can be streamed using the returned conversation_id.\n */\nexport function createConversationAsync(\n payload: object\n): RequestOptionsFactory<any> {\n function __createConversationAsync({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: TRANSFORM_PATHS_0,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ricos.v1.ricos_conversation',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosAiAssistant.CreateConversationAsync',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosAiAssistantUrl({\n protoPath: '/v1/ricos-conversations/async',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __createConversationAsync;\n}\n\n/**\n * Retrieves the streaming response for an existing conversation.\n * This method streams back response chunks for a conversation that was previously created\n * using CreateConversationAsync, enabling clients to receive incremental updates as they become available.\n *\n * Use this method to retrieve the streaming results of an asynchronously created conversation,\n * or to resume streaming from a specific point using the optional cursor parameter.\n * This enables flexible consumption patterns where clients can poll for results or resume\n * interrupted streams without losing progress.\n */\nexport function getConversationStream(\n payload: object\n): RequestOptionsFactory<any> {\n function __getConversationStream({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ricos.v1.ricos_conversation',\n method: 'GET' as any,\n methodFqn: 'wix.ricos.v1.RicosAiAssistant.GetConversationStream',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosAiAssistantUrl({\n protoPath: '/v1/ricos-conversations/{conversationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getConversationStream;\n}\n\n/**\n * Creates a new conversation and returns complete RichContent after processing.\n * This method processes the user's request and waits for completion before returning\n * the assembled RichContent along with metadata. Unlike the streaming version,\n * this method buffers all chunks internally and returns the final result.\n *\n * Use this method when you need the complete processed content in a single response\n * rather than receiving incremental updates.\n *\n * Long-running generation: when `invocation_id` is provided, the server uses an\n * execution guard for at-most-once semantics. If generation exceeds 90 seconds,\n * the server returns DEADLINE_EXCEEDED while the execution continues in the background.\n * Callers should retry with the same `invocation_id` — subsequent calls return\n * ALREADY_EXISTS while in progress, or the cached result once complete.\n */\nexport function createRicosConversation(\n payload: object\n): RequestOptionsFactory<any> {\n function __createRicosConversation({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: TRANSFORM_PATHS_0,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ricos.v1.ricos_conversation',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosAiAssistant.CreateRicosConversation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosAiAssistantUrl({\n protoPath: '/v1/ricos-conversations/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: TRANSFORM_PATHS_3,\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_4,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createRicosConversation;\n}\n\n/** List RichContent document suggestions */\nexport function listConversationSuggestions(\n payload: object\n): RequestOptionsFactory<any> {\n function __listConversationSuggestions({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: TRANSFORM_PATHS_5,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_4,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ricos.v1.ricos_conversation',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosAiAssistant.ListConversationSuggestions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosAiAssistantUrl({\n protoPath: '/v1/ricos-conversations/suggestions/list',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __listConversationSuggestions;\n}\n\n/** Create a short text summary of a RichContent document */\nexport function createDocumentSummary(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDocumentSummary({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: TRANSFORM_PATHS_5,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_4,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ricos.v1.ricos_conversation',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosAiAssistant.CreateDocumentSummary',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosAiAssistantUrl({\n protoPath: '/v1/ricos-conversations/document-summary',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __createDocumentSummary;\n}\n\n/**\n * Creates a new conversation and returns complete HTML after processing.\n * This method processes the user's request and waits for completion before returning\n * the assembled HTML along with metadata.\n */\nexport function createRicosConversationHtml(\n payload: object\n): RequestOptionsFactory<any> {\n function __createRicosConversationHtml({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: TRANSFORM_PATHS_0,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ricos.v1.ricos_conversation',\n method: 'POST' as any,\n methodFqn: 'wix.ricos.v1.RicosAiAssistant.CreateRicosConversationHTML',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRicosV1RicosAiAssistantUrl({\n protoPath: '/v1/ricos-conversations/html',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __createRicosConversationHtml;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n ConversationResponse,\n CreateConversationAsyncOptions,\n CreateConversationAsyncResponse,\n CreateConversationStreamedOptions,\n CreateDocumentSummaryResponse,\n CreateRicosConversationHTMLResponse,\n CreateRicosConversationHtmlOptions,\n CreateRicosConversationOptions,\n CreateRicosConversationResponse,\n GetConversationStreamOptions,\n ListConversationSuggestionsOptions,\n ListConversationSuggestionsResponse,\n RichContent,\n createConversationAsync as universalCreateConversationAsync,\n createConversationStreamed as universalCreateConversationStreamed,\n createDocumentSummary as universalCreateDocumentSummary,\n createRicosConversation as universalCreateRicosConversation,\n createRicosConversationHtml as universalCreateRicosConversationHtml,\n getConversationStream as universalGetConversationStream,\n listConversationSuggestions as universalListConversationSuggestions,\n} from './ricos-v1-ricos-conversation-ricos-conversations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/rich-content' };\n\nexport function createConversationStreamed(\n httpClient: HttpClient\n): CreateConversationStreamedSignature {\n return (options?: CreateConversationStreamedOptions) =>\n universalCreateConversationStreamed(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateConversationStreamedSignature {\n /**\n * Prompts the AI assistant with streaming response delivery.\n * This method processes the user's request and streams back response chunks in real-time,\n * enabling interactive editing experiences where users can see content being generated\n * and modified as it happens.\n *\n * Use this method for interactive editing sessions where immediate feedback enhances\n * the user experience, such as live content generation or real-time collaborative editing.\n *\n * The persist_conversation flag controls whether this conversation will be stored for\n * future continuation. When true, the conversation can be continued using the continue endpoint.\n * When false (default), the conversation operates in stateless mode.\n * @returns Streaming response message containing individual chunks of the AI's response\n */\n (options?: CreateConversationStreamedOptions): Promise<ConversationResponse>;\n}\n\nexport function createConversationAsync(\n httpClient: HttpClient\n): CreateConversationAsyncSignature {\n return (options?: CreateConversationAsyncOptions) =>\n universalCreateConversationAsync(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateConversationAsyncSignature {\n /**\n * Creates a new conversation asynchronously and returns a conversation identifier.\n * This method initiates conversation processing in the background and returns immediately\n * with a conversation_id that can be used to retrieve the streaming response via GetConversationStream.\n *\n * Use this method when you need to start a conversation without waiting for processing to begin,\n * allowing for better resource management and the ability to retrieve results on-demand.\n * The conversation is automatically persisted and can be streamed using the returned conversation_id.\n */\n (\n options?: CreateConversationAsyncOptions\n ): Promise<CreateConversationAsyncResponse>;\n}\n\nexport function getConversationStream(\n httpClient: HttpClient\n): GetConversationStreamSignature {\n return (conversationId: string, options?: GetConversationStreamOptions) =>\n universalGetConversationStream(\n conversationId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetConversationStreamSignature {\n /**\n * Retrieves the streaming response for an existing conversation.\n * This method streams back response chunks for a conversation that was previously created\n * using CreateConversationAsync, enabling clients to receive incremental updates as they become available.\n *\n * Use this method to retrieve the streaming results of an asynchronously created conversation,\n * or to resume streaming from a specific point using the optional cursor parameter.\n * This enables flexible consumption patterns where clients can poll for results or resume\n * interrupted streams without losing progress.\n * @param - Conversation Id\n * @returns Streaming response message containing individual chunks of the AI's response\n */\n (\n conversationId: string,\n options?: GetConversationStreamOptions\n ): Promise<ConversationResponse>;\n}\n\nexport function createRicosConversation(\n httpClient: HttpClient\n): CreateRicosConversationSignature {\n return (options?: CreateRicosConversationOptions) =>\n universalCreateRicosConversation(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateRicosConversationSignature {\n /**\n * Creates a new conversation and returns complete RichContent after processing.\n * This method processes the user's request and waits for completion before returning\n * the assembled RichContent along with metadata. Unlike the streaming version,\n * this method buffers all chunks internally and returns the final result.\n *\n * Use this method when you need the complete processed content in a single response\n * rather than receiving incremental updates.\n *\n * Long-running generation: when `invocation_id` is provided, the server uses an\n * execution guard for at-most-once semantics. If generation exceeds 90 seconds,\n * the server returns DEADLINE_EXCEEDED while the execution continues in the background.\n * Callers should retry with the same `invocation_id` — subsequent calls return\n * ALREADY_EXISTS while in progress, or the cached result once complete.\n * @returns Response message containing complete RichContent and metadata\n */\n (\n options?: CreateRicosConversationOptions\n ): Promise<CreateRicosConversationResponse>;\n}\n\nexport function listConversationSuggestions(\n httpClient: HttpClient\n): ListConversationSuggestionsSignature {\n return (\n richContent: RichContent,\n options?: ListConversationSuggestionsOptions\n ) =>\n universalListConversationSuggestions(\n richContent,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListConversationSuggestionsSignature {\n /**\n * List RichContent document suggestions\n * @param - The RichContent document, for which the suggestions should be retrieved\n * @returns Response message containing suggestions fro the provided RichContent document\n */\n (\n richContent: RichContent,\n options?: ListConversationSuggestionsOptions\n ): Promise<ListConversationSuggestionsResponse>;\n}\n\nexport function createDocumentSummary(\n httpClient: HttpClient\n): CreateDocumentSummarySignature {\n return (richContent: RichContent) =>\n universalCreateDocumentSummary(\n richContent,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateDocumentSummarySignature {\n /**\n * Create a short text summary of a RichContent document\n * @param - The RichContent document to summarize\n * @returns Response message containing the document summary\n */\n (richContent: RichContent): Promise<CreateDocumentSummaryResponse>;\n}\n\nexport function createRicosConversationHtml(\n httpClient: HttpClient\n): CreateRicosConversationHtmlSignature {\n return (options?: CreateRicosConversationHtmlOptions) =>\n universalCreateRicosConversationHtml(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateRicosConversationHtmlSignature {\n /**\n * Creates a new conversation and returns complete HTML after processing.\n * This method processes the user's request and waits for completion before returning\n * the assembled HTML along with metadata.\n * @returns Response message containing complete HTML and metadata\n */\n (\n options?: CreateRicosConversationHtmlOptions\n ): Promise<CreateRicosConversationHTMLResponse>;\n}\n\nexport {\n AccountInfo,\n Action,\n ActionEvent,\n Alignment,\n AnchorData,\n Animation,\n AppEmbedData,\n AppEmbedDataAppDataOneOf,\n AppType,\n AspectRatio,\n AudioData,\n Backdrop,\n BackdropType,\n Background,\n BackgroundBackgroundType,\n BackgroundGradient,\n BackgroundImage,\n BackgroundType,\n Banner,\n BannerOriginPresenceOneOf,\n BannerPosition,\n BlockquoteData,\n BookingData,\n Border,\n BorderColors,\n BorderWidths,\n BulletedListData,\n Button,\n ButtonBorder,\n ButtonData,\n ButtonDataType,\n ButtonSize,\n ButtonStyles,\n CaptionData,\n CardData,\n CardDataBackground,\n CardDataBackgroundType,\n CardStyles,\n CardStylesType,\n CellStyle,\n Center,\n CheckboxListData,\n ChunkType,\n CodeBlockData,\n CollapsibleListData,\n ColorData,\n ColorDataBackground,\n ColorDataBackgroundType,\n ColorOptions,\n ColorSwatch,\n ColorSwatchColorTypeOptionsOneOf,\n ColorSwatchType,\n Colors,\n ColumnSize,\n ConversationResponse,\n CreateConversationAsyncOptions,\n CreateConversationAsyncRequest,\n CreateConversationAsyncResponse,\n CreateConversationStreamedOptions,\n CreateConversationStreamedRequest,\n CreateDocumentSummaryRequest,\n CreateDocumentSummaryResponse,\n CreateRicosConversationHTMLRequest,\n CreateRicosConversationHTMLResponse,\n CreateRicosConversationHtmlOptions,\n CreateRicosConversationOptions,\n CreateRicosConversationRequest,\n CreateRicosConversationResponse,\n Crop,\n DebugOptions,\n Decoration,\n DecorationDataOneOf,\n DecorationType,\n Design,\n DesignTarget,\n Dimensions,\n Direction,\n DividerData,\n DividerDataAlignment,\n DividerDataStyles,\n DocumentStyle,\n DomainEvent,\n DomainEventBodyOneOf,\n EmbedData,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EntranceAnimation,\n EntranceEffect,\n EntranceEffectType,\n ErrorOptions,\n EventData,\n ExplainOption,\n File,\n FileData,\n FileSource,\n FileSourceDataOneOf,\n FontFamilyData,\n FontSizeData,\n FontType,\n FormatType,\n GIF,\n GIFData,\n GIFType,\n GalleryData,\n GalleryOptions,\n GalleryOptionsLayout,\n GetConversationStreamOptions,\n GetConversationStreamRequest,\n Gradient,\n GradientGradientType,\n GradientStop,\n GradientType,\n HTMLData,\n HTMLDataDataOneOf,\n HeadingData,\n Height,\n HorizontalPaddingType,\n Hover,\n IdentificationData,\n IdentificationDataIdOneOf,\n Image,\n ImageBorder,\n ImageData,\n ImageDataCrop,\n ImageDataStyles,\n ImageOptions,\n ImageOptionsImagePosition,\n ImagePosition,\n ImagePositionPosition,\n ImageScaling,\n ImageScalingScaling,\n ImageStyles,\n Indentation,\n InitialExpandedItems,\n InsertOptions,\n Item,\n ItemDataOneOf,\n ItemStyle,\n LayerEffect,\n Layers,\n Layout,\n LayoutCellData,\n LayoutData,\n LayoutDataBackground,\n LayoutDataBackgroundImage,\n LayoutDataBackgroundType,\n LayoutType,\n LineCap,\n LineStyle,\n Link,\n LinkData,\n LinkDataOneOf,\n LinkPreviewData,\n LinkPreviewDataStyles,\n ListConversationSuggestionsOptions,\n ListConversationSuggestionsRequest,\n ListConversationSuggestionsResponse,\n ListItemMarkerColor,\n ListItemMarkerColorBackground,\n ListItemMarkerColorBackgroundType,\n ListItemMarkerStyle,\n ListItemNodeData,\n ListStyle,\n ListValue,\n LoopAnimation,\n LoopEffect,\n LoopEffectType,\n MapData,\n MapSettings,\n MapType,\n MarginPresetType,\n Margins,\n Media,\n MentionData,\n MessageEnvelope,\n Metadata,\n MetadataOptions,\n Name,\n NewPageDetails,\n Node,\n NodeDataOneOf,\n NodeOptions,\n NodeStyle,\n NodeTextOptions,\n NodeType,\n NullValue,\n Oembed,\n Option,\n OptionDesign,\n OptionLayout,\n OrderedListData,\n Orientation,\n OrientationType,\n Origin,\n OutputMode,\n PDFSettings,\n PageSetup,\n ParagraphData,\n PatchOptions,\n Permissions,\n Placement,\n PlaybackOptions,\n PluginContainerData,\n PluginContainerDataAlignment,\n PluginContainerDataWidth,\n PluginContainerDataWidthDataOneOf,\n PointerEffect,\n PointerEffectType,\n Poll,\n PollData,\n PollDataLayout,\n PollDesign,\n PollDesignBackground,\n PollDesignBackgroundBackgroundOneOf,\n PollDesignBackgroundType,\n PollLayout,\n PollLayoutDirection,\n PollLayoutType,\n Position,\n PositionsPosition,\n PricingData,\n ProgressOptions,\n RangeDetails,\n Rel,\n ReplaceOptions,\n Resizing,\n ResponsivenessBehaviour,\n RestoreInfo,\n RibbonStyles,\n RichContent,\n RicosConversation,\n RicosConversationChunk,\n RicosConversationChunkTypeDataOneOf,\n RicosConversationUserMessageOneOf,\n Scaling,\n SectionDivider,\n Settings,\n Shape,\n ShapeData,\n ShapeDataStyles,\n SketchData,\n SlotData,\n SlotDesign,\n SmartBlockCellData,\n SmartBlockData,\n SmartBlockDataType,\n Source,\n Spoiler,\n SpoilerData,\n Stop,\n Styles,\n StylesBorder,\n StylesPosition,\n Suggestion,\n SuggestionAction,\n SuggestionOptions,\n SuggestionPositionDetailsOneOf,\n SuggestionType,\n SummaryOptions,\n TableCellData,\n TableData,\n Target,\n TemplateSearchConfiguration,\n TextAlignment,\n TextData,\n TextNodeStyle,\n TextStyle,\n Theme,\n ThemeOptions,\n Thumbnails,\n ThumbnailsAlignment,\n TocData,\n Tool,\n ToolConfigurationOneOf,\n ToolUseOptions,\n Type,\n Typography,\n TypographyTextStyle,\n UnitType,\n V1Background,\n V1BackgroundBackgroundTypeOptionsOneOf,\n V1Gradient,\n V1GradientGradientTypeOptionsOneOf,\n V1Image,\n Variant,\n VerticalAlignment,\n VerticalAlignmentAlignment,\n VerticalPaddingType,\n Video,\n VideoData,\n ViewMode,\n ViewRole,\n VoteRole,\n WebhookIdentityType,\n Width,\n WidthType,\n} from './ricos-v1-ricos-conversation-ricos-conversations.universal.js';\n","import {\n createConversationStreamed as publicCreateConversationStreamed,\n createConversationAsync as publicCreateConversationAsync,\n getConversationStream as publicGetConversationStream,\n createRicosConversation as publicCreateRicosConversation,\n listConversationSuggestions as publicListConversationSuggestions,\n createDocumentSummary as publicCreateDocumentSummary,\n createRicosConversationHtml as publicCreateRicosConversationHtml,\n} from './ricos-v1-ricos-conversation-ricos-conversations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createConversationStreamed: MaybeContext<\n BuildRESTFunction<typeof publicCreateConversationStreamed> &\n typeof publicCreateConversationStreamed\n> = /*#__PURE__*/ createRESTModule(publicCreateConversationStreamed);\nexport const createConversationAsync: MaybeContext<\n BuildRESTFunction<typeof publicCreateConversationAsync> &\n typeof publicCreateConversationAsync\n> = /*#__PURE__*/ createRESTModule(publicCreateConversationAsync);\nexport const getConversationStream: MaybeContext<\n BuildRESTFunction<typeof publicGetConversationStream> &\n typeof publicGetConversationStream\n> = /*#__PURE__*/ createRESTModule(publicGetConversationStream);\nexport const createRicosConversation: MaybeContext<\n BuildRESTFunction<typeof publicCreateRicosConversation> &\n typeof publicCreateRicosConversation\n> = /*#__PURE__*/ createRESTModule(publicCreateRicosConversation);\nexport const listConversationSuggestions: MaybeContext<\n BuildRESTFunction<typeof publicListConversationSuggestions> &\n typeof publicListConversationSuggestions\n> = /*#__PURE__*/ createRESTModule(publicListConversationSuggestions);\nexport const createDocumentSummary: MaybeContext<\n BuildRESTFunction<typeof publicCreateDocumentSummary> &\n typeof publicCreateDocumentSummary\n> = /*#__PURE__*/ createRESTModule(publicCreateDocumentSummary);\nexport const createRicosConversationHtml: MaybeContext<\n BuildRESTFunction<typeof publicCreateRicosConversationHtml> &\n typeof publicCreateRicosConversationHtml\n> = /*#__PURE__*/ createRESTModule(publicCreateRicosConversationHtml);\n\nexport {\n NodeType,\n BackgroundType,\n GradientType,\n WidthType,\n PluginContainerDataAlignment,\n ButtonDataType,\n Target,\n Type,\n EntranceEffectType,\n LoopEffectType,\n PointerEffectType,\n TextAlignment,\n FontType,\n LineCap,\n LineStyle,\n Width,\n DividerDataAlignment,\n ViewMode,\n LayoutType,\n Orientation,\n Crop,\n ThumbnailsAlignment,\n GIFType,\n Source,\n StylesPosition,\n MapType,\n ViewRole,\n VoteRole,\n PollLayoutType,\n PollLayoutDirection,\n PollDesignBackgroundType,\n DecorationType,\n ColorDataBackgroundType,\n Variant,\n Position,\n AspectRatio,\n Resizing,\n Placement,\n CardStylesType,\n Alignment,\n Layout,\n AppType,\n InitialExpandedItems,\n Direction,\n VerticalAlignment,\n NullValue,\n ImageScalingScaling,\n ImagePosition,\n LayoutDataBackgroundType,\n Origin,\n BannerPosition,\n LayerEffect,\n Shape,\n BackdropType,\n VerticalAlignmentAlignment,\n ResponsivenessBehaviour,\n DesignTarget,\n Scaling,\n ImagePositionPosition,\n CardDataBackgroundType,\n ListStyle,\n Indentation,\n SmartBlockDataType,\n ColumnSize,\n ListItemMarkerColorBackgroundType,\n Name,\n ColorSwatchType,\n GradientGradientType,\n ImageScaling,\n ImageOptionsImagePosition,\n BackgroundBackgroundType,\n ButtonSize,\n HorizontalPaddingType,\n VerticalPaddingType,\n FormatType,\n OrientationType,\n UnitType,\n MarginPresetType,\n ChunkType,\n SuggestionAction,\n Action,\n PositionsPosition,\n SuggestionType,\n OutputMode,\n WebhookIdentityType,\n} from './ricos-v1-ricos-conversation-ricos-conversations.universal.js';\nexport {\n RicosConversation,\n RicosConversationUserMessageOneOf,\n RichContent,\n Node,\n NodeDataOneOf,\n NodeStyle,\n ButtonData,\n Gradient,\n Stop,\n Border,\n Colors,\n Background,\n PluginContainerData,\n PluginContainerDataWidth,\n PluginContainerDataWidthDataOneOf,\n Spoiler,\n Height,\n Styles,\n Link,\n LinkDataOneOf,\n Rel,\n Animation,\n EntranceAnimation,\n EntranceEffect,\n LoopAnimation,\n LoopEffect,\n PointerEffect,\n CodeBlockData,\n TextStyle,\n FontSizeData,\n DividerData,\n DividerDataStyles,\n FileData,\n FileSource,\n FileSourceDataOneOf,\n PDFSettings,\n GalleryData,\n Media,\n Image,\n Video,\n Item,\n ItemDataOneOf,\n GalleryOptions,\n GalleryOptionsLayout,\n ItemStyle,\n Thumbnails,\n GIFData,\n GIF,\n HeadingData,\n HTMLData,\n HTMLDataDataOneOf,\n ImageData,\n StylesBorder,\n ImageDataStyles,\n ImageDataCrop,\n LinkPreviewData,\n LinkPreviewDataStyles,\n MapData,\n MapSettings,\n ParagraphData,\n PollData,\n Permissions,\n Option,\n Settings,\n PollLayout,\n OptionLayout,\n BackgroundGradient,\n PollDesignBackground,\n PollDesignBackgroundBackgroundOneOf,\n PollDesign,\n OptionDesign,\n Poll,\n PollDataLayout,\n Design,\n TextData,\n Decoration,\n DecorationDataOneOf,\n AnchorData,\n ColorData,\n ColorDataBackground,\n LinkData,\n MentionData,\n SpoilerData,\n FontFamilyData,\n SketchData,\n AppEmbedData,\n AppEmbedDataAppDataOneOf,\n BookingData,\n EventData,\n ButtonStyles,\n ImageStyles,\n RibbonStyles,\n CardStyles,\n PricingData,\n VideoData,\n PlaybackOptions,\n EmbedData,\n Oembed,\n CollapsibleListData,\n TableData,\n Dimensions,\n TableCellData,\n CellStyle,\n BorderColors,\n BorderWidths,\n ListValue,\n AudioData,\n OrderedListData,\n BulletedListData,\n BlockquoteData,\n CaptionData,\n LayoutData,\n LayoutDataBackground,\n Layers,\n LayoutDataBackgroundImage,\n Banner,\n BannerOriginPresenceOneOf,\n Backdrop,\n SectionDivider,\n LayoutCellData,\n ShapeData,\n ShapeDataStyles,\n CardData,\n CardDataBackground,\n BackgroundImage,\n TocData,\n SmartBlockData,\n SmartBlockCellData,\n CheckboxListData,\n ListItemNodeData,\n ListItemMarkerStyle,\n ListItemMarkerColor,\n ListItemMarkerColorBackground,\n SlotData,\n SlotDesign,\n Metadata,\n DocumentStyle,\n TextNodeStyle,\n File,\n Tool,\n ToolConfigurationOneOf,\n TemplateSearchConfiguration,\n Theme,\n V1Background,\n V1BackgroundBackgroundTypeOptionsOneOf,\n ColorSwatch,\n ColorSwatchColorTypeOptionsOneOf,\n V1Gradient,\n V1GradientGradientTypeOptionsOneOf,\n GradientStop,\n Center,\n ColorOptions,\n ImageOptions,\n Typography,\n TypographyTextStyle,\n Button,\n ButtonBorder,\n Hover,\n V1Image,\n ImageBorder,\n PageSetup,\n Margins,\n CreateConversationStreamedRequest,\n ConversationResponse,\n RicosConversationChunk,\n RicosConversationChunkTypeDataOneOf,\n ExplainOption,\n InsertOptions,\n ReplaceOptions,\n NodeOptions,\n NodeTextOptions,\n ToolUseOptions,\n DebugOptions,\n MetadataOptions,\n PatchOptions,\n ProgressOptions,\n SummaryOptions,\n SuggestionOptions,\n ThemeOptions,\n ErrorOptions,\n CreateConversationAsyncRequest,\n CreateConversationAsyncResponse,\n GetConversationStreamRequest,\n CreateRicosConversationRequest,\n CreateRicosConversationResponse,\n ListConversationSuggestionsRequest,\n Suggestion,\n SuggestionPositionDetailsOneOf,\n RangeDetails,\n NewPageDetails,\n ListConversationSuggestionsResponse,\n CreateDocumentSummaryRequest,\n CreateDocumentSummaryResponse,\n CreateRicosConversationHTMLRequest,\n CreateRicosConversationHTMLResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n CreateConversationStreamedOptions,\n CreateConversationAsyncOptions,\n GetConversationStreamOptions,\n CreateRicosConversationOptions,\n ListConversationSuggestionsOptions,\n CreateRicosConversationHtmlOptions,\n} from './ricos-v1-ricos-conversation-ricos-conversations.universal.js';\nexport {\n NodeTypeWithLiterals,\n BackgroundTypeWithLiterals,\n GradientTypeWithLiterals,\n WidthTypeWithLiterals,\n PluginContainerDataAlignmentWithLiterals,\n ButtonDataTypeWithLiterals,\n TargetWithLiterals,\n TypeWithLiterals,\n EntranceEffectTypeWithLiterals,\n LoopEffectTypeWithLiterals,\n PointerEffectTypeWithLiterals,\n TextAlignmentWithLiterals,\n FontTypeWithLiterals,\n LineCapWithLiterals,\n LineStyleWithLiterals,\n WidthWithLiterals,\n DividerDataAlignmentWithLiterals,\n ViewModeWithLiterals,\n LayoutTypeWithLiterals,\n OrientationWithLiterals,\n CropWithLiterals,\n ThumbnailsAlignmentWithLiterals,\n GIFTypeWithLiterals,\n SourceWithLiterals,\n StylesPositionWithLiterals,\n MapTypeWithLiterals,\n ViewRoleWithLiterals,\n VoteRoleWithLiterals,\n PollLayoutTypeWithLiterals,\n PollLayoutDirectionWithLiterals,\n PollDesignBackgroundTypeWithLiterals,\n DecorationTypeWithLiterals,\n ColorDataBackgroundTypeWithLiterals,\n VariantWithLiterals,\n PositionWithLiterals,\n AspectRatioWithLiterals,\n ResizingWithLiterals,\n PlacementWithLiterals,\n CardStylesTypeWithLiterals,\n AlignmentWithLiterals,\n LayoutWithLiterals,\n AppTypeWithLiterals,\n InitialExpandedItemsWithLiterals,\n DirectionWithLiterals,\n VerticalAlignmentWithLiterals,\n NullValueWithLiterals,\n ImageScalingScalingWithLiterals,\n ImagePositionWithLiterals,\n LayoutDataBackgroundTypeWithLiterals,\n OriginWithLiterals,\n BannerPositionWithLiterals,\n LayerEffectWithLiterals,\n ShapeWithLiterals,\n BackdropTypeWithLiterals,\n VerticalAlignmentAlignmentWithLiterals,\n ResponsivenessBehaviourWithLiterals,\n DesignTargetWithLiterals,\n ScalingWithLiterals,\n ImagePositionPositionWithLiterals,\n CardDataBackgroundTypeWithLiterals,\n ListStyleWithLiterals,\n IndentationWithLiterals,\n SmartBlockDataTypeWithLiterals,\n ColumnSizeWithLiterals,\n ListItemMarkerColorBackgroundTypeWithLiterals,\n NameWithLiterals,\n ColorSwatchTypeWithLiterals,\n GradientGradientTypeWithLiterals,\n ImageScalingWithLiterals,\n ImageOptionsImagePositionWithLiterals,\n BackgroundBackgroundTypeWithLiterals,\n ButtonSizeWithLiterals,\n HorizontalPaddingTypeWithLiterals,\n VerticalPaddingTypeWithLiterals,\n FormatTypeWithLiterals,\n OrientationTypeWithLiterals,\n UnitTypeWithLiterals,\n MarginPresetTypeWithLiterals,\n ChunkTypeWithLiterals,\n SuggestionActionWithLiterals,\n ActionWithLiterals,\n PositionsPositionWithLiterals,\n SuggestionTypeWithLiterals,\n OutputModeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './ricos-v1-ricos-conversation-ricos-conversations.universal.js';\n"],"mappings":";6oDAAAA,ICAAC,ICAAC,IACO,IAAMC,GAAmC,CAC5C,IAAK,KACL,aAAc,cACd,aAAc,aAClB,EACaC,GAAqC,CAC9C,GAAI,MACJ,YAAa,eACb,YAAa,cACjB,EDFO,SAASC,EAAaC,EAAO,CAChC,OAAOC,GAAMD,CAAK,EACb,IAAKE,GAASA,EAAK,kBAAkB,CAAC,EACtC,KAAK,GAAG,CACjB,CACA,IAAMC,GAAuB,WAAC,0BAAqB,IAAE,EAC/CC,GAAuB,WAAC,gCAA2B,IAAE,EACrDC,GAAsB,SACtBC,GAAuB,iBACtB,SAASL,GAAMM,EAAO,CACzB,IAAIC,EAASD,EAAM,KAAK,EACxBC,EAASA,EACJ,QAAQL,GAAsBE,EAAmB,EACjD,QAAQD,GAAsBC,EAAmB,EACtDG,EAASA,EAAO,QAAQF,GAAsB,IAAI,EAClD,IAAIG,EAAQ,EACRC,EAAMF,EAAO,OAEjB,KAAOA,EAAO,OAAOC,CAAK,IAAM,MAC5BA,IAEJ,GAAIA,IAAUC,EACV,MAAO,CAAC,EAEZ,KAAOF,EAAO,OAAOE,EAAM,CAAC,IAAM,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R,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,uGACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,uGACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,sGACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,sGACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,sGACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,sGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,sGACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,sGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,CACF,EACMC,GAAoB,CACxB,CAAE,KAAM,yCAA0C,EAClD,CAAE,KAAM,yCAA0C,CACpD,EACMC,GAAoB,CACxB,CAAE,KAAM,8DAA+D,EACvE,CAAE,KAAM,8DAA+D,EACv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AAE,KAAM,kEAAmE,EAC3E,CAAE,KAAM,kEAAmE,EAC3E,CACE,KAAM,yEACR,EACA,CAAE,KAAM,iCAAkC,EAC1C,CAAE,KAAM,oCAAqC,EAC7C,CAAE,KAAM,kDAAmD,EAC3D,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,2FACR,EACA,CACE,KAAM,2FACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,2FACR,EACA,CACE,KAAM,2FACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,iGACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,iGACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,iGACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,iGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,iGACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,iGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,y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AAM,8GACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,8GACR,EACA,CACE,KAAM,8GACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,0EACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,2EACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,4EACR,EACA,CACE,KAAM,wFACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,yGACR,EACA,CACE,KAAM,sFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,uGACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mFACR,EACA,CACE,KAAM,mFACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,mFACR,EACA,CACE,KAAM,mFACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,sFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,uGACR,EACA,CAAE,KAAM,+DAAgE,EACxE,CAAE,KAAM,kEAAmE,EAC3E,CACE,KAAM,gFACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,yHACR,EACA,CACE,KAAM,yHACR,EACA,CACE,KAAM,gIACR,EACA,CACE,KAAM,yHACR,EACA,CACE,KAAM,yHACR,EACA,CACE,KAAM,gIACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,+HACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,+HACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,+HACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,+HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,+HACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,wHACR,EACA,CACE,KAAM,+HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,uHACR,EACA,CACE,KAAM,8HACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,uFACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,yEACR,EACA,CACE,KAAM,yEACR,EACA,CACE,KAAM,6EACR,EACA,CAAE,KAAM,iEAAkE,EAC1E,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,mDAAoD,EAC5D,CAAE,KAAM,mDAAoD,EAC5D,CAAE,KAAM,uDAAwD,EAChE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,0DAA2D,EACnE,CAAE,KAAM,0DAA2D,EACnE,CAAE,KAAM,+DAAgE,EACxE,CACE,KAAM,uEACR,EACA,CACE,KAAM,iFACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,yGACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,kGACR,EACA,CACE,KAAM,yGACR,EACA,CAAE,KAAM,8DAA+D,EACvE,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,+DAAgE,EACxE,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,gEAAiE,EACzE,CACE,KAAM,4EACR,EACA,CACE,KAAM,sFACR,EACA,CACE,KAAM,sFACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,0EACR,EACA,CACE,KAAM,oFACR,EACA,CACE,KAAM,oFACR,EACA,CACE,KAAM,2FACR,EACA,CACE,KAAM,yEACR,EACA,CACE,KAAM,yEACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,8EACR,EACA,CAAE,KAAM,2DAA4D,EACpE,CACE,KAAM,uEACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,8EACR,EACA,CACE,KAAM,0EACR,EACA,CACE,KAAM,oFACR,EACA,CACE,KAAM,oFACR,EACA,CACE,KAAM,2FACR,EACA,CAAE,KAAM,mDAAoD,EAC5D,CAAE,KAAM,sDAAuD,EAC/D,CACE,KAAM,oEACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,6GACR,EACA,CACE,KAAM,6GACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,6GACR,EACA,CACE,KAAM,6GACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,mHACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,mHACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,mHACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,mHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,mHACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,4GACR,EACA,CACE,KAAM,mHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,kFACR,EACA,CACE,KAAM,kFACR,EACA,CACE,KAAM,sFACR,EACA,CACE,KAAM,0EACR,EACA,CACE,KAAM,oEACR,EACA,CAAE,KAAM,4DAA6D,EACrE,CAAE,KAAM,4DAA6D,EACrE,CAAE,KAAM,gEAAiE,EACzE,CAAE,KAAM,iEAAkE,EAC1E,CAAE,KAAM,mEAAoE,EAC5E,CAAE,KAAM,mEAAoE,EAC5E,CACE,KAAM,wEACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,0FACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,2GACR,EACA,CACE,KAAM,kHACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,oEACR,EACA,CACE,KAAM,wEACR,EACA,CACE,KAAM,oEACR,EACA,CACE,KAAM,yEACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,+FACR,EACA,CACE,KAAM,sGACR,EACA,CACE,KAAM,mFACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,kFACR,EACA,CACE,KAAM,kFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,uFACR,EACA,CACE,KAAM,oEACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,gFACR,EACA,CACE,KAAM,uFACR,EACA,CACE,KAAM,mFACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CAAE,KAAM,4DAA6D,EACrE,CAAE,KAAM,+DAAgE,EACxE,CACE,KAAM,6EACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,sHACR,EACA,CACE,KAAM,sHACR,EACA,CACE,KAAM,6HACR,EACA,CACE,KAAM,sHACR,EACA,CACE,KAAM,sHACR,EACA,CACE,KAAM,6HACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,4HACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,4HACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,4HACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,4HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,4HACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,qHACR,EACA,CACE,KAAM,4HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,oHACR,EACA,CACE,KAAM,2HACR,EACA,CACE,KAAM,+EACR,EACA,CACE,KAAM,uFACR,EACA,CACE,KAAM,uFACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,sFACR,EACA,CAAE,KAAM,yDAA0D,EAClE,CACE,KAAM,+EACR,EACA,CACE,KAAM,uFACR,EACA,CACE,KAAM,uFACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,sFACR,EACA,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,2DAA4D,EACpE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,2DAA4D,EACpE,CAAE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EAAiE,EACzE,CACE,KAAM,0EACR,EACA,CACE,KAAM,0EACR,EACA,CACE,KAAM,iFACR,EACA,CAAE,KAAM,+DAAgE,EACxE,CAAE,KAAM,+DAAgE,EACxE,CACE,KAAM,sEACR,EACA,CAAE,KAAM,6DAA8D,EACtE,CAAE,KAAM,6DAA8D,EACtE,CACE,KAAM,oEACR,EACA,CAAE,KAAM,iDAAkD,EAC1D,CAAE,KAAM,6DAA8D,EACtE,CAAE,KAAM,6DAA8D,EACtE,CACE,KAAM,oEACR,EACA,CAAE,KAAM,gEAAiE,EACzE,CACE,KAAM,0EACR,EACA,CACE,KAAM,0EACR,EACA,CACE,KAAM,iFACR,EACA,CAAE,KAAM,yCAA0C,EAClD,CAAE,KAAM,4CAA6C,EACrD,CAAE,KAAM,0DAA2D,EACnE,CACE,KAAM,8EACR,EACA,CACE,KAAM,8EACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,8EACR,EACA,CACE,KAAM,8EACR,EACA,CACE,KAAM,qFACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,uEACR,EACA,CACE,KAAM,8EACR,EACA,CACE,KAAM,4EACR,EACA,CACE,KAAM,4EACR,EACA,CACE,KAAM,mFACR,EACA,CAAE,KAAM,gEAAiE,EACzE,CAAE,KAAM,gEAAiE,EACzE,CACE,KAAM,oEACR,EACA,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,kDAAmD,EAC3D,CAAE,KAAM,0CAA2C,EACnD,CAAE,KAAM,0CAA2C,EACnD,CAAE,KAAM,8CAA+C,EACvD,CAAE,KAAM,+CAAgD,EACxD,CAAE,KAAM,iDAAkD,EAC1D,CAAE,KAAM,iDAAkD,EAC1D,CAAE,KAAM,sDAAuD,EAC/D,CAAE,KAAM,8DAA+D,EACvE,CACE,KAAM,wEACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,gGACR,EACA,CACE,KAAM,yFACR,EACA,CACE,KAAM,yFACR,EAC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EACR,EACA,CAAE,KAAM,0DAA2D,EACnE,CAAE,KAAM,0DAA2D,EACnE,CAAE,KAAM,iEAAkE,EAC1E,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,+DAAgE,EACxE,CAAE,KAAM,4CAA6C,EACrD,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,wDAAyD,EACjE,CAAE,KAAM,+DAAgE,EACxE,CAAE,KAAM,2DAA4D,EACpE,CACE,KAAM,qEACR,EACA,CACE,KAAM,qEACR,EACA,CACE,KAAM,4EACR,EACA,CAAE,KAAM,oCAAqC,EAC7C,CAAE,KAAM,uCAAwC,EAChD,CAAE,KAAM,qDAAsD,EAC9D,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE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,CACE,KAAM,qEACR,EACA,CACE,KAAM,qEACR,EACA,CACE,KAAM,4EACR,EACA,CAAE,KAAM,oCAAqC,EAC7C,CAAE,KAAM,uCAAwC,EAChD,CAAE,KAAM,qDAAsD,EAC9D,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,8FACR,EACA,CACE,KAAM,qGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,mGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,6FACR,EACA,CACE,KAAM,oGACR,EACA,CACE,KAAM,4FACR,EACA,CACE,KAAM,4FACR,EACA,C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AAAU,EAAA,KAAAV,EAAuBO,GAEjBC,CACR,CACF,CEj3KO,SAAStH,GACd6G,EACqC,CACrC,OAAQD,GACN5G,GACE4G,EAEA,CAAE,WAAAC,CAAW,CACf,CACJ,CAoBO,SAASpG,GACdoG,EACkC,CAClC,OAAQD,GACNnG,GACEmG,EAEA,CAAE,WAAAC,CAAW,CACf,CACJ,CAiBO,SAASlG,GACdkG,EACgC,CAChC,MAAO,CAACY,EAAwBb,IAC9BjG,GACE8G,EACAb,EAEA,CAAE,WAAAC,CAAW,CACf,CACJ,CAqBO,SAAS/F,GACd+F,EACkC,CAClC,OAAQD,GACN9F,GACE8F,EAEA,CAAE,WAAAC,CAAW,CACf,CACJ,CAwBO,SAAS5F,GACd4F,EACsC,CACtC,MAAO,CACLa,EACAd,IAEA3F,GACEyG,EACAd,EAEA,CAAE,WAAAC,CAAW,CACf,CACJ,CAcO,SAAS1F,GACd0F,EACgC,CAChC,OAAQa,GACNvG,GACEuG,EAEA,CAAE,WAAAb,CAAW,CACf,CACJ,CAWO,SAASxF,GACdwF,EACsC,CACtC,OAAQD,GACNvF,GACEuF,EAEA,CAAE,WAAAC,CAAW,CACf,CACJ,CC7LO,IAAM7G,GAGK2H,EAAiB3H,EAAgC,EACtDS,GAGKkH,EAAiBlH,EAA6B,EACnDE,GAGKgH,EAAiBhH,EAA2B,EACjDG,GAGK6G,EAAiB7G,EAA6B,EACnDG,GAGK0G,EAAiB1G,EAAiC,EACvDE,GAGKwG,EAAiBxG,EAA2B,EACjDE,GAGKsG,EAAiBtG,EAAiC","names":["init_define_process_env","init_define_process_env","init_define_process_env","SDKRequestToRESTRequestRenameMap","RESTResponseToSDKResponseRenameMap","constantCase","input","split","part","SPLIT_LOWER_UPPER_RE","SPLIT_UPPER_UPPER_RE","SPLIT_REPLACE_VALUE","DEFAULT_STRIP_REGEXP","value","result","start","end","isValidationError","httpClientError","_a","_b","_c","isApplicationError","isClientError","_d","transformError","pathsToArguments","argumentNames","_e","_f","buildValidationError","buildApplicationError","status","statusText","message","details","constantCase","wrapError","buildSystemError","validationErrorResponse","requestId","fieldViolations","transformedFieldViolations","violationsWithRenamedFields","a","field","description","baseError","extraProperties","_g","_h","_i","_j","_k","_l","_m","_n","_o","_p","_q","_r","_s","_t","_u","code","data","combinedMessage","spreadPathsToArguments","explicitPathsToArguments","singleArgumentUnchanged","allPathsToArguments","allPathsToArgumentsKeys","fieldViolation","anotherViolation","exactMatchArgumentExpression","withRenamedArgument","longestPartialPathMatch","b","path","partialMatchArgumentExpression","fieldValue","argIndex","getArgumentIndex","s","match","init_define_process_env","init_define_process_env","renameFieldPathBySegment","fieldPath","renameMap","segment","_a","SORT_FIELD_NAME_PATH","renameSortFieldNameValue","path","value","renameMap","renameFieldPathBySegment","renameAllNestedKeys","payload","renameMap","ignorePaths","isIgnored","path","traverse","obj","item","objAsRecord","key","newPath","transformedKey","renameKey","renameSortFieldNameValue","_a","part","renameKeysFromSDKRequestToRESTRequest","SDKRequestToRESTRequestRenameMap","renameKeysFromRESTResponseToSDKResponse","RESTResponseToSDKResponseRenameMap","init_define_process_env","transformSDKFloatToRESTFloat","val","transformRESTFloatToSDKFloat","init_define_process_env","transformSDKTimestampToRESTTimestamp","val","transformRESTTimestampToSDKTimestamp","init_define_process_env","pathTrees","createPathTree","getOrCreateChild","children","key","child","getChild","tree","segment","_a","_b","_c","buildPathTree","paths","root","transformPath","getPathTree","isObject","value","transformLeaf","isRepeated","isMap","transformFn","entry","transformNested","transformObject","transformFields","obj","fields","field","leaf","item","transformMapFields","mapFields","valueTree","map","anyField","transformPaths","transformations","init_define_process_env","init_define_process_env","init_define_process_env","resolveContext","oldContext","modules","elevated","runWithoutContext","contextualClient","wixContext","elevatedClient","wixModules","urlOrRequest","requestInit","query","variables","opts","runWithoutContext","fn","globalContext","moduleContext","wixContext","closureContext","contextualizeRESTModuleV2","restModule","elevated","args","context","resolveContext","createRESTModule","descriptor","elevated","contextualizeRESTModuleV2","toURLSearchParams","params","isComplexRequest","flatten","flattenParams","isPayloadNonSerializableAsUrlSearchParams","key","value","v","base64Encode","urlSearchParams","param","resolveUrl","opts","domain","resolveDomain","mappings","resolveMappingsByDomain","path","injectDataIntoProtoPath","resolvePathFromMappings","data","isObject","fieldPath","resolvePath","serializedObject","bytes","DOMAINS","USER_DOMAIN","WILDCARD_PREFIX","REGEX_CAPTURE_DOMAINS","WIX_API_DOMAINS","HOST_ALIASES","DEV_WIX_CODE_DOMAIN","REGEX_CAPTURE_PROTO_FIELD","REGEX_CAPTURE_API_DOMAINS","REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN","host","fixHostExceptions","_a","domainToMappings","matchedMappings","resolveRootDomain","resolveWildcardDomain","isBaseDomain","wwwMappings","wwwBaseDomain","userMappings","entryDomain","rooDomainSegments","matchingEntries","matchesWildcardDomain","mostSpecificEntry","entryDomainA","entryDomainB","suffix","protoPath","maybeProtoPathToData","protoRegExpMatch","field","findByPath","obj","defaultValue","result","mapping","m","TRANSFORM_PATHS_0","TRANSFORM_PATHS_1","TRANSFORM_PATHS_2","TRANSFORM_PATHS_3","resolveWixRicosV1RicosDocumentUrl","opts","resolveUrl","PACKAGE_NAME","validateDocument","payload","__validateDocument","host","transformPaths","transformRESTFloatToSDKFloat","transformRESTTimestampToSDKTimestamp","convertToRicosDocument","__convertToRicosDocument","convertFromRicosDocument","__convertFromRicosDocument","serializedData","transformSDKFloatToRESTFloat","transformSDKTimestampToRESTTimestamp","generateFileDownloadUrl","__generateFileDownloadUrl","generateFileUploadUrl","__generateFileUploadUrl","generateSiteMediaToken","__generateSiteMediaToken","Plugin","NodeType","BackgroundType","GradientType","WidthType","PluginContainerDataAlignment","ButtonDataType","Target","Type","EntranceEffectType","LoopEffectType","PointerEffectType","TextAlignment","FontType","LineCap","LineStyle","Width","DividerDataAlignment","ViewMode","LayoutType","Orientation","Crop","ThumbnailsAlignment","GIFType","Source","StylesPosition","MapType","ViewRole","VoteRole","PollLayoutType","PollLayoutDirection","PollDesignBackgroundType","DecorationType","ColorDataBackgroundType","Variant","Position","AspectRatio","Resizing","Placement","CardStylesType","Alignment","Layout","AppType","InitialExpandedItems","Direction","VerticalAlignment","NullValue","ImageScalingScaling","ImagePosition","LayoutDataBackgroundType","Origin","BannerPosition","LayerEffect","Shape","BackdropType","VerticalAlignmentAlignment","ResponsivenessBehaviour","DesignTarget","Scaling","ImagePositionPosition","CardDataBackgroundType","ListStyle","Indentation","SmartBlockDataType","ColumnSize","ListItemMarkerColorBackgroundType","TargetFormat","document","options","httpClient","sideEffects","renameKeysFromSDKRequestToRESTRequest","reqOpts","_a","result","_b","renameKeysFromRESTResponseToSDKResponse","err","transformedError","transformError","_c","targetFormat","fileId","mimeType","createRESTModule","init_define_process_env","transformRESTImageToSDKImage","payload","fileNameOrAltText","TRANSFORM_PATHS_0","TRANSFORM_PATHS_1","resolveWixRicosV1RicosEmbeddablesUrl","opts","resolveUrl","PACKAGE_NAME","getEmbeddableItem","payload","__getEmbeddableItem","host","toURLSearchParams","transformPaths","transformRESTTimestampToSDKTimestamp","listEmbeddableItems","__listEmbeddableItems","ItemType","embeddableItemId","itemType","httpClient","sideEffects","renameKeysFromSDKRequestToRESTRequest","reqOpts","_a","result","_b","_c","renameKeysFromRESTResponseToSDKResponse","transformRESTImageToSDKImage","err","transformedError","transformError","_d","options","createRESTModule","TRANSFORM_PATHS_0","TRANSFORM_PATHS_1","TRANSFORM_PATHS_2","TRANSFORM_PATHS_3","TRANSFORM_PATHS_4","TRANSFORM_PATHS_5","resolveWixRicosV1RicosAiAssistantUrl","opts","resolveUrl","PACKAGE_NAME","createConversationStreamed","payload","__createConversationStreamed","host","serializedData","transformPaths","transformSDKFloatToRESTFloat","transformSDKTimestampToRESTTimestamp","transformRESTFloatToSDKFloat","createConversationAsync","__createConversationAsync","getConversationStream","__getConversationStream","toURLSearchParams","createRicosConversation","__createRicosConversation","transformRESTTimestampToSDKTimestamp","listConversationSuggestions","__listConversationSuggestions","createDocumentSummary","__createDocumentSummary","createRicosConversationHtml","__createRicosConversationHtml","NodeType","BackgroundType","GradientType","WidthType","PluginContainerDataAlignment","ButtonDataType","Target","Type","EntranceEffectType","LoopEffectType","PointerEffectType","TextAlignment","FontType","LineCap","LineStyle","Width","DividerDataAlignment","ViewMode","LayoutType","Orientation","Crop","ThumbnailsAlignment","GIFType","Source","StylesPosition","MapType","ViewRole","VoteRole","PollLayoutType","PollLayoutDirection","PollDesignBackgroundType","DecorationType","ColorDataBackgroundType","Variant","Position","AspectRatio","Resizing","Placement","CardStylesType","Alignment","Layout","AppType","InitialExpandedItems","Direction","VerticalAlignment","NullValue","ImageScalingScaling","ImagePosition","LayoutDataBackgroundType","Origin","BannerPosition","LayerEffect","Shape","BackdropType","VerticalAlignmentAlignment","ResponsivenessBehaviour","DesignTarget","Scaling","ImagePositionPosition","CardDataBackgroundType","ListStyle","Indentation","SmartBlockDataType","ColumnSize","ListItemMarkerColorBackgroundType","Name","ColorSwatchType","GradientGradientType","ImageScaling","ImageOptionsImagePosition","BackgroundBackgroundType","ButtonSize","HorizontalPaddingType","VerticalPaddingType","FormatType","OrientationType","UnitType","MarginPresetType","ChunkType","SuggestionAction","Action","PositionsPosition","SuggestionType","OutputMode","WebhookIdentityType","options","httpClient","sideEffects","renameKeysFromSDKRequestToRESTRequest","reqOpts","_a","result","_b","renameKeysFromRESTResponseToSDKResponse","err","transformedError","transformError","_c","conversationId","richContent","createRESTModule"]}
|