diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fe045cce..cae2247f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-beta.40" + ".": "0.1.0-beta.41" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 4d3f0511..b12bc4d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 115 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-092e0212b2a8a75f1b2cd896ef37a8128ba10767402a54577e6363dfaca5da16.yml -openapi_spec_hash: 2b1d6d7765e3c45ebfdac89592b42f26 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-95d84a1adc011f81086082cfbec6796bae04f4cba0c226965bfd40c53a65d321.yml +openapi_spec_hash: 1937e480aaa2d33272faa8df909df9f3 config_hash: 3d43e5c6ff8bf447a1b4c1922a13119f diff --git a/CHANGELOG.md b/CHANGELOG.md index 91cbea94..f6d3a9e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-beta.41 (2026-07-21) + +Full Changelog: [v0.1.0-beta.40...v0.1.0-beta.41](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.40...v0.1.0-beta.41) + +### Features + +* **api:** add sync_states field to credit grant responses ([ee95962](https://github.com/stiggio/stigg-python/commit/ee95962c9188c1f592210dd25ab2c7fdd0fd1d36)) + ## 0.1.0-beta.40 (2026-07-21) Full Changelog: [v0.1.0-beta.39...v0.1.0-beta.40](https://github.com/stiggio/stigg-python/compare/v0.1.0-beta.39...v0.1.0-beta.40) diff --git a/pyproject.toml b/pyproject.toml index 04613fbd..344dddda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stigg" -version = "0.1.0-beta.40" +version = "0.1.0-beta.41" 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 18c2a5b7..55e6a8b7 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.40" # x-release-please-version +__version__ = "0.1.0-beta.41" # x-release-please-version diff --git a/src/stigg/types/v1/credits/credit_grant_response.py b/src/stigg/types/v1/credits/credit_grant_response.py index 3d7b9cda..c2cd695e 100644 --- a/src/stigg/types/v1/credits/credit_grant_response.py +++ b/src/stigg/types/v1/credits/credit_grant_response.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Dict, Optional +from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal @@ -8,7 +8,7 @@ from ...._models import BaseModel -__all__ = ["CreditGrantResponse", "Data", "DataCost", "DataLatestInvoice"] +__all__ = ["CreditGrantResponse", "Data", "DataCost", "DataLatestInvoice", "DataSyncState"] class DataCost(BaseModel): @@ -67,6 +67,32 @@ class DataLatestInvoice(BaseModel): """The invoice last update date""" +class DataSyncState(BaseModel): + status: Literal["PENDING", "ERROR", "SUCCESS", "NO_SYNC_REQUIRED"] + """Status of the integration sync""" + + synced_entity_id: Optional[str] = FieldInfo(alias="syncedEntityId", default=None) + """Synced entity id""" + + vendor_identifier: Literal[ + "AUTH0", + "ZUORA", + "STRIPE", + "HUBSPOT", + "AWS_MARKETPLACE", + "SNOWFLAKE", + "SALESFORCE", + "BIG_QUERY", + "OPEN_FGA", + "APP_STORE", + "RECEIVED", + "PREQUEL", + "AIRWALLEX", + "STRIPE_INVOICING", + ] = FieldInfo(alias="vendorIdentifier") + """The vendor identifier of integration""" + + class Data(BaseModel): """Credit grant object representing allocated credits for a customer""" @@ -134,6 +160,9 @@ class Data(BaseModel): status: Literal["PAYMENT_PENDING", "ACTIVE", "EXPIRED", "VOIDED", "SCHEDULED"] """The effective status of the credit grant""" + sync_states: Optional[List[DataSyncState]] = FieldInfo(alias="syncStates", default=None) + """The synchronization states of the entity with external systems""" + updated_at: datetime = FieldInfo(alias="updatedAt") """Timestamp of when the record was last updated""" diff --git a/src/stigg/types/v1/credits/grant_list_response.py b/src/stigg/types/v1/credits/grant_list_response.py index f29f2e37..75b51123 100644 --- a/src/stigg/types/v1/credits/grant_list_response.py +++ b/src/stigg/types/v1/credits/grant_list_response.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Dict, Optional +from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal @@ -8,7 +8,7 @@ from ...._models import BaseModel -__all__ = ["GrantListResponse", "Cost", "LatestInvoice"] +__all__ = ["GrantListResponse", "Cost", "LatestInvoice", "SyncState"] class Cost(BaseModel): @@ -67,6 +67,32 @@ class LatestInvoice(BaseModel): """The invoice last update date""" +class SyncState(BaseModel): + status: Literal["PENDING", "ERROR", "SUCCESS", "NO_SYNC_REQUIRED"] + """Status of the integration sync""" + + synced_entity_id: Optional[str] = FieldInfo(alias="syncedEntityId", default=None) + """Synced entity id""" + + vendor_identifier: Literal[ + "AUTH0", + "ZUORA", + "STRIPE", + "HUBSPOT", + "AWS_MARKETPLACE", + "SNOWFLAKE", + "SALESFORCE", + "BIG_QUERY", + "OPEN_FGA", + "APP_STORE", + "RECEIVED", + "PREQUEL", + "AIRWALLEX", + "STRIPE_INVOICING", + ] = FieldInfo(alias="vendorIdentifier") + """The vendor identifier of integration""" + + class GrantListResponse(BaseModel): """Credit grant object representing allocated credits for a customer""" @@ -134,6 +160,9 @@ class GrantListResponse(BaseModel): status: Literal["PAYMENT_PENDING", "ACTIVE", "EXPIRED", "VOIDED", "SCHEDULED"] """The effective status of the credit grant""" + sync_states: Optional[List[SyncState]] = FieldInfo(alias="syncStates", default=None) + """The synchronization states of the entity with external systems""" + updated_at: datetime = FieldInfo(alias="updatedAt") """Timestamp of when the record was last updated"""