# pub.chive.claiming.searchEprints

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

✓ This is the authoritative definition for this NSID.

## Links

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

## Definitions

### `pub.chive.claiming.searchEprints`

**Type**: `query`

Search external eprint sources for papers to claim

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of results |
| `query` | `string` | No | Title or keyword search query |
| `author` | `string` | No | Author name to search for |
| `sources` | `string` | No | Comma-separated list of sources to search |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `facets` | `ref` → `#searchFacets` | No |  |
| `eprints` | `array` | Yes |  |
| `sourceErrors` | `array` | No | Per-source errors from sources that failed during the search |

#### Errors

- **InvalidRequest**

### `pub.chive.claiming.searchEprints#sourceError`

**Type**: `object`

Error from a specific external source during search

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `source` | `string` | Yes | Source identifier that failed (e.g., arxiv, openreview) |
| `message` | `string` | Yes | Human-readable error message |

### `pub.chive.claiming.searchEprints#searchFacets`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `sources` | `unknown` | No | Result counts by source (key: source name, value: count) |

### `pub.chive.claiming.searchEprints#existingAuthor`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | Author DID if claimed |
| `name` | `string` | Yes | Author name |

### `pub.chive.claiming.searchEprints#externalAuthor`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Author name |
| `email` | `string` | No | Email address |
| `orcid` | `string` | No | ORCID identifier |
| `affiliation` | `string` | No | Institution affiliation |

### `pub.chive.claiming.searchEprints#externalEprint`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `doi` | `string` | No | DOI if assigned |
| `url` | `string` (uri) | Yes | Full URL to the eprint |
| `title` | `string` | Yes | Eprint title |
| `pdfUrl` | `string` (uri) | No | URL to PDF |
| `source` | `string` | Yes | Source system |
| `authors` | `array` | Yes | Author list |
| `abstract` | `string` | No | Abstract text |
| `categories` | `array` | No | Subject categories |
| `externalId` | `string` | Yes | Source-specific identifier |
| `publicationDate` | `string` (datetime) | No | Publication date |
| `existingChivePaper` | `ref` → `#existingChivePaper` | No |  |

### `pub.chive.claiming.searchEprints#existingChivePaper`

**Type**: `object`

Existing Chive paper if this is a duplicate

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the existing paper |
| `title` | `string` | Yes | Paper title |
| `authors` | `array` | Yes | Author list |
| `createdAt` | `string` (datetime) | Yes | When the paper was indexed |

## Raw Schema

```json
{
  "id": "pub.chive.claiming.searchEprints",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "eprints"
          ],
          "properties": {
            "facets": {
              "ref": "#searchFacets",
              "type": "ref"
            },
            "eprints": {
              "type": "array",
              "items": {
                "ref": "#externalEprint",
                "type": "ref"
              }
            },
            "sourceErrors": {
              "type": "array",
              "items": {
                "ref": "#sourceError",
                "type": "ref"
              },
              "description": "Per-source errors from sources that failed during the search"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 50,
            "minimum": 1,
            "description": "Maximum number of results"
          },
          "query": {
            "type": "string",
            "description": "Title or keyword search query"
          },
          "author": {
            "type": "string",
            "description": "Author name to search for"
          },
          "sources": {
            "type": "string",
            "description": "Comma-separated list of sources to search"
          }
        }
      },
      "description": "Search external eprint sources for papers to claim"
    },
    "sourceError": {
      "type": "object",
      "required": [
        "source",
        "message"
      ],
      "properties": {
        "source": {
          "type": "string",
          "description": "Source identifier that failed (e.g., arxiv, openreview)"
        },
        "message": {
          "type": "string",
          "description": "Human-readable error message"
        }
      },
      "description": "Error from a specific external source during search"
    },
    "searchFacets": {
      "type": "object",
      "properties": {
        "sources": {
          "type": "unknown",
          "description": "Result counts by source (key: source name, value: count)"
        }
      }
    },
    "existingAuthor": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did",
          "description": "Author DID if claimed"
        },
        "name": {
          "type": "string",
          "description": "Author name"
        }
      }
    },
    "externalAuthor": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Author name"
        },
        "email": {
          "type": "string",
          "description": "Email address"
        },
        "orcid": {
          "type": "string",
          "description": "ORCID identifier"
        },
        "affiliation": {
          "type": "string",
          "description": "Institution affiliation"
        }
      }
    },
    "externalEprint": {
      "type": "object",
      "required": [
        "externalId",
        "url",
        "title",
        "authors",
        "source"
      ],
      "properties": {
        "doi": {
          "type": "string",
          "description": "DOI if assigned"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Full URL to the eprint"
        },
        "title": {
          "type": "string",
          "description": "Eprint title"
        },
        "pdfUrl": {
          "type": "string",
          "format": "uri",
          "description": "URL to PDF"
        },
        "source": {
          "type": "string",
          "description": "Source system"
        },
        "authors": {
          "type": "array",
          "items": {
            "ref": "#externalAuthor",
            "type": "ref"
          },
          "description": "Author list"
        },
        "abstract": {
          "type": "string",
          "description": "Abstract text"
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Subject categories"
        },
        "externalId": {
          "type": "string",
          "description": "Source-specific identifier"
        },
        "publicationDate": {
          "type": "string",
          "format": "datetime",
          "description": "Publication date"
        },
        "existingChivePaper": {
          "ref": "#existingChivePaper",
          "type": "ref"
        }
      }
    },
    "existingChivePaper": {
      "type": "object",
      "required": [
        "uri",
        "title",
        "authors",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the existing paper"
        },
        "title": {
          "type": "string",
          "description": "Paper title"
        },
        "authors": {
          "type": "array",
          "items": {
            "ref": "#existingAuthor",
            "type": "ref"
          },
          "description": "Author list"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the paper was indexed"
        }
      },
      "description": "Existing Chive paper if this is a duplicate"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
