import * as _wix_sdk_types from '@wix/sdk-types';
import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
/**
* A comment is a user-generated message in response to a specific resource. It allows site visitors
* to share feedback or engage in discussions around different types of resources, including blog posts, forum threads,
* or other site content. Comments are composed of text, images, videos, or other forms of media.
*/
interface Comment {
/**
* Comment ID.
* @format GUID
* @readonly
*/
_id?: string | null;
/**
* Revision number, which increments by 1 each time the comment is updated.
*
* To prevent conflicting changes, the current `revision` must be passed when updating the comment.
* @readonly
*/
revision?: string | null;
/**
* Date and time the comment was created.
*
* **Note:** This is the date from the system database, not the actual date when the comment was created. For example, if you migrate comments created in 2016, the `createdDate` field will show the current year. For the actual creation date, see the `commentDate` field.
* @readonly
*/
_createdDate?: Date | null;
/**
* Date and time the comment was last updated.
* @readonly
*/
_updatedDate?: Date | null;
/**
* ID of the app that the comment is added to.
* @format GUID
* @immutable
*/
appId?: string | null;
/**
* ID of the specific context the comment is in response to.
*
* Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum,
* the `forumPostId` is used as both the `contextId` and the `resourceId`.
* @immutable
* @maxLength 128
*/
contextId?: string | null;
/**
* Reserved for internal use.
* @internal
* @immutable
* @maxLength 128
*/
contextType?: string | null;
/**
* ID of the specific resource that the comment is in response to.
*
* Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum,
* the `forumPostId` is used as both the `resourceId` and the `contextId`.
* @immutable
* @maxLength 128
*/
resourceId?: string | null;
/** Published comment content. */
content?: CommentContent;
/** Unpublished comment content. */
draftContent?: CommentContent;
/**
* Comment's author.
* @immutable
*/
author?: CommentAuthor;
/**
* Parent comment information.
*
* Only present if this comment is in a direct reply to another comment.
* See **Terminology** in the Comments introduction
* for more information about parent comments.
*/
parentComment?: ParentComment;
/**
* Materialized path of comments hierarchy. List of all current comment’s parent IDs.
* @internal
* @readonly
*/
parentIdsInThread?: string[];
/**
* Number of comments that reply to this comment.
* @readonly
*/
replyCount?: number;
/**
* Summary of votes.
* @readonly
*/
voteSummary?: VoteSummary;
/**
* Comment status.
* @readonly
*/
status?: StatusWithLiterals;
/**
* Comment rating.
* @readonly
*/
rating?: number | null;
/**
* Summary of reactions.
* @readonly
*/
reactionSummary?: CommentReactionSummary;
/** Whether the comment is marked. */
marked?: boolean;
/**
* Date and time when the comment was actually created.
* @immutable
*/
commentDate?: Date | null;
/**
* Whether the comment has the updated content.
* @readonly
*/
contentEdited?: boolean | null;
/**
* Whether the comment has reports
* @internal
* @readonly
*/
reportCount?: number | null;
}
/** Comment content. */
interface CommentContent {
/**
* Plain text format content
* @internal
* @maxLength 100000
* @deprecated
* @replacedBy content
* @targetRemovalDate 2026-01-01
*/
plainText?: string | null;
/**
* Comment rich content.
*
*
* See Ricos document reference
*
*/
richContent?: RichContent;
/**
* People to tag with this comment.
*
* People can include users, members, visitors, or groups.
* @maxSize 10
*/
mentions?: Mention[];
/**
* Content effects
* @internal
* @maxSize 10
*/
effects?: Record;
/**
* Content attachments.
* @maxSize 10
*/
attachments?: Attachment[];
/**
* This field specifies the author who last edited or modified the comment's content.
* Usually, this is the same author as the comment's original author.
* It differs from the original author only when the comment has been updated by someone with permissions
* to modify the comment's content
* @internal
* @readonly
*/
author?: ContentAuthor;
/**
* Stores the timestamp when a comment's content was written.
* This might indicate when the content was created or updated
* @internal
* @readonly
*/
commentDate?: Date | null;
}
interface RichContent {
/** Node objects representing a rich content document. */
nodes?: Node[];
/** Object metadata. */
metadata?: Metadata;
/** Global styling for header, paragraph, block quote, and code block nodes in the object. */
documentStyle?: DocumentStyle;
}
interface Node extends NodeDataOneOf {
/** Data for a button node. */
buttonData?: ButtonData;
/** Data for a code block node. */
codeBlockData?: CodeBlockData;
/** Data for a divider node. */
dividerData?: DividerData;
/** Data for a file node. */
fileData?: FileData;
/** Data for a gallery node. */
galleryData?: GalleryData;
/** Data for a GIF node. */
gifData?: GIFData;
/** Data for a heading node. */
headingData?: HeadingData;
/** Data for an embedded HTML node. */
htmlData?: HTMLData;
/** Data for an image node. */
imageData?: ImageData;
/** Data for a link preview node. */
linkPreviewData?: LinkPreviewData;
/** @deprecated */
mapData?: MapData;
/** Data for a paragraph node. */
paragraphData?: ParagraphData;
/** Data for a poll node. */
pollData?: PollData;
/** Data for a text node. Used to apply decorations to text. */
textData?: TextData;
/** Data for an app embed node. */
appEmbedData?: AppEmbedData;
/** Data for a video node. */
videoData?: VideoData;
/** Data for an oEmbed node. */
embedData?: EmbedData;
/** Data for a collapsible list node. */
collapsibleListData?: CollapsibleListData;
/** Data for a table node. */
tableData?: TableData;
/** Data for a table cell node. */
tableCellData?: TableCellData;
/** Data for a custom external node. */
externalData?: Record | null;
/** Data for an audio node. */
audioData?: AudioData;
/** Data for an ordered list node. */
orderedListData?: OrderedListData;
/** Data for a bulleted list node. */
bulletedListData?: BulletedListData;
/** Data for a block quote node. */
blockquoteData?: BlockquoteData;
/** Data for a caption node. */
captionData?: CaptionData;
/** Data for a layout node. Reserved for future use. */
layoutData?: LayoutData;
/** Data for a cell node. */
layoutCellData?: LayoutCellData;
/** Data for a shape node. */
shapeData?: ShapeData;
/** Data for a card node. */
cardData?: CardData;
/** Data for a table of contents node. */
tocData?: TocData;
/** Data for a smart block node. */
smartBlockData?: SmartBlockData;
/** Data for a smart block cell node. */
smartBlockCellData?: SmartBlockCellData;
/** Data for a checkbox list node. */
checkboxListData?: CheckboxListData;
/** Data for a list item node. */
listItemData?: ListItemNodeData;
/** Data for a slot node. */
slotData?: SlotData;
/** 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. */
type?: NodeTypeWithLiterals;
/** Node ID. */
id?: string;
/** A list of child nodes. */
nodes?: Node[];
/** Padding and background color styling for the node. */
style?: NodeStyle;
}
/** @oneof */
interface NodeDataOneOf {
/** Data for a button node. */
buttonData?: ButtonData;
/** Data for a code block node. */
codeBlockData?: CodeBlockData;
/** Data for a divider node. */
dividerData?: DividerData;
/** Data for a file node. */
fileData?: FileData;
/** Data for a gallery node. */
galleryData?: GalleryData;
/** Data for a GIF node. */
gifData?: GIFData;
/** Data for a heading node. */
headingData?: HeadingData;
/** Data for an embedded HTML node. */
htmlData?: HTMLData;
/** Data for an image node. */
imageData?: ImageData;
/** Data for a link preview node. */
linkPreviewData?: LinkPreviewData;
/** @deprecated */
mapData?: MapData;
/** Data for a paragraph node. */
paragraphData?: ParagraphData;
/** Data for a poll node. */
pollData?: PollData;
/** Data for a text node. Used to apply decorations to text. */
textData?: TextData;
/** Data for an app embed node. */
appEmbedData?: AppEmbedData;
/** Data for a video node. */
videoData?: VideoData;
/** Data for an oEmbed node. */
embedData?: EmbedData;
/** Data for a collapsible list node. */
collapsibleListData?: CollapsibleListData;
/** Data for a table node. */
tableData?: TableData;
/** Data for a table cell node. */
tableCellData?: TableCellData;
/** Data for a custom external node. */
externalData?: Record | null;
/** Data for an audio node. */
audioData?: AudioData;
/** Data for an ordered list node. */
orderedListData?: OrderedListData;
/** Data for a bulleted list node. */
bulletedListData?: BulletedListData;
/** Data for a block quote node. */
blockquoteData?: BlockquoteData;
/** Data for a caption node. */
captionData?: CaptionData;
/** Data for a layout node. Reserved for future use. */
layoutData?: LayoutData;
/** Data for a cell node. */
layoutCellData?: LayoutCellData;
/** Data for a shape node. */
shapeData?: ShapeData;
/** Data for a card node. */
cardData?: CardData;
/** Data for a table of contents node. */
tocData?: TocData;
/** Data for a smart block node. */
smartBlockData?: SmartBlockData;
/** Data for a smart block cell node. */
smartBlockCellData?: SmartBlockCellData;
/** Data for a checkbox list node. */
checkboxListData?: CheckboxListData;
/** Data for a list item node. */
listItemData?: ListItemNodeData;
/** Data for a slot node. */
slotData?: SlotData;
}
declare enum NodeType {
PARAGRAPH = "PARAGRAPH",
TEXT = "TEXT",
HEADING = "HEADING",
BULLETED_LIST = "BULLETED_LIST",
ORDERED_LIST = "ORDERED_LIST",
LIST_ITEM = "LIST_ITEM",
BLOCKQUOTE = "BLOCKQUOTE",
CODE_BLOCK = "CODE_BLOCK",
VIDEO = "VIDEO",
DIVIDER = "DIVIDER",
FILE = "FILE",
GALLERY = "GALLERY",
GIF = "GIF",
HTML = "HTML",
IMAGE = "IMAGE",
LINK_PREVIEW = "LINK_PREVIEW",
/** @deprecated */
MAP = "MAP",
POLL = "POLL",
APP_EMBED = "APP_EMBED",
BUTTON = "BUTTON",
COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
TABLE = "TABLE",
EMBED = "EMBED",
COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
TABLE_CELL = "TABLE_CELL",
TABLE_ROW = "TABLE_ROW",
EXTERNAL = "EXTERNAL",
AUDIO = "AUDIO",
CAPTION = "CAPTION",
LAYOUT = "LAYOUT",
LAYOUT_CELL = "LAYOUT_CELL",
SHAPE = "SHAPE",
CARD = "CARD",
TOC = "TOC",
SMART_BLOCK = "SMART_BLOCK",
SMART_BLOCK_CELL = "SMART_BLOCK_CELL",
CHECKBOX_LIST = "CHECKBOX_LIST",
SLOT = "SLOT"
}
/** @enumType */
type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL' | 'SHAPE' | 'CARD' | 'TOC' | 'SMART_BLOCK' | 'SMART_BLOCK_CELL' | 'CHECKBOX_LIST' | 'SLOT';
interface NodeStyle {
/** The top padding value in pixels. */
paddingTop?: string | null;
/** The bottom padding value in pixels. */
paddingBottom?: string | null;
/** The background color as a hexadecimal value. */
backgroundColor?: string | null;
}
interface ButtonData {
/** Styling for the button's container. */
containerData?: PluginContainerData;
/** The button type. */
type?: ButtonDataTypeWithLiterals;
/** Styling for the button. */
styles?: Styles;
/** The text to display on the button. */
text?: string | null;
/** Button link details. */
link?: Link;
/** Node animation. */
animation?: Animation;
}
/** Background type */
declare enum BackgroundType {
/** Solid color background */
COLOR = "COLOR",
/** Gradient background */
GRADIENT = "GRADIENT"
}
/** @enumType */
type BackgroundTypeWithLiterals = BackgroundType | 'COLOR' | 'GRADIENT';
interface Gradient {
/** Gradient type. */
type?: GradientTypeWithLiterals;
/**
* Color stops for the gradient.
* @maxSize 1000
*/
stops?: Stop[];
/** Angle in degrees for linear gradient (0-360). */
angle?: number | null;
/**
* Horizontal center position for radial gradient (0-100).
* @max 100
*/
centerX?: number | null;
/**
* Vertical center position for radial gradient (0-100).
* @max 100
*/
centerY?: number | null;
}
/** Gradient type. */
declare enum GradientType {
/** Linear gradient. */
LINEAR = "LINEAR",
/** Radial gradient. */
RADIAL = "RADIAL"
}
/** @enumType */
type GradientTypeWithLiterals = GradientType | 'LINEAR' | 'RADIAL';
/** A single color stop in the gradient. */
interface Stop {
/**
* Stop color as hex value.
* @maxLength 19
*/
color?: string | null;
/** Stop position (0-1). */
position?: number | null;
}
interface Border {
/**
* Deprecated: Use `borderWidth` in `styles` instead.
* @deprecated
*/
width?: number | null;
/**
* Deprecated: Use `borderRadius` in `styles` instead.
* @deprecated
*/
radius?: number | null;
}
interface Colors {
/**
* Deprecated: Use `textColor` in `styles` instead.
* @deprecated
*/
text?: string | null;
/**
* Deprecated: Use `borderColor` in `styles` instead.
* @deprecated
*/
border?: string | null;
/**
* Deprecated: Use `backgroundColor` in `styles` instead.
* @deprecated
*/
background?: string | null;
}
/** Background styling (color or gradient) */
interface Background {
/** Background type. */
type?: BackgroundTypeWithLiterals;
/**
* Background color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
/** Gradient configuration. */
gradient?: Gradient;
}
interface PluginContainerData {
/** The width of the node when it's displayed. */
width?: PluginContainerDataWidth;
/** The node's alignment within its container. */
alignment?: PluginContainerDataAlignmentWithLiterals;
/** Spoiler cover settings for the node. */
spoiler?: Spoiler;
/** The height of the node when it's displayed. */
height?: Height;
/** 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`. */
textWrap?: boolean | null;
}
declare enum WidthType {
/** Width matches the content width */
CONTENT = "CONTENT",
/** Small Width */
SMALL = "SMALL",
/** Width will match the original asset width */
ORIGINAL = "ORIGINAL",
/** coast-to-coast display */
FULL_WIDTH = "FULL_WIDTH"
}
/** @enumType */
type WidthTypeWithLiterals = WidthType | 'CONTENT' | 'SMALL' | 'ORIGINAL' | 'FULL_WIDTH';
interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
/**
* One of the following predefined width options:
* `CONTENT`: The width of the container matches the content width.
* `SMALL`: A small width.
* `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
* `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
*/
size?: WidthTypeWithLiterals;
/** A custom width value in pixels. */
custom?: string | null;
}
/** @oneof */
interface PluginContainerDataWidthDataOneOf {
/**
* One of the following predefined width options:
* `CONTENT`: The width of the container matches the content width.
* `SMALL`: A small width.
* `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
* `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
*/
size?: WidthTypeWithLiterals;
/** A custom width value in pixels. */
custom?: string | null;
}
declare enum PluginContainerDataAlignment {
/** Center Alignment */
CENTER = "CENTER",
/** Left Alignment */
LEFT = "LEFT",
/** Right Alignment */
RIGHT = "RIGHT"
}
/** @enumType */
type PluginContainerDataAlignmentWithLiterals = PluginContainerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
interface Spoiler {
/** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
enabled?: boolean | null;
/** The description displayed on top of the spoiler cover. */
description?: string | null;
/** The text for the button used to remove the spoiler cover. */
buttonText?: string | null;
}
interface Height {
/** A custom height value in pixels. */
custom?: string | null;
}
declare enum ButtonDataType {
/** Regular link button */
LINK = "LINK",
/** Triggers custom action that is defined in plugin configuration by the consumer */
ACTION = "ACTION"
}
/** @enumType */
type ButtonDataTypeWithLiterals = ButtonDataType | 'LINK' | 'ACTION';
interface Styles {
/**
* Deprecated: Use `borderWidth` and `borderRadius` instead.
* @deprecated
*/
border?: Border;
/**
* Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.
* @deprecated
*/
colors?: Colors;
/** Border width in pixels. */
borderWidth?: number | null;
/**
* Deprecated: Use `borderWidth` for normal/hover states instead.
* @deprecated
*/
borderWidthHover?: number | null;
/** Border radius in pixels. */
borderRadius?: number | null;
/**
* Border color as a hexadecimal value.
* @maxLength 19
*/
borderColor?: string | null;
/**
* Border color as a hexadecimal value (hover state).
* @maxLength 19
*/
borderColorHover?: string | null;
/**
* Text color as a hexadecimal value.
* @maxLength 19
*/
textColor?: string | null;
/**
* Text color as a hexadecimal value (hover state).
* @maxLength 19
*/
textColorHover?: string | null;
/**
* Deprecated: Use `background` instead.
* @maxLength 19
* @deprecated
*/
backgroundColor?: string | null;
/**
* Deprecated: Use `backgroundHover` instead.
* @maxLength 19
* @deprecated
*/
backgroundColorHover?: string | null;
/** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
buttonSize?: string | null;
/** Background styling (color or gradient). */
background?: Background;
/** Background styling for hover state (color or gradient). */
backgroundHover?: Background;
}
interface Link extends LinkDataOneOf {
/** The absolute URL for the linked document. */
url?: string;
/** The target node's ID. Used for linking to another node in this object. */
anchor?: string;
/**
* he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
* `SELF` - Default. Opens the linked document in the same frame as the link.
* `BLANK` - Opens the linked document in a new browser tab or window.
* `PARENT` - Opens the linked document in the link's parent frame.
* `TOP` - Opens the linked document in the full body of the link's browser tab or window.
*/
target?: TargetWithLiterals;
/** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
rel?: Rel;
/** A serialized object used for a custom or external link panel. */
customData?: string | null;
}
/** @oneof */
interface LinkDataOneOf {
/** The absolute URL for the linked document. */
url?: string;
/** The target node's ID. Used for linking to another node in this object. */
anchor?: string;
}
declare enum Target {
/** Opens the linked document in the same frame as it was clicked (this is default) */
SELF = "SELF",
/** Opens the linked document in a new window or tab */
BLANK = "BLANK",
/** Opens the linked document in the parent frame */
PARENT = "PARENT",
/** Opens the linked document in the full body of the window */
TOP = "TOP"
}
/** @enumType */
type TargetWithLiterals = Target | 'SELF' | 'BLANK' | 'PARENT' | 'TOP';
interface Rel {
/** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
nofollow?: boolean | null;
/** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */
sponsored?: boolean | null;
/** 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`. */
ugc?: boolean | null;
/** Indicates that this link protect referral information from being passed to the target website. */
noreferrer?: boolean | null;
}
interface Animation {
/** Animation kind. */
type?: TypeWithLiterals;
/** Entrance animation, played once when the node first enters the viewport (VIEW). */
entrance?: EntranceAnimation;
/** Looping animation, repeated indefinitely while the node is on the page. When combined with entrance, the loop starts after the entrance finishes (VIEW). */
loop?: LoopAnimation;
/**
* POINTER carries its fields directly on the union member in the JTD wall, hence
* flat fields here (ts-proto camelCase must equal the JTD property names). A future
* kind that also needs an `effect` field would contend for this JSON name.
*/
effect?: PointerEffect;
/** How quickly the node settles toward the pointer, in milliseconds (POINTER). */
transitionDuration?: number | null;
}
declare enum Type {
/** Animations that play while the node is in view. */
VIEW = "VIEW",
/** Animations driven by the visitor's mouse position. */
POINTER = "POINTER"
}
/** @enumType */
type TypeWithLiterals = Type | 'VIEW' | 'POINTER';
interface EntranceAnimation {
/** The entrance effect to play. */
effect?: EntranceEffect;
/** Effect duration in milliseconds. Each effect has its own default. */
duration?: number | null;
/** Delay before the effect starts, in milliseconds. */
delay?: number | null;
}
interface EntranceEffect {
/** The entrance effect type. */
type?: EntranceEffectTypeWithLiterals;
/**
* 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).
* @maxLength 20
*/
direction?: string | null;
/**
* Clip-path shape: ELLIPSE, CIRCLE, RECTANGLE, or DIAMOND (SHAPE).
* @maxLength 12
*/
shape?: string | null;
/**
* Motion style: GENTLE, MODERATE, or INTENSE. Only the effects that expose one accept it.
* @maxLength 100
*/
easing?: string | null;
}
declare enum EntranceEffectType {
/** Fades in from fully transparent to fully opaque. */
FADE = "FADE",
/** Enters along a 3D arc path. */
ARC = "ARC",
/** Transitions from blurred to sharp. */
BLUR = "BLUR",
/** Bounces into place with an elastic curve. */
BOUNCE = "BOUNCE",
/** Shrinks down from a larger size. */
DROP = "DROP",
/** Expands from a point, scaling to full size. */
EXPAND = "EXPAND",
/** Flips into view with a 3D rotation. */
FLIP = "FLIP",
/** Drifts gently into place. */
FLOAT = "FLOAT",
/** Unfolds from an edge as if hinged. */
FOLD = "FOLD",
/** Glides in smoothly from off-screen. */
GLIDE = "GLIDE",
/** Progressively revealed by an expanding clip-path. */
REVEAL = "REVEAL",
/** Appears through an expanding geometric clip-path shape. */
SHAPE = "SHAPE",
/** Revealed through shutter-like strips. */
SHUTTERS = "SHUTTERS",
/** Slides in from one side. */
SLIDE = "SLIDE",
/** Spins into view while scaling up. */
SPIN = "SPIN",
/** Tilts in from the side with 3D rotation. */
TILT = "TILT",
/** Rotates into view around a corner pivot. */
TURN = "TURN",
/** Expands from its horizontal or vertical center. */
WINK = "WINK"
}
/** @enumType */
type EntranceEffectTypeWithLiterals = EntranceEffectType | 'FADE' | 'ARC' | 'BLUR' | 'BOUNCE' | 'DROP' | 'EXPAND' | 'FLIP' | 'FLOAT' | 'FOLD' | 'GLIDE' | 'REVEAL' | 'SHAPE' | 'SHUTTERS' | 'SLIDE' | 'SPIN' | 'TILT' | 'TURN' | 'WINK';
interface LoopAnimation {
/** The looping effect to repeat. */
effect?: LoopEffect;
/** Duration of a single iteration in milliseconds. Each effect has its own default. */
duration?: number | null;
/** Pause between iterations in milliseconds. */
iterationDelay?: number | null;
}
interface LoopEffect {
/** The looping effect type. */
type?: LoopEffectTypeWithLiterals;
/**
* 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).
* @maxLength 20
*/
direction?: string | null;
/**
* Motion style: GENTLE, MODERATE, or INTENSE. Only the effects that expose one accept it.
* @maxLength 100
*/
easing?: string | null;
}
declare enum LoopEffectType {
/** Bounces up and down in place. */
BOUNCE = "BOUNCE",
/** Scales gently in and out along an axis. */
BREATHE = "BREATHE",
/** Drifts toward one side, then re-enters from the opposite side. */
CROSS = "CROSS",
/** Fades out to fully transparent and back in. */
FLASH = "FLASH",
/** Rotates a full turn around its horizontal or vertical axis. */
FLIP = "FLIP",
/** Folds back and forth around a hinged edge. */
FOLD = "FOLD",
/** Wobbles with a jelly-like skew. */
JELLO = "JELLO",
/** Nudges repeatedly toward a direction. */
POKE = "POKE",
/** Scales up and back down rhythmically. */
PULSE = "PULSE",
/** Stretches and squashes like a rubber band. */
RUBBER = "RUBBER",
/** Rotates continuously around its center. */
SPIN = "SPIN",
/** Swings back and forth around an edge pivot. */
SWING = "SWING",
/** Rocks side to side with an accumulating rotation. */
WIGGLE = "WIGGLE"
}
/** @enumType */
type LoopEffectTypeWithLiterals = LoopEffectType | 'BOUNCE' | 'BREATHE' | 'CROSS' | 'FLASH' | 'FLIP' | 'FOLD' | 'JELLO' | 'POKE' | 'PULSE' | 'RUBBER' | 'SPIN' | 'SWING' | 'WIGGLE';
interface PointerEffect {
/** The mouse effect type. */
type?: PointerEffectTypeWithLiterals;
/** Reacts away from the pointer instead of toward it. */
inverted?: boolean | null;
/**
* 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.
* @maxLength 20
*/
axis?: string | null;
/**
* Whether the node grows or shrinks as the pointer nears: UP or DOWN (SCALE).
* @maxLength 8
*/
direction?: string | null;
/**
* Motion style: GENTLE, MODERATE, or INTENSE.
* @maxLength 100
*/
easing?: string | null;
}
declare enum PointerEffectType {
/** Drifts loosely after the pointer with a light rotation. */
AIRY = "AIRY",
/** Squashes and stretches toward the pointer. */
BLOB = "BLOB",
/** Shifts after the pointer while blurring. */
BLUR = "BLUR",
/** Scales as the pointer approaches. */
SCALE = "SCALE",
/** Skews toward the pointer. */
SKEW = "SKEW",
/** Rotates around a pivot edge or axis, following the pointer. */
SWIVEL = "SWIVEL",
/** Tilts in 3D perspective toward the pointer. */
TILT_3D = "TILT_3D",
/** Follows the pointer's position. */
TRACK = "TRACK",
/** Follows the pointer with a 3D depth motion. */
TRACK_3D = "TRACK_3D"
}
/** @enumType */
type PointerEffectTypeWithLiterals = PointerEffectType | 'AIRY' | 'BLOB' | 'BLUR' | 'SCALE' | 'SKEW' | 'SWIVEL' | 'TILT_3D' | 'TRACK' | 'TRACK_3D';
interface CodeBlockData {
/** Styling for the code block's text. */
textStyle?: TextStyle;
/** Node animation. */
animation?: Animation;
}
interface TextStyle {
/** Text alignment. Defaults to `AUTO`. */
textAlignment?: TextAlignmentWithLiterals;
/** 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. */
lineHeight?: string | null;
/** 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. */
fontSize?: FontSizeData;
}
declare enum TextAlignment {
/** browser default, eqivalent to `initial` */
AUTO = "AUTO",
/** Left align */
LEFT = "LEFT",
/** Right align */
RIGHT = "RIGHT",
/** Center align */
CENTER = "CENTER",
/** 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 */
JUSTIFY = "JUSTIFY"
}
/** @enumType */
type TextAlignmentWithLiterals = TextAlignment | 'AUTO' | 'LEFT' | 'RIGHT' | 'CENTER' | 'JUSTIFY';
interface FontSizeData {
/** The units used for the font size. */
unit?: FontTypeWithLiterals;
/** Font size value. */
value?: number | null;
}
declare enum FontType {
PX = "PX",
EM = "EM"
}
/** @enumType */
type FontTypeWithLiterals = FontType | 'PX' | 'EM';
interface DividerData {
/** Styling for the divider's container. */
containerData?: PluginContainerData;
/** Divider line style. */
lineStyle?: LineStyleWithLiterals;
/** Divider width. */
width?: WidthWithLiterals;
/** Divider alignment. */
alignment?: DividerDataAlignmentWithLiterals;
/** Visual styling for the divider lines. */
styles?: DividerDataStyles;
/** Node animation. */
animation?: Animation;
}
declare enum LineCap {
/** Square line endings. */
SQUARE = "SQUARE",
/** Rounded line endings. */
ROUND = "ROUND"
}
/** @enumType */
type LineCapWithLiterals = LineCap | 'SQUARE' | 'ROUND';
declare enum LineStyle {
/** Single Line */
SINGLE = "SINGLE",
/** Double Line */
DOUBLE = "DOUBLE",
/** Dashed Line */
DASHED = "DASHED",
/** Dotted Line */
DOTTED = "DOTTED"
}
/** @enumType */
type LineStyleWithLiterals = LineStyle | 'SINGLE' | 'DOUBLE' | 'DASHED' | 'DOTTED';
declare enum Width {
/** Large line */
LARGE = "LARGE",
/** Medium line */
MEDIUM = "MEDIUM",
/** Small line */
SMALL = "SMALL"
}
/** @enumType */
type WidthWithLiterals = Width | 'LARGE' | 'MEDIUM' | 'SMALL';
declare enum DividerDataAlignment {
/** Center alignment */
CENTER = "CENTER",
/** Left alignment */
LEFT = "LEFT",
/** Right alignment */
RIGHT = "RIGHT"
}
/** @enumType */
type DividerDataAlignmentWithLiterals = DividerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
interface DividerDataStyles {
/**
* Divider color as a hexadecimal value. An alpha channel controls opacity.
* @maxLength 19
*/
color?: string | null;
/** Divider line ending shape. */
lineCap?: LineCapWithLiterals;
/**
* Line thicknesses in pixels, ordered from first line to last line.
* @maxSize 10
*/
lineThickness?: number[];
/** 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. */
dashLength?: number | null;
/** Visible gap between dashes or dots, in pixels. */
dashGap?: number | null;
/** Gap between divider lines in pixels. */
lineGap?: number | null;
}
interface FileData {
/** Styling for the file's container. */
containerData?: PluginContainerData;
/** The source for the file's data. */
src?: FileSource;
/** File name. */
name?: string | null;
/** File type. */
type?: string | null;
/**
* Use `sizeInKb` instead.
* @deprecated
*/
size?: number | null;
/** Settings for PDF files. */
pdfSettings?: PDFSettings;
/** File MIME type. */
mimeType?: string | null;
/** File path. */
path?: string | null;
/** File size in KB. */
sizeInKb?: string | null;
/** Node animation. */
animation?: Animation;
}
declare enum ViewMode {
/** No PDF view */
NONE = "NONE",
/** Full PDF view */
FULL = "FULL",
/** Mini PDF view */
MINI = "MINI"
}
/** @enumType */
type ViewModeWithLiterals = ViewMode | 'NONE' | 'FULL' | 'MINI';
interface FileSource extends FileSourceDataOneOf {
/** The absolute URL for the file's source. */
url?: string | null;
/**
* Custom ID. Use `id` instead.
* @deprecated
*/
custom?: string | null;
/** An ID that's resolved to a URL by a resolver function. */
id?: string | null;
/** Indicates whether the file's source is private. Defaults to `false`. */
private?: boolean | null;
}
/** @oneof */
interface FileSourceDataOneOf {
/** The absolute URL for the file's source. */
url?: string | null;
/**
* Custom ID. Use `id` instead.
* @deprecated
*/
custom?: string | null;
/** An ID that's resolved to a URL by a resolver function. */
id?: string | null;
}
interface PDFSettings {
/**
* PDF view mode. One of the following:
* `NONE` : The PDF isn't displayed.
* `FULL` : A full page view of the PDF is displayed.
* `MINI` : A mini view of the PDF is displayed.
*/
viewMode?: ViewModeWithLiterals;
/** Sets whether the PDF download button is disabled. Defaults to `false`. */
disableDownload?: boolean | null;
/** Sets whether the PDF print button is disabled. Defaults to `false`. */
disablePrint?: boolean | null;
}
interface GalleryData {
/** Styling for the gallery's container. */
containerData?: PluginContainerData;
/** The items in the gallery. */
items?: Item[];
/** Options for defining the gallery's appearance. */
options?: GalleryOptions;
/** Sets whether the gallery's expand button is disabled. Defaults to `false`. */
disableExpand?: boolean | null;
/** Sets whether the gallery's download button is disabled. Defaults to `false`. */
disableDownload?: boolean | null;
/** Node animation. */
animation?: Animation;
}
interface Media {
/** The source for the media's data. */
src?: FileSource;
/** Media width in pixels. */
width?: number | null;
/** Media height in pixels. */
height?: number | null;
/** Media duration in seconds. Only relevant for audio and video files. */
duration?: number | null;
}
interface Image {
/** Image file details. */
media?: Media;
/** Link details for images that are links. */
link?: Link;
}
interface Video {
/** Video file details. */
media?: Media;
/** Video thumbnail file details. */
thumbnail?: Media;
}
interface Item extends ItemDataOneOf {
/** An image item. */
image?: Image;
/** A video item. */
video?: Video;
/** Item title. */
title?: string | null;
/** Item's alternative text. */
altText?: string | null;
}
/** @oneof */
interface ItemDataOneOf {
/** An image item. */
image?: Image;
/** A video item. */
video?: Video;
}
interface GalleryOptions {
/** Gallery layout. */
layout?: GalleryOptionsLayout;
/** Styling for gallery items. */
item?: ItemStyle;
/** Styling for gallery thumbnail images. */
thumbnails?: Thumbnails;
}
declare enum LayoutType {
/** Collage type */
COLLAGE = "COLLAGE",
/** Masonry type */
MASONRY = "MASONRY",
/** Grid type */
GRID = "GRID",
/** Thumbnail type */
THUMBNAIL = "THUMBNAIL",
/** Slider type */
SLIDER = "SLIDER",
/** Slideshow type */
SLIDESHOW = "SLIDESHOW",
/** Panorama type */
PANORAMA = "PANORAMA",
/** Column type */
COLUMN = "COLUMN",
/** Magic type */
MAGIC = "MAGIC",
/** Fullsize images type */
FULLSIZE = "FULLSIZE"
}
/** @enumType */
type LayoutTypeWithLiterals = LayoutType | 'COLLAGE' | 'MASONRY' | 'GRID' | 'THUMBNAIL' | 'SLIDER' | 'SLIDESHOW' | 'PANORAMA' | 'COLUMN' | 'MAGIC' | 'FULLSIZE';
declare enum Orientation {
/** Rows Orientation */
ROWS = "ROWS",
/** Columns Orientation */
COLUMNS = "COLUMNS"
}
/** @enumType */
type OrientationWithLiterals = Orientation | 'ROWS' | 'COLUMNS';
declare enum Crop {
/** Crop to fill */
FILL = "FILL",
/** Crop to fit */
FIT = "FIT"
}
/** @enumType */
type CropWithLiterals = Crop | 'FILL' | 'FIT';
declare enum ThumbnailsAlignment {
/** Top alignment */
TOP = "TOP",
/** Right alignment */
RIGHT = "RIGHT",
/** Bottom alignment */
BOTTOM = "BOTTOM",
/** Left alignment */
LEFT = "LEFT",
/** No thumbnail */
NONE = "NONE"
}
/** @enumType */
type ThumbnailsAlignmentWithLiterals = ThumbnailsAlignment | 'TOP' | 'RIGHT' | 'BOTTOM' | 'LEFT' | 'NONE';
interface GalleryOptionsLayout {
/** Gallery layout type. */
type?: LayoutTypeWithLiterals;
/** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
horizontalScroll?: boolean | null;
/** Gallery orientation. */
orientation?: OrientationWithLiterals;
/** The number of columns to display on full size screens. */
numberOfColumns?: number | null;
/** The number of columns to display on mobile screens. */
mobileNumberOfColumns?: number | null;
}
interface ItemStyle {
/** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
targetSize?: number | null;
/** Item ratio */
ratio?: number | null;
/** Sets how item images are cropped. */
crop?: CropWithLiterals;
/** The spacing between items in pixels. */
spacing?: number | null;
}
interface Thumbnails {
/** Thumbnail alignment. */
placement?: ThumbnailsAlignmentWithLiterals;
/** Spacing between thumbnails in pixels. */
spacing?: number | null;
}
interface GIFData {
/** Styling for the GIF's container. */
containerData?: PluginContainerData;
/** The source of the full size GIF. */
original?: GIF;
/** The source of the downsized GIF. */
downsized?: GIF;
/** Height in pixels. */
height?: number;
/** Width in pixels. */
width?: number;
/** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */
gifType?: GIFTypeWithLiterals;
/** Node animation. */
animation?: Animation;
}
interface GIF {
/**
* GIF format URL.
* @format WEB_URL
*/
gif?: string | null;
/**
* MP4 format URL.
* @format WEB_URL
*/
mp4?: string | null;
/**
* Thumbnail URL.
* @format WEB_URL
*/
still?: string | null;
}
declare enum GIFType {
NORMAL = "NORMAL",
STICKER = "STICKER"
}
/** @enumType */
type GIFTypeWithLiterals = GIFType | 'NORMAL' | 'STICKER';
interface HeadingData {
/** Heading level from 1-6. */
level?: number;
/** Styling for the heading text. */
textStyle?: TextStyle;
/** Indentation level from 1-4. */
indentation?: number | null;
/** Rendered heading level for SEO/accessibility, overrides the HTML tag when set. */
renderedLevel?: number | null;
/** Node animation. */
animation?: Animation;
}
interface HTMLData extends HTMLDataDataOneOf {
/** The URL for the HTML code for the node. */
url?: string;
/** The HTML code for the node. */
html?: string;
/**
* Whether this is an AdSense element. Use `source` instead.
* @deprecated
*/
isAdsense?: boolean | null;
/** The WixelWidget ID for AI_WIDGET source nodes. */
widgetId?: string;
/** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
containerData?: PluginContainerData;
/** The type of HTML code. */
source?: SourceWithLiterals;
/** If container height is aligned with its content height. Defaults to `true`. */
autoHeight?: boolean | null;
/** Node animation. */
animation?: Animation;
/**
* Cookie category the HTML code needs the site visitor's consent for: ESSENTIAL (the default, needs no consent), FUNCTIONAL, ANALYTICS or ADVERTISING. On sites that block embeds until consent, viewers render a placeholder instead until the visitor consents.
* @maxLength 20
*/
consentCategory?: string | null;
}
/** @oneof */
interface HTMLDataDataOneOf {
/** The URL for the HTML code for the node. */
url?: string;
/** The HTML code for the node. */
html?: string;
/**
* Whether this is an AdSense element. Use `source` instead.
* @deprecated
*/
isAdsense?: boolean | null;
/** The WixelWidget ID for AI_WIDGET source nodes. */
widgetId?: string;
}
declare enum Source {
HTML = "HTML",
ADSENSE = "ADSENSE",
AI = "AI",
AI_WIDGET = "AI_WIDGET"
}
/** @enumType */
type SourceWithLiterals = Source | 'HTML' | 'ADSENSE' | 'AI' | 'AI_WIDGET';
interface ImageData {
/** Styling for the image's container. */
containerData?: PluginContainerData;
/** Image file details. */
image?: Media;
/** Link details for images that are links. */
link?: Link;
/** Sets whether the image expands to full screen when clicked. Defaults to `false`. */
disableExpand?: boolean | null;
/** Image's alternative text. */
altText?: string | null;
/**
* Deprecated: use Caption node instead.
* @deprecated
*/
caption?: string | null;
/** Sets whether the image's download button is disabled. Defaults to `false`. */
disableDownload?: boolean | null;
/** Sets whether the image is decorative and does not need an explanation. Defaults to `false`. */
decorative?: boolean | null;
/** Styling for the image. */
styles?: ImageDataStyles;
/** Non-destructive crop rectangle, expressed as fractions (0-1) of the original image. When omitted, the full image is shown. */
crop?: ImageDataCrop;
/** Optional shape mask applied to the visible crop. Supported values: CIRCLE, OVAL, STAR, PENTAGON, HEXAGON, TRIANGLE, HEART, RHOMBUS, FLUID, WINDOW. */
cropShape?: string | null;
/** Node animation. */
animation?: Animation;
}
interface StylesBorder {
/** Border width in pixels. */
width?: number | null;
/**
* Border color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
/** Border radius in pixels. */
radius?: number | null;
}
interface ImageDataStyles {
/** Border attributes. */
border?: StylesBorder;
}
interface ImageDataCrop {
/** Left edge of the crop, as a fraction (0-1) of the original image width. */
x?: number | null;
/** Top edge of the crop, as a fraction (0-1) of the original image height. */
y?: number | null;
/** Visible width of the crop, as a fraction (0-1) of the original image width. */
width?: number | null;
/** Visible height of the crop, as a fraction (0-1) of the original image height. */
height?: number | null;
}
interface LinkPreviewData {
/** Styling for the link preview's container. */
containerData?: PluginContainerData;
/** Link details. */
link?: Link;
/** Preview title. */
title?: string | null;
/** Preview thumbnail URL. */
thumbnailUrl?: string | null;
/** Preview description. */
description?: string | null;
/** The preview content as HTML. */
html?: string | null;
/** Styling for the link preview. */
styles?: LinkPreviewDataStyles;
/** Node animation. */
animation?: Animation;
}
declare enum StylesPosition {
/** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
START = "START",
/** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
END = "END",
/** Thumbnail positioned at the top */
TOP = "TOP",
/** Thumbnail hidden and not displayed */
HIDDEN = "HIDDEN"
}
/** @enumType */
type StylesPositionWithLiterals = StylesPosition | 'START' | 'END' | 'TOP' | 'HIDDEN';
interface LinkPreviewDataStyles {
/**
* Background color as a hexadecimal value.
* @maxLength 19
*/
backgroundColor?: string | null;
/**
* Title color as a hexadecimal value.
* @maxLength 19
*/
titleColor?: string | null;
/**
* Subtitle color as a hexadecimal value.
* @maxLength 19
*/
subtitleColor?: string | null;
/**
* Link color as a hexadecimal value.
* @maxLength 19
*/
linkColor?: string | null;
/** Border width in pixels. */
borderWidth?: number | null;
/** Border radius in pixels. */
borderRadius?: number | null;
/**
* Border color as a hexadecimal value.
* @maxLength 19
*/
borderColor?: string | null;
/** Position of thumbnail. Defaults to `START`. */
thumbnailPosition?: StylesPositionWithLiterals;
}
interface MapData {
/** Styling for the map's container. */
containerData?: PluginContainerData;
/** Map settings. */
mapSettings?: MapSettings;
}
interface MapSettings {
/** The address to display on the map. */
address?: string | null;
/** Sets whether the map is draggable. */
draggable?: boolean | null;
/** Sets whether the location marker is visible. */
marker?: boolean | null;
/** Sets whether street view control is enabled. */
streetViewControl?: boolean | null;
/** Sets whether zoom control is enabled. */
zoomControl?: boolean | null;
/** Location latitude. */
lat?: number | null;
/** Location longitude. */
lng?: number | null;
/** Location name. */
locationName?: string | null;
/** Sets whether view mode control is enabled. */
viewModeControl?: boolean | null;
/** Initial zoom value. */
initialZoom?: number | null;
/** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
mapType?: MapTypeWithLiterals;
}
declare enum MapType {
/** Roadmap map type */
ROADMAP = "ROADMAP",
/** Satellite map type */
SATELITE = "SATELITE",
/** Hybrid map type */
HYBRID = "HYBRID",
/** Terrain map type */
TERRAIN = "TERRAIN"
}
/** @enumType */
type MapTypeWithLiterals = MapType | 'ROADMAP' | 'SATELITE' | 'HYBRID' | 'TERRAIN';
interface ParagraphData {
/** Styling for the paragraph text. */
textStyle?: TextStyle;
/** Indentation level from 1-4. */
indentation?: number | null;
/** Paragraph level */
level?: number | null;
/** Node animation. */
animation?: Animation;
}
interface PollData {
/** Styling for the poll's container. */
containerData?: PluginContainerData;
/** Poll data. */
poll?: Poll;
/** Layout settings for the poll and voting options. */
layout?: PollDataLayout;
/** Styling for the poll and voting options. */
design?: Design;
/** Node animation. */
animation?: Animation;
}
declare enum ViewRole {
/** Only Poll creator can view the results */
CREATOR = "CREATOR",
/** Anyone who voted can see the results */
VOTERS = "VOTERS",
/** Anyone can see the results, even if one didn't vote */
EVERYONE = "EVERYONE"
}
/** @enumType */
type ViewRoleWithLiterals = ViewRole | 'CREATOR' | 'VOTERS' | 'EVERYONE';
declare enum VoteRole {
/** Logged in member */
SITE_MEMBERS = "SITE_MEMBERS",
/** Anyone */
ALL = "ALL"
}
/** @enumType */
type VoteRoleWithLiterals = VoteRole | 'SITE_MEMBERS' | 'ALL';
interface Permissions {
/** Sets who can view the poll results. */
view?: ViewRoleWithLiterals;
/** Sets who can vote. */
vote?: VoteRoleWithLiterals;
/** Sets whether one voter can vote multiple times. Defaults to `false`. */
allowMultipleVotes?: boolean | null;
}
interface Option {
/** Option ID. */
id?: string | null;
/** Option title. */
title?: string | null;
/** The image displayed with the option. */
image?: Media;
}
interface Settings {
/** Permissions settings for voting. */
permissions?: Permissions;
/** Sets whether voters are displayed in the vote results. Defaults to `true`. */
showVoters?: boolean | null;
/** Sets whether the vote count is displayed. Defaults to `true`. */
showVotesCount?: boolean | null;
}
declare enum PollLayoutType {
/** List */
LIST = "LIST",
/** Grid */
GRID = "GRID"
}
/** @enumType */
type PollLayoutTypeWithLiterals = PollLayoutType | 'LIST' | 'GRID';
declare enum PollLayoutDirection {
/** Left-to-right */
LTR = "LTR",
/** Right-to-left */
RTL = "RTL"
}
/** @enumType */
type PollLayoutDirectionWithLiterals = PollLayoutDirection | 'LTR' | 'RTL';
interface PollLayout {
/** The layout for displaying the voting options. */
type?: PollLayoutTypeWithLiterals;
/** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
direction?: PollLayoutDirectionWithLiterals;
/** Sets whether to display the main poll image. Defaults to `false`. */
enableImage?: boolean | null;
}
interface OptionLayout {
/** Sets whether to display option images. Defaults to `false`. */
enableImage?: boolean | null;
}
declare enum PollDesignBackgroundType {
/** Color background type */
COLOR = "COLOR",
/** Image background type */
IMAGE = "IMAGE",
/** Gradiant background type */
GRADIENT = "GRADIENT"
}
/** @enumType */
type PollDesignBackgroundTypeWithLiterals = PollDesignBackgroundType | 'COLOR' | 'IMAGE' | 'GRADIENT';
interface BackgroundGradient {
/** The gradient angle in degrees. */
angle?: number | null;
/**
* The start color as a hexademical value.
* @maxLength 19
*/
startColor?: string | null;
/**
* The end color as a hexademical value.
* @maxLength 19
*/
lastColor?: string | null;
}
interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
/**
* The background color as a hexademical value.
* @maxLength 19
*/
color?: string | null;
/** An image to use for the background. */
image?: Media;
/** Details for a gradient background. */
gradient?: BackgroundGradient;
/** Background type. For each option, include the relevant details. */
type?: PollDesignBackgroundTypeWithLiterals;
}
/** @oneof */
interface PollDesignBackgroundBackgroundOneOf {
/**
* The background color as a hexademical value.
* @maxLength 19
*/
color?: string | null;
/** An image to use for the background. */
image?: Media;
/** Details for a gradient background. */
gradient?: BackgroundGradient;
}
interface PollDesign {
/** Background styling. */
background?: PollDesignBackground;
/** Border radius in pixels. */
borderRadius?: number | null;
}
interface OptionDesign {
/** Border radius in pixels. */
borderRadius?: number | null;
}
interface Poll {
/** Poll ID. */
id?: string | null;
/** Poll title. */
title?: string | null;
/** Poll creator ID. */
creatorId?: string | null;
/** Main poll image. */
image?: Media;
/** Voting options. */
options?: Option[];
/** The poll's permissions and display settings. */
settings?: Settings;
}
interface PollDataLayout {
/** Poll layout settings. */
poll?: PollLayout;
/** Voting otpions layout settings. */
options?: OptionLayout;
}
interface Design {
/** Styling for the poll. */
poll?: PollDesign;
/** Styling for voting options. */
options?: OptionDesign;
}
interface TextData {
/** The text to apply decorations to. */
text?: string;
/** The decorations to apply. */
decorations?: Decoration[];
}
/** Adds appearence changes to text */
interface Decoration extends DecorationDataOneOf {
/** Data for an anchor link decoration. */
anchorData?: AnchorData;
/** Data for a color decoration. */
colorData?: ColorData;
/** Data for an external link decoration. */
linkData?: LinkData;
/** Data for a mention decoration. */
mentionData?: MentionData;
/** Data for a font size decoration. */
fontSizeData?: FontSizeData;
/** Font weight for a bold decoration. */
fontWeightValue?: number | null;
/** Data for an italic decoration. Defaults to `true`. */
italicData?: boolean | null;
/** Data for an underline decoration. Defaults to `true`. */
underlineData?: boolean | null;
/** Data for a spoiler decoration. */
spoilerData?: SpoilerData;
/** Data for a strikethrough decoration. Defaults to `true`. */
strikethroughData?: boolean | null;
/** Data for a superscript decoration. Defaults to `true`. */
superscriptData?: boolean | null;
/** Data for a subscript decoration. Defaults to `true`. */
subscriptData?: boolean | null;
/** Data for a font family decoration. */
fontFamilyData?: FontFamilyData;
/** Data for a hand-drawn sketch annotation decoration. */
sketchData?: SketchData;
/** The type of decoration to apply. */
type?: DecorationTypeWithLiterals;
}
/** @oneof */
interface DecorationDataOneOf {
/** Data for an anchor link decoration. */
anchorData?: AnchorData;
/** Data for a color decoration. */
colorData?: ColorData;
/** Data for an external link decoration. */
linkData?: LinkData;
/** Data for a mention decoration. */
mentionData?: MentionData;
/** Data for a font size decoration. */
fontSizeData?: FontSizeData;
/** Font weight for a bold decoration. */
fontWeightValue?: number | null;
/** Data for an italic decoration. Defaults to `true`. */
italicData?: boolean | null;
/** Data for an underline decoration. Defaults to `true`. */
underlineData?: boolean | null;
/** Data for a spoiler decoration. */
spoilerData?: SpoilerData;
/** Data for a strikethrough decoration. Defaults to `true`. */
strikethroughData?: boolean | null;
/** Data for a superscript decoration. Defaults to `true`. */
superscriptData?: boolean | null;
/** Data for a subscript decoration. Defaults to `true`. */
subscriptData?: boolean | null;
/** Data for a font family decoration. */
fontFamilyData?: FontFamilyData;
/** Data for a hand-drawn sketch annotation decoration. */
sketchData?: SketchData;
}
declare enum DecorationType {
BOLD = "BOLD",
ITALIC = "ITALIC",
UNDERLINE = "UNDERLINE",
SPOILER = "SPOILER",
ANCHOR = "ANCHOR",
MENTION = "MENTION",
LINK = "LINK",
COLOR = "COLOR",
FONT_SIZE = "FONT_SIZE",
EXTERNAL = "EXTERNAL",
STRIKETHROUGH = "STRIKETHROUGH",
SUPERSCRIPT = "SUPERSCRIPT",
SUBSCRIPT = "SUBSCRIPT",
FONT_FAMILY = "FONT_FAMILY",
SKETCH = "SKETCH"
}
/** @enumType */
type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT' | 'FONT_FAMILY' | 'SKETCH';
interface AnchorData {
/** The target node's ID. */
anchor?: string;
}
interface ColorData {
/**
* Deprecated: Use `backgroundStyle` instead. The text's background color as a hexadecimal value.
* @deprecated
*/
background?: string | null;
/**
* Deprecated: Use `foregroundStyle` instead. The text's foreground color as a hexadecimal value.
* @deprecated
*/
foreground?: string | null;
/** Text fill styling (color or gradient). When present, takes precedence over `foreground`. */
foregroundStyle?: ColorDataBackground;
/** Text background (highlight) styling (color or gradient). When present, takes precedence over `background`. */
backgroundStyle?: ColorDataBackground;
}
/** Background type */
declare enum ColorDataBackgroundType {
/** Solid color */
COLOR = "COLOR",
/** Gradient */
GRADIENT = "GRADIENT"
}
/** @enumType */
type ColorDataBackgroundTypeWithLiterals = ColorDataBackgroundType | 'COLOR' | 'GRADIENT';
/** Fill styling (color or gradient) */
interface ColorDataBackground {
/** Background type. */
type?: ColorDataBackgroundTypeWithLiterals;
/**
* Color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
/** Gradient configuration. */
gradient?: Gradient;
}
interface LinkData {
/** Link details. */
link?: Link;
}
interface MentionData {
/** The mentioned user's name. */
name?: string;
/** The version of the user's name that appears after the `@` character in the mention. */
slug?: string;
/** Mentioned user's ID. */
id?: string | null;
/** 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. */
type?: string | null;
}
interface SpoilerData {
/** Spoiler ID. */
id?: string | null;
}
interface FontFamilyData {
/** @maxLength 1000 */
value?: string | null;
}
interface SketchData {
/** The sketch annotation variant to draw over the text. */
variant?: VariantWithLiterals;
/**
* Annotation color. Defaults to the theme action color.
* @maxLength 19
*/
color?: string | null;
/** Whether the annotation animates on first paint. Defaults to `true`. */
animate?: boolean | null;
}
declare enum Variant {
UNDERLINE = "UNDERLINE",
BOX = "BOX",
CIRCLE = "CIRCLE",
HIGHLIGHT = "HIGHLIGHT",
STRIKETHROUGH = "STRIKETHROUGH",
CROSSED_OFF = "CROSSED_OFF"
}
/** @enumType */
type VariantWithLiterals = Variant | 'UNDERLINE' | 'BOX' | 'CIRCLE' | 'HIGHLIGHT' | 'STRIKETHROUGH' | 'CROSSED_OFF';
interface AppEmbedData extends AppEmbedDataAppDataOneOf {
/** Data for embedded Wix Bookings content. */
bookingData?: BookingData;
/** Data for embedded Wix Events content. */
eventData?: EventData;
/** The type of Wix App content being embedded. */
type?: AppTypeWithLiterals;
/** The ID of the embedded content. */
itemId?: string | null;
/** The name of the embedded content. */
name?: string | null;
/**
* Deprecated: Use `image` instead.
* @deprecated
*/
imageSrc?: string | null;
/** The URL for the embedded content. */
url?: string | null;
/** An image for the embedded content. */
image?: Media;
/** Whether to hide the image. */
hideImage?: boolean | null;
/** Whether to hide the title. */
hideTitle?: boolean | null;
/** Whether to hide the price. */
hidePrice?: boolean | null;
/** Whether to hide the description (Event and Booking). */
hideDescription?: boolean | null;
/** Whether to hide the date and time (Event). */
hideDateTime?: boolean | null;
/** Whether to hide the location (Event). */
hideLocation?: boolean | null;
/** Whether to hide the duration (Booking). */
hideDuration?: boolean | null;
/** Whether to hide the button. */
hideButton?: boolean | null;
/** Whether to hide the ribbon. */
hideRibbon?: boolean | null;
/** Button styling options. */
buttonStyles?: ButtonStyles;
/** Image styling options. */
imageStyles?: ImageStyles;
/** Ribbon styling options. */
ribbonStyles?: RibbonStyles;
/** Card styling options. */
cardStyles?: CardStyles;
/** Styling for the app embed's container. */
containerData?: PluginContainerData;
/** Pricing data for embedded Wix App content. */
pricingData?: PricingData;
/** Node animation. */
animation?: Animation;
}
/** @oneof */
interface AppEmbedDataAppDataOneOf {
/** Data for embedded Wix Bookings content. */
bookingData?: BookingData;
/** Data for embedded Wix Events content. */
eventData?: EventData;
}
declare enum Position {
/** Image positioned at the start (left in LTR layouts, right in RTL layouts) */
START = "START",
/** Image positioned at the end (right in LTR layouts, left in RTL layouts) */
END = "END",
/** Image positioned at the top */
TOP = "TOP"
}
/** @enumType */
type PositionWithLiterals = Position | 'START' | 'END' | 'TOP';
declare enum AspectRatio {
/** 1:1 aspect ratio */
SQUARE = "SQUARE",
/** 16:9 aspect ratio */
RECTANGLE = "RECTANGLE"
}
/** @enumType */
type AspectRatioWithLiterals = AspectRatio | 'SQUARE' | 'RECTANGLE';
declare enum Resizing {
/** Fill the container, may crop the image */
FILL = "FILL",
/** Fit the image within the container */
FIT = "FIT"
}
/** @enumType */
type ResizingWithLiterals = Resizing | 'FILL' | 'FIT';
declare enum Placement {
/** Ribbon placed on the image */
IMAGE = "IMAGE",
/** Ribbon placed on the product information */
PRODUCT_INFO = "PRODUCT_INFO"
}
/** @enumType */
type PlacementWithLiterals = Placement | 'IMAGE' | 'PRODUCT_INFO';
declare enum CardStylesType {
/** Card with visible border and background */
CONTAINED = "CONTAINED",
/** Card without visible border */
FRAMELESS = "FRAMELESS"
}
/** @enumType */
type CardStylesTypeWithLiterals = CardStylesType | 'CONTAINED' | 'FRAMELESS';
declare enum Alignment {
/** Content aligned to start (left in LTR layouts, right in RTL layouts) */
START = "START",
/** Content centered */
CENTER = "CENTER",
/** Content aligned to end (right in LTR layouts, left in RTL layouts) */
END = "END"
}
/** @enumType */
type AlignmentWithLiterals = Alignment | 'START' | 'CENTER' | 'END';
declare enum Layout {
/** Elements stacked vertically */
STACKED = "STACKED",
/** Elements arranged horizontally */
SIDE_BY_SIDE = "SIDE_BY_SIDE"
}
/** @enumType */
type LayoutWithLiterals = Layout | 'STACKED' | 'SIDE_BY_SIDE';
declare enum AppType {
PRODUCT = "PRODUCT",
EVENT = "EVENT",
BOOKING = "BOOKING"
}
/** @enumType */
type AppTypeWithLiterals = AppType | 'PRODUCT' | 'EVENT' | 'BOOKING';
interface BookingData {
/** Booking duration in minutes. */
durations?: string | null;
}
interface EventData {
/** Event schedule. */
scheduling?: string | null;
/** Event location. */
location?: string | null;
}
interface ButtonStyles {
/** Text to display on the button. */
buttonText?: string | null;
/** Border width in pixels. */
borderWidth?: number | null;
/** Border radius in pixels. */
borderRadius?: number | null;
/**
* Border color as a hexadecimal value.
* @maxLength 19
*/
borderColor?: string | null;
/**
* Text color as a hexadecimal value.
* @maxLength 19
*/
textColor?: string | null;
/**
* Background color as a hexadecimal value.
* @maxLength 19
*/
backgroundColor?: string | null;
/**
* Border color as a hexadecimal value (hover state).
* @maxLength 19
*/
borderColorHover?: string | null;
/**
* Text color as a hexadecimal value (hover state).
* @maxLength 19
*/
textColorHover?: string | null;
/**
* Background color as a hexadecimal value (hover state).
* @maxLength 19
*/
backgroundColorHover?: string | null;
/** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
buttonSize?: string | null;
}
interface ImageStyles {
/** Whether to hide the image. */
hideImage?: boolean | null;
/** Position of image. Defaults to `START`. */
imagePosition?: PositionWithLiterals;
/** Aspect ratio for the image. Defaults to `SQUARE`. */
aspectRatio?: AspectRatioWithLiterals;
/** How the image should be resized. Defaults to `FILL`. */
resizing?: ResizingWithLiterals;
/**
* Image border color as a hexadecimal value.
* @maxLength 19
*/
borderColor?: string | null;
/** Image border width in pixels. */
borderWidth?: number | null;
/** Image border radius in pixels. */
borderRadius?: number | null;
}
interface RibbonStyles {
/** Text to display on the ribbon. */
ribbonText?: string | null;
/**
* Ribbon background color as a hexadecimal value.
* @maxLength 19
*/
backgroundColor?: string | null;
/**
* Ribbon text color as a hexadecimal value.
* @maxLength 19
*/
textColor?: string | null;
/**
* Ribbon border color as a hexadecimal value.
* @maxLength 19
*/
borderColor?: string | null;
/** Ribbon border width in pixels. */
borderWidth?: number | null;
/** Ribbon border radius in pixels. */
borderRadius?: number | null;
/** Placement of the ribbon. Defaults to `IMAGE`. */
ribbonPlacement?: PlacementWithLiterals;
}
interface CardStyles {
/**
* Card background color as a hexadecimal value.
* @maxLength 19
*/
backgroundColor?: string | null;
/**
* Card border color as a hexadecimal value.
* @maxLength 19
*/
borderColor?: string | null;
/** Card border width in pixels. */
borderWidth?: number | null;
/** Card border radius in pixels. */
borderRadius?: number | null;
/** Card type. Defaults to `CONTAINED`. */
type?: CardStylesTypeWithLiterals;
/** Content alignment. Defaults to `START`. */
alignment?: AlignmentWithLiterals;
/** Layout for title and price. Defaults to `STACKED`. */
titlePriceLayout?: LayoutWithLiterals;
/**
* Title text color as a hexadecimal value.
* @maxLength 19
*/
titleColor?: string | null;
/**
* Text color as a hexadecimal value.
* @maxLength 19
*/
textColor?: string | null;
}
interface PricingData {
/**
* Minimum numeric price value as string (e.g., "10.99").
* @decimalValue options { maxScale:2 }
*/
valueFrom?: string | null;
/**
* Maximum numeric price value as string (e.g., "19.99").
* @decimalValue options { maxScale:2 }
*/
valueTo?: string | null;
/**
* Numeric price value as string after discount application (e.g., "15.99").
* @decimalValue options { maxScale:2 }
*/
discountedValue?: string | null;
/**
* Currency of the value in ISO 4217 format (e.g., "USD", "EUR").
* @format CURRENCY
*/
currency?: string | null;
/**
* Pricing plan ID.
* @format GUID
*/
pricingPlanId?: string | null;
}
interface VideoData {
/** Styling for the video's container. */
containerData?: PluginContainerData;
/** Video details. */
video?: Media;
/** Video thumbnail details. */
thumbnail?: Media;
/** Sets whether the video's download button is disabled. Defaults to `false`. */
disableDownload?: boolean | null;
/** Video title. */
title?: string | null;
/** Video options. */
options?: PlaybackOptions;
/** Node animation. */
animation?: Animation;
}
interface PlaybackOptions {
/** Sets whether the media will automatically start playing. */
autoPlay?: boolean | null;
/** Sets whether media's will be looped. */
playInLoop?: boolean | null;
/** Sets whether media's controls will be shown. */
showControls?: boolean | null;
}
interface EmbedData {
/** Styling for the oEmbed node's container. */
containerData?: PluginContainerData;
/** An [oEmbed](https://www.oembed.com) object. */
oembed?: Oembed;
/** Origin asset source. */
src?: string | null;
/** Node animation. */
animation?: Animation;
}
interface Oembed {
/** The resource type. */
type?: string | null;
/** The width of the resource specified in the `url` property in pixels. */
width?: number | null;
/** The height of the resource specified in the `url` property in pixels. */
height?: number | null;
/** Resource title. */
title?: string | null;
/** The source URL for the resource. */
url?: string | null;
/** HTML for embedding a video player. The HTML should have no padding or margins. */
html?: string | null;
/** The name of the author or owner of the resource. */
authorName?: string | null;
/** The URL for the author or owner of the resource. */
authorUrl?: string | null;
/** The name of the resource provider. */
providerName?: string | null;
/** The URL for the resource provider. */
providerUrl?: string | null;
/** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
thumbnailUrl?: string | null;
/** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
thumbnailWidth?: string | null;
/** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
thumbnailHeight?: string | null;
/** The URL for an embedded viedo. */
videoUrl?: string | null;
/** The oEmbed version number. This value must be `1.0`. */
version?: string | null;
}
interface CollapsibleListData {
/** Styling for the collapsible list's container. */
containerData?: PluginContainerData;
/** If `true`, only one item can be expanded at a time. Defaults to `false`. */
expandOnlyOne?: boolean | null;
/** Sets which items are expanded when the page loads. */
initialExpandedItems?: InitialExpandedItemsWithLiterals;
/** The direction of the text in the list. Either left-to-right or right-to-left. */
direction?: DirectionWithLiterals;
/** If `true`, The collapsible item will appear in search results as an FAQ. */
isQapageData?: boolean | null;
/** Node animation. */
animation?: Animation;
}
declare enum InitialExpandedItems {
/** First item will be expended initally */
FIRST = "FIRST",
/** All items will expended initally */
ALL = "ALL",
/** All items collapsed initally */
NONE = "NONE"
}
/** @enumType */
type InitialExpandedItemsWithLiterals = InitialExpandedItems | 'FIRST' | 'ALL' | 'NONE';
declare enum Direction {
/** Left-to-right */
LTR = "LTR",
/** Right-to-left */
RTL = "RTL"
}
/** @enumType */
type DirectionWithLiterals = Direction | 'LTR' | 'RTL';
interface TableData {
/** Styling for the table's container. */
containerData?: PluginContainerData;
/** The table's dimensions. */
dimensions?: Dimensions;
/**
* Deprecated: Use `rowHeader` and `columnHeader` instead.
* @deprecated
*/
header?: boolean | null;
/** Sets whether the table's first row is a header. Defaults to `false`. */
rowHeader?: boolean | null;
/** Sets whether the table's first column is a header. Defaults to `false`. */
columnHeader?: boolean | null;
/** The spacing between cells in pixels. Defaults to `0`. */
cellSpacing?: number | null;
/**
* Padding in pixels for cells. Follows CSS order: top, right, bottom, left.
* @maxSize 4
*/
cellPadding?: number[];
/** Table's alternative text. */
altText?: string | null;
/** Node animation. */
animation?: Animation;
}
interface Dimensions {
/** An array representing relative width of each column in relation to the other columns. */
colsWidthRatio?: number[];
/** An array representing the height of each row in pixels. */
rowsHeight?: number[];
/** An array representing the minimum width of each column in pixels. */
colsMinWidth?: number[];
}
interface TableCellData {
/** Styling for the cell's background color and text alignment. */
cellStyle?: CellStyle;
/** The cell's border colors. */
borderColors?: BorderColors;
/** Defines how many columns the cell spans. Default: 1. */
colspan?: number | null;
/** Defines how many rows the cell spans. Default: 1. */
rowspan?: number | null;
/** The cell's border widths. */
borderWidths?: BorderWidths;
}
declare enum VerticalAlignment {
/** Top alignment */
TOP = "TOP",
/** Middle alignment */
MIDDLE = "MIDDLE",
/** Bottom alignment */
BOTTOM = "BOTTOM"
}
/** @enumType */
type VerticalAlignmentWithLiterals = VerticalAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
interface CellStyle {
/** Vertical alignment for the cell's text. */
verticalAlignment?: VerticalAlignmentWithLiterals;
/**
* Cell background color as a hexadecimal value.
* @maxLength 19
*/
backgroundColor?: string | null;
}
interface BorderColors {
/**
* Left border color as a hexadecimal value.
* @maxLength 19
*/
left?: string | null;
/**
* Right border color as a hexadecimal value.
* @maxLength 19
*/
right?: string | null;
/**
* Top border color as a hexadecimal value.
* @maxLength 19
*/
top?: string | null;
/**
* Bottom border color as a hexadecimal value.
* @maxLength 19
*/
bottom?: string | null;
}
interface BorderWidths {
/** Left border width in pixels. */
left?: number | null;
/** Right border width in pixels. */
right?: number | null;
/** Top border width in pixels. */
top?: number | null;
/** Bottom border width in pixels. */
bottom?: number | null;
}
/**
* `NullValue` is a singleton enumeration to represent the null value for the
* `Value` type union.
*
* The JSON representation for `NullValue` is JSON `null`.
*/
declare enum NullValue {
/** Null value. */
NULL_VALUE = "NULL_VALUE"
}
/** @enumType */
type NullValueWithLiterals = NullValue | 'NULL_VALUE';
/**
* `ListValue` is a wrapper around a repeated field of values.
*
* The JSON representation for `ListValue` is JSON array.
*/
interface ListValue {
/** Repeated field of dynamically typed values. */
values?: any[];
}
interface AudioData {
/** Styling for the audio node's container. */
containerData?: PluginContainerData;
/** Audio file details. */
audio?: Media;
/** Sets whether the audio node's download button is disabled. Defaults to `false`. */
disableDownload?: boolean | null;
/** Cover image. */
coverImage?: Media;
/** Track name. */
name?: string | null;
/** Author name. */
authorName?: string | null;
/** An HTML version of the audio node. */
html?: string | null;
/** Node animation. */
animation?: Animation;
}
interface OrderedListData {
/** Indentation level from 0-4. */
indentation?: number;
/** Offset level from 0-4. */
offset?: number | null;
/** List start number. */
start?: number | null;
/** Node animation. */
animation?: Animation;
}
interface BulletedListData {
/** Indentation level from 0-4. */
indentation?: number;
/** Offset level from 0-4. */
offset?: number | null;
/** Node animation. */
animation?: Animation;
}
interface BlockquoteData {
/** Indentation level from 1-4. */
indentation?: number;
/** Node animation. */
animation?: Animation;
}
interface CaptionData {
textStyle?: TextStyle;
}
interface LayoutData {
/**
* Deprecated: Use `background` instead.
* @maxLength 19
* @deprecated
*/
backgroundColor?: string | null;
/** Background image. */
backgroundImage?: LayoutDataBackgroundImage;
/**
* Border color as a hexadecimal value.
* @maxLength 19
*/
borderColor?: string | null;
/** Border width in pixels. */
borderWidth?: number | null;
/** Border radius in pixels. */
borderRadius?: number | null;
/**
* Deprecated: Use `backdrop` instead.
* @maxLength 19
* @deprecated
*/
backdropColor?: string | null;
/** Backdrop image. */
backdropImage?: LayoutDataBackgroundImage;
/** Backdrop top padding. */
backdropPaddingTop?: number | null;
/** Backdrop bottom padding */
backdropPaddingBottom?: number | null;
/** Horizontal and vertical gap between columns */
gap?: number | null;
/**
* Padding in pixels for cells. Follows CSS order: top, right, bottom, left
* @maxSize 4
*/
cellPadding?: number[];
/** Vertical alignment for the cell's items. */
cellVerticalAlignment?: VerticalAlignmentAlignmentWithLiterals;
/** Responsiveness behaviour of columns when responsiveness applies. Either stacks or wrappers. */
responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;
/** Size in pixels when responsiveness_behaviour applies */
responsivenessBreakpoint?: number | null;
/** Styling for the layout's container. */
containerData?: PluginContainerData;
/** Defines where selected design propertied applies to */
designTarget?: DesignTargetWithLiterals;
/** Where this layout sits: an edge banner, or the paywall cut. One field, so the two can never be combined. */
banner?: Banner;
/** Background styling (color or gradient). */
background?: LayoutDataBackground;
/** Backdrop styling (color or gradient). */
backdrop?: Backdrop;
/** Node animation. */
animation?: Animation;
/** Shape divider at the top edge of the layout. */
topDivider?: SectionDivider;
/** Shape divider at the bottom edge of the layout. */
bottomDivider?: SectionDivider;
}
declare enum ImageScalingScaling {
/** Auto image scaling */
AUTO = "AUTO",
/** Contain image scaling */
CONTAIN = "CONTAIN",
/** Cover image scaling */
COVER = "COVER"
}
/** @enumType */
type ImageScalingScalingWithLiterals = ImageScalingScaling | 'AUTO' | 'CONTAIN' | 'COVER';
declare enum ImagePosition {
/** Image positioned at the center */
CENTER = "CENTER",
/** Image positioned on the left */
CENTER_LEFT = "CENTER_LEFT",
/** Image positioned on the right */
CENTER_RIGHT = "CENTER_RIGHT",
/** Image positioned at the center top */
TOP = "TOP",
/** Image positioned at the top left */
TOP_LEFT = "TOP_LEFT",
/** Image positioned at the top right */
TOP_RIGHT = "TOP_RIGHT",
/** Image positioned at the center bottom */
BOTTOM = "BOTTOM",
/** Image positioned at the bottom left */
BOTTOM_LEFT = "BOTTOM_LEFT",
/** Image positioned at the bottom right */
BOTTOM_RIGHT = "BOTTOM_RIGHT"
}
/** @enumType */
type ImagePositionWithLiterals = ImagePosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
/** Background styling (color or gradient) */
interface LayoutDataBackground {
/** Background type. */
type?: LayoutDataBackgroundTypeWithLiterals;
/**
* Background color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
/** Gradient configuration. */
gradient?: Gradient;
}
/** Background type */
declare enum LayoutDataBackgroundType {
/** Solid color background */
COLOR = "COLOR",
/** Gradient background */
GRADIENT = "GRADIENT"
}
/** @enumType */
type LayoutDataBackgroundTypeWithLiterals = LayoutDataBackgroundType | 'COLOR' | 'GRADIENT';
declare enum Origin {
/** Banner originated from an image */
IMAGE = "IMAGE",
/** Banner originated from a layout */
LAYOUT = "LAYOUT"
}
/** @enumType */
type OriginWithLiterals = Origin | 'IMAGE' | 'LAYOUT';
declare enum BannerPosition {
/** Attached to the top edge (banner). The default, so a banner written before this field existed decodes as TOP. */
TOP = "TOP",
/** Attached to the bottom edge (footer). */
BOTTOM = "BOTTOM",
/** The cut between free and paid content, not an edge banner. `origin` carries no meaning for it. */
PAYWALL = "PAYWALL"
}
/** @enumType */
type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM' | 'PAYWALL';
/** How the stacked layers fade relative to the base shape. Named for a bottom divider; top dividers render mirrored, so the visual fade flips. */
declare enum LayerEffect {
/** Shape keeps its height, a solid filler bar pushes it away from the edge */
CENTER = "CENTER",
/** 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 */
FADE_TO_TOP = "FADE_TO_TOP",
/** 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 */
FADE_TO_BOTTOM = "FADE_TO_BOTTOM"
}
/** @enumType */
type LayerEffectWithLiterals = LayerEffect | 'CENTER' | 'FADE_TO_TOP' | 'FADE_TO_BOTTOM';
/** Divider shape preset */
declare enum Shape {
/** Ellipse shape */
ELLIPSE = "ELLIPSE",
/** Tilt shape */
TILT = "TILT",
/** Liquid shape */
LIQUID = "LIQUID",
/** Left wave shape */
LEFT_WAVE = "LEFT_WAVE",
/** Paint scribble shape */
PAINT_SCRIBBLE = "PAINT_SCRIBBLE",
/** Inverted ellipse shape */
INVERTED_ELLIPSE = "INVERTED_ELLIPSE",
/** Right wave shape */
RIGHT_WAVE = "RIGHT_WAVE",
/** Dunes shape */
DUNES = "DUNES",
/** Waves shape */
WAVES = "WAVES",
/** Triangle shape */
TRIANGLE = "TRIANGLE",
/** Semi-ellipse shape */
SEMI_ELLIPSE = "SEMI_ELLIPSE",
/** Plants shape */
PLANTS = "PLANTS",
/** Layered ellipse shape */
LAYERED_ELLIPSE = "LAYERED_ELLIPSE",
/** Pixels shape */
PIXELS = "PIXELS",
/** Paint shape */
PAINT = "PAINT",
/** Clouds shape */
CLOUDS = "CLOUDS",
/** Optical illusion shape */
OPTICAL_ILLUSION = "OPTICAL_ILLUSION",
/** Stripes shape */
STRIPES = "STRIPES",
/** Blobs shape */
BLOBS = "BLOBS",
/** Semi-circles shape */
SEMI_CIRCLES = "SEMI_CIRCLES",
/** Hill shape */
HILL = "HILL",
/** Brush shape */
BRUSH = "BRUSH",
/** Peaks shape */
PEAKS = "PEAKS",
/** Angled triangle shape */
ANGLED_TRIANGLE = "ANGLED_TRIANGLE"
}
/** @enumType */
type ShapeWithLiterals = Shape | 'ELLIPSE' | 'TILT' | 'LIQUID' | 'LEFT_WAVE' | 'PAINT_SCRIBBLE' | 'INVERTED_ELLIPSE' | 'RIGHT_WAVE' | 'DUNES' | 'WAVES' | 'TRIANGLE' | 'SEMI_ELLIPSE' | 'PLANTS' | 'LAYERED_ELLIPSE' | 'PIXELS' | 'PAINT' | 'CLOUDS' | 'OPTICAL_ILLUSION' | 'STRIPES' | 'BLOBS' | 'SEMI_CIRCLES' | 'HILL' | 'BRUSH' | 'PEAKS' | 'ANGLED_TRIANGLE';
/** Layers effect - stacked semi-transparent copies of the divider shape */
interface Layers {
/** Total number of layers including the base shape (1-4). Absent or 1 disables the effect. */
count?: number | null;
/** 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. */
offsetY?: number | null;
/** How the stacked layers fade relative to the base shape. */
layerEffect?: LayerEffectWithLiterals;
/** Horizontal distance between consecutive layers in pixels. Defaults to 0. Only applies to shapes that support horizontal offset. */
offsetX?: number | null;
}
/** Backdrop type */
declare enum BackdropType {
/** Solid color backdrop */
COLOR = "COLOR",
/** Gradient backdrop */
GRADIENT = "GRADIENT"
}
/** @enumType */
type BackdropTypeWithLiterals = BackdropType | 'COLOR' | 'GRADIENT';
interface LayoutDataBackgroundImage {
/** Background image. */
media?: Media;
/**
* Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background`/`backdrop` color behind it.
* @deprecated
*/
opacity?: number | null;
/** Background image scaling. */
scaling?: ImageScalingScalingWithLiterals;
/** Position of background. Defaults to `CENTER`. */
position?: ImagePositionWithLiterals;
/** 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. */
blur?: number | null;
/** 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`). */
overlay?: LayoutDataBackground;
}
declare enum VerticalAlignmentAlignment {
/** Top alignment */
TOP = "TOP",
/** Middle alignment */
MIDDLE = "MIDDLE",
/** Bottom alignment */
BOTTOM = "BOTTOM"
}
/** @enumType */
type VerticalAlignmentAlignmentWithLiterals = VerticalAlignmentAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
declare enum ResponsivenessBehaviour {
/** Stacking of columns */
STACK = "STACK",
/** Wrapping of columns */
WRAP = "WRAP"
}
/** @enumType */
type ResponsivenessBehaviourWithLiterals = ResponsivenessBehaviour | 'STACK' | 'WRAP';
declare enum DesignTarget {
/** Design applied to layout */
LAYOUT = "LAYOUT",
/** Design applied to cells */
CELL = "CELL"
}
/** @enumType */
type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
interface Banner extends BannerOriginPresenceOneOf {
/** Origin of the banner. Edge positions only. */
origin?: OriginWithLiterals;
/** Where the layout sits: an edge, or the paywall cut. */
position?: BannerPositionWithLiterals;
}
/** @oneof */
interface BannerOriginPresenceOneOf {
/** Origin of the banner. Edge positions only. */
origin?: OriginWithLiterals;
}
/** Backdrop styling (color or gradient) */
interface Backdrop {
/** Backdrop type. */
type?: BackdropTypeWithLiterals;
/**
* Backdrop color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
/** Gradient configuration. */
gradient?: Gradient;
}
/** Decorative shape divider at a layout edge */
interface SectionDivider {
/** Divider shape preset. Determines which customization properties apply. */
type?: ShapeWithLiterals;
/**
* Divider fill color as a hexadecimal value (may include alpha).
* @maxLength 19
*/
color?: string | null;
/** Divider height in pixels. */
height?: number | null;
/** Horizontal offset in pixels. */
offsetX?: number | null;
/** Whether the shape is flipped horizontally. */
flipped?: boolean | null;
/** Layers effect - stacked semi-transparent copies of the divider shape. */
layers?: Layers;
}
interface LayoutCellData {
/** Size of the cell in 12 columns grid. */
colSpan?: number | null;
}
interface ShapeData {
/** Styling for the shape's container. */
containerData?: PluginContainerData;
/** Shape file details. */
shape?: Media;
/** Styling for the shape. */
styles?: ShapeDataStyles;
/** Node animation. */
animation?: Animation;
/** Link details for shapes that are links. */
link?: Link;
/**
* Alternate text describing the link's purpose for accessibility. Applies only when `link` is set.
* @maxLength 1000
*/
altText?: string | null;
}
interface ShapeDataStyles {
/**
* Shape fill color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
/** Map of original color keys to their new color values. */
colors?: Record;
}
interface CardData {
/** Background styling (color or gradient). */
background?: CardDataBackground;
/** Background image. */
backgroundImage?: BackgroundImage;
}
declare enum Scaling {
/** Auto image scaling */
AUTO = "AUTO",
/** Contain image scaling */
CONTAIN = "CONTAIN",
/** Cover image scaling */
COVER = "COVER"
}
/** @enumType */
type ScalingWithLiterals = Scaling | 'AUTO' | 'CONTAIN' | 'COVER';
declare enum ImagePositionPosition {
/** Image positioned at the center */
CENTER = "CENTER",
/** Image positioned on the left */
CENTER_LEFT = "CENTER_LEFT",
/** Image positioned on the right */
CENTER_RIGHT = "CENTER_RIGHT",
/** Image positioned at the center top */
TOP = "TOP",
/** Image positioned at the top left */
TOP_LEFT = "TOP_LEFT",
/** Image positioned at the top right */
TOP_RIGHT = "TOP_RIGHT",
/** Image positioned at the center bottom */
BOTTOM = "BOTTOM",
/** Image positioned at the bottom left */
BOTTOM_LEFT = "BOTTOM_LEFT",
/** Image positioned at the bottom right */
BOTTOM_RIGHT = "BOTTOM_RIGHT"
}
/** @enumType */
type ImagePositionPositionWithLiterals = ImagePositionPosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
/** Background styling (color or gradient) */
interface CardDataBackground {
/** Background type. */
type?: CardDataBackgroundTypeWithLiterals;
/**
* Background color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
/** Gradient configuration. */
gradient?: Gradient;
}
/** Background type */
declare enum CardDataBackgroundType {
/** Solid color background */
COLOR = "COLOR",
/** Gradient background */
GRADIENT = "GRADIENT"
}
/** @enumType */
type CardDataBackgroundTypeWithLiterals = CardDataBackgroundType | 'COLOR' | 'GRADIENT';
interface BackgroundImage {
/** Background image. */
media?: Media;
/**
* Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background` color behind it.
* @deprecated
*/
opacity?: number | null;
/** Background image scaling. */
scaling?: ScalingWithLiterals;
/** Position of background. Defaults to `CENTER`. */
position?: ImagePositionPositionWithLiterals;
/** 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`). */
overlay?: CardDataBackground;
/** 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. */
blur?: number | null;
}
interface TocData {
/** Heading levels included in the table of contents. Default: [1, 2, 3, 4, 5, 6]. */
includedHeadings?: number[];
/** List style. Default: PLAIN. */
listStyle?: ListStyleWithLiterals;
/** Optional override for the font size in pixels. */
fontSize?: number | null;
/** Optional override for the vertical spacing between items in pixels. */
itemSpacing?: number | null;
/**
* Optional override for the text color.
* @maxLength 19
*/
color?: string | null;
/** Indentation style. Default: NESTED. */
indentation?: IndentationWithLiterals;
/** Node animation. */
animation?: Animation;
}
/** List style. */
declare enum ListStyle {
/** No markers (default) */
PLAIN = "PLAIN",
/** Numbered list */
NUMBERED = "NUMBERED",
/** Alphabetic letters */
LETTERS = "LETTERS",
/** Roman numerals */
ROMAN = "ROMAN",
/** Bulleted list */
BULLETED = "BULLETED",
/** Alphabetical index */
ALPHABETICAL_INDEX = "ALPHABETICAL_INDEX",
/** Alphabetical index (compact top-row only) */
ALPHABETICAL_INDEX_COMPACT = "ALPHABETICAL_INDEX_COMPACT"
}
/** @enumType */
type ListStyleWithLiterals = ListStyle | 'PLAIN' | 'NUMBERED' | 'LETTERS' | 'ROMAN' | 'BULLETED' | 'ALPHABETICAL_INDEX' | 'ALPHABETICAL_INDEX_COMPACT';
/** Indentation style. */
declare enum Indentation {
/** Sub-headings indented under parents (default) */
NESTED = "NESTED",
/** All items at the same level */
FLAT = "FLAT"
}
/** @enumType */
type IndentationWithLiterals = Indentation | 'NESTED' | 'FLAT';
/** Data for a smart block node. */
interface SmartBlockData {
/** The type of the smart block. */
type?: SmartBlockDataTypeWithLiterals;
/** Layout orientation. HORIZONTAL or VERTICAL. Optional for variants with fixed orientation. */
orientation?: string | null;
/** Column size controlling cells per row. */
columnSize?: ColumnSizeWithLiterals;
/**
* Border color (for SOLID_JOINED_BOXES variant).
* @maxLength 19
*/
borderColor?: string | null;
/** Border width in pixels (for SOLID_JOINED_BOXES variant). */
borderWidth?: number | null;
/** Border radius in pixels (for SOLID_JOINED_BOXES variant). */
borderRadius?: number | null;
/** Node animation. */
animation?: Animation;
}
/** Layout type of the smart block */
declare enum SmartBlockDataType {
/** Grid-based layouts with solid box items containing title, body, and icon/image. */
SOLID_BOXES = "SOLID_BOXES",
/** Numbered boxes. */
NUMBERED_BOXES = "NUMBERED_BOXES",
/** Statistics display with large numbers/values. */
STATS = "STATS",
/** Statistics with circular visual elements. */
CIRCLE_STATS = "CIRCLE_STATS",
/** Staggered/zigzag grid layout with alternating box positions. */
SOLID_BOXES_ALTERNATING = "SOLID_BOXES_ALTERNATING",
/** Grid layout with boxes visually joined (no gaps, shared container border). */
SOLID_JOINED_BOXES = "SOLID_JOINED_BOXES",
/** Transparent cells with only a left side line. */
SIDE_LINE_TEXT = "SIDE_LINE_TEXT",
/** Transparent cells with only a top line. */
TOP_LINE_TEXT = "TOP_LINE_TEXT",
/** Outlined boxes with a numbered/icon circle at the top. */
OUTLINE_BOXES_WITH_TOP_CIRCLE = "OUTLINE_BOXES_WITH_TOP_CIRCLE",
/** Large icon bullets with text content. */
BIG_BULLETS = "BIG_BULLETS",
/** Small dot bullets with text content. */
SMALL_BULLETS = "SMALL_BULLETS",
/** Arrow icon bullets with text content. */
ARROW_BULLETS = "ARROW_BULLETS",
/** Process steps with numbered/icon labels above a horizontal line. */
PROCESS_STEPS = "PROCESS_STEPS",
/** Statistics with bar visual elements. */
BAR_STATS = "BAR_STATS",
/** Timeline layout with numbered chips on a connecting line; cells alternate around the line. */
TIMELINE = "TIMELINE",
/** Timeline layout with plain dot indicators; no numbers or shapes; cells alternate around the line. */
MINIMAL_TIMELINE = "MINIMAL_TIMELINE",
/** Numbered pill-shaped labels (stadium chips) with text content; supports HORIZONTAL (pill on top) and VERTICAL (pill on left) orientations. */
PILLS = "PILLS",
/** Star rating display with stars and a numeric value per cell. */
STAR_RATING = "STAR_RATING",
/** Outlined boxes with decorative quote glyphs at the top-left and bottom-right corners. */
QUOTE_BOXES = "QUOTE_BOXES",
/** Donut/ring with numbered annular-sector segments; cell text labels sit outside the ring. */
CIRCLE = "CIRCLE",
/** 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. */
PYRAMID = "PYRAMID",
/** Cells render a horizontal bar whose width scales with cell index, creating a staircase pattern; bar carries the cell number or a custom shape. */
STAIRCASE = "STAIRCASE",
/** 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. */
VERTICAL_FUNNEL = "VERTICAL_FUNNEL"
}
/** @enumType */
type SmartBlockDataTypeWithLiterals = SmartBlockDataType | 'SOLID_BOXES' | 'NUMBERED_BOXES' | 'STATS' | 'CIRCLE_STATS' | 'SOLID_BOXES_ALTERNATING' | 'SOLID_JOINED_BOXES' | 'SIDE_LINE_TEXT' | 'TOP_LINE_TEXT' | 'OUTLINE_BOXES_WITH_TOP_CIRCLE' | 'BIG_BULLETS' | 'SMALL_BULLETS' | 'ARROW_BULLETS' | 'PROCESS_STEPS' | 'BAR_STATS' | 'TIMELINE' | 'MINIMAL_TIMELINE' | 'PILLS' | 'STAR_RATING' | 'QUOTE_BOXES' | 'CIRCLE' | 'PYRAMID' | 'STAIRCASE' | 'VERTICAL_FUNNEL';
/** Column size controlling how many cells appear per row. */
declare enum ColumnSize {
/** Up to 4 cells in a row. */
SMALL = "SMALL",
/** Up to 3 cells in a row (default). */
MEDIUM = "MEDIUM",
/** Up to 2 cells in a row. */
LARGE = "LARGE",
/** 1 cell in a row. */
EXTRA_LARGE = "EXTRA_LARGE"
}
/** @enumType */
type ColumnSizeWithLiterals = ColumnSize | 'SMALL' | 'MEDIUM' | 'LARGE' | 'EXTRA_LARGE';
/** Data for a smart block cell node. */
interface SmartBlockCellData {
/** Optional label text for the cell (e.g., for stats variants). */
label?: string | null;
/** Shape file details. */
shape?: Media;
/**
* Border color of the cell.
* @maxLength 19
*/
borderColor?: string | null;
/** Border width in pixels. */
borderWidth?: number | null;
/** Border radius in pixels. */
borderRadius?: number | null;
/** The type of the parent smart block (must match parent). */
type?: SmartBlockDataTypeWithLiterals;
/**
* Accent color for non-background variants (e.g., line, bullet, label color).
* @maxLength 19
*/
accentColor?: string | null;
/**
* Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES).
* @maxLength 19
*/
backgroundColor?: string | null;
/**
* Shape fill color as a hexadecimal value.
* @maxLength 19
*/
shapeColor?: string | null;
}
interface CheckboxListData {
/** Indentation level from 0-4. */
indentation?: number;
/** Offset level from 0-4. */
offset?: number | null;
/** Node animation. */
animation?: Animation;
}
interface ListItemNodeData {
/** Checkbox list item state. Defaults to `false`. */
checked?: boolean | null;
/** Node animation. */
animation?: Animation;
/** Styling of the list item's marker (bullet or number), independent of the item's text. Unset properties follow the item's text. */
markerStyle?: ListItemMarkerStyle;
}
interface ListItemMarkerStyle {
/** Marker font size. */
fontSize?: FontSizeData;
/** Marker font weight, for example `700` for bold. */
fontWeight?: number | null;
/** Whether the marker is italic. */
italic?: boolean | null;
/** Marker color. */
color?: ListItemMarkerColor;
/** Marker font family. */
fontFamily?: FontFamilyData;
}
interface ListItemMarkerColor {
/** Marker fill styling. */
foregroundStyle?: ListItemMarkerColorBackground;
}
/** Background type */
declare enum ListItemMarkerColorBackgroundType {
/** Solid color */
COLOR = "COLOR"
}
/** @enumType */
type ListItemMarkerColorBackgroundTypeWithLiterals = ListItemMarkerColorBackgroundType | 'COLOR';
/** Fill styling: a solid color, shaped as `ColorData.Background` so other fills can be added later */
interface ListItemMarkerColorBackground {
/** Background type. */
type?: ListItemMarkerColorBackgroundTypeWithLiterals;
/**
* Color as a hexadecimal value.
* @maxLength 19
*/
color?: string | null;
}
interface SlotData {
/** Integration type, for example `wix.forms.form`. Used to render the slot in the editor and viewer. */
integrationType?: string | null;
/** ID of the resource the slot renders, for example a form ID. Passed as-is to the integration. */
resourceId?: string | null;
/** Node animation. */
animation?: Animation;
/** Design overrides for this slot. Unset colours use the Ricos theme; unset sizes default to 0. */
design?: SlotDesign;
}
interface SlotDesign {
/** Text colour: CSS colour or `$theme-color-N[-opacity]` token. */
textColor?: string | null;
/** Accent colour. */
accentColor?: string | null;
/** Button background colour. */
buttonColor?: string | null;
/** Button text colour. */
buttonTextColor?: string | null;
/** Block background colour. */
backgroundColor?: string | null;
/** Block border colour. */
borderColor?: string | null;
/** Block border width, px. */
borderWidth?: number | null;
/** Block corner radius, px. */
borderRadius?: number | null;
/** Horizontal inner padding, px. */
paddingHorizontal?: number | null;
/** Vertical inner padding, px. */
paddingVertical?: number | null;
/** Vertical gap between rows, px. */
rowGap?: number | null;
/** Horizontal gap between columns, px. */
columnGap?: number | null;
}
interface Metadata {
/** Schema version. */
version?: number;
/**
* When the object was created.
* @readonly
* @deprecated
*/
createdTimestamp?: Date | null;
/**
* When the object was most recently updated.
* @deprecated
*/
updatedTimestamp?: Date | null;
/** Object ID. */
_id?: string | null;
}
interface DocumentStyle {
/** Styling for H1 nodes. */
headerOne?: TextNodeStyle;
/** Styling for H2 nodes. */
headerTwo?: TextNodeStyle;
/** Styling for H3 nodes. */
headerThree?: TextNodeStyle;
/** Styling for H4 nodes. */
headerFour?: TextNodeStyle;
/** Styling for H5 nodes. */
headerFive?: TextNodeStyle;
/** Styling for H6 nodes. */
headerSix?: TextNodeStyle;
/** Styling for paragraph nodes. */
paragraph?: TextNodeStyle;
/** Styling for block quote nodes. */
blockquote?: TextNodeStyle;
/** Styling for code block nodes. */
codeBlock?: TextNodeStyle;
}
interface TextNodeStyle {
/** The decorations to apply to the node. */
decorations?: Decoration[];
/** Padding and background color for the node. */
nodeStyle?: NodeStyle;
/** Line height for text in the node. */
lineHeight?: string | null;
}
interface Mention extends MentionIdentityOneOf {
/**
* Wix user ID.
* @format GUID
*/
userId?: string | null;
/**
* Member ID. See the Members API for more details.
* @format GUID
*/
memberId?: string | null;
/**
* Visitor ID.
* @format GUID
*/
visitorId?: string | null;
/**
* Group ID. See the Groups API for more details.
* @format GUID
*/
groupId?: string | null;
}
/** @oneof */
interface MentionIdentityOneOf {
/**
* Wix user ID.
* @format GUID
*/
userId?: string | null;
/**
* Member ID. See the Members API for more details.
* @format GUID
*/
memberId?: string | null;
/**
* Visitor ID.
* @format GUID
*/
visitorId?: string | null;
/**
* Group ID. See the Groups API for more details.
* @format GUID
*/
groupId?: string | null;
}
interface Attachment extends AttachmentMediaOneOf {
/** Information about the image. */
image?: string;
/** Information about the video. */
video?: string;
/** Information about the audio. */
audio?: string;
/** Information about the document. */
document?: string;
/**
* Mime type of attachment.
* @maxLength 3000
*/
mimeType?: string | null;
}
/** @oneof */
interface AttachmentMediaOneOf {
/** Information about the image. */
image?: string;
/** Information about the video. */
video?: string;
/** Information about the audio. */
audio?: string;
/** Information about the document. */
document?: string;
}
interface VideoResolution {
/** Video URL. */
url?: string;
/** Video height. */
height?: number;
/** Video width. */
width?: number;
/** Video format for example, mp4, hls. */
format?: string;
/**
* Video quality. For example: 480p, 720p.
* @readonly
*/
quality?: string | null;
/**
* Video filename.
* @readonly
*/
filename?: string | null;
/**
* Video duration in seconds.
* @readonly
*/
durationInSeconds?: number | null;
/**
* When true, this is a protected asset, and calling the URL will return a 403 error.
* In order to access private assets, make a request to:
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
* @readonly
*/
private?: boolean | null;
/**
* Key to identify the video resolution's relationship to the original media in WixMedia.
* Can be used to request a download for the specific video resolution.
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
* @readonly
*/
assetKey?: string | null;
}
interface ContentAuthor extends ContentAuthorAuthorOneOf {
/**
* Wix user ID.
* @format GUID
*/
userId?: string | null;
/**
* Member ID. See the Members API for more details.
* @format GUID
*/
memberId?: string | null;
/**
* Visitor ID.
* @format GUID
*/
visitorId?: string | null;
/**
* Application ID. For more information, see [Authenticate as an App Instance](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-as-an-app-instance).
* @format GUID
*/
appId?: string | null;
}
/** @oneof */
interface ContentAuthorAuthorOneOf {
/**
* Wix user ID.
* @format GUID
*/
userId?: string | null;
/**
* Member ID. See the Members API for more details.
* @format GUID
*/
memberId?: string | null;
/**
* Visitor ID.
* @format GUID
*/
visitorId?: string | null;
/**
* Application ID. For more information, see [Authenticate as an App Instance](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-as-an-app-instance).
* @format GUID
*/
appId?: string | null;
}
interface CommentAuthor extends CommentAuthorIdentityOneOf {
/**
* Wix user ID.
* @format GUID
*/
userId?: string | null;
/**
* Member ID. See the Members API for more details.
* @format GUID
*/
memberId?: string | null;
/**
* Visitor ID.
* @format GUID
*/
visitorId?: string | null;
/**
* Wix contact ID
* @internal
* @format GUID
*/
contactId?: string | null;
/**
* Name, optional, set by author
* @internal
* @maxLength 30
*/
authorName?: string | null;
}
/** @oneof */
interface CommentAuthorIdentityOneOf {
/**
* Wix user ID.
* @format GUID
*/
userId?: string | null;
/**
* Member ID. See the Members API for more details.
* @format GUID
*/
memberId?: string | null;
/**
* Visitor ID.
* @format GUID
*/
visitorId?: string | null;
}
interface ParentComment {
/**
* Comment ID of the parent comment.
* @format GUID
* @immutable
*/
_id?: string | null;
/**
* Author of the parent comment.
* @readonly
*/
author?: CommentAuthor;
/**
* Parent comment status.
* @readonly
*/
status?: StatusWithLiterals;
}
declare enum Status {
/** Unknown status. */
UNKNOWN = "UNKNOWN",
/** This comment is published and publicly visible. */
PUBLISHED = "PUBLISHED",
/** This comment is deleted. */
DELETED = "DELETED",
/** This comment is pending moderation. Moderation is not currently supported. */
PENDING = "PENDING",
/** This comment has been hidden by a site moderator. */
HIDDEN = "HIDDEN"
}
/** @enumType */
type StatusWithLiterals = Status | 'UNKNOWN' | 'PUBLISHED' | 'DELETED' | 'PENDING' | 'HIDDEN';
interface VoteSummary {
/** Number of upvotes less downvotes on this comment. */
netVoteCount?: number;
/** Number of upvotes on this comment. */
upvoteCount?: number;
/** Number of downvotes on this comment. */
downvoteCount?: number;
}
interface CommentReactionSummary {
/** Total amount of reactions. */
total?: number;
/**
* Number of each type of reaction. `key` is the code for a reaction type and
* `value` is the amount of that reaction type.
*/
reactionCodeCount?: Record;
}
interface InvalidateCache extends InvalidateCacheGetByOneOf {
/**
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
* @format GUID
*/
metaSiteId?: string;
/**
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
* @format GUID
*/
siteId?: string;
/** Invalidate by App */
app?: App;
/** Invalidate by page id */
page?: Page;
/** Invalidate by URI path */
uri?: URI;
/** Invalidate by file (for media files such as PDFs) */
file?: File;
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
customTag?: CustomTag;
/** Invalidate by multiple page ids */
pages?: Pages;
/** Invalidate by multiple URI paths */
uris?: URIs;
/**
* tell us why you're invalidating the cache. You don't need to add your app name
* @maxLength 256
*/
reason?: string | null;
/** Is local DS */
localDc?: boolean;
hardPurge?: boolean;
/**
* Optional caller-provided ID for tracking this invalidation through the system.
* When set, the corresponding CDN purge completion event will include this ID,
* allowing you to confirm when the invalidation has fully propagated.
* Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.
* @maxLength 256
*/
correlationId?: string | null;
}
/** @oneof */
interface InvalidateCacheGetByOneOf {
/**
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
* @format GUID
*/
metaSiteId?: string;
/**
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
* @format GUID
*/
siteId?: string;
/** Invalidate by App */
app?: App;
/** Invalidate by page id */
page?: Page;
/** Invalidate by URI path */
uri?: URI;
/** Invalidate by file (for media files such as PDFs) */
file?: File;
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
customTag?: CustomTag;
/** Invalidate by multiple page ids */
pages?: Pages;
/** Invalidate by multiple URI paths */
uris?: URIs;
}
interface App {
/**
* The AppDefId
* @minLength 1
*/
appDefId?: string;
/**
* The instance Id
* @format GUID
*/
instanceId?: string;
}
interface Page {
/**
* the msid the page is on
* @format GUID
*/
metaSiteId?: string;
/**
* Invalidate by Page ID
* @minLength 1
*/
pageId?: string;
}
interface URI {
/**
* the msid the URI is on
* @format GUID
*/
metaSiteId?: string;
/**
* URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
* @minLength 1
*/
uriPath?: string;
}
interface File {
/**
* the msid the file is related to
* @format GUID
*/
metaSiteId?: string;
/**
* Invalidate by filename (for media files such as PDFs)
* @minLength 1
* @maxLength 256
*/
fileName?: string;
}
interface CustomTag {
/**
* the msid the tag is related to
* @format GUID
*/
metaSiteId?: string;
/**
* Tag to invalidate by
* @minLength 1
* @maxLength 256
*/
tag?: string;
}
interface Pages {
/**
* the msid the pages are on
* @format GUID
*/
metaSiteId?: string;
/**
* Invalidate by multiple Page IDs in a single message
* @maxSize 100
* @minLength 1
*/
pageIds?: string[];
}
interface URIs {
/**
* the msid the URIs are on
* @format GUID
*/
metaSiteId?: string;
/**
* URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes
* @maxSize 100
* @minLength 1
*/
uriPaths?: string[];
}
interface CommentModerated {
comment?: Comment;
moderationAction?: ActionWithLiterals;
}
declare enum Action {
/** Unknown content. */
UNKNOWN = "UNKNOWN",
/** Approve draft content. */
APPROVE = "APPROVE",
/** Reject draft content. */
REJECT = "REJECT"
}
/** @enumType */
type ActionWithLiterals = Action | 'UNKNOWN' | 'APPROVE' | 'REJECT';
interface DomainEvent extends DomainEventBodyOneOf {
createdEvent?: EntityCreatedEvent;
updatedEvent?: EntityUpdatedEvent;
deletedEvent?: EntityDeletedEvent;
actionEvent?: ActionEvent;
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
_id?: string;
/**
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
*/
entityFqdn?: string;
/**
* Event action name, placed at the top level to make it easier for users to dispatch messages.
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
*/
slug?: string;
/** ID of the entity associated with the event. */
entityId?: string;
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
eventTime?: Date | null;
/**
* Whether the event was triggered as a result of a privacy regulation application
* (for example, GDPR).
*/
triggeredByAnonymizeRequest?: boolean | null;
/** If present, indicates the action that triggered the event. */
originatedFrom?: string | null;
/**
* 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.
* 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.
*/
entityEventSequence?: string | null;
}
/** @oneof */
interface DomainEventBodyOneOf {
createdEvent?: EntityCreatedEvent;
updatedEvent?: EntityUpdatedEvent;
deletedEvent?: EntityDeletedEvent;
actionEvent?: ActionEvent;
}
interface EntityCreatedEvent {
entity?: string;
}
interface RestoreInfo {
deletedDate?: Date | null;
}
interface EntityUpdatedEvent {
/**
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
*/
currentEntity?: string;
}
interface EntityDeletedEvent {
/** Entity that was deleted. */
deletedEntity?: string | null;
}
interface ActionEvent {
body?: string;
}
interface Empty {
}
interface MessageEnvelope {
/**
* App instance ID.
* @format GUID
*/
instanceId?: string | null;
/**
* Event type.
* @maxLength 150
*/
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
/** Stringify payload. */
data?: string;
/** Details related to the account */
accountInfo?: AccountInfo;
}
interface IdentificationData extends IdentificationDataIdOneOf {
/**
* ID of a site visitor that has not logged in to the site.
* @format GUID
*/
anonymousVisitorId?: string;
/**
* ID of a site visitor that has logged in to the site.
* @format GUID
*/
memberId?: string;
/**
* ID of a Wix user (site owner, contributor, etc.).
* @format GUID
*/
wixUserId?: string;
/**
* ID of an app.
* @format GUID
*/
appId?: string;
/** @readonly */
identityType?: WebhookIdentityTypeWithLiterals;
}
/** @oneof */
interface IdentificationDataIdOneOf {
/**
* ID of a site visitor that has not logged in to the site.
* @format GUID
*/
anonymousVisitorId?: string;
/**
* ID of a site visitor that has logged in to the site.
* @format GUID
*/
memberId?: string;
/**
* ID of a Wix user (site owner, contributor, etc.).
* @format GUID
*/
wixUserId?: string;
/**
* ID of an app.
* @format GUID
*/
appId?: string;
}
declare enum WebhookIdentityType {
UNKNOWN = "UNKNOWN",
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
MEMBER = "MEMBER",
WIX_USER = "WIX_USER",
APP = "APP"
}
/** @enumType */
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
interface AccountInfo {
/**
* ID of the Wix account associated with the event.
* @format GUID
*/
accountId?: string | null;
/**
* ID of the parent Wix account. Only included when accountId belongs to a child account.
* @format GUID
*/
parentAccountId?: string | null;
/**
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
* @format GUID
*/
siteId?: string | null;
}
interface UpdateInternalDocumentsEvent extends UpdateInternalDocumentsEventOperationOneOf {
/** insert/update documents */
update?: InternalDocumentUpdateOperation;
/** delete by document ids */
deleteByIds?: DeleteByIdsOperation;
/** delete documents matching filter */
deleteByFilter?: DeleteByFilterOperation;
/** update internal documents matching filter */
updateByFilter?: InternalDocumentUpdateByFilterOperation;
/** update only existing documents */
updateExisting?: InternalUpdateExistingOperation;
/** insert/update documents with versioning */
versionedUpdate?: VersionedDocumentUpdateOperation;
/** delete by document ids with versioning */
versionedDeleteByIds?: VersionedDeleteByIdsOperation;
/**
* type of the documents
* @minLength 2
*/
documentType?: string;
/**
* language of the documents (mandatory)
* @minLength 2
*/
language?: string | null;
/**
* one or more search documents
* @deprecated
*/
addDocuments?: InternalDocument[];
/**
* one or more ids of indexed documents to be removed. Removal will happen before addition (if both provided)
* @deprecated
*/
removeDocumentIds?: string[];
/** id to pass to processing notification */
correlationId?: string | null;
/** when event was created / issued */
issuedAt?: Date | null;
}
/** @oneof */
interface UpdateInternalDocumentsEventOperationOneOf {
/** insert/update documents */
update?: InternalDocumentUpdateOperation;
/** delete by document ids */
deleteByIds?: DeleteByIdsOperation;
/** delete documents matching filter */
deleteByFilter?: DeleteByFilterOperation;
/** update internal documents matching filter */
updateByFilter?: InternalDocumentUpdateByFilterOperation;
/** update only existing documents */
updateExisting?: InternalUpdateExistingOperation;
/** insert/update documents with versioning */
versionedUpdate?: VersionedDocumentUpdateOperation;
/** delete by document ids with versioning */
versionedDeleteByIds?: VersionedDeleteByIdsOperation;
}
interface InternalDocument {
/** document with mandatory fields (id) and with fields specific to the type of the document */
document?: Record | null;
}
interface InternalDocumentUpdateOperation {
/** documents to index or update */
documents?: InternalDocument[];
}
interface DeleteByIdsOperation {
/** ids of the documents to delete */
documentIds?: string[];
/**
* tenant id for custom tenancy strategy
* @minLength 2
* @maxLength 300
*/
tenantId?: string | null;
}
interface DeleteByFilterOperation {
/** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
filter?: Record | null;
/**
* tenant id for custom tenancy strategy
* @minLength 2
* @maxLength 300
*/
tenantId?: string | null;
}
interface InternalDocumentUpdateByFilterOperation {
/** documents matching this filter will be updated */
filter?: Record | null;
/** partial document to apply */
document?: InternalDocument;
/**
* tenant id for custom tenancy strategy
* @minLength 2
* @maxLength 300
*/
tenantId?: string | null;
}
interface InternalUpdateExistingOperation {
/** documents to update */
documents?: InternalDocument[];
}
interface VersionedDocumentUpdateOperation {
/** documents to create or overwrite */
documents?: InternalDocument[];
/** versioning mode to use instead of default */
versioningMode?: VersioningModeWithLiterals;
}
declare enum VersioningMode {
/** use default versioning mode agreed with search team */
DEFAULT = "DEFAULT",
/** execute only if version is greater than existing */
GREATER_THAN = "GREATER_THAN",
/** execute only if version is greater or equal to existing */
GREATER_OR_EQUAL = "GREATER_OR_EQUAL"
}
/** @enumType */
type VersioningModeWithLiterals = VersioningMode | 'DEFAULT' | 'GREATER_THAN' | 'GREATER_OR_EQUAL';
interface VersionedDeleteByIdsOperation {
/** ids with version of the documents to delete */
documentIds?: VersionedDocumentId[];
/**
* tenant id for custom tenancy strategy
* @minLength 2
* @maxLength 300
*/
tenantId?: string | null;
}
interface VersionedDocumentId {
/** document id */
documentId?: string;
/** document version */
version?: string;
/** versioning mode to use instead of default */
versioningMode?: VersioningModeWithLiterals;
}
interface CreateCommentRequest {
/** Comment to create. */
comment?: Comment;
/**
* Contact details of the comment author, used for guest comments
* when the author isn't a site member. Write-only: accepted on creation
* and never returned in read responses.
*/
contactDetails?: ContactDetails;
/**
* Captcha token
* @internal
*/
captchaToken?: string | null;
/**
* Skip filters flag
* @internal
*/
skipFilters?: boolean | null;
}
interface ContactDetails {
/**
* Email address of the guest comment author. Write-only:
* accepted on comment creation and never returned in read responses.
* @format EMAIL
* @maxLength 300
*/
email?: string | null;
}
interface CreateCommentResponse {
/** Created comment. */
comment?: Comment;
}
interface ResourceCommentCountChanged {
/** ID of the app that the comment is added to. */
appId?: string;
/**
* ID of the specific context the comment is in response to.
*
* Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum, the `forumPostId` is used as both the `contextId` and the `resourceId`.
*/
contextId?: string;
/**
* ID of the specific resource that the comment is in response to.
*
* Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum, the `forumPostId` is used as both the `resourceId` and the `contextId`.
*/
resourceId?: string;
/** How many comments are published for the resource. */
publishedCommentCount?: number;
}
interface GetCommentRequest {
/**
* ID of the comment to retrieve.
* @format GUID
*/
commentId: string;
}
interface GetCommentResponse {
/** Retrieved comment. */
comment?: Comment;
}
/** Comment info to update. */
interface UpdateCommentRequest {
/** Comment info to update. */
comment?: Comment;
/**
* Skip filters flag
* @internal
*/
skipFilters?: boolean | null;
}
interface UpdateCommentResponse {
/** Updated comment. */
comment?: Comment;
/**
* Captcha token
* @internal
*/
captchaToken?: string | null;
}
interface CommentContentChanged {
/** Comment ID. */
commentId?: string;
/** Content before the update. */
previousContent?: CommentContent;
/** Content after the update. */
currentContent?: CommentContent;
}
interface DeleteCommentRequest {
/**
* ID of the comment to delete.
* @format GUID
*/
commentId: string;
/**
* Revision of the comment to delete.
* @internal
* @deprecated Revision of the comment to delete.
*/
revision?: string | null;
/**
* Indicates if child comments must be deleted as well.
* Will be deprecated and be replaced by BulkCommentDelete
* @internal
* @deprecated Indicates if child comments must be deleted as well.
* Will be deprecated and be replaced by BulkCommentDelete
*/
cascade?: boolean | null;
}
interface DeleteCommentResponse {
}
interface CommentDeleted {
comment?: Comment;
}
interface ModerateDraftContentRequest {
/**
* ID of the comment to moderate.
* @format GUID
*/
commentId: string;
/**
* Revision number, which increments by `1` each time the comment is updated.
*
* To prevent conflicting changes, the current `revision` must be passed when updating the comment.
*/
revision: string | null;
/** Draft content action. */
draftContentAction?: ActionWithLiterals;
}
interface ModerateDraftContentResponse {
/** Moderated comment. */
comment?: Comment;
}
interface CommentPublished {
/** Comment info. */
comment?: Comment;
/** Whether this is the first comment publish. */
firstPublish?: boolean;
}
interface CommentHidden {
comment?: Comment;
}
interface QueryCommentsRequest {
/**
* App ID to query comments for.
* @format GUID
*/
appId: string;
/** Query options. */
query: CursorQuery;
}
interface CursorQuery extends CursorQueryPagingMethodOneOf {
/**
* Cursor paging options.
*
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
*/
cursorPaging?: CursorPaging;
/**
* Filter object.
*
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
*/
filter?: Record | null;
/**
* Sort object.
*
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
* @maxSize 5
*/
sort?: Sorting[];
}
/** @oneof */
interface CursorQueryPagingMethodOneOf {
/**
* Cursor paging options.
*
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
*/
cursorPaging?: CursorPaging;
}
interface Sorting {
/**
* Name of the field to sort by.
* @maxLength 512
*/
fieldName?: string;
/** Sort order. */
order?: SortOrderWithLiterals;
/**
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
*
* If multiple filters are provided, they are combined with AND operator.
*
* Example:
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
* @internal
* @maxSize 10
*/
selectItemsBy?: Record[] | null;
/**
* Origin point for geo-distance sorting on a GEO field
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
*/
origin?: AddressLocation;
}
declare enum SortOrder {
ASC = "ASC",
DESC = "DESC"
}
/** @enumType */
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
interface AddressLocation {
/** Address latitude. */
latitude?: number | null;
/** Address longitude. */
longitude?: number | null;
}
interface CursorPaging {
/**
* Maximum number of items to return in the results.
* @max 100
*/
limit?: number | null;
/**
* Pointer to the next or previous page in the list of results.
*
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
* Not relevant for the first request.
* @maxLength 16000
*/
cursor?: string | null;
}
interface QueryCommentsResponse {
/** Retrieved comments. */
comments?: Comment[];
/** Paging metadata. */
pagingMetadata?: CursorPagingMetadata;
}
interface CursorPagingMetadata {
/** Number of items returned in current page. */
count?: number | null;
/** Cursor strings that point to the next page, previous page, or both. */
cursors?: Cursors;
/**
* Whether there are more pages to retrieve following the current page.
*
* + `true`: Another page of results can be retrieved.
* + `false`: This is the last page.
*/
hasNext?: boolean | null;
/**
* Total number of items matching the filter.
* Available only on the first page of *Search* results, not included in *Query* or *List* results.
* If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
* @internal
*/
total?: number | null;
}
interface Cursors {
/**
* Cursor string pointing to the next page in the list of results.
* @maxLength 16000
*/
next?: string | null;
/**
* Cursor pointing to the previous page in the list of results.
* @maxLength 16000
*/
prev?: string | null;
}
interface MarkCommentRequest {
/**
* ID of the comment to mark.
* @format GUID
*/
commentId: string;
/**
* Revision of the comment to mark.
* @internal
* @deprecated Revision of the comment to mark.
*/
revision?: string | null;
}
interface MarkCommentResponse {
/** Marked comment. */
comment?: Comment;
}
interface CommentMarked {
comment?: Comment;
}
interface UnmarkCommentRequest {
/**
* ID of the comment to unmark.
* @format GUID
*/
commentId: string;
/**
* Revision of the comment to unmark.
* @internal
* @deprecated Revision of the comment to unmark.
*/
revision?: string | null;
}
interface UnmarkCommentResponse {
/** Unmarked comment. */
comment?: Comment;
}
interface CommentUnmarked {
comment?: Comment;
}
interface HideCommentRequest {
/**
* ID of the comment to hide.
* @format GUID
*/
commentId: string;
}
interface HideCommentResponse {
/** Hidden comment. */
comment?: Comment;
}
interface PublishCommentRequest {
/**
* ID of the comment to publish.
* @format GUID
*/
commentId: string;
}
interface PublishCommentResponse {
/** Published comment. */
comment?: Comment;
}
/** Count comments options. */
interface CountCommentsRequest {
/**
* App ID to count the comments of.
* @format GUID
*/
appId?: string;
/** Filter to identify the comments that need to be counted. */
filter?: Record | null;
}
interface CountCommentsResponse {
/** Number of comments. */
count?: number;
}
interface ListCommentsByResourceRequest {
/**
* ID of the app from which the comments are listed.
* @format GUID
*/
appId: string;
/**
* ID of the specific context the comment is in response to.
*
* Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum, the `forumPostId` is used as both the `contextId` and the `resourceId`.
* @maxLength 128
*/
contextId: string;
/**
* Reserved for internal use.
* @maxLength 128
*/
contextType?: string;
/**
* ID of the specific resource that the comment is in response to.
*
* Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum, the `forumPostId` is used as both the `resourceId` and the `contextId`.
* @maxLength 128
*/
resourceId: string;
/** Comment sort. Is ignored if `cursorPaging.cursor` is defined. */
commentSort?: CommentSort;
/** Reply sort. Is ignored if `cursorPaging.cursor` is defined. */
replySort?: ReplySort;
/** Cursor paging. */
cursorPaging?: ListCommentsByResourceCursorPaging;
/**
* Additional fields to return. Supports `AUTHOR_BADGES`.
*
* If omitted, `authorBadges` isn't returned.
* @maxSize 1
*/
fields?: ListCommentsByResourceRequestedFieldsWithLiterals[];
}
interface CommentSort {
/** Sort order. */
order?: OrderWithLiterals;
/**
* If set to `true`, marked comments appear in the original order, and not at the top of the list.
*
* Default: `false`. This means that marked comments are prioritized and listed first.
*/
keepMarkedInOriginalOrder?: boolean;
}
declare enum Order {
/** Unknown order. */
UNKNOWN_ORDER = "UNKNOWN_ORDER",
/** Oldest comments appear at the top of the list. */
OLDEST_FIRST = "OLDEST_FIRST",
/** Newest comments appear at the top of the list. */
NEWEST_FIRST = "NEWEST_FIRST",
/** Comments with the highest reaction count appear at the top of the list. */
REACTION_COUNT = "REACTION_COUNT",
/** Comments with the highest vote count appear at the top of the list. */
NET_VOTE_COUNT = "NET_VOTE_COUNT",
/** Comments with the highest rating appear at the top of the list. */
RATING = "RATING",
/** Comments with the lowest vote count appear at the top of the list. */
NET_VOTE_COUNT_ASC = "NET_VOTE_COUNT_ASC",
/** Comments with the lowest rating appear at the top of the list. */
RATING_ASC = "RATING_ASC"
}
/** @enumType */
type OrderWithLiterals = Order | 'UNKNOWN_ORDER' | 'OLDEST_FIRST' | 'NEWEST_FIRST' | 'REACTION_COUNT' | 'NET_VOTE_COUNT' | 'RATING' | 'NET_VOTE_COUNT_ASC' | 'RATING_ASC';
interface ReplySort {
/** Sort order. */
order?: ReplySortOrderWithLiterals;
/**
* Whether the marked comments are listed in the original order.
*
* If set to `true`, marked comments appear in the original order, and not at the top of the list.
*
* Default: `false`. In this case marked comments are prioritized and listed first.
*/
keepMarkedInOriginalOrder?: boolean;
}
declare enum ReplySortOrder {
/** Unknown order. */
UNKNOWN_ORDER = "UNKNOWN_ORDER",
/** Oldest comments appear at the top of the list. */
OLDEST_FIRST = "OLDEST_FIRST",
/** Newest comments appear at the top of the list. */
NEWEST_FIRST = "NEWEST_FIRST",
/** Comments with the highest reaction count appear at the top of the list. */
REACTION_COUNT = "REACTION_COUNT"
}
/** @enumType */
type ReplySortOrderWithLiterals = ReplySortOrder | 'UNKNOWN_ORDER' | 'OLDEST_FIRST' | 'NEWEST_FIRST' | 'REACTION_COUNT';
interface ListCommentsByResourceCursorPaging {
/** Pointer to the next or previous page in the list of results. */
cursor?: string | null;
/**
* Number of items to return.
* @min 1
* @max 100
*/
limit?: number | null;
/**
* Maximum number of replies in a response. Only applicable to parent comments.
* @max 100
*/
repliesLimit?: number | null;
}
declare enum ListCommentsByResourceRequestedFields {
/** Badges of the comment authors, resolved from their site and app roles. */
AUTHOR_BADGES = "AUTHOR_BADGES"
}
/** @enumType */
type ListCommentsByResourceRequestedFieldsWithLiterals = ListCommentsByResourceRequestedFields | 'AUTHOR_BADGES';
interface ListCommentsByResourceResponse {
/** Listed comments. */
comments?: Comment[];
/** Paging metadata. */
pagingMetadata?: CursorPagingMetadata;
/** Listed comment replies. */
commentReplies?: Record;
/**
* Badges of the authors of the returned comments and replies.
* Returned only when the request `fields` include `AUTHOR_BADGES`.
*/
authorBadges?: AuthorBadgesInfo;
}
interface RepliesListResponse {
/** Listed comment replies. */
replies?: Comment[];
/** Paging metadata. */
pagingMetadata?: CursorPagingMetadata;
}
interface AuthorBadgesInfo {
/** Badges of each author, keyed by member ID. Authors without badges are omitted. */
badgesByMemberId?: Record;
}
interface AuthorBadges {
/**
* Badges of the author.
* @maxSize 3
*/
badges?: AuthorBadgeWithLiterals[];
}
declare enum AuthorBadge {
/** Administrative author category. */
ADMIN = "ADMIN",
/** Content writer author category. */
WRITER = "WRITER",
/** Content editor author category. */
EDITOR = "EDITOR"
}
/** @enumType */
type AuthorBadgeWithLiterals = AuthorBadge | 'ADMIN' | 'WRITER' | 'EDITOR';
interface AddCommentReactionRequest {
/**
* ID of the comment to react to.
* @format GUID
*/
commentId: string;
/**
* Code of the reaction, for example an emoji identifier.
* @minLength 1
* @maxLength 100
*/
reactionCode: string;
}
interface AddCommentReactionResponse {
}
interface RemoveCommentReactionRequest {
/**
* ID of the comment to remove the reaction from.
* @format GUID
*/
commentId: string;
/**
* Code of the reaction to remove.
* @minLength 1
* @maxLength 100
*/
reactionCode: string;
}
interface RemoveCommentReactionResponse {
}
interface BulkGetCommentReactionsRequest {
/**
* App ID the comments belong to.
* @format GUID
*/
appId: string;
/**
* Context ID the comments belong to.
* @maxLength 128
*/
contextId: string;
/**
* Context type to match. If provided, every requested comment must have this context type.
* @maxLength 128
*/
contextType?: string | null;
/**
* IDs of the comments whose reactions to retrieve. Duplicate IDs produce one map entry.
* @format GUID
* @minSize 1
* @maxSize 100
*/
commentIds: string[];
}
interface BulkGetCommentReactionsResponse {
/** Reactions of each requested comment, keyed by comment ID. */
reactions?: Record;
}
interface CommentReactionsInfo {
/** Total number of reactions on the comment, including visitor reactions. */
total?: number;
/**
* Reactions grouped by reaction code.
* @maxSize 100
*/
codeReactions?: CommentCodeReactions[];
}
interface CommentCodeReactions {
/**
* Reaction code.
* @maxLength 100
*/
reactionCode?: string;
/** Number of reactions with this code, including visitor reactions. */
total?: number;
/** Whether the current identity has reacted with this code. */
hasReacted?: boolean;
/**
* Member IDs included in the reaction summary. This list may be incomplete; use `total` for counts.
* Visitor IDs are not returned.
* @format GUID
* @maxSize 10000
*/
memberIds?: string[];
}
interface GetCommentThreadRequest {
/**
* App ID.
* @maxLength 128
* @deprecated App ID.
* @targetRemovalDate 2024-11-01
*/
appId?: string;
/**
* Comment ID.
* @format GUID
*/
commentId: string;
/** Comment sorting. */
commentSort?: CommentSort;
/** Reply sorting. */
replySort?: ReplySort;
/**
* Additional fields to return. Supports `AUTHOR_BADGES`.
*
* If omitted, `authorBadges` isn't returned.
* @maxSize 1
*/
fields?: ListCommentsByResourceRequestedFieldsWithLiterals[];
}
interface GetCommentThreadResponse {
/** Retrieved replies. */
comments?: Comment[];
/** Paging metadata. */
pagingMetadata?: CursorPagingMetadata;
/** Retrieved replies of a reply. */
commentReplies?: Record;
/**
* Badges of the authors of the returned comments and replies.
* Returned only when the request `fields` include `AUTHOR_BADGES`.
*/
authorBadges?: AuthorBadgesInfo;
}
interface BulkPublishCommentRequest {
/**
* ID of the app where to publish the comment.
* @format GUID
*/
appId: string;
/** Filter to identify the comments that need to be published. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
}
interface BulkPublishCommentResponse {
/**
* Job ID.
*
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
* @format GUID
*/
jobId?: string;
}
interface BulkHideCommentRequest {
/**
* ID of the app where to hide the comments.
* @format GUID
*/
appId: string;
/** Filter to identify the comments that need to be hidden. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
}
interface BulkHideCommentResponse {
/**
* Job ID.
*
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
* @format GUID
*/
jobId?: string;
}
interface BulkDeleteCommentRequest {
/**
* ID of the app where to delete the comments.
* @format GUID
*/
appId: string;
/** Filter to identify the comments that need to be deleted. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
}
interface BulkDeleteCommentResponse {
/**
* Job ID.
*
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
* @format GUID
*/
jobId?: string;
}
interface BulkModerateDraftContentRequest {
/**
* ID of the app where to moderate the comments.
* @format GUID
*/
appId: string;
/** Filter to identify the comment content that needs to be moderated. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
/** Action to do regarding draft content */
draftContentAction: ActionWithLiterals;
}
interface BulkModerateDraftContentResponse {
/**
* Job ID.
*
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
* @format GUID
*/
jobId?: string;
}
interface BulkMoveCommentByFilterRequest {
/**
* ID of the app from which to move the comments.
* @format GUID
*/
appId: string;
/** Filter to identify the comments that need to be moved. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
/** Where to move the comment. */
destination?: Destination;
}
interface Destination {
/**
* Context ID of where to move the comment to.
* @maxLength 128
*/
contextId?: string;
/**
* Resource ID of where to move the comment to.
* @maxLength 128
*/
resourceId?: string;
}
interface BulkMoveCommentByFilterResponse {
/**
* Job ID.
*
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
* @format GUID
*/
jobId?: string;
}
interface CommentMoved {
comment?: Comment;
destination?: Destination;
}
/** @docsIgnore */
type CreateCommentApplicationErrors = {
code?: 'INVALID_CAPTCHA';
description?: string;
data?: Record;
} | {
code?: 'INVALID_AUTHOR_EMAIL';
description?: string;
data?: Record;
};
/** @docsIgnore */
type UpdateCommentApplicationErrors = {
code?: 'INVALID_CAPTCHA';
description?: string;
data?: Record;
};
/** @docsIgnore */
type CountCommentsApplicationErrors = {
code?: 'TOO_MANY_TO_COUNT';
description?: string;
data?: Record;
};
/** @docsIgnore */
type AddCommentReactionApplicationErrors = {
code?: 'PERMISSION_DENIED';
description?: string;
data?: Record;
} | {
code?: 'RESOURCE_EXHAUSTED';
description?: string;
data?: Record;
};
/** @docsIgnore */
type RemoveCommentReactionApplicationErrors = {
code?: 'PERMISSION_DENIED';
description?: string;
data?: Record;
};
/** @docsIgnore */
type BulkGetCommentReactionsApplicationErrors = {
code?: 'PERMISSION_DENIED';
description?: string;
data?: Record;
};
interface BaseEventMetadata {
/**
* App instance ID.
* @format GUID
*/
instanceId?: string | null;
/**
* Event type.
* @maxLength 150
*/
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
/** Details related to the account */
accountInfo?: AccountInfo;
}
interface EventMetadata extends BaseEventMetadata {
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
_id?: string;
/**
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
*/
entityFqdn?: string;
/**
* Event action name, placed at the top level to make it easier for users to dispatch messages.
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
*/
slug?: string;
/** ID of the entity associated with the event. */
entityId?: string;
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
eventTime?: Date | null;
/**
* Whether the event was triggered as a result of a privacy regulation application
* (for example, GDPR).
*/
triggeredByAnonymizeRequest?: boolean | null;
/** If present, indicates the action that triggered the event. */
originatedFrom?: string | null;
/**
* 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.
* 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.
*/
entityEventSequence?: string | null;
accountInfo?: AccountInfoMetadata;
}
interface AccountInfoMetadata {
/** ID of the Wix account associated with the event */
accountId: string;
/** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
siteId?: string;
/** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
parentAccountId?: string;
}
interface CommentDeletedEnvelope {
entity: Comment;
metadata: EventMetadata;
}
/**
* Triggered when a comment is deleted.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_deleted
* @slug deleted
*/
declare function onCommentDeleted(handler: (event: CommentDeletedEnvelope) => void | Promise): void;
interface CommentContentChangedEnvelope {
data: CommentContentChanged;
metadata: EventMetadata;
}
/**
* Triggered when comment content is updated.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_comment_content_changed
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug comment_content_changed
*/
declare function onCommentContentChanged(handler: (event: CommentContentChangedEnvelope) => void | Promise): void;
interface CommentHiddenEnvelope {
data: CommentHidden;
metadata: EventMetadata;
}
/**
* Triggered when a comment is hidden.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_comment_hidden
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug comment_hidden
*/
declare function onCommentHidden(handler: (event: CommentHiddenEnvelope) => void | Promise): void;
interface CommentMarkedEnvelope {
data: CommentMarked;
metadata: EventMetadata;
}
/**
* Triggered when a comment is marked.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_comment_marked
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug comment_marked
*/
declare function onCommentMarked(handler: (event: CommentMarkedEnvelope) => void | Promise): void;
interface CommentMovedEnvelope {
data: CommentMoved;
metadata: EventMetadata;
}
/**
* Triggered when a comment is moved.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_comment_moved
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug comment_moved
*/
declare function onCommentMoved(handler: (event: CommentMovedEnvelope) => void | Promise): void;
interface CommentPublishedEnvelope {
data: CommentPublished;
metadata: EventMetadata;
}
/**
* Triggered when a comment is published.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_comment_published
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug comment_published
*/
declare function onCommentPublished(handler: (event: CommentPublishedEnvelope) => void | Promise): void;
interface CommentUnmarkedEnvelope {
data: CommentUnmarked;
metadata: EventMetadata;
}
/**
* Triggered when a comment is unmarked.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_comment_unmarked
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug comment_unmarked
*/
declare function onCommentUnmarked(handler: (event: CommentUnmarkedEnvelope) => void | Promise): void;
interface CommentCreatedEnvelope {
entity: Comment;
metadata: EventMetadata;
}
/**
* Triggered when a comment is created.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_created
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug created
*/
declare function onCommentCreated(handler: (event: CommentCreatedEnvelope) => void | Promise): void;
interface CommentResourceCommentCountChangedEnvelope {
data: ResourceCommentCountChanged;
metadata: EventMetadata;
}
/**
* Triggered when the total number of comments has changed in a resource.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_resource_comment_count_changed
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug resource_comment_count_changed
*/
declare function onCommentResourceCommentCountChanged(handler: (event: CommentResourceCommentCountChangedEnvelope) => void | Promise): void;
interface CommentUpdatedEnvelope {
entity: Comment;
metadata: EventMetadata;
/** @hidden */
modifiedFields: Record;
}
/**
* Triggered when a comment is updated.
* @permissionScope Read Comments
* @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
* @permissionScope Manage Comments
* @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
* @permissionId WIX_COMMENTS.COMMENT_READ
* @webhook
* @eventType wix.comments.v2.comment_updated
* @serviceIdentifier wix.comments.ng.v1.CommentsNg
* @slug updated
*/
declare function onCommentUpdated(handler: (event: CommentUpdatedEnvelope) => void | Promise): void;
/**
* Creates a new comment.
*
* Depending on the comment context's moderation settings, the comment may be published immediately or submitted for moderation.
*
* The `appId`, `contextId`, and `resourceId` are all required and associate the created comment with the specific
* resource it responds to. See **Integrations** in the Comments introduction for a list of integrated scopes for these fields.
*
* If the created comment is a direct response to another comment, the `commentId` of the parent comment should be passed
* as `parentComment.id` in this comment's request. See **Terminology** in the Comments introduction for additional information on parent comments and replies.
* @param comment - Comment to create.
* @public
* @requiredField comment
* @requiredField comment.appId
* @requiredField comment.content
* @requiredField comment.contextId
* @requiredField comment.resourceId
* @permissionId WIX_COMMENTS.COMMENT_CREATE
* @permissionId WIX_COMMENTS.COMMENT_OVERRIDE_AUTHOR
* @permissionId WIX_COMMENTS.COMMENT_OVERRIDE_COMMENT_DATE
* @applicableIdentity APP
* @returns Created comment.
* @fqn wix.comments.ng.v1.CommentsNg.CreateComment
*/
declare function createComment(comment: NonNullablePaths, options?: CreateCommentOptions): Promise & {
__applicationErrorsType?: CreateCommentApplicationErrors;
}>;
interface CreateCommentOptions {
/**
* Contact details of the comment author, used for guest comments
* when the author isn't a site member. Write-only: accepted on creation
* and never returned in read responses.
*/
contactDetails?: ContactDetails;
}
/**
* Retrieves a comment.
* @param commentId - ID of the comment to retrieve.
* @public
* @requiredField commentId
* @permissionId WIX_COMMENTS.COMMENT_READ
* @applicableIdentity APP
* @returns Retrieved comment.
* @fqn wix.comments.ng.v1.CommentsNg.GetComment
*/
declare function getComment(commentId: string): Promise>;
/**
* Updates a comment.
*
* Each time the comment is updated, `revision` increments by 1. The current `revision` must be
* passed when updating the comment. This ensures you're working with the latest comment and
* prevents unintended overwrites.
* @param _id - Comment ID.
* @public
* @requiredField _id
* @requiredField comment
* @requiredField comment.revision
* @permissionId WIX_COMMENTS.COMMENT_UPDATE
* @applicableIdentity APP
* @returns Updated comment.
* @fqn wix.comments.ng.v1.CommentsNg.UpdateComment
*/
declare function updateComment(_id: string, comment: NonNullablePaths): Promise & {
__applicationErrorsType?: UpdateCommentApplicationErrors;
}>;
interface UpdateComment {
/**
* Comment ID.
* @format GUID
* @readonly
*/
_id?: string | null;
/**
* Revision number, which increments by 1 each time the comment is updated.
*
* To prevent conflicting changes, the current `revision` must be passed when updating the comment.
* @readonly
*/
revision?: string | null;
/**
* Date and time the comment was created.
*
* **Note:** This is the date from the system database, not the actual date when the comment was created. For example, if you migrate comments created in 2016, the `createdDate` field will show the current year. For the actual creation date, see the `commentDate` field.
* @readonly
*/
_createdDate?: Date | null;
/**
* Date and time the comment was last updated.
* @readonly
*/
_updatedDate?: Date | null;
/**
* ID of the app that the comment is added to.
* @format GUID
* @immutable
*/
appId?: string | null;
/**
* ID of the specific context the comment is in response to.
*
* Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum,
* the `forumPostId` is used as both the `contextId` and the `resourceId`.
* @immutable
* @maxLength 128
*/
contextId?: string | null;
/**
* Reserved for internal use.
* @internal
* @immutable
* @maxLength 128
*/
contextType?: string | null;
/**
* ID of the specific resource that the comment is in response to.
*
* Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum,
* the `forumPostId` is used as both the `resourceId` and the `contextId`.
* @immutable
* @maxLength 128
*/
resourceId?: string | null;
/** Published comment content. */
content?: CommentContent;
/** Unpublished comment content. */
draftContent?: CommentContent;
/**
* Comment's author.
* @immutable
*/
author?: CommentAuthor;
/**
* Parent comment information.
*
* Only present if this comment is in a direct reply to another comment.
* See **Terminology** in the Comments introduction
* for more information about parent comments.
*/
parentComment?: ParentComment;
/**
* Materialized path of comments hierarchy. List of all current comment’s parent IDs.
* @internal
* @readonly
*/
parentIdsInThread?: string[];
/**
* Number of comments that reply to this comment.
* @readonly
*/
replyCount?: number;
/**
* Summary of votes.
* @readonly
*/
voteSummary?: VoteSummary;
/**
* Comment status.
* @readonly
*/
status?: StatusWithLiterals;
/**
* Comment rating.
* @readonly
*/
rating?: number | null;
/**
* Summary of reactions.
* @readonly
*/
reactionSummary?: CommentReactionSummary;
/** Whether the comment is marked. */
marked?: boolean;
/**
* Date and time when the comment was actually created.
* @immutable
*/
commentDate?: Date | null;
/**
* Whether the comment has the updated content.
* @readonly
*/
contentEdited?: boolean | null;
/**
* Whether the comment has reports
* @internal
* @readonly
*/
reportCount?: number | null;
}
/**
* Deletes a comment.
*
* This method deletes the `content` of the comment and sets its `status` to `DELETED`.
* @param commentId - ID of the comment to delete.
* @public
* @requiredField commentId
* @permissionId WIX_COMMENTS.COMMENT_DELETE
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.DeleteComment
*/
declare function deleteComment(commentId: string): Promise;
/**
* Moderates the draft content of a comment.
*
* - `APPROVE`: Moves `draftContent` to `content` and updates the comment `status` to `PUBLISHED`.
*
* - `REJECT`: Handles the draft content based on the current comment status:
* - If the comment `status` is `PUBLISHED`, clears `draftContent`.
* - If the comment `status` is `PENDING`, keeps `draftContent` unchanged and changes `status` to `HIDDEN`.
*
* To moderate multiple comments, call Bulk Moderate Draft Content.
* @param commentId - ID of the comment to moderate.
* @param revision - Revision number, which increments by `1` each time the comment is updated.
*
* To prevent conflicting changes, the current `revision` must be passed when updating the comment.
* @public
* @requiredField commentId
* @requiredField revision
* @permissionId WIX_COMMENTS.COMMENT_MODERATE_DRAFT_CONTENT
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.ModerateDraftContent
*/
declare function moderateDraftContent(commentId: string, revision: string, options?: ModerateDraftContentOptions): Promise>;
interface ModerateDraftContentOptions {
/** Draft content action. */
draftContentAction?: ActionWithLiterals;
}
/**
* Creates a query to retrieve a list of comments.
*
* The `queryComments()` function builds a query to retrieve a list of comments and returns a [`CommentsQueryBuilder`](#commentsquerybuilder) object.
*
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](#commentsquerybuilder/find) function.
*
* You can refine the query by chaining `CommentsQueryBuilder` functions onto the query. `CommentsQueryBuilder` functions enable you to sort, filter, and control the results that `queryComments()` returns.
*
* `queryComments()` runs with the following `CommentsQueryBuilder` default that you can override:
* + `ascending("_id")`
*
* The functions that are chained to `queryComments()` are applied in the order they are called. For example, if you apply `ascending("voteSummary.netVoteCount")` and then `ascending("replyCount")`, the results are sorted first by the `"voteSummary.netVoteCount"`, and then, if there are multiple results with the same `"voteSummary.netVoteCount"`, the items are sorted by `"replyCount"`.
*
* The following `CommentsQueryBuilder` functions are supported for the `queryComments()` function. For a full description of the comment object, see the object returned for the [`items`](#commentsqueryresult/items) property in [`CommentsQueryResult`](#commentsqueryresult).
* @public
* @permissionId WIX_COMMENTS.COMMENT_QUERY
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.QueryComments
*/
declare function queryComments(options: QueryCommentsOptions): CommentsQueryBuilder;
interface QueryCommentsOptions {
/**
* App ID to query comments for.
* @format GUID
*/
appId: string;
}
interface QueryCursorResult {
cursors: Cursors;
hasNext: () => boolean;
hasPrev: () => boolean;
length: number;
pageSize: number;
}
interface CommentsQueryResult extends QueryCursorResult {
items: Comment[];
query: CommentsQueryBuilder;
next: () => Promise;
prev: () => Promise;
}
interface CommentsQueryBuilder {
/** @param propertyName - Property whose value is compared with `value`.
* @param value - Value to compare against.
*/
eq: (propertyName: '_id' | 'contextId' | 'resourceId' | 'author.userId' | 'author.memberId' | 'author.visitorId' | 'parentComment.id' | 'replyCount' | 'voteSummary.netVoteCount' | 'status' | 'rating' | 'reactionSummary.total' | 'marked', value: any) => CommentsQueryBuilder;
/** @param propertyName - Property whose value is compared with `value`.
* @param value - Value to compare against.
*/
ne: (propertyName: '_id' | 'contextId' | 'resourceId' | 'author.userId' | 'author.memberId' | 'author.visitorId' | 'parentComment.id' | 'replyCount' | 'voteSummary.netVoteCount' | 'status' | 'rating' | 'reactionSummary.total' | 'marked', value: any) => CommentsQueryBuilder;
/** @param propertyName - Property whose value is compared with `value`.
* @param value - Value to compare against.
*/
ge: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
/** @param propertyName - Property whose value is compared with `value`.
* @param value - Value to compare against.
*/
gt: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
/** @param propertyName - Property whose value is compared with `value`.
* @param value - Value to compare against.
*/
le: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
/** @param propertyName - Property whose value is compared with `value`.
* @param value - Value to compare against.
*/
lt: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
/** @param propertyName - Property whose value is compared with `values`.
* @param values - List of values to compare against.
*/
hasSome: (propertyName: string, value: any[]) => CommentsQueryBuilder;
/** @param propertyName - Property whose value is compared with `values`.
* @param values - List of values to compare against.
*/
hasAll: (propertyName: string, value: any[]) => CommentsQueryBuilder;
in: (propertyName: '_id' | 'contextId' | 'resourceId' | 'author.userId' | 'author.memberId' | 'author.visitorId' | 'parentComment.id' | 'status', value: any) => CommentsQueryBuilder;
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
ascending: (...propertyNames: Array<'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total' | 'marked'>) => CommentsQueryBuilder;
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
descending: (...propertyNames: Array<'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total' | 'marked'>) => CommentsQueryBuilder;
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
limit: (limit: number) => CommentsQueryBuilder;
/** @param cursor - A pointer to specific record */
skipTo: (cursor: string) => CommentsQueryBuilder;
find: () => Promise;
}
/**
* @hidden
* @fqn wix.comments.ng.v1.CommentsNg.QueryComments
* @requiredField query
* @requiredField options
*/
declare function typedQueryComments(query: CommentQuery, options: QueryCommentsOptions): Promise>;
interface CommentQuerySpec extends QuerySpec {
paging: 'cursor';
wql: [
{
fields: ['_id'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['contextId'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['resourceId'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['author.userId'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['author.memberId'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['author.visitorId'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['parentComment._id'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['replyCount'];
operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
sort: 'BOTH';
},
{
fields: ['status'];
operators: ['$eq', '$in', '$ne'];
sort: 'NONE';
},
{
fields: ['voteSummary.netVoteCount'];
operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
sort: 'BOTH';
},
{
fields: ['rating'];
operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
sort: 'BOTH';
},
{
fields: ['reactionSummary.total'];
operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
sort: 'BOTH';
},
{
fields: ['marked'];
operators: ['$eq', '$ne'];
sort: 'BOTH';
}
];
}
type CommonQueryWithEntityContext = Query;
type CommentQuery = {
/**
Cursor paging options.
Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
*/
cursorPaging?: {
/**
Maximum number of items to return in the results.
@max: 100
*/
limit?: NonNullable['limit'] | null;
/**
Pointer to the next or previous page in the list of results.
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
Not relevant for the first request.
@maxLength: 16000
*/
cursor?: NonNullable['cursor'] | null;
};
/**
Filter object.
Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
*/
filter?: CommonQueryWithEntityContext['filter'] | null;
/**
Sort object.
Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
@maxSize: 5
*/
sort?: {
/**
Name of the field to sort by.
@maxLength: 512
*/
fieldName?: NonNullable[number]['fieldName'];
/**
Sort order.
*/
order?: NonNullable[number]['order'];
/**
When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
If multiple filters are provided, they are combined with AND operator.
Example:
Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
{ fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
@internal: undefined,
@maxSize: 10
*/
selectItemsBy?: NonNullable[number]['selectItemsBy'] | null;
/**
Origin point for geo-distance sorting on a GEO field
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
*/
origin?: NonNullable[number]['origin'];
}[];
};
declare const utils: {
query: _wix_sdk_types.QueryHelpers;
};
/**
* Sets `marked` to `TRUE` to mark a comment.
*
* Call Query Comments to filter for marked comments to then apply customization to.
* See Sample Flows for an example.
* @param commentId - ID of the comment to mark.
* @public
* @requiredField commentId
* @permissionId WIX_COMMENTS.COMMENT_MARK
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.MarkComment
*/
declare function markComment(commentId: string): Promise>;
/**
* Sets `marked` to `FALSE` to unmark a comment.
* @param commentId - ID of the comment to unmark.
* @public
* @requiredField commentId
* @permissionId WIX_COMMENTS.COMMENT_MARK
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.UnmarkComment
*/
declare function unmarkComment(commentId: string): Promise>;
/**
* Hides a comment in a widget. The comment status becomes `HIDDEN`.
* @param commentId - ID of the comment to hide.
* @public
* @requiredField commentId
* @permissionId WIX_COMMENTS.COMMENT_HIDE
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.HideComment
*/
declare function hideComment(commentId: string): Promise>;
/**
* Publishes a comment with the `HIDDEN` status. The comment status becomes `PUBLISHED`.
*
* To publish a new comment, call Create Comment.
* @param commentId - ID of the comment to publish.
* @public
* @requiredField commentId
* @permissionId WIX_COMMENTS.COMMENT_PUBLISH
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.PublishComment
*/
declare function publishComment(commentId: string): Promise>;
/**
* Counts comments, given the specified filtering. Comments with the `HIDDEN` status are not included in the response.
* @param appId - App ID to count the comments of.
* @public
* @requiredField appId
* @permissionId WIX_COMMENTS.COMMENT_COUNT
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.CountComments
*/
declare function countComments(appId: string, options?: CountCommentsOptions): Promise & {
__applicationErrorsType?: CountCommentsApplicationErrors;
}>;
interface CountCommentsOptions {
/** Filter to identify the comments that need to be counted. */
filter?: Record | null;
}
/**
* Lists published comments and replies from a specified resource, such as a blog post.
*
* Specify `AUTHOR_BADGES` in `fields` to return broad display badges for member authors
* in the current page. Badge resolution is best effort. If it isn't available,
* `authorBadges` is omitted and the comments are still returned.
* @param appId - ID of the app from which the comments are listed.
* @public
* @requiredField appId
* @requiredField options.contextId
* @requiredField options.resourceId
* @permissionId WIX_COMMENTS.COMMENT_LIST
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.ListCommentsByResource
*/
declare function listCommentsByResource(appId: string, options?: NonNullablePaths): Promise>;
interface ListCommentsByResourceOptions {
/**
* ID of the specific context the comment is in response to.
*
* Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum, the `forumPostId` is used as both the `contextId` and the `resourceId`.
* @maxLength 128
*/
contextId: string;
/**
* Reserved for internal use.
* @maxLength 128
*/
contextType?: string;
/**
* ID of the specific resource that the comment is in response to.
*
* Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum, the `forumPostId` is used as both the `resourceId` and the `contextId`.
* @maxLength 128
*/
resourceId: string;
/** Comment sort. Is ignored if `cursorPaging.cursor` is defined. */
commentSort?: CommentSort;
/** Reply sort. Is ignored if `cursorPaging.cursor` is defined. */
replySort?: ReplySort;
/** Cursor paging. */
cursorPaging?: ListCommentsByResourceCursorPaging;
/**
* Additional fields to return. Supports `AUTHOR_BADGES`.
*
* If omitted, `authorBadges` isn't returned.
* @maxSize 1
*/
fields?: ListCommentsByResourceRequestedFieldsWithLiterals[];
}
/**
* Adds the current identity's reaction to a comment.
*
* Requires permission to view and react to the comment in its context.
* Replaces the current identity's previous reaction, including a different reaction code.
* @param commentId - ID of the comment to react to.
* @param reactionCode - Code of the reaction, for example an emoji identifier.
* @public
* @documentationMaturity preview
* @requiredField commentId
* @requiredField reactionCode
* @permissionId comments:v2:comment:add_comment_reaction
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.AddCommentReaction
*/
declare function addCommentReaction(commentId: string, reactionCode: string): Promise;
/**
* Removes the current identity's reaction from a comment.
*
* Requires permission to view and react to the comment in its context.
* @param commentId - ID of the comment to remove the reaction from.
* @param reactionCode - Code of the reaction to remove.
* @public
* @documentationMaturity preview
* @requiredField commentId
* @requiredField reactionCode
* @permissionId comments:v2:comment:remove_comment_reaction
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.RemoveCommentReaction
*/
declare function removeCommentReaction(commentId: string, reactionCode: string): Promise;
/**
* Retrieves reactions for multiple comments.
*
* For each requested comment the response carries the reaction total, per-code totals,
* whether the current identity has reacted, and the member IDs that reacted with each code.
* Visitor reactions are included in the totals but their identities are not returned.
* Every comment must belong to the supplied app and context. If any comment is missing,
* inaccessible, or belongs to a different context, the entire request fails.
* @param appId - App ID the comments belong to.
* @public
* @documentationMaturity preview
* @requiredField appId
* @requiredField options.commentIds
* @requiredField options.contextId
* @permissionId comments:v2:comment:bulk_get_comment_reactions
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.BulkGetCommentReactions
*/
declare function bulkGetCommentReactions(appId: string, options?: NonNullablePaths): Promise;
interface BulkGetCommentReactionsOptions {
/**
* Context ID the comments belong to.
* @maxLength 128
*/
contextId: string;
/**
* Context type to match. If provided, every requested comment must have this context type.
* @maxLength 128
*/
contextType?: string | null;
/**
* IDs of the comments whose reactions to retrieve. Duplicate IDs produce one map entry.
* @format GUID
* @minSize 1
* @maxSize 100
*/
commentIds: string[];
}
/**
* Returns a thread of a comment or a reply.
*
* If you request a comment thread, the method returns a single comment with cursors. With cursors (`pagingMetadata.cursors.next` or `pagingMetadata.cursors.prev`) you can load replies by calling the List Comments by Resource method.
*
* If you request a reply thread, the method returns a reply with its parent comment. With cursors (`pagingMetadata.cursors.next` or `pagingMetadata.cursors.prev`) you can load replies by calling the List Comments by Resource method.
* @param commentId - Comment ID.
* @public
* @requiredField commentId
* @permissionId WIX_COMMENTS.COMMENT_THREAD
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.GetCommentThread
*/
declare function getCommentThread(commentId: string, options?: GetCommentThreadOptions): Promise>;
interface GetCommentThreadOptions {
/**
* App ID.
* @maxLength 128
* @deprecated App ID.
* @targetRemovalDate 2024-11-01
*/
appId?: string;
/** Comment sorting. */
commentSort?: CommentSort;
/** Reply sorting. */
replySort?: ReplySort;
/**
* Additional fields to return. Supports `AUTHOR_BADGES`.
*
* If omitted, `authorBadges` isn't returned.
* @maxSize 1
*/
fields?: ListCommentsByResourceRequestedFieldsWithLiterals[];
}
/**
* Publishes multiple comments with the `HIDDEN` status. The comment status becomes `PUBLISHED`.
* @param appId - ID of the app where to publish the comment.
* @public
* @requiredField appId
* @requiredField options
* @requiredField options.filter
* @permissionId WIX_COMMENTS.BULK_COMMENT_PUBLISH
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.BulkPublishComment
*/
declare function bulkPublishComment(appId: string, options: NonNullablePaths): Promise>;
interface BulkPublishCommentOptions {
/** Filter to identify the comments that need to be published. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
}
/**
* Hides multiple comments. The comment status becomes `HIDDEN`.
* @param appId - ID of the app where to hide the comments.
* @public
* @requiredField appId
* @requiredField options
* @requiredField options.filter
* @permissionId WIX_COMMENTS.BULK_COMMENT_HIDE
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.BulkHideComment
*/
declare function bulkHideComment(appId: string, options: NonNullablePaths): Promise>;
interface BulkHideCommentOptions {
/** Filter to identify the comments that need to be hidden. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
}
/**
* Deletes multiple comments.
* @param appId - ID of the app where to delete the comments.
* @public
* @requiredField appId
* @requiredField options
* @requiredField options.filter
* @permissionId WIX_COMMENTS.BULK_COMMENT_DELETE
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.BulkDeleteComment
*/
declare function bulkDeleteComment(appId: string, options: NonNullablePaths): Promise>;
interface BulkDeleteCommentOptions {
/** Filter to identify the comments that need to be deleted. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
}
/**
* Moderates the draft content of multiple comments that match the specified filter.
*
* The same action, `APPROVE` or `REJECT`, applies to all comments that match the filter.
* - `APPROVE`: Moves `draftContent` to `content` and updates the comment `status` to `PUBLISHED`.
*
* - `REJECT`: Handles the draft content based on the current comment status:
* - If the comment `status` is `PUBLISHED`, clears `draftContent`.
* - If the comment `status` is `PENDING`, keeps `draftContent` unchanged and changes `status` to `HIDDEN`.
*
* To moderate a single comment, call Moderate Draft Content.
* @param appId - ID of the app where to moderate the comments.
* @public
* @requiredField appId
* @requiredField options
* @requiredField options.draftContentAction
* @requiredField options.filter
* @permissionId WIX_COMMENTS.BULK_COMMENT_MODERATE_DRAFT_CONTENT
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.BulkModerateDraftContent
*/
declare function bulkModerateDraftContent(appId: string, options: NonNullablePaths): Promise>;
interface BulkModerateDraftContentOptions {
/** Filter to identify the comment content that needs to be moderated. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
/** Action to do regarding draft content */
draftContentAction: ActionWithLiterals;
}
/**
* Moves multiple comments to another resource.
* @param appId - ID of the app from which to move the comments.
* @public
* @requiredField appId
* @requiredField options.destination.contextId
* @requiredField options.destination.resourceId
* @requiredField options.filter
* @permissionId WIX_COMMENTS.BULK_COMMENT_MOVE
* @applicableIdentity APP
* @fqn wix.comments.ng.v1.CommentsNg.BulkMoveCommentByFilter
*/
declare function bulkMoveCommentByFilter(appId: string, options?: NonNullablePaths): Promise>;
interface BulkMoveCommentByFilterOptions {
/** Filter to identify the comments that need to be moved. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
filter: Record | null;
/** Where to move the comment. */
destination?: Destination;
}
export { type AccountInfo, type AccountInfoMetadata, Action, type ActionEvent, type ActionWithLiterals, type AddCommentReactionApplicationErrors, type AddCommentReactionRequest, type AddCommentReactionResponse, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, type Animation, type App, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type Attachment, type AttachmentMediaOneOf, type AudioData, AuthorBadge, type AuthorBadgeWithLiterals, type AuthorBadges, type AuthorBadgesInfo, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, type BannerOriginPresenceOneOf, BannerPosition, type BannerPositionWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeleteCommentOptions, type BulkDeleteCommentRequest, type BulkDeleteCommentResponse, type BulkGetCommentReactionsApplicationErrors, type BulkGetCommentReactionsOptions, type BulkGetCommentReactionsRequest, type BulkGetCommentReactionsResponse, type BulkHideCommentOptions, type BulkHideCommentRequest, type BulkHideCommentResponse, type BulkModerateDraftContentOptions, type BulkModerateDraftContentRequest, type BulkModerateDraftContentResponse, type BulkMoveCommentByFilterOptions, type BulkMoveCommentByFilterRequest, type BulkMoveCommentByFilterResponse, type BulkPublishCommentOptions, type BulkPublishCommentRequest, type BulkPublishCommentResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckboxListData, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorDataBackground, ColorDataBackgroundType, type ColorDataBackgroundTypeWithLiterals, type Colors, ColumnSize, type ColumnSizeWithLiterals, type Comment, type CommentAuthor, type CommentAuthorIdentityOneOf, type CommentCodeReactions, type CommentContent, type CommentContentChanged, type CommentContentChangedEnvelope, type CommentCreatedEnvelope, type CommentDeleted, type CommentDeletedEnvelope, type CommentHidden, type CommentHiddenEnvelope, type CommentMarked, type CommentMarkedEnvelope, type CommentModerated, type CommentMoved, type CommentMovedEnvelope, type CommentPublished, type CommentPublishedEnvelope, type CommentQuery, type CommentQuerySpec, type CommentReactionSummary, type CommentReactionsInfo, type CommentResourceCommentCountChangedEnvelope, type CommentSort, type CommentUnmarked, type CommentUnmarkedEnvelope, type CommentUpdatedEnvelope, type CommentsQueryBuilder, type CommentsQueryResult, type CommonQueryWithEntityContext, type ContactDetails, type ContentAuthor, type ContentAuthorAuthorOneOf, type CountCommentsApplicationErrors, type CountCommentsOptions, type CountCommentsRequest, type CountCommentsResponse, type CreateCommentApplicationErrors, type CreateCommentOptions, type CreateCommentRequest, type CreateCommentResponse, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteCommentRequest, type DeleteCommentResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Destination, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DividerDataStyles, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntranceAnimation, type EntranceEffect, EntranceEffectType, type EntranceEffectTypeWithLiterals, type EventData, type EventMetadata, type File, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetCommentRequest, type GetCommentResponse, type GetCommentThreadOptions, type GetCommentThreadRequest, type GetCommentThreadResponse, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type HideCommentRequest, type HideCommentResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataCrop, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, Indentation, type IndentationWithLiterals, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InternalDocument, type InternalDocumentUpdateByFilterOperation, type InternalDocumentUpdateOperation, type InternalUpdateExistingOperation, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemDataOneOf, type ItemStyle, LayerEffect, type LayerEffectWithLiterals, type Layers, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineCap, type LineCapWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListCommentsByResourceCursorPaging, type ListCommentsByResourceOptions, type ListCommentsByResourceRequest, ListCommentsByResourceRequestedFields, type ListCommentsByResourceRequestedFieldsWithLiterals, type ListCommentsByResourceResponse, type ListItemMarkerColor, type ListItemMarkerColorBackground, ListItemMarkerColorBackgroundType, type ListItemMarkerColorBackgroundTypeWithLiterals, type ListItemMarkerStyle, type ListItemNodeData, ListStyle, type ListStyleWithLiterals, type ListValue, type LoopAnimation, type LoopEffect, LoopEffectType, type LoopEffectTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkCommentRequest, type MarkCommentResponse, type Media, type Mention, type MentionData, type MentionIdentityOneOf, type MessageEnvelope, type Metadata, type ModerateDraftContentOptions, type ModerateDraftContentRequest, type ModerateDraftContentResponse, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Page, type Pages, type ParagraphData, type ParentComment, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type PointerEffect, PointerEffectType, type PointerEffectTypeWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type PublishCommentRequest, type PublishCommentResponse, type QueryCommentsOptions, type QueryCommentsRequest, type QueryCommentsResponse, type Rel, type RemoveCommentReactionApplicationErrors, type RemoveCommentReactionRequest, type RemoveCommentReactionResponse, type RepliesListResponse, type ReplySort, ReplySortOrder, type ReplySortOrderWithLiterals, Resizing, type ResizingWithLiterals, type ResourceCommentCountChanged, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type SectionDivider, type Settings, Shape, type ShapeData, type ShapeDataStyles, type ShapeWithLiterals, type SketchData, type SlotData, type SlotDesign, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TocData, Type, type TypeWithLiterals, type URI, type URIs, type UnmarkCommentRequest, type UnmarkCommentResponse, type UpdateComment, type UpdateCommentApplicationErrors, type UpdateCommentRequest, type UpdateCommentResponse, type UpdateInternalDocumentsEvent, type UpdateInternalDocumentsEventOperationOneOf, Variant, type VariantWithLiterals, type VersionedDeleteByIdsOperation, type VersionedDocumentId, type VersionedDocumentUpdateOperation, VersioningMode, type VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, type VoteSummary, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, addCommentReaction, bulkDeleteComment, bulkGetCommentReactions, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, removeCommentReaction, typedQueryComments, unmarkComment, updateComment, utils };