diff --git a/.stats.yml b/.stats.yml index ea9847aa046..3a1f7ef77e8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1356 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-626afa70c5b2f060401d0e73f7c107ec9db5126b9f325750b47cee6e4c1486dd.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-af00b10d74aacb1c4c1515fddecebe86e36c04a7d5c116dd4e9ca1115b1a914e.yml diff --git a/src/cloudflare/types/zero_trust/access/oidc_saas_app.py b/src/cloudflare/types/zero_trust/access/oidc_saas_app.py index b3e45b6e11c..d5f3046170d 100644 --- a/src/cloudflare/types/zero_trust/access/oidc_saas_app.py +++ b/src/cloudflare/types/zero_trust/access/oidc_saas_app.py @@ -6,10 +6,10 @@ from ...._models import BaseModel -__all__ = ["OIDCSaaSApp", "CustomClaims", "CustomClaimsSource", "HybridAndImplicitOptions", "RefreshTokenOptions"] +__all__ = ["OIDCSaaSApp", "CustomClaim", "CustomClaimSource", "HybridAndImplicitOptions", "RefreshTokenOptions"] -class CustomClaimsSource(BaseModel): +class CustomClaimSource(BaseModel): name: Optional[str] = None """The name of the IdP claim.""" @@ -17,7 +17,7 @@ class CustomClaimsSource(BaseModel): """A mapping from IdP ID to claim name.""" -class CustomClaims(BaseModel): +class CustomClaim(BaseModel): name: Optional[str] = None """The name of the claim.""" @@ -27,7 +27,7 @@ class CustomClaims(BaseModel): scope: Optional[Literal["groups", "profile", "email", "openid"]] = None """The scope of the claim.""" - source: Optional[CustomClaimsSource] = None + source: Optional[CustomClaimSource] = None class HybridAndImplicitOptions(BaseModel): @@ -77,7 +77,7 @@ class OIDCSaaSApp(BaseModel): created_at: Optional[datetime] = None - custom_claims: Optional[CustomClaims] = None + custom_claims: Optional[List[CustomClaim]] = None grant_types: Optional[ List[Literal["authorization_code", "authorization_code_with_pkce", "refresh_tokens", "hybrid", "implicit"]] diff --git a/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py b/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py index 22418735dc9..b98cb430e77 100644 --- a/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py +++ b/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py @@ -2,13 +2,13 @@ from __future__ import annotations -from typing import Dict, List +from typing import Dict, List, Iterable from typing_extensions import Literal, TypedDict -__all__ = ["OIDCSaaSAppParam", "CustomClaims", "CustomClaimsSource", "HybridAndImplicitOptions", "RefreshTokenOptions"] +__all__ = ["OIDCSaaSAppParam", "CustomClaim", "CustomClaimSource", "HybridAndImplicitOptions", "RefreshTokenOptions"] -class CustomClaimsSource(TypedDict, total=False): +class CustomClaimSource(TypedDict, total=False): name: str """The name of the IdP claim.""" @@ -16,7 +16,7 @@ class CustomClaimsSource(TypedDict, total=False): """A mapping from IdP ID to claim name.""" -class CustomClaims(TypedDict, total=False): +class CustomClaim(TypedDict, total=False): name: str """The name of the claim.""" @@ -26,7 +26,7 @@ class CustomClaims(TypedDict, total=False): scope: Literal["groups", "profile", "email", "openid"] """The scope of the claim.""" - source: CustomClaimsSource + source: CustomClaimSource class HybridAndImplicitOptions(TypedDict, total=False): @@ -74,7 +74,7 @@ class OIDCSaaSAppParam(TypedDict, total=False): client_secret: str """The application client secret, only returned on POST request.""" - custom_claims: CustomClaims + custom_claims: Iterable[CustomClaim] grant_types: List[ Literal["authorization_code", "authorization_code_with_pkce", "refresh_tokens", "hybrid", "implicit"]