# network.cosmik.connection

> Published by [cosmik.network](https://lexicon.garden/identity/did:plc:b2p6rujcgpenbtcjposmjuc3)

✓ This is the authoritative definition for this NSID.

## Description

A record representing a connection between two entities (URLs or cards).

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:b2p6rujcgpenbtcjposmjuc3/network.cosmik.connection)
- [Documentation](https://lexicon.garden/lexicon/did:plc:b2p6rujcgpenbtcjposmjuc3/network.cosmik.connection/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:b2p6rujcgpenbtcjposmjuc3/network.cosmik.connection/examples)

## Definitions

### `network.cosmik.connection`

**Type**: `record`

A connection linking a source to a target, with optional type and note.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `note` | `string` | No | Optional note about the connection |
| `source` | `string` | Yes | Source entity (URL string or AT URI) |
| `target` | `string` | Yes | Target entity (URL string or AT URI) |
| `createdAt` | `string` (datetime) | No | Timestamp when this connection was created. |
| `updatedAt` | `string` (datetime) | No | Timestamp when this connection was last updated. |
| `connectionType` | `string` | No | Optional type of connection |

## Raw Schema

```json
{
  "id": "network.cosmik.connection",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "source",
          "target"
        ],
        "properties": {
          "note": {
            "type": "string",
            "maxLength": 1000,
            "description": "Optional note about the connection"
          },
          "source": {
            "type": "string",
            "description": "Source entity (URL string or AT URI)"
          },
          "target": {
            "type": "string",
            "description": "Target entity (URL string or AT URI)"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when this connection was created."
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when this connection was last updated."
          },
          "connectionType": {
            "type": "string",
            "description": "Optional type of connection"
          }
        }
      },
      "description": "A connection linking a source to a target, with optional type and note."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "A record representing a connection between two entities (URLs or cards)."
}
```
