@siglume/api-sdk 3.0.0 → 3.1.0

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.
package/dist/index.cjs CHANGED
@@ -2897,8 +2897,12 @@ var init_client = __esm({
2897
2897
  };
2898
2898
  }
2899
2899
  async confirm_registration(listing_id, options = {}) {
2900
- const { version_bump: versionBump } = options;
2900
+ const { version_bump: versionBump, visibility = "public" } = options;
2901
2901
  const payload = { approved: true };
2902
+ if (visibility !== "public" && visibility !== "private") {
2903
+ throw new Error(`visibility must be one of ["public","private"], got ${JSON.stringify(visibility)}`);
2904
+ }
2905
+ payload.visibility = visibility;
2902
2906
  if (versionBump !== void 0) {
2903
2907
  const allowed = ["patch", "minor", "major"];
2904
2908
  if (!allowed.includes(versionBump)) {
@@ -2916,6 +2920,7 @@ var init_client = __esm({
2916
2920
  return {
2917
2921
  listing_id: String(data.listing_id ?? listing_id),
2918
2922
  status: String(data.status ?? ""),
2923
+ visibility: stringOrNull2(data.visibility),
2919
2924
  message: stringOrNull2(data.message),
2920
2925
  checklist,
2921
2926
  release: toRecord2(data.release),