import * as Long from 'long'; import {AspectStore} from '@wix/wix-aspects'; declare namespace wrapper { export namespace wix { export namespace feed { export namespace activities { export interface Commented { } } } export namespace comments { export interface CommentCreated { containerId?: (string | null); entityId?: (string | null); commentId?: (string | null); comment?: (wrapper.wix.comments.CommentEntity | null); createdAt?: (Date | null); } export interface CommentUpdated { comment?: (wrapper.wix.comments.CommentEntity | null); } export interface CommentDeleted { } export interface CommentReported { reportType?: (wrapper.wix.comments.ReportType | null); } export interface Comment { commentId?: (string | null); entityId?: (string | null); comment?: (wrapper.wix.comments.CommentEntity | null); reactions?: (wrapper.wix.comments.Reactions | null); replies?: (wrapper.wix.comments.Replies | null); createdAt?: (Date | null); updatedAt?: (Date | null); availableActions?: (wrapper.wix.comments.UserAction[] | null); createdBy?: (wrapper.wix.social.SocialIdentity | null); reported?: (wrapper.wix.comments.Reported | null); replyTo?: (wrapper.wix.comments.ReplyTo | null); } export interface CommentEntity { text?: (wrapper.wix.social.Text | null); mentions?: (wrapper.wix.social.Mention[] | null); attachments?: (wrapper.wix.social.Resource[] | null); } export interface Reactions { count?: (number | null); total?: (number | null); usersReactions?: (wrapper.wix.reactions.UsersReactions | null); } export interface Replies { count?: (number | null); total?: (number | null); comments?: (wrapper.wix.comments.Comment[] | null); pageCursor?: (string | null); nextCursor?: (string | null); } export interface Reported { count?: (number | null); total?: (number | null); reportedTypes?: (wrapper.wix.comments.ReportType[] | null); } export interface CommentsAccess { allowedGlobalActions?: (wrapper.wix.comments.UserAction[] | null); allowedCommentActions?: (wrapper.wix.comments.UserAction[] | null); } export interface ReplyTo { commentId?: (string | null); createdBy?: (wrapper.wix.social.SocialIdentity | null); } export enum Ordering { OLDEST_FIRST = 0, LATEST_FIRST = 1, } export enum UserAction { VIEW = 0, ADD_COMMENT = 1, REACT = 2, UNREACT = 3, REPORT = 4, EDIT = 5, DELETE = 6, } export enum ReportType { UNWANTED_CONTENT = 0, HARASSMENT = 1, INAPPROPRIATE_CONTENT = 2, HATE_SPEECH_OR_GRAPHIC = 3, OTHER = 4, UnwantedContent = 5, Harrasment = 6, InappropiateContent = 7, HateSpeechOrGraphic = 8, } export namespace callbacks { export interface CommentCreated { commentId?: (string | null); } export interface CommentUpdated { commentId?: (string | null); } export interface CommentDeleted { commentId?: (string | null); } export interface ReactedOnComment { commentId?: (string | null); } export interface RemovedReactionOnComment { commentId?: (string | null); } export interface CommentReported { commentId?: (string | null); } } export interface CommentsPageCursor { fromEventId?: (number | Long | null); remainingCount?: (number | null); entityId?: (Uint8Array | null); flattenToDepth?: (number | null); backwards?: (boolean | null); ordering?: (wrapper.wix.comments.Ordering | null); fromEventUuid?: (Uint8Array | null); } export namespace component { export abstract class CommentsHostedSpi { abstract authorize(aspects: AspectStore, req: wrapper.wix.comments.component.AuthorizeRequest): Promise } export interface AuthorizeRequest { } export interface AuthorizeResponse { } export abstract class CommentsComponentService { abstract createComponentContext(aspects: AspectStore, req: wrapper.wix.comments.component.CreateComponentContextRequest): Promise abstract createComponentContexts(aspects: AspectStore, req: wrapper.wix.comments.component.CreateComponentContextRequests): Promise } export interface CreateComponentContextRequests { requests?: ({ [k: string]: wrapper.wix.comments.component.CreateComponentContextRequest } | null); } export interface CreateComponentContextRequest { containerId?: (string | null); containerType?: (string | null); permission?: (wrapper.wix.comments.component.Permission | null); features?: (wrapper.wix.comments.component.Feature[] | null); identity?: (wrapper.wix.social.SocialIdentity | null); } export interface CreateComponentContextResponse { componentContext?: (string | null); } export interface CreateComponentContextResponses { componentContexts?: ({ [k: string]: string } | null); } export interface ComponentContextEntry { requestId?: (string | null); componentContext?: (string | null); } export enum Permission { VIEWER = 0, WRITER = 1, ADMIN = 2, } export enum Feature { ALL = 0, REPLIES = 1, REACTIONS = 2, } } export abstract class CommentsSeoService { abstract getCommentsHtmlForEntities(aspects: AspectStore, req: wrapper.wix.comments.GetCommentsHtmlForEntitiesRequest): Promise } export interface GetCommentsHtmlForEntitiesRequest { contextToken?: (string | null); perEntityLimit?: (number | null); entityIds?: (string[] | null); } export interface GetCommentsHtmlForEntitiesResponse { perEntityHtmlSnippets?: ({ [k: string]: string } | null); } export abstract class CommentsService { abstract get(aspects: AspectStore, req: wrapper.wix.comments.GetCommentRequest): Promise abstract list(aspects: AspectStore, req: wrapper.wix.comments.GetListRequest): Promise abstract getPagingContexts(aspects: AspectStore, req: wrapper.wix.comments.GetPagingContextsRequest): Promise abstract create(aspects: AspectStore, req: wrapper.wix.comments.CreateCommentRequest): Promise abstract createReply(aspects: AspectStore, req: wrapper.wix.comments.CreateReplyRequest): Promise abstract update(aspects: AspectStore, req: wrapper.wix.comments.UpdateCommentRequest): Promise abstract delete(aspects: AspectStore, req: wrapper.wix.comments.DeleteCommentRequest): Promise abstract addReaction(aspects: AspectStore, req: wrapper.wix.comments.AddReactionRequest): Promise abstract removeReaction(aspects: AspectStore, req: wrapper.wix.comments.RemoveReactionRequest): Promise abstract reportAbuse(aspects: AspectStore, req: wrapper.wix.comments.ReportAbuseRequest): Promise abstract getReports(aspects: AspectStore, req: wrapper.wix.comments.GetReportsRequest): Promise } export interface GetCommentRequest { contextToken?: (string | null); commentId?: (string | null); repliesRequest?: (wrapper.wix.comments.RepliesRequest | null); fieldset?: (string | null); } export interface GetCommentResponse { comment?: (wrapper.wix.comments.Comment | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface CreateCommentResponse { comment?: (wrapper.wix.comments.Comment | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface CreateReplyResponse { comment?: (wrapper.wix.comments.Comment | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface UpdateCommentResponse { comment?: (wrapper.wix.comments.Comment | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface AddReactionResponse { comment?: (wrapper.wix.comments.Comment | null); } export interface RemoveReactionResponse { comment?: (wrapper.wix.comments.Comment | null); } export interface CreateCommentRequest { contextToken?: (string | null); comment?: (wrapper.wix.comments.CommentEntity | null); predefinedCommentId?: (string | null); submitToken?: (string | null); parentCommentId?: (string | null); entityId?: (string | null); } export interface CreateReplyRequest { contextToken?: (string | null); parentCommentId?: (string | null); reply?: (wrapper.wix.comments.CommentEntity | null); } export interface GetPagingContextsRequest { pagingContextSetups?: (wrapper.wix.comments.PagingContextSetup[] | null); repliesRequest?: (wrapper.wix.comments.RepliesRequest | null); fieldset?: (string | null); } export interface GetPagingContextsResponse { contexts?: ({ [k: string]: wrapper.wix.comments.PagingContext } | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface GetPagingContextRequest { pagingContextSetup?: (wrapper.wix.comments.PagingContextSetup | null); repliesRequest?: (wrapper.wix.comments.RepliesRequest | null); fieldset?: (string | null); } export interface GetPagingContextResponse { context?: (wrapper.wix.comments.PagingContext | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface GetListRequest { pagingContextSetup?: (wrapper.wix.comments.PagingContextSetup | null); cursorPaging?: (wrapper.wix.common.CursorPaging | null); contextToken?: (string | null); repliesRequest?: (wrapper.wix.comments.RepliesRequest | null); fieldset?: (string | null); } export interface GetMoreRequest { paging?: (wrapper.wix.common.CursorPaging | null); contextToken?: (string | null); repliesRequest?: (wrapper.wix.comments.RepliesRequest | null); fieldset?: (string | null); } export interface List2Request { pagingContextSetup?: (wrapper.wix.comments.PagingContextSetup | null); contextToken?: (string | null); repliesRequest?: (wrapper.wix.comments.RepliesRequest | null); fieldset?: (string | null); } export interface GetManyListsRequest { contextToken?: (string | null); entityId?: (string[] | null); limit?: (number | null); flattenToDepth?: (number | null); ordering?: (wrapper.wix.comments.Ordering | null); repliesRequest?: (wrapper.wix.comments.RepliesRequest | null); fieldset?: (string | null); } export interface GetManyListsResponse { entityLists?: ({ [k: string]: wrapper.wix.comments.CommentsList } | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface PagingContextSetup { containerId?: (string | null); entityId?: (string | null); containerType?: (string | null); limit?: (number | null); access?: (wrapper.wix.comments.CommentsAccess | null); flattenToDepth?: (number | null); ordering?: (wrapper.wix.comments.Ordering | null); } export interface GetListResponse { comments?: (wrapper.wix.comments.Comment[] | null); contextToken?: (string | null); nextCursor?: (string | null); previousCursor?: (string | null); profiles?: (wrapper.wix.social.Profiles | null); remainingCount?: (number | null); count?: (number | null); availableActions?: (wrapper.wix.comments.UserAction[] | null); loggedInUserId?: (string | null); loggedInIdentity?: (wrapper.wix.social.SocialIdentity | null); } export interface ListResponse { contextToken?: (string | null); list?: (wrapper.wix.comments.CommentsList | null); paginationContext?: (wrapper.wix.comments.PaginationContext | null); } export interface CommentsList { comments?: (wrapper.wix.comments.Comment[] | null); nextCursor?: (string | null); previousCursor?: (string | null); limit?: (number | null); availableActions?: (wrapper.wix.comments.UserAction[] | null); paginationContext?: (wrapper.wix.comments.PaginationContext | null); } export interface PaginationContext { offset?: (number | null); remainingCount?: (number | null); } export interface PagingContext { comments?: (wrapper.wix.comments.Comment[] | null); contextToken?: (string | null); nextCursor?: (string | null); } export interface UpdateCommentRequest { contextToken?: (string | null); commentId?: (string | null); comment?: (wrapper.wix.comments.CommentEntity | null); mask?: (string[] | null); } export interface DeleteCommentRequest { contextToken?: (string | null); commentId?: (string | null); listRequest?: (wrapper.wix.comments.GetListRequest | null); } export interface DeleteCommentResponse { comment?: (wrapper.wix.comments.Comment | null); listResponse?: (wrapper.wix.comments.GetListResponse | null); } export interface AddReactionRequest { contextToken?: (string | null); commentId?: (string | null); } export interface RemoveReactionRequest { contextToken?: (string | null); commentId?: (string | null); } export interface RepliesRequest { repliesToLoad?: (number | null); } export interface ReportAbuseRequest { contextToken?: (string | null); commentId?: (string | null); reportType?: (wrapper.wix.comments.ReportType | null); fieldset?: (string | null); } export interface ReportAbuseResponse { comment?: (wrapper.wix.comments.Comment | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface GetReportsRequest { contextToken?: (string | null); commentId?: (string | null); } export interface GetReportsResponse { reported?: (wrapper.wix.comments.Reported | null); } export namespace gdpr { export abstract class GdprService { abstract access(aspects: AspectStore, req: wrapper.wix.comments.gdpr.AccessRequest): Promise abstract forget(aspects: AspectStore, req: wrapper.wix.comments.gdpr.ForgetRequest): Promise } export interface AccessRequest { } export interface AccessResponse { comments?: (wrapper.wix.comments.gdpr.GdprComment[] | null); actions?: (wrapper.wix.comments.gdpr.GdprCommentAction[] | null); } export interface GdprComment { comment?: (wrapper.wix.comments.Comment | null); status?: (wrapper.wix.comments.gdpr.GdprComment.Status | null); } export namespace GdprComment { export enum Status { CREATED = 0, REMOVED = 1, } } export interface GdprCommentAction { commentId?: (string | null); actionType?: (string | null); timestamp?: (Date | null); data?: (any | null); } export interface ForgetRequest { } export interface ForgetResponse { } } } export namespace api { export enum Format { EMAIL = 0, HOSTNAME = 1, IPV4 = 2, IPV6 = 3, URI = 4, WEB_URL = 5, PHONE = 7, CREDIT_CARD = 8, GUID = 9, COUNTRY = 10, LANGUAGE = 11, DECIMAL_VALUE = 12, CURRENCY = 13, LANGUAGE_TAG = 14, } export enum Exposure { PRIVATE = 0, INTERNAL = 1, PUBLIC = 2, } export enum Maturity { ALPHA = 0, BETA = 1, IA = 2, GA = 3, } export interface Callback { topic?: (string | null); payload?: (string | null); permission?: (string | null); } } export namespace common { export interface Paging { limit?: (number | null); offset?: (number | null); } export interface CursorPaging { limit?: (number | null); cursor?: (string | null); } export interface Address { country?: (string | null); subdivision?: (string | null); city?: (string | null); postalCode?: (string | null); streetAddress?: (wrapper.wix.common.StreetAddress | null); addressLine?: (string | null); addressLine_2?: (string | null); } export interface StreetAddress { number?: (string | null); name?: (string | null); } export interface AddressContactDetails { fullName?: (string | null); phone?: (string | null); company?: (string | null); email?: (string | null); } export interface FullAddressContactDetails { firstName?: (string | null); lastName?: (string | null); phone?: (string | null); company?: (string | null); email?: (string | null); vatId?: (wrapper.wix.common.VatId | null); } export interface VatId { id?: (string | null); type?: (wrapper.wix.common.VatType | null); } export enum VatType { UNSPECIFIED = 0, CPF = 1, CNPJ = 2, } export interface AddressLocation { latitude?: (number | null); longitude?: (number | null); } export interface Image { id?: (string | null); url?: (string | null); height?: (number | null); width?: (number | null); } export interface Video { id?: (string | null); url?: (string | null); height?: (number | null); width?: (number | null); thumbnail?: (wrapper.wix.common.Image | null); } export interface Document { id?: (string | null); url?: (string | null); } export interface MediaItem { image?: (wrapper.wix.common.Image | null); video?: (wrapper.wix.common.Video | null); document?: (wrapper.wix.common.Document | null); } export interface PageUrl { base?: (string | null); path?: (string | null); } export interface Sorting { fieldName?: (string | null); order?: (wrapper.wix.common.SortOrder | null); } export enum SortOrder { ASC = 0, DESC = 1, } export interface WixLink { external?: (wrapper.wix.common.ExternalLink | null); page?: (wrapper.wix.common.PageLink | null); anchor?: (wrapper.wix.common.AnchorLink | null); dynamicPage?: (wrapper.wix.common.DynamicPageLink | null); document?: (wrapper.wix.common.DocumentLink | null); email?: (wrapper.wix.common.EmailLink | null); phone?: (wrapper.wix.common.PhoneLink | null); address?: (wrapper.wix.common.AddressLink | null); whatsApp?: (wrapper.wix.common.WhatsAppLink | null); } export interface ExternalLink { url?: (string | null); target?: (string | null); } export interface PageLink { pageId?: (string | null); target?: (string | null); } export interface AnchorLink { anchorName?: (string | null); anchorDataId?: (string | null); pageId?: (string | null); } export interface DynamicPageLink { routerId?: (string | null); innerRoute?: (string | null); anchorDataId?: (string | null); } export interface DocumentLink { docId?: (string | null); name?: (string | null); indexable?: (boolean | null); } export interface EmailLink { recipient?: (string | null); subject?: (string | null); body?: (string | null); } export interface PhoneLink { phoneNumber?: (string | null); } export interface AddressLink { address?: (string | null); } export interface WhatsAppLink { phoneNumber?: (string | null); } } export namespace social { export interface Text { contentType?: (wrapper.wix.social.ContentType | null); content?: (string | null); } export enum ContentType { PLAIN_TEXT = 0, DRAFTJS = 1, } export interface Resource { uri?: (string | null); id?: (string | null); mediaType?: (wrapper.wix.social.MediaType | null); pixelDimensions?: (wrapper.wix.social.PixelDimensions | null); mimeType?: (string | null); } export enum MediaType { ATTACHMENT = 0, IMAGE = 1, VIDEO = 2, } export interface PixelDimensions { width?: (number | null); height?: (number | null); } export interface Mention { identity?: (wrapper.wix.social.SocialIdentity | null); } export interface ExternalReference { url?: (string | null); } export interface ContentPreview { contentUrl?: (string | null); openGraph?: (wrapper.wix.social.OpenGraph | null); } export interface OpenGraph { title?: (string | null); url?: (string | null); description?: (string | null); image?: (wrapper.wix.social.OpenGraph.Image | null); typeWebsite?: (wrapper.wix.social.OpenGraph.Website | null); typeArticle?: (wrapper.wix.social.OpenGraph.Article | null); } export namespace OpenGraph { export interface Image { url?: (string | null); width?: (number | null); height?: (number | null); } export interface Website { } export interface Article { publishedTime?: (Date | null); modifiedTime?: (Date | null); expirationTime?: (Date | null); author?: (string[] | null); section?: (string | null); tag?: (string[] | null); } } export enum IdentityType { ANONYMOUS = 0, MEMBER = 1, USER = 2, } export interface SocialIdentity { identityId?: (string | null); identityType?: (wrapper.wix.social.IdentityType | null); } export interface Profile { id?: (string | null); nickname?: (string | null); slug?: (string | null); imageUrl?: (string | null); contactId?: (string | null); isAnonymous?: (boolean | null); } export interface Profiles { profiles?: ({ [k: string]: wrapper.wix.social.Profile } | null); } export interface ActivitiesCursorTokenStructure { fromEventId?: (Uint8Array | null); activityTypes?: (string[] | null); } export abstract class ActivitiesService { abstract createActivity(aspects: AspectStore, req: wrapper.wix.social.CreateActivityRequest): Promise abstract updateActivity(aspects: AspectStore, req: wrapper.wix.social.UpdateActivityRequest): Promise abstract deleteActivity(aspects: AspectStore, req: wrapper.wix.social.DeleteActivityRequest): Promise abstract initActivitiesContexts(aspects: AspectStore, req: wrapper.wix.social.InitActivitiesContextsRequest): Promise abstract getMore(aspects: AspectStore, req: wrapper.wix.social.GetMoreActivitiesRequest): Promise abstract queryActivityStats(aspects: AspectStore, req: wrapper.wix.social.QueryActivityStatsRequest): Promise abstract markActivitiesSeen(aspects: AspectStore, req: wrapper.wix.social.MarkActivitiesSeenRequest): Promise abstract queryLatestActivity(aspects: AspectStore, req: wrapper.wix.social.QueryLatestActivityRequest): Promise abstract queryIdentityActivityStats(aspects: AspectStore, req: wrapper.wix.social.QueryIdentityActivityStatsRequest): Promise } export interface CreateActivityRequest { activityId?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); initiator?: (wrapper.wix.social.SocialIdentity | null); container?: (wrapper.wix.social.SocialContainer | null); payload?: (wrapper.wix.social.AnyValue | null); } export interface CreateActivityResponse { activityId?: (string | null); } export interface UpdateActivityRequest { activityId?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); initiator?: (wrapper.wix.social.SocialIdentity | null); container?: (wrapper.wix.social.SocialContainer | null); payload?: (wrapper.wix.social.AnyValue | null); } export interface UpdateActivityResponse { } export interface DeleteActivityRequest { activityId?: (string | null); initiator?: (wrapper.wix.social.SocialIdentity | null); container?: (wrapper.wix.social.SocialContainer | null); } export interface DeleteActivityResponse { } export interface InitActivitiesContextsRequest { identity?: (wrapper.wix.social.SocialIdentity | null); containers?: (wrapper.wix.social.SocialContainer[] | null); prefetchQuery?: (wrapper.wix.social.ActivitiesQuery | null); fieldset?: (string[] | null); } export interface ActivitiesQuery { initialActivitiesLimit?: (number | null); activityTypes?: (string[] | null); activityObjectDecode?: (wrapper.wix.social.ObjectDecode | null); } export interface ObjectDecode { MessageDescriptors?: (Uint8Array[] | null); } export interface InitActivitiesContextsResponse { contexts?: (wrapper.wix.social.ActivitiesContext[] | null); } export interface MarkActivitiesSeenRequest { contextToken?: (string | null); cursor?: (string | null); } export interface MarkActivitiesSeenResponse { } export interface ActivitiesContext { container?: (wrapper.wix.social.SocialContainer | null); contextToken?: (string | null); initialCursor?: (wrapper.wix.social.ActivitiesCursor | null); } export interface GetMoreActivitiesRequest { contextToken?: (string | null); paging?: (wrapper.wix.common.CursorPaging | null); fieldset?: (string[] | null); } export interface ActivitiesCursor { activities?: (wrapper.wix.social.SocialActivity[] | null); cursor?: (string | null); nextCursor?: (string | null); } export interface SocialActivity { activityId?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); initiator?: (wrapper.wix.social.SocialIdentity | null); payload?: (wrapper.wix.social.AnyValue | null); object?: (wrapper.wix.social.PayloadObject | null); createdAt?: (Date | null); requesterContext?: (wrapper.wix.social.RequesterContext | null); } export interface RequesterContext { seen?: (boolean | null); } export interface PayloadObject { objectType?: (string | null); data?: ({ [key: string]: any } | null); } export interface QueryActivityStatsRequest { contextTokens?: (string[] | null); activityTypes?: (string[] | null); time?: (wrapper.wix.social.TimeRange | null); version?: (wrapper.wix.social.VersionQuery | null); date?: (wrapper.wix.social.DateRange | null); } export interface QueryLatestActivityRequest { contextTokens?: (string[] | null); activityTypes?: (string[] | null); } export interface QueryIdentityActivityStatsRequest { contextTokens?: (string[] | null); activityTypes?: (string[] | null); identities?: (wrapper.wix.social.SocialIdentity[] | null); } export interface QueryActivityStatsResponse { activityStats?: (wrapper.wix.social.ContainerActivityStats[] | null); } export interface QueryLatestActivityResponse { latestActivities?: (wrapper.wix.social.ContainerLatestActivity[] | null); } export interface QueryIdentityActivityStatsResponse { activityStats?: (wrapper.wix.social.ContainerIdentityActivityStats[] | null); } export interface ContainerActivityStats { containerId?: (string | null); containerType?: (string | null); versionRange?: (wrapper.wix.social.VersionRange | null); stats?: ({ [k: string]: wrapper.wix.social.RequesterContextActivityStats } | null); } export interface ContainerIdentityActivityStats { containerId?: (string | null); containerType?: (string | null); stats?: (wrapper.wix.social.IdentityActivityStats[] | null); } export interface ContainerLatestActivity { containerId?: (string | null); containerType?: (string | null); latestActivity?: (wrapper.wix.social.ActivityInfo | null); } export interface RequesterContextActivityStats { total?: (number | null); totalExcludedOwn?: (number | null); } export interface IdentityActivityStats { identity?: (wrapper.wix.social.SocialIdentity | null); activityStats?: ({ [k: string]: wrapper.wix.social.ActivityStats } | null); } export interface ActivityStats { total?: (number | null); } export interface ActivityInfo { activityType?: (string | null); activityTime?: (Date | null); } export interface TimeRange { from?: (Date | null); to?: (Date | null); } export interface DateRange { from?: (string | null); to?: (string | null); } export interface VersionQuery { from?: (string | null); to?: (string | null); } export interface VersionRange { from?: (string | null); to?: (string | null); } export interface SocialContainer { containerId?: (string | null); containerType?: (string | null); } export interface ResourceIdentifier { uri?: (string | null); id?: (string | null); } export interface AnyValue { typeName?: (string | null); value?: (Uint8Array | null); } export namespace activities { export interface ActivityCreated { containerId?: (string | null); providedActivityId?: (string | null); resource?: (wrapper.wix.social.ResourceIdentifier | null); data?: (wrapper.wix.social.AnyValue | null); } export interface ActivityCancelled { resource?: (wrapper.wix.social.ResourceIdentifier | null); activityTypeName?: (string | null); } } export interface IdentityParticipated { entityId?: (string | null); containerId?: (string | null); identity?: (wrapper.wix.social.SocialIdentity | null); resourceId?: (string | null); createdAt?: (Date | null); } export interface SubscribedToEntity { entityId?: (string | null); containerId?: (string | null); identities?: (wrapper.wix.social.SocialIdentity[] | null); } export interface UnsubscribedOfEntity { entityId?: (string | null); containerId?: (string | null); identities?: (wrapper.wix.social.SocialIdentity[] | null); } export interface ContentContainerCreated { providedContainerId?: (string | null); containerType?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); parentContainerId?: (string | null); owner?: (wrapper.wix.social.SocialIdentity | null); applicationData?: (wrapper.wix.social.AnyValue | null); } export interface ContentContainerUpdated { containerType?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); owner?: (wrapper.wix.social.SocialIdentity | null); applicationData?: (wrapper.wix.social.AnyValue | null); } export interface ContentContainerMoved { parentContainerId?: (string | null); } export interface ContentContainerRemoved { } export abstract class ContentContainersService { abstract createContainer(aspects: AspectStore, req: wrapper.wix.social.CreateContainerRequest): Promise abstract getContainer(aspects: AspectStore, req: wrapper.wix.social.GetContainerRequest): Promise abstract updateContainer(aspects: AspectStore, req: wrapper.wix.social.UpdateContainerRequest): Promise abstract upsertContainer(aspects: AspectStore, req: wrapper.wix.social.UpsertContainerRequest): Promise abstract deleteContainer(aspects: AspectStore, req: wrapper.wix.social.DeleteContainerRequest): Promise abstract moveContainer(aspects: AspectStore, req: wrapper.wix.social.MoveContainerRequest): Promise abstract listContainers(aspects: AspectStore, req: wrapper.wix.social.ListContainersRequest): Promise } export interface CreateContainerRequest { containerId?: (string | null); containerType?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); parentContainerId?: (string | null); owner?: (wrapper.wix.social.SocialIdentity | null); applicationData?: (wrapper.wix.social.AnyValue | null); } export interface CreateContainerResponse { containerId?: (string | null); } export interface GetContainerRequest { containerId?: (string | null); } export interface UpdateContainerRequest { containerId?: (string | null); containerType?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); owner?: (wrapper.wix.social.SocialIdentity | null); applicationData?: (wrapper.wix.social.AnyValue | null); } export interface UpsertContainerRequest { containerId?: (string | null); containerType?: (string | null); parentContainerId?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); owner?: (wrapper.wix.social.SocialIdentity | null); applicationData?: (wrapper.wix.social.AnyValue | null); } export interface UpdateContainerResponse { } export interface UpsertContainerResponse { } export interface DeleteContainerRequest { containerId?: (string | null); containerType?: (string | null); } export interface DeleteContainerResponse { } export interface MoveContainerRequest { containerId?: (string | null); containerType?: (string | null); parentContainerId?: (string | null); } export interface MoveContainerResponse { } export interface ListContainersRequest { contextToken?: (string | null); containerId?: (string | null); paging?: (wrapper.wix.common.CursorPaging | null); flattenToDepth?: (number | null); } export interface ContainersCursor { containers?: (wrapper.wix.social.ContentContainer[] | null); nextCursor?: (string | null); } export interface ContentContainer { containerId?: (string | null); containerType?: (string | null); resourceIdentifier?: (wrapper.wix.social.ResourceIdentifier | null); parentContainerId?: (string | null); owner?: (wrapper.wix.social.SocialIdentity | null); applicationData?: (wrapper.wix.social.AnyValue | null); } export interface ContainersCursorTokenStructure { fromEventId?: (Uint8Array | null); } export abstract class DbManagementService { abstract createEvent(aspects: AspectStore, req: wrapper.wix.social.CreateEventRequest): Promise abstract removeEvent(aspects: AspectStore, req: wrapper.wix.social.RemoveEventRequest): Promise abstract getSubscribedEvents(aspects: AspectStore, req: wrapper.wix.social.GetSubscribedEventsRequest): Promise } export interface GetSubscribedEventsRequest { tenantId?: (string | null); subscriberIds?: (string[] | null); producerIds?: (string[] | null); eventTypes?: (string[] | null); eventOrdering?: (wrapper.wix.social.EventOrdering | null); fromEventId?: (Uint8Array | null); limit?: (number | null); } export interface EventsResponse { events?: (wrapper.wix.social.AggregateEventData[] | null); } export interface AggregateEventData { eventId?: (string | null); aggregateId?: (string | null); producerId?: (string | null); eventType?: (string | null); payload?: (any | null); createdAt?: (Date | null); } export interface CreateEventRequest { tenant?: (string | null); aggregateId?: (string | null); producerId?: (string | null); eventType?: (string | null); payload?: (any | null); subscriberIds?: (string[] | null); } export interface RemoveEventRequest { eventId?: (string | null); } export enum EventOrdering { LATEST = 0, OLDEST = 1, } export namespace internal { export interface StoredSubscriptionScope { ancestral?: (wrapper.wix.social.internal.AncestralSubscription | null); aggregateReader?: (wrapper.wix.social.internal.AggregateReaderSubscription | null); } export interface AncestralSubscription { depth?: (number | null); } export interface AggregateReaderSubscription { identityType?: (wrapper.wix.social.IdentityType | null); fromEventId?: (Uint8Array | null); ordering?: (wrapper.wix.social.EventOrdering | null); aggregateType?: (string | null); } } export abstract class ManagementService { abstract getContextToken(aspects: AspectStore, req: wrapper.wix.social.GetContextTokenRequest): Promise abstract viewTokenContents(aspects: AspectStore, req: wrapper.wix.social.ViewTokenContentsRequest): Promise abstract getParticipants(aspects: AspectStore, req: wrapper.wix.social.GetParticipantsRequest): Promise abstract countAggregates(aspects: AspectStore, req: wrapper.wix.social.CountAggregatesRequest): Promise abstract getProfiles(aspects: AspectStore, req: wrapper.wix.social.GetProfilesRequest): Promise } export interface GetContextTokenRequest { appDefId?: (string | null); containerType?: (string | null); containerId?: (string | null); } export interface GetContextTokenResponse { contextToken?: (string | null); } export interface GetParticipantsRequest { contextToken?: (string | null); fromEventId?: (Uint8Array | null); } export interface GetParticipantsResponse { participants?: (wrapper.wix.social.Participant[] | null); } export interface ViewTokenContentsRequest { contextToken?: (string | null); } export interface ViewTokenContentsResponse { contextToken?: (wrapper.wix.social.ContextTokenStructure | null); identityResponse?: (wrapper.com.wix.core.services.identification2.IdentityResponse | null); metaSiteContext?: (wrapper.com.wixpress.metasite.reloose.api.MetaSiteContext | null); } export interface CountAggregatesRequest { subscriberId?: (string | null); limit?: (number | null); addedLatency?: (number | null); } export interface Participant { identity?: (wrapper.wix.social.SocialIdentity | null); profile?: (wrapper.wix.social.Profile | null); } export interface GetProfilesRequest { identityIds?: (string[] | null); contextToken?: (string | null); } export interface ContextTokenStructure { createdAt?: (Date | null); appDefId?: (string | null); containerId?: (string | null); containerType?: (string | null); accessControlStates?: (wrapper.wix.social.AccessControlState[] | null); identities?: (wrapper.wix.social.SocialIdentity[] | null); shard?: (string | null); originalContainerId?: (string | null); } export interface AccessControlState { fullyQualifiedName?: (string | null); state?: (Uint8Array | null); } export interface AddParticipationRequest { identity?: (wrapper.wix.social.SocialIdentity | null); entityId?: (string | null); resourceId?: (string | null); } export interface ProfilesPageCursor { searchText?: (string | null); profilesOffset?: (number | null); fromEventId?: (number | Long | null); fromEventUuid?: (Uint8Array | null); } export abstract class ProfilesService { abstract queryProfiles(aspects: AspectStore, req: wrapper.wix.social.QueryProfilesRequest): Promise } export interface QueryProfilesRequest { mask?: (string[] | null); contextToken?: (string | null); query?: (wrapper.wix.social.SearchQuery | null); paging?: (wrapper.wix.common.CursorPaging | null); } export interface SearchQuery { searchText?: (string | null); limit?: (number | null); } export interface QueryProfilesResponse { profiles?: (wrapper.wix.social.Profile[] | null); nextCursor?: (string | null); } export interface SocialEntity { ownedBy?: (wrapper.wix.social.SocialIdentity | null); } } export namespace reactions { export interface ItemReactionsSummary { itemId?: (string | null); total?: (number | null); usersReacted?: (wrapper.wix.reactions.Users | null); usersReactions?: (wrapper.wix.reactions.UsersReactions | null); reactionsSummary?: (wrapper.wix.reactions.ReactionsSummary | null); requesterReactions?: (wrapper.wix.reactions.UserReactions | null); profiles?: (wrapper.wix.social.Profiles | null); } export interface Users { total?: (number | null); userIds?: (string[] | null); nextCursor?: (string | null); } export interface UsersReactions { total?: (number | null); userReactions?: (wrapper.wix.reactions.UserReaction[] | null); nextCursor?: (string | null); } export interface UserReactions { reactions?: (wrapper.wix.reactions.Reaction[] | null); } export interface UserReaction { reaction?: (wrapper.wix.reactions.Reaction | null); userId?: (string | null); reactionTime?: (Date | null); } export interface ReactionsSummary { latestReactions?: (wrapper.wix.reactions.ReactionSummary[] | null); } export interface ReactionSummary { reaction?: (wrapper.wix.reactions.Reaction | null); usersReacted?: (wrapper.wix.reactions.Users | null); reactionTime?: (Date | null); } export interface Reaction { reactionCode?: (string | null); reactionParams?: ({ [k: string]: string } | null); } export interface ItemsReacted { total?: (number | null); itemReactions?: (wrapper.wix.reactions.ItemReactions[] | null); nextCursor?: (string | null); } export interface ItemReactions { itemId?: (string | null); reactionsCount?: (number | null); } export interface UsersReacted { total?: (number | null); userReactions?: (wrapper.wix.reactions.UserReactionsCount[] | null); nextCursor?: (string | null); } export interface UserReactionsCount { userId?: (string | null); count?: (number | null); } export interface ReactionsAccess { } export interface UserReacted { reaction?: (string | null); args?: ({ [k: string]: string } | null); } export interface UserUnreacted { reaction?: (string | null); } export abstract class ReactionsService { abstract react(aspects: AspectStore, req: wrapper.wix.reactions.ReactRequest): Promise abstract unreact(aspects: AspectStore, req: wrapper.wix.reactions.UnreactRequest): Promise abstract get(aspects: AspectStore, req: wrapper.wix.reactions.GetRequest): Promise abstract removeAll(aspects: AspectStore, req: wrapper.wix.reactions.RemoveAllRequest): Promise<{}> abstract getReactions(aspects: AspectStore, req: wrapper.wix.reactions.GetReactionsRequest): Promise abstract getReactionsSummary(aspects: AspectStore, req: wrapper.wix.reactions.GetReactionsSummaryRequest): Promise } export interface ReactRequest { itemId?: (string | null); reaction?: (wrapper.wix.reactions.Reaction | null); scopeId?: (string | null); contextToken?: (string | null); } export interface UnreactRequest { itemId?: (string | null); reactionCode?: (string | null); contextToken?: (string | null); } export interface GetRequest { itemId?: (string | null); } export interface RemoveAllRequest { itemId?: (string[] | null); scopeId?: (string | null); } export interface GetReactionsSummaryRequest { itemId?: (string[] | null); scopeId?: (string | null); limit?: (number | null); } export interface GetReactionsRequest { itemId?: (string[] | null); } export interface GetReactionsResponse { total?: (number | null); itemReactions?: (wrapper.wix.reactions.ItemReactionsSummary[] | null); } export interface GetReactionsSummaryResponse { reactionsSummary?: (wrapper.wix.reactions.ReactionsSummary | null); usersReacted?: (wrapper.wix.reactions.UsersReacted | null); itemsReacted?: (wrapper.wix.reactions.ItemsReacted | null); } } export namespace socialcontent { export namespace mediauploads { export abstract class MediaUploadsService { abstract startUpload(aspects: AspectStore, req: wrapper.wix.socialcontent.mediauploads.StartUploadRequest): Promise abstract uploadCallback(aspects: AspectStore, req: any): Promise<{}> abstract finishUpload(aspects: AspectStore, req: wrapper.wix.socialcontent.mediauploads.FinishUploadRequest): Promise } export interface StartUploadRequest { pageToken?: (string | null); name?: (string | null); size?: (number | null); mimeType?: (string | null); } export interface StartUploadResponse { uploadUrl?: (string | null); uploadParams?: ({ [k: string]: string } | null); } export interface FinishUploadRequest { uploadResponse?: (string | null); } export interface FinishUploadResponse { resource?: (wrapper.wix.social.Resource | null); } export interface UploadCallback { hash?: (string | null); fileName?: (string | null); } } } } export namespace google { export namespace api { export interface Http { rules?: (wrapper.google.api.HttpRule[] | null); } export interface HttpRule { selector?: (string | null); get?: (string | null); put?: (string | null); post?: (string | null); delete?: (string | null); patch?: (string | null); custom?: (wrapper.google.api.CustomHttpPattern | null); body?: (string | null); additionalBindings?: (wrapper.google.api.HttpRule[] | null); } export interface CustomHttpPattern { kind?: (string | null); path?: (string | null); } } } export namespace com { export namespace wix { export namespace core { export namespace services { export namespace identification2 { /** * Should contain a map of sessions that we can extract the identity from. * Supported sessions include: * Cookie names: WixSession2, smSession, svSession * Headers: Authorization - should contain a signed instance */ export interface IdentityRequest { sessions?: ({ [k: string]: string } | null); } /** * serverSignerToken - JWT containing signedService data - it should have `appDefId` only. * originalIdentityResponse - must contain a valid signedToken - only this part is taken into account. * the parsed Service Identity should be added to originalIdentityResponse, if exists; otherwise: * - IdentityResponse will be parsed from originalIdentityRequest (in the same way as `extractIdentity()` works now), and then * serverSignerToken will be merged. */ export interface IdentityRequestWithServerSigner { originalIdentityRequest?: (wrapper.com.wix.core.services.identification2.IdentityRequest | null); originalIdentityResponse?: (wrapper.com.wix.core.services.identification2.IdentityResponse | null); serverSignerToken?: (string | null); } export interface IdentityResponse { /** * A list of extracted identities */ identificationData?: (wrapper.com.wix.core.services.identification2.IdentificationData | null); /** * Signed token, encodes the identity data */ signedToken?: (string | null); } /** * Supports extracting the identified callers from Wix Specific sessions. * It knows how to extract: * Wix User, Site Member, Anonymous Id, Service appDefId and Instance */ export abstract class IdentificationServiceV2 { /** * This method gets the identities from the supplied headers */ abstract extractIdentity(aspects: AspectStore, req: wrapper.com.wix.core.services.identification2.IdentityRequest): Promise /** * This method gets the originalIdentityResponse and a serverSigner token, * Output: IdentityResponse, with the new SERVICE Identity, and with original Context from originalIdentityResponse - * in other words - serverSignerToken doesn't override the original Context. * Note: if the original IdentityResponse contains a Service Identity, it's gonna be overriten with the new Servie Identity parsed from serverSignerToken in the request. * * THIS METHOD SHOULD BE CALLED BY APIGATEWAYCLIENT ONLY! */ abstract extractIdentityWithServerSigner(aspects: AspectStore, req: wrapper.com.wix.core.services.identification2.IdentityRequestWithServerSigner): Promise } export enum PersonType { USER = 0, SITEMEMBER = 1, VISITOR = 2, } export interface Service { appDefId?: (string | null); } export interface Person { type?: (wrapper.com.wix.core.services.identification2.PersonType | null); id?: (string | null); hasUserRole?: (boolean | null); isWixStaff?: (boolean | null); userAccountInfo?: (wrapper.com.wix.core.services.identification2.UserAccountInfo | null); } export interface UserAccountInfo { loggedInAccountId?: (string | null); isAccountOwner?: (boolean | null); isLogInAccountOwner?: (boolean | null); } export interface UserData { userId?: (string | null); } export interface SiteData { instanceId?: (string | null); } export interface WixGlobalData { } export interface ExternalApp { appDefId?: (string | null); permissions?: (string[] | null); userData?: (wrapper.com.wix.core.services.identification2.UserData | null); siteData?: (wrapper.com.wix.core.services.identification2.SiteData | null); wixGlobalData?: (wrapper.com.wix.core.services.identification2.WixGlobalData | null); } export interface Cache { } export interface Identity { person?: (wrapper.com.wix.core.services.identification2.Person | null); service?: (wrapper.com.wix.core.services.identification2.Service | null); externalApp?: (wrapper.com.wix.core.services.identification2.ExternalApp | null); cache?: (wrapper.com.wix.core.services.identification2.Cache | null); } export interface Context { appDefId?: (string | null); instanceId?: (string | null); metasiteId?: (string | null); siteMemberId?: (string | null); targetAccountId?: (string | null); } export interface IdentificationData { context?: (wrapper.com.wix.core.services.identification2.Context | null); identities?: (wrapper.com.wix.core.services.identification2.Identity[] | null); } } } } } export namespace wixpress { export namespace metasite { export namespace reloose { export namespace api { export interface MetaSiteContext { metaSiteId?: (string | null); published?: (boolean | null); apps?: (wrapper.com.wixpress.metasite.reloose.api.App[] | null); } export interface App { appDefId?: (string | null); instanceId?: (string | null); state?: (wrapper.com.wixpress.metasite.reloose.api.App.State | null); version?: (string | null); } export namespace App { export enum State { UNKNOWN = 0, ENABLED = 1, DISABLED = 2, TEMPLATE = 3, PENDING = 4, } } export interface GetRequest { metaSiteId?: (string | null); app?: (wrapper.com.wixpress.metasite.reloose.api.App | null); } export interface GetResponse { context?: (wrapper.com.wixpress.metasite.reloose.api.MetaSiteContext | null); } export interface GetByMetaSiteIdBulkRequest { metaSiteIds?: (string[] | null); } export interface GetByMetaSiteIdBulkResponse { contexts?: (wrapper.com.wixpress.metasite.reloose.api.MetaSiteContext[] | null); } export interface GetByAppBulkRequest { appDefId?: (string | null); instanceIds?: (string[] | null); } export interface GetByAppBulkResponse { contexts?: (wrapper.com.wixpress.metasite.reloose.api.MetaSiteContext[] | null); } export abstract class RelooseApi { abstract get(aspects: AspectStore, req: wrapper.com.wixpress.metasite.reloose.api.GetRequest): Promise abstract getByMetaSiteIdBulk(aspects: AspectStore, req: wrapper.com.wixpress.metasite.reloose.api.GetByMetaSiteIdBulkRequest): Promise abstract getByAppBulk(aspects: AspectStore, req: wrapper.com.wixpress.metasite.reloose.api.GetByAppBulkRequest): Promise } } } } } } } export = wrapper;