@wix/auto_sdk_blog_draft-posts 1.0.122 → 1.0.123

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.
@@ -3599,6 +3599,10 @@ interface DraftPostTranslation {
3599
3599
  /** Post URL. */
3600
3600
  url?: PageUrl;
3601
3601
  }
3602
+ interface InitialDraftPostsCopied {
3603
+ /** Number of draft posts copied. */
3604
+ count?: number;
3605
+ }
3602
3606
  interface DraftCategoriesUpdated {
3603
3607
  /**
3604
3608
  * Draft post ID.
@@ -3637,244 +3641,6 @@ interface DraftTagsUpdated {
3637
3641
  */
3638
3642
  previousTags?: string[];
3639
3643
  }
3640
- interface GetDraftPostTotalsRequest {
3641
- /**
3642
- * Group results by fields (defaults to grouping by status).
3643
- * If, for example, grouping by language is passed, language values in response will be filled.
3644
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3645
- * @maxSize 10
3646
- */
3647
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3648
- /**
3649
- * Optional language filter by provided language code. Useful in multilingual context.
3650
- * @format LANGUAGE_TAG
3651
- */
3652
- language?: string | null;
3653
- }
3654
- declare enum TotalDraftPostsGroupingField {
3655
- /** Groups results by status. */
3656
- STATUS = "STATUS",
3657
- /** Groups results by language. */
3658
- LANGUAGE = "LANGUAGE"
3659
- }
3660
- /** @enumType */
3661
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3662
- interface GetDraftPostTotalsResponse {
3663
- /** Draft post totals. */
3664
- totalDraftPosts?: TotalDraftPosts[];
3665
- }
3666
- interface TotalDraftPosts {
3667
- /** Draft post totals in that group. */
3668
- total?: number;
3669
- /** Draft post status (only has value when grouping by status, otherwise null). */
3670
- status?: StatusWithLiterals;
3671
- /**
3672
- * Draft post language code (only has value when grouping by language, otherwise null).
3673
- * @format LANGUAGE_TAG
3674
- */
3675
- language?: string | null;
3676
- }
3677
- interface DomainEvent extends DomainEventBodyOneOf {
3678
- createdEvent?: EntityCreatedEvent;
3679
- updatedEvent?: EntityUpdatedEvent;
3680
- deletedEvent?: EntityDeletedEvent;
3681
- actionEvent?: ActionEvent;
3682
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3683
- id?: string;
3684
- /**
3685
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3686
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3687
- */
3688
- entityFqdn?: string;
3689
- /**
3690
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3691
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3692
- */
3693
- slug?: string;
3694
- /** ID of the entity associated with the event. */
3695
- entityId?: string;
3696
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3697
- eventTime?: Date | null;
3698
- /**
3699
- * Whether the event was triggered as a result of a privacy regulation application
3700
- * (for example, GDPR).
3701
- */
3702
- triggeredByAnonymizeRequest?: boolean | null;
3703
- /** If present, indicates the action that triggered the event. */
3704
- originatedFrom?: string | null;
3705
- /**
3706
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
3707
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
3708
- */
3709
- entityEventSequence?: string | null;
3710
- }
3711
- /** @oneof */
3712
- interface DomainEventBodyOneOf {
3713
- createdEvent?: EntityCreatedEvent;
3714
- updatedEvent?: EntityUpdatedEvent;
3715
- deletedEvent?: EntityDeletedEvent;
3716
- actionEvent?: ActionEvent;
3717
- }
3718
- interface EntityCreatedEvent {
3719
- entityAsJson?: string;
3720
- /**
3721
- * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
3722
- * @internal
3723
- */
3724
- triggeredByUndelete?: boolean | null;
3725
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3726
- restoreInfo?: RestoreInfo;
3727
- /**
3728
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3729
- * @internal
3730
- */
3731
- additionalMetadataAsJson?: string | null;
3732
- }
3733
- interface RestoreInfo {
3734
- deletedDate?: Date | null;
3735
- }
3736
- interface EntityUpdatedEvent {
3737
- /**
3738
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3739
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3740
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3741
- */
3742
- currentEntityAsJson?: string;
3743
- /**
3744
- * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
3745
- * wont populate it / have any reference to it in the API.
3746
- * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
3747
- * the developer should send only the new (current) entity.
3748
- * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
3749
- * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
3750
- * @internal
3751
- * @deprecated
3752
- */
3753
- previousEntityAsJson?: string | null;
3754
- /**
3755
- * Map of fully qualified field paths to their previous values for fields that changed.
3756
- * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
3757
- * @internal
3758
- */
3759
- modifiedFields?: Record<string, any>;
3760
- /**
3761
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3762
- * @internal
3763
- */
3764
- additionalMetadataAsJson?: string | null;
3765
- }
3766
- interface EntityDeletedEvent {
3767
- /**
3768
- * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
3769
- * @internal
3770
- */
3771
- movedToTrash?: boolean | null;
3772
- /** Entity that was deleted. */
3773
- deletedEntityAsJson?: string | null;
3774
- /**
3775
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3776
- * @internal
3777
- */
3778
- additionalMetadataAsJson?: string | null;
3779
- }
3780
- interface ActionEvent {
3781
- bodyAsJson?: string;
3782
- }
3783
- interface MessageEnvelope {
3784
- /**
3785
- * App instance ID.
3786
- * @format GUID
3787
- */
3788
- instanceId?: string | null;
3789
- /**
3790
- * Event type.
3791
- * @maxLength 150
3792
- */
3793
- eventType?: string;
3794
- /** The identification type and identity data. */
3795
- identity?: IdentificationData;
3796
- /** Stringify payload. */
3797
- data?: string;
3798
- /** Details related to the account */
3799
- accountInfo?: AccountInfo;
3800
- }
3801
- interface IdentificationData extends IdentificationDataIdOneOf {
3802
- /**
3803
- * ID of a site visitor that has not logged in to the site.
3804
- * @format GUID
3805
- */
3806
- anonymousVisitorId?: string;
3807
- /**
3808
- * ID of a site visitor that has logged in to the site.
3809
- * @format GUID
3810
- */
3811
- memberId?: string;
3812
- /**
3813
- * ID of a Wix user (site owner, contributor, etc.).
3814
- * @format GUID
3815
- */
3816
- wixUserId?: string;
3817
- /**
3818
- * ID of an app.
3819
- * @format GUID
3820
- */
3821
- appId?: string;
3822
- /** @readonly */
3823
- identityType?: WebhookIdentityTypeWithLiterals;
3824
- }
3825
- /** @oneof */
3826
- interface IdentificationDataIdOneOf {
3827
- /**
3828
- * ID of a site visitor that has not logged in to the site.
3829
- * @format GUID
3830
- */
3831
- anonymousVisitorId?: string;
3832
- /**
3833
- * ID of a site visitor that has logged in to the site.
3834
- * @format GUID
3835
- */
3836
- memberId?: string;
3837
- /**
3838
- * ID of a Wix user (site owner, contributor, etc.).
3839
- * @format GUID
3840
- */
3841
- wixUserId?: string;
3842
- /**
3843
- * ID of an app.
3844
- * @format GUID
3845
- */
3846
- appId?: string;
3847
- }
3848
- declare enum WebhookIdentityType {
3849
- UNKNOWN = "UNKNOWN",
3850
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3851
- MEMBER = "MEMBER",
3852
- WIX_USER = "WIX_USER",
3853
- APP = "APP"
3854
- }
3855
- /** @enumType */
3856
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3857
- interface AccountInfo {
3858
- /**
3859
- * ID of the Wix account associated with the event.
3860
- * @format GUID
3861
- */
3862
- accountId?: string | null;
3863
- /**
3864
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3865
- * @format GUID
3866
- */
3867
- parentAccountId?: string | null;
3868
- /**
3869
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3870
- * @format GUID
3871
- */
3872
- siteId?: string | null;
3873
- }
3874
- interface InitialDraftPostsCopied {
3875
- /** Number of draft posts copied. */
3876
- count?: number;
3877
- }
3878
3644
  interface CreateDraftPostRequest {
3879
3645
  /** Draft post to create. */
3880
3646
  draftPost: DraftPost;
@@ -4524,12 +4290,338 @@ interface DraftPostCount {
4524
4290
  /** Number of posts. */
4525
4291
  postCount?: number;
4526
4292
  }
4527
- interface BulkRevertToUnpublishedRequest {
4293
+ interface DomainEvent extends DomainEventBodyOneOf {
4294
+ createdEvent?: EntityCreatedEvent;
4295
+ updatedEvent?: EntityUpdatedEvent;
4296
+ deletedEvent?: EntityDeletedEvent;
4297
+ actionEvent?: ActionEvent;
4298
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4299
+ id?: string;
4528
4300
  /**
4529
- * Source post IDs.
4530
- * @minSize 1
4531
- * @maxSize 100
4532
- * @format GUID
4301
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4302
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4303
+ */
4304
+ entityFqdn?: string;
4305
+ /**
4306
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
4307
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4308
+ */
4309
+ slug?: string;
4310
+ /** ID of the entity associated with the event. */
4311
+ entityId?: string;
4312
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4313
+ eventTime?: Date | null;
4314
+ /**
4315
+ * Whether the event was triggered as a result of a privacy regulation application
4316
+ * (for example, GDPR).
4317
+ */
4318
+ triggeredByAnonymizeRequest?: boolean | null;
4319
+ /** If present, indicates the action that triggered the event. */
4320
+ originatedFrom?: string | null;
4321
+ /**
4322
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
4323
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
4324
+ */
4325
+ entityEventSequence?: string | null;
4326
+ }
4327
+ /** @oneof */
4328
+ interface DomainEventBodyOneOf {
4329
+ createdEvent?: EntityCreatedEvent;
4330
+ updatedEvent?: EntityUpdatedEvent;
4331
+ deletedEvent?: EntityDeletedEvent;
4332
+ actionEvent?: ActionEvent;
4333
+ }
4334
+ interface EntityCreatedEvent {
4335
+ entityAsJson?: string;
4336
+ /**
4337
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
4338
+ * @internal
4339
+ */
4340
+ triggeredByUndelete?: boolean | null;
4341
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
4342
+ restoreInfo?: RestoreInfo;
4343
+ /**
4344
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4345
+ * @internal
4346
+ */
4347
+ additionalMetadataAsJson?: string | null;
4348
+ }
4349
+ interface RestoreInfo {
4350
+ deletedDate?: Date | null;
4351
+ }
4352
+ interface EntityUpdatedEvent {
4353
+ /**
4354
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4355
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4356
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4357
+ */
4358
+ currentEntityAsJson?: string;
4359
+ /**
4360
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
4361
+ * wont populate it / have any reference to it in the API.
4362
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
4363
+ * the developer should send only the new (current) entity.
4364
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
4365
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
4366
+ * @internal
4367
+ * @deprecated
4368
+ */
4369
+ previousEntityAsJson?: string | null;
4370
+ /**
4371
+ * Map of fully qualified field paths to their previous values for fields that changed.
4372
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
4373
+ * @internal
4374
+ */
4375
+ modifiedFields?: Record<string, any>;
4376
+ /**
4377
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4378
+ * @internal
4379
+ */
4380
+ additionalMetadataAsJson?: string | null;
4381
+ }
4382
+ interface EntityDeletedEvent {
4383
+ /**
4384
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
4385
+ * @internal
4386
+ */
4387
+ movedToTrash?: boolean | null;
4388
+ /** Entity that was deleted. */
4389
+ deletedEntityAsJson?: string | null;
4390
+ /**
4391
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4392
+ * @internal
4393
+ */
4394
+ additionalMetadataAsJson?: string | null;
4395
+ }
4396
+ interface ActionEvent {
4397
+ bodyAsJson?: string;
4398
+ }
4399
+ interface MessageEnvelope {
4400
+ /**
4401
+ * App instance ID.
4402
+ * @format GUID
4403
+ */
4404
+ instanceId?: string | null;
4405
+ /**
4406
+ * Event type.
4407
+ * @maxLength 150
4408
+ */
4409
+ eventType?: string;
4410
+ /** The identification type and identity data. */
4411
+ identity?: IdentificationData;
4412
+ /** Stringify payload. */
4413
+ data?: string;
4414
+ /** Details related to the account */
4415
+ accountInfo?: AccountInfo;
4416
+ }
4417
+ interface IdentificationData extends IdentificationDataIdOneOf {
4418
+ /**
4419
+ * ID of a site visitor that has not logged in to the site.
4420
+ * @format GUID
4421
+ */
4422
+ anonymousVisitorId?: string;
4423
+ /**
4424
+ * ID of a site visitor that has logged in to the site.
4425
+ * @format GUID
4426
+ */
4427
+ memberId?: string;
4428
+ /**
4429
+ * ID of a Wix user (site owner, contributor, etc.).
4430
+ * @format GUID
4431
+ */
4432
+ wixUserId?: string;
4433
+ /**
4434
+ * ID of an app.
4435
+ * @format GUID
4436
+ */
4437
+ appId?: string;
4438
+ /** @readonly */
4439
+ identityType?: WebhookIdentityTypeWithLiterals;
4440
+ }
4441
+ /** @oneof */
4442
+ interface IdentificationDataIdOneOf {
4443
+ /**
4444
+ * ID of a site visitor that has not logged in to the site.
4445
+ * @format GUID
4446
+ */
4447
+ anonymousVisitorId?: string;
4448
+ /**
4449
+ * ID of a site visitor that has logged in to the site.
4450
+ * @format GUID
4451
+ */
4452
+ memberId?: string;
4453
+ /**
4454
+ * ID of a Wix user (site owner, contributor, etc.).
4455
+ * @format GUID
4456
+ */
4457
+ wixUserId?: string;
4458
+ /**
4459
+ * ID of an app.
4460
+ * @format GUID
4461
+ */
4462
+ appId?: string;
4463
+ }
4464
+ declare enum WebhookIdentityType {
4465
+ UNKNOWN = "UNKNOWN",
4466
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4467
+ MEMBER = "MEMBER",
4468
+ WIX_USER = "WIX_USER",
4469
+ APP = "APP"
4470
+ }
4471
+ /** @enumType */
4472
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4473
+ interface AccountInfo {
4474
+ /**
4475
+ * ID of the Wix account associated with the event.
4476
+ * @format GUID
4477
+ */
4478
+ accountId?: string | null;
4479
+ /**
4480
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
4481
+ * @format GUID
4482
+ */
4483
+ parentAccountId?: string | null;
4484
+ /**
4485
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4486
+ * @format GUID
4487
+ */
4488
+ siteId?: string | null;
4489
+ }
4490
+ interface GetDraftPostTotalsRequest {
4491
+ /**
4492
+ * Group results by fields (defaults to grouping by status).
4493
+ * If, for example, grouping by language is passed, language values in response will be filled.
4494
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4495
+ * @maxSize 10
4496
+ */
4497
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4498
+ /**
4499
+ * Optional language filter by provided language code. Useful in multilingual context.
4500
+ * @format LANGUAGE_TAG
4501
+ */
4502
+ language?: string | null;
4503
+ }
4504
+ declare enum TotalDraftPostsGroupingField {
4505
+ /** Groups results by status. */
4506
+ STATUS = "STATUS",
4507
+ /** Groups results by language. */
4508
+ LANGUAGE = "LANGUAGE"
4509
+ }
4510
+ /** @enumType */
4511
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4512
+ interface GetDraftPostTotalsResponse {
4513
+ /** Draft post totals. */
4514
+ totalDraftPosts?: TotalDraftPosts[];
4515
+ }
4516
+ interface TotalDraftPosts {
4517
+ /** Draft post totals in that group. */
4518
+ total?: number;
4519
+ /** Draft post status (only has value when grouping by status, otherwise null). */
4520
+ status?: StatusWithLiterals;
4521
+ /**
4522
+ * Draft post language code (only has value when grouping by language, otherwise null).
4523
+ * @format LANGUAGE_TAG
4524
+ */
4525
+ language?: string | null;
4526
+ }
4527
+ interface TranslateDraftRequest {
4528
+ /**
4529
+ * ID of the draft post or published post to translate.
4530
+ * @format GUID
4531
+ */
4532
+ postId: string;
4533
+ /**
4534
+ * Language to translate the post into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4535
+ * For example, `de` for German, or `pt-br` for Brazilian Portuguese.
4536
+ * @format LANGUAGE_TAG
4537
+ */
4538
+ language: string;
4539
+ /**
4540
+ * Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
4541
+ *
4542
+ * - `URL`: Returns the draft post's preview URL.
4543
+ * - `CONTENT`: Returns the draft post's content.
4544
+ * - `RICH_CONTENT`: Returns the draft post's rich content.
4545
+ * - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
4546
+ *
4547
+ * Default: Core draft post fields only.
4548
+ * @maxSize 10
4549
+ */
4550
+ fieldsets?: FieldWithLiterals[];
4551
+ /**
4552
+ * Whether to machine translate the title and content into the target language.
4553
+ *
4554
+ * Default: `false`
4555
+ * @internal
4556
+ */
4557
+ useAutoTranslation?: boolean;
4558
+ }
4559
+ interface TranslateDraftResponse {
4560
+ /** Created draft post. */
4561
+ draftPost?: DraftPost;
4562
+ }
4563
+ interface IsDraftPostAutoTranslatableRequest {
4564
+ /**
4565
+ * Draft post ID.
4566
+ * @format GUID
4567
+ */
4568
+ draftPostId?: string;
4569
+ }
4570
+ interface IsDraftPostAutoTranslatableResponse {
4571
+ /**
4572
+ * Draft post ID.
4573
+ * @format GUID
4574
+ */
4575
+ draftPostId?: string;
4576
+ /** Whether enough machine translation word credits are available to translate the draft post. */
4577
+ translatable?: boolean;
4578
+ /** Number of words in the draft post's title. */
4579
+ titleWordCount?: number;
4580
+ /** Number of words in the draft post's content. */
4581
+ contentWordCount?: number;
4582
+ /** Number of machine translation word credits currently available. `-1` if the site's quota is unlimited. */
4583
+ availableAutoTranslateWords?: number;
4584
+ /** Number of machine translation word credits that remain after translating the draft post. `-1` if the site's quota is unlimited. */
4585
+ availableAutoTranslateWordsAfter?: number;
4586
+ /** Number of characters in the draft post's plain text content. */
4587
+ contentTextCharacterCount?: number;
4588
+ }
4589
+ interface UpdateDraftPostLanguageRequest {
4590
+ /**
4591
+ * ID of the draft post to update.
4592
+ * @format GUID
4593
+ */
4594
+ postId: string;
4595
+ /**
4596
+ * New language of the draft post, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4597
+ * For example, `de` for German, or `pt-br` for Brazilian Portuguese.
4598
+ * @minLength 2
4599
+ * @format LANGUAGE_TAG
4600
+ */
4601
+ language: string;
4602
+ /**
4603
+ * Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
4604
+ *
4605
+ * - `URL`: Returns the draft post's preview URL.
4606
+ * - `CONTENT`: Returns the draft post's content.
4607
+ * - `RICH_CONTENT`: Returns the draft post's rich content.
4608
+ * - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
4609
+ *
4610
+ * Default: Core draft post fields only.
4611
+ * @maxSize 10
4612
+ */
4613
+ fieldsets?: FieldWithLiterals[];
4614
+ }
4615
+ interface UpdateDraftPostLanguageResponse {
4616
+ /** Updated draft post. */
4617
+ draftPost?: DraftPost;
4618
+ }
4619
+ interface BulkRevertToUnpublishedRequest {
4620
+ /**
4621
+ * Source post IDs.
4622
+ * @minSize 1
4623
+ * @maxSize 100
4624
+ * @format GUID
4533
4625
  */
4534
4626
  postIds?: string[];
4535
4627
  /** Should full draft post be returned. */
@@ -4671,98 +4763,6 @@ interface MarkPostAsInModerationResponse {
4671
4763
  /** Updated post draft. */
4672
4764
  draftPost?: DraftPost;
4673
4765
  }
4674
- interface TranslateDraftRequest {
4675
- /**
4676
- * ID of the draft post or published post to translate.
4677
- * @format GUID
4678
- */
4679
- postId: string;
4680
- /**
4681
- * Language to translate the post into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4682
- * For example, `de` for German, or `pt-br` for Brazilian Portuguese.
4683
- * @format LANGUAGE_TAG
4684
- */
4685
- language: string;
4686
- /**
4687
- * Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
4688
- *
4689
- * - `URL`: Returns the draft post's preview URL.
4690
- * - `CONTENT`: Returns the draft post's content.
4691
- * - `RICH_CONTENT`: Returns the draft post's rich content.
4692
- * - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
4693
- *
4694
- * Default: Core draft post fields only.
4695
- * @maxSize 10
4696
- */
4697
- fieldsets?: FieldWithLiterals[];
4698
- /**
4699
- * Whether to machine translate the title and content into the target language.
4700
- *
4701
- * Default: `false`
4702
- * @internal
4703
- */
4704
- useAutoTranslation?: boolean;
4705
- }
4706
- interface TranslateDraftResponse {
4707
- /** Created draft post. */
4708
- draftPost?: DraftPost;
4709
- }
4710
- interface IsDraftPostAutoTranslatableRequest {
4711
- /**
4712
- * Draft post ID.
4713
- * @format GUID
4714
- */
4715
- draftPostId?: string;
4716
- }
4717
- interface IsDraftPostAutoTranslatableResponse {
4718
- /**
4719
- * Draft post ID.
4720
- * @format GUID
4721
- */
4722
- draftPostId?: string;
4723
- /** Whether enough machine translation word credits are available to translate the draft post. */
4724
- translatable?: boolean;
4725
- /** Number of words in the draft post's title. */
4726
- titleWordCount?: number;
4727
- /** Number of words in the draft post's content. */
4728
- contentWordCount?: number;
4729
- /** Number of machine translation word credits currently available. `-1` if the site's quota is unlimited. */
4730
- availableAutoTranslateWords?: number;
4731
- /** Number of machine translation word credits that remain after translating the draft post. `-1` if the site's quota is unlimited. */
4732
- availableAutoTranslateWordsAfter?: number;
4733
- /** Number of characters in the draft post's plain text content. */
4734
- contentTextCharacterCount?: number;
4735
- }
4736
- interface UpdateDraftPostLanguageRequest {
4737
- /**
4738
- * ID of the draft post to update.
4739
- * @format GUID
4740
- */
4741
- postId: string;
4742
- /**
4743
- * New language of the draft post, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4744
- * For example, `de` for German, or `pt-br` for Brazilian Portuguese.
4745
- * @minLength 2
4746
- * @format LANGUAGE_TAG
4747
- */
4748
- language: string;
4749
- /**
4750
- * Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
4751
- *
4752
- * - `URL`: Returns the draft post's preview URL.
4753
- * - `CONTENT`: Returns the draft post's content.
4754
- * - `RICH_CONTENT`: Returns the draft post's rich content.
4755
- * - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
4756
- *
4757
- * Default: Core draft post fields only.
4758
- * @maxSize 10
4759
- */
4760
- fieldsets?: FieldWithLiterals[];
4761
- }
4762
- interface UpdateDraftPostLanguageResponse {
4763
- /** Updated draft post. */
4764
- draftPost?: DraftPost;
4765
- }
4766
4766
 
4767
4767
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4768
4768
  getUrl: (context: any) => string;