# app.brightblur.face.stagedShares

> A share set staged by the photographer, each share wrapped only to its own manager. Deleted once every manager has adopted. The record key is the entity id in hex.

- Kind: record
- Record key: any
- Authority: face.brightblur.app
- Lexicon: 1
- Published by [joeinn.es](https://lexicon.garden/identity/did:plc:me4kozmcrc74z2wgkvqvkbfd), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:me4kozmcrc74z2wgkvqvkbfd/app.brightblur.face.stagedShares)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:me4kozmcrc74z2wgkvqvkbfd/app.brightblur.face.stagedShares/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:me4kozmcrc74z2wgkvqvkbfd/app.brightblur.face.stagedShares/analytics)

## Record (`app.brightblur.face.stagedShares`)

Type: record · key any

### Properties

- `faces` (array, required)
  - Constraints: minLength: 1, maxLength: 2
  - `items` (ref)
    - Reference: `#stagedFace`
- `photographer` (string · did): Who took the photo, when the stager is not the photographer: a manager re-issuing shares to a new manager list (decision 9). Adopters honour it only from a current manager, and wrap the photographer's copy of each share to them.
- `photographerKey` (bytes): The whole slice key wrapped to the photographer, so they see their own photo's faces before the managers adopt and can re-stage a face a departed manager stranded. Deleted with the staged set.
  - Constraints: minLength: 1, maxLength: 1280
- `previews` (array): The whole slice key wrapped to each manager personally, so a manager who approves every tag can see the face before deciding. Deleted with the staged set.
  - Constraints: maxLength: 128
  - `items` (ref)
    - Reference: `#previewWrap`
- `sliceBinding` (bytes, required): The slice binding: entity id (16) ‖ payload context (16) ‖ SHA-256 of the plaintext base (32).
  - Constraints: minLength: 64, maxLength: 64

## #previewWrap (`app.brightblur.face.stagedShares#previewWrap`)

Type: object

### Properties

- `managerId` (string · did, required)
- `profileId` (bytes, required)
  - Constraints: minLength: 32, maxLength: 32
- `wrap` (bytes, required)
  - Constraints: minLength: 1, maxLength: 1280

## #stagedFace (`app.brightblur.face.stagedShares#stagedFace`)

Type: object

### Properties

- `generation` (integer, required)
  - Constraints: minimum: 0, maximum: 4294967295
- `profileId` (bytes, required): The profile's id: the SHA-256 of its generation-0 manager list.
  - Constraints: minLength: 32, maxLength: 32
- `shares` (array, required)
  - Constraints: minLength: 1, maxLength: 64
  - `items` (ref)
    - Reference: `#stagedShare`

## #stagedShare (`app.brightblur.face.stagedShares#stagedShare`)

Type: object

### Properties

- `managerId` (string · did, required)
- `transportWrap` (bytes, required)
  - Constraints: minLength: 1, maxLength: 1280

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A share set staged by the photographer, each share wrapped only to its own manager. Deleted once every manager has adopted. The record key is the entity id in hex.",
      "key": "any",
      "record": {
        "properties": {
          "faces": {
            "items": {
              "ref": "#stagedFace",
              "type": "ref"
            },
            "maxLength": 2,
            "minLength": 1,
            "type": "array"
          },
          "photographer": {
            "description": "Who took the photo, when the stager is not the photographer: a manager re-issuing shares to a new manager list (decision 9). Adopters honour it only from a current manager, and wrap the photographer's copy of each share to them.",
            "format": "did",
            "type": "string"
          },
          "photographerKey": {
            "description": "The whole slice key wrapped to the photographer, so they see their own photo's faces before the managers adopt and can re-stage a face a departed manager stranded. Deleted with the staged set.",
            "maxLength": 1280,
            "minLength": 1,
            "type": "bytes"
          },
          "previews": {
            "description": "The whole slice key wrapped to each manager personally, so a manager who approves every tag can see the face before deciding. Deleted with the staged set.",
            "items": {
              "ref": "#previewWrap",
              "type": "ref"
            },
            "maxLength": 128,
            "type": "array"
          },
          "sliceBinding": {
            "description": "The slice binding: entity id (16) ‖ payload context (16) ‖ SHA-256 of the plaintext base (32).",
            "maxLength": 64,
            "minLength": 64,
            "type": "bytes"
          }
        },
        "required": [
          "sliceBinding",
          "faces"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "previewWrap": {
      "properties": {
        "managerId": {
          "format": "did",
          "type": "string"
        },
        "profileId": {
          "maxLength": 32,
          "minLength": 32,
          "type": "bytes"
        },
        "wrap": {
          "maxLength": 1280,
          "minLength": 1,
          "type": "bytes"
        }
      },
      "required": [
        "profileId",
        "managerId",
        "wrap"
      ],
      "type": "object"
    },
    "stagedFace": {
      "properties": {
        "generation": {
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer"
        },
        "profileId": {
          "description": "The profile's id: the SHA-256 of its generation-0 manager list.",
          "maxLength": 32,
          "minLength": 32,
          "type": "bytes"
        },
        "shares": {
          "items": {
            "ref": "#stagedShare",
            "type": "ref"
          },
          "maxLength": 64,
          "minLength": 1,
          "type": "array"
        }
      },
      "required": [
        "profileId",
        "generation",
        "shares"
      ],
      "type": "object"
    },
    "stagedShare": {
      "properties": {
        "managerId": {
          "format": "did",
          "type": "string"
        },
        "transportWrap": {
          "maxLength": 1280,
          "minLength": 1,
          "type": "bytes"
        }
      },
      "required": [
        "managerId",
        "transportWrap"
      ],
      "type": "object"
    }
  },
  "id": "app.brightblur.face.stagedShares",
  "lexicon": 1
}
```
