@siglume/api-sdk 0.10.4 → 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.
@@ -139,6 +139,11 @@ declare const StoreVertical: {
139
139
  readonly GAME: "game";
140
140
  };
141
141
  type StoreVertical = (typeof StoreVertical)[keyof typeof StoreVertical];
142
+ declare const ListingCurrency: {
143
+ readonly USD: "USD";
144
+ readonly JPY: "JPY";
145
+ };
146
+ type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
142
147
  interface AppManifest {
143
148
  capability_key: string;
144
149
  version?: string;
@@ -152,7 +157,7 @@ interface AppManifest {
152
157
  permission_scopes?: string[];
153
158
  price_model?: PriceModel;
154
159
  price_value_minor?: number;
155
- currency?: "USD";
160
+ currency: ListingCurrency;
156
161
  jurisdiction: string;
157
162
  applicable_regulations?: string[];
158
163
  data_residency?: string;
@@ -139,6 +139,11 @@ declare const StoreVertical: {
139
139
  readonly GAME: "game";
140
140
  };
141
141
  type StoreVertical = (typeof StoreVertical)[keyof typeof StoreVertical];
142
+ declare const ListingCurrency: {
143
+ readonly USD: "USD";
144
+ readonly JPY: "JPY";
145
+ };
146
+ type ListingCurrency = (typeof ListingCurrency)[keyof typeof ListingCurrency];
142
147
  interface AppManifest {
143
148
  capability_key: string;
144
149
  version?: string;
@@ -152,7 +157,7 @@ interface AppManifest {
152
157
  permission_scopes?: string[];
153
158
  price_model?: PriceModel;
154
159
  price_value_minor?: number;
155
- currency?: "USD";
160
+ currency: ListingCurrency;
156
161
  jurisdiction: string;
157
162
  applicable_regulations?: string[];
158
163
  data_residency?: string;
package/dist/cli/index.js CHANGED
@@ -2511,6 +2511,7 @@ var init_client = __esm({
2511
2511
  "jurisdiction",
2512
2512
  "price_model",
2513
2513
  "price_value_minor",
2514
+ "currency",
2514
2515
  "permission_class",
2515
2516
  "approval_mode",
2516
2517
  "dry_run_supported",
@@ -2528,6 +2529,16 @@ var init_client = __esm({
2528
2529
  "AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
2529
2530
  );
2530
2531
  }
2532
+ const currency = String(payload.currency ?? "").trim().toUpperCase();
2533
+ if (!currency) {
2534
+ throw new SiglumeClientError(
2535
+ "AppManifest.currency is required. Choose 'USD' for USDC settlement or 'JPY' for JPYC settlement."
2536
+ );
2537
+ }
2538
+ if (currency !== "USD" && currency !== "JPY") {
2539
+ throw new SiglumeClientError(`AppManifest.currency must be 'USD' or 'JPY'. Got ${String(payload.currency)}.`);
2540
+ }
2541
+ payload.currency = currency;
2531
2542
  if (payload.manifest && typeof payload.manifest === "object") {
2532
2543
  delete payload.manifest.version;
2533
2544
  }
@@ -7657,6 +7668,7 @@ function buildOperationManifest(operation, capability_key_override) {
7657
7668
  dry_run_supported: true,
7658
7669
  required_connected_accounts: [],
7659
7670
  price_model: PriceModel.FREE,
7671
+ currency: "USD",
7660
7672
  jurisdiction: "US",
7661
7673
  short_description: operation.summary,
7662
7674
  docs_url: "https://example.com/docs",
@@ -7734,6 +7746,7 @@ function operationAdapterSource(operation, manifest) {
7734
7746
  " dry_run_supported: true,",
7735
7747
  " required_connected_accounts: [],",
7736
7748
  " price_model: PriceModel.FREE,",
7749
+ " currency: 'USD' as const,",
7737
7750
  ` jurisdiction: ${JSON.stringify(manifest.jurisdiction)},`,
7738
7751
  ` short_description: ${JSON.stringify(manifest.short_description ?? "")},`,
7739
7752
  ` support_contact: ${JSON.stringify(manifest.support_contact ?? "")},`,
@@ -8413,6 +8426,7 @@ function fallbackTemplateSource(template) {
8413
8426
  " dry_run_supported: true,",
8414
8427
  " required_connected_accounts: [],",
8415
8428
  " price_model: PriceModel.FREE,",
8429
+ " currency: 'USD' as const,",
8416
8430
  ' jurisdiction: "US",',
8417
8431
  ' short_description: "Starter template generated by siglume init.",',
8418
8432
  ' support_contact: "support@example.com",',
@@ -8466,6 +8480,7 @@ function starterManifest(template) {
8466
8480
  dry_run_supported: true,
8467
8481
  required_connected_accounts: [],
8468
8482
  price_model: "free",
8483
+ currency: "USD",
8469
8484
  jurisdiction: "US",
8470
8485
  short_description: "Starter template generated by siglume init.",
8471
8486
  support_contact: "support@example.com",