org.cairnsproto.draft.source

A content-addressed input. Anyone may publish one; records with the same hash name the same source.

Repository @cairnsproto.org did:plc:np7ezqujtsry4bkogisaabul namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritydraft.cairnsproto.org
Indexed
cid bafyreicr4ncqpjyp5arrlneavwmwzg4lhnriosng4goheyzf53mnjytbpm

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "derivation": {
      "description": "This source is the output of running a transform record on another source.",
      "properties": {
        "hash": {
          "ref": "org.cairnsproto.draft.defs#hash",
          "type": "ref"
        },
        "transform": {
          "description": "The transform record that produced it.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "hash",
        "transform"
      ],
      "type": "object"
    },
    "gitState": {
      "properties": {
        "commit": {
          "description": "Full commit hash.",
          "maxLength": 64,
          "minLength": 40,
          "type": "string"
        },
        "repo": {
          "description": "Git URL.",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "repo",
        "commit"
      ],
      "type": "object"
    },
    "main": {
      "description": "A content-addressed input. Anyone may publish one; records with the same hash name the same source.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "derivedFrom": {
            "ref": "#derivation",
            "type": "ref"
          },
          "git": {
            "description": "A published state of an official repo. The hash alg is git-sha1 or git-sha256.",
            "ref": "#gitState",
            "type": "ref"
          },
          "hash": {
            "ref": "org.cairnsproto.draft.defs#hash",
            "type": "ref"
          },
          "license": {
            "description": "SPDX expression or URL: the source's own rights, which the project's output license must fit.",
            "maxLength": 512,
            "type": "string"
          },
          "mimeType": {
            "maxLength": 256,
            "type": "string"
          },
          "size": {
            "minimum": 0,
            "type": "integer"
          },
          "urls": {
            "description": "Where to fetch. The hash is the identity.",
            "items": {
              "format": "uri",
              "type": "string"
            },
            "maxLength": 32,
            "type": "array"
          }
        },
        "required": [
          "hash",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.source",
  "lexicon": 1
}