@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.d.cts CHANGED
@@ -511,6 +511,7 @@ interface RegistrationQuality {
511
511
  interface RegistrationConfirmation {
512
512
  listing_id: string;
513
513
  status: string;
514
+ visibility?: string | null;
514
515
  message?: string | null;
515
516
  checklist?: Record<string, boolean>;
516
517
  release: Record<string, unknown>;
@@ -1424,6 +1425,8 @@ interface SiglumeClientShape {
1424
1425
  confirm_registration(listing_id: string, options?: {
1425
1426
  manifest?: AppManifest | Record<string, unknown>;
1426
1427
  tool_manual?: ToolManual | Record<string, unknown>;
1428
+ version_bump?: "patch" | "minor" | "major";
1429
+ visibility?: "public" | "private";
1427
1430
  }): Promise<RegistrationConfirmation>;
1428
1431
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
1429
1432
  submit_review(listing_id: string): Promise<AppListingRecord>;
@@ -1869,6 +1872,7 @@ declare class SiglumeClient implements SiglumeClientShape {
1869
1872
  manifest?: AppManifest | Record<string, unknown>;
1870
1873
  tool_manual?: ToolManual | Record<string, unknown>;
1871
1874
  version_bump?: "patch" | "minor" | "major";
1875
+ visibility?: "public" | "private";
1872
1876
  }): Promise<RegistrationConfirmation>;
1873
1877
  submit_review(listing_id: string): Promise<AppListingRecord>;
1874
1878
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
package/dist/index.d.ts CHANGED
@@ -511,6 +511,7 @@ interface RegistrationQuality {
511
511
  interface RegistrationConfirmation {
512
512
  listing_id: string;
513
513
  status: string;
514
+ visibility?: string | null;
514
515
  message?: string | null;
515
516
  checklist?: Record<string, boolean>;
516
517
  release: Record<string, unknown>;
@@ -1424,6 +1425,8 @@ interface SiglumeClientShape {
1424
1425
  confirm_registration(listing_id: string, options?: {
1425
1426
  manifest?: AppManifest | Record<string, unknown>;
1426
1427
  tool_manual?: ToolManual | Record<string, unknown>;
1428
+ version_bump?: "patch" | "minor" | "major";
1429
+ visibility?: "public" | "private";
1427
1430
  }): Promise<RegistrationConfirmation>;
1428
1431
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
1429
1432
  submit_review(listing_id: string): Promise<AppListingRecord>;
@@ -1869,6 +1872,7 @@ declare class SiglumeClient implements SiglumeClientShape {
1869
1872
  manifest?: AppManifest | Record<string, unknown>;
1870
1873
  tool_manual?: ToolManual | Record<string, unknown>;
1871
1874
  version_bump?: "patch" | "minor" | "major";
1875
+ visibility?: "public" | "private";
1872
1876
  }): Promise<RegistrationConfirmation>;
1873
1877
  submit_review(listing_id: string): Promise<AppListingRecord>;
1874
1878
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
package/dist/index.js CHANGED
@@ -2875,8 +2875,12 @@ var init_client = __esm({
2875
2875
  };
2876
2876
  }
2877
2877
  async confirm_registration(listing_id, options = {}) {
2878
- const { version_bump: versionBump } = options;
2878
+ const { version_bump: versionBump, visibility = "public" } = options;
2879
2879
  const payload = { approved: true };
2880
+ if (visibility !== "public" && visibility !== "private") {
2881
+ throw new Error(`visibility must be one of ["public","private"], got ${JSON.stringify(visibility)}`);
2882
+ }
2883
+ payload.visibility = visibility;
2880
2884
  if (versionBump !== void 0) {
2881
2885
  const allowed = ["patch", "minor", "major"];
2882
2886
  if (!allowed.includes(versionBump)) {
@@ -2894,6 +2898,7 @@ var init_client = __esm({
2894
2898
  return {
2895
2899
  listing_id: String(data.listing_id ?? listing_id),
2896
2900
  status: String(data.status ?? ""),
2901
+ visibility: stringOrNull2(data.visibility),
2897
2902
  message: stringOrNull2(data.message),
2898
2903
  checklist,
2899
2904
  release: toRecord2(data.release),