org.cairnsproto.draft.source
A content-addressed input. Anyone may publish one; records with the same hash name the same source.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | draft.cairnsproto.org |
| Indexed |
Checks
Valid Lint pass{
"$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
}