Skip to content

Commit edc60f1

Browse files
Fix type
1 parent 3b6b2aa commit edc60f1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

workos/sso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def update_connection(
174174
connection_id: str,
175175
saml_options_signing_key: Optional[str] = None,
176176
saml_options_signing_cert: Optional[str] = None,
177-
) -> SyncOrAsync[None]:
177+
) -> SyncOrAsync[ConnectionWithDomains]:
178178
"""Updates a single connection
179179
180180
Args:

workos/types/sso/connection.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
]
4646

4747

48+
class SamlConnectionOptions(WorkOSModel):
49+
"""Representation of options payload of a Connection Response."""
50+
51+
signing_cert: Optional[str]
52+
53+
4854
class Connection(WorkOSModel):
4955
object: Literal["connection"]
5056
id: str
@@ -54,16 +60,10 @@ class Connection(WorkOSModel):
5460
state: LiteralOrUntyped[ConnectionState]
5561
created_at: str
5662
updated_at: str
57-
58-
59-
class SamlConnectionOptions(WorkOSModel):
60-
"""Representation of options payload of a Connection Response."""
61-
62-
signing_cert: Optional[str]
63+
options: Optional[SamlConnectionOptions] = None
6364

6465

6566
class ConnectionWithDomains(Connection):
6667
"""Representation of a Connection Response as returned by WorkOS through the SSO feature."""
6768

6869
domains: Sequence[ConnectionDomain]
69-
options: Optional[SamlConnectionOptions]

0 commit comments

Comments
 (0)