Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 17, 2024
1 parent c393f21 commit 2b0c205
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1348
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60eaec2f4029582531bbb45c66bb499e91203845eeeb3d507ae7ed5675a6bbe6.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d1a5f2de8e753867ab88ca1b88d1d1cdc944a7834fb81506a7ace10ed151624.yml
10 changes: 10 additions & 0 deletions src/resources/accounts/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ export namespace Account {
* Account settings
*/
export interface Settings {
/**
* Sets an abuse contact email to notify for abuse reports.
*/
abuse_contact_email?: string;

/**
* Specifies the default nameservers to be used for new zones added to this
* account.
Expand Down Expand Up @@ -144,6 +149,11 @@ export namespace AccountUpdateParams {
* Account settings
*/
export interface Settings {
/**
* Sets an abuse contact email to notify for abuse reports.
*/
abuse_contact_email?: string;

/**
* Specifies the default nameservers to be used for new zones added to this
* account.
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/accounts/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe('resource accounts', () => {
account_id: {},
name: 'Demo Account',
settings: {
abuse_contact_email: 'string',
default_nameservers: 'cloudflare.standard',
enforce_twofactor: true,
use_account_custom_ns_by_default: true,
Expand Down

0 comments on commit 2b0c205

Please sign in to comment.