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.21.0"
".": "0.22.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-76b9f958d52051835b5b92d6c7a991f20054fbe2fd16dcf64da9a6852be827b7.yml
openapi_spec_hash: 5945e9f5b70dcdadef12799cebdc0882
config_hash: 405ade725d72d542c60de821a127411b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-a34b910ee6fc615658e95cd3023b42e077e071544040a8f501f622cb56783849.yml
openapi_spec_hash: 8bca9cf77bd3afb492b69eb8aab3d9b4
config_hash: 8bc6d28d291ed9164b9a1ac9ca036348
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.22.0 (2026-04-29)

Full Changelog: [v0.21.0...v0.22.0](https://github.com/sentdm/sent-dm-python/compare/v0.21.0...v0.22.0)

### Features

* **api:** manual updates ([062fdc5](https://github.com/sentdm/sent-dm-python/commit/062fdc510ad0b0642aa65e70d5b3d250a7fb9fc5))

## 0.21.0 (2026-04-28)

Full Changelog: [v0.20.1...v0.21.0](https://github.com/sentdm/sent-dm-python/compare/v0.20.1...v0.21.0)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ from sent_dm.types import (
ErrorDetail,
MutationRequest,
PaginationMeta,
WebhookEventType,
WebhookResponse,
WebhookListResponse,
WebhookListEventTypesResponse,
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 = "sentdm"
version = "0.21.0"
version = "0.22.0"
description = "The official Python library for the Sent API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/sent_dm/_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__ = "sent_dm"
__version__ = "0.21.0" # x-release-please-version
__version__ = "0.22.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/sent_dm/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

from . import webhook_event_type, webhook_list_event_types_response
from .. import _compat
from .api_meta import APIMeta as APIMeta
from .template import Template as Template
from .error_detail import ErrorDetail as ErrorDetail
Expand All @@ -15,6 +17,7 @@
from .user_invite_params import UserInviteParams as UserInviteParams
from .user_list_response import UserListResponse as UserListResponse
from .user_remove_params import UserRemoveParams as UserRemoveParams
from .webhook_event_type import WebhookEventType as WebhookEventType
from .contact_list_params import ContactListParams as ContactListParams
from .destination_country import DestinationCountry as DestinationCountry
from .message_send_params import MessageSendParams as MessageSendParams
Expand Down Expand Up @@ -91,3 +94,14 @@
from .sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info_param import (
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoParam as SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoParam,
)

# Rebuild cyclical models only after all modules are imported.
# This ensures that, when building the deferred (due to cyclical references) model schema,
# Pydantic can resolve the necessary references.
# See: https://github.com/pydantic/pydantic/issues/11250 for more context.
if _compat.PYDANTIC_V1:
webhook_event_type.WebhookEventType.update_forward_refs() # type: ignore
webhook_list_event_types_response.WebhookListEventTypesResponse.update_forward_refs() # type: ignore
else:
webhook_event_type.WebhookEventType.model_rebuild(_parent_namespace_depth=0)
webhook_list_event_types_response.WebhookListEventTypesResponse.model_rebuild(_parent_namespace_depth=0)
23 changes: 23 additions & 0 deletions src/sent_dm/types/webhook_event_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import List, Optional

from .._models import BaseModel

__all__ = ["WebhookEventType"]


class WebhookEventType(BaseModel):
description: Optional[str] = None

display_name: Optional[str] = None

event_type: Optional[str] = None

is_active: Optional[bool] = None

name: Optional[str] = None

sub_types: Optional[List["WebhookEventType"]] = None
23 changes: 7 additions & 16 deletions src/sent_dm/types/webhook_list_event_types_response.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import List, Optional

from .._models import BaseModel
from .api_meta import APIMeta
from .error_detail import ErrorDetail

__all__ = ["WebhookListEventTypesResponse", "Data", "DataEventType"]


class DataEventType(BaseModel):
description: Optional[str] = None

display_name: Optional[str] = None

event_type: Optional[str] = None

is_active: Optional[bool] = None

name: Optional[str] = None

sub_types: Optional[List[object]] = None
__all__ = ["WebhookListEventTypesResponse", "Data"]


class Data(BaseModel):
"""The response data (null if error)"""

event_types: Optional[List[DataEventType]] = None
event_types: Optional[List["WebhookEventType"]] = None


class WebhookListEventTypesResponse(BaseModel):
Expand All @@ -43,3 +31,6 @@ class WebhookListEventTypesResponse(BaseModel):

success: Optional[bool] = None
"""Indicates whether the request was successful"""


from .webhook_event_type import WebhookEventType
Loading