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 @@
{
".": "0.8.0"
".": "0.9.0"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.9.0 (2026-05-25)

Full Changelog: [v0.8.0...v0.9.0](https://github.com/fashn-AI/fashn-python-sdk/compare/v0.8.0...v0.9.0)

### Features

* **predictions:** add packshot overload to subscribe() ([1d522a9](https://github.com/fashn-AI/fashn-python-sdk/commit/1d522a92d6fff6c0964d29deb1efbb68beb5f178))

## 0.8.0 (2026-05-25)

Full Changelog: [v0.7.0...v0.8.0](https://github.com/fashn-AI/fashn-python-sdk/compare/v0.7.0...v0.8.0)
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 = "fashn"
version = "0.8.0"
version = "0.9.0"
description = "The official Python library for the fashn API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/fashn/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "fashn"
__version__ = "0.8.0" # x-release-please-version
__version__ = "0.9.0" # x-release-please-version
48 changes: 44 additions & 4 deletions src/fashn/resources/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,24 @@ def subscribe(
request_timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PredictionSubscribeResponse: ...

@overload
def subscribe(
self,
*,
inputs: prediction_run_params.PackshotRequestInputs,
model_name: Literal["packshot"],
webhook_url: str | Omit = omit,
poll_interval: int | None = None,
timeout: int | None = None,
max_retries: int | None = None,
on_enqueued: EnqueuedCallback | None = None,
on_queue_update: QueueUpdateCallback | None = None,
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
request_timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PredictionSubscribeResponse: ...

def subscribe(
self,
*,
Expand All @@ -253,7 +271,8 @@ def subscribe(
| prediction_run_params.BackgroundChangeRequestInputs
| prediction_run_params.BackgroundRemoveRequestInputs
| prediction_run_params.ImageToVideoRequestInputs
| prediction_run_params.EditRequestInputs,
| prediction_run_params.EditRequestInputs
| prediction_run_params.PackshotRequestInputs,
model_name: Literal["tryon-max"]
| Literal["tryon-v1.6"]
| Literal["product-to-model"]
Expand All @@ -264,7 +283,8 @@ def subscribe(
| Literal["background-change"]
| Literal["background-remove"]
| Literal["image-to-video"]
| Literal["edit"],
| Literal["edit"]
| Literal["packshot"],
webhook_url: str | Omit = omit,
poll_interval: int | None = None,
timeout: int | None = None,
Expand Down Expand Up @@ -1321,6 +1341,24 @@ async def subscribe(
request_timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PredictionSubscribeResponse: ...

@overload
async def subscribe(
self,
*,
inputs: prediction_run_params.PackshotRequestInputs,
model_name: Literal["packshot"],
webhook_url: str | Omit = omit,
poll_interval: int | None = None,
timeout: int | None = None,
max_retries: int | None = None,
on_enqueued: EnqueuedCallback | None = None,
on_queue_update: QueueUpdateCallback | None = None,
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
request_timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PredictionSubscribeResponse: ...

async def subscribe(
self,
*,
Expand All @@ -1334,7 +1372,8 @@ async def subscribe(
| prediction_run_params.BackgroundChangeRequestInputs
| prediction_run_params.BackgroundRemoveRequestInputs
| prediction_run_params.ImageToVideoRequestInputs
| prediction_run_params.EditRequestInputs,
| prediction_run_params.EditRequestInputs
| prediction_run_params.PackshotRequestInputs,
model_name: Literal["tryon-max"]
| Literal["tryon-v1.6"]
| Literal["product-to-model"]
Expand All @@ -1345,7 +1384,8 @@ async def subscribe(
| Literal["background-change"]
| Literal["background-remove"]
| Literal["image-to-video"]
| Literal["edit"],
| Literal["edit"]
| Literal["packshot"],
webhook_url: str | Omit = omit,
poll_interval: int | None = None,
timeout: int | None = None,
Expand Down