@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.
Files changed (94) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +98 -348
  3. package/dist/api/account.d.ts +50 -0
  4. package/dist/api/account.js +102 -0
  5. package/dist/api/account.js.map +1 -0
  6. package/dist/api/backend.d.ts +18 -0
  7. package/dist/api/backend.js +35 -4
  8. package/dist/api/backend.js.map +1 -1
  9. package/dist/api/created.d.ts +1 -1
  10. package/dist/api/created.js +3 -2
  11. package/dist/api/created.js.map +1 -1
  12. package/dist/api/credentials.js +4 -4
  13. package/dist/api/credentials.js.map +1 -1
  14. package/dist/api/datasets.d.ts +94 -14
  15. package/dist/api/datasets.js +210 -59
  16. package/dist/api/datasets.js.map +1 -1
  17. package/dist/api/index.d.ts +4 -3
  18. package/dist/api/log.d.ts +45 -24
  19. package/dist/api/log.js +113 -40
  20. package/dist/api/log.js.map +1 -1
  21. package/dist/api/me.d.ts +2 -0
  22. package/dist/api/me.js +9 -5
  23. package/dist/api/me.js.map +1 -1
  24. package/dist/api/members.d.ts +69 -7
  25. package/dist/api/members.js +110 -32
  26. package/dist/api/members.js.map +1 -1
  27. package/dist/api/time.js +4 -3
  28. package/dist/api/time.js.map +1 -1
  29. package/dist/api/wallet.d.ts +8 -5
  30. package/dist/api/wallet.js +36 -24
  31. package/dist/api/wallet.js.map +1 -1
  32. package/dist/api/workspaces.d.ts +42 -7
  33. package/dist/api/workspaces.js +80 -20
  34. package/dist/api/workspaces.js.map +1 -1
  35. package/dist/auth/discovery.d.ts +19 -6
  36. package/dist/auth/discovery.js +25 -4
  37. package/dist/auth/discovery.js.map +1 -1
  38. package/dist/auth/signIn.d.ts +18 -14
  39. package/dist/auth/signIn.js +29 -22
  40. package/dist/auth/signIn.js.map +1 -1
  41. package/dist/core/call.d.ts +4 -1
  42. package/dist/core/call.js +26 -6
  43. package/dist/core/call.js.map +1 -1
  44. package/dist/core/deadline.d.ts +30 -0
  45. package/dist/core/deadline.js +51 -0
  46. package/dist/core/deadline.js.map +1 -0
  47. package/dist/core/invalid.d.ts +7 -0
  48. package/dist/core/invalid.js +22 -0
  49. package/dist/core/invalid.js.map +1 -0
  50. package/dist/core/names.d.ts +31 -3
  51. package/dist/core/names.js +26 -6
  52. package/dist/core/names.js.map +1 -1
  53. package/dist/core/notFound.d.ts +8 -0
  54. package/dist/core/notFound.js +8 -0
  55. package/dist/core/notFound.js.map +1 -0
  56. package/dist/core/result.d.ts +17 -12
  57. package/dist/core/result.js +5 -5
  58. package/dist/core/result.js.map +1 -1
  59. package/dist/core/retry.d.ts +5 -2
  60. package/dist/core/retry.js +6 -3
  61. package/dist/core/retry.js.map +1 -1
  62. package/dist/core/scope.d.ts +20 -0
  63. package/dist/core/scope.js +54 -0
  64. package/dist/core/scope.js.map +1 -0
  65. package/dist/flipstream.d.ts +151 -70
  66. package/dist/flipstream.js +67 -45
  67. package/dist/flipstream.js.map +1 -1
  68. package/dist/node/clientSecret.js +5 -5
  69. package/dist/node/clientSecret.js.map +1 -1
  70. package/dist/node/headless.d.ts +14 -6
  71. package/dist/node/headless.js +8 -6
  72. package/dist/node/headless.js.map +1 -1
  73. package/dist/node/index.d.ts +1 -1
  74. package/dist/node/index.js +1 -1
  75. package/dist/node/index.js.map +1 -1
  76. package/dist/node/keychainChild.js +27 -10
  77. package/dist/node/keychainChild.js.map +1 -1
  78. package/dist/node/keychainError.d.ts +3 -3
  79. package/dist/node/keychainStore.d.ts +16 -12
  80. package/dist/node/keychainStore.js +50 -28
  81. package/dist/node/keychainStore.js.map +1 -1
  82. package/dist/node/loopback.d.ts +8 -1
  83. package/dist/node/loopback.js +19 -2
  84. package/dist/node/loopback.js.map +1 -1
  85. package/dist/node/session.d.ts +17 -9
  86. package/dist/node/session.js +55 -44
  87. package/dist/node/session.js.map +1 -1
  88. package/dist/node/store.d.ts +35 -2
  89. package/dist/node/store.js +56 -12
  90. package/dist/node/store.js.map +1 -1
  91. package/dist/version.gen.js +1 -1
  92. package/docs/admin.md +503 -0
  93. package/docs/node-sign-in.md +60 -35
  94. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { type Credential } from './api/credentials.js';
2
- import { type Dataset, type DatasetListRequest, type DatasetType } from './api/datasets.js';
3
- import { type LogAddRequest, type LogEntry, type LogListRequest, type LogUpdateRequest } from './api/log.js';
2
+ import { type Dataset, type DatasetListRequest, type DatasetOrganizationListRequest, type DatasetType } from './api/datasets.js';
3
+ import { type LogAddRequest, type LogEntry, type LogListRequest, type LogMemberListRequest, type LogUpdateRequest } from './api/log.js';
4
4
  import { type Me } from './api/me.js';
5
5
  import { type Member } from './api/members.js';
6
6
  import type { Page, PageRequest } from './api/page.js';
@@ -56,7 +56,11 @@ export interface Identification {
56
56
  readonly conversationId?: string;
57
57
  }
58
58
  export type FlipstreamOptions = Identification & (
59
- /** The console: its own transport, which attaches the token and decides what may go. */
59
+ /**
60
+ * The console: its own transport, which attaches the token and decides what may go. When it
61
+ * rejects, the call rejects once none of its reads is still waited on: its other reads are ended
62
+ * through their signal, and the rejection is the first to reject in the order started (#349).
63
+ */
60
64
  {
61
65
  readonly transport: Transport;
62
66
  readonly hosts?: Hosts;
@@ -84,7 +88,13 @@ export type FlipstreamOptions = Identification & (
84
88
  export interface CallOptions {
85
89
  /** Ends the call at once: its answer is `aborted`. */
86
90
  readonly signal?: AbortSignal;
87
- /** The whole call's deadline, every attempt and wait included; the endpoint's own when left out. */
91
+ /**
92
+ * The whole call's deadline, every attempt and wait included; the endpoint's own when left out
93
+ * or `null`. A number of ms up to 2147483647, the most a timer holds, taken in whole ms, rounded
94
+ * down. One that can't be a deadline (not a number, NaN, ±Infinity, or more than that once rounded
95
+ * down) is a TypeError naming the call, with nothing sent. A spent deadline, under 1 ms or one
96
+ * spent before a request goes out, answers `timeout`, and sends nothing (#339).
97
+ */
88
98
  readonly deadlineMs?: number;
89
99
  /**
90
100
  * This call's conversation, in place of the client's, under the same rule. One that breaks it
@@ -93,7 +103,7 @@ export interface CallOptions {
93
103
  readonly conversationId?: string;
94
104
  /**
95
105
  * The caller's own W3C trace context, carried on: the call keeps its trace-id and flags, with a
96
- * parent-id of its own for each attempt, and its result's `traceId` is that trace-id (#251). One
106
+ * parent-id of its own for each attempt, and its result's `trace_id` is that trace-id (#251). One
97
107
  * that isn't a valid version-00 traceparent is dropped, as W3C Trace Context says, and the call
98
108
  * starts its own trace.
99
109
  */
@@ -141,8 +151,10 @@ export interface Flipstream {
141
151
  };
142
152
  /**
143
153
  * Your organisation's workspaces (#208), through the admin API. Each call reads your organisation
144
- * first, for its id, under one deadline for both reads (the call's, or 30 s); its failure is the
145
- * answer. A workspace of another organisation is `invalid`, never dropped or shown.
154
+ * first, for its id, and a call under one workspace reads you beside it, all under one deadline
155
+ * (the call's, or 30 s); the first failure is the answer. A workspace of another organisation is
156
+ * `invalid`, never dropped or shown. A call under one workspace answers `not_found` for one you
157
+ * don't open, as for one nobody has: see "The workspaces you open" in docs/admin.md (#372).
146
158
  */
147
159
  readonly workspaces: {
148
160
  /**
@@ -151,10 +163,17 @@ export interface Flipstream {
151
163
  * backend's, by name alone (D550): pages read at different times can overlap or skip a
152
164
  * workspace when workspaces are added, removed or renamed in between, or when two share a name.
153
165
  * A changed `total` shows some of that; an unchanged one doesn't prove none happened. For a
154
- * complete, stable list, read it in one page, of up to 1,000.
166
+ * complete, stable list, read it in one page, of up to 1,000. The list isn't held to the
167
+ * workspaces you open (#372's round 1, O1.F1): the backend scopes it only for an account whose
168
+ * roles are exactly `['viewer']`, so another account the SDK holds to its workspaces (a role
169
+ * read as none, say) can list ones every other call answers `not_found` for.
155
170
  */
156
171
  list(request?: PageRequest, options?: CallOptions): Promise<ApiResult<Page<Workspace>>>;
157
- /** One workspace, by its id. An id that can't stay one path segment is `refused` (`path`), with nothing sent. */
172
+ /**
173
+ * One workspace, by its id. An id that can't stay one path segment is `refused` (`path`), with
174
+ * nothing sent. Your organisation and you are read first, so one you don't open is `not_found`,
175
+ * exactly as one nobody has, with nothing under it read.
176
+ */
158
177
  get(request: {
159
178
  readonly workspace_id: string;
160
179
  }, options?: CallOptions): Promise<ApiResult<Workspace>>;
@@ -176,7 +195,8 @@ export interface Flipstream {
176
195
  /**
177
196
  * A rename is a person's, in the console (D542): it answers `needs_person`, with why and, where
178
197
  * the console can be named, the workspace's settings page. It never writes, and the name isn't
179
- * sent: the person types it there. A workspace that isn't yours is `not_found`, never handed off.
198
+ * sent: the person types it there. A workspace that isn't yours, or that you don't open, is
199
+ * `not_found`, never handed off.
180
200
  */
181
201
  rename(request: {
182
202
  readonly workspace_id: string;
@@ -190,24 +210,42 @@ export interface Flipstream {
190
210
  readonly workspace_id: string;
191
211
  }, options?: CallOptions): Promise<ApiResult<never>>;
192
212
  };
193
- /** A workspace's logbook (#218), on the admin host: its notes on time ranges. */
213
+ /**
214
+ * The logbook (#218, #295), on the admin host: a workspace's notes on time ranges, and one
215
+ * member's entries across your organisation's workspaces. A call under one workspace answers
216
+ * `not_found` for one you don't open, as for one nobody has: see "The workspaces you open" in
217
+ * docs/admin.md (#372).
218
+ */
194
219
  readonly log: {
195
220
  /**
196
- * One page of the workspace's entries, newest first by when they were written: the backend's
197
- * own order, since no other is asked for. When an entry was written never changes, so editing
198
- * one doesn't move it, but pages read at different times can overlap or skip an entry when one
199
- * is written or removed in between, and entries written at the same moment have no fixed order
200
- * among themselves. A changed `total` shows that something was added or removed; an unchanged
201
- * one doesn't prove nothing was. The workspace is read beside the list (#249), with your
202
- * organisation, under one deadline: one nobody has is `not_found`, and another organisation's is
203
- * `invalid`, never an empty page. An entry of another workspace or organisation makes the answer
204
- * `invalid`, never dropped. A limit or offset that isn't a whole number in range rejects, with
205
- * nothing sent, as every list's does.
221
+ * One page of entries: a workspace's logbook (`{ workspace_id }`), or one member's entries in every
222
+ * workspace of your organisation (`{ member_id }`, #295). Exactly one of the two: both, or neither,
223
+ * rejects with a TypeError, with nothing sent.
224
+ *
225
+ * A workspace's entries come newest first by when they were written: the backend's own order,
226
+ * since no other is asked for. When an entry was written never changes, so editing one doesn't
227
+ * move it, but pages read at different times can overlap or skip an entry when one is written
228
+ * or removed in between, and entries written at the same moment have no fixed order among
229
+ * themselves. A changed `total` shows that something was added or removed; an unchanged one
230
+ * doesn't prove nothing was. Your organisation and you are read first, then the workspace
231
+ * beside the list (#249, #372), under one deadline: one nobody has, or one you don't open, is
232
+ * `not_found`, and another organisation's is `invalid`, never an empty page. An entry of
233
+ * another workspace or organisation makes the answer `invalid`, never dropped. A limit or
234
+ * offset that isn't a whole number in range rejects, with nothing sent, as every list's does.
235
+ *
236
+ * A member's: your organisation, you and the member are read first, under the same deadline. A
237
+ * person who isn't a member, or a key, is `not_found`, and another organisation's member
238
+ * `invalid`, with no request for entries. Every entry must be the member's, your organisation's,
239
+ * and in a workspace you open (if your account names workspaces, only those, unless you're an
240
+ * owner, an admin or an editor): any other makes the answer `invalid`, never dropped. They come in
241
+ * the backend's order, newest written first, and page as a workspace's do.
206
242
  */
207
- list(request: LogListRequest, options?: CallOptions): Promise<ApiResult<Page<LogEntry>>>;
243
+ list(request: LogListRequest | LogMemberListRequest, options?: CallOptions): Promise<ApiResult<Page<LogEntry>>>;
208
244
  /**
209
- * One entry, by its id, read beside your organisation (#249); `not_found` when there's none, and
210
- * `invalid` when the answer is another entry, or another organisation's.
245
+ * One entry, by its id, read beside your organisation and you (#249, #372); `not_found` when
246
+ * there's none, or it's in a workspace you don't open, and `invalid` when the answer is another
247
+ * entry, or another organisation's. A failure of the entry's own read is the backend's, as it
248
+ * answered.
211
249
  */
212
250
  get(request: {
213
251
  readonly log_id: string;
@@ -217,8 +255,9 @@ export interface Flipstream {
217
255
  * `refused` (`fields`, naming them), and a description that isn't a non-blank string, a time
218
256
  * not written as `2026-10-05T00:00:00Z` (a fraction may follow the seconds, and an offset such
219
257
  * as `+02:00`, or none, may take the place of the `Z`), or a start after the end rejects with a
220
- * TypeError. The workspace is read first: one nobody has is `not_found`, and another
221
- * organisation's `invalid`, with nothing written. Times go as UTC instants; one with no offset is
258
+ * TypeError. Your organisation and you are read first, then the workspace: one nobody has, or
259
+ * one you don't open, is `not_found`, and another organisation's `invalid`, with nothing
260
+ * written. Times go as UTC instants; one with no offset is
222
261
  * read as UTC. Who may write is the backend's rule, not the SDK's: Owners, Admins and Editors
223
262
  * add; an Editor changes or removes only their own entries, and Owners and Admins any. Until the
224
263
  * backend enforces it (pulse-admin#161, for Editors), a Viewer can also add, change and remove
@@ -229,44 +268,80 @@ export interface Flipstream {
229
268
  add(request: LogAddRequest, options?: CallOptions): Promise<ApiResult<LogEntry>>;
230
269
  /**
231
270
  * An entry's words or range changed (#219), with the same rules as `add`, and at least one
232
- * change. The entry is read first (one that isn't yours is `not_found` or `invalid`, with
233
- * nothing written), then sent back whole: what you change, and the rest exactly as stored. When
234
- * you give a time, a start after the end, the stored one included, rejects with a TypeError, with
235
- * nothing written. Since the whole entry goes back, a change someone else made between the read
236
- * and the write is overwritten.
271
+ * change. The entry is read first, as `get` reads it (one that isn't yours, or is in a
272
+ * workspace you don't open, is `not_found` or `invalid`, with nothing written), then sent back
273
+ * whole: what you change, and the rest exactly as stored. When you give a time, a start after
274
+ * the end, the stored one included, rejects with a TypeError, with nothing written. Since the
275
+ * whole entry goes back, a change someone else made between the read and the write is
276
+ * overwritten.
237
277
  */
238
278
  update(request: LogUpdateRequest, options?: CallOptions): Promise<ApiResult<LogEntry>>;
239
279
  /**
240
280
  * An entry removed (#219), directly: a log entry isn't one of the hand-offs. The entry is read
241
- * first (one that isn't yours is `not_found` or `invalid`, with nothing removed); an ok is
242
- * `null`.
281
+ * first, as `get` reads it (one that isn't yours, or is in a workspace you don't open, is
282
+ * `not_found` or `invalid`, with nothing removed); an ok is `null`.
243
283
  */
244
284
  remove(request: {
245
285
  readonly log_id: string;
246
286
  }, options?: CallOptions): Promise<ApiResult<null>>;
247
287
  };
248
288
  /**
249
- * A workspace's datasets (#211), on the admin host: its uploads and connected accounts, the
250
- * backend's connections. Each call reads your organisation beside the datasets, and a list reads
251
- * its workspace too, under one deadline for every read (the call's, or 30 s). The organisation's
252
- * failure, then the workspace's, then the datasets', is the answer, and a dataset of another
253
- * organisation is `invalid`, never dropped or shown. The backend's answers embed each dataset's
254
- * sign-in, so a body that isn't its JSON is never kept: a failure of the dataset's own read or
255
- * write has no `text` (#279). The organisation's and the workspace's reads keep theirs.
289
+ * A workspace's datasets (#211), or your organisation's (#342), on the admin host: uploads and
290
+ * connected accounts, the backend's connections. Each call reads your organisation and you, under
291
+ * one deadline for every read (the call's, or 30 s). A workspace's calls read those first, then
292
+ * the workspace beside its datasets, so the organisation's failure, then yours, then the
293
+ * workspace's, then the datasets', is the answer; a dataset by its id is read beside them. A
294
+ * dataset of another organisation is
295
+ * `invalid`, never dropped or shown. The backend's answers embed each dataset's sign-in, so a
296
+ * body that isn't its JSON is never kept: a failure of the dataset's own read or write has no
297
+ * `text` (#279). The organisation's and the workspace's reads keep theirs. A call under one
298
+ * workspace answers `not_found` for one you don't open, as for one nobody has: see "The
299
+ * workspaces you open" in docs/admin.md (#372).
256
300
  */
257
301
  readonly datasets: {
258
302
  /**
259
303
  * One page of the workspace's datasets: `limit` (100 when left out, at most 1,000) and `offset`
260
304
  * (0). A limit or offset that isn't a whole number in range rejects with a TypeError, with
261
- * nothing sent. The order is the backend's, by name alone (D550): pages read at different
262
- * times can overlap or skip a dataset when datasets are added, removed or renamed in between,
263
- * or when two share a name. A changed `total` shows some of that; an unchanged one doesn't
264
- * prove none happened. For a complete, stable list, read it in one page, of up to 1,000. A
265
- * dataset of another workspace makes the answer `invalid`, never dropped. A workspace nobody has
266
- * is `not_found`, and another organisation's is `invalid`, never an empty page.
305
+ * nothing sent. The order is the backend's, by name alone (D550): pages read at different times
306
+ * can overlap or skip a dataset when datasets are added, removed or renamed in between, or when
307
+ * two share a name. A changed `total` shows some of that; an unchanged one doesn't prove none
308
+ * happened. For a complete, stable list, read it in one page, of up to 1,000. A dataset of
309
+ * another workspace makes the answer `invalid`, never dropped. A workspace nobody has, or one
310
+ * you don't open, is `not_found`, and another organisation's is `invalid`, never an empty page.
311
+ *
312
+ * `{ organization: true }` instead of a workspace (#342): your organisation's datasets, in every
313
+ * workspace you open, paged and ordered as a workspace's are. Exactly one of `workspace_id` and
314
+ * `organization: true`: both, neither, or an `organization` that isn't `true` rejects with a
315
+ * TypeError, with nothing sent. Your organisation is read first, since its id names the route,
316
+ * and the list once it answers, with you read beside both: two round trips in a row, under the
317
+ * same deadline. No workspace is read. Every dataset must be your organisation's and in a
318
+ * workspace you open (if your account names workspaces, only those, unless you're an owner, an
319
+ * admin or an editor): any other makes the answer `invalid`, never dropped. The backend holds a
320
+ * viewer to their workspaces too; this is the second check. Your organisation's failure (an id
321
+ * that can't name the route among them), then yours, then the datasets', is the answer.
322
+ */
323
+ list(request: DatasetListRequest | DatasetOrganizationListRequest, options?: CallOptions): Promise<ApiResult<Page<Dataset>>>;
324
+ /**
325
+ * How many datasets the workspace has (#364): `{ count }`, from the backend's own count, the
326
+ * total of one page of one dataset, read as `list` reads a page. Of that dataset only its
327
+ * workspace and organisation are read, so one `list` would refuse for anything else can't lose
328
+ * the count, while one of another workspace or organisation, or a page whose count is smaller
329
+ * than it or above 0 with no dataset on it, is `invalid`. The workspace is read beside it, by
330
+ * `list`'s rules for it: a workspace nobody has, or one you don't open, is `not_found`, and
331
+ * another organisation's `invalid`, never a count of 0. The organisation's failure, then yours,
332
+ * then the workspace's, then the count's, is the answer. A `workspace_id` that isn't a string
333
+ * rejects with a TypeError, with nothing sent. A count across your organisation isn't here yet.
334
+ */
335
+ count(request: {
336
+ readonly workspace_id: string;
337
+ }, options?: CallOptions): Promise<ApiResult<{
338
+ readonly count: number;
339
+ }>>;
340
+ /**
341
+ * One dataset, by its id, read beside your organisation and you; `not_found` when there's none,
342
+ * or it's in a workspace you don't open, and `invalid` when the answer is another dataset. A
343
+ * failure of the dataset's own read is the backend's, as it answered.
267
344
  */
268
- list(request: DatasetListRequest, options?: CallOptions): Promise<ApiResult<Page<Dataset>>>;
269
- /** One dataset, by its id; `not_found` when there's none, and `invalid` when the answer is another dataset. */
270
345
  get(request: {
271
346
  readonly dataset_id: string;
272
347
  }, options?: CallOptions): Promise<ApiResult<Dataset>>;
@@ -274,16 +349,17 @@ export interface Flipstream {
274
349
  * Pauses a dataset (#212): the answer is the `Dataset`, `active` false. Pausing a paused one
275
350
  * sends the same write and answers the same. Before anything is sent, a key other than
276
351
  * `dataset_id` is `refused` (`fields`, naming them), and an id that isn't a string rejects with
277
- * a TypeError. The dataset is read first, fresh: one nobody has is `not_found`, and another
278
- * organisation's `invalid`, with nothing written. Then `active` alone is sent, so a rename made
279
- * meanwhile stays. The dataset is read fresh again after the write, and the answer is that read:
280
- * one whose `active` isn't the one asked for is `invalid`, since the write may not have been
352
+ * a TypeError. The dataset is read first, fresh, beside your organisation and you: one nobody
353
+ * has, or one in a workspace you don't open, is `not_found`, and another organisation's
354
+ * `invalid`, with nothing written. Then `active` alone is sent, so a rename made meanwhile
355
+ * stays. The dataset is read fresh again after the write, and the answer is that read: one
356
+ * whose `active` isn't the one asked for is `invalid`, since the write may not have been
281
357
  * stored. That read comes after the write was sent, so its failure that would say nothing was
282
- * written (a 4xx kind, `refused`, `no_token`) is `invalid` too, naming its kind. Who may is
283
- * the backend's rule: Owners, Admins and Editors pause and resume, and a Viewer doesn't. Anyone
284
- * it refuses gets `forbidden`. A write is never tried again: only a refusal (a 4xx kind),
285
- * `refused` or `no_token` shows nothing was written. After any other failure it may have been;
286
- * pausing again is safe, since it's the same write.
358
+ * written (a 4xx kind, `refused`, `no_token`) is `invalid` too, naming its kind, with that
359
+ * read's status when it had one. Who may is the backend's rule: Owners, Admins and Editors
360
+ * pause and resume, and a Viewer doesn't. Anyone it refuses gets `forbidden`. A write is never
361
+ * tried again: only a refusal (a 4xx kind), `refused` or `no_token` shows nothing was written.
362
+ * After any other failure it may have been; pausing again is safe, since it's the same write.
287
363
  */
288
364
  pause(request: {
289
365
  readonly dataset_id: string;
@@ -295,9 +371,9 @@ export interface Flipstream {
295
371
  /**
296
372
  * Deleting a dataset is a person's to do, in the console (D542, D546): it removes the dataset's
297
373
  * data for good, and the console can't delete one yet. Never a write: it reads the dataset (one
298
- * nobody has is `not_found`, and another organisation's `invalid`), then answers `needs_person`
299
- * with `why`, and the dataset's page as `url`, with what it shows as `sees`, where a console can
300
- * be named.
374
+ * nobody has, or one in a workspace you don't open, is `not_found`, and another organisation's
375
+ * `invalid`), then answers `needs_person` with `why`, and the dataset's page as `url`, with
376
+ * what it shows as `sees`, where a console can be named.
301
377
  */
302
378
  delete(request: {
303
379
  readonly dataset_id: string;
@@ -345,7 +421,8 @@ export interface Flipstream {
345
421
  * your organisation first, for the wallet's id, under one deadline for both reads; its failure is
346
422
  * the answer. Who may read it is the wallet's rule, not the SDK's: today Owners and Admins, and
347
423
  * Editors too once pulse-wallet#15 lands. Anyone the wallet refuses gets `forbidden`, never an
348
- * empty ledger. Amounts are integer micro, and each answer says how many make a euro.
424
+ * empty ledger. Both reads answer null when your organisation has no wallet (#374). Amounts are
425
+ * integer micro, and every answer that holds them says how many make a euro, in `micro_per_euro`.
349
426
  */
350
427
  readonly wallet: {
351
428
  /**
@@ -355,18 +432,22 @@ export interface Flipstream {
355
432
  */
356
433
  balance(options?: CallOptions): Promise<ApiResult<Balance | null>>;
357
434
  /**
358
- * Your whole ledger, in one answer, with no paging. Its rows carry no wallet id, so the balance
359
- * is read beside it, and the ledger is answered only when that is your organisation's wallet.
435
+ * Your whole ledger, in one answer, with no paging, or null when the organisation has no
436
+ * wallet, as `balance()` answers: a wallet with no rows is an empty ledger, never null. Its rows
437
+ * carry no wallet id, so the balance is read beside it, and the ledger is answered only when
438
+ * that is your organisation's wallet. The balance settles no wallet: null, even when the
439
+ * ledger can't be read, and a ledger row then is `invalid`, as is a ledger answer the SDK
440
+ * can't read, which may hold rows.
360
441
  */
361
- transactions(options?: CallOptions): Promise<ApiResult<Ledger>>;
442
+ transactions(options?: CallOptions): Promise<ApiResult<Ledger | null>>;
362
443
  };
363
444
  /**
364
- * Your organisation's people (#220), from the auth host, each as `me()` answers you: one role by
365
- * D544's rule, and `null` for none and for Flipstream's staff. People, not keys: an API user, a
366
- * service account, is never listed, counted or answered (`get` of one is `not_found`), as the
367
- * console's People has it. An open invitation is listed, with an empty `first_name`. Each call
368
- * reads your organisation beside them, under one deadline for both reads (the call's, or 30 s).
369
- * The organisation's failure, then the people's, is the answer, and a person of another
445
+ * Your organisation's people (#220), from the auth host, each as `me()` answers you, their roles
446
+ * as `Member`'s `role`, `roles` and `unknown_roles` say (D544, #297). People, not keys: an API
447
+ * user, a service account, is never listed, counted or answered (`get` of one is `not_found`), as
448
+ * the console's People has it. An open invitation is listed, with an empty `first_name`. Each
449
+ * call reads your organisation beside them, under one deadline for both reads (the call's, or
450
+ * 30 s). The organisation's failure, then the people's, is the answer, and a person of another
370
451
  * organisation is `invalid`, never dropped or shown.
371
452
  */
372
453
  readonly members: {
@@ -1,6 +1,6 @@
1
1
  import { backend, consoleBase } from './api/backend.js';
2
2
  import { handOffCredential, listCredentials } from './api/credentials.js';
3
- import { getDataset, handOffDatasetDelete, listDatasets, listDatasetTypes, pauseDataset, resumeDataset } from './api/datasets.js';
3
+ import { countDatasets, getDataset, handOffDatasetDelete, listDatasets, listDatasetTypes, pauseDataset, resumeDataset } from './api/datasets.js';
4
4
  import { addLog, getLog, listLog, removeLog, updateLog } from './api/log.js';
5
5
  import { readMe } from './api/me.js';
6
6
  import { handOffOrganizationRename } from './api/organization.js';
@@ -8,6 +8,8 @@ import { getMember, listMembers } from './api/members.js';
8
8
  import { readBalance, readLedger } from './api/wallet.js';
9
9
  import { createWorkspace, handOffWorkspace, readWorkspace, readWorkspaces } from './api/workspaces.js';
10
10
  import { call } from './core/call.js';
11
+ import { callerWaitMs, deadlineIn } from './core/deadline.js';
12
+ import { withReads } from './core/scope.js';
11
13
  import { fetchTransport, isLoopbackHttp, tokenlessTransport } from './core/fetch.js';
12
14
  import { callerSender, identityOf, isConversationId, nodeVersion, sdkSender, traceFor, traceparent, valueHolds } from './core/identify.js';
13
15
  import { catalogGet, catalogList, consoleWarn } from './query/catalog.js';
@@ -122,14 +124,24 @@ export function createFlipstream(options) {
122
124
  return { ...spec, makeRequest };
123
125
  };
124
126
  /**
125
- * One SDK call (#251): one trace for every request it makes, the caller's when its traceparent is
126
- * one, and its result with that trace-id once a request carrying it went out.
127
+ * One SDK call (#251), `name` as its errors name it (`flipstream.catalog.list`): one trace for
128
+ * every request it makes, the caller's when its traceparent is one, and its result with that
129
+ * trace-id once a request carrying it went out. `run` gets its trace and its options, `deadlineMs`
130
+ * held to the one rule for a caller's wait (callerWaitMs, #340, #345). One that can't be a
131
+ * deadline is a TypeError naming the call, before anything is sent. A spent or fractional one is
132
+ * runtime data: it comes in whole ms, rounded down, and under 1 ms call() answers timeout with
133
+ * nothing sent. `null` is the endpoint's own, as left out is. `run` goes in a call scope
134
+ * (withReads, #349): it answers, or rejects, with no read still being waited on.
127
135
  */
128
- const asOneCall = async (callOptions = {}, run) => {
129
- const traced = { trace: traceFor(callOptions.traceparent), sent: false, ended: false, traceparents: [] };
136
+ const asOneCall = async (name, callOptions = {}, run) => {
137
+ const deadlineMs = callerWaitMs(`${name}: deadlineMs`, callOptions.deadlineMs, undefined);
138
+ const { deadlineMs: _given, ...rest } = callOptions;
139
+ void _given; // read once, so the unused-variables check keeps the one it drops
140
+ const options = deadlineMs === undefined ? rest : { ...rest, deadlineMs };
141
+ const traced = { trace: traceFor(options.traceparent), sent: false, ended: false, traceparents: [] };
130
142
  try {
131
- const result = await run(traced);
132
- return traced.sent ? { ...result, traceId: traced.trace.traceId } : result;
143
+ const result = await withReads((scope) => run(traced, options, scope));
144
+ return traced.sent ? { ...result, trace_id: traced.trace.traceId } : result;
133
145
  }
134
146
  finally {
135
147
  traced.ended = true;
@@ -137,8 +149,11 @@ export function createFlipstream(options) {
137
149
  outgoing.delete(header);
138
150
  }
139
151
  };
140
- /** One request of a call. `signedIn` is false for health alone, which says only who the SDK is (D535). */
141
- const send = (spec, callOptions, traced, signedIn = true) => {
152
+ /**
153
+ * One request of a call. `signedIn` is false for health alone, which says only who the SDK is
154
+ * (D535). `ended` is its SDK call's own end, for a read (#349).
155
+ */
156
+ const send = (spec, callOptions, traced, signedIn = true, ended) => {
142
157
  // One flag picks both the transport and what the request says: only the signed-in transport
143
158
  // checks the caller's values against the token, so a signed-out call can never carry them.
144
159
  const via = signedIn ? transport : signedOut;
@@ -149,24 +164,30 @@ export function createFlipstream(options) {
149
164
  const timed = deadlineMs === undefined ? spec : { ...spec, deadlineMs };
150
165
  // The auth server never gets them, as sign-in sends none (#192): me()'s reads there go bare.
151
166
  if (node === undefined || spec.service === 'auth')
152
- return call(via, timed, signal);
167
+ return call(via, timed, signal, ended);
153
168
  const sender = signedIn ? callerSender(identity, callOptions.conversationId ?? identity.conversationId, node) : sdkSender(node);
154
- return call(via, identified(timed, sender, traced), signal);
169
+ return call(via, identified(timed, sender, traced), signal, ended);
155
170
  };
156
- /** A call's reads under one deadline and one trace: each gets what is left of it (the call's, or 30 s). */
157
- const readsUnder = (callOptions, traced) => {
158
- const endsAt = Date.now() + (callOptions.deadlineMs ?? READS_DEADLINE_MS);
159
- return (spec) => send(spec, { ...callOptions, deadlineMs: Math.max(0, endsAt - Date.now()) }, traced);
171
+ /**
172
+ * A call's reads under one deadline and one trace: each gets what is left of it (the call's, or
173
+ * 30 s), read on the monotonic clock, so a wall clock stepped forward never sends a read with none
174
+ * left (#333). Each is recorded in the call's `scope`, a read under its end as well as the caller's
175
+ * signal, so the call can end it, and a write under the caller's alone, so it's only ever waited for
176
+ * (#349).
177
+ */
178
+ const readsUnder = (callOptions, traced, scope) => {
179
+ const deadline = deadlineIn(callOptions.deadlineMs ?? READS_DEADLINE_MS);
180
+ return (spec) => scope.track(send(spec, { ...callOptions, deadlineMs: deadline.left() }, traced, true, spec.effect === 'read' ? scope.signal : undefined));
160
181
  };
161
- /** `reads` as one SDK call, under one deadline and one trace. */
162
- const readsOf = (reads) => (callOptions = {}) => asOneCall(callOptions, (traced) => reads(readsUnder(callOptions, traced)));
182
+ /** `reads` as one SDK call, under one deadline, one trace and one scope. */
183
+ const readsOf = (name, reads) => (callOptions = {}) => asOneCall(name, callOptions, (traced, options, scope) => reads(readsUnder(options, traced, scope)));
163
184
  return {
164
185
  catalog: {
165
- list: (callOptions = {}) => asOneCall(callOptions, (traced) => send(catalogList(base, warn), callOptions, traced)),
186
+ list: (callOptions = {}) => asOneCall('flipstream.catalog.list', callOptions, (traced, options) => send(catalogList(base, warn), options, traced)),
166
187
  get(request, callOptions = {}) {
167
188
  const spec = catalogGet(base, request.source, warn);
168
189
  // Refused before anything is sent: the token function isn't asked, and nothing is spent.
169
- return spec === null ? Promise.resolve(refused('path')) : asOneCall(callOptions, (traced) => send(spec, callOptions, traced));
190
+ return spec === null ? Promise.resolve(refused('path')) : asOneCall('flipstream.catalog.get', callOptions, (traced, options) => send(spec, options, traced));
170
191
  },
171
192
  },
172
193
  // Async, so a request that isn't an object rejects, as D436's do, rather than throwing here.
@@ -174,53 +195,54 @@ export function createFlipstream(options) {
174
195
  const fields = unsentFields(request);
175
196
  // Refused before anything is sent, like catalog.get's: the token function isn't asked.
176
197
  return fields === null
177
- ? asOneCall(callOptions, (traced) => send(queryRun(base, request), callOptions, traced))
198
+ ? asOneCall('flipstream.query', callOptions, (traced, options) => send(queryRun(base, request), options, traced))
178
199
  : { ok: false, error: { kind: 'refused', reason: 'fields', fields } };
179
200
  },
180
- health: (callOptions = {}) => asOneCall(callOptions, (traced) => send(healthCheck(base), callOptions, traced, false)),
181
- me: readsOf((read) => readMe(seam, read)),
201
+ health: (callOptions = {}) => asOneCall('flipstream.health', callOptions, (traced, options) => send(healthCheck(base), options, traced, false)),
202
+ me: readsOf('flipstream.me', (read) => readMe(seam, read)),
182
203
  organization: {
183
- rename: async (_request, callOptions) => readsOf((read) => handOffOrganizationRename(seam, read))(callOptions),
204
+ rename: async (_request, callOptions) => readsOf('flipstream.organization.rename', (read) => handOffOrganizationRename(seam, read))(callOptions),
184
205
  },
185
206
  workspaces: {
186
207
  // Async, so a page that isn't one rejects, as D436's do, rather than throwing here.
187
- list: async (request = {}, callOptions) => readsOf((read) => readWorkspaces(seam, read, request))(callOptions),
188
- get: async (request, callOptions) => readsOf((read) => readWorkspace(seam, read, request.workspace_id))(callOptions),
189
- create: async (request, callOptions) => readsOf((send) => createWorkspace(seam, send, request))(callOptions),
190
- rename: async (request, callOptions) => readsOf((read) => handOffWorkspace(seam, read, request.workspace_id, 'workspace.rename'))(callOptions),
191
- delete: async (request, callOptions) => readsOf((read) => handOffWorkspace(seam, read, request.workspace_id, 'workspace.delete'))(callOptions),
208
+ list: async (request = {}, callOptions) => readsOf('flipstream.workspaces.list', (read) => readWorkspaces(seam, read, request))(callOptions),
209
+ get: async (request, callOptions) => readsOf('flipstream.workspaces.get', (read) => readWorkspace(seam, read, request.workspace_id))(callOptions),
210
+ create: async (request, callOptions) => readsOf('flipstream.workspaces.create', (send) => createWorkspace(seam, send, request))(callOptions),
211
+ rename: async (request, callOptions) => readsOf('flipstream.workspaces.rename', (read) => handOffWorkspace(seam, read, request.workspace_id, 'workspace.rename'))(callOptions),
212
+ delete: async (request, callOptions) => readsOf('flipstream.workspaces.delete', (read) => handOffWorkspace(seam, read, request.workspace_id, 'workspace.delete'))(callOptions),
192
213
  },
193
214
  log: {
194
- list: (request, callOptions) => readsOf((read) => listLog(seam, read, request))(callOptions),
195
- get: (request, callOptions) => readsOf((read) => getLog(seam, read, request))(callOptions),
196
- add: async (request, callOptions) => readsOf((send) => addLog(seam, send, request))(callOptions),
197
- update: async (request, callOptions) => readsOf((send) => updateLog(seam, send, request))(callOptions),
198
- remove: async (request, callOptions) => readsOf((send) => removeLog(seam, send, request))(callOptions),
215
+ list: (request, callOptions) => readsOf('flipstream.log.list', (read) => listLog(seam, read, request))(callOptions),
216
+ get: (request, callOptions) => readsOf('flipstream.log.get', (read) => getLog(seam, read, request))(callOptions),
217
+ add: async (request, callOptions) => readsOf('flipstream.log.add', (send) => addLog(seam, send, request))(callOptions),
218
+ update: async (request, callOptions) => readsOf('flipstream.log.update', (send) => updateLog(seam, send, request))(callOptions),
219
+ remove: async (request, callOptions) => readsOf('flipstream.log.remove', (send) => removeLog(seam, send, request))(callOptions),
199
220
  },
200
221
  datasets: {
201
- list: (request, callOptions) => readsOf((read) => listDatasets(seam, read, request))(callOptions),
202
- get: (request, callOptions) => readsOf((read) => getDataset(seam, read, request))(callOptions),
203
- pause: async (request, callOptions) => readsOf((send) => pauseDataset(seam, send, request))(callOptions),
204
- resume: async (request, callOptions) => readsOf((send) => resumeDataset(seam, send, request))(callOptions),
205
- delete: async (request, callOptions) => readsOf((read) => handOffDatasetDelete(seam, read, request))(callOptions),
222
+ list: (request, callOptions) => readsOf('flipstream.datasets.list', (read) => listDatasets(seam, read, request))(callOptions),
223
+ count: (request, callOptions) => readsOf('flipstream.datasets.count', (read) => countDatasets(seam, read, request))(callOptions),
224
+ get: (request, callOptions) => readsOf('flipstream.datasets.get', (read) => getDataset(seam, read, request))(callOptions),
225
+ pause: async (request, callOptions) => readsOf('flipstream.datasets.pause', (send) => pauseDataset(seam, send, request))(callOptions),
226
+ resume: async (request, callOptions) => readsOf('flipstream.datasets.resume', (send) => resumeDataset(seam, send, request))(callOptions),
227
+ delete: async (request, callOptions) => readsOf('flipstream.datasets.delete', (read) => handOffDatasetDelete(seam, read, request))(callOptions),
206
228
  },
207
229
  datasetTypes: {
208
230
  list: () => Promise.resolve(listDatasetTypes()),
209
231
  },
210
232
  credentials: {
211
233
  // Async, so a page that isn't one rejects, as D436's do, rather than throwing here.
212
- list: async (request = {}, callOptions) => readsOf((read) => listCredentials(seam, read, request))(callOptions),
213
- revoke: async (request, callOptions) => readsOf((read) => handOffCredential(seam, read, request.credential_id, 'credential.revoke'))(callOptions),
214
- delete: async (request, callOptions) => readsOf((read) => handOffCredential(seam, read, request.credential_id, 'credential.delete'))(callOptions),
234
+ list: async (request = {}, callOptions) => readsOf('flipstream.credentials.list', (read) => listCredentials(seam, read, request))(callOptions),
235
+ revoke: async (request, callOptions) => readsOf('flipstream.credentials.revoke', (read) => handOffCredential(seam, read, request.credential_id, 'credential.revoke'))(callOptions),
236
+ delete: async (request, callOptions) => readsOf('flipstream.credentials.delete', (read) => handOffCredential(seam, read, request.credential_id, 'credential.delete'))(callOptions),
215
237
  },
216
238
  wallet: {
217
- balance: readsOf((read) => readBalance(seam, read)),
218
- transactions: readsOf((read) => readLedger(seam, read)),
239
+ balance: readsOf('flipstream.wallet.balance', (read) => readBalance(seam, read)),
240
+ transactions: readsOf('flipstream.wallet.transactions', (read) => readLedger(seam, read)),
219
241
  },
220
242
  members: {
221
243
  // Async, so a page that isn't one rejects, as D436's do, rather than throwing here.
222
- list: async (request = {}, callOptions) => readsOf((read) => listMembers(seam, read, request))(callOptions),
223
- get: (request, callOptions) => readsOf((read) => getMember(seam, read, request))(callOptions),
244
+ list: async (request = {}, callOptions) => readsOf('flipstream.members.list', (read) => listMembers(seam, read, request))(callOptions),
245
+ get: (request, callOptions) => readsOf('flipstream.members.get', (read) => getMember(seam, read, request))(callOptions),
224
246
  },
225
247
  };
226
248
  }
@@ -1 +1 @@
1
- {"version":3,"file":"flipstream.js","sourceRoot":"","sources":["../src/flipstream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAmB,MAAM,sBAAsB,CAAA;AAC1F,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAA2D,MAAM,mBAAmB,CAAA;AAC1L,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAiF,MAAM,cAAc,CAAA;AAC3J,OAAO,EAAE,MAAM,EAAsB,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