Skip to content

Commit 34cdfd5

Browse files
feat(api): api update
1 parent 833792a commit 34cdfd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+2241
-2095
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1711
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a12a32248eefc774d6ede65df86cb98b9e19a64afe472fbb54df5dc7f912414e.yml
3-
openapi_spec_hash: 81f4f26eddb5689783d493d25f5a99bf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d4046868cfa1d555ee647ae4c5c2e95735ef2499a9cd9570241c6d93d4228501.yml
3+
openapi_spec_hash: 1330ede6eee9c2b965a1dd54d526ac9b
44
config_hash: 67f412c990647f3cb598378fa22a9db5

src/resources/radar/ai/bots/summary.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ export namespace SummaryUserAgentResponse {
8686

8787
export interface SummaryUserAgentParams {
8888
/**
89-
* Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to
90-
* exclude ASNs from results. For example, `-174, 3356` excludes results from
91-
* AS174, but includes results from AS3356.
89+
* Filters results by Autonomous System. Specify one or more Autonomous System
90+
* Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from
91+
* results. For example, `-174, 3356` excludes results from AS174, but includes
92+
* results from AS3356.
9293
*/
9394
asn?: Array<string>;
9495

9596
/**
96-
* Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to
97-
* exclude continents from results. For example, `-EU,NA` excludes results from EU,
98-
* but includes results from NA.
97+
* Filters results by continent. Specify a comma-separated list of alpha-2 codes.
98+
* Prefix with `-` to exclude continents from results. For example, `-EU,NA`
99+
* excludes results from EU, but includes results from NA.
99100
*/
100101
continent?: Array<string>;
101102

@@ -105,9 +106,9 @@ export interface SummaryUserAgentParams {
105106
dateEnd?: Array<string>;
106107

107108
/**
108-
* Filters results by the specified date range. For example, use `7d` and
109-
* `7dcontrol` to compare this week with the previous week. Use this parameter or
110-
* set specific start and end dates (`dateStart` and `dateEnd` parameters).
109+
* Filters results by date range. For example, use `7d` and `7dcontrol` to compare
110+
* this week with the previous week. Use this parameter or set specific start and
111+
* end dates (`dateStart` and `dateEnd` parameters).
111112
*/
112113
dateRange?: Array<string>;
113114

@@ -123,16 +124,15 @@ export interface SummaryUserAgentParams {
123124

124125
/**
125126
* Limits the number of objects per group to the top items within the specified
126-
* time range. If there are more items than the limit, the response will include
127-
* the count of items, with any remaining items grouped together under an "other"
128-
* category.
127+
* time range. When item count exceeds the limit, extra items appear grouped under
128+
* an "other" category.
129129
*/
130130
limitPerGroup?: number;
131131

132132
/**
133-
* Comma-separated list of locations (alpha-2 codes). Prefix with `-` to exclude
134-
* locations from results. For example, `-US,PT` excludes results from the US, but
135-
* includes results from PT.
133+
* Filters results by location. Specify a comma-separated list of alpha-2 codes.
134+
* Prefix with `-` to exclude locations from results. For example, `-US,PT`
135+
* excludes results from the US, but includes results from PT.
136136
*/
137137
location?: Array<string>;
138138

src/resources/radar/ai/inference/summary.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ export interface SummaryModelParams {
163163
dateEnd?: Array<string>;
164164

165165
/**
166-
* Filters results by the specified date range. For example, use `7d` and
167-
* `7dcontrol` to compare this week with the previous week. Use this parameter or
168-
* set specific start and end dates (`dateStart` and `dateEnd` parameters).
166+
* Filters results by date range. For example, use `7d` and `7dcontrol` to compare
167+
* this week with the previous week. Use this parameter or set specific start and
168+
* end dates (`dateStart` and `dateEnd` parameters).
169169
*/
170170
dateRange?: Array<string>;
171171

@@ -181,9 +181,8 @@ export interface SummaryModelParams {
181181

182182
/**
183183
* Limits the number of objects per group to the top items within the specified
184-
* time range. If there are more items than the limit, the response will include
185-
* the count of items, with any remaining items grouped together under an "other"
186-
* category.
184+
* time range. When item count exceeds the limit, extra items appear grouped under
185+
* an "other" category.
187186
*/
188187
limitPerGroup?: number;
189188

@@ -200,9 +199,9 @@ export interface SummaryTaskParams {
200199
dateEnd?: Array<string>;
201200

202201
/**
203-
* Filters results by the specified date range. For example, use `7d` and
204-
* `7dcontrol` to compare this week with the previous week. Use this parameter or
205-
* set specific start and end dates (`dateStart` and `dateEnd` parameters).
202+
* Filters results by date range. For example, use `7d` and `7dcontrol` to compare
203+
* this week with the previous week. Use this parameter or set specific start and
204+
* end dates (`dateStart` and `dateEnd` parameters).
206205
*/
207206
dateRange?: Array<string>;
208207

@@ -218,9 +217,8 @@ export interface SummaryTaskParams {
218217

219218
/**
220219
* Limits the number of objects per group to the top items within the specified
221-
* time range. If there are more items than the limit, the response will include
222-
* the count of items, with any remaining items grouped together under an "other"
223-
* category.
220+
* time range. When item count exceeds the limit, extra items appear grouped under
221+
* an "other" category.
224222
*/
225223
limitPerGroup?: number;
226224

src/resources/radar/ai/inference/timeseries-groups/summary.ts

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export namespace SummaryTaskResponse {
7676

7777
export interface SummaryModelParams {
7878
/**
79-
* Aggregation interval results should be returned in (for example, in 15 minutes
80-
* or 1 hour intervals). Refer to
79+
* Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
80+
* Refer to
8181
* [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
8282
*/
8383
aggInterval?: '15m' | '1h' | '1d' | '1w';
@@ -88,9 +88,9 @@ export interface SummaryModelParams {
8888
dateEnd?: Array<string>;
8989

9090
/**
91-
* Filters results by the specified date range. For example, use `7d` and
92-
* `7dcontrol` to compare this week with the previous week. Use this parameter or
93-
* set specific start and end dates (`dateStart` and `dateEnd` parameters).
91+
* Filters results by date range. For example, use `7d` and `7dcontrol` to compare
92+
* this week with the previous week. Use this parameter or set specific start and
93+
* end dates (`dateStart` and `dateEnd` parameters).
9494
*/
9595
dateRange?: Array<string>;
9696

@@ -106,9 +106,8 @@ export interface SummaryModelParams {
106106

107107
/**
108108
* Limits the number of objects per group to the top items within the specified
109-
* time range. If there are more items than the limit, the response will include
110-
* the count of items, with any remaining items grouped together under an "other"
111-
* category.
109+
* time range. When item count exceeds the limit, extra items appear grouped under
110+
* an "other" category.
112111
*/
113112
limitPerGroup?: number;
114113

@@ -120,8 +119,8 @@ export interface SummaryModelParams {
120119

121120
export interface SummaryTaskParams {
122121
/**
123-
* Aggregation interval results should be returned in (for example, in 15 minutes
124-
* or 1 hour intervals). Refer to
122+
* Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
123+
* Refer to
125124
* [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
126125
*/
127126
aggInterval?: '15m' | '1h' | '1d' | '1w';
@@ -132,9 +131,9 @@ export interface SummaryTaskParams {
132131
dateEnd?: Array<string>;
133132

134133
/**
135-
* Filters results by the specified date range. For example, use `7d` and
136-
* `7dcontrol` to compare this week with the previous week. Use this parameter or
137-
* set specific start and end dates (`dateStart` and `dateEnd` parameters).
134+
* Filters results by date range. For example, use `7d` and `7dcontrol` to compare
135+
* this week with the previous week. Use this parameter or set specific start and
136+
* end dates (`dateStart` and `dateEnd` parameters).
138137
*/
139138
dateRange?: Array<string>;
140139

@@ -150,9 +149,8 @@ export interface SummaryTaskParams {
150149

151150
/**
152151
* Limits the number of objects per group to the top items within the specified
153-
* time range. If there are more items than the limit, the response will include
154-
* the count of items, with any remaining items grouped together under an "other"
155-
* category.
152+
* time range. When item count exceeds the limit, extra items appear grouped under
153+
* an "other" category.
156154
*/
157155
limitPerGroup?: number;
158156

src/resources/radar/ai/timeseries-groups.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,24 @@ export namespace TimeseriesGroupUserAgentResponse {
4545

4646
export interface TimeseriesGroupUserAgentParams {
4747
/**
48-
* Aggregation interval results should be returned in (for example, in 15 minutes
49-
* or 1 hour intervals). Refer to
48+
* Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
49+
* Refer to
5050
* [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
5151
*/
5252
aggInterval?: '15m' | '1h' | '1d' | '1w';
5353

5454
/**
55-
* Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to
56-
* exclude ASNs from results. For example, `-174, 3356` excludes results from
57-
* AS174, but includes results from AS3356.
55+
* Filters results by Autonomous System. Specify one or more Autonomous System
56+
* Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from
57+
* results. For example, `-174, 3356` excludes results from AS174, but includes
58+
* results from AS3356.
5859
*/
5960
asn?: Array<string>;
6061

6162
/**
62-
* Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to
63-
* exclude continents from results. For example, `-EU,NA` excludes results from EU,
64-
* but includes results from NA.
63+
* Filters results by continent. Specify a comma-separated list of alpha-2 codes.
64+
* Prefix with `-` to exclude continents from results. For example, `-EU,NA`
65+
* excludes results from EU, but includes results from NA.
6566
*/
6667
continent?: Array<string>;
6768

@@ -71,9 +72,9 @@ export interface TimeseriesGroupUserAgentParams {
7172
dateEnd?: Array<string>;
7273

7374
/**
74-
* Filters results by the specified date range. For example, use `7d` and
75-
* `7dcontrol` to compare this week with the previous week. Use this parameter or
76-
* set specific start and end dates (`dateStart` and `dateEnd` parameters).
75+
* Filters results by date range. For example, use `7d` and `7dcontrol` to compare
76+
* this week with the previous week. Use this parameter or set specific start and
77+
* end dates (`dateStart` and `dateEnd` parameters).
7778
*/
7879
dateRange?: Array<string>;
7980

@@ -89,16 +90,15 @@ export interface TimeseriesGroupUserAgentParams {
8990

9091
/**
9192
* Limits the number of objects per group to the top items within the specified
92-
* time range. If there are more items than the limit, the response will include
93-
* the count of items, with any remaining items grouped together under an "other"
94-
* category.
93+
* time range. When item count exceeds the limit, extra items appear grouped under
94+
* an "other" category.
9595
*/
9696
limitPerGroup?: number;
9797

9898
/**
99-
* Comma-separated list of locations (alpha-2 codes). Prefix with `-` to exclude
100-
* locations from results. For example, `-US,PT` excludes results from the US, but
101-
* includes results from PT.
99+
* Filters results by location. Specify a comma-separated list of alpha-2 codes.
100+
* Prefix with `-` to exclude locations from results. For example, `-US,PT`
101+
* excludes results from the US, but includes results from PT.
102102
*/
103103
location?: Array<string>;
104104

src/resources/radar/annotations/annotations.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export namespace AnnotationListResponse {
101101

102102
export interface AnnotationListParams {
103103
/**
104-
* Single Autonomous System Number (ASN) as integer.
104+
* Filters results by Autonomous System. Specify a single Autonomous System Number
105+
* (ASN) as integer.
105106
*/
106107
asn?: number;
107108

@@ -111,8 +112,7 @@ export interface AnnotationListParams {
111112
dateEnd?: string;
112113

113114
/**
114-
* Shorthand date ranges for the last X days - use when you don't need specific
115-
* start and end dates.
115+
* Filters results by date range.
116116
*/
117117
dateRange?: string;
118118

@@ -132,7 +132,7 @@ export interface AnnotationListParams {
132132
limit?: number;
133133

134134
/**
135-
* Location alpha-2 code.
135+
* Filters results by location. Specify an alpha-2 location code.
136136
*/
137137
location?: string;
138138

src/resources/radar/annotations/outages.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ export namespace OutageLocationsResponse {
127127

128128
export interface OutageGetParams {
129129
/**
130-
* Single Autonomous System Number (ASN) as integer.
130+
* Filters results by Autonomous System. Specify a single Autonomous System Number
131+
* (ASN) as integer.
131132
*/
132133
asn?: number;
133134

@@ -137,8 +138,7 @@ export interface OutageGetParams {
137138
dateEnd?: string;
138139

139140
/**
140-
* Shorthand date ranges for the last X days - use when you don't need specific
141-
* start and end dates.
141+
* Filters results by date range.
142142
*/
143143
dateRange?: string;
144144

@@ -158,7 +158,7 @@ export interface OutageGetParams {
158158
limit?: number;
159159

160160
/**
161-
* Location alpha-2 code.
161+
* Filters results by location. Specify an alpha-2 location code.
162162
*/
163163
location?: string;
164164

@@ -175,8 +175,7 @@ export interface OutageLocationsParams {
175175
dateEnd?: string;
176176

177177
/**
178-
* Shorthand date ranges for the last X days - use when you don't need specific
179-
* start and end dates.
178+
* Filters results by date range.
180179
*/
181180
dateRange?: string;
182181

src/resources/radar/as112/as112.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,16 @@ export namespace AS112TimeseriesResponse {
142142

143143
export interface AS112TimeseriesParams {
144144
/**
145-
* Aggregation interval results should be returned in (for example, in 15 minutes
146-
* or 1 hour intervals). Refer to
145+
* Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
146+
* Refer to
147147
* [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
148148
*/
149149
aggInterval?: '15m' | '1h' | '1d' | '1w';
150150

151151
/**
152-
* Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to
153-
* exclude continents from results. For example, `-EU,NA` excludes results from EU,
154-
* but includes results from NA.
152+
* Filters results by continent. Specify a comma-separated list of alpha-2 codes.
153+
* Prefix with `-` to exclude continents from results. For example, `-EU,NA`
154+
* excludes results from EU, but includes results from NA.
155155
*/
156156
continent?: Array<string>;
157157

@@ -161,9 +161,9 @@ export interface AS112TimeseriesParams {
161161
dateEnd?: Array<string>;
162162

163163
/**
164-
* Filters results by the specified date range. For example, use `7d` and
165-
* `7dcontrol` to compare this week with the previous week. Use this parameter or
166-
* set specific start and end dates (`dateStart` and `dateEnd` parameters).
164+
* Filters results by date range. For example, use `7d` and `7dcontrol` to compare
165+
* this week with the previous week. Use this parameter or set specific start and
166+
* end dates (`dateStart` and `dateEnd` parameters).
167167
*/
168168
dateRange?: Array<string>;
169169

@@ -178,9 +178,9 @@ export interface AS112TimeseriesParams {
178178
format?: 'JSON' | 'CSV';
179179

180180
/**
181-
* Comma-separated list of locations (alpha-2 codes). Prefix with `-` to exclude
182-
* locations from results. For example, `-US,PT` excludes results from the US, but
183-
* includes results from PT.
181+
* Filters results by location. Specify a comma-separated list of alpha-2 codes.
182+
* Prefix with `-` to exclude locations from results. For example, `-US,PT`
183+
* excludes results from the US, but includes results from PT.
184184
*/
185185
location?: Array<string>;
186186

0 commit comments

Comments
 (0)