Skip to content

Commit e4f787b

Browse files
chore(api): update composite API spec
1 parent a41d2df commit e4f787b

9 files changed

Lines changed: 800 additions & 8 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1996
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ed290d9fcbc15c748f092a47b3c4cb4c88cd68de7050c7a8d0574c27b80585a4.yml
3-
openapi_spec_hash: 18e1e8a258084ca0e5a9199b03bb9aa8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8d1c797be2f62cfe7299595bbd18a1b3761024b586866b48be9e0f27d54ace89.yml
3+
openapi_spec_hash: 46a8341906b1026e5a969579c8a10b14
44
config_hash: d1101915de2a8b526a1fe20a9f7314ca

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

Lines changed: 128 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 103 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@
8989
"GatewayIdentityProxyEndpointApplicationPolicy",
9090
"GatewayIdentityProxyEndpointApplicationPolicyAccessAppPolicyLink",
9191
"GatewayIdentityProxyEndpointApplicationPolicyUnionMember2",
92-
"AccessBookmarkProps",
92+
"BookmarkApplication",
93+
"BookmarkApplicationPolicy",
94+
"BookmarkApplicationPolicyAccessAppPolicyLink",
95+
"BookmarkApplicationPolicyUnionMember2",
9396
"InfrastructureApplication",
9497
"InfrastructureApplicationTargetCriterion",
9598
"InfrastructureApplicationPolicy",
@@ -274,6 +277,14 @@ class SelfHostedApplication(TypedDict, total=False):
274277
Tags are used to filter applications in the App Launcher dashboard.
275278
"""
276279

280+
use_clientless_isolation_app_launcher_url: bool
281+
"""
282+
Determines if users can access this application via a clientless browser
283+
isolation URL. This allows users to access private domains without connecting to
284+
Gateway. The option requires Clientless Browser Isolation to be set up with
285+
policies that allow users of this application.
286+
"""
287+
277288

278289
class SelfHostedApplicationDestinationPublicDestination(TypedDict, total=False):
279290
"""A public hostname that Access will secure.
@@ -888,6 +899,14 @@ class BrowserSSHApplication(TypedDict, total=False):
888899
Tags are used to filter applications in the App Launcher dashboard.
889900
"""
890901

902+
use_clientless_isolation_app_launcher_url: bool
903+
"""
904+
Determines if users can access this application via a clientless browser
905+
isolation URL. This allows users to access private domains without connecting to
906+
Gateway. The option requires Clientless Browser Isolation to be set up with
907+
policies that allow users of this application.
908+
"""
909+
891910

892911
class BrowserSSHApplicationDestinationPublicDestination(TypedDict, total=False):
893912
"""A public hostname that Access will secure.
@@ -1286,6 +1305,14 @@ class BrowserVNCApplication(TypedDict, total=False):
12861305
Tags are used to filter applications in the App Launcher dashboard.
12871306
"""
12881307

1308+
use_clientless_isolation_app_launcher_url: bool
1309+
"""
1310+
Determines if users can access this application via a clientless browser
1311+
isolation URL. This allows users to access private domains without connecting to
1312+
Gateway. The option requires Clientless Browser Isolation to be set up with
1313+
policies that allow users of this application.
1314+
"""
1315+
12891316

12901317
class BrowserVNCApplicationDestinationPublicDestination(TypedDict, total=False):
12911318
"""A public hostname that Access will secure.
@@ -2030,7 +2057,7 @@ class GatewayIdentityProxyEndpointApplicationPolicyUnionMember2(TypedDict, total
20302057
]
20312058

20322059

2033-
class AccessBookmarkProps(TypedDict, total=False):
2060+
class BookmarkApplication(TypedDict, total=False):
20342061
account_id: str
20352062
"""The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""
20362063

@@ -2049,6 +2076,13 @@ class AccessBookmarkProps(TypedDict, total=False):
20492076
name: str
20502077
"""The name of the application."""
20512078

2079+
policies: SequenceNotStr[BookmarkApplicationPolicy]
2080+
"""
2081+
The policies that Access applies to the application, in ascending order of
2082+
precedence. Items can reference existing policies or create new policies
2083+
exclusive to the application.
2084+
"""
2085+
20522086
tags: SequenceNotStr[str]
20532087
"""The tags you want assigned to an application.
20542088
@@ -2059,6 +2093,64 @@ class AccessBookmarkProps(TypedDict, total=False):
20592093
"""The application type."""
20602094

20612095

2096+
class BookmarkApplicationPolicyAccessAppPolicyLink(TypedDict, total=False):
2097+
"""A JSON that links a reusable policy to an application."""
2098+
2099+
id: str
2100+
"""The UUID of the policy"""
2101+
2102+
precedence: int
2103+
"""The order of execution for this policy.
2104+
2105+
Must be unique for each policy within an app.
2106+
"""
2107+
2108+
2109+
class BookmarkApplicationPolicyUnionMember2(TypedDict, total=False):
2110+
id: str
2111+
"""The UUID of the policy"""
2112+
2113+
approval_groups: Iterable[ApprovalGroupParam]
2114+
"""Administrators who can approve a temporary authentication request."""
2115+
2116+
approval_required: bool
2117+
"""
2118+
Requires the user to request access from an administrator at the start of each
2119+
session.
2120+
"""
2121+
2122+
isolation_required: bool
2123+
"""
2124+
Require this application to be served in an isolated browser for users matching
2125+
this policy. 'Client Web Isolation' must be on for the account in order to use
2126+
this feature.
2127+
"""
2128+
2129+
precedence: int
2130+
"""The order of execution for this policy.
2131+
2132+
Must be unique for each policy within an app.
2133+
"""
2134+
2135+
purpose_justification_prompt: str
2136+
"""A custom message that will appear on the purpose justification screen."""
2137+
2138+
purpose_justification_required: bool
2139+
"""Require users to enter a justification when they log in to the application."""
2140+
2141+
session_duration: str
2142+
"""The amount of time that tokens issued for the application will be valid.
2143+
2144+
Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs),
2145+
ms, s, m, h.
2146+
"""
2147+
2148+
2149+
BookmarkApplicationPolicy: TypeAlias = Union[
2150+
BookmarkApplicationPolicyAccessAppPolicyLink, str, BookmarkApplicationPolicyUnionMember2
2151+
]
2152+
2153+
20622154
class InfrastructureApplication(TypedDict, total=False):
20632155
target_criteria: Required[Iterable[InfrastructureApplicationTargetCriterion]]
20642156

@@ -2315,6 +2407,14 @@ class BrowserRdpApplication(TypedDict, total=False):
23152407
Tags are used to filter applications in the App Launcher dashboard.
23162408
"""
23172409

2410+
use_clientless_isolation_app_launcher_url: bool
2411+
"""
2412+
Determines if users can access this application via a clientless browser
2413+
isolation URL. This allows users to access private domains without connecting to
2414+
Gateway. The option requires Clientless Browser Isolation to be set up with
2415+
policies that allow users of this application.
2416+
"""
2417+
23182418

23192419
class BrowserRdpApplicationTargetCriterion(TypedDict, total=False):
23202420
port: Required[int]
@@ -2557,7 +2657,7 @@ class BrowserRdpApplicationSCIMConfig(TypedDict, total=False):
25572657
DeviceEnrollmentPermissionsApplication,
25582658
BrowserIsolationPermissionsApplication,
25592659
GatewayIdentityProxyEndpointApplication,
2560-
AccessBookmarkProps,
2660+
BookmarkApplication,
25612661
InfrastructureApplication,
25622662
BrowserRdpApplication,
25632663
]

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

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"GatewayIdentityProxyEndpointApplication",
7474
"GatewayIdentityProxyEndpointApplicationPolicy",
7575
"BookmarkApplication",
76+
"BookmarkApplicationPolicy",
7677
"InfrastructureApplication",
7778
"InfrastructureApplicationTargetCriterion",
7879
"InfrastructureApplicationPolicy",
@@ -479,6 +480,14 @@ class SelfHostedApplication(BaseModel):
479480
Tags are used to filter applications in the App Launcher dashboard.
480481
"""
481482

483+
use_clientless_isolation_app_launcher_url: Optional[bool] = None
484+
"""
485+
Determines if users can access this application via a clientless browser
486+
isolation URL. This allows users to access private domains without connecting to
487+
Gateway. The option requires Clientless Browser Isolation to be set up with
488+
policies that allow users of this application.
489+
"""
490+
482491

483492
class SaaSApplicationPolicy(BaseModel):
484493
id: Optional[str] = None
@@ -1106,6 +1115,14 @@ class BrowserSSHApplication(BaseModel):
11061115
Tags are used to filter applications in the App Launcher dashboard.
11071116
"""
11081117

1118+
use_clientless_isolation_app_launcher_url: Optional[bool] = None
1119+
"""
1120+
Determines if users can access this application via a clientless browser
1121+
isolation URL. This allows users to access private domains without connecting to
1122+
Gateway. The option requires Clientless Browser Isolation to be set up with
1123+
policies that allow users of this application.
1124+
"""
1125+
11091126

11101127
class BrowserVNCApplicationDestinationPublicDestination(BaseModel):
11111128
"""A public hostname that Access will secure.
@@ -1508,6 +1525,14 @@ class BrowserVNCApplication(BaseModel):
15081525
Tags are used to filter applications in the App Launcher dashboard.
15091526
"""
15101527

1528+
use_clientless_isolation_app_launcher_url: Optional[bool] = None
1529+
"""
1530+
Determines if users can access this application via a clientless browser
1531+
isolation URL. This allows users to access private domains without connecting to
1532+
Gateway. The option requires Clientless Browser Isolation to be set up with
1533+
policies that allow users of this application.
1534+
"""
1535+
15111536

15121537
class AppLauncherApplicationFooterLink(BaseModel):
15131538
name: str
@@ -2085,6 +2110,77 @@ class GatewayIdentityProxyEndpointApplication(BaseModel):
20852110
"""
20862111

20872112

2113+
class BookmarkApplicationPolicy(BaseModel):
2114+
id: Optional[str] = None
2115+
"""The UUID of the policy"""
2116+
2117+
approval_groups: Optional[List[ApprovalGroup]] = None
2118+
"""Administrators who can approve a temporary authentication request."""
2119+
2120+
approval_required: Optional[bool] = None
2121+
"""
2122+
Requires the user to request access from an administrator at the start of each
2123+
session.
2124+
"""
2125+
2126+
created_at: Optional[datetime] = None
2127+
2128+
decision: Optional[Decision] = None
2129+
"""The action Access will take if a user matches this policy.
2130+
2131+
Infrastructure application policies can only use the Allow action.
2132+
"""
2133+
2134+
exclude: Optional[List[AccessRule]] = None
2135+
"""Rules evaluated with a NOT logical operator.
2136+
2137+
To match the policy, a user cannot meet any of the Exclude rules.
2138+
"""
2139+
2140+
include: Optional[List[AccessRule]] = None
2141+
"""Rules evaluated with an OR logical operator.
2142+
2143+
A user needs to meet only one of the Include rules.
2144+
"""
2145+
2146+
isolation_required: Optional[bool] = None
2147+
"""
2148+
Require this application to be served in an isolated browser for users matching
2149+
this policy. 'Client Web Isolation' must be on for the account in order to use
2150+
this feature.
2151+
"""
2152+
2153+
name: Optional[str] = None
2154+
"""The name of the Access policy."""
2155+
2156+
precedence: Optional[int] = None
2157+
"""The order of execution for this policy.
2158+
2159+
Must be unique for each policy within an app.
2160+
"""
2161+
2162+
purpose_justification_prompt: Optional[str] = None
2163+
"""A custom message that will appear on the purpose justification screen."""
2164+
2165+
purpose_justification_required: Optional[bool] = None
2166+
"""Require users to enter a justification when they log in to the application."""
2167+
2168+
require: Optional[List[AccessRule]] = None
2169+
"""Rules evaluated with an AND logical operator.
2170+
2171+
To match the policy, a user must meet all of the Require rules.
2172+
"""
2173+
2174+
session_duration: Optional[str] = None
2175+
"""The amount of time that tokens issued for the application will be valid.
2176+
2177+
Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs),
2178+
ms, s, m, h.
2179+
"""
2180+
2181+
updated_at: Optional[datetime] = None
2182+
2183+
20882184
class BookmarkApplication(BaseModel):
20892185
id: Optional[str] = None
20902186
"""UUID."""
@@ -2104,6 +2200,8 @@ class BookmarkApplication(BaseModel):
21042200
name: Optional[str] = None
21052201
"""The name of the application."""
21062202

2203+
policies: Optional[List[BookmarkApplicationPolicy]] = None
2204+
21072205
tags: Optional[List[str]] = None
21082206
"""The tags you want assigned to an application.
21092207
@@ -2614,6 +2712,14 @@ class BrowserRdpApplication(BaseModel):
26142712
Tags are used to filter applications in the App Launcher dashboard.
26152713
"""
26162714

2715+
use_clientless_isolation_app_launcher_url: Optional[bool] = None
2716+
"""
2717+
Determines if users can access this application via a clientless browser
2718+
isolation URL. This allows users to access private domains without connecting to
2719+
Gateway. The option requires Clientless Browser Isolation to be set up with
2720+
policies that allow users of this application.
2721+
"""
2722+
26172723

26182724
ApplicationCreateResponse: TypeAlias = Union[
26192725
SelfHostedApplication,

0 commit comments

Comments
 (0)