Skip to content

Commit 44ae23e

Browse files
chore(api): update composite API spec
1 parent 2938b45 commit 44ae23e

3 files changed

Lines changed: 52 additions & 2 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: 2010
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f261e6705bb6f83a0164abf06b939c20f93ba64124c95e804d84a03859371076.yml
3-
openapi_spec_hash: 0f05f1a1a5e24d0275e0d8b347fd84de
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e698017772b79ecded767e9d0c858d903bb6c0bdcb8d7f2d4e54d5a0a6da5490.yml
3+
openapi_spec_hash: 062323f5fc00ff86b482e98509a36b65
44
config_hash: 82cfe5a4a27ca8b4eb41cee4987d6c77

src/cloudflare/types/zones/setting_edit_response.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"ZonesSchemasBrowserCheck",
4646
"ZonesSchemasCacheLevel",
4747
"ZonesChinaNetworkEnabled",
48+
"ZonesContentConverter",
4849
"ZonesCNAMEFlattening",
4950
"ZonesSchemasEdgeCacheTTL",
5051
"ZonesSchemasEmailObfuscation",
@@ -224,6 +225,29 @@ class ZonesChinaNetworkEnabled(BaseModel):
224225
"""last time this setting was modified."""
225226

226227

228+
class ZonesContentConverter(BaseModel):
229+
"""
230+
When enabled and the client sends an Accept header requesting text/markdown,
231+
Cloudflare will convert HTML responses to Markdown format using the toMarkdown() service.
232+
Refer to the [developer documentation](https://developers.cloudflare.com/workers-ai/features/markdown-conversion/) for more information.
233+
"""
234+
235+
id: Literal["content_converter"]
236+
"""ID of the zone setting."""
237+
238+
value: Literal["off", "on"]
239+
"""Current value of the zone setting."""
240+
241+
editable: Optional[Literal[True, False]] = None
242+
"""
243+
Whether or not this setting can be modified for this zone (based on your
244+
Cloudflare plan level).
245+
"""
246+
247+
modified_on: Optional[datetime] = None
248+
"""last time this setting was modified."""
249+
250+
227251
class ZonesCNAMEFlattening(BaseModel):
228252
"""Whether or not cname flattening is on."""
229253

@@ -774,6 +798,7 @@ class ZonesSchemasWAF(BaseModel):
774798
ZonesSchemasCacheLevel,
775799
ChallengeTTL,
776800
ZonesChinaNetworkEnabled,
801+
ZonesContentConverter,
777802
Ciphers,
778803
ZonesCNAMEFlattening,
779804
DevelopmentMode,

src/cloudflare/types/zones/setting_get_response.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"ZonesSchemasBrowserCheck",
4646
"ZonesSchemasCacheLevel",
4747
"ZonesChinaNetworkEnabled",
48+
"ZonesContentConverter",
4849
"ZonesCNAMEFlattening",
4950
"ZonesSchemasEdgeCacheTTL",
5051
"ZonesSchemasEmailObfuscation",
@@ -224,6 +225,29 @@ class ZonesChinaNetworkEnabled(BaseModel):
224225
"""last time this setting was modified."""
225226

226227

228+
class ZonesContentConverter(BaseModel):
229+
"""
230+
When enabled and the client sends an Accept header requesting text/markdown,
231+
Cloudflare will convert HTML responses to Markdown format using the toMarkdown() service.
232+
Refer to the [developer documentation](https://developers.cloudflare.com/workers-ai/features/markdown-conversion/) for more information.
233+
"""
234+
235+
id: Literal["content_converter"]
236+
"""ID of the zone setting."""
237+
238+
value: Literal["off", "on"]
239+
"""Current value of the zone setting."""
240+
241+
editable: Optional[Literal[True, False]] = None
242+
"""
243+
Whether or not this setting can be modified for this zone (based on your
244+
Cloudflare plan level).
245+
"""
246+
247+
modified_on: Optional[datetime] = None
248+
"""last time this setting was modified."""
249+
250+
227251
class ZonesCNAMEFlattening(BaseModel):
228252
"""Whether or not cname flattening is on."""
229253

@@ -774,6 +798,7 @@ class ZonesSchemasWAF(BaseModel):
774798
ZonesSchemasCacheLevel,
775799
ChallengeTTL,
776800
ZonesChinaNetworkEnabled,
801+
ZonesContentConverter,
777802
Ciphers,
778803
ZonesCNAMEFlattening,
779804
DevelopmentMode,

0 commit comments

Comments
 (0)