From d2a77f29c75f3bd4bf8287e3f1479588f478f338 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 07:46:33 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#810) --- .stats.yml | 2 +- .../types/zero_trust/risk_scoring/behaviour_update_params.py | 4 ++-- .../types/zero_trust/risk_scoring/summary_get_response.py | 2 +- src/cloudflare/types/zero_trust/risk_scoring_get_response.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index c598bba4c51..f97096b9f52 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1335 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9a251d357720416104482b5ef46e7fd51961fdaf6f3104d36b04f1bd51809cfb.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4d641c65ec0fe43d3f8f3f2b13ec8ef70a7d9c4f4d2cb10679ccc140fdd143c3.yml diff --git a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py index c0180b2da17..87299513320 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Dict from typing_extensions import Literal, Required, TypedDict __all__ = ["BehaviourUpdateParams", "Behaviors"] @@ -15,4 +15,4 @@ class BehaviourUpdateParams(TypedDict, total=False): class Behaviors(TypedDict, total=False): enabled: Required[bool] - risk_level: Required[Optional[Literal["low", "medium", "high"]]] + risk_level: Required[Literal["low", "medium", "high"]] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py b/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py index c15eb288655..8af39df8b36 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py @@ -16,7 +16,7 @@ class User(BaseModel): last_event: datetime - max_risk_level: Optional[Literal["low", "medium", "high"]] = None + max_risk_level: Literal["low", "medium", "high"] name: str diff --git a/src/cloudflare/types/zero_trust/risk_scoring_get_response.py b/src/cloudflare/types/zero_trust/risk_scoring_get_response.py index 2b6ae19f438..74c48968647 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring_get_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring_get_response.py @@ -14,7 +14,7 @@ class Event(BaseModel): name: str - risk_level: Optional[Literal["low", "medium", "high"]] = None + risk_level: Literal["low", "medium", "high"] timestamp: datetime