@wix/auto_sdk_blog_draft-posts 1.0.82 → 1.0.84

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.
@@ -480,7 +480,7 @@ type GradientTypeWithLiterals = GradientType | 'LINEAR' | 'RADIAL';
480
480
  interface Stop {
481
481
  /**
482
482
  * Stop color as hex value.
483
- * @format COLOR_HEX
483
+ * @maxLength 19
484
484
  */
485
485
  color?: string | null;
486
486
  /** Stop position (0-1). */
@@ -521,7 +521,7 @@ interface Background {
521
521
  type?: BackgroundTypeWithLiterals;
522
522
  /**
523
523
  * Background color as a hexadecimal value.
524
- * @format COLOR_HEX
524
+ * @maxLength 19
525
525
  */
526
526
  color?: string | null;
527
527
  /** Gradient configuration. */
@@ -628,33 +628,33 @@ interface Styles {
628
628
  borderRadius?: number | null;
629
629
  /**
630
630
  * Border color as a hexadecimal value.
631
- * @format COLOR_HEX
631
+ * @maxLength 19
632
632
  */
633
633
  borderColor?: string | null;
634
634
  /**
635
635
  * Border color as a hexadecimal value (hover state).
636
- * @format COLOR_HEX
636
+ * @maxLength 19
637
637
  */
638
638
  borderColorHover?: string | null;
639
639
  /**
640
640
  * Text color as a hexadecimal value.
641
- * @format COLOR_HEX
641
+ * @maxLength 19
642
642
  */
643
643
  textColor?: string | null;
644
644
  /**
645
645
  * Text color as a hexadecimal value (hover state).
646
- * @format COLOR_HEX
646
+ * @maxLength 19
647
647
  */
648
648
  textColorHover?: string | null;
649
649
  /**
650
650
  * Deprecated: Use `background` instead.
651
- * @format COLOR_HEX
651
+ * @maxLength 19
652
652
  * @deprecated
653
653
  */
654
654
  backgroundColor?: string | null;
655
655
  /**
656
656
  * Deprecated: Use `backgroundHover` instead.
657
- * @format COLOR_HEX
657
+ * @maxLength 19
658
658
  * @deprecated
659
659
  */
660
660
  backgroundColorHover?: string | null;
@@ -1106,7 +1106,7 @@ interface StylesBorder {
1106
1106
  width?: number | null;
1107
1107
  /**
1108
1108
  * Border color as a hexadecimal value.
1109
- * @format COLOR_HEX
1109
+ * @maxLength 19
1110
1110
  */
1111
1111
  color?: string | null;
1112
1112
  /** Border radius in pixels. */
@@ -1147,22 +1147,22 @@ type StylesPositionWithLiterals = StylesPosition | 'START' | 'END' | 'TOP' | 'HI
1147
1147
  interface LinkPreviewDataStyles {
1148
1148
  /**
1149
1149
  * Background color as a hexadecimal value.
1150
- * @format COLOR_HEX
1150
+ * @maxLength 19
1151
1151
  */
1152
1152
  backgroundColor?: string | null;
1153
1153
  /**
1154
1154
  * Title color as a hexadecimal value.
1155
- * @format COLOR_HEX
1155
+ * @maxLength 19
1156
1156
  */
1157
1157
  titleColor?: string | null;
1158
1158
  /**
1159
1159
  * Subtitle color as a hexadecimal value.
1160
- * @format COLOR_HEX
1160
+ * @maxLength 19
1161
1161
  */
1162
1162
  subtitleColor?: string | null;
1163
1163
  /**
1164
1164
  * Link color as a hexadecimal value.
1165
- * @format COLOR_HEX
1165
+ * @maxLength 19
1166
1166
  */
1167
1167
  linkColor?: string | null;
1168
1168
  /** Border width in pixels. */
@@ -1171,7 +1171,7 @@ interface LinkPreviewDataStyles {
1171
1171
  borderRadius?: number | null;
1172
1172
  /**
1173
1173
  * Border color as a hexadecimal value.
1174
- * @format COLOR_HEX
1174
+ * @maxLength 19
1175
1175
  */
1176
1176
  borderColor?: string | null;
1177
1177
  /** Position of thumbnail. Defaults to `START`. */
@@ -1322,19 +1322,19 @@ interface BackgroundGradient {
1322
1322
  angle?: number | null;
1323
1323
  /**
1324
1324
  * The start color as a hexademical value.
1325
- * @format COLOR_HEX
1325
+ * @maxLength 19
1326
1326
  */
1327
1327
  startColor?: string | null;
1328
1328
  /**
1329
1329
  * The end color as a hexademical value.
1330
- * @format COLOR_HEX
1330
+ * @maxLength 19
1331
1331
  */
1332
1332
  lastColor?: string | null;
1333
1333
  }
1334
1334
  interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
1335
1335
  /**
1336
1336
  * The background color as a hexademical value.
1337
- * @format COLOR_HEX
1337
+ * @maxLength 19
1338
1338
  */
1339
1339
  color?: string | null;
1340
1340
  /** An image to use for the background. */
@@ -1348,7 +1348,7 @@ interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
1348
1348
  interface PollDesignBackgroundBackgroundOneOf {
1349
1349
  /**
1350
1350
  * The background color as a hexademical value.
1351
- * @format COLOR_HEX
1351
+ * @maxLength 19
1352
1352
  */
1353
1353
  color?: string | null;
1354
1354
  /** An image to use for the background. */
@@ -1662,32 +1662,32 @@ interface ButtonStyles {
1662
1662
  borderRadius?: number | null;
1663
1663
  /**
1664
1664
  * Border color as a hexadecimal value.
1665
- * @format COLOR_HEX
1665
+ * @maxLength 19
1666
1666
  */
1667
1667
  borderColor?: string | null;
1668
1668
  /**
1669
1669
  * Text color as a hexadecimal value.
1670
- * @format COLOR_HEX
1670
+ * @maxLength 19
1671
1671
  */
1672
1672
  textColor?: string | null;
1673
1673
  /**
1674
1674
  * Background color as a hexadecimal value.
1675
- * @format COLOR_HEX
1675
+ * @maxLength 19
1676
1676
  */
1677
1677
  backgroundColor?: string | null;
1678
1678
  /**
1679
1679
  * Border color as a hexadecimal value (hover state).
1680
- * @format COLOR_HEX
1680
+ * @maxLength 19
1681
1681
  */
1682
1682
  borderColorHover?: string | null;
1683
1683
  /**
1684
1684
  * Text color as a hexadecimal value (hover state).
1685
- * @format COLOR_HEX
1685
+ * @maxLength 19
1686
1686
  */
1687
1687
  textColorHover?: string | null;
1688
1688
  /**
1689
1689
  * Background color as a hexadecimal value (hover state).
1690
- * @format COLOR_HEX
1690
+ * @maxLength 19
1691
1691
  */
1692
1692
  backgroundColorHover?: string | null;
1693
1693
  /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
@@ -1704,7 +1704,7 @@ interface ImageStyles {
1704
1704
  resizing?: ResizingWithLiterals;
1705
1705
  /**
1706
1706
  * Image border color as a hexadecimal value.
1707
- * @format COLOR_HEX
1707
+ * @maxLength 19
1708
1708
  */
1709
1709
  borderColor?: string | null;
1710
1710
  /** Image border width in pixels. */
@@ -1717,17 +1717,17 @@ interface RibbonStyles {
1717
1717
  ribbonText?: string | null;
1718
1718
  /**
1719
1719
  * Ribbon background color as a hexadecimal value.
1720
- * @format COLOR_HEX
1720
+ * @maxLength 19
1721
1721
  */
1722
1722
  backgroundColor?: string | null;
1723
1723
  /**
1724
1724
  * Ribbon text color as a hexadecimal value.
1725
- * @format COLOR_HEX
1725
+ * @maxLength 19
1726
1726
  */
1727
1727
  textColor?: string | null;
1728
1728
  /**
1729
1729
  * Ribbon border color as a hexadecimal value.
1730
- * @format COLOR_HEX
1730
+ * @maxLength 19
1731
1731
  */
1732
1732
  borderColor?: string | null;
1733
1733
  /** Ribbon border width in pixels. */
@@ -1740,12 +1740,12 @@ interface RibbonStyles {
1740
1740
  interface CardStyles {
1741
1741
  /**
1742
1742
  * Card background color as a hexadecimal value.
1743
- * @format COLOR_HEX
1743
+ * @maxLength 19
1744
1744
  */
1745
1745
  backgroundColor?: string | null;
1746
1746
  /**
1747
1747
  * Card border color as a hexadecimal value.
1748
- * @format COLOR_HEX
1748
+ * @maxLength 19
1749
1749
  */
1750
1750
  borderColor?: string | null;
1751
1751
  /** Card border width in pixels. */
@@ -1760,12 +1760,12 @@ interface CardStyles {
1760
1760
  titlePriceLayout?: LayoutWithLiterals;
1761
1761
  /**
1762
1762
  * Title text color as a hexadecimal value.
1763
- * @format COLOR_HEX
1763
+ * @maxLength 19
1764
1764
  */
1765
1765
  titleColor?: string | null;
1766
1766
  /**
1767
1767
  * Text color as a hexadecimal value.
1768
- * @format COLOR_HEX
1768
+ * @maxLength 19
1769
1769
  */
1770
1770
  textColor?: string | null;
1771
1771
  }
@@ -1947,29 +1947,29 @@ interface CellStyle {
1947
1947
  verticalAlignment?: VerticalAlignmentWithLiterals;
1948
1948
  /**
1949
1949
  * Cell background color as a hexadecimal value.
1950
- * @format COLOR_HEX
1950
+ * @maxLength 19
1951
1951
  */
1952
1952
  backgroundColor?: string | null;
1953
1953
  }
1954
1954
  interface BorderColors {
1955
1955
  /**
1956
1956
  * Left border color as a hexadecimal value.
1957
- * @format COLOR_HEX
1957
+ * @maxLength 19
1958
1958
  */
1959
1959
  left?: string | null;
1960
1960
  /**
1961
1961
  * Right border color as a hexadecimal value.
1962
- * @format COLOR_HEX
1962
+ * @maxLength 19
1963
1963
  */
1964
1964
  right?: string | null;
1965
1965
  /**
1966
1966
  * Top border color as a hexadecimal value.
1967
- * @format COLOR_HEX
1967
+ * @maxLength 19
1968
1968
  */
1969
1969
  top?: string | null;
1970
1970
  /**
1971
1971
  * Bottom border color as a hexadecimal value.
1972
- * @format COLOR_HEX
1972
+ * @maxLength 19
1973
1973
  */
1974
1974
  bottom?: string | null;
1975
1975
  }
@@ -2044,7 +2044,7 @@ interface CaptionData {
2044
2044
  interface LayoutData {
2045
2045
  /**
2046
2046
  * Deprecated: Use `background` instead.
2047
- * @format COLOR_HEX
2047
+ * @maxLength 19
2048
2048
  * @deprecated
2049
2049
  */
2050
2050
  backgroundColor?: string | null;
@@ -2052,7 +2052,7 @@ interface LayoutData {
2052
2052
  backgroundImage?: LayoutDataBackgroundImage;
2053
2053
  /**
2054
2054
  * Border color as a hexadecimal value.
2055
- * @format COLOR_HEX
2055
+ * @maxLength 19
2056
2056
  */
2057
2057
  borderColor?: string | null;
2058
2058
  /** Border width in pixels. */
@@ -2061,7 +2061,7 @@ interface LayoutData {
2061
2061
  borderRadius?: number | null;
2062
2062
  /**
2063
2063
  * Deprecated: Use `backdrop` instead.
2064
- * @format COLOR_HEX
2064
+ * @maxLength 19
2065
2065
  * @deprecated
2066
2066
  */
2067
2067
  backdropColor?: string | null;
@@ -2199,7 +2199,7 @@ interface LayoutDataBackground {
2199
2199
  type?: LayoutDataBackgroundTypeWithLiterals;
2200
2200
  /**
2201
2201
  * Background color as a hexadecimal value.
2202
- * @format COLOR_HEX
2202
+ * @maxLength 19
2203
2203
  */
2204
2204
  color?: string | null;
2205
2205
  /** Gradient configuration. */
@@ -2211,7 +2211,7 @@ interface Backdrop {
2211
2211
  type?: BackdropTypeWithLiterals;
2212
2212
  /**
2213
2213
  * Backdrop color as a hexadecimal value.
2214
- * @format COLOR_HEX
2214
+ * @maxLength 19
2215
2215
  */
2216
2216
  color?: string | null;
2217
2217
  /** Gradient configuration. */
@@ -2232,7 +2232,7 @@ interface ShapeData {
2232
2232
  interface ShapeDataStyles {
2233
2233
  /**
2234
2234
  * Shape fill color as a hexadecimal value.
2235
- * @format COLOR_HEX
2235
+ * @maxLength 19
2236
2236
  */
2237
2237
  color?: string | null;
2238
2238
  /** Map of original color keys to their new color values. */
@@ -2291,7 +2291,7 @@ interface CardDataBackground {
2291
2291
  type?: CardDataBackgroundTypeWithLiterals;
2292
2292
  /**
2293
2293
  * Background color as a hexadecimal value.
2294
- * @format COLOR_HEX
2294
+ * @maxLength 19
2295
2295
  */
2296
2296
  color?: string | null;
2297
2297
  /** Gradient configuration. */
@@ -2318,7 +2318,7 @@ interface TocData {
2318
2318
  itemSpacing?: number | null;
2319
2319
  /**
2320
2320
  * Optional override for the text color.
2321
- * @format COLOR_HEX
2321
+ * @maxLength 19
2322
2322
  */
2323
2323
  color?: string | null;
2324
2324
  /** Indentation style. Default: NESTED. */
@@ -2360,7 +2360,10 @@ interface SmartBlockData {
2360
2360
  orientation?: string | null;
2361
2361
  /** Column size controlling cells per row. */
2362
2362
  columnSize?: ColumnSizeWithLiterals;
2363
- /** Border color (for SOLID_JOINED_BOXES variant). */
2363
+ /**
2364
+ * Border color (for SOLID_JOINED_BOXES variant).
2365
+ * @maxLength 19
2366
+ */
2364
2367
  borderColor?: string | null;
2365
2368
  /** Border width in pixels (for SOLID_JOINED_BOXES variant). */
2366
2369
  borderWidth?: number | null;
@@ -2419,7 +2422,10 @@ interface SmartBlockCellData {
2419
2422
  label?: string | null;
2420
2423
  /** Shape file details. */
2421
2424
  shape?: V1Media;
2422
- /** Border color of the cell. */
2425
+ /**
2426
+ * Border color of the cell.
2427
+ * @maxLength 19
2428
+ */
2423
2429
  borderColor?: string | null;
2424
2430
  /** Border width in pixels. */
2425
2431
  borderWidth?: number | null;
@@ -2427,11 +2433,20 @@ interface SmartBlockCellData {
2427
2433
  borderRadius?: number | null;
2428
2434
  /** The type of the parent smart block (must match parent). */
2429
2435
  type?: SmartBlockDataTypeWithLiterals;
2430
- /** Accent color for non-background variants (e.g., line, bullet, label color). */
2436
+ /**
2437
+ * Accent color for non-background variants (e.g., line, bullet, label color).
2438
+ * @maxLength 19
2439
+ */
2431
2440
  accentColor?: string | null;
2432
- /** Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES). */
2441
+ /**
2442
+ * Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES).
2443
+ * @maxLength 19
2444
+ */
2433
2445
  backgroundColor?: string | null;
2434
- /** Shape fill color as a hexadecimal value. */
2446
+ /**
2447
+ * Shape fill color as a hexadecimal value.
2448
+ * @maxLength 19
2449
+ */
2435
2450
  shapeColor?: string | null;
2436
2451
  }
2437
2452
  interface Metadata {
@@ -3468,79 +3483,6 @@ interface DraftPostCount {
3468
3483
  /** Number of posts. */
3469
3484
  postCount?: number;
3470
3485
  }
3471
- interface TranslateDraftRequest {
3472
- /**
3473
- * Source post or draft ID
3474
- * @format GUID
3475
- */
3476
- postId?: string;
3477
- /**
3478
- * Translation language
3479
- * @format LANGUAGE_TAG
3480
- */
3481
- language?: string;
3482
- /**
3483
- * List of draft post fields to be included if entities are present in the response.
3484
- * Base fieldset, which is default, will return all core draft post properties.
3485
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3486
- * @maxSize 10
3487
- */
3488
- fieldsets?: FieldWithLiterals[];
3489
- }
3490
- interface TranslateDraftResponse {
3491
- /** Draft post. */
3492
- draftPost?: DraftPost;
3493
- }
3494
- interface IsDraftPostAutoTranslatableRequest {
3495
- /**
3496
- * Source post or draft ID.
3497
- * @format GUID
3498
- */
3499
- draftPostId?: string;
3500
- }
3501
- interface IsDraftPostAutoTranslatableResponse {
3502
- /**
3503
- * Source draft post ID.
3504
- * @format GUID
3505
- */
3506
- draftPostId?: string;
3507
- /** Indicates if enough machine translation credits are available for the draft post translation. */
3508
- translatable?: boolean;
3509
- /** Draft post title word count. */
3510
- titleWordCount?: number;
3511
- /** Draft post content word count. */
3512
- contentWordCount?: number;
3513
- /** Word credits available for auto translation. */
3514
- availableAutoTranslateWords?: number;
3515
- /** Word credits available after auto translation would be done. */
3516
- availableAutoTranslateWordsAfter?: number;
3517
- /** Content text character count. */
3518
- contentTextCharacterCount?: number;
3519
- }
3520
- interface UpdateDraftPostLanguageRequest {
3521
- /**
3522
- * Source draft post ID
3523
- * @format GUID
3524
- */
3525
- postId?: string;
3526
- /**
3527
- * New language to replace to
3528
- * @minLength 2
3529
- * @format LANGUAGE_TAG
3530
- */
3531
- language?: string;
3532
- /**
3533
- * List of draft post fields to be included if entities are present in the response.
3534
- * Base fieldset, which is default, will return all core draft post properties.
3535
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3536
- * @maxSize 10
3537
- */
3538
- fieldsets?: FieldWithLiterals[];
3539
- }
3540
- interface UpdateDraftPostLanguageResponse {
3541
- /** Draft post */
3542
- draftPost?: DraftPost;
3543
- }
3544
3486
  interface BulkRevertToUnpublishedRequest {
3545
3487
  /**
3546
3488
  * Source post IDs.
@@ -3652,6 +3594,79 @@ interface MarkPostAsInModerationResponse {
3652
3594
  /** Updated post draft. */
3653
3595
  draftPost?: DraftPost;
3654
3596
  }
3597
+ interface TranslateDraftRequest {
3598
+ /**
3599
+ * Source post or draft ID
3600
+ * @format GUID
3601
+ */
3602
+ postId?: string;
3603
+ /**
3604
+ * Translation language
3605
+ * @format LANGUAGE_TAG
3606
+ */
3607
+ language?: string;
3608
+ /**
3609
+ * List of draft post fields to be included if entities are present in the response.
3610
+ * Base fieldset, which is default, will return all core draft post properties.
3611
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3612
+ * @maxSize 10
3613
+ */
3614
+ fieldsets?: FieldWithLiterals[];
3615
+ }
3616
+ interface TranslateDraftResponse {
3617
+ /** Draft post. */
3618
+ draftPost?: DraftPost;
3619
+ }
3620
+ interface IsDraftPostAutoTranslatableRequest {
3621
+ /**
3622
+ * Source post or draft ID.
3623
+ * @format GUID
3624
+ */
3625
+ draftPostId?: string;
3626
+ }
3627
+ interface IsDraftPostAutoTranslatableResponse {
3628
+ /**
3629
+ * Source draft post ID.
3630
+ * @format GUID
3631
+ */
3632
+ draftPostId?: string;
3633
+ /** Indicates if enough machine translation credits are available for the draft post translation. */
3634
+ translatable?: boolean;
3635
+ /** Draft post title word count. */
3636
+ titleWordCount?: number;
3637
+ /** Draft post content word count. */
3638
+ contentWordCount?: number;
3639
+ /** Word credits available for auto translation. */
3640
+ availableAutoTranslateWords?: number;
3641
+ /** Word credits available after auto translation would be done. */
3642
+ availableAutoTranslateWordsAfter?: number;
3643
+ /** Content text character count. */
3644
+ contentTextCharacterCount?: number;
3645
+ }
3646
+ interface UpdateDraftPostLanguageRequest {
3647
+ /**
3648
+ * Source draft post ID
3649
+ * @format GUID
3650
+ */
3651
+ postId?: string;
3652
+ /**
3653
+ * New language to replace to
3654
+ * @minLength 2
3655
+ * @format LANGUAGE_TAG
3656
+ */
3657
+ language?: string;
3658
+ /**
3659
+ * List of draft post fields to be included if entities are present in the response.
3660
+ * Base fieldset, which is default, will return all core draft post properties.
3661
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3662
+ * @maxSize 10
3663
+ */
3664
+ fieldsets?: FieldWithLiterals[];
3665
+ }
3666
+ interface UpdateDraftPostLanguageResponse {
3667
+ /** Draft post */
3668
+ draftPost?: DraftPost;
3669
+ }
3655
3670
  interface BaseEventMetadata {
3656
3671
  /**
3657
3672
  * App instance ID.