@flipstream/sdk 0.13.0 → 0.15.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 +120 -0
- package/README.md +143 -21
- package/dist/api/backend.d.ts +7 -0
- package/dist/api/backend.js +7 -0
- package/dist/api/backend.js.map +1 -1
- package/dist/api/credentials.js +4 -4
- package/dist/api/credentials.js.map +1 -1
- package/dist/api/datasets.js +30 -50
- package/dist/api/datasets.js.map +1 -1
- package/dist/api/handoff.d.ts +1 -1
- package/dist/api/handoff.js +7 -0
- package/dist/api/handoff.js.map +1 -1
- package/dist/api/log.d.ts +4 -4
- package/dist/api/log.js +23 -42
- package/dist/api/log.js.map +1 -1
- package/dist/api/me.d.ts +5 -3
- package/dist/api/me.js +3 -3
- package/dist/api/me.js.map +1 -1
- package/dist/api/members.d.ts +40 -17
- package/dist/api/members.js +66 -29
- package/dist/api/members.js.map +1 -1
- package/dist/api/ownRecord.d.ts +46 -0
- package/dist/api/ownRecord.js +57 -0
- package/dist/api/ownRecord.js.map +1 -0
- package/dist/api/refusal.d.ts +14 -0
- package/dist/api/refusal.js +23 -0
- package/dist/api/refusal.js.map +1 -0
- package/dist/api/wallet.d.ts +2 -1
- package/dist/api/wallet.js +18 -24
- package/dist/api/wallet.js.map +1 -1
- package/dist/api/workspaces.d.ts +7 -2
- package/dist/api/workspaces.js +14 -8
- package/dist/api/workspaces.js.map +1 -1
- package/dist/auth/discovery.js +4 -5
- package/dist/auth/discovery.js.map +1 -1
- package/dist/auth/transport.d.ts +6 -2
- package/dist/auth/transport.js +5 -3
- package/dist/auth/transport.js.map +1 -1
- package/dist/core/call.d.ts +9 -4
- package/dist/core/call.js +12 -8
- package/dist/core/call.js.map +1 -1
- package/dist/core/fetch.d.ts +20 -1
- package/dist/core/fetch.js +50 -3
- package/dist/core/fetch.js.map +1 -1
- package/dist/core/hosts.d.ts +11 -0
- package/dist/core/hosts.js +13 -0
- package/dist/core/hosts.js.map +1 -0
- package/dist/core/identify.d.ts +12 -2
- package/dist/core/identify.js +31 -19
- package/dist/core/identify.js.map +1 -1
- package/dist/core/inPlaceOf.d.ts +6 -0
- package/dist/core/inPlaceOf.js +17 -0
- package/dist/core/inPlaceOf.js.map +1 -0
- package/dist/core/invalid.d.ts +32 -9
- package/dist/core/invalid.js +36 -23
- package/dist/core/invalid.js.map +1 -1
- package/dist/core/notFound.d.ts +2 -2
- package/dist/core/notFound.js.map +1 -1
- package/dist/core/read.d.ts +4 -10
- package/dist/core/read.js +1 -11
- package/dist/core/read.js.map +1 -1
- package/dist/core/result.d.ts +14 -10
- package/dist/core/result.js +1 -0
- package/dist/core/result.js.map +1 -1
- package/dist/core/shared.d.ts +15 -9
- package/dist/core/shared.js +8 -6
- package/dist/core/shared.js.map +1 -1
- package/dist/core/signal.d.ts +7 -0
- package/dist/core/signal.js +9 -0
- package/dist/core/signal.js.map +1 -1
- package/dist/first-party/asPerson.d.ts +13 -0
- package/dist/first-party/asPerson.js +144 -0
- package/dist/first-party/asPerson.js.map +1 -0
- package/dist/first-party/attempts.d.ts +71 -0
- package/dist/first-party/attempts.js +132 -0
- package/dist/first-party/attempts.js.map +1 -0
- package/dist/first-party/authProxyMark.d.ts +7 -0
- package/dist/first-party/authProxyMark.js +8 -0
- package/dist/first-party/authProxyMark.js.map +1 -0
- package/dist/first-party/browser.d.ts +55 -0
- package/dist/first-party/browser.js +137 -0
- package/dist/first-party/browser.js.map +1 -0
- package/dist/first-party/browserSession.d.ts +95 -0
- package/dist/first-party/browserSession.js +242 -0
- package/dist/first-party/browserSession.js.map +1 -0
- package/dist/first-party/calls/consent.d.ts +77 -0
- package/dist/first-party/calls/consent.js +174 -0
- package/dist/first-party/calls/consent.js.map +1 -0
- package/dist/first-party/calls/device.d.ts +75 -0
- package/dist/first-party/calls/device.js +133 -0
- package/dist/first-party/calls/device.js.map +1 -0
- package/dist/first-party/calls/invitation.d.ts +198 -0
- package/dist/first-party/calls/invitation.js +240 -0
- package/dist/first-party/calls/invitation.js.map +1 -0
- package/dist/first-party/calls/logIn.d.ts +41 -0
- package/dist/first-party/calls/logIn.js +48 -0
- package/dist/first-party/calls/logIn.js.map +1 -0
- package/dist/first-party/calls/reset.d.ts +58 -0
- package/dist/first-party/calls/reset.js +163 -0
- package/dist/first-party/calls/reset.js.map +1 -0
- package/dist/first-party/calls/signUp.d.ts +21 -0
- package/dist/first-party/calls/signUp.js +72 -0
- package/dist/first-party/calls/signUp.js.map +1 -0
- package/dist/first-party/calls/twoStepSetup.d.ts +55 -0
- package/dist/first-party/calls/twoStepSetup.js +168 -0
- package/dist/first-party/calls/twoStepSetup.js.map +1 -0
- package/dist/first-party/claims.d.ts +88 -0
- package/dist/first-party/claims.js +181 -0
- package/dist/first-party/claims.js.map +1 -0
- package/dist/first-party/enrollment.d.ts +10 -0
- package/dist/first-party/enrollment.js +44 -0
- package/dist/first-party/enrollment.js.map +1 -0
- package/dist/first-party/entry.d.ts +549 -0
- package/dist/first-party/entry.js +580 -0
- package/dist/first-party/entry.js.map +1 -0
- package/dist/first-party/hooks.d.ts +66 -0
- package/dist/first-party/hooks.js +19 -0
- package/dist/first-party/hooks.js.map +1 -0
- package/dist/first-party/http.d.ts +191 -0
- package/dist/first-party/http.js +364 -0
- package/dist/first-party/http.js.map +1 -0
- package/dist/first-party/index.d.ts +14 -0
- package/dist/first-party/index.js +3 -0
- package/dist/first-party/index.js.map +1 -0
- package/dist/first-party/landed.d.ts +32 -0
- package/dist/first-party/landed.js +50 -0
- package/dist/first-party/landed.js.map +1 -0
- package/dist/first-party/landedProof.d.ts +12 -0
- package/dist/first-party/landedProof.js +20 -0
- package/dist/first-party/landedProof.js.map +1 -0
- package/dist/first-party/linkToken.d.ts +16 -0
- package/dist/first-party/linkToken.js +29 -0
- package/dist/first-party/linkToken.js.map +1 -0
- package/dist/first-party/links.d.ts +100 -0
- package/dist/first-party/links.js +84 -0
- package/dist/first-party/links.js.map +1 -0
- package/dist/first-party/locks.d.ts +36 -0
- package/dist/first-party/locks.js +64 -0
- package/dist/first-party/locks.js.map +1 -0
- package/dist/first-party/personTransport.d.ts +38 -0
- package/dist/first-party/personTransport.js +177 -0
- package/dist/first-party/personTransport.js.map +1 -0
- package/dist/first-party/proxy/app.d.ts +25 -0
- package/dist/first-party/proxy/app.js +94 -0
- package/dist/first-party/proxy/app.js.map +1 -0
- package/dist/first-party/proxy/bound.d.ts +5 -0
- package/dist/first-party/proxy/bound.js +13 -0
- package/dist/first-party/proxy/bound.js.map +1 -0
- package/dist/first-party/proxy/cases.d.ts +54 -0
- package/dist/first-party/proxy/cases.js +412 -0
- package/dist/first-party/proxy/cases.js.map +1 -0
- package/dist/first-party/proxy/decide.d.ts +29 -0
- package/dist/first-party/proxy/decide.js +140 -0
- package/dist/first-party/proxy/decide.js.map +1 -0
- package/dist/first-party/proxy/freeze.d.ts +2 -0
- package/dist/first-party/proxy/freeze.js +10 -0
- package/dist/first-party/proxy/freeze.js.map +1 -0
- package/dist/first-party/proxy/handler.d.ts +23 -0
- package/dist/first-party/proxy/handler.js +190 -0
- package/dist/first-party/proxy/handler.js.map +1 -0
- package/dist/first-party/proxy/headers.d.ts +8 -0
- package/dist/first-party/proxy/headers.js +20 -0
- package/dist/first-party/proxy/headers.js.map +1 -0
- package/dist/first-party/proxy/hop.d.ts +9 -0
- package/dist/first-party/proxy/hop.js +37 -0
- package/dist/first-party/proxy/hop.js.map +1 -0
- package/dist/first-party/proxy/host.d.ts +5 -0
- package/dist/first-party/proxy/host.js +11 -0
- package/dist/first-party/proxy/host.js.map +1 -0
- package/dist/first-party/proxy/index.d.ts +7 -0
- package/dist/first-party/proxy/index.js +6 -0
- package/dist/first-party/proxy/index.js.map +1 -0
- package/dist/first-party/proxy/pass-back.d.ts +21 -0
- package/dist/first-party/proxy/pass-back.js +51 -0
- package/dist/first-party/proxy/pass-back.js.map +1 -0
- package/dist/first-party/proxy/paths.d.ts +17 -0
- package/dist/first-party/proxy/paths.js +36 -0
- package/dist/first-party/proxy/paths.js.map +1 -0
- package/dist/first-party/proxy/shown.d.ts +5 -0
- package/dist/first-party/proxy/shown.js +16 -0
- package/dist/first-party/proxy/shown.js.map +1 -0
- package/dist/first-party/proxy/stand-in.d.ts +47 -0
- package/dist/first-party/proxy/stand-in.js +318 -0
- package/dist/first-party/proxy/stand-in.js.map +1 -0
- package/dist/first-party/report.d.ts +47 -0
- package/dist/first-party/report.js +38 -0
- package/dist/first-party/report.js.map +1 -0
- package/dist/first-party/result.d.ts +82 -0
- package/dist/first-party/result.js +40 -0
- package/dist/first-party/result.js.map +1 -0
- package/dist/first-party/session/cell.d.ts +177 -0
- package/dist/first-party/session/cell.js +89 -0
- package/dist/first-party/session/cell.js.map +1 -0
- package/dist/first-party/session/closed.d.ts +8 -0
- package/dist/first-party/session/closed.js +12 -0
- package/dist/first-party/session/closed.js.map +1 -0
- package/dist/first-party/session/index.d.ts +3 -0
- package/dist/first-party/session/index.js +3 -0
- package/dist/first-party/session/index.js.map +1 -0
- package/dist/first-party/session/logout.d.ts +82 -0
- package/dist/first-party/session/logout.js +328 -0
- package/dist/first-party/session/logout.js.map +1 -0
- package/dist/first-party/session/owed.d.ts +30 -0
- package/dist/first-party/session/owed.js +27 -0
- package/dist/first-party/session/owed.js.map +1 -0
- package/dist/first-party/session/refresh.d.ts +19 -0
- package/dist/first-party/session/refresh.js +229 -0
- package/dist/first-party/session/refresh.js.map +1 -0
- package/dist/first-party/session/results.d.ts +38 -0
- package/dist/first-party/session/results.js +74 -0
- package/dist/first-party/session/results.js.map +1 -0
- package/dist/first-party/session/session.d.ts +2 -0
- package/dist/first-party/session/session.js +379 -0
- package/dist/first-party/session/session.js.map +1 -0
- package/dist/first-party/session/shared.d.ts +34 -0
- package/dist/first-party/session/shared.js +104 -0
- package/dist/first-party/session/shared.js.map +1 -0
- package/dist/first-party/session/sharedSignal.d.ts +27 -0
- package/dist/first-party/session/sharedSignal.js +55 -0
- package/dist/first-party/session/sharedSignal.js.map +1 -0
- package/dist/first-party/session/signIn.d.ts +43 -0
- package/dist/first-party/session/signIn.js +294 -0
- package/dist/first-party/session/signIn.js.map +1 -0
- package/dist/first-party/session/signInThrough.d.ts +5 -0
- package/dist/first-party/session/signInThrough.js +95 -0
- package/dist/first-party/session/signInThrough.js.map +1 -0
- package/dist/first-party/session/sync.d.ts +17 -0
- package/dist/first-party/session/sync.js +143 -0
- package/dist/first-party/session/sync.js.map +1 -0
- package/dist/first-party/session/tokens.d.ts +18 -0
- package/dist/first-party/session/tokens.js +64 -0
- package/dist/first-party/session/tokens.js.map +1 -0
- package/dist/first-party/session/types.d.ts +270 -0
- package/dist/first-party/session/types.js +3 -0
- package/dist/first-party/session/types.js.map +1 -0
- package/dist/first-party/sessionWire.d.ts +31 -0
- package/dist/first-party/sessionWire.js +91 -0
- package/dist/first-party/sessionWire.js.map +1 -0
- package/dist/first-party/signInHooks.d.ts +57 -0
- package/dist/first-party/signInHooks.js +2 -0
- package/dist/first-party/signInHooks.js.map +1 -0
- package/dist/first-party/state.d.ts +51 -0
- package/dist/first-party/state.js +52 -0
- package/dist/first-party/state.js.map +1 -0
- package/dist/first-party/strip.d.ts +1 -0
- package/dist/first-party/strip.js +8 -0
- package/dist/first-party/strip.js.map +1 -0
- package/dist/first-party/twoStepLock.d.ts +26 -0
- package/dist/first-party/twoStepLock.js +58 -0
- package/dist/first-party/twoStepLock.js.map +1 -0
- package/dist/first-party/twoStepSession.d.ts +21 -0
- package/dist/first-party/twoStepSession.js +31 -0
- package/dist/first-party/twoStepSession.js.map +1 -0
- package/dist/first-party/wire.d.ts +63 -0
- package/dist/first-party/wire.js +5 -0
- package/dist/first-party/wire.js.map +1 -0
- package/dist/flipstream.d.ts +132 -36
- package/dist/flipstream.js +94 -47
- package/dist/flipstream.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/node/keychainChild.js +60 -25
- package/dist/node/keychainChild.js.map +1 -1
- package/dist/node/keychainError.d.ts +4 -1
- package/dist/node/keychainError.js.map +1 -1
- package/dist/node/keychainStore.js +42 -8
- package/dist/node/keychainStore.js.map +1 -1
- package/dist/node/session.js +9 -8
- package/dist/node/session.js.map +1 -1
- package/dist/query/query.d.ts +52 -8
- package/dist/query/query.js +133 -19
- package/dist/query/query.js.map +1 -1
- package/dist/version.gen.js +1 -1
- package/docs/admin.md +53 -4
- package/docs/first-party.md +278 -0
- package/docs/node-sign-in.md +8 -4
- package/package.json +34 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,125 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.15.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.14.0...typescript-v0.15.0) (2026-12-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **typescript:** not_sent when verifyTwoStep never sent the code ([#533](https://github.com/flipstream-io/sdk/issues/533))
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **typescript:** @flipstream/sdk/first-party keeps a person signed in in Flipstream's own apps, with typed results and no token in the page ([#475](https://github.com/flipstream-io/sdk/issues/475)) ([8b6bbae](https://github.com/flipstream-io/sdk/commit/8b6bbaedaafbfd0936e2030d64225889a379b742))
|
|
13
|
+
* **typescript:** a Flipstream app signs a person in with a password through @flipstream/sdk/first-party ([#491](https://github.com/flipstream-io/sdk/issues/491)) ([beff1ff](https://github.com/flipstream-io/sdk/commit/beff1ffeaa67bf6784ee55306643ce6648b65d76))
|
|
14
|
+
* **typescript:** a proxy that normalises the request target passes the lookalike rows when pulse-auth gets exactly a listed path ([#520](https://github.com/flipstream-io/sdk/issues/520)) ([106d934](https://github.com/flipstream-io/sdk/commit/106d934795104246a469776c9ad03bcbfea5d164))
|
|
15
|
+
* **typescript:** a second device press answers answered, and pulse-auth's unknown-code answer gives the code back ([#550](https://github.com/flipstream-io/sdk/issues/550)) ([8770280](https://github.com/flipstream-io/sdk/commit/877028021dad555cdc04d22f5c9a8a5dd6dc0750))
|
|
16
|
+
* **typescript:** an invitation opened, previewed and accepted from an account page ([#548](https://github.com/flipstream-io/sdk/issues/548)) ([ff8e2ba](https://github.com/flipstream-io/sdk/commit/ff8e2ba59621d11c2d62b70848a891761e5d4be3))
|
|
17
|
+
* **typescript:** device sign-in from an account page: look a code up open, approve or deny it as the person ([#536](https://github.com/flipstream-io/sdk/issues/536)) ([8e0cfe5](https://github.com/flipstream-io/sdk/commit/8e0cfe5165152ac0668ca7d92dc0bb98b46e6882))
|
|
18
|
+
* **typescript:** not_sent when verifyTwoStep never sent the code ([#533](https://github.com/flipstream-io/sdk/issues/533)) ([5ef9d03](https://github.com/flipstream-io/sdk/commit/5ef9d03eccada49911b67d84d2d44e7f57bf8fd3))
|
|
19
|
+
* **typescript:** requestSignUp mails a sign-up link from an account page, with the legal versions the person accepted ([#490](https://github.com/flipstream-io/sdk/issues/490)) ([34df8fe](https://github.com/flipstream-io/sdk/commit/34df8fe622fdad8ebd94ca0cb3707b5061991056))
|
|
20
|
+
* **typescript:** reset a password from an account page with requestPasswordReset, openedReset and setPassword ([#492](https://github.com/flipstream-io/sdk/issues/492)) ([d47e0ea](https://github.com/flipstream-io/sdk/commit/d47e0ea07a0d746f1cfc31b763abd8e372ff4587))
|
|
21
|
+
* **typescript:** review and answer an authorisation request ([#538](https://github.com/flipstream-io/sdk/issues/538)) ([763f847](https://github.com/flipstream-io/sdk/commit/763f847eda6f95af10d303c202ebe221e5610262))
|
|
22
|
+
* **typescript:** session.flipstream is the main SDK as the signed-in person, pinned when a call is made ([#495](https://github.com/flipstream-io/sdk/issues/495)) ([9fb7f3d](https://github.com/flipstream-io/sdk/commit/9fb7f3d142405c57a9d0d031d89ee57912ea2509))
|
|
23
|
+
* **typescript:** set up two-step verification and manage backup codes ([#534](https://github.com/flipstream-io/sdk/issues/534)) ([382f24e](https://github.com/flipstream-io/sdk/commit/382f24e6037577d3ba2dcedd9115c37686d567a6))
|
|
24
|
+
* **typescript:** the /auth proxy's rules live once in the first-party/proxy entry, with the rows and a stand-in every app's proxy is checked against ([#509](https://github.com/flipstream-io/sdk/issues/509)) ([0c4939b](https://github.com/flipstream-io/sdk/commit/0c4939b1bac3110936b94c1c286c04a114d3c3f6))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **typescript:** a browser that blocks site data gets an unsupported session, not a throw ([#498](https://github.com/flipstream-io/sdk/issues/498)) ([4a3d81d](https://github.com/flipstream-io/sdk/commit/4a3d81de70ce80986539217429f4955e1eb9c83c))
|
|
30
|
+
* **typescript:** a burst of sync() calls sends one /logout while the first is still in flight ([#522](https://github.com/flipstream-io/sdk/issues/522)) ([53c02bd](https://github.com/flipstream-io/sdk/commit/53c02bd72b34cb761e592a03c9e25063a33984cb))
|
|
31
|
+
* **typescript:** a logout confirmed while storage refused to clear its flag is not sent again on every sync() ([#521](https://github.com/flipstream-io/sdk/issues/521)) ([1100538](https://github.com/flipstream-io/sdk/commit/1100538a08f79f22d70ba8b5200f0499f1cbe875))
|
|
32
|
+
* **typescript:** a logout owed by a session object outlives it, so the next session sends it before it restores ([#494](https://github.com/flipstream-io/sdk/issues/494)) ([dd9d469](https://github.com/flipstream-io/sdk/commit/dd9d469a27f9b1e13b26232ad8faa475bd9247b6))
|
|
33
|
+
* **typescript:** a logout try queued behind this tab's own send of an owed logout is told its kept answer, not sent again ([#547](https://github.com/flipstream-io/sdk/issues/547)) ([710cfdc](https://github.com/flipstream-io/sdk/commit/710cfdc82baf89b81652ca6f253bf6d40b996715))
|
|
34
|
+
* **typescript:** a refresh that returns another person starts a new generation, and the record names the person ([#551](https://github.com/flipstream-io/sdk/issues/551)) ([d6d9a06](https://github.com/flipstream-io/sdk/commit/d6d9a061bd0551f4371070ba5239f1bc2a8a0f6c))
|
|
35
|
+
* **typescript:** a session left open drops its unrecorded sign-out once a sign-in is recorded after it, instead of writing over it ([#542](https://github.com/flipstream-io/sdk/issues/542)) ([bd6a1aa](https://github.com/flipstream-io/sdk/commit/bd6a1aa508fa57b2d44a753dab5e107aa5a4fe91))
|
|
36
|
+
* **typescript:** a sign-in overtaken by a sign-out spends no link, sends no code and doesn't reopen the code screen ([#487](https://github.com/flipstream-io/sdk/issues/487)) ([4fdeb36](https://github.com/flipstream-io/sdk/commit/4fdeb365d00ddf30792a6ae5b58e68aca4924779))
|
|
37
|
+
* **typescript:** a sign-out is told superseded only when a sign-in moved the shared record on before its try ([#546](https://github.com/flipstream-io/sdk/issues/546)) ([70b198b](https://github.com/flipstream-io/sdk/commit/70b198b07e1d7af2ffe9a43397e57ebb7a770982))
|
|
38
|
+
* **typescript:** a sign-out pulse-auth refused or answered outside the contract stays owed without hitting /logout every 30 seconds ([#516](https://github.com/flipstream-io/sdk/issues/516)) ([9553612](https://github.com/flipstream-io/sdk/commit/9553612570e54f7c4fe1fa2a600be63c951fbd0a))
|
|
39
|
+
* **typescript:** a subscriber that throws does not stop a sign-out, and its error goes to the page, never to onReport ([#493](https://github.com/flipstream-io/sdk/issues/493)) ([94eb2d9](https://github.com/flipstream-io/sdk/commit/94eb2d9e407784c4e9aa8c83983fa9636b23728a))
|
|
40
|
+
* **typescript:** a tab that knows the person's rights changed sends nothing with the earlier token ([#488](https://github.com/flipstream-io/sdk/issues/488)) ([710bf20](https://github.com/flipstream-io/sdk/commit/710bf206953639e4ee5819100821d3d4cdb53241))
|
|
41
|
+
* **typescript:** every request with a bearer asks the browser not to use its HTTP cache ([#518](https://github.com/flipstream-io/sdk/issues/518)) ([4e6e3ad](https://github.com/flipstream-io/sdk/commit/4e6e3ada915494f712e51c6cb8b38086399f9c48))
|
|
42
|
+
* **typescript:** no request of the first-party entry follows a redirect: it is read as an answer outside the contract and reported once ([#497](https://github.com/flipstream-io/sdk/issues/497)) ([57d9474](https://github.com/flipstream-io/sdk/commit/57d9474e9a14daa7041bae65a7422871760e651d))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Code Refactoring
|
|
46
|
+
|
|
47
|
+
* **typescript:** the console's browser session, its cookie calls and its tab rules move into the SDK, unchanged and unexported ([#464](https://github.com/flipstream-io/sdk/issues/464)) ([039628d](https://github.com/flipstream-io/sdk/commit/039628d477a642adc199445512039b8a3f188a52))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Miscellaneous
|
|
51
|
+
|
|
52
|
+
* **deps:** take the fixes for source-map-js, vite and markdown-it, and drop their audit ignores ([#426](https://github.com/flipstream-io/sdk/issues/426)) ([9225c43](https://github.com/flipstream-io/sdk/commit/9225c4315cb0521c26367e0ce098a8dd955ece1e))
|
|
53
|
+
* the repository checks out with LF line endings on every OS, so the lint tests pass on Windows ([#455](https://github.com/flipstream-io/sdk/issues/455)) ([71abc10](https://github.com/flipstream-io/sdk/commit/71abc10507f275b2a8adb9f68c91906faf2e12fb))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Documentation
|
|
57
|
+
|
|
58
|
+
* **typescript:** the first-party guide says /login is sent and an unavailable tab asks again on a timer ([#532](https://github.com/flipstream-io/sdk/issues/532)) ([a2251be](https://github.com/flipstream-io/sdk/commit/a2251bebbcd92b197e3dbbaabf891cb2c5c9ada2))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Tests
|
|
62
|
+
|
|
63
|
+
* endsAt waits for a call's outcome at its instant, not settle()'s 20 turns, so a loaded ci-01 can't fail a correct sign-in ([#434](https://github.com/flipstream-io/sdk/issues/434)) ([3b6d06e](https://github.com/flipstream-io/sdk/commit/3b6d06eb61f5c000a637843b27419d704bfc5327))
|
|
64
|
+
* **typescript:** a first-party test row that fails before it closes its session goes red, and its file ends ([#545](https://github.com/flipstream-io/sdk/issues/545)) ([8925561](https://github.com/flipstream-io/sdk/commit/8925561f857dfd735c0dc6db363a8459031ce66d))
|
|
65
|
+
* **typescript:** a live check Michel runs to record the macOS keychain's real "locked" error words ([#157](https://github.com/flipstream-io/sdk/issues/157) item 8) ([#440](https://github.com/flipstream-io/sdk/issues/440)) ([bfce8bb](https://github.com/flipstream-io/sdk/commit/bfce8bb8dd20daad1e6e3707030851721f08551b))
|
|
66
|
+
* **typescript:** a test child takes its script on stdin, so Windows starts it whatever its length ([#457](https://github.com/flipstream-io/sdk/issues/457)) ([92bbf1f](https://github.com/flipstream-io/sdk/commit/92bbf1f29d6956cb155dffafe81935cf9d5c9660))
|
|
67
|
+
* **typescript:** six more contract cases read the call's timers and turns, not the real clock ([#461](https://github.com/flipstream-io/sdk/issues/461)) ([54cbddc](https://github.com/flipstream-io/sdk/commit/54cbddcc0463c81a132230364290349804cdf551))
|
|
68
|
+
* **typescript:** the fake keyring's teardown ends the helpers it started before removing its folder, so a late write can't fail a passing test file ([#443](https://github.com/flipstream-io/sdk/issues/443)) ([4cdc6d1](https://github.com/flipstream-io/sdk/commit/4cdc6d19ce2bca89d7f69820693c7776111d4341))
|
|
69
|
+
* **typescript:** the four fileStore rows fail a save, link a folder and read a kill the Windows way ([#458](https://github.com/flipstream-io/sdk/issues/458)) ([d35eb10](https://github.com/flipstream-io/sdk/commit/d35eb10550293ea8b34459f3988b104d71f597b9))
|
|
70
|
+
* **typescript:** the Retry-After HTTP-date case reads the call's wait off its timeline, not the real clock ([#459](https://github.com/flipstream-io/sdk/issues/459)) ([8f39d5c](https://github.com/flipstream-io/sdk/commit/8f39d5cae0976b8d79533833e7ef29a7ae7caa0a))
|
|
71
|
+
* **typescript:** the tests that compare file names write them with /, so they pass on Windows ([#456](https://github.com/flipstream-io/sdk/issues/456)) ([8c0e536](https://github.com/flipstream-io/sdk/commit/8c0e5369de185430974fee1133745265d237040e))
|
|
72
|
+
* **typescript:** two ported session tests get a control, so each can fail ([#489](https://github.com/flipstream-io/sdk/issues/489)) ([43f73fe](https://github.com/flipstream-io/sdk/commit/43f73fef62b24d8720bbf06883a15359c5ef3c4e))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### CI
|
|
76
|
+
|
|
77
|
+
* the unit jobs run at most 8 test files at once on ci-01, so they stop taking all of its cores ([#433](https://github.com/flipstream-io/sdk/issues/433)) ([e9d0856](https://github.com/flipstream-io/sdk/commit/e9d08566a3e84e92f13746b5ca6ca8e152261897))
|
|
78
|
+
|
|
79
|
+
## [0.14.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.13.0...typescript-v0.14.0) (2026-11-25)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### ⚠ BREAKING CHANGES
|
|
83
|
+
|
|
84
|
+
* **typescript:** an answer whose rows or totals hold a key outside the dimensions and metrics asked for is invalid.
|
|
85
|
+
|
|
86
|
+
### Features
|
|
87
|
+
|
|
88
|
+
* **typescript:** a scope takes the caller's trace, scope({ traceparent }) and withScope(run, { traceparent }), so a command's shared reads are one trace ([#411](https://github.com/flipstream-io/sdk/issues/411)) ([1d865f4](https://github.com/flipstream-io/sdk/commit/1d865f43f031977dc9415f31b62c50a492121966))
|
|
89
|
+
* **typescript:** flipstream.members.remove() hands off to a person, with the person's page in the console ([#415](https://github.com/flipstream-io/sdk/issues/415)) ([ee35d67](https://github.com/flipstream-io/sdk/commit/ee35d67f07b83dfcda315a5c71b2104bca09ec7f))
|
|
90
|
+
* **typescript:** queryRefusal(request) gives the whole refusal flipstream.query answers before sending, so an app checks a request offline with the SDK's own rule ([#414](https://github.com/flipstream-io/sdk/issues/414)) ([b950335](https://github.com/flipstream-io/sdk/commit/b9503354d1acd2df10cdf369d85d611311a31b9c))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Bug Fixes
|
|
94
|
+
|
|
95
|
+
* **typescript:** a keychain helper whose spawn fails on EMFILE or ENFILE keeps that error, with its code, as the step's cause ([#407](https://github.com/flipstream-io/sdk/issues/407)) ([d8b45ef](https://github.com/flipstream-io/sdk/commit/d8b45ef789717971a767a063a458d8cea97142cc))
|
|
96
|
+
* **typescript:** a keychain helper whose spawn gives no stdio at all fails as "the keychain helper's pipes didn't open", never with a TypeError's words ([#403](https://github.com/flipstream-io/sdk/issues/403)) ([99f5d1d](https://github.com/flipstream-io/sdk/commit/99f5d1d7288e0c5de37c0efc9b340b1061e78a6d))
|
|
97
|
+
* **typescript:** a record's or a workspace's own 403 answers not_found, as one nobody has, so a refusal can't say it exists (D578) ([#410](https://github.com/flipstream-io/sdk/issues/410)) ([368ca8c](https://github.com/flipstream-io/sdk/commit/368ca8cc994b1a5fcdb579291a9c2a0f8fe79125))
|
|
98
|
+
* **typescript:** datasets.get and log.get answer your read's failure before the record's, so a refused sign-in can't tell an existing record from a missing one ([#405](https://github.com/flipstream-io/sdk/issues/405)) ([bfb88fc](https://github.com/flipstream-io/sdk/commit/bfb88fcd14278e68f47eb905c9a15174c332ed8b))
|
|
99
|
+
* **typescript:** every invalid a check finds after a read carries the status its answer came with, never one assumed for the route ([#392](https://github.com/flipstream-io/sdk/issues/392)) ([ace8ed0](https://github.com/flipstream-io/sdk/commit/ace8ed0a56216aeb7f4e4413503294c01b2d2f1f))
|
|
100
|
+
* **typescript:** flipstream.query answers invalid when a row holds a key the query didn't ask for, naming the keys, never their values ([#412](https://github.com/flipstream-io/sdk/issues/412)) ([b6bfb8e](https://github.com/flipstream-io/sdk/commit/b6bfb8e858cb7154f374dcb8d5ecb874ff4408c7))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Performance Improvements
|
|
104
|
+
|
|
105
|
+
* **typescript:** the keychain helper reads its requests by hand, without zod, so it starts about 20 ms sooner ([#401](https://github.com/flipstream-io/sdk/issues/401)) ([9f9d1ae](https://github.com/flipstream-io/sdk/commit/9f9d1ae2f275d2254b0fd8626a21d0c11c127d57))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Code Refactoring
|
|
109
|
+
|
|
110
|
+
* **typescript:** only an answer readParsed made can carry its status into a check: one rebuilt from its data is a type error ([#398](https://github.com/flipstream-io/sdk/issues/398)) ([3299ae6](https://github.com/flipstream-io/sdk/commit/3299ae67aa40fc746540ecc10bd63b76477a7593))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Tests
|
|
114
|
+
|
|
115
|
+
* **typescript:** [#377](https://github.com/flipstream-io/sdk/issues/377)'s scope rows and me()'s three-read deadline run on faked clocks, and a call that spins on them fails by name ([#391](https://github.com/flipstream-io/sdk/issues/391)) ([f5c4e62](https://github.com/flipstream-io/sdk/commit/f5c4e629ce56b2989c82b5026b67bdc9b198dd63))
|
|
116
|
+
* **typescript:** a keychain helper's end after its app dies is bounded wide of the test's own lag, and a read's runs on a stretched cut ([#396](https://github.com/flipstream-io/sdk/issues/396)) ([8111a5d](https://github.com/flipstream-io/sdk/commit/8111a5d953865fa5da008250618fc67be01cc403))
|
|
117
|
+
* **typescript:** one model of pulse-auth's refresh-token rotation, shared by the four fake issuers ([#408](https://github.com/flipstream-io/sdk/issues/408)) ([9854095](https://github.com/flipstream-io/sdk/commit/9854095d89deaf55294fbe58b631bb5df75fe67d))
|
|
118
|
+
* **typescript:** recordings keep each request's query as sent, replays compare it exactly, and test/recorded/ is re-recorded ([#399](https://github.com/flipstream-io/sdk/issues/399)) ([f92b52b](https://github.com/flipstream-io/sdk/commit/f92b52b856ac167135eaac10b4a352dc7926a577))
|
|
119
|
+
* **typescript:** the keychain helper's cut is pinned as it computes it, on its own clock, recorded by a preload as request-budget records the budget ([#397](https://github.com/flipstream-io/sdk/issues/397)) ([b81f284](https://github.com/flipstream-io/sdk/commit/b81f284be2debf41d86427f5d925d872bcb38afb))
|
|
120
|
+
* **typescript:** the slow-spawn row proves a late step is never written to the helper started for it ([#402](https://github.com/flipstream-io/sdk/issues/402)) ([5f2f830](https://github.com/flipstream-io/sdk/commit/5f2f830228ec6a1cb0100bbd97d149525d591d28))
|
|
121
|
+
* **typescript:** the stuck-helper test knows its helper from a warm read, never from a pid file a slow start may not have written ([#400](https://github.com/flipstream-io/sdk/issues/400)) ([901fe66](https://github.com/flipstream-io/sdk/commit/901fe660f7ad647df67ec1fdf84d2207cd2b2be9))
|
|
122
|
+
|
|
3
123
|
## [0.13.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.12.0...typescript-v0.13.0) (2026-11-18)
|
|
4
124
|
|
|
5
125
|
|
package/README.md
CHANGED
|
@@ -117,6 +117,9 @@ const member = orThrow(await flipstream.members.get({ member_id: page.items[0]?.
|
|
|
117
117
|
console.log(member.first_name, member.workspace_ids.length)
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
+
Removing someone is a person's to do, in the console: `flipstream.members.remove({ member_id })`
|
|
121
|
+
never writes, and answers `needs_person`.
|
|
122
|
+
|
|
120
123
|
**The rest is in [docs/admin.md](docs/admin.md),** under "Your organisation's members".
|
|
121
124
|
|
|
122
125
|
## Workspaces
|
|
@@ -136,8 +139,9 @@ console.log(workspace.slug)
|
|
|
136
139
|
```
|
|
137
140
|
|
|
138
141
|
**A workspace you don't open is `not_found`,** exactly as one nobody has, in every call under one
|
|
139
|
-
workspace, its logbook's and its datasets' included, and a write sends nothing
|
|
140
|
-
|
|
142
|
+
workspace, its logbook's and its datasets' included, and a write sends nothing. So is a workspace,
|
|
143
|
+
a dataset or a log entry whose own read the service refuses with its own 403: a refusal says it
|
|
144
|
+
exists (see "The workspaces you open" in [docs/admin.md](docs/admin.md)).
|
|
141
145
|
|
|
142
146
|
**The rest is in [docs/admin.md](docs/admin.md),** under "Workspaces".
|
|
143
147
|
|
|
@@ -226,7 +230,10 @@ Outside a scope, every call that needs them reads your organisation, you and its
|
|
|
226
230
|
each time. A scope lets the calls of one piece of work, such as a page's load or a command, share
|
|
227
231
|
those reads. They're read from the service at the first call that needs them, and dropped when the
|
|
228
232
|
scope closes. `flipstream.withScope(run)` makes one for the length of `run`; `flipstream.scope()`
|
|
229
|
-
makes one each call takes as `{ scope }`, which you close (or `await using`).
|
|
233
|
+
makes one each call takes as `{ scope }`, which you close (or `await using`). Give either your W3C
|
|
234
|
+
trace context, `{ traceparent }`, and in Node the scope's shared reads on the admin host go out
|
|
235
|
+
under its trace-id, so one piece of work is one trace. From a browser the admin host gets no trace
|
|
236
|
+
yet, so there it changes nothing (see "One piece of work" in [docs/admin.md](docs/admin.md)).
|
|
230
237
|
|
|
231
238
|
```ts
|
|
232
239
|
import { createFlipstream } from '@flipstream/sdk'
|
|
@@ -360,6 +367,86 @@ The main entry, `@flipstream/sdk`, runs in browsers with no Node polyfills. Only
|
|
|
360
367
|
- **Browser code shouldn't keep a refresh token.** We recommend signing in on your web app's
|
|
361
368
|
server instead (see "On your web app's server").
|
|
362
369
|
|
|
370
|
+
### Flipstream's own apps: `@flipstream/sdk/first-party`
|
|
371
|
+
|
|
372
|
+
Flipstream's own apps, served on a Flipstream origin, keep the person signed in in the page with
|
|
373
|
+
`createBrowserSession`, and no token in the page's hands: pulse-auth's refresh cookie is httpOnly
|
|
374
|
+
and reaches only the app's own `/auth` proxy, and the access token stays in the tab's memory. The
|
|
375
|
+
tabs of one browser share one session. The person signs in with a login link or with a password,
|
|
376
|
+
and with a two-step code when their account asks for one.
|
|
377
|
+
|
|
378
|
+
```ts
|
|
379
|
+
// boot.ts: the link-token import and the line that takes the token out of the address, nothing
|
|
380
|
+
// else. It keeps the history entry's state.
|
|
381
|
+
import { strip } from '@flipstream/sdk/first-party/link-token'
|
|
382
|
+
|
|
383
|
+
const cleaned = strip(location.href)
|
|
384
|
+
if (cleaned !== null) history.replaceState(history.state, '', cleaned)
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
```ts
|
|
388
|
+
// main.ts, the app's entry module. A module's imports are all evaluated before its first
|
|
389
|
+
// statement, so ./boot goes first: the token is gone before the SDK or anything else is evaluated.
|
|
390
|
+
import './boot'
|
|
391
|
+
import { createBrowserSession } from '@flipstream/sdk/first-party'
|
|
392
|
+
|
|
393
|
+
const session = createBrowserSession({ app: { name: 'account', version: '1.4.0' }, landing: '/login-link' })
|
|
394
|
+
session.subscribe(() => { document.body.dataset.session = session.current().kind }) // render from current()
|
|
395
|
+
session.start()
|
|
396
|
+
|
|
397
|
+
// On the landing page: the link is read as the page loads, and redeemed only on the person's press.
|
|
398
|
+
const link = session.openedLink()
|
|
399
|
+
document.querySelector('#sign-in')?.addEventListener('click', () => {
|
|
400
|
+
if (link.kind !== 'ready') return
|
|
401
|
+
void session.redeem(link).then((signedIn) => {
|
|
402
|
+
if (signedIn.ok && signedIn.data.kind === 'two_step') {
|
|
403
|
+
// ask for the code, then session.verifyTwoStep({ code })
|
|
404
|
+
}
|
|
405
|
+
})
|
|
406
|
+
})
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
`verifyTwoStep` answers after the state has turned `signed_in`, so a code screen that leaves on
|
|
410
|
+
`signed_in` takes its answer first: the backup codes it carries exist nowhere else.
|
|
411
|
+
|
|
412
|
+
`redeem` runs only on a press: a prerender, a speculative load or a restored tab runs the page's
|
|
413
|
+
script with nobody there, and a link works once.
|
|
414
|
+
|
|
415
|
+
After either `logIn({ email, password })` or `redeem(link)`, a `two_step` result takes the person
|
|
416
|
+
to `verifyTwoStep({ code })`. For `two_step_setup`, pass its `setup` to `startSignInTwoStepSetup(setup)` first. Use its
|
|
417
|
+
`otpauth_uri` for the authenticator's QR code or display its `secret` for manual entry. Then call
|
|
418
|
+
`verifyTwoStep({ code })` and show the ten backup codes from the successful result. If setup verification answers
|
|
419
|
+
`superseded`, show `error.backup_codes` when present.
|
|
420
|
+
|
|
421
|
+
On the signed-in security page, read `twoStepStatus()`, start with `startTwoStepSetup()`,
|
|
422
|
+
and finish with `confirmTwoStepSetup({ code })`. A person with a current code can replace their
|
|
423
|
+
backup codes with `newBackupCodes({ code })` or turn off two-step with `turnOffTwoStep({ code })`.
|
|
424
|
+
|
|
425
|
+
`signOut()` signs out here and in every tab at once; its `told` settles with what pulse-auth said
|
|
426
|
+
to the first try. `superseded` means a sign-in, in any tab, reached pulse-auth before this
|
|
427
|
+
sign-out's own try: it sent this logout itself before it signed in, and its cookie replaced the old
|
|
428
|
+
one, so this call isn't told whether pulse-auth confirmed it. Nothing is pending: read `current()`.
|
|
429
|
+
|
|
430
|
+
On a consent page, `session.consentRequest()` reads the callback host and scopes to show. Pass
|
|
431
|
+
that request to `approveConsent` or `denyConsent` when the person makes their choice.
|
|
432
|
+
|
|
433
|
+
Read `session.flipstream` for each piece of work. For example, `await session.flipstream.me()`
|
|
434
|
+
reads the organisation and user as the person the tab shows when the call is made.
|
|
435
|
+
A change of person or rights cancels the call. A kept scope also answers `cancelled`.
|
|
436
|
+
|
|
437
|
+
The browser session needs a proxy on the app's own server that forwards six paths to pulse-auth and marks
|
|
438
|
+
each refusal of its own with `X-Auth-Proxy: refused`. The calls, the options and the proxy's contract:
|
|
439
|
+
[docs/first-party.md](docs/first-party.md).
|
|
440
|
+
|
|
441
|
+
Use `session.requestPasswordReset` to mail a reset link. Configure `resetLanding` with the page's path so `openedReset` and `setPassword` can use the link there.
|
|
442
|
+
|
|
443
|
+
`session.requestSignUp` sends the legal versions the person accepted directly to pulse-admin to
|
|
444
|
+
request a sign-up link. Pulse-admin must allow the app's origin.
|
|
445
|
+
|
|
446
|
+
For device sign-in, `session.lookUpDevice({ user_code })` reads the code a device shows, open,
|
|
447
|
+
and answers the request to show; `approveDevice(request)` or `denyDevice(request)` answers that
|
|
448
|
+
same request as the signed-in person, on a press.
|
|
449
|
+
|
|
363
450
|
## On your web app's server
|
|
364
451
|
|
|
365
452
|
Your server signs the person in, keeps the tokens, and proves who it is with your app's client
|
|
@@ -428,11 +515,28 @@ as an `ApiFailure` carrying its `error`, for callers who'd rather catch.
|
|
|
428
515
|
`connection_id`, so `dataset_id` goes as that, and the API's own errors may say so. A request
|
|
429
516
|
with any other key, `table` and `connection_id` included, is `refused` with nothing sent, and
|
|
430
517
|
`error.fields` names each one, so a misspelt field never quietly changes the numbers.
|
|
431
|
-
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
518
|
+
- **Every row, and the totals, are keyed by the dimensions and metrics you asked for,** and only
|
|
519
|
+
those. Any other key makes the answer `invalid`, so a storage name can't reach you as data, as
|
|
520
|
+
if it were the one you asked for. The error names at most five of those keys, each shaped like a
|
|
521
|
+
field name, and counts the rest, never a value.
|
|
522
|
+
- **A query that asks for no dimension and no metric is `refused`,** with `reason`
|
|
523
|
+
`nothing_asked`, and nothing is sent, since no answer to it could pass that check. That's a
|
|
524
|
+
query whose `dimensions` and `metrics` are each left out or empty.
|
|
525
|
+
`refusedQueryFields` doesn't report it: it names unknown keys only.
|
|
526
|
+
- **`queryRefusal(request)`** gives the whole check on its own, with no client and nothing sent:
|
|
527
|
+
exactly the `error` `flipstream.query` would answer for that request before sending, or `null`
|
|
528
|
+
for a request it would send. That's `{ kind: 'refused', reason: 'fields', fields }`, the
|
|
529
|
+
unknown keys in the request's order, or `{ kind: 'refused', reason: 'nothing_asked' }`.
|
|
530
|
+
`flipstream.query` runs it itself, so an app can check a request offline (a CLI's `--body` or
|
|
531
|
+
`--dry-run`, say) with the SDK's own rule, and keep no copy of it. It reads the keys, then each
|
|
532
|
+
declared field once, at one moment, and only whether `dimensions` and `metrics` are each left
|
|
533
|
+
out or empty decides `nothing_asked`. A missing `source`, or a value of the wrong type
|
|
534
|
+
(`dimensions: 'page'`, `metrics: [1]`), is still the API's to refuse, so it gives `null` for it.
|
|
535
|
+
- **`refusedQueryFields(request)`** runs the unknown-key check alone, with no client and nothing
|
|
536
|
+
sent. It gives the same names, sorted, or `[]` when the request has no unknown key.
|
|
537
|
+
`queryRefusal` keeps the request's order, as `flipstream.query`'s own error always has, so sort
|
|
538
|
+
its `fields` to compare the two. It reads only the keys: a query asking for nothing is the
|
|
539
|
+
separate `nothing_asked` refusal, which `queryRefusal` gives.
|
|
436
540
|
- **`flipstream.health()`** gives the planner's answer to `GET /health`, an object of strings
|
|
437
541
|
(`{ status: 'ok' }` today). It works signed out: no token is asked for or sent, so it tells "the
|
|
438
542
|
service is down" from "the sign-in is wrong".
|
|
@@ -456,9 +560,9 @@ as an `ApiFailure` carrying its `error`, for callers who'd rather catch.
|
|
|
456
560
|
- **`flipstream.wallet.balance()`** gives a `Balance` or `null`, and
|
|
457
561
|
**`flipstream.wallet.transactions()`** a `Ledger` or `null` (see "Wallet" in
|
|
458
562
|
[docs/admin.md](docs/admin.md)).
|
|
459
|
-
- **`flipstream.members.list({ limit, offset })`** gives a `Page<Member>`,
|
|
460
|
-
**`flipstream.members.get({ member_id })`** a `Member
|
|
461
|
-
[docs/admin.md](docs/admin.md)).
|
|
563
|
+
- **`flipstream.members.list({ limit, offset })`** gives a `Page<Member>`,
|
|
564
|
+
**`flipstream.members.get({ member_id })`** a `Member`, and **`remove({ member_id })`** answers
|
|
565
|
+
`needs_person` (see "Your organisation's members" in [docs/admin.md](docs/admin.md)).
|
|
462
566
|
|
|
463
567
|
**Every answer is checked against the API's spec.** An answer that doesn't match, with a missing
|
|
464
568
|
field or a value of the wrong type, is an `invalid` failure that names the field. It never comes
|
|
@@ -493,16 +597,16 @@ the SDK doesn't know yet is kept, except in the answers of `me()`, `workspaces`,
|
|
|
493
597
|
isn't (a proxy's `Bad gateway`). The sign-ins' and the datasets' own reads and writes keep no
|
|
494
598
|
`text`, since a body there may hold a sign-in's value (see "Sign-ins to your sources" and "A
|
|
495
599
|
workspace's datasets" in [docs/admin.md](docs/admin.md)). The reads of your organisation and a
|
|
496
|
-
workspace beside them keep theirs
|
|
600
|
+
workspace beside them keep theirs, but the service's own refusal of the workspace, which is
|
|
601
|
+
`not_found`.
|
|
497
602
|
- An `invalid` the SDK finds by checking an answer after it arrived (another organisation's record,
|
|
498
|
-
a page that leaks, an id that can't name the next path
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
one.
|
|
603
|
+
a page that leaks, an id that can't name the next path, a query row keyed by a name it didn't ask
|
|
604
|
+
for) has the `status` that answer came with,
|
|
605
|
+
observed, never assumed: 200 where Flipstream's routes answer 200, the 2xx a create's answer came
|
|
606
|
+
with (`workspaces.create`, `log.add`), and whatever an authorisation server (`discover()`, a
|
|
607
|
+
session's OpenID configuration) or anything in front of a route answered. A retried read's is the last
|
|
608
|
+
attempt's. When the read after pause's or resume's write fails, the `invalid` keeps that read's
|
|
609
|
+
status, if it had one.
|
|
506
610
|
- `isPlannerCode(error.code)` narrows the code to the ones the query API documents
|
|
507
611
|
(`PlannerErrorCode`), so a switch over them can be exhaustive. A code added since is kept as it
|
|
508
612
|
came.
|
|
@@ -517,6 +621,7 @@ never the value:
|
|
|
517
621
|
| `identification` | A value identifying the app, its agent or the conversation holds the access token (see "Which app sent a request") |
|
|
518
622
|
| `path` | A `source` of `''`, `.` or `..`, which can't stay one path segment |
|
|
519
623
|
| `conversation-id` | A call's own `conversationId` that breaks its rule |
|
|
624
|
+
| `nothing_asked` | A query that asks for no dimension and no metric, whose answer could only be `invalid`; no `fields` |
|
|
520
625
|
| `fields` | A query, or a write (`workspaces.create`, `log.add`, `update` or `remove`, `datasets.pause` or `resume`), with keys it doesn't send, each named in `fields` |
|
|
521
626
|
| `pending` | Sign-in: a `pending` that isn't one, wasn't started by this app at this server, or whose token endpoint breaks its issuer's rule |
|
|
522
627
|
| `callback` | Sign-in: a callback URL that can't be read |
|
|
@@ -603,6 +708,18 @@ await flipstream.catalog.list({ conversationId: 'c-456', traceparent: '00-4bf92f
|
|
|
603
708
|
- **The token only goes to the configured hosts, over https.** No redirect is followed, and no
|
|
604
709
|
cookies are sent. Plain http to a loopback host needs `allowLocalhostHttp: true`, for development
|
|
605
710
|
only.
|
|
711
|
+
- **A request with the token asks for no HTTP cache** (`cache: 'no-store'`), so a browser never
|
|
712
|
+
answers it with a stored body, another person's or one from before a sign-out. `fetch` then
|
|
713
|
+
also sends `Cache-Control: no-cache` and `Pragma: no-cache`, in a browser and in Node; they are
|
|
714
|
+
added after the CORS preflight is decided, so no host has to allow them. `health`, which sends
|
|
715
|
+
no token, keeps the default.
|
|
716
|
+
- **Only where `fetch` keeps that mode.** The SDK checks once whether the runtime's `Request`
|
|
717
|
+
keeps `cache: 'no-store'` as asked. Where it doesn't (a polyfilled `fetch`, such as React
|
|
718
|
+
Native's, or a Cloudflare Worker on a compatibility date before `cache_option_enabled`), the
|
|
719
|
+
request goes without it, and nothing in the SDK keeps its answer out of that runtime's HTTP
|
|
720
|
+
cache. In a browser that means a native `fetch`.
|
|
721
|
+
- **The server's part:** the hosts' own `Cache-Control` on signed-in reads keeps them out of
|
|
722
|
+
every cache, wherever the SDK runs.
|
|
606
723
|
- **Retries:**
|
|
607
724
|
- A read (`catalog`, `health`, each of `me`'s) is tried again after a 408, 429, 502, 503 or
|
|
608
725
|
504, or a connection that failed, at most twice. It waits as long as `Retry-After` asks, in seconds, or
|
|
@@ -636,7 +753,9 @@ await flipstream.catalog.list({ conversationId: 'c-456', traceparent: '00-4bf92f
|
|
|
636
753
|
reads is still waited on: the call ends its other reads at once, through their `signal`, and the
|
|
637
754
|
rejection is the first read's to reject, in the order the call started them. A failure that comes
|
|
638
755
|
back as a result keeps each call's own order. Your transport may still be running after the call
|
|
639
|
-
ended its read, or after a read's deadline; the SDK no longer waits for it.
|
|
756
|
+
ended its read, or after a read's deadline; the SDK no longer waits for it. In a browser, a
|
|
757
|
+
transport that adds a bearer should ask `cache: 'no-store'` itself: the SDK can't set it on a
|
|
758
|
+
request it doesn't send.
|
|
640
759
|
|
|
641
760
|
## Which app sent a request
|
|
642
761
|
|
|
@@ -713,6 +832,9 @@ if (!result.ok) console.error(`${result.error.kind} (request ${result.trace_id ?
|
|
|
713
832
|
`workspaces.list()`'s two, sends them all under one trace-id, each with its own parent-id. So
|
|
714
833
|
does a retry, and the resend after a 401.
|
|
715
834
|
- **Your trace:** a call given your own `traceparent` keeps it, and `trace_id` is its trace-id.
|
|
835
|
+
In a scope, a call answered by shared reads alone, such as `me()`, names the read that answered
|
|
836
|
+
it, so the scope's trace when it was given one (`scope({ traceparent })`), even if the call was
|
|
837
|
+
given its own.
|
|
716
838
|
- **Nothing sent, no `trace_id`:** a call `refused` before anything is sent (a path, fields,
|
|
717
839
|
identification, the conversation's id, the destination) has none, and neither does a `no_token`
|
|
718
840
|
from the first ask for a token.
|
package/dist/api/backend.d.ts
CHANGED
|
@@ -75,6 +75,13 @@ export declare function backend(hosts: BackendHosts): {
|
|
|
75
75
|
* named.
|
|
76
76
|
*/
|
|
77
77
|
datasetPage: (organizationSlug: string, workspaceId: string, datasetId: string) => string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The console's page for one of your organisation's people (os D366, M56):
|
|
80
|
+
* `/<organisation>/o/people/<person id>`, by the organisation's short name and the person's full
|
|
81
|
+
* id, which the console rewrites to its short one (os D251). Undefined when no console can be
|
|
82
|
+
* named.
|
|
83
|
+
*/
|
|
84
|
+
memberPage: (organizationSlug: string, memberId: string) => string | undefined;
|
|
78
85
|
/**
|
|
79
86
|
* `POST /clients`: a new workspace, pulse-admin's client, in `organizationId`, sending `name` and
|
|
80
87
|
* nothing else (the console's D368), so pulse-admin keeps its own defaults and makes the short
|
package/dist/api/backend.js
CHANGED
|
@@ -169,6 +169,13 @@ export function backend(hosts) {
|
|
|
169
169
|
* named.
|
|
170
170
|
*/
|
|
171
171
|
datasetPage: (organizationSlug, workspaceId, datasetId) => consoleUrl(hosts.console, [organizationSlug, workspaceId, 'warehouse', 'datasets', datasetId]),
|
|
172
|
+
/**
|
|
173
|
+
* The console's page for one of your organisation's people (os D366, M56):
|
|
174
|
+
* `/<organisation>/o/people/<person id>`, by the organisation's short name and the person's full
|
|
175
|
+
* id, which the console rewrites to its short one (os D251). Undefined when no console can be
|
|
176
|
+
* named.
|
|
177
|
+
*/
|
|
178
|
+
memberPage: (organizationSlug, memberId) => consoleUrl(hosts.console, [organizationSlug, 'o', 'people', memberId]),
|
|
172
179
|
/**
|
|
173
180
|
* `POST /clients`: a new workspace, pulse-admin's client, in `organizationId`, sending `name` and
|
|
174
181
|
* nothing else (the console's D368), so pulse-admin keeps its own defaults and makes the short
|
package/dist/api/backend.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../../src/api/backend.ts"],"names":[],"mappings":"AAAA,OAAO,EA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,EAAe,EAAE,CACxE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,EAAE,aAAa,EAAE,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC;QAC3H;;;WAGG;QACH,cAAc,CAAI,EAAU,EAAE,KAAkB,EAAE,MAAoB;YACpE,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAAA;YACxB,OAAO,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,EAAE,eAAe,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAChK,CAAC;QACD;;;;WAIG;QACH,cAAc,CAAI,EAAU,EAAE,MAAoB;YAChD,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAAA;YACxB,OAAO,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,EAAE,eAAe,IAAI,EAAE,EAAE,MAAM,CAAC,CAAA;QAC1I,CAAC;KACF,CAAA;AACH,CAAC"}
|
package/dist/api/credentials.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { invalidIn } from '../core/invalid.js';
|
|
3
3
|
import { isSecretKey } from '../core/secrets.js';
|
|
4
4
|
import { credentialNeedsPerson } from './handoff.js';
|
|
5
5
|
import { sameUuid } from './ids.js';
|
|
@@ -66,7 +66,7 @@ export async function listCredentials(seam, read, request = {}) {
|
|
|
66
66
|
// A record is checked before this runs, but the scope check never throws on what it's given.
|
|
67
67
|
const spec = seam.organizationCredentials(organization.data.id, request, zRecord, (record) => typeof record.organization_id === 'string' && sameUuid(record.organization_id, organization.data.id));
|
|
68
68
|
if (spec === null)
|
|
69
|
-
return
|
|
69
|
+
return invalidIn(organization, "the organisation's id can't name its sign-ins");
|
|
70
70
|
const listed = await read(spec);
|
|
71
71
|
return listed.ok ? { ok: true, data: { ...listed.data, items: listed.data.items.map(publicOf) } } : listed;
|
|
72
72
|
}
|
|
@@ -86,9 +86,9 @@ export async function handOffCredential(seam, read, credentialId, action) {
|
|
|
86
86
|
if (!credential.ok)
|
|
87
87
|
return credential;
|
|
88
88
|
if (!sameUuid(credential.data.id, credentialId))
|
|
89
|
-
return
|
|
89
|
+
return invalidIn(credential, "the sign-in read isn't the one asked for");
|
|
90
90
|
if (!sameUuid(credential.data.organization_id, organization.data.id))
|
|
91
|
-
return
|
|
91
|
+
return invalidIn(credential, "the sign-in read is another organisation's");
|
|
92
92
|
return credentialNeedsPerson(action);
|
|
93
93
|
}
|
|
94
94
|
//# sourceMappingURL=credentials.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/api/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/api/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGhD,OAAO,EAAE,qBAAqB,EAA0B,MAAM,cAAc,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,OAAO,EAAE,SAAS,EAA+B,MAAM,WAAW,CAAA;AAClE,OAAO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