@attest-it/cli 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1688,7 +1688,7 @@ function KeygenInteractive(props) {
1688
1688
  } else if (value === "1password") {
1689
1689
  setSelectedProvider("1password");
1690
1690
  if (accounts.length === 1 && accounts[0]) {
1691
- setSelectedAccount(accounts[0].email);
1691
+ setSelectedAccount(accounts[0].user_uuid);
1692
1692
  setStep("select-vault");
1693
1693
  } else {
1694
1694
  setStep("select-account");
@@ -1735,8 +1735,12 @@ function KeygenInteractive(props) {
1735
1735
  if (!selectedVault || !itemName) {
1736
1736
  throw new Error("Vault and item name are required for 1Password");
1737
1737
  }
1738
+ const vault = vaults.find((v) => v.id === selectedVault);
1739
+ if (!vault) {
1740
+ throw new Error("Selected vault not found");
1741
+ }
1738
1742
  const providerOptions = {
1739
- vault: selectedVault,
1743
+ vault: vault.name,
1740
1744
  itemName
1741
1745
  };
1742
1746
  if (selectedAccount !== void 0) {
@@ -1753,7 +1757,7 @@ function KeygenInteractive(props) {
1753
1757
  publicKeyPath: result.publicKeyPath,
1754
1758
  privateKeyRef: result.privateKeyRef,
1755
1759
  storageDescription: result.storageDescription,
1756
- vault: selectedVault,
1760
+ vault: vault.name,
1757
1761
  itemName
1758
1762
  };
1759
1763
  if (selectedAccount !== void 0) {
@@ -1819,7 +1823,7 @@ function KeygenInteractive(props) {
1819
1823
  if (step === "select-account") {
1820
1824
  const options = accounts.map((account) => ({
1821
1825
  label: account.email,
1822
- value: account.email
1826
+ value: account.user_uuid
1823
1827
  }));
1824
1828
  return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
1825
1829
  /* @__PURE__ */ jsx(Text, { bold: true, children: "Select 1Password account:" }),
@@ -1836,7 +1840,7 @@ function KeygenInteractive(props) {
1836
1840
  }
1837
1841
  const options = vaults.map((vault) => ({
1838
1842
  label: vault.name,
1839
- value: vault.name
1843
+ value: vault.id
1840
1844
  }));
1841
1845
  return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
1842
1846
  /* @__PURE__ */ jsx(Text, { bold: true, children: "Select vault for private key storage:" }),