Skip to content

Commit fa12d65

Browse files
chore(api): update composite API spec
1 parent 93ee2d1 commit fa12d65

17 files changed

Lines changed: 274 additions & 46 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2274
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 82017cd80d5b49cbf4bad39374e95cb6
3+
openapi_spec_hash: 2c458c0f5c0915d0daa7a320aa28da38
44
config_hash: b778c5565760a2c688557888c4ebd31a

src/cloudflare/resources/radar/http/http.py

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def summary_v2(
117117
"BOT_CLASS",
118118
"BROWSER",
119119
"BROWSER_FAMILY",
120+
"CONTENT_TYPE",
120121
"DEVICE_TYPE",
121122
"HTTP_PROTOCOL",
122123
"HTTP_VERSION",
@@ -130,6 +131,27 @@ def summary_v2(
130131
api_traffic: List[Literal["API", "NON_API"]] | Omit = omit,
131132
asn: SequenceNotStr[str] | Omit = omit,
132133
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | Omit = omit,
134+
content_type: List[
135+
Literal[
136+
"HTML",
137+
"IMAGES",
138+
"JSON",
139+
"JAVASCRIPT",
140+
"CSS",
141+
"PLAIN_TEXT",
142+
"FONTS",
143+
"XML",
144+
"YAML",
145+
"VIDEO",
146+
"AUDIO",
147+
"MARKDOWN",
148+
"DOCUMENTS",
149+
"BINARY",
150+
"SERIALIZATION",
151+
"OTHER",
152+
]
153+
]
154+
| Omit = omit,
133155
continent: SequenceNotStr[str] | Omit = omit,
134156
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
135157
date_range: SequenceNotStr[str] | Omit = omit,
@@ -169,6 +191,8 @@ def summary_v2(
169191
bot_class: Filters results by bot class. Refer to
170192
[Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).
171193
194+
content_type: Filters results by content type category.
195+
172196
continent: Filters results by continent. Specify a comma-separated list of alpha-2 codes.
173197
Prefix with `-` to exclude continents from results. For example, `-EU,NA`
174198
excludes results from EU, but includes results from NA.
@@ -232,6 +256,7 @@ def summary_v2(
232256
"api_traffic": api_traffic,
233257
"asn": asn,
234258
"bot_class": bot_class,
259+
"content_type": content_type,
235260
"continent": continent,
236261
"date_end": date_end,
237262
"date_range": date_range,
@@ -400,6 +425,7 @@ def timeseries_groups_v2(
400425
"BOT_CLASS",
401426
"BROWSER",
402427
"BROWSER_FAMILY",
428+
"CONTENT_TYPE",
403429
"DEVICE_TYPE",
404430
"HTTP_PROTOCOL",
405431
"HTTP_VERSION",
@@ -414,6 +440,27 @@ def timeseries_groups_v2(
414440
api_traffic: List[Literal["API", "NON_API"]] | Omit = omit,
415441
asn: SequenceNotStr[str] | Omit = omit,
416442
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | Omit = omit,
443+
content_type: List[
444+
Literal[
445+
"HTML",
446+
"IMAGES",
447+
"JSON",
448+
"JAVASCRIPT",
449+
"CSS",
450+
"PLAIN_TEXT",
451+
"FONTS",
452+
"XML",
453+
"YAML",
454+
"VIDEO",
455+
"AUDIO",
456+
"MARKDOWN",
457+
"DOCUMENTS",
458+
"BINARY",
459+
"SERIALIZATION",
460+
"OTHER",
461+
]
462+
]
463+
| Omit = omit,
417464
continent: SequenceNotStr[str] | Omit = omit,
418465
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
419466
date_range: SequenceNotStr[str] | Omit = omit,
@@ -458,6 +505,8 @@ def timeseries_groups_v2(
458505
bot_class: Filters results by bot class. Refer to
459506
[Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).
460507
508+
content_type: Filters results by content type category.
509+
461510
continent: Filters results by continent. Specify a comma-separated list of alpha-2 codes.
462511
Prefix with `-` to exclude continents from results. For example, `-EU,NA`
463512
excludes results from EU, but includes results from NA.
@@ -525,6 +574,7 @@ def timeseries_groups_v2(
525574
"api_traffic": api_traffic,
526575
"asn": asn,
527576
"bot_class": bot_class,
577+
"content_type": content_type,
528578
"continent": continent,
529579
"date_end": date_end,
530580
"date_range": date_range,
@@ -599,6 +649,7 @@ async def summary_v2(
599649
"BOT_CLASS",
600650
"BROWSER",
601651
"BROWSER_FAMILY",
652+
"CONTENT_TYPE",
602653
"DEVICE_TYPE",
603654
"HTTP_PROTOCOL",
604655
"HTTP_VERSION",
@@ -612,6 +663,27 @@ async def summary_v2(
612663
api_traffic: List[Literal["API", "NON_API"]] | Omit = omit,
613664
asn: SequenceNotStr[str] | Omit = omit,
614665
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | Omit = omit,
666+
content_type: List[
667+
Literal[
668+
"HTML",
669+
"IMAGES",
670+
"JSON",
671+
"JAVASCRIPT",
672+
"CSS",
673+
"PLAIN_TEXT",
674+
"FONTS",
675+
"XML",
676+
"YAML",
677+
"VIDEO",
678+
"AUDIO",
679+
"MARKDOWN",
680+
"DOCUMENTS",
681+
"BINARY",
682+
"SERIALIZATION",
683+
"OTHER",
684+
]
685+
]
686+
| Omit = omit,
615687
continent: SequenceNotStr[str] | Omit = omit,
616688
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
617689
date_range: SequenceNotStr[str] | Omit = omit,
@@ -651,6 +723,8 @@ async def summary_v2(
651723
bot_class: Filters results by bot class. Refer to
652724
[Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).
653725
726+
content_type: Filters results by content type category.
727+
654728
continent: Filters results by continent. Specify a comma-separated list of alpha-2 codes.
655729
Prefix with `-` to exclude continents from results. For example, `-EU,NA`
656730
excludes results from EU, but includes results from NA.
@@ -714,6 +788,7 @@ async def summary_v2(
714788
"api_traffic": api_traffic,
715789
"asn": asn,
716790
"bot_class": bot_class,
791+
"content_type": content_type,
717792
"continent": continent,
718793
"date_end": date_end,
719794
"date_range": date_range,
@@ -882,6 +957,7 @@ async def timeseries_groups_v2(
882957
"BOT_CLASS",
883958
"BROWSER",
884959
"BROWSER_FAMILY",
960+
"CONTENT_TYPE",
885961
"DEVICE_TYPE",
886962
"HTTP_PROTOCOL",
887963
"HTTP_VERSION",
@@ -896,6 +972,27 @@ async def timeseries_groups_v2(
896972
api_traffic: List[Literal["API", "NON_API"]] | Omit = omit,
897973
asn: SequenceNotStr[str] | Omit = omit,
898974
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | Omit = omit,
975+
content_type: List[
976+
Literal[
977+
"HTML",
978+
"IMAGES",
979+
"JSON",
980+
"JAVASCRIPT",
981+
"CSS",
982+
"PLAIN_TEXT",
983+
"FONTS",
984+
"XML",
985+
"YAML",
986+
"VIDEO",
987+
"AUDIO",
988+
"MARKDOWN",
989+
"DOCUMENTS",
990+
"BINARY",
991+
"SERIALIZATION",
992+
"OTHER",
993+
]
994+
]
995+
| Omit = omit,
899996
continent: SequenceNotStr[str] | Omit = omit,
900997
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
901998
date_range: SequenceNotStr[str] | Omit = omit,
@@ -940,6 +1037,8 @@ async def timeseries_groups_v2(
9401037
bot_class: Filters results by bot class. Refer to
9411038
[Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).
9421039
1040+
content_type: Filters results by content type category.
1041+
9431042
continent: Filters results by continent. Specify a comma-separated list of alpha-2 codes.
9441043
Prefix with `-` to exclude continents from results. For example, `-EU,NA`
9451044
excludes results from EU, but includes results from NA.
@@ -1007,6 +1106,7 @@ async def timeseries_groups_v2(
10071106
"api_traffic": api_traffic,
10081107
"asn": asn,
10091108
"bot_class": bot_class,
1109+
"content_type": content_type,
10101110
"continent": continent,
10111111
"date_end": date_end,
10121112
"date_range": date_range,

src/cloudflare/types/radar/http_summary_v2_params.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,31 @@ class HTTPSummaryV2Params(TypedDict, total=False):
3535
[Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).
3636
"""
3737

38+
content_type: Annotated[
39+
List[
40+
Literal[
41+
"HTML",
42+
"IMAGES",
43+
"JSON",
44+
"JAVASCRIPT",
45+
"CSS",
46+
"PLAIN_TEXT",
47+
"FONTS",
48+
"XML",
49+
"YAML",
50+
"VIDEO",
51+
"AUDIO",
52+
"MARKDOWN",
53+
"DOCUMENTS",
54+
"BINARY",
55+
"SERIALIZATION",
56+
"OTHER",
57+
]
58+
],
59+
PropertyInfo(alias="contentType"),
60+
]
61+
"""Filters results by content type category."""
62+
3863
continent: SequenceNotStr[str]
3964
"""Filters results by continent.
4065

src/cloudflare/types/radar/http_timeseries_groups_v2_params.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,31 @@ class HTTPTimeseriesGroupsV2Params(TypedDict, total=False):
4242
[Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).
4343
"""
4444

45+
content_type: Annotated[
46+
List[
47+
Literal[
48+
"HTML",
49+
"IMAGES",
50+
"JSON",
51+
"JAVASCRIPT",
52+
"CSS",
53+
"PLAIN_TEXT",
54+
"FONTS",
55+
"XML",
56+
"YAML",
57+
"VIDEO",
58+
"AUDIO",
59+
"MARKDOWN",
60+
"DOCUMENTS",
61+
"BINARY",
62+
"SERIALIZATION",
63+
"OTHER",
64+
]
65+
],
66+
PropertyInfo(alias="contentType"),
67+
]
68+
"""Filters results by content type category."""
69+
4570
continent: SequenceNotStr[str]
4671
"""Filters results by continent.
4772

src/cloudflare/types/workers/observability/destination_create_params.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ class Configuration(TypedDict, total=False):
2626
headers: Required[Dict[str, str]]
2727

2828
logpush_dataset: Required[
29-
Annotated[Literal["opentelemetry-traces", "opentelemetry-logs"], PropertyInfo(alias="logpushDataset")]
29+
Annotated[
30+
Literal["opentelemetry-traces", "opentelemetry-logs", "opentelemetry-metrics"],
31+
PropertyInfo(alias="logpushDataset"),
32+
]
3033
]
3134

3235
type: Required[Literal["logpush"]]

src/cloudflare/types/workers/observability/destination_create_response.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
class Configuration(BaseModel):
1414
destination_conf: str
1515

16-
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs"] = FieldInfo(alias="logpushDataset")
16+
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs", "opentelemetry-metrics"] = FieldInfo(
17+
alias="logpushDataset"
18+
)
1719

1820
logpush_job: float = FieldInfo(alias="logpushJob")
1921

src/cloudflare/types/workers/observability/destination_delete_response.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
class Configuration(BaseModel):
1414
destination_conf: str
1515

16-
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs"] = FieldInfo(alias="logpushDataset")
16+
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs", "opentelemetry-metrics"] = FieldInfo(
17+
alias="logpushDataset"
18+
)
1719

1820
logpush_job: float = FieldInfo(alias="logpushJob")
1921

src/cloudflare/types/workers/observability/destination_list_response.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ class Configuration(BaseModel):
2525

2626
job_status: ConfigurationJobStatus = FieldInfo(alias="jobStatus")
2727

28-
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs"] = FieldInfo(alias="logpushDataset")
28+
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs", "opentelemetry-metrics"] = FieldInfo(
29+
alias="logpushDataset"
30+
)
2931

3032
type: Literal["logpush"]
3133

src/cloudflare/types/workers/observability/destination_update_response.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
class Configuration(BaseModel):
1414
destination_conf: str
1515

16-
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs"] = FieldInfo(alias="logpushDataset")
16+
logpush_dataset: Literal["opentelemetry-traces", "opentelemetry-logs", "opentelemetry-metrics"] = FieldInfo(
17+
alias="logpushDataset"
18+
)
1719

1820
logpush_job: float = FieldInfo(alias="logpushJob")
1921

src/cloudflare/types/workers/observability/query_create_params.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class ParametersFilterWorkersObservabilityFilterLeaf(TypedDict, total=False):
111111
"includes",
112112
"not_includes",
113113
"starts_with",
114+
"ends_with",
114115
"regex",
115116
"exists",
116117
"is_null",
@@ -136,13 +137,14 @@ class ParametersFilterWorkersObservabilityFilterLeaf(TypedDict, total=False):
136137
"IN",
137138
"NOT_IN",
138139
"STARTS_WITH",
140+
"ENDS_WITH",
139141
]
140142
]
141143
"""Comparison operator.
142144
143-
String operators: includes, not_includes, starts_with, regex. Existence: exists,
144-
is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq,
145-
gt, gte, lt, lte.
145+
String operators: includes, not_includes, starts_with, ends_with, regex.
146+
Existence: exists, is_null. Set membership: in, not_in (comma-separated values).
147+
Numeric: eq, neq, gt, gte, lt, lte.
146148
"""
147149

148150
type: Required[Literal["string", "number", "boolean"]]

0 commit comments

Comments
 (0)