# com.opendatingprotocol.listing

> A dating wish belonging to the author's profile. Keep it in a permissioned Space, never a public repository.

- Kind: record
- Record key: tid
- Authority: opendatingprotocol.com
- Lexicon: 1
- Published by [authority.pds.opendatingprotocol.com](https://lexicon.garden/identity/did:plc:d3dxmnets3bsqzyrkuja6alw), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d3dxmnets3bsqzyrkuja6alw/com.opendatingprotocol.listing)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d3dxmnets3bsqzyrkuja6alw/com.opendatingprotocol.listing/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d3dxmnets3bsqzyrkuja6alw/com.opendatingprotocol.listing/analytics)

## Record (`com.opendatingprotocol.listing`)

Type: record · key tid

### Properties

- `boundaries` (array)
  - `items` (ref)
    - Reference: `com.opendatingprotocol.defs#term`
- `city` (string): Optional city shared only with permitted readers.
  - Constraints: maxLength: 160
- `coupleMix` (array)
  - `items` (ref)
    - Reference: `com.opendatingprotocol.defs#term`
- `createdAt` (string · datetime)
- `createdBy` (string · uri): Optional client origin that created this listing, for example https://cherishly.love. Other clients must preserve it when editing.
- `example` (boolean): True only for a fictional demonstration listing that cannot receive real interactions.
- `game` (string)
  - Constraints: maxLength: 160
- `headline` (string)
  - Constraints: minLength: 1, maxLength: 160
- `meet` (array)
  - `items` (ref)
    - Reference: `com.opendatingprotocol.defs#term`
- `note` (string)
  - Constraints: maxLength: 800
- `openTo` (array)
  - `items` (ref)
    - Reference: `com.opendatingprotocol.defs#term`
- `otherVr` (string)
  - Constraints: maxLength: 160
- `profile` (string, required): Space record URI for the author's com.opendatingprotocol.profile/self record. Clients must verify its exact Space, author, collection and key.
  - Constraints: maxLength: 512
- `radiusKm` (integer)
  - Constraints: minimum: 1, maximum: 500
- `status` (string)
  - Constraints: minLength: 1, maxLength: 40, knownValues: on | off
- `timing` (ref)
  - Reference: `#timing`
- `where` (array)
  - `items` (ref)
    - Reference: `com.opendatingprotocol.defs#term`

## #timing (`com.opendatingprotocol.listing#timing`)

Type: object

Open until hidden, available now until a time, or available during a window. Unknown kinds are allowed for future clients.

### Properties

- `from` (string · datetime)
- `kind` (string, required)
  - Constraints: minLength: 1, maxLength: 40, knownValues: open | now | window
- `to` (string · datetime)
- `until` (string · datetime)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A dating wish belonging to the author's profile. Keep it in a permissioned Space, never a public repository.",
      "key": "tid",
      "record": {
        "properties": {
          "boundaries": {
            "items": {
              "ref": "com.opendatingprotocol.defs#term",
              "type": "ref"
            },
            "type": "array"
          },
          "city": {
            "description": "Optional city shared only with permitted readers.",
            "maxLength": 160,
            "type": "string"
          },
          "coupleMix": {
            "items": {
              "ref": "com.opendatingprotocol.defs#term",
              "type": "ref"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "createdBy": {
            "description": "Optional client origin that created this listing, for example https://cherishly.love. Other clients must preserve it when editing.",
            "format": "uri",
            "type": "string"
          },
          "example": {
            "description": "True only for a fictional demonstration listing that cannot receive real interactions.",
            "type": "boolean"
          },
          "game": {
            "maxLength": 160,
            "type": "string"
          },
          "headline": {
            "maxLength": 160,
            "minLength": 1,
            "type": "string"
          },
          "meet": {
            "items": {
              "ref": "com.opendatingprotocol.defs#term",
              "type": "ref"
            },
            "type": "array"
          },
          "note": {
            "maxLength": 800,
            "type": "string"
          },
          "openTo": {
            "items": {
              "ref": "com.opendatingprotocol.defs#term",
              "type": "ref"
            },
            "type": "array"
          },
          "otherVr": {
            "maxLength": 160,
            "type": "string"
          },
          "profile": {
            "description": "Space record URI for the author's com.opendatingprotocol.profile/self record. Clients must verify its exact Space, author, collection and key.",
            "maxLength": 512,
            "type": "string"
          },
          "radiusKm": {
            "maximum": 500,
            "minimum": 1,
            "type": "integer"
          },
          "status": {
            "knownValues": [
              "on",
              "off"
            ],
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "timing": {
            "ref": "#timing",
            "type": "ref"
          },
          "where": {
            "items": {
              "ref": "com.opendatingprotocol.defs#term",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "profile"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "timing": {
      "description": "Open until hidden, available now until a time, or available during a window. Unknown kinds are allowed for future clients.",
      "properties": {
        "from": {
          "format": "datetime",
          "type": "string"
        },
        "kind": {
          "knownValues": [
            "open",
            "now",
            "window"
          ],
          "maxLength": 40,
          "minLength": 1,
          "type": "string"
        },
        "to": {
          "format": "datetime",
          "type": "string"
        },
        "until": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    }
  },
  "description": "Draft portable dating listing. One account may write several listings for its profile.",
  "id": "com.opendatingprotocol.listing",
  "lexicon": 1
}
```
