From 31e12e43e9013eb0efa89b39e5ac4405b4c56e7a Mon Sep 17 00:00:00 2001 From: JasonLandbridge Date: Thu, 19 Sep 2024 16:08:38 +0200 Subject: [PATCH] added missing properties --- src/models/common/PlexMediaType.yaml | 6 ++++++ src/models/common/PlexMediaTypeString.yaml | 14 +++++++++++++ .../[sectionKey]/get-library-items.yaml | 20 +++++++++++-------- 3 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 src/models/common/PlexMediaTypeString.yaml diff --git a/src/models/common/PlexMediaType.yaml b/src/models/common/PlexMediaType.yaml index 132524fc..f29e8ac1 100644 --- a/src/models/common/PlexMediaType.yaml +++ b/src/models/common/PlexMediaType.yaml @@ -14,3 +14,9 @@ description: | 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries +x-speakeasy-enums: + - NONE + - MOVIE + - TV_SHOW + - SEASON + - EPISODE diff --git a/src/models/common/PlexMediaTypeString.yaml b/src/models/common/PlexMediaTypeString.yaml new file mode 100644 index 00000000..20145733 --- /dev/null +++ b/src/models/common/PlexMediaTypeString.yaml @@ -0,0 +1,14 @@ +type: string +enum: + - movie + - show + - season + - episode +example: "movie" +description: | + The type of media content +x-speakeasy-enums: + - MOVIE + - TV_SHOW + - SEASON + - EPISODE diff --git a/src/paths/library/[sectionKey]/get-library-items.yaml b/src/paths/library/[sectionKey]/get-library-items.yaml index 546098f9..1b2f4446 100644 --- a/src/paths/library/[sectionKey]/get-library-items.yaml +++ b/src/paths/library/[sectionKey]/get-library-items.yaml @@ -174,12 +174,16 @@ get: - type - year - duration + - addedAt - Media - UltraBlurColors properties: ratingKey: type: string example: "58683" + description: | + The rating key (Media ID) of this media item. + Note: This is always an integer, but is represented as a string in the API. key: type: string example: /library/metadata/58683 @@ -190,8 +194,7 @@ get: type: string example: 20th Century Studios type: - type: string - example: movie + $ref: "../../../models/common/PlexMediaTypeString.yaml" title: type: string example: "Avatar: The Way of Water" @@ -227,6 +230,9 @@ get: art: type: string example: /library/metadata/58683/art/1703239236 + banner: + type: string + example: /library/metadata/58683/banner/1703239236 duration: type: integer format: int32 @@ -236,13 +242,9 @@ get: format: date example: 2022-12-14 addedAt: - type: integer - format: int32 - example: 1680457607 + $ref: "../../../models/common/PlexDateTime.yaml" updatedAt: - type: integer - format: int32 - example: 1703239236 + $ref: "../../../models/common/PlexDateTime.yaml" audienceRatingImage: type: string example: rottentomatoes://image.rating.upright @@ -555,6 +557,8 @@ get: example: "1" parentRatingKey: type: string + description: | + The rating key of the parent item. example: "66" parentGuid: type: string