@siglume/api-sdk 0.7.6 → 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.
package/dist/index.d.cts CHANGED
@@ -206,6 +206,8 @@ interface AppManifest {
206
206
  short_description?: string;
207
207
  docs_url?: string;
208
208
  support_contact?: string;
209
+ seller_homepage_url?: string;
210
+ seller_social_url?: string;
209
211
  compatibility_tags?: string[];
210
212
  example_prompts?: string[];
211
213
  latency_tier?: string;
@@ -366,6 +368,9 @@ interface AppListingRecord {
366
368
  short_description?: string | null;
367
369
  docs_url?: string | null;
368
370
  support_contact?: string | null;
371
+ seller_display_name?: string | null;
372
+ seller_homepage_url?: string | null;
373
+ seller_social_url?: string | null;
369
374
  review_status?: string | null;
370
375
  review_note?: string | null;
371
376
  submission_blockers: string[];
@@ -431,9 +436,12 @@ interface BundleListingRecord {
431
436
  interface AutoRegistrationReceipt {
432
437
  listing_id: string;
433
438
  status: string;
439
+ registration_mode?: string | null;
440
+ listing_status?: string | null;
434
441
  auto_manifest: Record<string, unknown>;
435
442
  confidence: Record<string, unknown>;
436
443
  validation_report?: Record<string, unknown>;
444
+ oauth_status?: Record<string, unknown>;
437
445
  review_url?: string | null;
438
446
  trace_id?: string | null;
439
447
  request_id?: string | null;
@@ -448,6 +456,8 @@ interface RegistrationQuality {
448
456
  interface RegistrationConfirmation {
449
457
  listing_id: string;
450
458
  status: string;
459
+ message?: string | null;
460
+ checklist?: Record<string, boolean>;
451
461
  release: Record<string, unknown>;
452
462
  quality: RegistrationQuality;
453
463
  trace_id?: string | null;
@@ -1623,6 +1633,7 @@ interface SiglumeClientShape {
1623
1633
  source_code?: string;
1624
1634
  source_url?: string;
1625
1635
  runtime_validation?: Record<string, unknown>;
1636
+ oauth_credentials?: Record<string, unknown> | unknown[];
1626
1637
  metadata?: Record<string, unknown>;
1627
1638
  source_context?: Record<string, unknown>;
1628
1639
  input_form_spec?: Record<string, unknown>;
@@ -2183,6 +2194,7 @@ declare class SiglumeClient implements SiglumeClientShape {
2183
2194
  source_code?: string;
2184
2195
  source_url?: string;
2185
2196
  runtime_validation?: Record<string, unknown>;
2197
+ oauth_credentials?: Record<string, unknown> | unknown[];
2186
2198
  metadata?: Record<string, unknown>;
2187
2199
  source_context?: Record<string, unknown>;
2188
2200
  input_form_spec?: Record<string, unknown>;
@@ -2190,6 +2202,7 @@ declare class SiglumeClient implements SiglumeClientShape {
2190
2202
  confirm_registration(listing_id: string, options?: {
2191
2203
  manifest?: AppManifest | Record<string, unknown>;
2192
2204
  tool_manual?: ToolManual | Record<string, unknown>;
2205
+ version_bump?: "patch" | "minor" | "major";
2193
2206
  }): Promise<RegistrationConfirmation>;
2194
2207
  submit_review(listing_id: string): Promise<AppListingRecord>;
2195
2208
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
package/dist/index.d.ts CHANGED
@@ -206,6 +206,8 @@ interface AppManifest {
206
206
  short_description?: string;
207
207
  docs_url?: string;
208
208
  support_contact?: string;
209
+ seller_homepage_url?: string;
210
+ seller_social_url?: string;
209
211
  compatibility_tags?: string[];
210
212
  example_prompts?: string[];
211
213
  latency_tier?: string;
@@ -366,6 +368,9 @@ interface AppListingRecord {
366
368
  short_description?: string | null;
367
369
  docs_url?: string | null;
368
370
  support_contact?: string | null;
371
+ seller_display_name?: string | null;
372
+ seller_homepage_url?: string | null;
373
+ seller_social_url?: string | null;
369
374
  review_status?: string | null;
370
375
  review_note?: string | null;
371
376
  submission_blockers: string[];
@@ -431,9 +436,12 @@ interface BundleListingRecord {
431
436
  interface AutoRegistrationReceipt {
432
437
  listing_id: string;
433
438
  status: string;
439
+ registration_mode?: string | null;
440
+ listing_status?: string | null;
434
441
  auto_manifest: Record<string, unknown>;
435
442
  confidence: Record<string, unknown>;
436
443
  validation_report?: Record<string, unknown>;
444
+ oauth_status?: Record<string, unknown>;
437
445
  review_url?: string | null;
438
446
  trace_id?: string | null;
439
447
  request_id?: string | null;
@@ -448,6 +456,8 @@ interface RegistrationQuality {
448
456
  interface RegistrationConfirmation {
449
457
  listing_id: string;
450
458
  status: string;
459
+ message?: string | null;
460
+ checklist?: Record<string, boolean>;
451
461
  release: Record<string, unknown>;
452
462
  quality: RegistrationQuality;
453
463
  trace_id?: string | null;
@@ -1623,6 +1633,7 @@ interface SiglumeClientShape {
1623
1633
  source_code?: string;
1624
1634
  source_url?: string;
1625
1635
  runtime_validation?: Record<string, unknown>;
1636
+ oauth_credentials?: Record<string, unknown> | unknown[];
1626
1637
  metadata?: Record<string, unknown>;
1627
1638
  source_context?: Record<string, unknown>;
1628
1639
  input_form_spec?: Record<string, unknown>;
@@ -2183,6 +2194,7 @@ declare class SiglumeClient implements SiglumeClientShape {
2183
2194
  source_code?: string;
2184
2195
  source_url?: string;
2185
2196
  runtime_validation?: Record<string, unknown>;
2197
+ oauth_credentials?: Record<string, unknown> | unknown[];
2186
2198
  metadata?: Record<string, unknown>;
2187
2199
  source_context?: Record<string, unknown>;
2188
2200
  input_form_spec?: Record<string, unknown>;
@@ -2190,6 +2202,7 @@ declare class SiglumeClient implements SiglumeClientShape {
2190
2202
  confirm_registration(listing_id: string, options?: {
2191
2203
  manifest?: AppManifest | Record<string, unknown>;
2192
2204
  tool_manual?: ToolManual | Record<string, unknown>;
2205
+ version_bump?: "patch" | "minor" | "major";
2193
2206
  }): Promise<RegistrationConfirmation>;
2194
2207
  submit_review(listing_id: string): Promise<AppListingRecord>;
2195
2208
  preview_quality_score(tool_manual: ToolManual | Record<string, unknown>): Promise<ToolManualQualityReport>;
package/dist/index.js CHANGED
@@ -1641,6 +1641,9 @@ function parseListing(data) {
1641
1641
  short_description: stringOrNull2(data.short_description),
1642
1642
  docs_url: stringOrNull2(data.docs_url),
1643
1643
  support_contact: stringOrNull2(data.support_contact),
1644
+ seller_display_name: stringOrNull2(data.seller_display_name),
1645
+ seller_homepage_url: stringOrNull2(data.seller_homepage_url),
1646
+ seller_social_url: stringOrNull2(data.seller_social_url),
1644
1647
  review_status: stringOrNull2(data.review_status),
1645
1648
  review_note: stringOrNull2(data.review_note),
1646
1649
  submission_blockers: Array.isArray(data.submission_blockers) ? data.submission_blockers.filter((item) => typeof item === "string") : [],
@@ -2857,6 +2860,13 @@ var init_client = __esm({
2857
2860
  if (options.runtime_validation) {
2858
2861
  payload.runtime_validation = coerceMapping(options.runtime_validation, "runtime_validation");
2859
2862
  }
2863
+ if (options.oauth_credentials) {
2864
+ payload.oauth_credentials = Array.isArray(options.oauth_credentials) ? {
2865
+ items: options.oauth_credentials.map(
2866
+ (item, index) => coerceMapping(item, `oauth_credentials[${index}]`)
2867
+ )
2868
+ } : coerceMapping(options.oauth_credentials, "oauth_credentials");
2869
+ }
2860
2870
  if (options.metadata) {
2861
2871
  payload.metadata = coerceMapping(options.metadata, "metadata");
2862
2872
  }
@@ -2875,6 +2885,8 @@ var init_client = __esm({
2875
2885
  "docs_url",
2876
2886
  "documentation_url",
2877
2887
  "support_contact",
2888
+ "seller_homepage_url",
2889
+ "seller_social_url",
2878
2890
  "jurisdiction",
2879
2891
  "price_model",
2880
2892
  "price_value_minor",
@@ -2890,10 +2902,14 @@ var init_client = __esm({
2890
2902
  }
2891
2903
  const docsUrl = String(manifestPayload.docs_url ?? manifestPayload.documentation_url ?? "").trim();
2892
2904
  const supportContact = String(manifestPayload.support_contact ?? "").trim();
2893
- if (docsUrl || supportContact) {
2905
+ const sellerHomepageUrl = String(manifestPayload.seller_homepage_url ?? "").trim();
2906
+ const sellerSocialUrl = String(manifestPayload.seller_social_url ?? "").trim();
2907
+ if (docsUrl || supportContact || sellerHomepageUrl || sellerSocialUrl) {
2894
2908
  const publisherIdentity = {
2895
2909
  documentation_url: docsUrl || null,
2896
- support_contact: supportContact || null
2910
+ support_contact: supportContact || null,
2911
+ seller_homepage_url: sellerHomepageUrl || null,
2912
+ seller_social_url: sellerSocialUrl || null
2897
2913
  };
2898
2914
  payload.publisher_identity = publisherIdentity;
2899
2915
  payload.legal = { publisher_identity: publisherIdentity };
@@ -2907,36 +2923,39 @@ var init_client = __esm({
2907
2923
  return {
2908
2924
  listing_id,
2909
2925
  status: String(data.status ?? "draft"),
2926
+ registration_mode: stringOrNull2(data.registration_mode),
2927
+ listing_status: stringOrNull2(data.listing_status),
2910
2928
  auto_manifest: toRecord2(data.auto_manifest),
2911
2929
  confidence: toRecord2(data.confidence),
2912
2930
  validation_report: toRecord2(data.validation_report),
2931
+ oauth_status: toRecord2(data.oauth_status),
2913
2932
  review_url: stringOrNull2(data.review_url),
2914
2933
  trace_id: meta.trace_id,
2915
2934
  request_id: meta.request_id
2916
2935
  };
2917
2936
  }
2918
2937
  async confirm_registration(listing_id, options = {}) {
2919
- const pending = this.pendingConfirmations.get(listing_id);
2920
- const manifestPayload = options.manifest ? coerceMapping(options.manifest, "manifest") : pending?.manifest ?? {};
2921
- const toolManualPayload = options.tool_manual ? coerceMapping(options.tool_manual, "tool_manual") : pending?.tool_manual ?? {};
2922
- const overrides = {};
2923
- for (const fieldName of ["name", "job_to_be_done"]) {
2924
- if (manifestPayload[fieldName]) {
2925
- overrides[fieldName] = manifestPayload[fieldName];
2926
- }
2927
- }
2928
- if (Object.keys(toolManualPayload).length > 0) {
2929
- overrides.tool_manual = toolManualPayload;
2930
- }
2938
+ const { version_bump: versionBump } = options;
2931
2939
  const payload = { approved: true };
2932
- if (Object.keys(overrides).length > 0) {
2933
- payload.overrides = overrides;
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;
2934
2948
  }
2935
2949
  const [data, meta] = await this.request("POST", `/market/capabilities/${listing_id}/confirm-auto-register`, { json_body: payload });
2936
2950
  this.pendingConfirmations.delete(listing_id);
2951
+ const checklist = isRecord2(data.checklist) ? Object.fromEntries(
2952
+ Object.entries(data.checklist).map(([key, value]) => [key, Boolean(value)])
2953
+ ) : {};
2937
2954
  return {
2938
2955
  listing_id: String(data.listing_id ?? listing_id),
2939
2956
  status: String(data.status ?? ""),
2957
+ message: stringOrNull2(data.message),
2958
+ checklist,
2940
2959
  release: toRecord2(data.release),
2941
2960
  quality: parseRegistrationQuality(toRecord2(data.quality)),
2942
2961
  trace_id: meta.trace_id,