# app.iriai.proto.defs

> Published by [publisher.iriai.app](https://lexicon.garden/identity/did:plc:s4il46nsgas66jl7tyh6zrec)

✓ This is the authoritative definition for this NSID.

## Description

Shared PlaceProto definitions: the complete event view and its version metadata.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:s4il46nsgas66jl7tyh6zrec/app.iriai.proto.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:s4il46nsgas66jl7tyh6zrec/app.iriai.proto.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:s4il46nsgas66jl7tyh6zrec/app.iriai.proto.defs/examples)

## Definitions

### `app.iriai.proto.defs#eventVersion`

**Type**: `object`

Versions of the two records that make up a PlaceProto event.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `eventCid` | `string` (cid) | Yes | CID of the community event record. |
| `sidecarCid` | `string` (cid) | Yes | CID of the PlaceProto event sidecar record. |

### `app.iriai.proto.defs#eventView`

**Type**: `object`

A complete PlaceProto event: the sidecar's URI, the community event it references, that event's current record value and the sidecar's location.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `event` | `unknown` | Yes | The complete current community.lexicon.calendar.event record value, including its $type. |
| `eventUri` | `string` (at-uri) | Yes | AT-URI of the community event the sidecar references. |
| `location` | `union` | Yes | The sidecar's location. |
| `uri` | `string` (at-uri) | Yes | AT-URI of the PlaceProto event sidecar. |
| `version` | `ref` → `#eventVersion` | No | Record versions, present when the view is read for editing. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "eventVersion": {
      "description": "Versions of the two records that make up a PlaceProto event.",
      "properties": {
        "eventCid": {
          "description": "CID of the community event record.",
          "format": "cid",
          "type": "string"
        },
        "sidecarCid": {
          "description": "CID of the PlaceProto event sidecar record.",
          "format": "cid",
          "type": "string"
        }
      },
      "required": [
        "eventCid",
        "sidecarCid"
      ],
      "type": "object"
    },
    "eventView": {
      "description": "A complete PlaceProto event: the sidecar's URI, the community event it references, that event's current record value and the sidecar's location.",
      "properties": {
        "event": {
          "description": "The complete current community.lexicon.calendar.event record value, including its $type.",
          "type": "unknown"
        },
        "eventUri": {
          "description": "AT-URI of the community event the sidecar references.",
          "format": "at-uri",
          "type": "string"
        },
        "location": {
          "closed": false,
          "description": "The sidecar's location.",
          "refs": [
            "community.lexicon.location.geo",
            "community.lexicon.location.address",
            "community.lexicon.location.fsq",
            "community.lexicon.location.hthree"
          ],
          "type": "union"
        },
        "uri": {
          "description": "AT-URI of the PlaceProto event sidecar.",
          "format": "at-uri",
          "type": "string"
        },
        "version": {
          "description": "Record versions, present when the view is read for editing.",
          "ref": "#eventVersion",
          "type": "ref"
        }
      },
      "required": [
        "uri",
        "eventUri",
        "event",
        "location"
      ],
      "type": "object"
    }
  },
  "description": "Shared PlaceProto definitions: the complete event view and its version metadata.",
  "id": "app.iriai.proto.defs",
  "lexicon": 1
}
```
