@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.
package/dist/index.cjs CHANGED
@@ -2840,9 +2840,11 @@ var init_client = __esm({
2840
2840
  "support_contact",
2841
2841
  "seller_homepage_url",
2842
2842
  "seller_social_url",
2843
+ "store_vertical",
2843
2844
  "jurisdiction",
2844
2845
  "price_model",
2845
2846
  "price_value_minor",
2847
+ "currency",
2846
2848
  "permission_class",
2847
2849
  "approval_mode",
2848
2850
  "dry_run_supported",
@@ -2855,6 +2857,21 @@ var init_client = __esm({
2855
2857
  payload[fieldName] = value;
2856
2858
  }
2857
2859
  }
2860
+ if (payload.store_vertical === void 0 || payload.store_vertical === null) {
2861
+ throw new SiglumeClientError(
2862
+ "AppManifest.store_vertical is required. Choose 'api' for normal API Store listings or 'game' for API games."
2863
+ );
2864
+ }
2865
+ const currency = String(payload.currency ?? "").trim().toUpperCase();
2866
+ if (!currency) {
2867
+ throw new SiglumeClientError(
2868
+ "AppManifest.currency is required. Choose 'USD' for USDC settlement or 'JPY' for JPYC settlement."
2869
+ );
2870
+ }
2871
+ if (currency !== "USD" && currency !== "JPY") {
2872
+ throw new SiglumeClientError(`AppManifest.currency must be 'USD' or 'JPY'. Got ${String(payload.currency)}.`);
2873
+ }
2874
+ payload.currency = currency;
2858
2875
  if (payload.manifest && typeof payload.manifest === "object") {
2859
2876
  delete payload.manifest.version;
2860
2877
  }
@@ -5117,6 +5134,7 @@ __export(src_exports, {
5117
5134
  ExecutionKind: () => ExecutionKind,
5118
5135
  InMemoryWebhookDedupe: () => InMemoryWebhookDedupe,
5119
5136
  LLMProvider: () => LLMProvider,
5137
+ ListingCurrency: () => ListingCurrency,
5120
5138
  MeterClient: () => MeterClient,
5121
5139
  OpenAIProvider: () => OpenAIProvider,
5122
5140
  PermissionClass: () => PermissionClass,
@@ -5139,6 +5157,7 @@ __export(src_exports, {
5139
5157
  SiglumeWebhookPayloadError: () => SiglumeWebhookPayloadError,
5140
5158
  SiglumeWebhookReplayError: () => SiglumeWebhookReplayError,
5141
5159
  SiglumeWebhookSignatureError: () => SiglumeWebhookSignatureError,
5160
+ StoreVertical: () => StoreVertical,
5142
5161
  StubProvider: () => StubProvider,
5143
5162
  TOOL_MANUAL_DRAFT_PROMPT: () => TOOL_MANUAL_DRAFT_PROMPT,
5144
5163
  ToolManualPermissionClass: () => ToolManualPermissionClass,
@@ -6468,6 +6487,14 @@ var AppCategory = {
6468
6487
  MONITORING: "monitoring",
6469
6488
  OTHER: "other"
6470
6489
  };
6490
+ var StoreVertical = {
6491
+ API: "api",
6492
+ GAME: "game"
6493
+ };
6494
+ var ListingCurrency = {
6495
+ USD: "USD",
6496
+ JPY: "JPY"
6497
+ };
6471
6498
  var ToolManualPermissionClass = {
6472
6499
  READ_ONLY: "read_only",
6473
6500
  ACTION: "action",
@@ -8177,7 +8204,7 @@ Follow these rules on every response:
8177
8204
  6. \`summary_for_model\` should explain the tool's capability in one short factual paragraph.
8178
8205
  7. \`usage_hints\`, \`result_hints\`, and \`error_hints\` should help an agent decide how to invoke and explain the tool.
8179
8206
  8. For \`action\` and \`payment\`, include owner-approval framing, idempotency, and a governing \`jurisdiction\`.
8180
- 9. For \`payment\`, \`currency\` must be \`USD\` and \`settlement_mode\` must be one of the documented Siglume values.
8207
+ 9. For \`payment\`, \`currency\` must match the tool's payment payload and \`settlement_mode\` must be one of the documented Siglume values.
8181
8208
  10. When filling gaps, keep non-target fields unchanged and only improve the requested fields.
8182
8209
  `;
8183
8210
  var LLMProvider = class {