(row: Record<string, unknown>)
| 162 | /** Read a vault row out of the emulator's generic store snapshot, or null when |
| 163 | * it is not shaped like one. */ |
| 164 | const 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. */ |