@siglume/api-sdk 0.10.2 → 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.
- package/README.md +7 -0
- package/dist/bin/siglume.cjs +10 -0
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +10 -0
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +10 -0
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +6 -0
- package/dist/cli/index.d.ts +6 -0
- package/dist/cli/index.js +10 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/siglume.js
CHANGED
|
@@ -2507,6 +2507,7 @@ var init_client = __esm({
|
|
|
2507
2507
|
"support_contact",
|
|
2508
2508
|
"seller_homepage_url",
|
|
2509
2509
|
"seller_social_url",
|
|
2510
|
+
"store_vertical",
|
|
2510
2511
|
"jurisdiction",
|
|
2511
2512
|
"price_model",
|
|
2512
2513
|
"price_value_minor",
|
|
@@ -2522,6 +2523,11 @@ var init_client = __esm({
|
|
|
2522
2523
|
payload[fieldName] = value;
|
|
2523
2524
|
}
|
|
2524
2525
|
}
|
|
2526
|
+
if (payload.store_vertical === void 0 || payload.store_vertical === null) {
|
|
2527
|
+
throw new SiglumeClientError(
|
|
2528
|
+
"AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
|
|
2529
|
+
);
|
|
2530
|
+
}
|
|
2525
2531
|
if (payload.manifest && typeof payload.manifest === "object") {
|
|
2526
2532
|
delete payload.manifest.version;
|
|
2527
2533
|
}
|
|
@@ -7645,6 +7651,7 @@ function buildOperationManifest(operation, capability_key_override) {
|
|
|
7645
7651
|
name: operationDisplayName(operation),
|
|
7646
7652
|
job_to_be_done: `Wrap the Siglume first-party operation \`${operation.operation_key}\` for owned agents.`,
|
|
7647
7653
|
category: AppCategory.OTHER,
|
|
7654
|
+
store_vertical: "api",
|
|
7648
7655
|
permission_class: permissionClassFromOperation(operation),
|
|
7649
7656
|
approval_mode: approvalModeFromOperation(operation),
|
|
7650
7657
|
dry_run_supported: true,
|
|
@@ -7721,6 +7728,7 @@ function operationAdapterSource(operation, manifest) {
|
|
|
7721
7728
|
` name: ${JSON.stringify(manifest.name)},`,
|
|
7722
7729
|
` job_to_be_done: ${JSON.stringify(manifest.job_to_be_done)},`,
|
|
7723
7730
|
" category: AppCategory.OTHER,",
|
|
7731
|
+
" store_vertical: 'api' as const,",
|
|
7724
7732
|
` permission_class: PermissionClass.${permissionEnumName},`,
|
|
7725
7733
|
` approval_mode: ApprovalMode.${approvalEnumName},`,
|
|
7726
7734
|
" dry_run_supported: true,",
|
|
@@ -8399,6 +8407,7 @@ function fallbackTemplateSource(template) {
|
|
|
8399
8407
|
` name: "${className}",`,
|
|
8400
8408
|
' job_to_be_done: "Describe what this starter API should do.",',
|
|
8401
8409
|
" category: AppCategory.OTHER,",
|
|
8410
|
+
" store_vertical: 'api' as const,",
|
|
8402
8411
|
` permission_class: ${permissionClass},`,
|
|
8403
8412
|
` approval_mode: ${approvalMode},`,
|
|
8404
8413
|
" dry_run_supported: true,",
|
|
@@ -8451,6 +8460,7 @@ function starterManifest(template) {
|
|
|
8451
8460
|
name: className,
|
|
8452
8461
|
job_to_be_done: "Describe what this starter API should do.",
|
|
8453
8462
|
category: "other",
|
|
8463
|
+
store_vertical: "api",
|
|
8454
8464
|
permission_class,
|
|
8455
8465
|
approval_mode: approval_mode[template],
|
|
8456
8466
|
dry_run_supported: true,
|