# world.treeline.companion.profile

> Profile for a trail or running animal companion (e.g., dog, horse, cat, pack animal) on Treeline.

- Kind: record
- Record key: tid
- Authority: companion.treeline.world
- Lexicon: 1
- Published by [treeline.world](https://lexicon.garden/identity/did:plc:sjejpugpajgvxweilujzjcmq), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:sjejpugpajgvxweilujzjcmq/world.treeline.companion.profile)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:sjejpugpajgvxweilujzjcmq/world.treeline.companion.profile/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:sjejpugpajgvxweilujzjcmq/world.treeline.companion.profile/analytics)

## Record (`world.treeline.companion.profile`)

Type: record · key tid

### Properties

- `accountDid` (string · did): Optional dedicated ATProto/Bluesky account DID belonging to the companion.
- `avatar` (blob): Companion portrait avatar image. Clients must strip all EXIF metadata from the image blob before upload.
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg, image/webp
- `bio` (string): Short bio, trail temperament, or notes about the companion.
  - Constraints: maxLength: 5000, maxGraphemes: 500
- `birthDate` (string · datetime): Companion birth date or approximate birth timestamp (ISO 8601 UTC).
- `breed` (string): Optional breed or mix description.
  - Constraints: maxLength: 1000, maxGraphemes: 100
- `coHandlers` (array): DIDs of co-handlers authorized to tag this companion on their own activities.
  - Constraints: maxLength: 20
  - `items` (string · did)
- `createdAt` (string · datetime, required): Record creation timestamp (ISO 8601 UTC).
- `defaultRole` (string): Default participation role when tagging this companion on new activities.
  - Constraints: maxLength: 64, knownValues: trail | canicross | bikejoring | skijoring | sled | riding | pack | carried | other
- `firstAdventureDate` (string · datetime): Date of the companion's first logged trail adventure (ISO 8601 UTC).
- `initialDistanceMeters` (integer): Prior lifetime distance in meters logged before tracking on Treeline.
  - Constraints: minimum: 0, default: 0
- `labels` (union): Optional self-label values applied by the author.
  - One of: `com.atproto.label.defs#selfLabels`
- `langs` (array): Optional human languages of this record's text (name, breed, bio) as BCP-47 tags.
  - Constraints: maxLength: 3
  - `items` (string · language)
- `name` (string, required): Display name of the companion.
  - Constraints: maxLength: 800, maxGraphemes: 80
- `showOnLeaderboards` (boolean): Whether activities with this companion may appear on companion leaderboards.
  - Constraints: default: true
- `sizeClass` (string): Approximate size bracket of the companion.
  - Constraints: maxLength: 32, knownValues: toy | small | medium | large | giant
- `species` (string, required): Animal species of the companion.
  - Constraints: maxLength: 64, knownValues: dog | horse | cat | goat | llama | burro | other
- `status` (string): Lifecycle status of the companion.
  - Constraints: maxLength: 32, default: "active", knownValues: active | retired | memorial

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Profile for a trail or running animal companion (e.g., dog, horse, cat, pack animal) on Treeline.",
      "key": "tid",
      "record": {
        "properties": {
          "accountDid": {
            "description": "Optional dedicated ATProto/Bluesky account DID belonging to the companion.",
            "format": "did",
            "type": "string"
          },
          "avatar": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "description": "Companion portrait avatar image. Clients must strip all EXIF metadata from the image blob before upload.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "bio": {
            "description": "Short bio, trail temperament, or notes about the companion.",
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "birthDate": {
            "description": "Companion birth date or approximate birth timestamp (ISO 8601 UTC).",
            "format": "datetime",
            "type": "string"
          },
          "breed": {
            "description": "Optional breed or mix description.",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "coHandlers": {
            "description": "DIDs of co-handlers authorized to tag this companion on their own activities.",
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "createdAt": {
            "description": "Record creation timestamp (ISO 8601 UTC).",
            "format": "datetime",
            "type": "string"
          },
          "defaultRole": {
            "description": "Default participation role when tagging this companion on new activities.",
            "knownValues": [
              "trail",
              "canicross",
              "bikejoring",
              "skijoring",
              "sled",
              "riding",
              "pack",
              "carried",
              "other"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "firstAdventureDate": {
            "description": "Date of the companion's first logged trail adventure (ISO 8601 UTC).",
            "format": "datetime",
            "type": "string"
          },
          "initialDistanceMeters": {
            "default": 0,
            "description": "Prior lifetime distance in meters logged before tracking on Treeline.",
            "minimum": 0,
            "type": "integer"
          },
          "labels": {
            "description": "Optional self-label values applied by the author.",
            "refs": [
              "com.atproto.label.defs#selfLabels"
            ],
            "type": "union"
          },
          "langs": {
            "description": "Optional human languages of this record's text (name, breed, bio) as BCP-47 tags.",
            "items": {
              "format": "language",
              "type": "string"
            },
            "maxLength": 3,
            "type": "array"
          },
          "name": {
            "description": "Display name of the companion.",
            "maxGraphemes": 80,
            "maxLength": 800,
            "type": "string"
          },
          "showOnLeaderboards": {
            "default": true,
            "description": "Whether activities with this companion may appear on companion leaderboards.",
            "type": "boolean"
          },
          "sizeClass": {
            "description": "Approximate size bracket of the companion.",
            "knownValues": [
              "toy",
              "small",
              "medium",
              "large",
              "giant"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "species": {
            "description": "Animal species of the companion.",
            "knownValues": [
              "dog",
              "horse",
              "cat",
              "goat",
              "llama",
              "burro",
              "other"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "status": {
            "default": "active",
            "description": "Lifecycle status of the companion.",
            "knownValues": [
              "active",
              "retired",
              "memorial"
            ],
            "maxLength": 32,
            "type": "string"
          }
        },
        "required": [
          "name",
          "species",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "world.treeline.companion.profile",
  "lexicon": 1
}
```
