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

Function readVaultObject

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

Source from the content-addressed store, hash-verified

162/** Read a vault row out of the emulator's generic store snapshot, or null when
163 * it is not shaped like one. */
164const readVaultObject = (row: Record<string, unknown>): VaultObject | null =>
165 typeof row.workos_id === "string" && typeof row.name === "string"
166 ? { id: row.workos_id, name: row.name }
167 : null;
168
169/** Every vault object this connection owns. The object name embeds the logical
170 * 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