import { FollowMemberRequest as FollowMemberRequest$1, FollowMemberResponse as FollowMemberResponse$1, UnfollowMemberRequest as UnfollowMemberRequest$1, UnfollowMemberResponse as UnfollowMemberResponse$1, ListMyMemberFollowingRequest as ListMyMemberFollowingRequest$1, ListMyMemberFollowingResponse as ListMyMemberFollowingResponse$1, ListMemberFollowingRequest as ListMemberFollowingRequest$1, ListMemberFollowingResponse as ListMemberFollowingResponse$1, ListMyMemberFollowersRequest as ListMyMemberFollowersRequest$1, ListMyMemberFollowersResponse as ListMyMemberFollowersResponse$1, ListMemberFollowersRequest as ListMemberFollowersRequest$1, ListMemberFollowersResponse as ListMemberFollowersResponse$1, QueryMyMemberConnectionsRequest as QueryMyMemberConnectionsRequest$1, QueryMyMemberConnectionsResponse as QueryMyMemberConnectionsResponse$1, QueryMemberConnectionsRequest as QueryMemberConnectionsRequest$1, QueryMemberConnectionsResponse as QueryMemberConnectionsResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; /** * A follower represents a connection between 2 members, where 1 member follows another. * This relationship enables members to track updates and activities from members they follow, creating a social network on the site. */ interface Follower { /** * Member ID of the member who performed the action. * @format GUID */ memberId?: string; /** * Member ID of the member being followed or unfollowed. * @format GUID */ affectedMemberId?: string; } 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 FollowMemberRequest { /** * ID of the member to follow. * @format GUID */ memberId: string; } interface FollowMemberResponse { } interface MemberFollowed { /** Member who is following the other member. */ memberConnection?: Follower; } interface UnfollowMemberRequest { /** * ID of the member to unfollow. * @format GUID */ memberId: string; } interface UnfollowMemberResponse { } interface MemberUnfollowed { /** Member who is unfollowing the other member. */ memberConnection?: Follower; } interface ListMyMemberFollowingRequest { /** * Pagination options. For more information, see * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging). */ paging?: CursorPaging; } interface CursorPaging { /** * Number of items to return. See [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging). * @min 1 * @max 100 */ limit?: number | null; /** Cursor returned from last query response. */ cursor?: string | null; } interface ListMyMemberFollowingResponse { /** * Retrieved list of members followed by the current member. * @format GUID */ memberIds?: string[]; /** Details on the paged set of results returned. */ pagingMetadata?: PagingMetadataV2; } interface PagingMetadataV2 { /** Number of items starting from given cursor. */ count?: number | null; /** Cursors to navigate through the result pages using `next` and `prev`. */ cursors?: Cursors; } interface Cursors { /** * Cursor string pointing to the next page in the list of results. * @maxLength 16000 */ next?: string | null; /** * Cursor pointing to the previous page in the list of results. * @maxLength 16000 */ prev?: string | null; } interface ListMemberFollowingRequest { /** * ID of the member whose followers to list. * @format GUID */ memberId: string; /** * Pagination options. For more information, see * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging). */ paging?: CursorPaging; } interface ListMemberFollowingResponse { /** * Retrieved list of members who are followed by the given member. * @format GUID */ memberIds?: string[]; /** Details on the paged set of results returned. */ pagingMetadata?: PagingMetadataV2; } interface ListMyMemberFollowersRequest { /** * Pagination options. For more information, see * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging). */ paging?: CursorPaging; } interface ListMyMemberFollowersResponse { /** * Retrieved list of members who are following the current member. * @format GUID */ memberIds?: string[]; /** Details on the paged set of results returned. */ pagingMetadata?: PagingMetadataV2; } interface ListMemberFollowersRequest { /** * ID of the member whose followed members to list. * @format GUID */ memberId: string; /** * Pagination options. For more information, see * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging). */ paging?: CursorPaging; } interface ListMemberFollowersResponse { /** * Retrieved list of members who are following the given member. * @format GUID */ memberIds?: string[]; /** Details on the paged set of results returned. */ pagingMetadata?: PagingMetadataV2; } interface QueryMyMemberConnectionsRequest { /** * List of member IDs whose connections to the current member will be retrieved. * @format GUID * @maxSize 100 */ connectedMemberIds: string[]; } interface QueryMyMemberConnectionsResponse { /** Retrieved list of members whose connections to the current member were retrieved. */ connectedMembers?: ConnectedMembers[]; } interface ConnectedMembers { /** * Site member ID. * @format GUID */ connectedMemberId?: string; /** Whether the listed member is followed by the given member. */ followedByMember?: boolean; /** Whether the listed member follows the given member. */ followingMember?: boolean; } interface QueryMemberConnectionsRequest { /** * List of member IDs whose connections to the given member will be retrieved. * @format GUID * @maxSize 100 */ connectedMemberIds: string[]; /** * Member ID. * @format GUID */ memberId: string; } interface QueryMemberConnectionsResponse { /** Retrieved list of members whose connections to the given member were retrieved. */ connectedMembers?: ConnectedMembers[]; } 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 */ restoreInfo?: RestoreInfo; } 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; } interface EntityDeletedEvent { /** Entity that was deleted. */ deletedEntityAsJson?: string | null; } interface ActionEvent { bodyAsJson?: string; } interface Empty { } 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; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function followMember(): __PublicMethodMetaInfo<'POST', { memberId: string; }, FollowMemberRequest$1, FollowMemberRequest, FollowMemberResponse$1, FollowMemberResponse>; declare function unfollowMember(): __PublicMethodMetaInfo<'DELETE', { memberId: string; }, UnfollowMemberRequest$1, UnfollowMemberRequest, UnfollowMemberResponse$1, UnfollowMemberResponse>; declare function listCurrentMemberFollowing(): __PublicMethodMetaInfo<'GET', {}, ListMyMemberFollowingRequest$1, ListMyMemberFollowingRequest, ListMyMemberFollowingResponse$1, ListMyMemberFollowingResponse>; declare function listMemberFollowing(): __PublicMethodMetaInfo<'GET', { memberId: string; }, ListMemberFollowingRequest$1, ListMemberFollowingRequest, ListMemberFollowingResponse$1, ListMemberFollowingResponse>; declare function listCurrentMemberFollowers(): __PublicMethodMetaInfo<'GET', {}, ListMyMemberFollowersRequest$1, ListMyMemberFollowersRequest, ListMyMemberFollowersResponse$1, ListMyMemberFollowersResponse>; declare function listMemberFollowers(): __PublicMethodMetaInfo<'GET', { memberId: string; }, ListMemberFollowersRequest$1, ListMemberFollowersRequest, ListMemberFollowersResponse$1, ListMemberFollowersResponse>; declare function queryCurrentMemberConnections(): __PublicMethodMetaInfo<'POST', {}, QueryMyMemberConnectionsRequest$1, QueryMyMemberConnectionsRequest, QueryMyMemberConnectionsResponse$1, QueryMyMemberConnectionsResponse>; declare function queryMemberConnections(): __PublicMethodMetaInfo<'POST', { memberId: string; }, QueryMemberConnectionsRequest$1, QueryMemberConnectionsRequest, QueryMemberConnectionsResponse$1, QueryMemberConnectionsResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type App as AppOriginal, type ConnectedMembers as ConnectedMembersOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type FollowMemberRequest as FollowMemberRequestOriginal, type FollowMemberResponse as FollowMemberResponseOriginal, type Follower as FollowerOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ListMemberFollowersRequest as ListMemberFollowersRequestOriginal, type ListMemberFollowersResponse as ListMemberFollowersResponseOriginal, type ListMemberFollowingRequest as ListMemberFollowingRequestOriginal, type ListMemberFollowingResponse as ListMemberFollowingResponseOriginal, type ListMyMemberFollowersRequest as ListMyMemberFollowersRequestOriginal, type ListMyMemberFollowersResponse as ListMyMemberFollowersResponseOriginal, type ListMyMemberFollowingRequest as ListMyMemberFollowingRequestOriginal, type ListMyMemberFollowingResponse as ListMyMemberFollowingResponseOriginal, type MemberFollowed as MemberFollowedOriginal, type MemberUnfollowed as MemberUnfollowedOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type QueryMemberConnectionsRequest as QueryMemberConnectionsRequestOriginal, type QueryMemberConnectionsResponse as QueryMemberConnectionsResponseOriginal, type QueryMyMemberConnectionsRequest as QueryMyMemberConnectionsRequestOriginal, type QueryMyMemberConnectionsResponse as QueryMyMemberConnectionsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnfollowMemberRequest as UnfollowMemberRequestOriginal, type UnfollowMemberResponse as UnfollowMemberResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, followMember, listCurrentMemberFollowers, listCurrentMemberFollowing, listMemberFollowers, listMemberFollowing, queryCurrentMemberConnections, queryMemberConnections, unfollowMember };