@flipstream/sdk 0.9.0 → 0.10.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.
Files changed (87) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +534 -487
  3. package/dist/api/backend.d.ts +182 -0
  4. package/dist/api/backend.js +314 -0
  5. package/dist/api/backend.js.map +1 -0
  6. package/dist/api/created.d.ts +5 -0
  7. package/dist/api/created.js +15 -0
  8. package/dist/api/created.js.map +1 -0
  9. package/dist/api/credentials.d.ts +36 -0
  10. package/dist/api/credentials.js +94 -0
  11. package/dist/api/credentials.js.map +1 -0
  12. package/dist/api/datasets.d.ts +94 -0
  13. package/dist/api/datasets.js +212 -0
  14. package/dist/api/datasets.js.map +1 -0
  15. package/dist/api/handoff.d.ts +34 -0
  16. package/dist/api/handoff.js +52 -0
  17. package/dist/api/handoff.js.map +1 -0
  18. package/dist/api/ids.d.ts +7 -0
  19. package/dist/api/ids.js +27 -0
  20. package/dist/api/ids.js.map +1 -0
  21. package/dist/api/index.d.ts +9 -1
  22. package/dist/api/log.d.ts +95 -0
  23. package/dist/api/log.js +213 -0
  24. package/dist/api/log.js.map +1 -0
  25. package/dist/api/me.d.ts +58 -0
  26. package/dist/api/me.js +64 -0
  27. package/dist/api/me.js.map +1 -0
  28. package/dist/api/members.d.ts +48 -0
  29. package/dist/api/members.js +102 -0
  30. package/dist/api/members.js.map +1 -0
  31. package/dist/api/organization.d.ts +11 -0
  32. package/dist/api/organization.js +15 -0
  33. package/dist/api/organization.js.map +1 -0
  34. package/dist/api/page.d.ts +33 -0
  35. package/dist/api/page.js +38 -0
  36. package/dist/api/page.js.map +1 -0
  37. package/dist/api/time.d.ts +3 -0
  38. package/dist/api/time.js +49 -0
  39. package/dist/api/time.js.map +1 -0
  40. package/dist/api/unsent.d.ts +6 -0
  41. package/dist/api/unsent.js +9 -0
  42. package/dist/api/unsent.js.map +1 -0
  43. package/dist/api/wallet.d.ts +45 -0
  44. package/dist/api/wallet.js +102 -0
  45. package/dist/api/wallet.js.map +1 -0
  46. package/dist/api/workspaces.d.ts +70 -0
  47. package/dist/api/workspaces.js +108 -0
  48. package/dist/api/workspaces.js.map +1 -0
  49. package/dist/core/body.js +23 -5
  50. package/dist/core/body.js.map +1 -1
  51. package/dist/core/call.d.ts +6 -0
  52. package/dist/core/call.js +1 -1
  53. package/dist/core/call.js.map +1 -1
  54. package/dist/core/fetch.js +4 -1
  55. package/dist/core/fetch.js.map +1 -1
  56. package/dist/core/names.d.ts +39 -0
  57. package/dist/core/names.js +41 -0
  58. package/dist/core/names.js.map +1 -1
  59. package/dist/core/read.d.ts +1 -1
  60. package/dist/core/read.js +7 -4
  61. package/dist/core/read.js.map +1 -1
  62. package/dist/core/result.d.ts +41 -3
  63. package/dist/core/result.js +18 -4
  64. package/dist/core/result.js.map +1 -1
  65. package/dist/core/secrets.d.ts +2 -0
  66. package/dist/core/secrets.js +33 -0
  67. package/dist/core/secrets.js.map +1 -0
  68. package/dist/core/transport.d.ts +6 -2
  69. package/dist/flipstream.d.ts +296 -4
  70. package/dist/flipstream.js +172 -23
  71. package/dist/flipstream.js.map +1 -1
  72. package/dist/index.d.ts +1 -1
  73. package/dist/node/clientSecret.js +1 -0
  74. package/dist/node/clientSecret.js.map +1 -1
  75. package/dist/node/fileLock.d.ts +20 -2
  76. package/dist/node/fileLock.js +22 -13
  77. package/dist/node/fileLock.js.map +1 -1
  78. package/dist/node/keychainStore.d.ts +10 -0
  79. package/dist/node/keychainStore.js +33 -13
  80. package/dist/node/keychainStore.js.map +1 -1
  81. package/dist/node/session.d.ts +1 -2
  82. package/dist/node/session.js +22 -14
  83. package/dist/node/session.js.map +1 -1
  84. package/dist/version.gen.js +1 -1
  85. package/dist/version.gen.js.map +1 -1
  86. package/docs/node-sign-in.md +503 -0
  87. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.1](https://github.com/flipstream-io/sdk/compare/typescript-v0.10.0...typescript-v0.10.1) (2026-11-03)
4
+
5
+
6
+ ### Code Refactoring
7
+
8
+ * **typescript:** fileLock's lookout reads its clocks through createFileLock, so its clock tests own them ([#318](https://github.com/flipstream-io/sdk/issues/318)) ([30f42f0](https://github.com/flipstream-io/sdk/commit/30f42f056c2f9eb253f0aded2ca72663de9d5c97))
9
+ * **typescript:** four keychain and loopback tests wait for events, not wall-clock margins, with an unexported seam for the helper's budget ([#309](https://github.com/flipstream-io/sdk/issues/309)) ([e0cdf66](https://github.com/flipstream-io/sdk/commit/e0cdf666899e3111fde94a48bf3fd542256c8e88))
10
+
11
+
12
+ ### Documentation
13
+
14
+ * **typescript:** the README fits npmjs.com's 64 KiB, with the Node sign-in reference moved to docs/node-sign-in.md, shipped in the package, and a 61,440-byte budget in readme:check ([#317](https://github.com/flipstream-io/sdk/issues/317)) ([feab932](https://github.com/flipstream-io/sdk/commit/feab932a9e1cfc6991915621046eb764b07aecae))
15
+
16
+ ## [0.10.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.9.0...typescript-v0.10.0) (2026-11-02)
17
+
18
+
19
+ ### ⚠ BREAKING CHANGES
20
+
21
+ * **typescript:** Said gains an arm with neither code nor text: on the sign-in routes, a failure whose body isn't the host's {code, message} carries no text, so `error.text` may be undefined where `code` is.
22
+ * **typescript:** Role no longer has 'guest', so a switch over it loses that case. A person whose only role is pulse-auth's client, or one this version doesn't know, now has role null instead of guest or an invalid answer.
23
+ * **typescript:** ApiError gains the kind `needs_person` (action, why, url?, sees?): a switch over every ApiError kind needs its case.
24
+
25
+ ### Features
26
+
27
+ * **typescript:** a dataset says how much of its history is in, from backfill, under our name and in its own values ([#303](https://github.com/flipstream-io/sdk/issues/303)) ([f60dc52](https://github.com/flipstream-io/sdk/commit/f60dc52adc71c6d6ed62bace2b9ea71bb4b34e72))
28
+ * **typescript:** a dataset says when it was made, and by whom ([#285](https://github.com/flipstream-io/sdk/issues/285)) ([f1ac9b2](https://github.com/flipstream-io/sdk/commit/f1ac9b2d6678a2035bfe8e2008c15953bb187228))
29
+ * **typescript:** ApiFailure carries the call's traceId as a field ([#266](https://github.com/flipstream-io/sdk/issues/266)) ([03e14e9](https://github.com/flipstream-io/sdk/commit/03e14e9d80ca2ec84fcc9030df3c1ed37de76688))
30
+ * **typescript:** every result names its trace (traceId), and one SDK call is one trace ([#261](https://github.com/flipstream-io/sdk/issues/261)) ([bfd6dab](https://github.com/flipstream-io/sdk/commit/bfd6dabce5257642009d694ba4bca2a76eb67c3e))
31
+ * **typescript:** flipstream.credentials, your organisation's sign-ins as metadata only, with revoke() and delete() handed to a person ([#278](https://github.com/flipstream-io/sdk/issues/278)) ([0736975](https://github.com/flipstream-io/sdk/commit/07369753218c4d857e38e0032ba19936aba8db40))
32
+ * **typescript:** flipstream.datasets.delete() hands off to a person, with the dataset's page in the console ([#280](https://github.com/flipstream-io/sdk/issues/280)) ([bce2d6e](https://github.com/flipstream-io/sdk/commit/bce2d6ee6e7ea80d995dce3d76611f3cd6e1038e))
33
+ * **typescript:** flipstream.datasets.list() and get(), and datasetTypes.list(), through the admin seam ([#253](https://github.com/flipstream-io/sdk/issues/253)) ([978c946](https://github.com/flipstream-io/sdk/commit/978c946d8a928dc037db8ab84ba17ef5d87bfdc9))
34
+ * **typescript:** flipstream.datasets.pause() and resume(), a dataset's active set through the admin seam ([#272](https://github.com/flipstream-io/sdk/issues/272)) ([984d3bd](https://github.com/flipstream-io/sdk/commit/984d3bd732a8fe487dca799537184c3737f15465))
35
+ * **typescript:** flipstream.log.add(), update() and remove(), writes to a workspace's logbook ([#270](https://github.com/flipstream-io/sdk/issues/270)) ([9755ecf](https://github.com/flipstream-io/sdk/commit/9755ecf5f927da1f8dbb778a1bacd829d953c4ca))
36
+ * **typescript:** flipstream.log.list() and get(), through the admin seam ([#244](https://github.com/flipstream-io/sdk/issues/244)) ([2234f30](https://github.com/flipstream-io/sdk/commit/2234f3025d1c3d018408d4048f5c6c0030f1ca8f))
37
+ * **typescript:** flipstream.me(), through the admin seam ([#226](https://github.com/flipstream-io/sdk/issues/226)) ([1cb3f97](https://github.com/flipstream-io/sdk/commit/1cb3f975c3dbf28438a8bb277f1519d22064a1b1))
38
+ * **typescript:** flipstream.members.list() and get(), through the admin seam ([#255](https://github.com/flipstream-io/sdk/issues/255)) ([58631a3](https://github.com/flipstream-io/sdk/commit/58631a37a87cb3733e179435c7e44117fa0c2701))
39
+ * **typescript:** flipstream.organization.rename() hands off to a person, with the organisation's settings in the console ([#281](https://github.com/flipstream-io/sdk/issues/281)) ([6519fcf](https://github.com/flipstream-io/sdk/commit/6519fcffaee2388c05f11aa54b0f14f2e378efc2))
40
+ * **typescript:** flipstream.wallet.balance() and transactions(), read only, through the admin seam ([#246](https://github.com/flipstream-io/sdk/issues/246)) ([d0a5e9f](https://github.com/flipstream-io/sdk/commit/d0a5e9f5ff10775f5613e078b7463dbdafd35a93))
41
+ * **typescript:** flipstream.workspaces.create(), the admin seam's first write ([#254](https://github.com/flipstream-io/sdk/issues/254)) ([983ef87](https://github.com/flipstream-io/sdk/commit/983ef879773611d8a820d156c58fd92fd92352dc))
42
+ * **typescript:** flipstream.workspaces.list() and get(), through the admin seam ([#243](https://github.com/flipstream-io/sdk/issues/243)) ([3cacf15](https://github.com/flipstream-io/sdk/commit/3cacf151af3ff7c452f8e5697526f47425e038b4))
43
+ * **typescript:** me()'s organisation says its access: in trial and until when, active, or expired ([#300](https://github.com/flipstream-io/sdk/issues/300)) ([1b9313d](https://github.com/flipstream-io/sdk/commit/1b9313d168d686d3215e7303e763c1b5c9ad5dcb))
44
+ * **typescript:** the logbook says who wrote an entry, and when ([#286](https://github.com/flipstream-io/sdk/issues/286)) ([746d4c2](https://github.com/flipstream-io/sdk/commit/746d4c2cddb55302d15d87c87ada2e036973209a))
45
+ * **typescript:** workspaces.rename() and delete() hand off to a person, with ApiError's needs_person ([#248](https://github.com/flipstream-io/sdk/issues/248)) ([3b8edeb](https://github.com/flipstream-io/sdk/commit/3b8edeb1891a2e222630f0888502ce33b5fa38ce))
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * **typescript:** a ledger row whose connection_id is null reads as dataset_id null ([#274](https://github.com/flipstream-io/sdk/issues/274)) ([bc5ce99](https://github.com/flipstream-io/sdk/commit/bc5ce9927d0d27554e868fa789928d7cda46c096))
51
+ * **typescript:** a sign-out's and a refresh's failure.cause keeps a non-Error rejection as it came ([#260](https://github.com/flipstream-io/sdk/issues/260)) ([a102714](https://github.com/flipstream-io/sdk/commit/a102714bfd7c07395dc9779f7083bfdf2fb5e043))
52
+ * **typescript:** Member.role has no guest, and a role the SDK doesn't know reads as null ([#267](https://github.com/flipstream-io/sdk/issues/267)) ([f951871](https://github.com/flipstream-io/sdk/commit/f951871f29edca1168d6fa09b083fdd77be57506))
53
+ * **typescript:** sameUuid reads urn:uuid:<id>, as pulse-admin's UUID parsing does ([#258](https://github.com/flipstream-io/sdk/issues/258)) ([1c694ca](https://github.com/flipstream-io/sdk/commit/1c694ca9b4bdfd1d3c10302559ce8054a5491161))
54
+ * **typescript:** the dataset routes keep no body text, as the sign-in routes do, since a connection embeds its sign-in ([#282](https://github.com/flipstream-io/sdk/issues/282)) ([655e4c6](https://github.com/flipstream-io/sdk/commit/655e4c6c976d630a20a97cffa978e83c32697a7c))
55
+ * **typescript:** the log reads are held to your organisation, and the list proves its workspace ([#276](https://github.com/flipstream-io/sdk/issues/276)) ([6fc38f6](https://github.com/flipstream-io/sdk/commit/6fc38f6cb32102455090d3e312ed1d6f2cfa0936))
56
+ * **typescript:** the S3 export's keys count as a credential's, and a recorded name says what it names ([#288](https://github.com/flipstream-io/sdk/issues/288)) ([9ce6142](https://github.com/flipstream-io/sdk/commit/9ce6142732d4e5c6568c8189cdbb6be38d5d9484))
57
+ * **typescript:** zod 4.6.6, for GHSA-mrhx-c7xc-m3w5 (high) ([#312](https://github.com/flipstream-io/sdk/issues/312)) ([dd3974c](https://github.com/flipstream-io/sdk/commit/dd3974c74eb6d30d685e57966ef1e245191abf3b))
58
+
59
+
60
+ ### Documentation
61
+
62
+ * **typescript:** what a Node upgrade means for the keychain ([#234](https://github.com/flipstream-io/sdk/issues/234)) ([431cda5](https://github.com/flipstream-io/sdk/commit/431cda57f42745474ca74f228b3eb3b5185203cc))
63
+ * **typescript:** what members.get answers is said once, and a dataset's maker or a logbook entry's writer points there ([#299](https://github.com/flipstream-io/sdk/issues/299)) ([19e7304](https://github.com/flipstream-io/sdk/commit/19e73046a88b7be7349359a509c6fb4ce429fcdd))
64
+
65
+
66
+ ### Tests
67
+
68
+ * **typescript:** a broken recorded answer is invalid and names the field, pinned in the replay ([#259](https://github.com/flipstream-io/sdk/issues/259)) ([1c4ef3c](https://github.com/flipstream-io/sdk/commit/1c4ef3c671155b40fbc5a8e7924c3e7327f38027))
69
+ * **typescript:** every call the admin seam builds is the read or the write decided for it ([#287](https://github.com/flipstream-io/sdk/issues/287)) ([c6a5df2](https://github.com/flipstream-io/sdk/commit/c6a5df28ce21db77a6aac3424016854ae1d31e0e))
70
+ * **typescript:** fileLock's clock cases count tries, not time, so a loaded runner can't fail them ([#289](https://github.com/flipstream-io/sdk/issues/289)) ([cb7d5b2](https://github.com/flipstream-io/sdk/commit/cb7d5b2aaca311e4bb90aa6a937db23e7fb37ef1))
71
+ * **typescript:** instant reads a time with no offset as UTC in zones far from it, either side ([#277](https://github.com/flipstream-io/sdk/issues/277)) ([d29cb08](https://github.com/flipstream-io/sdk/commit/d29cb080097ea20388329c7f4092a56a415fe3f9))
72
+ * **typescript:** the admin and auth answers are recorded again, with names by kind and the organisation's real access ([#304](https://github.com/flipstream-io/sdk/issues/304)) ([52728dc](https://github.com/flipstream-io/sdk/commit/52728dc919c8e5b29a0a3285fb5e874b0c9ded8e))
73
+ * **typescript:** the fake admin host serves by method as well as by path ([#283](https://github.com/flipstream-io/sdk/issues/283)) ([9ff1777](https://github.com/flipstream-io/sdk/commit/9ff177747e500b74a92f8c709e504edb869e2fb0))
74
+ * **typescript:** the live scripts say why a sign-out wasn't revoked ([#284](https://github.com/flipstream-io/sdk/issues/284)) ([90bc7cc](https://github.com/flipstream-io/sdk/commit/90bc7cc2f2729ba2977bc88448a332e79aa4ca55))
75
+
3
76
  ## [0.9.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.8.0...typescript-v0.9.0) (2026-10-31)
4
77
 
5
78