export interface MarketListing {
    /**
     * market listing id
     * @format GUID
     */
    id?: string | null;
    /**
     * app id the listing belongs to.
     * @format GUID
     */
    appId?: string;
    /**
     * language of the listing.
     * @format LANGUAGE
     */
    languageCode?: string;
    /** basic info about the app. */
    basicInfo?: BasicInfo;
    /** map of all marketing assets. */
    assetsMap?: Record<string, Assets>;
    /** app's contact info. */
    contactInfo?: ContactInfo;
    /** requirements for the app's installation. */
    installationRequirement?: InstallationRequirement;
    /** market listing revision. */
    revision?: string | null;
    /**
     * date the listing was created.
     * @readonly
     */
    createdDate?: Date | null;
    /**
     * date the listing was updated.
     * @readonly
     */
    updatedDate?: Date | null;
    /** status of the listing. */
    status?: Status;
    /** app classification (kind of the app) */
    classification?: Classification;
    /** app's pricing data */
    pricingData?: PricingData;
}
export interface BasicInfo {
    name?: string | null;
    teaser?: string | null;
    longDescription?: string | null;
    benefits?: Benefits[];
    searchKeywords?: string[];
    /** @format WEB_URL */
    demoUrl?: string | null;
    categories?: string[];
}
export interface Benefits {
    title?: string;
}
export interface Assets {
    assets?: Asset[];
}
export interface Asset {
    /** @format WEB_URL */
    url?: string;
    mediaType?: MediaType;
}
export declare enum MediaType {
    VIDEO = "VIDEO",
    IMAGE = "IMAGE",
    YOUTUBE = "YOUTUBE"
}
export interface ContactInfo {
    /** @format WEB_URL */
    website?: string | null;
    developerMetaSiteId?: string | null;
    /** @format EMAIL */
    supportEmail?: string | null;
    /** @format WEB_URL */
    privacyPolicyUrl?: string | null;
    /** @format WEB_URL */
    termsOfUseUrl?: string | null;
}
export interface InstallationRequirement {
    /** the vertical appIds needed for this app, for example Store */
    requiredApps?: RequiredApp[];
    /** @format COUNTRY */
    includeCountries?: string[];
    /** @format COUNTRY */
    excludeCountries?: string[];
    /**
     * language options
     * @format LANGUAGE
     */
    includeLanguages?: string[];
    /** @format LANGUAGE */
    excludeLanguages?: string[];
    allowLanguageCustomization?: boolean;
    /** is Wix Premium required for this app to be installed */
    requiredWixPremium?: boolean;
}
export interface RequiredApp {
    /** @format GUID */
    id?: string;
    slug?: string;
}
/**
 * status of the listing, DRAFT for the current market listing in the Dev Center,
 * and PUBLISHED for the published market listing in the App Market.
 */
export declare enum Status {
    /** current market listing in the Dev Center. */
    DRAFT = "DRAFT",
    /** published market listing in the App Market. */
    PUBLISHED = "PUBLISHED",
    /** approved market listing in the App Market. */
    APPROVED = "APPROVED"
}
export declare enum Classification {
    /** A Regular app entity - used to installed on sites. */
    SITE_APP = "SITE_APP",
    /** represents an account API KEY to access wix services. */
    API_KEY = "API_KEY",
    /** represents an app developed for Velo editor. */
    VELO_APP = "VELO_APP",
    /** Private App that should be available only for the owner account / sub-accounts. */
    PRIVATE_APP = "PRIVATE_APP",
    /** represents an External Headless (3rd party) App that has access to Wix Public Services */
    HEADLESS = "HEADLESS",
    /** represents an app specific to a Meta Site that stores data about Activated Functions in that Meta Site */
    FUNCTION_ACTIVATION_APP = "FUNCTION_ACTIVATION_APP"
}
export interface PricingData {
    /** indicates if there is external PP */
    externalPricingPageUrl?: string | null;
    /** indicates if there is external checkout */
    externalCheckout?: boolean;
    /** app's free trial days */
    freeTrialDays?: number | null;
    /**
     * wix's free trial days
     * @max 30
     */
    internalFreeTrialDays?: number | null;
}
export interface CreateMarketListingRequest {
    /** the market listing to create */
    marketListing: MarketListing;
}
export interface CreateMarketListingResponse {
    /** the created market listing */
    marketListing?: MarketListing;
}
export interface GetMarketListingRequest {
    /**
     * the id of the market listing to get
     * @format GUID
     */
    id: string;
}
export interface GetMarketListingResponse {
    /** the requested market listing */
    marketListing?: MarketListing;
}
export interface UpdateMarketListingRequest {
    /** the update listing to update */
    marketListing: MarketListing;
    /**
     * the mask to apply the update to
     * @internal
     */
    mask?: string[];
}
export interface UpdateMarketListingResponse {
    /** the updated market listing */
    marketListing?: MarketListing;
}
/** payload for kafka event to update new app market listing */
export interface OldListingChanged {
    appId?: string;
    marketListing?: ApiMarketListing;
    /** @format LANGUAGE */
    languageCode?: string;
    name?: string | null;
    iconUrl?: string | null;
}
export interface ApiMarketListing {
    /** marketing materials */
    basicInfo?: ApiBasicInfo;
    /** map of all marketing assets */
    assetsMap?: Record<string, Assets>;
    contactInfo?: ApiContactInfo;
    trackingAndAnalytics?: Tracking;
    /**
     * the language code;
     * @format LANGUAGE
     */
    languageCode?: string;
    installationRequirement?: ApiInstallationRequirement;
}
export interface ApiBasicInfo {
    /**
     * the app id.
     * @format GUID
     */
    appId?: string;
    name?: string;
    teaser?: string | null;
    longDescription?: string | null;
    benefits?: ApiBenefits[];
    searchKeywords?: string[];
    /** @format URI */
    demoUrl?: string | null;
    categories?: string[];
}
export interface ApiBenefits {
    title?: string;
}
export interface ApiContactInfo {
    /** @format URI */
    website?: string | null;
    developerMetaSiteId?: string | null;
    /** @format EMAIL */
    supportEmail?: string | null;
    /** @format URI */
    privacyPolicyUrl?: string | null;
    /** @format URI */
    termsOfUseUrl?: string | null;
}
export interface Tracking {
    googleAnalyticsTrackingId?: string | null;
    googleConversionId?: string | null;
    adRolllAdvId?: string | null;
    adRolllPixId?: string | null;
}
export interface ApiInstallationRequirement {
    /** the vertical appIds needed for this app, for example Store */
    requiredApps?: ApiRequiredApp[];
    /** @format COUNTRY */
    includeCountries?: string[];
    /** @format COUNTRY */
    excludeCountries?: string[];
    /**
     * language options
     * @format LANGUAGE
     */
    includeLanguages?: string[];
    /** @format LANGUAGE */
    excludeLanguages?: string[];
    allowLanguageCustomization?: boolean;
}
export interface ApiRequiredApp {
    /** @format GUID */
    id?: string;
    slug?: string;
}
export interface Empty {
}
/** payload for kafka event for this version on app submit */
export interface AppVersionStateChanged extends AppVersionStateChangedStateOneOf {
    created?: AppVersionCreated;
    submitted?: AppVersionSubmitted;
    published?: AppVersionPublished;
    declined?: AppVersionDeclined;
    released?: AppVersionReleased;
    approved?: AppVersionApproved;
    draftChanged?: AppVersionDraftChanged;
    archived?: AppVersionArchived;
    /** @format GUID */
    appId?: string;
    /** @readonly */
    version?: string;
    previousState?: VersionStatus;
    /**
     * If defined, only a partial snapshot of the app draft was updated
     * @internal
     */
    partialVersionOptions?: PartialVersionOptions;
}
/** @oneof */
export interface AppVersionStateChangedStateOneOf {
    created?: AppVersionCreated;
    submitted?: AppVersionSubmitted;
    published?: AppVersionPublished;
    declined?: AppVersionDeclined;
    released?: AppVersionReleased;
    approved?: AppVersionApproved;
    draftChanged?: AppVersionDraftChanged;
    archived?: AppVersionArchived;
}
export interface AppVersionCreated {
}
export interface AppVersionSubmitted {
}
export interface AppVersionPublished {
}
export interface AppVersionDeclined {
}
export interface AppVersionReleased {
}
export interface AppVersionApproved {
}
export interface AppVersionDraftChanged {
}
export interface AppVersionArchived {
}
export declare enum VersionStatus {
    /** default, internal use status. do not use */
    NONE_STATUS = "NONE_STATUS",
    /** a version which was created in the dev center and has not started the approval process yet */
    DRAFT = "DRAFT",
    /** the version was submitted for review by the developer */
    SUBMITTED = "SUBMITTED",
    /** the version is being reviewed by the app market team in cactus */
    IN_REVIEW = "IN_REVIEW",
    /** our team approved the version */
    APPROVED = "APPROVED",
    /** this version is published - only one version can be published at any given time; if this app was already published, the previously published version's status is now ARCHIVED */
    PUBLISHED = "PUBLISHED",
    /** our team did not accept this version of the app */
    DECLINED = "DECLINED",
    /** the status for versions that are no longer relevant */
    ARCHIVED = "ARCHIVED",
    /** status for versions with no significant changes, e.g. for test app. for questions contact our team */
    HIDDEN = "HIDDEN",
    /** mark apps as RELEASED, without adding to the apps cache, and allow users to install */
    RELEASED = "RELEASED"
}
export interface PartialVersionOptions {
    /** Include dev center draft changes in the submitted data */
    includeDraftDevCenterData?: boolean;
    /** Include market listing draft data in the submitted data */
    includeDraftMarketListingData?: boolean;
    /** Include pricing info draft data in the submitted data */
    includeDraftPricingInfoData?: boolean;
}
export interface QueryMarketListingRequest {
    /** wql query */
    query: QueryV2;
}
export interface QueryV2 extends QueryV2PagingMethodOneOf {
    /** Paging options to limit and offset the number of items. */
    paging?: Paging;
    /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
    cursorPaging?: CursorPaging;
    /**
     * Filter object.
     *
     * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
     */
    filter?: Record<string, any> | null;
    /**
     * Sort object.
     *
     * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
     */
    sort?: Sorting[];
    /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
    fields?: string[];
    /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
    fieldsets?: string[];
}
/** @oneof */
export interface QueryV2PagingMethodOneOf {
    /** Paging options to limit and offset the number of items. */
    paging?: Paging;
    /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
    cursorPaging?: CursorPaging;
}
export interface Sorting {
    /**
     * Name of the field to sort by.
     * @maxLength 512
     */
    fieldName?: string;
    /** Sort order. */
    order?: SortOrder;
    /**
     * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
     * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
     *
     * If multiple filters are provided, they are combined with AND operator.
     *
     * Example:
     * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
     * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
     * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
     * @internal
     * @maxSize 10
     */
    selectItemsBy?: Record<string, any>[] | null;
}
export declare enum SortOrder {
    ASC = "ASC",
    DESC = "DESC"
}
export interface Paging {
    /** Number of items to load. */
    limit?: number | null;
    /** Number of items to skip in the current sort order. */
    offset?: number | null;
}
export interface CursorPaging {
    /**
     * Maximum number of items to return in the results.
     * @max 100
     */
    limit?: number | null;
    /**
     * Pointer to the next or previous page in the list of results.
     *
     * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
     * Not relevant for the first request.
     * @maxLength 16000
     */
    cursor?: string | null;
}
export interface QueryMarketListingResponse {
    /**
     * the queried market listings
     * @maxSize 100
     */
    marketListing?: MarketListing[];
    /** the query metadata */
    metadata?: PagingMetadataV2;
}
export interface PagingMetadataV2 {
    /** Number of items returned in the response. */
    count?: number | null;
    /** Offset that was requested. */
    offset?: number | null;
    /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
    total?: number | null;
    /** Flag that indicates the server failed to calculate the `total` field. */
    tooManyToCount?: boolean | null;
    /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
    cursors?: Cursors;
    /**
     * Indicates if there are more results after the current page.
     * If `true`, another page of results can be retrieved.
     * If `false`, this is the last page.
     * @internal
     */
    hasNext?: boolean | null;
}
export 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;
}
export 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 */
export interface DomainEventBodyOneOf {
    createdEvent?: EntityCreatedEvent;
    updatedEvent?: EntityUpdatedEvent;
    deletedEvent?: EntityDeletedEvent;
    actionEvent?: ActionEvent;
}
export 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;
    /**
     * WIP
     * @internal
     */
    additionalMetadataAsJson?: string | null;
}
export interface RestoreInfo {
    deletedDate?: Date | null;
}
export 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;
    /**
     * WIP - This property will hold both names and previous values of the updated fields of the entity.
     * For more details please see [adr](https://docs.google.com/document/d/1PdqsOM20Ph2HAkmx8zvUnzzk3Sekp3BR9h34wSvsRnI/edit#heading=h.phlw87mh2imx) or [issue](https://github.com/wix-private/nile-tracker/issues/363)
     * @internal
     */
    modifiedFields?: Record<string, any>;
    /**
     * WIP
     * @internal
     */
    additionalMetadataAsJson?: string | null;
}
export 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;
    /**
     * WIP
     * @internal
     */
    additionalMetadataAsJson?: string | null;
}
export interface ActionEvent {
    bodyAsJson?: string;
}
export interface PromoteRequest {
    /**
     * the id of the app
     * @format GUID
     */
    appId?: string;
    /** which status to promote from */
    from?: Status;
    /** which status to promote to */
    to?: Status;
}
export interface PromoteResponse {
    /**
     * id of the app
     * @format GUID
     */
    appId?: string;
    /** the new status of the app */
    status?: Status;
}
export interface CompareRequest {
    /**
     * the id of the app
     * @format GUID
     */
    appId?: string;
    /** which status to compare from */
    from?: Status;
    /** which status to compare to */
    to?: Status;
}
export interface CompareResponse {
    /** if equals */
    equals?: boolean;
}
export 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;
}
export 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?: WebhookIdentityType;
}
/** @oneof */
export 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;
}
export declare enum WebhookIdentityType {
    UNKNOWN = "UNKNOWN",
    ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
    MEMBER = "MEMBER",
    WIX_USER = "WIX_USER",
    APP = "APP"
}
