# pub.techne.draft.collectiveV2

> A collective's descriptor record, replacing `pub.techne.draft.collective` (lexicon constitution, v2 audit, "Where something is"): `locations` takes the place of the single `location`, and the deprecated `sceneType` is gone. The collective's identity is its DID; this record describes it. A collectiveV2 and the collective descriptor it replaces are linked by a `pub.techne.draft.sameAs` record. Its homes in the placement manifest are declared `unbuilt` until its writer lands; they will be `collective`'s.

- Kind: record
- Record key: literal:self
- Authority: draft.techne.pub
- Lexicon: 1
- Published by [lexicons.techne.town](https://lexicon.garden/identity/did:plc:cbtfheqpi4g6vlrha4tpoh53), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.collectiveV2)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.collectiveV2/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.collectiveV2/analytics)

## Record (`pub.techne.draft.collectiveV2`)

Type: record · key literal:self

### Properties

- `avatar` (blob)
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg
- `collectiveType` (string): Free-form collective type/category label. The value "beacon.circle" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder.
  - Constraints: maxLength: 64
- `createdAt` (string · datetime, required)
- `description` (string): A free-form description of the collective.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `emoji` (string): Optional: one emoji (one grapheme cluster), the collective's mark. A client shows the avatar if there is one, else this emoji, else the first letter of the name. No color is stored; a client may derive one from the collective's DID.
  - Constraints: maxLength: 64, maxGraphemes: 1
- `locations` (array): Where the collective is based: a point, an H3 cell, an address or a place record (lexicon naming register). Its query document reads the entries as `sites`.
  - Constraints: maxLength: 16
  - `items` (union)
    - One of: `community.lexicon.location.geo`, `community.lexicon.location.hthree`, `community.lexicon.location.address`, `com.atproto.repo.strongRef`, `pub.techne.draft.locationEntry`
- `name` (string, required): The display name of the collective.
  - Constraints: maxLength: 640, maxGraphemes: 64

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "literal:self",
      "record": {
        "properties": {
          "avatar": {
            "accept": [
              "image/png",
              "image/jpeg"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "collectiveType": {
            "description": "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder.",
            "maxLength": 64,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "A free-form description of the collective.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "emoji": {
            "description": "Optional: one emoji (one grapheme cluster), the collective's mark. A client shows the avatar if there is one, else this emoji, else the first letter of the name. No color is stored; a client may derive one from the collective's DID.",
            "maxGraphemes": 1,
            "maxLength": 64,
            "type": "string"
          },
          "locations": {
            "description": "Where the collective is based: a point, an H3 cell, an address or a place record (lexicon naming register). Its query document reads the entries as `sites`.",
            "items": {
              "refs": [
                "community.lexicon.location.geo",
                "community.lexicon.location.hthree",
                "community.lexicon.location.address",
                "com.atproto.repo.strongRef",
                "pub.techne.draft.locationEntry"
              ],
              "type": "union"
            },
            "maxLength": 16,
            "type": "array"
          },
          "name": {
            "description": "The display name of the collective.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          }
        },
        "required": [
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A collective's descriptor record, replacing `pub.techne.draft.collective` (lexicon constitution, v2 audit, \"Where something is\"): `locations` takes the place of the single `location`, and the deprecated `sceneType` is gone. The collective's identity is its DID; this record describes it. A collectiveV2 and the collective descriptor it replaces are linked by a `pub.techne.draft.sameAs` record. Its homes in the placement manifest are declared `unbuilt` until its writer lands; they will be `collective`'s.",
  "id": "pub.techne.draft.collectiveV2",
  "lexicon": 1
}
```
