MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / listUserConnections

Function listUserConnections

packages/core/api/src/admin/reads.ts:458–465  ·  view source on GitHub ↗
(
  admin: ExecutorAdmin,
  externalId: string,
)

Source from the content-addressed store, hash-verified

456 });
457
458export const listUserConnections = (
459 admin: ExecutorAdmin,
460 externalId: string,
461): Effect.Effect<typeof AdminUserConnectionsResponse.Type, AdminUsersError> =>
462 admin.listSubjectConnections(externalId).pipe(
463 Effect.map((connections) => ({ connections: connections.map(toConnection) })),
464 Effect.mapError(readFailed("connections")),
465 );

Callers 2

stubProviderFunction · 0.90

Calls 1

readFailedFunction · 0.85

Tested by 1

stubProviderFunction · 0.72