# technology.agave.authPublish

- Kind: permission-set
- Authority: 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.authPublish)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.authPublish/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.authPublish/analytics)

## Permission set (`technology.agave.authPublish`)

Type: permission-set

### Shown at sign-in

- `title` (string): Publish agave blocks
- `detail` (string): Publish and withdraw block and connector versions, edit your marketplace profile, follow publishers, and report the use counts of your instance.

### Permissions

- `repo` (permission): Create and delete records in technology.agave.blockVersion and technology.agave.follow.
  - Constraints: action: create, delete
  - Collections: `technology.agave.blockVersion`, `technology.agave.follow`
- `repo` (permission): Create, update and delete records in technology.agave.profile.
  - Collections: `technology.agave.profile`
- `rpc` (permission): Call technology.agave.marketplace.putUses on the service named by the scope's aud parameter. Without one, it isn't granted.
  - Constraints: inheritAud: true
  - Methods: `technology.agave.marketplace.putUses`

### Asking for it (OAuth scope)

- `include:technology.agave.authPublish` (scope): A client asks for this permission set with this scope. The scope builder lists what the set grants.
  - Scope builder: `Open in the scope builder`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "detail": "Publish and withdraw block and connector versions, edit your marketplace profile, follow publishers, and report the use counts of your instance.",
      "permissions": [
        {
          "action": [
            "create",
            "delete"
          ],
          "collection": [
            "technology.agave.blockVersion",
            "technology.agave.follow"
          ],
          "resource": "repo",
          "type": "permission"
        },
        {
          "collection": [
            "technology.agave.profile"
          ],
          "resource": "repo",
          "type": "permission"
        },
        {
          "inheritAud": true,
          "lxm": [
            "technology.agave.marketplace.putUses"
          ],
          "resource": "rpc",
          "type": "permission"
        }
      ],
      "title": "Publish agave blocks",
      "type": "permission-set"
    }
  },
  "id": "technology.agave.authPublish",
  "lexicon": 1
}
```
