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

Function listFromResponse

apps/cloud/src/auth/api-keys.ts:212–220  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

210};
211
212const listFromResponse = (value: unknown): readonly ApiKeySummary[] =>
213 Option.match(decodeListApiKeysResponse(value), {
214 onNone: () => [],
215 onSome: ({ data }) =>
216 data.flatMap((apiKey) => {
217 const summary = summaryFromApiKey(apiKey);
218 return summary ? [summary] : [];
219 }),
220 });
221
222// The org-owned mirror of `summaryFromApiKey`. `organizationId` is checked by
223// the CALLER against the org it asked for: WorkOS's workspace api key is

Callers

nothing calls this directly

Calls 1

summaryFromApiKeyFunction · 0.85

Tested by

no test coverage detected