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