From 2f0a4f2c9d14f66792db02cb2fb6afbc3b061498 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Jun 2024 09:42:59 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#795) --- .stats.yml | 2 +- src/resources/rulesets/phases/phases.ts | 5 ----- src/resources/rulesets/rulesets.ts | 5 ----- tests/api-resources/rulesets/phases/phases.test.ts | 1 - 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.stats.yml b/.stats.yml index fe7ec84965..bf9ade0a89 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1338 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b02b68427ca7af705b9f5f833944a4959877bb48cb88a7dc74dd8bfbf2d9a25a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ec270b3c03c21a8d2358f8bf7726d82da5aa7eda902b5df86220f550eac2c2e.yml diff --git a/src/resources/rulesets/phases/phases.ts b/src/resources/rulesets/phases/phases.ts index 6d5af19145..2a988702b9 100644 --- a/src/resources/rulesets/phases/phases.ts +++ b/src/resources/rulesets/phases/phases.ts @@ -717,11 +717,6 @@ export interface PhaseUpdateParams { * Body param: The human-readable name of the ruleset. */ name?: string; - - /** - * Body param: The phase of the ruleset. - */ - phase?: RulesetsAPI.PhaseParam; } export namespace PhaseUpdateParams { diff --git a/src/resources/rulesets/rulesets.ts b/src/resources/rulesets/rulesets.ts index 5b91cb15f2..f16596d2ec 100644 --- a/src/resources/rulesets/rulesets.ts +++ b/src/resources/rulesets/rulesets.ts @@ -294,11 +294,6 @@ export interface Ruleset { * The human-readable name of the ruleset. */ name?: string; - - /** - * The phase of the ruleset. - */ - phase?: Phase; } /** diff --git a/tests/api-resources/rulesets/phases/phases.test.ts b/tests/api-resources/rulesets/phases/phases.test.ts index 9b0485aa85..4f3b44e5e8 100644 --- a/tests/api-resources/rulesets/phases/phases.test.ts +++ b/tests/api-resources/rulesets/phases/phases.test.ts @@ -81,7 +81,6 @@ describe('resource phases', () => { account_id: 'string', description: 'My ruleset to execute managed rulesets', name: 'My ruleset', - phase: 'http_request_firewall_custom', }); });