@wix/auto_sdk_comments_comments 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/comments-v2-comment-comments.context.d.ts +68 -0
  11. package/build/cjs/src/comments-v2-comment-comments.context.js +108 -0
  12. package/build/cjs/src/comments-v2-comment-comments.context.js.map +1 -0
  13. package/build/cjs/src/comments-v2-comment-comments.http.d.ts +90 -0
  14. package/build/cjs/src/comments-v2-comment-comments.http.js +2527 -0
  15. package/build/cjs/src/comments-v2-comment-comments.http.js.map +1 -0
  16. package/build/cjs/src/comments-v2-comment-comments.meta.d.ts +48 -0
  17. package/build/cjs/src/comments-v2-comment-comments.meta.js +370 -0
  18. package/build/cjs/src/comments-v2-comment-comments.meta.js.map +1 -0
  19. package/build/cjs/src/comments-v2-comment-comments.public.d.ts +202 -0
  20. package/build/cjs/src/comments-v2-comment-comments.public.js +1340 -0
  21. package/build/cjs/src/comments-v2-comment-comments.public.js.map +1 -0
  22. package/build/cjs/src/comments-v2-comment-comments.types.d.ts +2679 -0
  23. package/build/cjs/src/comments-v2-comment-comments.types.js +374 -0
  24. package/build/cjs/src/comments-v2-comment-comments.types.js.map +1 -0
  25. package/build/cjs/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  26. package/build/cjs/src/comments-v2-comment-comments.universal.js +1563 -0
  27. package/build/cjs/src/comments-v2-comment-comments.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/comments-v2-comment-comments.context.d.ts +68 -0
  39. package/build/es/src/comments-v2-comment-comments.context.js +68 -0
  40. package/build/es/src/comments-v2-comment-comments.context.js.map +1 -0
  41. package/build/es/src/comments-v2-comment-comments.http.d.ts +90 -0
  42. package/build/es/src/comments-v2-comment-comments.http.js +2506 -0
  43. package/build/es/src/comments-v2-comment-comments.http.js.map +1 -0
  44. package/build/es/src/comments-v2-comment-comments.meta.d.ts +48 -0
  45. package/build/es/src/comments-v2-comment-comments.meta.js +326 -0
  46. package/build/es/src/comments-v2-comment-comments.meta.js.map +1 -0
  47. package/build/es/src/comments-v2-comment-comments.public.d.ts +202 -0
  48. package/build/es/src/comments-v2-comment-comments.public.js +1282 -0
  49. package/build/es/src/comments-v2-comment-comments.public.js.map +1 -0
  50. package/build/es/src/comments-v2-comment-comments.types.d.ts +2679 -0
  51. package/build/es/src/comments-v2-comment-comments.types.js +371 -0
  52. package/build/es/src/comments-v2-comment-comments.types.js.map +1 -0
  53. package/build/es/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  54. package/build/es/src/comments-v2-comment-comments.universal.js +1518 -0
  55. package/build/es/src/comments-v2-comment-comments.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/comments-v2-comment-comments.context.d.ts +68 -0
  66. package/build/internal/cjs/src/comments-v2-comment-comments.context.js +108 -0
  67. package/build/internal/cjs/src/comments-v2-comment-comments.context.js.map +1 -0
  68. package/build/internal/cjs/src/comments-v2-comment-comments.http.d.ts +90 -0
  69. package/build/internal/cjs/src/comments-v2-comment-comments.http.js +2527 -0
  70. package/build/internal/cjs/src/comments-v2-comment-comments.http.js.map +1 -0
  71. package/build/internal/cjs/src/comments-v2-comment-comments.meta.d.ts +48 -0
  72. package/build/internal/cjs/src/comments-v2-comment-comments.meta.js +370 -0
  73. package/build/internal/cjs/src/comments-v2-comment-comments.meta.js.map +1 -0
  74. package/build/internal/cjs/src/comments-v2-comment-comments.public.d.ts +202 -0
  75. package/build/internal/cjs/src/comments-v2-comment-comments.public.js +1340 -0
  76. package/build/internal/cjs/src/comments-v2-comment-comments.public.js.map +1 -0
  77. package/build/internal/cjs/src/comments-v2-comment-comments.types.d.ts +2679 -0
  78. package/build/internal/cjs/src/comments-v2-comment-comments.types.js +374 -0
  79. package/build/internal/cjs/src/comments-v2-comment-comments.types.js.map +1 -0
  80. package/build/internal/cjs/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  81. package/build/internal/cjs/src/comments-v2-comment-comments.universal.js +1563 -0
  82. package/build/internal/cjs/src/comments-v2-comment-comments.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/comments-v2-comment-comments.context.d.ts +68 -0
  93. package/build/internal/es/src/comments-v2-comment-comments.context.js +68 -0
  94. package/build/internal/es/src/comments-v2-comment-comments.context.js.map +1 -0
  95. package/build/internal/es/src/comments-v2-comment-comments.http.d.ts +90 -0
  96. package/build/internal/es/src/comments-v2-comment-comments.http.js +2506 -0
  97. package/build/internal/es/src/comments-v2-comment-comments.http.js.map +1 -0
  98. package/build/internal/es/src/comments-v2-comment-comments.meta.d.ts +48 -0
  99. package/build/internal/es/src/comments-v2-comment-comments.meta.js +326 -0
  100. package/build/internal/es/src/comments-v2-comment-comments.meta.js.map +1 -0
  101. package/build/internal/es/src/comments-v2-comment-comments.public.d.ts +202 -0
  102. package/build/internal/es/src/comments-v2-comment-comments.public.js +1282 -0
  103. package/build/internal/es/src/comments-v2-comment-comments.public.js.map +1 -0
  104. package/build/internal/es/src/comments-v2-comment-comments.types.d.ts +2679 -0
  105. package/build/internal/es/src/comments-v2-comment-comments.types.js +371 -0
  106. package/build/internal/es/src/comments-v2-comment-comments.types.js.map +1 -0
  107. package/build/internal/es/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  108. package/build/internal/es/src/comments-v2-comment-comments.universal.js +1518 -0
  109. package/build/internal/es/src/comments-v2-comment-comments.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,2679 @@
1
+ /**
2
+ * A comment is a user-generated message in response to a specific resource. It allows site visitors
3
+ * to share feedback or engage in discussions around different types of resources, including blog posts, forum threads,
4
+ * or other site content. Comments are composed of text, images, videos, or other forms of media.
5
+ */
6
+ export interface Comment {
7
+ /**
8
+ * Comment ID.
9
+ * @readonly
10
+ */
11
+ id?: string | null;
12
+ /**
13
+ * Revision number, which increments by 1 each time the comment is updated.
14
+ *
15
+ * To prevent conflicting changes, the current `revision` must be passed when updating the comment.
16
+ * @readonly
17
+ */
18
+ revision?: string | null;
19
+ /**
20
+ * Date and time the comment was created.
21
+ *
22
+ * **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.
23
+ * @readonly
24
+ */
25
+ createdDate?: Date | null;
26
+ /**
27
+ * Date and time the comment was last updated.
28
+ * @readonly
29
+ */
30
+ updatedDate?: Date | null;
31
+ /** ID of the app that the comment is added to. */
32
+ appId?: string | null;
33
+ /**
34
+ * ID of the specific context the comment is in response to.
35
+ *
36
+ * Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum,
37
+ * the `forumPostId` is used as both the `contextId` and the `resourceId`.
38
+ */
39
+ contextId?: string | null;
40
+ /**
41
+ * ID of the specific resource that the comment is in response to.
42
+ *
43
+ * Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum,
44
+ * the `forumPostId` is used as both the `resourceId` and the `contextId`.
45
+ */
46
+ resourceId?: string | null;
47
+ /** Published comment content. */
48
+ content?: CommentContent;
49
+ /** Comment's author. */
50
+ author?: CommentAuthor;
51
+ /**
52
+ * Parent comment information.
53
+ *
54
+ * Only present if this comment is in a direct reply to another comment.
55
+ * See **Terminology** in the Comments introduction
56
+ * for more information about parent comments.
57
+ */
58
+ parentComment?: ParentComment;
59
+ /**
60
+ * Number of comments that reply to this comment.
61
+ * @readonly
62
+ */
63
+ replyCount?: number;
64
+ /**
65
+ * Summary of votes.
66
+ * @readonly
67
+ */
68
+ voteSummary?: VoteSummary;
69
+ /**
70
+ * Comment status.
71
+ * @readonly
72
+ */
73
+ status?: Status;
74
+ /**
75
+ * Comment rating.
76
+ * @readonly
77
+ */
78
+ rating?: number | null;
79
+ /**
80
+ * Summary of reactions.
81
+ * @readonly
82
+ */
83
+ reactionSummary?: CommentReactionSummary;
84
+ /** Whether the comment is marked. */
85
+ marked?: boolean;
86
+ /** Date and time when the comment was actually created. */
87
+ commentDate?: Date | null;
88
+ /**
89
+ * Whether the comment has the updated content.
90
+ * @readonly
91
+ */
92
+ contentEdited?: boolean | null;
93
+ }
94
+ /** Comment content. */
95
+ export interface CommentContent {
96
+ /**
97
+ * Comment rich content.
98
+ *
99
+ * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" exampleid="5693ba57-d141-42bf-a0d6-1eb11c73bddf" plugins="emoji.heading.indent.lineSpacing.actionButton.audio.codeBlock.collapsibleList.divider.file.gallery.giphy.hashtag.html.image.link.linkButton.linkPreview.mentions.poll.spoiler.table.textColor.textHighlight.verticalEmbed.video">
100
+ * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
101
+ * </widget>
102
+ */
103
+ richContent?: RichContent;
104
+ /**
105
+ * People to tag with this comment.
106
+ *
107
+ * People can include users, members, visitors, or groups.
108
+ */
109
+ mentions?: Mention[];
110
+ /** Content attachments. */
111
+ attachments?: Attachment[];
112
+ }
113
+ export interface RichContent {
114
+ /** Node objects representing a rich content document. */
115
+ nodes?: Node[];
116
+ /** Object metadata. */
117
+ metadata?: Metadata;
118
+ /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
119
+ documentStyle?: DocumentStyle;
120
+ }
121
+ export interface Node extends NodeDataOneOf {
122
+ /** Data for a button node. */
123
+ buttonData?: ButtonData;
124
+ /** Data for a code block node. */
125
+ codeBlockData?: CodeBlockData;
126
+ /** Data for a divider node. */
127
+ dividerData?: DividerData;
128
+ /** Data for a file node. */
129
+ fileData?: FileData;
130
+ /** Data for a gallery node. */
131
+ galleryData?: GalleryData;
132
+ /** Data for a GIF node. */
133
+ gifData?: GIFData;
134
+ /** Data for a heading node. */
135
+ headingData?: HeadingData;
136
+ /** Data for an embedded HTML node. */
137
+ htmlData?: HTMLData;
138
+ /** Data for an image node. */
139
+ imageData?: ImageData;
140
+ /** Data for a link preview node. */
141
+ linkPreviewData?: LinkPreviewData;
142
+ /** @deprecated */
143
+ mapData?: MapData;
144
+ /** Data for a paragraph node. */
145
+ paragraphData?: ParagraphData;
146
+ /** Data for a poll node. */
147
+ pollData?: PollData;
148
+ /** Data for a text node. Used to apply decorations to text. */
149
+ textData?: TextData;
150
+ /** Data for an app embed node. */
151
+ appEmbedData?: AppEmbedData;
152
+ /** Data for a video node. */
153
+ videoData?: VideoData;
154
+ /** Data for an oEmbed node. */
155
+ embedData?: EmbedData;
156
+ /** Data for a collapsible list node. */
157
+ collapsibleListData?: CollapsibleListData;
158
+ /** Data for a table node. */
159
+ tableData?: TableData;
160
+ /** Data for a table cell node. */
161
+ tableCellData?: TableCellData;
162
+ /** Data for a custom external node. */
163
+ externalData?: Record<string, any> | null;
164
+ /** Data for an audio node. */
165
+ audioData?: AudioData;
166
+ /** Data for an ordered list node. */
167
+ orderedListData?: OrderedListData;
168
+ /** Data for a bulleted list node. */
169
+ bulletedListData?: BulletedListData;
170
+ /** Data for a block quote node. */
171
+ blockquoteData?: BlockquoteData;
172
+ /** Data for a caption node. */
173
+ captionData?: CaptionData;
174
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
175
+ layoutCellData?: LayoutCellData;
176
+ /** 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. */
177
+ type?: NodeType;
178
+ /** Node ID. */
179
+ id?: string;
180
+ /** A list of child nodes. */
181
+ nodes?: Node[];
182
+ /** Padding and background color styling for the node. */
183
+ style?: NodeStyle;
184
+ }
185
+ /** @oneof */
186
+ export interface NodeDataOneOf {
187
+ /** Data for a button node. */
188
+ buttonData?: ButtonData;
189
+ /** Data for a code block node. */
190
+ codeBlockData?: CodeBlockData;
191
+ /** Data for a divider node. */
192
+ dividerData?: DividerData;
193
+ /** Data for a file node. */
194
+ fileData?: FileData;
195
+ /** Data for a gallery node. */
196
+ galleryData?: GalleryData;
197
+ /** Data for a GIF node. */
198
+ gifData?: GIFData;
199
+ /** Data for a heading node. */
200
+ headingData?: HeadingData;
201
+ /** Data for an embedded HTML node. */
202
+ htmlData?: HTMLData;
203
+ /** Data for an image node. */
204
+ imageData?: ImageData;
205
+ /** Data for a link preview node. */
206
+ linkPreviewData?: LinkPreviewData;
207
+ /** @deprecated */
208
+ mapData?: MapData;
209
+ /** Data for a paragraph node. */
210
+ paragraphData?: ParagraphData;
211
+ /** Data for a poll node. */
212
+ pollData?: PollData;
213
+ /** Data for a text node. Used to apply decorations to text. */
214
+ textData?: TextData;
215
+ /** Data for an app embed node. */
216
+ appEmbedData?: AppEmbedData;
217
+ /** Data for a video node. */
218
+ videoData?: VideoData;
219
+ /** Data for an oEmbed node. */
220
+ embedData?: EmbedData;
221
+ /** Data for a collapsible list node. */
222
+ collapsibleListData?: CollapsibleListData;
223
+ /** Data for a table node. */
224
+ tableData?: TableData;
225
+ /** Data for a table cell node. */
226
+ tableCellData?: TableCellData;
227
+ /** Data for a custom external node. */
228
+ externalData?: Record<string, any> | null;
229
+ /** Data for an audio node. */
230
+ audioData?: AudioData;
231
+ /** Data for an ordered list node. */
232
+ orderedListData?: OrderedListData;
233
+ /** Data for a bulleted list node. */
234
+ bulletedListData?: BulletedListData;
235
+ /** Data for a block quote node. */
236
+ blockquoteData?: BlockquoteData;
237
+ /** Data for a caption node. */
238
+ captionData?: CaptionData;
239
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
240
+ layoutCellData?: LayoutCellData;
241
+ }
242
+ export declare enum NodeType {
243
+ PARAGRAPH = "PARAGRAPH",
244
+ TEXT = "TEXT",
245
+ HEADING = "HEADING",
246
+ BULLETED_LIST = "BULLETED_LIST",
247
+ ORDERED_LIST = "ORDERED_LIST",
248
+ LIST_ITEM = "LIST_ITEM",
249
+ BLOCKQUOTE = "BLOCKQUOTE",
250
+ CODE_BLOCK = "CODE_BLOCK",
251
+ VIDEO = "VIDEO",
252
+ DIVIDER = "DIVIDER",
253
+ FILE = "FILE",
254
+ GALLERY = "GALLERY",
255
+ GIF = "GIF",
256
+ HTML = "HTML",
257
+ IMAGE = "IMAGE",
258
+ LINK_PREVIEW = "LINK_PREVIEW",
259
+ /** @deprecated */
260
+ MAP = "MAP",
261
+ POLL = "POLL",
262
+ APP_EMBED = "APP_EMBED",
263
+ BUTTON = "BUTTON",
264
+ COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
265
+ TABLE = "TABLE",
266
+ EMBED = "EMBED",
267
+ COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
268
+ COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
269
+ COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
270
+ TABLE_CELL = "TABLE_CELL",
271
+ TABLE_ROW = "TABLE_ROW",
272
+ EXTERNAL = "EXTERNAL",
273
+ AUDIO = "AUDIO",
274
+ CAPTION = "CAPTION",
275
+ LAYOUT = "LAYOUT",
276
+ LAYOUT_CELL = "LAYOUT_CELL"
277
+ }
278
+ export interface NodeStyle {
279
+ /** The top padding value in pixels. */
280
+ paddingTop?: string | null;
281
+ /** The bottom padding value in pixels. */
282
+ paddingBottom?: string | null;
283
+ /** The background color as a hexadecimal value. */
284
+ backgroundColor?: string | null;
285
+ }
286
+ export interface ButtonData {
287
+ /** Styling for the button's container. */
288
+ containerData?: PluginContainerData;
289
+ /** The button type. */
290
+ type?: Type;
291
+ /** Styling for the button. */
292
+ styles?: Styles;
293
+ /** The text to display on the button. */
294
+ text?: string | null;
295
+ /** Button link details. */
296
+ link?: Link;
297
+ }
298
+ export interface Border {
299
+ /** Border width in pixels. */
300
+ width?: number | null;
301
+ /** Border radius in pixels. */
302
+ radius?: number | null;
303
+ }
304
+ export interface Colors {
305
+ /** The text color as a hexadecimal value. */
306
+ text?: string | null;
307
+ /** The border color as a hexadecimal value. */
308
+ border?: string | null;
309
+ /** The background color as a hexadecimal value. */
310
+ background?: string | null;
311
+ }
312
+ export interface PluginContainerData {
313
+ /** The width of the node when it's displayed. */
314
+ width?: PluginContainerDataWidth;
315
+ /** The node's alignment within its container. */
316
+ alignment?: PluginContainerDataAlignment;
317
+ /** Spoiler cover settings for the node. */
318
+ spoiler?: Spoiler;
319
+ /** The height of the node when it's displayed. */
320
+ height?: Height;
321
+ /** 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`. */
322
+ textWrap?: boolean | null;
323
+ }
324
+ export declare enum WidthType {
325
+ /** Width matches the content width */
326
+ CONTENT = "CONTENT",
327
+ /** Small Width */
328
+ SMALL = "SMALL",
329
+ /** Width will match the original asset width */
330
+ ORIGINAL = "ORIGINAL",
331
+ /** coast-to-coast display */
332
+ FULL_WIDTH = "FULL_WIDTH"
333
+ }
334
+ export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
335
+ /**
336
+ * One of the following predefined width options:
337
+ * `CONTENT`: The width of the container matches the content width.
338
+ * `SMALL`: A small width.
339
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
340
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
341
+ */
342
+ size?: WidthType;
343
+ /** A custom width value in pixels. */
344
+ custom?: string | null;
345
+ }
346
+ /** @oneof */
347
+ export interface PluginContainerDataWidthDataOneOf {
348
+ /**
349
+ * One of the following predefined width options:
350
+ * `CONTENT`: The width of the container matches the content width.
351
+ * `SMALL`: A small width.
352
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
353
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
354
+ */
355
+ size?: WidthType;
356
+ /** A custom width value in pixels. */
357
+ custom?: string | null;
358
+ }
359
+ export declare enum PluginContainerDataAlignment {
360
+ /** Center Alignment */
361
+ CENTER = "CENTER",
362
+ /** Left Alignment */
363
+ LEFT = "LEFT",
364
+ /** Right Alignment */
365
+ RIGHT = "RIGHT"
366
+ }
367
+ export interface Spoiler {
368
+ /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
369
+ enabled?: boolean | null;
370
+ /** The description displayed on top of the spoiler cover. */
371
+ description?: string | null;
372
+ /** The text for the button used to remove the spoiler cover. */
373
+ buttonText?: string | null;
374
+ }
375
+ export interface Height {
376
+ /** A custom height value in pixels. */
377
+ custom?: string | null;
378
+ }
379
+ export declare enum Type {
380
+ /** Regular link button */
381
+ LINK = "LINK",
382
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
383
+ ACTION = "ACTION"
384
+ }
385
+ export interface Styles {
386
+ /** Border attributes. */
387
+ border?: Border;
388
+ /** Color attributes. */
389
+ colors?: Colors;
390
+ }
391
+ export interface Link extends LinkDataOneOf {
392
+ /** The absolute URL for the linked document. */
393
+ url?: string;
394
+ /** The target node's ID. Used for linking to another node in this object. */
395
+ anchor?: string;
396
+ /**
397
+ * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
398
+ * `SELF` - Default. Opens the linked document in the same frame as the link.
399
+ * `BLANK` - Opens the linked document in a new browser tab or window.
400
+ * `PARENT` - Opens the linked document in the link's parent frame.
401
+ * `TOP` - Opens the linked document in the full body of the link's browser tab or window.
402
+ */
403
+ target?: Target;
404
+ /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
405
+ rel?: Rel;
406
+ /** A serialized object used for a custom or external link panel. */
407
+ customData?: string | null;
408
+ }
409
+ /** @oneof */
410
+ export interface LinkDataOneOf {
411
+ /** The absolute URL for the linked document. */
412
+ url?: string;
413
+ /** The target node's ID. Used for linking to another node in this object. */
414
+ anchor?: string;
415
+ }
416
+ export declare enum Target {
417
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
418
+ SELF = "SELF",
419
+ /** Opens the linked document in a new window or tab */
420
+ BLANK = "BLANK",
421
+ /** Opens the linked document in the parent frame */
422
+ PARENT = "PARENT",
423
+ /** Opens the linked document in the full body of the window */
424
+ TOP = "TOP"
425
+ }
426
+ export interface Rel {
427
+ /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
428
+ nofollow?: boolean | null;
429
+ /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */
430
+ sponsored?: boolean | null;
431
+ /** 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`. */
432
+ ugc?: boolean | null;
433
+ /** Indicates that this link protect referral information from being passed to the target website. */
434
+ noreferrer?: boolean | null;
435
+ }
436
+ export interface CodeBlockData {
437
+ /** Styling for the code block's text. */
438
+ textStyle?: TextStyle;
439
+ }
440
+ export interface TextStyle {
441
+ /** Text alignment. Defaults to `AUTO`. */
442
+ textAlignment?: TextAlignment;
443
+ /** 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. */
444
+ lineHeight?: string | null;
445
+ }
446
+ export declare enum TextAlignment {
447
+ /** browser default, eqivalent to `initial` */
448
+ AUTO = "AUTO",
449
+ /** Left align */
450
+ LEFT = "LEFT",
451
+ /** Right align */
452
+ RIGHT = "RIGHT",
453
+ /** Center align */
454
+ CENTER = "CENTER",
455
+ /** 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 */
456
+ JUSTIFY = "JUSTIFY"
457
+ }
458
+ export interface DividerData {
459
+ /** Styling for the divider's container. */
460
+ containerData?: PluginContainerData;
461
+ /** Divider line style. */
462
+ lineStyle?: LineStyle;
463
+ /** Divider width. */
464
+ width?: Width;
465
+ /** Divider alignment. */
466
+ alignment?: Alignment;
467
+ }
468
+ export declare enum LineStyle {
469
+ /** Single Line */
470
+ SINGLE = "SINGLE",
471
+ /** Double Line */
472
+ DOUBLE = "DOUBLE",
473
+ /** Dashed Line */
474
+ DASHED = "DASHED",
475
+ /** Dotted Line */
476
+ DOTTED = "DOTTED"
477
+ }
478
+ export declare enum Width {
479
+ /** Large line */
480
+ LARGE = "LARGE",
481
+ /** Medium line */
482
+ MEDIUM = "MEDIUM",
483
+ /** Small line */
484
+ SMALL = "SMALL"
485
+ }
486
+ export declare enum Alignment {
487
+ /** Center alignment */
488
+ CENTER = "CENTER",
489
+ /** Left alignment */
490
+ LEFT = "LEFT",
491
+ /** Right alignment */
492
+ RIGHT = "RIGHT"
493
+ }
494
+ export interface FileData {
495
+ /** Styling for the file's container. */
496
+ containerData?: PluginContainerData;
497
+ /** The source for the file's data. */
498
+ src?: FileSource;
499
+ /** File name. */
500
+ name?: string | null;
501
+ /** File type. */
502
+ type?: string | null;
503
+ /**
504
+ * Use `sizeInKb` instead.
505
+ * @deprecated
506
+ */
507
+ size?: number | null;
508
+ /** Settings for PDF files. */
509
+ pdfSettings?: PDFSettings;
510
+ /** File MIME type. */
511
+ mimeType?: string | null;
512
+ /** File path. */
513
+ path?: string | null;
514
+ /** File size in KB. */
515
+ sizeInKb?: string | null;
516
+ }
517
+ export declare enum ViewMode {
518
+ /** No PDF view */
519
+ NONE = "NONE",
520
+ /** Full PDF view */
521
+ FULL = "FULL",
522
+ /** Mini PDF view */
523
+ MINI = "MINI"
524
+ }
525
+ export interface FileSource extends FileSourceDataOneOf {
526
+ /** The absolute URL for the file's source. */
527
+ url?: string | null;
528
+ /**
529
+ * Custom ID. Use `id` instead.
530
+ * @deprecated
531
+ */
532
+ custom?: string | null;
533
+ /** An ID that's resolved to a URL by a resolver function. */
534
+ id?: string | null;
535
+ /** Indicates whether the file's source is private. Defaults to `false`. */
536
+ private?: boolean | null;
537
+ }
538
+ /** @oneof */
539
+ export interface FileSourceDataOneOf {
540
+ /** The absolute URL for the file's source. */
541
+ url?: string | null;
542
+ /**
543
+ * Custom ID. Use `id` instead.
544
+ * @deprecated
545
+ */
546
+ custom?: string | null;
547
+ /** An ID that's resolved to a URL by a resolver function. */
548
+ id?: string | null;
549
+ }
550
+ export interface PDFSettings {
551
+ /**
552
+ * PDF view mode. One of the following:
553
+ * `NONE` : The PDF isn't displayed.
554
+ * `FULL` : A full page view of the PDF is displayed.
555
+ * `MINI` : A mini view of the PDF is displayed.
556
+ */
557
+ viewMode?: ViewMode;
558
+ /** Sets whether the PDF download button is disabled. Defaults to `false`. */
559
+ disableDownload?: boolean | null;
560
+ /** Sets whether the PDF print button is disabled. Defaults to `false`. */
561
+ disablePrint?: boolean | null;
562
+ }
563
+ export interface GalleryData {
564
+ /** Styling for the gallery's container. */
565
+ containerData?: PluginContainerData;
566
+ /** The items in the gallery. */
567
+ items?: Item[];
568
+ /** Options for defining the gallery's appearance. */
569
+ options?: GalleryOptions;
570
+ /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */
571
+ disableExpand?: boolean | null;
572
+ /** Sets whether the gallery's download button is disabled. Defaults to `false`. */
573
+ disableDownload?: boolean | null;
574
+ }
575
+ export interface Media {
576
+ /** The source for the media's data. */
577
+ src?: FileSource;
578
+ /** Media width in pixels. */
579
+ width?: number | null;
580
+ /** Media height in pixels. */
581
+ height?: number | null;
582
+ /** Media duration in seconds. Only relevant for audio and video files. */
583
+ duration?: number | null;
584
+ }
585
+ export interface ItemImage {
586
+ /** Image file details. */
587
+ media?: Media;
588
+ /** Link details for images that are links. */
589
+ link?: Link;
590
+ }
591
+ export interface Video {
592
+ /** Video file details. */
593
+ media?: Media;
594
+ /** Video thumbnail file details. */
595
+ thumbnail?: Media;
596
+ }
597
+ export interface Item extends ItemDataOneOf {
598
+ /** An image item. */
599
+ image?: ItemImage;
600
+ /** A video item. */
601
+ video?: Video;
602
+ /** Item title. */
603
+ title?: string | null;
604
+ /** Item's alternative text. */
605
+ altText?: string | null;
606
+ }
607
+ /** @oneof */
608
+ export interface ItemDataOneOf {
609
+ /** An image item. */
610
+ image?: ItemImage;
611
+ /** A video item. */
612
+ video?: Video;
613
+ }
614
+ export interface GalleryOptions {
615
+ /** Gallery layout. */
616
+ layout?: Layout;
617
+ /** Styling for gallery items. */
618
+ item?: ItemStyle;
619
+ /** Styling for gallery thumbnail images. */
620
+ thumbnails?: Thumbnails;
621
+ }
622
+ export declare enum LayoutType {
623
+ /** Collage type */
624
+ COLLAGE = "COLLAGE",
625
+ /** Masonry type */
626
+ MASONRY = "MASONRY",
627
+ /** Grid type */
628
+ GRID = "GRID",
629
+ /** Thumbnail type */
630
+ THUMBNAIL = "THUMBNAIL",
631
+ /** Slider type */
632
+ SLIDER = "SLIDER",
633
+ /** Slideshow type */
634
+ SLIDESHOW = "SLIDESHOW",
635
+ /** Panorama type */
636
+ PANORAMA = "PANORAMA",
637
+ /** Column type */
638
+ COLUMN = "COLUMN",
639
+ /** Magic type */
640
+ MAGIC = "MAGIC",
641
+ /** Fullsize images type */
642
+ FULLSIZE = "FULLSIZE"
643
+ }
644
+ export declare enum Orientation {
645
+ /** Rows Orientation */
646
+ ROWS = "ROWS",
647
+ /** Columns Orientation */
648
+ COLUMNS = "COLUMNS"
649
+ }
650
+ export declare enum Crop {
651
+ /** Crop to fill */
652
+ FILL = "FILL",
653
+ /** Crop to fit */
654
+ FIT = "FIT"
655
+ }
656
+ export declare enum ThumbnailsAlignment {
657
+ /** Top alignment */
658
+ TOP = "TOP",
659
+ /** Right alignment */
660
+ RIGHT = "RIGHT",
661
+ /** Bottom alignment */
662
+ BOTTOM = "BOTTOM",
663
+ /** Left alignment */
664
+ LEFT = "LEFT",
665
+ /** No thumbnail */
666
+ NONE = "NONE"
667
+ }
668
+ export interface Layout {
669
+ /** Gallery layout type. */
670
+ type?: LayoutType;
671
+ /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
672
+ horizontalScroll?: boolean | null;
673
+ /** Gallery orientation. */
674
+ orientation?: Orientation;
675
+ /** The number of columns to display on full size screens. */
676
+ numberOfColumns?: number | null;
677
+ /** The number of columns to display on mobile screens. */
678
+ mobileNumberOfColumns?: number | null;
679
+ }
680
+ export interface ItemStyle {
681
+ /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
682
+ targetSize?: number | null;
683
+ /** Item ratio */
684
+ ratio?: number | null;
685
+ /** Sets how item images are cropped. */
686
+ crop?: Crop;
687
+ /** The spacing between items in pixels. */
688
+ spacing?: number | null;
689
+ }
690
+ export interface Thumbnails {
691
+ /** Thumbnail alignment. */
692
+ placement?: ThumbnailsAlignment;
693
+ /** Spacing between thumbnails in pixels. */
694
+ spacing?: number | null;
695
+ }
696
+ export interface GIFData {
697
+ /** Styling for the GIF's container. */
698
+ containerData?: PluginContainerData;
699
+ /** The source of the full size GIF. */
700
+ original?: GIF;
701
+ /** The source of the downsized GIF. */
702
+ downsized?: GIF;
703
+ /** Height in pixels. */
704
+ height?: number;
705
+ /** Width in pixels. */
706
+ width?: number;
707
+ /** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */
708
+ gifType?: GIFType;
709
+ }
710
+ export interface GIF {
711
+ /** GIF format URL. */
712
+ gif?: string | null;
713
+ /** MP4 format URL. */
714
+ mp4?: string | null;
715
+ /** Thumbnail URL. */
716
+ still?: string | null;
717
+ }
718
+ export declare enum GIFType {
719
+ NORMAL = "NORMAL",
720
+ STICKER = "STICKER"
721
+ }
722
+ export interface HeadingData {
723
+ /** Heading level from 1-6. */
724
+ level?: number;
725
+ /** Styling for the heading text. */
726
+ textStyle?: TextStyle;
727
+ /** Indentation level from 1-4. */
728
+ indentation?: number | null;
729
+ }
730
+ export interface HTMLData extends HTMLDataDataOneOf {
731
+ /** The URL for the HTML code for the node. */
732
+ url?: string;
733
+ /** The HTML code for the node. */
734
+ html?: string;
735
+ /**
736
+ * Whether this is an AdSense element. Use `source` instead.
737
+ * @deprecated
738
+ */
739
+ isAdsense?: boolean | null;
740
+ /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
741
+ containerData?: PluginContainerData;
742
+ /** The type of HTML code. */
743
+ source?: Source;
744
+ /** If container height is aligned with its content height. Defaults to `true`. */
745
+ autoHeight?: boolean | null;
746
+ }
747
+ /** @oneof */
748
+ export interface HTMLDataDataOneOf {
749
+ /** The URL for the HTML code for the node. */
750
+ url?: string;
751
+ /** The HTML code for the node. */
752
+ html?: string;
753
+ /**
754
+ * Whether this is an AdSense element. Use `source` instead.
755
+ * @deprecated
756
+ */
757
+ isAdsense?: boolean | null;
758
+ }
759
+ export declare enum Source {
760
+ HTML = "HTML",
761
+ ADSENSE = "ADSENSE"
762
+ }
763
+ export interface ImageData {
764
+ /** Styling for the image's container. */
765
+ containerData?: PluginContainerData;
766
+ /** Image file details. */
767
+ image?: Media;
768
+ /** Link details for images that are links. */
769
+ link?: Link;
770
+ /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */
771
+ disableExpand?: boolean | null;
772
+ /** Image's alternative text. */
773
+ altText?: string | null;
774
+ /**
775
+ * Deprecated: use Caption node instead.
776
+ * @deprecated
777
+ */
778
+ caption?: string | null;
779
+ /** Sets whether the image's download button is disabled. Defaults to `false`. */
780
+ disableDownload?: boolean | null;
781
+ }
782
+ export interface LinkPreviewData {
783
+ /** Styling for the link preview's container. */
784
+ containerData?: PluginContainerData;
785
+ /** Link details. */
786
+ link?: Link;
787
+ /** Preview title. */
788
+ title?: string | null;
789
+ /** Preview thumbnail URL. */
790
+ thumbnailUrl?: string | null;
791
+ /** Preview description. */
792
+ description?: string | null;
793
+ /** The preview content as HTML. */
794
+ html?: string | null;
795
+ }
796
+ export interface MapData {
797
+ /** Styling for the map's container. */
798
+ containerData?: PluginContainerData;
799
+ /** Map settings. */
800
+ mapSettings?: MapSettings;
801
+ }
802
+ export interface MapSettings {
803
+ /** The address to display on the map. */
804
+ address?: string | null;
805
+ /** Sets whether the map is draggable. */
806
+ draggable?: boolean | null;
807
+ /** Sets whether the location marker is visible. */
808
+ marker?: boolean | null;
809
+ /** Sets whether street view control is enabled. */
810
+ streetViewControl?: boolean | null;
811
+ /** Sets whether zoom control is enabled. */
812
+ zoomControl?: boolean | null;
813
+ /** Location latitude. */
814
+ lat?: number | null;
815
+ /** Location longitude. */
816
+ lng?: number | null;
817
+ /** Location name. */
818
+ locationName?: string | null;
819
+ /** Sets whether view mode control is enabled. */
820
+ viewModeControl?: boolean | null;
821
+ /** Initial zoom value. */
822
+ initialZoom?: number | null;
823
+ /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
824
+ mapType?: MapType;
825
+ }
826
+ export declare enum MapType {
827
+ /** Roadmap map type */
828
+ ROADMAP = "ROADMAP",
829
+ /** Satellite map type */
830
+ SATELITE = "SATELITE",
831
+ /** Hybrid map type */
832
+ HYBRID = "HYBRID",
833
+ /** Terrain map type */
834
+ TERRAIN = "TERRAIN"
835
+ }
836
+ export interface ParagraphData {
837
+ /** Styling for the paragraph text. */
838
+ textStyle?: TextStyle;
839
+ /** Indentation level from 1-4. */
840
+ indentation?: number | null;
841
+ /** Paragraph level */
842
+ level?: number | null;
843
+ }
844
+ export interface PollData {
845
+ /** Styling for the poll's container. */
846
+ containerData?: PluginContainerData;
847
+ /** Poll data. */
848
+ poll?: Poll;
849
+ /** Layout settings for the poll and voting options. */
850
+ layout?: PollDataLayout;
851
+ /** Styling for the poll and voting options. */
852
+ design?: Design;
853
+ }
854
+ export declare enum ViewRole {
855
+ /** Only Poll creator can view the results */
856
+ CREATOR = "CREATOR",
857
+ /** Anyone who voted can see the results */
858
+ VOTERS = "VOTERS",
859
+ /** Anyone can see the results, even if one didn't vote */
860
+ EVERYONE = "EVERYONE"
861
+ }
862
+ export declare enum VoteRole {
863
+ /** Logged in member */
864
+ SITE_MEMBERS = "SITE_MEMBERS",
865
+ /** Anyone */
866
+ ALL = "ALL"
867
+ }
868
+ export interface Permissions {
869
+ /** Sets who can view the poll results. */
870
+ view?: ViewRole;
871
+ /** Sets who can vote. */
872
+ vote?: VoteRole;
873
+ /** Sets whether one voter can vote multiple times. Defaults to `false`. */
874
+ allowMultipleVotes?: boolean | null;
875
+ }
876
+ export interface Option {
877
+ /** Option ID. */
878
+ id?: string | null;
879
+ /** Option title. */
880
+ title?: string | null;
881
+ /** The image displayed with the option. */
882
+ image?: Media;
883
+ }
884
+ export interface Settings {
885
+ /** Permissions settings for voting. */
886
+ permissions?: Permissions;
887
+ /** Sets whether voters are displayed in the vote results. Defaults to `true`. */
888
+ showVoters?: boolean | null;
889
+ /** Sets whether the vote count is displayed. Defaults to `true`. */
890
+ showVotesCount?: boolean | null;
891
+ }
892
+ export declare enum PollLayoutType {
893
+ /** List */
894
+ LIST = "LIST",
895
+ /** Grid */
896
+ GRID = "GRID"
897
+ }
898
+ export declare enum PollLayoutDirection {
899
+ /** Left-to-right */
900
+ LTR = "LTR",
901
+ /** Right-to-left */
902
+ RTL = "RTL"
903
+ }
904
+ export interface PollLayout {
905
+ /** The layout for displaying the voting options. */
906
+ type?: PollLayoutType;
907
+ /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
908
+ direction?: PollLayoutDirection;
909
+ /** Sets whether to display the main poll image. Defaults to `false`. */
910
+ enableImage?: boolean | null;
911
+ }
912
+ export interface OptionLayout {
913
+ /** Sets whether to display option images. Defaults to `false`. */
914
+ enableImage?: boolean | null;
915
+ }
916
+ export declare enum BackgroundType {
917
+ /** Color background type */
918
+ COLOR = "COLOR",
919
+ /** Image background type */
920
+ IMAGE = "IMAGE",
921
+ /** Gradiant background type */
922
+ GRADIENT = "GRADIENT"
923
+ }
924
+ export interface Gradient {
925
+ /** The gradient angle in degrees. */
926
+ angle?: number | null;
927
+ /** The start color as a hexademical value. */
928
+ startColor?: string | null;
929
+ /** The end color as a hexademical value. */
930
+ lastColor?: string | null;
931
+ }
932
+ export interface Background extends BackgroundBackgroundOneOf {
933
+ /** The background color as a hexademical value. */
934
+ color?: string | null;
935
+ /** An image to use for the background. */
936
+ image?: Media;
937
+ /** Details for a gradient background. */
938
+ gradient?: Gradient;
939
+ /** Background type. For each option, include the relevant details. */
940
+ type?: BackgroundType;
941
+ }
942
+ /** @oneof */
943
+ export interface BackgroundBackgroundOneOf {
944
+ /** The background color as a hexademical value. */
945
+ color?: string | null;
946
+ /** An image to use for the background. */
947
+ image?: Media;
948
+ /** Details for a gradient background. */
949
+ gradient?: Gradient;
950
+ }
951
+ export interface PollDesign {
952
+ /** Background styling. */
953
+ background?: Background;
954
+ /** Border radius in pixels. */
955
+ borderRadius?: number | null;
956
+ }
957
+ export interface OptionDesign {
958
+ /** Border radius in pixels. */
959
+ borderRadius?: number | null;
960
+ }
961
+ export interface Poll {
962
+ /** Poll ID. */
963
+ id?: string | null;
964
+ /** Poll title. */
965
+ title?: string | null;
966
+ /** Poll creator ID. */
967
+ creatorId?: string | null;
968
+ /** Main poll image. */
969
+ image?: Media;
970
+ /** Voting options. */
971
+ options?: Option[];
972
+ /** The poll's permissions and display settings. */
973
+ settings?: Settings;
974
+ }
975
+ export interface PollDataLayout {
976
+ /** Poll layout settings. */
977
+ poll?: PollLayout;
978
+ /** Voting otpions layout settings. */
979
+ options?: OptionLayout;
980
+ }
981
+ export interface Design {
982
+ /** Styling for the poll. */
983
+ poll?: PollDesign;
984
+ /** Styling for voting options. */
985
+ options?: OptionDesign;
986
+ }
987
+ export interface TextData {
988
+ /** The text to apply decorations to. */
989
+ text?: string;
990
+ /** The decorations to apply. */
991
+ decorations?: Decoration[];
992
+ }
993
+ /** Adds appearence changes to text */
994
+ export interface Decoration extends DecorationDataOneOf {
995
+ /** Data for an anchor link decoration. */
996
+ anchorData?: AnchorData;
997
+ /** Data for a color decoration. */
998
+ colorData?: ColorData;
999
+ /** Data for an external link decoration. */
1000
+ linkData?: LinkData;
1001
+ /** Data for a mention decoration. */
1002
+ mentionData?: MentionData;
1003
+ /** Data for a font size decoration. */
1004
+ fontSizeData?: FontSizeData;
1005
+ /** Font weight for a bold decoration. */
1006
+ fontWeightValue?: number | null;
1007
+ /** Data for an italic decoration. Defaults to `true`. */
1008
+ italicData?: boolean | null;
1009
+ /** Data for an underline decoration. Defaults to `true`. */
1010
+ underlineData?: boolean | null;
1011
+ /** Data for a spoiler decoration. */
1012
+ spoilerData?: SpoilerData;
1013
+ /** The type of decoration to apply. */
1014
+ type?: DecorationType;
1015
+ }
1016
+ /** @oneof */
1017
+ export interface DecorationDataOneOf {
1018
+ /** Data for an anchor link decoration. */
1019
+ anchorData?: AnchorData;
1020
+ /** Data for a color decoration. */
1021
+ colorData?: ColorData;
1022
+ /** Data for an external link decoration. */
1023
+ linkData?: LinkData;
1024
+ /** Data for a mention decoration. */
1025
+ mentionData?: MentionData;
1026
+ /** Data for a font size decoration. */
1027
+ fontSizeData?: FontSizeData;
1028
+ /** Font weight for a bold decoration. */
1029
+ fontWeightValue?: number | null;
1030
+ /** Data for an italic decoration. Defaults to `true`. */
1031
+ italicData?: boolean | null;
1032
+ /** Data for an underline decoration. Defaults to `true`. */
1033
+ underlineData?: boolean | null;
1034
+ /** Data for a spoiler decoration. */
1035
+ spoilerData?: SpoilerData;
1036
+ }
1037
+ export declare enum DecorationType {
1038
+ BOLD = "BOLD",
1039
+ ITALIC = "ITALIC",
1040
+ UNDERLINE = "UNDERLINE",
1041
+ SPOILER = "SPOILER",
1042
+ ANCHOR = "ANCHOR",
1043
+ MENTION = "MENTION",
1044
+ LINK = "LINK",
1045
+ COLOR = "COLOR",
1046
+ FONT_SIZE = "FONT_SIZE",
1047
+ EXTERNAL = "EXTERNAL"
1048
+ }
1049
+ export interface AnchorData {
1050
+ /** The target node's ID. */
1051
+ anchor?: string;
1052
+ }
1053
+ export interface ColorData {
1054
+ /** The text's background color as a hexadecimal value. */
1055
+ background?: string | null;
1056
+ /** The text's foreground color as a hexadecimal value. */
1057
+ foreground?: string | null;
1058
+ }
1059
+ export interface LinkData {
1060
+ /** Link details. */
1061
+ link?: Link;
1062
+ }
1063
+ export interface MentionData {
1064
+ /** The mentioned user's name. */
1065
+ name?: string;
1066
+ /** The version of the user's name that appears after the `@` character in the mention. */
1067
+ slug?: string;
1068
+ /** Mentioned user's ID. */
1069
+ id?: string | null;
1070
+ }
1071
+ export interface FontSizeData {
1072
+ /** The units used for the font size. */
1073
+ unit?: FontType;
1074
+ /** Font size value. */
1075
+ value?: number | null;
1076
+ }
1077
+ export declare enum FontType {
1078
+ PX = "PX",
1079
+ EM = "EM"
1080
+ }
1081
+ export interface SpoilerData {
1082
+ /** Spoiler ID. */
1083
+ id?: string | null;
1084
+ }
1085
+ export interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1086
+ /** Data for embedded Wix Bookings content. */
1087
+ bookingData?: BookingData;
1088
+ /** Data for embedded Wix Events content. */
1089
+ eventData?: EventData;
1090
+ /** The type of Wix App content being embedded. */
1091
+ type?: AppType;
1092
+ /** The ID of the embedded content. */
1093
+ itemId?: string | null;
1094
+ /** The name of the embedded content. */
1095
+ name?: string | null;
1096
+ /**
1097
+ * Deprecated: Use `image` instead.
1098
+ * @deprecated
1099
+ */
1100
+ imageSrc?: string | null;
1101
+ /** The URL for the embedded content. */
1102
+ url?: string | null;
1103
+ /** An image for the embedded content. */
1104
+ image?: Media;
1105
+ }
1106
+ /** @oneof */
1107
+ export interface AppEmbedDataAppDataOneOf {
1108
+ /** Data for embedded Wix Bookings content. */
1109
+ bookingData?: BookingData;
1110
+ /** Data for embedded Wix Events content. */
1111
+ eventData?: EventData;
1112
+ }
1113
+ export declare enum AppType {
1114
+ PRODUCT = "PRODUCT",
1115
+ EVENT = "EVENT",
1116
+ BOOKING = "BOOKING"
1117
+ }
1118
+ export interface BookingData {
1119
+ /** Booking duration in minutes. */
1120
+ durations?: string | null;
1121
+ }
1122
+ export interface EventData {
1123
+ /** Event schedule. */
1124
+ scheduling?: string | null;
1125
+ /** Event location. */
1126
+ location?: string | null;
1127
+ }
1128
+ export interface VideoData {
1129
+ /** Styling for the video's container. */
1130
+ containerData?: PluginContainerData;
1131
+ /** Video details. */
1132
+ video?: Media;
1133
+ /** Video thumbnail details. */
1134
+ thumbnail?: Media;
1135
+ /** Sets whether the video's download button is disabled. Defaults to `false`. */
1136
+ disableDownload?: boolean | null;
1137
+ /** Video title. */
1138
+ title?: string | null;
1139
+ /** Video options. */
1140
+ options?: PlaybackOptions;
1141
+ }
1142
+ export interface PlaybackOptions {
1143
+ /** Sets whether the media will automatically start playing. */
1144
+ autoPlay?: boolean | null;
1145
+ /** Sets whether media's will be looped. */
1146
+ playInLoop?: boolean | null;
1147
+ /** Sets whether media's controls will be shown. */
1148
+ showControls?: boolean | null;
1149
+ }
1150
+ export interface EmbedData {
1151
+ /** Styling for the oEmbed node's container. */
1152
+ containerData?: PluginContainerData;
1153
+ /** An [oEmbed](https://www.oembed.com) object. */
1154
+ oembed?: Oembed;
1155
+ /** Origin asset source. */
1156
+ src?: string | null;
1157
+ }
1158
+ export interface Oembed {
1159
+ /** The resource type. */
1160
+ type?: string | null;
1161
+ /** The width of the resource specified in the `url` property in pixels. */
1162
+ width?: number | null;
1163
+ /** The height of the resource specified in the `url` property in pixels. */
1164
+ height?: number | null;
1165
+ /** Resource title. */
1166
+ title?: string | null;
1167
+ /** The source URL for the resource. */
1168
+ url?: string | null;
1169
+ /** HTML for embedding a video player. The HTML should have no padding or margins. */
1170
+ html?: string | null;
1171
+ /** The name of the author or owner of the resource. */
1172
+ authorName?: string | null;
1173
+ /** The URL for the author or owner of the resource. */
1174
+ authorUrl?: string | null;
1175
+ /** The name of the resource provider. */
1176
+ providerName?: string | null;
1177
+ /** The URL for the resource provider. */
1178
+ providerUrl?: string | null;
1179
+ /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
1180
+ thumbnailUrl?: string | null;
1181
+ /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
1182
+ thumbnailWidth?: string | null;
1183
+ /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
1184
+ thumbnailHeight?: string | null;
1185
+ /** The URL for an embedded viedo. */
1186
+ videoUrl?: string | null;
1187
+ /** The oEmbed version number. This value must be `1.0`. */
1188
+ version?: string | null;
1189
+ }
1190
+ export interface CollapsibleListData {
1191
+ /** Styling for the collapsible list's container. */
1192
+ containerData?: PluginContainerData;
1193
+ /** If `true`, only one item can be expanded at a time. Defaults to `false`. */
1194
+ expandOnlyOne?: boolean | null;
1195
+ /** Sets which items are expanded when the page loads. */
1196
+ initialExpandedItems?: InitialExpandedItems;
1197
+ /** The direction of the text in the list. Either left-to-right or right-to-left. */
1198
+ direction?: Direction;
1199
+ /** If `true`, The collapsible item will appear in search results as an FAQ. */
1200
+ isQapageData?: boolean | null;
1201
+ }
1202
+ export declare enum InitialExpandedItems {
1203
+ /** First item will be expended initally */
1204
+ FIRST = "FIRST",
1205
+ /** All items will expended initally */
1206
+ ALL = "ALL",
1207
+ /** All items collapsed initally */
1208
+ NONE = "NONE"
1209
+ }
1210
+ export declare enum Direction {
1211
+ /** Left-to-right */
1212
+ LTR = "LTR",
1213
+ /** Right-to-left */
1214
+ RTL = "RTL"
1215
+ }
1216
+ export interface TableData {
1217
+ /** Styling for the table's container. */
1218
+ containerData?: PluginContainerData;
1219
+ /** The table's dimensions. */
1220
+ dimensions?: Dimensions;
1221
+ /**
1222
+ * Deprecated: Use `rowHeader` and `columnHeader` instead.
1223
+ * @deprecated
1224
+ */
1225
+ header?: boolean | null;
1226
+ /** Sets whether the table's first row is a header. Defaults to `false`. */
1227
+ rowHeader?: boolean | null;
1228
+ /** Sets whether the table's first column is a header. Defaults to `false`. */
1229
+ columnHeader?: boolean | null;
1230
+ }
1231
+ export interface Dimensions {
1232
+ /** An array representing relative width of each column in relation to the other columns. */
1233
+ colsWidthRatio?: number[];
1234
+ /** An array representing the height of each row in pixels. */
1235
+ rowsHeight?: number[];
1236
+ /** An array representing the minimum width of each column in pixels. */
1237
+ colsMinWidth?: number[];
1238
+ }
1239
+ export interface TableCellData {
1240
+ /** Styling for the cell's background color and text alignment. */
1241
+ cellStyle?: CellStyle;
1242
+ /** The cell's border colors. */
1243
+ borderColors?: BorderColors;
1244
+ }
1245
+ export declare enum VerticalAlignment {
1246
+ /** Top alignment */
1247
+ TOP = "TOP",
1248
+ /** Middle alignment */
1249
+ MIDDLE = "MIDDLE",
1250
+ /** Bottom alignment */
1251
+ BOTTOM = "BOTTOM"
1252
+ }
1253
+ export interface CellStyle {
1254
+ /** Vertical alignment for the cell's text. */
1255
+ verticalAlignment?: VerticalAlignment;
1256
+ /** Cell background color as a hexadecimal value. */
1257
+ backgroundColor?: string | null;
1258
+ }
1259
+ export interface BorderColors {
1260
+ /** Left border color as a hexadecimal value. */
1261
+ left?: string | null;
1262
+ /** Right border color as a hexadecimal value. */
1263
+ right?: string | null;
1264
+ /** Top border color as a hexadecimal value. */
1265
+ top?: string | null;
1266
+ /** Bottom border color as a hexadecimal value. */
1267
+ bottom?: string | null;
1268
+ }
1269
+ /**
1270
+ * `NullValue` is a singleton enumeration to represent the null value for the
1271
+ * `Value` type union.
1272
+ *
1273
+ * The JSON representation for `NullValue` is JSON `null`.
1274
+ */
1275
+ export declare enum NullValue {
1276
+ /** Null value. */
1277
+ NULL_VALUE = "NULL_VALUE"
1278
+ }
1279
+ /**
1280
+ * `ListValue` is a wrapper around a repeated field of values.
1281
+ *
1282
+ * The JSON representation for `ListValue` is JSON array.
1283
+ */
1284
+ export interface ListValue {
1285
+ /** Repeated field of dynamically typed values. */
1286
+ values?: any[];
1287
+ }
1288
+ export interface AudioData {
1289
+ /** Styling for the audio node's container. */
1290
+ containerData?: PluginContainerData;
1291
+ /** Audio file details. */
1292
+ audio?: Media;
1293
+ /** Sets whether the audio node's download button is disabled. Defaults to `false`. */
1294
+ disableDownload?: boolean | null;
1295
+ /** Cover image. */
1296
+ coverImage?: Media;
1297
+ /** Track name. */
1298
+ name?: string | null;
1299
+ /** Author name. */
1300
+ authorName?: string | null;
1301
+ /** An HTML version of the audio node. */
1302
+ html?: string | null;
1303
+ }
1304
+ export interface OrderedListData {
1305
+ /** Indentation level from 0-4. */
1306
+ indentation?: number;
1307
+ /** Offset level from 0-4. */
1308
+ offset?: number | null;
1309
+ /** List start number. */
1310
+ start?: number | null;
1311
+ }
1312
+ export interface BulletedListData {
1313
+ /** Indentation level from 0-4. */
1314
+ indentation?: number;
1315
+ /** Offset level from 0-4. */
1316
+ offset?: number | null;
1317
+ }
1318
+ export interface BlockquoteData {
1319
+ /** Indentation level from 1-4. */
1320
+ indentation?: number;
1321
+ }
1322
+ export interface CaptionData {
1323
+ textStyle?: TextStyle;
1324
+ }
1325
+ export interface LayoutCellData {
1326
+ /** Size of the cell in 12 columns grid. */
1327
+ colSpan?: number | null;
1328
+ }
1329
+ export interface Metadata {
1330
+ /** Schema version. */
1331
+ version?: number;
1332
+ /**
1333
+ * When the object was created.
1334
+ * @readonly
1335
+ * @deprecated
1336
+ */
1337
+ createdTimestamp?: Date | null;
1338
+ /**
1339
+ * When the object was most recently updated.
1340
+ * @deprecated
1341
+ */
1342
+ updatedTimestamp?: Date | null;
1343
+ /** Object ID. */
1344
+ id?: string | null;
1345
+ }
1346
+ export interface DocumentStyle {
1347
+ /** Styling for H1 nodes. */
1348
+ headerOne?: TextNodeStyle;
1349
+ /** Styling for H2 nodes. */
1350
+ headerTwo?: TextNodeStyle;
1351
+ /** Styling for H3 nodes. */
1352
+ headerThree?: TextNodeStyle;
1353
+ /** Styling for H4 nodes. */
1354
+ headerFour?: TextNodeStyle;
1355
+ /** Styling for H5 nodes. */
1356
+ headerFive?: TextNodeStyle;
1357
+ /** Styling for H6 nodes. */
1358
+ headerSix?: TextNodeStyle;
1359
+ /** Styling for paragraph nodes. */
1360
+ paragraph?: TextNodeStyle;
1361
+ /** Styling for block quote nodes. */
1362
+ blockquote?: TextNodeStyle;
1363
+ /** Styling for code block nodes. */
1364
+ codeBlock?: TextNodeStyle;
1365
+ }
1366
+ export interface TextNodeStyle {
1367
+ /** The decorations to apply to the node. */
1368
+ decorations?: Decoration[];
1369
+ /** Padding and background color for the node. */
1370
+ nodeStyle?: NodeStyle;
1371
+ /** Line height for text in the node. */
1372
+ lineHeight?: string | null;
1373
+ }
1374
+ export interface Mention extends MentionIdentityOneOf {
1375
+ /** Wix user ID. */
1376
+ userId?: string | null;
1377
+ /** Member ID. See the Members API for more details. */
1378
+ memberId?: string | null;
1379
+ /** Visitor ID. */
1380
+ visitorId?: string | null;
1381
+ /** Group ID. See the Groups API for more details. */
1382
+ groupId?: string | null;
1383
+ }
1384
+ /** @oneof */
1385
+ export interface MentionIdentityOneOf {
1386
+ /** Wix user ID. */
1387
+ userId?: string | null;
1388
+ /** Member ID. See the Members API for more details. */
1389
+ memberId?: string | null;
1390
+ /** Visitor ID. */
1391
+ visitorId?: string | null;
1392
+ /** Group ID. See the Groups API for more details. */
1393
+ groupId?: string | null;
1394
+ }
1395
+ export interface Attachment extends AttachmentMediaOneOf {
1396
+ /** Information about the image. */
1397
+ image?: Image;
1398
+ /** Information about the video. */
1399
+ video?: VideoV2;
1400
+ /** Information about the audio. */
1401
+ audio?: Audio;
1402
+ /** Information about the document. */
1403
+ document?: Document;
1404
+ /** Mime type of attachment. */
1405
+ mimeType?: string | null;
1406
+ }
1407
+ /** @oneof */
1408
+ export interface AttachmentMediaOneOf {
1409
+ /** Information about the image. */
1410
+ image?: Image;
1411
+ /** Information about the video. */
1412
+ video?: VideoV2;
1413
+ /** Information about the audio. */
1414
+ audio?: Audio;
1415
+ /** Information about the document. */
1416
+ document?: Document;
1417
+ }
1418
+ export interface Image {
1419
+ /** WixMedia image ID. */
1420
+ id?: string;
1421
+ /** Image URL. */
1422
+ url?: string;
1423
+ /**
1424
+ * Original image height.
1425
+ * @readonly
1426
+ */
1427
+ height?: number;
1428
+ /**
1429
+ * Original image width.
1430
+ * @readonly
1431
+ */
1432
+ width?: number;
1433
+ /**
1434
+ * Image alt text.
1435
+ * @readonly
1436
+ */
1437
+ altText?: string | null;
1438
+ /**
1439
+ * Image URL expiration date (when relevant).
1440
+ * @readonly
1441
+ */
1442
+ urlExpirationDate?: Date | null;
1443
+ /**
1444
+ * Image filename.
1445
+ * @readonly
1446
+ */
1447
+ filename?: string | null;
1448
+ /**
1449
+ * Image size in bytes.
1450
+ * @readonly
1451
+ */
1452
+ sizeInBytes?: string | null;
1453
+ }
1454
+ export interface VideoV2 {
1455
+ /** WixMedia ID. */
1456
+ id?: string;
1457
+ /** Original video URL. */
1458
+ url?: string;
1459
+ /**
1460
+ * Available resolutions for the video, starting with the optimal resolution.
1461
+ * @readonly
1462
+ */
1463
+ resolutions?: VideoResolution[];
1464
+ /**
1465
+ * Video filename.
1466
+ * @readonly
1467
+ */
1468
+ filename?: string | null;
1469
+ /**
1470
+ * Video posters.
1471
+ * @readonly
1472
+ */
1473
+ posters?: Image[];
1474
+ /**
1475
+ * Original video size in bytes.
1476
+ * @readonly
1477
+ */
1478
+ sizeInBytes?: string | null;
1479
+ /**
1480
+ * Video URL expiration date (when relevant).
1481
+ * @readonly
1482
+ */
1483
+ urlExpirationDate?: Date | null;
1484
+ }
1485
+ export interface VideoResolution {
1486
+ /** Video URL. */
1487
+ url?: string;
1488
+ /** Video height. */
1489
+ height?: number;
1490
+ /** Video width. */
1491
+ width?: number;
1492
+ /** Video format for example, mp4, hls. */
1493
+ format?: string;
1494
+ /**
1495
+ * Video quality. For example: 480p, 720p.
1496
+ * @readonly
1497
+ */
1498
+ quality?: string | null;
1499
+ /**
1500
+ * Video filename.
1501
+ * @readonly
1502
+ */
1503
+ filename?: string | null;
1504
+ /**
1505
+ * Video duration in seconds.
1506
+ * @readonly
1507
+ */
1508
+ durationInSeconds?: number | null;
1509
+ /**
1510
+ * When true, this is a protected asset, and calling the URL will return a 403 error.
1511
+ * In order to access private assets, make a request to:
1512
+ * `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
1513
+ * @readonly
1514
+ */
1515
+ private?: boolean | null;
1516
+ /**
1517
+ * Key to identify the video resolution's relationship to the original media in WixMedia.
1518
+ * Can be used to request a download for the specific video resolution.
1519
+ * For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
1520
+ * @readonly
1521
+ */
1522
+ assetKey?: string | null;
1523
+ }
1524
+ export interface Audio {
1525
+ /** WixMedia ID. */
1526
+ id?: string;
1527
+ /** Audio URL. */
1528
+ url?: string;
1529
+ /**
1530
+ * Audio URL expiration date (when relevant).
1531
+ * @readonly
1532
+ */
1533
+ urlExpirationDate?: Date | null;
1534
+ /**
1535
+ * Audio size in bytes.
1536
+ * @readonly
1537
+ */
1538
+ sizeInBytes?: string | null;
1539
+ /**
1540
+ * Audio filename.
1541
+ * @readonly
1542
+ */
1543
+ filename?: string | null;
1544
+ /**
1545
+ * Audio duration in seconds.
1546
+ * @readonly
1547
+ */
1548
+ duration?: number | null;
1549
+ /**
1550
+ * When true, this is a protected asset, and calling the URL will return a 403 error.
1551
+ * In order to access private assets, make a request to:
1552
+ * `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
1553
+ * @readonly
1554
+ */
1555
+ private?: boolean | null;
1556
+ /**
1557
+ * Key to identify the object relationship to the original media in WixMedia.
1558
+ * Can be used to request a download for the specific asset.
1559
+ * For example: 128-30kbs.mp3, 320kbs.mp3, 128kbs.mp3
1560
+ * @readonly
1561
+ */
1562
+ assetKey?: string | null;
1563
+ /**
1564
+ * Audio format.
1565
+ * @readonly
1566
+ */
1567
+ format?: string | null;
1568
+ /**
1569
+ * Audio quality.
1570
+ * @readonly
1571
+ */
1572
+ quality?: string | null;
1573
+ }
1574
+ export interface Document {
1575
+ /** WixMedia ID. */
1576
+ id?: string;
1577
+ /** Document URL. */
1578
+ url?: string;
1579
+ /**
1580
+ * Document URL expiration date (when relevant).
1581
+ * @readonly
1582
+ */
1583
+ urlExpirationDate?: Date | null;
1584
+ /**
1585
+ * Document size in bytes.
1586
+ * @readonly
1587
+ */
1588
+ sizeInBytes?: string | null;
1589
+ /**
1590
+ * Document filename.
1591
+ * @readonly
1592
+ */
1593
+ filename?: string | null;
1594
+ }
1595
+ export interface ContentAuthor extends ContentAuthorAuthorOneOf {
1596
+ /** Wix user ID. */
1597
+ userId?: string | null;
1598
+ /** Member ID. See the Members API for more details. */
1599
+ memberId?: string | null;
1600
+ /** Visitor ID. */
1601
+ visitorId?: string | null;
1602
+ /** 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). */
1603
+ appId?: string | null;
1604
+ }
1605
+ /** @oneof */
1606
+ export interface ContentAuthorAuthorOneOf {
1607
+ /** Wix user ID. */
1608
+ userId?: string | null;
1609
+ /** Member ID. See the Members API for more details. */
1610
+ memberId?: string | null;
1611
+ /** Visitor ID. */
1612
+ visitorId?: string | null;
1613
+ /** 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). */
1614
+ appId?: string | null;
1615
+ }
1616
+ export interface CommentAuthor extends CommentAuthorIdentityOneOf {
1617
+ /** Wix user ID. */
1618
+ userId?: string | null;
1619
+ /** Member ID. See the Members API for more details. */
1620
+ memberId?: string | null;
1621
+ /** Visitor ID. */
1622
+ visitorId?: string | null;
1623
+ }
1624
+ /** @oneof */
1625
+ export interface CommentAuthorIdentityOneOf {
1626
+ /** Wix user ID. */
1627
+ userId?: string | null;
1628
+ /** Member ID. See the Members API for more details. */
1629
+ memberId?: string | null;
1630
+ /** Visitor ID. */
1631
+ visitorId?: string | null;
1632
+ }
1633
+ export interface ParentComment {
1634
+ /** Comment ID of the parent comment. */
1635
+ id?: string | null;
1636
+ /**
1637
+ * Author of the parent comment.
1638
+ * @readonly
1639
+ */
1640
+ author?: CommentAuthor;
1641
+ /**
1642
+ * Parent comment status.
1643
+ * @readonly
1644
+ */
1645
+ status?: Status;
1646
+ }
1647
+ export declare enum Status {
1648
+ /** Unknown status. */
1649
+ UNKNOWN = "UNKNOWN",
1650
+ /** This comment is published and publicly visible. */
1651
+ PUBLISHED = "PUBLISHED",
1652
+ /** This comment is deleted. */
1653
+ DELETED = "DELETED",
1654
+ /** This comment is pending moderation. Moderation is not currently supported. */
1655
+ PENDING = "PENDING",
1656
+ /** This comment has been hidden by a site moderator. */
1657
+ HIDDEN = "HIDDEN"
1658
+ }
1659
+ export interface VoteSummary {
1660
+ /** Number of upvotes less downvotes on this comment. */
1661
+ netVoteCount?: number;
1662
+ /** Number of upvotes on this comment. */
1663
+ upvoteCount?: number;
1664
+ /** Number of downvotes on this comment. */
1665
+ downvoteCount?: number;
1666
+ }
1667
+ export interface CommentReactionSummary {
1668
+ /** Total amount of reactions. */
1669
+ total?: number;
1670
+ /**
1671
+ * Number of each type of reaction. `key` is the code for a reaction type and
1672
+ * `value` is the amount of that reaction type.
1673
+ */
1674
+ reactionCodeCount?: Record<string, number>;
1675
+ }
1676
+ export interface UpdateInternalDocumentsEvent extends UpdateInternalDocumentsEventOperationOneOf {
1677
+ /** insert/update documents */
1678
+ update?: InternalDocumentUpdateOperation;
1679
+ /** delete by document ids */
1680
+ deleteByIds?: DeleteByIdsOperation;
1681
+ /** delete documents matching filter */
1682
+ deleteByFilter?: DeleteByFilterOperation;
1683
+ /** update internal documents matching filter */
1684
+ updateByFilter?: InternalDocumentUpdateByFilterOperation;
1685
+ /** update only existing documents */
1686
+ updateExisting?: InternalUpdateExistingOperation;
1687
+ /** insert/update documents with versioning */
1688
+ versionedUpdate?: VersionedDocumentUpdateOperation;
1689
+ /** delete by document ids with versioning */
1690
+ versionedDeleteByIds?: VersionedDeleteByIdsOperation;
1691
+ /** type of the documents */
1692
+ documentType?: string;
1693
+ /** language of the documents (mandatory) */
1694
+ language?: string | null;
1695
+ /**
1696
+ * one or more search documents
1697
+ * @deprecated
1698
+ */
1699
+ addDocuments?: InternalDocument[];
1700
+ /**
1701
+ * one or more ids of indexed documents to be removed. Removal will happen before addition (if both provided)
1702
+ * @deprecated
1703
+ */
1704
+ removeDocumentIds?: string[];
1705
+ /** id to pass to processing notification */
1706
+ correlationId?: string | null;
1707
+ /** when event was created / issued */
1708
+ issuedAt?: Date | null;
1709
+ }
1710
+ /** @oneof */
1711
+ export interface UpdateInternalDocumentsEventOperationOneOf {
1712
+ /** insert/update documents */
1713
+ update?: InternalDocumentUpdateOperation;
1714
+ /** delete by document ids */
1715
+ deleteByIds?: DeleteByIdsOperation;
1716
+ /** delete documents matching filter */
1717
+ deleteByFilter?: DeleteByFilterOperation;
1718
+ /** update internal documents matching filter */
1719
+ updateByFilter?: InternalDocumentUpdateByFilterOperation;
1720
+ /** update only existing documents */
1721
+ updateExisting?: InternalUpdateExistingOperation;
1722
+ /** insert/update documents with versioning */
1723
+ versionedUpdate?: VersionedDocumentUpdateOperation;
1724
+ /** delete by document ids with versioning */
1725
+ versionedDeleteByIds?: VersionedDeleteByIdsOperation;
1726
+ }
1727
+ export interface InternalDocument {
1728
+ /** document with mandatory fields (id) and with fields specific to the type of the document */
1729
+ document?: Record<string, any> | null;
1730
+ }
1731
+ export interface InternalDocumentUpdateOperation {
1732
+ /** documents to index or update */
1733
+ documents?: InternalDocument[];
1734
+ }
1735
+ export interface DeleteByIdsOperation {
1736
+ /** ids of the documents to delete */
1737
+ documentIds?: string[];
1738
+ }
1739
+ export interface DeleteByFilterOperation {
1740
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
1741
+ filter?: Record<string, any> | null;
1742
+ }
1743
+ export interface InternalDocumentUpdateByFilterOperation {
1744
+ /** documents matching this filter will be updated */
1745
+ filter?: Record<string, any> | null;
1746
+ /** partial document to apply */
1747
+ document?: InternalDocument;
1748
+ }
1749
+ export interface InternalUpdateExistingOperation {
1750
+ /** documents to update */
1751
+ documents?: InternalDocument[];
1752
+ }
1753
+ export interface VersionedDocumentUpdateOperation {
1754
+ /** documents to create or overwrite */
1755
+ documents?: InternalDocument[];
1756
+ /** versioning mode to use instead of default */
1757
+ versioningMode?: VersioningMode;
1758
+ }
1759
+ export declare enum VersioningMode {
1760
+ /** use default versioning mode agreed with search team */
1761
+ DEFAULT = "DEFAULT",
1762
+ /** execute only if version is greater than existing */
1763
+ GREATER_THAN = "GREATER_THAN",
1764
+ /** execute only if version is greater or equal to existing */
1765
+ GREATER_OR_EQUAL = "GREATER_OR_EQUAL"
1766
+ }
1767
+ export interface VersionedDeleteByIdsOperation {
1768
+ /** ids with version of the documents to delete */
1769
+ documentIds?: VersionedDocumentId[];
1770
+ }
1771
+ export interface VersionedDocumentId {
1772
+ /** document id */
1773
+ documentId?: string;
1774
+ /** document version */
1775
+ version?: string;
1776
+ /** versioning mode to use instead of default */
1777
+ versioningMode?: VersioningMode;
1778
+ }
1779
+ export interface CommentModerated {
1780
+ comment?: Comment;
1781
+ moderationAction?: Action;
1782
+ }
1783
+ export declare enum Action {
1784
+ /** Unknown content. */
1785
+ UNKNOWN = "UNKNOWN",
1786
+ /** Approve draft content. */
1787
+ APPROVE = "APPROVE",
1788
+ /** Reject draft content. */
1789
+ REJECT = "REJECT"
1790
+ }
1791
+ export interface CreateCommentRequest {
1792
+ /** Comment to create. */
1793
+ comment?: Comment;
1794
+ }
1795
+ export interface ContactDetails {
1796
+ }
1797
+ export interface CreateCommentResponse {
1798
+ /** Created comment. */
1799
+ comment?: Comment;
1800
+ }
1801
+ export interface ResourceCommentCountChanged {
1802
+ /** ID of the app that the comment is added to. */
1803
+ appId?: string;
1804
+ /**
1805
+ * ID of the specific context the comment is in response to.
1806
+ *
1807
+ * 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`.
1808
+ */
1809
+ contextId?: string;
1810
+ /**
1811
+ * ID of the specific resource that the comment is in response to.
1812
+ *
1813
+ * 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`.
1814
+ */
1815
+ resourceId?: string;
1816
+ /** How many comments are published for the resource. */
1817
+ publishedCommentCount?: number;
1818
+ }
1819
+ export interface GetCommentRequest {
1820
+ /** ID of the comment to retrieve. */
1821
+ commentId: string;
1822
+ }
1823
+ export interface GetCommentResponse {
1824
+ /** Retrieved comment. */
1825
+ comment?: Comment;
1826
+ }
1827
+ /** Comment info to update. */
1828
+ export interface UpdateCommentRequest {
1829
+ /** Comment info to update. */
1830
+ comment?: Comment;
1831
+ }
1832
+ export interface UpdateCommentResponse {
1833
+ /** Updated comment. */
1834
+ comment?: Comment;
1835
+ }
1836
+ export interface CommentContentChanged {
1837
+ /** Comment ID. */
1838
+ commentId?: string;
1839
+ /** Content before the update. */
1840
+ previousContent?: CommentContent;
1841
+ /** Content after the update. */
1842
+ currentContent?: CommentContent;
1843
+ }
1844
+ export interface DeleteCommentRequest {
1845
+ /** ID of the comment to delete. */
1846
+ commentId: string;
1847
+ }
1848
+ export interface DeleteCommentResponse {
1849
+ }
1850
+ export interface CommentDeleted {
1851
+ comment?: Comment;
1852
+ }
1853
+ export interface ModerateDraftContentRequest {
1854
+ /** ID of the comment to moderate. */
1855
+ commentId: string;
1856
+ /**
1857
+ * Revision number, which increments by `1` each time the comment is updated.
1858
+ *
1859
+ * To prevent conflicting changes, the current `revision` must be passed when updating the comment.
1860
+ */
1861
+ revision: string | null;
1862
+ /** Draft content action. */
1863
+ draftContentAction?: Action;
1864
+ }
1865
+ export interface ModerateDraftContentResponse {
1866
+ /** Moderated comment. */
1867
+ comment?: Comment;
1868
+ }
1869
+ export interface CommentPublished {
1870
+ /** Comment info. */
1871
+ comment?: Comment;
1872
+ /** Whether this is the first comment publish. */
1873
+ firstPublish?: boolean;
1874
+ }
1875
+ export interface CommentHidden {
1876
+ comment?: Comment;
1877
+ }
1878
+ export interface QueryCommentsRequest {
1879
+ /** App ID to query comments for. */
1880
+ appId: string;
1881
+ /** Query options. */
1882
+ query: CursorQuery;
1883
+ }
1884
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1885
+ /**
1886
+ * Cursor paging options.
1887
+ *
1888
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
1889
+ */
1890
+ cursorPaging?: CursorPaging;
1891
+ /**
1892
+ * Filter object.
1893
+ *
1894
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
1895
+ */
1896
+ filter?: Record<string, any> | null;
1897
+ /**
1898
+ * Sort object.
1899
+ *
1900
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
1901
+ */
1902
+ sort?: Sorting[];
1903
+ }
1904
+ /** @oneof */
1905
+ export interface CursorQueryPagingMethodOneOf {
1906
+ /**
1907
+ * Cursor paging options.
1908
+ *
1909
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
1910
+ */
1911
+ cursorPaging?: CursorPaging;
1912
+ }
1913
+ export interface Sorting {
1914
+ /** Name of the field to sort by. */
1915
+ fieldName?: string;
1916
+ /** Sort order. */
1917
+ order?: SortOrder;
1918
+ }
1919
+ export declare enum SortOrder {
1920
+ ASC = "ASC",
1921
+ DESC = "DESC"
1922
+ }
1923
+ export interface CursorPaging {
1924
+ /** Maximum number of items to return in the results. */
1925
+ limit?: number | null;
1926
+ /**
1927
+ * Pointer to the next or previous page in the list of results.
1928
+ *
1929
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1930
+ * Not relevant for the first request.
1931
+ */
1932
+ cursor?: string | null;
1933
+ }
1934
+ export interface QueryCommentsResponse {
1935
+ /** Retrieved comments. */
1936
+ comments?: Comment[];
1937
+ /** Paging metadata. */
1938
+ pagingMetadata?: CursorPagingMetadata;
1939
+ }
1940
+ export interface CursorPagingMetadata {
1941
+ /** Number of items returned in current page. */
1942
+ count?: number | null;
1943
+ /** Cursor strings that point to the next page, previous page, or both. */
1944
+ cursors?: Cursors;
1945
+ /**
1946
+ * Whether there are more pages to retrieve following the current page.
1947
+ *
1948
+ * + `true`: Another page of results can be retrieved.
1949
+ * + `false`: This is the last page.
1950
+ */
1951
+ hasNext?: boolean | null;
1952
+ }
1953
+ export interface Cursors {
1954
+ /** Cursor string pointing to the next page in the list of results. */
1955
+ next?: string | null;
1956
+ /** Cursor pointing to the previous page in the list of results. */
1957
+ prev?: string | null;
1958
+ }
1959
+ export interface MarkCommentRequest {
1960
+ /** ID of the comment to mark. */
1961
+ commentId: string;
1962
+ }
1963
+ export interface MarkCommentResponse {
1964
+ /** Marked comment. */
1965
+ comment?: Comment;
1966
+ }
1967
+ export interface CommentMarked {
1968
+ comment?: Comment;
1969
+ }
1970
+ export interface UnmarkCommentRequest {
1971
+ /** ID of the comment to unmark. */
1972
+ commentId: string;
1973
+ }
1974
+ export interface UnmarkCommentResponse {
1975
+ /** Unmarked comment. */
1976
+ comment?: Comment;
1977
+ }
1978
+ export interface CommentUnmarked {
1979
+ comment?: Comment;
1980
+ }
1981
+ export interface HideCommentRequest {
1982
+ /** ID of the comment to hide. */
1983
+ commentId: string;
1984
+ }
1985
+ export interface HideCommentResponse {
1986
+ /** Hidden comment. */
1987
+ comment?: Comment;
1988
+ }
1989
+ export interface PublishCommentRequest {
1990
+ /** ID of the comment to publish. */
1991
+ commentId: string;
1992
+ }
1993
+ export interface PublishCommentResponse {
1994
+ /** Published comment. */
1995
+ comment?: Comment;
1996
+ }
1997
+ /** Count comments options. */
1998
+ export interface CountCommentsRequest {
1999
+ /** App ID to count the comments of. */
2000
+ appId?: string;
2001
+ /** Filter to identify the comments that need to be counted. */
2002
+ filter?: Record<string, any> | null;
2003
+ }
2004
+ export interface CountCommentsResponse {
2005
+ /** Number of comments. */
2006
+ count?: number;
2007
+ }
2008
+ export interface ListCommentsByResourceRequest {
2009
+ /** ID of the app from which the comments are listed. */
2010
+ appId: string;
2011
+ /**
2012
+ * ID of the specific context the comment is in response to.
2013
+ *
2014
+ * 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`.
2015
+ */
2016
+ contextId: string;
2017
+ /** Reserved for internal use. */
2018
+ contextType?: string;
2019
+ /**
2020
+ * ID of the specific resource that the comment is in response to.
2021
+ *
2022
+ * 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`.
2023
+ */
2024
+ resourceId: string;
2025
+ /** Comment sort. Is ignored if `cursorPaging.cursor` is defined. */
2026
+ commentSort?: CommentSort;
2027
+ /** Reply sort. Is ignored if `cursorPaging.cursor` is defined. */
2028
+ replySort?: ReplySort;
2029
+ /** Cursor paging. */
2030
+ cursorPaging?: ListCommentsByResourceCursorPaging;
2031
+ }
2032
+ export interface CommentSort {
2033
+ /** Sort order. */
2034
+ order?: Order;
2035
+ /**
2036
+ * If set to `true`, marked comments appear in the original order, and not at the top of the list.
2037
+ *
2038
+ * Default: `false`. This means that marked comments are prioritized and listed first.
2039
+ */
2040
+ keepMarkedInOriginalOrder?: boolean;
2041
+ }
2042
+ export declare enum Order {
2043
+ /** Unknown order. */
2044
+ UNKNOWN_ORDER = "UNKNOWN_ORDER",
2045
+ /** Oldest comments appear at the top of the list. */
2046
+ OLDEST_FIRST = "OLDEST_FIRST",
2047
+ /** Newest comments appear at the top of the list. */
2048
+ NEWEST_FIRST = "NEWEST_FIRST",
2049
+ /** Comments with the highest reaction count appear at the top of the list. */
2050
+ REACTION_COUNT = "REACTION_COUNT",
2051
+ /** Comments with the highest vote count appear at the top of the list. */
2052
+ NET_VOTE_COUNT = "NET_VOTE_COUNT",
2053
+ /** Comments with the highest rating appear at the top of the list. */
2054
+ RATING = "RATING",
2055
+ /** Comments with the lowest vote count appear at the top of the list. */
2056
+ NET_VOTE_COUNT_ASC = "NET_VOTE_COUNT_ASC",
2057
+ /** Comments with the lowest rating appear at the top of the list. */
2058
+ RATING_ASC = "RATING_ASC"
2059
+ }
2060
+ export interface ReplySort {
2061
+ /** Sort order. */
2062
+ order?: ReplySortOrder;
2063
+ /**
2064
+ * Whether the marked comments are listed in the original order.
2065
+ *
2066
+ * If set to `true`, marked comments appear in the original order, and not at the top of the list.
2067
+ *
2068
+ * Default: `false`. In this case marked comments are prioritized and listed first.
2069
+ */
2070
+ keepMarkedInOriginalOrder?: boolean;
2071
+ }
2072
+ export declare enum ReplySortOrder {
2073
+ /** Unknown order. */
2074
+ UNKNOWN_ORDER = "UNKNOWN_ORDER",
2075
+ /** Oldest comments appear at the top of the list. */
2076
+ OLDEST_FIRST = "OLDEST_FIRST",
2077
+ /** Newest comments appear at the top of the list. */
2078
+ NEWEST_FIRST = "NEWEST_FIRST",
2079
+ /** Comments with the highest reaction count appear at the top of the list. */
2080
+ REACTION_COUNT = "REACTION_COUNT"
2081
+ }
2082
+ export interface ListCommentsByResourceCursorPaging {
2083
+ /** Pointer to the next or previous page in the list of results. */
2084
+ cursor?: string | null;
2085
+ /** Number of items to return. */
2086
+ limit?: number | null;
2087
+ /** Maximum number of replies in a response. Only applicable to parent comments. */
2088
+ repliesLimit?: number | null;
2089
+ }
2090
+ export interface ListCommentsByResourceResponse {
2091
+ /** Listed comments. */
2092
+ comments?: Comment[];
2093
+ /** Paging metadata. */
2094
+ pagingMetadata?: CursorPagingMetadata;
2095
+ /** Listed comment replies. */
2096
+ commentReplies?: Record<string, RepliesListResponse>;
2097
+ }
2098
+ export interface RepliesListResponse {
2099
+ /** Listed comment replies. */
2100
+ replies?: Comment[];
2101
+ /** Paging metadata. */
2102
+ pagingMetadata?: CursorPagingMetadata;
2103
+ }
2104
+ export interface GetCommentThreadRequest {
2105
+ /**
2106
+ * App ID.
2107
+ * @deprecated App ID.
2108
+ * @targetRemovalDate 2024-11-01
2109
+ */
2110
+ appId?: string;
2111
+ /** Comment ID. */
2112
+ commentId: string;
2113
+ /** Comment sorting. */
2114
+ commentSort?: CommentSort;
2115
+ /** Reply sorting. */
2116
+ replySort?: ReplySort;
2117
+ }
2118
+ export interface GetCommentThreadResponse {
2119
+ /** Retrieved replies. */
2120
+ comments?: Comment[];
2121
+ /** Paging metadata. */
2122
+ pagingMetadata?: CursorPagingMetadata;
2123
+ /** Retrieved replies of a reply. */
2124
+ commentReplies?: Record<string, RepliesListResponse>;
2125
+ }
2126
+ export interface BulkPublishCommentRequest {
2127
+ /** ID of the app where to publish the comment. */
2128
+ appId: string;
2129
+ /** 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"`}. */
2130
+ filter: Record<string, any> | null;
2131
+ }
2132
+ export interface BulkPublishCommentResponse {
2133
+ /**
2134
+ * Job ID.
2135
+ *
2136
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2137
+ */
2138
+ jobId?: string;
2139
+ }
2140
+ export interface BulkHideCommentRequest {
2141
+ /** ID of the app where to hide the comments. */
2142
+ appId: string;
2143
+ /** 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"`}. */
2144
+ filter: Record<string, any> | null;
2145
+ }
2146
+ export interface BulkHideCommentResponse {
2147
+ /**
2148
+ * Job ID.
2149
+ *
2150
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2151
+ */
2152
+ jobId?: string;
2153
+ }
2154
+ export interface BulkDeleteCommentRequest {
2155
+ /** ID of the app where to delete the comments. */
2156
+ appId: string;
2157
+ /** 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"`}. */
2158
+ filter: Record<string, any> | null;
2159
+ }
2160
+ export interface BulkDeleteCommentResponse {
2161
+ /**
2162
+ * Job ID.
2163
+ *
2164
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2165
+ */
2166
+ jobId?: string;
2167
+ }
2168
+ export interface BulkModerateDraftContentRequest {
2169
+ /** ID of the app where to moderate the comments. */
2170
+ appId: string;
2171
+ /** 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"`}. */
2172
+ filter: Record<string, any> | null;
2173
+ /** Action to do regarding draft content */
2174
+ draftContentAction: Action;
2175
+ }
2176
+ export interface BulkModerateDraftContentResponse {
2177
+ /**
2178
+ * Job ID.
2179
+ *
2180
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2181
+ */
2182
+ jobId?: string;
2183
+ }
2184
+ export interface BulkMoveCommentByFilterRequest {
2185
+ /** ID of the app from which to move the comments. */
2186
+ appId: string;
2187
+ /** 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"`}. */
2188
+ filter: Record<string, any> | null;
2189
+ /** Where to move the comment. */
2190
+ destination?: Destination;
2191
+ }
2192
+ export interface Destination {
2193
+ /** Context ID of where to move the comment to. */
2194
+ contextId?: string;
2195
+ /** Resource ID of where to move the comment to. */
2196
+ resourceId?: string;
2197
+ }
2198
+ export interface BulkMoveCommentByFilterResponse {
2199
+ /**
2200
+ * Job ID.
2201
+ *
2202
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2203
+ */
2204
+ jobId?: string;
2205
+ }
2206
+ export interface CommentMoved {
2207
+ comment?: Comment;
2208
+ destination?: Destination;
2209
+ }
2210
+ export interface DomainEvent extends DomainEventBodyOneOf {
2211
+ createdEvent?: EntityCreatedEvent;
2212
+ updatedEvent?: EntityUpdatedEvent;
2213
+ deletedEvent?: EntityDeletedEvent;
2214
+ actionEvent?: ActionEvent;
2215
+ /**
2216
+ * Unique event ID.
2217
+ * Allows clients to ignore duplicate webhooks.
2218
+ */
2219
+ id?: string;
2220
+ /**
2221
+ * Assumes actions are also always typed to an entity_type
2222
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2223
+ */
2224
+ entityFqdn?: string;
2225
+ /**
2226
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2227
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2228
+ * Example: created/updated/deleted/started/completed/email_opened
2229
+ */
2230
+ slug?: string;
2231
+ /** ID of the entity associated with the event. */
2232
+ entityId?: string;
2233
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2234
+ eventTime?: Date | null;
2235
+ /**
2236
+ * Whether the event was triggered as a result of a privacy regulation application
2237
+ * (for example, GDPR).
2238
+ */
2239
+ triggeredByAnonymizeRequest?: boolean | null;
2240
+ /** If present, indicates the action that triggered the event. */
2241
+ originatedFrom?: string | null;
2242
+ /**
2243
+ * A sequence number defining the order of updates to the underlying entity.
2244
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2245
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2246
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2247
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2248
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2249
+ */
2250
+ entityEventSequence?: string | null;
2251
+ }
2252
+ /** @oneof */
2253
+ export interface DomainEventBodyOneOf {
2254
+ createdEvent?: EntityCreatedEvent;
2255
+ updatedEvent?: EntityUpdatedEvent;
2256
+ deletedEvent?: EntityDeletedEvent;
2257
+ actionEvent?: ActionEvent;
2258
+ }
2259
+ export interface EntityCreatedEvent {
2260
+ entityAsJson?: string;
2261
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
2262
+ restoreInfo?: RestoreInfo;
2263
+ }
2264
+ export interface RestoreInfo {
2265
+ deletedDate?: Date | null;
2266
+ }
2267
+ export interface EntityUpdatedEvent {
2268
+ /**
2269
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2270
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2271
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2272
+ */
2273
+ currentEntityAsJson?: string;
2274
+ }
2275
+ export interface EntityDeletedEvent {
2276
+ /** Entity that was deleted */
2277
+ deletedEntityAsJson?: string | null;
2278
+ }
2279
+ export interface ActionEvent {
2280
+ bodyAsJson?: string;
2281
+ }
2282
+ export interface MessageEnvelope {
2283
+ /** App instance ID. */
2284
+ instanceId?: string | null;
2285
+ /** Event type. */
2286
+ eventType?: string;
2287
+ /** The identification type and identity data. */
2288
+ identity?: IdentificationData;
2289
+ /** Stringify payload. */
2290
+ data?: string;
2291
+ }
2292
+ export interface IdentificationData extends IdentificationDataIdOneOf {
2293
+ /** ID of a site visitor that has not logged in to the site. */
2294
+ anonymousVisitorId?: string;
2295
+ /** ID of a site visitor that has logged in to the site. */
2296
+ memberId?: string;
2297
+ /** ID of a Wix user (site owner, contributor, etc.). */
2298
+ wixUserId?: string;
2299
+ /** ID of an app. */
2300
+ appId?: string;
2301
+ /** @readonly */
2302
+ identityType?: WebhookIdentityType;
2303
+ }
2304
+ /** @oneof */
2305
+ export interface IdentificationDataIdOneOf {
2306
+ /** ID of a site visitor that has not logged in to the site. */
2307
+ anonymousVisitorId?: string;
2308
+ /** ID of a site visitor that has logged in to the site. */
2309
+ memberId?: string;
2310
+ /** ID of a Wix user (site owner, contributor, etc.). */
2311
+ wixUserId?: string;
2312
+ /** ID of an app. */
2313
+ appId?: string;
2314
+ }
2315
+ export declare enum WebhookIdentityType {
2316
+ UNKNOWN = "UNKNOWN",
2317
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2318
+ MEMBER = "MEMBER",
2319
+ WIX_USER = "WIX_USER",
2320
+ APP = "APP"
2321
+ }
2322
+ interface PluginContainerDataWidthNonNullableFields {
2323
+ size: WidthType;
2324
+ }
2325
+ interface PluginContainerDataNonNullableFields {
2326
+ width?: PluginContainerDataWidthNonNullableFields;
2327
+ alignment: PluginContainerDataAlignment;
2328
+ }
2329
+ interface LinkNonNullableFields {
2330
+ url: string;
2331
+ anchor: string;
2332
+ target: Target;
2333
+ }
2334
+ interface ButtonDataNonNullableFields {
2335
+ containerData?: PluginContainerDataNonNullableFields;
2336
+ type: Type;
2337
+ link?: LinkNonNullableFields;
2338
+ }
2339
+ interface TextStyleNonNullableFields {
2340
+ textAlignment: TextAlignment;
2341
+ }
2342
+ interface CodeBlockDataNonNullableFields {
2343
+ textStyle?: TextStyleNonNullableFields;
2344
+ }
2345
+ interface DividerDataNonNullableFields {
2346
+ containerData?: PluginContainerDataNonNullableFields;
2347
+ lineStyle: LineStyle;
2348
+ width: Width;
2349
+ alignment: Alignment;
2350
+ }
2351
+ interface PDFSettingsNonNullableFields {
2352
+ viewMode: ViewMode;
2353
+ }
2354
+ interface FileDataNonNullableFields {
2355
+ containerData?: PluginContainerDataNonNullableFields;
2356
+ pdfSettings?: PDFSettingsNonNullableFields;
2357
+ }
2358
+ interface ItemImageNonNullableFields {
2359
+ link?: LinkNonNullableFields;
2360
+ }
2361
+ interface ItemNonNullableFields {
2362
+ image?: ItemImageNonNullableFields;
2363
+ }
2364
+ interface LayoutNonNullableFields {
2365
+ type: LayoutType;
2366
+ orientation: Orientation;
2367
+ }
2368
+ interface ItemStyleNonNullableFields {
2369
+ crop: Crop;
2370
+ }
2371
+ interface ThumbnailsNonNullableFields {
2372
+ placement: ThumbnailsAlignment;
2373
+ }
2374
+ interface GalleryOptionsNonNullableFields {
2375
+ layout?: LayoutNonNullableFields;
2376
+ item?: ItemStyleNonNullableFields;
2377
+ thumbnails?: ThumbnailsNonNullableFields;
2378
+ }
2379
+ interface GalleryDataNonNullableFields {
2380
+ containerData?: PluginContainerDataNonNullableFields;
2381
+ items: ItemNonNullableFields[];
2382
+ options?: GalleryOptionsNonNullableFields;
2383
+ }
2384
+ interface GIFDataNonNullableFields {
2385
+ containerData?: PluginContainerDataNonNullableFields;
2386
+ height: number;
2387
+ width: number;
2388
+ gifType: GIFType;
2389
+ }
2390
+ interface HeadingDataNonNullableFields {
2391
+ level: number;
2392
+ textStyle?: TextStyleNonNullableFields;
2393
+ }
2394
+ interface HTMLDataNonNullableFields {
2395
+ url: string;
2396
+ html: string;
2397
+ containerData?: PluginContainerDataNonNullableFields;
2398
+ source: Source;
2399
+ }
2400
+ interface ImageDataNonNullableFields {
2401
+ containerData?: PluginContainerDataNonNullableFields;
2402
+ link?: LinkNonNullableFields;
2403
+ }
2404
+ interface LinkPreviewDataNonNullableFields {
2405
+ containerData?: PluginContainerDataNonNullableFields;
2406
+ link?: LinkNonNullableFields;
2407
+ }
2408
+ interface MapSettingsNonNullableFields {
2409
+ mapType: MapType;
2410
+ }
2411
+ interface MapDataNonNullableFields {
2412
+ containerData?: PluginContainerDataNonNullableFields;
2413
+ mapSettings?: MapSettingsNonNullableFields;
2414
+ }
2415
+ interface ParagraphDataNonNullableFields {
2416
+ textStyle?: TextStyleNonNullableFields;
2417
+ }
2418
+ interface PermissionsNonNullableFields {
2419
+ view: ViewRole;
2420
+ vote: VoteRole;
2421
+ }
2422
+ interface SettingsNonNullableFields {
2423
+ permissions?: PermissionsNonNullableFields;
2424
+ }
2425
+ interface PollNonNullableFields {
2426
+ settings?: SettingsNonNullableFields;
2427
+ }
2428
+ interface PollLayoutNonNullableFields {
2429
+ type: PollLayoutType;
2430
+ direction: PollLayoutDirection;
2431
+ }
2432
+ interface PollDataLayoutNonNullableFields {
2433
+ poll?: PollLayoutNonNullableFields;
2434
+ }
2435
+ interface BackgroundNonNullableFields {
2436
+ type: BackgroundType;
2437
+ }
2438
+ interface PollDesignNonNullableFields {
2439
+ background?: BackgroundNonNullableFields;
2440
+ }
2441
+ interface DesignNonNullableFields {
2442
+ poll?: PollDesignNonNullableFields;
2443
+ }
2444
+ interface PollDataNonNullableFields {
2445
+ containerData?: PluginContainerDataNonNullableFields;
2446
+ poll?: PollNonNullableFields;
2447
+ layout?: PollDataLayoutNonNullableFields;
2448
+ design?: DesignNonNullableFields;
2449
+ }
2450
+ interface AnchorDataNonNullableFields {
2451
+ anchor: string;
2452
+ }
2453
+ interface LinkDataNonNullableFields {
2454
+ link?: LinkNonNullableFields;
2455
+ }
2456
+ interface MentionDataNonNullableFields {
2457
+ name: string;
2458
+ slug: string;
2459
+ }
2460
+ interface FontSizeDataNonNullableFields {
2461
+ unit: FontType;
2462
+ }
2463
+ interface DecorationNonNullableFields {
2464
+ anchorData?: AnchorDataNonNullableFields;
2465
+ linkData?: LinkDataNonNullableFields;
2466
+ mentionData?: MentionDataNonNullableFields;
2467
+ fontSizeData?: FontSizeDataNonNullableFields;
2468
+ type: DecorationType;
2469
+ }
2470
+ interface TextDataNonNullableFields {
2471
+ text: string;
2472
+ decorations: DecorationNonNullableFields[];
2473
+ }
2474
+ interface AppEmbedDataNonNullableFields {
2475
+ type: AppType;
2476
+ }
2477
+ interface VideoDataNonNullableFields {
2478
+ containerData?: PluginContainerDataNonNullableFields;
2479
+ }
2480
+ interface EmbedDataNonNullableFields {
2481
+ containerData?: PluginContainerDataNonNullableFields;
2482
+ }
2483
+ interface CollapsibleListDataNonNullableFields {
2484
+ containerData?: PluginContainerDataNonNullableFields;
2485
+ initialExpandedItems: InitialExpandedItems;
2486
+ direction: Direction;
2487
+ }
2488
+ interface DimensionsNonNullableFields {
2489
+ colsWidthRatio: number[];
2490
+ rowsHeight: number[];
2491
+ colsMinWidth: number[];
2492
+ }
2493
+ interface TableDataNonNullableFields {
2494
+ containerData?: PluginContainerDataNonNullableFields;
2495
+ dimensions?: DimensionsNonNullableFields;
2496
+ }
2497
+ interface CellStyleNonNullableFields {
2498
+ verticalAlignment: VerticalAlignment;
2499
+ }
2500
+ interface TableCellDataNonNullableFields {
2501
+ cellStyle?: CellStyleNonNullableFields;
2502
+ }
2503
+ interface AudioDataNonNullableFields {
2504
+ containerData?: PluginContainerDataNonNullableFields;
2505
+ }
2506
+ interface OrderedListDataNonNullableFields {
2507
+ indentation: number;
2508
+ }
2509
+ interface BulletedListDataNonNullableFields {
2510
+ indentation: number;
2511
+ }
2512
+ interface BlockquoteDataNonNullableFields {
2513
+ indentation: number;
2514
+ }
2515
+ interface CaptionDataNonNullableFields {
2516
+ textStyle?: TextStyleNonNullableFields;
2517
+ }
2518
+ interface NodeNonNullableFields {
2519
+ buttonData?: ButtonDataNonNullableFields;
2520
+ codeBlockData?: CodeBlockDataNonNullableFields;
2521
+ dividerData?: DividerDataNonNullableFields;
2522
+ fileData?: FileDataNonNullableFields;
2523
+ galleryData?: GalleryDataNonNullableFields;
2524
+ gifData?: GIFDataNonNullableFields;
2525
+ headingData?: HeadingDataNonNullableFields;
2526
+ htmlData?: HTMLDataNonNullableFields;
2527
+ imageData?: ImageDataNonNullableFields;
2528
+ linkPreviewData?: LinkPreviewDataNonNullableFields;
2529
+ mapData?: MapDataNonNullableFields;
2530
+ paragraphData?: ParagraphDataNonNullableFields;
2531
+ pollData?: PollDataNonNullableFields;
2532
+ textData?: TextDataNonNullableFields;
2533
+ appEmbedData?: AppEmbedDataNonNullableFields;
2534
+ videoData?: VideoDataNonNullableFields;
2535
+ embedData?: EmbedDataNonNullableFields;
2536
+ collapsibleListData?: CollapsibleListDataNonNullableFields;
2537
+ tableData?: TableDataNonNullableFields;
2538
+ tableCellData?: TableCellDataNonNullableFields;
2539
+ audioData?: AudioDataNonNullableFields;
2540
+ orderedListData?: OrderedListDataNonNullableFields;
2541
+ bulletedListData?: BulletedListDataNonNullableFields;
2542
+ blockquoteData?: BlockquoteDataNonNullableFields;
2543
+ captionData?: CaptionDataNonNullableFields;
2544
+ type: NodeType;
2545
+ id: string;
2546
+ nodes: NodeNonNullableFields[];
2547
+ }
2548
+ interface MetadataNonNullableFields {
2549
+ version: number;
2550
+ }
2551
+ interface TextNodeStyleNonNullableFields {
2552
+ decorations: DecorationNonNullableFields[];
2553
+ }
2554
+ interface DocumentStyleNonNullableFields {
2555
+ headerOne?: TextNodeStyleNonNullableFields;
2556
+ headerTwo?: TextNodeStyleNonNullableFields;
2557
+ headerThree?: TextNodeStyleNonNullableFields;
2558
+ headerFour?: TextNodeStyleNonNullableFields;
2559
+ headerFive?: TextNodeStyleNonNullableFields;
2560
+ headerSix?: TextNodeStyleNonNullableFields;
2561
+ paragraph?: TextNodeStyleNonNullableFields;
2562
+ blockquote?: TextNodeStyleNonNullableFields;
2563
+ codeBlock?: TextNodeStyleNonNullableFields;
2564
+ }
2565
+ interface RichContentNonNullableFields {
2566
+ nodes: NodeNonNullableFields[];
2567
+ metadata?: MetadataNonNullableFields;
2568
+ documentStyle?: DocumentStyleNonNullableFields;
2569
+ }
2570
+ interface ImageNonNullableFields {
2571
+ id: string;
2572
+ url: string;
2573
+ height: number;
2574
+ width: number;
2575
+ }
2576
+ interface VideoResolutionNonNullableFields {
2577
+ url: string;
2578
+ height: number;
2579
+ width: number;
2580
+ format: string;
2581
+ }
2582
+ interface VideoV2NonNullableFields {
2583
+ id: string;
2584
+ url: string;
2585
+ resolutions: VideoResolutionNonNullableFields[];
2586
+ posters: ImageNonNullableFields[];
2587
+ }
2588
+ interface AudioNonNullableFields {
2589
+ id: string;
2590
+ url: string;
2591
+ }
2592
+ interface DocumentNonNullableFields {
2593
+ id: string;
2594
+ url: string;
2595
+ }
2596
+ interface AttachmentNonNullableFields {
2597
+ image?: ImageNonNullableFields;
2598
+ video?: VideoV2NonNullableFields;
2599
+ audio?: AudioNonNullableFields;
2600
+ document?: DocumentNonNullableFields;
2601
+ }
2602
+ interface CommentContentNonNullableFields {
2603
+ richContent?: RichContentNonNullableFields;
2604
+ attachments: AttachmentNonNullableFields[];
2605
+ }
2606
+ interface ParentCommentNonNullableFields {
2607
+ status: Status;
2608
+ }
2609
+ interface VoteSummaryNonNullableFields {
2610
+ netVoteCount: number;
2611
+ upvoteCount: number;
2612
+ downvoteCount: number;
2613
+ }
2614
+ interface CommentReactionSummaryNonNullableFields {
2615
+ total: number;
2616
+ }
2617
+ interface CommentNonNullableFields {
2618
+ content?: CommentContentNonNullableFields;
2619
+ draftContent?: CommentContentNonNullableFields;
2620
+ parentComment?: ParentCommentNonNullableFields;
2621
+ parentIdsInThread: string[];
2622
+ replyCount: number;
2623
+ voteSummary?: VoteSummaryNonNullableFields;
2624
+ status: Status;
2625
+ reactionSummary?: CommentReactionSummaryNonNullableFields;
2626
+ marked: boolean;
2627
+ }
2628
+ export interface CreateCommentResponseNonNullableFields {
2629
+ comment?: CommentNonNullableFields;
2630
+ }
2631
+ export interface GetCommentResponseNonNullableFields {
2632
+ comment?: CommentNonNullableFields;
2633
+ }
2634
+ export interface UpdateCommentResponseNonNullableFields {
2635
+ comment?: CommentNonNullableFields;
2636
+ }
2637
+ export interface ModerateDraftContentResponseNonNullableFields {
2638
+ comment?: CommentNonNullableFields;
2639
+ }
2640
+ export interface QueryCommentsResponseNonNullableFields {
2641
+ comments: CommentNonNullableFields[];
2642
+ }
2643
+ export interface MarkCommentResponseNonNullableFields {
2644
+ comment?: CommentNonNullableFields;
2645
+ }
2646
+ export interface UnmarkCommentResponseNonNullableFields {
2647
+ comment?: CommentNonNullableFields;
2648
+ }
2649
+ export interface HideCommentResponseNonNullableFields {
2650
+ comment?: CommentNonNullableFields;
2651
+ }
2652
+ export interface PublishCommentResponseNonNullableFields {
2653
+ comment?: CommentNonNullableFields;
2654
+ }
2655
+ export interface CountCommentsResponseNonNullableFields {
2656
+ count: number;
2657
+ }
2658
+ export interface ListCommentsByResourceResponseNonNullableFields {
2659
+ comments: CommentNonNullableFields[];
2660
+ }
2661
+ export interface GetCommentThreadResponseNonNullableFields {
2662
+ comments: CommentNonNullableFields[];
2663
+ }
2664
+ export interface BulkPublishCommentResponseNonNullableFields {
2665
+ jobId: string;
2666
+ }
2667
+ export interface BulkHideCommentResponseNonNullableFields {
2668
+ jobId: string;
2669
+ }
2670
+ export interface BulkDeleteCommentResponseNonNullableFields {
2671
+ jobId: string;
2672
+ }
2673
+ export interface BulkModerateDraftContentResponseNonNullableFields {
2674
+ jobId: string;
2675
+ }
2676
+ export interface BulkMoveCommentByFilterResponseNonNullableFields {
2677
+ jobId: string;
2678
+ }
2679
+ export {};