Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions src/cloudflare/types/zero_trust/access/oidc_saas_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

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."""

name_by_idp: Optional[Dict[str, str]] = None
"""A mapping from IdP ID to claim name."""


class CustomClaims(BaseModel):
class CustomClaim(BaseModel):
name: Optional[str] = None
"""The name of the claim."""

Expand All @@ -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):
Expand Down Expand Up @@ -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"]]
Expand Down
12 changes: 6 additions & 6 deletions src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

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."""

name_by_idp: Dict[str, str]
"""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."""

Expand All @@ -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):
Expand Down Expand Up @@ -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"]
Expand Down