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

Function toUserWithConnections

packages/core/api/src/admin/reads.ts:210–216  ·  view source on GitHub ↗
(
  subject: AdminSubjectWithConnections,
  identities: ReadonlyMap<string, AdminUserIdentity>,
)

Source from the content-addressed store, hash-verified

208});
209
210const toUserWithConnections = (
211 subject: AdminSubjectWithConnections,
212 identities: ReadonlyMap<string, AdminUserIdentity>,
213) => ({
214 ...toUser(subject, identities),
215 connections: subject.connections.map(toConnection),
216});
217
218/**
219 * Accept the legacy one-way directory or the two-way one, so a host that only

Callers 2

listUsersWithConnectionsFunction · 0.85
getUserFunction · 0.85

Calls 1

toUserFunction · 0.85

Tested by

no test coverage detected