Skip to content

Commit 5662602

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: OpenAPI spec update via Stainless API (#123)
1 parent 925c519 commit 5662602

File tree

5 files changed

+56
-0
lines changed

5 files changed

+56
-0
lines changed

src/cloudflare/types/zero_trust/access_identity_providers.py

+13
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ class AccessAzureAdConfig(BaseModel):
7171
email_claim_name: Optional[str] = None
7272
"""The claim name for email in the id_token response."""
7373

74+
prompt: Optional[Literal["login", "select_account", "none"]] = None
75+
"""Indicates the type of user interaction that is required.
76+
77+
prompt=login forces the user to enter their credentials on that request,
78+
negating single-sign on. prompt=none is the opposite. It ensures that the user
79+
isn't presented with any interactive prompt. If the request can't be completed
80+
silently by using single-sign on, the Microsoft identity platform returns an
81+
interaction_required error. prompt=select_account interrupts single sign-on
82+
providing account selection experience listing all the accounts either in
83+
session or any remembered account or an option to choose to use a different
84+
account altogether.
85+
"""
86+
7487
support_groups: Optional[bool] = None
7588
"""Should Cloudflare try to load groups from your account"""
7689

src/cloudflare/types/zero_trust/identity_provider_create_params.py

+13
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@ class Config(TypedDict, total=False):
122122
ping_env_id: str
123123
"""Your PingOne environment identifier"""
124124

125+
prompt: Literal["login", "select_account", "none"]
126+
"""Indicates the type of user interaction that is required.
127+
128+
prompt=login forces the user to enter their credentials on that request,
129+
negating single-sign on. prompt=none is the opposite. It ensures that the user
130+
isn't presented with any interactive prompt. If the request can't be completed
131+
silently by using single-sign on, the Microsoft identity platform returns an
132+
interaction_required error. prompt=select_account interrupts single sign-on
133+
providing account selection experience listing all the accounts either in
134+
session or any remembered account or an option to choose to use a different
135+
account altogether.
136+
"""
137+
125138
scopes: List[str]
126139
"""OAuth scopes"""
127140

src/cloudflare/types/zero_trust/identity_provider_list_response.py

+13
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ class IdentityProviderListResponseItemAccessAzureAdConfig(BaseModel):
7070
email_claim_name: Optional[str] = None
7171
"""The claim name for email in the id_token response."""
7272

73+
prompt: Optional[Literal["login", "select_account", "none"]] = None
74+
"""Indicates the type of user interaction that is required.
75+
76+
prompt=login forces the user to enter their credentials on that request,
77+
negating single-sign on. prompt=none is the opposite. It ensures that the user
78+
isn't presented with any interactive prompt. If the request can't be completed
79+
silently by using single-sign on, the Microsoft identity platform returns an
80+
interaction_required error. prompt=select_account interrupts single sign-on
81+
providing account selection experience listing all the accounts either in
82+
session or any remembered account or an option to choose to use a different
83+
account altogether.
84+
"""
85+
7386
support_groups: Optional[bool] = None
7487
"""Should Cloudflare try to load groups from your account"""
7588

src/cloudflare/types/zero_trust/identity_provider_update_params.py

+13
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@ class Config(TypedDict, total=False):
122122
ping_env_id: str
123123
"""Your PingOne environment identifier"""
124124

125+
prompt: Literal["login", "select_account", "none"]
126+
"""Indicates the type of user interaction that is required.
127+
128+
prompt=login forces the user to enter their credentials on that request,
129+
negating single-sign on. prompt=none is the opposite. It ensures that the user
130+
isn't presented with any interactive prompt. If the request can't be completed
131+
silently by using single-sign on, the Microsoft identity platform returns an
132+
interaction_required error. prompt=select_account interrupts single sign-on
133+
providing account selection experience listing all the accounts either in
134+
session or any remembered account or an option to choose to use a different
135+
account altogether.
136+
"""
137+
125138
scopes: List[str]
126139
"""OAuth scopes"""
127140

tests/api_resources/zero_trust/test_identity_providers.py

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4444
"email_claim_name": "custom_claim_name",
4545
"conditional_access_enabled": True,
4646
"directory_id": "<your azure directory uuid>",
47+
"prompt": "login",
4748
"support_groups": True,
4849
"centrify_account": "https://abc123.my.centrify.com/",
4950
"centrify_app_id": "exampleapp",
@@ -171,6 +172,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
171172
"email_claim_name": "custom_claim_name",
172173
"conditional_access_enabled": True,
173174
"directory_id": "<your azure directory uuid>",
175+
"prompt": "login",
174176
"support_groups": True,
175177
"centrify_account": "https://abc123.my.centrify.com/",
176178
"centrify_app_id": "exampleapp",
@@ -523,6 +525,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
523525
"email_claim_name": "custom_claim_name",
524526
"conditional_access_enabled": True,
525527
"directory_id": "<your azure directory uuid>",
528+
"prompt": "login",
526529
"support_groups": True,
527530
"centrify_account": "https://abc123.my.centrify.com/",
528531
"centrify_app_id": "exampleapp",
@@ -650,6 +653,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
650653
"email_claim_name": "custom_claim_name",
651654
"conditional_access_enabled": True,
652655
"directory_id": "<your azure directory uuid>",
656+
"prompt": "login",
653657
"support_groups": True,
654658
"centrify_account": "https://abc123.my.centrify.com/",
655659
"centrify_app_id": "exampleapp",

0 commit comments

Comments
 (0)