@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/bin/siglume.cjs
CHANGED
|
@@ -2532,6 +2532,7 @@ var init_client = __esm({
|
|
|
2532
2532
|
"jurisdiction",
|
|
2533
2533
|
"price_model",
|
|
2534
2534
|
"price_value_minor",
|
|
2535
|
+
"currency",
|
|
2535
2536
|
"permission_class",
|
|
2536
2537
|
"approval_mode",
|
|
2537
2538
|
"dry_run_supported",
|
|
@@ -2549,6 +2550,16 @@ var init_client = __esm({
|
|
|
2549
2550
|
"AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
|
|
2550
2551
|
);
|
|
2551
2552
|
}
|
|
2553
|
+
const currency = String(payload.currency ?? "").trim().toUpperCase();
|
|
2554
|
+
if (!currency) {
|
|
2555
|
+
throw new SiglumeClientError(
|
|
2556
|
+
"AppManifest.currency is required. Choose 'USD' for USDC settlement or 'JPY' for JPYC settlement."
|
|
2557
|
+
);
|
|
2558
|
+
}
|
|
2559
|
+
if (currency !== "USD" && currency !== "JPY") {
|
|
2560
|
+
throw new SiglumeClientError(`AppManifest.currency must be 'USD' or 'JPY'. Got ${String(payload.currency)}.`);
|
|
2561
|
+
}
|
|
2562
|
+
payload.currency = currency;
|
|
2552
2563
|
if (payload.manifest && typeof payload.manifest === "object") {
|
|
2553
2564
|
delete payload.manifest.version;
|
|
2554
2565
|
}
|
|
@@ -7678,6 +7689,7 @@ function buildOperationManifest(operation, capability_key_override) {
|
|
|
7678
7689
|
dry_run_supported: true,
|
|
7679
7690
|
required_connected_accounts: [],
|
|
7680
7691
|
price_model: PriceModel.FREE,
|
|
7692
|
+
currency: "USD",
|
|
7681
7693
|
jurisdiction: "US",
|
|
7682
7694
|
short_description: operation.summary,
|
|
7683
7695
|
docs_url: "https://example.com/docs",
|
|
@@ -7755,6 +7767,7 @@ function operationAdapterSource(operation, manifest) {
|
|
|
7755
7767
|
" dry_run_supported: true,",
|
|
7756
7768
|
" required_connected_accounts: [],",
|
|
7757
7769
|
" price_model: PriceModel.FREE,",
|
|
7770
|
+
" currency: 'USD' as const,",
|
|
7758
7771
|
` jurisdiction: ${JSON.stringify(manifest.jurisdiction)},`,
|
|
7759
7772
|
` short_description: ${JSON.stringify(manifest.short_description ?? "")},`,
|
|
7760
7773
|
` support_contact: ${JSON.stringify(manifest.support_contact ?? "")},`,
|
|
@@ -8434,6 +8447,7 @@ function fallbackTemplateSource(template) {
|
|
|
8434
8447
|
" dry_run_supported: true,",
|
|
8435
8448
|
" required_connected_accounts: [],",
|
|
8436
8449
|
" price_model: PriceModel.FREE,",
|
|
8450
|
+
" currency: 'USD' as const,",
|
|
8437
8451
|
' jurisdiction: "US",',
|
|
8438
8452
|
' short_description: "Starter template generated by siglume init.",',
|
|
8439
8453
|
' support_contact: "support@example.com",',
|
|
@@ -8487,6 +8501,7 @@ function starterManifest(template) {
|
|
|
8487
8501
|
dry_run_supported: true,
|
|
8488
8502
|
required_connected_accounts: [],
|
|
8489
8503
|
price_model: "free",
|
|
8504
|
+
currency: "USD",
|
|
8490
8505
|
jurisdiction: "US",
|
|
8491
8506
|
short_description: "Starter template generated by siglume init.",
|
|
8492
8507
|
support_contact: "support@example.com",
|