Skip to content

Commit 68ba7ab

Browse files
feat(api): api update
1 parent 421a68d commit 68ba7ab

11 files changed

Lines changed: 76 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: 1807
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7d67eb28078aa8b72984513dd34c71e12c19fab746962855bce3b91596f528fd.yml
3-
openapi_spec_hash: ae76bfc1c5cff64f289acf8ef976ce90
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-adc7836bbf10cb572a6a89e39541c4747e88ee2e268f0f2b446f922e2fe7d259.yml
3+
openapi_spec_hash: f55cbf5b23149fed57cb148644b89df4
44
config_hash: 9f61e9f02b675e373b140471d52b670c

src/cloudflare/resources/radar/bots/bots.py

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def list(
9393
bot_operator: str | NotGiven = NOT_GIVEN,
9494
bot_verification_status: Literal["VERIFIED"] | NotGiven = NOT_GIVEN,
9595
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
96+
kind: Literal["AGENT", "BOT"] | NotGiven = NOT_GIVEN,
9697
limit: int | NotGiven = NOT_GIVEN,
9798
offset: int | NotGiven = NOT_GIVEN,
9899
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -114,6 +115,8 @@ def list(
114115
115116
format: Format in which results will be returned.
116117
118+
kind: Filters results by bot kind.
119+
117120
limit: Limits the number of objects returned in the response.
118121
119122
offset: Skips the specified number of objects before fetching the results.
@@ -139,6 +142,7 @@ def list(
139142
"bot_operator": bot_operator,
140143
"bot_verification_status": bot_verification_status,
141144
"format": format,
145+
"kind": kind,
142146
"limit": limit,
143147
"offset": offset,
144148
},
@@ -194,7 +198,7 @@ def get(
194198

195199
def summary(
196200
self,
197-
dimension: Literal["BOT", "BOT_OPERATOR", "BOT_CATEGORY"],
201+
dimension: Literal["BOT", "BOT_KIND", "BOT_OPERATOR", "BOT_CATEGORY"],
198202
*,
199203
asn: List[str] | NotGiven = NOT_GIVEN,
200204
bot: List[str] | NotGiven = NOT_GIVEN,
@@ -219,6 +223,7 @@ def summary(
219223
]
220224
]
221225
| NotGiven = NOT_GIVEN,
226+
bot_kind: List[Literal["AGENT", "BOT"]] | NotGiven = NOT_GIVEN,
222227
bot_operator: List[str] | NotGiven = NOT_GIVEN,
223228
bot_verification_status: List[Literal["VERIFIED"]] | NotGiven = NOT_GIVEN,
224229
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -252,6 +257,8 @@ def summary(
252257
253258
bot_category: Filters results by bot category.
254259
260+
bot_kind: Filters results by bot kind.
261+
255262
bot_operator: Filters results by bot operator.
256263
257264
bot_verification_status: Filters results by bot verification status (Verified vs. Unverified).
@@ -302,6 +309,7 @@ def summary(
302309
"asn": asn,
303310
"bot": bot,
304311
"bot_category": bot_category,
312+
"bot_kind": bot_kind,
305313
"bot_operator": bot_operator,
306314
"bot_verification_status": bot_verification_status,
307315
"continent": continent,
@@ -347,6 +355,7 @@ def timeseries(
347355
]
348356
]
349357
| NotGiven = NOT_GIVEN,
358+
bot_kind: List[Literal["AGENT", "BOT"]] | NotGiven = NOT_GIVEN,
350359
bot_operator: List[str] | NotGiven = NOT_GIVEN,
351360
bot_verification_status: List[Literal["VERIFIED"]] | NotGiven = NOT_GIVEN,
352361
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -380,6 +389,8 @@ def timeseries(
380389
381390
bot_category: Filters results by bot category.
382391
392+
bot_kind: Filters results by bot kind.
393+
383394
bot_operator: Filters results by bot operator.
384395
385396
bot_verification_status: Filters results by bot verification status (Verified vs. Unverified).
@@ -425,6 +436,7 @@ def timeseries(
425436
"asn": asn,
426437
"bot": bot,
427438
"bot_category": bot_category,
439+
"bot_kind": bot_kind,
428440
"bot_operator": bot_operator,
429441
"bot_verification_status": bot_verification_status,
430442
"continent": continent,
@@ -444,7 +456,7 @@ def timeseries(
444456

445457
def timeseries_groups(
446458
self,
447-
dimension: Literal["BOT", "BOT_OPERATOR", "BOT_CATEGORY"],
459+
dimension: Literal["BOT", "BOT_KIND", "BOT_OPERATOR", "BOT_CATEGORY"],
448460
*,
449461
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
450462
asn: List[str] | NotGiven = NOT_GIVEN,
@@ -470,6 +482,7 @@ def timeseries_groups(
470482
]
471483
]
472484
| NotGiven = NOT_GIVEN,
485+
bot_kind: List[Literal["AGENT", "BOT"]] | NotGiven = NOT_GIVEN,
473486
bot_operator: List[str] | NotGiven = NOT_GIVEN,
474487
bot_verification_status: List[Literal["VERIFIED"]] | NotGiven = NOT_GIVEN,
475488
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -507,6 +520,8 @@ def timeseries_groups(
507520
508521
bot_category: Filters results by bot category.
509522
523+
bot_kind: Filters results by bot kind.
524+
510525
bot_operator: Filters results by bot operator.
511526
512527
bot_verification_status: Filters results by bot verification status (Verified vs. Unverified).
@@ -558,6 +573,7 @@ def timeseries_groups(
558573
"asn": asn,
559574
"bot": bot,
560575
"bot_category": bot_category,
576+
"bot_kind": bot_kind,
561577
"bot_operator": bot_operator,
562578
"bot_verification_status": bot_verification_status,
563579
"continent": continent,
@@ -626,6 +642,7 @@ async def list(
626642
bot_operator: str | NotGiven = NOT_GIVEN,
627643
bot_verification_status: Literal["VERIFIED"] | NotGiven = NOT_GIVEN,
628644
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
645+
kind: Literal["AGENT", "BOT"] | NotGiven = NOT_GIVEN,
629646
limit: int | NotGiven = NOT_GIVEN,
630647
offset: int | NotGiven = NOT_GIVEN,
631648
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -647,6 +664,8 @@ async def list(
647664
648665
format: Format in which results will be returned.
649666
667+
kind: Filters results by bot kind.
668+
650669
limit: Limits the number of objects returned in the response.
651670
652671
offset: Skips the specified number of objects before fetching the results.
@@ -672,6 +691,7 @@ async def list(
672691
"bot_operator": bot_operator,
673692
"bot_verification_status": bot_verification_status,
674693
"format": format,
694+
"kind": kind,
675695
"limit": limit,
676696
"offset": offset,
677697
},
@@ -727,7 +747,7 @@ async def get(
727747

728748
async def summary(
729749
self,
730-
dimension: Literal["BOT", "BOT_OPERATOR", "BOT_CATEGORY"],
750+
dimension: Literal["BOT", "BOT_KIND", "BOT_OPERATOR", "BOT_CATEGORY"],
731751
*,
732752
asn: List[str] | NotGiven = NOT_GIVEN,
733753
bot: List[str] | NotGiven = NOT_GIVEN,
@@ -752,6 +772,7 @@ async def summary(
752772
]
753773
]
754774
| NotGiven = NOT_GIVEN,
775+
bot_kind: List[Literal["AGENT", "BOT"]] | NotGiven = NOT_GIVEN,
755776
bot_operator: List[str] | NotGiven = NOT_GIVEN,
756777
bot_verification_status: List[Literal["VERIFIED"]] | NotGiven = NOT_GIVEN,
757778
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -785,6 +806,8 @@ async def summary(
785806
786807
bot_category: Filters results by bot category.
787808
809+
bot_kind: Filters results by bot kind.
810+
788811
bot_operator: Filters results by bot operator.
789812
790813
bot_verification_status: Filters results by bot verification status (Verified vs. Unverified).
@@ -835,6 +858,7 @@ async def summary(
835858
"asn": asn,
836859
"bot": bot,
837860
"bot_category": bot_category,
861+
"bot_kind": bot_kind,
838862
"bot_operator": bot_operator,
839863
"bot_verification_status": bot_verification_status,
840864
"continent": continent,
@@ -880,6 +904,7 @@ async def timeseries(
880904
]
881905
]
882906
| NotGiven = NOT_GIVEN,
907+
bot_kind: List[Literal["AGENT", "BOT"]] | NotGiven = NOT_GIVEN,
883908
bot_operator: List[str] | NotGiven = NOT_GIVEN,
884909
bot_verification_status: List[Literal["VERIFIED"]] | NotGiven = NOT_GIVEN,
885910
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -913,6 +938,8 @@ async def timeseries(
913938
914939
bot_category: Filters results by bot category.
915940
941+
bot_kind: Filters results by bot kind.
942+
916943
bot_operator: Filters results by bot operator.
917944
918945
bot_verification_status: Filters results by bot verification status (Verified vs. Unverified).
@@ -958,6 +985,7 @@ async def timeseries(
958985
"asn": asn,
959986
"bot": bot,
960987
"bot_category": bot_category,
988+
"bot_kind": bot_kind,
961989
"bot_operator": bot_operator,
962990
"bot_verification_status": bot_verification_status,
963991
"continent": continent,
@@ -977,7 +1005,7 @@ async def timeseries(
9771005

9781006
async def timeseries_groups(
9791007
self,
980-
dimension: Literal["BOT", "BOT_OPERATOR", "BOT_CATEGORY"],
1008+
dimension: Literal["BOT", "BOT_KIND", "BOT_OPERATOR", "BOT_CATEGORY"],
9811009
*,
9821010
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
9831011
asn: List[str] | NotGiven = NOT_GIVEN,
@@ -1003,6 +1031,7 @@ async def timeseries_groups(
10031031
]
10041032
]
10051033
| NotGiven = NOT_GIVEN,
1034+
bot_kind: List[Literal["AGENT", "BOT"]] | NotGiven = NOT_GIVEN,
10061035
bot_operator: List[str] | NotGiven = NOT_GIVEN,
10071036
bot_verification_status: List[Literal["VERIFIED"]] | NotGiven = NOT_GIVEN,
10081037
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -1040,6 +1069,8 @@ async def timeseries_groups(
10401069
10411070
bot_category: Filters results by bot category.
10421071
1072+
bot_kind: Filters results by bot kind.
1073+
10431074
bot_operator: Filters results by bot operator.
10441075
10451076
bot_verification_status: Filters results by bot verification status (Verified vs. Unverified).
@@ -1091,6 +1122,7 @@ async def timeseries_groups(
10911122
"asn": asn,
10921123
"bot": bot,
10931124
"bot_category": bot_category,
1125+
"bot_kind": bot_kind,
10941126
"bot_operator": bot_operator,
10951127
"bot_verification_status": bot_verification_status,
10961128
"continent": continent,

src/cloudflare/resources/radar/search.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ def global_(
5555
"BOTS",
5656
"CERTIFICATE_AUTHORITIES",
5757
"CERTIFICATE_LOGS",
58+
"INDUSTRIES",
5859
"LOCATIONS",
5960
"NOTEBOOKS",
61+
"TLDS",
6062
"VERTICALS",
61-
"INDUSTRIES",
6263
]
6364
]
6465
| NotGiven = NOT_GIVEN,
@@ -69,10 +70,11 @@ def global_(
6970
"BOTS",
7071
"CERTIFICATE_AUTHORITIES",
7172
"CERTIFICATE_LOGS",
73+
"INDUSTRIES",
7274
"LOCATIONS",
7375
"NOTEBOOKS",
76+
"TLDS",
7477
"VERTICALS",
75-
"INDUSTRIES",
7678
]
7779
]
7880
| NotGiven = NOT_GIVEN,
@@ -164,10 +166,11 @@ async def global_(
164166
"BOTS",
165167
"CERTIFICATE_AUTHORITIES",
166168
"CERTIFICATE_LOGS",
169+
"INDUSTRIES",
167170
"LOCATIONS",
168171
"NOTEBOOKS",
172+
"TLDS",
169173
"VERTICALS",
170-
"INDUSTRIES",
171174
]
172175
]
173176
| NotGiven = NOT_GIVEN,
@@ -178,10 +181,11 @@ async def global_(
178181
"BOTS",
179182
"CERTIFICATE_AUTHORITIES",
180183
"CERTIFICATE_LOGS",
184+
"INDUSTRIES",
181185
"LOCATIONS",
182186
"NOTEBOOKS",
187+
"TLDS",
183188
"VERTICALS",
184-
"INDUSTRIES",
185189
]
186190
]
187191
| NotGiven = NOT_GIVEN,

src/cloudflare/types/radar/bot_get_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class Bot(BaseModel):
1616
description: str
1717
"""A summary for the bot (e.g., purpose)."""
1818

19+
kind: str
20+
"""The kind of the bot."""
21+
1922
name: str
2023
"""The name of the bot."""
2124

src/cloudflare/types/radar/bot_list_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class BotListParams(TypedDict, total=False):
4242
format: Literal["JSON", "CSV"]
4343
"""Format in which results will be returned."""
4444

45+
kind: Literal["AGENT", "BOT"]
46+
"""Filters results by bot kind."""
47+
4548
limit: int
4649
"""Limits the number of objects returned in the response."""
4750

src/cloudflare/types/radar/bot_list_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class Bot(BaseModel):
1616
description: str
1717
"""A summary for the bot (e.g., purpose)."""
1818

19+
kind: str
20+
"""The kind of the bot."""
21+
1922
name: str
2023
"""The name of the bot."""
2124

src/cloudflare/types/radar/bot_summary_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ class BotSummaryParams(TypedDict, total=False):
4848
]
4949
"""Filters results by bot category."""
5050

51+
bot_kind: Annotated[List[Literal["AGENT", "BOT"]], PropertyInfo(alias="botKind")]
52+
"""Filters results by bot kind."""
53+
5154
bot_operator: Annotated[List[str], PropertyInfo(alias="botOperator")]
5255
"""Filters results by bot operator."""
5356

src/cloudflare/types/radar/bot_timeseries_groups_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class BotTimeseriesGroupsParams(TypedDict, total=False):
5555
]
5656
"""Filters results by bot category."""
5757

58+
bot_kind: Annotated[List[Literal["AGENT", "BOT"]], PropertyInfo(alias="botKind")]
59+
"""Filters results by bot kind."""
60+
5861
bot_operator: Annotated[List[str], PropertyInfo(alias="botOperator")]
5962
"""Filters results by bot operator."""
6063

src/cloudflare/types/radar/bot_timeseries_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class BotTimeseriesParams(TypedDict, total=False):
5555
]
5656
"""Filters results by bot category."""
5757

58+
bot_kind: Annotated[List[Literal["AGENT", "BOT"]], PropertyInfo(alias="botKind")]
59+
"""Filters results by bot kind."""
60+
5861
bot_operator: Annotated[List[str], PropertyInfo(alias="botOperator")]
5962
"""Filters results by bot operator."""
6063

src/cloudflare/types/radar/search_global_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ class SearchGlobalParams(TypedDict, total=False):
2020
"BOTS",
2121
"CERTIFICATE_AUTHORITIES",
2222
"CERTIFICATE_LOGS",
23+
"INDUSTRIES",
2324
"LOCATIONS",
2425
"NOTEBOOKS",
26+
"TLDS",
2527
"VERTICALS",
26-
"INDUSTRIES",
2728
]
2829
]
2930
"""Search types excluded from results."""
@@ -37,10 +38,11 @@ class SearchGlobalParams(TypedDict, total=False):
3738
"BOTS",
3839
"CERTIFICATE_AUTHORITIES",
3940
"CERTIFICATE_LOGS",
41+
"INDUSTRIES",
4042
"LOCATIONS",
4143
"NOTEBOOKS",
44+
"TLDS",
4245
"VERTICALS",
43-
"INDUSTRIES",
4446
]
4547
]
4648
"""Search types included in results."""

0 commit comments

Comments
 (0)