From b9ddcab823b1594d1bb5b4066a894cd1bed49948 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 15 Apr 2025 00:02:43 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4 --- .speakeasy/gen.lock | 14 +++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +++--- RELEASES.md | 12 ++++- .../operations/getalllibrariesdirectory.md | 46 +++++++++---------- pyproject.toml | 2 +- src/plex_api_client/_version.py | 6 +-- .../models/operations/get_all_libraries.py | 10 +++- src/plex_api_client/types/basemodel.py | 6 +-- 9 files changed, 64 insertions(+), 48 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1624482..5dae08a 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 3eeea668-4ef4-464e-a888-bdfa023bedf5 management: - docChecksum: 184db864cffee563d43aae06915b9671 + docChecksum: fa4c9c5c23680ad02fdbe831ad9d2403 docVersion: 0.0.3 - speakeasyVersion: 1.529.1 - generationVersion: 2.566.5 - releaseVersion: 0.25.1 - configChecksum: cfc32aa0e99c361f70f7f5e8b29ad4b1 + speakeasyVersion: 1.531.4 + generationVersion: 2.570.4 + releaseVersion: 0.25.2 + configChecksum: 6d158fad92733eaa69131113ea5e55d6 repoURL: https://github.com/LukeHagar/plexpy.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexpy.git @@ -15,12 +15,12 @@ features: python: additionalDependencies: 1.0.0 constsAndDefaults: 1.0.5 - core: 5.12.6 + core: 5.12.7 defaultEnabledRetries: 0.2.0 deprecations: 3.0.2 downloadStreams: 1.0.1 enumUnions: 0.1.0 - enums: 3.1.1 + enums: 3.1.2 envVarSecurityUsage: 0.3.2 errors: 3.2.0 flattening: 3.1.1 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8a862ae..0c444fa 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false python: - version: 0.25.1 + version: 0.25.2 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 1ed8706..ca06556 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.529.1 +speakeasyVersion: 1.531.4 sources: my-source: sourceNamespace: my-source @@ -8,19 +8,19 @@ sources: - latest plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:ea508e3da23b283f47aeb4384d6b3ab374a27bdffb8d8d8376cedbad3ad77a06 - sourceBlobDigest: sha256:c210adbd02b0213b9e6f95ffc27f60ec38f8f9040137d55ccf2b650d92ab0ff5 + sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e + sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5 tags: - latest - - speakeasy-sdk-regen-1743984085 + - speakeasy-sdk-regen-1744675286 targets: plexpy: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:ea508e3da23b283f47aeb4384d6b3ab374a27bdffb8d8d8376cedbad3ad77a06 - sourceBlobDigest: sha256:c210adbd02b0213b9e6f95ffc27f60ec38f8f9040137d55ccf2b650d92ab0ff5 + sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e + sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5 codeSamplesNamespace: code-samples-python-plexpy - codeSamplesRevisionDigest: sha256:becefa6564b0a13a97916bdfc86713452a5c35db61fce13ac595ad52ec18a8c3 + codeSamplesRevisionDigest: sha256:eb9b62afd8bb978b44e9d09c800ee7198dd8b9e82f7127af86c90f406aa3afeb workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 31a2723..42f8361 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -998,4 +998,14 @@ Based on: ### Generated - [python v0.25.1] . ### Releases -- [PyPI v0.25.1] https://pypi.org/project/plex-api-client/0.25.1 - . \ No newline at end of file +- [PyPI v0.25.1] https://pypi.org/project/plex-api-client/0.25.1 - . + +## 2025-04-15 00:01:09 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.531.4 (2.570.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.25.2] . +### Releases +- [PyPI v0.25.2] https://pypi.org/project/plex-api-client/0.25.2 - . \ No newline at end of file diff --git a/docs/models/operations/getalllibrariesdirectory.md b/docs/models/operations/getalllibrariesdirectory.md index a0b8f09..ecdb322 100644 --- a/docs/models/operations/getalllibrariesdirectory.md +++ b/docs/models/operations/getalllibrariesdirectory.md @@ -3,26 +3,26 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `allow_sync` | *bool* | :heavy_check_mark: | Indicates whether syncing is allowed. | false | -| `art` | *str* | :heavy_check_mark: | URL for the background artwork of the media container. | /:/resources/show-fanart.jpg | -| `composite` | *str* | :heavy_check_mark: | The relative path to the composite media item. | /library/sections/1/composite/1743824484 | -| `filters` | *bool* | :heavy_check_mark: | UNKNOWN | true | -| `refreshing` | *bool* | :heavy_check_mark: | Indicates whether the library is currently being refreshed or updated | true | -| `thumb` | *str* | :heavy_check_mark: | URL for the thumbnail image of the media container. | /:/resources/show.png | -| `key` | *str* | :heavy_check_mark: | The library key representing the unique identifier | 1 | -| `type` | [operations.GetAllLibrariesType](../../models/operations/getalllibrariestype.md) | :heavy_check_mark: | N/A | movie | -| `title` | *str* | :heavy_check_mark: | The title of the library | Movies | -| `agent` | *str* | :heavy_check_mark: | The Plex agent used to match and retrieve media metadata. | tv.plex.agents.movie | -| `scanner` | *str* | :heavy_check_mark: | UNKNOWN | Plex Movie | -| `language` | *str* | :heavy_check_mark: | The Plex library language that has been set | en-US | -| `uuid` | *str* | :heavy_check_mark: | The universally unique identifier for the library. | e69655a2-ef48-4aba-bb19-01e7d3cc34d6 | -| `updated_at` | *int* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | -| `created_at` | *Optional[int]* | :heavy_minus_sign: | N/A | 1556281940 | -| `scanned_at` | *int* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | -| `content` | *bool* | :heavy_check_mark: | UNKNOWN | true | -| `directory` | *bool* | :heavy_check_mark: | UNKNOWN | true | -| `content_changed_at` | *int* | :heavy_check_mark: | The number of seconds since the content was last changed relative to now. | 9173960 | -| `hidden` | [Optional[operations.Hidden]](../../models/operations/hidden.md) | :heavy_minus_sign: | N/A | 1 | -| `location` | List[[operations.GetAllLibrariesLocation](../../models/operations/getalllibrarieslocation.md)] | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `allow_sync` | *bool* | :heavy_check_mark: | Indicates whether syncing is allowed. | false | +| `art` | *str* | :heavy_check_mark: | URL for the background artwork of the media container. | /:/resources/show-fanart.jpg | +| `composite` | *str* | :heavy_check_mark: | The relative path to the composite media item. | /library/sections/1/composite/1743824484 | +| `filters` | *bool* | :heavy_check_mark: | UNKNOWN | true | +| `refreshing` | *bool* | :heavy_check_mark: | Indicates whether the library is currently being refreshed or updated | true | +| `thumb` | *str* | :heavy_check_mark: | URL for the thumbnail image of the media container. | /:/resources/show.png | +| `key` | *str* | :heavy_check_mark: | The library key representing the unique identifier | 1 | +| `type` | [operations.GetAllLibrariesType](../../models/operations/getalllibrariestype.md) | :heavy_check_mark: | N/A | movie | +| `title` | *str* | :heavy_check_mark: | The title of the library | Movies | +| `agent` | *str* | :heavy_check_mark: | The Plex agent used to match and retrieve media metadata. | tv.plex.agents.movie | +| `scanner` | *str* | :heavy_check_mark: | UNKNOWN | Plex Movie | +| `language` | *str* | :heavy_check_mark: | The Plex library language that has been set | en-US | +| `uuid` | *str* | :heavy_check_mark: | The universally unique identifier for the library. | e69655a2-ef48-4aba-bb19-01e7d3cc34d6 | +| `updated_at` | *int* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | +| `created_at` | *Optional[int]* | :heavy_minus_sign: | N/A | 1556281940 | +| `scanned_at` | *int* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | +| `content` | *bool* | :heavy_check_mark: | UNKNOWN | true | +| `directory` | *bool* | :heavy_check_mark: | UNKNOWN | true | +| `content_changed_at` | *int* | :heavy_check_mark: | Timestamp (in seconds) representing the last time the content was modified.
NOTE: Some Plex server have some absurd values for this field, like 8457612157633039800 so it should be int64
| 9173960 | +| `hidden` | [Optional[operations.Hidden]](../../models/operations/hidden.md) | :heavy_minus_sign: | N/A | 1 | +| `location` | List[[operations.GetAllLibrariesLocation](../../models/operations/getalllibrarieslocation.md)] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c29af5a..42ddedc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "plex-api-client" -version = "0.25.1" +version = "0.25.2" description = "Python Client SDK Generated by Speakeasy" authors = [{ name = "Speakeasy" },] readme = "README-PYPI.md" diff --git a/src/plex_api_client/_version.py b/src/plex_api_client/_version.py index 85ac053..9160b14 100644 --- a/src/plex_api_client/_version.py +++ b/src/plex_api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "plex-api-client" -__version__: str = "0.25.1" +__version__: str = "0.25.2" __openapi_doc_version__: str = "0.0.3" -__gen_version__: str = "2.566.5" -__user_agent__: str = "speakeasy-sdk/python 0.25.1 2.566.5 0.0.3 plex-api-client" +__gen_version__: str = "2.570.4" +__user_agent__: str = "speakeasy-sdk/python 0.25.2 2.570.4 0.0.3 plex-api-client" try: if __package__ is not None: diff --git a/src/plex_api_client/models/operations/get_all_libraries.py b/src/plex_api_client/models/operations/get_all_libraries.py index 5197dfe..3eb20a4 100644 --- a/src/plex_api_client/models/operations/get_all_libraries.py +++ b/src/plex_api_client/models/operations/get_all_libraries.py @@ -77,7 +77,10 @@ class GetAllLibrariesDirectoryTypedDict(TypedDict): directory: bool r"""UNKNOWN""" content_changed_at: int - r"""The number of seconds since the content was last changed relative to now.""" + r"""Timestamp (in seconds) representing the last time the content was modified. + NOTE: Some Plex server have some absurd values for this field, like 8457612157633039800 so it should be int64 + + """ location: List[GetAllLibrariesLocationTypedDict] created_at: NotRequired[int] hidden: NotRequired[Hidden] @@ -135,7 +138,10 @@ class GetAllLibrariesDirectory(BaseModel): r"""UNKNOWN""" content_changed_at: Annotated[int, pydantic.Field(alias="contentChangedAt")] - r"""The number of seconds since the content was last changed relative to now.""" + r"""Timestamp (in seconds) representing the last time the content was modified. + NOTE: Some Plex server have some absurd values for this field, like 8457612157633039800 so it should be int64 + + """ location: Annotated[List[GetAllLibrariesLocation], pydantic.Field(alias="Location")] diff --git a/src/plex_api_client/types/basemodel.py b/src/plex_api_client/types/basemodel.py index a6187ef..231c2e3 100644 --- a/src/plex_api_client/types/basemodel.py +++ b/src/plex_api_client/types/basemodel.py @@ -2,7 +2,7 @@ from pydantic import ConfigDict, model_serializer from pydantic import BaseModel as PydanticBaseModel -from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union, NewType +from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union from typing_extensions import TypeAliasType, TypeAlias @@ -35,5 +35,5 @@ else: "OptionalNullable", Union[Optional[Nullable[T]], Unset], type_params=(T,) ) -UnrecognizedInt = NewType("UnrecognizedInt", int) -UnrecognizedStr = NewType("UnrecognizedStr", str) +UnrecognizedInt: TypeAlias = int +UnrecognizedStr: TypeAlias = str