Skip to content

Commit f0140e7

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): api update (#2284)
1 parent 1a5da41 commit f0140e7

21 files changed

+126
-70
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1490
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b46e31e5f69309fc518f386002c3df2afeb03c0361127704253f9197d52d11d9.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-85569f0482730af4e8c6afc9b33c7ba894e47b2d8fa36a3e013daf5390adb647.yml

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class Summary extends APIResource {
3232
export interface SummaryUserAgentResponse {
3333
meta: SummaryUserAgentResponse.Meta;
3434

35-
summary_0: Record<string, Array<string>>;
35+
summary_0: Record<string, string>;
3636
}
3737

3838
export namespace SummaryUserAgentResponse {
@@ -122,6 +122,12 @@ export interface SummaryUserAgentParams {
122122
*/
123123
format?: 'JSON' | 'CSV';
124124

125+
/**
126+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
127+
* the time range.
128+
*/
129+
limitPerGroup?: number;
130+
125131
/**
126132
* Array of comma separated list of locations (alpha-2 country codes). Start with
127133
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,

src/resources/radar/as112/summary.ts

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export namespace SummaryProtocolResponse {
383383
export interface SummaryQueryTypeResponse {
384384
meta: SummaryQueryTypeResponse.Meta;
385385

386-
summary_0: SummaryQueryTypeResponse.Summary0;
386+
summary_0: Record<string, string>;
387387
}
388388

389389
export namespace SummaryQueryTypeResponse {
@@ -434,24 +434,12 @@ export namespace SummaryQueryTypeResponse {
434434
}
435435
}
436436
}
437-
438-
export interface Summary0 {
439-
A: string;
440-
441-
AAAA: string;
442-
443-
PTR: string;
444-
445-
SOA: string;
446-
447-
SRV: string;
448-
}
449437
}
450438

451439
export interface SummaryResponseCodesResponse {
452440
meta: SummaryResponseCodesResponse.Meta;
453441

454-
summary_0: SummaryResponseCodesResponse.Summary0;
442+
summary_0: Record<string, string>;
455443
}
456444

457445
export namespace SummaryResponseCodesResponse {
@@ -502,12 +490,6 @@ export namespace SummaryResponseCodesResponse {
502490
}
503491
}
504492
}
505-
506-
export interface Summary0 {
507-
NOERROR: string;
508-
509-
NXDOMAIN: string;
510-
}
511493
}
512494

513495
export interface SummaryDNSSECParams {
@@ -747,6 +729,12 @@ export interface SummaryQueryTypeParams {
747729
*/
748730
format?: 'JSON' | 'CSV';
749731

732+
/**
733+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
734+
* the time range.
735+
*/
736+
limitPerGroup?: number;
737+
750738
/**
751739
* Array of comma separated list of locations (alpha-2 country codes). Start with
752740
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,
@@ -797,6 +785,12 @@ export interface SummaryResponseCodesParams {
797785
*/
798786
format?: 'JSON' | 'CSV';
799787

788+
/**
789+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
790+
* the time range.
791+
*/
792+
limitPerGroup?: number;
793+
800794
/**
801795
* Array of comma separated list of locations (alpha-2 country codes). Start with
802796
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,12 @@ export interface TimeseriesGroupQueryTypeParams {
504504
*/
505505
format?: 'JSON' | 'CSV';
506506

507+
/**
508+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
509+
* the time range.
510+
*/
511+
limitPerGroup?: number;
512+
507513
/**
508514
* Array of comma separated list of locations (alpha-2 country codes). Start with
509515
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,
@@ -561,6 +567,12 @@ export interface TimeseriesGroupResponseCodesParams {
561567
*/
562568
format?: 'JSON' | 'CSV';
563569

570+
/**
571+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
572+
* the time range.
573+
*/
574+
limitPerGroup?: number;
575+
564576
/**
565577
* Array of comma separated list of locations (alpha-2 country codes). Start with
566578
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,

src/resources/radar/attacks/layer3/summary.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export namespace SummaryProtocolResponse {
464464
export interface SummaryVectorResponse {
465465
meta: SummaryVectorResponse.Meta;
466466

467-
summary_0: Record<string, Array<string>>;
467+
summary_0: Record<string, string>;
468468
}
469469

470470
export namespace SummaryVectorResponse {
@@ -834,6 +834,12 @@ export interface SummaryVectorParams {
834834
*/
835835
ipVersion?: Array<'IPv4' | 'IPv6'>;
836836

837+
/**
838+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
839+
* the time range.
840+
*/
841+
limitPerGroup?: number;
842+
837843
/**
838844
* Array of comma separated list of locations (alpha-2 country codes). Start with
839845
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,

src/resources/radar/attacks/layer7/summary.ts

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export namespace SummaryGetResponse {
210210
export interface SummaryHTTPMethodResponse {
211211
meta: SummaryHTTPMethodResponse.Meta;
212212

213-
summary_0: SummaryHTTPMethodResponse.Summary0;
213+
summary_0: Record<string, string>;
214214
}
215215

216216
export namespace SummaryHTTPMethodResponse {
@@ -261,12 +261,6 @@ export namespace SummaryHTTPMethodResponse {
261261
}
262262
}
263263
}
264-
265-
export interface Summary0 {
266-
GET: string;
267-
268-
POST: string;
269-
}
270264
}
271265

272266
export interface SummaryHTTPVersionResponse {
@@ -398,7 +392,7 @@ export namespace SummaryIPVersionResponse {
398392
export interface SummaryManagedRulesResponse {
399393
meta: SummaryManagedRulesResponse.Meta;
400394

401-
summary_0: Record<string, Array<string>>;
395+
summary_0: Record<string, string>;
402396
}
403397

404398
export namespace SummaryManagedRulesResponse {
@@ -454,7 +448,7 @@ export namespace SummaryManagedRulesResponse {
454448
export interface SummaryMitigationProductResponse {
455449
meta: SummaryMitigationProductResponse.Meta;
456450

457-
summary_0: SummaryMitigationProductResponse.Summary0;
451+
summary_0: Record<string, string>;
458452
}
459453

460454
export namespace SummaryMitigationProductResponse {
@@ -505,12 +499,6 @@ export namespace SummaryMitigationProductResponse {
505499
}
506500
}
507501
}
508-
509-
export interface Summary0 {
510-
DDOS: string;
511-
512-
WAF: string;
513-
}
514502
}
515503

516504
export interface SummaryGetParams {
@@ -610,6 +598,12 @@ export interface SummaryHTTPMethodParams {
610598
*/
611599
ipVersion?: Array<'IPv4' | 'IPv6'>;
612600

601+
/**
602+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
603+
* the time range.
604+
*/
605+
limitPerGroup?: number;
606+
613607
/**
614608
* Array of comma separated list of locations (alpha-2 country codes). Start with
615609
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,
@@ -975,6 +969,12 @@ export interface SummaryManagedRulesParams {
975969
*/
976970
ipVersion?: Array<'IPv4' | 'IPv6'>;
977971

972+
/**
973+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
974+
* the time range.
975+
*/
976+
limitPerGroup?: number;
977+
978978
/**
979979
* Array of comma separated list of locations (alpha-2 country codes). Start with
980980
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,
@@ -1100,6 +1100,12 @@ export interface SummaryMitigationProductParams {
11001100
*/
11011101
ipVersion?: Array<'IPv4' | 'IPv6'>;
11021102

1103+
/**
1104+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
1105+
* the time range.
1106+
*/
1107+
limitPerGroup?: number;
1108+
11031109
/**
11041110
* Array of comma separated list of locations (alpha-2 country codes). Start with
11051111
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,

src/resources/radar/attacks/layer7/timeseries-groups.ts

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,8 @@ export interface TimeseriesGroupHTTPMethodResponse {
271271

272272
export namespace TimeseriesGroupHTTPMethodResponse {
273273
export interface Serie0 {
274-
GET: Array<string>;
275-
276274
timestamps: Array<string>;
275+
[k: string]: Array<string> | undefined;
277276
}
278277
}
279278

@@ -287,6 +286,10 @@ export namespace TimeseriesGroupHTTPVersionResponse {
287286
export interface Serie0 {
288287
'HTTP/1.x': Array<string>;
289288

289+
'HTTP/2': Array<string>;
290+
291+
'HTTP/3': Array<string>;
292+
290293
timestamps: Array<string>;
291294
}
292295
}
@@ -341,9 +344,8 @@ export interface TimeseriesGroupMitigationProductResponse {
341344

342345
export namespace TimeseriesGroupMitigationProductResponse {
343346
export interface Serie0 {
344-
DDOS: Array<string>;
345-
346347
timestamps: Array<string>;
348+
[k: string]: Array<string> | undefined;
347349
}
348350
}
349351

@@ -471,6 +473,12 @@ export interface TimeseriesGroupHTTPMethodParams {
471473
*/
472474
ipVersion?: Array<'IPv4' | 'IPv6'>;
473475

476+
/**
477+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
478+
* the time range.
479+
*/
480+
limitPerGroup?: number;
481+
474482
/**
475483
* Array of comma separated list of locations (alpha-2 country codes). Start with
476484
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,
@@ -1019,6 +1027,12 @@ export interface TimeseriesGroupManagedRulesParams {
10191027
*/
10201028
ipVersion?: Array<'IPv4' | 'IPv6'>;
10211029

1030+
/**
1031+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
1032+
* the time range.
1033+
*/
1034+
limitPerGroup?: number;
1035+
10221036
/**
10231037
* Array of comma separated list of locations (alpha-2 country codes). Start with
10241038
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,
@@ -1157,6 +1171,12 @@ export interface TimeseriesGroupMitigationProductParams {
11571171
*/
11581172
ipVersion?: Array<'IPv4' | 'IPv6'>;
11591173

1174+
/**
1175+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
1176+
* the time range.
1177+
*/
1178+
limitPerGroup?: number;
1179+
11601180
/**
11611181
* Array of comma separated list of locations (alpha-2 country codes). Start with
11621182
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,12 @@ export interface TimeseriesGroupBrowserFamilyParams {
657657
*/
658658
ipVersion?: Array<'IPv4' | 'IPv6'>;
659659

660+
/**
661+
* Limit the number of objects (eg browsers, verticals, etc) to the top items over
662+
* the time range.
663+
*/
664+
limitPerGroup?: number;
665+
660666
/**
661667
* Array of comma separated list of locations (alpha-2 country codes). Start with
662668
* `-` to exclude from results. For example, `-US,PT` excludes results from the US,

src/resources/radar/ranking/domain.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ export interface DomainGetParams {
8181
*/
8282
format?: 'JSON' | 'CSV';
8383

84+
/**
85+
* Include top locations in the response.
86+
*/
87+
includeTopLocations?: boolean;
88+
8489
/**
8590
* Limit the number of objects in the response.
8691
*/

src/resources/radar/tcp-resets-timeouts.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -192,33 +192,14 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse {
192192
}
193193

194194
export interface Serie0 {
195-
/**
196-
* Connection resets within the first 10 packets from the client, but after the
197-
* server has received multiple data packets.
198-
*/
199195
later_in_flow: Array<string>;
200196

201-
/**
202-
* All other connections.
203-
*/
204197
no_match: Array<string>;
205198

206-
/**
207-
* Connection resets or timeouts after the server received both a SYN packet and an
208-
* ACK packet, meaning the connection was successfully established.
209-
*/
210199
post_ack: Array<string>;
211200

212-
/**
213-
* Connection resets or timeouts after the server received a packet with PSH flag
214-
* set, following connection establishment.
215-
*/
216201
post_psh: Array<string>;
217202

218-
/**
219-
* Connection resets or timeouts after the server received only a single SYN
220-
* packet.
221-
*/
222203
post_syn: Array<string>;
223204

224205
timestamps: Array<string>;

0 commit comments

Comments
 (0)