# link.latr.saved.defs

> Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/link.latr.saved.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/link.latr.saved.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/link.latr.saved.defs/examples)

## Definitions

### `link.latr.saved.defs#record`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `value` | `ref` → `link.latr.saved.item` | Yes |  |

### `link.latr.saved.defs#simpleOk`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ok` | `boolean` | Yes |  |

### `link.latr.saved.defs#saveResult`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ok` | `boolean` | Yes |  |
| `kind` | `string` | Yes |  |
| `storage` | `string` | No |  |
| `subjectUri` | `string` (at-uri) | No |  |
| `linkedWebUrl` | `string` (uri) | No |  |

### `link.latr.saved.defs#migrationResult`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ok` | `boolean` | Yes |  |
| `itemsCopied` | `integer` | Yes |  |
| `itemsDeleted` | `integer` | Yes |  |
| `externalCopied` | `integer` | Yes |  |
| `externalDeleted` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "link.latr.saved.defs",
  "defs": {
    "record": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "value"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "value": {
          "ref": "link.latr.saved.item",
          "type": "ref"
        }
      }
    },
    "simpleOk": {
      "type": "object",
      "required": [
        "ok"
      ],
      "properties": {
        "ok": {
          "type": "boolean"
        }
      }
    },
    "saveResult": {
      "type": "object",
      "required": [
        "ok",
        "kind"
      ],
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "kind": {
          "type": "string",
          "maxLength": 16,
          "knownValues": [
            "url",
            "subject"
          ],
          "maxGraphemes": 16
        },
        "storage": {
          "type": "string",
          "maxLength": 16,
          "knownValues": [
            "native",
            "external"
          ],
          "maxGraphemes": 16
        },
        "subjectUri": {
          "type": "string",
          "format": "at-uri",
          "maxLength": 8192,
          "maxGraphemes": 2048
        },
        "linkedWebUrl": {
          "type": "string",
          "format": "uri",
          "maxLength": 8192,
          "maxGraphemes": 2048
        }
      }
    },
    "migrationResult": {
      "type": "object",
      "required": [
        "ok",
        "externalCopied",
        "itemsCopied",
        "externalDeleted",
        "itemsDeleted"
      ],
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "itemsCopied": {
          "type": "integer",
          "minimum": 0
        },
        "itemsDeleted": {
          "type": "integer",
          "minimum": 0
        },
        "externalCopied": {
          "type": "integer",
          "minimum": 0
        },
        "externalDeleted": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
