# pub.chive.defs

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Description

Shared type definitions for reusable enum-like values

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.defs/examples)

## Definitions

### `pub.chive.defs#affiliation`

**Type**: `object`

Institutional affiliation with optional sub-unit hierarchy

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Organization or unit name |
| `rorId` | `string` | No | ROR identifier URL |
| `children` | `array` | No | Sub-units (schools, departments, labs, etc.) |
| `institutionUri` | `string` (at-uri) | No | AT-URI to institution or unit node in knowledge graph |

### `pub.chive.defs#documentFormat`

**Type**: `string`

Document format slug

**Known Values**:
- `pdf`
- `docx`
- `html`
- `markdown`
- `latex`
- `jupyter`
- `odt`
- `rtf`
- `epub`
- `txt`

### `pub.chive.defs#publicationStatus`

**Type**: `string`

Publication status slug

**Known Values**:
- `eprint`
- `preprint`
- `under_review`
- `revision_requested`
- `accepted`
- `in_press`
- `published`
- `retracted`
- `withdrawn`

### `pub.chive.defs#supplementaryCategory`

**Type**: `string`

Supplementary material category slug

**Known Values**:
- `appendix`
- `figure`
- `table`
- `dataset`
- `code`
- `notebook`
- `video`
- `audio`
- `presentation`
- `protocol`
- `questionnaire`
- `other`

## Raw Schema

```json
{
  "id": "pub.chive.defs",
  "defs": {
    "affiliation": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 300,
          "description": "Organization or unit name"
        },
        "rorId": {
          "type": "string",
          "maxLength": 100,
          "description": "ROR identifier URL"
        },
        "children": {
          "type": "array",
          "items": {
            "ref": "#affiliation",
            "type": "ref"
          },
          "maxLength": 10,
          "description": "Sub-units (schools, departments, labs, etc.)"
        },
        "institutionUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI to institution or unit node in knowledge graph"
        }
      },
      "description": "Institutional affiliation with optional sub-unit hierarchy"
    },
    "documentFormat": {
      "type": "string",
      "description": "Document format slug",
      "knownValues": [
        "pdf",
        "docx",
        "html",
        "markdown",
        "latex",
        "jupyter",
        "odt",
        "rtf",
        "epub",
        "txt"
      ]
    },
    "publicationStatus": {
      "type": "string",
      "description": "Publication status slug",
      "knownValues": [
        "eprint",
        "preprint",
        "under_review",
        "revision_requested",
        "accepted",
        "in_press",
        "published",
        "retracted",
        "withdrawn"
      ]
    },
    "supplementaryCategory": {
      "type": "string",
      "description": "Supplementary material category slug",
      "knownValues": [
        "appendix",
        "figure",
        "table",
        "dataset",
        "code",
        "notebook",
        "video",
        "audio",
        "presentation",
        "protocol",
        "questionnaire",
        "other"
      ]
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 2,
  "description": "Shared type definitions for reusable enum-like values"
}
```
