@flipstream/sdk 0.10.1 → 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.
- package/CHANGELOG.md +75 -0
- package/README.md +98 -348
- package/dist/api/account.d.ts +50 -0
- package/dist/api/account.js +102 -0
- package/dist/api/account.js.map +1 -0
- package/dist/api/backend.d.ts +18 -0
- package/dist/api/backend.js +35 -4
- package/dist/api/backend.js.map +1 -1
- package/dist/api/created.d.ts +1 -1
- package/dist/api/created.js +3 -2
- package/dist/api/created.js.map +1 -1
- package/dist/api/credentials.js +4 -4
- package/dist/api/credentials.js.map +1 -1
- package/dist/api/datasets.d.ts +94 -14
- package/dist/api/datasets.js +210 -59
- package/dist/api/datasets.js.map +1 -1
- package/dist/api/index.d.ts +4 -3
- package/dist/api/log.d.ts +45 -24
- package/dist/api/log.js +113 -40
- package/dist/api/log.js.map +1 -1
- package/dist/api/me.d.ts +2 -0
- package/dist/api/me.js +9 -5
- package/dist/api/me.js.map +1 -1
- package/dist/api/members.d.ts +69 -7
- package/dist/api/members.js +110 -32
- package/dist/api/members.js.map +1 -1
- package/dist/api/time.js +4 -3
- package/dist/api/time.js.map +1 -1
- package/dist/api/wallet.d.ts +8 -5
- package/dist/api/wallet.js +36 -24
- package/dist/api/wallet.js.map +1 -1
- package/dist/api/workspaces.d.ts +42 -7
- package/dist/api/workspaces.js +80 -20
- package/dist/api/workspaces.js.map +1 -1
- package/dist/auth/discovery.d.ts +19 -6
- package/dist/auth/discovery.js +25 -4
- package/dist/auth/discovery.js.map +1 -1
- package/dist/auth/signIn.d.ts +18 -14
- package/dist/auth/signIn.js +29 -22
- package/dist/auth/signIn.js.map +1 -1
- package/dist/core/call.d.ts +4 -1
- package/dist/core/call.js +26 -6
- package/dist/core/call.js.map +1 -1
- package/dist/core/deadline.d.ts +30 -0
- package/dist/core/deadline.js +51 -0
- package/dist/core/deadline.js.map +1 -0
- package/dist/core/invalid.d.ts +7 -0
- package/dist/core/invalid.js +22 -0
- package/dist/core/invalid.js.map +1 -0
- package/dist/core/names.d.ts +31 -3
- package/dist/core/names.js +26 -6
- package/dist/core/names.js.map +1 -1
- package/dist/core/notFound.d.ts +8 -0
- package/dist/core/notFound.js +8 -0
- package/dist/core/notFound.js.map +1 -0
- package/dist/core/result.d.ts +17 -12
- package/dist/core/result.js +5 -5
- package/dist/core/result.js.map +1 -1
- package/dist/core/retry.d.ts +5 -2
- package/dist/core/retry.js +6 -3
- package/dist/core/retry.js.map +1 -1
- package/dist/core/scope.d.ts +20 -0
- package/dist/core/scope.js +54 -0
- package/dist/core/scope.js.map +1 -0
- package/dist/flipstream.d.ts +151 -70
- package/dist/flipstream.js +67 -45
- package/dist/flipstream.js.map +1 -1
- package/dist/node/clientSecret.js +5 -5
- package/dist/node/clientSecret.js.map +1 -1
- package/dist/node/headless.d.ts +14 -6
- package/dist/node/headless.js +8 -6
- package/dist/node/headless.js.map +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/keychainChild.js +27 -10
- package/dist/node/keychainChild.js.map +1 -1
- package/dist/node/keychainError.d.ts +3 -3
- package/dist/node/keychainStore.d.ts +16 -12
- package/dist/node/keychainStore.js +50 -28
- package/dist/node/keychainStore.js.map +1 -1
- package/dist/node/loopback.d.ts +8 -1
- package/dist/node/loopback.js +19 -2
- package/dist/node/loopback.js.map +1 -1
- package/dist/node/session.d.ts +17 -9
- package/dist/node/session.js +55 -44
- package/dist/node/session.js.map +1 -1
- package/dist/node/store.d.ts +35 -2
- package/dist/node/store.js +56 -12
- package/dist/node/store.js.map +1 -1
- package/dist/version.gen.js +1 -1
- package/docs/admin.md +503 -0
- package/docs/node-sign-in.md +60 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
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
|
+
|
|
51
|
+
## [0.11.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.10.1...typescript-v0.11.0) (2026-11-03)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* **typescript:** a dataset says which account it reads, as the console labels it ([#323](https://github.com/flipstream-io/sdk/issues/323)) ([bd1f98b](https://github.com/flipstream-io/sdk/commit/bd1f98bc51347144b3a874768733bdd336ec3797))
|
|
57
|
+
* **typescript:** a member says when their account was made and who made it ([#326](https://github.com/flipstream-io/sdk/issues/326)) ([c70d726](https://github.com/flipstream-io/sdk/commit/c70d72688154b9d795306ebf7309c8db126934bb))
|
|
58
|
+
* **typescript:** a workspace says which services are on in it, by the console's own rule ([#320](https://github.com/flipstream-io/sdk/issues/320)) ([1db3564](https://github.com/flipstream-io/sdk/commit/1db3564011665f56f41c116248fc9e6ce57ad019))
|
|
59
|
+
* **typescript:** log.list({ member_id }) reads one member's entries across your organisation's workspaces, held to them, your organisation and the workspaces you open ([#322](https://github.com/flipstream-io/sdk/issues/322)) ([7282c8b](https://github.com/flipstream-io/sdk/commit/7282c8b4986e0f34ec3dbbe6a41b5dd7de98d773))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* **typescript:** a closed terminal mid-refresh no longer loses the rotation: the keychain helper ignores SIGHUP as it does a Ctrl-C ([#329](https://github.com/flipstream-io/sdk/issues/329)) ([fc680d1](https://github.com/flipstream-io/sdk/commit/fc680d18cbfa61baf7a493e4862a1edcb519fd23))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Code Refactoring
|
|
68
|
+
|
|
69
|
+
* **typescript:** one staff-role list for the SDK and its live scripts, which also stop on a role the SDK has never seen ([#328](https://github.com/flipstream-io/sdk/issues/328)) ([54c425f](https://github.com/flipstream-io/sdk/commit/54c425f570d9053a72744d8d7fa734abcd0642aa))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Tests
|
|
73
|
+
|
|
74
|
+
* **typescript:** record-admin.mjs asks /users with members.list()'s people-only filter, from the SDK's own request, and the settings rule matches what the recorder writes ([#324](https://github.com/flipstream-io/sdk/issues/324)) ([c2ceee2](https://github.com/flipstream-io/sdk/commit/c2ceee290d44edf0796ff9c1951efc935316a99f))
|
|
75
|
+
* **typescript:** the fake keyring logs each zeroing check under the item it checked, so the zeroing test holds in any order ([#330](https://github.com/flipstream-io/sdk/issues/330)) ([a185dae](https://github.com/flipstream-io/sdk/commit/a185dae67f9c2a8f0383d5edcf2dd2652fa86fb6))
|
|
76
|
+
* **typescript:** the keychain budget pin records every step's budget, and test B's cleanup can't hide its failure ([#319](https://github.com/flipstream-io/sdk/issues/319)) ([8761d29](https://github.com/flipstream-io/sdk/commit/8761d29a33f0835e03bd6dd1ae45ba342fd4767e))
|
|
77
|
+
|
|
3
78
|
## [0.10.1](https://github.com/flipstream-io/sdk/compare/typescript-v0.10.0...typescript-v0.10.1) (2026-11-03)
|
|
4
79
|
|
|
5
80
|
|