@wix/auto_sdk_blog_draft-posts 1.0.0

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