network.cosmik.collectionLink

cosmik.network

Documentation

A record representing the relationship between a card and a collection.

main record

A record representing the relationship between a card and a collection.

Record Key tid Timestamp-based ID

Properties

addedAt string datetime Required

Timestamp when the card was added to the collection.

addedBy string Required

DID of the user who added the card to the collection

createdAt string datetime Optional

Timestamp when this link record was created (usually set by PDS).

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "collection",
      "card",
      "addedBy",
      "addedAt"
    ],
    "properties": {
      "card": {
        "ref": "com.atproto.repo.strongRef",
        "type": "ref",
        "description": "Strong reference to the card record in the users library."
      },
      "addedAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when the card was added to the collection."
      },
      "addedBy": {
        "type": "string",
        "description": "DID of the user who added the card to the collection"
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when this link record was created (usually set by PDS)."
      },
      "collection": {
        "ref": "com.atproto.repo.strongRef",
        "type": "ref",
        "description": "Strong reference to the collection record."
      },
      "provenance": {
        "ref": "network.cosmik.defs#provenance",
        "type": "ref",
        "description": "Optional provenance information for this link."
      },
      "originalCard": {
        "ref": "com.atproto.repo.strongRef",
        "type": "ref",
        "description": "Strong reference to the original card record (may be in another library)."
      }
    }
  },
  "description": "A record representing the relationship between a card and a collection."
}

Lexicon Garden

@