( admin: ExecutorAdmin, externalId: string, )
| 378 | }); |
| 379 | |
| 380 | export const listUserConnections = ( |
| 381 | admin: ExecutorAdmin, |
| 382 | externalId: string, |
| 383 | ): Effect.Effect<typeof AdminUserConnectionsResponse.Type, AdminUsersError> => |
| 384 | admin.listSubjectConnections(externalId).pipe( |
| 385 | Effect.map((connections) => ({ connections: connections.map(toConnection) })), |
| 386 | Effect.mapError(readFailed("connections")), |
| 387 | ); |