Skip to content

Commit cf5ce9b

Browse files
committed
Add the rest of the Audit Logs implementation
1 parent 36ad867 commit cf5ce9b

File tree

10 files changed

+1014
-15
lines changed

10 files changed

+1014
-15
lines changed

src/workos/async_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from importlib.metadata import version
33
from workos._base_client import BaseClient
44
from workos.api_keys import AsyncApiKeys
5-
from workos.audit_logs import AuditLogsModule
5+
from workos.audit_logs import AsyncAuditLogs
66
from workos.directory_sync import AsyncDirectorySync
77
from workos.events import AsyncEvents
88
from workos.fga import FGAModule
@@ -64,10 +64,10 @@ def sso(self) -> AsyncSSO:
6464
return self._sso
6565

6666
@property
67-
def audit_logs(self) -> AuditLogsModule:
68-
raise NotImplementedError(
69-
"Audit logs APIs are not yet supported in the async client."
70-
)
67+
def audit_logs(self) -> AsyncAuditLogs:
68+
if not getattr(self, "_audit_logs", None):
69+
self._audit_logs = AsyncAuditLogs(self._http_client)
70+
return self._audit_logs
7171

7272
@property
7373
def directory_sync(self) -> AsyncDirectorySync:

0 commit comments

Comments
 (0)