Skip to content

Commit e154418

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent fde89f4 commit e154418

File tree

19 files changed

+6
-2991
lines changed

19 files changed

+6
-2991
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1791
1+
configured_endpoints: 1781
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bd1bc86694bdc2e2deb05f0e743afa87b94ff96a55b10fdd6a15b11fa7ee34c0.yml
33
openapi_spec_hash: 9fa312b08e4ba5659a03d7143210437f
4-
config_hash: 8387cc6cd9749c918304b96bee7ac652
4+
config_hash: cbc31befc4267a7deb9d79b1767a2b65

api.md

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6378,56 +6378,6 @@ Methods:
63786378

63796379
### TimeseriesGroups
63806380

6381-
Types:
6382-
6383-
- <code><a href="./src/resources/radar/ai/timeseries-groups.ts">TimeseriesGroupSummaryResponse</a></code>
6384-
- <code><a href="./src/resources/radar/ai/timeseries-groups.ts">TimeseriesGroupTimeseriesResponse</a></code>
6385-
- <code><a href="./src/resources/radar/ai/timeseries-groups.ts">TimeseriesGroupTimeseriesGroupsResponse</a></code>
6386-
6387-
Methods:
6388-
6389-
- <code title="get /radar/ai/bots/summary/{dimension}">client.radar.ai.timeseriesGroups.<a href="./src/resources/radar/ai/timeseries-groups.ts">summary</a>(dimension, { ...params }) -> TimeseriesGroupSummaryResponse</code>
6390-
- <code title="get /radar/ai/bots/timeseries">client.radar.ai.timeseriesGroups.<a href="./src/resources/radar/ai/timeseries-groups.ts">timeseries</a>({ ...params }) -> TimeseriesGroupTimeseriesResponse</code>
6391-
- <code title="get /radar/ai/bots/timeseries_groups/{dimension}">client.radar.ai.timeseriesGroups.<a href="./src/resources/radar/ai/timeseries-groups.ts">timeseriesGroups</a>(dimension, { ...params }) -> TimeseriesGroupTimeseriesGroupsResponse</code>
6392-
6393-
## Ct
6394-
6395-
Types:
6396-
6397-
- <code><a href="./src/resources/radar/ct/ct.ts">CtSummaryResponse</a></code>
6398-
- <code><a href="./src/resources/radar/ct/ct.ts">CtTimeseriesResponse</a></code>
6399-
- <code><a href="./src/resources/radar/ct/ct.ts">CtTimeseriesGroupsResponse</a></code>
6400-
6401-
Methods:
6402-
6403-
- <code title="get /radar/ct/summary/{dimension}">client.radar.ct.<a href="./src/resources/radar/ct/ct.ts">summary</a>(dimension, { ...params }) -> CtSummaryResponse</code>
6404-
- <code title="get /radar/ct/timeseries">client.radar.ct.<a href="./src/resources/radar/ct/ct.ts">timeseries</a>({ ...params }) -> CtTimeseriesResponse</code>
6405-
- <code title="get /radar/ct/timeseries_groups/{dimension}">client.radar.ct.<a href="./src/resources/radar/ct/ct.ts">timeseriesGroups</a>(dimension, { ...params }) -> CtTimeseriesGroupsResponse</code>
6406-
6407-
### Authorities
6408-
6409-
Types:
6410-
6411-
- <code><a href="./src/resources/radar/ct/authorities.ts">AuthorityListResponse</a></code>
6412-
- <code><a href="./src/resources/radar/ct/authorities.ts">AuthorityGetResponse</a></code>
6413-
6414-
Methods:
6415-
6416-
- <code title="get /radar/ct/authorities">client.radar.ct.authorities.<a href="./src/resources/radar/ct/authorities.ts">list</a>({ ...params }) -> AuthorityListResponse</code>
6417-
- <code title="get /radar/ct/authorities/{ca_slug}">client.radar.ct.authorities.<a href="./src/resources/radar/ct/authorities.ts">get</a>(caSlug, { ...params }) -> AuthorityGetResponse</code>
6418-
6419-
### Logs
6420-
6421-
Types:
6422-
6423-
- <code><a href="./src/resources/radar/ct/logs.ts">LogListResponse</a></code>
6424-
- <code><a href="./src/resources/radar/ct/logs.ts">LogGetResponse</a></code>
6425-
6426-
Methods:
6427-
6428-
- <code title="get /radar/ct/logs">client.radar.ct.logs.<a href="./src/resources/radar/ct/logs.ts">list</a>({ ...params }) -> LogListResponse</code>
6429-
- <code title="get /radar/ct/logs/{log_slug}">client.radar.ct.logs.<a href="./src/resources/radar/ct/logs.ts">get</a>(logSlug, { ...params }) -> LogGetResponse</code>
6430-
64316381
## Annotations
64326382

64336383
Types:

scripts/detect-breaking-changes

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,6 @@ TEST_PATHS=(
542542
tests/api-resources/radar/ai/inference/summary.test.ts
543543
tests/api-resources/radar/ai/inference/timeseries-groups/timeseries-groups.test.ts
544544
tests/api-resources/radar/ai/inference/timeseries-groups/summary.test.ts
545-
tests/api-resources/radar/ai/timeseries-groups.test.ts
546-
tests/api-resources/radar/ct/ct.test.ts
547-
tests/api-resources/radar/ct/authorities.test.ts
548-
tests/api-resources/radar/ct/logs.test.ts
549545
tests/api-resources/radar/annotations/annotations.test.ts
550546
tests/api-resources/radar/annotations/outages.test.ts
551547
tests/api-resources/radar/bgp/bgp.test.ts

src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import * as Pagination from './pagination';
88
import {
99
type CursorLimitPaginationParams,
1010
CursorLimitPaginationResponse,
11-
type CursorPaginationAfterParams,
12-
CursorPaginationAfterResponse,
1311
type CursorPaginationParams,
1412
CursorPaginationResponse,
1513
SinglePageResponse,
@@ -609,12 +607,6 @@ export declare namespace Cloudflare {
609607
type CursorPaginationResponse as CursorPaginationResponse,
610608
};
611609

612-
export import CursorPaginationAfter = Pagination.CursorPaginationAfter;
613-
export {
614-
type CursorPaginationAfterParams as CursorPaginationAfterParams,
615-
type CursorPaginationAfterResponse as CursorPaginationAfterResponse,
616-
};
617-
618610
export import CursorLimitPagination = Pagination.CursorLimitPagination;
619611
export {
620612
type CursorLimitPaginationParams as CursorLimitPaginationParams,

src/pagination.ts

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core';
4-
import * as StainlessPageResourceAPI from './resources/stainless-page-resource';
54

65
export interface V4PagePaginationResponse<Item> {
76
result: V4PagePaginationResponse.Result<Item>;
@@ -195,78 +194,6 @@ export class CursorPagination<Item> extends AbstractPage<Item> implements Cursor
195194
}
196195
}
197196

198-
export interface CursorPaginationAfterResponse<Item> {
199-
result: Array<Item>;
200-
201-
result_info: CursorPaginationAfterResponse.ResultInfo;
202-
}
203-
204-
export namespace CursorPaginationAfterResponse {
205-
export interface ResultInfo {
206-
cursors?: StainlessPageResourceAPI.ResultInfo.Cursors;
207-
}
208-
209-
export namespace ResultInfo {
210-
export interface Cursors {
211-
after?: string;
212-
}
213-
}
214-
}
215-
216-
export interface CursorPaginationAfterParams {
217-
cursor?: string;
218-
219-
per_page?: number;
220-
}
221-
222-
export class CursorPaginationAfter<Item>
223-
extends AbstractPage<Item>
224-
implements CursorPaginationAfterResponse<Item>
225-
{
226-
result: Array<Item>;
227-
228-
result_info: CursorPaginationAfterResponse.ResultInfo;
229-
230-
constructor(
231-
client: APIClient,
232-
response: Response,
233-
body: CursorPaginationAfterResponse<Item>,
234-
options: FinalRequestOptions,
235-
) {
236-
super(client, response, body, options);
237-
238-
this.result = body.result || [];
239-
this.result_info = body.result_info || {};
240-
}
241-
242-
getPaginatedItems(): Item[] {
243-
return this.result ?? [];
244-
}
245-
246-
// @deprecated Please use `nextPageInfo()` instead
247-
nextPageParams(): Partial<CursorPaginationAfterParams> | null {
248-
const info = this.nextPageInfo();
249-
if (!info) return null;
250-
if ('params' in info) return info.params;
251-
const params = Object.fromEntries(info.url.searchParams);
252-
if (!Object.keys(params).length) return null;
253-
return params;
254-
}
255-
256-
nextPageInfo(): PageInfo | null {
257-
const cursor = this.result_info?.cursors?.after;
258-
if (!cursor) {
259-
return null;
260-
}
261-
262-
return {
263-
params: {
264-
cursor,
265-
},
266-
};
267-
}
268-
}
269-
270197
export interface CursorLimitPaginationResponse<Item> {
271198
result: Array<Item>;
272199

src/resources/radar/ai/ai.ts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22

33
import { APIResource } from '../../../resource';
44
import * as TimeseriesGroupsAPI from './timeseries-groups';
5-
import {
6-
TimeseriesGroupSummaryParams,
7-
TimeseriesGroupSummaryResponse,
8-
TimeseriesGroupTimeseriesGroupsParams,
9-
TimeseriesGroupTimeseriesGroupsResponse,
10-
TimeseriesGroupTimeseriesParams,
11-
TimeseriesGroupTimeseriesResponse,
12-
TimeseriesGroups,
13-
} from './timeseries-groups';
5+
import { TimeseriesGroups } from './timeseries-groups';
146
import * as ToMarkdownAPI from './to-markdown';
157
import {
168
ToMarkdown,
@@ -50,13 +42,5 @@ export declare namespace AI {
5042

5143
export { Bots as Bots };
5244

53-
export {
54-
TimeseriesGroups as TimeseriesGroups,
55-
type TimeseriesGroupSummaryResponse as TimeseriesGroupSummaryResponse,
56-
type TimeseriesGroupTimeseriesResponse as TimeseriesGroupTimeseriesResponse,
57-
type TimeseriesGroupTimeseriesGroupsResponse as TimeseriesGroupTimeseriesGroupsResponse,
58-
type TimeseriesGroupSummaryParams as TimeseriesGroupSummaryParams,
59-
type TimeseriesGroupTimeseriesParams as TimeseriesGroupTimeseriesParams,
60-
type TimeseriesGroupTimeseriesGroupsParams as TimeseriesGroupTimeseriesGroupsParams,
61-
};
45+
export { TimeseriesGroups as TimeseriesGroups };
6246
}

src/resources/radar/ai/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33
export { AI } from './ai';
44
export { Bots } from './bots/index';
55
export { Inference } from './inference/index';
6-
export {
7-
TimeseriesGroups,
8-
type TimeseriesGroupSummaryResponse,
9-
type TimeseriesGroupTimeseriesResponse,
10-
type TimeseriesGroupTimeseriesGroupsResponse,
11-
type TimeseriesGroupSummaryParams,
12-
type TimeseriesGroupTimeseriesParams,
13-
type TimeseriesGroupTimeseriesGroupsParams,
14-
} from './timeseries-groups';
6+
export { TimeseriesGroups } from './timeseries-groups';
157
export {
168
ToMarkdownCreateResponsesSinglePage,
179
ToMarkdown,

0 commit comments

Comments
 (0)