Skip to content

Commit e9014f5

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: 6eb3ec4
1 parent fa64190 commit e9014f5

6 files changed

Lines changed: 52 additions & 69 deletions

File tree

‎api.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ Methods:
433433
Types:
434434

435435
```python
436-
from sent_dm.types.channels.sms import APIResponseOfSuppliedCompliance
436+
from sent_dm.types.channels.sms import APIResponseOfSuppliedCompliance, TenDlcCampaignUseCase
437437
```
438438

439439
Methods:

‎src/sent_dm/resources/channels/sms/ten_dlc.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
)
2525
from ....types.channels.sms_number_request_param import SMSNumberRequestParam
2626
from ....types.channels.api_response_of_sms_market import APIResponseOfSMSMarket
27+
from ....types.channels.sms.ten_dlc_campaign_use_case_param import TenDlcCampaignUseCaseParam
2728
from ....types.channels.sms.api_response_of_supplied_compliance import APIResponseOfSuppliedCompliance
2829

2930
__all__ = ["TenDlcResource", "AsyncTenDlcResource"]
@@ -77,7 +78,7 @@ def add_campaign(
7778
privacy_policy_link: str | Omit = omit,
7879
sandbox: bool | Omit = omit,
7980
terms_and_conditions_link: str | Omit = omit,
80-
use_cases: Iterable[ten_dlc_add_campaign_params.UseCase] | Omit = omit,
81+
use_cases: Iterable[TenDlcCampaignUseCaseParam] | Omit = omit,
8182
volume: str | Omit = omit,
8283
x_profile_id: str | Omit = omit,
8384
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -361,7 +362,7 @@ def update_campaign(
361362
privacy_policy_link: str | Omit = omit,
362363
sandbox: bool | Omit = omit,
363364
terms_and_conditions_link: str | Omit = omit,
364-
use_cases: Iterable[ten_dlc_update_campaign_params.UseCase] | Omit = omit,
365+
use_cases: Iterable[TenDlcCampaignUseCaseParam] | Omit = omit,
365366
volume: str | Omit = omit,
366367
idempotency_key: str | Omit = omit,
367368
x_profile_id: str | Omit = omit,
@@ -542,7 +543,7 @@ async def add_campaign(
542543
privacy_policy_link: str | Omit = omit,
543544
sandbox: bool | Omit = omit,
544545
terms_and_conditions_link: str | Omit = omit,
545-
use_cases: Iterable[ten_dlc_add_campaign_params.UseCase] | Omit = omit,
546+
use_cases: Iterable[TenDlcCampaignUseCaseParam] | Omit = omit,
546547
volume: str | Omit = omit,
547548
x_profile_id: str | Omit = omit,
548549
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -826,7 +827,7 @@ async def update_campaign(
826827
privacy_policy_link: str | Omit = omit,
827828
sandbox: bool | Omit = omit,
828829
terms_and_conditions_link: str | Omit = omit,
829-
use_cases: Iterable[ten_dlc_update_campaign_params.UseCase] | Omit = omit,
830+
use_cases: Iterable[TenDlcCampaignUseCaseParam] | Omit = omit,
830831
volume: str | Omit = omit,
831832
idempotency_key: str | Omit = omit,
832833
x_profile_id: str | Omit = omit,

‎src/sent_dm/types/channels/sms/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
from .ten_dlc_add_numbers_params import TenDlcAddNumbersParams as TenDlcAddNumbersParams
66
from .ten_dlc_add_campaign_params import TenDlcAddCampaignParams as TenDlcAddCampaignParams
77
from .ten_dlc_update_campaign_params import TenDlcUpdateCampaignParams as TenDlcUpdateCampaignParams
8+
from .ten_dlc_campaign_use_case_param import TenDlcCampaignUseCaseParam as TenDlcCampaignUseCaseParam
89
from .api_response_of_supplied_compliance import APIResponseOfSuppliedCompliance as APIResponseOfSuppliedCompliance

‎src/sent_dm/types/channels/sms/ten_dlc_add_campaign_params.py‎

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
from __future__ import annotations
44

55
from typing import Iterable
6-
from typing_extensions import Literal, Required, Annotated, TypedDict
6+
from typing_extensions import Required, Annotated, TypedDict
77

88
from ...._utils import PropertyInfo
9+
from .ten_dlc_campaign_use_case_param import TenDlcCampaignUseCaseParam
910

10-
__all__ = ["TenDlcAddCampaignParams", "UseCase"]
11+
__all__ = ["TenDlcAddCampaignParams"]
1112

1213

1314
class TenDlcAddCampaignParams(TypedDict, total=False):
@@ -93,7 +94,7 @@ class TenDlcAddCampaignParams(TypedDict, total=False):
9394
TCR termsAndConditionsLink. Required when `compliance.campaign.inherit != true`.
9495
"""
9596

96-
use_cases: Iterable[UseCase]
97+
use_cases: Iterable[TenDlcCampaignUseCaseParam]
9798
"""Use cases.
9899
99100
What the campaign sends, and an example of each. One to five entries; how they
@@ -111,32 +112,3 @@ class TenDlcAddCampaignParams(TypedDict, total=False):
111112
"""
112113

113114
x_profile_id: Annotated[str, PropertyInfo(alias="x-profile-id")]
114-
115-
116-
class UseCase(TypedDict, total=False):
117-
sample_messages: Required[Iterable[object]]
118-
"""Sample messages.
119-
120-
TCR sample1..sample5 for this use case. One to five, each carrying the brand
121-
name and an opt-out instruction.
122-
"""
123-
124-
use_case: Required[
125-
Literal[
126-
"MARKETING",
127-
"ACCOUNT_NOTIFICATION",
128-
"CUSTOMER_CARE",
129-
"FRAUD_ALERT",
130-
"2FA",
131-
"DELIVERY_NOTIFICATION",
132-
"SECURITY_ALERT",
133-
"M2M",
134-
"HIGHER_EDUCATION",
135-
"POLLING_VOTING",
136-
"PUBLIC_SERVICE_ANNOUNCEMENT",
137-
]
138-
]
139-
"""Use case.
140-
141-
What this entry sends. MIXED and LOW_VOLUME are refused — volume decides those.
142-
"""
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing import Iterable
6+
from typing_extensions import Literal, Required, TypedDict
7+
8+
__all__ = ["TenDlcCampaignUseCaseParam"]
9+
10+
11+
class TenDlcCampaignUseCaseParam(TypedDict, total=False):
12+
sample_messages: Required[Iterable[object]]
13+
"""Sample messages.
14+
15+
TCR sample1..sample5 for this use case. One to five, each carrying the brand
16+
name and an opt-out instruction.
17+
"""
18+
19+
use_case: Required[
20+
Literal[
21+
"MARKETING",
22+
"ACCOUNT_NOTIFICATION",
23+
"CUSTOMER_CARE",
24+
"FRAUD_ALERT",
25+
"2FA",
26+
"DELIVERY_NOTIFICATION",
27+
"SECURITY_ALERT",
28+
"M2M",
29+
"HIGHER_EDUCATION",
30+
"POLLING_VOTING",
31+
"PUBLIC_SERVICE_ANNOUNCEMENT",
32+
]
33+
]
34+
"""Use case.
35+
36+
What this entry sends. MIXED and LOW_VOLUME are refused — volume decides those.
37+
"""

‎src/sent_dm/types/channels/sms/ten_dlc_update_campaign_params.py‎

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
from __future__ import annotations
44

55
from typing import Iterable
6-
from typing_extensions import Literal, Required, Annotated, TypedDict
6+
from typing_extensions import Annotated, TypedDict
77

88
from ...._utils import PropertyInfo
9+
from .ten_dlc_campaign_use_case_param import TenDlcCampaignUseCaseParam
910

10-
__all__ = ["TenDlcUpdateCampaignParams", "UseCase"]
11+
__all__ = ["TenDlcUpdateCampaignParams"]
1112

1213

1314
class TenDlcUpdateCampaignParams(TypedDict, total=False):
@@ -91,7 +92,7 @@ class TenDlcUpdateCampaignParams(TypedDict, total=False):
9192
TCR termsAndConditionsLink. Required when `compliance.campaign.inherit != true`.
9293
"""
9394

94-
use_cases: Iterable[UseCase]
95+
use_cases: Iterable[TenDlcCampaignUseCaseParam]
9596
"""Use cases.
9697
9798
What the campaign sends, and an example of each. One to five entries; how they
@@ -111,32 +112,3 @@ class TenDlcUpdateCampaignParams(TypedDict, total=False):
111112
idempotency_key: Annotated[str, PropertyInfo(alias="Idempotency-Key")]
112113

113114
x_profile_id: Annotated[str, PropertyInfo(alias="x-profile-id")]
114-
115-
116-
class UseCase(TypedDict, total=False):
117-
sample_messages: Required[Iterable[object]]
118-
"""Sample messages.
119-
120-
TCR sample1..sample5 for this use case. One to five, each carrying the brand
121-
name and an opt-out instruction.
122-
"""
123-
124-
use_case: Required[
125-
Literal[
126-
"MARKETING",
127-
"ACCOUNT_NOTIFICATION",
128-
"CUSTOMER_CARE",
129-
"FRAUD_ALERT",
130-
"2FA",
131-
"DELIVERY_NOTIFICATION",
132-
"SECURITY_ALERT",
133-
"M2M",
134-
"HIGHER_EDUCATION",
135-
"POLLING_VOTING",
136-
"PUBLIC_SERVICE_ANNOUNCEMENT",
137-
]
138-
]
139-
"""Use case.
140-
141-
What this entry sends. MIXED and LOW_VOLUME are refused — volume decides those.
142-
"""

0 commit comments

Comments
 (0)