( organizationId: string, context: Context.Context<WorkOSClient>, )
| 235 | |
| 236 | /** Both directions of cloud's directory, built once per authorized request. */ |
| 237 | const userDirectory = ( |
| 238 | organizationId: string, |
| 239 | context: Context.Context<WorkOSClient>, |
| 240 | ): AdminUserDirectory => ({ |
| 241 | identities: identityDirectory(organizationId, context), |
| 242 | resolveEmail: emailResolver(organizationId, context), |
| 243 | }); |
| 244 | |
| 245 | /** |
| 246 | * Authorize, then run `body` against the tenant's platform view. |
no test coverage detected