Skip to content

Commit 1ad1623

Browse files
blackmad-cradleclaudegjtorikian
authored
feat: Add Connect Applications and Client Secrets module (#585)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Garen J. Torikian <gjtorikian@users.noreply.github.com>
1 parent 1004bd7 commit 1ad1623

File tree

12 files changed

+901
-0
lines changed

12 files changed

+901
-0
lines changed

src/workos/_base_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from workos.api_keys import ApiKeysModule
77
from workos.audit_logs import AuditLogsModule
88
from workos.authorization import AuthorizationModule
9+
from workos.connect import ConnectModule
910
from workos.directory_sync import DirectorySyncModule
1011
from workos.events import EventsModule
1112
from workos.fga import FGAModule
@@ -79,6 +80,10 @@ def api_keys(self) -> ApiKeysModule: ...
7980
@abstractmethod
8081
def authorization(self) -> AuthorizationModule: ...
8182

83+
@property
84+
@abstractmethod
85+
def connect(self) -> ConnectModule: ...
86+
8287
@property
8388
@abstractmethod
8489
def audit_logs(self) -> AuditLogsModule: ...

src/workos/async_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from workos.api_keys import AsyncApiKeys
55
from workos.audit_logs import AsyncAuditLogs
66
from workos.authorization import AsyncAuthorization
7+
from workos.connect import AsyncConnect
78
from workos.directory_sync import AsyncDirectorySync
89
from workos.events import AsyncEvents
910
from workos.fga import FGAModule
@@ -50,6 +51,12 @@ def __init__(
5051
timeout=self.request_timeout,
5152
)
5253

54+
@property
55+
def connect(self) -> AsyncConnect:
56+
if not getattr(self, "_connect", None):
57+
self._connect = AsyncConnect(self._http_client)
58+
return self._connect
59+
5360
@property
5461
def api_keys(self) -> AsyncApiKeys:
5562
if not getattr(self, "_api_keys", None):

src/workos/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from workos.api_keys import ApiKeys
55
from workos.audit_logs import AuditLogs
66
from workos.authorization import Authorization
7+
from workos.connect import Connect
78
from workos.directory_sync import DirectorySync
89
from workos.fga import FGA
910
from workos.organizations import Organizations
@@ -50,6 +51,12 @@ def __init__(
5051
timeout=self.request_timeout,
5152
)
5253

54+
@property
55+
def connect(self) -> Connect:
56+
if not getattr(self, "_connect", None):
57+
self._connect = Connect(self._http_client)
58+
return self._connect
59+
5360
@property
5461
def api_keys(self) -> ApiKeys:
5562
if not getattr(self, "_api_keys", None):

0 commit comments

Comments
 (0)