# technology.agave.marketplace.defs

- Kind: defs
- Authority: marketplace.agave.technology
- Lexicon: 1
- Published by [catalogue.agave.technology](https://lexicon.garden/identity/did:plc:jgjchylj237en76b3hi2xu4g), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.marketplace.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.marketplace.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.marketplace.defs/analytics)

## #actorView (`technology.agave.marketplace.defs#actorView`)

Type: object

### Properties

- `did` (string · did, required)
- `displayName` (string)
  - Constraints: maxLength: 640, maxGraphemes: 64
- `handle` (string · handle, required): handle.invalid when the account's handle does not resolve back to its DID.

## #archiveView (`technology.agave.marketplace.defs#archiveView`)

Type: object

A version's archive blob. technology.agave.marketplace.getBlob serves it from the mirror, com.atproto.sync.getBlob from the author's PDS.

### Properties

- `cid` (string · cid, required)
- `mimeType` (string, required)
- `size` (integer, required)
  - Constraints: minimum: 0

## #blockView (`technology.agave.marketplace.defs#blockView`)

Type: object

The newest published version of one author's slug, with what its manifest says.

### Properties

- `archive` (ref, required)
  - Reference: `#archiveView`
- `author` (ref, required)
  - Reference: `#actorView`
- `capabilities` (array): A block manifest's provides and uses, in that order, without repeats.
  - `items` (string)
- `category` (string): A connector manifest's category.
- `cid` (string · cid, required): The CID of the technology.agave.blockVersion record.
- `createdAt` (string · datetime, required): The record's createdAt.
- `description` (string, required)
- `indexedAt` (string · datetime, required)
- `kind` (string, required)
  - Constraints: knownValues: block | connector
- `reach` (string): A connector manifest's reach.
- `slug` (string, required)
- `title` (string, required)
- `tree` (string, required)
- `uri` (string · at-uri, required)
- `uses` (integer, required): Copies of this slug, any version, summed over the latest report of every instance.
  - Constraints: minimum: 0
- `verified` (boolean, required): The marketplace's operator vouches for this version's author.
- `version` (string, required): MAJOR.MINOR.PATCH, as technology.agave.blockVersion's version reads.

## #versionView (`technology.agave.marketplace.defs#versionView`)

Type: object

One version of a slug, withdrawn or not.

### Properties

- `archive` (ref, required)
  - Reference: `#archiveView`
- `cid` (string · cid, required)
- `createdAt` (string · datetime, required)
- `indexedAt` (string · datetime, required)
- `uri` (string · at-uri, required)
- `version` (string, required): MAJOR.MINOR.PATCH, as technology.agave.blockVersion's version reads.
- `withdrawnAt` (string · datetime): Present once the record is deleted from its repository.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "actorView": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "handle": {
          "description": "handle.invalid when the account's handle does not resolve back to its DID.",
          "format": "handle",
          "type": "string"
        }
      },
      "required": [
        "did",
        "handle"
      ],
      "type": "object"
    },
    "archiveView": {
      "description": "A version's archive blob. technology.agave.marketplace.getBlob serves it from the mirror, com.atproto.sync.getBlob from the author's PDS.",
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "size": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "cid",
        "size",
        "mimeType"
      ],
      "type": "object"
    },
    "blockView": {
      "description": "The newest published version of one author's slug, with what its manifest says.",
      "properties": {
        "archive": {
          "ref": "#archiveView",
          "type": "ref"
        },
        "author": {
          "ref": "#actorView",
          "type": "ref"
        },
        "capabilities": {
          "description": "A block manifest's provides and uses, in that order, without repeats.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "category": {
          "description": "A connector manifest's category.",
          "type": "string"
        },
        "cid": {
          "description": "The CID of the technology.agave.blockVersion record.",
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "description": "The record's createdAt.",
          "format": "datetime",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "kind": {
          "knownValues": [
            "block",
            "connector"
          ],
          "type": "string"
        },
        "reach": {
          "description": "A connector manifest's reach.",
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "tree": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "uses": {
          "description": "Copies of this slug, any version, summed over the latest report of every instance.",
          "minimum": 0,
          "type": "integer"
        },
        "verified": {
          "description": "The marketplace's operator vouches for this version's author.",
          "type": "boolean"
        },
        "version": {
          "description": "MAJOR.MINOR.PATCH, as technology.agave.blockVersion's version reads.",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "slug",
        "kind",
        "version",
        "title",
        "description",
        "archive",
        "tree",
        "createdAt",
        "indexedAt",
        "uses",
        "verified"
      ],
      "type": "object"
    },
    "versionView": {
      "description": "One version of a slug, withdrawn or not.",
      "properties": {
        "archive": {
          "ref": "#archiveView",
          "type": "ref"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "version": {
          "description": "MAJOR.MINOR.PATCH, as technology.agave.blockVersion's version reads.",
          "type": "string"
        },
        "withdrawnAt": {
          "description": "Present once the record is deleted from its repository.",
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "version",
        "archive",
        "createdAt",
        "indexedAt"
      ],
      "type": "object"
    }
  },
  "id": "technology.agave.marketplace.defs",
  "lexicon": 1
}
```
