syntax = "proto3";

package com.wixpress.metasite.event.api;

import "wix/api/validations.proto";

message Asset {
    string app_def_id = 1 [(wix.api.maxLength) = 36]; // An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
    string instance_id = 2 [(wix.api.maxLength) = 200]; // An instance id. For legacy reasons may be UUID or a string.
    State state = 3; // An application state.

    enum State {
        UNKNOWN = 0;
        ENABLED = 1;
        DISABLED = 2;
        PENDING = 3;
        DEMO = 4;
    }
}
