Skip to content

Commit 08b415f

Browse files
feat(api): api update
1 parent 225c69a commit 08b415f

File tree

7 files changed

+8
-162
lines changed

7 files changed

+8
-162
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1793
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d40243b4192f76fb833e15210572c738f55fa868103caf6995ad710b15bae202.yml
3-
openapi_spec_hash: 37b7cfe9904bfd4e13a5b269266df631
1+
configured_endpoints: 1791
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9746b573736dbf0934c09eabd878bf986692f6af9dfff27dc732c26b44f85390.yml
3+
openapi_spec_hash: 3e8fb42bbbf7b24932c2214e0927f8b2
44
config_hash: de4c81cee29cd7dd907279e8916b334f

api.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,11 +1651,6 @@ Types:
16511651

16521652
- <code><a href="./src/resources/logpush/edge.ts">InstantLogpushJob</a></code>
16531653

1654-
Methods:
1655-
1656-
- <code title="post /zones/{zone_id}/logpush/edge">client.logpush.edge.<a href="./src/resources/logpush/edge.ts">create</a>({ ...params }) -> InstantLogpushJob | null</code>
1657-
- <code title="get /zones/{zone_id}/logpush/edge">client.logpush.edge.<a href="./src/resources/logpush/edge.ts">get</a>({ ...params }) -> InstantLogpushJobsSinglePage</code>
1658-
16591654
## Jobs
16601655

16611656
Types:

scripts/detect-breaking-changes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ TEST_PATHS=(
138138
tests/api-resources/logpush/datasets/datasets.test.ts
139139
tests/api-resources/logpush/datasets/fields.test.ts
140140
tests/api-resources/logpush/datasets/jobs.test.ts
141-
tests/api-resources/logpush/edge.test.ts
142141
tests/api-resources/logpush/jobs.test.ts
143142
tests/api-resources/logpush/ownership.test.ts
144143
tests/api-resources/logpush/validate.test.ts

src/resources/logpush/edge.ts

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

33
import { APIResource } from '../../resource';
4-
import * as Core from '../../core';
5-
import { SinglePage } from '../../pagination';
64

7-
export class Edge extends APIResource {
8-
/**
9-
* Creates a new Instant Logs job for a zone.
10-
*
11-
* @example
12-
* ```ts
13-
* const instantLogpushJob = await client.logpush.edge.create({
14-
* zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
15-
* });
16-
* ```
17-
*/
18-
create(params: EdgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<InstantLogpushJob | null> {
19-
const { zone_id, ...body } = params;
20-
return (
21-
this._client.post(`/zones/${zone_id}/logpush/edge`, { body, ...options }) as Core.APIPromise<{
22-
result: InstantLogpushJob | null;
23-
}>
24-
)._thenUnwrap((obj) => obj.result);
25-
}
26-
27-
/**
28-
* Lists Instant Logs jobs for a zone.
29-
*
30-
* @example
31-
* ```ts
32-
* // Automatically fetches more pages as needed.
33-
* for await (const instantLogpushJob of client.logpush.edge.get(
34-
* { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
35-
* )) {
36-
* // ...
37-
* }
38-
* ```
39-
*/
40-
get(
41-
params: EdgeGetParams,
42-
options?: Core.RequestOptions,
43-
): Core.PagePromise<InstantLogpushJobsSinglePage, InstantLogpushJob | null> {
44-
const { zone_id } = params;
45-
return this._client.getAPIList(`/zones/${zone_id}/logpush/edge`, InstantLogpushJobsSinglePage, options);
46-
}
47-
}
48-
49-
export class InstantLogpushJobsSinglePage extends SinglePage<InstantLogpushJob | null> {}
5+
export class Edge extends APIResource {}
506

517
export interface InstantLogpushJob {
528
/**
@@ -76,43 +32,6 @@ export interface InstantLogpushJob {
7632
session_id?: string;
7733
}
7834

79-
export interface EdgeCreateParams {
80-
/**
81-
* Path param: Identifier.
82-
*/
83-
zone_id: string;
84-
85-
/**
86-
* Body param: Comma-separated list of fields.
87-
*/
88-
fields?: string;
89-
90-
/**
91-
* Body param: Filters to drill down into specific events.
92-
*/
93-
filter?: string;
94-
95-
/**
96-
* Body param: The sample parameter is the sample rate of the records set by the
97-
* client: "sample": 1 is 100% of records "sample": 10 is 10% and so on.
98-
*/
99-
sample?: number;
100-
}
101-
102-
export interface EdgeGetParams {
103-
/**
104-
* Identifier.
105-
*/
106-
zone_id: string;
107-
}
108-
109-
Edge.InstantLogpushJobsSinglePage = InstantLogpushJobsSinglePage;
110-
11135
export declare namespace Edge {
112-
export {
113-
type InstantLogpushJob as InstantLogpushJob,
114-
InstantLogpushJobsSinglePage as InstantLogpushJobsSinglePage,
115-
type EdgeCreateParams as EdgeCreateParams,
116-
type EdgeGetParams as EdgeGetParams,
117-
};
36+
export { type InstantLogpushJob as InstantLogpushJob };
11837
}

src/resources/logpush/index.ts

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

33
export { Datasets } from './datasets/index';
4-
export {
5-
InstantLogpushJobsSinglePage,
6-
Edge,
7-
type InstantLogpushJob,
8-
type EdgeCreateParams,
9-
type EdgeGetParams,
10-
} from './edge';
4+
export { Edge, type InstantLogpushJob } from './edge';
115
export { Logpush } from './logpush';
126
export {
137
LogpushJobsSinglePage,

src/resources/logpush/logpush.ts

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

33
import { APIResource } from '../../resource';
44
import * as EdgeAPI from './edge';
5-
import {
6-
Edge,
7-
EdgeCreateParams,
8-
EdgeGetParams,
9-
InstantLogpushJob,
10-
InstantLogpushJobsSinglePage,
11-
} from './edge';
5+
import { Edge, InstantLogpushJob } from './edge';
126
import * as JobsAPI from './jobs';
137
import {
148
JobCreateParams,
@@ -53,7 +47,6 @@ export class Logpush extends APIResource {
5347

5448
Logpush.Datasets = Datasets;
5549
Logpush.Edge = Edge;
56-
Logpush.InstantLogpushJobsSinglePage = InstantLogpushJobsSinglePage;
5750
Logpush.Jobs = Jobs;
5851
Logpush.LogpushJobsSinglePage = LogpushJobsSinglePage;
5952
Logpush.Ownership = Ownership;
@@ -62,13 +55,7 @@ Logpush.Validate = Validate;
6255
export declare namespace Logpush {
6356
export { Datasets as Datasets };
6457

65-
export {
66-
Edge as Edge,
67-
type InstantLogpushJob as InstantLogpushJob,
68-
InstantLogpushJobsSinglePage as InstantLogpushJobsSinglePage,
69-
type EdgeCreateParams as EdgeCreateParams,
70-
type EdgeGetParams as EdgeGetParams,
71-
};
58+
export { Edge as Edge, type InstantLogpushJob as InstantLogpushJob };
7259

7360
export {
7461
Jobs as Jobs,

tests/api-resources/logpush/edge.test.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)