Skip to content

Commit 7606580

Browse files
chore(api): update composite API spec
1 parent 13b7798 commit 7606580

13 files changed

Lines changed: 83 additions & 83 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2409
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-c4a28c454f80a442d6fe13dc6727fb51eef746adf2266ea644e78273a086c71a.yml
3-
openapi_spec_hash: daebb36576d7be6faedb17ac5aa55024
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-26b407db284a9e5c2ae968d8134f1682fd10ffd1dc4a79aa3b2c6fe10f2251db.yml
3+
openapi_spec_hash: c0570ee25e7fd6eea844983b22b042fd
44
config_hash: 517f3639f0355eae78476ce617456698

src/cloudflare/resources/zero_trust/organizations/organizations.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def create(
7676
is_ui_read_only: bool | Omit = omit,
7777
login_design: LoginDesignParam | Omit = omit,
7878
mfa_config: organization_create_params.MfaConfig | Omit = omit,
79+
mfa_piv_key_requirements: organization_create_params.MfaPivKeyRequirements | Omit = omit,
7980
mfa_required_for_all_apps: bool | Omit = omit,
80-
mfa_ssh_piv_key_requirements: organization_create_params.MfaSSHPivKeyRequirements | Omit = omit,
8181
session_duration: str | Omit = omit,
8282
ui_read_only_toggle_reason: str | Omit = omit,
8383
user_seat_expiration_inactive_time: str | Omit = omit,
@@ -123,13 +123,13 @@ def create(
123123
124124
mfa_config: Configures multi-factor authentication (MFA) settings for an organization.
125125
126+
mfa_piv_key_requirements: Configures PIV key requirements for MFA using hardware security keys.
127+
126128
mfa_required_for_all_apps: Determines whether global MFA settings apply to applications by default. The
127129
organization must have MFA enabled with at least one authentication method and a
128130
session duration configured. Note: 'allowed_authenticators' cannot only contain
129-
'ssh_piv_key' if the organization has any non-infrastructure applications
130-
because PIV keys are only compatible with infrastructure apps.
131-
132-
mfa_ssh_piv_key_requirements: Configures SSH PIV key requirements for MFA using hardware security keys.
131+
'piv_key' if the organization has any non-infrastructure applications because
132+
PIV keys are only compatible with infrastructure apps.
133133
134134
session_duration: The amount of time that tokens issued for applications will be valid. Must be in
135135
the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m,
@@ -183,8 +183,8 @@ def create(
183183
"is_ui_read_only": is_ui_read_only,
184184
"login_design": login_design,
185185
"mfa_config": mfa_config,
186+
"mfa_piv_key_requirements": mfa_piv_key_requirements,
186187
"mfa_required_for_all_apps": mfa_required_for_all_apps,
187-
"mfa_ssh_piv_key_requirements": mfa_ssh_piv_key_requirements,
188188
"session_duration": session_duration,
189189
"ui_read_only_toggle_reason": ui_read_only_toggle_reason,
190190
"user_seat_expiration_inactive_time": user_seat_expiration_inactive_time,
@@ -216,8 +216,8 @@ def update(
216216
is_ui_read_only: bool | Omit = omit,
217217
login_design: LoginDesignParam | Omit = omit,
218218
mfa_config: organization_update_params.MfaConfig | Omit = omit,
219+
mfa_piv_key_requirements: organization_update_params.MfaPivKeyRequirements | Omit = omit,
219220
mfa_required_for_all_apps: bool | Omit = omit,
220-
mfa_ssh_piv_key_requirements: organization_update_params.MfaSSHPivKeyRequirements | Omit = omit,
221221
name: str | Omit = omit,
222222
session_duration: str | Omit = omit,
223223
ui_read_only_toggle_reason: str | Omit = omit,
@@ -262,13 +262,13 @@ def update(
262262
263263
mfa_config: Configures multi-factor authentication (MFA) settings for an organization.
264264
265+
mfa_piv_key_requirements: Configures PIV key requirements for MFA using hardware security keys.
266+
265267
mfa_required_for_all_apps: Determines whether global MFA settings apply to applications by default. The
266268
organization must have MFA enabled with at least one authentication method and a
267269
session duration configured. Note: 'allowed_authenticators' cannot only contain
268-
'ssh_piv_key' if the organization has any non-infrastructure applications
269-
because PIV keys are only compatible with infrastructure apps.
270-
271-
mfa_ssh_piv_key_requirements: Configures SSH PIV key requirements for MFA using hardware security keys.
270+
'piv_key' if the organization has any non-infrastructure applications because
271+
PIV keys are only compatible with infrastructure apps.
272272
273273
name: The name of your Zero Trust organization.
274274
@@ -324,8 +324,8 @@ def update(
324324
"is_ui_read_only": is_ui_read_only,
325325
"login_design": login_design,
326326
"mfa_config": mfa_config,
327+
"mfa_piv_key_requirements": mfa_piv_key_requirements,
327328
"mfa_required_for_all_apps": mfa_required_for_all_apps,
328-
"mfa_ssh_piv_key_requirements": mfa_ssh_piv_key_requirements,
329329
"name": name,
330330
"session_duration": session_duration,
331331
"ui_read_only_toggle_reason": ui_read_only_toggle_reason,
@@ -526,8 +526,8 @@ async def create(
526526
is_ui_read_only: bool | Omit = omit,
527527
login_design: LoginDesignParam | Omit = omit,
528528
mfa_config: organization_create_params.MfaConfig | Omit = omit,
529+
mfa_piv_key_requirements: organization_create_params.MfaPivKeyRequirements | Omit = omit,
529530
mfa_required_for_all_apps: bool | Omit = omit,
530-
mfa_ssh_piv_key_requirements: organization_create_params.MfaSSHPivKeyRequirements | Omit = omit,
531531
session_duration: str | Omit = omit,
532532
ui_read_only_toggle_reason: str | Omit = omit,
533533
user_seat_expiration_inactive_time: str | Omit = omit,
@@ -573,13 +573,13 @@ async def create(
573573
574574
mfa_config: Configures multi-factor authentication (MFA) settings for an organization.
575575
576+
mfa_piv_key_requirements: Configures PIV key requirements for MFA using hardware security keys.
577+
576578
mfa_required_for_all_apps: Determines whether global MFA settings apply to applications by default. The
577579
organization must have MFA enabled with at least one authentication method and a
578580
session duration configured. Note: 'allowed_authenticators' cannot only contain
579-
'ssh_piv_key' if the organization has any non-infrastructure applications
580-
because PIV keys are only compatible with infrastructure apps.
581-
582-
mfa_ssh_piv_key_requirements: Configures SSH PIV key requirements for MFA using hardware security keys.
581+
'piv_key' if the organization has any non-infrastructure applications because
582+
PIV keys are only compatible with infrastructure apps.
583583
584584
session_duration: The amount of time that tokens issued for applications will be valid. Must be in
585585
the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m,
@@ -633,8 +633,8 @@ async def create(
633633
"is_ui_read_only": is_ui_read_only,
634634
"login_design": login_design,
635635
"mfa_config": mfa_config,
636+
"mfa_piv_key_requirements": mfa_piv_key_requirements,
636637
"mfa_required_for_all_apps": mfa_required_for_all_apps,
637-
"mfa_ssh_piv_key_requirements": mfa_ssh_piv_key_requirements,
638638
"session_duration": session_duration,
639639
"ui_read_only_toggle_reason": ui_read_only_toggle_reason,
640640
"user_seat_expiration_inactive_time": user_seat_expiration_inactive_time,
@@ -666,8 +666,8 @@ async def update(
666666
is_ui_read_only: bool | Omit = omit,
667667
login_design: LoginDesignParam | Omit = omit,
668668
mfa_config: organization_update_params.MfaConfig | Omit = omit,
669+
mfa_piv_key_requirements: organization_update_params.MfaPivKeyRequirements | Omit = omit,
669670
mfa_required_for_all_apps: bool | Omit = omit,
670-
mfa_ssh_piv_key_requirements: organization_update_params.MfaSSHPivKeyRequirements | Omit = omit,
671671
name: str | Omit = omit,
672672
session_duration: str | Omit = omit,
673673
ui_read_only_toggle_reason: str | Omit = omit,
@@ -712,13 +712,13 @@ async def update(
712712
713713
mfa_config: Configures multi-factor authentication (MFA) settings for an organization.
714714
715+
mfa_piv_key_requirements: Configures PIV key requirements for MFA using hardware security keys.
716+
715717
mfa_required_for_all_apps: Determines whether global MFA settings apply to applications by default. The
716718
organization must have MFA enabled with at least one authentication method and a
717719
session duration configured. Note: 'allowed_authenticators' cannot only contain
718-
'ssh_piv_key' if the organization has any non-infrastructure applications
719-
because PIV keys are only compatible with infrastructure apps.
720-
721-
mfa_ssh_piv_key_requirements: Configures SSH PIV key requirements for MFA using hardware security keys.
720+
'piv_key' if the organization has any non-infrastructure applications because
721+
PIV keys are only compatible with infrastructure apps.
722722
723723
name: The name of your Zero Trust organization.
724724
@@ -774,8 +774,8 @@ async def update(
774774
"is_ui_read_only": is_ui_read_only,
775775
"login_design": login_design,
776776
"mfa_config": mfa_config,
777+
"mfa_piv_key_requirements": mfa_piv_key_requirements,
777778
"mfa_required_for_all_apps": mfa_required_for_all_apps,
778-
"mfa_ssh_piv_key_requirements": mfa_ssh_piv_key_requirements,
779779
"name": name,
780780
"session_duration": session_duration,
781781
"ui_read_only_toggle_reason": ui_read_only_toggle_reason,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3039,10 +3039,10 @@ class InfrastructureApplicationPolicyMfaConfig(TypedDict, total=False):
30393039
Configures multi-factor authentication (MFA) settings for infrastructure applications.
30403040
"""
30413041

3042-
allowed_authenticators: List[Literal["ssh_piv_key"]]
3042+
allowed_authenticators: List[Literal["piv_key"]]
30433043
"""Lists the MFA methods that users can authenticate with.
30443044
3045-
For infrastructure applications, only `ssh_piv_key` is supported.
3045+
For infrastructure applications, only `piv_key` is supported.
30463046
"""
30473047

30483048
mfa_disabled: bool

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,10 +3068,10 @@ class InfrastructureApplicationPolicyMfaConfig(BaseModel):
30683068
Configures multi-factor authentication (MFA) settings for infrastructure applications.
30693069
"""
30703070

3071-
allowed_authenticators: Optional[List[Literal["ssh_piv_key"]]] = None
3071+
allowed_authenticators: Optional[List[Literal["piv_key"]]] = None
30723072
"""Lists the MFA methods that users can authenticate with.
30733073
3074-
For infrastructure applications, only `ssh_piv_key` is supported.
3074+
For infrastructure applications, only `piv_key` is supported.
30753075
"""
30763076

30773077
mfa_disabled: Optional[bool] = None

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,10 +3068,10 @@ class InfrastructureApplicationPolicyMfaConfig(BaseModel):
30683068
Configures multi-factor authentication (MFA) settings for infrastructure applications.
30693069
"""
30703070

3071-
allowed_authenticators: Optional[List[Literal["ssh_piv_key"]]] = None
3071+
allowed_authenticators: Optional[List[Literal["piv_key"]]] = None
30723072
"""Lists the MFA methods that users can authenticate with.
30733073
3074-
For infrastructure applications, only `ssh_piv_key` is supported.
3074+
For infrastructure applications, only `piv_key` is supported.
30753075
"""
30763076

30773077
mfa_disabled: Optional[bool] = None

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,10 +3068,10 @@ class InfrastructureApplicationPolicyMfaConfig(BaseModel):
30683068
Configures multi-factor authentication (MFA) settings for infrastructure applications.
30693069
"""
30703070

3071-
allowed_authenticators: Optional[List[Literal["ssh_piv_key"]]] = None
3071+
allowed_authenticators: Optional[List[Literal["piv_key"]]] = None
30723072
"""Lists the MFA methods that users can authenticate with.
30733073
3074-
For infrastructure applications, only `ssh_piv_key` is supported.
3074+
For infrastructure applications, only `piv_key` is supported.
30753075
"""
30763076

30773077
mfa_disabled: Optional[bool] = None

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3039,10 +3039,10 @@ class InfrastructureApplicationPolicyMfaConfig(TypedDict, total=False):
30393039
Configures multi-factor authentication (MFA) settings for infrastructure applications.
30403040
"""
30413041

3042-
allowed_authenticators: List[Literal["ssh_piv_key"]]
3042+
allowed_authenticators: List[Literal["piv_key"]]
30433043
"""Lists the MFA methods that users can authenticate with.
30443044
3045-
For infrastructure applications, only `ssh_piv_key` is supported.
3045+
For infrastructure applications, only `piv_key` is supported.
30463046
"""
30473047

30483048
mfa_disabled: bool

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,10 +3068,10 @@ class InfrastructureApplicationPolicyMfaConfig(BaseModel):
30683068
Configures multi-factor authentication (MFA) settings for infrastructure applications.
30693069
"""
30703070

3071-
allowed_authenticators: Optional[List[Literal["ssh_piv_key"]]] = None
3071+
allowed_authenticators: Optional[List[Literal["piv_key"]]] = None
30723072
"""Lists the MFA methods that users can authenticate with.
30733073
3074-
For infrastructure applications, only `ssh_piv_key` is supported.
3074+
For infrastructure applications, only `piv_key` is supported.
30753075
"""
30763076

30773077
mfa_disabled: Optional[bool] = None

src/cloudflare/types/zero_trust/organization.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from ..._models import BaseModel
77
from .login_design import LoginDesign
88

9-
__all__ = ["Organization", "CustomPages", "MfaConfig", "MfaSSHPivKeyRequirements"]
9+
__all__ = ["Organization", "CustomPages", "MfaConfig", "MfaPivKeyRequirements"]
1010

1111

1212
class CustomPages(BaseModel):
@@ -23,7 +23,7 @@ class CustomPages(BaseModel):
2323
class MfaConfig(BaseModel):
2424
"""Configures multi-factor authentication (MFA) settings for an organization."""
2525

26-
allowed_authenticators: Optional[List[Literal["totp", "biometrics", "security_key", "ssh_piv_key"]]] = None
26+
allowed_authenticators: Optional[List[Literal["totp", "biometrics", "security_key", "piv_key"]]] = None
2727
"""Lists the MFA methods that users can authenticate with."""
2828

2929
amr_matching_session_duration: Optional[str] = None
@@ -45,8 +45,8 @@ class MfaConfig(BaseModel):
4545
"""
4646

4747

48-
class MfaSSHPivKeyRequirements(BaseModel):
49-
"""Configures SSH PIV key requirements for MFA using hardware security keys."""
48+
class MfaPivKeyRequirements(BaseModel):
49+
"""Configures PIV key requirements for MFA using hardware security keys."""
5050

5151
pin_policy: Optional[Literal["never", "once", "always"]] = None
5252
"""Defines when a PIN is required to use the SSH key.
@@ -57,8 +57,8 @@ class MfaSSHPivKeyRequirements(BaseModel):
5757

5858
require_fips_device: Optional[bool] = None
5959
"""
60-
Requires the SSH PIV key to be stored on a FIPS 140-2 Level 1 or higher
61-
validated device.
60+
Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated
61+
device.
6262
"""
6363

6464
ssh_key_size: Optional[List[Literal[256, 384, 521, 2048, 3072, 4096]]] = None
@@ -128,18 +128,18 @@ class Organization(BaseModel):
128128
mfa_config: Optional[MfaConfig] = None
129129
"""Configures multi-factor authentication (MFA) settings for an organization."""
130130

131+
mfa_piv_key_requirements: Optional[MfaPivKeyRequirements] = None
132+
"""Configures PIV key requirements for MFA using hardware security keys."""
133+
131134
mfa_required_for_all_apps: Optional[bool] = None
132135
"""Determines whether global MFA settings apply to applications by default.
133136
134137
The organization must have MFA enabled with at least one authentication method
135138
and a session duration configured. Note: 'allowed_authenticators' cannot only
136-
contain 'ssh_piv_key' if the organization has any non-infrastructure
137-
applications because PIV keys are only compatible with infrastructure apps.
139+
contain 'piv_key' if the organization has any non-infrastructure applications
140+
because PIV keys are only compatible with infrastructure apps.
138141
"""
139142

140-
mfa_ssh_piv_key_requirements: Optional[MfaSSHPivKeyRequirements] = None
141-
"""Configures SSH PIV key requirements for MFA using hardware security keys."""
142-
143143
name: Optional[str] = None
144144
"""The name of your Zero Trust organization."""
145145

src/cloudflare/types/zero_trust/organization_create_params.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ..._types import SequenceNotStr
99
from .login_design_param import LoginDesignParam
1010

11-
__all__ = ["OrganizationCreateParams", "MfaConfig", "MfaSSHPivKeyRequirements"]
11+
__all__ = ["OrganizationCreateParams", "MfaConfig", "MfaPivKeyRequirements"]
1212

1313

1414
class OrganizationCreateParams(TypedDict, total=False):
@@ -64,18 +64,18 @@ class OrganizationCreateParams(TypedDict, total=False):
6464
mfa_config: MfaConfig
6565
"""Configures multi-factor authentication (MFA) settings for an organization."""
6666

67+
mfa_piv_key_requirements: MfaPivKeyRequirements
68+
"""Configures PIV key requirements for MFA using hardware security keys."""
69+
6770
mfa_required_for_all_apps: bool
6871
"""Determines whether global MFA settings apply to applications by default.
6972
7073
The organization must have MFA enabled with at least one authentication method
7174
and a session duration configured. Note: 'allowed_authenticators' cannot only
72-
contain 'ssh_piv_key' if the organization has any non-infrastructure
73-
applications because PIV keys are only compatible with infrastructure apps.
75+
contain 'piv_key' if the organization has any non-infrastructure applications
76+
because PIV keys are only compatible with infrastructure apps.
7477
"""
7578

76-
mfa_ssh_piv_key_requirements: MfaSSHPivKeyRequirements
77-
"""Configures SSH PIV key requirements for MFA using hardware security keys."""
78-
7979
session_duration: str
8080
"""The amount of time that tokens issued for applications will be valid.
8181
@@ -105,7 +105,7 @@ class OrganizationCreateParams(TypedDict, total=False):
105105
class MfaConfig(TypedDict, total=False):
106106
"""Configures multi-factor authentication (MFA) settings for an organization."""
107107

108-
allowed_authenticators: List[Literal["totp", "biometrics", "security_key", "ssh_piv_key"]]
108+
allowed_authenticators: List[Literal["totp", "biometrics", "security_key", "piv_key"]]
109109
"""Lists the MFA methods that users can authenticate with."""
110110

111111
amr_matching_session_duration: str
@@ -127,8 +127,8 @@ class MfaConfig(TypedDict, total=False):
127127
"""
128128

129129

130-
class MfaSSHPivKeyRequirements(TypedDict, total=False):
131-
"""Configures SSH PIV key requirements for MFA using hardware security keys."""
130+
class MfaPivKeyRequirements(TypedDict, total=False):
131+
"""Configures PIV key requirements for MFA using hardware security keys."""
132132

133133
pin_policy: Literal["never", "once", "always"]
134134
"""Defines when a PIN is required to use the SSH key.
@@ -139,8 +139,8 @@ class MfaSSHPivKeyRequirements(TypedDict, total=False):
139139

140140
require_fips_device: bool
141141
"""
142-
Requires the SSH PIV key to be stored on a FIPS 140-2 Level 1 or higher
143-
validated device.
142+
Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated
143+
device.
144144
"""
145145

146146
ssh_key_size: Iterable[Literal[256, 384, 521, 2048, 3072, 4096]]

0 commit comments

Comments
 (0)