diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c3f1463..41ea87d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.2.0" + ".": "1.2.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index f8ffdff..615d367 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.2.1](https://github.com/gumlet/python-sdk/compare/v1.2.0...v1.2.1) (2026-10-12) + + +### Chores + +* **api:** update generated SDK content ([fadeb7f](https://github.com/gumlet/python-sdk/commit/fadeb7fc95e7470485fdb9810ea0d21c65d8219e)) +* **api:** update generated SDK content ([7f88ca0](https://github.com/gumlet/python-sdk/commit/7f88ca07b28ccbeb61f13644b17795a550758d99)) +* **api:** update generated SDK content ([c4d9f18](https://github.com/gumlet/python-sdk/commit/c4d9f188da1b04372e1fe83330bc3e8d7a1d86f9)) +* **api:** update generated SDK content ([9b51b19](https://github.com/gumlet/python-sdk/commit/9b51b197ca78cb22f25752809dc7140490ef2d6e)) + ## [1.2.0](https://github.com/gumlet/python-sdk/compare/v1.1.0...v1.2.0) (2026-10-12) diff --git a/pyproject.toml b/pyproject.toml index 1117afa..280156a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gumlet" -version = "1.2.0" # x-release-please-version +version = "1.2.1" # 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/src/gumlet/_version.py b/src/gumlet/_version.py index 98c4466..c821d8d 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.2.0" # x-release-please-version +__version__ = "1.2.1" # x-release-please-version diff --git a/src/gumlet/resources/image_sources.py b/src/gumlet/resources/image_sources.py index 396b011..5dabcb8 100644 --- a/src/gumlet/resources/image_sources.py +++ b/src/gumlet/resources/image_sources.py @@ -247,6 +247,8 @@ def update( "backblaze", "cloudflare", "imgix", + "wordpress", + "hetzner", ] | Omit = omit, webfolder: image_source_update_params.Webfolder | Omit = omit, @@ -718,6 +720,8 @@ async def update( "backblaze", "cloudflare", "imgix", + "wordpress", + "hetzner", ] | Omit = omit, webfolder: image_source_update_params.Webfolder | Omit = omit, diff --git a/src/gumlet/resources/webhook_endpoints.py b/src/gumlet/resources/webhook_endpoints.py index 0125e5d..03c54a5 100644 --- a/src/gumlet/resources/webhook_endpoints.py +++ b/src/gumlet/resources/webhook_endpoints.py @@ -202,7 +202,7 @@ def update( ] ] | Omit = omit, - sources: str | Omit = omit, + sources: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -509,7 +509,7 @@ async def update( ] ] | Omit = omit, - sources: str | Omit = omit, + sources: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gumlet/types/image_source_retrieve_response.py b/src/gumlet/types/image_source_retrieve_response.py index 21c9b26..eebabee 100644 --- a/src/gumlet/types/image_source_retrieve_response.py +++ b/src/gumlet/types/image_source_retrieve_response.py @@ -24,6 +24,7 @@ "Cloudinary", "Azure", "FallbackOrigin", + "FallbackOriginCondition", "FallbackOriginReplaceOperation", "FallbackOriginWebfolder", "FallbackOriginAws", @@ -156,6 +157,12 @@ class FallbackOriginReplaceOperation(BaseModel): to: Optional[str] = None +class FallbackOriginCondition(BaseModel): + function: str + + value: str + + class FallbackOrigin(BaseModel): name: str @@ -176,7 +183,7 @@ class FallbackOrigin(BaseModel): "linode", ] - conditions: Optional[List[str]] = None + conditions: Optional[List[FallbackOriginCondition]] = None replace_operation: Optional[FallbackOriginReplaceOperation] = None @@ -422,3 +429,5 @@ class ImageSourceRetrieveResponse(BaseModel): wordpress: Optional[Wordpress] = None response_headers: Optional[List[object]] = None + + temp_cname: Optional[List[str]] = None diff --git a/src/gumlet/types/image_source_update_params.py b/src/gumlet/types/image_source_update_params.py index 00dca49..7398293 100644 --- a/src/gumlet/types/image_source_update_params.py +++ b/src/gumlet/types/image_source_update_params.py @@ -20,6 +20,7 @@ "Cloudinary", "Azure", "FallbackOrigin", + "FallbackOriginCondition", "FallbackOriginReplaceOperation", "FallbackOriginWebfolder", "FallbackOriginAws", @@ -50,6 +51,8 @@ class ImageSourceUpdateParams(TypedDict, total=False): "backblaze", "cloudflare", "imgix", + "wordpress", + "hetzner", ] webfolder: Webfolder @@ -234,8 +237,14 @@ class FallbackOriginReplaceOperation(_FallbackOriginReplaceOperationReservedKeyw to: str +class FallbackOriginCondition(TypedDict, total=False): + function: Required[str] + + value: Required[str] + + class FallbackOrigin(TypedDict, total=False): - conditions: Required[SequenceNotStr[str]] + conditions: Iterable[FallbackOriginCondition] name: Required[str] """Name of fallback""" @@ -260,7 +269,7 @@ class FallbackOrigin(TypedDict, total=False): ] """Type of fallback origin""" - replace_operation: Required[FallbackOriginReplaceOperation] + replace_operation: FallbackOriginReplaceOperation webfolder: FallbackOriginWebfolder """This is a required field if source type is webfolder.""" diff --git a/src/gumlet/types/image_source_update_response.py b/src/gumlet/types/image_source_update_response.py index 766b2f5..b911283 100644 --- a/src/gumlet/types/image_source_update_response.py +++ b/src/gumlet/types/image_source_update_response.py @@ -409,3 +409,5 @@ class ImageSourceUpdateResponse(BaseModel): response_headers: Optional[List[object]] = None imgix: Optional[object] = None + + temp_cname: Optional[List[str]] = None diff --git a/src/gumlet/types/video_analytic_chart_data_response.py b/src/gumlet/types/video_analytic_chart_data_response.py index 19d2070..586799d 100644 --- a/src/gumlet/types/video_analytic_chart_data_response.py +++ b/src/gumlet/types/video_analytic_chart_data_response.py @@ -45,3 +45,5 @@ class VideoAnalyticChartDataResponse(BaseModel): unique_views: Optional[List[UniqueView]] = None analytics_data: Optional[AnalyticsData] = None + + breakdowns: Optional[object] = None diff --git a/src/gumlet/types/webhook_endpoint_list_response.py b/src/gumlet/types/webhook_endpoint_list_response.py index 4f16c4f..aa6df10 100644 --- a/src/gumlet/types/webhook_endpoint_list_response.py +++ b/src/gumlet/types/webhook_endpoint_list_response.py @@ -11,7 +11,7 @@ class AllWebhook(BaseModel): - id: Optional[str] = None + id: str """Webhook ID""" url: Optional[str] = None @@ -66,6 +66,8 @@ class AllWebhook(BaseModel): secret_token: Optional[str] = None """Secret you supplied when creating the webhook. Gumlet sends this value in the `x-gumlet-token` header of each webhook POST.""" + live_sources: Optional[List[str]] = None + class WebhookEndpointListResponse(BaseModel): all_webhooks: List[AllWebhook] diff --git a/src/gumlet/types/webhook_endpoint_update_params.py b/src/gumlet/types/webhook_endpoint_update_params.py index fde949c..9c30620 100644 --- a/src/gumlet/types/webhook_endpoint_update_params.py +++ b/src/gumlet/types/webhook_endpoint_update_params.py @@ -4,6 +4,7 @@ from typing import List from typing_extensions import Literal, TypedDict +from .._types import SequenceNotStr __all__ = ["WebhookEndpointUpdateParams"] @@ -50,5 +51,5 @@ class WebhookEndpointUpdateParams(TypedDict, total=False): ] """Events that invoke this webhook. `status` subscribes to every video asset status event. `live-video-status` subscribes to every live video status event. Any other value subscribes to that event only.""" - sources: str + sources: SequenceNotStr[str] """List of video collection identifiers for which webhooks are needed to be invoked.""" diff --git a/tests/smoke-test.py b/tests/smoke-test.py index 6b6a12a..4c459f4 100644 --- a/tests/smoke-test.py +++ b/tests/smoke-test.py @@ -704,7 +704,7 @@ def _smoke_case_53() -> None: url="", secret_token="", triggers=["status"], - sources="", + sources=[""], ) @@ -815,7 +815,7 @@ def _smoke_case_61() -> None: cdn_cache_time=0, is_active=False, cname=[""], - fallback_origins=[{"conditions": [""], "name": "", "type": "dostorage", "replace_operation": {}}], + fallback_origins=[{"name": "", "type": "dostorage"}], secure_urls=False, )