@siglume/api-sdk 0.10.3 → 0.10.5

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,9 +2529,11 @@ 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",
2536
+ "currency",
2535
2537
  "permission_class",
2536
2538
  "approval_mode",
2537
2539
  "dry_run_supported",
@@ -2544,6 +2546,21 @@ var init_client = __esm({
2544
2546
  payload[fieldName] = value;
2545
2547
  }
2546
2548
  }
2549
+ if (payload.store_vertical === void 0 || payload.store_vertical === null) {
2550
+ throw new SiglumeClientError(
2551
+ "AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
2552
+ );
2553
+ }
2554
+ const currency = String(payload.currency ?? "").trim().toUpperCase();
2555
+ if (!currency) {
2556
+ throw new SiglumeClientError(
2557
+ "AppManifest.currency is required. Choose 'USD' for USDC settlement or 'JPY' for JPYC settlement."
2558
+ );
2559
+ }
2560
+ if (currency !== "USD" && currency !== "JPY") {
2561
+ throw new SiglumeClientError(`AppManifest.currency must be 'USD' or 'JPY'. Got ${String(payload.currency)}.`);
2562
+ }
2563
+ payload.currency = currency;
2547
2564
  if (payload.manifest && typeof payload.manifest === "object") {
2548
2565
  delete payload.manifest.version;
2549
2566
  }
@@ -7672,11 +7689,13 @@ function buildOperationManifest(operation, capability_key_override) {
7672
7689
  name: operationDisplayName(operation),
7673
7690
  job_to_be_done: `Wrap the Siglume first-party operation \`${operation.operation_key}\` for owned agents.`,
7674
7691
  category: AppCategory.OTHER,
7692
+ store_vertical: "api",
7675
7693
  permission_class: permissionClassFromOperation(operation),
7676
7694
  approval_mode: approvalModeFromOperation(operation),
7677
7695
  dry_run_supported: true,
7678
7696
  required_connected_accounts: [],
7679
7697
  price_model: PriceModel.FREE,
7698
+ currency: "USD",
7680
7699
  jurisdiction: "US",
7681
7700
  short_description: operation.summary,
7682
7701
  docs_url: "https://example.com/docs",
@@ -7748,11 +7767,13 @@ function operationAdapterSource(operation, manifest) {
7748
7767
  ` name: ${JSON.stringify(manifest.name)},`,
7749
7768
  ` job_to_be_done: ${JSON.stringify(manifest.job_to_be_done)},`,
7750
7769
  " category: AppCategory.OTHER,",
7770
+ " store_vertical: 'api' as const,",
7751
7771
  ` permission_class: PermissionClass.${permissionEnumName},`,
7752
7772
  ` approval_mode: ApprovalMode.${approvalEnumName},`,
7753
7773
  " dry_run_supported: true,",
7754
7774
  " required_connected_accounts: [],",
7755
7775
  " price_model: PriceModel.FREE,",
7776
+ " currency: 'USD' as const,",
7756
7777
  ` jurisdiction: ${JSON.stringify(manifest.jurisdiction)},`,
7757
7778
  ` short_description: ${JSON.stringify(manifest.short_description ?? "")},`,
7758
7779
  ` support_contact: ${JSON.stringify(manifest.support_contact ?? "")},`,
@@ -8426,11 +8447,13 @@ function fallbackTemplateSource(template) {
8426
8447
  ` name: "${className}",`,
8427
8448
  ' job_to_be_done: "Describe what this starter API should do.",',
8428
8449
  " category: AppCategory.OTHER,",
8450
+ " store_vertical: 'api' as const,",
8429
8451
  ` permission_class: ${permissionClass},`,
8430
8452
  ` approval_mode: ${approvalMode},`,
8431
8453
  " dry_run_supported: true,",
8432
8454
  " required_connected_accounts: [],",
8433
8455
  " price_model: PriceModel.FREE,",
8456
+ " currency: 'USD' as const,",
8434
8457
  ' jurisdiction: "US",',
8435
8458
  ' short_description: "Starter template generated by siglume init.",',
8436
8459
  ' support_contact: "support@example.com",',
@@ -8478,11 +8501,13 @@ function starterManifest(template) {
8478
8501
  name: className,
8479
8502
  job_to_be_done: "Describe what this starter API should do.",
8480
8503
  category: "other",
8504
+ store_vertical: "api",
8481
8505
  permission_class,
8482
8506
  approval_mode: approval_mode[template],
8483
8507
  dry_run_supported: true,
8484
8508
  required_connected_accounts: [],
8485
8509
  price_model: "free",
8510
+ currency: "USD",
8486
8511
  jurisdiction: "US",
8487
8512
  short_description: "Starter template generated by siglume init.",
8488
8513
  support_contact: "support@example.com",