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