Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #810

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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