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

Function listUserConnections

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

Source from the content-addressed store, hash-verified

339 });
340
341export 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 );

Callers 2

stubProviderFunction · 0.90

Calls 1

readFailedFunction · 0.85

Tested by 1

stubProviderFunction · 0.72