@wix/auto_sdk_blog_draft-posts 1.0.45 → 1.0.47

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.
@@ -159,6 +159,91 @@ interface Image {
159
159
  */
160
160
  filename?: string | null;
161
161
  }
162
+ interface FocalPoint {
163
+ /** X-coordinate of the focal point. */
164
+ x?: number;
165
+ /** Y-coordinate of the focal point. */
166
+ y?: number;
167
+ /** crop by height */
168
+ height?: number | null;
169
+ /** crop by width */
170
+ width?: number | null;
171
+ }
172
+ declare enum Origin {
173
+ UNKNOWN = "UNKNOWN",
174
+ /** Changed by admin */
175
+ ADMIN = "ADMIN",
176
+ /** Categories were changed */
177
+ ADD_CATEGORIES = "ADD_CATEGORIES",
178
+ /** Saved automatically */
179
+ AUTO_SAVE = "AUTO_SAVE",
180
+ /** Copied from template */
181
+ COPY_TEMPLATE = "COPY_TEMPLATE",
182
+ /** Imported */
183
+ IMPORT = "IMPORT",
184
+ /** Imported in bulk */
185
+ IMPORT_BULK = "IMPORT_BULK",
186
+ /** Imported with html import */
187
+ IMPORT_HTML = "IMPORT_HTML",
188
+ /** Patch import */
189
+ IMPORT_PATCH = "IMPORT_PATCH",
190
+ /** Changed language */
191
+ LANGUAGE_CHANGE = "LANGUAGE_CHANGE",
192
+ /** Saved manually */
193
+ MANUAL_SAVE = "MANUAL_SAVE",
194
+ /** Affected by migration */
195
+ MIGRATION = "MIGRATION",
196
+ /** Affected by moderation */
197
+ MODERATION = "MODERATION",
198
+ /** Moved to trash */
199
+ MOVE_TO_TRASH = "MOVE_TO_TRASH",
200
+ /** Pricing plans were changed */
201
+ PRICING_PLANS_CHANGE = "PRICING_PLANS_CHANGE",
202
+ /** Was provisioned */
203
+ PROVISION = "PROVISION",
204
+ /** Was published */
205
+ PUBLISH = "PUBLISH",
206
+ /** Owner was reassigned */
207
+ REASSIGN_OWNER = "REASSIGN_OWNER",
208
+ /** Was reblogged */
209
+ REBLOG = "REBLOG",
210
+ /** Was restored */
211
+ RESTORE = "RESTORE",
212
+ /** Reverted to draft */
213
+ REVERT_TO_DRAFT = "REVERT_TO_DRAFT",
214
+ /** Was translated */
215
+ TRANSLATION = "TRANSLATION",
216
+ /** Was unpublished */
217
+ UNPUBLISH = "UNPUBLISH",
218
+ /** Was unscheduled */
219
+ UNSCHEDULE = "UNSCHEDULE",
220
+ /** New edit session started which updated editing_session_id id */
221
+ NEW_EDIT_SESSION = "NEW_EDIT_SESSION",
222
+ /** Was scheduled by Later */
223
+ SCHEDULING_SERVICE_SCHEDULE = "SCHEDULING_SERVICE_SCHEDULE",
224
+ /** Was unscheduled by Later */
225
+ SCHEDULING_SERVICE_UNSCHEDULE = "SCHEDULING_SERVICE_UNSCHEDULE",
226
+ /** Was published by Later */
227
+ SCHEDULING_SERVICE_PUBLISH = "SCHEDULING_SERVICE_PUBLISH",
228
+ /** Was scheduled */
229
+ SCHEDULE = "SCHEDULE",
230
+ /** Was removed from moderation */
231
+ REMOVE_FROM_MODERATION = "REMOVE_FROM_MODERATION",
232
+ /** Was rejected from moderation */
233
+ REJECT_FROM_MODERATION = "REJECT_FROM_MODERATION",
234
+ /** Was approved in moderation */
235
+ APPROVE_IN_MODERATION = "APPROVE_IN_MODERATION",
236
+ /** Tag was deleted */
237
+ DELETE_TAG = "DELETE_TAG",
238
+ /** Post was pinned */
239
+ PIN = "PIN",
240
+ /** Post was unpinned */
241
+ UNPIN = "UNPIN",
242
+ /** Saved automatically by AI tool. */
243
+ AI_AUTO_SAVE = "AI_AUTO_SAVE"
244
+ }
245
+ /** @enumType */
246
+ type OriginWithLiterals = Origin | 'UNKNOWN' | 'ADMIN' | 'ADD_CATEGORIES' | 'AUTO_SAVE' | 'COPY_TEMPLATE' | 'IMPORT' | 'IMPORT_BULK' | 'IMPORT_HTML' | 'IMPORT_PATCH' | 'LANGUAGE_CHANGE' | 'MANUAL_SAVE' | 'MIGRATION' | 'MODERATION' | 'MOVE_TO_TRASH' | 'PRICING_PLANS_CHANGE' | 'PROVISION' | 'PUBLISH' | 'REASSIGN_OWNER' | 'REBLOG' | 'RESTORE' | 'REVERT_TO_DRAFT' | 'TRANSLATION' | 'UNPUBLISH' | 'UNSCHEDULE' | 'NEW_EDIT_SESSION' | 'SCHEDULING_SERVICE_SCHEDULE' | 'SCHEDULING_SERVICE_UNSCHEDULE' | 'SCHEDULING_SERVICE_PUBLISH' | 'SCHEDULE' | 'REMOVE_FROM_MODERATION' | 'REJECT_FROM_MODERATION' | 'APPROVE_IN_MODERATION' | 'DELETE_TAG' | 'PIN' | 'UNPIN' | 'AI_AUTO_SAVE';
162
247
  interface RichContent {
163
248
  /** Node objects representing a rich content document. */
164
249
  nodes?: Node[];
@@ -1783,6 +1868,27 @@ interface BorderColors {
1783
1868
  */
1784
1869
  bottom?: string | null;
1785
1870
  }
1871
+ /**
1872
+ * `NullValue` is a singleton enumeration to represent the null value for the
1873
+ * `Value` type union.
1874
+ *
1875
+ * The JSON representation for `NullValue` is JSON `null`.
1876
+ */
1877
+ declare enum NullValue {
1878
+ /** Null value. */
1879
+ NULL_VALUE = "NULL_VALUE"
1880
+ }
1881
+ /** @enumType */
1882
+ type NullValueWithLiterals = NullValue | 'NULL_VALUE';
1883
+ /**
1884
+ * `ListValue` is a wrapper around a repeated field of values.
1885
+ *
1886
+ * The JSON representation for `ListValue` is JSON array.
1887
+ */
1888
+ interface ListValue {
1889
+ /** Repeated field of dynamically typed values. */
1890
+ values?: any[];
1891
+ }
1786
1892
  interface AudioData {
1787
1893
  /** Styling for the audio node's container. */
1788
1894
  containerData?: PluginContainerData;
@@ -2055,6 +2161,244 @@ interface EmbedVideo {
2055
2161
  /** Video height. */
2056
2162
  height?: number;
2057
2163
  }
2164
+ interface DraftPostTranslation {
2165
+ /**
2166
+ * Post ID.
2167
+ * @format GUID
2168
+ */
2169
+ id?: string;
2170
+ /** Post status. */
2171
+ status?: StatusWithLiterals;
2172
+ /**
2173
+ * Language the post is written in.
2174
+ * @format LANGUAGE_TAG
2175
+ */
2176
+ language?: string | null;
2177
+ /**
2178
+ * Post slug. For example, 'post-slug'.
2179
+ * @maxLength 100
2180
+ */
2181
+ slug?: string | null;
2182
+ /** SEO data. */
2183
+ seoData?: SeoSchema;
2184
+ /** Post URL. */
2185
+ url?: PageUrl;
2186
+ }
2187
+ interface DraftCategoriesUpdated {
2188
+ /**
2189
+ * Draft post ID.
2190
+ * @maxLength 38
2191
+ */
2192
+ draftPostId?: string;
2193
+ /**
2194
+ * Current categories of the draft.
2195
+ * @maxSize 10
2196
+ * @format GUID
2197
+ */
2198
+ categories?: string[];
2199
+ /**
2200
+ * Previous categories of the draft.
2201
+ * @maxSize 10
2202
+ * @format GUID
2203
+ */
2204
+ previousCategories?: string[];
2205
+ }
2206
+ interface DraftTagsUpdated {
2207
+ /**
2208
+ * Draft post ID.
2209
+ * @maxLength 38
2210
+ */
2211
+ draftPostId?: string;
2212
+ /**
2213
+ * Current tags of the draft.
2214
+ * @maxSize 30
2215
+ * @format GUID
2216
+ */
2217
+ tags?: string[];
2218
+ /**
2219
+ * Previous tags of the draft.
2220
+ * @maxSize 30
2221
+ * @format GUID
2222
+ */
2223
+ previousTags?: string[];
2224
+ }
2225
+ interface GetDraftPostTotalsRequest {
2226
+ /**
2227
+ * Group results by fields (defaults to grouping by status).
2228
+ * If, for example, grouping by language is passed, language values in response will be filled.
2229
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
2230
+ * @maxSize 10
2231
+ */
2232
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
2233
+ /**
2234
+ * Optional language filter by provided language code. Useful in multilingual context.
2235
+ * @format LANGUAGE_TAG
2236
+ */
2237
+ language?: string | null;
2238
+ }
2239
+ declare enum TotalDraftPostsGroupingField {
2240
+ /** Groups results by status. */
2241
+ STATUS = "STATUS",
2242
+ /** Groups results by language. */
2243
+ LANGUAGE = "LANGUAGE"
2244
+ }
2245
+ /** @enumType */
2246
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
2247
+ interface GetDraftPostTotalsResponse {
2248
+ /** Draft post totals. */
2249
+ totalDraftPosts?: TotalDraftPosts[];
2250
+ }
2251
+ interface TotalDraftPosts {
2252
+ /** Draft post totals in that group. */
2253
+ total?: number;
2254
+ /** Draft post status (only has value when grouping by status, otherwise null). */
2255
+ status?: StatusWithLiterals;
2256
+ /**
2257
+ * Draft post language code (only has value when grouping by language, otherwise null).
2258
+ * @format LANGUAGE_TAG
2259
+ */
2260
+ language?: string | null;
2261
+ }
2262
+ interface DomainEvent extends DomainEventBodyOneOf {
2263
+ createdEvent?: EntityCreatedEvent;
2264
+ updatedEvent?: EntityUpdatedEvent;
2265
+ deletedEvent?: EntityDeletedEvent;
2266
+ actionEvent?: ActionEvent;
2267
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2268
+ id?: string;
2269
+ /**
2270
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2271
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2272
+ */
2273
+ entityFqdn?: string;
2274
+ /**
2275
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
2276
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2277
+ */
2278
+ slug?: string;
2279
+ /** ID of the entity associated with the event. */
2280
+ entityId?: string;
2281
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2282
+ eventTime?: Date | null;
2283
+ /**
2284
+ * Whether the event was triggered as a result of a privacy regulation application
2285
+ * (for example, GDPR).
2286
+ */
2287
+ triggeredByAnonymizeRequest?: boolean | null;
2288
+ /** If present, indicates the action that triggered the event. */
2289
+ originatedFrom?: string | null;
2290
+ /**
2291
+ * 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.
2292
+ * 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.
2293
+ */
2294
+ entityEventSequence?: string | null;
2295
+ }
2296
+ /** @oneof */
2297
+ interface DomainEventBodyOneOf {
2298
+ createdEvent?: EntityCreatedEvent;
2299
+ updatedEvent?: EntityUpdatedEvent;
2300
+ deletedEvent?: EntityDeletedEvent;
2301
+ actionEvent?: ActionEvent;
2302
+ }
2303
+ interface EntityCreatedEvent {
2304
+ entityAsJson?: string;
2305
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
2306
+ restoreInfo?: RestoreInfo;
2307
+ }
2308
+ interface RestoreInfo {
2309
+ deletedDate?: Date | null;
2310
+ }
2311
+ interface EntityUpdatedEvent {
2312
+ /**
2313
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2314
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2315
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2316
+ */
2317
+ currentEntityAsJson?: string;
2318
+ }
2319
+ interface EntityDeletedEvent {
2320
+ /** Entity that was deleted. */
2321
+ deletedEntityAsJson?: string | null;
2322
+ }
2323
+ interface ActionEvent {
2324
+ bodyAsJson?: string;
2325
+ }
2326
+ interface MessageEnvelope {
2327
+ /**
2328
+ * App instance ID.
2329
+ * @format GUID
2330
+ */
2331
+ instanceId?: string | null;
2332
+ /**
2333
+ * Event type.
2334
+ * @maxLength 150
2335
+ */
2336
+ eventType?: string;
2337
+ /** The identification type and identity data. */
2338
+ identity?: IdentificationData;
2339
+ /** Stringify payload. */
2340
+ data?: string;
2341
+ }
2342
+ interface IdentificationData extends IdentificationDataIdOneOf {
2343
+ /**
2344
+ * ID of a site visitor that has not logged in to the site.
2345
+ * @format GUID
2346
+ */
2347
+ anonymousVisitorId?: string;
2348
+ /**
2349
+ * ID of a site visitor that has logged in to the site.
2350
+ * @format GUID
2351
+ */
2352
+ memberId?: string;
2353
+ /**
2354
+ * ID of a Wix user (site owner, contributor, etc.).
2355
+ * @format GUID
2356
+ */
2357
+ wixUserId?: string;
2358
+ /**
2359
+ * ID of an app.
2360
+ * @format GUID
2361
+ */
2362
+ appId?: string;
2363
+ /** @readonly */
2364
+ identityType?: WebhookIdentityTypeWithLiterals;
2365
+ }
2366
+ /** @oneof */
2367
+ interface IdentificationDataIdOneOf {
2368
+ /**
2369
+ * ID of a site visitor that has not logged in to the site.
2370
+ * @format GUID
2371
+ */
2372
+ anonymousVisitorId?: string;
2373
+ /**
2374
+ * ID of a site visitor that has logged in to the site.
2375
+ * @format GUID
2376
+ */
2377
+ memberId?: string;
2378
+ /**
2379
+ * ID of a Wix user (site owner, contributor, etc.).
2380
+ * @format GUID
2381
+ */
2382
+ wixUserId?: string;
2383
+ /**
2384
+ * ID of an app.
2385
+ * @format GUID
2386
+ */
2387
+ appId?: string;
2388
+ }
2389
+ declare enum WebhookIdentityType {
2390
+ UNKNOWN = "UNKNOWN",
2391
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2392
+ MEMBER = "MEMBER",
2393
+ WIX_USER = "WIX_USER",
2394
+ APP = "APP"
2395
+ }
2396
+ /** @enumType */
2397
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2398
+ interface InitialDraftPostsCopied {
2399
+ /** Number of draft posts copied. */
2400
+ count?: number;
2401
+ }
2058
2402
  interface CreateDraftPostRequest {
2059
2403
  /** Draft post to create. */
2060
2404
  draftPost: DraftPost;
@@ -2072,6 +2416,21 @@ interface CreateDraftPostRequest {
2072
2416
  */
2073
2417
  fieldsets?: FieldWithLiterals[];
2074
2418
  }
2419
+ declare enum Type {
2420
+ UNKNOWN = "UNKNOWN",
2421
+ /** Manually saved. */
2422
+ MANUAL = "MANUAL",
2423
+ /** Triggered by autosave. */
2424
+ AUTO_SAVE = "AUTO_SAVE",
2425
+ /** Copied from template during provisioning flow. */
2426
+ PROVISIONING = "PROVISIONING",
2427
+ /** Imported from another blog. */
2428
+ IMPORT = "IMPORT",
2429
+ /** Triggered by autosave when post created by AI tool. */
2430
+ AI_AUTO_SAVE = "AI_AUTO_SAVE"
2431
+ }
2432
+ /** @enumType */
2433
+ type TypeWithLiterals = Type | 'UNKNOWN' | 'MANUAL' | 'AUTO_SAVE' | 'PROVISIONING' | 'IMPORT' | 'AI_AUTO_SAVE';
2075
2434
  declare enum Field {
2076
2435
  /** Unknown field. */
2077
2436
  UNKNOWN = "UNKNOWN",
@@ -2202,6 +2561,8 @@ interface BulkUpdateDraftPostsResponse {
2202
2561
  /** Bulk action metadata. */
2203
2562
  bulkActionMetadata?: BulkActionMetadata;
2204
2563
  }
2564
+ interface DraftPostOwnerChanged {
2565
+ }
2205
2566
  interface ListDeletedDraftPostsRequest {
2206
2567
  /**
2207
2568
  * Language filter.
@@ -2312,6 +2673,28 @@ interface GetDraftPostResponse {
2312
2673
  /** Draft post info. */
2313
2674
  draftPost?: DraftPost;
2314
2675
  }
2676
+ interface UpdateDraftPostContentRequest {
2677
+ /**
2678
+ * Draft post ID.
2679
+ * @maxLength 38
2680
+ */
2681
+ draftPostId?: string;
2682
+ /** Change origin. */
2683
+ changeOrigin?: OriginWithLiterals;
2684
+ /**
2685
+ * List of draft post fields to be included if entities are present in the response.
2686
+ * Base fieldset, which is default, will return all core draft post properties.
2687
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
2688
+ * @maxSize 10
2689
+ */
2690
+ fieldsets?: FieldWithLiterals[];
2691
+ /** Draft Post rich content. */
2692
+ richContent?: RichContent;
2693
+ }
2694
+ interface UpdateDraftPostContentResponse {
2695
+ /** Updated draft post info. */
2696
+ draftPost?: DraftPost;
2697
+ }
2315
2698
  interface UpdateDraftPostRequest {
2316
2699
  /** Draft post to update. */
2317
2700
  draftPost: DraftPost;
@@ -2547,6 +2930,199 @@ interface PublishDraftPostResponse {
2547
2930
  */
2548
2931
  postId?: string;
2549
2932
  }
2933
+ interface UnpublishPostRequest {
2934
+ /**
2935
+ * Draft post ID.
2936
+ * @maxLength 38
2937
+ */
2938
+ draftPostId?: string;
2939
+ }
2940
+ interface UnpublishPostResponse {
2941
+ }
2942
+ interface TranslateDraftRequest {
2943
+ /**
2944
+ * Source post or draft ID
2945
+ * @format GUID
2946
+ */
2947
+ postId?: string;
2948
+ /**
2949
+ * Translation language
2950
+ * @format LANGUAGE_TAG
2951
+ */
2952
+ language?: string;
2953
+ /**
2954
+ * List of draft post fields to be included if entities are present in the response.
2955
+ * Base fieldset, which is default, will return all core draft post properties.
2956
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
2957
+ * @maxSize 10
2958
+ */
2959
+ fieldsets?: FieldWithLiterals[];
2960
+ }
2961
+ interface TranslateDraftResponse {
2962
+ /** Draft post. */
2963
+ draftPost?: DraftPost;
2964
+ }
2965
+ interface IsDraftPostAutoTranslatableRequest {
2966
+ /**
2967
+ * Source post or draft ID.
2968
+ * @format GUID
2969
+ */
2970
+ draftPostId?: string;
2971
+ }
2972
+ interface IsDraftPostAutoTranslatableResponse {
2973
+ /**
2974
+ * Source draft post ID.
2975
+ * @format GUID
2976
+ */
2977
+ draftPostId?: string;
2978
+ /** Indicates if enough machine translation credits are available for the draft post translation. */
2979
+ translatable?: boolean;
2980
+ /** Draft post title word count. */
2981
+ titleWordCount?: number;
2982
+ /** Draft post content word count. */
2983
+ contentWordCount?: number;
2984
+ /** Word credits available for auto translation. */
2985
+ availableAutoTranslateWords?: number;
2986
+ /** Word credits available after auto translation would be done. */
2987
+ availableAutoTranslateWordsAfter?: number;
2988
+ /** Content text character count. */
2989
+ contentTextCharacterCount?: number;
2990
+ }
2991
+ interface UpdateDraftPostLanguageRequest {
2992
+ /**
2993
+ * Source draft post ID
2994
+ * @format GUID
2995
+ */
2996
+ postId?: string;
2997
+ /**
2998
+ * New language to replace to
2999
+ * @minLength 2
3000
+ * @format LANGUAGE_TAG
3001
+ */
3002
+ language?: string;
3003
+ /**
3004
+ * List of draft post fields to be included if entities are present in the response.
3005
+ * Base fieldset, which is default, will return all core draft post properties.
3006
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3007
+ * @maxSize 10
3008
+ */
3009
+ fieldsets?: FieldWithLiterals[];
3010
+ }
3011
+ interface UpdateDraftPostLanguageResponse {
3012
+ /** Draft post */
3013
+ draftPost?: DraftPost;
3014
+ }
3015
+ interface BulkRevertToUnpublishedRequest {
3016
+ /**
3017
+ * Source post IDs.
3018
+ * @minSize 1
3019
+ * @maxSize 100
3020
+ * @format GUID
3021
+ */
3022
+ postIds?: string[];
3023
+ /** Should full draft post be returned. */
3024
+ returnFullEntity?: boolean;
3025
+ }
3026
+ interface BulkRevertToUnpublishedResponse {
3027
+ /** Bulk action results. */
3028
+ results?: BulkDraftPostResult[];
3029
+ /** Bulk action metadata. */
3030
+ bulkActionMetadata?: BulkActionMetadata;
3031
+ }
3032
+ interface BulkRejectDraftPostRequest {
3033
+ /**
3034
+ * Source post IDs.
3035
+ * @minSize 1
3036
+ * @maxSize 100
3037
+ * @format GUID
3038
+ */
3039
+ postIds?: string[];
3040
+ /** Should full draft post be returned. */
3041
+ returnFullEntity?: boolean;
3042
+ }
3043
+ interface BulkRejectDraftPostResponse {
3044
+ /** Bulk action results. */
3045
+ results?: BulkDraftPostResult[];
3046
+ /** Bulk action metadata. */
3047
+ bulkActionMetadata?: BulkActionMetadata;
3048
+ }
3049
+ interface RevertToUnpublishedRequest {
3050
+ /**
3051
+ * Source post ID.
3052
+ * @format GUID
3053
+ */
3054
+ postId?: string;
3055
+ /**
3056
+ * List of draft post fields to be included if entities are present in the response.
3057
+ * Base fieldset, which is default, will return all core draft post properties.
3058
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3059
+ * @maxSize 10
3060
+ */
3061
+ fieldsets?: FieldWithLiterals[];
3062
+ }
3063
+ interface RevertToUnpublishedResponse {
3064
+ /** Updated post draft. */
3065
+ draftPost?: DraftPost;
3066
+ }
3067
+ interface RejectDraftPostRequest {
3068
+ /**
3069
+ * Source post ID.
3070
+ * @format GUID
3071
+ */
3072
+ postId?: string;
3073
+ /**
3074
+ * List of draft post fields to be included if entities are present in the response.
3075
+ * Base fieldset, which is default, will return all core draft post properties.
3076
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3077
+ * @maxSize 10
3078
+ */
3079
+ fieldsets?: FieldWithLiterals[];
3080
+ }
3081
+ interface RejectDraftPostResponse {
3082
+ /** Draft post. */
3083
+ draftPost?: DraftPost;
3084
+ }
3085
+ interface ApproveDraftPostRequest {
3086
+ /**
3087
+ * Source post ID.
3088
+ * @format GUID
3089
+ */
3090
+ postId?: string;
3091
+ /**
3092
+ * Scheduled publish date if should be not immediately published.
3093
+ * @maxLength 24
3094
+ */
3095
+ scheduledPublishDate?: string | null;
3096
+ /**
3097
+ * List of draft post fields to be included if entities are present in the response.
3098
+ * Base fieldset, which is default, will return all core draft post properties.
3099
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3100
+ * @maxSize 10
3101
+ */
3102
+ fieldsets?: FieldWithLiterals[];
3103
+ }
3104
+ interface ApproveDraftPostResponse {
3105
+ /** Updated post draft. */
3106
+ draftPost?: DraftPost;
3107
+ }
3108
+ interface MarkPostAsInModerationRequest {
3109
+ /**
3110
+ * Source post ID.
3111
+ * @maxLength 38
3112
+ */
3113
+ postId?: string;
3114
+ /**
3115
+ * List of draft post fields to be included if entities are present in the response.
3116
+ * Base fieldset, which is default, will return all core draft post properties.
3117
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3118
+ * @maxSize 10
3119
+ */
3120
+ fieldsets?: FieldWithLiterals[];
3121
+ }
3122
+ interface MarkPostAsInModerationResponse {
3123
+ /** Updated post draft. */
3124
+ draftPost?: DraftPost;
3125
+ }
2550
3126
 
2551
3127
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2552
3128
  getUrl: (context: any) => string;
@@ -2587,4 +3163,4 @@ declare function publishDraftPost(): __PublicMethodMetaInfo<'POST', {
2587
3163
  draftPostId: string;
2588
3164
  }, PublishDraftPostRequest$1, PublishDraftPostRequest, PublishDraftPostResponse$1, PublishDraftPostResponse>;
2589
3165
 
2590
- export { type __PublicMethodMetaInfo, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, updateDraftPost };
3166
+ export { type ActionEvent as ActionEventOriginal, Action as ActionOriginal, type ActionWithLiterals as ActionWithLiteralsOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type AnchorData as AnchorDataOriginal, type AppEmbedDataAppDataOneOf as AppEmbedDataAppDataOneOfOriginal, type AppEmbedData as AppEmbedDataOriginal, AppType as AppTypeOriginal, type AppTypeWithLiterals as AppTypeWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, type ApproveDraftPostRequest as ApproveDraftPostRequestOriginal, type ApproveDraftPostResponse as ApproveDraftPostResponseOriginal, AspectRatio as AspectRatioOriginal, type AspectRatioWithLiterals as AspectRatioWithLiteralsOriginal, type AudioData as AudioDataOriginal, type BackgroundBackgroundOneOf as BackgroundBackgroundOneOfOriginal, type Background as BackgroundOriginal, BackgroundType as BackgroundTypeOriginal, type BackgroundTypeWithLiterals as BackgroundTypeWithLiteralsOriginal, type BlockquoteData as BlockquoteDataOriginal, type BlogPaging as BlogPagingOriginal, type BookingData as BookingDataOriginal, type BorderColors as BorderColorsOriginal, type Border as BorderOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateDraftPostsRequest as BulkCreateDraftPostsRequestOriginal, type BulkCreateDraftPostsResponse as BulkCreateDraftPostsResponseOriginal, type BulkDeleteDraftPostsRequest as BulkDeleteDraftPostsRequestOriginal, type BulkDeleteDraftPostsResponse as BulkDeleteDraftPostsResponseOriginal, type BulkDraftPostResult as BulkDraftPostResultOriginal, type BulkRejectDraftPostRequest as BulkRejectDraftPostRequestOriginal, type BulkRejectDraftPostResponse as BulkRejectDraftPostResponseOriginal, type BulkRevertToUnpublishedRequest as BulkRevertToUnpublishedRequestOriginal, type BulkRevertToUnpublishedResponse as BulkRevertToUnpublishedResponseOriginal, type BulkUpdateDraftPostsRequest as BulkUpdateDraftPostsRequestOriginal, type BulkUpdateDraftPostsResponse as BulkUpdateDraftPostsResponseOriginal, type BulletedListData as BulletedListDataOriginal, type ButtonData as ButtonDataOriginal, ButtonDataType as ButtonDataTypeOriginal, type ButtonDataTypeWithLiterals as ButtonDataTypeWithLiteralsOriginal, type ButtonStyles as ButtonStylesOriginal, type CaptionData as CaptionDataOriginal, type CardStyles as CardStylesOriginal, CardStylesType as CardStylesTypeOriginal, type CardStylesTypeWithLiterals as CardStylesTypeWithLiteralsOriginal, type CellStyle as CellStyleOriginal, type CodeBlockData as CodeBlockDataOriginal, type CollapsibleListData as CollapsibleListDataOriginal, type ColorData as ColorDataOriginal, type Colors as ColorsOriginal, type CreateDraftPostRequest as CreateDraftPostRequestOriginal, type CreateDraftPostResponse as CreateDraftPostResponseOriginal, Crop as CropOriginal, type CropWithLiterals as CropWithLiteralsOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DecorationDataOneOf as DecorationDataOneOfOriginal, type Decoration as DecorationOriginal, DecorationType as DecorationTypeOriginal, type DecorationTypeWithLiterals as DecorationTypeWithLiteralsOriginal, type DeleteDraftPostRequest as DeleteDraftPostRequestOriginal, type DeleteDraftPostResponse as DeleteDraftPostResponseOriginal, type Design as DesignOriginal, type Dimensions as DimensionsOriginal, Direction as DirectionOriginal, type DirectionWithLiterals as DirectionWithLiteralsOriginal, DividerDataAlignment as DividerDataAlignmentOriginal, type DividerDataAlignmentWithLiterals as DividerDataAlignmentWithLiteralsOriginal, type DividerData as DividerDataOriginal, type DocumentStyle as DocumentStyleOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DraftCategoriesUpdated as DraftCategoriesUpdatedOriginal, type DraftPost as DraftPostOriginal, type DraftPostOwnerChanged as DraftPostOwnerChangedOriginal, type DraftPostTranslation as DraftPostTranslationOriginal, type DraftTagsUpdated as DraftTagsUpdatedOriginal, type EmbedData as EmbedDataOriginal, type EmbedMedia as EmbedMediaOriginal, type EmbedThumbnail as EmbedThumbnailOriginal, type EmbedVideo as EmbedVideoOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EventData as EventDataOriginal, Field as FieldOriginal, type FieldWithLiterals as FieldWithLiteralsOriginal, type FileData as FileDataOriginal, type FileSourceDataOneOf as FileSourceDataOneOfOriginal, type FileSource as FileSourceOriginal, type FocalPoint as FocalPointOriginal, type FontSizeData as FontSizeDataOriginal, FontType as FontTypeOriginal, type FontTypeWithLiterals as FontTypeWithLiteralsOriginal, type GIFData as GIFDataOriginal, type GIF as GIFOriginal, GIFType as GIFTypeOriginal, type GIFTypeWithLiterals as GIFTypeWithLiteralsOriginal, type GalleryData as GalleryDataOriginal, type GalleryOptionsLayout as GalleryOptionsLayoutOriginal, type GalleryOptions as GalleryOptionsOriginal, type GetDeletedDraftPostRequest as GetDeletedDraftPostRequestOriginal, type GetDeletedDraftPostResponse as GetDeletedDraftPostResponseOriginal, type GetDraftPostRequest as GetDraftPostRequestOriginal, type GetDraftPostResponse as GetDraftPostResponseOriginal, type GetDraftPostTotalsRequest as GetDraftPostTotalsRequestOriginal, type GetDraftPostTotalsResponse as GetDraftPostTotalsResponseOriginal, GetDraftPostsSort as GetDraftPostsSortOriginal, type GetDraftPostsSortWithLiterals as GetDraftPostsSortWithLiteralsOriginal, type Gradient as GradientOriginal, type HTMLDataDataOneOf as HTMLDataDataOneOfOriginal, type HTMLData as HTMLDataOriginal, type HeadingData as HeadingDataOriginal, type Height as HeightOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ImageData as ImageDataOriginal, type ImageDataStyles as ImageDataStylesOriginal, type Image as ImageOriginal, type ImageStyles as ImageStylesOriginal, type InitialDraftPostsCopied as InitialDraftPostsCopiedOriginal, InitialExpandedItems as InitialExpandedItemsOriginal, type InitialExpandedItemsWithLiterals as InitialExpandedItemsWithLiteralsOriginal, type IsDraftPostAutoTranslatableRequest as IsDraftPostAutoTranslatableRequestOriginal, type IsDraftPostAutoTranslatableResponse as IsDraftPostAutoTranslatableResponseOriginal, type ItemDataOneOf as ItemDataOneOfOriginal, type ItemImage as ItemImageOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, type ItemStyle as ItemStyleOriginal, type Keyword as KeywordOriginal, type LayoutCellData as LayoutCellDataOriginal, Layout as LayoutOriginal, LayoutType as LayoutTypeOriginal, type LayoutTypeWithLiterals as LayoutTypeWithLiteralsOriginal, type LayoutWithLiterals as LayoutWithLiteralsOriginal, LineStyle as LineStyleOriginal, type LineStyleWithLiterals as LineStyleWithLiteralsOriginal, type LinkDataOneOf as LinkDataOneOfOriginal, type LinkData as LinkDataOriginal, type Link as LinkOriginal, type LinkPreviewData as LinkPreviewDataOriginal, type LinkPreviewDataStyles as LinkPreviewDataStylesOriginal, type ListDeletedDraftPostsRequest as ListDeletedDraftPostsRequestOriginal, type ListDeletedDraftPostsResponse as ListDeletedDraftPostsResponseOriginal, type ListDraftPostsRequest as ListDraftPostsRequestOriginal, type ListDraftPostsResponse as ListDraftPostsResponseOriginal, type ListValue as ListValueOriginal, type MapData as MapDataOriginal, type MapSettings as MapSettingsOriginal, MapType as MapTypeOriginal, type MapTypeWithLiterals as MapTypeWithLiteralsOriginal, type MarkPostAsInModerationRequest as MarkPostAsInModerationRequestOriginal, type MarkPostAsInModerationResponse as MarkPostAsInModerationResponseOriginal, type MaskedDraftPosts as MaskedDraftPostsOriginal, type MediaMediaOneOf as MediaMediaOneOfOriginal, type Media as MediaOriginal, type MentionData as MentionDataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MetaData as MetaDataOriginal, type Metadata as MetadataOriginal, type ModerationDetails as ModerationDetailsOriginal, ModerationStatusStatus as ModerationStatusStatusOriginal, type ModerationStatusStatusWithLiterals as ModerationStatusStatusWithLiteralsOriginal, type NodeDataOneOf as NodeDataOneOfOriginal, type Node as NodeOriginal, type NodeStyle as NodeStyleOriginal, NodeType as NodeTypeOriginal, type NodeTypeWithLiterals as NodeTypeWithLiteralsOriginal, NullValue as NullValueOriginal, type NullValueWithLiterals as NullValueWithLiteralsOriginal, type Oembed as OembedOriginal, type OptionDesign as OptionDesignOriginal, type OptionLayout as OptionLayoutOriginal, type Option as OptionOriginal, type OrderedListData as OrderedListDataOriginal, Orientation as OrientationOriginal, type OrientationWithLiterals as OrientationWithLiteralsOriginal, Origin as OriginOriginal, type OriginWithLiterals as OriginWithLiteralsOriginal, type PDFSettings as PDFSettingsOriginal, type PageUrl as PageUrlOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type ParagraphData as ParagraphDataOriginal, type Permissions as PermissionsOriginal, Placement as PlacementOriginal, type PlacementWithLiterals as PlacementWithLiteralsOriginal, type PlatformQuery as PlatformQueryOriginal, type PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOfOriginal, type PlaybackOptions as PlaybackOptionsOriginal, PluginContainerDataAlignment as PluginContainerDataAlignmentOriginal, type PluginContainerDataAlignmentWithLiterals as PluginContainerDataAlignmentWithLiteralsOriginal, type PluginContainerData as PluginContainerDataOriginal, type PluginContainerDataWidthDataOneOf as PluginContainerDataWidthDataOneOfOriginal, type PluginContainerDataWidth as PluginContainerDataWidthOriginal, type PollDataLayout as PollDataLayoutOriginal, type PollData as PollDataOriginal, type PollDesign as PollDesignOriginal, PollLayoutDirection as PollLayoutDirectionOriginal, type PollLayoutDirectionWithLiterals as PollLayoutDirectionWithLiteralsOriginal, type PollLayout as PollLayoutOriginal, PollLayoutType as PollLayoutTypeOriginal, type PollLayoutTypeWithLiterals as PollLayoutTypeWithLiteralsOriginal, type Poll as PollOriginal, type PollSettings as PollSettingsOriginal, Position as PositionOriginal, type PositionWithLiterals as PositionWithLiteralsOriginal, type PricingData as PricingDataOriginal, type PublishDraftPostRequest as PublishDraftPostRequestOriginal, type PublishDraftPostResponse as PublishDraftPostResponseOriginal, type QueryDraftPostsRequest as QueryDraftPostsRequestOriginal, type QueryDraftPostsResponse as QueryDraftPostsResponseOriginal, type RejectDraftPostRequest as RejectDraftPostRequestOriginal, type RejectDraftPostResponse as RejectDraftPostResponseOriginal, type Rel as RelOriginal, type RemoveFromTrashBinRequest as RemoveFromTrashBinRequestOriginal, type RemoveFromTrashBinResponse as RemoveFromTrashBinResponseOriginal, Resizing as ResizingOriginal, type ResizingWithLiterals as ResizingWithLiteralsOriginal, type RestoreFromTrashBinRequest as RestoreFromTrashBinRequestOriginal, type RestoreFromTrashBinResponse as RestoreFromTrashBinResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RevertToUnpublishedRequest as RevertToUnpublishedRequestOriginal, type RevertToUnpublishedResponse as RevertToUnpublishedResponseOriginal, type RibbonStyles as RibbonStylesOriginal, type RichContent as RichContentOriginal, type SeoSchema as SeoSchemaOriginal, type Settings as SettingsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Source as SourceOriginal, type SourceWithLiterals as SourceWithLiteralsOriginal, type SpoilerData as SpoilerDataOriginal, type Spoiler as SpoilerOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type StylesBorder as StylesBorderOriginal, type Styles as StylesOriginal, StylesPosition as StylesPositionOriginal, type StylesPositionWithLiterals as StylesPositionWithLiteralsOriginal, type TableCellData as TableCellDataOriginal, type TableData as TableDataOriginal, type Tag as TagOriginal, Target as TargetOriginal, type TargetWithLiterals as TargetWithLiteralsOriginal, TextAlignment as TextAlignmentOriginal, type TextAlignmentWithLiterals as TextAlignmentWithLiteralsOriginal, type TextData as TextDataOriginal, type TextNodeStyle as TextNodeStyleOriginal, type TextStyle as TextStyleOriginal, ThumbnailsAlignment as ThumbnailsAlignmentOriginal, type ThumbnailsAlignmentWithLiterals as ThumbnailsAlignmentWithLiteralsOriginal, type Thumbnails as ThumbnailsOriginal, TotalDraftPostsGroupingField as TotalDraftPostsGroupingFieldOriginal, type TotalDraftPostsGroupingFieldWithLiterals as TotalDraftPostsGroupingFieldWithLiteralsOriginal, type TotalDraftPosts as TotalDraftPostsOriginal, type TranslateDraftRequest as TranslateDraftRequestOriginal, type TranslateDraftResponse as TranslateDraftResponseOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UnpublishPostRequest as UnpublishPostRequestOriginal, type UnpublishPostResponse as UnpublishPostResponseOriginal, type UpdateDraftPostContentRequest as UpdateDraftPostContentRequestOriginal, type UpdateDraftPostContentResponse as UpdateDraftPostContentResponseOriginal, type UpdateDraftPostLanguageRequest as UpdateDraftPostLanguageRequestOriginal, type UpdateDraftPostLanguageResponse as UpdateDraftPostLanguageResponseOriginal, type UpdateDraftPostRequest as UpdateDraftPostRequestOriginal, type UpdateDraftPostResponse as UpdateDraftPostResponseOriginal, type V1Media as V1MediaOriginal, VerticalAlignment as VerticalAlignmentOriginal, type VerticalAlignmentWithLiterals as VerticalAlignmentWithLiteralsOriginal, type VideoData as VideoDataOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, ViewMode as ViewModeOriginal, type ViewModeWithLiterals as ViewModeWithLiteralsOriginal, ViewRole as ViewRoleOriginal, type ViewRoleWithLiterals as ViewRoleWithLiteralsOriginal, VoteRole as VoteRoleOriginal, type VoteRoleWithLiterals as VoteRoleWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, Width as WidthOriginal, WidthType as WidthTypeOriginal, type WidthTypeWithLiterals as WidthTypeWithLiteralsOriginal, type WidthWithLiterals as WidthWithLiteralsOriginal, type WixMedia as WixMediaOriginal, type __PublicMethodMetaInfo, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, updateDraftPost };