From 2b0c2057f4db8bbf1d62add93d0f0864973dfb07 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:16:31 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#969) --- .stats.yml | 2 +- src/resources/accounts/accounts.ts | 10 ++++++++++ tests/api-resources/accounts/accounts.test.ts | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b882f703b7..4a8cb08780 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/src/resources/accounts/accounts.ts b/src/resources/accounts/accounts.ts index 1fba55106f..8974ebff8f 100644 --- a/src/resources/accounts/accounts.ts +++ b/src/resources/accounts/accounts.ts @@ -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. @@ -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. diff --git a/tests/api-resources/accounts/accounts.test.ts b/tests/api-resources/accounts/accounts.test.ts index edee6ae3e9..26d6e9497c 100644 --- a/tests/api-resources/accounts/accounts.test.ts +++ b/tests/api-resources/accounts/accounts.test.ts @@ -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,