@interop/was-client 0.99.0 → 0.99.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.
- package/README.md +4 -1
- package/dist/WasClient.d.ts +3 -4
- package/dist/WasClient.d.ts.map +1 -1
- package/dist/WasClient.js +4 -9
- package/dist/WasClient.js.map +1 -1
- package/dist/edv/EdvCodec.d.ts.map +1 -1
- package/dist/edv/EdvCodec.js +36 -25
- package/dist/edv/EdvCodec.js.map +1 -1
- package/dist/edv/cipher.d.ts +6 -3
- package/dist/edv/cipher.d.ts.map +1 -1
- package/dist/edv/cipher.js +6 -3
- package/dist/edv/cipher.js.map +1 -1
- package/dist/edv/core.d.ts +1 -1
- package/dist/edv/core.d.ts.map +1 -1
- package/dist/edv/core.js +1 -1
- package/dist/edv/core.js.map +1 -1
- package/dist/edv/docCipher.d.ts +4 -2
- package/dist/edv/docCipher.d.ts.map +1 -1
- package/dist/edv/docCipher.js +6 -3
- package/dist/edv/docCipher.js.map +1 -1
- package/dist/edv/epochCrypto.d.ts +12 -4
- package/dist/edv/epochCrypto.d.ts.map +1 -1
- package/dist/edv/epochCrypto.js +37 -10
- package/dist/edv/epochCrypto.js.map +1 -1
- package/dist/edv/epochKeys.d.ts +6 -2
- package/dist/edv/epochKeys.d.ts.map +1 -1
- package/dist/edv/epochKeys.js +25 -14
- package/dist/edv/epochKeys.js.map +1 -1
- package/dist/edv/hmacKey.d.ts +7 -1
- package/dist/edv/hmacKey.d.ts.map +1 -1
- package/dist/edv/hmacKey.js +9 -3
- package/dist/edv/hmacKey.js.map +1 -1
- package/dist/edv/index.d.ts +1 -1
- package/dist/edv/index.d.ts.map +1 -1
- package/dist/edv/index.js +1 -1
- package/dist/edv/index.js.map +1 -1
- package/dist/edv/recipients.d.ts.map +1 -1
- package/dist/edv/recipients.js +2 -0
- package/dist/edv/recipients.js.map +1 -1
- package/dist/errors.d.ts +6 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +6 -4
- package/dist/errors.js.map +1 -1
- package/dist/internal/memo.d.ts +13 -4
- package/dist/internal/memo.d.ts.map +1 -1
- package/dist/internal/memo.js +18 -7
- package/dist/internal/memo.js.map +1 -1
- package/dist/internal/pagination.d.ts +30 -15
- package/dist/internal/pagination.d.ts.map +1 -1
- package/dist/internal/pagination.js +31 -17
- package/dist/internal/pagination.js.map +1 -1
- package/dist/sync/index.d.ts +4 -2
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +4 -2
- package/dist/sync/index.js.map +1 -1
- package/package.json +4 -4
package/dist/errors.js
CHANGED
|
@@ -193,10 +193,12 @@ export class KeyUnwrapError extends EncryptionError {
|
|
|
193
193
|
/**
|
|
194
194
|
* A fail-closed integrity error: a stored EDV envelope this reader DOES hold a
|
|
195
195
|
* key for failed to authenticate on decrypt -- its AEAD tag did not verify, so
|
|
196
|
-
* the ciphertext is corrupt or has been tampered with -- or a
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
196
|
+
* the ciphertext is corrupt or has been tampered with -- or a descriptor
|
|
197
|
+
* recipient entry addressed to this reader (its `kid` is this reader's own key
|
|
198
|
+
* id) failed its AES-KW integrity check, or a stored body does not verify
|
|
199
|
+
* against the resource id it was read under (an envelope bound to another
|
|
200
|
+
* resource, or a content-addressed document whose content id differs from its
|
|
201
|
+
* resource id). Distinct from
|
|
200
202
|
* {@link KeyUnwrapError}: that is the read/membership axis ("no key for this
|
|
201
203
|
* epoch"), whereas this is a data-integrity failure by a legitimate recipient.
|
|
202
204
|
* A subtype of {@link EncryptionError}, so existing `catch (EncryptionError)`
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;GAOG;AACH,OAAO,EAAE,YAAY,EAAgB,MAAM,uBAAuB,CAAA;AA4BlE;;GAEG;AACH,MAAM,OAAO,Q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AAK,GAAG;YACN,OAAO,IAAI,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QAC5C,KAAK,GAAG;YACN,OAAO,IAAI,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QACtD,KAAK,GAAG;YACN,OAAO,IAAI,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QACnD,KAAK,GAAG;YACN,OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QAClD,KAAK,GAAG;YACN,OAAO,IAAI,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACnD,CAAC;IAED,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,IAAI,GAAG,EAAE,CAAC;QAChD,OAAO,IAAI,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC7C,CAAC;IAED,OAAO,IAAI,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AACvC,CAAC"}
|
package/dist/internal/memo.d.ts
CHANGED
|
@@ -8,21 +8,30 @@
|
|
|
8
8
|
* properties: concurrent callers share one round-trip, a rejection is not
|
|
9
9
|
* cached (so the next call retries rather than replaying a stale failure), and
|
|
10
10
|
* a reset drops whatever is held. Written once here so the three cannot drift
|
|
11
|
-
* apart, which they had.
|
|
11
|
+
* apart, which they had. A user whose input cannot change under it may name
|
|
12
|
+
* the rejections it wants kept, so a permanent failure is raised once and then
|
|
13
|
+
* replayed instead of re-attempted.
|
|
12
14
|
*/
|
|
13
15
|
/**
|
|
14
16
|
* A memo of one lazily-resolved value. Holds the in-flight promise so
|
|
15
17
|
* concurrent callers share a single resolution, drops it on rejection so a
|
|
16
|
-
* transient failure does not permanently poison the memo
|
|
17
|
-
* {@link Memo.reset} for when the
|
|
18
|
+
* transient failure does not permanently poison the memo (unless `retain`
|
|
19
|
+
* claims that rejection), and exposes {@link Memo.reset} for when the
|
|
20
|
+
* underlying answer is known to have changed.
|
|
18
21
|
*/
|
|
19
22
|
export declare class Memo<T> {
|
|
20
23
|
#private;
|
|
21
24
|
/**
|
|
22
25
|
* @param resolve {function} resolves a fresh value; re-invoked after a
|
|
23
26
|
* rejection or a `reset()`, else called at most once
|
|
27
|
+
* @param [options] {object}
|
|
28
|
+
* @param [options.retain] {function} given a rejection's reason, whether
|
|
29
|
+
* to keep that rejection memoized (a failure a retry cannot change);
|
|
30
|
+
* default: keep none
|
|
24
31
|
*/
|
|
25
|
-
constructor(resolve: () => Promise<T
|
|
32
|
+
constructor(resolve: () => Promise<T>, { retain }?: {
|
|
33
|
+
retain?: (err: unknown) => boolean;
|
|
34
|
+
});
|
|
26
35
|
/**
|
|
27
36
|
* Whether a resolution is already held -- in flight or settled. Lets a caller
|
|
28
37
|
* tell, synchronously and before calling {@link Memo.get}, whether its own
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memo.d.ts","sourceRoot":"","sources":["../../src/internal/memo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"memo.d.ts","sourceRoot":"","sources":["../../src/internal/memo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,qBAAa,IAAI,CAAC,CAAC;;IAKjB;;;;;;;OAOG;gBAED,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,EAAE,MAAoB,EAAE,GAAE;QAAE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAA;KAAO;IAMvE;;;;;;OAMG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;OAIG;IACH,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC;IAmBjB;;;;OAIG;IACH,KAAK,IAAI,IAAI;CAGd"}
|
package/dist/internal/memo.js
CHANGED
|
@@ -8,23 +8,32 @@
|
|
|
8
8
|
* properties: concurrent callers share one round-trip, a rejection is not
|
|
9
9
|
* cached (so the next call retries rather than replaying a stale failure), and
|
|
10
10
|
* a reset drops whatever is held. Written once here so the three cannot drift
|
|
11
|
-
* apart, which they had.
|
|
11
|
+
* apart, which they had. A user whose input cannot change under it may name
|
|
12
|
+
* the rejections it wants kept, so a permanent failure is raised once and then
|
|
13
|
+
* replayed instead of re-attempted.
|
|
12
14
|
*/
|
|
13
15
|
/**
|
|
14
16
|
* A memo of one lazily-resolved value. Holds the in-flight promise so
|
|
15
17
|
* concurrent callers share a single resolution, drops it on rejection so a
|
|
16
|
-
* transient failure does not permanently poison the memo
|
|
17
|
-
* {@link Memo.reset} for when the
|
|
18
|
+
* transient failure does not permanently poison the memo (unless `retain`
|
|
19
|
+
* claims that rejection), and exposes {@link Memo.reset} for when the
|
|
20
|
+
* underlying answer is known to have changed.
|
|
18
21
|
*/
|
|
19
22
|
export class Memo {
|
|
20
23
|
#promise;
|
|
21
24
|
#resolve;
|
|
25
|
+
#retain;
|
|
22
26
|
/**
|
|
23
27
|
* @param resolve {function} resolves a fresh value; re-invoked after a
|
|
24
28
|
* rejection or a `reset()`, else called at most once
|
|
29
|
+
* @param [options] {object}
|
|
30
|
+
* @param [options.retain] {function} given a rejection's reason, whether
|
|
31
|
+
* to keep that rejection memoized (a failure a retry cannot change);
|
|
32
|
+
* default: keep none
|
|
25
33
|
*/
|
|
26
|
-
constructor(resolve) {
|
|
34
|
+
constructor(resolve, { retain = () => false } = {}) {
|
|
27
35
|
this.#resolve = resolve;
|
|
36
|
+
this.#retain = retain;
|
|
28
37
|
}
|
|
29
38
|
/**
|
|
30
39
|
* Whether a resolution is already held -- in flight or settled. Lets a caller
|
|
@@ -48,10 +57,12 @@ export class Memo {
|
|
|
48
57
|
const promise = this.#resolve();
|
|
49
58
|
// Memoize the in-flight promise so concurrent callers share one round-trip,
|
|
50
59
|
// but drop it on rejection so a transient failure does not permanently
|
|
51
|
-
// poison the memo.
|
|
60
|
+
// poison the memo. A rejection `retain` claims stays, so the next `get()`
|
|
61
|
+
// replays it rather than paying for an attempt that can only fail the same
|
|
62
|
+
// way. The identity guard avoids clobbering a newer promise.
|
|
52
63
|
this.#promise = promise;
|
|
53
|
-
promise.catch(() => {
|
|
54
|
-
if (this.#promise === promise) {
|
|
64
|
+
promise.catch((err) => {
|
|
65
|
+
if (this.#promise === promise && !this.#retain(err)) {
|
|
55
66
|
this.#promise = undefined;
|
|
56
67
|
}
|
|
57
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memo.js","sourceRoot":"","sources":["../../src/internal/memo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"memo.js","sourceRoot":"","sources":["../../src/internal/memo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,MAAM,OAAO,IAAI;IACf,QAAQ,CAAa;IACZ,QAAQ,CAAkB;IAC1B,OAAO,CAA2B;IAE3C;;;;;;;OAOG;IACH,YACE,OAAyB,EACzB,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,KAA6C,EAAE;QAErE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;IACvB,CAAC;IAED;;;;;;OAMG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAA;IACpC,CAAC;IAED;;;;OAIG;IACH,GAAG;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC,QAAQ,CAAA;QACtB,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;QAC/B,4EAA4E;QAC5E,uEAAuE;QACvE,0EAA0E;QAC1E,2EAA2E;QAC3E,6DAA6D;QAC7D,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,OAAO,CAAC,KAAK,CAAC,CAAC,GAAY,EAAQ,EAAE;YACnC,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;gBACpD,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAA;YAC3B,CAAC;QACH,CAAC,CAAC,CAAA;QACF,OAAO,OAAO,CAAA;IAChB,CAAC;IAED;;;;OAIG;IACH,KAAK;QACH,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAA;IAC3B,CAAC;CACF"}
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
* The helpers are generic over the listing envelope, so they serve all three
|
|
20
20
|
* paginated WAS listings: List Collection items (`CollectionResourcesList`),
|
|
21
21
|
* List Collections (`CollectionsList`), and List Spaces (`SpaceListing`). Each
|
|
22
|
-
* envelope shares the `{ items, next? }` shape
|
|
22
|
+
* envelope shares the `{ items, next?, totalItems? }` shape (`PageEnvelope`)
|
|
23
|
+
* that the traversal and the aggregation rely on.
|
|
23
24
|
*/
|
|
24
25
|
import type { CollectionResourcesList, IZcap, ResourceSummary } from '../types.js';
|
|
25
26
|
import type { ClientContext } from './request.js';
|
|
@@ -30,18 +31,22 @@ import type { ClientContext } from './request.js';
|
|
|
30
31
|
*/
|
|
31
32
|
export declare const DEFAULT_MAX_PAGES = 10000;
|
|
32
33
|
/**
|
|
33
|
-
* The shared shape of every paginated listing envelope: an `items` array
|
|
34
|
-
* optional `next` continuation URL
|
|
35
|
-
*
|
|
34
|
+
* The shared shape of every paginated listing envelope: an `items` array, an
|
|
35
|
+
* optional `next` continuation URL, and the whole listing's `totalItems` count
|
|
36
|
+
* (required on some listing types upstream, optional on others). The traversal
|
|
37
|
+
* core only touches `items` and `next`; `collectPages` also sets `totalItems`.
|
|
36
38
|
*/
|
|
37
39
|
type PageEnvelope = {
|
|
38
40
|
items: unknown[];
|
|
39
41
|
next?: string;
|
|
42
|
+
totalItems?: number;
|
|
40
43
|
};
|
|
41
44
|
/**
|
|
42
45
|
* The first page (already read) plus the means to fetch each following page.
|
|
43
46
|
* The `fetchPage` callback fetches a single page by absolute URL, returning
|
|
44
|
-
* `null` if it is missing/unauthorized
|
|
47
|
+
* `null` if it is missing/unauthorized. A `null` first page makes the walk
|
|
48
|
+
* itself `null`; a `null` page mid-walk fails the walk, since a `next` the
|
|
49
|
+
* server handed out has to resolve.
|
|
45
50
|
*/
|
|
46
51
|
export interface PageWalk<T extends PageEnvelope = CollectionResourcesList> {
|
|
47
52
|
first: T;
|
|
@@ -85,33 +90,43 @@ export declare function signedPageWalk<T extends PageEnvelope = CollectionResour
|
|
|
85
90
|
/**
|
|
86
91
|
* Lazily walks a list response page by page, yielding the first page and then
|
|
87
92
|
* each page reached by following `next`. Each `next` is resolved relative to the
|
|
88
|
-
* URL of the page that produced it
|
|
89
|
-
*
|
|
90
|
-
* page at a time, so a consumer can stop early without fetching the rest.
|
|
93
|
+
* URL of the page that produced it. Yields one page at a time, so a consumer
|
|
94
|
+
* can stop early without fetching the rest.
|
|
91
95
|
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
+
* The walk either reaches the server's end-of-list signal (a page with no
|
|
97
|
+
* `next`) or fails. A `next` outside the first page's origin or base path, a
|
|
98
|
+
* `next` carrying a username or password, a `next` pointing at an already-seen
|
|
99
|
+
* page (a cycle), a page that walks past `maxPages`, or a followed page that
|
|
100
|
+
* comes back `null` (missing/unauthorized) each fail with a `WasServerError`
|
|
101
|
+
* naming the listing URL. Ending silently on any of these would hand the
|
|
102
|
+
* consumer a short listing it cannot tell from a complete one.
|
|
96
103
|
*
|
|
97
104
|
* @param walk {PageWalk<T>}
|
|
98
105
|
* @param [options] {object}
|
|
99
106
|
* @param [options.maxPages] {number} the most pages to yield, counting the
|
|
100
107
|
* first (defaults to {@link DEFAULT_MAX_PAGES})
|
|
101
108
|
* @returns {AsyncGenerator<T>}
|
|
102
|
-
* @throws {WasServerError} when `next` leaves the listing
|
|
109
|
+
* @throws {WasServerError} when `next` leaves the listing, repeats a page, or
|
|
110
|
+
* fails to resolve, or when the page bound is hit
|
|
103
111
|
*/
|
|
104
112
|
export declare function walkPages<T extends PageEnvelope = CollectionResourcesList>(walk: PageWalk<T>, { maxPages }?: {
|
|
105
113
|
maxPages?: number;
|
|
106
114
|
}): AsyncGenerator<T>;
|
|
107
115
|
/**
|
|
108
116
|
* Eagerly follows every `next` link, aggregating all pages' items into a single
|
|
109
|
-
* envelope shaped like the first page
|
|
110
|
-
* has been collected
|
|
117
|
+
* envelope shaped like the first page, with `next` dropped since the whole list
|
|
118
|
+
* has been collected. Buffers the entire collection in memory; for a large
|
|
111
119
|
* collection prefer `walkPages` (one page at a time) or an item iterator.
|
|
112
120
|
*
|
|
121
|
+
* `totalItems` on the aggregate is always the count of the collected items.
|
|
122
|
+
* The server's value is not used, since a paginating server may omit it on a
|
|
123
|
+
* truncated page and the first page's value may be stale by the time the last
|
|
124
|
+
* page is read. The count is sound because `walkPages` either completes the
|
|
125
|
+
* listing or throws.
|
|
126
|
+
*
|
|
113
127
|
* @param walk {PageWalk<T>}
|
|
114
128
|
* @returns {Promise<T>}
|
|
129
|
+
* @throws {WasServerError} when the walk cannot complete the listing
|
|
115
130
|
*/
|
|
116
131
|
export declare function collectPages<T extends PageEnvelope = CollectionResourcesList>(walk: PageWalk<T>): Promise<T>;
|
|
117
132
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/internal/pagination.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/internal/pagination.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,KAAK,EACL,eAAe,EAChB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAKjD;;;;GAIG;AACH,eAAO,MA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3D,cAAc,CAAC,CAAC,CAAC,CA6CnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,YAAY,CAChC,CAAC,SAAS,YAAY,GAAG,uBAAuB,EAChD,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAe/B;AAED;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,CAAC,SAAS,YAAY,GAAG,uBAAuB,EAChD,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAE7C;AAED;;;;;;;;GAQG;AACH,wBAAuB,gBAAgB,CACrC,CAAC,SAAS,YAAY,GAAG,uBAAuB,EAChD,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,cAAc,CAAC,CAAC,CAAC,CAI7C;AAED;;;;;;;GAOG;AACH,wBAAuB,SAAS,CAC9B,KAAK,EAAE,aAAa,CAAC,uBAAuB,CAAC,GAC5C,cAAc,CAAC,eAAe,CAAC,CAIjC"}
|
|
@@ -90,21 +90,24 @@ function resolveNext({ next, baseUrl, firstUrl }) {
|
|
|
90
90
|
/**
|
|
91
91
|
* Lazily walks a list response page by page, yielding the first page and then
|
|
92
92
|
* each page reached by following `next`. Each `next` is resolved relative to the
|
|
93
|
-
* URL of the page that produced it
|
|
94
|
-
*
|
|
95
|
-
* page at a time, so a consumer can stop early without fetching the rest.
|
|
93
|
+
* URL of the page that produced it. Yields one page at a time, so a consumer
|
|
94
|
+
* can stop early without fetching the rest.
|
|
96
95
|
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
96
|
+
* The walk either reaches the server's end-of-list signal (a page with no
|
|
97
|
+
* `next`) or fails. A `next` outside the first page's origin or base path, a
|
|
98
|
+
* `next` carrying a username or password, a `next` pointing at an already-seen
|
|
99
|
+
* page (a cycle), a page that walks past `maxPages`, or a followed page that
|
|
100
|
+
* comes back `null` (missing/unauthorized) each fail with a `WasServerError`
|
|
101
|
+
* naming the listing URL. Ending silently on any of these would hand the
|
|
102
|
+
* consumer a short listing it cannot tell from a complete one.
|
|
101
103
|
*
|
|
102
104
|
* @param walk {PageWalk<T>}
|
|
103
105
|
* @param [options] {object}
|
|
104
106
|
* @param [options.maxPages] {number} the most pages to yield, counting the
|
|
105
107
|
* first (defaults to {@link DEFAULT_MAX_PAGES})
|
|
106
108
|
* @returns {AsyncGenerator<T>}
|
|
107
|
-
* @throws {WasServerError} when `next` leaves the listing
|
|
109
|
+
* @throws {WasServerError} when `next` leaves the listing, repeats a page, or
|
|
110
|
+
* fails to resolve, or when the page bound is hit
|
|
108
111
|
*/
|
|
109
112
|
export async function* walkPages(walk, { maxPages = DEFAULT_MAX_PAGES } = {}) {
|
|
110
113
|
const { first, fetchPage } = walk;
|
|
@@ -114,24 +117,28 @@ export async function* walkPages(walk, { maxPages = DEFAULT_MAX_PAGES } = {}) {
|
|
|
114
117
|
// an explicit default port) would let a next-link back to page 1 defeat the
|
|
115
118
|
// guard and yield its items twice.
|
|
116
119
|
const firstUrl = new URL(walk.firstUrl);
|
|
120
|
+
const listingUrl = firstUrl.toString();
|
|
117
121
|
yield first;
|
|
118
|
-
const seen = new Set([
|
|
122
|
+
const seen = new Set([listingUrl]);
|
|
119
123
|
let pageCount = 1;
|
|
120
|
-
let baseUrl =
|
|
124
|
+
let baseUrl = listingUrl;
|
|
121
125
|
let next = first.next;
|
|
122
126
|
while (next) {
|
|
123
127
|
const pageUrl = resolveNext({ next, baseUrl, firstUrl });
|
|
124
128
|
if (seen.has(pageUrl)) {
|
|
125
|
-
|
|
129
|
+
throw new WasServerError(`The listing at "${listingUrl}" served a \`next\` link ` +
|
|
130
|
+
`("${pageUrl}") back to a page already walked.`, { requestUrl: listingUrl });
|
|
126
131
|
}
|
|
127
132
|
if (pageCount >= maxPages) {
|
|
128
|
-
throw new WasServerError(`The listing at "${
|
|
129
|
-
`${maxPages} pages.`, { requestUrl:
|
|
133
|
+
throw new WasServerError(`The listing at "${listingUrl}" did not end within ` +
|
|
134
|
+
`${maxPages} pages.`, { requestUrl: listingUrl });
|
|
130
135
|
}
|
|
131
136
|
seen.add(pageUrl);
|
|
132
137
|
const page = await fetchPage(pageUrl);
|
|
133
138
|
if (page === null) {
|
|
134
|
-
|
|
139
|
+
throw new WasServerError(`The listing at "${listingUrl}" served a \`next\` link ` +
|
|
140
|
+
`("${pageUrl}") that answered with no listing (missing or ` +
|
|
141
|
+
'unauthorized).', { requestUrl: pageUrl });
|
|
135
142
|
}
|
|
136
143
|
pageCount += 1;
|
|
137
144
|
yield page;
|
|
@@ -141,12 +148,19 @@ export async function* walkPages(walk, { maxPages = DEFAULT_MAX_PAGES } = {}) {
|
|
|
141
148
|
}
|
|
142
149
|
/**
|
|
143
150
|
* Eagerly follows every `next` link, aggregating all pages' items into a single
|
|
144
|
-
* envelope shaped like the first page
|
|
145
|
-
* has been collected
|
|
151
|
+
* envelope shaped like the first page, with `next` dropped since the whole list
|
|
152
|
+
* has been collected. Buffers the entire collection in memory; for a large
|
|
146
153
|
* collection prefer `walkPages` (one page at a time) or an item iterator.
|
|
147
154
|
*
|
|
155
|
+
* `totalItems` on the aggregate is always the count of the collected items.
|
|
156
|
+
* The server's value is not used, since a paginating server may omit it on a
|
|
157
|
+
* truncated page and the first page's value may be stale by the time the last
|
|
158
|
+
* page is read. The count is sound because `walkPages` either completes the
|
|
159
|
+
* listing or throws.
|
|
160
|
+
*
|
|
148
161
|
* @param walk {PageWalk<T>}
|
|
149
162
|
* @returns {Promise<T>}
|
|
163
|
+
* @throws {WasServerError} when the walk cannot complete the listing
|
|
150
164
|
*/
|
|
151
165
|
export async function collectPages(walk) {
|
|
152
166
|
let aggregate;
|
|
@@ -160,7 +174,7 @@ export async function collectPages(walk) {
|
|
|
160
174
|
}
|
|
161
175
|
}
|
|
162
176
|
// `walkPages` always yields `first`, so `aggregate` is set here.
|
|
163
|
-
const result = { ...aggregate, items };
|
|
177
|
+
const result = { ...aggregate, items, totalItems: items.length };
|
|
164
178
|
delete result.next;
|
|
165
179
|
return result;
|
|
166
180
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../src/internal/pagination.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../src/internal/pagination.ts"],"names":[],"mappings":"AA8BA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAA;AAuBvC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAEjC,EACA,QAAQ,EACR,SAAS,EAIV;IACC,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,CAAA;IACvC,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAA;AAC/D,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAGlC,OAAsB,EACtB,EAAE,QAAQ,EAAE,UAAU,EAA4C;IAElE,OAAO,aAAa,CAAI;QACtB,QAAQ;QACR,SAAS,EAAE,KAAK,EAAC,GAAG,EAAC,EAAE,CACrB,UAAU,CACR,MAAM,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CACpE;KACJ,CAAC,CAAA;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAS,WAAW,CAAC,EACnB,IAAI,EACJ,OAAO,EACP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,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;AAClD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,gBAAgB,CAErC,IAAwB;IACxB,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,SAAS,CAC9B,KAA6C;IAE7C,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QAC/B,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;AACH,CAAC"}
|
package/dist/sync/index.d.ts
CHANGED
|
@@ -42,8 +42,10 @@
|
|
|
42
42
|
* (`KeyUnwrapError`: the epoch is on the descriptor but this reader holds no
|
|
43
43
|
* key for it, so a refresh cannot help). So is the tamper signal
|
|
44
44
|
* (`IntegrityError`: the stored body does not verify against the resource id
|
|
45
|
-
* it was read under
|
|
46
|
-
*
|
|
45
|
+
* it was read under, an envelope a held key opened fails its AEAD check, or
|
|
46
|
+
* the recipient entry addressed to this reader fails its key-wrap check).
|
|
47
|
+
* `EncryptionError`, the fail-closed umbrella both `KeyUnwrapError` and
|
|
48
|
+
* `IntegrityError` fall under, rides along. So does the
|
|
47
49
|
* affordance gate (`NotSupportedError`), a permanent refusal raised before any
|
|
48
50
|
* request: by a guarded write whose pinned read returned no `ETag` validator
|
|
49
51
|
* (`/log`, `/edv`, and the client's own content-addressed store), and by a
|
package/dist/sync/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,WAAW,CAAA;AAIlB,OAAO,EACL,UAAU,IAAI,WAAW,EACzB,YAAY,EACZ,iBAAiB,EAClB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AAErB,YAAY,EACV,IAAI,EACJ,cAAc,EACd,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACV,MAAM,YAAY,CAAA;AAMnB,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC1E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA"}
|
package/dist/sync/index.js
CHANGED
|
@@ -42,8 +42,10 @@
|
|
|
42
42
|
* (`KeyUnwrapError`: the epoch is on the descriptor but this reader holds no
|
|
43
43
|
* key for it, so a refresh cannot help). So is the tamper signal
|
|
44
44
|
* (`IntegrityError`: the stored body does not verify against the resource id
|
|
45
|
-
* it was read under
|
|
46
|
-
*
|
|
45
|
+
* it was read under, an envelope a held key opened fails its AEAD check, or
|
|
46
|
+
* the recipient entry addressed to this reader fails its key-wrap check).
|
|
47
|
+
* `EncryptionError`, the fail-closed umbrella both `KeyUnwrapError` and
|
|
48
|
+
* `IntegrityError` fall under, rides along. So does the
|
|
47
49
|
* affordance gate (`NotSupportedError`), a permanent refusal raised before any
|
|
48
50
|
* request: by a guarded write whose pinned read returned no `ETag` validator
|
|
49
51
|
* (`/log`, `/edv`, and the client's own content-addressed store), and by a
|
package/dist/sync/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,WAAW,CAAA;AAClB,sEAAsE;AACtE,6EAA6E;AAC7E,SAAS;AACT,OAAO,EACL,UAAU,IAAI,WAAW,EACzB,YAAY,EACZ,iBAAiB,EAClB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AAmBrB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/was-client",
|
|
3
3
|
"description": "A developer-friendly client for Wallet Attached Storage (WAS) servers.",
|
|
4
|
-
"version": "0.99.
|
|
4
|
+
"version": "0.99.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "pnpm run clear && tsc",
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
"@interop/capability-agent": "^0.2.2",
|
|
84
84
|
"@interop/data-integrity-core": "^8.9.0",
|
|
85
85
|
"@interop/ed25519-signature": "^7.2.5",
|
|
86
|
-
"@interop/edv-client": "^17.9.
|
|
86
|
+
"@interop/edv-client": "^17.9.4",
|
|
87
87
|
"@interop/ezcap": "^7.5.4",
|
|
88
88
|
"@interop/http-client": "^1.0.5",
|
|
89
|
-
"@interop/minimal-cipher": "^7.11.
|
|
90
|
-
"@interop/storage-core": "^0.
|
|
89
|
+
"@interop/minimal-cipher": "^7.11.1",
|
|
90
|
+
"@interop/storage-core": "^0.41.0",
|
|
91
91
|
"@interop/vh-resource-log": "^0.9.0",
|
|
92
92
|
"@interop/x25519-key-agreement-key": "^5.4.3",
|
|
93
93
|
"@noble/hashes": "^2.3.0",
|