# computer.localnetwork.staff.flag

> 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.

- Kind: record
- Record key: any
- Authority: staff.localnetwork.computer
- Lexicon: 1
- Published by [localnetwork.computer](https://lexicon.garden/identity/did:plc:d42l64gsczg6qh2vo243xv5l), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.staff.flag)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.staff.flag/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.staff.flag/analytics)

## Record (`computer.localnetwork.staff.flag`)

Type: record · key any

### Properties

- `dids` (array, required): Accounts it's on for.
  - Constraints: maxLength: 1000
  - `items` (string · did)
- `enabled` (boolean): False turns it off for everyone and keeps the gates below for when it's back on. Missing means true.
- `everyone` (boolean, required): On for every visitor, signed in or not.
- `groups` (array, required): Record keys of the computer.localnetwork.staff.group records it's on for.
  - Constraints: maxLength: 100
  - `items` (string)
    - Constraints: maxLength: 64
- `key` (string, required)
  - Constraints: maxLength: 64
- `percentage` (integer, required): On for this share of signed-in accounts. An account stays in as the share grows.
  - Constraints: minimum: 0, maximum: 100
- `updatedAt` (string · datetime, required)
- `updatedBy` (string · did, required)

## Schema

```json
{
  "$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
}
```
