# app.atbuddy.interaction

> Published by [atbuddy.app](https://lexicon.garden/identity/did:plc:cjmftryiihdz5jafq77n6b2u)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cjmftryiihdz5jafq77n6b2u/app.atbuddy.interaction)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cjmftryiihdz5jafq77n6b2u/app.atbuddy.interaction/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cjmftryiihdz5jafq77n6b2u/app.atbuddy.interaction/examples)

## Definitions

### `app.atbuddy.interaction`

**Type**: `record`

A buddy interaction event. TID-keyed, many per account.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `item` | `string` | No |  |
| `type` | `string` | Yes | The kind of interaction. |
| `createdAt` | `string` (datetime) | Yes |  |
| `targetDid` | `string` (did) | No |  |

## Raw Schema

```json
{
  "id": "app.atbuddy.interaction",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "type",
          "createdAt"
        ],
        "properties": {
          "item": {
            "type": "string",
            "maxLength": 128
          },
          "type": {
            "type": "string",
            "description": "The kind of interaction.",
            "knownValues": [
              "pet",
              "feed",
              "gift",
              "greet",
              "battle"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "targetDid": {
            "type": "string",
            "format": "did"
          }
        }
      },
      "description": "A buddy interaction event. TID-keyed, many per account."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
