social.dracome.library.acquisition

dracome.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A record of how an actor came to own a specific book edition (purchased, gift, review copy, etc.). Multiple acquisitions per edition are allowed; like library.marker, library.review, and library.state, this record uses key: \"tid\", and its rkey is an opaque identity that never changes.",
      "key": "tid",
      "record": {
        "properties": {
          "acquisitionType": {
            "description": "How the actor came to own this edition.",
            "ref": "social.dracome.library.defs#acquisitionType",
            "type": "ref"
          },
          "catalogSnapshot": {
            "description": "Point-in-time work/edition metadata capture, refreshed from current catalog data at write time.",
            "ref": "social.dracome.work.defs#catalogSnapshot",
            "type": "ref"
          },
          "catalogTarget": {
            "description": "The work, and edition, this acquisition is about.",
            "ref": "social.dracome.work.defs#catalogTarget",
            "type": "ref"
          },
          "createdAt": {
            "description": "Canonical UTC instant serialized as ISO 8601 with a trailing Z suffix.",
            "format": "datetime",
            "type": "string"
          },
          "currencyCode": {
            "description": "ISO 4217 currency code (e.g. \"USD\", \"EUR\", \"GBP\").",
            "maxLength": 3,
            "type": "string"
          },
          "invoiceAvailable": {
            "description": "Yes/No/unset - field absence means \"unset\". Must be true when invoiceNumber is set.",
            "type": "boolean"
          },
          "invoiceNumber": {
            "description": "Invoice or receipt number, for tax/accounting reference. Implies invoiceAvailable: true.",
            "maxGraphemes": 128,
            "maxLength": 512,
            "type": "string"
          },
          "notes": {
            "description": "User-visible free-text notes.",
            "maxGraphemes": 2000,
            "maxLength": 8000,
            "type": "string"
          },
          "priceMinorUnits": {
            "description": "Price in the currency's minor units (e.g. cents for EUR/USD), not a float. Zero is valid and meaningful (distinguishes a recorded free copy from no price recorded, which is this field absent).",
            "minimum": 0,
            "type": "integer"
          },
          "receivedDate": {
            "description": "Canonical UTC instant for the calendar day the book was received, serialized as ISO 8601 with a trailing Z suffix. Writers store midnight UTC of that day; the time-of-day component is insignificant. Same convention as library.defs#progressLogEntry.date.",
            "format": "datetime",
            "type": "string"
          },
          "receivedFrom": {
            "description": "Free-text source/supplier, e.g. \"Piper Verlag\", \"Amazon\", \"Sarah\".",
            "maxGraphemes": 256,
            "maxLength": 1024,
            "type": "string"
          },
          "supplier": {
            "description": "Supplier/vendor name, distinct from receivedFrom for detailed accounting use cases.",
            "maxGraphemes": 256,
            "maxLength": 1024,
            "type": "string"
          },
          "updatedAt": {
            "description": "Canonical UTC instant serialized as ISO 8601 with a trailing Z suffix.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "catalogTarget",
          "catalogSnapshot",
          "acquisitionType",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.dracome.library.acquisition",
  "lexicon": 1
}

Validate Record

Validate a record against social.dracome.library.acquisition

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:66dyrt2bmghwlmdteyizs5l3
CID
bafyreife244via4nvsysx3d2dowqdn54nxo74toyrk4fr3enxb2ixt7c5a
Indexed At
2026-10-14 19:42 UTC
AT-URI
at://did:plc:66dyrt2bmghwlmdteyizs5l3/com.atproto.lexicon.schema/social.dracome.library.acquisition

Referenced Schemas (3)

Lexicon Garden

@