@wix/auto_sdk_blog_draft-posts 1.0.16 → 1.0.17

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