technology.agave.marketplace.getVersion

Resolve a version to its record and where its archive is.

Details · query
Kindquery
Authoritymarketplace.agave.technology
Indexed
cid bafyreialruxnh2m67leuazrmfex4tjh2jkaat3xrobedudc3tcwpt6wb4a

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Resolve a version to its record and where its archive is.",
      "errors": [
        {
          "description": "The author never published this version, or no version of the slug.",
          "name": "VersionNotFound"
        },
        {
          "description": "The version was published and its record is deleted since. Without a version: every version of the slug is.",
          "name": "VersionWithdrawn"
        },
        {
          "description": "The author's handle does not resolve.",
          "name": "ActorNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "author": {
              "ref": "technology.agave.marketplace.defs#actorView",
              "type": "ref"
            },
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "indexedAt": {
              "format": "datetime",
              "type": "string"
            },
            "pds": {
              "description": "The author's PDS as of indexing, which serves the archive at com.atproto.sync.getBlob.",
              "format": "uri",
              "type": "string"
            },
            "record": {
              "description": "The technology.agave.blockVersion record as its repository signed it. Its archive names the blob by CID.",
              "type": "unknown"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            },
            "uses": {
              "minimum": 0,
              "type": "integer"
            },
            "verified": {
              "description": "The marketplace's operator vouches for this version's author.",
              "type": "boolean"
            }
          },
          "required": [
            "uri",
            "cid",
            "author",
            "record",
            "pds",
            "indexedAt",
            "uses",
            "verified"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "author": {
            "format": "at-identifier",
            "type": "string"
          },
          "slug": {
            "maxLength": 40,
            "type": "string"
          },
          "version": {
            "description": "Absent: the newest published version.",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "author",
          "slug"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "technology.agave.marketplace.getVersion",
  "lexicon": 1
}