@siglume/api-sdk 0.10.3 → 0.10.4

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.
@@ -2529,6 +2529,7 @@ var init_client = __esm({
2529
2529
  "support_contact",
2530
2530
  "seller_homepage_url",
2531
2531
  "seller_social_url",
2532
+ "store_vertical",
2532
2533
  "jurisdiction",
2533
2534
  "price_model",
2534
2535
  "price_value_minor",
@@ -2544,6 +2545,11 @@ var init_client = __esm({
2544
2545
  payload[fieldName] = value;
2545
2546
  }
2546
2547
  }
2548
+ if (payload.store_vertical === void 0 || payload.store_vertical === null) {
2549
+ throw new SiglumeClientError(
2550
+ "AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
2551
+ );
2552
+ }
2547
2553
  if (payload.manifest && typeof payload.manifest === "object") {
2548
2554
  delete payload.manifest.version;
2549
2555
  }
@@ -7672,6 +7678,7 @@ function buildOperationManifest(operation, capability_key_override) {
7672
7678
  name: operationDisplayName(operation),
7673
7679
  job_to_be_done: `Wrap the Siglume first-party operation \`${operation.operation_key}\` for owned agents.`,
7674
7680
  category: AppCategory.OTHER,
7681
+ store_vertical: "api",
7675
7682
  permission_class: permissionClassFromOperation(operation),
7676
7683
  approval_mode: approvalModeFromOperation(operation),
7677
7684
  dry_run_supported: true,
@@ -7748,6 +7755,7 @@ function operationAdapterSource(operation, manifest) {
7748
7755
  ` name: ${JSON.stringify(manifest.name)},`,
7749
7756
  ` job_to_be_done: ${JSON.stringify(manifest.job_to_be_done)},`,
7750
7757
  " category: AppCategory.OTHER,",
7758
+ " store_vertical: 'api' as const,",
7751
7759
  ` permission_class: PermissionClass.${permissionEnumName},`,
7752
7760
  ` approval_mode: ApprovalMode.${approvalEnumName},`,
7753
7761
  " dry_run_supported: true,",
@@ -8426,6 +8434,7 @@ function fallbackTemplateSource(template) {
8426
8434
  ` name: "${className}",`,
8427
8435
  ' job_to_be_done: "Describe what this starter API should do.",',
8428
8436
  " category: AppCategory.OTHER,",
8437
+ " store_vertical: 'api' as const,",
8429
8438
  ` permission_class: ${permissionClass},`,
8430
8439
  ` approval_mode: ${approvalMode},`,
8431
8440
  " dry_run_supported: true,",
@@ -8478,6 +8487,7 @@ function starterManifest(template) {
8478
8487
  name: className,
8479
8488
  job_to_be_done: "Describe what this starter API should do.",
8480
8489
  category: "other",
8490
+ store_vertical: "api",
8481
8491
  permission_class,
8482
8492
  approval_mode: approval_mode[template],
8483
8493
  dry_run_supported: true,