# GetOnDeckMetadata

## Example Usage

```typescript
import { GetOnDeckMetadata } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetOnDeckMetadata = {
  librarySectionID: 2,
  librarySectionTitle: "TV Shows",
  librarySectionUUID: "4bb2521c-8ba9-459b-aaee-8ab8bc35eabd",
  ratingKey: 49564,
  key: "/library/metadata/49564",
  parentRatingKey: 49557,
  grandparentRatingKey: 49556,
  guid: "plex://episode/5ea7d7402e7ab10042e74d4f",
  parentGuid: "plex://season/602e754d67f4c8002ce54b3d",
  grandparentGuid: "plex://show/5d9c090e705e7a001e6e94d8",
  type: "episode",
  title: "Circus",
  grandparentKey: "/library/metadata/49556",
  parentKey: "/library/metadata/49557",
  librarySectionKey: "/library/sections/2",
  grandparentTitle: "Bluey (2018)",
  parentTitle: "Season 2",
  contentRating: "TV-Y",
  summary:
    "Bluey is the ringmaster in a game of circus with her friends but Hercules wants to play his motorcycle game instead. Luckily Bluey has a solution to keep everyone happy.",
  index: 33,
  parentIndex: 2,
  lastViewedAt: 1681908352,
  year: 2018,
  thumb: "/library/metadata/49564/thumb/1654258204",
  art: "/library/metadata/49556/art/1680939546",
  parentThumb: "/library/metadata/49557/thumb/1654258204",
  grandparentThumb: "/library/metadata/49556/thumb/1680939546",
  grandparentArt: "/library/metadata/49556/art/1680939546",
  grandparentTheme: "/library/metadata/49556/theme/1680939546",
  duration: 420080,
  originallyAvailableAt: new Date("2020-10-31T00:00:00Z"),
  addedAt: 1654258196,
  updatedAt: 1654258204,
  media: [
    {
      id: 80994,
      duration: 420080,
      bitrate: 1046,
      width: 1920,
      height: 1080,
      aspectRatio: 1.78,
      audioChannels: 2,
      audioCodec: "aac",
      videoCodec: "hevc",
      videoResolution: "1080",
      container: "mkv",
      videoFrameRate: "PAL",
      audioProfile: "lc",
      videoProfile: "main",
      part: [
        {
          id: 80994,
          key: "/library/parts/80994/1655007810/file.mkv",
          duration: 420080,
          file: "/tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv",
          size: 55148931,
          audioProfile: "lc",
          container: "mkv",
          videoProfile: "main",
          stream: [
            {
              id: 211234,
              streamType: 1,
              codec: "hevc",
              index: 0,
              bitrate: 918,
              language: "English",
              languageTag: "en",
              languageCode: "eng",
              bitDepth: 8,
              chromaLocation: "left",
              chromaSubsampling: "4:2:0",
              codedHeight: 1080,
              codedWidth: 1920,
              colorRange: "tv",
              frameRate: 25,
              height: 1080,
              level: 120,
              profile: "main",
              refFrames: 1,
              width: 1920,
              displayTitle: "1080p (HEVC Main)",
              extendedDisplayTitle: "1080p (HEVC Main)",
            },
          ],
        },
      ],
    },
  ],
  guids: [
    {
      id: "imdb://tt13303712",
    },
  ],
};
```

## Fields

| Field                                                                                                                                                                     | Type                                                                                                                                                                      | Required                                                                                                                                                                  | Description                                                                                                                                                               | Example                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `allowSync`                                                                                                                                                               | *boolean*                                                                                                                                                                 | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       |                                                                                                                                                                           |
| `librarySectionID`                                                                                                                                                        | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 2                                                                                                                                                                         |
| `librarySectionTitle`                                                                                                                                                     | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | TV Shows                                                                                                                                                                  |
| `librarySectionUUID`                                                                                                                                                      | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 4bb2521c-8ba9-459b-aaee-8ab8bc35eabd                                                                                                                                      |
| `ratingKey`                                                                                                                                                               | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 49564                                                                                                                                                                     |
| `key`                                                                                                                                                                     | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49564                                                                                                                                                   |
| `parentRatingKey`                                                                                                                                                         | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 49557                                                                                                                                                                     |
| `grandparentRatingKey`                                                                                                                                                    | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 49556                                                                                                                                                                     |
| `guid`                                                                                                                                                                    | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | plex://episode/5ea7d7402e7ab10042e74d4f                                                                                                                                   |
| `parentGuid`                                                                                                                                                              | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | plex://season/602e754d67f4c8002ce54b3d                                                                                                                                    |
| `grandparentGuid`                                                                                                                                                         | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | plex://show/5d9c090e705e7a001e6e94d8                                                                                                                                      |
| `type`                                                                                                                                                                    | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | episode                                                                                                                                                                   |
| `title`                                                                                                                                                                   | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | Circus                                                                                                                                                                    |
| `grandparentKey`                                                                                                                                                          | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49556                                                                                                                                                   |
| `parentKey`                                                                                                                                                               | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49557                                                                                                                                                   |
| `librarySectionKey`                                                                                                                                                       | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/sections/2                                                                                                                                                       |
| `grandparentTitle`                                                                                                                                                        | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | Bluey (2018)                                                                                                                                                              |
| `parentTitle`                                                                                                                                                             | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | Season 2                                                                                                                                                                  |
| `contentRating`                                                                                                                                                           | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | TV-Y                                                                                                                                                                      |
| `summary`                                                                                                                                                                 | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | Bluey is the ringmaster in a game of circus with her friends but Hercules wants to play his motorcycle game instead. Luckily Bluey has a solution to keep everyone happy. |
| `index`                                                                                                                                                                   | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 33                                                                                                                                                                        |
| `parentIndex`                                                                                                                                                             | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 2                                                                                                                                                                         |
| `lastViewedAt`                                                                                                                                                            | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 1681908352                                                                                                                                                                |
| `year`                                                                                                                                                                    | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 2018                                                                                                                                                                      |
| `thumb`                                                                                                                                                                   | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49564/thumb/1654258204                                                                                                                                  |
| `art`                                                                                                                                                                     | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49556/art/1680939546                                                                                                                                    |
| `parentThumb`                                                                                                                                                             | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49557/thumb/1654258204                                                                                                                                  |
| `grandparentThumb`                                                                                                                                                        | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49556/thumb/1680939546                                                                                                                                  |
| `grandparentArt`                                                                                                                                                          | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49556/art/1680939546                                                                                                                                    |
| `grandparentTheme`                                                                                                                                                        | *string*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | /library/metadata/49556/theme/1680939546                                                                                                                                  |
| `duration`                                                                                                                                                                | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 420080                                                                                                                                                                    |
| `originallyAvailableAt`                                                                                                                                                   | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                             | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 2020-10-31 00:00:00 +0000 UTC                                                                                                                                             |
| `addedAt`                                                                                                                                                                 | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 1654258196                                                                                                                                                                |
| `updatedAt`                                                                                                                                                               | *number*                                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       | 1654258204                                                                                                                                                                |
| `media`                                                                                                                                                                   | [operations.GetOnDeckMedia](../../../sdk/models/operations/getondeckmedia.md)[]                                                                                           | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       |                                                                                                                                                                           |
| `guids`                                                                                                                                                                   | [operations.GetOnDeckGuids](../../../sdk/models/operations/getondeckguids.md)[]                                                                                           | :heavy_minus_sign:                                                                                                                                                        | N/A                                                                                                                                                                       |                                                                                                                                                                           |