Skip to content

Commit d1f357b

Browse files
chore(api): update composite API spec
1 parent 4e313b0 commit d1f357b

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2276
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: f60cc2af36bbe305cda4bc0ad0617ff6
3+
openapi_spec_hash: 5cb356a7285c13aebeecc5b9e9a89f39
44
config_hash: 0148d517bb02129e9e259f11db3933eb

src/cloudflare/resources/email_sending/email_sending.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ def send(
9898
9999
headers: Custom email headers as key-value pairs.
100100
101-
html: HTML body of the email. At least one of text or html must be provided.
101+
html: HTML body of the email. At least one of text or html must be provided
102+
(non-empty).
102103
103104
reply_to: Reply-to address. Either a plain string or an object with address and name.
104105
105-
text: Plain text body of the email. At least one of text or html must be provided.
106+
text: Plain text body of the email. At least one of text or html must be provided
107+
(non-empty).
106108
107109
extra_headers: Send extra headers
108110
@@ -266,11 +268,13 @@ async def send(
266268
267269
headers: Custom email headers as key-value pairs.
268270
269-
html: HTML body of the email. At least one of text or html must be provided.
271+
html: HTML body of the email. At least one of text or html must be provided
272+
(non-empty).
270273
271274
reply_to: Reply-to address. Either a plain string or an object with address and name.
272275
273-
text: Plain text body of the email. At least one of text or html must be provided.
276+
text: Plain text body of the email. At least one of text or html must be provided
277+
(non-empty).
274278
275279
extra_headers: Send extra headers
276280

src/cloudflare/types/email_sending/email_sending_send_params.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ class EmailSendingSendParams(TypedDict, total=False):
4646
"""Custom email headers as key-value pairs."""
4747

4848
html: str
49-
"""HTML body of the email. At least one of text or html must be provided."""
49+
"""HTML body of the email.
50+
51+
At least one of text or html must be provided (non-empty).
52+
"""
5053

5154
reply_to: ReplyTo
5255
"""Reply-to address. Either a plain string or an object with address and name."""
5356

5457
text: str
55-
"""Plain text body of the email. At least one of text or html must be provided."""
58+
"""Plain text body of the email.
59+
60+
At least one of text or html must be provided (non-empty).
61+
"""
5662

5763

5864
class FromEmailSendingEmailAddressObject(TypedDict, total=False):

0 commit comments

Comments
 (0)