import { ListGalleriesRequest as ListGalleriesRequest$1, ListGalleriesResponse as ListGalleriesResponse$1, GetGalleryRequest as GetGalleryRequest$1, GetGalleryResponse as GetGalleryResponse$1, ListGalleryItemsRequest as ListGalleryItemsRequest$1, ListGalleryItemsResponse as ListGalleryItemsResponse$1, GetGalleryItemRequest as GetGalleryItemRequest$1, GetGalleryItemResponse as GetGalleryItemResponse$1, CreateGalleryRequest as CreateGalleryRequest$1, CreateGalleryResponse as CreateGalleryResponse$1, UpdateGalleryRequest as UpdateGalleryRequest$1, UpdateGalleryResponse as UpdateGalleryResponse$1, DeleteGalleryRequest as DeleteGalleryRequest$1, DeleteGalleryResponse as DeleteGalleryResponse$1, DeleteGalleryItemsRequest as DeleteGalleryItemsRequest$1, DeleteGalleryItemsResponse as DeleteGalleryItemsResponse$1, BulkDeleteGalleryItemsRequest as BulkDeleteGalleryItemsRequest$1, BulkDeleteGalleryItemsResponse as BulkDeleteGalleryItemsResponse$1, CreateGalleryItemRequest as CreateGalleryItemRequest$1, CreateGalleryItemResponse as CreateGalleryItemResponse$1, UpdateGalleryItemRequest as UpdateGalleryItemRequest$1, UpdateGalleryItemResponse as UpdateGalleryItemResponse$1, DeleteGalleryItemRequest as DeleteGalleryItemRequest$1, DeleteGalleryItemResponse as DeleteGalleryItemResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; interface Gallery { /** * Gallery ID. * @readonly * @format GUID */ id?: string | null; /** Gallery name. */ name?: string | null; /** * Total number of items in the gallery. * @readonly */ totalItems?: number | null; /** Media items in the gallery. */ items?: Item[]; /** * Index that determines which position a gallery is displayed on the site.
* * >**Note:** If you assign the same sort order index to more than one gallery, the function fails. */ sortOrder?: number | null; /** * Date and time the gallery was created. * @readonly */ createdDate?: Date | null; } interface Item extends ItemMetadataOneOf { /** Details about the image. */ image?: Image; /** Details about the video. */ video?: Video; /** Details about the text file. */ text?: Text; /** * Item ID. * @readonly * @format GUID */ id?: string | null; /** * Index that determines which position a media item is displayed in the gallery.
* * Default: [Epoch](https://www.epoch101.com/) timestamp.
* * >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails. */ sortOrder?: number | null; /** Item title. */ title?: string | null; /** Item description. */ description?: string | null; /** Link from the item. You can link to Wix sites or external URLs. */ link?: Link; /** * Type of item. * @readonly */ type?: TypeWithLiterals; /** * Date and time the item was created. * @readonly */ createdDate?: Date | null; /** * Date and time the item was last updated. * @readonly */ updatedDate?: Date | null; /** Item tags. */ tags?: Tags; /** * item's secondary media (image or text media revealed on hover) * @internal */ secondaryMedia?: SecondaryMedia; } /** @oneof */ interface ItemMetadataOneOf { /** Details about the image. */ image?: Image; /** Details about the video. */ video?: Video; /** Details about the text file. */ text?: Text; } interface Link { /** * Link type. * @internal */ type?: LinkTypeWithLiterals; /** Display text of the link. */ text?: string | null; /** Target URL of the link. */ url?: string | null; /** * Whether the link opens in a new tab or window. One of: * * `'_blank'`: The link opens in a new tab or window. * * `'_self'`: The link opens in the same tab or window. * @internal */ target?: string | null; /** * Information about the link. Reserved for internal use. * @internal */ wixLinkData?: WixLink; } declare enum LinkType { UNDEFINED = "UNDEFINED", /** External link. */ EXTERNAL = "EXTERNAL", /** For internal usage using wixLinkData. */ INTERNAL = "INTERNAL" } /** @enumType */ type LinkTypeWithLiterals = LinkType | 'UNDEFINED' | 'EXTERNAL' | 'INTERNAL'; /** The link object generated by panels in the editor and used by applications in Wix */ interface WixLink extends WixLinkLinkOneOf { /** External link type */ external?: ExternalLink; /** Page link type */ page?: PageLink; /** Anchor link type */ anchor?: AnchorLink; /** Dynamic page link type */ dynamicPage?: DynamicPageLink; /** Document link type */ document?: DocumentLink; /** Email link type */ email?: EmailLink; /** Phone link type */ phone?: PhoneLink; /** Address link type */ address?: AddressLink; /** WhatsApp link type */ whatsApp?: WhatsAppLink; /** TPA link type */ tpaPage?: TpaPageLink; } /** @oneof */ interface WixLinkLinkOneOf { /** External link type */ external?: ExternalLink; /** Page link type */ page?: PageLink; /** Anchor link type */ anchor?: AnchorLink; /** Dynamic page link type */ dynamicPage?: DynamicPageLink; /** Document link type */ document?: DocumentLink; /** Email link type */ email?: EmailLink; /** Phone link type */ phone?: PhoneLink; /** Address link type */ address?: AddressLink; /** WhatsApp link type */ whatsApp?: WhatsAppLink; /** TPA link type */ tpaPage?: TpaPageLink; } interface ExternalLink { /** * The url of the page * @format WEB_URL */ url?: string; /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */ target?: string | null; /** * rel of link * @internal * @maxSize 20 */ rel?: LinkRelWithLiterals[]; } /** * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document. * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel * Following are the accepted 'rel' types by Wix applications. */ declare enum LinkRel { /** Indicates that the current document's original author or publisher does not endorse the referenced document. */ nofollow = "nofollow", /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */ noopener = "noopener", /** No Referer header will be included. Additionally, has the same effect as noopener. */ noreferrer = "noreferrer", /** Indicates a link that resulted from advertisements or paid placements. */ sponsored = "sponsored" } /** @enumType */ type LinkRelWithLiterals = LinkRel | 'nofollow' | 'noopener' | 'noreferrer' | 'sponsored'; interface PageLink { /** The page id we want from the site */ pageId?: string; /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */ target?: string | null; /** * rel of link * @maxSize 20 */ rel?: LinkRelWithLiterals[]; } interface AnchorLink { /** The name of the anchor */ anchorName?: string; /** The data id (from the JSON page) of the anchor that should be used */ anchorDataId?: string; /** The page id we want from the site */ pageId?: string; /** * rel of link * @maxSize 20 */ rel?: LinkRelWithLiterals[]; } interface DynamicPageLink { /** The router that handles this link */ routerId?: string; /** The path data we'd like */ innerRoute?: string; /** The data id (from the JSON page) of the anchor that should be used */ anchorDataId?: string | null; /** * rel of link * @maxSize 20 */ rel?: LinkRelWithLiterals[]; } interface DocumentLink { /** The id of the document */ docId?: string; /** The name of the document for download purposes */ name?: string | null; /** If this document can be indexed by scrapers, default is false */ indexable?: boolean; } interface EmailLink { /** * The email we will be sending a message to * @format EMAIL */ recipient?: string; /** The subject of the email */ subject?: string | null; /** The body of the email */ body?: string | null; } interface PhoneLink { /** * The phone number we want to link to * @format PHONE * @maxLength 100 */ phoneNumber?: string; } interface AddressLink { /** An address that we can link to */ address?: string; } interface WhatsAppLink { /** * The whatsApp phone number we want to connect with * @format PHONE */ phoneNumber?: string; } /** Link to a TPA page */ interface TpaPageLink { /** Type of item (e.g. 'wix.stores.sub_pages.product') */ itemTypeIdentifier?: string; /** Id of linked item */ itemId?: string; /** Id of linked page */ pageId?: string; /** Id of app being linked to (AppDefId) */ appDefinitionId?: string; /** The relativepath of linked page */ path?: string; /** * rel of link * @maxSize 20 */ rel?: LinkRelWithLiterals[]; } declare enum Type { UNDEFINED = "UNDEFINED", IMAGE = "IMAGE", VIDEO = "VIDEO", TEXT = "TEXT" } /** @enumType */ type TypeWithLiterals = Type | 'UNDEFINED' | 'IMAGE' | 'VIDEO' | 'TEXT'; interface Image { /** * @internal * @deprecated */ type?: ImageTypeWithLiterals; /** Information about the Wix Media image. */ imageInfo?: CommonImage; /** Focal point of the image. */ focalPoint?: Point; /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */ exif?: Record | null; /** * Image compression level.
* * Min: `30`
* Max: `100` * @min 30 * @max 100 */ quality?: number | null; /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */ unsharpMasking?: UnsharpMasking; /** * Whether the image is saved in secure media. * @internal */ secure?: boolean | null; /** * When image is saved in secure media, token is generated. * @internal * @readonly */ token?: string | null; } declare enum ImageType { UNDEFINED = "UNDEFINED", WIX_MEDIA = "WIX_MEDIA", EXTERNAL = "EXTERNAL" } /** @enumType */ type ImageTypeWithLiterals = ImageType | 'UNDEFINED' | 'WIX_MEDIA' | 'EXTERNAL'; interface CommonImage { /** *Required.** WixMedia image ID. */ id?: string; /** * Image URL. * @readonly */ url?: string; /** *Required.** Original image height. */ height?: number; /** *Required.** Original image width. */ width?: number; /** Image alt text. */ altText?: string | null; /** * Image URL expiration date (when relevant). * @internal */ urlExpirationDate?: Date | null; /** Image filename. */ filename?: string | null; /** * Image size in bytes. * @internal * @format DECIMAL_VALUE */ sizeInBytes?: string | null; } interface Point { /** X-coordinate of the focal point. */ x?: number; /** Y-coordinate of the focal point. */ y?: number; } interface UnsharpMasking { /** * Unsharp masking amount. Controls the sharpening strength.
* * Min: `0`
* Max: `5` * @max 5 */ amount?: number | null; /** Unsharp masking radius in pixels. Controls the sharpening width. */ radius?: number | null; /** * Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply.
* * Min: `0`
* Max: `1` * @max 1 */ threshold?: number | null; } interface Video { /** Type of video. */ type?: VideoTypeWithLiterals; /** Information about the video. */ videoInfo?: VideoV2; /** * Video duration in milliseconds - deprecated. * @internal * @deprecated */ duration?: string | null; /** Manually defined video duration in milliseconds. */ durationInMillis?: number | null; } declare enum VideoType { UNDEFINED = "UNDEFINED", WIX_MEDIA = "WIX_MEDIA", YOUTUBE = "YOUTUBE", VIMEO = "VIMEO" } /** @enumType */ type VideoTypeWithLiterals = VideoType | 'UNDEFINED' | 'WIX_MEDIA' | 'YOUTUBE' | 'VIMEO'; interface VideoV2 { /** WixMedia ID. Required when associating an existing Wix Media video. */ id?: string; /** Video URL. Required when associating a video from an external source. Supported sources: YouTube, Vimeo. */ url?: string; /** * Available resolutions for the video, starting with the optimal resolution. * @maxSize 100 */ resolutions?: VideoResolution[]; /** Video filename. */ filename?: string | null; /** Video posters. */ posters?: CommonImage[]; /** * Original video size in bytes. * @internal * @format DECIMAL_VALUE */ sizeInBytes?: string | null; /** * Video URL expiration date (when relevant). * @internal */ urlExpirationDate?: Date | null; } interface VideoResolution { /** *Required.** Video URL. */ url?: string; /** *Required.** Video height. */ height?: number; /** *Required.** Video width. */ width?: number; /** * Video poster. Deprecated - please use the `posters` property in the parent entity. * @internal * @deprecated */ poster?: CommonImage; /** *Required.** Video format. For example, `mp4` or `hls`. */ format?: string; /** Video quality. For example, `480p` or `720p`. */ quality?: string | null; /** Video filename. */ filename?: string | null; } interface Text { /** Text in HTML format. */ html?: string | null; /** * Set of key-value pairs describing the [CSS style](https://en.wikipedia.org/wiki/CSS) of the text. * * __Note:__ The object structure is customizable. See the [List Gallery Items](https://dev.wix.com/api/rest/site-content/pro-gallery/list-gallery-items) code example for supported values. */ css?: Record | null; /** Reserved for internal use. */ editorHtml?: string | null; /** Reserved for internal use. */ editorFontId?: string | null; } interface Tags { /** List of tags assigned to the media item. */ values?: string[]; } interface SecondaryMedia extends SecondaryMediaMetadataOneOf { /** secondary media photo metadata (optional) */ image?: Image; /** secondary media text metadata (optional) */ text?: Text; } /** @oneof */ interface SecondaryMediaMetadataOneOf { /** secondary media photo metadata (optional) */ image?: Image; /** secondary media text metadata (optional) */ text?: Text; } interface InvalidateCache extends InvalidateCacheGetByOneOf { /** * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ metaSiteId?: string; /** * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ siteId?: string; /** Invalidate by App */ app?: App; /** Invalidate by page id */ page?: Page; /** Invalidate by URI path */ uri?: URI; /** Invalidate by file (for media files such as PDFs) */ file?: File; /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */ customTag?: CustomTag; /** Invalidate by multiple page ids */ pages?: Pages; /** Invalidate by multiple URI paths */ uris?: URIs; /** * tell us why you're invalidating the cache. You don't need to add your app name * @maxLength 256 */ reason?: string | null; /** Is local DS */ localDc?: boolean; hardPurge?: boolean; /** * Optional caller-provided ID for tracking this invalidation through the system. * When set, the corresponding CDN purge completion event will include this ID, * allowing you to confirm when the invalidation has fully propagated. * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event. * @maxLength 256 */ correlationId?: string | null; } /** @oneof */ interface InvalidateCacheGetByOneOf { /** * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ metaSiteId?: string; /** * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! * @format GUID */ siteId?: string; /** Invalidate by App */ app?: App; /** Invalidate by page id */ page?: Page; /** Invalidate by URI path */ uri?: URI; /** Invalidate by file (for media files such as PDFs) */ file?: File; /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */ customTag?: CustomTag; /** Invalidate by multiple page ids */ pages?: Pages; /** Invalidate by multiple URI paths */ uris?: URIs; } interface App { /** * The AppDefId * @minLength 1 */ appDefId?: string; /** * The instance Id * @format GUID */ instanceId?: string; } interface Page { /** * the msid the page is on * @format GUID */ metaSiteId?: string; /** * Invalidate by Page ID * @minLength 1 */ pageId?: string; } interface URI { /** * the msid the URI is on * @format GUID */ metaSiteId?: string; /** * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes * @minLength 1 */ uriPath?: string; } interface File { /** * the msid the file is related to * @format GUID */ metaSiteId?: string; /** * Invalidate by filename (for media files such as PDFs) * @minLength 1 * @maxLength 256 */ fileName?: string; } interface CustomTag { /** * the msid the tag is related to * @format GUID */ metaSiteId?: string; /** * Tag to invalidate by * @minLength 1 * @maxLength 256 */ tag?: string; } interface Pages { /** * the msid the pages are on * @format GUID */ metaSiteId?: string; /** * Invalidate by multiple Page IDs in a single message * @maxSize 100 * @minLength 1 */ pageIds?: string[]; } interface URIs { /** * the msid the URIs are on * @format GUID */ metaSiteId?: string; /** * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes * @maxSize 100 * @minLength 1 */ uriPaths?: string[]; } interface GalleryPublished { /** * id of the gallery that will be published * @readonly * @format GUID */ galleryId?: string; isRc?: boolean; /** @readonly */ newRevision?: Date | null; /** @readonly */ oldRevision?: Date | null; } interface CleanDeletedGalleriesEvent { /** * @readonly * @format GUID */ instanceId?: string; /** * @readonly * @format GUID */ metaSiteId?: string; /** @readonly */ htmlSiteRevision?: string; /** @readonly */ timeSitePublished?: Date | null; } interface ProgallerypublisherPublishGalleryRequest { /** * id of the gallery that will be published * @format GUID */ galleryId?: string; } interface ProgallerypublisherPublishGalleryResponse { } interface GetActiveGalleryRevisionRequest { /** @format GUID */ galleryId?: string; } interface GetActiveGalleryRevisionResponse { galleryActiveRevision?: Date | null; htmlSiteRevision?: string | null; } interface GetGalleryRevisionRequest { /** @format GUID */ galleryId?: string; revision?: Date | null; } interface GetGalleryRevisionResponse { htmlSiteRevision?: string | null; /** @format GUID */ instanceId?: string | null; } interface PublishGalleryItemRequest { /** * id of the gallery that will be published * @format GUID */ galleryId?: string; /** * id of the item that will be published * @format GUID */ itemId?: string; } interface PublishGalleryItemResponse { } interface PublishGalleryItemsRequest { /** * id of the gallery that will be published * @format GUID */ galleryId?: string; /** * ids of the items that will be published * @format GUID * @minSize 1 * @maxSize 100 */ itemIds?: string[]; } interface PublishGalleryItemsResponse { } interface Empty { } interface HtmlSitePublished { /** * Application instance ID * @maxLength 50 */ appInstanceId?: string; /** * Application type * @maxLength 100 */ appType?: string; /** Revision */ revision?: string; /** * MSID * @maxLength 100 */ metaSiteId?: string | null; /** * optional branch id if publish is done from branch * @format GUID */ branchId?: string | null; /** The site's last transactionId */ lastTransactionId?: string | null; /** A list of the site's pages */ pages?: EventsPage[]; /** Site's publish date */ publishDate?: string; /** Determine if this message was produced by editor-deployments service */ originatedFromDeploymentsService?: boolean; /** Metadata accumulated by deployment pipeline providers */ publishMetadata?: Record; } interface EventsPage { /** * Page's Id * @maxLength 100 */ id?: string; } interface HtmlSiteRCPublished { /** * Application instance ID * @maxLength 50 */ appInstanceId?: string; /** Revision */ revision?: string; /** * Optional branch Id * @format GUID */ branchId?: string | null; /** Site's publish date */ publishDate?: string; /** RC label */ rcLabel?: RCLabelWithLiterals; /** Determine if this message was produced by editor-deployments service */ originatedFromDeploymentsService?: boolean; /** Metadata accumulated by deployment pipeline providers */ publishMetadata?: Record; } declare enum RCLabel { /** Illegal default value, exception will be thrown if used */ UNKNOWN = "UNKNOWN", RELEASE_MANAGER = "RELEASE_MANAGER", BLOCKS = "BLOCKS", WIX_CLI = "WIX_CLI", MOBILE_APP_BUILDER = "MOBILE_APP_BUILDER", SEO = "SEO", FEEDBACK = "FEEDBACK", ACCESSIBILITY = "ACCESSIBILITY", ENTERPRISE_APPROVALS = "ENTERPRISE_APPROVALS", EXPORT_SITE = "EXPORT_SITE", HARMONY_MOBILE_PREVIEW = "HARMONY_MOBILE_PREVIEW" } /** @enumType */ type RCLabelWithLiterals = RCLabel | 'UNKNOWN' | 'RELEASE_MANAGER' | 'BLOCKS' | 'WIX_CLI' | 'MOBILE_APP_BUILDER' | 'SEO' | 'FEEDBACK' | 'ACCESSIBILITY' | 'ENTERPRISE_APPROVALS' | 'EXPORT_SITE' | 'HARMONY_MOBILE_PREVIEW'; interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * 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. * 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. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entityAsJson?: string; /** * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity * @internal */ triggeredByUndelete?: boolean | null; /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ restoreInfo?: RestoreInfo; /** * Optional domain-specific metadata defined by the API owner, encoded as JSON. * @internal */ additionalMetadataAsJson?: string | null; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntityAsJson?: string; /** * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard * wont populate it / have any reference to it in the API. * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed, * the developer should send only the new (current) entity. * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message. * @internal * @deprecated */ previousEntityAsJson?: string | null; /** * Map of fully qualified field paths to their previous values for fields that changed. * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format) * @internal */ modifiedFields?: Record; /** * Optional domain-specific metadata defined by the API owner, encoded as JSON. * @internal */ additionalMetadataAsJson?: string | null; } interface EntityDeletedEvent { /** * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled * @internal */ movedToTrash?: boolean | null; /** Entity that was deleted. */ deletedEntityAsJson?: string | null; /** * Optional domain-specific metadata defined by the API owner, encoded as JSON. * @internal */ additionalMetadataAsJson?: string | null; } interface ActionEvent { bodyAsJson?: string; } interface MessageEnvelope { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; /** Details related to the account */ accountInfo?: AccountInfo; } interface IdentificationData extends IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; /** @readonly */ identityType?: WebhookIdentityTypeWithLiterals; } /** @oneof */ interface IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; } declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } /** @enumType */ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP'; interface AccountInfo { /** * ID of the Wix account associated with the event. * @format GUID */ accountId?: string | null; /** * ID of the parent Wix account. Only included when accountId belongs to a child account. * @format GUID */ parentAccountId?: string | null; /** * ID of the Wix site associated with the event. Only included when the event is tied to a specific site. * @format GUID */ siteId?: string | null; } interface RestoreAllGalleriesEvent { /** * instance id of galleries to restore * @format GUID */ instanceId?: string; } interface ListGalleriesItemsRequest { /** * IDs of the media items to retrieve. * @minSize 1 * @maxSize 100 */ itemsId?: ItemId[]; } interface ItemId { /** * Gallery ID. * @format GUID */ galleryId?: string; /** * Item ID. * @format GUID */ itemId?: string; } interface ListGalleriesItemsResponse { /** Retrieved media items. */ itemsInGalleries?: ItemsInGallery[]; } interface ItemsInGallery { /** * Gallery ID. * @format GUID */ galleryId?: string; /** Retrieved media items. */ items?: Item[]; } interface TriggerRestoreAllGalleriesAsyncRequest { /** * instance id of galleries to restore * @format GUID */ instanceId?: string; } interface TriggerRestoreAllGalleriesAsyncResponse { } interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf { /** insert/update documents */ update?: DocumentUpdateOperation; /** delete by document ids */ deleteByIds?: DeleteByIdsOperation; /** delete documents matching filter */ deleteByFilter?: DeleteByFilterOperation; /** update documents matching filter */ updateByFilter?: UpdateByFilterOperation; /** update only existing documents */ updateExisting?: UpdateExistingOperation; /** * application which owns documents * @minLength 2 */ appDefId?: string | null; /** * type of the documents * @minLength 2 */ documentType?: string | null; /** * language of the documents * @minLength 2 */ language?: string | null; /** * site documents belong to * @minLength 2 */ msId?: string | null; } /** @oneof */ interface UpdateDocumentsEventOperationOneOf { /** insert/update documents */ update?: DocumentUpdateOperation; /** delete by document ids */ deleteByIds?: DeleteByIdsOperation; /** delete documents matching filter */ deleteByFilter?: DeleteByFilterOperation; /** update documents matching filter */ updateByFilter?: UpdateByFilterOperation; /** update only existing documents */ updateExisting?: UpdateExistingOperation; } interface DocumentUpdateOperation { /** documents to index or update */ documents?: IndexDocument[]; } interface IndexDocument { /** data bag with non-searchable fields (url, image) */ payload?: DocumentPayload; /** what type of users should documents be visible to */ exposure?: EnumWithLiterals; /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */ document?: Record | null; /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */ permittedMemberGroups?: string[]; /** if true SEO is disabled for this document */ seoHidden?: boolean | null; /** if true the page is a lightbox popup */ isPopup?: boolean | null; } interface DocumentPayload { /** url of the page representing the document */ url?: string | null; /** image which represents the document */ documentImage?: DocumentImage; } interface DocumentImage { /** the name of the image */ name?: string; /** the width of the image */ width?: number; /** the height of the image */ height?: number; } declare enum Enum { /** Default value. Means that permission not set */ UNKNOWN = "UNKNOWN", /** Protected exposure. Exposed to members and owners */ PROTECTED = "PROTECTED", /** Private exposure. Exposed to owners */ PRIVATE = "PRIVATE", /** Public exposure. Visible to everyone */ PUBLIC = "PUBLIC", /** Used for partial updates, to state that exposure is not changing */ UNCHANGED = "UNCHANGED", /** Protected to members of permitted groups and owners */ GROUP_PROTECTED = "GROUP_PROTECTED" } /** @enumType */ type EnumWithLiterals = Enum | 'UNKNOWN' | 'PROTECTED' | 'PRIVATE' | 'PUBLIC' | 'UNCHANGED' | 'GROUP_PROTECTED'; interface DeleteByIdsOperation { /** ids of the documents to delete */ documentIds?: string[]; } interface DeleteByFilterOperation { /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */ filter?: Record | null; } interface UpdateByFilterOperation { /** documents matching this filter will be updated */ filter?: Record | null; /** partial document to apply */ document?: IndexDocument; } interface UpdateExistingOperation { /** documents to update */ documents?: IndexDocument[]; } interface SearchIndexingNotification { /** new state of indexing for the site specified in ms_id */ indexState?: SearchIndexingNotificationStateWithLiterals; /** type of the document the notification is targeted for. Applies to all types if not provided */ documentType?: string | null; /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */ language?: string | null; /** * site for which notification is targeted * @minLength 2 */ msId?: string | null; } declare enum SearchIndexingNotificationState { /** default state */ Unknown = "Unknown", /** metasite does not require site search indexing */ Off = "Off", /** metasite requires site search indexing */ On = "On" } /** @enumType */ type SearchIndexingNotificationStateWithLiterals = SearchIndexingNotificationState | 'Unknown' | 'Off' | 'On'; interface GalleryItemCreated { /** Created gallery item. */ item?: Item; } interface GalleryItemUpdated { /** Updated gallery item. */ updatedItem?: Item; } interface GalleryItemDeleted { /** * ID of the deleted gallery item. * @format GUID */ itemId?: string; } interface ListGalleriesRequest { /** * Maximum number of media items to return.
* * Min: `1`
* Max: `100`
* Default: `10` * @min 1 * @max 100 */ itemLimit?: number | null; /** * Number of galleries to skip in the response.
* * Default: `0` */ offset?: number | null; /** * Maximum number of galleries to return.
* * Min: `1`
* Max: `10`
* Default: `10` * @min 1 * @max 10 */ limit?: number | null; /** * The set of field mask paths of gallery. * @internal */ fields?: string[]; /** * State of the galleries. * @internal */ state?: StateWithLiterals; } declare enum State { /** Undefined state. */ UNDEFINED = "UNDEFINED", /** The gallery in the Editor. */ SAVED = "SAVED", /** The gallery in the LiveSite. */ PUBLISHED = "PUBLISHED" } /** @enumType */ type StateWithLiterals = State | 'UNDEFINED' | 'SAVED' | 'PUBLISHED'; interface ListGalleriesResponse { /** Total number of galleries in the site. */ totalGalleries?: number | null; /** List of galleries. Sorted by `createdDate`. */ galleries?: Gallery[]; } interface GetGalleryRequest extends GetGalleryRequestVersionOneOf { /** @internal */ htmlSiteRevision?: string | null; /** * Gallery ID. * @format GUID */ galleryId: string; /** * Number of media items to skip in the response.
* * Default: `0` */ itemOffset?: number | null; /** * Maximum number of media items to return.
* * Min: `1`
* Max: `100`
* Default: `50` * @min 1 * @max 200 */ itemLimit?: number | null; /** * State of the retrieved galleries. * @internal */ state?: StateWithLiterals; /** * This allows us to fallback to legacy galleries until they are fully migrated. If this is not provided and a fallback is necessary, the process will fail * External reference. **Note:** This property is not validated by Wix. * @internal * @format GUID * @deprecated */ externalId?: string | null; } /** @oneof */ interface GetGalleryRequestVersionOneOf { /** @internal */ htmlSiteRevision?: string | null; } interface GetGalleryResponse { /** Returned gallery. */ gallery?: Gallery; } interface ListGalleryItemsRequest { /** * Gallery ID. * @format GUID */ galleryId: string; /** * Number of media items to skip in the response.
* * Default: `0` */ itemOffset?: number | null; /** * Maximum number of media items to return.
* * Min: `1`
* Max: `100`
* Default: `50` * @min 1 * @max 200 */ itemLimit?: number | null; /** * State of the retrieved gallery. * @internal */ state?: StateWithLiterals; } interface ListGalleryItemsResponse { /** List of media items in the gallery. */ items?: Item[]; } interface GetGalleryItemRequest { /** * Gallery ID. * @format GUID */ galleryId: string; /** * Item ID. * @format GUID */ itemId: string; /** * State of the gallery. * @internal */ state?: StateWithLiterals; } interface GetGalleryItemResponse { /** Returned media item. */ item?: Item; } interface CreateGalleryRequest { /** Gallery to create. */ gallery?: Gallery; /** * State of the gallery to create. * @internal */ state?: StateWithLiterals; /** * Gallery ID to clone from. * @format GUID */ cloneFromGalleryId?: string | null; } interface CreateGalleryResponse { /** Created gallery. */ gallery?: Gallery; } interface UpdateGalleryRequest { /** Gallery to update. */ gallery: Gallery; /** * State of the gallery to update. * @internal */ state?: StateWithLiterals; } interface UpdateGalleryResponse { /** Updated gallery. */ gallery?: Gallery; } interface DeleteGalleryRequest { /** * ID of the gallery to delete. * @format GUID */ galleryId: string; /** * State of the gallery to delete. * @internal */ state?: StateWithLiterals; } interface DeleteGalleryResponse { /** * ID of the deleted gallery. * @readonly * @format GUID */ galleryId?: string; } interface DeleteGalleryItemsRequest { /** * Gallery ID. * @format GUID */ galleryId: string; /** * ID of the media item to delete. * @format GUID */ itemsIds?: string[]; /** * State of the gallery. * @internal */ state?: StateWithLiterals; } interface DeleteGalleryItemsResponse { /** Gallery that previously included the deleted media item. */ gallery?: Gallery; } interface BulkDeleteGalleryItemsRequest { /** * Gallery ID. * @format GUID */ galleryId: string; /** * IDs of the media items to delete. * @format GUID * @minSize 1 * @maxSize 1000 */ itemIds: string[]; /** * State of the gallery. * @internal */ state?: StateWithLiterals; } interface BulkDeleteGalleryItemsResponse { /** * IDs of the deleted media items. * @readonly * @format GUID */ itemIds?: string[]; } interface CreateGalleryItemRequest { /** * Gallery ID. * @format GUID */ galleryId: string; /** Media item to create. */ item: Item; /** * Gallery state. * @internal */ state?: StateWithLiterals; } interface CreateGalleryItemResponse { /** Created media item. */ item?: Item; } interface CreateGalleryItemsRequest { /** * Gallery ID. * @format GUID */ galleryId?: string; /** * Media items to create. * @maxSize 50 */ items?: Item[]; /** * Gallery state. * @internal */ state?: StateWithLiterals; } interface CreateGalleryItemsResponse { /** Created media items. */ items?: Item[]; } interface UpdateGalleryItemRequest { /** * Gallery ID. * @format GUID */ galleryId: string; /** Media item to update. */ item: Item; /** * Gallery state. * @internal */ state?: StateWithLiterals; } interface UpdateGalleryItemResponse { /** Updated media item. */ item?: Item; } interface DeleteGalleryItemRequest { /** * Gallery ID. * @format GUID */ galleryId: string; /** * ID of the media item to delete. * @format GUID */ itemId: string; /** * Gallery state. * @internal */ state?: StateWithLiterals; } interface DeleteGalleryItemResponse { /** * ID of the deleted media item. * @readonly * @format GUID */ itemId?: string; } interface PublishGalleryRequest { /** * ID of the gallery to publish. * @format GUID */ galleryId?: string; } interface PublishGalleryResponse { /** Published gallery. */ gallery?: Gallery; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function listGalleries(): __PublicMethodMetaInfo<'GET', {}, ListGalleriesRequest$1, ListGalleriesRequest, ListGalleriesResponse$1, ListGalleriesResponse>; declare function getGallery(): __PublicMethodMetaInfo<'GET', { galleryId: string; }, GetGalleryRequest$1, GetGalleryRequest, GetGalleryResponse$1, GetGalleryResponse>; declare function listGalleryItems(): __PublicMethodMetaInfo<'GET', { galleryId: string; }, ListGalleryItemsRequest$1, ListGalleryItemsRequest, ListGalleryItemsResponse$1, ListGalleryItemsResponse>; declare function getGalleryItem(): __PublicMethodMetaInfo<'GET', { galleryId: string; itemId: string; }, GetGalleryItemRequest$1, GetGalleryItemRequest, GetGalleryItemResponse$1, GetGalleryItemResponse>; declare function createGallery(): __PublicMethodMetaInfo<'POST', {}, CreateGalleryRequest$1, CreateGalleryRequest, CreateGalleryResponse$1, CreateGalleryResponse>; declare function updateGallery(): __PublicMethodMetaInfo<'PATCH', { galleryId: string; }, UpdateGalleryRequest$1, UpdateGalleryRequest, UpdateGalleryResponse$1, UpdateGalleryResponse>; declare function deleteGallery(): __PublicMethodMetaInfo<'DELETE', { galleryId: string; }, DeleteGalleryRequest$1, DeleteGalleryRequest, DeleteGalleryResponse$1, DeleteGalleryResponse>; declare function deleteGalleryItems(): __PublicMethodMetaInfo<'DELETE', { galleryId: string; }, DeleteGalleryItemsRequest$1, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse$1, DeleteGalleryItemsResponse>; declare function bulkDeleteGalleryItems(): __PublicMethodMetaInfo<'POST', { galleryId: string; }, BulkDeleteGalleryItemsRequest$1, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse$1, BulkDeleteGalleryItemsResponse>; declare function createGalleryItem(): __PublicMethodMetaInfo<'POST', { galleryId: string; }, CreateGalleryItemRequest$1, CreateGalleryItemRequest, CreateGalleryItemResponse$1, CreateGalleryItemResponse>; declare function updateGalleryItem(): __PublicMethodMetaInfo<'PATCH', { galleryId: string; itemId: string; }, UpdateGalleryItemRequest$1, UpdateGalleryItemRequest, UpdateGalleryItemResponse$1, UpdateGalleryItemResponse>; declare function deleteGalleryItem(): __PublicMethodMetaInfo<'DELETE', { galleryId: string; itemId: string; }, DeleteGalleryItemRequest$1, DeleteGalleryItemRequest, DeleteGalleryItemResponse$1, DeleteGalleryItemResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLink as AddressLinkOriginal, type AnchorLink as AnchorLinkOriginal, type App as AppOriginal, type BulkDeleteGalleryItemsRequest as BulkDeleteGalleryItemsRequestOriginal, type BulkDeleteGalleryItemsResponse as BulkDeleteGalleryItemsResponseOriginal, type CleanDeletedGalleriesEvent as CleanDeletedGalleriesEventOriginal, type CommonImage as CommonImageOriginal, type CreateGalleryItemRequest as CreateGalleryItemRequestOriginal, type CreateGalleryItemResponse as CreateGalleryItemResponseOriginal, type CreateGalleryItemsRequest as CreateGalleryItemsRequestOriginal, type CreateGalleryItemsResponse as CreateGalleryItemsResponseOriginal, type CreateGalleryRequest as CreateGalleryRequestOriginal, type CreateGalleryResponse as CreateGalleryResponseOriginal, type CustomTag as CustomTagOriginal, type DeleteByFilterOperation as DeleteByFilterOperationOriginal, type DeleteByIdsOperation as DeleteByIdsOperationOriginal, type DeleteGalleryItemRequest as DeleteGalleryItemRequestOriginal, type DeleteGalleryItemResponse as DeleteGalleryItemResponseOriginal, type DeleteGalleryItemsRequest as DeleteGalleryItemsRequestOriginal, type DeleteGalleryItemsResponse as DeleteGalleryItemsResponseOriginal, type DeleteGalleryRequest as DeleteGalleryRequestOriginal, type DeleteGalleryResponse as DeleteGalleryResponseOriginal, type DocumentImage as DocumentImageOriginal, type DocumentLink as DocumentLinkOriginal, type DocumentPayload as DocumentPayloadOriginal, type DocumentUpdateOperation as DocumentUpdateOperationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DynamicPageLink as DynamicPageLinkOriginal, type EmailLink as EmailLinkOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type EventsPage as EventsPageOriginal, type ExternalLink as ExternalLinkOriginal, type File as FileOriginal, type GalleryItemCreated as GalleryItemCreatedOriginal, type GalleryItemDeleted as GalleryItemDeletedOriginal, type GalleryItemUpdated as GalleryItemUpdatedOriginal, type Gallery as GalleryOriginal, type GalleryPublished as GalleryPublishedOriginal, type GetActiveGalleryRevisionRequest as GetActiveGalleryRevisionRequestOriginal, type GetActiveGalleryRevisionResponse as GetActiveGalleryRevisionResponseOriginal, type GetGalleryItemRequest as GetGalleryItemRequestOriginal, type GetGalleryItemResponse as GetGalleryItemResponseOriginal, type GetGalleryRequest as GetGalleryRequestOriginal, type GetGalleryRequestVersionOneOf as GetGalleryRequestVersionOneOfOriginal, type GetGalleryResponse as GetGalleryResponseOriginal, type GetGalleryRevisionRequest as GetGalleryRevisionRequestOriginal, type GetGalleryRevisionResponse as GetGalleryRevisionResponseOriginal, type HtmlSitePublished as HtmlSitePublishedOriginal, type HtmlSiteRCPublished as HtmlSiteRCPublishedOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, ImageType as ImageTypeOriginal, type ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal, type IndexDocument as IndexDocumentOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemId as ItemIdOriginal, type ItemMetadataOneOf as ItemMetadataOneOfOriginal, type Item as ItemOriginal, type ItemsInGallery as ItemsInGalleryOriginal, type Link as LinkOriginal, LinkRel as LinkRelOriginal, type LinkRelWithLiterals as LinkRelWithLiteralsOriginal, LinkType as LinkTypeOriginal, type LinkTypeWithLiterals as LinkTypeWithLiteralsOriginal, type ListGalleriesItemsRequest as ListGalleriesItemsRequestOriginal, type ListGalleriesItemsResponse as ListGalleriesItemsResponseOriginal, type ListGalleriesRequest as ListGalleriesRequestOriginal, type ListGalleriesResponse as ListGalleriesResponseOriginal, type ListGalleryItemsRequest as ListGalleryItemsRequestOriginal, type ListGalleryItemsResponse as ListGalleryItemsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PageLink as PageLinkOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PhoneLink as PhoneLinkOriginal, type Point as PointOriginal, type ProgallerypublisherPublishGalleryRequest as ProgallerypublisherPublishGalleryRequestOriginal, type ProgallerypublisherPublishGalleryResponse as ProgallerypublisherPublishGalleryResponseOriginal, type PublishGalleryItemRequest as PublishGalleryItemRequestOriginal, type PublishGalleryItemResponse as PublishGalleryItemResponseOriginal, type PublishGalleryItemsRequest as PublishGalleryItemsRequestOriginal, type PublishGalleryItemsResponse as PublishGalleryItemsResponseOriginal, type PublishGalleryRequest as PublishGalleryRequestOriginal, type PublishGalleryResponse as PublishGalleryResponseOriginal, RCLabel as RCLabelOriginal, type RCLabelWithLiterals as RCLabelWithLiteralsOriginal, type RestoreAllGalleriesEvent as RestoreAllGalleriesEventOriginal, type RestoreInfo as RestoreInfoOriginal, type SearchIndexingNotification as SearchIndexingNotificationOriginal, SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal, type SearchIndexingNotificationStateWithLiterals as SearchIndexingNotificationStateWithLiteralsOriginal, type SecondaryMediaMetadataOneOf as SecondaryMediaMetadataOneOfOriginal, type SecondaryMedia as SecondaryMediaOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type Tags as TagsOriginal, type Text as TextOriginal, type TpaPageLink as TpaPageLinkOriginal, type TriggerRestoreAllGalleriesAsyncRequest as TriggerRestoreAllGalleriesAsyncRequestOriginal, type TriggerRestoreAllGalleriesAsyncResponse as TriggerRestoreAllGalleriesAsyncResponseOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateByFilterOperation as UpdateByFilterOperationOriginal, type UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal, type UpdateDocumentsEvent as UpdateDocumentsEventOriginal, type UpdateExistingOperation as UpdateExistingOperationOriginal, type UpdateGalleryItemRequest as UpdateGalleryItemRequestOriginal, type UpdateGalleryItemResponse as UpdateGalleryItemResponseOriginal, type UpdateGalleryRequest as UpdateGalleryRequestOriginal, type UpdateGalleryResponse as UpdateGalleryResponseOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, VideoType as VideoTypeOriginal, type VideoTypeWithLiterals as VideoTypeWithLiteralsOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WhatsAppLink as WhatsAppLinkOriginal, type WixLinkLinkOneOf as WixLinkLinkOneOfOriginal, type WixLink as WixLinkOriginal, type __PublicMethodMetaInfo, bulkDeleteGalleryItems, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, updateGallery, updateGalleryItem };