From 658ffcb88f8835de996cb2b926d9c317bc306943 Mon Sep 17 00:00:00 2001 From: pbertsch Date: Tue, 2 Jun 2026 10:03:31 -0600 Subject: [PATCH] feat(links): add expire_fallback_url to link create/update/response models New optional field that redirects to a custom URL when a link expires (by date or click cap) instead of showing an error page. Serializes as expireFallbackUrl via alias_generator=to_camel. Also bumps version to 1.1.0. Co-Authored-By: Claude Sonnet 4.6 --- awsysco/models.py | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/awsysco/models.py b/awsysco/models.py index cf5aa85..82fdfd0 100644 --- a/awsysco/models.py +++ b/awsysco/models.py @@ -59,6 +59,7 @@ class Link(_CamelModel): created: Optional[str] = None expires_at: Optional[str] = None max_clicks: Optional[int] = None + expire_fallback_url: Optional[str] = None password_protected: Optional[bool] = None diff --git a/pyproject.toml b/pyproject.toml index 0a439bc..50bc4da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "awsysco" -version = "1.0.0" +version = "1.1.0" description = "Official Python SDK for the AWSYS.CO URL Shortener API" readme = "README.md" requires-python = ">=3.9"