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

Lexicon Garden

@