import * as Long from 'long'; declare namespace wrapper { export namespace wix { export namespace filesharing { export namespace api { export namespace v1 { export namespace settings { export abstract class AppSettingsService { abstract updateAppSettings(aspects: object, req: wrapper.wix.filesharing.api.v1.settings.UpdateAppSettingsRequest): Promise abstract getAppSettings(aspects: object, req: wrapper.wix.filesharing.api.v1.settings.GetAppSettingsRequest): Promise } export interface UpdateAppSettingsRequest { settings?: (wrapper.wix.filesharing.api.v1.settings.AppSettings | null); fieldMask?: (string[] | null); groupId?: (string | null); } export interface UpdateAppSettingsResponse { settings?: (wrapper.wix.filesharing.api.v1.settings.AppSettings | null); } export interface GetAppSettingsResponse { settings?: (wrapper.wix.filesharing.api.v1.settings.AppSettings | null); rootFolderId?: (string | null); supportedExtensions?: (wrapper.wix.filesharing.api.v1.settings.SupportedExtension[] | null); } export interface GetAppSettingsRequest { groupId?: (string | null); } export interface AppSettings { uploadSettings?: (wrapper.wix.filesharing.api.v1.settings.UploadSettings | null); downloadSettings?: (wrapper.wix.filesharing.api.v1.settings.DownloadSettings | null); favoriteSettings?: (wrapper.wix.filesharing.api.v1.settings.FavoriteSettings | null); displaySettings?: (wrapper.wix.filesharing.api.v1.settings.DisplaySettings | null); designSettings?: (wrapper.wix.filesharing.api.v1.settings.DesignSettings | null); } export interface FavoriteSettings { isMembersAllowedToFavorite?: (boolean | null); } export interface UploadSettings { maxSizePerUploadMb?: (number | null); allowVideoUploads?: (boolean | null); } export interface DownloadSettings { whoCanDownload?: (wrapper.wix.filesharing.api.v1.settings.WhoCanDownload | null); } export enum WhoCanDownload { ANYONE = "ANYONE", MEMBERS_ONLY = "MEMBERS_ONLY", } export interface DisplaySettings { showFileOwnerName?: (boolean | null); showSizeOfFiles?: (boolean | null); showViewsCounter?: (boolean | null); layoutOptions?: (wrapper.wix.filesharing.api.v1.settings.LayoutOptions | null); textAlignment?: (wrapper.wix.filesharing.api.v1.settings.TextAlignment | null); showFileUploadDate?: (boolean | null); showFavoritesCounter?: (boolean | null); } export interface DesignSettings { fileIcon?: (wrapper.wix.filesharing.api.v1.settings.FileIcon | null); buttonCornerRadius?: (number | null); dividerWidth?: (number | null); memberProfileDividerWidth?: (number | null); } export enum FileIcon { EXTENSION = "EXTENSION", CLASSIC = "CLASSIC", LINE = "LINE", } export enum TextAlignment { LEFT = "LEFT", RIGHT = "RIGHT", } export enum LayoutOptions { LIST = "LIST", THUMBNAIL = "THUMBNAIL", } export enum FileCategory { OTHER = "OTHER", MUSIC = "MUSIC", VIDEO = "VIDEO", IMAGE = "IMAGE", DOCS = "DOCS", FONT = "FONT", } export interface SupportedExtension { category?: (wrapper.wix.filesharing.api.v1.settings.FileCategory | null); extensions?: (string[] | null); } } export namespace libraryitems { export abstract class FileSharingService { abstract queryFiles(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.QueryFilesRequest): Promise abstract queryFolders(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.QueryFoldersRequest): Promise abstract queryLibraryItems(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.QueryLibraryItemsRequest): Promise abstract queryLibraryFolderItems(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.QueryLibraryFolderItemsRequest): Promise abstract getLibraryItemsById(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.GetLibraryItemsByIdRequest): Promise abstract listAllowedActions(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.ListAllowedActionsRequest): Promise abstract getFolderTree(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.GetFolderTreeRequest): Promise abstract createFolder(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.CreateFolderRequest): Promise abstract move(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.MoveRequest): Promise abstract rename(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.RenameRequest): Promise abstract delete(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.DeleteRequest): Promise abstract viewFile(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.ViewFileRequest): Promise abstract viewFolder(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.ViewFolderRequest): Promise abstract favorite(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.FavoriteRequest): Promise abstract download(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.DownloadRequest): Promise abstract startFileUpload(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.StartFileUploadRequest): Promise abstract completeFileUpload(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.CompleteFileUploadRequest): Promise abstract share(aspects: object, req: wrapper.wix.filesharing.api.v1.libraryitems.ShareRequest): Promise } export interface QueryFilesRequest { query?: (wrapper.wix.common.Query | null); } export interface QueryFoldersRequest { query?: (wrapper.wix.common.Query | null); } export interface QueryLibraryFolderItemsRequest { filter?: (wrapper.wix.filesharing.api.v1.libraryitems.QueryLibraryFolderItemsRequest.Filter | null); sort?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItemSorting | null); paging?: (wrapper.wix.filesharing.api.v1.libraryitems.Paging | null); } export namespace QueryLibraryFolderItemsRequest { export interface Filter { parentLibraryItemIds?: (string[] | null); } } export interface QueryLibraryFolderItemsResponse { libraryItems?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItem[] | null); metaData?: (wrapper.wix.filesharing.api.v1.libraryitems.MetaData | null); } export interface QueryLibraryItemsRequest { filter?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItemFilter | null); sort?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItemSorting | null); paging?: (wrapper.wix.filesharing.api.v1.libraryitems.Paging | null); } export interface GetLibraryItemsByIdRequest { libraryItemIds?: (string[] | null); } export interface GetLibraryItemsByIdResponse { libraryItems?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItem[] | null); } export interface QueryLibraryItemsOffsetResponse { libraryItems?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItem[] | null); metadata?: (wrapper.wix.filesharing.api.v1.libraryitems.QueryLibraryItemsOffsetResponse.Metadata | null); totalResults?: (number | null); } export namespace QueryLibraryItemsOffsetResponse { export interface Metadata { items?: (number | null); offset?: (number | null); } } export interface QueryLibraryItemsResponse { libraryItems?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItem[] | null); metaData?: (wrapper.wix.filesharing.api.v1.libraryitems.MetaData | null); } export interface MetaData { nextCursor?: (string | null); } export interface ListAllowedActionsRequest { libraryItemIds?: (string[] | null); } export interface ListAllowedActionsResponse { libraryItemAllowedActions?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItemAllowedAction[] | null); allowedActions?: (wrapper.wix.filesharing.api.v1.libraryitems.AllowedAction[] | null); allMembersActions?: (wrapper.wix.filesharing.api.v1.libraryitems.AllowedAction[] | null); } export interface GetFolderTreeRequest { rootLibraryItemId?: (string | null); } export interface GetFolderTreeResponse { folderTree?: (wrapper.wix.filesharing.api.v1.libraryitems.FolderTree | null); } export interface ViewFileRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.ViewAction[] | null); } export interface ViewFileResponse { urls?: (wrapper.wix.filesharing.api.v1.libraryitems.ViewUrl[] | null); } export interface ViewFolderRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.ViewAction[] | null); } export interface ViewFolderResponse { } export interface FavoriteRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.FavoriteAction[] | null); } export interface FavoriteResponse { } export interface CreateFolderRequest { action?: (wrapper.wix.filesharing.api.v1.libraryitems.CreateFolderAction | null); } export interface CreateFolderResponse { folderId?: (string | null); } export interface StartFileUploadRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.StartFileUploadAction[] | null); } export interface StartFileUploadResponse { urls?: (wrapper.wix.filesharing.api.v1.libraryitems.FileUploadUrl[] | null); failures?: (wrapper.wix.filesharing.api.v1.libraryitems.StartFileUploadFailure[] | null); } export interface CompleteFileUploadRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.CompleteFileUploadAction[] | null); } export interface CompleteFileUploadResponse { libraryItems?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItem[] | null); failures?: (wrapper.wix.filesharing.api.v1.libraryitems.CompleteFileUploadFailure[] | null); } export interface MoveRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.MoveAction[] | null); } export interface MoveResponse { } export interface RenameRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.RenameAction[] | null); } export interface RenameResponse { } export interface DeleteRequest { actions?: (wrapper.wix.filesharing.api.v1.libraryitems.DeleteAction[] | null); } export interface DeleteResponse { } export interface DownloadRequest { action?: (wrapper.wix.filesharing.api.v1.libraryitems.DownloadAction | null); } export interface DownloadResponse { url?: (string | null); isArchive?: (boolean | null); } export interface ShareRequest { urlPath?: (string | null); } export interface ShareResponse { url?: (string | null); } export interface LibraryItem { id?: (string | null); name?: (string | null); createdBy?: (string | null); createdByName?: (string | null); createdAt?: (Date | null); parentFolderId?: (string | null); path?: (wrapper.wix.filesharing.api.v1.libraryitems.PathItem[] | null); timesFavorited?: (number | null); isFavorited?: (boolean | null); uniqueViews?: (number | null); isViewed?: (boolean | null); fileFields?: (wrapper.wix.filesharing.api.v1.libraryitems.FileFields | null); folderFields?: (wrapper.wix.filesharing.api.v1.libraryitems.FolderFields | null); } export interface FileFields { extension?: (string | null); size?: (number | null); sizeInBytes?: (number | Long | null); } export interface FolderFields { childrenCount?: (number | null); lastModified?: (Date | null); } export interface LibraryItemAllowedAction { libraryItemId?: (string | null); allowedActions?: (wrapper.wix.filesharing.api.v1.libraryitems.AllowedAction[] | null); } export enum AllowedAction { MOVE = "MOVE", RENAME = "RENAME", DELETE = "DELETE", DOWNLOAD = "DOWNLOAD", CREATE_FOLDER = "CREATE_FOLDER", UPLOAD_FILE = "UPLOAD_FILE", VIEW = "VIEW", FAVORITE = "FAVORITE", } export interface FolderTree { folderId?: (string | null); name?: (string | null); subfolders?: (wrapper.wix.filesharing.api.v1.libraryitems.FolderTree[] | null); } export interface PathItem { libraryItemId?: (string | null); name?: (string | null); } export interface CreateFolderAction { name?: (string | null); parentFolderId?: (string | null); } export interface StartFileUploadAction { name?: (string | null); size?: (number | null); sizeInBytes?: (number | Long | null); parentFolderId?: (string | null); actionId?: (string | null); } export interface FileUploadUrl { url?: (string | null); requestParameters?: ({ [k: string]: string } | null); actionId?: (string | null); } export interface StartFileUploadFailure { fileName?: (string | null); fileTooBig?: (wrapper.wix.filesharing.api.v1.libraryitems.FileTooBig | null); fileExtensionNotSupported?: (wrapper.wix.filesharing.api.v1.libraryitems.FileExtensionNotSupported | null); actionId?: (string | null); } export interface FileTooBig { size?: (number | Long | null); maxSize?: (number | Long | null); } export interface FileExtensionNotSupported { extension?: (string | null); } export enum UploadFailureReason { VIDEO_NOT_ALLOED = "VIDEO_NOT_ALLOED", } export interface CompleteFileUploadAction { uploadResponse?: (string | null); parentFolderId?: (string | null); actionId?: (string | null); } export interface CompleteFileUploadFailure { fileName?: (string | null); fileTooBig?: (wrapper.wix.filesharing.api.v1.libraryitems.FileTooBig | null); videoFilesForbidden?: (wrapper.wix.filesharing.api.v1.libraryitems.VideoFilesForbidden | null); actionId?: (string | null); } export interface VideoFilesForbidden { } export interface MoveAction { libraryItemId?: (string | null); newParentFolderId?: (string | null); currentParentFolderId?: (string | null); } export interface RenameAction { libraryItemId?: (string | null); newName?: (string | null); parentFolderId?: (string | null); } export interface DeleteAction { libraryItemIds?: (string[] | null); parentFolderId?: (string | null); } export interface ViewAction { libraryItemId?: (string | null); } export interface ViewUrl { libraryItemId?: (string | null); url?: (string | null); } export interface FavoriteAction { libraryItemId?: (string | null); isFavorite?: (boolean | null); } export interface DownloadAction { libraryItemIds?: (string[] | null); } export interface LibraryItemFilter { parentLibraryItemIds?: (string[] | null); descendantsOfFolderId?: (string | null); search?: (string | null); filterFavoritedByCallingUser?: (boolean | null); createdBy?: (string[] | null); libraryItemTypes?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItemType[] | null); } export interface LibraryItemSorting { sortBy?: (wrapper.wix.filesharing.api.v1.libraryitems.LibraryItemSortBy | null); orientation?: (wrapper.wix.filesharing.api.v1.libraryitems.Orientation | null); } export enum LibraryItemType { FILE = "FILE", FOLDER = "FOLDER", } export enum Orientation { DESC = "DESC", ASC = "ASC", } export enum LibraryItemSortBy { CREATED_AT = "CREATED_AT", NAME = "NAME", TYPE = "TYPE", TIMES_FAVORITED = "TIMES_FAVORITED", UNIQUE_VIEWS = "UNIQUE_VIEWS", LAST_MODIFIED = "LAST_MODIFIED", } export interface Paging { cursor?: (string | null); limit?: (number | null); } } export namespace permissions { export enum Permission { CREATE_FOLDER = "CREATE_FOLDER", UPLOAD_FILE = "UPLOAD_FILE", MODERATE = "MODERATE", } export enum RoleType { ALL_MEMBERS = "ALL_MEMBERS", ADMINS = "ADMINS", CUSTOM = "CUSTOM", } export interface Role { id?: (string | null); name?: (string | null); permissions?: (wrapper.wix.filesharing.api.v1.permissions.Permission[] | null); roleType?: (wrapper.wix.filesharing.api.v1.permissions.RoleType | null); } export interface RemovePermissionAction { permission?: (wrapper.wix.filesharing.api.v1.permissions.Permission | null); roleId?: (string | null); } export interface AssignPermissionAction { permission?: (wrapper.wix.filesharing.api.v1.permissions.Permission | null); roleId?: (string | null); } export abstract class PermissionsService { abstract remove(aspects: object, req: wrapper.wix.filesharing.api.v1.permissions.RemoveRequest): Promise abstract assign(aspects: object, req: wrapper.wix.filesharing.api.v1.permissions.AssignRequest): Promise abstract listRoles(aspects: object, req: wrapper.wix.filesharing.api.v1.permissions.ListRolesRequest): Promise } export interface ListRolesRequest { permissions?: (wrapper.wix.filesharing.api.v1.permissions.Permission[] | null); ofCurrentUser?: (boolean | null); } export interface ListRolesResponse { roles?: (wrapper.wix.filesharing.api.v1.permissions.Role[] | null); } export interface RemoveRequest { actions?: (wrapper.wix.filesharing.api.v1.permissions.RemovePermissionAction[] | null); } export interface RemoveResponse { } export interface AssignRequest { actions?: (wrapper.wix.filesharing.api.v1.permissions.AssignPermissionAction[] | null); } export interface AssignResponse { } } } } } export namespace api { export enum Exposure { PRIVATE = "PRIVATE", INTERNAL = "INTERNAL", PUBLIC = "PUBLIC", } export enum Maturity { ALPHA = "ALPHA", BETA = "BETA", IA = "IA", GA = "GA", } export enum Format { EMAIL = "EMAIL", HOSTNAME = "HOSTNAME", IPV4 = "IPV4", IPV6 = "IPV6", URI = "URI", PHONE = "PHONE", CREDIT_CARD = "CREDIT_CARD", GUID = "GUID", COUNTRY = "COUNTRY", LANGUAGE = "LANGUAGE", DECIMAL_VALUE = "DECIMAL_VALUE", CURRENCY = "CURRENCY", } } export namespace common { export interface Query { filter?: (any | null); sort?: (wrapper.wix.common.Sorting[] | null); paging?: (wrapper.wix.common.Paging | null); fields?: (string[] | null); fieldsets?: (string[] | null); } export interface Paging { limit?: (number | null); offset?: (number | null); } export interface CursorPaging { limit?: (number | null); cursor?: (string | null); } export interface Sorting { fieldName?: (string | null); order?: (wrapper.wix.common.SortOrder | null); } export enum SortOrder { ASC = "ASC", DESC = "DESC", } 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); taxInfo?: (wrapper.wix.common.TaxInfo | null); vatId?: (wrapper.wix.common.VatId | null); } export interface VatId { id?: (string | null); type?: (wrapper.wix.common.VatType | null); } export enum VatType { UNSPECIFIED = "UNSPECIFIED", CPF = "CPF", CNPJ = "CNPJ", } export interface TaxInfo { id?: (string | null); type?: (string | null); } 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 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 = wrapper;