@siglume/api-sdk 0.10.4 → 0.10.6
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/bin/siglume.cjs +15 -0
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +15 -0
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +15 -0
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +6 -1
- package/dist/cli/index.d.ts +6 -1
- package/dist/cli/index.js +15 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -2533,6 +2533,7 @@ var init_client = __esm({
|
|
|
2533
2533
|
"jurisdiction",
|
|
2534
2534
|
"price_model",
|
|
2535
2535
|
"price_value_minor",
|
|
2536
|
+
"currency",
|
|
2536
2537
|
"permission_class",
|
|
2537
2538
|
"approval_mode",
|
|
2538
2539
|
"dry_run_supported",
|
|
@@ -2550,6 +2551,16 @@ var init_client = __esm({
|
|
|
2550
2551
|
"AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
|
|
2551
2552
|
);
|
|
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;
|
|
2553
2564
|
if (payload.manifest && typeof payload.manifest === "object") {
|
|
2554
2565
|
delete payload.manifest.version;
|
|
2555
2566
|
}
|
|
@@ -7684,6 +7695,7 @@ function buildOperationManifest(operation, capability_key_override) {
|
|
|
7684
7695
|
dry_run_supported: true,
|
|
7685
7696
|
required_connected_accounts: [],
|
|
7686
7697
|
price_model: PriceModel.FREE,
|
|
7698
|
+
currency: "USD",
|
|
7687
7699
|
jurisdiction: "US",
|
|
7688
7700
|
short_description: operation.summary,
|
|
7689
7701
|
docs_url: "https://example.com/docs",
|
|
@@ -7761,6 +7773,7 @@ function operationAdapterSource(operation, manifest) {
|
|
|
7761
7773
|
" dry_run_supported: true,",
|
|
7762
7774
|
" required_connected_accounts: [],",
|
|
7763
7775
|
" price_model: PriceModel.FREE,",
|
|
7776
|
+
" currency: 'USD' as const,",
|
|
7764
7777
|
` jurisdiction: ${JSON.stringify(manifest.jurisdiction)},`,
|
|
7765
7778
|
` short_description: ${JSON.stringify(manifest.short_description ?? "")},`,
|
|
7766
7779
|
` support_contact: ${JSON.stringify(manifest.support_contact ?? "")},`,
|
|
@@ -8440,6 +8453,7 @@ function fallbackTemplateSource(template) {
|
|
|
8440
8453
|
" dry_run_supported: true,",
|
|
8441
8454
|
" required_connected_accounts: [],",
|
|
8442
8455
|
" price_model: PriceModel.FREE,",
|
|
8456
|
+
" currency: 'USD' as const,",
|
|
8443
8457
|
' jurisdiction: "US",',
|
|
8444
8458
|
' short_description: "Starter template generated by siglume init.",',
|
|
8445
8459
|
' support_contact: "support@example.com",',
|
|
@@ -8493,6 +8507,7 @@ function starterManifest(template) {
|
|
|
8493
8507
|
dry_run_supported: true,
|
|
8494
8508
|
required_connected_accounts: [],
|
|
8495
8509
|
price_model: "free",
|
|
8510
|
+
currency: "USD",
|
|
8496
8511
|
jurisdiction: "US",
|
|
8497
8512
|
short_description: "Starter template generated by siglume init.",
|
|
8498
8513
|
support_contact: "support@example.com",
|