@stable_sea/sdk 0.1.1 → 0.1.2

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
@@ -26,16 +26,14 @@ const client = createStableSeaClient({
26
26
  });
27
27
  ```
28
28
 
29
- Node.js 20 or later is supported. Use `https://api.stablesea.com` as `baseUrl` in
30
- production. Ask your Stable Sea contact to enable API access, then create a
31
- named credential in the business application. Use `sk_test_…` only with a
32
- non-production host and `sk_live_…` only with the production host. The
33
- credential identifies one business and carries fixed scopes, so do not send a
34
- `Stable-Sea-Account` header.
29
+ Node.js 20 or later is supported. Use `https://api.stablesea.com` as `baseUrl`.
30
+ Ask your Stable Sea contact to enable API access, then create a named `sk_live_…`
31
+ credential in Stable Sea Terminal. The credential identifies one business and
32
+ carries fixed scopes, so do not send a `Stable-Sea-Account` header.
35
33
 
36
34
  | SDK | API contract | Credentials |
37
35
  |---|---|---|
38
- | `0.1.x` | `2026-07-23` | `sk_test_…` on non-production; `sk_live_…` on production |
36
+ | `0.1.x` | `2026-07-23` | `sk_live_…` on production |
39
37
 
40
38
  ## Idempotent writes
41
39
 
@@ -215,7 +215,7 @@ export interface paths {
215
215
  *
216
216
  * An order can fail at execution for reasons a placement cannot foresee. An express order in particular draws on a shared reserve whose liquidity is not promised by the quote, and a quoted price that has drifted from the NAV the trade executes at is refused rather than filled. A failed order names the reason; an express refusal can be re-placed as standard against the same unexpired quote.
217
217
  *
218
- * Orders execute on the deployment that accepted them, so a credential is refused with environment_not_served when its environment is not the one this host runs orders for — use the host that matches the credential. The refusal is returned before the order exists, so no idempotency key is consumed and nothing is left pending.
218
+ * Orders execute on the production API. Use a production credential created in Stable Sea Terminal with an account from the same business. A credential that this host does not serve is refused with environment_not_served. The refusal is returned before the order exists, so no idempotency key is consumed and nothing is left pending.
219
219
  */
220
220
  post: operations["orders.create"];
221
221
  delete?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stable_sea/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -26,6 +26,7 @@
26
26
  "prepack": "npm run build",
27
27
  "test": "npm run build && npm run test:unit && npm run test:consumer",
28
28
  "test:consumer": "bash scripts/test-consumer.sh",
29
+ "prepare:webhook-acceptance": "bash scripts/prepare-webhook-acceptance.sh",
29
30
  "test:unit": "vitest run --dir test",
30
31
  "typecheck": "npm run build && tsc -p tsconfig.json",
31
32
  "validate": "npm test && tsc -p tsconfig.json"