Skip to content

Commit 9d15626

Browse files
feat(api): OpenAPI spec update via Stainless API (#195)
1 parent 7d6367a commit 9d15626

File tree

13 files changed

+69
-58
lines changed

13 files changed

+69
-58
lines changed

src/cloudflare/resources/zero_trust/access/applications/applications.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def create(
620620
*,
621621
account_id: str | NotGiven = NOT_GIVEN,
622622
zone_id: str | NotGiven = NOT_GIVEN,
623-
app_launcher_visible: object | NotGiven = NOT_GIVEN,
623+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
624624
domain: str | NotGiven = NOT_GIVEN,
625625
logo_url: str | NotGiven = NOT_GIVEN,
626626
name: str | NotGiven = NOT_GIVEN,
@@ -641,6 +641,8 @@ def create(
641641
642642
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
643643
644+
app_launcher_visible: Displays the application in the App Launcher.
645+
644646
domain: The URL or domain of the bookmark.
645647
646648
logo_url: The image URL for the logo shown in the App Launcher dashboard.
@@ -673,7 +675,7 @@ def create(
673675
zone_id: str | NotGiven = NOT_GIVEN,
674676
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
675677
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
676-
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
678+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
677679
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
678680
cors_headers: application_create_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
679681
custom_deny_message: str | NotGiven = NOT_GIVEN,
@@ -1320,7 +1322,7 @@ def update(
13201322
*,
13211323
account_id: str | NotGiven = NOT_GIVEN,
13221324
zone_id: str | NotGiven = NOT_GIVEN,
1323-
app_launcher_visible: object | NotGiven = NOT_GIVEN,
1325+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
13241326
domain: str | NotGiven = NOT_GIVEN,
13251327
logo_url: str | NotGiven = NOT_GIVEN,
13261328
name: str | NotGiven = NOT_GIVEN,
@@ -1343,6 +1345,8 @@ def update(
13431345
13441346
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
13451347
1348+
app_launcher_visible: Displays the application in the App Launcher.
1349+
13461350
domain: The URL or domain of the bookmark.
13471351
13481352
logo_url: The image URL for the logo shown in the App Launcher dashboard.
@@ -1376,7 +1380,7 @@ def update(
13761380
zone_id: str | NotGiven = NOT_GIVEN,
13771381
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
13781382
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
1379-
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
1383+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
13801384
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
13811385
cors_headers: application_update_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
13821386
custom_deny_message: str | NotGiven = NOT_GIVEN,
@@ -2254,7 +2258,7 @@ async def create(
22542258
*,
22552259
account_id: str | NotGiven = NOT_GIVEN,
22562260
zone_id: str | NotGiven = NOT_GIVEN,
2257-
app_launcher_visible: object | NotGiven = NOT_GIVEN,
2261+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
22582262
domain: str | NotGiven = NOT_GIVEN,
22592263
logo_url: str | NotGiven = NOT_GIVEN,
22602264
name: str | NotGiven = NOT_GIVEN,
@@ -2275,6 +2279,8 @@ async def create(
22752279
22762280
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
22772281
2282+
app_launcher_visible: Displays the application in the App Launcher.
2283+
22782284
domain: The URL or domain of the bookmark.
22792285
22802286
logo_url: The image URL for the logo shown in the App Launcher dashboard.
@@ -2307,7 +2313,7 @@ async def create(
23072313
zone_id: str | NotGiven = NOT_GIVEN,
23082314
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
23092315
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
2310-
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
2316+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
23112317
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
23122318
cors_headers: application_create_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
23132319
custom_deny_message: str | NotGiven = NOT_GIVEN,
@@ -2954,7 +2960,7 @@ async def update(
29542960
*,
29552961
account_id: str | NotGiven = NOT_GIVEN,
29562962
zone_id: str | NotGiven = NOT_GIVEN,
2957-
app_launcher_visible: object | NotGiven = NOT_GIVEN,
2963+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
29582964
domain: str | NotGiven = NOT_GIVEN,
29592965
logo_url: str | NotGiven = NOT_GIVEN,
29602966
name: str | NotGiven = NOT_GIVEN,
@@ -2977,6 +2983,8 @@ async def update(
29772983
29782984
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
29792985
2986+
app_launcher_visible: Displays the application in the App Launcher.
2987+
29802988
domain: The URL or domain of the bookmark.
29812989
29822990
logo_url: The image URL for the logo shown in the App Launcher dashboard.
@@ -3010,7 +3018,7 @@ async def update(
30103018
zone_id: str | NotGiven = NOT_GIVEN,
30113019
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
30123020
allowed_idps: List[str] | NotGiven = NOT_GIVEN,
3013-
app_launcher_visible: bool | object | NotGiven = NOT_GIVEN,
3021+
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
30143022
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
30153023
cors_headers: application_update_params.SelfHostedApplicationCorsHeaders | NotGiven = NOT_GIVEN,
30163024
custom_deny_message: str | NotGiven = NOT_GIVEN,

src/cloudflare/types/zero_trust/access/application_create_params.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Union, Iterable
5+
from typing import List, Union
66
from typing_extensions import Literal, Required, TypedDict
77

88
__all__ = [
@@ -160,13 +160,13 @@ class SelfHostedApplicationCorsHeaders(TypedDict, total=False):
160160
client certificates) with requests.
161161
"""
162162

163-
allowed_headers: Iterable[object]
163+
allowed_headers: List[str]
164164
"""Allowed HTTP request headers."""
165165

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

169-
allowed_origins: Iterable[object]
169+
allowed_origins: List[str]
170170
"""Allowed origins."""
171171

172172
max_age: float
@@ -464,13 +464,13 @@ class BrowserSSHApplicationCorsHeaders(TypedDict, total=False):
464464
client certificates) with requests.
465465
"""
466466

467-
allowed_headers: Iterable[object]
467+
allowed_headers: List[str]
468468
"""Allowed HTTP request headers."""
469469

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

473-
allowed_origins: Iterable[object]
473+
allowed_origins: List[str]
474474
"""Allowed origins."""
475475

476476
max_age: float
@@ -611,13 +611,13 @@ class BrowserVncApplicationCorsHeaders(TypedDict, total=False):
611611
client certificates) with requests.
612612
"""
613613

614-
allowed_headers: Iterable[object]
614+
allowed_headers: List[str]
615615
"""Allowed HTTP request headers."""
616616

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

620-
allowed_origins: Iterable[object]
620+
allowed_origins: List[str]
621621
"""Allowed origins."""
622622

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

730-
app_launcher_visible: object
730+
app_launcher_visible: bool
731+
"""Displays the application in the App Launcher."""
731732

732733
domain: str
733734
"""The URL or domain of the bookmark."""

src/cloudflare/types/zero_trust/access/application_update_params.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Union, Iterable
5+
from typing import List, Union
66
from typing_extensions import Literal, Required, TypedDict
77

88
__all__ = [
@@ -160,13 +160,13 @@ class SelfHostedApplicationCorsHeaders(TypedDict, total=False):
160160
client certificates) with requests.
161161
"""
162162

163-
allowed_headers: Iterable[object]
163+
allowed_headers: List[str]
164164
"""Allowed HTTP request headers."""
165165

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

169-
allowed_origins: Iterable[object]
169+
allowed_origins: List[str]
170170
"""Allowed origins."""
171171

172172
max_age: float
@@ -464,13 +464,13 @@ class BrowserSSHApplicationCorsHeaders(TypedDict, total=False):
464464
client certificates) with requests.
465465
"""
466466

467-
allowed_headers: Iterable[object]
467+
allowed_headers: List[str]
468468
"""Allowed HTTP request headers."""
469469

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

473-
allowed_origins: Iterable[object]
473+
allowed_origins: List[str]
474474
"""Allowed origins."""
475475

476476
max_age: float
@@ -611,13 +611,13 @@ class BrowserVncApplicationCorsHeaders(TypedDict, total=False):
611611
client certificates) with requests.
612612
"""
613613

614-
allowed_headers: Iterable[object]
614+
allowed_headers: List[str]
615615
"""Allowed HTTP request headers."""
616616

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

620-
allowed_origins: Iterable[object]
620+
allowed_origins: List[str]
621621
"""Allowed origins."""
622622

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

730-
app_launcher_visible: object
730+
app_launcher_visible: bool
731+
"""Displays the application in the App Launcher."""
731732

732733
domain: str
733734
"""The URL or domain of the bookmark."""

src/cloudflare/types/zero_trust/access/applications/policy_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable
5+
from typing import List, Union, Iterable
66
from typing_extensions import Literal, Required, Annotated, TypedDict
77

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

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

401401
email_list_uuid: str

src/cloudflare/types/zero_trust/access/applications/policy_update_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable
5+
from typing import List, Union, Iterable
66
from typing_extensions import Literal, Required, Annotated, TypedDict
77

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

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

404404
email_list_uuid: str

src/cloudflare/types/zero_trust/access/applications/zero_trust_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class ApprovalGroup(BaseModel):
126126
approvals_needed: float
127127
"""The number of approvals needed to obtain access."""
128128

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

132132
email_list_uuid: Optional[str] = None

src/cloudflare/types/zero_trust/access/service_token_create_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class ServiceTokenCreateResponse(BaseModel):
12-
id: Optional[object] = None
12+
id: Optional[str] = None
1313
"""The ID of the service token."""
1414

1515
client_id: Optional[str] = None

src/cloudflare/types/zero_trust/access/service_token_rotate_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class ServiceTokenRotateResponse(BaseModel):
12-
id: Optional[object] = None
12+
id: Optional[str] = None
1313
"""The ID of the service token."""
1414

1515
client_id: Optional[str] = None

src/cloudflare/types/zero_trust/access/zero_trust_apps.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ class SelfHostedApplicationCorsHeaders(BaseModel):
4343
client certificates) with requests.
4444
"""
4545

46-
allowed_headers: Optional[List[object]] = None
46+
allowed_headers: Optional[List[str]] = None
4747
"""Allowed HTTP request headers."""
4848

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

54-
allowed_origins: Optional[List[object]] = None
54+
allowed_origins: Optional[List[str]] = None
5555
"""Allowed origins."""
5656

5757
max_age: Optional[float] = None
@@ -367,15 +367,15 @@ class BrowserSSHApplicationCorsHeaders(BaseModel):
367367
client certificates) with requests.
368368
"""
369369

370-
allowed_headers: Optional[List[object]] = None
370+
allowed_headers: Optional[List[str]] = None
371371
"""Allowed HTTP request headers."""
372372

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

378-
allowed_origins: Optional[List[object]] = None
378+
allowed_origins: Optional[List[str]] = None
379379
"""Allowed origins."""
380380

381381
max_age: Optional[float] = None
@@ -520,15 +520,15 @@ class BrowserVncApplicationCorsHeaders(BaseModel):
520520
client certificates) with requests.
521521
"""
522522

523-
allowed_headers: Optional[List[object]] = None
523+
allowed_headers: Optional[List[str]] = None
524524
"""Allowed HTTP request headers."""
525525

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

531-
allowed_origins: Optional[List[object]] = None
531+
allowed_origins: Optional[List[str]] = None
532532
"""Allowed origins."""
533533

534534
max_age: Optional[float] = None
@@ -799,7 +799,8 @@ class BookmarkApplication(BaseModel):
799799
id: Optional[str] = None
800800
"""UUID"""
801801

802-
app_launcher_visible: Optional[object] = None
802+
app_launcher_visible: Optional[bool] = None
803+
"""Displays the application in the App Launcher."""
803804

804805
aud: Optional[str] = None
805806
"""Audience tag."""

src/cloudflare/types/zero_trust/access/zero_trust_bookmarks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class ZeroTrustBookmarks(BaseModel):
12-
id: Optional[object] = None
12+
id: Optional[str] = None
1313
"""The unique identifier for the Bookmark application."""
1414

1515
app_launcher_visible: Optional[bool] = None

0 commit comments

Comments
 (0)