# com.ohmmmm.authPublish

- Kind: permission-set
- Authority: ohmmmm.com
- Lexicon: 1
- Published by [ohm-lexicons.pds.ohmmmm.com](https://lexicon.garden/identity/did:plc:xns2aijk4ep5pqwzipxmmlr4), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:xns2aijk4ep5pqwzipxmmlr4/com.ohmmmm.authPublish)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:xns2aijk4ep5pqwzipxmmlr4/com.ohmmmm.authPublish/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:xns2aijk4ep5pqwzipxmmlr4/com.ohmmmm.authPublish/analytics)

## Permission set (`com.ohmmmm.authPublish`)

Type: permission-set

### Shown at sign-in

- `title` (string): Publish with ohm
- `detail` (string): Create ohm posts and create or update ohm workspace records in your public repository.

### Permissions

- `repo` (permission): Create records in com.ohmmmm.post.
  - Constraints: action: create
  - Collections: `com.ohmmmm.post`
- `repo` (permission): Create and update records in com.ohmmmm.workspace.metadata.
  - Constraints: action: create, update
  - Collections: `com.ohmmmm.workspace.metadata`

### Asking for it (OAuth scope)

- `include:com.ohmmmm.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": "Create ohm posts and create or update ohm workspace records in your public repository.",
      "permissions": [
        {
          "action": [
            "create"
          ],
          "collection": [
            "com.ohmmmm.post"
          ],
          "resource": "repo",
          "type": "permission"
        },
        {
          "action": [
            "create",
            "update"
          ],
          "collection": [
            "com.ohmmmm.workspace.metadata"
          ],
          "resource": "repo",
          "type": "permission"
        }
      ],
      "title": "Publish with ohm",
      "type": "permission-set"
    }
  },
  "id": "com.ohmmmm.authPublish",
  "lexicon": 1
}
```
