@wix/blog 1.0.113

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 (79) hide show
  1. package/build/cjs/index.d.ts +3 -0
  2. package/build/cjs/index.js +26 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/src/blog-v3-category.http.d.ts +50 -0
  5. package/build/cjs/src/blog-v3-category.http.js +421 -0
  6. package/build/cjs/src/blog-v3-category.http.js.map +1 -0
  7. package/build/cjs/src/blog-v3-category.public.d.ts +11 -0
  8. package/build/cjs/src/blog-v3-category.public.js +50 -0
  9. package/build/cjs/src/blog-v3-category.public.js.map +1 -0
  10. package/build/cjs/src/blog-v3-category.types.d.ts +391 -0
  11. package/build/cjs/src/blog-v3-category.types.js +22 -0
  12. package/build/cjs/src/blog-v3-category.types.js.map +1 -0
  13. package/build/cjs/src/blog-v3-category.universal.d.ts +582 -0
  14. package/build/cjs/src/blog-v3-category.universal.js +460 -0
  15. package/build/cjs/src/blog-v3-category.universal.js.map +1 -0
  16. package/build/cjs/src/blog-v3-post.http.d.ts +81 -0
  17. package/build/cjs/src/blog-v3-post.http.js +844 -0
  18. package/build/cjs/src/blog-v3-post.http.js.map +1 -0
  19. package/build/cjs/src/blog-v3-post.public.d.ts +11 -0
  20. package/build/cjs/src/blog-v3-post.public.js +86 -0
  21. package/build/cjs/src/blog-v3-post.public.js.map +1 -0
  22. package/build/cjs/src/blog-v3-post.types.d.ts +2227 -0
  23. package/build/cjs/src/blog-v3-post.types.js +464 -0
  24. package/build/cjs/src/blog-v3-post.types.js.map +1 -0
  25. package/build/cjs/src/blog-v3-post.universal.d.ts +2488 -0
  26. package/build/cjs/src/blog-v3-post.universal.js +935 -0
  27. package/build/cjs/src/blog-v3-post.universal.js.map +1 -0
  28. package/build/cjs/src/blog-v3-tag.http.d.ts +45 -0
  29. package/build/cjs/src/blog-v3-tag.http.js +385 -0
  30. package/build/cjs/src/blog-v3-tag.http.js.map +1 -0
  31. package/build/cjs/src/blog-v3-tag.public.d.ts +10 -0
  32. package/build/cjs/src/blog-v3-tag.public.js +44 -0
  33. package/build/cjs/src/blog-v3-tag.public.js.map +1 -0
  34. package/build/cjs/src/blog-v3-tag.types.d.ts +345 -0
  35. package/build/cjs/src/blog-v3-tag.types.js +15 -0
  36. package/build/cjs/src/blog-v3-tag.types.js.map +1 -0
  37. package/build/cjs/src/blog-v3-tag.universal.d.ts +512 -0
  38. package/build/cjs/src/blog-v3-tag.universal.js +390 -0
  39. package/build/cjs/src/blog-v3-tag.universal.js.map +1 -0
  40. package/build/es/index.d.ts +3 -0
  41. package/build/es/index.js +4 -0
  42. package/build/es/index.js.map +1 -0
  43. package/build/es/src/blog-v3-category.http.d.ts +50 -0
  44. package/build/es/src/blog-v3-category.http.js +411 -0
  45. package/build/es/src/blog-v3-category.http.js.map +1 -0
  46. package/build/es/src/blog-v3-category.public.d.ts +11 -0
  47. package/build/es/src/blog-v3-category.public.js +38 -0
  48. package/build/es/src/blog-v3-category.public.js.map +1 -0
  49. package/build/es/src/blog-v3-category.types.d.ts +391 -0
  50. package/build/es/src/blog-v3-category.types.js +19 -0
  51. package/build/es/src/blog-v3-category.types.js.map +1 -0
  52. package/build/es/src/blog-v3-category.universal.d.ts +582 -0
  53. package/build/es/src/blog-v3-category.universal.js +431 -0
  54. package/build/es/src/blog-v3-category.universal.js.map +1 -0
  55. package/build/es/src/blog-v3-post.http.d.ts +81 -0
  56. package/build/es/src/blog-v3-post.http.js +834 -0
  57. package/build/es/src/blog-v3-post.http.js.map +1 -0
  58. package/build/es/src/blog-v3-post.public.d.ts +11 -0
  59. package/build/es/src/blog-v3-post.public.js +38 -0
  60. package/build/es/src/blog-v3-post.public.js.map +1 -0
  61. package/build/es/src/blog-v3-post.types.d.ts +2227 -0
  62. package/build/es/src/blog-v3-post.types.js +461 -0
  63. package/build/es/src/blog-v3-post.types.js.map +1 -0
  64. package/build/es/src/blog-v3-post.universal.d.ts +2488 -0
  65. package/build/es/src/blog-v3-post.universal.js +906 -0
  66. package/build/es/src/blog-v3-post.universal.js.map +1 -0
  67. package/build/es/src/blog-v3-tag.http.d.ts +45 -0
  68. package/build/es/src/blog-v3-tag.http.js +376 -0
  69. package/build/es/src/blog-v3-tag.http.js.map +1 -0
  70. package/build/es/src/blog-v3-tag.public.d.ts +10 -0
  71. package/build/es/src/blog-v3-tag.public.js +33 -0
  72. package/build/es/src/blog-v3-tag.public.js.map +1 -0
  73. package/build/es/src/blog-v3-tag.types.d.ts +345 -0
  74. package/build/es/src/blog-v3-tag.types.js +12 -0
  75. package/build/es/src/blog-v3-tag.types.js.map +1 -0
  76. package/build/es/src/blog-v3-tag.universal.d.ts +512 -0
  77. package/build/es/src/blog-v3-tag.universal.js +362 -0
  78. package/build/es/src/blog-v3-tag.universal.js.map +1 -0
  79. package/package.json +37 -0
@@ -0,0 +1,2227 @@
1
+ export interface Post {
2
+ /**
3
+ * Post ID.
4
+ * @readonly
5
+ */
6
+ id?: string;
7
+ /** Post title. */
8
+ title?: string;
9
+ /**
10
+ * Post excerpt.
11
+ * Can be selected by a site contributor. By default, it is extracted from the content text's first characters.
12
+ *
13
+ * Max: 140 characters.
14
+ */
15
+ excerpt?: string;
16
+ /**
17
+ * The post's content in plain text.
18
+ * @readonly
19
+ */
20
+ contentText?: string | null;
21
+ /** Date the post was first published. */
22
+ firstPublishedDate?: Date;
23
+ /**
24
+ * Date the post was last published.
25
+ * @readonly
26
+ */
27
+ lastPublishedDate?: Date;
28
+ /** Post URL. */
29
+ url?: PageUrl;
30
+ /** Post slug. For example, 'post-slug'. */
31
+ slug?: string;
32
+ /** Whether the post is marked as featured. */
33
+ featured?: boolean;
34
+ /** Whether the post is pinned. If `true`, post is placed at the top of the post list. */
35
+ pinned?: boolean;
36
+ /** [Category IDs](https://www.wix.com/velo/reference/wix-blog-backend/category) of the post. */
37
+ categoryIds?: string[];
38
+ /** Post owner's [member ID](https://www.wix.com/velo/reference/wix-members-backend). */
39
+ memberId?: string;
40
+ /**
41
+ * Hashtags that are scraped from post content.
42
+ * @readonly
43
+ */
44
+ hashtags?: string[];
45
+ /** Whether commenting on the post is enabled. */
46
+ commentingEnabled?: boolean;
47
+ /** Estimated reading time (calculated automatically). */
48
+ minutesToRead?: number;
49
+ /** Image placed at the top of the blog page. */
50
+ heroImage?: Image;
51
+ /**
52
+ * IDs of [tags](https://www.wix.com/velo/reference/wix-blog-backend/tags) the post is tagged with.
53
+ * @readonly
54
+ */
55
+ tagIds?: string[];
56
+ /**
57
+ * IDs of posts related to the post.
58
+ * @readonly
59
+ */
60
+ relatedPostIds?: string[];
61
+ /**
62
+ * Pricing plan IDs.
63
+ * @readonly
64
+ */
65
+ pricingPlanIds?: string[];
66
+ /** ID of the translations of this post. */
67
+ translationId?: string | null;
68
+ /** Language the post is written in. 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
69
+ language?: string | null;
70
+ /** SEO data. */
71
+ seoData?: SeoSchema;
72
+ /** Post owner's [contact ID](https://www.wix.com/velo/reference/wix-crm-backend/contacts). */
73
+ contactId?: string | null;
74
+ /**
75
+ * Post rich content
76
+ * @readonly
77
+ */
78
+ richContent?: RichContent;
79
+ /**
80
+ * Post moderation details. Only relevant to posts submitted by [guest writers](https://support.wix.com/en/article/wix-blog-moderating-blog-posts-from-your-guest-writers).
81
+ * @readonly
82
+ */
83
+ moderationDetails?: ModerationDetails;
84
+ /** Post cover media. */
85
+ media?: Media;
86
+ }
87
+ export interface PageUrl {
88
+ /** The base URL. For premium sites, this will be the domain. For free sites, this would be site URL (e.g mysite.wixsite.com/mysite) */
89
+ base?: string;
90
+ /** The path to that page - e.g /product-page/a-product */
91
+ path?: string;
92
+ }
93
+ export interface CoverMedia extends CoverMediaMediaOneOf {
94
+ /** Whether cover media is displayed. */
95
+ displayed?: boolean;
96
+ /** Whether cover media is custom. If `false` the cover image is set to the first media item that appears in the content. */
97
+ custom?: boolean;
98
+ /** Image url. */
99
+ image?: Image;
100
+ /** Video url. */
101
+ video?: Video;
102
+ }
103
+ /** @oneof */
104
+ export interface CoverMediaMediaOneOf {
105
+ /** Image url. */
106
+ image?: Image;
107
+ /** Video url. */
108
+ video?: Video;
109
+ }
110
+ export interface Image {
111
+ /** WixMedia image ID. */
112
+ id?: string;
113
+ /** Image URL. */
114
+ url?: string;
115
+ /**
116
+ * Original image height.
117
+ * @readonly
118
+ */
119
+ height?: number;
120
+ /**
121
+ * Original image width.
122
+ * @readonly
123
+ */
124
+ width?: number;
125
+ /** Image alt text. */
126
+ altText?: string | null;
127
+ /**
128
+ * Image filename.
129
+ * @readonly
130
+ */
131
+ filename?: string | null;
132
+ }
133
+ /** Deprecated - use VideoV2 */
134
+ export interface Video {
135
+ /** WixMedia ID */
136
+ id?: string;
137
+ /** URL of video */
138
+ url?: string;
139
+ /**
140
+ * Original image height
141
+ * @readonly
142
+ */
143
+ height?: number;
144
+ /**
145
+ * Original image width
146
+ * @readonly
147
+ */
148
+ width?: number;
149
+ /** Video poster */
150
+ thumbnail?: Image;
151
+ }
152
+ export interface PostCountInfo {
153
+ /**
154
+ * Total number of post comments
155
+ * @readonly
156
+ */
157
+ comments?: number;
158
+ /**
159
+ * Total number of post likes
160
+ * @readonly
161
+ */
162
+ likes?: number;
163
+ /**
164
+ * Total number of post views
165
+ * @readonly
166
+ */
167
+ views?: number;
168
+ }
169
+ export interface Metrics {
170
+ /**
171
+ * Total number of post comments.
172
+ * @readonly
173
+ */
174
+ comments?: number;
175
+ /**
176
+ * Total number of post likes.
177
+ * @readonly
178
+ */
179
+ likes?: number;
180
+ /**
181
+ * Total number of post views.
182
+ * @readonly
183
+ */
184
+ views?: number;
185
+ /**
186
+ * Total number of post ratings.
187
+ * @readonly
188
+ */
189
+ ratings?: number;
190
+ /**
191
+ * Average rating of post from 1 to 5.
192
+ * @readonly
193
+ */
194
+ rating?: number;
195
+ }
196
+ /**
197
+ * 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.
198
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
199
+ * 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.
200
+ */
201
+ export interface SeoSchema {
202
+ /** SEO tags information. */
203
+ tags?: Tag[];
204
+ /** SEO general settings. */
205
+ settings?: Settings;
206
+ }
207
+ export interface Tag {
208
+ /** SEO tag type. Supported values: `title`, `meta`, `script`, `link`. */
209
+ type?: string;
210
+ /** SEO tag attributes/properties (name, content, rel, href). */
211
+ props?: Record<string, any> | null;
212
+ /** Tag meta data, e.g. {height: 300, width: 240}. */
213
+ meta?: Record<string, any> | null;
214
+ /** Tag inner content e.g. `<title> inner content </title>`. */
215
+ children?: string;
216
+ /** Whether the tag is a custom tag. */
217
+ custom?: boolean;
218
+ /** Whether the tag is disabled. */
219
+ disabled?: boolean;
220
+ }
221
+ export interface Settings {
222
+ /** disable auto creation of 301 redirects on slug changes (enabled by default). */
223
+ preventAutoRedirect?: boolean;
224
+ }
225
+ export interface RichContent {
226
+ /** Node objects representing a rich content document. */
227
+ nodes?: Node[];
228
+ /** Object metadata. */
229
+ metadata?: Metadata;
230
+ /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
231
+ documentStyle?: DocumentStyle;
232
+ }
233
+ export interface Node extends NodeDataOneOf {
234
+ /** 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. */
235
+ type?: NodeType;
236
+ /** Node ID. */
237
+ id?: string;
238
+ /** A list of child nodes. */
239
+ nodes?: Node[];
240
+ /** Padding and background color styling for the node. */
241
+ style?: NodeStyle;
242
+ /** Data for a button node. */
243
+ buttonData?: ButtonData;
244
+ /** Data for a code block node. */
245
+ codeBlockData?: CodeBlockData;
246
+ /** Data for a divider node. */
247
+ dividerData?: DividerData;
248
+ /** Data for a file node. */
249
+ fileData?: FileData;
250
+ /** Data for a gallery node. */
251
+ galleryData?: GalleryData;
252
+ /** Data for a GIF node. */
253
+ gifData?: GIFData;
254
+ /** Data for a heading node. */
255
+ headingData?: HeadingData;
256
+ /** Data for an embedded HTML node. */
257
+ htmlData?: HTMLData;
258
+ /** Data for an image node. */
259
+ imageData?: ImageData;
260
+ /** Data for a link preview node. */
261
+ linkPreviewData?: LinkPreviewData;
262
+ /** Data for a map node. */
263
+ mapData?: MapData;
264
+ /** Data for a paragraph node. */
265
+ paragraphData?: ParagraphData;
266
+ /** Data for a poll node. */
267
+ pollData?: PollData;
268
+ /** Data for a text node. Used to apply decorations to text. */
269
+ textData?: TextData;
270
+ /** Data for an app embed node. */
271
+ appEmbedData?: AppEmbedData;
272
+ /** Data for a video node. */
273
+ videoData?: VideoData;
274
+ /** Data for an oEmbed node. */
275
+ embedData?: EmbedData;
276
+ /** Data for a collapsible list node. */
277
+ collapsibleListData?: CollapsibleListData;
278
+ /** Data for a table node. */
279
+ tableData?: TableData;
280
+ /** Data for a table cell node. */
281
+ tableCellData?: TableCellData;
282
+ /** Data for a custon external node. */
283
+ externalData?: Record<string, any> | null;
284
+ /** Data for an audio node. */
285
+ audioData?: AudioData;
286
+ /** Data for an ordered list node. */
287
+ orderedListData?: OrderedListData;
288
+ /** Data for a bulleted list node. */
289
+ bulletedListData?: BulletedListData;
290
+ /** Data for a block quote node. */
291
+ blockquoteData?: BlockquoteData;
292
+ }
293
+ /** @oneof */
294
+ export interface NodeDataOneOf {
295
+ /** Data for a button node. */
296
+ buttonData?: ButtonData;
297
+ /** Data for a code block node. */
298
+ codeBlockData?: CodeBlockData;
299
+ /** Data for a divider node. */
300
+ dividerData?: DividerData;
301
+ /** Data for a file node. */
302
+ fileData?: FileData;
303
+ /** Data for a gallery node. */
304
+ galleryData?: GalleryData;
305
+ /** Data for a GIF node. */
306
+ gifData?: GIFData;
307
+ /** Data for a heading node. */
308
+ headingData?: HeadingData;
309
+ /** Data for an embedded HTML node. */
310
+ htmlData?: HTMLData;
311
+ /** Data for an image node. */
312
+ imageData?: ImageData;
313
+ /** Data for a link preview node. */
314
+ linkPreviewData?: LinkPreviewData;
315
+ /** Data for a map node. */
316
+ mapData?: MapData;
317
+ /** Data for a paragraph node. */
318
+ paragraphData?: ParagraphData;
319
+ /** Data for a poll node. */
320
+ pollData?: PollData;
321
+ /** Data for a text node. Used to apply decorations to text. */
322
+ textData?: TextData;
323
+ /** Data for an app embed node. */
324
+ appEmbedData?: AppEmbedData;
325
+ /** Data for a video node. */
326
+ videoData?: VideoData;
327
+ /** Data for an oEmbed node. */
328
+ embedData?: EmbedData;
329
+ /** Data for a collapsible list node. */
330
+ collapsibleListData?: CollapsibleListData;
331
+ /** Data for a table node. */
332
+ tableData?: TableData;
333
+ /** Data for a table cell node. */
334
+ tableCellData?: TableCellData;
335
+ /** Data for a custon external node. */
336
+ externalData?: Record<string, any> | null;
337
+ /** Data for an audio node. */
338
+ audioData?: AudioData;
339
+ /** Data for an ordered list node. */
340
+ orderedListData?: OrderedListData;
341
+ /** Data for a bulleted list node. */
342
+ bulletedListData?: BulletedListData;
343
+ /** Data for a block quote node. */
344
+ blockquoteData?: BlockquoteData;
345
+ }
346
+ export declare enum NodeType {
347
+ PARAGRAPH = "PARAGRAPH",
348
+ TEXT = "TEXT",
349
+ HEADING = "HEADING",
350
+ BULLETED_LIST = "BULLETED_LIST",
351
+ ORDERED_LIST = "ORDERED_LIST",
352
+ LIST_ITEM = "LIST_ITEM",
353
+ BLOCKQUOTE = "BLOCKQUOTE",
354
+ CODE_BLOCK = "CODE_BLOCK",
355
+ VIDEO = "VIDEO",
356
+ DIVIDER = "DIVIDER",
357
+ FILE = "FILE",
358
+ GALLERY = "GALLERY",
359
+ GIF = "GIF",
360
+ HTML = "HTML",
361
+ IMAGE = "IMAGE",
362
+ LINK_PREVIEW = "LINK_PREVIEW",
363
+ MAP = "MAP",
364
+ POLL = "POLL",
365
+ APP_EMBED = "APP_EMBED",
366
+ BUTTON = "BUTTON",
367
+ COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
368
+ TABLE = "TABLE",
369
+ EMBED = "EMBED",
370
+ COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
371
+ COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
372
+ COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
373
+ TABLE_CELL = "TABLE_CELL",
374
+ TABLE_ROW = "TABLE_ROW",
375
+ EXTERNAL = "EXTERNAL",
376
+ AUDIO = "AUDIO"
377
+ }
378
+ export interface NodeStyle {
379
+ /** The top padding value in pixels. */
380
+ paddingTop?: string | null;
381
+ /** The bottom padding value in pixels. */
382
+ paddingBottom?: string | null;
383
+ /** The background color as a hexadecimal value. */
384
+ backgroundColor?: string | null;
385
+ }
386
+ export interface ButtonData {
387
+ /** Styling for the button's container. */
388
+ containerData?: PluginContainerData;
389
+ /** The button type. */
390
+ type?: Type;
391
+ /** Styling for the button. */
392
+ styles?: Styles;
393
+ /** The text to display on the button. */
394
+ text?: string | null;
395
+ /** Button link details. */
396
+ link?: Link;
397
+ }
398
+ export interface Border {
399
+ /** Border width in pixels. */
400
+ width?: number | null;
401
+ /** Border radius in pixels. */
402
+ radius?: number | null;
403
+ }
404
+ export interface Colors {
405
+ /** The text color as a hexadecimal value. */
406
+ text?: string | null;
407
+ /** The border color as a hexadecimal value. */
408
+ border?: string | null;
409
+ /** The background color as a hexadecimal value. */
410
+ background?: string | null;
411
+ }
412
+ export interface PluginContainerData {
413
+ /** The width of the node when it's displayed. */
414
+ width?: PluginContainerDataWidth;
415
+ /** The node's alignment within its container. */
416
+ alignment?: PluginContainerDataAlignment;
417
+ /** Spoiler cover settings for the node. */
418
+ spoiler?: Spoiler;
419
+ /** The height of the node when it's displayed. */
420
+ height?: Height;
421
+ /** 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. */
422
+ textWrap?: boolean | null;
423
+ }
424
+ export declare enum WidthType {
425
+ /** Width matches the content width */
426
+ CONTENT = "CONTENT",
427
+ /** Small Width */
428
+ SMALL = "SMALL",
429
+ /** Width will match the original asset width */
430
+ ORIGINAL = "ORIGINAL",
431
+ /** coast-to-coast display */
432
+ FULL_WIDTH = "FULL_WIDTH"
433
+ }
434
+ export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
435
+ /**
436
+ * One of the following predefined width options:
437
+ * `CONTENT`: The width of the container matches the content width.
438
+ * `SMALL`: Small width.
439
+ * `ORIGINAL`: The width of the container matches the original asset width.
440
+ * `FULL_WIDTH`: Full width.
441
+ */
442
+ size?: WidthType;
443
+ /** A custom width value in pixels. */
444
+ custom?: string | null;
445
+ }
446
+ /** @oneof */
447
+ export interface PluginContainerDataWidthDataOneOf {
448
+ /**
449
+ * One of the following predefined width options:
450
+ * `CONTENT`: The width of the container matches the content width.
451
+ * `SMALL`: Small width.
452
+ * `ORIGINAL`: The width of the container matches the original asset width.
453
+ * `FULL_WIDTH`: Full width.
454
+ */
455
+ size?: WidthType;
456
+ /** A custom width value in pixels. */
457
+ custom?: string | null;
458
+ }
459
+ export declare enum PluginContainerDataAlignment {
460
+ /** Center Alignment */
461
+ CENTER = "CENTER",
462
+ /** Left Alignment */
463
+ LEFT = "LEFT",
464
+ /** Right Alignment */
465
+ RIGHT = "RIGHT"
466
+ }
467
+ export interface Spoiler {
468
+ /** Sets whether the spoiler cover is enabled for this node. */
469
+ enabled?: boolean | null;
470
+ /** The description displayed on top of the spoiler cover. */
471
+ description?: string | null;
472
+ /** The text for the button used to remove the spoiler cover. */
473
+ buttonText?: string | null;
474
+ }
475
+ export interface Height {
476
+ /** A custom height value in pixels. */
477
+ custom?: string | null;
478
+ }
479
+ export declare enum Type {
480
+ /** Regular link button */
481
+ LINK = "LINK",
482
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
483
+ ACTION = "ACTION"
484
+ }
485
+ export interface Styles {
486
+ /** Border attributes. */
487
+ border?: Border;
488
+ /** Color attributes. */
489
+ colors?: Colors;
490
+ }
491
+ export interface Link extends LinkDataOneOf {
492
+ /**
493
+ * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
494
+ * `SELF` - Default. Opens the linked document in the same frame as the link.
495
+ * `BLANK` - Opens the linked document in a new browser tab or window.
496
+ * `PARENT` - Opens the linked document in the link's parent frame.
497
+ * `TOP` - Opens the linked document in the full body of the link's browser tab or window.
498
+ */
499
+ target?: Target;
500
+ /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
501
+ rel?: Rel;
502
+ /** A serialized object used for a custom or external link panel. */
503
+ customData?: string | null;
504
+ /** The absolute URL for the linked document. */
505
+ url?: string;
506
+ /** The target node's ID. Used for linking to another node in this object. */
507
+ anchor?: string;
508
+ }
509
+ /** @oneof */
510
+ export interface LinkDataOneOf {
511
+ /** The absolute URL for the linked document. */
512
+ url?: string;
513
+ /** The target node's ID. Used for linking to another node in this object. */
514
+ anchor?: string;
515
+ }
516
+ export declare enum Target {
517
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
518
+ SELF = "SELF",
519
+ /** Opens the linked document in a new window or tab */
520
+ BLANK = "BLANK",
521
+ /** Opens the linked document in the parent frame */
522
+ PARENT = "PARENT",
523
+ /** Opens the linked document in the full body of the window */
524
+ TOP = "TOP"
525
+ }
526
+ export interface Rel {
527
+ /** Indicates to search engine crawlers not to follow the link. */
528
+ nofollow?: boolean | null;
529
+ /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. */
530
+ sponsored?: boolean | null;
531
+ /** 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. */
532
+ ugc?: boolean | null;
533
+ /** Indicates that this link protect referral information from being passed to the target website. */
534
+ noreferrer?: boolean | null;
535
+ }
536
+ export interface CodeBlockData {
537
+ /** Styling for the code block's text. */
538
+ textStyle?: TextStyle;
539
+ }
540
+ export interface TextStyle {
541
+ /** Text alignment. Defaults to `AUTO`. */
542
+ textAlignment?: TextAlignment;
543
+ /** A CSS `line-height` value for the text as a unitless ratio. */
544
+ lineHeight?: string | null;
545
+ }
546
+ export declare enum TextAlignment {
547
+ /** browser default, eqivalent to `initial` */
548
+ AUTO = "AUTO",
549
+ /** Left align */
550
+ LEFT = "LEFT",
551
+ /** Right align */
552
+ RIGHT = "RIGHT",
553
+ /** Center align */
554
+ CENTER = "CENTER",
555
+ /** 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 */
556
+ JUSTIFY = "JUSTIFY"
557
+ }
558
+ export interface DividerData {
559
+ /** Styling for the divider's container. */
560
+ containerData?: PluginContainerData;
561
+ /** Divider line style. */
562
+ lineStyle?: LineStyle;
563
+ /** Divider width. */
564
+ width?: Width;
565
+ /** Divider alignment. */
566
+ alignment?: Alignment;
567
+ }
568
+ export declare enum LineStyle {
569
+ /** Single Line */
570
+ SINGLE = "SINGLE",
571
+ /** Double Line */
572
+ DOUBLE = "DOUBLE",
573
+ /** Dashed Line */
574
+ DASHED = "DASHED",
575
+ /** Dotted Line */
576
+ DOTTED = "DOTTED"
577
+ }
578
+ export declare enum Width {
579
+ /** Large line */
580
+ LARGE = "LARGE",
581
+ /** Medium line */
582
+ MEDIUM = "MEDIUM",
583
+ /** Small line */
584
+ SMALL = "SMALL"
585
+ }
586
+ export declare enum Alignment {
587
+ /** Center alignment */
588
+ CENTER = "CENTER",
589
+ /** Left alignment */
590
+ LEFT = "LEFT",
591
+ /** Right alignment */
592
+ RIGHT = "RIGHT"
593
+ }
594
+ export interface FileData {
595
+ /** Styling for the file's container. */
596
+ containerData?: PluginContainerData;
597
+ /** The source for the file's data. */
598
+ src?: FileSource;
599
+ /** File name. */
600
+ name?: string | null;
601
+ /** File type. */
602
+ type?: string | null;
603
+ /** File size in KB. */
604
+ size?: number | null;
605
+ /** Settings for PDF files. */
606
+ pdfSettings?: PDFSettings;
607
+ /** File MIME type. */
608
+ mimeType?: string | null;
609
+ /** File path. */
610
+ path?: string | null;
611
+ }
612
+ export declare enum ViewMode {
613
+ /** No PDF view */
614
+ NONE = "NONE",
615
+ /** Full PDF view */
616
+ FULL = "FULL",
617
+ /** Mini PDF view */
618
+ MINI = "MINI"
619
+ }
620
+ export interface FileSource extends FileSourceDataOneOf {
621
+ /** Indicates whether the file's source is private. */
622
+ private?: boolean | null;
623
+ /** The absolute URL for the file's source. */
624
+ url?: string | null;
625
+ /** Custom ID. Use `id` instead. */
626
+ custom?: string | null;
627
+ /** An ID that's resolved to a URL by a resolver function. */
628
+ id?: string | null;
629
+ }
630
+ /** @oneof */
631
+ export interface FileSourceDataOneOf {
632
+ /** The absolute URL for the file's source. */
633
+ url?: string | null;
634
+ /** Custom ID. Use `id` instead. */
635
+ custom?: string | null;
636
+ /** An ID that's resolved to a URL by a resolver function. */
637
+ id?: string | null;
638
+ }
639
+ export interface PDFSettings {
640
+ /**
641
+ * PDF view mode. One of the following:
642
+ * `NONE` : The PDF isn't displayed.
643
+ * `FULL` : A full page view of the PDF is displayed.
644
+ * `MINI` : A mini view of the PDF is displayed.
645
+ */
646
+ viewMode?: ViewMode;
647
+ /** Sets whether the PDF download button is disabled. */
648
+ disableDownload?: boolean | null;
649
+ /** Sets whether the PDF print button is disabled. */
650
+ disablePrint?: boolean | null;
651
+ }
652
+ export interface GalleryData {
653
+ /** Styling for the gallery's container. */
654
+ containerData?: PluginContainerData;
655
+ /** The items in the gallery. */
656
+ items?: Item[];
657
+ /** Options for defining the gallery's appearance. */
658
+ options?: GalleryOptions;
659
+ /** Sets whether the gallery's expand button is disabled. */
660
+ disableExpand?: boolean | null;
661
+ /** Sets whether the gallery's download button is disabled. */
662
+ disableDownload?: boolean | null;
663
+ }
664
+ export interface V1Media {
665
+ /** The source for the media's data. */
666
+ src?: FileSource;
667
+ /** Media width in pixels. */
668
+ width?: number | null;
669
+ /** Media height in pixels. */
670
+ height?: number | null;
671
+ /** Media duration in seconds. Only relevant for audio and video files. */
672
+ duration?: number | null;
673
+ }
674
+ export interface ItemImage {
675
+ /** Image file details. */
676
+ media?: V1Media;
677
+ /** Link details for images that are links. */
678
+ link?: Link;
679
+ }
680
+ export interface ItemVideo {
681
+ /** Video file details. */
682
+ media?: V1Media;
683
+ /** Video thumbnail file details. */
684
+ thumbnail?: V1Media;
685
+ }
686
+ export interface Item extends ItemDataOneOf {
687
+ /** Item title. */
688
+ title?: string | null;
689
+ /** Item's alternative text. */
690
+ altText?: string | null;
691
+ /** An image item. */
692
+ image?: ItemImage;
693
+ /** A video item. */
694
+ video?: ItemVideo;
695
+ }
696
+ /** @oneof */
697
+ export interface ItemDataOneOf {
698
+ /** An image item. */
699
+ image?: ItemImage;
700
+ /** A video item. */
701
+ video?: ItemVideo;
702
+ }
703
+ export interface GalleryOptions {
704
+ /** Gallery layout. */
705
+ layout?: Layout;
706
+ /** Styling for gallery items. */
707
+ item?: ItemStyle;
708
+ /** Styling for gallery thumbnail images. */
709
+ thumbnails?: Thumbnails;
710
+ }
711
+ export declare enum LayoutType {
712
+ /** Collage type */
713
+ COLLAGE = "COLLAGE",
714
+ /** Masonry type */
715
+ MASONRY = "MASONRY",
716
+ /** Grid type */
717
+ GRID = "GRID",
718
+ /** Thumbnail type */
719
+ THUMBNAIL = "THUMBNAIL",
720
+ /** Slider type */
721
+ SLIDER = "SLIDER",
722
+ /** Slideshow type */
723
+ SLIDESHOW = "SLIDESHOW",
724
+ /** Panorama type */
725
+ PANORAMA = "PANORAMA",
726
+ /** Column type */
727
+ COLUMN = "COLUMN",
728
+ /** Magic type */
729
+ MAGIC = "MAGIC",
730
+ /** Fullsize images type */
731
+ FULLSIZE = "FULLSIZE"
732
+ }
733
+ export declare enum Orientation {
734
+ /** Rows Orientation */
735
+ ROWS = "ROWS",
736
+ /** Columns Orientation */
737
+ COLUMNS = "COLUMNS"
738
+ }
739
+ export declare enum Crop {
740
+ /** Crop to fill */
741
+ FILL = "FILL",
742
+ /** Crop to fit */
743
+ FIT = "FIT"
744
+ }
745
+ export declare enum ThumbnailsAlignment {
746
+ /** Top alignment */
747
+ TOP = "TOP",
748
+ /** Right alignment */
749
+ RIGHT = "RIGHT",
750
+ /** Bottom alignment */
751
+ BOTTOM = "BOTTOM",
752
+ /** Left alignment */
753
+ LEFT = "LEFT",
754
+ /** No thumbnail */
755
+ NONE = "NONE"
756
+ }
757
+ export interface Layout {
758
+ /** Gallery layout type. */
759
+ type?: LayoutType;
760
+ /** Sets whether horizontal scroll is enabled. */
761
+ horizontalScroll?: boolean | null;
762
+ /** Gallery orientation. */
763
+ orientation?: Orientation;
764
+ /** The number of columns to display on full size screens. */
765
+ numberOfColumns?: number | null;
766
+ /** The number of columns to display on mobile screens. */
767
+ mobileNumberOfColumns?: number | null;
768
+ }
769
+ export interface ItemStyle {
770
+ /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
771
+ targetSize?: number | null;
772
+ /** Item ratio */
773
+ ratio?: number | null;
774
+ /** Sets how item images are cropped. */
775
+ crop?: Crop;
776
+ /** The spacing between items in pixels. */
777
+ spacing?: number | null;
778
+ }
779
+ export interface Thumbnails {
780
+ /** Thumbnail alignment. */
781
+ placement?: ThumbnailsAlignment;
782
+ /** Spacing between thumbnails in pixels. */
783
+ spacing?: number | null;
784
+ }
785
+ export interface GIFData {
786
+ /** Styling for the GIF's container. */
787
+ containerData?: PluginContainerData;
788
+ /** The source of the full size GIF. */
789
+ original?: GIF;
790
+ /** The source of the downsized GIF. */
791
+ downsized?: GIF;
792
+ /** Height in pixels. */
793
+ height?: number;
794
+ /** Width in pixels. */
795
+ width?: number;
796
+ }
797
+ export interface GIF {
798
+ /** GIF format URL. */
799
+ gif?: string | null;
800
+ /** MP4 format URL. */
801
+ mp4?: string | null;
802
+ /** Thumbnail URL. */
803
+ still?: string | null;
804
+ }
805
+ export interface HeadingData {
806
+ /** Heading level from 1-6. */
807
+ level?: number;
808
+ /** Styling for the heading text. */
809
+ textStyle?: TextStyle;
810
+ /** Indentation level from 1-6. */
811
+ indentation?: number | null;
812
+ }
813
+ export interface HTMLData extends HTMLDataDataOneOf {
814
+ /** Styling for the HTML node's container. */
815
+ containerData?: PluginContainerData;
816
+ /** The type of HTML code. */
817
+ source?: Source;
818
+ /** The URL for the HTML code for the node. */
819
+ url?: string;
820
+ /** The HTML code for the node. */
821
+ html?: string;
822
+ /** Whether this is an AdSense element. Use `source` instead. */
823
+ isAdsense?: boolean | null;
824
+ }
825
+ /** @oneof */
826
+ export interface HTMLDataDataOneOf {
827
+ /** The URL for the HTML code for the node. */
828
+ url?: string;
829
+ /** The HTML code for the node. */
830
+ html?: string;
831
+ /** Whether this is an AdSense element. Use `source` instead. */
832
+ isAdsense?: boolean | null;
833
+ }
834
+ export declare enum Source {
835
+ HTML = "HTML",
836
+ ADSENSE = "ADSENSE"
837
+ }
838
+ export interface ImageData {
839
+ /** Styling for the image's container. */
840
+ containerData?: PluginContainerData;
841
+ /** Image file details. */
842
+ image?: V1Media;
843
+ /** Link details for images that are links. */
844
+ link?: Link;
845
+ /** Sets whether the image expands to full screen when clicked. */
846
+ disableExpand?: boolean | null;
847
+ /** Image's alternative text. */
848
+ altText?: string | null;
849
+ /** Image caption. */
850
+ caption?: string | null;
851
+ /** Sets whether the image's download button is disabled. */
852
+ disableDownload?: boolean | null;
853
+ }
854
+ export interface LinkPreviewData {
855
+ /** Styling for the link preview's container. */
856
+ containerData?: PluginContainerData;
857
+ /** Link details. */
858
+ link?: Link;
859
+ /** Preview title. */
860
+ title?: string | null;
861
+ /** Preview thumbnail URL. */
862
+ thumbnailUrl?: string | null;
863
+ /** Preview description. */
864
+ description?: string | null;
865
+ /** The preview content as HTML. */
866
+ html?: string | null;
867
+ }
868
+ export interface MapData {
869
+ /** Styling for the map's container. */
870
+ containerData?: PluginContainerData;
871
+ /** Map settings. */
872
+ mapSettings?: MapSettings;
873
+ }
874
+ export interface MapSettings {
875
+ /** The address to display on the map. */
876
+ address?: string | null;
877
+ /** Sets whether the map is draggable. */
878
+ draggable?: boolean | null;
879
+ /** Sets whether the location marker is visible. */
880
+ marker?: boolean | null;
881
+ /** Sets whether street view control is enabled. */
882
+ streetViewControl?: boolean | null;
883
+ /** Sets whether zoom control is enabled. */
884
+ zoomControl?: boolean | null;
885
+ /** Location latitude. */
886
+ lat?: number | null;
887
+ /** Location longitude. */
888
+ lng?: number | null;
889
+ /** Location name. */
890
+ locationName?: string | null;
891
+ /** Sets whether view mode control is enabled. */
892
+ viewModeControl?: boolean | null;
893
+ /** Initial zoom value. */
894
+ initialZoom?: number | null;
895
+ /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
896
+ mapType?: MapType;
897
+ }
898
+ export declare enum MapType {
899
+ /** Roadmap map type */
900
+ ROADMAP = "ROADMAP",
901
+ /** Satellite map type */
902
+ SATELITE = "SATELITE",
903
+ /** Hybrid map type */
904
+ HYBRID = "HYBRID",
905
+ /** Terrain map type */
906
+ TERRAIN = "TERRAIN"
907
+ }
908
+ export interface ParagraphData {
909
+ /** Styling for the paragraph text. */
910
+ textStyle?: TextStyle;
911
+ /** Indentation level from 1-6. */
912
+ indentation?: number | null;
913
+ }
914
+ export interface PollData {
915
+ /** Styling for the poll's container. */
916
+ containerData?: PluginContainerData;
917
+ /** Poll data. */
918
+ poll?: Poll;
919
+ /** Layout settings for the poll and voting options. */
920
+ layout?: PollDataLayout;
921
+ /** Styling for the poll and voting options. */
922
+ design?: Design;
923
+ }
924
+ export declare enum ViewRole {
925
+ /** Only Poll creator can view the results */
926
+ CREATOR = "CREATOR",
927
+ /** Anyone who voted can see the results */
928
+ VOTERS = "VOTERS",
929
+ /** Anyone can see the results, even if one didn't vote */
930
+ EVERYONE = "EVERYONE"
931
+ }
932
+ export declare enum VoteRole {
933
+ /** Logged in member */
934
+ SITE_MEMBERS = "SITE_MEMBERS",
935
+ /** Anyone */
936
+ ALL = "ALL"
937
+ }
938
+ export interface Permissions {
939
+ /** Sets who can view the poll results. */
940
+ view?: ViewRole;
941
+ /** Sets who can vote. */
942
+ vote?: VoteRole;
943
+ /** Sets whether one voter can vote multiple times. */
944
+ allowMultipleVotes?: boolean | null;
945
+ }
946
+ export interface Option {
947
+ /** Option ID. */
948
+ id?: string | null;
949
+ /** Option title. */
950
+ title?: string | null;
951
+ /** The image displayed with the option. */
952
+ image?: V1Media;
953
+ }
954
+ export interface PollSettings {
955
+ /** Permissions settings for voting. */
956
+ permissions?: Permissions;
957
+ /** Sets whether voters are displayed in the vote results. */
958
+ showVoters?: boolean | null;
959
+ /** Sets whether the vote count is displayed. */
960
+ showVotesCount?: boolean | null;
961
+ }
962
+ export declare enum PollLayoutType {
963
+ /** List */
964
+ LIST = "LIST",
965
+ /** Grid */
966
+ GRID = "GRID"
967
+ }
968
+ export declare enum PollLayoutDirection {
969
+ /** Left-to-right */
970
+ LTR = "LTR",
971
+ /** Right-to-left */
972
+ RTL = "RTL"
973
+ }
974
+ export interface PollLayout {
975
+ /** The layout for displaying the voting options. */
976
+ type?: PollLayoutType;
977
+ /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
978
+ direction?: PollLayoutDirection;
979
+ /** Sets whether to display the main poll image. */
980
+ enableImage?: boolean | null;
981
+ }
982
+ export interface OptionLayout {
983
+ /** Sets whether to display option images. */
984
+ enableImage?: boolean | null;
985
+ }
986
+ export declare enum BackgroundType {
987
+ /** Color background type */
988
+ COLOR = "COLOR",
989
+ /** Image background type */
990
+ IMAGE = "IMAGE",
991
+ /** Gradiant background type */
992
+ GRADIENT = "GRADIENT"
993
+ }
994
+ export interface Gradient {
995
+ /** The gradient angle in degrees. */
996
+ angle?: number | null;
997
+ /** The start color as a hexademical value. */
998
+ startColor?: string | null;
999
+ /** The end color as a hexademical value. */
1000
+ lastColor?: string | null;
1001
+ }
1002
+ export interface Background extends BackgroundBackgroundOneOf {
1003
+ /** Background type. For each option, include the relevant details. */
1004
+ type?: BackgroundType;
1005
+ /** The background color as a hexademical value. */
1006
+ color?: string | null;
1007
+ /** An image to use for the background. */
1008
+ image?: V1Media;
1009
+ /** Details for a gradient background. */
1010
+ gradient?: Gradient;
1011
+ }
1012
+ /** @oneof */
1013
+ export interface BackgroundBackgroundOneOf {
1014
+ /** The background color as a hexademical value. */
1015
+ color?: string | null;
1016
+ /** An image to use for the background. */
1017
+ image?: V1Media;
1018
+ /** Details for a gradient background. */
1019
+ gradient?: Gradient;
1020
+ }
1021
+ export interface PollDesign {
1022
+ /** Background styling. */
1023
+ background?: Background;
1024
+ /** Border radius in pixels. */
1025
+ borderRadius?: number | null;
1026
+ }
1027
+ export interface OptionDesign {
1028
+ /** Border radius in pixels. */
1029
+ borderRadius?: number | null;
1030
+ }
1031
+ export interface Poll {
1032
+ /** Poll ID. */
1033
+ id?: string | null;
1034
+ /** Poll title. */
1035
+ title?: string | null;
1036
+ /** Poll creator ID. */
1037
+ creatorId?: string | null;
1038
+ /** Main poll image. */
1039
+ image?: V1Media;
1040
+ /** Voting options. */
1041
+ options?: Option[];
1042
+ /** The poll's permissions and display settings. */
1043
+ settings?: PollSettings;
1044
+ }
1045
+ export interface PollDataLayout {
1046
+ /** Poll layout settings. */
1047
+ poll?: PollLayout;
1048
+ /** Voting otpions layout settings. */
1049
+ options?: OptionLayout;
1050
+ }
1051
+ export interface Design {
1052
+ /** Styling for the poll. */
1053
+ poll?: PollDesign;
1054
+ /** Styling for voting options. */
1055
+ options?: OptionDesign;
1056
+ }
1057
+ export interface TextData {
1058
+ /** The text to apply decorations to. */
1059
+ text?: string;
1060
+ /** The decorations to apply. */
1061
+ decorations?: Decoration[];
1062
+ }
1063
+ /** Adds appearence changes to text */
1064
+ export interface Decoration extends DecorationDataOneOf {
1065
+ /** The type of decoration to apply. */
1066
+ type?: DecorationType;
1067
+ /** Data for an anchor link decoration. */
1068
+ anchorData?: AnchorData;
1069
+ /** Data for a color decoration. */
1070
+ colorData?: ColorData;
1071
+ /** Data for an external link decoration. */
1072
+ linkData?: LinkData;
1073
+ /** Data for a mention decoration. */
1074
+ mentionData?: MentionData;
1075
+ /** Data for a font size decoration. */
1076
+ fontSizeData?: FontSizeData;
1077
+ /** Font weight for a bold decoration. */
1078
+ fontWeightValue?: number | null;
1079
+ /** Data for an italic decoration. */
1080
+ italicData?: boolean | null;
1081
+ /** Data for an underline decoration. */
1082
+ underlineData?: boolean | null;
1083
+ }
1084
+ /** @oneof */
1085
+ export interface DecorationDataOneOf {
1086
+ /** Data for an anchor link decoration. */
1087
+ anchorData?: AnchorData;
1088
+ /** Data for a color decoration. */
1089
+ colorData?: ColorData;
1090
+ /** Data for an external link decoration. */
1091
+ linkData?: LinkData;
1092
+ /** Data for a mention decoration. */
1093
+ mentionData?: MentionData;
1094
+ /** Data for a font size decoration. */
1095
+ fontSizeData?: FontSizeData;
1096
+ /** Font weight for a bold decoration. */
1097
+ fontWeightValue?: number | null;
1098
+ /** Data for an italic decoration. */
1099
+ italicData?: boolean | null;
1100
+ /** Data for an underline decoration. */
1101
+ underlineData?: boolean | null;
1102
+ }
1103
+ export declare enum DecorationType {
1104
+ BOLD = "BOLD",
1105
+ ITALIC = "ITALIC",
1106
+ UNDERLINE = "UNDERLINE",
1107
+ SPOILER = "SPOILER",
1108
+ ANCHOR = "ANCHOR",
1109
+ MENTION = "MENTION",
1110
+ LINK = "LINK",
1111
+ COLOR = "COLOR",
1112
+ FONT_SIZE = "FONT_SIZE",
1113
+ EXTERNAL = "EXTERNAL"
1114
+ }
1115
+ export interface AnchorData {
1116
+ /** The target node's ID. */
1117
+ anchor?: string;
1118
+ }
1119
+ export interface ColorData {
1120
+ /** The text's background color as a hexadecimal value. */
1121
+ background?: string | null;
1122
+ /** The text's foreground color as a hexadecimal value. */
1123
+ foreground?: string | null;
1124
+ }
1125
+ export interface LinkData {
1126
+ /** Link details. */
1127
+ link?: Link;
1128
+ }
1129
+ export interface MentionData {
1130
+ /** The mentioned user's name. */
1131
+ name?: string;
1132
+ /** The version of the user's name that appears after the `@` character in the mention. */
1133
+ slug?: string;
1134
+ /** Mentioned user's ID. */
1135
+ id?: string | null;
1136
+ }
1137
+ export interface FontSizeData {
1138
+ /** The units used for the font size. */
1139
+ unit?: FontType;
1140
+ /** Font size value. */
1141
+ value?: number | null;
1142
+ }
1143
+ export declare enum FontType {
1144
+ PX = "PX",
1145
+ EM = "EM"
1146
+ }
1147
+ export interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1148
+ /** The type of Wix App content being embedded. */
1149
+ type?: AppType;
1150
+ /** The ID of the embedded content. */
1151
+ itemId?: string | null;
1152
+ /** The name of the embedded content. */
1153
+ name?: string | null;
1154
+ /** Deprecated: Use `image` instead. */
1155
+ imageSrc?: string | null;
1156
+ /** The URL for the embedded content. */
1157
+ url?: string | null;
1158
+ /** An image for the embedded content. */
1159
+ image?: V1Media;
1160
+ /** Data for embedded Wix Bookings content. */
1161
+ bookingData?: BookingData;
1162
+ /** Data for embedded Wix Events content. */
1163
+ eventData?: EventData;
1164
+ }
1165
+ /** @oneof */
1166
+ export interface AppEmbedDataAppDataOneOf {
1167
+ /** Data for embedded Wix Bookings content. */
1168
+ bookingData?: BookingData;
1169
+ /** Data for embedded Wix Events content. */
1170
+ eventData?: EventData;
1171
+ }
1172
+ export declare enum AppType {
1173
+ PRODUCT = "PRODUCT",
1174
+ EVENT = "EVENT",
1175
+ BOOKING = "BOOKING"
1176
+ }
1177
+ export interface BookingData {
1178
+ /** Booking duration in minutes. */
1179
+ durations?: string | null;
1180
+ }
1181
+ export interface EventData {
1182
+ /** Event schedule. */
1183
+ scheduling?: string | null;
1184
+ /** Event location. */
1185
+ location?: string | null;
1186
+ }
1187
+ export interface VideoData {
1188
+ /** Styling for the video's container. */
1189
+ containerData?: PluginContainerData;
1190
+ /** Video details. */
1191
+ video?: V1Media;
1192
+ /** Video thumbnail details. */
1193
+ thumbnail?: V1Media;
1194
+ /** Sets whether the video's download button is disabled. */
1195
+ disableDownload?: boolean | null;
1196
+ /** Video title. */
1197
+ title?: string | null;
1198
+ }
1199
+ export interface EmbedData {
1200
+ /** Styling for the oEmbed node's container. */
1201
+ containerData?: PluginContainerData;
1202
+ /** An [oEmbed](https://www.oembed.com) object. */
1203
+ oembed?: Oembed;
1204
+ /** Origin asset source. */
1205
+ src?: string | null;
1206
+ }
1207
+ export interface Oembed {
1208
+ /** The resource type. */
1209
+ type?: string | null;
1210
+ /** The width of the resource specified in the `url` property in pixels. */
1211
+ width?: number | null;
1212
+ /** The height of the resource specified in the `url` property in pixels. */
1213
+ height?: number | null;
1214
+ /** Resource title. */
1215
+ title?: string | null;
1216
+ /** The source URL for the resource. */
1217
+ url?: string | null;
1218
+ /** HTML for embedding a video player. The HTML should have no padding or margins. */
1219
+ html?: string | null;
1220
+ /** The name of the author or owner of the resource. */
1221
+ authorName?: string | null;
1222
+ /** The URL for the author or owner of the resource. */
1223
+ authorUrl?: string | null;
1224
+ /** The name of the resource provider. */
1225
+ providerName?: string | null;
1226
+ /** The URL for the resource provider. */
1227
+ providerUrl?: string | null;
1228
+ /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
1229
+ thumbnailUrl?: string | null;
1230
+ /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
1231
+ thumbnailWidth?: string | null;
1232
+ /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
1233
+ thumbnailHeight?: string | null;
1234
+ /** The URL for an embedded viedo. */
1235
+ videoUrl?: string | null;
1236
+ /** The oEmbed version number. This value must be `1.0`. */
1237
+ version?: string | null;
1238
+ }
1239
+ export interface CollapsibleListData {
1240
+ /** Styling for the collapsible list's container. */
1241
+ containerData?: PluginContainerData;
1242
+ /** If `true`, only one item can be expanded at a time. */
1243
+ expandOnlyOne?: boolean | null;
1244
+ /** Sets which items are expanded when the page loads. */
1245
+ initialExpandedItems?: InitialExpandedItems;
1246
+ /** The direction of the text in the list. Either left-to-right or right-to-left. */
1247
+ direction?: Direction;
1248
+ /** If `true`, The collapsible item will appear in search results as an FAQ. */
1249
+ isQapageData?: boolean | null;
1250
+ }
1251
+ export declare enum InitialExpandedItems {
1252
+ /** First item will be expended initally */
1253
+ FIRST = "FIRST",
1254
+ /** All items will expended initally */
1255
+ ALL = "ALL",
1256
+ /** All items collapsed initally */
1257
+ NONE = "NONE"
1258
+ }
1259
+ export declare enum Direction {
1260
+ /** Left-to-right */
1261
+ LTR = "LTR",
1262
+ /** Right-to-left */
1263
+ RTL = "RTL"
1264
+ }
1265
+ export interface TableData {
1266
+ /** Styling for the table's container. */
1267
+ containerData?: PluginContainerData;
1268
+ /** The table's dimensions. */
1269
+ dimensions?: Dimensions;
1270
+ /** Deprecated: Use `rowHeader` and `columnHeader` instead. */
1271
+ header?: boolean | null;
1272
+ /** Sets whether the table's first row is a header. */
1273
+ rowHeader?: boolean | null;
1274
+ /** Sets whether the table's first column is a header. */
1275
+ columnHeader?: boolean | null;
1276
+ }
1277
+ export interface Dimensions {
1278
+ /** An array representing relative width of each column in relation to the other columns. */
1279
+ colsWidthRatio?: number[];
1280
+ /** An array representing the height of each row in pixels. */
1281
+ rowsHeight?: number[];
1282
+ /** An array representing the minimum width of each column in pixels. */
1283
+ colsMinWidth?: number[];
1284
+ }
1285
+ export interface TableCellData {
1286
+ /** Styling for the cell's background color and text alignment. */
1287
+ cellStyle?: CellStyle;
1288
+ /** The cell's border colors. */
1289
+ borderColors?: BorderColors;
1290
+ }
1291
+ export declare enum VerticalAlignment {
1292
+ /** Top alignment */
1293
+ TOP = "TOP",
1294
+ /** Middle alignment */
1295
+ MIDDLE = "MIDDLE",
1296
+ /** Bottom alignment */
1297
+ BOTTOM = "BOTTOM"
1298
+ }
1299
+ export interface CellStyle {
1300
+ /** Vertical alignment for the cell's text. */
1301
+ verticalAlignment?: VerticalAlignment;
1302
+ /** Cell background color as a hexadecimal value. */
1303
+ backgroundColor?: string | null;
1304
+ }
1305
+ export interface BorderColors {
1306
+ /** Left border color as a hexadecimal value. */
1307
+ left?: string | null;
1308
+ /** Right border color as a hexadecimal value. */
1309
+ right?: string | null;
1310
+ /** Top border color as a hexadecimal value. */
1311
+ top?: string | null;
1312
+ /** Bottom border color as a hexadecimal value. */
1313
+ bottom?: string | null;
1314
+ }
1315
+ /**
1316
+ * `NullValue` is a singleton enumeration to represent the null value for the
1317
+ * `Value` type union.
1318
+ *
1319
+ * The JSON representation for `NullValue` is JSON `null`.
1320
+ */
1321
+ export declare enum NullValue {
1322
+ /** Null value. */
1323
+ NULL_VALUE = "NULL_VALUE"
1324
+ }
1325
+ /**
1326
+ * `ListValue` is a wrapper around a repeated field of values.
1327
+ *
1328
+ * The JSON representation for `ListValue` is JSON array.
1329
+ */
1330
+ export interface ListValue {
1331
+ /** Repeated field of dynamically typed values. */
1332
+ values?: any[];
1333
+ }
1334
+ export interface AudioData {
1335
+ /** Styling for the audio node's container. */
1336
+ containerData?: PluginContainerData;
1337
+ /** Audio file details. */
1338
+ audio?: V1Media;
1339
+ /** Sets whether the audio node's download button is disabled. */
1340
+ disableDownload?: boolean | null;
1341
+ /** Cover image. */
1342
+ coverImage?: V1Media;
1343
+ /** Track name. */
1344
+ name?: string | null;
1345
+ /** Author name. */
1346
+ authorName?: string | null;
1347
+ /** An HTML version of the audio node. */
1348
+ html?: string | null;
1349
+ }
1350
+ export interface OrderedListData {
1351
+ /** Indentation level. */
1352
+ indentation?: number;
1353
+ }
1354
+ export interface BulletedListData {
1355
+ /** Indentation level. */
1356
+ indentation?: number;
1357
+ }
1358
+ export interface BlockquoteData {
1359
+ /** Indentation level. */
1360
+ indentation?: number;
1361
+ }
1362
+ export interface Metadata {
1363
+ /** Schema version. */
1364
+ version?: number;
1365
+ /**
1366
+ * When the object was created.
1367
+ * @readonly
1368
+ */
1369
+ createdTimestamp?: Date;
1370
+ /** When the object was most recently updated. */
1371
+ updatedTimestamp?: Date;
1372
+ /** Object ID. */
1373
+ id?: string | null;
1374
+ }
1375
+ export interface DocumentStyle {
1376
+ /** Styling for H1 nodes. */
1377
+ headerOne?: TextNodeStyle;
1378
+ /** Styling for H2 nodes. */
1379
+ headerTwo?: TextNodeStyle;
1380
+ /** Styling for H3 nodes. */
1381
+ headerThree?: TextNodeStyle;
1382
+ /** Styling for H4 nodes. */
1383
+ headerFour?: TextNodeStyle;
1384
+ /** Styling for H5 nodes. */
1385
+ headerFive?: TextNodeStyle;
1386
+ /** Styling for H6 nodes. */
1387
+ headerSix?: TextNodeStyle;
1388
+ /** Styling for paragraph nodes. */
1389
+ paragraph?: TextNodeStyle;
1390
+ /** Styling for block quote nodes. */
1391
+ blockquote?: TextNodeStyle;
1392
+ /** Styling for code block nodes. */
1393
+ codeBlock?: TextNodeStyle;
1394
+ }
1395
+ export interface TextNodeStyle {
1396
+ /** The decorations to apply to the node. */
1397
+ decorations?: Decoration[];
1398
+ /** Padding and background color for the node. */
1399
+ nodeStyle?: NodeStyle;
1400
+ /** Line height for text in the node. */
1401
+ lineHeight?: string | null;
1402
+ }
1403
+ export interface ModerationDetails {
1404
+ /** Member Id of the person submitting the post to moderation. */
1405
+ submittedBy?: string;
1406
+ /** Date of post submission to moderation. */
1407
+ submittedDate?: Date;
1408
+ /** Status indicating whether the submission was approved or rejected by the moderator. */
1409
+ status?: ModerationStatusStatus;
1410
+ /** Member Id of the person who approved or rejected the post. */
1411
+ moderatedBy?: string | null;
1412
+ /** Date of post approval or rejection from moderation. */
1413
+ moderationDate?: Date;
1414
+ }
1415
+ export declare enum ModerationStatusStatus {
1416
+ UNKNOWN = "UNKNOWN",
1417
+ APPROVED = "APPROVED",
1418
+ REJECTED = "REJECTED"
1419
+ }
1420
+ export interface Media extends MediaMediaOneOf {
1421
+ /** Whether cover media is displayed. */
1422
+ displayed?: boolean;
1423
+ /** Whether cover media is custom, i.e. not resolved as first media item appearing in content. */
1424
+ custom?: boolean;
1425
+ /** Wix Media details. */
1426
+ wixMedia?: WixMedia;
1427
+ /** Embed media details. */
1428
+ embedMedia?: EmbedMedia;
1429
+ }
1430
+ /** @oneof */
1431
+ export interface MediaMediaOneOf {
1432
+ /** Wix Media details. */
1433
+ wixMedia?: WixMedia;
1434
+ /** Embed media details. */
1435
+ embedMedia?: EmbedMedia;
1436
+ }
1437
+ export interface WixMedia {
1438
+ /** Thumbnail or image details. */
1439
+ image?: Image;
1440
+ /** Video details. Optional */
1441
+ videoV2?: VideoV2;
1442
+ }
1443
+ export interface VideoV2 {
1444
+ /** WixMedia ID. */
1445
+ id?: string;
1446
+ /**
1447
+ * Available resolutions for the video, starting with the optimal resolution.
1448
+ * @readonly
1449
+ */
1450
+ resolutions?: VideoResolution[];
1451
+ /**
1452
+ * Video filename.
1453
+ * @readonly
1454
+ */
1455
+ filename?: string | null;
1456
+ }
1457
+ export interface VideoResolution {
1458
+ /** Video URL. */
1459
+ url?: string;
1460
+ /** Video height. */
1461
+ height?: number;
1462
+ /** Video width. */
1463
+ width?: number;
1464
+ /** Video format for example, mp4, hls. */
1465
+ format?: string;
1466
+ }
1467
+ export interface EmbedMedia {
1468
+ /** Thumbnail details. */
1469
+ thumbnail?: EmbedThumbnail;
1470
+ /** Video details. */
1471
+ video?: EmbedVideo;
1472
+ }
1473
+ export interface EmbedThumbnail {
1474
+ /** Thumbnail url. */
1475
+ url?: string;
1476
+ /** Thumbnail width. */
1477
+ width?: number;
1478
+ /** Thumbnail height. */
1479
+ height?: number;
1480
+ }
1481
+ export interface EmbedVideo {
1482
+ /** Video url. */
1483
+ url?: string;
1484
+ /** Video width. */
1485
+ width?: number;
1486
+ /** Video height. */
1487
+ height?: number;
1488
+ }
1489
+ export interface ListTemplatesRequest {
1490
+ /** Filter post templates by given template category ids */
1491
+ categoryIds?: string[];
1492
+ /** Filter post templates by provided language */
1493
+ language?: string | null;
1494
+ /** Returns post template categories when set to TRUE */
1495
+ listTemplateCategories?: boolean;
1496
+ /** Sort order by ascending/descending publish date. Default is ascending publish date sort */
1497
+ sort?: GetPostTemplatesSort;
1498
+ /** Pagination options. */
1499
+ paging?: BlogPaging;
1500
+ }
1501
+ export declare enum GetPostTemplatesSort {
1502
+ /** Sorting by publishing date ascending */
1503
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
1504
+ /** Sorting by publishing date descending */
1505
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC"
1506
+ }
1507
+ export interface BlogPaging {
1508
+ /** Number of items to skip in the current sort order. */
1509
+ offset?: number;
1510
+ /**
1511
+ * Number of items to return.
1512
+ *
1513
+ *
1514
+ * Default:`50`.
1515
+ */
1516
+ limit?: number;
1517
+ /** Pointer to the next or previous page in the list of results. */
1518
+ cursor?: string | null;
1519
+ }
1520
+ export interface ListTemplatesResponse {
1521
+ /** Available post templates */
1522
+ postTemplates?: Post[];
1523
+ /** Details on the paged set of posts templates returned. */
1524
+ postTemplatesMetaData?: MetaData;
1525
+ /** Post template categories. This value is returned empty unless asked explicitly */
1526
+ templateCategories?: Category[];
1527
+ }
1528
+ export interface MetaData {
1529
+ /** Number of items returned in this response. */
1530
+ count?: number;
1531
+ /** Requested offset. */
1532
+ offset?: number;
1533
+ /** Total number of items that match the query. */
1534
+ total?: number;
1535
+ /** Pointer to the next or previous page in the list of results. */
1536
+ cursor?: string | null;
1537
+ }
1538
+ export interface Category {
1539
+ /**
1540
+ * Category ID.
1541
+ * @readonly
1542
+ */
1543
+ id?: string;
1544
+ /** Category label. Displayed in the Category Menu. */
1545
+ label?: string;
1546
+ /**
1547
+ * Number of posts in the category.
1548
+ * @readonly
1549
+ */
1550
+ postCount?: number;
1551
+ /**
1552
+ * Category URL.
1553
+ * @readonly
1554
+ */
1555
+ url?: PageUrl;
1556
+ /** Category description. */
1557
+ description?: string | null;
1558
+ /** Category title. */
1559
+ title?: string;
1560
+ /**
1561
+ * __Deprecated.__ Use `displayPosition` instead.
1562
+ * This property will be removed on March 2, 2023.
1563
+ *
1564
+ * Category position in sequence.
1565
+ */
1566
+ rank?: number | null;
1567
+ /**
1568
+ * Category position in sequence. Categories with lower display position are displayed first. A position of `-1` will be at the end of the sequence.
1569
+ *
1570
+ * Default: `-1`
1571
+ */
1572
+ displayPosition?: number | null;
1573
+ /** ID of the category's translations. All translations of a single category will share the same `translationId`. */
1574
+ translationId?: string | null;
1575
+ /** Category language.Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
1576
+ language?: string;
1577
+ /** Category slug. For example, 'category-slug'. */
1578
+ slug?: string;
1579
+ /** SEO data. */
1580
+ seoData?: SeoSchema;
1581
+ /** Category cover image. */
1582
+ coverImage?: Image;
1583
+ }
1584
+ export interface GetTemplateRequest {
1585
+ /** Post template id */
1586
+ postTemplateId?: string;
1587
+ }
1588
+ export interface GetTemplateResponse {
1589
+ /** Post template */
1590
+ postTemplate?: Post;
1591
+ }
1592
+ export interface CreateDraftPostFromTemplateRequest {
1593
+ /** Post template id */
1594
+ postTemplateId?: string;
1595
+ }
1596
+ export interface CreateDraftPostFromTemplateResponse {
1597
+ /** Created draft post */
1598
+ draftPost?: DraftPost;
1599
+ }
1600
+ export interface DraftPost {
1601
+ /**
1602
+ * Post ID.
1603
+ * @readonly
1604
+ */
1605
+ id?: string;
1606
+ /** Post title. */
1607
+ title?: string;
1608
+ /**
1609
+ * Post excerpt.
1610
+ * Can be selected by site owner or extracted from the post's text.
1611
+ */
1612
+ excerpt?: string | null;
1613
+ /** Whether the post is marked as featured. */
1614
+ featured?: boolean | null;
1615
+ /** IDs of categories this post belongs to. */
1616
+ categoryIds?: string[];
1617
+ /** Post owner's member ID. */
1618
+ memberId?: string | null;
1619
+ /** Hashtags extracted from the post's content. */
1620
+ hashtags?: string[];
1621
+ /** Whether commenting on the post is enabled. */
1622
+ commentingEnabled?: boolean | null;
1623
+ /**
1624
+ * Estimated reading time (calculated automatically).
1625
+ * @readonly
1626
+ */
1627
+ minutesToRead?: number;
1628
+ /** Hero image, as displayed at the top of the blog page. */
1629
+ heroImage?: Image;
1630
+ /** IDs of tags the post is tagged with. */
1631
+ tagIds?: string[];
1632
+ /** IDs of posts that are related to this post. */
1633
+ relatedPostIds?: string[];
1634
+ /** Pricing plans IDs. */
1635
+ pricingPlanIds?: string[];
1636
+ /** ID of the post's translations. Translations of a single post into multiple languages will all share the same `translationId`. */
1637
+ translationId?: string | null;
1638
+ /** Language the post is written in. */
1639
+ language?: string | null;
1640
+ /**
1641
+ * Origin on how the current draft post state was created.
1642
+ * @readonly
1643
+ */
1644
+ changeOrigin?: Origin;
1645
+ /** Post rich content. */
1646
+ richContent?: RichContent;
1647
+ /**
1648
+ * Post status.
1649
+ * @readonly
1650
+ */
1651
+ status?: Status;
1652
+ /** Details about post moderation. Relevant only to posts submitted by guest writers. */
1653
+ moderationDetails?: ModerationDetails;
1654
+ /**
1655
+ * Indicates if draft post have changes that are not yet published to the public.
1656
+ * @readonly
1657
+ */
1658
+ hasUnpublishedChanges?: boolean;
1659
+ /**
1660
+ * Last edited date
1661
+ * @readonly
1662
+ */
1663
+ editedDate?: Date;
1664
+ /**
1665
+ * Scheduled publish date
1666
+ * @readonly
1667
+ */
1668
+ scheduledPublishDate?: Date;
1669
+ /** Date the post was first published. */
1670
+ firstPublishedDate?: Date;
1671
+ /** SEO data. */
1672
+ seoData?: SeoSchema;
1673
+ /**
1674
+ * Draft post preview URL (how URL will look like when post will be published).
1675
+ * @readonly
1676
+ */
1677
+ url?: PageUrl;
1678
+ /**
1679
+ * Date the post was created.
1680
+ * @readonly
1681
+ */
1682
+ createdDate?: Date;
1683
+ /** SEO slug. */
1684
+ seoSlug?: string | null;
1685
+ /** Post cover media. */
1686
+ media?: Media;
1687
+ /** Number of paragraphs to show in paid content preview for non-paying users. */
1688
+ previewTextParagraph?: number | null;
1689
+ /**
1690
+ * List of draft post translations.
1691
+ * @readonly
1692
+ */
1693
+ translations?: DraftPostTranslation[];
1694
+ }
1695
+ export declare enum Origin {
1696
+ UNKNOWN = "UNKNOWN",
1697
+ /** Changed by admin */
1698
+ ADMIN = "ADMIN",
1699
+ /** Categories were changed */
1700
+ ADD_CATEGORIES = "ADD_CATEGORIES",
1701
+ /** Saved automatically */
1702
+ AUTO_SAVE = "AUTO_SAVE",
1703
+ /** Copied from template */
1704
+ COPY_TEMPLATE = "COPY_TEMPLATE",
1705
+ /** Imported */
1706
+ IMPORT = "IMPORT",
1707
+ /** Imported in bulk */
1708
+ IMPORT_BULK = "IMPORT_BULK",
1709
+ /** Imported with html import */
1710
+ IMPORT_HTML = "IMPORT_HTML",
1711
+ /** Patch import */
1712
+ IMPORT_PATCH = "IMPORT_PATCH",
1713
+ /** Changed language */
1714
+ LANGUAGE_CHANGE = "LANGUAGE_CHANGE",
1715
+ /** Saved manually */
1716
+ MANUAL_SAVE = "MANUAL_SAVE",
1717
+ /** Affected by migration */
1718
+ MIGRATION = "MIGRATION",
1719
+ /** Affected by moderation */
1720
+ MODERATION = "MODERATION",
1721
+ /** Moved to trash */
1722
+ MOVE_TO_TRASH = "MOVE_TO_TRASH",
1723
+ /** Pricing plans were changed */
1724
+ PRICING_PLANS_CHANGE = "PRICING_PLANS_CHANGE",
1725
+ /** Was provisioned */
1726
+ PROVISION = "PROVISION",
1727
+ /** Was published */
1728
+ PUBLISH = "PUBLISH",
1729
+ /** Owner was reassigned */
1730
+ REASSIGN_OWNER = "REASSIGN_OWNER",
1731
+ /** Was reblogged */
1732
+ REBLOG = "REBLOG",
1733
+ /** Was restored */
1734
+ RESTORE = "RESTORE",
1735
+ /** Reverted to draft */
1736
+ REVERT_TO_DRAFT = "REVERT_TO_DRAFT",
1737
+ /** Was translated */
1738
+ TRANSLATION = "TRANSLATION",
1739
+ /** Was unpublished */
1740
+ UNPUBLISH = "UNPUBLISH",
1741
+ /** Was unscheduled */
1742
+ UNSCHEDULE = "UNSCHEDULE",
1743
+ /** New edit session started which updated editing_session_id id */
1744
+ NEW_EDIT_SESSION = "NEW_EDIT_SESSION",
1745
+ /** Was scheduled by Later */
1746
+ SCHEDULING_SERVICE_SCHEDULE = "SCHEDULING_SERVICE_SCHEDULE",
1747
+ /** Was unscheduled by Later */
1748
+ SCHEDULING_SERVICE_UNSCHEDULE = "SCHEDULING_SERVICE_UNSCHEDULE",
1749
+ /** Was published by Later */
1750
+ SCHEDULING_SERVICE_PUBLISH = "SCHEDULING_SERVICE_PUBLISH",
1751
+ /** Was scheduled */
1752
+ SCHEDULE = "SCHEDULE",
1753
+ /** Was removed from moderation */
1754
+ REMOVE_FROM_MODERATION = "REMOVE_FROM_MODERATION",
1755
+ /** Was rejected from moderation */
1756
+ REJECT_FROM_MODERATION = "REJECT_FROM_MODERATION",
1757
+ /** Was approved in moderation */
1758
+ APPROVE_IN_MODERATION = "APPROVE_IN_MODERATION",
1759
+ /** Tag was deleted */
1760
+ DELETE_TAG = "DELETE_TAG"
1761
+ }
1762
+ export declare enum Status {
1763
+ UNKNOWN = "UNKNOWN",
1764
+ /** Status indicating the draft post is published. */
1765
+ PUBLISHED = "PUBLISHED",
1766
+ /** Status indicating the draft post is unpublished. */
1767
+ UNPUBLISHED = "UNPUBLISHED",
1768
+ /** Status indicating the draft post is scheduled for publication. */
1769
+ SCHEDULED = "SCHEDULED",
1770
+ /** Status indicating the draft post is deleted. */
1771
+ DELETED = "DELETED",
1772
+ /** Deprecated. Use `IN_REVIEW` instead. Status indicating the draft post is in review. */
1773
+ IN_MODERATION = "IN_MODERATION",
1774
+ /** Status indicating the draft post is in review. */
1775
+ IN_REVIEW = "IN_REVIEW"
1776
+ }
1777
+ export interface DraftPostTranslation {
1778
+ /** Post ID. */
1779
+ id?: string;
1780
+ /** Post status. */
1781
+ status?: Status;
1782
+ /** Language the post is written in. */
1783
+ language?: string | null;
1784
+ /** Post slug. For example, 'post-slug'. */
1785
+ slug?: string | null;
1786
+ /** SEO data. */
1787
+ seoData?: SeoSchema;
1788
+ /** Post URL. */
1789
+ url?: PageUrl;
1790
+ }
1791
+ export interface GetTotalLikesPerMemberRequest {
1792
+ /** Member ID. */
1793
+ memberId?: string;
1794
+ }
1795
+ export interface GetTotalLikesPerMemberResponse {
1796
+ /** The total number of likes of the member. */
1797
+ total?: number;
1798
+ }
1799
+ export interface PostLiked extends PostLikedInitiatorOneOf {
1800
+ /** ID of the liked post. */
1801
+ postId?: string;
1802
+ /** Member ID of person who liked a post (returned if the member was logged in when liking the post) */
1803
+ memberId?: string | null;
1804
+ /** Visitor ID if person that liked the post is not logged in */
1805
+ anonymousVisitorId?: string | null;
1806
+ }
1807
+ /** @oneof */
1808
+ export interface PostLikedInitiatorOneOf {
1809
+ /** Member ID of person who liked a post (returned if the member was logged in when liking the post) */
1810
+ memberId?: string | null;
1811
+ /** Visitor ID if person that liked the post is not logged in */
1812
+ anonymousVisitorId?: string | null;
1813
+ }
1814
+ export interface PostUnliked extends PostUnlikedInitiatorOneOf {
1815
+ /** ID of the unliked post. */
1816
+ postId?: string;
1817
+ /** Member ID of person who unliked a post (returned if the member was logged in when unliking the post) */
1818
+ memberId?: string | null;
1819
+ /** Visitor ID if person that unliked the post is not logged in */
1820
+ anonymousVisitorId?: string | null;
1821
+ }
1822
+ /** @oneof */
1823
+ export interface PostUnlikedInitiatorOneOf {
1824
+ /** Member ID of person who unliked a post (returned if the member was logged in when unliking the post) */
1825
+ memberId?: string | null;
1826
+ /** Visitor ID if person that unliked the post is not logged in */
1827
+ anonymousVisitorId?: string | null;
1828
+ }
1829
+ export interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
1830
+ /** ID of the post which counters were updated. */
1831
+ postId?: string;
1832
+ /** Field of the updated counter. */
1833
+ updatedCounterField?: Field;
1834
+ /** New counter value. */
1835
+ counter?: number;
1836
+ /** Member ID of person who triggered the counter update */
1837
+ memberId?: string | null;
1838
+ /** Visitor ID if person that liked the post is not logged in */
1839
+ anonymousVisitorId?: string | null;
1840
+ }
1841
+ /** @oneof */
1842
+ export interface PostCountersUpdatedInitiatorOneOf {
1843
+ /** Member ID of person who triggered the counter update */
1844
+ memberId?: string | null;
1845
+ /** Visitor ID if person that liked the post is not logged in */
1846
+ anonymousVisitorId?: string | null;
1847
+ }
1848
+ export declare enum Field {
1849
+ UNKNOWN = "UNKNOWN",
1850
+ /** Total comments field. */
1851
+ TOTAL_COMMENTS = "TOTAL_COMMENTS",
1852
+ /** Like count field. */
1853
+ LIKE_COUNT = "LIKE_COUNT",
1854
+ /** View count field. */
1855
+ VIEW_COUNT = "VIEW_COUNT",
1856
+ /** Rating count field */
1857
+ RATING_COUNT = "RATING_COUNT"
1858
+ }
1859
+ export interface PostOwnerChanged {
1860
+ /** ID of the post which owner was updated. */
1861
+ postId?: string;
1862
+ }
1863
+ export interface GetPostRequest {
1864
+ /** Post ID. */
1865
+ postId: string;
1866
+ /**
1867
+ * List of post fields to be included if entities are present in the response.
1868
+ * Base fieldset, which is default, will return all core post properties.
1869
+ * Example: When URL fieldset is selected, returned post will have a set of base properties and post url.
1870
+ */
1871
+ fieldsets?: PostFieldField[];
1872
+ }
1873
+ export declare enum PostFieldField {
1874
+ UNKNOWN = "UNKNOWN",
1875
+ /** Deprecated use `METRICS` instead */
1876
+ COUNTERS = "COUNTERS",
1877
+ /** Includes Post url when present */
1878
+ URL = "URL",
1879
+ /** Includes Post content text string when present */
1880
+ CONTENT_TEXT = "CONTENT_TEXT",
1881
+ /** Includes Post metrics when present */
1882
+ METRICS = "METRICS",
1883
+ /** Includes SEO data */
1884
+ SEO = "SEO",
1885
+ /**
1886
+ * Includes Post content as a stringified DraftJS document
1887
+ * Reserved for internal use
1888
+ */
1889
+ CONTENT = "CONTENT",
1890
+ /**
1891
+ * Includes internal id field
1892
+ * Reserved for internal use
1893
+ */
1894
+ INTERNAL_ID = "INTERNAL_ID",
1895
+ /** Includes post owners Contact Id */
1896
+ CONTACT_ID = "CONTACT_ID",
1897
+ /** Includes post rich content */
1898
+ RICH_CONTENT = "RICH_CONTENT"
1899
+ }
1900
+ export interface GetPostResponse {
1901
+ /** Post info. */
1902
+ post?: Post;
1903
+ }
1904
+ export interface GetPostBySlugRequest {
1905
+ /** Slug of the post to retrieve. */
1906
+ slug: string;
1907
+ /**
1908
+ * List of post fields to be included if entities are present in the response.
1909
+ * Base fieldset, which is default, will return all core post properties.
1910
+ * Example: When URL fieldset is selected, returned post will have a set of base properties and post url.
1911
+ */
1912
+ fieldsets?: PostFieldField[];
1913
+ }
1914
+ export interface GetPostBySlugResponse {
1915
+ /** Post info. */
1916
+ post?: Post;
1917
+ }
1918
+ export interface ListPostsRequest {
1919
+ /** Whether to return only featured posts. */
1920
+ featured?: boolean;
1921
+ /**
1922
+ * Hashtag filter.
1923
+ * Pass an array of hashtags to return posts with any of the provided hashtags (anywhere in the post content).
1924
+ */
1925
+ hashtags?: string[];
1926
+ /**
1927
+ * Category filter.
1928
+ * Pass an array of category IDs to return posts with any of the provided categories.
1929
+ */
1930
+ categoryIds?: string[];
1931
+ /**
1932
+ * Tag filter.
1933
+ * Pass an array of tag IDs to return posts with any of the provided tags.
1934
+ */
1935
+ tagIds?: string[];
1936
+ /** Sort order by descending view count, ascending or descending publish date, or default to descending by publish date with pinned posts first. */
1937
+ sort?: GetPostsSort;
1938
+ /** Pagination options. */
1939
+ paging?: BlogPaging;
1940
+ /**
1941
+ * Language filter.
1942
+ * Pass language to only receive posts that are in that language.
1943
+ */
1944
+ language?: string | null;
1945
+ /** Post owner's member ID. */
1946
+ memberId?: string | null;
1947
+ /**
1948
+ * List of post fields to be included if entities are present in the response.
1949
+ * Base fieldset, which is default, will return all core post properties.
1950
+ * Example: When URL fieldset is selected, returned post will have a set of base properties and post url.
1951
+ */
1952
+ fieldsets?: PostFieldField[];
1953
+ }
1954
+ export declare enum GetPostsSort {
1955
+ /** Sorting by publishing date descending with pinned posts first. The default value */
1956
+ FEED = "FEED",
1957
+ /** Sorting by publishing date ascending */
1958
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
1959
+ /** Sorting by publishing date descending */
1960
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
1961
+ /** Sorting by view count descending */
1962
+ VIEW_COUNT = "VIEW_COUNT",
1963
+ /** Sorting by like count descending */
1964
+ LIKE_COUNT = "LIKE_COUNT",
1965
+ /** Sorting by title ascending */
1966
+ TITLE_ASC = "TITLE_ASC",
1967
+ /** Sorting by title descending */
1968
+ TITLE_DESC = "TITLE_DESC",
1969
+ /** Sorting by post rating descending. */
1970
+ RATING = "RATING"
1971
+ }
1972
+ export interface ListPostsResponse {
1973
+ /** List of posts. */
1974
+ posts?: Post[];
1975
+ /** Details on the paged set of results returned. */
1976
+ metaData?: MetaData;
1977
+ }
1978
+ export interface QueryPostsRequest {
1979
+ /** Query options. */
1980
+ query?: PlatformQuery;
1981
+ /**
1982
+ * List of post fields to be included if entities are present in the response.
1983
+ * Base fieldset, which is default, will return all core post properties.
1984
+ * Example: When URL fieldset is selected, returned post will have a set of base properties and post url.
1985
+ */
1986
+ fieldsets?: PostFieldField[];
1987
+ }
1988
+ export interface Sorting {
1989
+ /** Name of the field to sort by. */
1990
+ fieldName?: string;
1991
+ /** Sort order. */
1992
+ order?: SortOrder;
1993
+ }
1994
+ export declare enum SortOrder {
1995
+ ASC = "ASC",
1996
+ DESC = "DESC"
1997
+ }
1998
+ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
1999
+ /**
2000
+ * Filter object in the following format:
2001
+ * `"filter" : {
2002
+ * "fieldName1": "value1",
2003
+ * "fieldName2":{"$operator":"value2"}
2004
+ * }`
2005
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2006
+ */
2007
+ filter?: Record<string, any> | null;
2008
+ /**
2009
+ * Sort object in the following format:
2010
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2011
+ */
2012
+ sort?: Sorting[];
2013
+ /** Paging options to limit and skip the number of items. */
2014
+ paging?: Paging;
2015
+ /** 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`. */
2016
+ cursorPaging?: CursorPaging;
2017
+ }
2018
+ /** @oneof */
2019
+ export interface PlatformQueryPagingMethodOneOf {
2020
+ /** Paging options to limit and skip the number of items. */
2021
+ paging?: Paging;
2022
+ /** 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`. */
2023
+ cursorPaging?: CursorPaging;
2024
+ }
2025
+ export interface Paging {
2026
+ /** Number of items to load. */
2027
+ limit?: number | null;
2028
+ /** Number of items to skip in the current sort order. */
2029
+ offset?: number | null;
2030
+ }
2031
+ export interface CursorPaging {
2032
+ /** Number of items to load. */
2033
+ limit?: number | null;
2034
+ /**
2035
+ * Pointer to the next or previous page in the list of results.
2036
+ *
2037
+ * You can get the relevant cursor token
2038
+ * from the `pagingMetadata` object in the previous call's response.
2039
+ * Not relevant for the first request.
2040
+ */
2041
+ cursor?: string | null;
2042
+ }
2043
+ export interface QueryPostsResponse {
2044
+ /** List of posts. */
2045
+ posts?: Post[];
2046
+ /** Details on the paged set of results returned. */
2047
+ pagingMetadata?: PagingMetadataV2;
2048
+ }
2049
+ export interface PagingMetadataV2 {
2050
+ /** Number of items returned in the response. */
2051
+ count?: number | null;
2052
+ /** Offset that was requested. */
2053
+ offset?: number | null;
2054
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2055
+ total?: number | null;
2056
+ /** Flag that indicates the server failed to calculate the `total` field. */
2057
+ tooManyToCount?: boolean | null;
2058
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2059
+ cursors?: Cursors;
2060
+ }
2061
+ export interface Cursors {
2062
+ /** Cursor pointing to next page in the list of results. */
2063
+ next?: string | null;
2064
+ /** Cursor pointing to previous page in the list of results. */
2065
+ prev?: string | null;
2066
+ }
2067
+ export interface GetPostMetricsRequest {
2068
+ /** Post ID. */
2069
+ postId: string;
2070
+ }
2071
+ export interface GetPostMetricsResponse {
2072
+ /** Post metrics. */
2073
+ metrics?: Metrics;
2074
+ }
2075
+ export interface BulkGetPostMetricsRequest {
2076
+ /** Post IDs. */
2077
+ postIds?: string[];
2078
+ }
2079
+ export interface BulkGetPostMetricsResponse {
2080
+ /** Map of post.id to metrics */
2081
+ metrics?: Record<string, Metrics>;
2082
+ }
2083
+ export interface BulkGetPostReactionsRequest {
2084
+ /** Post IDs. */
2085
+ postIds?: string[];
2086
+ }
2087
+ export interface BulkGetPostReactionsResponse {
2088
+ /** Map of post.id to reactions */
2089
+ reactionsMap?: Record<string, Reactions>;
2090
+ }
2091
+ export interface Reactions {
2092
+ /**
2093
+ * Is post liked by the current user
2094
+ * @readonly
2095
+ */
2096
+ liked?: boolean;
2097
+ }
2098
+ export interface OldBlogMigratedEvent {
2099
+ /** Instance id of new version of blog */
2100
+ newBlogInstanceId?: string;
2101
+ /** Instance id of old version of blog */
2102
+ oldBlogInstanceId?: string;
2103
+ }
2104
+ export interface ListMigratedPostsRequest {
2105
+ /** New blog version instance id */
2106
+ instanceId?: string;
2107
+ /** Cursor pointing to page of results */
2108
+ paging?: BlogCursorPaging;
2109
+ }
2110
+ export interface BlogCursorPaging {
2111
+ /** Number of items to load. */
2112
+ limit?: number | null;
2113
+ /** Pointer to the next or previous page in the list of results. */
2114
+ cursor?: string | null;
2115
+ }
2116
+ export interface ListMigratedPostsResponse {
2117
+ /** List of posts */
2118
+ posts?: Post[];
2119
+ /** Data of post in old blog by post id */
2120
+ postsMigrationMeta?: Record<string, PostMigrationMetaData>;
2121
+ /** Pagination */
2122
+ pagingMetaData?: CursorMetaData;
2123
+ }
2124
+ export interface PostMigrationMetaData {
2125
+ /** Old blog instance id */
2126
+ instanceId?: string;
2127
+ /** Post id in old blog */
2128
+ postId?: string;
2129
+ /** Post author in old blog */
2130
+ author?: string | null;
2131
+ /** Post slug in old blog */
2132
+ slug?: string | null;
2133
+ }
2134
+ export interface CursorMetaData {
2135
+ /** Cursor pointing to next result page. */
2136
+ next?: string | null;
2137
+ }
2138
+ /** Get Blog Publications Count Stats request */
2139
+ export interface QueryPublicationsCountStatsRequest {
2140
+ /** Start of time range to return, in ISO 8601 date and time format. */
2141
+ rangeStart?: Date;
2142
+ /** Non-inclusive end of time range to return, in ISO 8601 date and time format. */
2143
+ rangeEnd?: Date;
2144
+ /** Order of the returned results. */
2145
+ order?: QueryPublicationsCountStatsRequestOrder;
2146
+ /** Number of months to include in the response. */
2147
+ months?: number;
2148
+ /** Language filter */
2149
+ language?: string | null;
2150
+ /** Timezone of the client */
2151
+ timeZone?: string | null;
2152
+ }
2153
+ export declare enum QueryPublicationsCountStatsRequestOrder {
2154
+ UNKNOWN = "UNKNOWN",
2155
+ OLDEST = "OLDEST",
2156
+ NEWEST = "NEWEST"
2157
+ }
2158
+ /** Get Blog Publications Count Stats response */
2159
+ export interface QueryPublicationsCountStatsResponse {
2160
+ /** Chronologically ordered list of publications. */
2161
+ stats?: PeriodPublicationsCount[];
2162
+ }
2163
+ /** Publications count for a specific time period */
2164
+ export interface PeriodPublicationsCount {
2165
+ /** Start of time range in ISO 8601 date and time format. */
2166
+ periodStart?: Date;
2167
+ /** Number of posts published during this month. */
2168
+ publicationsCount?: number;
2169
+ }
2170
+ /** Get Blog Post Count Stats request */
2171
+ export interface QueryPostCountStatsRequest {
2172
+ /** Start of time range to return, in ISO 8601 date and time format. */
2173
+ rangeStart?: Date;
2174
+ /** Order of returned results. */
2175
+ order?: Order;
2176
+ /** Number of months to include in response. */
2177
+ months?: number;
2178
+ /** Language filter. */
2179
+ language?: string | null;
2180
+ /** Time zone of the client. */
2181
+ timeZone?: string | null;
2182
+ }
2183
+ export declare enum Order {
2184
+ UNKNOWN = "UNKNOWN",
2185
+ OLDEST = "OLDEST",
2186
+ NEWEST = "NEWEST"
2187
+ }
2188
+ /** Get Blog Post Count Stats response */
2189
+ export interface QueryPostCountStatsResponse {
2190
+ /** Chronologically ordered list of posts. */
2191
+ stats?: PeriodPostCount[];
2192
+ }
2193
+ /** Post count for a specific time period */
2194
+ export interface PeriodPostCount {
2195
+ /** Start of time range in ISO 8601 date and time format. */
2196
+ periodStart?: Date;
2197
+ /** Number of posts published during this month. */
2198
+ postCount?: number;
2199
+ }
2200
+ export interface GetTotalPublicationsRequest {
2201
+ /** Language filter */
2202
+ language?: string | null;
2203
+ }
2204
+ export interface GetTotalPublicationsResponse {
2205
+ /** Total amount of publications. */
2206
+ total?: number;
2207
+ }
2208
+ export interface GetTotalPostsRequest {
2209
+ /** Language filter. */
2210
+ language?: string | null;
2211
+ }
2212
+ export interface GetTotalPostsResponse {
2213
+ /** Total amount of published posts. */
2214
+ total?: number;
2215
+ }
2216
+ export interface SendActionEventRequest extends SendActionEventRequestActionOneOf {
2217
+ entityId?: string;
2218
+ postLikedAction?: PostLiked;
2219
+ postCountersUpdated?: PostCountersUpdated;
2220
+ }
2221
+ /** @oneof */
2222
+ export interface SendActionEventRequestActionOneOf {
2223
+ postLikedAction?: PostLiked;
2224
+ postCountersUpdated?: PostCountersUpdated;
2225
+ }
2226
+ export interface SendActionEventResponse {
2227
+ }