( admin: ExecutorAdmin, externalId: string, )
| 339 | }); |
| 340 | |
| 341 | export const listUserConnections = ( |
| 342 | admin: ExecutorAdmin, |
| 343 | externalId: string, |
| 344 | ): Effect.Effect<typeof AdminUserConnectionsResponse.Type, AdminUsersError> => |
| 345 | admin.listSubjectConnections(externalId).pipe( |
| 346 | Effect.map((connections) => ({ connections: connections.map(toConnection) })), |
| 347 | Effect.mapError(readFailed("connections")), |
| 348 | ); |