@siglume/api-sdk 1.2.2 → 2.0.1

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 CHANGED
@@ -27,7 +27,7 @@ Buyer-side discovery and export helpers are also included:
27
27
  import { SiglumeBuyerClient, to_anthropic_tool } from "@siglume/api-sdk";
28
28
 
29
29
  const buyer = new SiglumeBuyerClient({
30
- api_key: process.env.SIGLUME_API_KEY ?? "sig_mock_key",
30
+ api_key: process.env.SIGLUME_OWNER_SESSION_BEARER!,
31
31
  default_agent_id: process.env.SIGLUME_AGENT_ID,
32
32
  });
33
33
 
@@ -73,7 +73,7 @@ siglume register . --company company_123
73
73
 
74
74
  `siglume register` reads `tool_manual.json`, the local Git-ignored
75
75
  `runtime_validation.json`. Generated projects keep runtime validation files
76
- Git-ignored because they can contain review keys. SDK / HTTP automation can pass
76
+ Git-ignored because they hold the runtime auth header shared secret. SDK / HTTP automation can pass
77
77
  `source_url`, `source_context`, and `input_form_spec` directly to
78
78
  `auto-register`. The CLI runs preflight by default, then calls the same
79
79
  `auto-register` route used by SDK / automation clients and confirms publication
@@ -88,6 +88,14 @@ public-order / morals compliance.
88
88
  For the canonical pricing reference, see
89
89
  [`../docs/pricing-and-billing.md`](../docs/pricing-and-billing.md).
90
90
 
91
+ Developer-funded reward or incentive payouts are not normal SDK/API-key calls.
92
+ Do not call MCP Gateway with `SIGLUME_API_KEY`, `cli_...`, `X-API-Key`, or
93
+ `X-Siglume-API-Key`. Reward payout execution uses
94
+ `https://mcp.siglume.com/` with `Authorization: Bearer mcpsk_...` and
95
+ `tools/call market_create_reward_payout`; SDK/API keys remain for
96
+ registration, validation, and listing automation. See
97
+ [`../docs/web3-settlement.md#generic-reward-payouts`](../docs/web3-settlement.md#generic-reward-payouts).
98
+
91
99
  Use `price_model: PriceModel.USAGE_BASED` or `PriceModel.PER_ACTION` when the
92
100
  API must execute before the final operation is known. These listings are free to
93
101
  invoke up front. Your adapter returns the executed operation in
@@ -145,6 +153,15 @@ then calls the ACTION endpoint with the same token as `commit_token`. If payment
145
153
  fails, the ACTION call is never made. Use the default `"post"` timing only for
146
154
  read-only or reversible usage.
147
155
 
156
+ Responsibility boundary: Siglume owns payment, authorization, platform
157
+ idempotency, retry state, usage rows, and reconciliation state. Your API owns
158
+ the provider-specific action and the proof that it committed. The platform does
159
+ not infer whether an X post, email, CRM write, booking, or other external action
160
+ happened. Return committed evidence only after the side effect committed;
161
+ draft-only, preview, ambiguous, or `status="ready"` live-action results are not
162
+ delivered results. See
163
+ [`../docs/platform-api-boundary.md`](../docs/platform-api-boundary.md).
164
+
148
165
  After live or sandbox execution, inspect receipts with `siglume dev tail`,
149
166
  `siglume dev tail --listing-id <listing_id>`, or the SDK receipt helpers. The
150
167
  publisher listing view is privacy-redacted. See