Skip to content

Commit c98a66a

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#2008)
1 parent d971c7a commit c98a66a

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1356
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-af00b10d74aacb1c4c1515fddecebe86e36c04a7d5c116dd4e9ca1115b1a914e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-626afa70c5b2f060401d0e73f7c107ec9db5126b9f325750b47cee6e4c1486dd.yml

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66

77
from ...._models import BaseModel
88

9-
__all__ = ["OIDCSaaSApp", "CustomClaim", "CustomClaimSource", "HybridAndImplicitOptions", "RefreshTokenOptions"]
9+
__all__ = ["OIDCSaaSApp", "CustomClaims", "CustomClaimsSource", "HybridAndImplicitOptions", "RefreshTokenOptions"]
1010

1111

12-
class CustomClaimSource(BaseModel):
12+
class CustomClaimsSource(BaseModel):
1313
name: Optional[str] = None
1414
"""The name of the IdP claim."""
1515

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

1919

20-
class CustomClaim(BaseModel):
20+
class CustomClaims(BaseModel):
2121
name: Optional[str] = None
2222
"""The name of the claim."""
2323

@@ -27,7 +27,7 @@ class CustomClaim(BaseModel):
2727
scope: Optional[Literal["groups", "profile", "email", "openid"]] = None
2828
"""The scope of the claim."""
2929

30-
source: Optional[CustomClaimSource] = None
30+
source: Optional[CustomClaimsSource] = None
3131

3232

3333
class HybridAndImplicitOptions(BaseModel):
@@ -77,7 +77,7 @@ class OIDCSaaSApp(BaseModel):
7777

7878
created_at: Optional[datetime] = None
7979

80-
custom_claims: Optional[List[CustomClaim]] = None
80+
custom_claims: Optional[CustomClaims] = None
8181

8282
grant_types: Optional[
8383
List[Literal["authorization_code", "authorization_code_with_pkce", "refresh_tokens", "hybrid", "implicit"]]

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, List, Iterable
5+
from typing import Dict, List
66
from typing_extensions import Literal, TypedDict
77

8-
__all__ = ["OIDCSaaSAppParam", "CustomClaim", "CustomClaimSource", "HybridAndImplicitOptions", "RefreshTokenOptions"]
8+
__all__ = ["OIDCSaaSAppParam", "CustomClaims", "CustomClaimsSource", "HybridAndImplicitOptions", "RefreshTokenOptions"]
99

1010

11-
class CustomClaimSource(TypedDict, total=False):
11+
class CustomClaimsSource(TypedDict, total=False):
1212
name: str
1313
"""The name of the IdP claim."""
1414

1515
name_by_idp: Dict[str, str]
1616
"""A mapping from IdP ID to claim name."""
1717

1818

19-
class CustomClaim(TypedDict, total=False):
19+
class CustomClaims(TypedDict, total=False):
2020
name: str
2121
"""The name of the claim."""
2222

@@ -26,7 +26,7 @@ class CustomClaim(TypedDict, total=False):
2626
scope: Literal["groups", "profile", "email", "openid"]
2727
"""The scope of the claim."""
2828

29-
source: CustomClaimSource
29+
source: CustomClaimsSource
3030

3131

3232
class HybridAndImplicitOptions(TypedDict, total=False):
@@ -74,7 +74,7 @@ class OIDCSaaSAppParam(TypedDict, total=False):
7474
client_secret: str
7575
"""The application client secret, only returned on POST request."""
7676

77-
custom_claims: Iterable[CustomClaim]
77+
custom_claims: CustomClaims
7878

7979
grant_types: List[
8080
Literal["authorization_code", "authorization_code_with_pkce", "refresh_tokens", "hybrid", "implicit"]

0 commit comments

Comments
 (0)