diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 093be7e..9464c4e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.6.1" + ".": "1.6.2" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f088b0..b044430 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [1.6.2](https://github.com/gumlet/python-sdk/compare/v1.6.1...v1.6.2) (2026-11-24) + + +### ⚠ BREAKING CHANGES + +* **api:** 3 breaking changes to the SDK surface. + - method-name POST video/assets/{p}/thumbnail — method names differ (breaking: renamed; the old spelling no longer resolves) + - types-files types/video_asset_upload_thumbnail_response.py — type file only in before (1 member: 0 matched by name and kind elsewhere in after, 1 not found) (breaking: removed; video_asset_upload_thumbnail_file_response.py appeared in its place, likely a rename) + - types-classes types/__init__.py:VideoAssetUploadThumbnailResponse — reexport only in before (breaking: removed; VideoAssetUploadThumbnailFileResponse appeared in its place, likely a rename) + +### Features + +* **api:** update SDK surface (5 changes) ([ecbb04d](https://github.com/gumlet/python-sdk/commit/ecbb04d908b7232a4c5465cff1a81f225c2ca895)) + + +### Chores + +* **api:** update generated SDK content ([5924b2d](https://github.com/gumlet/python-sdk/commit/5924b2d8d2e1d241b9b6e5fc2c88e8151109ccca)) +* release 1.6.2 ([b7b08c7](https://github.com/gumlet/python-sdk/commit/b7b08c7f45943a977a71766d588740f2f5587abc)) + ## [1.6.1](https://github.com/gumlet/python-sdk/compare/v1.6.0...v1.6.1) (2026-11-24) diff --git a/api.md b/api.md index 1634611..1e55312 100644 --- a/api.md +++ b/api.md @@ -158,7 +158,7 @@ video_asset = client.video_assets.create( ### Create Asset Direct Upload -This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [this](https://docs.gumlet.com/docs/direct-upload#2-use-the-url-to-upload-a-file). +This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [Direct Upload](https://docs.gumlet.com/developers/vod-developers-section/direct-upload#2.-use-the-url-to-upload-a-file) guide. | Direction | Type | | --- | --- | @@ -376,7 +376,7 @@ video_asset = client.video_assets.analytics( ### Create Asset Direct Upload -This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [this](https://docs.gumlet.com/docs/direct-upload#2-use-the-url-to-upload-a-file). +This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [Direct Upload](https://docs.gumlet.com/developers/vod-developers-section/direct-upload#2.-use-the-url-to-upload-a-file) guide. | Direction | Type | | --- | --- | @@ -397,10 +397,10 @@ Requests a thumbnail upload URL for the asset and PUTs the file to it. | Direction | Type | | --- | --- | -| Response | [`VideoAssetUploadThumbnailResponse`](./src/gumlet/types/video_asset_upload_thumbnail_response.py) | +| Response | [`VideoAssetUploadThumbnailFileResponse`](./src/gumlet/types/video_asset_upload_thumbnail_file_response.py) | ```python -video_asset = client.video_assets.upload_thumbnail( +video_asset = client.video_assets.upload_thumbnail_file( asset_id="assetId", file=open("path/to/file", "rb"), idempotency_key="", diff --git a/pyproject.toml b/pyproject.toml index 65618d9..1c0cc5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gumlet" -version = "1.6.1" # x-release-please-version +version = "1.6.2" # x-release-please-version description = "Gumlet helps developers deliver online video and images. This API encompasses Gumlet Video, Image and Video Analytics functionality to help you build your products better and faster than ever before." readme = "README.md" license = "Apache-2.0" diff --git a/scalar-sdk.manifest.json b/scalar-sdk.manifest.json index 61e9282..397e41e 100644 --- a/scalar-sdk.manifest.json +++ b/scalar-sdk.manifest.json @@ -3671,8 +3671,8 @@ { "resource": "videoAssets", "publicResource": "videoAssets", - "operation": "uploadThumbnail", - "publicOperation": "uploadThumbnail", + "operation": "uploadThumbnailFile", + "publicOperation": "uploadThumbnailFile", "deprecated": false, "method": "POST", "path": "/video/assets/{asset_ID}/thumbnail", @@ -3703,7 +3703,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "VideoAssetUploadThumbnailParams" + "publicName": "VideoAssetUploadThumbnailFileParams" }, "response": { "status": "200", diff --git a/src/gumlet/_version.py b/src/gumlet/_version.py index 38319db..f6bacae 100644 --- a/src/gumlet/_version.py +++ b/src/gumlet/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Scalar. See README.md for details. __title__ = "gumlet" -__version__ = "1.6.1" # x-release-please-version +__version__ = "1.6.2" # x-release-please-version diff --git a/src/gumlet/resources/video_assets.py b/src/gumlet/resources/video_assets.py index b4a159b..cc775e8 100644 --- a/src/gumlet/resources/video_assets.py +++ b/src/gumlet/resources/video_assets.py @@ -54,7 +54,7 @@ from ..types.video_asset_tag_many_response import VideoAssetTagManyResponse from ..types.video_asset_analytics_response import VideoAssetAnalyticsResponse from ..types.video_asset_upload_file_response import VideoAssetUploadFileResponse -from ..types.video_asset_upload_thumbnail_response import VideoAssetUploadThumbnailResponse +from ..types.video_asset_upload_thumbnail_file_response import VideoAssetUploadThumbnailFileResponse __all__ = ["VideoAssetsResource", "AsyncVideoAssetsResource"] @@ -240,7 +240,7 @@ def upload( idempotency_key: str | None = None, ) -> VideoAssetUploadResponse: """ - This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [this](https://docs.gumlet.com/docs/direct-upload#2-use-the-url-to-upload-a-file). + This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [Direct Upload](https://docs.gumlet.com/developers/vod-developers-section/direct-upload#2.-use-the-url-to-upload-a-file) guide. Args: collection_id: Deprecated. Use `workspace_id` instead. Still accepted for backwards compatibility. @@ -1126,7 +1126,7 @@ def upload_file( idempotency_key: str | None = None, ) -> VideoAssetUploadFileResponse: """ - This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [this](https://docs.gumlet.com/docs/direct-upload#2-use-the-url-to-upload-a-file). + This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [Direct Upload](https://docs.gumlet.com/developers/vod-developers-section/direct-upload#2.-use-the-url-to-upload-a-file) guide. Args: file: The file to upload. It is sent to the pre-signed URL the request returns, without the client's credentials. A custom `http_client`'s transport carries it only when that is httpx's own `HTTPTransport` (`AsyncHTTPTransport` on the async client) or inherits `SignedUploadTransport`. @@ -1228,7 +1228,7 @@ def upload_file( ) return initiated - def upload_thumbnail( + def upload_thumbnail_file( self, asset_id: str, file: FileTypes, @@ -1240,7 +1240,7 @@ def upload_thumbnail( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, - ) -> VideoAssetUploadThumbnailResponse: + ) -> VideoAssetUploadThumbnailFileResponse: """ Requests a thumbnail upload URL for the asset and PUTs the file to it. @@ -1254,11 +1254,11 @@ def upload_thumbnail( idempotency_key: Override or provide the idempotency key for this request. Returns: - VideoAssetUploadThumbnailResponse + VideoAssetUploadThumbnailFileResponse Example: ```python - video_asset = client.video_assets.upload_thumbnail( + video_asset = client.video_assets.upload_thumbnail_file( asset_id="assetId", file=open("path/to/file", "rb"), idempotency_key="", @@ -1277,7 +1277,7 @@ def upload_thumbnail( timeout=timeout, idempotency_key=idempotency_key, ), - cast_to=VideoAssetUploadThumbnailResponse, + cast_to=VideoAssetUploadThumbnailFileResponse, ) upload_to_signed_url( self._client, @@ -1470,7 +1470,7 @@ async def upload( idempotency_key: str | None = None, ) -> VideoAssetUploadResponse: """ - This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [this](https://docs.gumlet.com/docs/direct-upload#2-use-the-url-to-upload-a-file). + This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [Direct Upload](https://docs.gumlet.com/developers/vod-developers-section/direct-upload#2.-use-the-url-to-upload-a-file) guide. Args: collection_id: Deprecated. Use `workspace_id` instead. Still accepted for backwards compatibility. @@ -2356,7 +2356,7 @@ async def upload_file( idempotency_key: str | None = None, ) -> VideoAssetUploadFileResponse: """ - This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [this](https://docs.gumlet.com/docs/direct-upload#2-use-the-url-to-upload-a-file). + This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [Direct Upload](https://docs.gumlet.com/developers/vod-developers-section/direct-upload#2.-use-the-url-to-upload-a-file) guide. Args: file: The file to upload. It is sent to the pre-signed URL the request returns, without the client's credentials. A custom `http_client`'s transport carries it only when that is httpx's own `HTTPTransport` (`AsyncHTTPTransport` on the async client) or inherits `SignedUploadTransport`. @@ -2458,7 +2458,7 @@ async def upload_file( ) return initiated - async def upload_thumbnail( + async def upload_thumbnail_file( self, asset_id: str, file: FileTypes, @@ -2470,7 +2470,7 @@ async def upload_thumbnail( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, - ) -> VideoAssetUploadThumbnailResponse: + ) -> VideoAssetUploadThumbnailFileResponse: """ Requests a thumbnail upload URL for the asset and PUTs the file to it. @@ -2484,11 +2484,11 @@ async def upload_thumbnail( idempotency_key: Override or provide the idempotency key for this request. Returns: - VideoAssetUploadThumbnailResponse + VideoAssetUploadThumbnailFileResponse Example: ```python - video_asset = await client.video_assets.upload_thumbnail( + video_asset = await client.video_assets.upload_thumbnail_file( asset_id="assetId", file=open("path/to/file", "rb"), idempotency_key="", @@ -2507,7 +2507,7 @@ async def upload_thumbnail( timeout=timeout, idempotency_key=idempotency_key, ), - cast_to=VideoAssetUploadThumbnailResponse, + cast_to=VideoAssetUploadThumbnailFileResponse, ) await async_upload_to_signed_url( self._client, diff --git a/src/gumlet/types/__init__.py b/src/gumlet/types/__init__.py index e6ffa97..8625c25 100644 --- a/src/gumlet/types/__init__.py +++ b/src/gumlet/types/__init__.py @@ -44,8 +44,8 @@ from .video_asset_analytics_params import VideoAssetAnalyticsParams as VideoAssetAnalyticsParams from .video_asset_upload_file_response import VideoAssetUploadFileResponse as VideoAssetUploadFileResponse from .video_asset_upload_file_params import VideoAssetUploadFileParams as VideoAssetUploadFileParams -from .video_asset_upload_thumbnail_response import ( - VideoAssetUploadThumbnailResponse as VideoAssetUploadThumbnailResponse, +from .video_asset_upload_thumbnail_file_response import ( + VideoAssetUploadThumbnailFileResponse as VideoAssetUploadThumbnailFileResponse, ) from .subtitle_upload_upload_response import SubtitleUploadUploadResponse as SubtitleUploadUploadResponse from .subtitle_upload_upload_params import SubtitleUploadUploadParams as SubtitleUploadUploadParams diff --git a/src/gumlet/types/video_asset_upload_thumbnail_response.py b/src/gumlet/types/video_asset_upload_thumbnail_file_response.py similarity index 80% rename from src/gumlet/types/video_asset_upload_thumbnail_response.py rename to src/gumlet/types/video_asset_upload_thumbnail_file_response.py index 7362a14..7308e07 100644 --- a/src/gumlet/types/video_asset_upload_thumbnail_response.py +++ b/src/gumlet/types/video_asset_upload_thumbnail_file_response.py @@ -4,10 +4,10 @@ from .._models import BaseModel -__all__ = ["VideoAssetUploadThumbnailResponse"] +__all__ = ["VideoAssetUploadThumbnailFileResponse"] -class VideoAssetUploadThumbnailResponse(BaseModel): +class VideoAssetUploadThumbnailFileResponse(BaseModel): upload_url: Optional[str] = None """Upload URL on which new thumbnail must be uploaded using a PUT request"""