@wix/auto_sdk_comments_comments 1.0.38 → 1.0.39

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 +165 -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 +153 -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 +165 -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 +153 -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 +165 -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 +153 -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 +165 -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 +153 -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,156 @@ interface CommentReactionSummary {
2252
2252
  */
2253
2253
  reactionCodeCount?: Record<string, number>;
2254
2254
  }
2255
+ interface CommentModerated {
2256
+ comment?: Comment;
2257
+ moderationAction?: ActionWithLiterals;
2258
+ }
2259
+ declare enum Action {
2260
+ /** Unknown content. */
2261
+ UNKNOWN = "UNKNOWN",
2262
+ /** Approve draft content. */
2263
+ APPROVE = "APPROVE",
2264
+ /** Reject draft content. */
2265
+ REJECT = "REJECT"
2266
+ }
2267
+ /** @enumType */
2268
+ type ActionWithLiterals = Action | 'UNKNOWN' | 'APPROVE' | 'REJECT';
2269
+ interface DomainEvent extends DomainEventBodyOneOf {
2270
+ createdEvent?: EntityCreatedEvent;
2271
+ updatedEvent?: EntityUpdatedEvent;
2272
+ deletedEvent?: EntityDeletedEvent;
2273
+ actionEvent?: ActionEvent;
2274
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2275
+ _id?: string;
2276
+ /**
2277
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2278
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2279
+ */
2280
+ entityFqdn?: string;
2281
+ /**
2282
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
2283
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2284
+ */
2285
+ slug?: string;
2286
+ /** ID of the entity associated with the event. */
2287
+ entityId?: string;
2288
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2289
+ eventTime?: Date | null;
2290
+ /**
2291
+ * Whether the event was triggered as a result of a privacy regulation application
2292
+ * (for example, GDPR).
2293
+ */
2294
+ triggeredByAnonymizeRequest?: boolean | null;
2295
+ /** If present, indicates the action that triggered the event. */
2296
+ originatedFrom?: string | null;
2297
+ /**
2298
+ * 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.
2299
+ * 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.
2300
+ */
2301
+ entityEventSequence?: string | null;
2302
+ }
2303
+ /** @oneof */
2304
+ interface DomainEventBodyOneOf {
2305
+ createdEvent?: EntityCreatedEvent;
2306
+ updatedEvent?: EntityUpdatedEvent;
2307
+ deletedEvent?: EntityDeletedEvent;
2308
+ actionEvent?: ActionEvent;
2309
+ }
2310
+ interface EntityCreatedEvent {
2311
+ entity?: string;
2312
+ }
2313
+ interface RestoreInfo {
2314
+ deletedDate?: Date | null;
2315
+ }
2316
+ interface EntityUpdatedEvent {
2317
+ /**
2318
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2319
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2320
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2321
+ */
2322
+ currentEntity?: string;
2323
+ }
2324
+ interface EntityDeletedEvent {
2325
+ /** Entity that was deleted. */
2326
+ deletedEntity?: string | null;
2327
+ }
2328
+ interface ActionEvent {
2329
+ body?: string;
2330
+ }
2331
+ interface Empty {
2332
+ }
2333
+ interface MessageEnvelope {
2334
+ /**
2335
+ * App instance ID.
2336
+ * @format GUID
2337
+ */
2338
+ instanceId?: string | null;
2339
+ /**
2340
+ * Event type.
2341
+ * @maxLength 150
2342
+ */
2343
+ eventType?: string;
2344
+ /** The identification type and identity data. */
2345
+ identity?: IdentificationData;
2346
+ /** Stringify payload. */
2347
+ data?: string;
2348
+ }
2349
+ interface IdentificationData extends IdentificationDataIdOneOf {
2350
+ /**
2351
+ * ID of a site visitor that has not logged in to the site.
2352
+ * @format GUID
2353
+ */
2354
+ anonymousVisitorId?: string;
2355
+ /**
2356
+ * ID of a site visitor that has logged in to the site.
2357
+ * @format GUID
2358
+ */
2359
+ memberId?: string;
2360
+ /**
2361
+ * ID of a Wix user (site owner, contributor, etc.).
2362
+ * @format GUID
2363
+ */
2364
+ wixUserId?: string;
2365
+ /**
2366
+ * ID of an app.
2367
+ * @format GUID
2368
+ */
2369
+ appId?: string;
2370
+ /** @readonly */
2371
+ identityType?: WebhookIdentityTypeWithLiterals;
2372
+ }
2373
+ /** @oneof */
2374
+ interface IdentificationDataIdOneOf {
2375
+ /**
2376
+ * ID of a site visitor that has not logged in to the site.
2377
+ * @format GUID
2378
+ */
2379
+ anonymousVisitorId?: string;
2380
+ /**
2381
+ * ID of a site visitor that has logged in to the site.
2382
+ * @format GUID
2383
+ */
2384
+ memberId?: string;
2385
+ /**
2386
+ * ID of a Wix user (site owner, contributor, etc.).
2387
+ * @format GUID
2388
+ */
2389
+ wixUserId?: string;
2390
+ /**
2391
+ * ID of an app.
2392
+ * @format GUID
2393
+ */
2394
+ appId?: string;
2395
+ }
2396
+ declare enum WebhookIdentityType {
2397
+ UNKNOWN = "UNKNOWN",
2398
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2399
+ MEMBER = "MEMBER",
2400
+ WIX_USER = "WIX_USER",
2401
+ APP = "APP"
2402
+ }
2403
+ /** @enumType */
2404
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2255
2405
  interface UpdateInternalDocumentsEvent extends UpdateInternalDocumentsEventOperationOneOf {
2256
2406
  /** insert/update documents */
2257
2407
  update?: InternalDocumentUpdateOperation;
@@ -2387,20 +2537,6 @@ interface VersionedDocumentId {
2387
2537
  /** versioning mode to use instead of default */
2388
2538
  versioningMode?: VersioningModeWithLiterals;
2389
2539
  }
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
2540
  interface CreateCommentRequest {
2405
2541
  /** Comment to create. */
2406
2542
  comment?: Comment;
@@ -2912,140 +3048,6 @@ interface CommentMoved {
2912
3048
  comment?: Comment;
2913
3049
  destination?: Destination;
2914
3050
  }
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
3051
  /** @docsIgnore */
3050
3052
  type CreateCommentApplicationErrors = {
3051
3053
  code?: 'INVALID_CAPTCHA';
@@ -3108,6 +3110,19 @@ interface EventMetadata extends BaseEventMetadata {
3108
3110
  */
3109
3111
  entityEventSequence?: string | null;
3110
3112
  }
3113
+ interface CommentDeletedEnvelope {
3114
+ metadata: EventMetadata;
3115
+ }
3116
+ /** @permissionScope Read Comments
3117
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
3118
+ * @permissionScope Manage Comments
3119
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3120
+ * @permissionId WIX_COMMENTS.COMMENT_READ
3121
+ * @webhook
3122
+ * @eventType wix.comments.v2.comment_deleted
3123
+ * @slug deleted
3124
+ */
3125
+ declare function onCommentDeleted(handler: (event: CommentDeletedEnvelope) => void | Promise<void>): void;
3111
3126
  interface CommentContentChangedEnvelope {
3112
3127
  data: CommentContentChanged;
3113
3128
  metadata: EventMetadata;
@@ -3227,20 +3242,6 @@ interface CommentCreatedEnvelope {
3227
3242
  * @slug created
3228
3243
  */
3229
3244
  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
3245
  interface CommentResourceCommentCountChangedEnvelope {
3245
3246
  data: ResourceCommentCountChanged;
3246
3247
  metadata: EventMetadata;
@@ -3261,6 +3262,7 @@ declare function onCommentResourceCommentCountChanged(handler: (event: CommentRe
3261
3262
  interface CommentUpdatedEnvelope {
3262
3263
  entity: Comment;
3263
3264
  metadata: EventMetadata;
3265
+ /** @hidden */
3264
3266
  modifiedFields: Record<string, any>;
3265
3267
  }
3266
3268
  /**
@@ -3903,4 +3905,4 @@ interface BulkMoveCommentByFilterOptions {
3903
3905
  destination?: Destination;
3904
3906
  }
3905
3907
 
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 };
3908
+ 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 Empty, 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 };
@@ -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)(