diff --git a/.release-please-manifest.json b/.release-please-manifest.json index eafd5663..1d0616cb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-beta.26" + ".": "0.1.0-beta.27" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7fd83720..976874ff 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 110 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-512ec51333e2e803d366c0aebea858913541a7ef0269a56f9371686feed26cd8.yml -openapi_spec_hash: 9b6d9f90c1aff0165ef7769f2311a1bd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-a3b1cb64a010bc54278d208eb9ef309cb7c31e9099c45470fa3d032b1f4a17f6.yml +openapi_spec_hash: 09e5366c0f3dd1ea84dadb90e7cbf762 config_hash: 0eca08dde117ac62155a012abb0ecac7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 686a700a..7b518c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-beta.27 (2026-06-23) + +Full Changelog: [v0.1.0-beta.26...v0.1.0-beta.27](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.26...v0.1.0-beta.27) + +### Features + +* **api:** add has_soft_limit parameter to addons/plans entitlements ([74cff73](https://github.com/stiggio/stigg-python/commit/74cff73cd8457463b0b309b9c8dffeb4a0f536c4)) + ## 0.1.0-beta.26 (2026-06-22) Full Changelog: [v0.1.0-beta.25...v0.1.0-beta.26](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.25...v0.1.0-beta.26) diff --git a/pyproject.toml b/pyproject.toml index 764c1638..79bdb993 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stigg" -version = "0.1.0-beta.26" +version = "0.1.0-beta.27" description = "The official Python library for the stigg API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/stigg/_version.py b/src/stigg/_version.py index 397f388e..2bef2b42 100644 --- a/src/stigg/_version.py +++ b/src/stigg/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "stigg" -__version__ = "0.1.0-beta.26" # x-release-please-version +__version__ = "0.1.0-beta.27" # x-release-please-version diff --git a/src/stigg/resources/v1/addons/entitlements.py b/src/stigg/resources/v1/addons/entitlements.py index 2dc63786..d350c117 100644 --- a/src/stigg/resources/v1/addons/entitlements.py +++ b/src/stigg/resources/v1/addons/entitlements.py @@ -193,6 +193,7 @@ def update( dependency_feature_id: Optional[str] | Omit = omit, description: str | Omit = omit, display_name_override: str | Omit = omit, + has_soft_limit: bool | Omit = omit, hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] | Omit = omit, is_custom: bool | Omit = omit, is_granted: bool | Omit = omit, @@ -225,6 +226,10 @@ def update( display_name_override: Override display name for the entitlement + has_soft_limit: Whether the credit wallet is soft-limited. When true, getEntitlement returns + hasAccess=true past the limit; vendors decide whether to enforce. Defaults to + false. + hidden_from_widgets: Widget types where this entitlement is hidden is_custom: Whether this is a custom entitlement @@ -592,6 +597,7 @@ async def update( dependency_feature_id: Optional[str] | Omit = omit, description: str | Omit = omit, display_name_override: str | Omit = omit, + has_soft_limit: bool | Omit = omit, hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] | Omit = omit, is_custom: bool | Omit = omit, is_granted: bool | Omit = omit, @@ -624,6 +630,10 @@ async def update( display_name_override: Override display name for the entitlement + has_soft_limit: Whether the credit wallet is soft-limited. When true, getEntitlement returns + hasAccess=true past the limit; vendors decide whether to enforce. Defaults to + false. + hidden_from_widgets: Widget types where this entitlement is hidden is_custom: Whether this is a custom entitlement diff --git a/src/stigg/resources/v1/plans/entitlements.py b/src/stigg/resources/v1/plans/entitlements.py index 02967861..db0862e5 100644 --- a/src/stigg/resources/v1/plans/entitlements.py +++ b/src/stigg/resources/v1/plans/entitlements.py @@ -193,6 +193,7 @@ def update( dependency_feature_id: Optional[str] | Omit = omit, description: str | Omit = omit, display_name_override: str | Omit = omit, + has_soft_limit: bool | Omit = omit, hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] | Omit = omit, is_custom: bool | Omit = omit, is_granted: bool | Omit = omit, @@ -225,6 +226,10 @@ def update( display_name_override: Override display name for the entitlement + has_soft_limit: Whether the credit wallet is soft-limited. When true, getEntitlement returns + hasAccess=true past the limit; vendors decide whether to enforce. Defaults to + false. + hidden_from_widgets: Widget types where this entitlement is hidden is_custom: Whether this is a custom entitlement @@ -592,6 +597,7 @@ async def update( dependency_feature_id: Optional[str] | Omit = omit, description: str | Omit = omit, display_name_override: str | Omit = omit, + has_soft_limit: bool | Omit = omit, hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] | Omit = omit, is_custom: bool | Omit = omit, is_granted: bool | Omit = omit, @@ -624,6 +630,10 @@ async def update( display_name_override: Override display name for the entitlement + has_soft_limit: Whether the credit wallet is soft-limited. When true, getEntitlement returns + hasAccess=true past the limit; vendors decide whether to enforce. Defaults to + false. + hidden_from_widgets: Widget types where this entitlement is hidden is_custom: Whether this is a custom entitlement diff --git a/src/stigg/types/v1/addons/addon_package_entitlement.py b/src/stigg/types/v1/addons/addon_package_entitlement.py index 7ec25b2d..eebdc1ad 100644 --- a/src/stigg/types/v1/addons/addon_package_entitlement.py +++ b/src/stigg/types/v1/addons/addon_package_entitlement.py @@ -142,6 +142,13 @@ class DataCredit(BaseModel): display_name_override: Optional[str] = FieldInfo(alias="displayNameOverride", default=None) """Override display name for the entitlement""" + has_soft_limit: Optional[bool] = FieldInfo(alias="hasSoftLimit", default=None) + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] = FieldInfo(alias="hiddenFromWidgets") """Widget types where this entitlement is hidden""" diff --git a/src/stigg/types/v1/addons/entitlement_create_params.py b/src/stigg/types/v1/addons/entitlement_create_params.py index 5d7c436f..df437725 100644 --- a/src/stigg/types/v1/addons/entitlement_create_params.py +++ b/src/stigg/types/v1/addons/entitlement_create_params.py @@ -160,6 +160,13 @@ class EntitlementCredit(TypedDict, total=False): display_name_override: Annotated[str, PropertyInfo(alias="displayNameOverride")] """Override display name for the entitlement""" + has_soft_limit: Annotated[bool, PropertyInfo(alias="hasSoftLimit")] + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: Annotated[ List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]], PropertyInfo(alias="hiddenFromWidgets") ] diff --git a/src/stigg/types/v1/addons/entitlement_create_response.py b/src/stigg/types/v1/addons/entitlement_create_response.py index 33da693b..0deb4f8c 100644 --- a/src/stigg/types/v1/addons/entitlement_create_response.py +++ b/src/stigg/types/v1/addons/entitlement_create_response.py @@ -142,6 +142,13 @@ class DataCredit(BaseModel): display_name_override: Optional[str] = FieldInfo(alias="displayNameOverride", default=None) """Override display name for the entitlement""" + has_soft_limit: Optional[bool] = FieldInfo(alias="hasSoftLimit", default=None) + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] = FieldInfo(alias="hiddenFromWidgets") """Widget types where this entitlement is hidden""" diff --git a/src/stigg/types/v1/addons/entitlement_list_response.py b/src/stigg/types/v1/addons/entitlement_list_response.py index 241c6e4e..6f04954b 100644 --- a/src/stigg/types/v1/addons/entitlement_list_response.py +++ b/src/stigg/types/v1/addons/entitlement_list_response.py @@ -143,6 +143,13 @@ class DataCredit(BaseModel): display_name_override: Optional[str] = FieldInfo(alias="displayNameOverride", default=None) """Override display name for the entitlement""" + has_soft_limit: Optional[bool] = FieldInfo(alias="hasSoftLimit", default=None) + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] = FieldInfo(alias="hiddenFromWidgets") """Widget types where this entitlement is hidden""" diff --git a/src/stigg/types/v1/addons/entitlement_update_params.py b/src/stigg/types/v1/addons/entitlement_update_params.py index 7a6ef4b5..03e4e31b 100644 --- a/src/stigg/types/v1/addons/entitlement_update_params.py +++ b/src/stigg/types/v1/addons/entitlement_update_params.py @@ -150,6 +150,13 @@ class UpdateCreditEntitlementRequest(TypedDict, total=False): display_name_override: Annotated[str, PropertyInfo(alias="displayNameOverride")] """Override display name for the entitlement""" + has_soft_limit: Annotated[bool, PropertyInfo(alias="hasSoftLimit")] + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: Annotated[ List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]], PropertyInfo(alias="hiddenFromWidgets") ] diff --git a/src/stigg/types/v1/plans/entitlement_create_params.py b/src/stigg/types/v1/plans/entitlement_create_params.py index 5d7c436f..df437725 100644 --- a/src/stigg/types/v1/plans/entitlement_create_params.py +++ b/src/stigg/types/v1/plans/entitlement_create_params.py @@ -160,6 +160,13 @@ class EntitlementCredit(TypedDict, total=False): display_name_override: Annotated[str, PropertyInfo(alias="displayNameOverride")] """Override display name for the entitlement""" + has_soft_limit: Annotated[bool, PropertyInfo(alias="hasSoftLimit")] + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: Annotated[ List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]], PropertyInfo(alias="hiddenFromWidgets") ] diff --git a/src/stigg/types/v1/plans/entitlement_create_response.py b/src/stigg/types/v1/plans/entitlement_create_response.py index 33da693b..0deb4f8c 100644 --- a/src/stigg/types/v1/plans/entitlement_create_response.py +++ b/src/stigg/types/v1/plans/entitlement_create_response.py @@ -142,6 +142,13 @@ class DataCredit(BaseModel): display_name_override: Optional[str] = FieldInfo(alias="displayNameOverride", default=None) """Override display name for the entitlement""" + has_soft_limit: Optional[bool] = FieldInfo(alias="hasSoftLimit", default=None) + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] = FieldInfo(alias="hiddenFromWidgets") """Widget types where this entitlement is hidden""" diff --git a/src/stigg/types/v1/plans/entitlement_list_response.py b/src/stigg/types/v1/plans/entitlement_list_response.py index 241c6e4e..6f04954b 100644 --- a/src/stigg/types/v1/plans/entitlement_list_response.py +++ b/src/stigg/types/v1/plans/entitlement_list_response.py @@ -143,6 +143,13 @@ class DataCredit(BaseModel): display_name_override: Optional[str] = FieldInfo(alias="displayNameOverride", default=None) """Override display name for the entitlement""" + has_soft_limit: Optional[bool] = FieldInfo(alias="hasSoftLimit", default=None) + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] = FieldInfo(alias="hiddenFromWidgets") """Widget types where this entitlement is hidden""" diff --git a/src/stigg/types/v1/plans/entitlement_update_params.py b/src/stigg/types/v1/plans/entitlement_update_params.py index 60d3426a..8d152143 100644 --- a/src/stigg/types/v1/plans/entitlement_update_params.py +++ b/src/stigg/types/v1/plans/entitlement_update_params.py @@ -150,6 +150,13 @@ class UpdateCreditEntitlementRequest(TypedDict, total=False): display_name_override: Annotated[str, PropertyInfo(alias="displayNameOverride")] """Override display name for the entitlement""" + has_soft_limit: Annotated[bool, PropertyInfo(alias="hasSoftLimit")] + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: Annotated[ List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]], PropertyInfo(alias="hiddenFromWidgets") ] diff --git a/src/stigg/types/v1/plans/plan_entitlement.py b/src/stigg/types/v1/plans/plan_entitlement.py index 61169b60..05376503 100644 --- a/src/stigg/types/v1/plans/plan_entitlement.py +++ b/src/stigg/types/v1/plans/plan_entitlement.py @@ -142,6 +142,13 @@ class DataCredit(BaseModel): display_name_override: Optional[str] = FieldInfo(alias="displayNameOverride", default=None) """Override display name for the entitlement""" + has_soft_limit: Optional[bool] = FieldInfo(alias="hasSoftLimit", default=None) + """Whether the credit wallet is soft-limited. + + When true, getEntitlement returns hasAccess=true past the limit; vendors decide + whether to enforce. Defaults to false. + """ + hidden_from_widgets: List[Literal["PAYWALL", "CUSTOMER_PORTAL", "CHECKOUT"]] = FieldInfo(alias="hiddenFromWidgets") """Widget types where this entitlement is hidden""" diff --git a/tests/api_resources/v1/addons/test_entitlements.py b/tests/api_resources/v1/addons/test_entitlements.py index 54dddf81..b67e06f0 100644 --- a/tests/api_resources/v1/addons/test_entitlements.py +++ b/tests/api_resources/v1/addons/test_entitlements.py @@ -225,6 +225,7 @@ def test_method_update_with_all_params_overload_2(self, client: Stigg) -> None: dependency_feature_id="dependencyFeatureId", description="description", display_name_override="displayNameOverride", + has_soft_limit=True, hidden_from_widgets=["PAYWALL"], is_custom=True, is_granted=True, @@ -606,6 +607,7 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn dependency_feature_id="dependencyFeatureId", description="description", display_name_override="displayNameOverride", + has_soft_limit=True, hidden_from_widgets=["PAYWALL"], is_custom=True, is_granted=True, diff --git a/tests/api_resources/v1/plans/test_entitlements.py b/tests/api_resources/v1/plans/test_entitlements.py index ba95b043..f9ea9a53 100644 --- a/tests/api_resources/v1/plans/test_entitlements.py +++ b/tests/api_resources/v1/plans/test_entitlements.py @@ -225,6 +225,7 @@ def test_method_update_with_all_params_overload_2(self, client: Stigg) -> None: dependency_feature_id="dependencyFeatureId", description="description", display_name_override="displayNameOverride", + has_soft_limit=True, hidden_from_widgets=["PAYWALL"], is_custom=True, is_granted=True, @@ -606,6 +607,7 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn dependency_feature_id="dependencyFeatureId", description="description", display_name_override="displayNameOverride", + has_soft_limit=True, hidden_from_widgets=["PAYWALL"], is_custom=True, is_granted=True,