Skip to content

Commit 90730f2

Browse files
feat(api): api update
1 parent 437e308 commit 90730f2

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-c9124c257dd54dd0728cb57306b9082007439bfefac11642542605edb3e7606d.yml
3-
openapi_spec_hash: 61dc64cc814d10975a8825ec88fd9c1c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-91198c43ae28a64921f9740a0708e878ebdc14777a5b29d55b7948c927fc2866.yml
3+
openapi_spec_hash: c6cf7647a39bb0feb15b937f73e69eba
44
config_hash: 107ae5754168e80c4ad2cd779a75bc36

src/prelude_python_sdk/resources/notify.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def send(
311311
expires_at: Union[str, datetime] | Omit = omit,
312312
from_: str | Omit = omit,
313313
locale: str | Omit = omit,
314-
preferred_channel: Literal["sms", "whatsapp"] | Omit = omit,
314+
preferred_channel: Literal["sms", "rcs", "whatsapp"] | Omit = omit,
315315
schedule_at: Union[str, datetime] | Omit = omit,
316316
variables: Dict[str, str] | Omit = omit,
317317
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -322,8 +322,8 @@ def send(
322322
timeout: float | httpx.Timeout | None | NotGiven = not_given,
323323
) -> NotifySendResponse:
324324
"""
325-
Send transactional and marketing messages to your users via SMS and WhatsApp
326-
with automatic compliance enforcement.
325+
Send transactional and marketing messages to your users via SMS, RCS and
326+
WhatsApp with automatic compliance enforcement.
327327
328328
Args:
329329
template_id: The template identifier configured by your Customer Success team.
@@ -401,7 +401,7 @@ def send_batch(
401401
expires_at: Union[str, datetime] | Omit = omit,
402402
from_: str | Omit = omit,
403403
locale: str | Omit = omit,
404-
preferred_channel: Literal["sms", "whatsapp"] | Omit = omit,
404+
preferred_channel: Literal["sms", "rcs", "whatsapp"] | Omit = omit,
405405
schedule_at: Union[str, datetime] | Omit = omit,
406406
variables: Dict[str, str] | Omit = omit,
407407
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -745,7 +745,7 @@ async def send(
745745
expires_at: Union[str, datetime] | Omit = omit,
746746
from_: str | Omit = omit,
747747
locale: str | Omit = omit,
748-
preferred_channel: Literal["sms", "whatsapp"] | Omit = omit,
748+
preferred_channel: Literal["sms", "rcs", "whatsapp"] | Omit = omit,
749749
schedule_at: Union[str, datetime] | Omit = omit,
750750
variables: Dict[str, str] | Omit = omit,
751751
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -756,8 +756,8 @@ async def send(
756756
timeout: float | httpx.Timeout | None | NotGiven = not_given,
757757
) -> NotifySendResponse:
758758
"""
759-
Send transactional and marketing messages to your users via SMS and WhatsApp
760-
with automatic compliance enforcement.
759+
Send transactional and marketing messages to your users via SMS, RCS and
760+
WhatsApp with automatic compliance enforcement.
761761
762762
Args:
763763
template_id: The template identifier configured by your Customer Success team.
@@ -835,7 +835,7 @@ async def send_batch(
835835
expires_at: Union[str, datetime] | Omit = omit,
836836
from_: str | Omit = omit,
837837
locale: str | Omit = omit,
838-
preferred_channel: Literal["sms", "whatsapp"] | Omit = omit,
838+
preferred_channel: Literal["sms", "rcs", "whatsapp"] | Omit = omit,
839839
schedule_at: Union[str, datetime] | Omit = omit,
840840
variables: Dict[str, str] | Omit = omit,
841841
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/prelude_python_sdk/types/notify_send_batch_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class NotifySendBatchParams(TypedDict, total=False):
4343
locale: str
4444
"""A BCP-47 formatted locale string."""
4545

46-
preferred_channel: Literal["sms", "whatsapp"]
46+
preferred_channel: Literal["sms", "rcs", "whatsapp"]
4747
"""Preferred channel for delivery. If unavailable, automatic fallback applies."""
4848

4949
schedule_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]

src/prelude_python_sdk/types/notify_send_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class NotifySendParams(TypedDict, total=False):
5151
set on the template will be used.
5252
"""
5353

54-
preferred_channel: Literal["sms", "whatsapp"]
54+
preferred_channel: Literal["sms", "rcs", "whatsapp"]
5555
"""The preferred channel to be used in priority for message delivery.
5656
5757
If the channel is unavailable, the system will fallback to other available

0 commit comments

Comments
 (0)