@siglume/api-sdk 0.8.0 → 0.9.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.
package/dist/index.cjs CHANGED
@@ -2957,8 +2957,17 @@ var init_client = __esm({
2957
2957
  };
2958
2958
  }
2959
2959
  async confirm_registration(listing_id, options = {}) {
2960
- void options;
2960
+ const { version_bump: versionBump } = options;
2961
2961
  const payload = { approved: true };
2962
+ if (versionBump !== void 0) {
2963
+ const allowed = ["patch", "minor", "major"];
2964
+ if (!allowed.includes(versionBump)) {
2965
+ throw new Error(
2966
+ `version_bump must be one of ${JSON.stringify(allowed)}, got ${JSON.stringify(versionBump)}`
2967
+ );
2968
+ }
2969
+ payload.version_bump = versionBump;
2970
+ }
2962
2971
  const [data, meta] = await this.request("POST", `/market/capabilities/${listing_id}/confirm-auto-register`, { json_body: payload });
2963
2972
  this.pendingConfirmations.delete(listing_id);
2964
2973
  const checklist = isRecord2(data.checklist) ? Object.fromEntries(