@flipstream/sdk 0.8.0 → 0.10.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 +92 -0
- package/README.md +707 -66
- package/dist/api/backend.d.ts +182 -0
- package/dist/api/backend.js +314 -0
- package/dist/api/backend.js.map +1 -0
- package/dist/api/created.d.ts +5 -0
- package/dist/api/created.js +15 -0
- package/dist/api/created.js.map +1 -0
- package/dist/api/credentials.d.ts +36 -0
- package/dist/api/credentials.js +94 -0
- package/dist/api/credentials.js.map +1 -0
- package/dist/api/datasets.d.ts +94 -0
- package/dist/api/datasets.js +212 -0
- package/dist/api/datasets.js.map +1 -0
- package/dist/api/handoff.d.ts +34 -0
- package/dist/api/handoff.js +52 -0
- package/dist/api/handoff.js.map +1 -0
- package/dist/api/ids.d.ts +7 -0
- package/dist/api/ids.js +27 -0
- package/dist/api/ids.js.map +1 -0
- package/dist/api/index.d.ts +9 -1
- package/dist/api/log.d.ts +95 -0
- package/dist/api/log.js +213 -0
- package/dist/api/log.js.map +1 -0
- package/dist/api/me.d.ts +58 -0
- package/dist/api/me.js +64 -0
- package/dist/api/me.js.map +1 -0
- package/dist/api/members.d.ts +48 -0
- package/dist/api/members.js +102 -0
- package/dist/api/members.js.map +1 -0
- package/dist/api/organization.d.ts +11 -0
- package/dist/api/organization.js +15 -0
- package/dist/api/organization.js.map +1 -0
- package/dist/api/page.d.ts +33 -0
- package/dist/api/page.js +38 -0
- package/dist/api/page.js.map +1 -0
- package/dist/api/time.d.ts +3 -0
- package/dist/api/time.js +49 -0
- package/dist/api/time.js.map +1 -0
- package/dist/api/unsent.d.ts +6 -0
- package/dist/api/unsent.js +9 -0
- package/dist/api/unsent.js.map +1 -0
- package/dist/api/wallet.d.ts +45 -0
- package/dist/api/wallet.js +102 -0
- package/dist/api/wallet.js.map +1 -0
- package/dist/api/workspaces.d.ts +70 -0
- package/dist/api/workspaces.js +108 -0
- package/dist/api/workspaces.js.map +1 -0
- package/dist/auth/discovery.js +1 -1
- package/dist/auth/discovery.js.map +1 -1
- package/dist/auth/signIn.js +7 -2
- package/dist/auth/signIn.js.map +1 -1
- package/dist/core/body.js +23 -5
- package/dist/core/body.js.map +1 -1
- package/dist/core/call.d.ts +6 -0
- package/dist/core/call.js +1 -1
- package/dist/core/call.js.map +1 -1
- package/dist/core/fetch.d.ts +5 -0
- package/dist/core/fetch.js +7 -1
- package/dist/core/fetch.js.map +1 -1
- package/dist/core/identify.d.ts +63 -0
- package/dist/core/identify.js +122 -0
- package/dist/core/identify.js.map +1 -0
- package/dist/core/names.d.ts +100 -0
- package/dist/core/names.js +114 -0
- package/dist/core/names.js.map +1 -0
- package/dist/core/read.d.ts +1 -1
- package/dist/core/read.js +15 -6
- package/dist/core/read.js.map +1 -1
- package/dist/core/result.d.ts +67 -6
- package/dist/core/result.js +39 -6
- package/dist/core/result.js.map +1 -1
- package/dist/core/secrets.d.ts +2 -0
- package/dist/core/secrets.js +33 -0
- package/dist/core/secrets.js.map +1 -0
- package/dist/core/transport.d.ts +12 -4
- package/dist/flipstream.d.ts +341 -5
- package/dist/flipstream.js +203 -13
- package/dist/flipstream.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/node/clientSecret.js +2 -1
- package/dist/node/clientSecret.js.map +1 -1
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +1 -0
- package/dist/node/index.js.map +1 -1
- package/dist/node/keychainChild.js +10 -6
- package/dist/node/keychainChild.js.map +1 -1
- package/dist/node/keychainStore.d.ts +6 -3
- package/dist/node/keychainStore.js +6 -3
- package/dist/node/keychainStore.js.map +1 -1
- package/dist/node/session.d.ts +78 -29
- package/dist/node/session.js +74 -52
- package/dist/node/session.js.map +1 -1
- package/dist/node/store.d.ts +11 -1
- package/dist/node/store.js +14 -1
- package/dist/node/store.js.map +1 -1
- package/dist/query/query.d.ts +15 -10
- package/dist/query/query.js +21 -11
- package/dist/query/query.js.map +1 -1
- package/dist/version.gen.js +1 -1
- package/dist/version.gen.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,97 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.9.0...typescript-v0.10.0) (2026-11-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **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.
|
|
9
|
+
* **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.
|
|
10
|
+
* **typescript:** ApiError gains the kind `needs_person` (action, why, url?, sees?): a switch over every ApiError kind needs its case.
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **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))
|
|
15
|
+
* **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))
|
|
16
|
+
* **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))
|
|
17
|
+
* **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))
|
|
18
|
+
* **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))
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
* **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))
|
|
22
|
+
* **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))
|
|
23
|
+
* **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))
|
|
24
|
+
* **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))
|
|
25
|
+
* **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))
|
|
26
|
+
* **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))
|
|
27
|
+
* **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))
|
|
28
|
+
* **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))
|
|
29
|
+
* **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))
|
|
30
|
+
* **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))
|
|
31
|
+
* **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))
|
|
32
|
+
* **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))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* **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))
|
|
38
|
+
* **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))
|
|
39
|
+
* **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))
|
|
40
|
+
* **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))
|
|
41
|
+
* **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))
|
|
42
|
+
* **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))
|
|
43
|
+
* **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))
|
|
44
|
+
* **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))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Documentation
|
|
48
|
+
|
|
49
|
+
* **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))
|
|
50
|
+
* **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))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Tests
|
|
54
|
+
|
|
55
|
+
* **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))
|
|
56
|
+
* **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))
|
|
57
|
+
* **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))
|
|
58
|
+
* **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))
|
|
59
|
+
* **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))
|
|
60
|
+
* **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))
|
|
61
|
+
* **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))
|
|
62
|
+
|
|
63
|
+
## [0.9.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.8.0...typescript-v0.9.0) (2026-10-31)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### ⚠ BREAKING CHANGES
|
|
67
|
+
|
|
68
|
+
* **typescript:** RevokeResult gains a required `cleared`, and revoke() now answers once its clear is done, which can take minutes on a stalled store, where it used to answer within 10 s. When `cleared` is `failed`, `failure: { step, cause }` says where the store failed (`read`, `lock` or `clear`) and what it threw. Adds StoreMovedOnError, for a store that has moved on: `fileStore` and `keychainStore` now throw `StoreMovedOnError` where they threw a plain `Error`. A store of your own should throw it too: a sign-out then says `kept`, and any other throw from its clear says `failed`.
|
|
69
|
+
* **typescript:** createFlipstream requires app: { name, version }, on both ways of making a client. In Node, each request to an API host says which app sent it (User-Agent), carries a W3C traceparent, and, when given, the agent and conversation as baggage.
|
|
70
|
+
|
|
71
|
+
### Features
|
|
72
|
+
|
|
73
|
+
* **typescript:** a query names its dataset as dataset_id, sent as connection_id ([#207](https://github.com/flipstream-io/sdk/issues/207)) ([2f1e956](https://github.com/flipstream-io/sdk/commit/2f1e956ccb5cdab75afa5e0619caf53d2f015e8d))
|
|
74
|
+
* **typescript:** a refused call says why, in reason ([#204](https://github.com/flipstream-io/sdk/issues/204)) ([b1cebb6](https://github.com/flipstream-io/sdk/commit/b1cebb658da12509fdc771afd623671a047d6850))
|
|
75
|
+
* **typescript:** every request says which app and agent sent it ([#195](https://github.com/flipstream-io/sdk/issues/195)) ([5653c8a](https://github.com/flipstream-io/sdk/commit/5653c8aa317147eb1a1e0fa0eeacd9fe19ce04d7))
|
|
76
|
+
* **typescript:** revoke() waits for its clear, and says how it went ([#197](https://github.com/flipstream-io/sdk/issues/197)) ([8936d61](https://github.com/flipstream-io/sdk/commit/8936d61d255ccbfdb7268d852757b5049a5226e0))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Bug Fixes
|
|
80
|
+
|
|
81
|
+
* **typescript:** a short token refuses only a value equal to it ([#203](https://github.com/flipstream-io/sdk/issues/203)) ([ea05225](https://github.com/flipstream-io/sdk/commit/ea0522560a20e5d366fc59734cdbf6a4d4331024))
|
|
82
|
+
* **typescript:** health sends none of the caller's values ([#202](https://github.com/flipstream-io/sdk/issues/202)) ([32ce143](https://github.com/flipstream-io/sdk/commit/32ce143f2fbca14e48d648cbc645f01921f082f2))
|
|
83
|
+
* **typescript:** the keychain helper ignores Ctrl-C before zod loads ([#201](https://github.com/flipstream-io/sdk/issues/201)) ([660ea0c](https://github.com/flipstream-io/sdk/commit/660ea0ca393f084afb287e4b082c05f102aaf784))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Miscellaneous
|
|
87
|
+
|
|
88
|
+
* **typescript:** the client is flipstream, not fs ([#227](https://github.com/flipstream-io/sdk/issues/227)) ([8ae4981](https://github.com/flipstream-io/sdk/commit/8ae498154263e9ee954e51a68456b6cc0804121a))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Tests
|
|
92
|
+
|
|
93
|
+
* **typescript:** a keychain test follows its helper by its spawn ([#200](https://github.com/flipstream-io/sdk/issues/200)) ([58d747d](https://github.com/flipstream-io/sdk/commit/58d747dabff2c908cb392b7ccb7f23a3b665adee))
|
|
94
|
+
|
|
3
95
|
## [0.8.0](https://github.com/flipstream-io/sdk/compare/typescript-v0.7.0...typescript-v0.8.0) (2026-10-23)
|
|
4
96
|
|
|
5
97
|
|