@wix/auto_sdk_quick-pages_contents 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 (39) hide show
  1. package/build/cjs/index.d.ts +2628 -0
  2. package/build/cjs/index.js +1388 -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 +1343 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +2400 -0
  8. package/build/cjs/meta.js +843 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +2628 -0
  11. package/build/es/index.mjs +1314 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1 -0
  14. package/build/es/index.typings.mjs +1269 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +2400 -0
  17. package/build/es/meta.mjs +812 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +78 -0
  21. package/build/internal/cjs/index.js +1388 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +2698 -0
  24. package/build/internal/cjs/index.typings.js +1343 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +2401 -0
  27. package/build/internal/cjs/meta.js +843 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +78 -0
  30. package/build/internal/es/index.mjs +1314 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +2698 -0
  33. package/build/internal/es/index.typings.mjs +1269 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +2401 -0
  36. package/build/internal/es/meta.mjs +812 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,2401 @@
1
+ import { GetContentRequest as GetContentRequest$1, GetContentResponse as GetContentResponse$1, SubmitContentRequest as SubmitContentRequest$1, SubmitContentResponse as SubmitContentResponse$1, GetLatestContentByPageIdRequest as GetLatestContentByPageIdRequest$1, GetLatestContentByPageIdResponse as GetLatestContentByPageIdResponse$1, LockLatestContentByPageIdRequest as LockLatestContentByPageIdRequest$1, LockLatestContentByPageIdResponse as LockLatestContentByPageIdResponse$1, QueryContentsRequest as QueryContentsRequest$1, QueryContentsResponse as QueryContentsResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ /** A QuickPage Content. */
5
+ interface Content {
6
+ /**
7
+ * QuickPage Content ID.
8
+ * @format GUID
9
+ * @readonly
10
+ */
11
+ id?: string | null;
12
+ /**
13
+ * Content number, which increments by 1 each time the QuickPage Content is updated.
14
+ * To prevent conflicting changes,
15
+ * the current content must be passed when updating the QuickPage Content.
16
+ *
17
+ * Ignored when creating a QuickPage Content.
18
+ * @readonly
19
+ */
20
+ revision?: string | null;
21
+ /**
22
+ * QuickPage page ID.
23
+ * @format GUID
24
+ * @immutable
25
+ */
26
+ pageId?: string | null;
27
+ /**
28
+ * Date and time the QuickPage Content was created.
29
+ * @readonly
30
+ */
31
+ createdDate?: Date | null;
32
+ /**
33
+ * Date and time the QuickPage Content was last updated.
34
+ * @readonly
35
+ */
36
+ updatedDate?: Date | null;
37
+ /**
38
+ * Previous QuickPage Content ID.
39
+ * @format GUID
40
+ * @immutable
41
+ */
42
+ previousContentId?: string | null;
43
+ /**
44
+ * Status which defines whether the content can be updated
45
+ * @readonly
46
+ */
47
+ locked?: boolean;
48
+ /** Design settings for the QuickPage Content */
49
+ design?: Design;
50
+ /** The rich content of the QuickPage Content. */
51
+ richContent?: RichContent;
52
+ /**
53
+ * Date and time the QuickPage Content was last edited by user action.
54
+ * @readonly
55
+ */
56
+ lastEditedDate?: Date | null;
57
+ }
58
+ /**
59
+ * Design represents the complete visual styling configuration for a quick page.
60
+ * It encapsulates all design elements including colors, fonts, and component styling.
61
+ */
62
+ interface Design {
63
+ /**
64
+ * Palette of colors used in the design
65
+ * Limited to 6 colors in eight-value hexadecimal format (e.g., #FF0099AA)
66
+ * @format COLOR_HEX
67
+ * @maxSize 6
68
+ */
69
+ colorPalette?: string[];
70
+ /**
71
+ * Custom colors defined by the user
72
+ * Limited to 20 colors in eight-value hexadecimal format (e.g., #FF0099AA)
73
+ * @format COLOR_HEX
74
+ * @maxSize 20
75
+ */
76
+ customColors?: string[];
77
+ /**
78
+ * Font groups used in the page design
79
+ * Each group represents a different language or script system
80
+ * There are 7 in total
81
+ * @maxSize 7
82
+ */
83
+ fontGroup?: GroupWithLiterals[];
84
+ /**
85
+ * Background configuration for the page
86
+ * Can be either a solid color or an image with various styling options
87
+ */
88
+ background?: Background;
89
+ /**
90
+ * Typography settings for various text elements
91
+ * Includes styling for headings and paragraphs
92
+ */
93
+ typography?: Typography;
94
+ /**
95
+ * Button styling configuration
96
+ * Defines how buttons appear, including their hover states
97
+ */
98
+ button?: Button;
99
+ /**
100
+ * Image styling configuration
101
+ * Defines how images appear, including borders
102
+ */
103
+ image?: Image;
104
+ /**
105
+ * Custom gradients defined by the user
106
+ * Limited to 10 gradients
107
+ * @maxSize 10
108
+ */
109
+ customGradients?: Gradient[];
110
+ }
111
+ /**
112
+ * Group enum represents different font groups organized by language/script support.
113
+ * This allows for appropriate font selection based on content language.
114
+ */
115
+ declare enum Group {
116
+ /** Default value when font group is not specified */
117
+ UNKNOWN_FONT_GROUP = "UNKNOWN_FONT_GROUP",
118
+ /** Standard Latin character set (English, Western European languages) */
119
+ LATIN = "LATIN",
120
+ /** Extended Latin character set (Eastern and Central European languages) */
121
+ LATIN_EXT = "LATIN_EXT",
122
+ /** Hebrew character set */
123
+ HEBREW = "HEBREW",
124
+ /** Cyrillic character set (Russian, Bulgarian, etc.) */
125
+ CYRILLIC = "CYRILLIC",
126
+ /** Arabic character set */
127
+ ARABIC = "ARABIC",
128
+ /** Japanese character set */
129
+ JAPANESE = "JAPANESE",
130
+ /** Korean character set */
131
+ KOREAN = "KOREAN"
132
+ }
133
+ /** @enumType */
134
+ type GroupWithLiterals = Group | 'UNKNOWN_FONT_GROUP' | 'LATIN' | 'LATIN_EXT' | 'HEBREW' | 'CYRILLIC' | 'ARABIC' | 'JAPANESE' | 'KOREAN';
135
+ /**
136
+ * Background defines the styling for a page's background.
137
+ * Supports either color or image backgrounds with configuration options for each.
138
+ */
139
+ interface Background extends BackgroundBackgroundTypeOptionsOneOf {
140
+ /** Settings for color backgrounds, available when type = COLOR */
141
+ colorOptions?: ColorOptions;
142
+ /** Settings for image backgrounds, available when type = IMAGE */
143
+ imageOptions?: ImageOptions;
144
+ /** Background type determines whether this is a color or image background */
145
+ type?: BackgroundTypeWithLiterals;
146
+ }
147
+ /** @oneof */
148
+ interface BackgroundBackgroundTypeOptionsOneOf {
149
+ /** Settings for color backgrounds, available when type = COLOR */
150
+ colorOptions?: ColorOptions;
151
+ /** Settings for image backgrounds, available when type = IMAGE */
152
+ imageOptions?: ImageOptions;
153
+ }
154
+ /**
155
+ * ColorSwatch defines a color or gradient that can be used for styling elements.
156
+ * Supports either solid colors or gradients with configuration options for each.
157
+ */
158
+ interface ColorSwatch extends ColorSwatchColorTypeOptionsOneOf {
159
+ /**
160
+ * Solid color value, available when type = COLOR
161
+ * @format COLOR_HEX
162
+ */
163
+ colorOptions?: string | null;
164
+ /** Gradient configuration, available when type = GRADIENT */
165
+ gradientOptions?: Gradient;
166
+ /** Type determines whether this is a solid color or gradient */
167
+ type?: ColorSwatchTypeWithLiterals;
168
+ }
169
+ /** @oneof */
170
+ interface ColorSwatchColorTypeOptionsOneOf {
171
+ /**
172
+ * Solid color value, available when type = COLOR
173
+ * @format COLOR_HEX
174
+ */
175
+ colorOptions?: string | null;
176
+ /** Gradient configuration, available when type = GRADIENT */
177
+ gradientOptions?: Gradient;
178
+ }
179
+ /** ColorSwatchType determines what kind of color styling is being used. */
180
+ declare enum ColorSwatchType {
181
+ /** Default value when color swatch type is not specified */
182
+ UNKNOWN_COLOR_SWATCH_TYPE = "UNKNOWN_COLOR_SWATCH_TYPE",
183
+ /** Color swatch is a solid color */
184
+ COLOR = "COLOR",
185
+ /** Color swatch is a gradient */
186
+ GRADIENT = "GRADIENT"
187
+ }
188
+ /** @enumType */
189
+ type ColorSwatchTypeWithLiterals = ColorSwatchType | 'UNKNOWN_COLOR_SWATCH_TYPE' | 'COLOR' | 'GRADIENT';
190
+ /**
191
+ * Gradient defines a color gradient configuration.
192
+ * Supports both linear and radial gradients with multiple color stops.
193
+ */
194
+ interface Gradient extends GradientGradientTypeOptionsOneOf {
195
+ /**
196
+ * Angle in degrees for linear gradients (0-360)
197
+ * @max 360
198
+ */
199
+ linearOptions?: number | null;
200
+ /** Center point for radial gradients */
201
+ radialOptions?: Center;
202
+ /** Type determines whether this is a linear or radial gradient */
203
+ type?: GradientTypeWithLiterals;
204
+ /**
205
+ * Color stops that define the gradient colors and positions
206
+ * @maxSize 10
207
+ */
208
+ stops?: GradientStop[];
209
+ /**
210
+ * Global opacity of the gradients (0.0 to 1.0)
211
+ * @max 1
212
+ */
213
+ opacity?: number | null;
214
+ }
215
+ /** @oneof */
216
+ interface GradientGradientTypeOptionsOneOf {
217
+ /**
218
+ * Angle in degrees for linear gradients (0-360)
219
+ * @max 360
220
+ */
221
+ linearOptions?: number | null;
222
+ /** Center point for radial gradients */
223
+ radialOptions?: Center;
224
+ }
225
+ /** GradientType determines what kind of gradient is being used. */
226
+ declare enum GradientType {
227
+ /** Default value when gradient type is not specified */
228
+ UNKNOWN_GRADIENT_TYPE = "UNKNOWN_GRADIENT_TYPE",
229
+ /** Linear gradient that transitions colors along a straight line */
230
+ LINEAR = "LINEAR",
231
+ /** Radial gradient that transitions colors outward from a center point */
232
+ RADIAL = "RADIAL"
233
+ }
234
+ /** @enumType */
235
+ type GradientTypeWithLiterals = GradientType | 'UNKNOWN_GRADIENT_TYPE' | 'LINEAR' | 'RADIAL';
236
+ /**
237
+ * GradientStop defines a color position within a gradient.
238
+ * Each stop has a color, opacity, and position value.
239
+ */
240
+ interface GradientStop {
241
+ /**
242
+ * Color in eight-value hexadecimal format (e.g., #FF0099AA)
243
+ * @format COLOR_HEX
244
+ */
245
+ color?: string | null;
246
+ /**
247
+ * Opacity of the color at this stop (0.0 to 1.0)
248
+ * @max 1
249
+ */
250
+ opacity?: number | null;
251
+ /**
252
+ * Position of this stop within the gradient (0.0 to 1.0)
253
+ * 0.0 represents the start of the gradient, 1.0 represents the end
254
+ * @max 1
255
+ */
256
+ position?: number | null;
257
+ }
258
+ /**
259
+ * Center defines the center point for a radial gradient.
260
+ * Uses normalized coordinates (0.0 to 1.0) where (0,0) is top-left
261
+ * and (1,1) is bottom-right of the container.
262
+ */
263
+ interface Center {
264
+ /**
265
+ * X-coordinate of the center point (0.0 to 1.0)
266
+ * @max 1
267
+ */
268
+ x?: number | null;
269
+ /**
270
+ * Y-coordinate of the center point (0.0 to 1.0)
271
+ * @max 1
272
+ */
273
+ y?: number | null;
274
+ }
275
+ /** ImageScaling defines how the background image should be sized. */
276
+ declare enum ImageScaling {
277
+ /** Default value when scaling is not specified */
278
+ UNKNOWN_IMAGE_SCALING = "UNKNOWN_IMAGE_SCALING",
279
+ /** Image will cover the entire container, potentially cropping parts of the image */
280
+ COVER = "COVER",
281
+ /** Image will be contained within the container, maintaining its aspect ratio */
282
+ CONTAIN = "CONTAIN",
283
+ /** Image will use its original size without scaling */
284
+ AUTO = "AUTO"
285
+ }
286
+ /** @enumType */
287
+ type ImageScalingWithLiterals = ImageScaling | 'UNKNOWN_IMAGE_SCALING' | 'COVER' | 'CONTAIN' | 'AUTO';
288
+ /** ImagePosition defines how the image is positioned within its container. */
289
+ declare enum ImagePosition {
290
+ /** Default value when position is not specified */
291
+ UNKNOWN_IMAGE_POSITION = "UNKNOWN_IMAGE_POSITION",
292
+ /** Position image at the top center of the container */
293
+ TOP = "TOP",
294
+ /** Position image at the top left corner of the container */
295
+ TOP_LEFT = "TOP_LEFT",
296
+ /** Position image at the top right corner of the container */
297
+ TOP_RIGHT = "TOP_RIGHT",
298
+ /** Position image at the center of the container */
299
+ CENTER = "CENTER",
300
+ /** Position image at the middle left of the container */
301
+ CENTER_LEFT = "CENTER_LEFT",
302
+ /** Position image at the middle right of the container */
303
+ CENTER_RIGHT = "CENTER_RIGHT",
304
+ /** Position image at the bottom center of the container */
305
+ BOTTOM = "BOTTOM",
306
+ /** Position image at the bottom left corner of the container */
307
+ BOTTOM_LEFT = "BOTTOM_LEFT",
308
+ /** Position image at the bottom right corner of the container */
309
+ BOTTOM_RIGHT = "BOTTOM_RIGHT"
310
+ }
311
+ /** @enumType */
312
+ type ImagePositionWithLiterals = ImagePosition | 'UNKNOWN_IMAGE_POSITION' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
313
+ /** BackgroundType determines what kind of background is being used. */
314
+ declare enum BackgroundType {
315
+ /** Default value when background type is not specified */
316
+ UNKNOWN_BACKGROUND_TYPE = "UNKNOWN_BACKGROUND_TYPE",
317
+ /** Background is a solid color */
318
+ COLOR = "COLOR",
319
+ /** Background is an image */
320
+ IMAGE = "IMAGE"
321
+ }
322
+ /** @enumType */
323
+ type BackgroundTypeWithLiterals = BackgroundType | 'UNKNOWN_BACKGROUND_TYPE' | 'COLOR' | 'IMAGE';
324
+ /**
325
+ * Options for configuring a solid color background.
326
+ * Includes color and opacity settings.
327
+ */
328
+ interface ColorOptions {
329
+ /** Background color swatch, supporting both solid colors and gradients */
330
+ color?: ColorSwatch;
331
+ }
332
+ /**
333
+ * Options for configuring an image background.
334
+ * Includes image source, positioning, scaling, and overlay settings.
335
+ */
336
+ interface ImageOptions {
337
+ /**
338
+ * Background image URL pointing to the source image
339
+ * @format WEB_URL
340
+ */
341
+ url?: string | null;
342
+ /**
343
+ * Image opacity, ranging from 0 (fully transparent) to 1 (fully opaque)
344
+ * @max 1
345
+ */
346
+ opacity?: number | null;
347
+ /** Image background color (overlay color) swatch, supporting both solid colors and gradients */
348
+ color?: ColorSwatch;
349
+ /** Image scaling method that determines how the image fits in the container */
350
+ scaling?: ImageScalingWithLiterals;
351
+ /** Image position within the container when it doesn't fill the entire space */
352
+ position?: ImagePositionWithLiterals;
353
+ }
354
+ /**
355
+ * Typography defines styling for all text elements in a quick-page.
356
+ * Includes configurations for different heading levels and paragraph text.
357
+ */
358
+ interface Typography {
359
+ /** Styling for primary/largest heading (h1) */
360
+ heading1?: TextStyle;
361
+ /** Styling for secondary heading (h2) */
362
+ heading2?: TextStyle;
363
+ /** Styling for tertiary heading (h3) */
364
+ heading3?: TextStyle;
365
+ /** Styling for fourth-level heading (h4) */
366
+ heading4?: TextStyle;
367
+ /** Styling for fifth-level heading (h5) */
368
+ heading5?: TextStyle;
369
+ /** Styling for sixth-level heading (h6) */
370
+ heading6?: TextStyle;
371
+ /** Styling for regular paragraph text */
372
+ paragraph?: TextStyle;
373
+ }
374
+ /**
375
+ * TextStyle defines the visual properties of text elements.
376
+ * Includes font family, weight, color, size, and spacing options.
377
+ */
378
+ interface TextStyle {
379
+ /**
380
+ * Font family name, limited to 50 characters
381
+ * Determines the typeface used for the text
382
+ * @maxLength 50
383
+ */
384
+ fontFamily?: string | null;
385
+ /**
386
+ * Font weight value (0-1000)
387
+ * Standard values: 400 (normal), 700 (bold)
388
+ * @max 1000
389
+ */
390
+ weight?: number | null;
391
+ /**
392
+ * Text color in eight-value hexadecimal format (e.g., #FF0099AA)
393
+ * @format COLOR_HEX
394
+ */
395
+ color?: string | null;
396
+ /**
397
+ * Font size in pixels (0-400)
398
+ * @max 400
399
+ */
400
+ size?: number | null;
401
+ /**
402
+ * Defines the spacing between each line of the text (0-10)
403
+ * 1.0 is standard single line spacing
404
+ * @max 10
405
+ */
406
+ lineHeight?: number | null;
407
+ /**
408
+ * The text letter spacing in em units (0-10)
409
+ * Controls the space between each character
410
+ * @max 10
411
+ */
412
+ letterSpacing?: number | null;
413
+ }
414
+ /**
415
+ * Button defines the styling configuration for buttons.
416
+ * Includes normal state styling and hover effects.
417
+ */
418
+ interface Button {
419
+ /**
420
+ * Background color in eight-value hexadecimal format (e.g., #FF0099AA)
421
+ * @format COLOR_HEX
422
+ */
423
+ backgroundColor?: string | null;
424
+ /**
425
+ * Text color in eight-value hexadecimal format (e.g., #FF0099AA)
426
+ * @format COLOR_HEX
427
+ */
428
+ textColor?: string | null;
429
+ /** Button size preset (small, medium, large) */
430
+ size?: ButtonSizeWithLiterals;
431
+ /** Border configuration */
432
+ border?: Border;
433
+ /** Hover state styling when user's cursor is over the button */
434
+ hover?: Hover;
435
+ }
436
+ /**
437
+ * ButtonSize defines the preset size options for buttons.
438
+ * Affects padding, font size, and overall button dimensions.
439
+ */
440
+ declare enum ButtonSize {
441
+ /** Default value when button size is not specified */
442
+ UNKNOWN_BUTTON_SIZE = "UNKNOWN_BUTTON_SIZE",
443
+ /** Small button size - minimal padding, smaller text */
444
+ SMALL = "SMALL",
445
+ /** Medium button size - standard padding and text size */
446
+ MEDIUM = "MEDIUM",
447
+ /** Large button size - generous padding, larger text */
448
+ LARGE = "LARGE"
449
+ }
450
+ /** @enumType */
451
+ type ButtonSizeWithLiterals = ButtonSize | 'UNKNOWN_BUTTON_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
452
+ /**
453
+ * Border defines the styling for button borders.
454
+ * Includes settings for radius, width, color, and opacity.
455
+ */
456
+ interface Border {
457
+ /**
458
+ * Border radius in pixels (0-100)
459
+ * Controls how rounded the corners of the button will be
460
+ * @max 100
461
+ */
462
+ radius?: number | null;
463
+ /**
464
+ * Border width in pixels (0-10)
465
+ * Controls the thickness of the border around the button
466
+ * @max 10
467
+ */
468
+ width?: number | null;
469
+ /**
470
+ * Border color in eight-value hexadecimal format (e.g., #FF0099AA)
471
+ * @format COLOR_HEX
472
+ */
473
+ color?: string | null;
474
+ }
475
+ /**
476
+ * Hover defines styling for the button's hover state.
477
+ * These styles are applied when the user's cursor is over the button.
478
+ */
479
+ interface Hover {
480
+ /**
481
+ * Background color on hover in eight-value hexadecimal format (e.g., #FF0099AA)
482
+ * @format COLOR_HEX
483
+ */
484
+ backgroundColor?: string | null;
485
+ /**
486
+ * Text color on hover in eight-value hexadecimal format (e.g., #FF0099AA)
487
+ * @format COLOR_HEX
488
+ */
489
+ textColor?: string | null;
490
+ /**
491
+ * Border color on hover in eight-value hexadecimal format (e.g., #FF0099AA)
492
+ * @format COLOR_HEX
493
+ */
494
+ borderColor?: string | null;
495
+ }
496
+ /**
497
+ * Image message defines styling configurations for images used in quick-pages.
498
+ * Currently supports border styling with plans for additional image styling options.
499
+ */
500
+ interface Image {
501
+ /** Border configuration for the image */
502
+ border?: ImageBorder;
503
+ }
504
+ /**
505
+ * Border defines the styling for image borders.
506
+ * Includes settings for radius, width, color, and opacity.
507
+ */
508
+ interface ImageBorder {
509
+ /**
510
+ * Border radius in pixels (0-100)
511
+ * Controls how rounded the corners of the image will be
512
+ * @max 100
513
+ */
514
+ radius?: number | null;
515
+ /**
516
+ * Border width in pixels (0-10)
517
+ * Controls the thickness of the border around the image
518
+ * @max 10
519
+ */
520
+ width?: number | null;
521
+ /**
522
+ * Border color in eight-value hexadecimal format (e.g., #FF0099AA)
523
+ * @format COLOR_HEX
524
+ */
525
+ color?: string | null;
526
+ }
527
+ interface RichContent {
528
+ /** Node objects representing a rich content document. */
529
+ nodes?: Node[];
530
+ /** Object metadata. */
531
+ metadata?: Metadata;
532
+ /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
533
+ documentStyle?: DocumentStyle;
534
+ }
535
+ interface Node extends NodeDataOneOf {
536
+ /** Data for a button node. */
537
+ buttonData?: ButtonData;
538
+ /** Data for a code block node. */
539
+ codeBlockData?: CodeBlockData;
540
+ /** Data for a divider node. */
541
+ dividerData?: DividerData;
542
+ /** Data for a file node. */
543
+ fileData?: FileData;
544
+ /** Data for a gallery node. */
545
+ galleryData?: GalleryData;
546
+ /** Data for a GIF node. */
547
+ gifData?: GIFData;
548
+ /** Data for a heading node. */
549
+ headingData?: HeadingData;
550
+ /** Data for an embedded HTML node. */
551
+ htmlData?: HTMLData;
552
+ /** Data for an image node. */
553
+ imageData?: ImageData;
554
+ /** Data for a link preview node. */
555
+ linkPreviewData?: LinkPreviewData;
556
+ /** @deprecated */
557
+ mapData?: MapData;
558
+ /** Data for a paragraph node. */
559
+ paragraphData?: ParagraphData;
560
+ /** Data for a poll node. */
561
+ pollData?: PollData;
562
+ /** Data for a text node. Used to apply decorations to text. */
563
+ textData?: TextData;
564
+ /** Data for an app embed node. */
565
+ appEmbedData?: AppEmbedData;
566
+ /** Data for a video node. */
567
+ videoData?: VideoData;
568
+ /** Data for an oEmbed node. */
569
+ embedData?: EmbedData;
570
+ /** Data for a collapsible list node. */
571
+ collapsibleListData?: CollapsibleListData;
572
+ /** Data for a table node. */
573
+ tableData?: TableData;
574
+ /** Data for a table cell node. */
575
+ tableCellData?: TableCellData;
576
+ /** Data for a custom external node. */
577
+ externalData?: Record<string, any> | null;
578
+ /** Data for an audio node. */
579
+ audioData?: AudioData;
580
+ /** Data for an ordered list node. */
581
+ orderedListData?: OrderedListData;
582
+ /** Data for a bulleted list node. */
583
+ bulletedListData?: BulletedListData;
584
+ /** Data for a block quote node. */
585
+ blockquoteData?: BlockquoteData;
586
+ /** Data for a caption node. */
587
+ captionData?: CaptionData;
588
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
589
+ layoutCellData?: LayoutCellData;
590
+ /** 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. */
591
+ type?: NodeTypeWithLiterals;
592
+ /** Node ID. */
593
+ id?: string;
594
+ /** A list of child nodes. */
595
+ nodes?: Node[];
596
+ /** Padding and background color styling for the node. */
597
+ style?: NodeStyle;
598
+ }
599
+ /** @oneof */
600
+ interface NodeDataOneOf {
601
+ /** Data for a button node. */
602
+ buttonData?: ButtonData;
603
+ /** Data for a code block node. */
604
+ codeBlockData?: CodeBlockData;
605
+ /** Data for a divider node. */
606
+ dividerData?: DividerData;
607
+ /** Data for a file node. */
608
+ fileData?: FileData;
609
+ /** Data for a gallery node. */
610
+ galleryData?: GalleryData;
611
+ /** Data for a GIF node. */
612
+ gifData?: GIFData;
613
+ /** Data for a heading node. */
614
+ headingData?: HeadingData;
615
+ /** Data for an embedded HTML node. */
616
+ htmlData?: HTMLData;
617
+ /** Data for an image node. */
618
+ imageData?: ImageData;
619
+ /** Data for a link preview node. */
620
+ linkPreviewData?: LinkPreviewData;
621
+ /** @deprecated */
622
+ mapData?: MapData;
623
+ /** Data for a paragraph node. */
624
+ paragraphData?: ParagraphData;
625
+ /** Data for a poll node. */
626
+ pollData?: PollData;
627
+ /** Data for a text node. Used to apply decorations to text. */
628
+ textData?: TextData;
629
+ /** Data for an app embed node. */
630
+ appEmbedData?: AppEmbedData;
631
+ /** Data for a video node. */
632
+ videoData?: VideoData;
633
+ /** Data for an oEmbed node. */
634
+ embedData?: EmbedData;
635
+ /** Data for a collapsible list node. */
636
+ collapsibleListData?: CollapsibleListData;
637
+ /** Data for a table node. */
638
+ tableData?: TableData;
639
+ /** Data for a table cell node. */
640
+ tableCellData?: TableCellData;
641
+ /** Data for a custom external node. */
642
+ externalData?: Record<string, any> | null;
643
+ /** Data for an audio node. */
644
+ audioData?: AudioData;
645
+ /** Data for an ordered list node. */
646
+ orderedListData?: OrderedListData;
647
+ /** Data for a bulleted list node. */
648
+ bulletedListData?: BulletedListData;
649
+ /** Data for a block quote node. */
650
+ blockquoteData?: BlockquoteData;
651
+ /** Data for a caption node. */
652
+ captionData?: CaptionData;
653
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
654
+ layoutCellData?: LayoutCellData;
655
+ }
656
+ declare enum NodeType {
657
+ PARAGRAPH = "PARAGRAPH",
658
+ TEXT = "TEXT",
659
+ HEADING = "HEADING",
660
+ BULLETED_LIST = "BULLETED_LIST",
661
+ ORDERED_LIST = "ORDERED_LIST",
662
+ LIST_ITEM = "LIST_ITEM",
663
+ BLOCKQUOTE = "BLOCKQUOTE",
664
+ CODE_BLOCK = "CODE_BLOCK",
665
+ VIDEO = "VIDEO",
666
+ DIVIDER = "DIVIDER",
667
+ FILE = "FILE",
668
+ GALLERY = "GALLERY",
669
+ GIF = "GIF",
670
+ HTML = "HTML",
671
+ IMAGE = "IMAGE",
672
+ LINK_PREVIEW = "LINK_PREVIEW",
673
+ /** @deprecated */
674
+ MAP = "MAP",
675
+ POLL = "POLL",
676
+ APP_EMBED = "APP_EMBED",
677
+ BUTTON = "BUTTON",
678
+ COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
679
+ TABLE = "TABLE",
680
+ EMBED = "EMBED",
681
+ COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
682
+ COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
683
+ COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
684
+ TABLE_CELL = "TABLE_CELL",
685
+ TABLE_ROW = "TABLE_ROW",
686
+ EXTERNAL = "EXTERNAL",
687
+ AUDIO = "AUDIO",
688
+ CAPTION = "CAPTION",
689
+ LAYOUT = "LAYOUT",
690
+ LAYOUT_CELL = "LAYOUT_CELL"
691
+ }
692
+ /** @enumType */
693
+ type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL';
694
+ interface NodeStyle {
695
+ /** The top padding value in pixels. */
696
+ paddingTop?: string | null;
697
+ /** The bottom padding value in pixels. */
698
+ paddingBottom?: string | null;
699
+ /** The background color as a hexadecimal value. */
700
+ backgroundColor?: string | null;
701
+ }
702
+ interface ButtonData {
703
+ /** Styling for the button's container. */
704
+ containerData?: PluginContainerData;
705
+ /** The button type. */
706
+ type?: ButtonDataTypeWithLiterals;
707
+ /** Styling for the button. */
708
+ styles?: Styles;
709
+ /** The text to display on the button. */
710
+ text?: string | null;
711
+ /** Button link details. */
712
+ link?: Link;
713
+ }
714
+ interface StylesBorder {
715
+ /**
716
+ * Deprecated: Use `borderWidth` in `styles` instead.
717
+ * @deprecated
718
+ */
719
+ width?: number | null;
720
+ /**
721
+ * Deprecated: Use `borderRadius` in `styles` instead.
722
+ * @deprecated
723
+ */
724
+ radius?: number | null;
725
+ }
726
+ interface Colors {
727
+ /**
728
+ * Deprecated: Use `textColor` in `styles` instead.
729
+ * @deprecated
730
+ */
731
+ text?: string | null;
732
+ /**
733
+ * Deprecated: Use `borderColor` in `styles` instead.
734
+ * @deprecated
735
+ */
736
+ border?: string | null;
737
+ /**
738
+ * Deprecated: Use `backgroundColor` in `styles` instead.
739
+ * @deprecated
740
+ */
741
+ background?: string | null;
742
+ }
743
+ interface PluginContainerData {
744
+ /** The width of the node when it's displayed. */
745
+ width?: PluginContainerDataWidth;
746
+ /** The node's alignment within its container. */
747
+ alignment?: PluginContainerDataAlignmentWithLiterals;
748
+ /** Spoiler cover settings for the node. */
749
+ spoiler?: Spoiler;
750
+ /** The height of the node when it's displayed. */
751
+ height?: Height;
752
+ /** 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`. */
753
+ textWrap?: boolean | null;
754
+ }
755
+ declare enum WidthType {
756
+ /** Width matches the content width */
757
+ CONTENT = "CONTENT",
758
+ /** Small Width */
759
+ SMALL = "SMALL",
760
+ /** Width will match the original asset width */
761
+ ORIGINAL = "ORIGINAL",
762
+ /** coast-to-coast display */
763
+ FULL_WIDTH = "FULL_WIDTH"
764
+ }
765
+ /** @enumType */
766
+ type WidthTypeWithLiterals = WidthType | 'CONTENT' | 'SMALL' | 'ORIGINAL' | 'FULL_WIDTH';
767
+ interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
768
+ /**
769
+ * One of the following predefined width options:
770
+ * `CONTENT`: The width of the container matches the content width.
771
+ * `SMALL`: A small width.
772
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
773
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
774
+ */
775
+ size?: WidthTypeWithLiterals;
776
+ /** A custom width value in pixels. */
777
+ custom?: string | null;
778
+ }
779
+ /** @oneof */
780
+ interface PluginContainerDataWidthDataOneOf {
781
+ /**
782
+ * One of the following predefined width options:
783
+ * `CONTENT`: The width of the container matches the content width.
784
+ * `SMALL`: A small width.
785
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
786
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
787
+ */
788
+ size?: WidthTypeWithLiterals;
789
+ /** A custom width value in pixels. */
790
+ custom?: string | null;
791
+ }
792
+ declare enum PluginContainerDataAlignment {
793
+ /** Center Alignment */
794
+ CENTER = "CENTER",
795
+ /** Left Alignment */
796
+ LEFT = "LEFT",
797
+ /** Right Alignment */
798
+ RIGHT = "RIGHT"
799
+ }
800
+ /** @enumType */
801
+ type PluginContainerDataAlignmentWithLiterals = PluginContainerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
802
+ interface Spoiler {
803
+ /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
804
+ enabled?: boolean | null;
805
+ /** The description displayed on top of the spoiler cover. */
806
+ description?: string | null;
807
+ /** The text for the button used to remove the spoiler cover. */
808
+ buttonText?: string | null;
809
+ }
810
+ interface Height {
811
+ /** A custom height value in pixels. */
812
+ custom?: string | null;
813
+ }
814
+ declare enum ButtonDataType {
815
+ /** Regular link button */
816
+ LINK = "LINK",
817
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
818
+ ACTION = "ACTION"
819
+ }
820
+ /** @enumType */
821
+ type ButtonDataTypeWithLiterals = ButtonDataType | 'LINK' | 'ACTION';
822
+ interface Styles {
823
+ /**
824
+ * Deprecated: Use `borderWidth` and `borderRadius` instead.
825
+ * @deprecated
826
+ */
827
+ border?: StylesBorder;
828
+ /**
829
+ * Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.
830
+ * @deprecated
831
+ */
832
+ colors?: Colors;
833
+ /** Border width in pixels. */
834
+ borderWidth?: number | null;
835
+ /**
836
+ * Deprecated: Use `borderWidth` for normal/hover states instead.
837
+ * @deprecated
838
+ */
839
+ borderWidthHover?: number | null;
840
+ /** Border radius in pixels. */
841
+ borderRadius?: number | null;
842
+ /**
843
+ * Border color as a hexadecimal value.
844
+ * @format COLOR_HEX
845
+ */
846
+ borderColor?: string | null;
847
+ /**
848
+ * Border color as a hexadecimal value (hover state).
849
+ * @format COLOR_HEX
850
+ */
851
+ borderColorHover?: string | null;
852
+ /**
853
+ * Text color as a hexadecimal value.
854
+ * @format COLOR_HEX
855
+ */
856
+ textColor?: string | null;
857
+ /**
858
+ * Text color as a hexadecimal value (hover state).
859
+ * @format COLOR_HEX
860
+ */
861
+ textColorHover?: string | null;
862
+ /**
863
+ * Background color as a hexadecimal value.
864
+ * @format COLOR_HEX
865
+ */
866
+ backgroundColor?: string | null;
867
+ /**
868
+ * Background color as a hexadecimal value (hover state).
869
+ * @format COLOR_HEX
870
+ */
871
+ backgroundColorHover?: string | null;
872
+ /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
873
+ buttonSize?: string | null;
874
+ }
875
+ interface Link extends LinkDataOneOf {
876
+ /** The absolute URL for the linked document. */
877
+ url?: string;
878
+ /** The target node's ID. Used for linking to another node in this object. */
879
+ anchor?: string;
880
+ /**
881
+ * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
882
+ * `SELF` - Default. Opens the linked document in the same frame as the link.
883
+ * `BLANK` - Opens the linked document in a new browser tab or window.
884
+ * `PARENT` - Opens the linked document in the link's parent frame.
885
+ * `TOP` - Opens the linked document in the full body of the link's browser tab or window.
886
+ */
887
+ target?: TargetWithLiterals;
888
+ /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
889
+ rel?: Rel;
890
+ /** A serialized object used for a custom or external link panel. */
891
+ customData?: string | null;
892
+ }
893
+ /** @oneof */
894
+ interface LinkDataOneOf {
895
+ /** The absolute URL for the linked document. */
896
+ url?: string;
897
+ /** The target node's ID. Used for linking to another node in this object. */
898
+ anchor?: string;
899
+ }
900
+ declare enum Target {
901
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
902
+ SELF = "SELF",
903
+ /** Opens the linked document in a new window or tab */
904
+ BLANK = "BLANK",
905
+ /** Opens the linked document in the parent frame */
906
+ PARENT = "PARENT",
907
+ /** Opens the linked document in the full body of the window */
908
+ TOP = "TOP"
909
+ }
910
+ /** @enumType */
911
+ type TargetWithLiterals = Target | 'SELF' | 'BLANK' | 'PARENT' | 'TOP';
912
+ interface Rel {
913
+ /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
914
+ nofollow?: boolean | null;
915
+ /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */
916
+ sponsored?: boolean | null;
917
+ /** 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`. */
918
+ ugc?: boolean | null;
919
+ /** Indicates that this link protect referral information from being passed to the target website. */
920
+ noreferrer?: boolean | null;
921
+ }
922
+ interface CodeBlockData {
923
+ /** Styling for the code block's text. */
924
+ textStyle?: V1TextStyle;
925
+ }
926
+ interface V1TextStyle {
927
+ /** Text alignment. Defaults to `AUTO`. */
928
+ textAlignment?: TextAlignmentWithLiterals;
929
+ /** 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. */
930
+ lineHeight?: string | null;
931
+ }
932
+ declare enum TextAlignment {
933
+ /** browser default, eqivalent to `initial` */
934
+ AUTO = "AUTO",
935
+ /** Left align */
936
+ LEFT = "LEFT",
937
+ /** Right align */
938
+ RIGHT = "RIGHT",
939
+ /** Center align */
940
+ CENTER = "CENTER",
941
+ /** 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 */
942
+ JUSTIFY = "JUSTIFY"
943
+ }
944
+ /** @enumType */
945
+ type TextAlignmentWithLiterals = TextAlignment | 'AUTO' | 'LEFT' | 'RIGHT' | 'CENTER' | 'JUSTIFY';
946
+ interface DividerData {
947
+ /** Styling for the divider's container. */
948
+ containerData?: PluginContainerData;
949
+ /** Divider line style. */
950
+ lineStyle?: LineStyleWithLiterals;
951
+ /** Divider width. */
952
+ width?: WidthWithLiterals;
953
+ /** Divider alignment. */
954
+ alignment?: DividerDataAlignmentWithLiterals;
955
+ }
956
+ declare enum LineStyle {
957
+ /** Single Line */
958
+ SINGLE = "SINGLE",
959
+ /** Double Line */
960
+ DOUBLE = "DOUBLE",
961
+ /** Dashed Line */
962
+ DASHED = "DASHED",
963
+ /** Dotted Line */
964
+ DOTTED = "DOTTED"
965
+ }
966
+ /** @enumType */
967
+ type LineStyleWithLiterals = LineStyle | 'SINGLE' | 'DOUBLE' | 'DASHED' | 'DOTTED';
968
+ declare enum Width {
969
+ /** Large line */
970
+ LARGE = "LARGE",
971
+ /** Medium line */
972
+ MEDIUM = "MEDIUM",
973
+ /** Small line */
974
+ SMALL = "SMALL"
975
+ }
976
+ /** @enumType */
977
+ type WidthWithLiterals = Width | 'LARGE' | 'MEDIUM' | 'SMALL';
978
+ declare enum DividerDataAlignment {
979
+ /** Center alignment */
980
+ CENTER = "CENTER",
981
+ /** Left alignment */
982
+ LEFT = "LEFT",
983
+ /** Right alignment */
984
+ RIGHT = "RIGHT"
985
+ }
986
+ /** @enumType */
987
+ type DividerDataAlignmentWithLiterals = DividerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
988
+ interface FileData {
989
+ /** Styling for the file's container. */
990
+ containerData?: PluginContainerData;
991
+ /** The source for the file's data. */
992
+ src?: FileSource;
993
+ /** File name. */
994
+ name?: string | null;
995
+ /** File type. */
996
+ type?: string | null;
997
+ /**
998
+ * Use `sizeInKb` instead.
999
+ * @deprecated
1000
+ */
1001
+ size?: number | null;
1002
+ /** Settings for PDF files. */
1003
+ pdfSettings?: PDFSettings;
1004
+ /** File MIME type. */
1005
+ mimeType?: string | null;
1006
+ /** File path. */
1007
+ path?: string | null;
1008
+ /** File size in KB. */
1009
+ sizeInKb?: string | null;
1010
+ }
1011
+ declare enum ViewMode {
1012
+ /** No PDF view */
1013
+ NONE = "NONE",
1014
+ /** Full PDF view */
1015
+ FULL = "FULL",
1016
+ /** Mini PDF view */
1017
+ MINI = "MINI"
1018
+ }
1019
+ /** @enumType */
1020
+ type ViewModeWithLiterals = ViewMode | 'NONE' | 'FULL' | 'MINI';
1021
+ interface FileSource extends FileSourceDataOneOf {
1022
+ /** The absolute URL for the file's source. */
1023
+ url?: string | null;
1024
+ /**
1025
+ * Custom ID. Use `id` instead.
1026
+ * @deprecated
1027
+ */
1028
+ custom?: string | null;
1029
+ /** An ID that's resolved to a URL by a resolver function. */
1030
+ id?: string | null;
1031
+ /** Indicates whether the file's source is private. Defaults to `false`. */
1032
+ private?: boolean | null;
1033
+ }
1034
+ /** @oneof */
1035
+ interface FileSourceDataOneOf {
1036
+ /** The absolute URL for the file's source. */
1037
+ url?: string | null;
1038
+ /**
1039
+ * Custom ID. Use `id` instead.
1040
+ * @deprecated
1041
+ */
1042
+ custom?: string | null;
1043
+ /** An ID that's resolved to a URL by a resolver function. */
1044
+ id?: string | null;
1045
+ }
1046
+ interface PDFSettings {
1047
+ /**
1048
+ * PDF view mode. One of the following:
1049
+ * `NONE` : The PDF isn't displayed.
1050
+ * `FULL` : A full page view of the PDF is displayed.
1051
+ * `MINI` : A mini view of the PDF is displayed.
1052
+ */
1053
+ viewMode?: ViewModeWithLiterals;
1054
+ /** Sets whether the PDF download button is disabled. Defaults to `false`. */
1055
+ disableDownload?: boolean | null;
1056
+ /** Sets whether the PDF print button is disabled. Defaults to `false`. */
1057
+ disablePrint?: boolean | null;
1058
+ }
1059
+ interface GalleryData {
1060
+ /** Styling for the gallery's container. */
1061
+ containerData?: PluginContainerData;
1062
+ /** The items in the gallery. */
1063
+ items?: Item[];
1064
+ /** Options for defining the gallery's appearance. */
1065
+ options?: GalleryOptions;
1066
+ /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */
1067
+ disableExpand?: boolean | null;
1068
+ /** Sets whether the gallery's download button is disabled. Defaults to `false`. */
1069
+ disableDownload?: boolean | null;
1070
+ }
1071
+ interface Media {
1072
+ /** The source for the media's data. */
1073
+ src?: FileSource;
1074
+ /** Media width in pixels. */
1075
+ width?: number | null;
1076
+ /** Media height in pixels. */
1077
+ height?: number | null;
1078
+ /** Media duration in seconds. Only relevant for audio and video files. */
1079
+ duration?: number | null;
1080
+ }
1081
+ interface ItemImage {
1082
+ /** Image file details. */
1083
+ media?: Media;
1084
+ /** Link details for images that are links. */
1085
+ link?: Link;
1086
+ }
1087
+ interface Video {
1088
+ /** Video file details. */
1089
+ media?: Media;
1090
+ /** Video thumbnail file details. */
1091
+ thumbnail?: Media;
1092
+ }
1093
+ interface Item extends ItemDataOneOf {
1094
+ /** An image item. */
1095
+ image?: ItemImage;
1096
+ /** A video item. */
1097
+ video?: Video;
1098
+ /** Item title. */
1099
+ title?: string | null;
1100
+ /** Item's alternative text. */
1101
+ altText?: string | null;
1102
+ }
1103
+ /** @oneof */
1104
+ interface ItemDataOneOf {
1105
+ /** An image item. */
1106
+ image?: ItemImage;
1107
+ /** A video item. */
1108
+ video?: Video;
1109
+ }
1110
+ interface GalleryOptions {
1111
+ /** Gallery layout. */
1112
+ layout?: GalleryOptionsLayout;
1113
+ /** Styling for gallery items. */
1114
+ item?: ItemStyle;
1115
+ /** Styling for gallery thumbnail images. */
1116
+ thumbnails?: Thumbnails;
1117
+ }
1118
+ declare enum LayoutType {
1119
+ /** Collage type */
1120
+ COLLAGE = "COLLAGE",
1121
+ /** Masonry type */
1122
+ MASONRY = "MASONRY",
1123
+ /** Grid type */
1124
+ GRID = "GRID",
1125
+ /** Thumbnail type */
1126
+ THUMBNAIL = "THUMBNAIL",
1127
+ /** Slider type */
1128
+ SLIDER = "SLIDER",
1129
+ /** Slideshow type */
1130
+ SLIDESHOW = "SLIDESHOW",
1131
+ /** Panorama type */
1132
+ PANORAMA = "PANORAMA",
1133
+ /** Column type */
1134
+ COLUMN = "COLUMN",
1135
+ /** Magic type */
1136
+ MAGIC = "MAGIC",
1137
+ /** Fullsize images type */
1138
+ FULLSIZE = "FULLSIZE"
1139
+ }
1140
+ /** @enumType */
1141
+ type LayoutTypeWithLiterals = LayoutType | 'COLLAGE' | 'MASONRY' | 'GRID' | 'THUMBNAIL' | 'SLIDER' | 'SLIDESHOW' | 'PANORAMA' | 'COLUMN' | 'MAGIC' | 'FULLSIZE';
1142
+ declare enum Orientation {
1143
+ /** Rows Orientation */
1144
+ ROWS = "ROWS",
1145
+ /** Columns Orientation */
1146
+ COLUMNS = "COLUMNS"
1147
+ }
1148
+ /** @enumType */
1149
+ type OrientationWithLiterals = Orientation | 'ROWS' | 'COLUMNS';
1150
+ declare enum Crop {
1151
+ /** Crop to fill */
1152
+ FILL = "FILL",
1153
+ /** Crop to fit */
1154
+ FIT = "FIT"
1155
+ }
1156
+ /** @enumType */
1157
+ type CropWithLiterals = Crop | 'FILL' | 'FIT';
1158
+ declare enum ThumbnailsAlignment {
1159
+ /** Top alignment */
1160
+ TOP = "TOP",
1161
+ /** Right alignment */
1162
+ RIGHT = "RIGHT",
1163
+ /** Bottom alignment */
1164
+ BOTTOM = "BOTTOM",
1165
+ /** Left alignment */
1166
+ LEFT = "LEFT",
1167
+ /** No thumbnail */
1168
+ NONE = "NONE"
1169
+ }
1170
+ /** @enumType */
1171
+ type ThumbnailsAlignmentWithLiterals = ThumbnailsAlignment | 'TOP' | 'RIGHT' | 'BOTTOM' | 'LEFT' | 'NONE';
1172
+ interface GalleryOptionsLayout {
1173
+ /** Gallery layout type. */
1174
+ type?: LayoutTypeWithLiterals;
1175
+ /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
1176
+ horizontalScroll?: boolean | null;
1177
+ /** Gallery orientation. */
1178
+ orientation?: OrientationWithLiterals;
1179
+ /** The number of columns to display on full size screens. */
1180
+ numberOfColumns?: number | null;
1181
+ /** The number of columns to display on mobile screens. */
1182
+ mobileNumberOfColumns?: number | null;
1183
+ }
1184
+ interface ItemStyle {
1185
+ /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
1186
+ targetSize?: number | null;
1187
+ /** Item ratio */
1188
+ ratio?: number | null;
1189
+ /** Sets how item images are cropped. */
1190
+ crop?: CropWithLiterals;
1191
+ /** The spacing between items in pixels. */
1192
+ spacing?: number | null;
1193
+ }
1194
+ interface Thumbnails {
1195
+ /** Thumbnail alignment. */
1196
+ placement?: ThumbnailsAlignmentWithLiterals;
1197
+ /** Spacing between thumbnails in pixels. */
1198
+ spacing?: number | null;
1199
+ }
1200
+ interface GIFData {
1201
+ /** Styling for the GIF's container. */
1202
+ containerData?: PluginContainerData;
1203
+ /** The source of the full size GIF. */
1204
+ original?: GIF;
1205
+ /** The source of the downsized GIF. */
1206
+ downsized?: GIF;
1207
+ /** Height in pixels. */
1208
+ height?: number;
1209
+ /** Width in pixels. */
1210
+ width?: number;
1211
+ /** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */
1212
+ gifType?: GIFTypeWithLiterals;
1213
+ }
1214
+ interface GIF {
1215
+ /**
1216
+ * GIF format URL.
1217
+ * @format WEB_URL
1218
+ */
1219
+ gif?: string | null;
1220
+ /**
1221
+ * MP4 format URL.
1222
+ * @format WEB_URL
1223
+ */
1224
+ mp4?: string | null;
1225
+ /**
1226
+ * Thumbnail URL.
1227
+ * @format WEB_URL
1228
+ */
1229
+ still?: string | null;
1230
+ }
1231
+ declare enum GIFType {
1232
+ NORMAL = "NORMAL",
1233
+ STICKER = "STICKER"
1234
+ }
1235
+ /** @enumType */
1236
+ type GIFTypeWithLiterals = GIFType | 'NORMAL' | 'STICKER';
1237
+ interface HeadingData {
1238
+ /** Heading level from 1-6. */
1239
+ level?: number;
1240
+ /** Styling for the heading text. */
1241
+ textStyle?: V1TextStyle;
1242
+ /** Indentation level from 1-4. */
1243
+ indentation?: number | null;
1244
+ }
1245
+ interface HTMLData extends HTMLDataDataOneOf {
1246
+ /** The URL for the HTML code for the node. */
1247
+ url?: string;
1248
+ /** The HTML code for the node. */
1249
+ html?: string;
1250
+ /**
1251
+ * Whether this is an AdSense element. Use `source` instead.
1252
+ * @deprecated
1253
+ */
1254
+ isAdsense?: boolean | null;
1255
+ /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
1256
+ containerData?: PluginContainerData;
1257
+ /** The type of HTML code. */
1258
+ source?: SourceWithLiterals;
1259
+ /** If container height is aligned with its content height. Defaults to `true`. */
1260
+ autoHeight?: boolean | null;
1261
+ }
1262
+ /** @oneof */
1263
+ interface HTMLDataDataOneOf {
1264
+ /** The URL for the HTML code for the node. */
1265
+ url?: string;
1266
+ /** The HTML code for the node. */
1267
+ html?: string;
1268
+ /**
1269
+ * Whether this is an AdSense element. Use `source` instead.
1270
+ * @deprecated
1271
+ */
1272
+ isAdsense?: boolean | null;
1273
+ }
1274
+ declare enum Source {
1275
+ HTML = "HTML",
1276
+ ADSENSE = "ADSENSE"
1277
+ }
1278
+ /** @enumType */
1279
+ type SourceWithLiterals = Source | 'HTML' | 'ADSENSE';
1280
+ interface ImageData {
1281
+ /** Styling for the image's container. */
1282
+ containerData?: PluginContainerData;
1283
+ /** Image file details. */
1284
+ image?: Media;
1285
+ /** Link details for images that are links. */
1286
+ link?: Link;
1287
+ /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */
1288
+ disableExpand?: boolean | null;
1289
+ /** Image's alternative text. */
1290
+ altText?: string | null;
1291
+ /**
1292
+ * Deprecated: use Caption node instead.
1293
+ * @deprecated
1294
+ */
1295
+ caption?: string | null;
1296
+ /** Sets whether the image's download button is disabled. Defaults to `false`. */
1297
+ disableDownload?: boolean | null;
1298
+ /** Sets whether the image is decorative and does not need an explanation. Defaults to `false`. */
1299
+ decorative?: boolean | null;
1300
+ /** Styling for the image. */
1301
+ styles?: ImageDataStyles;
1302
+ }
1303
+ interface ImageDataStylesBorder {
1304
+ /** Border width in pixels. */
1305
+ width?: number | null;
1306
+ /**
1307
+ * Border color as a hexadecimal value.
1308
+ * @format COLOR_HEX
1309
+ */
1310
+ color?: string | null;
1311
+ /** Border radius in pixels. */
1312
+ radius?: number | null;
1313
+ }
1314
+ interface ImageDataStyles {
1315
+ /** Border attributes. */
1316
+ border?: ImageDataStylesBorder;
1317
+ }
1318
+ interface LinkPreviewData {
1319
+ /** Styling for the link preview's container. */
1320
+ containerData?: PluginContainerData;
1321
+ /** Link details. */
1322
+ link?: Link;
1323
+ /** Preview title. */
1324
+ title?: string | null;
1325
+ /** Preview thumbnail URL. */
1326
+ thumbnailUrl?: string | null;
1327
+ /** Preview description. */
1328
+ description?: string | null;
1329
+ /** The preview content as HTML. */
1330
+ html?: string | null;
1331
+ /** Styling for the link preview. */
1332
+ styles?: LinkPreviewDataStyles;
1333
+ }
1334
+ declare enum StylesPosition {
1335
+ /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
1336
+ START = "START",
1337
+ /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
1338
+ END = "END",
1339
+ /** Thumbnail positioned at the top */
1340
+ TOP = "TOP",
1341
+ /** Thumbnail hidden and not displayed */
1342
+ HIDDEN = "HIDDEN"
1343
+ }
1344
+ /** @enumType */
1345
+ type StylesPositionWithLiterals = StylesPosition | 'START' | 'END' | 'TOP' | 'HIDDEN';
1346
+ interface LinkPreviewDataStyles {
1347
+ /**
1348
+ * Background color as a hexadecimal value.
1349
+ * @format COLOR_HEX
1350
+ */
1351
+ backgroundColor?: string | null;
1352
+ /**
1353
+ * Title color as a hexadecimal value.
1354
+ * @format COLOR_HEX
1355
+ */
1356
+ titleColor?: string | null;
1357
+ /**
1358
+ * Subtitle color as a hexadecimal value.
1359
+ * @format COLOR_HEX
1360
+ */
1361
+ subtitleColor?: string | null;
1362
+ /**
1363
+ * Link color as a hexadecimal value.
1364
+ * @format COLOR_HEX
1365
+ */
1366
+ linkColor?: string | null;
1367
+ /** Border width in pixels. */
1368
+ borderWidth?: number | null;
1369
+ /** Border radius in pixels. */
1370
+ borderRadius?: number | null;
1371
+ /**
1372
+ * Border color as a hexadecimal value.
1373
+ * @format COLOR_HEX
1374
+ */
1375
+ borderColor?: string | null;
1376
+ /** Position of thumbnail. Defaults to `START`. */
1377
+ thumbnailPosition?: StylesPositionWithLiterals;
1378
+ }
1379
+ interface MapData {
1380
+ /** Styling for the map's container. */
1381
+ containerData?: PluginContainerData;
1382
+ /** Map settings. */
1383
+ mapSettings?: MapSettings;
1384
+ }
1385
+ interface MapSettings {
1386
+ /** The address to display on the map. */
1387
+ address?: string | null;
1388
+ /** Sets whether the map is draggable. */
1389
+ draggable?: boolean | null;
1390
+ /** Sets whether the location marker is visible. */
1391
+ marker?: boolean | null;
1392
+ /** Sets whether street view control is enabled. */
1393
+ streetViewControl?: boolean | null;
1394
+ /** Sets whether zoom control is enabled. */
1395
+ zoomControl?: boolean | null;
1396
+ /** Location latitude. */
1397
+ lat?: number | null;
1398
+ /** Location longitude. */
1399
+ lng?: number | null;
1400
+ /** Location name. */
1401
+ locationName?: string | null;
1402
+ /** Sets whether view mode control is enabled. */
1403
+ viewModeControl?: boolean | null;
1404
+ /** Initial zoom value. */
1405
+ initialZoom?: number | null;
1406
+ /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
1407
+ mapType?: MapTypeWithLiterals;
1408
+ }
1409
+ declare enum MapType {
1410
+ /** Roadmap map type */
1411
+ ROADMAP = "ROADMAP",
1412
+ /** Satellite map type */
1413
+ SATELITE = "SATELITE",
1414
+ /** Hybrid map type */
1415
+ HYBRID = "HYBRID",
1416
+ /** Terrain map type */
1417
+ TERRAIN = "TERRAIN"
1418
+ }
1419
+ /** @enumType */
1420
+ type MapTypeWithLiterals = MapType | 'ROADMAP' | 'SATELITE' | 'HYBRID' | 'TERRAIN';
1421
+ interface ParagraphData {
1422
+ /** Styling for the paragraph text. */
1423
+ textStyle?: V1TextStyle;
1424
+ /** Indentation level from 1-4. */
1425
+ indentation?: number | null;
1426
+ /** Paragraph level */
1427
+ level?: number | null;
1428
+ }
1429
+ interface PollData {
1430
+ /** Styling for the poll's container. */
1431
+ containerData?: PluginContainerData;
1432
+ /** Poll data. */
1433
+ poll?: Poll;
1434
+ /** Layout settings for the poll and voting options. */
1435
+ layout?: PollDataLayout;
1436
+ /** Styling for the poll and voting options. */
1437
+ design?: PollDataDesign;
1438
+ }
1439
+ declare enum ViewRole {
1440
+ /** Only Poll creator can view the results */
1441
+ CREATOR = "CREATOR",
1442
+ /** Anyone who voted can see the results */
1443
+ VOTERS = "VOTERS",
1444
+ /** Anyone can see the results, even if one didn't vote */
1445
+ EVERYONE = "EVERYONE"
1446
+ }
1447
+ /** @enumType */
1448
+ type ViewRoleWithLiterals = ViewRole | 'CREATOR' | 'VOTERS' | 'EVERYONE';
1449
+ declare enum VoteRole {
1450
+ /** Logged in member */
1451
+ SITE_MEMBERS = "SITE_MEMBERS",
1452
+ /** Anyone */
1453
+ ALL = "ALL"
1454
+ }
1455
+ /** @enumType */
1456
+ type VoteRoleWithLiterals = VoteRole | 'SITE_MEMBERS' | 'ALL';
1457
+ interface Permissions {
1458
+ /** Sets who can view the poll results. */
1459
+ view?: ViewRoleWithLiterals;
1460
+ /** Sets who can vote. */
1461
+ vote?: VoteRoleWithLiterals;
1462
+ /** Sets whether one voter can vote multiple times. Defaults to `false`. */
1463
+ allowMultipleVotes?: boolean | null;
1464
+ }
1465
+ interface Option {
1466
+ /** Option ID. */
1467
+ id?: string | null;
1468
+ /** Option title. */
1469
+ title?: string | null;
1470
+ /** The image displayed with the option. */
1471
+ image?: Media;
1472
+ }
1473
+ interface Settings {
1474
+ /** Permissions settings for voting. */
1475
+ permissions?: Permissions;
1476
+ /** Sets whether voters are displayed in the vote results. Defaults to `true`. */
1477
+ showVoters?: boolean | null;
1478
+ /** Sets whether the vote count is displayed. Defaults to `true`. */
1479
+ showVotesCount?: boolean | null;
1480
+ }
1481
+ declare enum PollLayoutType {
1482
+ /** List */
1483
+ LIST = "LIST",
1484
+ /** Grid */
1485
+ GRID = "GRID"
1486
+ }
1487
+ /** @enumType */
1488
+ type PollLayoutTypeWithLiterals = PollLayoutType | 'LIST' | 'GRID';
1489
+ declare enum PollLayoutDirection {
1490
+ /** Left-to-right */
1491
+ LTR = "LTR",
1492
+ /** Right-to-left */
1493
+ RTL = "RTL"
1494
+ }
1495
+ /** @enumType */
1496
+ type PollLayoutDirectionWithLiterals = PollLayoutDirection | 'LTR' | 'RTL';
1497
+ interface PollLayout {
1498
+ /** The layout for displaying the voting options. */
1499
+ type?: PollLayoutTypeWithLiterals;
1500
+ /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
1501
+ direction?: PollLayoutDirectionWithLiterals;
1502
+ /** Sets whether to display the main poll image. Defaults to `false`. */
1503
+ enableImage?: boolean | null;
1504
+ }
1505
+ interface OptionLayout {
1506
+ /** Sets whether to display option images. Defaults to `false`. */
1507
+ enableImage?: boolean | null;
1508
+ }
1509
+ declare enum PollDesignBackgroundType {
1510
+ /** Color background type */
1511
+ COLOR = "COLOR",
1512
+ /** Image background type */
1513
+ IMAGE = "IMAGE",
1514
+ /** Gradiant background type */
1515
+ GRADIENT = "GRADIENT"
1516
+ }
1517
+ /** @enumType */
1518
+ type PollDesignBackgroundTypeWithLiterals = PollDesignBackgroundType | 'COLOR' | 'IMAGE' | 'GRADIENT';
1519
+ interface BackgroundGradient {
1520
+ /** The gradient angle in degrees. */
1521
+ angle?: number | null;
1522
+ /**
1523
+ * The start color as a hexademical value.
1524
+ * @format COLOR_HEX
1525
+ */
1526
+ startColor?: string | null;
1527
+ /**
1528
+ * The end color as a hexademical value.
1529
+ * @format COLOR_HEX
1530
+ */
1531
+ lastColor?: string | null;
1532
+ }
1533
+ interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
1534
+ /**
1535
+ * The background color as a hexademical value.
1536
+ * @format COLOR_HEX
1537
+ */
1538
+ color?: string | null;
1539
+ /** An image to use for the background. */
1540
+ image?: Media;
1541
+ /** Details for a gradient background. */
1542
+ gradient?: BackgroundGradient;
1543
+ /** Background type. For each option, include the relevant details. */
1544
+ type?: PollDesignBackgroundTypeWithLiterals;
1545
+ }
1546
+ /** @oneof */
1547
+ interface PollDesignBackgroundBackgroundOneOf {
1548
+ /**
1549
+ * The background color as a hexademical value.
1550
+ * @format COLOR_HEX
1551
+ */
1552
+ color?: string | null;
1553
+ /** An image to use for the background. */
1554
+ image?: Media;
1555
+ /** Details for a gradient background. */
1556
+ gradient?: BackgroundGradient;
1557
+ }
1558
+ interface PollDesign {
1559
+ /** Background styling. */
1560
+ background?: PollDesignBackground;
1561
+ /** Border radius in pixels. */
1562
+ borderRadius?: number | null;
1563
+ }
1564
+ interface OptionDesign {
1565
+ /** Border radius in pixels. */
1566
+ borderRadius?: number | null;
1567
+ }
1568
+ interface Poll {
1569
+ /** Poll ID. */
1570
+ id?: string | null;
1571
+ /** Poll title. */
1572
+ title?: string | null;
1573
+ /** Poll creator ID. */
1574
+ creatorId?: string | null;
1575
+ /** Main poll image. */
1576
+ image?: Media;
1577
+ /** Voting options. */
1578
+ options?: Option[];
1579
+ /** The poll's permissions and display settings. */
1580
+ settings?: Settings;
1581
+ }
1582
+ interface PollDataLayout {
1583
+ /** Poll layout settings. */
1584
+ poll?: PollLayout;
1585
+ /** Voting otpions layout settings. */
1586
+ options?: OptionLayout;
1587
+ }
1588
+ interface PollDataDesign {
1589
+ /** Styling for the poll. */
1590
+ poll?: PollDesign;
1591
+ /** Styling for voting options. */
1592
+ options?: OptionDesign;
1593
+ }
1594
+ interface TextData {
1595
+ /** The text to apply decorations to. */
1596
+ text?: string;
1597
+ /** The decorations to apply. */
1598
+ decorations?: Decoration[];
1599
+ }
1600
+ /** Adds appearence changes to text */
1601
+ interface Decoration extends DecorationDataOneOf {
1602
+ /** Data for an anchor link decoration. */
1603
+ anchorData?: AnchorData;
1604
+ /** Data for a color decoration. */
1605
+ colorData?: ColorData;
1606
+ /** Data for an external link decoration. */
1607
+ linkData?: LinkData;
1608
+ /** Data for a mention decoration. */
1609
+ mentionData?: MentionData;
1610
+ /** Data for a font size decoration. */
1611
+ fontSizeData?: FontSizeData;
1612
+ /** Font weight for a bold decoration. */
1613
+ fontWeightValue?: number | null;
1614
+ /** Data for an italic decoration. Defaults to `true`. */
1615
+ italicData?: boolean | null;
1616
+ /** Data for an underline decoration. Defaults to `true`. */
1617
+ underlineData?: boolean | null;
1618
+ /** Data for a spoiler decoration. */
1619
+ spoilerData?: SpoilerData;
1620
+ /** Data for a strikethrough decoration. Defaults to `true`. */
1621
+ strikethroughData?: boolean | null;
1622
+ /** Data for a superscript decoration. Defaults to `true`. */
1623
+ superscriptData?: boolean | null;
1624
+ /** Data for a subscript decoration. Defaults to `true`. */
1625
+ subscriptData?: boolean | null;
1626
+ /** The type of decoration to apply. */
1627
+ type?: DecorationTypeWithLiterals;
1628
+ }
1629
+ /** @oneof */
1630
+ interface DecorationDataOneOf {
1631
+ /** Data for an anchor link decoration. */
1632
+ anchorData?: AnchorData;
1633
+ /** Data for a color decoration. */
1634
+ colorData?: ColorData;
1635
+ /** Data for an external link decoration. */
1636
+ linkData?: LinkData;
1637
+ /** Data for a mention decoration. */
1638
+ mentionData?: MentionData;
1639
+ /** Data for a font size decoration. */
1640
+ fontSizeData?: FontSizeData;
1641
+ /** Font weight for a bold decoration. */
1642
+ fontWeightValue?: number | null;
1643
+ /** Data for an italic decoration. Defaults to `true`. */
1644
+ italicData?: boolean | null;
1645
+ /** Data for an underline decoration. Defaults to `true`. */
1646
+ underlineData?: boolean | null;
1647
+ /** Data for a spoiler decoration. */
1648
+ spoilerData?: SpoilerData;
1649
+ /** Data for a strikethrough decoration. Defaults to `true`. */
1650
+ strikethroughData?: boolean | null;
1651
+ /** Data for a superscript decoration. Defaults to `true`. */
1652
+ superscriptData?: boolean | null;
1653
+ /** Data for a subscript decoration. Defaults to `true`. */
1654
+ subscriptData?: boolean | null;
1655
+ }
1656
+ declare enum DecorationType {
1657
+ BOLD = "BOLD",
1658
+ ITALIC = "ITALIC",
1659
+ UNDERLINE = "UNDERLINE",
1660
+ SPOILER = "SPOILER",
1661
+ ANCHOR = "ANCHOR",
1662
+ MENTION = "MENTION",
1663
+ LINK = "LINK",
1664
+ COLOR = "COLOR",
1665
+ FONT_SIZE = "FONT_SIZE",
1666
+ EXTERNAL = "EXTERNAL",
1667
+ STRIKETHROUGH = "STRIKETHROUGH",
1668
+ SUPERSCRIPT = "SUPERSCRIPT",
1669
+ SUBSCRIPT = "SUBSCRIPT"
1670
+ }
1671
+ /** @enumType */
1672
+ type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT';
1673
+ interface AnchorData {
1674
+ /** The target node's ID. */
1675
+ anchor?: string;
1676
+ }
1677
+ interface ColorData {
1678
+ /** The text's background color as a hexadecimal value. */
1679
+ background?: string | null;
1680
+ /** The text's foreground color as a hexadecimal value. */
1681
+ foreground?: string | null;
1682
+ }
1683
+ interface LinkData {
1684
+ /** Link details. */
1685
+ link?: Link;
1686
+ }
1687
+ interface MentionData {
1688
+ /** The mentioned user's name. */
1689
+ name?: string;
1690
+ /** The version of the user's name that appears after the `@` character in the mention. */
1691
+ slug?: string;
1692
+ /** Mentioned user's ID. */
1693
+ id?: string | null;
1694
+ }
1695
+ interface FontSizeData {
1696
+ /** The units used for the font size. */
1697
+ unit?: FontTypeWithLiterals;
1698
+ /** Font size value. */
1699
+ value?: number | null;
1700
+ }
1701
+ declare enum FontType {
1702
+ PX = "PX",
1703
+ EM = "EM"
1704
+ }
1705
+ /** @enumType */
1706
+ type FontTypeWithLiterals = FontType | 'PX' | 'EM';
1707
+ interface SpoilerData {
1708
+ /** Spoiler ID. */
1709
+ id?: string | null;
1710
+ }
1711
+ interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1712
+ /** Data for embedded Wix Bookings content. */
1713
+ bookingData?: BookingData;
1714
+ /** Data for embedded Wix Events content. */
1715
+ eventData?: EventData;
1716
+ /** The type of Wix App content being embedded. */
1717
+ type?: AppTypeWithLiterals;
1718
+ /** The ID of the embedded content. */
1719
+ itemId?: string | null;
1720
+ /** The name of the embedded content. */
1721
+ name?: string | null;
1722
+ /**
1723
+ * Deprecated: Use `image` instead.
1724
+ * @deprecated
1725
+ */
1726
+ imageSrc?: string | null;
1727
+ /** The URL for the embedded content. */
1728
+ url?: string | null;
1729
+ /** An image for the embedded content. */
1730
+ image?: Media;
1731
+ /** Whether to hide the image. */
1732
+ hideImage?: boolean | null;
1733
+ /** Whether to hide the title. */
1734
+ hideTitle?: boolean | null;
1735
+ /** Whether to hide the price. */
1736
+ hidePrice?: boolean | null;
1737
+ /** Whether to hide the description (Event and Booking). */
1738
+ hideDescription?: boolean | null;
1739
+ /** Whether to hide the date and time (Event). */
1740
+ hideDateTime?: boolean | null;
1741
+ /** Whether to hide the location (Event). */
1742
+ hideLocation?: boolean | null;
1743
+ /** Whether to hide the duration (Booking). */
1744
+ hideDuration?: boolean | null;
1745
+ /** Whether to hide the button. */
1746
+ hideButton?: boolean | null;
1747
+ /** Whether to hide the ribbon. */
1748
+ hideRibbon?: boolean | null;
1749
+ /** Button styling options. */
1750
+ buttonStyles?: ButtonStyles;
1751
+ /** Image styling options. */
1752
+ imageStyles?: ImageStyles;
1753
+ /** Ribbon styling options. */
1754
+ ribbonStyles?: RibbonStyles;
1755
+ /** Card styling options. */
1756
+ cardStyles?: CardStyles;
1757
+ /** Styling for the app embed's container. */
1758
+ containerData?: PluginContainerData;
1759
+ /** Pricing data for embedded Wix App content. */
1760
+ pricingData?: PricingData;
1761
+ }
1762
+ /** @oneof */
1763
+ interface AppEmbedDataAppDataOneOf {
1764
+ /** Data for embedded Wix Bookings content. */
1765
+ bookingData?: BookingData;
1766
+ /** Data for embedded Wix Events content. */
1767
+ eventData?: EventData;
1768
+ }
1769
+ declare enum Position {
1770
+ /** Image positioned at the start (left in LTR layouts, right in RTL layouts) */
1771
+ START = "START",
1772
+ /** Image positioned at the end (right in LTR layouts, left in RTL layouts) */
1773
+ END = "END",
1774
+ /** Image positioned at the top */
1775
+ TOP = "TOP"
1776
+ }
1777
+ /** @enumType */
1778
+ type PositionWithLiterals = Position | 'START' | 'END' | 'TOP';
1779
+ declare enum AspectRatio {
1780
+ /** 1:1 aspect ratio */
1781
+ SQUARE = "SQUARE",
1782
+ /** 16:9 aspect ratio */
1783
+ RECTANGLE = "RECTANGLE"
1784
+ }
1785
+ /** @enumType */
1786
+ type AspectRatioWithLiterals = AspectRatio | 'SQUARE' | 'RECTANGLE';
1787
+ declare enum Resizing {
1788
+ /** Fill the container, may crop the image */
1789
+ FILL = "FILL",
1790
+ /** Fit the image within the container */
1791
+ FIT = "FIT"
1792
+ }
1793
+ /** @enumType */
1794
+ type ResizingWithLiterals = Resizing | 'FILL' | 'FIT';
1795
+ declare enum Placement {
1796
+ /** Ribbon placed on the image */
1797
+ IMAGE = "IMAGE",
1798
+ /** Ribbon placed on the product information */
1799
+ PRODUCT_INFO = "PRODUCT_INFO"
1800
+ }
1801
+ /** @enumType */
1802
+ type PlacementWithLiterals = Placement | 'IMAGE' | 'PRODUCT_INFO';
1803
+ declare enum Type {
1804
+ /** Card with visible border and background */
1805
+ CONTAINED = "CONTAINED",
1806
+ /** Card without visible border */
1807
+ FRAMELESS = "FRAMELESS"
1808
+ }
1809
+ /** @enumType */
1810
+ type TypeWithLiterals = Type | 'CONTAINED' | 'FRAMELESS';
1811
+ declare enum Alignment {
1812
+ /** Content aligned to start (left in LTR layouts, right in RTL layouts) */
1813
+ START = "START",
1814
+ /** Content centered */
1815
+ CENTER = "CENTER",
1816
+ /** Content aligned to end (right in LTR layouts, left in RTL layouts) */
1817
+ END = "END"
1818
+ }
1819
+ /** @enumType */
1820
+ type AlignmentWithLiterals = Alignment | 'START' | 'CENTER' | 'END';
1821
+ declare enum Layout {
1822
+ /** Elements stacked vertically */
1823
+ STACKED = "STACKED",
1824
+ /** Elements arranged horizontally */
1825
+ SIDE_BY_SIDE = "SIDE_BY_SIDE"
1826
+ }
1827
+ /** @enumType */
1828
+ type LayoutWithLiterals = Layout | 'STACKED' | 'SIDE_BY_SIDE';
1829
+ declare enum AppType {
1830
+ PRODUCT = "PRODUCT",
1831
+ EVENT = "EVENT",
1832
+ BOOKING = "BOOKING"
1833
+ }
1834
+ /** @enumType */
1835
+ type AppTypeWithLiterals = AppType | 'PRODUCT' | 'EVENT' | 'BOOKING';
1836
+ interface BookingData {
1837
+ /** Booking duration in minutes. */
1838
+ durations?: string | null;
1839
+ }
1840
+ interface EventData {
1841
+ /** Event schedule. */
1842
+ scheduling?: string | null;
1843
+ /** Event location. */
1844
+ location?: string | null;
1845
+ }
1846
+ interface ButtonStyles {
1847
+ /** Text to display on the button. */
1848
+ buttonText?: string | null;
1849
+ /** Border width in pixels. */
1850
+ borderWidth?: number | null;
1851
+ /** Border radius in pixels. */
1852
+ borderRadius?: number | null;
1853
+ /**
1854
+ * Border color as a hexadecimal value.
1855
+ * @format COLOR_HEX
1856
+ */
1857
+ borderColor?: string | null;
1858
+ /**
1859
+ * Text color as a hexadecimal value.
1860
+ * @format COLOR_HEX
1861
+ */
1862
+ textColor?: string | null;
1863
+ /**
1864
+ * Background color as a hexadecimal value.
1865
+ * @format COLOR_HEX
1866
+ */
1867
+ backgroundColor?: string | null;
1868
+ /**
1869
+ * Border color as a hexadecimal value (hover state).
1870
+ * @format COLOR_HEX
1871
+ */
1872
+ borderColorHover?: string | null;
1873
+ /**
1874
+ * Text color as a hexadecimal value (hover state).
1875
+ * @format COLOR_HEX
1876
+ */
1877
+ textColorHover?: string | null;
1878
+ /**
1879
+ * Background color as a hexadecimal value (hover state).
1880
+ * @format COLOR_HEX
1881
+ */
1882
+ backgroundColorHover?: string | null;
1883
+ /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
1884
+ buttonSize?: string | null;
1885
+ }
1886
+ interface ImageStyles {
1887
+ /** Whether to hide the image. */
1888
+ hideImage?: boolean | null;
1889
+ /** Position of image. Defaults to `START`. */
1890
+ imagePosition?: PositionWithLiterals;
1891
+ /** Aspect ratio for the image. Defaults to `SQUARE`. */
1892
+ aspectRatio?: AspectRatioWithLiterals;
1893
+ /** How the image should be resized. Defaults to `FILL`. */
1894
+ resizing?: ResizingWithLiterals;
1895
+ /**
1896
+ * Image border color as a hexadecimal value.
1897
+ * @format COLOR_HEX
1898
+ */
1899
+ borderColor?: string | null;
1900
+ /** Image border width in pixels. */
1901
+ borderWidth?: number | null;
1902
+ /** Image border radius in pixels. */
1903
+ borderRadius?: number | null;
1904
+ }
1905
+ interface RibbonStyles {
1906
+ /** Text to display on the ribbon. */
1907
+ ribbonText?: string | null;
1908
+ /**
1909
+ * Ribbon background color as a hexadecimal value.
1910
+ * @format COLOR_HEX
1911
+ */
1912
+ backgroundColor?: string | null;
1913
+ /**
1914
+ * Ribbon text color as a hexadecimal value.
1915
+ * @format COLOR_HEX
1916
+ */
1917
+ textColor?: string | null;
1918
+ /**
1919
+ * Ribbon border color as a hexadecimal value.
1920
+ * @format COLOR_HEX
1921
+ */
1922
+ borderColor?: string | null;
1923
+ /** Ribbon border width in pixels. */
1924
+ borderWidth?: number | null;
1925
+ /** Ribbon border radius in pixels. */
1926
+ borderRadius?: number | null;
1927
+ /** Placement of the ribbon. Defaults to `IMAGE`. */
1928
+ ribbonPlacement?: PlacementWithLiterals;
1929
+ }
1930
+ interface CardStyles {
1931
+ /**
1932
+ * Card background color as a hexadecimal value.
1933
+ * @format COLOR_HEX
1934
+ */
1935
+ backgroundColor?: string | null;
1936
+ /**
1937
+ * Card border color as a hexadecimal value.
1938
+ * @format COLOR_HEX
1939
+ */
1940
+ borderColor?: string | null;
1941
+ /** Card border width in pixels. */
1942
+ borderWidth?: number | null;
1943
+ /** Card border radius in pixels. */
1944
+ borderRadius?: number | null;
1945
+ /** Card type. Defaults to `CONTAINED`. */
1946
+ type?: TypeWithLiterals;
1947
+ /** Content alignment. Defaults to `START`. */
1948
+ alignment?: AlignmentWithLiterals;
1949
+ /** Layout for title and price. Defaults to `STACKED`. */
1950
+ titlePriceLayout?: LayoutWithLiterals;
1951
+ /**
1952
+ * Title text color as a hexadecimal value.
1953
+ * @format COLOR_HEX
1954
+ */
1955
+ titleColor?: string | null;
1956
+ /**
1957
+ * Text color as a hexadecimal value.
1958
+ * @format COLOR_HEX
1959
+ */
1960
+ textColor?: string | null;
1961
+ }
1962
+ interface PricingData {
1963
+ /**
1964
+ * Minimum numeric price value as string (e.g., "10.99").
1965
+ * @decimalValue options { maxScale:2 }
1966
+ */
1967
+ valueFrom?: string | null;
1968
+ /**
1969
+ * Maximum numeric price value as string (e.g., "19.99").
1970
+ * @decimalValue options { maxScale:2 }
1971
+ */
1972
+ valueTo?: string | null;
1973
+ /**
1974
+ * Numeric price value as string after discount application (e.g., "15.99").
1975
+ * @decimalValue options { maxScale:2 }
1976
+ */
1977
+ discountedValue?: string | null;
1978
+ /**
1979
+ * Currency of the value in ISO 4217 format (e.g., "USD", "EUR").
1980
+ * @format CURRENCY
1981
+ */
1982
+ currency?: string | null;
1983
+ /**
1984
+ * Pricing plan ID.
1985
+ * @format GUID
1986
+ */
1987
+ pricingPlanId?: string | null;
1988
+ }
1989
+ interface VideoData {
1990
+ /** Styling for the video's container. */
1991
+ containerData?: PluginContainerData;
1992
+ /** Video details. */
1993
+ video?: Media;
1994
+ /** Video thumbnail details. */
1995
+ thumbnail?: Media;
1996
+ /** Sets whether the video's download button is disabled. Defaults to `false`. */
1997
+ disableDownload?: boolean | null;
1998
+ /** Video title. */
1999
+ title?: string | null;
2000
+ /** Video options. */
2001
+ options?: PlaybackOptions;
2002
+ }
2003
+ interface PlaybackOptions {
2004
+ /** Sets whether the media will automatically start playing. */
2005
+ autoPlay?: boolean | null;
2006
+ /** Sets whether media's will be looped. */
2007
+ playInLoop?: boolean | null;
2008
+ /** Sets whether media's controls will be shown. */
2009
+ showControls?: boolean | null;
2010
+ }
2011
+ interface EmbedData {
2012
+ /** Styling for the oEmbed node's container. */
2013
+ containerData?: PluginContainerData;
2014
+ /** An [oEmbed](https://www.oembed.com) object. */
2015
+ oembed?: Oembed;
2016
+ /** Origin asset source. */
2017
+ src?: string | null;
2018
+ }
2019
+ interface Oembed {
2020
+ /** The resource type. */
2021
+ type?: string | null;
2022
+ /** The width of the resource specified in the `url` property in pixels. */
2023
+ width?: number | null;
2024
+ /** The height of the resource specified in the `url` property in pixels. */
2025
+ height?: number | null;
2026
+ /** Resource title. */
2027
+ title?: string | null;
2028
+ /** The source URL for the resource. */
2029
+ url?: string | null;
2030
+ /** HTML for embedding a video player. The HTML should have no padding or margins. */
2031
+ html?: string | null;
2032
+ /** The name of the author or owner of the resource. */
2033
+ authorName?: string | null;
2034
+ /** The URL for the author or owner of the resource. */
2035
+ authorUrl?: string | null;
2036
+ /** The name of the resource provider. */
2037
+ providerName?: string | null;
2038
+ /** The URL for the resource provider. */
2039
+ providerUrl?: string | null;
2040
+ /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
2041
+ thumbnailUrl?: string | null;
2042
+ /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
2043
+ thumbnailWidth?: string | null;
2044
+ /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
2045
+ thumbnailHeight?: string | null;
2046
+ /** The URL for an embedded viedo. */
2047
+ videoUrl?: string | null;
2048
+ /** The oEmbed version number. This value must be `1.0`. */
2049
+ version?: string | null;
2050
+ }
2051
+ interface CollapsibleListData {
2052
+ /** Styling for the collapsible list's container. */
2053
+ containerData?: PluginContainerData;
2054
+ /** If `true`, only one item can be expanded at a time. Defaults to `false`. */
2055
+ expandOnlyOne?: boolean | null;
2056
+ /** Sets which items are expanded when the page loads. */
2057
+ initialExpandedItems?: InitialExpandedItemsWithLiterals;
2058
+ /** The direction of the text in the list. Either left-to-right or right-to-left. */
2059
+ direction?: DirectionWithLiterals;
2060
+ /** If `true`, The collapsible item will appear in search results as an FAQ. */
2061
+ isQapageData?: boolean | null;
2062
+ }
2063
+ declare enum InitialExpandedItems {
2064
+ /** First item will be expended initally */
2065
+ FIRST = "FIRST",
2066
+ /** All items will expended initally */
2067
+ ALL = "ALL",
2068
+ /** All items collapsed initally */
2069
+ NONE = "NONE"
2070
+ }
2071
+ /** @enumType */
2072
+ type InitialExpandedItemsWithLiterals = InitialExpandedItems | 'FIRST' | 'ALL' | 'NONE';
2073
+ declare enum Direction {
2074
+ /** Left-to-right */
2075
+ LTR = "LTR",
2076
+ /** Right-to-left */
2077
+ RTL = "RTL"
2078
+ }
2079
+ /** @enumType */
2080
+ type DirectionWithLiterals = Direction | 'LTR' | 'RTL';
2081
+ interface TableData {
2082
+ /** Styling for the table's container. */
2083
+ containerData?: PluginContainerData;
2084
+ /** The table's dimensions. */
2085
+ dimensions?: Dimensions;
2086
+ /**
2087
+ * Deprecated: Use `rowHeader` and `columnHeader` instead.
2088
+ * @deprecated
2089
+ */
2090
+ header?: boolean | null;
2091
+ /** Sets whether the table's first row is a header. Defaults to `false`. */
2092
+ rowHeader?: boolean | null;
2093
+ /** Sets whether the table's first column is a header. Defaults to `false`. */
2094
+ columnHeader?: boolean | null;
2095
+ }
2096
+ interface Dimensions {
2097
+ /** An array representing relative width of each column in relation to the other columns. */
2098
+ colsWidthRatio?: number[];
2099
+ /** An array representing the height of each row in pixels. */
2100
+ rowsHeight?: number[];
2101
+ /** An array representing the minimum width of each column in pixels. */
2102
+ colsMinWidth?: number[];
2103
+ }
2104
+ interface TableCellData {
2105
+ /** Styling for the cell's background color and text alignment. */
2106
+ cellStyle?: CellStyle;
2107
+ /** The cell's border colors. */
2108
+ borderColors?: BorderColors;
2109
+ }
2110
+ declare enum VerticalAlignment {
2111
+ /** Top alignment */
2112
+ TOP = "TOP",
2113
+ /** Middle alignment */
2114
+ MIDDLE = "MIDDLE",
2115
+ /** Bottom alignment */
2116
+ BOTTOM = "BOTTOM"
2117
+ }
2118
+ /** @enumType */
2119
+ type VerticalAlignmentWithLiterals = VerticalAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
2120
+ interface CellStyle {
2121
+ /** Vertical alignment for the cell's text. */
2122
+ verticalAlignment?: VerticalAlignmentWithLiterals;
2123
+ /**
2124
+ * Cell background color as a hexadecimal value.
2125
+ * @format COLOR_HEX
2126
+ */
2127
+ backgroundColor?: string | null;
2128
+ }
2129
+ interface BorderColors {
2130
+ /**
2131
+ * Left border color as a hexadecimal value.
2132
+ * @format COLOR_HEX
2133
+ */
2134
+ left?: string | null;
2135
+ /**
2136
+ * Right border color as a hexadecimal value.
2137
+ * @format COLOR_HEX
2138
+ */
2139
+ right?: string | null;
2140
+ /**
2141
+ * Top border color as a hexadecimal value.
2142
+ * @format COLOR_HEX
2143
+ */
2144
+ top?: string | null;
2145
+ /**
2146
+ * Bottom border color as a hexadecimal value.
2147
+ * @format COLOR_HEX
2148
+ */
2149
+ bottom?: string | null;
2150
+ }
2151
+ interface AudioData {
2152
+ /** Styling for the audio node's container. */
2153
+ containerData?: PluginContainerData;
2154
+ /** Audio file details. */
2155
+ audio?: Media;
2156
+ /** Sets whether the audio node's download button is disabled. Defaults to `false`. */
2157
+ disableDownload?: boolean | null;
2158
+ /** Cover image. */
2159
+ coverImage?: Media;
2160
+ /** Track name. */
2161
+ name?: string | null;
2162
+ /** Author name. */
2163
+ authorName?: string | null;
2164
+ /** An HTML version of the audio node. */
2165
+ html?: string | null;
2166
+ }
2167
+ interface OrderedListData {
2168
+ /** Indentation level from 0-4. */
2169
+ indentation?: number;
2170
+ /** Offset level from 0-4. */
2171
+ offset?: number | null;
2172
+ /** List start number. */
2173
+ start?: number | null;
2174
+ }
2175
+ interface BulletedListData {
2176
+ /** Indentation level from 0-4. */
2177
+ indentation?: number;
2178
+ /** Offset level from 0-4. */
2179
+ offset?: number | null;
2180
+ }
2181
+ interface BlockquoteData {
2182
+ /** Indentation level from 1-4. */
2183
+ indentation?: number;
2184
+ }
2185
+ interface CaptionData {
2186
+ textStyle?: V1TextStyle;
2187
+ }
2188
+ interface LayoutCellData {
2189
+ /** Size of the cell in 12 columns grid. */
2190
+ colSpan?: number | null;
2191
+ }
2192
+ interface Metadata {
2193
+ /** Schema version. */
2194
+ version?: number;
2195
+ /**
2196
+ * When the object was created.
2197
+ * @readonly
2198
+ * @deprecated
2199
+ */
2200
+ createdTimestamp?: Date | null;
2201
+ /**
2202
+ * When the object was most recently updated.
2203
+ * @deprecated
2204
+ */
2205
+ updatedTimestamp?: Date | null;
2206
+ /** Object ID. */
2207
+ id?: string | null;
2208
+ }
2209
+ interface DocumentStyle {
2210
+ /** Styling for H1 nodes. */
2211
+ headerOne?: TextNodeStyle;
2212
+ /** Styling for H2 nodes. */
2213
+ headerTwo?: TextNodeStyle;
2214
+ /** Styling for H3 nodes. */
2215
+ headerThree?: TextNodeStyle;
2216
+ /** Styling for H4 nodes. */
2217
+ headerFour?: TextNodeStyle;
2218
+ /** Styling for H5 nodes. */
2219
+ headerFive?: TextNodeStyle;
2220
+ /** Styling for H6 nodes. */
2221
+ headerSix?: TextNodeStyle;
2222
+ /** Styling for paragraph nodes. */
2223
+ paragraph?: TextNodeStyle;
2224
+ /** Styling for block quote nodes. */
2225
+ blockquote?: TextNodeStyle;
2226
+ /** Styling for code block nodes. */
2227
+ codeBlock?: TextNodeStyle;
2228
+ }
2229
+ interface TextNodeStyle {
2230
+ /** The decorations to apply to the node. */
2231
+ decorations?: Decoration[];
2232
+ /** Padding and background color for the node. */
2233
+ nodeStyle?: NodeStyle;
2234
+ /** Line height for text in the node. */
2235
+ lineHeight?: string | null;
2236
+ }
2237
+ interface GetContentRequest {
2238
+ /**
2239
+ * ID of the Content to retrieve.
2240
+ * @format GUID
2241
+ */
2242
+ contentId: string;
2243
+ }
2244
+ interface GetContentResponse {
2245
+ /** The requested Content. */
2246
+ content?: Content;
2247
+ }
2248
+ interface SubmitContentRequest {
2249
+ /**
2250
+ * The ID of the Content which is being submitted
2251
+ * @format GUID
2252
+ */
2253
+ contentId: string;
2254
+ /** The revision of the content */
2255
+ revision: string | null;
2256
+ /** The Design settings to submit */
2257
+ design: Design;
2258
+ /** The RichContent to submit */
2259
+ richContent: RichContent;
2260
+ /** Create new content instead of updating existing one, even when it is viable */
2261
+ forceCreate?: boolean | null;
2262
+ }
2263
+ interface SubmitContentResponse {
2264
+ /** The updated Content. */
2265
+ content?: Content;
2266
+ }
2267
+ interface GetLatestContentByPageIdRequest {
2268
+ /**
2269
+ * ID of the QuickPage page to retrieve the latest Content for.
2270
+ * @format GUID
2271
+ */
2272
+ pageId: string;
2273
+ }
2274
+ interface GetLatestContentByPageIdResponse {
2275
+ /** The requested Content. */
2276
+ content?: Content;
2277
+ }
2278
+ interface LockLatestContentByPageIdRequest {
2279
+ /**
2280
+ * ID of the QuickPage page to lock the latest Content for.
2281
+ * @format GUID
2282
+ */
2283
+ pageId: string;
2284
+ }
2285
+ interface LockLatestContentByPageIdResponse {
2286
+ /** The locked Content. */
2287
+ content?: Content;
2288
+ }
2289
+ interface QueryContentsRequest {
2290
+ /** WQL expression. */
2291
+ query?: CursorQuery;
2292
+ }
2293
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
2294
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2295
+ cursorPaging?: CursorPaging;
2296
+ /**
2297
+ * Filter object in the following format:
2298
+ * `"filter" : {
2299
+ * "fieldName1": "value1",
2300
+ * "fieldName2":{"$operator":"value2"}
2301
+ * }`
2302
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2303
+ */
2304
+ filter?: Record<string, any> | null;
2305
+ /**
2306
+ * Sort object in the following format:
2307
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2308
+ * @maxSize 5
2309
+ */
2310
+ sort?: Sorting[];
2311
+ }
2312
+ /** @oneof */
2313
+ interface CursorQueryPagingMethodOneOf {
2314
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2315
+ cursorPaging?: CursorPaging;
2316
+ }
2317
+ interface Sorting {
2318
+ /**
2319
+ * Name of the field to sort by.
2320
+ * @maxLength 512
2321
+ */
2322
+ fieldName?: string;
2323
+ /** Sort order. */
2324
+ order?: SortOrderWithLiterals;
2325
+ }
2326
+ declare enum SortOrder {
2327
+ ASC = "ASC",
2328
+ DESC = "DESC"
2329
+ }
2330
+ /** @enumType */
2331
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
2332
+ interface CursorPaging {
2333
+ /**
2334
+ * Maximum number of items to return in the results.
2335
+ * @max 100
2336
+ */
2337
+ limit?: number | null;
2338
+ /**
2339
+ * Pointer to the next or previous page in the list of results.
2340
+ *
2341
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2342
+ * Not relevant for the first request.
2343
+ * @maxLength 16000
2344
+ */
2345
+ cursor?: string | null;
2346
+ }
2347
+ interface QueryContentsResponse {
2348
+ /** List of Contents. */
2349
+ contents?: Content[];
2350
+ /** Paging metadata */
2351
+ pagingMetadata?: CursorPagingMetadata;
2352
+ }
2353
+ interface CursorPagingMetadata {
2354
+ /** Number of items returned in the response. */
2355
+ count?: number | null;
2356
+ /** Cursor strings that point to the next page, previous page, or both. */
2357
+ cursors?: Cursors;
2358
+ /**
2359
+ * Whether there are more pages to retrieve following the current page.
2360
+ *
2361
+ * + `true`: Another page of results can be retrieved.
2362
+ * + `false`: This is the last page.
2363
+ */
2364
+ hasNext?: boolean | null;
2365
+ }
2366
+ interface Cursors {
2367
+ /**
2368
+ * Cursor string pointing to the next page in the list of results.
2369
+ * @maxLength 16000
2370
+ */
2371
+ next?: string | null;
2372
+ /**
2373
+ * Cursor pointing to the previous page in the list of results.
2374
+ * @maxLength 16000
2375
+ */
2376
+ prev?: string | null;
2377
+ }
2378
+
2379
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2380
+ getUrl: (context: any) => string;
2381
+ httpMethod: K;
2382
+ path: string;
2383
+ pathParams: M;
2384
+ __requestType: T;
2385
+ __originalRequestType: S;
2386
+ __responseType: Q;
2387
+ __originalResponseType: R;
2388
+ };
2389
+ declare function getContent(): __PublicMethodMetaInfo<'GET', {
2390
+ contentId: string;
2391
+ }, GetContentRequest$1, GetContentRequest, GetContentResponse$1, GetContentResponse>;
2392
+ declare function submitContent(): __PublicMethodMetaInfo<'POST', {}, SubmitContentRequest$1, SubmitContentRequest, SubmitContentResponse$1, SubmitContentResponse>;
2393
+ declare function getLatestContentByPageId(): __PublicMethodMetaInfo<'GET', {
2394
+ pageId: string;
2395
+ }, GetLatestContentByPageIdRequest$1, GetLatestContentByPageIdRequest, GetLatestContentByPageIdResponse$1, GetLatestContentByPageIdResponse>;
2396
+ declare function lockLatestContentByPageId(): __PublicMethodMetaInfo<'PATCH', {
2397
+ pageId: string;
2398
+ }, LockLatestContentByPageIdRequest$1, LockLatestContentByPageIdRequest, LockLatestContentByPageIdResponse$1, LockLatestContentByPageIdResponse>;
2399
+ declare function queryContents(): __PublicMethodMetaInfo<'GET', {}, QueryContentsRequest$1, QueryContentsRequest, QueryContentsResponse$1, QueryContentsResponse>;
2400
+
2401
+ export { type __PublicMethodMetaInfo, getContent, getLatestContentByPageId, lockLatestContentByPageId, queryContents, submitContent };