dev.knotless.release
Kept in the repository owner's account, keyed `<repo key>.<package hash>.<version hash>`, where each hash is the first 26 characters of the lowercase unpadded base32 SHA-256 of `package` or `version`, so a listing from the cursor `<repo key>/` walks one repository's releases, and from `<repo key>.<package hash>/` one package's. Created and never updated: creating it fails if that version was published, so a version's files never change. Deleting it unpublishes the version; to withdraw one that others may have pinned, a dev.knotless.releaseYank leaves it to read. Readers check every file against its `sha256`.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | knotless.dev |
| Commit rev | 3n2vn6i6jbtdy |
| Indexed |
Showing version bafyreidnegricjvl34dhdpqdmnm3lpycr77vbs3jap5cmojfoyeir57fri. Show the latest
Checks
Validlarge-stringdefs.cargo.properties.indexmaxLength is over 20 KB. Use a blob for content that large.large-stringdefs.npm.properties.manifestmaxLength is over 20 KB. Use a blob for content that large.large-stringdefs.swift.properties.metadatamaxLength is over 20 KB. Use a blob for content that large.large-stringdefs.swiftManifest.properties.contentmaxLength is over 20 KB. Use a blob for content that large.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"cargo": {
"description": "A release as a crate.",
"properties": {
"description": {
"description": "What the crate says it is.",
"maxGraphemes": 1000,
"maxLength": 10000,
"type": "string"
},
"index": {
"description": "Its line of Cargo's registry index, as JSON, but for `yanked`, which a reader adds from the dev.knotless.releaseYank of its key. Kept as Cargo's format has it, which is Cargo's to change, and passed on as it is, since an index's line never changes.",
"maxLength": 100000,
"type": "string"
}
},
"required": [
"index"
],
"type": "object"
},
"file": {
"description": "One file of a release.",
"properties": {
"name": {
"description": "Its name, as it is downloaded: letters, digits, `.`, `_`, `+` and `-`, not first a `.`.",
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"parts": {
"description": "The file, split over blobs in order, each no larger than its PDS takes.",
"items": {
"ref": "#part",
"type": "ref"
},
"minLength": 1,
"type": "array"
},
"sha256": {
"description": "The lowercase hex SHA-256 of the file.",
"maxLength": 64,
"minLength": 64,
"type": "string"
},
"size": {
"description": "Bytes in the file.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"name",
"size",
"sha256",
"parts"
],
"type": "object"
},
"main": {
"description": "Kept in the repository owner's account, keyed `<repo key>.<package hash>.<version hash>`, where each hash is the first 26 characters of the lowercase unpadded base32 SHA-256 of `package` or `version`, so a listing from the cursor `<repo key>/` walks one repository's releases, and from `<repo key>.<package hash>/` one package's. Created and never updated: creating it fails if that version was published, so a version's files never change. Deleting it unpublishes the version; to withdraw one that others may have pinned, a dev.knotless.releaseYank leaves it to read. Readers check every file against its `sha256`.",
"key": "any",
"record": {
"properties": {
"cargo": {
"description": "What Cargo's registry says of it, when it is a crate: its one file then is `<name>-<version>.crate`.",
"ref": "#cargo",
"type": "ref"
},
"check": {
"description": "The dev.knotless.check, in its runner's account, of the run that built and published it. A reader trusts it only from a runner the repository names, and only once it has passed at `commit`.",
"format": "at-uri",
"type": "string"
},
"commit": {
"description": "The hex object ID of the commit the files were built from.",
"maxLength": 64,
"minLength": 40,
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"files": {
"description": "What it publishes, by distinct names.",
"items": {
"ref": "#file",
"type": "ref"
},
"maxLength": 64,
"minLength": 1,
"type": "array"
},
"maven": {
"description": "What a Maven repository says of it, when it is a version of a Maven artifact: its files then are those of the version's directory, each `<artifact>-<version>` then an optional `-<classifier>` and its extension, and `package` is `<group>.<artifact>`.",
"ref": "#maven",
"type": "ref"
},
"notes": {
"description": "What changed since the version before, in Markdown, as the changelog says.",
"maxGraphemes": 5000,
"maxLength": 20000,
"type": "string"
},
"npm": {
"description": "What npm's registry says of it, when it is an npm package: its one file then is `<name>-<version>.tgz`, `<name>` without its `@scope/`.",
"ref": "#npm",
"type": "ref"
},
"package": {
"description": "The package's name, as npm's rules have it: lowercase letters, digits, `-`, `.`, `_` and `~`, after an optional `@scope/`. A repository can publish several.",
"maxLength": 214,
"minLength": 1,
"type": "string"
},
"repo": {
"description": "The `key` of the dev.knotless.repo that publishes it.",
"format": "tid",
"type": "string"
},
"swift": {
"description": "What the Swift Package Registry says of it, when it is a Swift package: its one file then is `<name>-<version>.zip`, its source archive, and `package` its identifier, `<scope>.<name>`, lowercased.",
"ref": "#swift",
"type": "ref"
},
"version": {
"description": "A Semantic Versioning 2.0 version, such as 1.4.0 or 2.0.0-rc.1. The highest version without a pre-release part that no dev.knotless.releaseYank withdraws is the package's latest.",
"maxLength": 256,
"minLength": 5,
"type": "string"
}
},
"required": [
"repo",
"package",
"version",
"files",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"maven": {
"description": "A release as a version of a Maven artifact.",
"properties": {
"artifact": {
"description": "Its artifactId, of the same letters, and `.`.",
"maxLength": 100,
"type": "string"
},
"group": {
"description": "Its groupId, such as `com.example`: lowercase letters, digits, `-` and `_`, in parts joined by `.`.",
"maxLength": 200,
"type": "string"
},
"hashes": {
"description": "Each file's SHA-1 and SHA-512, which Maven's clients read beside it as `.sha1` and `.sha512`, beside the SHA-256 its `file` holds.",
"items": {
"ref": "#mavenHashes",
"type": "ref"
},
"maxLength": 64,
"type": "array"
}
},
"required": [
"group",
"artifact",
"hashes"
],
"type": "object"
},
"mavenHashes": {
"description": "Hashes of one file of a Maven artifact's release.",
"properties": {
"name": {
"description": "The file's name, as in `files`.",
"maxLength": 255,
"type": "string"
},
"sha1": {
"description": "The lowercase hex SHA-1 of the file.",
"maxLength": 40,
"minLength": 40,
"type": "string"
},
"sha512": {
"description": "The lowercase hex SHA-512 of the file.",
"maxLength": 128,
"minLength": 128,
"type": "string"
}
},
"required": [
"name",
"sha1",
"sha512"
],
"type": "object"
},
"npm": {
"description": "A release as an npm package.",
"properties": {
"manifest": {
"description": "Its version's manifest, as JSON, as `npm publish` sent it, the package's `package.json` with `dist.integrity` and `dist.shasum`, its tarball's SHA-512 and SHA-1, but without its `readme`, or `dist.tarball`, which a reader adds where it serves the file, and `deprecated`, which it adds from the dev.knotless.releaseYank of its key. Kept as npm's format has it, which is npm's to change, and passed on as it is.",
"maxLength": 100000,
"type": "string"
}
},
"required": [
"manifest"
],
"type": "object"
},
"part": {
"description": "One blob of a file, in order.",
"properties": {
"blob": {
"accept": [
"application/octet-stream"
],
"type": "blob"
}
},
"required": [
"blob"
],
"type": "object"
},
"swift": {
"description": "A release as a Swift package.",
"properties": {
"identifier": {
"description": "Its identifier as it was published, `<scope>.<name>` in its case, as the registry answers it: the release's `package` is the same, lowercased.",
"maxLength": 141,
"type": "string"
},
"manifests": {
"description": "`Package.swift`, first, and each `Package@swift-<version>.swift` beside it in the source archive, which the registry answers without reading the archive.",
"items": {
"ref": "#swiftManifest",
"type": "ref"
},
"maxLength": 32,
"minLength": 1,
"type": "array"
},
"metadata": {
"description": "What the publish said of the release, as JSON, as the Swift Package Registry's release metadata has it, which is the registry's to change, passed on as it is.",
"maxLength": 100000,
"type": "string"
}
},
"required": [
"identifier",
"manifests"
],
"type": "object"
},
"swiftManifest": {
"description": "A manifest of a Swift package's release.",
"properties": {
"content": {
"description": "The file, as it is in the source archive.",
"maxLength": 100000,
"type": "string"
},
"name": {
"description": "Its file's name, `Package.swift` or `Package@swift-<version>.swift`.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"name",
"content"
],
"type": "object"
}
},
"description": "One version of a package a repository publishes: its files, and the commit they were built from.",
"id": "dev.knotless.release",
"lexicon": 1
}