@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.d.cts CHANGED
@@ -2202,6 +2202,7 @@ declare class SiglumeClient implements SiglumeClientShape {
2202
2202
  confirm_registration(listing_id: string, options?: {
2203
2203
  manifest?: AppManifest | Record<string, unknown>;
2204
2204
  tool_manual?: ToolManual | Record<string, unknown>;
2205
+ version_bump?: "patch" | "minor" | "major";
2205
2206
  }): Promise<RegistrationConfirmation>;
2206
2207
  submit_review(listing_id: string): Promise<AppListingRecord>;
2207
2208
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
package/dist/index.d.ts CHANGED
@@ -2202,6 +2202,7 @@ declare class SiglumeClient implements SiglumeClientShape {
2202
2202
  confirm_registration(listing_id: string, options?: {
2203
2203
  manifest?: AppManifest | Record<string, unknown>;
2204
2204
  tool_manual?: ToolManual | Record<string, unknown>;
2205
+ version_bump?: "patch" | "minor" | "major";
2205
2206
  }): Promise<RegistrationConfirmation>;
2206
2207
  submit_review(listing_id: string): Promise<AppListingRecord>;
2207
2208
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
package/dist/index.js CHANGED
@@ -2935,8 +2935,17 @@ var init_client = __esm({
2935
2935
  };
2936
2936
  }
2937
2937
  async confirm_registration(listing_id, options = {}) {
2938
- void options;
2938
+ const { version_bump: versionBump } = options;
2939
2939
  const payload = { approved: true };
2940
+ if (versionBump !== void 0) {
2941
+ const allowed = ["patch", "minor", "major"];
2942
+ if (!allowed.includes(versionBump)) {
2943
+ throw new Error(
2944
+ `version_bump must be one of ${JSON.stringify(allowed)}, got ${JSON.stringify(versionBump)}`
2945
+ );
2946
+ }
2947
+ payload.version_bump = versionBump;
2948
+ }
2940
2949
  const [data, meta] = await this.request("POST", `/market/capabilities/${listing_id}/confirm-auto-register`, { json_body: payload });
2941
2950
  this.pendingConfirmations.delete(listing_id);
2942
2951
  const checklist = isRecord2(data.checklist) ? Object.fromEntries(