Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.2.0"
".": "1.2.1"
}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/gumlet/_version.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions src/gumlet/resources/image_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def update(
"backblaze",
"cloudflare",
"imgix",
"wordpress",
"hetzner",
]
| Omit = omit,
webfolder: image_source_update_params.Webfolder | Omit = omit,
Expand Down Expand Up @@ -718,6 +720,8 @@ async def update(
"backblaze",
"cloudflare",
"imgix",
"wordpress",
"hetzner",
]
| Omit = omit,
webfolder: image_source_update_params.Webfolder | Omit = omit,
Expand Down
4 changes: 2 additions & 2 deletions src/gumlet/resources/webhook_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
11 changes: 10 additions & 1 deletion src/gumlet/types/image_source_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"Cloudinary",
"Azure",
"FallbackOrigin",
"FallbackOriginCondition",
"FallbackOriginReplaceOperation",
"FallbackOriginWebfolder",
"FallbackOriginAws",
Expand Down Expand Up @@ -156,6 +157,12 @@ class FallbackOriginReplaceOperation(BaseModel):
to: Optional[str] = None


class FallbackOriginCondition(BaseModel):
function: str

value: str


class FallbackOrigin(BaseModel):
name: str

Expand All @@ -176,7 +183,7 @@ class FallbackOrigin(BaseModel):
"linode",
]

conditions: Optional[List[str]] = None
conditions: Optional[List[FallbackOriginCondition]] = None

replace_operation: Optional[FallbackOriginReplaceOperation] = None

Expand Down Expand Up @@ -422,3 +429,5 @@ class ImageSourceRetrieveResponse(BaseModel):
wordpress: Optional[Wordpress] = None

response_headers: Optional[List[object]] = None

temp_cname: Optional[List[str]] = None
13 changes: 11 additions & 2 deletions src/gumlet/types/image_source_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"Cloudinary",
"Azure",
"FallbackOrigin",
"FallbackOriginCondition",
"FallbackOriginReplaceOperation",
"FallbackOriginWebfolder",
"FallbackOriginAws",
Expand Down Expand Up @@ -50,6 +51,8 @@ class ImageSourceUpdateParams(TypedDict, total=False):
"backblaze",
"cloudflare",
"imgix",
"wordpress",
"hetzner",
]

webfolder: Webfolder
Expand Down Expand Up @@ -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"""
Expand All @@ -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."""
Expand Down
2 changes: 2 additions & 0 deletions src/gumlet/types/image_source_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,5 @@ class ImageSourceUpdateResponse(BaseModel):
response_headers: Optional[List[object]] = None

imgix: Optional[object] = None

temp_cname: Optional[List[str]] = None
2 changes: 2 additions & 0 deletions src/gumlet/types/video_analytic_chart_data_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ class VideoAnalyticChartDataResponse(BaseModel):
unique_views: Optional[List[UniqueView]] = None

analytics_data: Optional[AnalyticsData] = None

breakdowns: Optional[object] = None
4 changes: 3 additions & 1 deletion src/gumlet/types/webhook_endpoint_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class AllWebhook(BaseModel):
id: Optional[str] = None
id: str
"""Webhook ID"""

url: Optional[str] = None
Expand Down Expand Up @@ -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]
3 changes: 2 additions & 1 deletion src/gumlet/types/webhook_endpoint_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from typing import List
from typing_extensions import Literal, TypedDict
from .._types import SequenceNotStr

__all__ = ["WebhookEndpointUpdateParams"]

Expand Down Expand Up @@ -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."""
4 changes: 2 additions & 2 deletions tests/smoke-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def _smoke_case_53() -> None:
url="",
secret_token="",
triggers=["status"],
sources="",
sources=[""],
)


Expand Down Expand Up @@ -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,
)

Expand Down
Loading