@flipstream/sdk 0.11.0 → 0.12.0

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +97 -412
  3. package/dist/api/backend.d.ts +10 -0
  4. package/dist/api/backend.js +24 -4
  5. package/dist/api/backend.js.map +1 -1
  6. package/dist/api/credentials.js +4 -4
  7. package/dist/api/credentials.js.map +1 -1
  8. package/dist/api/datasets.d.ts +82 -14
  9. package/dist/api/datasets.js +193 -57
  10. package/dist/api/datasets.js.map +1 -1
  11. package/dist/api/index.d.ts +1 -1
  12. package/dist/api/log.d.ts +25 -20
  13. package/dist/api/log.js +63 -48
  14. package/dist/api/log.js.map +1 -1
  15. package/dist/api/me.js +7 -4
  16. package/dist/api/me.js.map +1 -1
  17. package/dist/api/members.d.ts +34 -1
  18. package/dist/api/members.js +67 -27
  19. package/dist/api/members.js.map +1 -1
  20. package/dist/api/wallet.d.ts +8 -5
  21. package/dist/api/wallet.js +36 -24
  22. package/dist/api/wallet.js.map +1 -1
  23. package/dist/api/workspaces.d.ts +28 -7
  24. package/dist/api/workspaces.js +46 -16
  25. package/dist/api/workspaces.js.map +1 -1
  26. package/dist/auth/discovery.d.ts +19 -6
  27. package/dist/auth/discovery.js +25 -4
  28. package/dist/auth/discovery.js.map +1 -1
  29. package/dist/auth/signIn.d.ts +18 -14
  30. package/dist/auth/signIn.js +29 -22
  31. package/dist/auth/signIn.js.map +1 -1
  32. package/dist/core/call.d.ts +4 -1
  33. package/dist/core/call.js +26 -6
  34. package/dist/core/call.js.map +1 -1
  35. package/dist/core/deadline.d.ts +30 -0
  36. package/dist/core/deadline.js +51 -0
  37. package/dist/core/deadline.js.map +1 -0
  38. package/dist/core/invalid.d.ts +7 -0
  39. package/dist/core/invalid.js +22 -0
  40. package/dist/core/invalid.js.map +1 -0
  41. package/dist/core/names.d.ts +13 -2
  42. package/dist/core/names.js +11 -2
  43. package/dist/core/names.js.map +1 -1
  44. package/dist/core/notFound.d.ts +8 -0
  45. package/dist/core/notFound.js +8 -0
  46. package/dist/core/notFound.js.map +1 -0
  47. package/dist/core/result.d.ts +17 -12
  48. package/dist/core/result.js +5 -5
  49. package/dist/core/result.js.map +1 -1
  50. package/dist/core/retry.d.ts +5 -2
  51. package/dist/core/retry.js +6 -3
  52. package/dist/core/retry.js.map +1 -1
  53. package/dist/core/scope.d.ts +20 -0
  54. package/dist/core/scope.js +54 -0
  55. package/dist/core/scope.js.map +1 -0
  56. package/dist/flipstream.d.ts +136 -69
  57. package/dist/flipstream.js +67 -45
  58. package/dist/flipstream.js.map +1 -1
  59. package/dist/node/clientSecret.js +5 -5
  60. package/dist/node/clientSecret.js.map +1 -1
  61. package/dist/node/headless.d.ts +14 -6
  62. package/dist/node/headless.js +8 -6
  63. package/dist/node/headless.js.map +1 -1
  64. package/dist/node/index.d.ts +1 -1
  65. package/dist/node/index.js +1 -1
  66. package/dist/node/index.js.map +1 -1
  67. package/dist/node/keychainChild.js +26 -14
  68. package/dist/node/keychainChild.js.map +1 -1
  69. package/dist/node/keychainError.d.ts +3 -3
  70. package/dist/node/keychainStore.d.ts +10 -7
  71. package/dist/node/keychainStore.js +44 -23
  72. package/dist/node/keychainStore.js.map +1 -1
  73. package/dist/node/loopback.d.ts +8 -1
  74. package/dist/node/loopback.js +19 -2
  75. package/dist/node/loopback.js.map +1 -1
  76. package/dist/node/session.d.ts +17 -9
  77. package/dist/node/session.js +55 -44
  78. package/dist/node/session.js.map +1 -1
  79. package/dist/node/store.d.ts +35 -2
  80. package/dist/node/store.js +56 -12
  81. package/dist/node/store.js.map +1 -1
  82. package/dist/version.gen.js +1 -1
  83. package/docs/admin.md +503 -0
  84. package/docs/node-sign-in.md +60 -38
  85. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.12.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.11.0...typescript-v0.12.0) (2026-11-17)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **typescript:** renamed with no alias (D569): traceId to trace_id on ApiResult and ApiFailure; requestId to request_id on Said; retryAfterMs to retry_after_ms on Answered; accessToken, refreshToken and expiresAt to access_token, refresh_token and expires_at on Tokens, SessionTokens and TokenUpdate; clientId, redirectUri, tokenEndpoint and issuerOnRedirect to client_id, redirect_uri, token_endpoint and authorization_response_iss_parameter_supported on PendingSignIn; authorizationEndpoint, tokenEndpoint, revocationEndpoint and issuerOnRedirect to authorization_endpoint, token_endpoint, revocation_endpoint and authorization_response_iss_parameter_supported on AuthServer; callbackUrl to callback_url on PastedRedirect; timeoutMs to timeout_ms on KeychainFailure. Settings stay camelCase. keychainStore and fileStore still read the camelCase tokens that earlier releases saved, and save the new shape at the next save; an app's own TokenStore converts its records with fromEarlierTokenNames in the same change that renames its onTokens fields, since a refresh refuses a record in camelCase as store_failed at the read. The new shape is one-way: every process that shares a store upgrades together, and rolling back means signing in again, or clear(). A pending sign-in started before the upgrade is refused, and the person signs in again.
9
+ * **typescript:** flipstream.wallet.transactions() answers ApiResult<Ledger | null>: null when your organisation has no wallet, where it answered an empty Ledger, even when the ledger read fails. A wallet with no rows is still { items: [] }, and no wallet with ledger rows, or with a ledger answer the SDK can't read, is invalid.
10
+
11
+ ### Features
12
+
13
+ * **typescript:** a dataset carries refresh_status, pulse-admin's record of its last custom-dimension rebuild request, in its own values, or null when unknown ([#348](https://github.com/flipstream-io/sdk/issues/348)) ([3666af6](https://github.com/flipstream-io/sdk/commit/3666af651c7a87d7ba2d8a3a61b01847ec04dc44))
14
+ * **typescript:** a member says every role of ours they hold, highest first, beside their highest, and counts the rest without naming them ([#335](https://github.com/flipstream-io/sdk/issues/335)) ([5c31bc9](https://github.com/flipstream-io/sdk/commit/5c31bc9d9b8b16cdf1f967652ade9916d76ae90c))
15
+ * **typescript:** datasets.count({ workspace_id }) answers pulse-admin's own count of a workspace's datasets, from one page read as datasets.list reads one ([#366](https://github.com/flipstream-io/sdk/issues/366)) ([7cc5aa6](https://github.com/flipstream-io/sdk/commit/7cc5aa6ade1a94acc8a2ffae742003347c3ec83f))
16
+ * **typescript:** datasets.list({ organization: true }) lists your organisation's datasets in every workspace you open ([#346](https://github.com/flipstream-io/sdk/issues/346)) ([9dd172b](https://github.com/flipstream-io/sdk/commit/9dd172bf6b839417fd18a7988ff68b06d375849c))
17
+ * **typescript:** every field in data the SDK sends or returns is snake_case; its own settings stay camelCase ([#355](https://github.com/flipstream-io/sdk/issues/355)) ([05e25f9](https://github.com/flipstream-io/sdk/commit/05e25f968318d452a5098effa84ebc108fc4a4be))
18
+ * **typescript:** wallet.transactions() answers null when your organisation has no wallet, as wallet.balance() does ([#375](https://github.com/flipstream-io/sdk/issues/375)) ([9e61a14](https://github.com/flipstream-io/sdk/commit/9e61a1476621e9dc9c40675ce214bdcb6d7e0259))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **typescript:** a clock change no longer fails a queued keychain step early: its deadline runs on the monotonic clock, as its timer does ([#331](https://github.com/flipstream-io/sdk/issues/331)) ([38d705e](https://github.com/flipstream-io/sdk/commit/38d705ee68d9c866ed18d2791e96d6900bcb66f2))
24
+ * **typescript:** a clock step no longer fails a call, a session's limit or a read early, or stretches a call's retries: every deadline runs on the monotonic clock ([#337](https://github.com/flipstream-io/sdk/issues/337)) ([cb8d434](https://github.com/flipstream-io/sdk/commit/cb8d434081b69b36bb754b1273ce2cc86f548742))
25
+ * **typescript:** call() never sends a request it has no time for: a spent or fractional deadline answers timeout without the transport, and a deadlineMs that can't be a deadline is a TypeError ([#340](https://github.com/flipstream-io/sdk/issues/340)) ([4226997](https://github.com/flipstream-io/sdk/commit/4226997210b29b9776b52cbdba59faba06a1ac4d))
26
+ * **typescript:** every call under one workspace holds it to the workspaces you open: one you don't open is not_found, exactly as one nobody has, with nothing written ([#373](https://github.com/flipstream-io/sdk/issues/373)) ([60c5f34](https://github.com/flipstream-io/sdk/commit/60c5f34a28dc15f988f38e51363071772c3797a1))
27
+ * **typescript:** every id comparison uses sameUuid, organisation and user alike, and a lint rule refuses === and !== on an id ([#365](https://github.com/flipstream-io/sdk/issues/365)) ([e09f00d](https://github.com/flipstream-io/sdk/commit/e09f00d7f6ea9dea08ed968a7fb8613a73ff3ec4))
28
+ * **typescript:** every invalid found by checking an answer after its read carries its route's success status, through one shared helper ([#371](https://github.com/flipstream-io/sdk/issues/371)) ([7c79e80](https://github.com/flipstream-io/sdk/commit/7c79e803bff65691d5004425c6e19023d5b2f928))
29
+ * **typescript:** every invalid members.get() answers after a 200 keeps that status, and whose the record is comes before its fields ([#367](https://github.com/flipstream-io/sdk/issues/367)) ([e63bc1e](https://github.com/flipstream-io/sdk/commit/e63bc1ebb6b802157aa96c552b00501709fa3106))
30
+ * **typescript:** every SDK call ends with no read still waited on, so a rejected read never leaves its partner running and a hanging one never holds the call ([#351](https://github.com/flipstream-io/sdk/issues/351)) ([4761b85](https://github.com/flipstream-io/sdk/commit/4761b85fc2682b1e3ad1d0988fd06de3d1586f17))
31
+ * **typescript:** signInWithLoopback's timeoutMs is held to a call's deadlineMs rule, so NaN or Infinity can't end a sign-in at once ([#345](https://github.com/flipstream-io/sdk/issues/345)) ([97b6741](https://github.com/flipstream-io/sdk/commit/97b6741103f8d8d47bc0fe188ed242c6759eabf6))
32
+ * **typescript:** the keychain helper also ignores SIGTERM, bounded by its heartbeat, so a group SIGTERM never ends a save in flight ([#354](https://github.com/flipstream-io/sdk/issues/354)) ([fbeb51b](https://github.com/flipstream-io/sdk/commit/fbeb51bbce60858eab9401693bb0bb3aa0a6836a))
33
+
34
+
35
+ ### Documentation
36
+
37
+ * **typescript:** a test that fakes only Date must also move performance.now(), since deadlines run on it ([#337](https://github.com/flipstream-io/sdk/issues/337)) ([cb8d434](https://github.com/flipstream-io/sdk/commit/cb8d434081b69b36bb754b1273ce2cc86f548742))
38
+ * **typescript:** the admin reference moves to docs/admin.md, shipped in the package, so the README has room again ([#332](https://github.com/flipstream-io/sdk/issues/332)) ([957d0d3](https://github.com/flipstream-io/sdk/commit/957d0d35b056e3525c876ecd0327215ef2e2159e))
39
+
40
+
41
+ ### Tests
42
+
43
+ * **typescript:** readme:check checks that each quoted section reference names a heading where it says ([#338](https://github.com/flipstream-io/sdk/issues/338)) ([1540199](https://github.com/flipstream-io/sdk/commit/15401994fd826a2e03dbb792770ddec9d8e83f1e))
44
+
45
+
46
+ ### CI
47
+
48
+ * CI holds every npm version both lockfiles lock to D481's 30 days, but a named list of exact versions ([#357](https://github.com/flipstream-io/sdk/issues/357)) ([005726f](https://github.com/flipstream-io/sdk/commit/005726fb02279bc6fab60a4a83fda6065d1ad44e))
49
+ * no lifecycle script runs in CI, and a locked package with an install script must be listed ([#362](https://github.com/flipstream-io/sdk/issues/362)) ([7f73acf](https://github.com/flipstream-io/sdk/commit/7f73acf10678b21770b9f34a51a49822a8e096ff))
50
+
3
51
  ## [0.11.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.10.1...typescript-v0.11.0) (2026-11-03)
4
52
 
5
53