Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Apr 2, 2024
1 parent 7d6367a commit 9d15626
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def create(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
Expand All @@ -641,6 +641,8 @@ def create(
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
app_launcher_visible: Displays the application in the App Launcher.
domain: The URL or domain of the bookmark.
logo_url: The image URL for the logo shown in the App Launcher dashboard.
Expand Down Expand Up @@ -673,7 +675,7 @@ def create(
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: application_create_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1320,7 +1322,7 @@ def update(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
Expand All @@ -1343,6 +1345,8 @@ def update(
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
app_launcher_visible: Displays the application in the App Launcher.
domain: The URL or domain of the bookmark.
logo_url: The image URL for the logo shown in the App Launcher dashboard.
Expand Down Expand Up @@ -1376,7 +1380,7 @@ def update(
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: application_update_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2254,7 +2258,7 @@ async def create(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
Expand All @@ -2275,6 +2279,8 @@ async def create(
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
app_launcher_visible: Displays the application in the App Launcher.
domain: The URL or domain of the bookmark.
logo_url: The image URL for the logo shown in the App Launcher dashboard.
Expand Down Expand Up @@ -2307,7 +2313,7 @@ async def create(
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: application_create_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2954,7 +2960,7 @@ async def update(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
Expand All @@ -2977,6 +2983,8 @@ async def update(
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
app_launcher_visible: Displays the application in the App Launcher.
domain: The URL or domain of the bookmark.
logo_url: The image URL for the logo shown in the App Launcher dashboard.
Expand Down Expand Up @@ -3010,7 +3018,7 @@ async def update(
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: application_update_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Union, Iterable
from typing import List, Union
from typing_extensions import Literal, Required, TypedDict

__all__ = [
Expand Down Expand Up @@ -160,13 +160,13 @@ class SelfHostedApplicationCorsHeaders(TypedDict, total=False):
client certificates) with requests.
"""

allowed_headers: Iterable[object]
allowed_headers: List[str]
"""Allowed HTTP request headers."""

allowed_methods: List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
"""Allowed HTTP request methods."""

allowed_origins: Iterable[object]
allowed_origins: List[str]
"""Allowed origins."""

max_age: float
Expand Down Expand Up @@ -464,13 +464,13 @@ class BrowserSSHApplicationCorsHeaders(TypedDict, total=False):
client certificates) with requests.
"""

allowed_headers: Iterable[object]
allowed_headers: List[str]
"""Allowed HTTP request headers."""

allowed_methods: List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
"""Allowed HTTP request methods."""

allowed_origins: Iterable[object]
allowed_origins: List[str]
"""Allowed origins."""

max_age: float
Expand Down Expand Up @@ -611,13 +611,13 @@ class BrowserVncApplicationCorsHeaders(TypedDict, total=False):
client certificates) with requests.
"""

allowed_headers: Iterable[object]
allowed_headers: List[str]
"""Allowed HTTP request headers."""

allowed_methods: List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
"""Allowed HTTP request methods."""

allowed_origins: Iterable[object]
allowed_origins: List[str]
"""Allowed origins."""

max_age: float
Expand Down Expand Up @@ -727,7 +727,8 @@ class BookmarkApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""

app_launcher_visible: object
app_launcher_visible: bool
"""Displays the application in the App Launcher."""

domain: str
"""The URL or domain of the bookmark."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Union, Iterable
from typing import List, Union
from typing_extensions import Literal, Required, TypedDict

__all__ = [
Expand Down Expand Up @@ -160,13 +160,13 @@ class SelfHostedApplicationCorsHeaders(TypedDict, total=False):
client certificates) with requests.
"""

allowed_headers: Iterable[object]
allowed_headers: List[str]
"""Allowed HTTP request headers."""

allowed_methods: List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
"""Allowed HTTP request methods."""

allowed_origins: Iterable[object]
allowed_origins: List[str]
"""Allowed origins."""

max_age: float
Expand Down Expand Up @@ -464,13 +464,13 @@ class BrowserSSHApplicationCorsHeaders(TypedDict, total=False):
client certificates) with requests.
"""

allowed_headers: Iterable[object]
allowed_headers: List[str]
"""Allowed HTTP request headers."""

allowed_methods: List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
"""Allowed HTTP request methods."""

allowed_origins: Iterable[object]
allowed_origins: List[str]
"""Allowed origins."""

max_age: float
Expand Down Expand Up @@ -611,13 +611,13 @@ class BrowserVncApplicationCorsHeaders(TypedDict, total=False):
client certificates) with requests.
"""

allowed_headers: Iterable[object]
allowed_headers: List[str]
"""Allowed HTTP request headers."""

allowed_methods: List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
"""Allowed HTTP request methods."""

allowed_origins: Iterable[object]
allowed_origins: List[str]
"""Allowed origins."""

max_age: float
Expand Down Expand Up @@ -727,7 +727,8 @@ class BookmarkApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""

app_launcher_visible: object
app_launcher_visible: bool
"""Displays the application in the App Launcher."""

domain: str
"""The URL or domain of the bookmark."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Union, Iterable
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, Annotated, TypedDict

from ....._utils import PropertyInfo
Expand Down Expand Up @@ -395,7 +395,7 @@ class ApprovalGroup(TypedDict, total=False):
approvals_needed: Required[float]
"""The number of approvals needed to obtain access."""

email_addresses: Iterable[object]
email_addresses: List[str]
"""A list of emails that can approve the access request."""

email_list_uuid: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Union, Iterable
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, Annotated, TypedDict

from ....._utils import PropertyInfo
Expand Down Expand Up @@ -398,7 +398,7 @@ class ApprovalGroup(TypedDict, total=False):
approvals_needed: Required[float]
"""The number of approvals needed to obtain access."""

email_addresses: Iterable[object]
email_addresses: List[str]
"""A list of emails that can approve the access request."""

email_list_uuid: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ApprovalGroup(BaseModel):
approvals_needed: float
"""The number of approvals needed to obtain access."""

email_addresses: Optional[List[object]] = None
email_addresses: Optional[List[str]] = None
"""A list of emails that can approve the access request."""

email_list_uuid: Optional[str] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class ServiceTokenCreateResponse(BaseModel):
id: Optional[object] = None
id: Optional[str] = None
"""The ID of the service token."""

client_id: Optional[str] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class ServiceTokenRotateResponse(BaseModel):
id: Optional[object] = None
id: Optional[str] = None
"""The ID of the service token."""

client_id: Optional[str] = None
Expand Down
15 changes: 8 additions & 7 deletions src/cloudflare/types/zero_trust/access/zero_trust_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ class SelfHostedApplicationCorsHeaders(BaseModel):
client certificates) with requests.
"""

allowed_headers: Optional[List[object]] = None
allowed_headers: Optional[List[str]] = None
"""Allowed HTTP request headers."""

allowed_methods: Optional[
List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
] = None
"""Allowed HTTP request methods."""

allowed_origins: Optional[List[object]] = None
allowed_origins: Optional[List[str]] = None
"""Allowed origins."""

max_age: Optional[float] = None
Expand Down Expand Up @@ -367,15 +367,15 @@ class BrowserSSHApplicationCorsHeaders(BaseModel):
client certificates) with requests.
"""

allowed_headers: Optional[List[object]] = None
allowed_headers: Optional[List[str]] = None
"""Allowed HTTP request headers."""

allowed_methods: Optional[
List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
] = None
"""Allowed HTTP request methods."""

allowed_origins: Optional[List[object]] = None
allowed_origins: Optional[List[str]] = None
"""Allowed origins."""

max_age: Optional[float] = None
Expand Down Expand Up @@ -520,15 +520,15 @@ class BrowserVncApplicationCorsHeaders(BaseModel):
client certificates) with requests.
"""

allowed_headers: Optional[List[object]] = None
allowed_headers: Optional[List[str]] = None
"""Allowed HTTP request headers."""

allowed_methods: Optional[
List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
] = None
"""Allowed HTTP request methods."""

allowed_origins: Optional[List[object]] = None
allowed_origins: Optional[List[str]] = None
"""Allowed origins."""

max_age: Optional[float] = None
Expand Down Expand Up @@ -799,7 +799,8 @@ class BookmarkApplication(BaseModel):
id: Optional[str] = None
"""UUID"""

app_launcher_visible: Optional[object] = None
app_launcher_visible: Optional[bool] = None
"""Displays the application in the App Launcher."""

aud: Optional[str] = None
"""Audience tag."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class ZeroTrustBookmarks(BaseModel):
id: Optional[object] = None
id: Optional[str] = None
"""The unique identifier for the Bookmark application."""

app_launcher_visible: Optional[bool] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class ZeroTrustCertificates(BaseModel):
id: Optional[object] = None
id: Optional[str] = None
"""The ID of the application that will use this certificate."""

associated_hostnames: Optional[List[str]] = None
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/types/zero_trust/access/zero_trust_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class ZeroTrustUsers(BaseModel):
name: Optional[str] = None
"""The name of the user."""

seat_uid: Optional[object] = None
seat_uid: Optional[str] = None
"""The unique API identifier for the Zero Trust seat."""

uid: Optional[object] = None
uid: Optional[str] = None
"""The unique API identifier for the user."""

updated_at: Optional[datetime] = None
Loading

0 comments on commit 9d15626

Please sign in to comment.