{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Who a feature flag is on for, keyed by the flag's key. Any gate that matches turns it on. Written only by the root account into the staff space.",
      "key": "any",
      "record": {
        "properties": {
          "dids": {
            "description": "Accounts it's on for.",
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 1000,
            "type": "array"
          },
          "enabled": {
            "description": "False turns it off for everyone and keeps the gates below for when it's back on. Missing means true.",
            "type": "boolean"
          },
          "everyone": {
            "description": "On for every visitor, signed in or not.",
            "type": "boolean"
          },
          "groups": {
            "description": "Record keys of the computer.localnetwork.staff.group records it's on for.",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 100,
            "type": "array"
          },
          "key": {
            "maxLength": 64,
            "type": "string"
          },
          "percentage": {
            "description": "On for this share of signed-in accounts. An account stays in as the share grows.",
            "maximum": 100,
            "minimum": 0,
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "updatedBy": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "key",
          "everyone",
          "percentage",
          "groups",
          "dids",
          "updatedBy",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.localnetwork.staff.flag",
  "lexicon": 1
}
