Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jun 5, 2024
1 parent f948e3c commit 04c3eb1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"]]
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 04c3eb1

Please sign in to comment.