network.cosmik.collection

cosmik.network

Documentation

A record representing a collection of cards.

main record

A record representing a collection of cards.

Record Key tid Timestamp-based ID

Properties

accessType string Required

Access control for the collection

Known values: OPEN, CLOSED
collaborators array of string Optional

List of collaborator DIDs who can add cards to closed collections

createdAt string datetime Optional

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

description string Optional

Description of the collection

maxLength: 500 bytes
name string Required

Name of the collection

maxLength: 100 bytes
updatedAt string datetime Optional

Timestamp when this collection was last updated.

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "name",
      "accessType"
    ],
    "properties": {
      "name": {
        "type": "string",
        "maxLength": 100,
        "description": "Name of the collection"
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when this collection was created (usually set by PDS)."
      },
      "updatedAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when this collection was last updated."
      },
      "accessType": {
        "type": "string",
        "description": "Access control for the collection",
        "knownValues": [
          "OPEN",
          "CLOSED"
        ]
      },
      "description": {
        "type": "string",
        "maxLength": 500,
        "description": "Description of the collection"
      },
      "collaborators": {
        "type": "array",
        "items": {
          "type": "string",
          "description": "DID of a collaborator"
        },
        "description": "List of collaborator DIDs who can add cards to closed collections"
      }
    }
  },
  "description": "A record representing a collection of cards."
}

Lexicon Garden

@