Skip to content

Commit ab0bebd

Browse files
chore(api): update composite API spec
1 parent be85733 commit ab0bebd

File tree

8 files changed

+8
-106
lines changed

8 files changed

+8
-106
lines changed

.eslintcache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1823
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-abeeb4b900a2f2772167739bb31324ec27d81dc0a6451095b0006edd40d2c31a.yml
3-
openapi_spec_hash: f52f442953e83c9d645cfdd12af3491b
1+
configured_endpoints: 1822
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3f1c0a84becf5ac8bad40cbab4e16413f143f6e7b8e4b4e96ecd12a9a4352f45.yml
3+
openapi_spec_hash: dde82656a1efbdfa6d8c2285b4f415b7
44
config_hash: 4bd8c8b19860de3e5da0f6dfb78ab679

api.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3332,14 +3332,6 @@ Methods:
33323332

33333333
### Downloads
33343334

3335-
Types:
3336-
3337-
- <code><a href="./src/resources/intel/indicator-feeds/downloads.ts">DownloadGetResponse</a></code>
3338-
3339-
Methods:
3340-
3341-
- <code title="get /accounts/{account_id}/intel/indicator_feeds/{feed_id}/download">client.intel.indicatorFeeds.downloads.<a href="./src/resources/intel/indicator-feeds/downloads.ts">get</a>(feedId, { ...params }) -> DownloadGetResponse</code>
3342-
33433335
## Sinkholes
33443336

33453337
Types:

scripts/detect-breaking-changes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ TEST_PATHS=(
287287
tests/api-resources/intel/indicator-feeds/indicator-feeds.test.ts
288288
tests/api-resources/intel/indicator-feeds/snapshots.test.ts
289289
tests/api-resources/intel/indicator-feeds/permissions.test.ts
290-
tests/api-resources/intel/indicator-feeds/downloads.test.ts
291290
tests/api-resources/intel/sinkholes.test.ts
292291
tests/api-resources/intel/attack-surface-report/attack-surface-report.test.ts
293292
tests/api-resources/intel/attack-surface-report/issue-types.test.ts
Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,5 @@
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';
54

6-
export class Downloads extends APIResource {
7-
/**
8-
* Download indicator feed data
9-
*
10-
* @example
11-
* ```ts
12-
* const download =
13-
* await client.intel.indicatorFeeds.downloads.get(12, {
14-
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
15-
* });
16-
* ```
17-
*/
18-
get(
19-
feedId: number,
20-
params: DownloadGetParams,
21-
options?: Core.RequestOptions,
22-
): Core.APIPromise<DownloadGetResponse> {
23-
const { account_id } = params;
24-
return (
25-
this._client.get(
26-
`/accounts/${account_id}/intel/indicator_feeds/${feedId}/download`,
27-
options,
28-
) as Core.APIPromise<{ result: DownloadGetResponse }>
29-
)._thenUnwrap((obj) => obj.result);
30-
}
31-
}
32-
33-
export interface DownloadGetResponse {
34-
/**
35-
* Feed id
36-
*/
37-
file_id?: number;
38-
39-
/**
40-
* Name of the file unified in our system
41-
*/
42-
filename?: string;
43-
44-
/**
45-
* Current status of upload, should be unified
46-
*/
47-
status?: string;
48-
}
49-
50-
export interface DownloadGetParams {
51-
/**
52-
* Identifier
53-
*/
54-
account_id: string;
55-
}
56-
57-
export declare namespace Downloads {
58-
export { type DownloadGetResponse as DownloadGetResponse, type DownloadGetParams as DownloadGetParams };
59-
}
5+
export class Downloads extends APIResource {}

src/resources/intel/indicator-feeds/index.ts

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

3-
export { Downloads, type DownloadGetResponse, type DownloadGetParams } from './downloads';
3+
export { Downloads } from './downloads';
44
export {
55
IndicatorFeedListResponsesSinglePage,
66
IndicatorFeeds,

src/resources/intel/indicator-feeds/indicator-feeds.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { APIResource } from '../../../resource';
44
import * as Core from '../../../core';
55
import * as DownloadsAPI from './downloads';
6-
import { DownloadGetParams, DownloadGetResponse, Downloads } from './downloads';
6+
import { Downloads } from './downloads';
77
import * as PermissionsAPI from './permissions';
88
import {
99
PermissionCreateParams,
@@ -439,9 +439,5 @@ export declare namespace IndicatorFeeds {
439439
type PermissionDeleteParams as PermissionDeleteParams,
440440
};
441441

442-
export {
443-
Downloads as Downloads,
444-
type DownloadGetResponse as DownloadGetResponse,
445-
type DownloadGetParams as DownloadGetParams,
446-
};
442+
export { Downloads as Downloads };
447443
}

tests/api-resources/intel/indicator-feeds/downloads.test.ts

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

0 commit comments

Comments
 (0)