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

Function readVaultObject

e2e/cloud/credential-write-durability.test.ts:172–175  ·  view source on GitHub ↗
(row: Record<string, unknown>)

Source from the content-addressed store, hash-verified

170/** Read a vault row out of the emulator's generic store snapshot, or null when
171 * it is not shaped like one. */
172const readVaultObject = (row: Record<string, unknown>): VaultObject | null =>
173 typeof row.workos_id === "string" && typeof row.name === "string"
174 ? { id: row.workos_id, name: row.name }
175 : null;
176
177/** Every vault object this connection owns. The object name embeds the logical
178 * item id, so the connection's own objects are the ones carrying its slug. */

Callers 1

vaultObjectsForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected