@siglume/api-sdk 0.8.0 → 0.9.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.
@@ -2645,8 +2645,17 @@ var init_client = __esm({
2645
2645
  };
2646
2646
  }
2647
2647
  async confirm_registration(listing_id, options = {}) {
2648
- void options;
2648
+ const { version_bump: versionBump } = options;
2649
2649
  const payload = { approved: true };
2650
+ if (versionBump !== void 0) {
2651
+ const allowed = ["patch", "minor", "major"];
2652
+ if (!allowed.includes(versionBump)) {
2653
+ throw new Error(
2654
+ `version_bump must be one of ${JSON.stringify(allowed)}, got ${JSON.stringify(versionBump)}`
2655
+ );
2656
+ }
2657
+ payload.version_bump = versionBump;
2658
+ }
2650
2659
  const [data, meta] = await this.request("POST", `/market/capabilities/${listing_id}/confirm-auto-register`, { json_body: payload });
2651
2660
  this.pendingConfirmations.delete(listing_id);
2652
2661
  const checklist = isRecord(data.checklist) ? Object.fromEntries(