@wix/auto_sdk_blog_posts 1.0.21 → 1.0.22

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 (134) 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/blog-v3-post-posts.context.d.ts +37 -0
  11. package/build/cjs/src/blog-v3-post-posts.context.js +82 -0
  12. package/build/cjs/src/blog-v3-post-posts.context.js.map +1 -0
  13. package/build/cjs/src/blog-v3-post-posts.http.d.ts +61 -0
  14. package/build/cjs/src/blog-v3-post-posts.http.js +894 -0
  15. package/build/cjs/src/blog-v3-post-posts.http.js.map +1 -0
  16. package/build/cjs/src/blog-v3-post-posts.meta.d.ts +25 -0
  17. package/build/cjs/src/blog-v3-post-posts.meta.js +161 -0
  18. package/build/cjs/src/blog-v3-post-posts.meta.js.map +1 -0
  19. package/build/cjs/src/blog-v3-post-posts.public.d.ts +106 -0
  20. package/build/cjs/src/blog-v3-post-posts.public.js +320 -0
  21. package/build/cjs/src/blog-v3-post-posts.public.js.map +1 -0
  22. package/build/cjs/src/blog-v3-post-posts.types.d.ts +3231 -0
  23. package/build/cjs/src/blog-v3-post-posts.types.js +485 -0
  24. package/build/cjs/src/blog-v3-post-posts.types.js.map +1 -0
  25. package/build/{blog-v3-post-posts.universal-CEsWp0Fx.d.mts → cjs/src/blog-v3-post-posts.universal.d.ts} +494 -256
  26. package/build/cjs/src/blog-v3-post-posts.universal.js +962 -0
  27. package/build/cjs/src/blog-v3-post-posts.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/blog-v3-post-posts.context.d.ts +37 -0
  39. package/build/es/src/blog-v3-post-posts.context.js +37 -0
  40. package/build/es/src/blog-v3-post-posts.context.js.map +1 -0
  41. package/build/es/src/blog-v3-post-posts.http.d.ts +61 -0
  42. package/build/es/src/blog-v3-post-posts.http.js +884 -0
  43. package/build/es/src/blog-v3-post-posts.http.js.map +1 -0
  44. package/build/es/src/blog-v3-post-posts.meta.d.ts +25 -0
  45. package/build/es/src/blog-v3-post-posts.meta.js +128 -0
  46. package/build/es/src/blog-v3-post-posts.meta.js.map +1 -0
  47. package/build/es/src/blog-v3-post-posts.public.d.ts +106 -0
  48. package/build/es/src/blog-v3-post-posts.public.js +268 -0
  49. package/build/es/src/blog-v3-post-posts.public.js.map +1 -0
  50. package/build/es/src/blog-v3-post-posts.types.d.ts +3231 -0
  51. package/build/es/src/blog-v3-post-posts.types.js +482 -0
  52. package/build/es/src/blog-v3-post-posts.types.js.map +1 -0
  53. package/build/{blog-v3-post-posts.universal-CEsWp0Fx.d.ts → es/src/blog-v3-post-posts.universal.d.ts} +494 -256
  54. package/build/es/src/blog-v3-post-posts.universal.js +929 -0
  55. package/build/es/src/blog-v3-post-posts.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/blog-v3-post-posts.context.d.ts +37 -0
  66. package/build/internal/cjs/src/blog-v3-post-posts.context.js +82 -0
  67. package/build/internal/cjs/src/blog-v3-post-posts.context.js.map +1 -0
  68. package/build/internal/cjs/src/blog-v3-post-posts.http.d.ts +61 -0
  69. package/build/internal/cjs/src/blog-v3-post-posts.http.js +894 -0
  70. package/build/internal/cjs/src/blog-v3-post-posts.http.js.map +1 -0
  71. package/build/internal/cjs/src/blog-v3-post-posts.meta.d.ts +25 -0
  72. package/build/internal/cjs/src/blog-v3-post-posts.meta.js +161 -0
  73. package/build/internal/cjs/src/blog-v3-post-posts.meta.js.map +1 -0
  74. package/build/internal/cjs/src/blog-v3-post-posts.public.d.ts +106 -0
  75. package/build/internal/cjs/src/blog-v3-post-posts.public.js +320 -0
  76. package/build/internal/cjs/src/blog-v3-post-posts.public.js.map +1 -0
  77. package/build/internal/cjs/src/blog-v3-post-posts.types.d.ts +3231 -0
  78. package/build/internal/cjs/src/blog-v3-post-posts.types.js +485 -0
  79. package/build/internal/cjs/src/blog-v3-post-posts.types.js.map +1 -0
  80. package/build/internal/{blog-v3-post-posts.universal-nU7XoyIE.d.ts → cjs/src/blog-v3-post-posts.universal.d.ts} +494 -256
  81. package/build/internal/cjs/src/blog-v3-post-posts.universal.js +962 -0
  82. package/build/internal/cjs/src/blog-v3-post-posts.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/blog-v3-post-posts.context.d.ts +37 -0
  93. package/build/internal/es/src/blog-v3-post-posts.context.js +37 -0
  94. package/build/internal/es/src/blog-v3-post-posts.context.js.map +1 -0
  95. package/build/internal/es/src/blog-v3-post-posts.http.d.ts +61 -0
  96. package/build/internal/es/src/blog-v3-post-posts.http.js +884 -0
  97. package/build/internal/es/src/blog-v3-post-posts.http.js.map +1 -0
  98. package/build/internal/es/src/blog-v3-post-posts.meta.d.ts +25 -0
  99. package/build/internal/es/src/blog-v3-post-posts.meta.js +128 -0
  100. package/build/internal/es/src/blog-v3-post-posts.meta.js.map +1 -0
  101. package/build/internal/es/src/blog-v3-post-posts.public.d.ts +106 -0
  102. package/build/internal/es/src/blog-v3-post-posts.public.js +268 -0
  103. package/build/internal/es/src/blog-v3-post-posts.public.js.map +1 -0
  104. package/build/internal/es/src/blog-v3-post-posts.types.d.ts +3231 -0
  105. package/build/internal/es/src/blog-v3-post-posts.types.js +482 -0
  106. package/build/internal/es/src/blog-v3-post-posts.types.js.map +1 -0
  107. package/build/internal/{blog-v3-post-posts.universal-nU7XoyIE.d.mts → es/src/blog-v3-post-posts.universal.d.ts} +494 -256
  108. package/build/internal/es/src/blog-v3-post-posts.universal.js +929 -0
  109. package/build/internal/es/src/blog-v3-post-posts.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -130
  112. package/build/index.d.ts +0 -130
  113. package/build/index.js +0 -1975
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -1899
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -130
  118. package/build/internal/index.d.ts +0 -130
  119. package/build/internal/index.js +0 -1975
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -1899
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -2094
  124. package/build/internal/meta.d.ts +0 -2094
  125. package/build/internal/meta.js +0 -1002
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -969
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -2094
  130. package/build/meta.d.ts +0 -2094
  131. package/build/meta.js +0 -1002
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -969
  134. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,3231 @@
1
+ export interface Post {
2
+ /**
3
+ * Post ID.
4
+ * @readonly
5
+ * @format GUID
6
+ */
7
+ id?: string;
8
+ /**
9
+ * Post title.
10
+ * @maxLength 100
11
+ */
12
+ title?: string;
13
+ /**
14
+ * Post excerpt.
15
+ * Can be selected by a site contributor. By default, it is extracted from the content text's first characters.
16
+ *
17
+ * Max: 500 characters
18
+ * @maxLength 500
19
+ */
20
+ excerpt?: string;
21
+ /**
22
+ * The post's content in plain text.
23
+ * @readonly
24
+ * @maxLength 400000
25
+ */
26
+ contentText?: string | null;
27
+ /** Date the post was first published. */
28
+ firstPublishedDate?: Date | null;
29
+ /**
30
+ * Date the post was last published.
31
+ * @readonly
32
+ */
33
+ lastPublishedDate?: Date | null;
34
+ /** Post URL. */
35
+ url?: PageUrl;
36
+ /**
37
+ * Post slug. For example, `'post-slug'`.
38
+ * @maxLength 100
39
+ */
40
+ slug?: string;
41
+ /** Whether the post is marked as featured. */
42
+ featured?: boolean;
43
+ /** Whether the post is pinned. If `true`, the post is placed at the top of the post list. */
44
+ pinned?: boolean;
45
+ /**
46
+ * [Category IDs](https://dev.wix.com/docs/rest/business-solutions/blog/category/introduction) of the post.
47
+ * @maxSize 10
48
+ * @format GUID
49
+ */
50
+ categoryIds?: string[];
51
+ /**
52
+ * __Deprecated.__ Use `media` instead.
53
+ * This property will be removed on June 30, 2023.
54
+ *
55
+ * Post cover media.
56
+ * @deprecated
57
+ * @replacedBy media
58
+ * @targetRemovalDate 2024-06-30
59
+ */
60
+ coverMedia?: CoverMedia;
61
+ /**
62
+ * Post owner's [member ID](https://dev.wix.com/api/rest/members).
63
+ * @format GUID
64
+ */
65
+ memberId?: string;
66
+ /**
67
+ * Hashtags in the post.
68
+ * @readonly
69
+ * @maxSize 100
70
+ * @maxLength 100
71
+ */
72
+ hashtags?: string[];
73
+ /** Whether commenting on the post is enabled. */
74
+ commentingEnabled?: boolean;
75
+ /** Estimated reading time (calculated automatically). */
76
+ minutesToRead?: number;
77
+ /** Image placed at the top of the blog page. */
78
+ heroImage?: Image;
79
+ /**
80
+ * IDs of [tags](https://dev.wix.com/docs/rest/business-solutions/blog/tags) the post is tagged with.
81
+ * @readonly
82
+ * @maxSize 30
83
+ * @format GUID
84
+ */
85
+ tagIds?: string[];
86
+ /**
87
+ * IDs of posts related to the post.
88
+ * @readonly
89
+ * @maxSize 3
90
+ * @format GUID
91
+ */
92
+ relatedPostIds?: string[];
93
+ /**
94
+ * [Pricing plan IDs](https://dev.wix.com/api/rest/wix-pricing-plans). Only relevant if a post is assigned to a specific pricing plan.
95
+ * @readonly
96
+ * @maxSize 100
97
+ * @format GUID
98
+ */
99
+ pricingPlanIds?: string[];
100
+ /**
101
+ * ID of the translations of this post. All translations of a single post share the same `translationId`.
102
+ * @format GUID
103
+ */
104
+ translationId?: string | null;
105
+ /**
106
+ * Language the post is written in.
107
+ *
108
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
109
+ * @format LANGUAGE_TAG
110
+ */
111
+ language?: string | null;
112
+ /** SEO data. */
113
+ seoData?: SeoSchema;
114
+ /**
115
+ * Reserved for internal use.
116
+ * @readonly
117
+ * @maxLength 400000
118
+ */
119
+ content?: string | null;
120
+ /**
121
+ * Post owner's [contact ID](https://dev.wix.com/api/rest/contacts).
122
+ * @format GUID
123
+ */
124
+ contactId?: string | null;
125
+ /**
126
+ * Post rich content
127
+ *
128
+ * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.gallery.video.audio.divider.linkButton.html.giphy.codeBlock.file.hashtag.lineSpacing.indent.link.textColor.textHighlight.heading.verticalEmbed.table.collapsibleList.poll" exampleid="72c23a25-524f-4f70-a260-4a2777b6f5d5">
129
+ * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
130
+ * </widget>
131
+ * @readonly
132
+ */
133
+ richContent?: RichContent;
134
+ /**
135
+ * Whether the returned content is a preview of premium content. Defaults to `false`.
136
+ * A preview displays a limited number of paragraphs of paid content to non-subscribed users.
137
+ * @readonly
138
+ */
139
+ preview?: boolean;
140
+ /**
141
+ * Reserved for internal use.
142
+ * @maxLength 24
143
+ */
144
+ contentId?: string | null;
145
+ /**
146
+ * Reserved for internal use.
147
+ * @readonly
148
+ * @format GUID
149
+ */
150
+ mostRecentContributorId?: string | null;
151
+ /**
152
+ * Post moderation details. Only relevant to posts submitted by [guest writers](https://support.wix.com/en/article/wix-blog-moderating-blog-posts-from-your-guest-writers).
153
+ * @readonly
154
+ */
155
+ moderationDetails?: ModerationDetails;
156
+ /** Post cover media. */
157
+ media?: Media;
158
+ /**
159
+ * Indicates if there is a draft post with changes that have not yet been published.
160
+ * @readonly
161
+ */
162
+ hasUnpublishedChanges?: boolean;
163
+ /**
164
+ * Post reference ID. You can reference the post from other entities, for example, comments.
165
+ * @readonly
166
+ * @maxLength 24
167
+ */
168
+ referenceId?: string | null;
169
+ }
170
+ export interface PageUrl {
171
+ /** The base URL. For premium sites, this is the domain. For free sites, this is the site URL. For example, `mysite.wixsite.com/mysite`. */
172
+ base?: string;
173
+ /** The relative path for the page within the site. For example, `/product-page/a-product`. */
174
+ path?: string;
175
+ }
176
+ export interface CoverMedia extends CoverMediaMediaOneOf {
177
+ /** Image url. */
178
+ image?: Image;
179
+ /** Video url. */
180
+ video?: Video;
181
+ /**
182
+ * Is cover media enabled.
183
+ * Selected by user whether to display cover media on the feed
184
+ * @deprecated Is cover media enabled.
185
+ * Selected by user whether to display cover media on the feed
186
+ * @replacedBy displayed
187
+ * @targetRemovalDate 2024-06-30
188
+ */
189
+ enabled?: boolean;
190
+ /** Whether cover media is displayed. */
191
+ displayed?: boolean;
192
+ /** Whether cover media is custom. If `false` the cover image is set to the first media item that appears in the content. */
193
+ custom?: boolean;
194
+ /**
195
+ * Media alternative text.
196
+ * @minLength 1
197
+ * @maxLength 1000
198
+ */
199
+ altText?: string | null;
200
+ }
201
+ /** @oneof */
202
+ export interface CoverMediaMediaOneOf {
203
+ /** Image url. */
204
+ image?: Image;
205
+ /** Video url. */
206
+ video?: Video;
207
+ }
208
+ export interface Image {
209
+ /** WixMedia image ID. */
210
+ id?: string;
211
+ /** Image URL. */
212
+ url?: string;
213
+ /**
214
+ * Original image height.
215
+ * @readonly
216
+ */
217
+ height?: number;
218
+ /**
219
+ * Original image width.
220
+ * @readonly
221
+ */
222
+ width?: number;
223
+ /** Image alt text. */
224
+ altText?: string | null;
225
+ /**
226
+ * Image filename.
227
+ * @readonly
228
+ */
229
+ filename?: string | null;
230
+ }
231
+ export interface FocalPoint {
232
+ /** X-coordinate of the focal point. */
233
+ x?: number;
234
+ /** Y-coordinate of the focal point. */
235
+ y?: number;
236
+ /** crop by height */
237
+ height?: number | null;
238
+ /** crop by width */
239
+ width?: number | null;
240
+ }
241
+ /** Deprecated - use VideoV2 */
242
+ export interface Video {
243
+ /** WixMedia ID */
244
+ id?: string;
245
+ /** URL of video */
246
+ url?: string;
247
+ /**
248
+ * Original image height
249
+ * @readonly
250
+ */
251
+ height?: number;
252
+ /**
253
+ * Original image width
254
+ * @readonly
255
+ */
256
+ width?: number;
257
+ /** Video poster */
258
+ thumbnail?: Image;
259
+ }
260
+ export interface PostCountInfo {
261
+ /**
262
+ * Total number of post comments
263
+ * @readonly
264
+ */
265
+ comments?: number;
266
+ /**
267
+ * Total number of post likes
268
+ * @readonly
269
+ */
270
+ likes?: number;
271
+ /**
272
+ * Total number of post views
273
+ * @readonly
274
+ */
275
+ views?: number;
276
+ }
277
+ export interface Metrics {
278
+ /**
279
+ * Total number of post comments.
280
+ * @readonly
281
+ */
282
+ comments?: number;
283
+ /**
284
+ * Total number of post likes.
285
+ * @readonly
286
+ */
287
+ likes?: number;
288
+ /**
289
+ * Total number of post views.
290
+ * @readonly
291
+ */
292
+ views?: number;
293
+ }
294
+ /**
295
+ * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
296
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
297
+ * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
298
+ */
299
+ export interface SeoSchema {
300
+ /** SEO tag information. */
301
+ tags?: Tag[];
302
+ /** SEO general settings. */
303
+ settings?: Settings;
304
+ }
305
+ export interface Keyword {
306
+ /** Keyword value. */
307
+ term?: string;
308
+ /** Whether the keyword is the main focus keyword. */
309
+ isMain?: boolean;
310
+ /**
311
+ * The source that added the keyword terms to the SEO settings.
312
+ * @maxLength 1000
313
+ */
314
+ origin?: string | null;
315
+ }
316
+ export interface Tag {
317
+ /**
318
+ * SEO tag type.
319
+ *
320
+ *
321
+ * Supported values: `title`, `meta`, `script`, `link`.
322
+ */
323
+ type?: string;
324
+ /**
325
+ * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
326
+ * For example: `{"name": "description", "content": "the description itself"}`.
327
+ */
328
+ props?: Record<string, any> | null;
329
+ /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
330
+ meta?: Record<string, any> | null;
331
+ /** SEO tag inner content. For example, `<title> inner content </title>`. */
332
+ children?: string;
333
+ /** Whether the tag is a custom tag. */
334
+ custom?: boolean;
335
+ /** Whether the tag is disabled. */
336
+ disabled?: boolean;
337
+ }
338
+ export interface Settings {
339
+ /**
340
+ * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
341
+ *
342
+ *
343
+ * Default: `false` (Auto Redirect is enabled.)
344
+ */
345
+ preventAutoRedirect?: boolean;
346
+ /**
347
+ * User-selected keyword terms for a specific page.
348
+ * @maxSize 5
349
+ */
350
+ keywords?: Keyword[];
351
+ }
352
+ export interface RichContent {
353
+ /** Node objects representing a rich content document. */
354
+ nodes?: Node[];
355
+ /** Object metadata. */
356
+ metadata?: Metadata;
357
+ /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
358
+ documentStyle?: DocumentStyle;
359
+ }
360
+ export interface Node extends NodeDataOneOf {
361
+ /** Data for a button node. */
362
+ buttonData?: ButtonData;
363
+ /** Data for a code block node. */
364
+ codeBlockData?: CodeBlockData;
365
+ /** Data for a divider node. */
366
+ dividerData?: DividerData;
367
+ /** Data for a file node. */
368
+ fileData?: FileData;
369
+ /** Data for a gallery node. */
370
+ galleryData?: GalleryData;
371
+ /** Data for a GIF node. */
372
+ gifData?: GIFData;
373
+ /** Data for a heading node. */
374
+ headingData?: HeadingData;
375
+ /** Data for an embedded HTML node. */
376
+ htmlData?: HTMLData;
377
+ /** Data for an image node. */
378
+ imageData?: ImageData;
379
+ /** Data for a link preview node. */
380
+ linkPreviewData?: LinkPreviewData;
381
+ /** @deprecated */
382
+ mapData?: MapData;
383
+ /** Data for a paragraph node. */
384
+ paragraphData?: ParagraphData;
385
+ /** Data for a poll node. */
386
+ pollData?: PollData;
387
+ /** Data for a text node. Used to apply decorations to text. */
388
+ textData?: TextData;
389
+ /** Data for an app embed node. */
390
+ appEmbedData?: AppEmbedData;
391
+ /** Data for a video node. */
392
+ videoData?: VideoData;
393
+ /** Data for an oEmbed node. */
394
+ embedData?: EmbedData;
395
+ /** Data for a collapsible list node. */
396
+ collapsibleListData?: CollapsibleListData;
397
+ /** Data for a table node. */
398
+ tableData?: TableData;
399
+ /** Data for a table cell node. */
400
+ tableCellData?: TableCellData;
401
+ /** Data for a custom external node. */
402
+ externalData?: Record<string, any> | null;
403
+ /** Data for an audio node. */
404
+ audioData?: AudioData;
405
+ /** Data for an ordered list node. */
406
+ orderedListData?: OrderedListData;
407
+ /** Data for a bulleted list node. */
408
+ bulletedListData?: BulletedListData;
409
+ /** Data for a block quote node. */
410
+ blockquoteData?: BlockquoteData;
411
+ /** Data for a caption node. */
412
+ captionData?: CaptionData;
413
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
414
+ layoutCellData?: LayoutCellData;
415
+ /** 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. */
416
+ type?: NodeType;
417
+ /** Node ID. */
418
+ id?: string;
419
+ /** A list of child nodes. */
420
+ nodes?: Node[];
421
+ /** Padding and background color styling for the node. */
422
+ style?: NodeStyle;
423
+ }
424
+ /** @oneof */
425
+ export interface NodeDataOneOf {
426
+ /** Data for a button node. */
427
+ buttonData?: ButtonData;
428
+ /** Data for a code block node. */
429
+ codeBlockData?: CodeBlockData;
430
+ /** Data for a divider node. */
431
+ dividerData?: DividerData;
432
+ /** Data for a file node. */
433
+ fileData?: FileData;
434
+ /** Data for a gallery node. */
435
+ galleryData?: GalleryData;
436
+ /** Data for a GIF node. */
437
+ gifData?: GIFData;
438
+ /** Data for a heading node. */
439
+ headingData?: HeadingData;
440
+ /** Data for an embedded HTML node. */
441
+ htmlData?: HTMLData;
442
+ /** Data for an image node. */
443
+ imageData?: ImageData;
444
+ /** Data for a link preview node. */
445
+ linkPreviewData?: LinkPreviewData;
446
+ /** @deprecated */
447
+ mapData?: MapData;
448
+ /** Data for a paragraph node. */
449
+ paragraphData?: ParagraphData;
450
+ /** Data for a poll node. */
451
+ pollData?: PollData;
452
+ /** Data for a text node. Used to apply decorations to text. */
453
+ textData?: TextData;
454
+ /** Data for an app embed node. */
455
+ appEmbedData?: AppEmbedData;
456
+ /** Data for a video node. */
457
+ videoData?: VideoData;
458
+ /** Data for an oEmbed node. */
459
+ embedData?: EmbedData;
460
+ /** Data for a collapsible list node. */
461
+ collapsibleListData?: CollapsibleListData;
462
+ /** Data for a table node. */
463
+ tableData?: TableData;
464
+ /** Data for a table cell node. */
465
+ tableCellData?: TableCellData;
466
+ /** Data for a custom external node. */
467
+ externalData?: Record<string, any> | null;
468
+ /** Data for an audio node. */
469
+ audioData?: AudioData;
470
+ /** Data for an ordered list node. */
471
+ orderedListData?: OrderedListData;
472
+ /** Data for a bulleted list node. */
473
+ bulletedListData?: BulletedListData;
474
+ /** Data for a block quote node. */
475
+ blockquoteData?: BlockquoteData;
476
+ /** Data for a caption node. */
477
+ captionData?: CaptionData;
478
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
479
+ layoutCellData?: LayoutCellData;
480
+ }
481
+ export declare enum NodeType {
482
+ PARAGRAPH = "PARAGRAPH",
483
+ TEXT = "TEXT",
484
+ HEADING = "HEADING",
485
+ BULLETED_LIST = "BULLETED_LIST",
486
+ ORDERED_LIST = "ORDERED_LIST",
487
+ LIST_ITEM = "LIST_ITEM",
488
+ BLOCKQUOTE = "BLOCKQUOTE",
489
+ CODE_BLOCK = "CODE_BLOCK",
490
+ VIDEO = "VIDEO",
491
+ DIVIDER = "DIVIDER",
492
+ FILE = "FILE",
493
+ GALLERY = "GALLERY",
494
+ GIF = "GIF",
495
+ HTML = "HTML",
496
+ IMAGE = "IMAGE",
497
+ LINK_PREVIEW = "LINK_PREVIEW",
498
+ /** @deprecated */
499
+ MAP = "MAP",
500
+ POLL = "POLL",
501
+ APP_EMBED = "APP_EMBED",
502
+ BUTTON = "BUTTON",
503
+ COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
504
+ TABLE = "TABLE",
505
+ EMBED = "EMBED",
506
+ COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
507
+ COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
508
+ COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
509
+ TABLE_CELL = "TABLE_CELL",
510
+ TABLE_ROW = "TABLE_ROW",
511
+ EXTERNAL = "EXTERNAL",
512
+ AUDIO = "AUDIO",
513
+ CAPTION = "CAPTION",
514
+ LAYOUT = "LAYOUT",
515
+ LAYOUT_CELL = "LAYOUT_CELL"
516
+ }
517
+ export interface NodeStyle {
518
+ /** The top padding value in pixels. */
519
+ paddingTop?: string | null;
520
+ /** The bottom padding value in pixels. */
521
+ paddingBottom?: string | null;
522
+ /** The background color as a hexadecimal value. */
523
+ backgroundColor?: string | null;
524
+ }
525
+ export interface ButtonData {
526
+ /** Styling for the button's container. */
527
+ containerData?: PluginContainerData;
528
+ /** The button type. */
529
+ type?: Type;
530
+ /** Styling for the button. */
531
+ styles?: Styles;
532
+ /** The text to display on the button. */
533
+ text?: string | null;
534
+ /** Button link details. */
535
+ link?: Link;
536
+ }
537
+ export interface Border {
538
+ /** Border width in pixels. */
539
+ width?: number | null;
540
+ /** Border radius in pixels. */
541
+ radius?: number | null;
542
+ }
543
+ export interface Colors {
544
+ /** The text color as a hexadecimal value. */
545
+ text?: string | null;
546
+ /** The border color as a hexadecimal value. */
547
+ border?: string | null;
548
+ /** The background color as a hexadecimal value. */
549
+ background?: string | null;
550
+ }
551
+ export interface PluginContainerData {
552
+ /** The width of the node when it's displayed. */
553
+ width?: PluginContainerDataWidth;
554
+ /** The node's alignment within its container. */
555
+ alignment?: PluginContainerDataAlignment;
556
+ /** Spoiler cover settings for the node. */
557
+ spoiler?: Spoiler;
558
+ /** The height of the node when it's displayed. */
559
+ height?: Height;
560
+ /** 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`. */
561
+ textWrap?: boolean | null;
562
+ }
563
+ export declare enum WidthType {
564
+ /** Width matches the content width */
565
+ CONTENT = "CONTENT",
566
+ /** Small Width */
567
+ SMALL = "SMALL",
568
+ /** Width will match the original asset width */
569
+ ORIGINAL = "ORIGINAL",
570
+ /** coast-to-coast display */
571
+ FULL_WIDTH = "FULL_WIDTH"
572
+ }
573
+ export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
574
+ /**
575
+ * One of the following predefined width options:
576
+ * `CONTENT`: The width of the container matches the content width.
577
+ * `SMALL`: A small width.
578
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
579
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
580
+ */
581
+ size?: WidthType;
582
+ /** A custom width value in pixels. */
583
+ custom?: string | null;
584
+ }
585
+ /** @oneof */
586
+ export interface PluginContainerDataWidthDataOneOf {
587
+ /**
588
+ * One of the following predefined width options:
589
+ * `CONTENT`: The width of the container matches the content width.
590
+ * `SMALL`: A small width.
591
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
592
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
593
+ */
594
+ size?: WidthType;
595
+ /** A custom width value in pixels. */
596
+ custom?: string | null;
597
+ }
598
+ export declare enum PluginContainerDataAlignment {
599
+ /** Center Alignment */
600
+ CENTER = "CENTER",
601
+ /** Left Alignment */
602
+ LEFT = "LEFT",
603
+ /** Right Alignment */
604
+ RIGHT = "RIGHT"
605
+ }
606
+ export interface Spoiler {
607
+ /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
608
+ enabled?: boolean | null;
609
+ /** The description displayed on top of the spoiler cover. */
610
+ description?: string | null;
611
+ /** The text for the button used to remove the spoiler cover. */
612
+ buttonText?: string | null;
613
+ }
614
+ export interface Height {
615
+ /** A custom height value in pixels. */
616
+ custom?: string | null;
617
+ }
618
+ export declare enum Type {
619
+ /** Regular link button */
620
+ LINK = "LINK",
621
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
622
+ ACTION = "ACTION"
623
+ }
624
+ export interface Styles {
625
+ /** Border attributes. */
626
+ border?: Border;
627
+ /** Color attributes. */
628
+ colors?: Colors;
629
+ }
630
+ export interface Link extends LinkDataOneOf {
631
+ /** The absolute URL for the linked document. */
632
+ url?: string;
633
+ /** The target node's ID. Used for linking to another node in this object. */
634
+ anchor?: string;
635
+ /**
636
+ * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
637
+ * `SELF` - Default. Opens the linked document in the same frame as the link.
638
+ * `BLANK` - Opens the linked document in a new browser tab or window.
639
+ * `PARENT` - Opens the linked document in the link's parent frame.
640
+ * `TOP` - Opens the linked document in the full body of the link's browser tab or window.
641
+ */
642
+ target?: Target;
643
+ /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
644
+ rel?: Rel;
645
+ /** A serialized object used for a custom or external link panel. */
646
+ customData?: string | null;
647
+ }
648
+ /** @oneof */
649
+ export interface LinkDataOneOf {
650
+ /** The absolute URL for the linked document. */
651
+ url?: string;
652
+ /** The target node's ID. Used for linking to another node in this object. */
653
+ anchor?: string;
654
+ }
655
+ export declare enum Target {
656
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
657
+ SELF = "SELF",
658
+ /** Opens the linked document in a new window or tab */
659
+ BLANK = "BLANK",
660
+ /** Opens the linked document in the parent frame */
661
+ PARENT = "PARENT",
662
+ /** Opens the linked document in the full body of the window */
663
+ TOP = "TOP"
664
+ }
665
+ export interface Rel {
666
+ /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
667
+ nofollow?: boolean | null;
668
+ /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */
669
+ sponsored?: boolean | null;
670
+ /** 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`. */
671
+ ugc?: boolean | null;
672
+ /** Indicates that this link protect referral information from being passed to the target website. */
673
+ noreferrer?: boolean | null;
674
+ }
675
+ export interface CodeBlockData {
676
+ /** Styling for the code block's text. */
677
+ textStyle?: TextStyle;
678
+ }
679
+ export interface TextStyle {
680
+ /** Text alignment. Defaults to `AUTO`. */
681
+ textAlignment?: TextAlignment;
682
+ /** 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. */
683
+ lineHeight?: string | null;
684
+ }
685
+ export declare enum TextAlignment {
686
+ /** browser default, eqivalent to `initial` */
687
+ AUTO = "AUTO",
688
+ /** Left align */
689
+ LEFT = "LEFT",
690
+ /** Right align */
691
+ RIGHT = "RIGHT",
692
+ /** Center align */
693
+ CENTER = "CENTER",
694
+ /** 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 */
695
+ JUSTIFY = "JUSTIFY"
696
+ }
697
+ export interface DividerData {
698
+ /** Styling for the divider's container. */
699
+ containerData?: PluginContainerData;
700
+ /** Divider line style. */
701
+ lineStyle?: LineStyle;
702
+ /** Divider width. */
703
+ width?: Width;
704
+ /** Divider alignment. */
705
+ alignment?: Alignment;
706
+ }
707
+ export declare enum LineStyle {
708
+ /** Single Line */
709
+ SINGLE = "SINGLE",
710
+ /** Double Line */
711
+ DOUBLE = "DOUBLE",
712
+ /** Dashed Line */
713
+ DASHED = "DASHED",
714
+ /** Dotted Line */
715
+ DOTTED = "DOTTED"
716
+ }
717
+ export declare enum Width {
718
+ /** Large line */
719
+ LARGE = "LARGE",
720
+ /** Medium line */
721
+ MEDIUM = "MEDIUM",
722
+ /** Small line */
723
+ SMALL = "SMALL"
724
+ }
725
+ export declare enum Alignment {
726
+ /** Center alignment */
727
+ CENTER = "CENTER",
728
+ /** Left alignment */
729
+ LEFT = "LEFT",
730
+ /** Right alignment */
731
+ RIGHT = "RIGHT"
732
+ }
733
+ export interface FileData {
734
+ /** Styling for the file's container. */
735
+ containerData?: PluginContainerData;
736
+ /** The source for the file's data. */
737
+ src?: FileSource;
738
+ /** File name. */
739
+ name?: string | null;
740
+ /** File type. */
741
+ type?: string | null;
742
+ /**
743
+ * Use `sizeInKb` instead.
744
+ * @deprecated
745
+ */
746
+ size?: number | null;
747
+ /** Settings for PDF files. */
748
+ pdfSettings?: PDFSettings;
749
+ /** File MIME type. */
750
+ mimeType?: string | null;
751
+ /** File path. */
752
+ path?: string | null;
753
+ /** File size in KB. */
754
+ sizeInKb?: string | null;
755
+ }
756
+ export declare enum ViewMode {
757
+ /** No PDF view */
758
+ NONE = "NONE",
759
+ /** Full PDF view */
760
+ FULL = "FULL",
761
+ /** Mini PDF view */
762
+ MINI = "MINI"
763
+ }
764
+ export interface FileSource extends FileSourceDataOneOf {
765
+ /** The absolute URL for the file's source. */
766
+ url?: string | null;
767
+ /**
768
+ * Custom ID. Use `id` instead.
769
+ * @deprecated
770
+ */
771
+ custom?: string | null;
772
+ /** An ID that's resolved to a URL by a resolver function. */
773
+ id?: string | null;
774
+ /** Indicates whether the file's source is private. Defaults to `false`. */
775
+ private?: boolean | null;
776
+ }
777
+ /** @oneof */
778
+ export interface FileSourceDataOneOf {
779
+ /** The absolute URL for the file's source. */
780
+ url?: string | null;
781
+ /**
782
+ * Custom ID. Use `id` instead.
783
+ * @deprecated
784
+ */
785
+ custom?: string | null;
786
+ /** An ID that's resolved to a URL by a resolver function. */
787
+ id?: string | null;
788
+ }
789
+ export interface PDFSettings {
790
+ /**
791
+ * PDF view mode. One of the following:
792
+ * `NONE` : The PDF isn't displayed.
793
+ * `FULL` : A full page view of the PDF is displayed.
794
+ * `MINI` : A mini view of the PDF is displayed.
795
+ */
796
+ viewMode?: ViewMode;
797
+ /** Sets whether the PDF download button is disabled. Defaults to `false`. */
798
+ disableDownload?: boolean | null;
799
+ /** Sets whether the PDF print button is disabled. Defaults to `false`. */
800
+ disablePrint?: boolean | null;
801
+ }
802
+ export interface GalleryData {
803
+ /** Styling for the gallery's container. */
804
+ containerData?: PluginContainerData;
805
+ /** The items in the gallery. */
806
+ items?: Item[];
807
+ /** Options for defining the gallery's appearance. */
808
+ options?: GalleryOptions;
809
+ /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */
810
+ disableExpand?: boolean | null;
811
+ /** Sets whether the gallery's download button is disabled. Defaults to `false`. */
812
+ disableDownload?: boolean | null;
813
+ }
814
+ export interface V1Media {
815
+ /** The source for the media's data. */
816
+ src?: FileSource;
817
+ /** Media width in pixels. */
818
+ width?: number | null;
819
+ /** Media height in pixels. */
820
+ height?: number | null;
821
+ /** Media duration in seconds. Only relevant for audio and video files. */
822
+ duration?: number | null;
823
+ }
824
+ export interface ItemImage {
825
+ /** Image file details. */
826
+ media?: V1Media;
827
+ /** Link details for images that are links. */
828
+ link?: Link;
829
+ }
830
+ export interface ItemVideo {
831
+ /** Video file details. */
832
+ media?: V1Media;
833
+ /** Video thumbnail file details. */
834
+ thumbnail?: V1Media;
835
+ }
836
+ export interface Item extends ItemDataOneOf {
837
+ /** An image item. */
838
+ image?: ItemImage;
839
+ /** A video item. */
840
+ video?: ItemVideo;
841
+ /** Item title. */
842
+ title?: string | null;
843
+ /** Item's alternative text. */
844
+ altText?: string | null;
845
+ }
846
+ /** @oneof */
847
+ export interface ItemDataOneOf {
848
+ /** An image item. */
849
+ image?: ItemImage;
850
+ /** A video item. */
851
+ video?: ItemVideo;
852
+ }
853
+ export interface GalleryOptions {
854
+ /** Gallery layout. */
855
+ layout?: Layout;
856
+ /** Styling for gallery items. */
857
+ item?: ItemStyle;
858
+ /** Styling for gallery thumbnail images. */
859
+ thumbnails?: Thumbnails;
860
+ }
861
+ export declare enum LayoutType {
862
+ /** Collage type */
863
+ COLLAGE = "COLLAGE",
864
+ /** Masonry type */
865
+ MASONRY = "MASONRY",
866
+ /** Grid type */
867
+ GRID = "GRID",
868
+ /** Thumbnail type */
869
+ THUMBNAIL = "THUMBNAIL",
870
+ /** Slider type */
871
+ SLIDER = "SLIDER",
872
+ /** Slideshow type */
873
+ SLIDESHOW = "SLIDESHOW",
874
+ /** Panorama type */
875
+ PANORAMA = "PANORAMA",
876
+ /** Column type */
877
+ COLUMN = "COLUMN",
878
+ /** Magic type */
879
+ MAGIC = "MAGIC",
880
+ /** Fullsize images type */
881
+ FULLSIZE = "FULLSIZE"
882
+ }
883
+ export declare enum Orientation {
884
+ /** Rows Orientation */
885
+ ROWS = "ROWS",
886
+ /** Columns Orientation */
887
+ COLUMNS = "COLUMNS"
888
+ }
889
+ export declare enum Crop {
890
+ /** Crop to fill */
891
+ FILL = "FILL",
892
+ /** Crop to fit */
893
+ FIT = "FIT"
894
+ }
895
+ export declare enum ThumbnailsAlignment {
896
+ /** Top alignment */
897
+ TOP = "TOP",
898
+ /** Right alignment */
899
+ RIGHT = "RIGHT",
900
+ /** Bottom alignment */
901
+ BOTTOM = "BOTTOM",
902
+ /** Left alignment */
903
+ LEFT = "LEFT",
904
+ /** No thumbnail */
905
+ NONE = "NONE"
906
+ }
907
+ export interface Layout {
908
+ /** Gallery layout type. */
909
+ type?: LayoutType;
910
+ /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
911
+ horizontalScroll?: boolean | null;
912
+ /** Gallery orientation. */
913
+ orientation?: Orientation;
914
+ /** The number of columns to display on full size screens. */
915
+ numberOfColumns?: number | null;
916
+ /** The number of columns to display on mobile screens. */
917
+ mobileNumberOfColumns?: number | null;
918
+ }
919
+ export interface ItemStyle {
920
+ /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
921
+ targetSize?: number | null;
922
+ /** Item ratio */
923
+ ratio?: number | null;
924
+ /** Sets how item images are cropped. */
925
+ crop?: Crop;
926
+ /** The spacing between items in pixels. */
927
+ spacing?: number | null;
928
+ }
929
+ export interface Thumbnails {
930
+ /** Thumbnail alignment. */
931
+ placement?: ThumbnailsAlignment;
932
+ /** Spacing between thumbnails in pixels. */
933
+ spacing?: number | null;
934
+ }
935
+ export interface GIFData {
936
+ /** Styling for the GIF's container. */
937
+ containerData?: PluginContainerData;
938
+ /** The source of the full size GIF. */
939
+ original?: GIF;
940
+ /** The source of the downsized GIF. */
941
+ downsized?: GIF;
942
+ /** Height in pixels. */
943
+ height?: number;
944
+ /** Width in pixels. */
945
+ width?: number;
946
+ /** Type of GIF (Sticker or GIF). Defaults to `GIF`. */
947
+ gifType?: GIFType;
948
+ }
949
+ export interface GIF {
950
+ /**
951
+ * GIF format URL.
952
+ * @format WEB_URL
953
+ */
954
+ gif?: string | null;
955
+ /**
956
+ * MP4 format URL.
957
+ * @format WEB_URL
958
+ */
959
+ mp4?: string | null;
960
+ /**
961
+ * Thumbnail URL.
962
+ * @format WEB_URL
963
+ */
964
+ still?: string | null;
965
+ }
966
+ export declare enum GIFType {
967
+ GIF = "GIF",
968
+ STICKER = "STICKER"
969
+ }
970
+ export interface HeadingData {
971
+ /** Heading level from 1-6. */
972
+ level?: number;
973
+ /** Styling for the heading text. */
974
+ textStyle?: TextStyle;
975
+ /** Indentation level from 1-4. */
976
+ indentation?: number | null;
977
+ }
978
+ export interface HTMLData extends HTMLDataDataOneOf {
979
+ /** The URL for the HTML code for the node. */
980
+ url?: string;
981
+ /** The HTML code for the node. */
982
+ html?: string;
983
+ /**
984
+ * Whether this is an AdSense element. Use `source` instead.
985
+ * @deprecated
986
+ */
987
+ isAdsense?: boolean | null;
988
+ /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
989
+ containerData?: PluginContainerData;
990
+ /** The type of HTML code. */
991
+ source?: Source;
992
+ /** If container height is aligned with its content height. Defaults to `true`. */
993
+ autoHeight?: boolean | null;
994
+ }
995
+ /** @oneof */
996
+ export interface HTMLDataDataOneOf {
997
+ /** The URL for the HTML code for the node. */
998
+ url?: string;
999
+ /** The HTML code for the node. */
1000
+ html?: string;
1001
+ /**
1002
+ * Whether this is an AdSense element. Use `source` instead.
1003
+ * @deprecated
1004
+ */
1005
+ isAdsense?: boolean | null;
1006
+ }
1007
+ export declare enum Source {
1008
+ HTML = "HTML",
1009
+ ADSENSE = "ADSENSE"
1010
+ }
1011
+ export interface ImageData {
1012
+ /** Styling for the image's container. */
1013
+ containerData?: PluginContainerData;
1014
+ /** Image file details. */
1015
+ image?: V1Media;
1016
+ /** Link details for images that are links. */
1017
+ link?: Link;
1018
+ /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */
1019
+ disableExpand?: boolean | null;
1020
+ /** Image's alternative text. */
1021
+ altText?: string | null;
1022
+ /**
1023
+ * Deprecated: use Caption node instead.
1024
+ * @deprecated
1025
+ */
1026
+ caption?: string | null;
1027
+ /** Sets whether the image's download button is disabled. Defaults to `false`. */
1028
+ disableDownload?: boolean | null;
1029
+ }
1030
+ export interface StylesBorder {
1031
+ /** Border width in pixels. */
1032
+ width?: number | null;
1033
+ /**
1034
+ * Border color as a hexadecimal value.
1035
+ * @format COLOR_HEX
1036
+ */
1037
+ color?: string | null;
1038
+ /** Border radius in pixels. */
1039
+ radius?: number | null;
1040
+ }
1041
+ export interface ImageDataStyles {
1042
+ /** Border attributes. */
1043
+ border?: StylesBorder;
1044
+ }
1045
+ export interface LinkPreviewData {
1046
+ /** Styling for the link preview's container. */
1047
+ containerData?: PluginContainerData;
1048
+ /** Link details. */
1049
+ link?: Link;
1050
+ /** Preview title. */
1051
+ title?: string | null;
1052
+ /** Preview thumbnail URL. */
1053
+ thumbnailUrl?: string | null;
1054
+ /** Preview description. */
1055
+ description?: string | null;
1056
+ /** The preview content as HTML. */
1057
+ html?: string | null;
1058
+ }
1059
+ export declare enum Position {
1060
+ /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
1061
+ START = "START",
1062
+ /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
1063
+ END = "END",
1064
+ /** Thumbnail positioned at the top */
1065
+ TOP = "TOP",
1066
+ /** Thumbnail hidden and not displayed */
1067
+ HIDDEN = "HIDDEN"
1068
+ }
1069
+ export interface LinkPreviewDataStyles {
1070
+ /**
1071
+ * Background color as a hexadecimal value.
1072
+ * @format COLOR_HEX
1073
+ */
1074
+ backgroundColor?: string | null;
1075
+ /**
1076
+ * Title color as a hexadecimal value.
1077
+ * @format COLOR_HEX
1078
+ */
1079
+ titleColor?: string | null;
1080
+ /**
1081
+ * Subtitle color as a hexadecimal value.
1082
+ * @format COLOR_HEX
1083
+ */
1084
+ subtitleColor?: string | null;
1085
+ /**
1086
+ * Link color as a hexadecimal value.
1087
+ * @format COLOR_HEX
1088
+ */
1089
+ linkColor?: string | null;
1090
+ /** Border width in pixels. */
1091
+ borderWidth?: number | null;
1092
+ /** Border radius in pixels. */
1093
+ borderRadius?: number | null;
1094
+ /**
1095
+ * Border color as a hexadecimal value.
1096
+ * @format COLOR_HEX
1097
+ */
1098
+ borderColor?: string | null;
1099
+ /** Position of thumbnail. Defaults to `START`. */
1100
+ thumbnailPosition?: Position;
1101
+ }
1102
+ export interface MapData {
1103
+ /** Styling for the map's container. */
1104
+ containerData?: PluginContainerData;
1105
+ /** Map settings. */
1106
+ mapSettings?: MapSettings;
1107
+ }
1108
+ export interface MapSettings {
1109
+ /** The address to display on the map. */
1110
+ address?: string | null;
1111
+ /** Sets whether the map is draggable. */
1112
+ draggable?: boolean | null;
1113
+ /** Sets whether the location marker is visible. */
1114
+ marker?: boolean | null;
1115
+ /** Sets whether street view control is enabled. */
1116
+ streetViewControl?: boolean | null;
1117
+ /** Sets whether zoom control is enabled. */
1118
+ zoomControl?: boolean | null;
1119
+ /** Location latitude. */
1120
+ lat?: number | null;
1121
+ /** Location longitude. */
1122
+ lng?: number | null;
1123
+ /** Location name. */
1124
+ locationName?: string | null;
1125
+ /** Sets whether view mode control is enabled. */
1126
+ viewModeControl?: boolean | null;
1127
+ /** Initial zoom value. */
1128
+ initialZoom?: number | null;
1129
+ /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
1130
+ mapType?: MapType;
1131
+ }
1132
+ export declare enum MapType {
1133
+ /** Roadmap map type */
1134
+ ROADMAP = "ROADMAP",
1135
+ /** Satellite map type */
1136
+ SATELITE = "SATELITE",
1137
+ /** Hybrid map type */
1138
+ HYBRID = "HYBRID",
1139
+ /** Terrain map type */
1140
+ TERRAIN = "TERRAIN"
1141
+ }
1142
+ export interface ParagraphData {
1143
+ /** Styling for the paragraph text. */
1144
+ textStyle?: TextStyle;
1145
+ /** Indentation level from 1-4. */
1146
+ indentation?: number | null;
1147
+ /** Paragraph level */
1148
+ level?: number | null;
1149
+ }
1150
+ export interface PollData {
1151
+ /** Styling for the poll's container. */
1152
+ containerData?: PluginContainerData;
1153
+ /** Poll data. */
1154
+ poll?: Poll;
1155
+ /** Layout settings for the poll and voting options. */
1156
+ layout?: PollDataLayout;
1157
+ /** Styling for the poll and voting options. */
1158
+ design?: Design;
1159
+ }
1160
+ export declare enum ViewRole {
1161
+ /** Only Poll creator can view the results */
1162
+ CREATOR = "CREATOR",
1163
+ /** Anyone who voted can see the results */
1164
+ VOTERS = "VOTERS",
1165
+ /** Anyone can see the results, even if one didn't vote */
1166
+ EVERYONE = "EVERYONE"
1167
+ }
1168
+ export declare enum VoteRole {
1169
+ /** Logged in member */
1170
+ SITE_MEMBERS = "SITE_MEMBERS",
1171
+ /** Anyone */
1172
+ ALL = "ALL"
1173
+ }
1174
+ export interface Permissions {
1175
+ /** Sets who can view the poll results. */
1176
+ view?: ViewRole;
1177
+ /** Sets who can vote. */
1178
+ vote?: VoteRole;
1179
+ /** Sets whether one voter can vote multiple times. Defaults to `false`. */
1180
+ allowMultipleVotes?: boolean | null;
1181
+ }
1182
+ export interface Option {
1183
+ /** Option ID. */
1184
+ id?: string | null;
1185
+ /** Option title. */
1186
+ title?: string | null;
1187
+ /** The image displayed with the option. */
1188
+ image?: V1Media;
1189
+ }
1190
+ export interface PollSettings {
1191
+ /** Permissions settings for voting. */
1192
+ permissions?: Permissions;
1193
+ /** Sets whether voters are displayed in the vote results. Defaults to `true`. */
1194
+ showVoters?: boolean | null;
1195
+ /** Sets whether the vote count is displayed. Defaults to `true`. */
1196
+ showVotesCount?: boolean | null;
1197
+ }
1198
+ export declare enum PollLayoutType {
1199
+ /** List */
1200
+ LIST = "LIST",
1201
+ /** Grid */
1202
+ GRID = "GRID"
1203
+ }
1204
+ export declare enum PollLayoutDirection {
1205
+ /** Left-to-right */
1206
+ LTR = "LTR",
1207
+ /** Right-to-left */
1208
+ RTL = "RTL"
1209
+ }
1210
+ export interface PollLayout {
1211
+ /** The layout for displaying the voting options. */
1212
+ type?: PollLayoutType;
1213
+ /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
1214
+ direction?: PollLayoutDirection;
1215
+ /** Sets whether to display the main poll image. Defaults to `false`. */
1216
+ enableImage?: boolean | null;
1217
+ }
1218
+ export interface OptionLayout {
1219
+ /** Sets whether to display option images. Defaults to `false`. */
1220
+ enableImage?: boolean | null;
1221
+ }
1222
+ export declare enum BackgroundType {
1223
+ /** Color background type */
1224
+ COLOR = "COLOR",
1225
+ /** Image background type */
1226
+ IMAGE = "IMAGE",
1227
+ /** Gradiant background type */
1228
+ GRADIENT = "GRADIENT"
1229
+ }
1230
+ export interface Gradient {
1231
+ /** The gradient angle in degrees. */
1232
+ angle?: number | null;
1233
+ /**
1234
+ * The start color as a hexademical value.
1235
+ * @format COLOR_HEX
1236
+ */
1237
+ startColor?: string | null;
1238
+ /**
1239
+ * The end color as a hexademical value.
1240
+ * @format COLOR_HEX
1241
+ */
1242
+ lastColor?: string | null;
1243
+ }
1244
+ export interface Background extends BackgroundBackgroundOneOf {
1245
+ /**
1246
+ * The background color as a hexademical value.
1247
+ * @format COLOR_HEX
1248
+ */
1249
+ color?: string | null;
1250
+ /** An image to use for the background. */
1251
+ image?: V1Media;
1252
+ /** Details for a gradient background. */
1253
+ gradient?: Gradient;
1254
+ /** Background type. For each option, include the relevant details. */
1255
+ type?: BackgroundType;
1256
+ }
1257
+ /** @oneof */
1258
+ export interface BackgroundBackgroundOneOf {
1259
+ /**
1260
+ * The background color as a hexademical value.
1261
+ * @format COLOR_HEX
1262
+ */
1263
+ color?: string | null;
1264
+ /** An image to use for the background. */
1265
+ image?: V1Media;
1266
+ /** Details for a gradient background. */
1267
+ gradient?: Gradient;
1268
+ }
1269
+ export interface PollDesign {
1270
+ /** Background styling. */
1271
+ background?: Background;
1272
+ /** Border radius in pixels. */
1273
+ borderRadius?: number | null;
1274
+ }
1275
+ export interface OptionDesign {
1276
+ /** Border radius in pixels. */
1277
+ borderRadius?: number | null;
1278
+ }
1279
+ export interface Poll {
1280
+ /** Poll ID. */
1281
+ id?: string | null;
1282
+ /** Poll title. */
1283
+ title?: string | null;
1284
+ /** Poll creator ID. */
1285
+ creatorId?: string | null;
1286
+ /** Main poll image. */
1287
+ image?: V1Media;
1288
+ /** Voting options. */
1289
+ options?: Option[];
1290
+ /** The poll's permissions and display settings. */
1291
+ settings?: PollSettings;
1292
+ }
1293
+ export interface PollDataLayout {
1294
+ /** Poll layout settings. */
1295
+ poll?: PollLayout;
1296
+ /** Voting otpions layout settings. */
1297
+ options?: OptionLayout;
1298
+ }
1299
+ export interface Design {
1300
+ /** Styling for the poll. */
1301
+ poll?: PollDesign;
1302
+ /** Styling for voting options. */
1303
+ options?: OptionDesign;
1304
+ }
1305
+ export interface TextData {
1306
+ /** The text to apply decorations to. */
1307
+ text?: string;
1308
+ /** The decorations to apply. */
1309
+ decorations?: Decoration[];
1310
+ }
1311
+ /** Adds appearence changes to text */
1312
+ export interface Decoration extends DecorationDataOneOf {
1313
+ /** Data for an anchor link decoration. */
1314
+ anchorData?: AnchorData;
1315
+ /** Data for a color decoration. */
1316
+ colorData?: ColorData;
1317
+ /** Data for an external link decoration. */
1318
+ linkData?: LinkData;
1319
+ /** Data for a mention decoration. */
1320
+ mentionData?: MentionData;
1321
+ /** Data for a font size decoration. */
1322
+ fontSizeData?: FontSizeData;
1323
+ /** Font weight for a bold decoration. */
1324
+ fontWeightValue?: number | null;
1325
+ /** Data for an italic decoration. Defaults to `true`. */
1326
+ italicData?: boolean | null;
1327
+ /** Data for an underline decoration. Defaults to `true`. */
1328
+ underlineData?: boolean | null;
1329
+ /** Data for a spoiler decoration. */
1330
+ spoilerData?: SpoilerData;
1331
+ /** The type of decoration to apply. */
1332
+ type?: DecorationType;
1333
+ }
1334
+ /** @oneof */
1335
+ export interface DecorationDataOneOf {
1336
+ /** Data for an anchor link decoration. */
1337
+ anchorData?: AnchorData;
1338
+ /** Data for a color decoration. */
1339
+ colorData?: ColorData;
1340
+ /** Data for an external link decoration. */
1341
+ linkData?: LinkData;
1342
+ /** Data for a mention decoration. */
1343
+ mentionData?: MentionData;
1344
+ /** Data for a font size decoration. */
1345
+ fontSizeData?: FontSizeData;
1346
+ /** Font weight for a bold decoration. */
1347
+ fontWeightValue?: number | null;
1348
+ /** Data for an italic decoration. Defaults to `true`. */
1349
+ italicData?: boolean | null;
1350
+ /** Data for an underline decoration. Defaults to `true`. */
1351
+ underlineData?: boolean | null;
1352
+ /** Data for a spoiler decoration. */
1353
+ spoilerData?: SpoilerData;
1354
+ }
1355
+ export declare enum DecorationType {
1356
+ BOLD = "BOLD",
1357
+ ITALIC = "ITALIC",
1358
+ UNDERLINE = "UNDERLINE",
1359
+ SPOILER = "SPOILER",
1360
+ ANCHOR = "ANCHOR",
1361
+ MENTION = "MENTION",
1362
+ LINK = "LINK",
1363
+ COLOR = "COLOR",
1364
+ FONT_SIZE = "FONT_SIZE",
1365
+ EXTERNAL = "EXTERNAL"
1366
+ }
1367
+ export interface AnchorData {
1368
+ /** The target node's ID. */
1369
+ anchor?: string;
1370
+ }
1371
+ export interface ColorData {
1372
+ /** The text's background color as a hexadecimal value. */
1373
+ background?: string | null;
1374
+ /** The text's foreground color as a hexadecimal value. */
1375
+ foreground?: string | null;
1376
+ }
1377
+ export interface LinkData {
1378
+ /** Link details. */
1379
+ link?: Link;
1380
+ }
1381
+ export interface MentionData {
1382
+ /** The mentioned user's name. */
1383
+ name?: string;
1384
+ /** The version of the user's name that appears after the `@` character in the mention. */
1385
+ slug?: string;
1386
+ /** Mentioned user's ID. */
1387
+ id?: string | null;
1388
+ }
1389
+ export interface FontSizeData {
1390
+ /** The units used for the font size. */
1391
+ unit?: FontType;
1392
+ /** Font size value. */
1393
+ value?: number | null;
1394
+ }
1395
+ export declare enum FontType {
1396
+ PX = "PX",
1397
+ EM = "EM"
1398
+ }
1399
+ export interface SpoilerData {
1400
+ /** Spoiler ID. */
1401
+ id?: string | null;
1402
+ }
1403
+ export interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1404
+ /** Data for embedded Wix Bookings content. */
1405
+ bookingData?: BookingData;
1406
+ /** Data for embedded Wix Events content. */
1407
+ eventData?: EventData;
1408
+ /** The type of Wix App content being embedded. */
1409
+ type?: AppType;
1410
+ /** The ID of the embedded content. */
1411
+ itemId?: string | null;
1412
+ /** The name of the embedded content. */
1413
+ name?: string | null;
1414
+ /**
1415
+ * Deprecated: Use `image` instead.
1416
+ * @deprecated
1417
+ */
1418
+ imageSrc?: string | null;
1419
+ /** The URL for the embedded content. */
1420
+ url?: string | null;
1421
+ /** An image for the embedded content. */
1422
+ image?: V1Media;
1423
+ }
1424
+ /** @oneof */
1425
+ export interface AppEmbedDataAppDataOneOf {
1426
+ /** Data for embedded Wix Bookings content. */
1427
+ bookingData?: BookingData;
1428
+ /** Data for embedded Wix Events content. */
1429
+ eventData?: EventData;
1430
+ }
1431
+ export declare enum AppType {
1432
+ PRODUCT = "PRODUCT",
1433
+ EVENT = "EVENT",
1434
+ BOOKING = "BOOKING"
1435
+ }
1436
+ export interface BookingData {
1437
+ /** Booking duration in minutes. */
1438
+ durations?: string | null;
1439
+ }
1440
+ export interface EventData {
1441
+ /** Event schedule. */
1442
+ scheduling?: string | null;
1443
+ /** Event location. */
1444
+ location?: string | null;
1445
+ }
1446
+ export interface VideoData {
1447
+ /** Styling for the video's container. */
1448
+ containerData?: PluginContainerData;
1449
+ /** Video details. */
1450
+ video?: V1Media;
1451
+ /** Video thumbnail details. */
1452
+ thumbnail?: V1Media;
1453
+ /** Sets whether the video's download button is disabled. Defaults to `false`. */
1454
+ disableDownload?: boolean | null;
1455
+ /** Video title. */
1456
+ title?: string | null;
1457
+ /** Video options. */
1458
+ options?: PlaybackOptions;
1459
+ }
1460
+ export interface PlaybackOptions {
1461
+ /** Sets whether the media will automatically start playing. */
1462
+ autoPlay?: boolean | null;
1463
+ /** Sets whether media's will be looped. */
1464
+ playInLoop?: boolean | null;
1465
+ /** Sets whether media's controls will be shown. */
1466
+ showControls?: boolean | null;
1467
+ }
1468
+ export interface EmbedData {
1469
+ /** Styling for the oEmbed node's container. */
1470
+ containerData?: PluginContainerData;
1471
+ /** An [oEmbed](https://www.oembed.com) object. */
1472
+ oembed?: Oembed;
1473
+ /** Origin asset source. */
1474
+ src?: string | null;
1475
+ }
1476
+ export interface Oembed {
1477
+ /** The resource type. */
1478
+ type?: string | null;
1479
+ /** The width of the resource specified in the `url` property in pixels. */
1480
+ width?: number | null;
1481
+ /** The height of the resource specified in the `url` property in pixels. */
1482
+ height?: number | null;
1483
+ /** Resource title. */
1484
+ title?: string | null;
1485
+ /** The source URL for the resource. */
1486
+ url?: string | null;
1487
+ /** HTML for embedding a video player. The HTML should have no padding or margins. */
1488
+ html?: string | null;
1489
+ /** The name of the author or owner of the resource. */
1490
+ authorName?: string | null;
1491
+ /** The URL for the author or owner of the resource. */
1492
+ authorUrl?: string | null;
1493
+ /** The name of the resource provider. */
1494
+ providerName?: string | null;
1495
+ /** The URL for the resource provider. */
1496
+ providerUrl?: string | null;
1497
+ /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
1498
+ thumbnailUrl?: string | null;
1499
+ /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
1500
+ thumbnailWidth?: string | null;
1501
+ /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
1502
+ thumbnailHeight?: string | null;
1503
+ /** The URL for an embedded viedo. */
1504
+ videoUrl?: string | null;
1505
+ /** The oEmbed version number. This value must be `1.0`. */
1506
+ version?: string | null;
1507
+ }
1508
+ export interface CollapsibleListData {
1509
+ /** Styling for the collapsible list's container. */
1510
+ containerData?: PluginContainerData;
1511
+ /** If `true`, only one item can be expanded at a time. Defaults to `false`. */
1512
+ expandOnlyOne?: boolean | null;
1513
+ /** Sets which items are expanded when the page loads. */
1514
+ initialExpandedItems?: InitialExpandedItems;
1515
+ /** The direction of the text in the list. Either left-to-right or right-to-left. */
1516
+ direction?: Direction;
1517
+ /** If `true`, The collapsible item will appear in search results as an FAQ. */
1518
+ isQapageData?: boolean | null;
1519
+ }
1520
+ export declare enum InitialExpandedItems {
1521
+ /** First item will be expended initally */
1522
+ FIRST = "FIRST",
1523
+ /** All items will expended initally */
1524
+ ALL = "ALL",
1525
+ /** All items collapsed initally */
1526
+ NONE = "NONE"
1527
+ }
1528
+ export declare enum Direction {
1529
+ /** Left-to-right */
1530
+ LTR = "LTR",
1531
+ /** Right-to-left */
1532
+ RTL = "RTL"
1533
+ }
1534
+ export interface TableData {
1535
+ /** Styling for the table's container. */
1536
+ containerData?: PluginContainerData;
1537
+ /** The table's dimensions. */
1538
+ dimensions?: Dimensions;
1539
+ /**
1540
+ * Deprecated: Use `rowHeader` and `columnHeader` instead.
1541
+ * @deprecated
1542
+ */
1543
+ header?: boolean | null;
1544
+ /** Sets whether the table's first row is a header. Defaults to `false`. */
1545
+ rowHeader?: boolean | null;
1546
+ /** Sets whether the table's first column is a header. Defaults to `false`. */
1547
+ columnHeader?: boolean | null;
1548
+ }
1549
+ export interface Dimensions {
1550
+ /** An array representing relative width of each column in relation to the other columns. */
1551
+ colsWidthRatio?: number[];
1552
+ /** An array representing the height of each row in pixels. */
1553
+ rowsHeight?: number[];
1554
+ /** An array representing the minimum width of each column in pixels. */
1555
+ colsMinWidth?: number[];
1556
+ }
1557
+ export interface TableCellData {
1558
+ /** Styling for the cell's background color and text alignment. */
1559
+ cellStyle?: CellStyle;
1560
+ /** The cell's border colors. */
1561
+ borderColors?: BorderColors;
1562
+ }
1563
+ export declare enum VerticalAlignment {
1564
+ /** Top alignment */
1565
+ TOP = "TOP",
1566
+ /** Middle alignment */
1567
+ MIDDLE = "MIDDLE",
1568
+ /** Bottom alignment */
1569
+ BOTTOM = "BOTTOM"
1570
+ }
1571
+ export interface CellStyle {
1572
+ /** Vertical alignment for the cell's text. */
1573
+ verticalAlignment?: VerticalAlignment;
1574
+ /**
1575
+ * Cell background color as a hexadecimal value.
1576
+ * @format COLOR_HEX
1577
+ */
1578
+ backgroundColor?: string | null;
1579
+ }
1580
+ export interface BorderColors {
1581
+ /**
1582
+ * Left border color as a hexadecimal value.
1583
+ * @format COLOR_HEX
1584
+ */
1585
+ left?: string | null;
1586
+ /**
1587
+ * Right border color as a hexadecimal value.
1588
+ * @format COLOR_HEX
1589
+ */
1590
+ right?: string | null;
1591
+ /**
1592
+ * Top border color as a hexadecimal value.
1593
+ * @format COLOR_HEX
1594
+ */
1595
+ top?: string | null;
1596
+ /**
1597
+ * Bottom border color as a hexadecimal value.
1598
+ * @format COLOR_HEX
1599
+ */
1600
+ bottom?: string | null;
1601
+ }
1602
+ /**
1603
+ * `NullValue` is a singleton enumeration to represent the null value for the
1604
+ * `Value` type union.
1605
+ *
1606
+ * The JSON representation for `NullValue` is JSON `null`.
1607
+ */
1608
+ export declare enum NullValue {
1609
+ /** Null value. */
1610
+ NULL_VALUE = "NULL_VALUE"
1611
+ }
1612
+ /**
1613
+ * `ListValue` is a wrapper around a repeated field of values.
1614
+ *
1615
+ * The JSON representation for `ListValue` is JSON array.
1616
+ */
1617
+ export interface ListValue {
1618
+ /** Repeated field of dynamically typed values. */
1619
+ values?: any[];
1620
+ }
1621
+ export interface AudioData {
1622
+ /** Styling for the audio node's container. */
1623
+ containerData?: PluginContainerData;
1624
+ /** Audio file details. */
1625
+ audio?: V1Media;
1626
+ /** Sets whether the audio node's download button is disabled. Defaults to `false`. */
1627
+ disableDownload?: boolean | null;
1628
+ /** Cover image. */
1629
+ coverImage?: V1Media;
1630
+ /** Track name. */
1631
+ name?: string | null;
1632
+ /** Author name. */
1633
+ authorName?: string | null;
1634
+ /** An HTML version of the audio node. */
1635
+ html?: string | null;
1636
+ }
1637
+ export interface OrderedListData {
1638
+ /** Indentation level from 0-4. */
1639
+ indentation?: number;
1640
+ /** Offset level from 0-4. */
1641
+ offset?: number | null;
1642
+ /** List start number. */
1643
+ start?: number | null;
1644
+ }
1645
+ export interface BulletedListData {
1646
+ /** Indentation level from 0-4. */
1647
+ indentation?: number;
1648
+ /** Offset level from 0-4. */
1649
+ offset?: number | null;
1650
+ }
1651
+ export interface BlockquoteData {
1652
+ /** Indentation level from 1-4. */
1653
+ indentation?: number;
1654
+ }
1655
+ export interface CaptionData {
1656
+ textStyle?: TextStyle;
1657
+ }
1658
+ export interface LayoutCellData {
1659
+ /** Size of the cell in 12 columns grid. */
1660
+ colSpan?: number | null;
1661
+ }
1662
+ export interface Metadata {
1663
+ /** Schema version. */
1664
+ version?: number;
1665
+ /**
1666
+ * When the object was created.
1667
+ * @readonly
1668
+ * @deprecated
1669
+ */
1670
+ createdTimestamp?: Date | null;
1671
+ /**
1672
+ * When the object was most recently updated.
1673
+ * @deprecated
1674
+ */
1675
+ updatedTimestamp?: Date | null;
1676
+ /** Object ID. */
1677
+ id?: string | null;
1678
+ }
1679
+ export interface DocumentStyle {
1680
+ /** Styling for H1 nodes. */
1681
+ headerOne?: TextNodeStyle;
1682
+ /** Styling for H2 nodes. */
1683
+ headerTwo?: TextNodeStyle;
1684
+ /** Styling for H3 nodes. */
1685
+ headerThree?: TextNodeStyle;
1686
+ /** Styling for H4 nodes. */
1687
+ headerFour?: TextNodeStyle;
1688
+ /** Styling for H5 nodes. */
1689
+ headerFive?: TextNodeStyle;
1690
+ /** Styling for H6 nodes. */
1691
+ headerSix?: TextNodeStyle;
1692
+ /** Styling for paragraph nodes. */
1693
+ paragraph?: TextNodeStyle;
1694
+ /** Styling for block quote nodes. */
1695
+ blockquote?: TextNodeStyle;
1696
+ /** Styling for code block nodes. */
1697
+ codeBlock?: TextNodeStyle;
1698
+ }
1699
+ export interface TextNodeStyle {
1700
+ /** The decorations to apply to the node. */
1701
+ decorations?: Decoration[];
1702
+ /** Padding and background color for the node. */
1703
+ nodeStyle?: NodeStyle;
1704
+ /** Line height for text in the node. */
1705
+ lineHeight?: string | null;
1706
+ }
1707
+ export interface ModerationDetails {
1708
+ /**
1709
+ * Member ID of the person submitting the draft post for review.
1710
+ * @format GUID
1711
+ */
1712
+ submittedBy?: string;
1713
+ /** Date the post was submitted for review. */
1714
+ submittedDate?: Date | null;
1715
+ /** Status indicating whether the submission was approved or rejected by the moderator. */
1716
+ status?: ModerationStatusStatus;
1717
+ /**
1718
+ * Member ID of the person who approved or rejected the post.
1719
+ * @format GUID
1720
+ */
1721
+ moderatedBy?: string | null;
1722
+ /** Date the post was approved or rejected. */
1723
+ moderationDate?: Date | null;
1724
+ }
1725
+ export declare enum ModerationStatusStatus {
1726
+ UNKNOWN = "UNKNOWN",
1727
+ APPROVED = "APPROVED",
1728
+ REJECTED = "REJECTED"
1729
+ }
1730
+ export interface Media extends MediaMediaOneOf {
1731
+ /** Wix Media details. */
1732
+ wixMedia?: WixMedia;
1733
+ /** Embed media details. */
1734
+ embedMedia?: EmbedMedia;
1735
+ /** Whether cover media is displayed. */
1736
+ displayed?: boolean;
1737
+ /** Whether custom cover media has been specified. If `false`, the first media item in the post's content serves as cover media. */
1738
+ custom?: boolean;
1739
+ /**
1740
+ * Media alternative text.
1741
+ * @minLength 1
1742
+ * @maxLength 1000
1743
+ */
1744
+ altText?: string | null;
1745
+ }
1746
+ /** @oneof */
1747
+ export interface MediaMediaOneOf {
1748
+ /** Wix Media details. */
1749
+ wixMedia?: WixMedia;
1750
+ /** Embed media details. */
1751
+ embedMedia?: EmbedMedia;
1752
+ }
1753
+ export interface WixMedia {
1754
+ /** Image details. */
1755
+ image?: Image;
1756
+ /** Video details. */
1757
+ videoV2?: VideoV2;
1758
+ }
1759
+ export interface VideoV2 {
1760
+ /** WixMedia ID. */
1761
+ id?: string;
1762
+ /**
1763
+ * Available resolutions for the video, starting with the optimal resolution.
1764
+ * @readonly
1765
+ * @maxSize 100
1766
+ */
1767
+ resolutions?: VideoResolution[];
1768
+ /**
1769
+ * Video filename.
1770
+ * @readonly
1771
+ */
1772
+ filename?: string | null;
1773
+ }
1774
+ export interface VideoResolution {
1775
+ /** Video URL. */
1776
+ url?: string;
1777
+ /** Video height. */
1778
+ height?: number;
1779
+ /** Video width. */
1780
+ width?: number;
1781
+ /** Video format for example, mp4, hls. */
1782
+ format?: string;
1783
+ }
1784
+ export interface EmbedMedia {
1785
+ /** Thumbnail details. */
1786
+ thumbnail?: EmbedThumbnail;
1787
+ /** Video details. */
1788
+ video?: EmbedVideo;
1789
+ }
1790
+ export interface EmbedThumbnail {
1791
+ /**
1792
+ * Thumbnail url.
1793
+ * @maxLength 2000
1794
+ */
1795
+ url?: string;
1796
+ /** Thumbnail width. */
1797
+ width?: number;
1798
+ /** Thumbnail height. */
1799
+ height?: number;
1800
+ }
1801
+ export interface EmbedVideo {
1802
+ /**
1803
+ * Video url.
1804
+ * @maxLength 2000
1805
+ */
1806
+ url?: string;
1807
+ /** Video width. */
1808
+ width?: number;
1809
+ /** Video height. */
1810
+ height?: number;
1811
+ }
1812
+ export interface PostTranslation {
1813
+ /**
1814
+ * Post ID.
1815
+ * @format GUID
1816
+ */
1817
+ id?: string;
1818
+ /**
1819
+ * Language the post is written in.
1820
+ * @format LANGUAGE_TAG
1821
+ */
1822
+ language?: string | null;
1823
+ /**
1824
+ * Post slug. For example, 'post-slug'.
1825
+ * @maxLength 100
1826
+ */
1827
+ slug?: string | null;
1828
+ /** SEO data. */
1829
+ seoData?: SeoSchema;
1830
+ /** Post URL. */
1831
+ url?: PageUrl;
1832
+ }
1833
+ export interface PostCategoriesUpdated {
1834
+ /**
1835
+ * ID of the post which counters were updated.
1836
+ * @format GUID
1837
+ */
1838
+ postId?: string;
1839
+ /**
1840
+ * Current categories of the post.
1841
+ * @maxSize 10
1842
+ * @format GUID
1843
+ */
1844
+ categories?: string[];
1845
+ /**
1846
+ * Previous categories of the post.
1847
+ * @maxSize 10
1848
+ * @format GUID
1849
+ */
1850
+ previousCategories?: string[];
1851
+ }
1852
+ export interface PostTagsUpdated {
1853
+ /**
1854
+ * ID of the post which counters were updated.
1855
+ * @format GUID
1856
+ */
1857
+ postId?: string;
1858
+ /**
1859
+ * Current tags of the post.
1860
+ * @maxSize 30
1861
+ * @format GUID
1862
+ */
1863
+ tags?: string[];
1864
+ /**
1865
+ * Previous tags of the post.
1866
+ * @maxSize 30
1867
+ * @format GUID
1868
+ */
1869
+ previousTags?: string[];
1870
+ }
1871
+ export interface ScheduledPostPublished {
1872
+ /**
1873
+ * ID of the scheduled post which was published.
1874
+ * @format GUID
1875
+ */
1876
+ postId?: string;
1877
+ }
1878
+ /** Get Blog Publications Count Stats request */
1879
+ export interface QueryPublicationsCountStatsRequest {
1880
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
1881
+ rangeStart?: Date | null;
1882
+ /** Non-inclusive end of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
1883
+ rangeEnd?: Date | null;
1884
+ /** Order of the returned results. */
1885
+ order?: QueryPublicationsCountStatsRequestOrder;
1886
+ /** Number of months to include in the response. */
1887
+ months?: number;
1888
+ /**
1889
+ * Language filter
1890
+ *
1891
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
1892
+ * @format LANGUAGE_TAG
1893
+ */
1894
+ language?: string | null;
1895
+ /**
1896
+ * Timezone of the client.
1897
+ * @minLength 3
1898
+ * @maxLength 100
1899
+ */
1900
+ timeZone?: string | null;
1901
+ }
1902
+ export declare enum QueryPublicationsCountStatsRequestOrder {
1903
+ UNKNOWN = "UNKNOWN",
1904
+ OLDEST = "OLDEST",
1905
+ NEWEST = "NEWEST"
1906
+ }
1907
+ /** Get Blog Publications Count Stats response */
1908
+ export interface QueryPublicationsCountStatsResponse {
1909
+ /** Chronologically ordered list of publications. */
1910
+ stats?: PeriodPublicationsCount[];
1911
+ }
1912
+ /** Publications count for a specific time period */
1913
+ export interface PeriodPublicationsCount {
1914
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
1915
+ periodStart?: Date | null;
1916
+ /** Number of posts published during this month. */
1917
+ publicationsCount?: number;
1918
+ }
1919
+ /** Get Blog Post Count Stats request */
1920
+ export interface QueryPostCountStatsRequest {
1921
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
1922
+ rangeStart?: Date | null;
1923
+ /**
1924
+ * Order of returned results.
1925
+ *
1926
+ * - `OLDEST`: posts by date in ascending order.
1927
+ * - `NEWEST`: posts by date in descending order.
1928
+ *
1929
+ * Default: `OLDEST`
1930
+ */
1931
+ order?: Order;
1932
+ /** Number of months to include in response. */
1933
+ months?: number;
1934
+ /**
1935
+ * Language filter.
1936
+ *
1937
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
1938
+ * Pass a language to only receive the period post count for that specified language.
1939
+ * @format LANGUAGE_TAG
1940
+ */
1941
+ language?: string | null;
1942
+ /**
1943
+ * Time zone to use when calculating the start of the month.
1944
+ *
1945
+ * [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) format. For example, New York time zone is `-05`.
1946
+ * @minLength 3
1947
+ * @maxLength 100
1948
+ */
1949
+ timeZone?: string | null;
1950
+ }
1951
+ export declare enum Order {
1952
+ UNKNOWN = "UNKNOWN",
1953
+ OLDEST = "OLDEST",
1954
+ NEWEST = "NEWEST"
1955
+ }
1956
+ /** Get Blog Post Count Stats response */
1957
+ export interface QueryPostCountStatsResponse {
1958
+ /** List of published post counts by month. */
1959
+ stats?: PeriodPostCount[];
1960
+ }
1961
+ /** Post count for a specific time period */
1962
+ export interface PeriodPostCount {
1963
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
1964
+ periodStart?: Date | null;
1965
+ /** Number of posts published during this month. */
1966
+ postCount?: number;
1967
+ }
1968
+ export interface GetTotalPublicationsRequest {
1969
+ /**
1970
+ * Language filter
1971
+ * @minLength 2
1972
+ * @format LANGUAGE_TAG
1973
+ */
1974
+ language?: string | null;
1975
+ }
1976
+ export interface GetTotalPublicationsResponse {
1977
+ /** Total amount of publications. */
1978
+ total?: number;
1979
+ }
1980
+ export interface GetTotalPostsRequest {
1981
+ /**
1982
+ * Language filter.
1983
+ *
1984
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
1985
+ * Pass a language to receive the total amount of posts in that specified language.
1986
+ * @format LANGUAGE_TAG
1987
+ */
1988
+ language?: string | null;
1989
+ }
1990
+ export interface GetTotalPostsResponse {
1991
+ /** Total amount of published posts. */
1992
+ total?: number;
1993
+ }
1994
+ export interface DomainEvent extends DomainEventBodyOneOf {
1995
+ createdEvent?: EntityCreatedEvent;
1996
+ updatedEvent?: EntityUpdatedEvent;
1997
+ deletedEvent?: EntityDeletedEvent;
1998
+ actionEvent?: ActionEvent;
1999
+ /**
2000
+ * Unique event ID.
2001
+ * Allows clients to ignore duplicate webhooks.
2002
+ */
2003
+ id?: string;
2004
+ /**
2005
+ * Assumes actions are also always typed to an entity_type
2006
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2007
+ */
2008
+ entityFqdn?: string;
2009
+ /**
2010
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2011
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2012
+ * Example: created/updated/deleted/started/completed/email_opened
2013
+ */
2014
+ slug?: string;
2015
+ /** ID of the entity associated with the event. */
2016
+ entityId?: string;
2017
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2018
+ eventTime?: Date | null;
2019
+ /**
2020
+ * Whether the event was triggered as a result of a privacy regulation application
2021
+ * (for example, GDPR).
2022
+ */
2023
+ triggeredByAnonymizeRequest?: boolean | null;
2024
+ /** If present, indicates the action that triggered the event. */
2025
+ originatedFrom?: string | null;
2026
+ /**
2027
+ * A sequence number defining the order of updates to the underlying entity.
2028
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2029
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2030
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2031
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2032
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2033
+ */
2034
+ entityEventSequence?: string | null;
2035
+ }
2036
+ /** @oneof */
2037
+ export interface DomainEventBodyOneOf {
2038
+ createdEvent?: EntityCreatedEvent;
2039
+ updatedEvent?: EntityUpdatedEvent;
2040
+ deletedEvent?: EntityDeletedEvent;
2041
+ actionEvent?: ActionEvent;
2042
+ }
2043
+ export interface EntityCreatedEvent {
2044
+ entityAsJson?: string;
2045
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
2046
+ restoreInfo?: RestoreInfo;
2047
+ }
2048
+ export interface RestoreInfo {
2049
+ deletedDate?: Date | null;
2050
+ }
2051
+ export interface EntityUpdatedEvent {
2052
+ /**
2053
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2054
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2055
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2056
+ */
2057
+ currentEntityAsJson?: string;
2058
+ }
2059
+ export interface EntityDeletedEvent {
2060
+ /** Entity that was deleted */
2061
+ deletedEntityAsJson?: string | null;
2062
+ }
2063
+ export interface ActionEvent {
2064
+ bodyAsJson?: string;
2065
+ }
2066
+ export interface MessageEnvelope {
2067
+ /**
2068
+ * App instance ID.
2069
+ * @format GUID
2070
+ */
2071
+ instanceId?: string | null;
2072
+ /**
2073
+ * Event type.
2074
+ * @maxLength 150
2075
+ */
2076
+ eventType?: string;
2077
+ /** The identification type and identity data. */
2078
+ identity?: IdentificationData;
2079
+ /** Stringify payload. */
2080
+ data?: string;
2081
+ }
2082
+ export interface IdentificationData extends IdentificationDataIdOneOf {
2083
+ /**
2084
+ * ID of a site visitor that has not logged in to the site.
2085
+ * @format GUID
2086
+ */
2087
+ anonymousVisitorId?: string;
2088
+ /**
2089
+ * ID of a site visitor that has logged in to the site.
2090
+ * @format GUID
2091
+ */
2092
+ memberId?: string;
2093
+ /**
2094
+ * ID of a Wix user (site owner, contributor, etc.).
2095
+ * @format GUID
2096
+ */
2097
+ wixUserId?: string;
2098
+ /**
2099
+ * ID of an app.
2100
+ * @format GUID
2101
+ */
2102
+ appId?: string;
2103
+ /** @readonly */
2104
+ identityType?: WebhookIdentityType;
2105
+ }
2106
+ /** @oneof */
2107
+ export interface IdentificationDataIdOneOf {
2108
+ /**
2109
+ * ID of a site visitor that has not logged in to the site.
2110
+ * @format GUID
2111
+ */
2112
+ anonymousVisitorId?: string;
2113
+ /**
2114
+ * ID of a site visitor that has logged in to the site.
2115
+ * @format GUID
2116
+ */
2117
+ memberId?: string;
2118
+ /**
2119
+ * ID of a Wix user (site owner, contributor, etc.).
2120
+ * @format GUID
2121
+ */
2122
+ wixUserId?: string;
2123
+ /**
2124
+ * ID of an app.
2125
+ * @format GUID
2126
+ */
2127
+ appId?: string;
2128
+ }
2129
+ export declare enum WebhookIdentityType {
2130
+ UNKNOWN = "UNKNOWN",
2131
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2132
+ MEMBER = "MEMBER",
2133
+ WIX_USER = "WIX_USER",
2134
+ APP = "APP"
2135
+ }
2136
+ export interface ListTemplatesRequest {
2137
+ /**
2138
+ * Filter post templates by given template category ids
2139
+ * @maxSize 50
2140
+ * @format GUID
2141
+ */
2142
+ categoryIds?: string[];
2143
+ /**
2144
+ * Filter post templates by provided language
2145
+ * @format LANGUAGE_TAG
2146
+ */
2147
+ language?: string | null;
2148
+ /** Returns post template categories when set to TRUE */
2149
+ listTemplateCategories?: boolean;
2150
+ /** Sort order by ascending/descending publish date. Default is ascending publish date sort */
2151
+ sort?: GetPostTemplatesSort;
2152
+ /** Pagination options. */
2153
+ paging?: BlogPaging;
2154
+ }
2155
+ export declare enum GetPostTemplatesSort {
2156
+ /** Sort by ascending publishing date. */
2157
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
2158
+ /** Sort by descending publishing date. */
2159
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC"
2160
+ }
2161
+ export interface BlogPaging {
2162
+ /**
2163
+ * Number of items to skip in the current sort order.
2164
+ *
2165
+ *
2166
+ * Default: `0`
2167
+ */
2168
+ offset?: number;
2169
+ /**
2170
+ * Number of items to return.
2171
+ *
2172
+ *
2173
+ * Default:`50`
2174
+ * @min 1
2175
+ * @max 100
2176
+ */
2177
+ limit?: number;
2178
+ /**
2179
+ * Pointer to the next or previous page in the list of results.
2180
+ * @maxLength 2000
2181
+ */
2182
+ cursor?: string | null;
2183
+ }
2184
+ export interface ListTemplatesResponse {
2185
+ /** Available post templates */
2186
+ postTemplates?: Post[];
2187
+ /** Details on the paged set of posts templates returned. */
2188
+ postTemplatesMetaData?: MetaData;
2189
+ /** Post template categories. This value is returned empty unless asked explicitly */
2190
+ templateCategories?: Category[];
2191
+ }
2192
+ export interface MetaData {
2193
+ /** Number of items returned in this response. */
2194
+ count?: number;
2195
+ /** Requested offset. */
2196
+ offset?: number;
2197
+ /** Total number of items that match the query. */
2198
+ total?: number;
2199
+ /**
2200
+ * Pointer to the next or previous page in the list of results.
2201
+ * @maxLength 2000
2202
+ */
2203
+ cursor?: string | null;
2204
+ }
2205
+ export interface Category {
2206
+ /**
2207
+ * Category ID.
2208
+ * @immutable
2209
+ * @maxLength 38
2210
+ */
2211
+ id?: string;
2212
+ /**
2213
+ * Category label. Displayed in the Category Menu.
2214
+ * @maxLength 35
2215
+ */
2216
+ label?: string;
2217
+ /**
2218
+ * Number of posts in the category.
2219
+ * @readonly
2220
+ */
2221
+ postCount?: number;
2222
+ /**
2223
+ * The `url` of the page that lists every post with the specified category.
2224
+ * @readonly
2225
+ */
2226
+ url?: PageUrl;
2227
+ /**
2228
+ * Category description.
2229
+ * @maxLength 500
2230
+ */
2231
+ description?: string | null;
2232
+ /**
2233
+ * Category title.
2234
+ * @maxLength 200
2235
+ * @deprecated Category title.
2236
+ * @targetRemovalDate 2025-07-16
2237
+ */
2238
+ title?: string;
2239
+ /**
2240
+ * Position of the category in the [Category Menu](https://support.wix.com/en/article/wix-blog-adding-and-customizing-a-category-menu).
2241
+ * Categories are displayed in ascending order. Categories with a position of `-1` appear at the end of the sequence.
2242
+ *
2243
+ * Default: `-1`
2244
+ */
2245
+ displayPosition?: number | null;
2246
+ /**
2247
+ * ID of the category's translations. All translations of a single category share the same `translationId`.
2248
+ * @format GUID
2249
+ */
2250
+ translationId?: string | null;
2251
+ /**
2252
+ * Category language.
2253
+ *
2254
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2255
+ * @immutable
2256
+ */
2257
+ language?: string | null;
2258
+ /**
2259
+ * Part of a category's URL that refers to a specific category. For example, the slug of `https:/example.com/blog/category/famous-cats` is `famous-cats`.
2260
+ * @maxLength 100
2261
+ */
2262
+ slug?: string;
2263
+ /** SEO data. */
2264
+ seoData?: SeoSchema;
2265
+ /** Category cover image. */
2266
+ coverImage?: Image;
2267
+ /**
2268
+ * Date and time the Category was last updated.
2269
+ * @readonly
2270
+ */
2271
+ updatedDate?: Date | null;
2272
+ }
2273
+ export interface CategoryTranslation {
2274
+ /**
2275
+ * Category ID.
2276
+ * @format GUID
2277
+ */
2278
+ id?: string;
2279
+ /**
2280
+ * Label displayed in the categories menu on the site.
2281
+ * @maxLength 100
2282
+ */
2283
+ label?: string | null;
2284
+ /**
2285
+ * Language of the category.
2286
+ * @format LANGUAGE_TAG
2287
+ */
2288
+ language?: string | null;
2289
+ /** URL of this category page. */
2290
+ url?: PageUrl;
2291
+ }
2292
+ export interface GetTemplateRequest {
2293
+ /**
2294
+ * Post template id
2295
+ * @format GUID
2296
+ */
2297
+ postTemplateId?: string;
2298
+ }
2299
+ export interface GetTemplateResponse {
2300
+ /** Post template */
2301
+ postTemplate?: Post;
2302
+ }
2303
+ export interface CreateDraftPostFromTemplateRequest {
2304
+ /**
2305
+ * Post template id
2306
+ * @format GUID
2307
+ */
2308
+ postTemplateId?: string;
2309
+ }
2310
+ export interface CreateDraftPostFromTemplateResponse {
2311
+ /** Created draft post */
2312
+ draftPost?: DraftPost;
2313
+ }
2314
+ export interface DraftPost {
2315
+ /**
2316
+ * Draft post ID.
2317
+ * @readonly
2318
+ * @maxLength 38
2319
+ */
2320
+ id?: string;
2321
+ /**
2322
+ * Draft post title.
2323
+ * @maxLength 200
2324
+ */
2325
+ title?: string;
2326
+ /**
2327
+ * Draft post excerpt.
2328
+ *
2329
+ * If no excerpt has been manually set, an excerpt is automatically generated from the post's text.
2330
+ * This can be retrieved using the `GENERATED_EXCERPT` fieldset.
2331
+ * @maxLength 500
2332
+ */
2333
+ excerpt?: string | null;
2334
+ /** Whether the draft post is marked as featured. */
2335
+ featured?: boolean | null;
2336
+ /**
2337
+ * Category IDs of the draft post.
2338
+ * @maxSize 10
2339
+ * @maxLength 38
2340
+ */
2341
+ categoryIds?: string[];
2342
+ /**
2343
+ * Draft post owner's member ID.
2344
+ * @format GUID
2345
+ */
2346
+ memberId?: string | null;
2347
+ /**
2348
+ * Hashtags in the post.
2349
+ * @maxSize 100
2350
+ * @maxLength 100
2351
+ */
2352
+ hashtags?: string[];
2353
+ /** Whether commenting on the draft post is enabled. */
2354
+ commentingEnabled?: boolean | null;
2355
+ /**
2356
+ * Estimated reading time of the draft post (calculated automatically).
2357
+ * @readonly
2358
+ */
2359
+ minutesToRead?: number;
2360
+ /** Image placed at the top of the blog page. */
2361
+ heroImage?: Image;
2362
+ /**
2363
+ * Tag IDs the draft post is tagged with.
2364
+ * @maxSize 30
2365
+ * @maxLength 38
2366
+ */
2367
+ tagIds?: string[];
2368
+ /**
2369
+ * IDs of posts related to this draft post.
2370
+ * @maxSize 3
2371
+ * @maxLength 38
2372
+ */
2373
+ relatedPostIds?: string[];
2374
+ /**
2375
+ * Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan. See the Pricing Plans API for more info.
2376
+ * @maxSize 100
2377
+ * @format GUID
2378
+ */
2379
+ pricingPlanIds?: string[];
2380
+ /**
2381
+ * ID of the draft post's translations.
2382
+ *
2383
+ * All translations of a single post share the same `translationId`.
2384
+ * Available only if the [Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) app is installed.
2385
+ * @format GUID
2386
+ */
2387
+ translationId?: string | null;
2388
+ /**
2389
+ * Language the draft post is written in.
2390
+ *
2391
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2392
+ * @format LANGUAGE_TAG
2393
+ */
2394
+ language?: string | null;
2395
+ /**
2396
+ * Draft Post rich content.
2397
+ *
2398
+ * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.gallery.video.audio.divider.linkButton.html.giphy.codeBlock.file.hashtag.lineSpacing.indent.link.textColor.textHighlight.heading.verticalEmbed.table.collapsibleList.poll" exampleid="72c23a25-524f-4f70-a260-4a2777b6f5d5">
2399
+ * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
2400
+ * </widget>
2401
+ */
2402
+ richContent?: RichContent;
2403
+ /**
2404
+ * Status of the draft post.
2405
+ * @readonly
2406
+ */
2407
+ status?: Status;
2408
+ /** Details of the draft post in review. Only relevant to posts submitted by guest writers. */
2409
+ moderationDetails?: ModerationDetails;
2410
+ /**
2411
+ * Indicates if there are changes made to the draft post that have not yet been published.
2412
+ * @readonly
2413
+ */
2414
+ hasUnpublishedChanges?: boolean;
2415
+ /**
2416
+ * Date the draft post was last edited.
2417
+ * @readonly
2418
+ */
2419
+ editedDate?: Date | null;
2420
+ /**
2421
+ * Date the draft post is scheduled to be published.
2422
+ * @readonly
2423
+ */
2424
+ scheduledPublishDate?: Date | null;
2425
+ /** Date the post was first published. */
2426
+ firstPublishedDate?: Date | null;
2427
+ /** SEO data. */
2428
+ seoData?: SeoSchema;
2429
+ /**
2430
+ * Draft post URL preview. What the URL will look like once the post is published.
2431
+ * @readonly
2432
+ */
2433
+ url?: PageUrl;
2434
+ /**
2435
+ * Date the draft post was first created.
2436
+ * @readonly
2437
+ */
2438
+ createdDate?: Date | null;
2439
+ /**
2440
+ * SEO slug.
2441
+ * @maxLength 100
2442
+ */
2443
+ seoSlug?: string | null;
2444
+ /** Post cover media. */
2445
+ media?: Media;
2446
+ /** Number of paragraphs to display in a paid content preview for non-paying users. */
2447
+ previewTextParagraph?: number | null;
2448
+ }
2449
+ export declare enum Origin {
2450
+ UNKNOWN = "UNKNOWN",
2451
+ /** Changed by admin */
2452
+ ADMIN = "ADMIN",
2453
+ /** Categories were changed */
2454
+ ADD_CATEGORIES = "ADD_CATEGORIES",
2455
+ /** Saved automatically */
2456
+ AUTO_SAVE = "AUTO_SAVE",
2457
+ /** Copied from template */
2458
+ COPY_TEMPLATE = "COPY_TEMPLATE",
2459
+ /** Imported */
2460
+ IMPORT = "IMPORT",
2461
+ /** Imported in bulk */
2462
+ IMPORT_BULK = "IMPORT_BULK",
2463
+ /** Imported with html import */
2464
+ IMPORT_HTML = "IMPORT_HTML",
2465
+ /** Patch import */
2466
+ IMPORT_PATCH = "IMPORT_PATCH",
2467
+ /** Changed language */
2468
+ LANGUAGE_CHANGE = "LANGUAGE_CHANGE",
2469
+ /** Saved manually */
2470
+ MANUAL_SAVE = "MANUAL_SAVE",
2471
+ /** Affected by migration */
2472
+ MIGRATION = "MIGRATION",
2473
+ /** Affected by moderation */
2474
+ MODERATION = "MODERATION",
2475
+ /** Moved to trash */
2476
+ MOVE_TO_TRASH = "MOVE_TO_TRASH",
2477
+ /** Pricing plans were changed */
2478
+ PRICING_PLANS_CHANGE = "PRICING_PLANS_CHANGE",
2479
+ /** Was provisioned */
2480
+ PROVISION = "PROVISION",
2481
+ /** Was published */
2482
+ PUBLISH = "PUBLISH",
2483
+ /** Owner was reassigned */
2484
+ REASSIGN_OWNER = "REASSIGN_OWNER",
2485
+ /** Was reblogged */
2486
+ REBLOG = "REBLOG",
2487
+ /** Was restored */
2488
+ RESTORE = "RESTORE",
2489
+ /** Reverted to draft */
2490
+ REVERT_TO_DRAFT = "REVERT_TO_DRAFT",
2491
+ /** Was translated */
2492
+ TRANSLATION = "TRANSLATION",
2493
+ /** Was unpublished */
2494
+ UNPUBLISH = "UNPUBLISH",
2495
+ /** Was unscheduled */
2496
+ UNSCHEDULE = "UNSCHEDULE",
2497
+ /** New edit session started which updated editing_session_id id */
2498
+ NEW_EDIT_SESSION = "NEW_EDIT_SESSION",
2499
+ /** Was scheduled by Later */
2500
+ SCHEDULING_SERVICE_SCHEDULE = "SCHEDULING_SERVICE_SCHEDULE",
2501
+ /** Was unscheduled by Later */
2502
+ SCHEDULING_SERVICE_UNSCHEDULE = "SCHEDULING_SERVICE_UNSCHEDULE",
2503
+ /** Was published by Later */
2504
+ SCHEDULING_SERVICE_PUBLISH = "SCHEDULING_SERVICE_PUBLISH",
2505
+ /** Was scheduled */
2506
+ SCHEDULE = "SCHEDULE",
2507
+ /** Was removed from moderation */
2508
+ REMOVE_FROM_MODERATION = "REMOVE_FROM_MODERATION",
2509
+ /** Was rejected from moderation */
2510
+ REJECT_FROM_MODERATION = "REJECT_FROM_MODERATION",
2511
+ /** Was approved in moderation */
2512
+ APPROVE_IN_MODERATION = "APPROVE_IN_MODERATION",
2513
+ /** Tag was deleted */
2514
+ DELETE_TAG = "DELETE_TAG",
2515
+ /** Post was pinned */
2516
+ PIN = "PIN",
2517
+ /** Post was unpinned */
2518
+ UNPIN = "UNPIN",
2519
+ /** Saved automatically by AI tool. */
2520
+ AI_AUTO_SAVE = "AI_AUTO_SAVE"
2521
+ }
2522
+ export declare enum Status {
2523
+ UNKNOWN = "UNKNOWN",
2524
+ /** Status indicating the draft post is published. */
2525
+ PUBLISHED = "PUBLISHED",
2526
+ /** Status indicating the draft post is unpublished. */
2527
+ UNPUBLISHED = "UNPUBLISHED",
2528
+ /** Status indicating the draft post is scheduled for publication. */
2529
+ SCHEDULED = "SCHEDULED",
2530
+ /** Status indicating the draft post is deleted. */
2531
+ DELETED = "DELETED",
2532
+ /** Status indicating the draft post is in review. */
2533
+ IN_REVIEW = "IN_REVIEW"
2534
+ }
2535
+ export interface DraftPostTranslation {
2536
+ /**
2537
+ * Post ID.
2538
+ * @format GUID
2539
+ */
2540
+ id?: string;
2541
+ /** Post status. */
2542
+ status?: Status;
2543
+ /**
2544
+ * Language the post is written in.
2545
+ * @format LANGUAGE_TAG
2546
+ */
2547
+ language?: string | null;
2548
+ /**
2549
+ * Post slug. For example, 'post-slug'.
2550
+ * @maxLength 100
2551
+ */
2552
+ slug?: string | null;
2553
+ /** SEO data. */
2554
+ seoData?: SeoSchema;
2555
+ /** Post URL. */
2556
+ url?: PageUrl;
2557
+ }
2558
+ export interface GetTotalLikesPerMemberRequest {
2559
+ /**
2560
+ * Member ID.
2561
+ * @format GUID
2562
+ */
2563
+ memberId?: string;
2564
+ }
2565
+ export interface GetTotalLikesPerMemberResponse {
2566
+ /** The total number of likes of the member. */
2567
+ total?: number;
2568
+ }
2569
+ export interface PostLiked extends PostLikedInitiatorOneOf {
2570
+ /**
2571
+ * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2572
+ * @format GUID
2573
+ */
2574
+ memberId?: string | null;
2575
+ /**
2576
+ * Visitor ID of person who liked the post when they are not logged in.
2577
+ * @format GUID
2578
+ */
2579
+ anonymousVisitorId?: string | null;
2580
+ /**
2581
+ * ID of the liked post.
2582
+ * @format GUID
2583
+ */
2584
+ postId?: string;
2585
+ }
2586
+ /** @oneof */
2587
+ export interface PostLikedInitiatorOneOf {
2588
+ /**
2589
+ * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2590
+ * @format GUID
2591
+ */
2592
+ memberId?: string | null;
2593
+ /**
2594
+ * Visitor ID of person who liked the post when they are not logged in.
2595
+ * @format GUID
2596
+ */
2597
+ anonymousVisitorId?: string | null;
2598
+ }
2599
+ export interface PostUnliked extends PostUnlikedInitiatorOneOf {
2600
+ /**
2601
+ * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2602
+ * @format GUID
2603
+ */
2604
+ memberId?: string | null;
2605
+ /**
2606
+ * Visitor ID of person who unliked the post when they are not logged in.
2607
+ * @format GUID
2608
+ */
2609
+ anonymousVisitorId?: string | null;
2610
+ /**
2611
+ * ID of the unliked post.
2612
+ * @format GUID
2613
+ */
2614
+ postId?: string;
2615
+ }
2616
+ /** @oneof */
2617
+ export interface PostUnlikedInitiatorOneOf {
2618
+ /**
2619
+ * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2620
+ * @format GUID
2621
+ */
2622
+ memberId?: string | null;
2623
+ /**
2624
+ * Visitor ID of person who unliked the post when they are not logged in.
2625
+ * @format GUID
2626
+ */
2627
+ anonymousVisitorId?: string | null;
2628
+ }
2629
+ export interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
2630
+ /**
2631
+ * Member ID of person who triggered the counter update
2632
+ * @format GUID
2633
+ */
2634
+ memberId?: string | null;
2635
+ /**
2636
+ * Visitor ID if person that liked the post is not logged in
2637
+ * @format GUID
2638
+ */
2639
+ anonymousVisitorId?: string | null;
2640
+ /**
2641
+ * ID of the post which counters were updated.
2642
+ * @format GUID
2643
+ */
2644
+ postId?: string;
2645
+ /** Field of the updated counter. */
2646
+ updatedCounterField?: Field;
2647
+ /** New counter value. */
2648
+ counter?: number;
2649
+ }
2650
+ /** @oneof */
2651
+ export interface PostCountersUpdatedInitiatorOneOf {
2652
+ /**
2653
+ * Member ID of person who triggered the counter update
2654
+ * @format GUID
2655
+ */
2656
+ memberId?: string | null;
2657
+ /**
2658
+ * Visitor ID if person that liked the post is not logged in
2659
+ * @format GUID
2660
+ */
2661
+ anonymousVisitorId?: string | null;
2662
+ }
2663
+ export declare enum Field {
2664
+ /** Undefined field. */
2665
+ UNKNOWN = "UNKNOWN",
2666
+ /** Total comments field. */
2667
+ TOTAL_COMMENTS = "TOTAL_COMMENTS",
2668
+ /** Like count field. */
2669
+ LIKE_COUNT = "LIKE_COUNT",
2670
+ /** View count field. */
2671
+ VIEW_COUNT = "VIEW_COUNT",
2672
+ /** Rating count field. */
2673
+ RATING_COUNT = "RATING_COUNT"
2674
+ }
2675
+ export interface PostOwnerChanged {
2676
+ }
2677
+ export interface InitialPostsCopied {
2678
+ /** Number of posts copied. */
2679
+ count?: number;
2680
+ }
2681
+ export interface GetPostRequest {
2682
+ /**
2683
+ * Post ID.
2684
+ * @minLength 1
2685
+ * @maxLength 38
2686
+ */
2687
+ postId: string;
2688
+ /**
2689
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2690
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2691
+ * only the post’s base fields are returned.
2692
+ * @maxSize 20
2693
+ */
2694
+ fieldsets?: PostFieldField[];
2695
+ }
2696
+ export declare enum PostFieldField {
2697
+ UNKNOWN = "UNKNOWN",
2698
+ /** Includes post URL when present. */
2699
+ URL = "URL",
2700
+ /** Includes post content text string when present. */
2701
+ CONTENT_TEXT = "CONTENT_TEXT",
2702
+ /** Includes post metrics when present. */
2703
+ METRICS = "METRICS",
2704
+ /** Includes SEO data. */
2705
+ SEO = "SEO",
2706
+ /** Includes post owner's contact ID. */
2707
+ CONTACT_ID = "CONTACT_ID",
2708
+ /** Includes post rich content. */
2709
+ RICH_CONTENT = "RICH_CONTENT",
2710
+ /** Includes post reference ID field. */
2711
+ REFERENCE_ID = "REFERENCE_ID"
2712
+ }
2713
+ export interface GetPostResponse {
2714
+ /** Retrieved post info. */
2715
+ post?: Post;
2716
+ }
2717
+ export interface GetPostBySlugRequest {
2718
+ /**
2719
+ * Slug of the post to retrieve.
2720
+ * @minLength 1
2721
+ * @maxLength 200
2722
+ */
2723
+ slug: string;
2724
+ /**
2725
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2726
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2727
+ * only the post’s base fields are returned.
2728
+ * @maxSize 20
2729
+ */
2730
+ fieldsets?: PostFieldField[];
2731
+ }
2732
+ export interface GetPostBySlugResponse {
2733
+ /** Retrieved post info. */
2734
+ post?: Post;
2735
+ }
2736
+ export interface ListPostsRequest {
2737
+ /**
2738
+ * Whether to return only featured posts.
2739
+ *
2740
+ * Default: `false`
2741
+ */
2742
+ featured?: boolean;
2743
+ /**
2744
+ * Hashtag filter.
2745
+ *
2746
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
2747
+ * If omitted, all posts with or without hashtags are returned.
2748
+ * @maxSize 100
2749
+ * @maxLength 100
2750
+ */
2751
+ hashtags?: string[];
2752
+ /**
2753
+ * Category filter.
2754
+ *
2755
+ * Pass an array of category IDs to return only posts with any of the provided categories.
2756
+ * If omitted, all posts with or without associated categories are returned.
2757
+ * @maxSize 50
2758
+ * @maxLength 38
2759
+ */
2760
+ categoryIds?: string[];
2761
+ /**
2762
+ * Tag filter.
2763
+ *
2764
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
2765
+ * If omitted, all posts with or without tags are returned.
2766
+ * @maxSize 50
2767
+ * @maxLength 38
2768
+ */
2769
+ tagIds?: string[];
2770
+ /**
2771
+ * Sorting options.
2772
+ *
2773
+ * Default: `FEED`
2774
+ */
2775
+ sort?: GetPostsSort;
2776
+ /** Pagination options. */
2777
+ paging?: BlogPaging;
2778
+ /**
2779
+ * Language filter.
2780
+ *
2781
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2782
+ * Pass a language to only receive posts that are in that language.
2783
+ * If omitted, posts in all languages are returned.
2784
+ * @format LANGUAGE_TAG
2785
+ */
2786
+ language?: string | null;
2787
+ /**
2788
+ * Post owner's member ID.
2789
+ * @format GUID
2790
+ */
2791
+ memberId?: string | null;
2792
+ /**
2793
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2794
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2795
+ * only the post’s base fields are returned.
2796
+ * @maxSize 20
2797
+ */
2798
+ fieldsets?: PostFieldField[];
2799
+ }
2800
+ export declare enum GetPostsSort {
2801
+ /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
2802
+ FEED = "FEED",
2803
+ /** Ordered by `firstPublishedDate` in ascending order. */
2804
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
2805
+ /** Ordered by `firstPublishedDate` in descending order. */
2806
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
2807
+ /** Ordered by total number of views in descending order. */
2808
+ VIEW_COUNT = "VIEW_COUNT",
2809
+ /** Ordered by total number of likes in descending order. */
2810
+ LIKE_COUNT = "LIKE_COUNT",
2811
+ /** Ordered by `title` in ascening order. */
2812
+ TITLE_ASC = "TITLE_ASC",
2813
+ /** Ordered by `title` in descending order. */
2814
+ TITLE_DESC = "TITLE_DESC"
2815
+ }
2816
+ export interface ListPostsResponse {
2817
+ /** List of retrieved posts. */
2818
+ posts?: Post[];
2819
+ /** Details on the paged set of results returned. */
2820
+ metaData?: MetaData;
2821
+ }
2822
+ export interface QueryPostsRequest {
2823
+ /** Query options. */
2824
+ query?: PlatformQuery;
2825
+ /**
2826
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2827
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2828
+ * only the post’s base fields are returned.
2829
+ * @maxSize 20
2830
+ */
2831
+ fieldsets?: PostFieldField[];
2832
+ }
2833
+ export interface Sorting {
2834
+ /**
2835
+ * Name of the field to sort by.
2836
+ * @maxLength 512
2837
+ */
2838
+ fieldName?: string;
2839
+ /** Sort order. */
2840
+ order?: SortOrder;
2841
+ }
2842
+ export declare enum SortOrder {
2843
+ ASC = "ASC",
2844
+ DESC = "DESC"
2845
+ }
2846
+ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
2847
+ /** Paging options to limit and skip the number of items. */
2848
+ paging?: Paging;
2849
+ /** 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`. */
2850
+ cursorPaging?: CursorPaging;
2851
+ /**
2852
+ * Filter object in the following format:
2853
+ * `"filter" : {
2854
+ * "fieldName1": "value1",
2855
+ * "fieldName2":{"$operator":"value2"}
2856
+ * }`
2857
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2858
+ */
2859
+ filter?: Record<string, any> | null;
2860
+ /**
2861
+ * Sort object in the following format:
2862
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2863
+ * @maxSize 3
2864
+ */
2865
+ sort?: Sorting[];
2866
+ }
2867
+ /** @oneof */
2868
+ export interface PlatformQueryPagingMethodOneOf {
2869
+ /** Paging options to limit and skip the number of items. */
2870
+ paging?: Paging;
2871
+ /** 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`. */
2872
+ cursorPaging?: CursorPaging;
2873
+ }
2874
+ export interface Paging {
2875
+ /**
2876
+ * Number of items to load.
2877
+ * @max 100
2878
+ */
2879
+ limit?: number | null;
2880
+ /** Number of items to skip in the current sort order. */
2881
+ offset?: number | null;
2882
+ }
2883
+ export interface CursorPaging {
2884
+ /**
2885
+ * Number of items to load.
2886
+ * @max 100
2887
+ */
2888
+ limit?: number | null;
2889
+ /**
2890
+ * Pointer to the next or previous page in the list of results.
2891
+ *
2892
+ * You can get the relevant cursor token
2893
+ * from the `pagingMetadata` object in the previous call's response.
2894
+ * Not relevant for the first request.
2895
+ * @maxLength 2000
2896
+ */
2897
+ cursor?: string | null;
2898
+ }
2899
+ export interface QueryPostsResponse {
2900
+ /** List of retrieved posts. */
2901
+ posts?: Post[];
2902
+ /** Details on the paged set of results returned. */
2903
+ pagingMetadata?: PagingMetadataV2;
2904
+ }
2905
+ export interface PagingMetadataV2 {
2906
+ /** Number of items returned in the response. */
2907
+ count?: number | null;
2908
+ /** Offset that was requested. */
2909
+ offset?: number | null;
2910
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2911
+ total?: number | null;
2912
+ /** Flag that indicates the server failed to calculate the `total` field. */
2913
+ tooManyToCount?: boolean | null;
2914
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2915
+ cursors?: Cursors;
2916
+ }
2917
+ export interface Cursors {
2918
+ /**
2919
+ * Cursor pointing to next page in the list of results.
2920
+ * @maxLength 2000
2921
+ */
2922
+ next?: string | null;
2923
+ /**
2924
+ * Cursor pointing to previous page in the list of results.
2925
+ * @maxLength 2000
2926
+ */
2927
+ prev?: string | null;
2928
+ }
2929
+ export interface GetPostMetricsRequest {
2930
+ /**
2931
+ * Post ID to retrieve metrics for.
2932
+ * @minLength 1
2933
+ * @maxLength 38
2934
+ */
2935
+ postId: string;
2936
+ }
2937
+ export interface GetPostMetricsResponse {
2938
+ /** Retrieved post metrics. */
2939
+ metrics?: Metrics;
2940
+ }
2941
+ export interface BulkGetPostMetricsRequest {
2942
+ /**
2943
+ * Post IDs.
2944
+ * @maxSize 500
2945
+ * @maxLength 38
2946
+ */
2947
+ postIds?: string[];
2948
+ }
2949
+ export interface BulkGetPostMetricsResponse {
2950
+ /** Map of post.id to metrics */
2951
+ metrics?: Record<string, Metrics>;
2952
+ }
2953
+ export interface ViewPostRequest {
2954
+ /**
2955
+ * Post ID.
2956
+ * @minLength 1
2957
+ * @maxLength 38
2958
+ */
2959
+ postId?: string;
2960
+ }
2961
+ export interface ViewPostResponse {
2962
+ /** Total number of post views */
2963
+ views?: number;
2964
+ }
2965
+ export interface LikePostRequest {
2966
+ /**
2967
+ * Post ID.
2968
+ * @minLength 1
2969
+ * @format GUID
2970
+ */
2971
+ postId?: string;
2972
+ /**
2973
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2974
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2975
+ * only the post’s base fields are returned.
2976
+ * @maxSize 20
2977
+ */
2978
+ fieldsets?: PostFieldField[];
2979
+ }
2980
+ export interface LikePostResponse {
2981
+ /** Post info. */
2982
+ post?: Post;
2983
+ }
2984
+ export interface UnlikePostRequest {
2985
+ /**
2986
+ * Post ID.
2987
+ * @minLength 1
2988
+ * @format GUID
2989
+ */
2990
+ postId?: string;
2991
+ /**
2992
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2993
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2994
+ * only the post’s base fields are returned.
2995
+ * @maxSize 20
2996
+ */
2997
+ fieldsets?: PostFieldField[];
2998
+ }
2999
+ export interface UnlikePostResponse {
3000
+ /** Post info. */
3001
+ post?: Post;
3002
+ }
3003
+ export interface PinPostRequest {
3004
+ /**
3005
+ * Post ID.
3006
+ * @minLength 1
3007
+ * @format GUID
3008
+ */
3009
+ postId?: string;
3010
+ /**
3011
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3012
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3013
+ * only the post’s base fields are returned.
3014
+ * @maxSize 20
3015
+ */
3016
+ fieldsets?: PostFieldField[];
3017
+ }
3018
+ export interface PinPostResponse {
3019
+ /** Post info. */
3020
+ post?: Post;
3021
+ }
3022
+ export interface UnpinPostRequest {
3023
+ /**
3024
+ * Post ID.
3025
+ * @minLength 1
3026
+ * @format GUID
3027
+ */
3028
+ postId?: string;
3029
+ /**
3030
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3031
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3032
+ * only the post’s base fields are returned.
3033
+ * @maxSize 20
3034
+ */
3035
+ fieldsets?: PostFieldField[];
3036
+ }
3037
+ export interface UnpinPostResponse {
3038
+ /** Post info. */
3039
+ post?: Post;
3040
+ }
3041
+ export interface ListPostsArchiveRequest {
3042
+ /**
3043
+ * Month
3044
+ * @min 1
3045
+ * @max 12
3046
+ */
3047
+ month?: number | null;
3048
+ /**
3049
+ * Year
3050
+ * @min 2000
3051
+ * @max 3000
3052
+ */
3053
+ year?: number;
3054
+ /**
3055
+ * Time zone
3056
+ * @maxLength 50
3057
+ */
3058
+ timeZone?: string | null;
3059
+ /** Pagination options. */
3060
+ paging?: BlogPaging;
3061
+ /**
3062
+ * Language filter.
3063
+ *
3064
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3065
+ * Pass a language to only receive posts that are in that language.
3066
+ * If omitted, posts in all languages are returned.
3067
+ * @format LANGUAGE_TAG
3068
+ */
3069
+ language?: string | null;
3070
+ /**
3071
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3072
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3073
+ * only the post’s base fields are returned.
3074
+ * @maxSize 20
3075
+ */
3076
+ fieldsets?: PostFieldField[];
3077
+ }
3078
+ export interface ListPostsArchiveResponse {
3079
+ /** List of posts. */
3080
+ posts?: Post[];
3081
+ /** Details on the paged set of results returned. */
3082
+ metaData?: MetaData;
3083
+ /** Details on the paged set of results returned. */
3084
+ pagingMetadata?: PagingMetadataV2;
3085
+ }
3086
+ export interface BulkGetPostReactionsRequest {
3087
+ /**
3088
+ * Post IDs.
3089
+ * @maxSize 500
3090
+ * @maxLength 38
3091
+ */
3092
+ postIds?: string[];
3093
+ }
3094
+ export interface BulkGetPostReactionsResponse {
3095
+ /** Map of post.id to reactions */
3096
+ reactionsMap?: Record<string, Reactions>;
3097
+ }
3098
+ export interface Reactions {
3099
+ /**
3100
+ * Is post liked by the current user
3101
+ * @readonly
3102
+ */
3103
+ liked?: boolean;
3104
+ }
3105
+ export interface ListDemoPostsRequest {
3106
+ /**
3107
+ * Whether to return only featured posts.
3108
+ *
3109
+ * Default: `false`
3110
+ */
3111
+ featured?: boolean;
3112
+ /**
3113
+ * Hashtag filter.
3114
+ *
3115
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3116
+ * If omitted, all posts with or without hashtags are returned.
3117
+ * @maxSize 100
3118
+ * @maxLength 100
3119
+ */
3120
+ hashtags?: string[];
3121
+ /**
3122
+ * Category filter.
3123
+ *
3124
+ * Pass an array of category IDs to return only posts with any of the provided categories.
3125
+ * If omitted, all posts with or without associated categories are returned.
3126
+ * @maxSize 50
3127
+ * @format GUID
3128
+ */
3129
+ categoryIds?: string[];
3130
+ /**
3131
+ * Tag filter.
3132
+ *
3133
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
3134
+ * If omitted, all posts with or without tags are returned.
3135
+ * @maxSize 50
3136
+ * @format GUID
3137
+ */
3138
+ tagIds?: string[];
3139
+ /**
3140
+ * Sorting options.
3141
+ *
3142
+ * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
3143
+ * - `VIEW_COUNT`: Ordered by total number of views in descending order.
3144
+ * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
3145
+ * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
3146
+ * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
3147
+ * - `TITLE_ASC`: Ordered by `title` in ascening order.
3148
+ * - `TITLE_DESC`: Ordered by `title` in descending order.
3149
+ * - `RATING`: reserved for internal use.
3150
+ *
3151
+ * Default: `FEED`
3152
+ */
3153
+ sort?: GetPostsSort;
3154
+ /** Pagination options. */
3155
+ paging?: BlogPaging;
3156
+ /**
3157
+ * __Deprecated.__ Use `fieldsets` instead.
3158
+ * This parameter will be removed on June 30, 2023.
3159
+ *
3160
+ * List of post fields to be included in the response.
3161
+ * @maxSize 20
3162
+ * @deprecated __Deprecated.__ Use `fieldsets` instead.
3163
+ * This parameter will be removed on June 30, 2023.
3164
+ *
3165
+ * List of post fields to be included in the response.
3166
+ * @replacedBy fieldsets
3167
+ * @targetRemovalDate 2024-06-30
3168
+ */
3169
+ fieldsToInclude?: PostFieldField[];
3170
+ /**
3171
+ * Language filter.
3172
+ *
3173
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3174
+ * Pass a language to only receive posts that are in that language.
3175
+ * If omitted, posts in all languages are returned.
3176
+ * @format LANGUAGE_TAG
3177
+ */
3178
+ language?: string | null;
3179
+ /**
3180
+ * Post owner's member ID.
3181
+ * @format GUID
3182
+ */
3183
+ memberId?: string | null;
3184
+ /**
3185
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3186
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3187
+ * only the post’s base fields are returned.
3188
+ * @maxSize 20
3189
+ */
3190
+ fieldsets?: PostFieldField[];
3191
+ }
3192
+ export interface ListDemoPostsResponse {
3193
+ /** List of posts. */
3194
+ posts?: Post[];
3195
+ /** Details on the paged set of results returned. */
3196
+ metaData?: MetaData;
3197
+ }
3198
+ export interface ConvertDraftJsToRichContentRequest {
3199
+ /** DraftJs content to convert to Rich content. */
3200
+ content?: Record<string, any> | null;
3201
+ }
3202
+ export interface ConvertDraftJsToRichContentResponse {
3203
+ /**
3204
+ * Rich content converted from DraftJs content.
3205
+ * @maxLength 2000000
3206
+ */
3207
+ richContent?: string;
3208
+ }
3209
+ export interface ConvertRichContentToDraftJsRequest {
3210
+ /**
3211
+ * Rich content to convert to DraftJs content.
3212
+ * @maxLength 2000000
3213
+ */
3214
+ richContent?: string;
3215
+ }
3216
+ export interface ConvertRichContentToDraftJsResponse {
3217
+ /** DraftJs content converted from Rich content. */
3218
+ content?: Record<string, any> | null;
3219
+ }
3220
+ export interface OldBlogMigratedEvent {
3221
+ /**
3222
+ * Instance id of new version of blog
3223
+ * @format GUID
3224
+ */
3225
+ newBlogInstanceId?: string;
3226
+ /**
3227
+ * Instance id of old version of blog
3228
+ * @format GUID
3229
+ */
3230
+ oldBlogInstanceId?: string;
3231
+ }