Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 02090a6 commit b03d041
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 65 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1259
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-66dffe82f1ae82ccb13bf0b382257be6906f416a22d1ca4ea74464cfff324775.yml
configured_endpoints: 1258
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eb69a13d7b51cee2ffd5e3a4a70f4312e20c9830d80be2ecbc7006c8a524d912.yml
4 changes: 0 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3144,10 +3144,6 @@ Types:

- <code><a href="./src/resources/intel/whois.ts">Whois</a></code>

Methods:

- <code title="get /accounts/{account_id}/intel/whois">client.intel.whois.<a href="./src/resources/intel/whois.ts">get</a>({ ...params }) -> Whois</code>

## IndicatorFeeds

Types:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/intel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ export {
Miscategorizations,
} from './miscategorizations';
export { Sinkhole, SinkholeListParams, SinkholesSinglePage, Sinkholes } from './sinkholes';
export { Whois, WhoisGetParams } from './whois';
export { Whois } from './whois';
1 change: 0 additions & 1 deletion src/resources/intel/intel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export namespace Intel {
export import MiscategorizationCreateResponse = MiscategorizationsAPI.MiscategorizationCreateResponse;
export import MiscategorizationCreateParams = MiscategorizationsAPI.MiscategorizationCreateParams;
export import Whois = WhoisAPI.Whois;
export import WhoisGetParams = WhoisAPI.WhoisGetParams;
export import IndicatorFeeds = IndicatorFeedsAPI.IndicatorFeeds;
export import IndicatorFeedCreateResponse = IndicatorFeedsAPI.IndicatorFeedCreateResponse;
export import IndicatorFeedUpdateResponse = IndicatorFeedsAPI.IndicatorFeedUpdateResponse;
Expand Down
28 changes: 1 addition & 27 deletions src/resources/intel/whois.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as WhoisAPI from 'cloudflare/resources/intel/whois';

export class Whois extends APIResource {
/**
* Get WHOIS Record
*/
get(params: WhoisGetParams, options?: Core.RequestOptions): Core.APIPromise<Whois> {
const { account_id, ...query } = params;
return (
this._client.get(`/accounts/${account_id}/intel/whois`, { query, ...options }) as Core.APIPromise<{
result: Whois;
}>
)._thenUnwrap((obj) => obj.result);
}
}
export class Whois extends APIResource {}

export interface Whois {
created_date?: string;
Expand All @@ -38,19 +25,6 @@ export interface Whois {
updated_date?: string;
}

export interface WhoisGetParams {
/**
* Path param: Identifier
*/
account_id: string;

/**
* Query param:
*/
domain?: string;
}

export namespace Whois {
export import Whois = WhoisAPI.Whois;
export import WhoisGetParams = WhoisAPI.WhoisGetParams;
}
30 changes: 0 additions & 30 deletions tests/api-resources/intel/whois.test.ts

This file was deleted.

0 comments on commit b03d041

Please sign in to comment.