@wix/auto_sdk_comments_comments 1.0.38 → 1.0.40

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 (37) hide show
  1. package/build/cjs/index.d.ts +5 -5
  2. package/build/cjs/index.js +177 -177
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +280 -163
  5. package/build/cjs/index.typings.js +14 -14
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +268 -151
  8. package/build/cjs/meta.js +14 -14
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +5 -5
  11. package/build/es/index.mjs +177 -177
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +280 -163
  14. package/build/es/index.typings.mjs +14 -14
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +268 -151
  17. package/build/es/meta.mjs +14 -14
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +5 -5
  20. package/build/internal/cjs/index.js +177 -177
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +280 -163
  23. package/build/internal/cjs/index.typings.js +14 -14
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +268 -151
  26. package/build/internal/cjs/meta.js +14 -14
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +5 -5
  29. package/build/internal/es/index.mjs +177 -177
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +280 -163
  32. package/build/internal/es/index.typings.mjs +14 -14
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +268 -151
  35. package/build/internal/es/meta.mjs +14 -14
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -2252,6 +2252,271 @@ interface CommentReactionSummary {
2252
2252
  */
2253
2253
  reactionCodeCount?: Record<string, number>;
2254
2254
  }
2255
+ interface InvalidateCache extends InvalidateCacheGetByOneOf {
2256
+ /**
2257
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
2258
+ * @format GUID
2259
+ */
2260
+ metaSiteId?: string;
2261
+ /**
2262
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
2263
+ * @format GUID
2264
+ */
2265
+ siteId?: string;
2266
+ /** Invalidate by App */
2267
+ app?: App;
2268
+ /** Invalidate by page id */
2269
+ page?: Page;
2270
+ /** Invalidate by URI path */
2271
+ uri?: URI;
2272
+ /** Invalidate by file (for media files such as PDFs) */
2273
+ file?: File;
2274
+ /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
2275
+ customTag?: CustomTag;
2276
+ /**
2277
+ * tell us why you're invalidating the cache. You don't need to add your app name
2278
+ * @maxLength 256
2279
+ */
2280
+ reason?: string | null;
2281
+ /** Is local DS */
2282
+ localDc?: boolean;
2283
+ hardPurge?: boolean;
2284
+ }
2285
+ /** @oneof */
2286
+ interface InvalidateCacheGetByOneOf {
2287
+ /**
2288
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
2289
+ * @format GUID
2290
+ */
2291
+ metaSiteId?: string;
2292
+ /**
2293
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
2294
+ * @format GUID
2295
+ */
2296
+ siteId?: string;
2297
+ /** Invalidate by App */
2298
+ app?: App;
2299
+ /** Invalidate by page id */
2300
+ page?: Page;
2301
+ /** Invalidate by URI path */
2302
+ uri?: URI;
2303
+ /** Invalidate by file (for media files such as PDFs) */
2304
+ file?: File;
2305
+ /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
2306
+ customTag?: CustomTag;
2307
+ }
2308
+ interface App {
2309
+ /**
2310
+ * The AppDefId
2311
+ * @minLength 1
2312
+ */
2313
+ appDefId?: string;
2314
+ /**
2315
+ * The instance Id
2316
+ * @format GUID
2317
+ */
2318
+ instanceId?: string;
2319
+ }
2320
+ interface Page {
2321
+ /**
2322
+ * the msid the page is on
2323
+ * @format GUID
2324
+ */
2325
+ metaSiteId?: string;
2326
+ /**
2327
+ * Invalidate by Page ID
2328
+ * @minLength 1
2329
+ */
2330
+ pageId?: string;
2331
+ }
2332
+ interface URI {
2333
+ /**
2334
+ * the msid the URI is on
2335
+ * @format GUID
2336
+ */
2337
+ metaSiteId?: string;
2338
+ /**
2339
+ * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
2340
+ * @minLength 1
2341
+ */
2342
+ uriPath?: string;
2343
+ }
2344
+ interface File {
2345
+ /**
2346
+ * the msid the file is related to
2347
+ * @format GUID
2348
+ */
2349
+ metaSiteId?: string;
2350
+ /**
2351
+ * Invalidate by filename (for media files such as PDFs)
2352
+ * @minLength 1
2353
+ * @maxLength 256
2354
+ */
2355
+ fileName?: string;
2356
+ }
2357
+ interface CustomTag {
2358
+ /**
2359
+ * the msid the tag is related to
2360
+ * @format GUID
2361
+ */
2362
+ metaSiteId?: string;
2363
+ /**
2364
+ * Tag to invalidate by
2365
+ * @minLength 1
2366
+ * @maxLength 256
2367
+ */
2368
+ tag?: string;
2369
+ }
2370
+ interface CommentModerated {
2371
+ comment?: Comment;
2372
+ moderationAction?: ActionWithLiterals;
2373
+ }
2374
+ declare enum Action {
2375
+ /** Unknown content. */
2376
+ UNKNOWN = "UNKNOWN",
2377
+ /** Approve draft content. */
2378
+ APPROVE = "APPROVE",
2379
+ /** Reject draft content. */
2380
+ REJECT = "REJECT"
2381
+ }
2382
+ /** @enumType */
2383
+ type ActionWithLiterals = Action | 'UNKNOWN' | 'APPROVE' | 'REJECT';
2384
+ interface DomainEvent extends DomainEventBodyOneOf {
2385
+ createdEvent?: EntityCreatedEvent;
2386
+ updatedEvent?: EntityUpdatedEvent;
2387
+ deletedEvent?: EntityDeletedEvent;
2388
+ actionEvent?: ActionEvent;
2389
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2390
+ _id?: string;
2391
+ /**
2392
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2393
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2394
+ */
2395
+ entityFqdn?: string;
2396
+ /**
2397
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
2398
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2399
+ */
2400
+ slug?: string;
2401
+ /** ID of the entity associated with the event. */
2402
+ entityId?: string;
2403
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2404
+ eventTime?: Date | null;
2405
+ /**
2406
+ * Whether the event was triggered as a result of a privacy regulation application
2407
+ * (for example, GDPR).
2408
+ */
2409
+ triggeredByAnonymizeRequest?: boolean | null;
2410
+ /** If present, indicates the action that triggered the event. */
2411
+ originatedFrom?: string | null;
2412
+ /**
2413
+ * 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.
2414
+ * 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.
2415
+ */
2416
+ entityEventSequence?: string | null;
2417
+ }
2418
+ /** @oneof */
2419
+ interface DomainEventBodyOneOf {
2420
+ createdEvent?: EntityCreatedEvent;
2421
+ updatedEvent?: EntityUpdatedEvent;
2422
+ deletedEvent?: EntityDeletedEvent;
2423
+ actionEvent?: ActionEvent;
2424
+ }
2425
+ interface EntityCreatedEvent {
2426
+ entity?: string;
2427
+ }
2428
+ interface RestoreInfo {
2429
+ deletedDate?: Date | null;
2430
+ }
2431
+ interface EntityUpdatedEvent {
2432
+ /**
2433
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2434
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2435
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2436
+ */
2437
+ currentEntity?: string;
2438
+ }
2439
+ interface EntityDeletedEvent {
2440
+ /** Entity that was deleted. */
2441
+ deletedEntity?: string | null;
2442
+ }
2443
+ interface ActionEvent {
2444
+ body?: string;
2445
+ }
2446
+ interface Empty {
2447
+ }
2448
+ interface MessageEnvelope {
2449
+ /**
2450
+ * App instance ID.
2451
+ * @format GUID
2452
+ */
2453
+ instanceId?: string | null;
2454
+ /**
2455
+ * Event type.
2456
+ * @maxLength 150
2457
+ */
2458
+ eventType?: string;
2459
+ /** The identification type and identity data. */
2460
+ identity?: IdentificationData;
2461
+ /** Stringify payload. */
2462
+ data?: string;
2463
+ }
2464
+ interface IdentificationData extends IdentificationDataIdOneOf {
2465
+ /**
2466
+ * ID of a site visitor that has not logged in to the site.
2467
+ * @format GUID
2468
+ */
2469
+ anonymousVisitorId?: string;
2470
+ /**
2471
+ * ID of a site visitor that has logged in to the site.
2472
+ * @format GUID
2473
+ */
2474
+ memberId?: string;
2475
+ /**
2476
+ * ID of a Wix user (site owner, contributor, etc.).
2477
+ * @format GUID
2478
+ */
2479
+ wixUserId?: string;
2480
+ /**
2481
+ * ID of an app.
2482
+ * @format GUID
2483
+ */
2484
+ appId?: string;
2485
+ /** @readonly */
2486
+ identityType?: WebhookIdentityTypeWithLiterals;
2487
+ }
2488
+ /** @oneof */
2489
+ interface IdentificationDataIdOneOf {
2490
+ /**
2491
+ * ID of a site visitor that has not logged in to the site.
2492
+ * @format GUID
2493
+ */
2494
+ anonymousVisitorId?: string;
2495
+ /**
2496
+ * ID of a site visitor that has logged in to the site.
2497
+ * @format GUID
2498
+ */
2499
+ memberId?: string;
2500
+ /**
2501
+ * ID of a Wix user (site owner, contributor, etc.).
2502
+ * @format GUID
2503
+ */
2504
+ wixUserId?: string;
2505
+ /**
2506
+ * ID of an app.
2507
+ * @format GUID
2508
+ */
2509
+ appId?: string;
2510
+ }
2511
+ declare enum WebhookIdentityType {
2512
+ UNKNOWN = "UNKNOWN",
2513
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2514
+ MEMBER = "MEMBER",
2515
+ WIX_USER = "WIX_USER",
2516
+ APP = "APP"
2517
+ }
2518
+ /** @enumType */
2519
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2255
2520
  interface UpdateInternalDocumentsEvent extends UpdateInternalDocumentsEventOperationOneOf {
2256
2521
  /** insert/update documents */
2257
2522
  update?: InternalDocumentUpdateOperation;
@@ -2387,20 +2652,6 @@ interface VersionedDocumentId {
2387
2652
  /** versioning mode to use instead of default */
2388
2653
  versioningMode?: VersioningModeWithLiterals;
2389
2654
  }
2390
- interface CommentModerated {
2391
- comment?: Comment;
2392
- moderationAction?: ActionWithLiterals;
2393
- }
2394
- declare enum Action {
2395
- /** Unknown content. */
2396
- UNKNOWN = "UNKNOWN",
2397
- /** Approve draft content. */
2398
- APPROVE = "APPROVE",
2399
- /** Reject draft content. */
2400
- REJECT = "REJECT"
2401
- }
2402
- /** @enumType */
2403
- type ActionWithLiterals = Action | 'UNKNOWN' | 'APPROVE' | 'REJECT';
2404
2655
  interface CreateCommentRequest {
2405
2656
  /** Comment to create. */
2406
2657
  comment?: Comment;
@@ -2912,140 +3163,6 @@ interface CommentMoved {
2912
3163
  comment?: Comment;
2913
3164
  destination?: Destination;
2914
3165
  }
2915
- interface DomainEvent extends DomainEventBodyOneOf {
2916
- createdEvent?: EntityCreatedEvent;
2917
- updatedEvent?: EntityUpdatedEvent;
2918
- deletedEvent?: EntityDeletedEvent;
2919
- actionEvent?: ActionEvent;
2920
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2921
- _id?: string;
2922
- /**
2923
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2924
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2925
- */
2926
- entityFqdn?: string;
2927
- /**
2928
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
2929
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2930
- */
2931
- slug?: string;
2932
- /** ID of the entity associated with the event. */
2933
- entityId?: string;
2934
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2935
- eventTime?: Date | null;
2936
- /**
2937
- * Whether the event was triggered as a result of a privacy regulation application
2938
- * (for example, GDPR).
2939
- */
2940
- triggeredByAnonymizeRequest?: boolean | null;
2941
- /** If present, indicates the action that triggered the event. */
2942
- originatedFrom?: string | null;
2943
- /**
2944
- * 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.
2945
- * 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.
2946
- */
2947
- entityEventSequence?: string | null;
2948
- }
2949
- /** @oneof */
2950
- interface DomainEventBodyOneOf {
2951
- createdEvent?: EntityCreatedEvent;
2952
- updatedEvent?: EntityUpdatedEvent;
2953
- deletedEvent?: EntityDeletedEvent;
2954
- actionEvent?: ActionEvent;
2955
- }
2956
- interface EntityCreatedEvent {
2957
- entity?: string;
2958
- }
2959
- interface RestoreInfo {
2960
- deletedDate?: Date | null;
2961
- }
2962
- interface EntityUpdatedEvent {
2963
- /**
2964
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2965
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2966
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2967
- */
2968
- currentEntity?: string;
2969
- }
2970
- interface EntityDeletedEvent {
2971
- /** Entity that was deleted. */
2972
- deletedEntity?: string | null;
2973
- }
2974
- interface ActionEvent {
2975
- body?: string;
2976
- }
2977
- interface MessageEnvelope {
2978
- /**
2979
- * App instance ID.
2980
- * @format GUID
2981
- */
2982
- instanceId?: string | null;
2983
- /**
2984
- * Event type.
2985
- * @maxLength 150
2986
- */
2987
- eventType?: string;
2988
- /** The identification type and identity data. */
2989
- identity?: IdentificationData;
2990
- /** Stringify payload. */
2991
- data?: string;
2992
- }
2993
- interface IdentificationData extends IdentificationDataIdOneOf {
2994
- /**
2995
- * ID of a site visitor that has not logged in to the site.
2996
- * @format GUID
2997
- */
2998
- anonymousVisitorId?: string;
2999
- /**
3000
- * ID of a site visitor that has logged in to the site.
3001
- * @format GUID
3002
- */
3003
- memberId?: string;
3004
- /**
3005
- * ID of a Wix user (site owner, contributor, etc.).
3006
- * @format GUID
3007
- */
3008
- wixUserId?: string;
3009
- /**
3010
- * ID of an app.
3011
- * @format GUID
3012
- */
3013
- appId?: string;
3014
- /** @readonly */
3015
- identityType?: WebhookIdentityTypeWithLiterals;
3016
- }
3017
- /** @oneof */
3018
- interface IdentificationDataIdOneOf {
3019
- /**
3020
- * ID of a site visitor that has not logged in to the site.
3021
- * @format GUID
3022
- */
3023
- anonymousVisitorId?: string;
3024
- /**
3025
- * ID of a site visitor that has logged in to the site.
3026
- * @format GUID
3027
- */
3028
- memberId?: string;
3029
- /**
3030
- * ID of a Wix user (site owner, contributor, etc.).
3031
- * @format GUID
3032
- */
3033
- wixUserId?: string;
3034
- /**
3035
- * ID of an app.
3036
- * @format GUID
3037
- */
3038
- appId?: string;
3039
- }
3040
- declare enum WebhookIdentityType {
3041
- UNKNOWN = "UNKNOWN",
3042
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3043
- MEMBER = "MEMBER",
3044
- WIX_USER = "WIX_USER",
3045
- APP = "APP"
3046
- }
3047
- /** @enumType */
3048
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3049
3166
  /** @docsIgnore */
3050
3167
  type CreateCommentApplicationErrors = {
3051
3168
  code?: 'INVALID_CAPTCHA';
@@ -3108,6 +3225,19 @@ interface EventMetadata extends BaseEventMetadata {
3108
3225
  */
3109
3226
  entityEventSequence?: string | null;
3110
3227
  }
3228
+ interface CommentDeletedEnvelope {
3229
+ metadata: EventMetadata;
3230
+ }
3231
+ /** @permissionScope Read Comments
3232
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
3233
+ * @permissionScope Manage Comments
3234
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3235
+ * @permissionId WIX_COMMENTS.COMMENT_READ
3236
+ * @webhook
3237
+ * @eventType wix.comments.v2.comment_deleted
3238
+ * @slug deleted
3239
+ */
3240
+ declare function onCommentDeleted(handler: (event: CommentDeletedEnvelope) => void | Promise<void>): void;
3111
3241
  interface CommentContentChangedEnvelope {
3112
3242
  data: CommentContentChanged;
3113
3243
  metadata: EventMetadata;
@@ -3227,20 +3357,6 @@ interface CommentCreatedEnvelope {
3227
3357
  * @slug created
3228
3358
  */
3229
3359
  declare function onCommentCreated(handler: (event: CommentCreatedEnvelope) => void | Promise<void>): void;
3230
- interface CommentDeletedEnvelope {
3231
- metadata: EventMetadata;
3232
- }
3233
- /** @permissionScope Read Comments
3234
- * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
3235
- * @permissionScope Manage Comments
3236
- * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3237
- * @permissionId WIX_COMMENTS.COMMENT_READ
3238
- * @webhook
3239
- * @eventType wix.comments.v2.comment_deleted
3240
- * @serviceIdentifier wix.comments.ng.v1.CommentsNg
3241
- * @slug deleted
3242
- */
3243
- declare function onCommentDeleted(handler: (event: CommentDeletedEnvelope) => void | Promise<void>): void;
3244
3360
  interface CommentResourceCommentCountChangedEnvelope {
3245
3361
  data: ResourceCommentCountChanged;
3246
3362
  metadata: EventMetadata;
@@ -3261,6 +3377,7 @@ declare function onCommentResourceCommentCountChanged(handler: (event: CommentRe
3261
3377
  interface CommentUpdatedEnvelope {
3262
3378
  entity: Comment;
3263
3379
  metadata: EventMetadata;
3380
+ /** @hidden */
3264
3381
  modifiedFields: Record<string, any>;
3265
3382
  }
3266
3383
  /**
@@ -3903,4 +4020,4 @@ interface BulkMoveCommentByFilterOptions {
3903
4020
  destination?: Destination;
3904
4021
  }
3905
4022
 
3906
- export { Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type Attachment, type AttachmentMediaOneOf, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeleteCommentOptions, type BulkDeleteCommentRequest, type BulkDeleteCommentResponse, type BulkHideCommentOptions, type BulkHideCommentRequest, type BulkHideCommentResponse, type BulkModerateDraftContentOptions, type BulkModerateDraftContentRequest, type BulkModerateDraftContentResponse, type BulkMoveCommentByFilterOptions, type BulkMoveCommentByFilterRequest, type BulkMoveCommentByFilterResponse, type BulkPublishCommentOptions, type BulkPublishCommentRequest, type BulkPublishCommentResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type Comment, type CommentAuthor, type CommentAuthorIdentityOneOf, type CommentContent, type CommentContentChanged, type CommentContentChangedEnvelope, type CommentCreatedEnvelope, type CommentDeleted, type CommentDeletedEnvelope, type CommentHidden, type CommentHiddenEnvelope, type CommentMarked, type CommentMarkedEnvelope, type CommentModerated, type CommentMoved, type CommentMovedEnvelope, type CommentPublished, type CommentPublishedEnvelope, type CommentQuery, type CommentQuerySpec, type CommentReactionSummary, type CommentResourceCommentCountChangedEnvelope, type CommentSort, type CommentUnmarked, type CommentUnmarkedEnvelope, type CommentUpdatedEnvelope, type CommentsQueryBuilder, type CommentsQueryResult, type CommonQueryWithEntityContext, type ContactDetails, type ContentAuthor, type ContentAuthorAuthorOneOf, type CountCommentsApplicationErrors, type CountCommentsOptions, type CountCommentsRequest, type CountCommentsResponse, type CreateCommentApplicationErrors, type CreateCommentRequest, type CreateCommentResponse, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteCommentRequest, type DeleteCommentResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Destination, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetCommentRequest, type GetCommentResponse, type GetCommentThreadOptions, type GetCommentThreadRequest, type GetCommentThreadResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type HideCommentRequest, type HideCommentResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InternalDocument, type InternalDocumentUpdateByFilterOperation, type InternalDocumentUpdateOperation, type InternalUpdateExistingOperation, type Item, type ItemDataOneOf, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListCommentsByResourceCursorPaging, type ListCommentsByResourceOptions, type ListCommentsByResourceRequest, type ListCommentsByResourceResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkCommentRequest, type MarkCommentResponse, type Media, type Mention, type MentionData, type MentionIdentityOneOf, type MessageEnvelope, type Metadata, type ModerateDraftContentOptions, type ModerateDraftContentRequest, type ModerateDraftContentResponse, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type ParagraphData, type ParentComment, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type PublishCommentRequest, type PublishCommentResponse, type QueryCommentsOptions, type QueryCommentsRequest, type QueryCommentsResponse, type Rel, type RepliesListResponse, type ReplySort, ReplySortOrder, type ReplySortOrderWithLiterals, Resizing, type ResizingWithLiterals, type ResourceCommentCountChanged, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type UnmarkCommentRequest, type UnmarkCommentResponse, type UpdateComment, type UpdateCommentApplicationErrors, type UpdateCommentRequest, type UpdateCommentResponse, type UpdateInternalDocumentsEvent, type UpdateInternalDocumentsEventOperationOneOf, type VersionedDeleteByIdsOperation, type VersionedDocumentId, type VersionedDocumentUpdateOperation, VersioningMode, type VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, type VoteSummary, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkDeleteComment, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, typedQueryComments, unmarkComment, updateComment };
4023
+ export { Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type App, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type Attachment, type AttachmentMediaOneOf, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeleteCommentOptions, type BulkDeleteCommentRequest, type BulkDeleteCommentResponse, type BulkHideCommentOptions, type BulkHideCommentRequest, type BulkHideCommentResponse, type BulkModerateDraftContentOptions, type BulkModerateDraftContentRequest, type BulkModerateDraftContentResponse, type BulkMoveCommentByFilterOptions, type BulkMoveCommentByFilterRequest, type BulkMoveCommentByFilterResponse, type BulkPublishCommentOptions, type BulkPublishCommentRequest, type BulkPublishCommentResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type Comment, type CommentAuthor, type CommentAuthorIdentityOneOf, type CommentContent, type CommentContentChanged, type CommentContentChangedEnvelope, type CommentCreatedEnvelope, type CommentDeleted, type CommentDeletedEnvelope, type CommentHidden, type CommentHiddenEnvelope, type CommentMarked, type CommentMarkedEnvelope, type CommentModerated, type CommentMoved, type CommentMovedEnvelope, type CommentPublished, type CommentPublishedEnvelope, type CommentQuery, type CommentQuerySpec, type CommentReactionSummary, type CommentResourceCommentCountChangedEnvelope, type CommentSort, type CommentUnmarked, type CommentUnmarkedEnvelope, type CommentUpdatedEnvelope, type CommentsQueryBuilder, type CommentsQueryResult, type CommonQueryWithEntityContext, type ContactDetails, type ContentAuthor, type ContentAuthorAuthorOneOf, type CountCommentsApplicationErrors, type CountCommentsOptions, type CountCommentsRequest, type CountCommentsResponse, type CreateCommentApplicationErrors, type CreateCommentRequest, type CreateCommentResponse, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteCommentRequest, type DeleteCommentResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Destination, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type File, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetCommentRequest, type GetCommentResponse, type GetCommentThreadOptions, type GetCommentThreadRequest, type GetCommentThreadResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type HideCommentRequest, type HideCommentResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InternalDocument, type InternalDocumentUpdateByFilterOperation, type InternalDocumentUpdateOperation, type InternalUpdateExistingOperation, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemDataOneOf, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListCommentsByResourceCursorPaging, type ListCommentsByResourceOptions, type ListCommentsByResourceRequest, type ListCommentsByResourceResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkCommentRequest, type MarkCommentResponse, type Media, type Mention, type MentionData, type MentionIdentityOneOf, type MessageEnvelope, type Metadata, type ModerateDraftContentOptions, type ModerateDraftContentRequest, type ModerateDraftContentResponse, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type Page, type ParagraphData, type ParentComment, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type PublishCommentRequest, type PublishCommentResponse, type QueryCommentsOptions, type QueryCommentsRequest, type QueryCommentsResponse, type Rel, type RepliesListResponse, type ReplySort, ReplySortOrder, type ReplySortOrderWithLiterals, Resizing, type ResizingWithLiterals, type ResourceCommentCountChanged, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type URI, type UnmarkCommentRequest, type UnmarkCommentResponse, type UpdateComment, type UpdateCommentApplicationErrors, type UpdateCommentRequest, type UpdateCommentResponse, type UpdateInternalDocumentsEvent, type UpdateInternalDocumentsEventOperationOneOf, type VersionedDeleteByIdsOperation, type VersionedDocumentId, type VersionedDocumentUpdateOperation, VersioningMode, type VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, type VoteSummary, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkDeleteComment, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, typedQueryComments, unmarkComment, updateComment };
@@ -3087,18 +3087,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
3087
3087
  Status2["HIDDEN"] = "HIDDEN";
3088
3088
  return Status2;
3089
3089
  })(Status || {});
3090
- var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3091
- VersioningMode2["DEFAULT"] = "DEFAULT";
3092
- VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3093
- VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3094
- return VersioningMode2;
3095
- })(VersioningMode || {});
3096
3090
  var Action = /* @__PURE__ */ ((Action2) => {
3097
3091
  Action2["UNKNOWN"] = "UNKNOWN";
3098
3092
  Action2["APPROVE"] = "APPROVE";
3099
3093
  Action2["REJECT"] = "REJECT";
3100
3094
  return Action2;
3101
3095
  })(Action || {});
3096
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3097
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3098
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3099
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
3100
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3101
+ WebhookIdentityType2["APP"] = "APP";
3102
+ return WebhookIdentityType2;
3103
+ })(WebhookIdentityType || {});
3104
+ var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3105
+ VersioningMode2["DEFAULT"] = "DEFAULT";
3106
+ VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3107
+ VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3108
+ return VersioningMode2;
3109
+ })(VersioningMode || {});
3102
3110
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3103
3111
  SortOrder2["ASC"] = "ASC";
3104
3112
  SortOrder2["DESC"] = "DESC";
@@ -3122,14 +3130,6 @@ var ReplySortOrder = /* @__PURE__ */ ((ReplySortOrder2) => {
3122
3130
  ReplySortOrder2["REACTION_COUNT"] = "REACTION_COUNT";
3123
3131
  return ReplySortOrder2;
3124
3132
  })(ReplySortOrder || {});
3125
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3126
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3127
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3128
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3129
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3130
- WebhookIdentityType2["APP"] = "APP";
3131
- return WebhookIdentityType2;
3132
- })(WebhookIdentityType || {});
3133
3133
  async function createComment2(comment) {
3134
3134
  const { httpClient, sideEffects } = arguments[1];
3135
3135
  const payload = (0, import_transform_paths2.transformPaths)(