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.1.0-beta.40"
".": "0.1.0-beta.41"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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 = "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"
Expand Down
2 changes: 1 addition & 1 deletion src/stigg/_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__ = "stigg"
__version__ = "0.1.0-beta.40" # x-release-please-version
__version__ = "0.1.0-beta.41" # x-release-please-version
33 changes: 31 additions & 2 deletions src/stigg/types/v1/credits/credit_grant_response.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 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

from pydantic import Field as FieldInfo

from ...._models import BaseModel

__all__ = ["CreditGrantResponse", "Data", "DataCost", "DataLatestInvoice"]
__all__ = ["CreditGrantResponse", "Data", "DataCost", "DataLatestInvoice", "DataSyncState"]


class DataCost(BaseModel):
Expand Down Expand Up @@ -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"""

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

Expand Down
33 changes: 31 additions & 2 deletions src/stigg/types/v1/credits/grant_list_response.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 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

from pydantic import Field as FieldInfo

from ...._models import BaseModel

__all__ = ["GrantListResponse", "Cost", "LatestInvoice"]
__all__ = ["GrantListResponse", "Cost", "LatestInvoice", "SyncState"]


class Cost(BaseModel):
Expand Down Expand Up @@ -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"""

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

Expand Down