@interop/was-client 0.22.0 → 0.23.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 (73) hide show
  1. package/README.md +12 -11
  2. package/dist/Collection.d.ts +28 -25
  3. package/dist/Collection.d.ts.map +1 -1
  4. package/dist/Collection.js +55 -51
  5. package/dist/Collection.js.map +1 -1
  6. package/dist/Resource.d.ts +7 -7
  7. package/dist/Resource.d.ts.map +1 -1
  8. package/dist/Resource.js +19 -18
  9. package/dist/Resource.js.map +1 -1
  10. package/dist/Space.d.ts +3 -2
  11. package/dist/Space.d.ts.map +1 -1
  12. package/dist/Space.js +5 -4
  13. package/dist/Space.js.map +1 -1
  14. package/dist/WasClient.d.ts +19 -17
  15. package/dist/WasClient.d.ts.map +1 -1
  16. package/dist/WasClient.js +23 -21
  17. package/dist/WasClient.js.map +1 -1
  18. package/dist/codec.d.ts +16 -15
  19. package/dist/codec.d.ts.map +1 -1
  20. package/dist/edv/EdvCodec.d.ts +2 -2
  21. package/dist/edv/EdvCodec.d.ts.map +1 -1
  22. package/dist/edv/EdvCodec.js +29 -28
  23. package/dist/edv/EdvCodec.js.map +1 -1
  24. package/dist/edv/WasTransport.d.ts +9 -8
  25. package/dist/edv/WasTransport.d.ts.map +1 -1
  26. package/dist/edv/WasTransport.js +9 -8
  27. package/dist/edv/WasTransport.js.map +1 -1
  28. package/dist/edv/constants.js +1 -1
  29. package/dist/edv/descriptorStore.d.ts +119 -0
  30. package/dist/edv/descriptorStore.d.ts.map +1 -0
  31. package/dist/edv/{markerStore.js → descriptorStore.js} +41 -40
  32. package/dist/edv/descriptorStore.js.map +1 -0
  33. package/dist/edv/docCipher.d.ts +31 -29
  34. package/dist/edv/docCipher.d.ts.map +1 -1
  35. package/dist/edv/docCipher.js +26 -24
  36. package/dist/edv/docCipher.js.map +1 -1
  37. package/dist/edv/epochCrypto.d.ts +8 -8
  38. package/dist/edv/epochCrypto.d.ts.map +1 -1
  39. package/dist/edv/epochCrypto.js +15 -14
  40. package/dist/edv/epochCrypto.js.map +1 -1
  41. package/dist/edv/epochKeys.d.ts +18 -15
  42. package/dist/edv/epochKeys.d.ts.map +1 -1
  43. package/dist/edv/epochKeys.js +20 -19
  44. package/dist/edv/epochKeys.js.map +1 -1
  45. package/dist/edv/epochMac.d.ts +11 -10
  46. package/dist/edv/epochMac.d.ts.map +1 -1
  47. package/dist/edv/epochMac.js +24 -23
  48. package/dist/edv/epochMac.js.map +1 -1
  49. package/dist/edv/index.d.ts +8 -7
  50. package/dist/edv/index.d.ts.map +1 -1
  51. package/dist/edv/index.js +7 -6
  52. package/dist/edv/index.js.map +1 -1
  53. package/dist/edv/recipients.d.ts +31 -30
  54. package/dist/edv/recipients.d.ts.map +1 -1
  55. package/dist/edv/recipients.js +83 -80
  56. package/dist/edv/recipients.js.map +1 -1
  57. package/dist/errors.d.ts +2 -2
  58. package/dist/errors.js +2 -2
  59. package/dist/internal/codec.d.ts +8 -8
  60. package/dist/internal/codec.d.ts.map +1 -1
  61. package/dist/internal/codec.js +12 -12
  62. package/dist/internal/codec.js.map +1 -1
  63. package/dist/internal/describe.d.ts +3 -3
  64. package/dist/sync/envelope.d.ts +2 -2
  65. package/dist/sync/envelope.js +2 -2
  66. package/dist/sync/provisioning.d.ts +10 -10
  67. package/dist/sync/provisioning.js +9 -9
  68. package/dist/sync/types.d.ts +4 -4
  69. package/dist/types.d.ts +5 -5
  70. package/package.json +2 -2
  71. package/dist/edv/markerStore.d.ts +0 -118
  72. package/dist/edv/markerStore.d.ts.map +0 -1
  73. package/dist/edv/markerStore.js.map +0 -1
package/README.md CHANGED
@@ -575,9 +575,10 @@ stores faithfully). Two things drive it, kept separate:
575
575
 
576
576
  - **Policy** (is this collection encrypted?) is declared on the collection
577
577
  itself: `createCollection({ encryption: { scheme: 'edv' } })` writes a
578
- non-secret `encryption` marker to the Collection Description. Any authorized
579
- reader -- including a delegated consumer that did **not** create the
580
- collection -- discovers it by reading the Description, so it knows to decrypt.
578
+ non-secret `encryption` descriptor to the Collection Description. Any
579
+ authorized reader -- including a delegated consumer that did **not** create
580
+ the collection -- discovers it by reading the Description, so it knows to
581
+ decrypt.
581
582
  - **Keys** come from an `encryption` provider you pass to `WasClient` (built
582
583
  from the opt-in `@interop/was-client/edv` subpath, so plaintext consumers
583
584
  never pull the crypto graph). It is a pure **keystore**: `resolveKeys` returns
@@ -585,7 +586,7 @@ stores faithfully). Two things drive it, kept separate:
585
586
  opaque JWE envelopes.
586
587
 
587
588
  The ordinary `Collection`/`Resource` handles then transparently encrypt on write
588
- and decrypt on read for any collection the marker (or an override) declares
589
+ and decrypt on read for any collection the descriptor (or an override) declares
589
590
  encrypted.
590
591
 
591
592
  ```ts
@@ -600,7 +601,7 @@ const encryption = createEdvEncryption({
600
601
  })
601
602
  const was = WasClient.fromSigner({ serverUrl, signer, encryption })
602
603
 
603
- // Declare the collection encrypted (writes the marker). The returned handle is
604
+ // Declare the collection encrypted (writes the descriptor). The returned handle is
604
605
  // pre-seeded, so the first write encrypts with no extra round-trip.
605
606
  const vault = await was
606
607
  .space(spaceId)
@@ -608,13 +609,13 @@ const vault = await was
608
609
  const { id } = await vault.add({ secret: 'hello' }) // encrypted; id is an EDV id
609
610
  const back = await vault.get(id) // { secret: 'hello' } -- decrypted
610
611
 
611
- // A consumer that did not create it discovers the marker and decrypts with its
612
+ // A consumer that did not create it discovers the descriptor and decrypts with its
612
613
  // own keys -- no override needed; one cached read of the Description:
613
614
  const same = was.space(spaceId).collection('vault')
614
- await same.get(id) // reads the marker, then decrypts
615
+ await same.get(id) // reads the descriptor, then decrypts
615
616
  ```
616
617
 
617
- The switch is the **marker**: a handle encrypts a collection when its
618
+ The switch is the **descriptor**: a handle encrypts a collection when its
618
619
  Description declares `encryption` (resolution reads the Description once, then
619
620
  caches -- no round-trip for plaintext-only clients or when an override is set).
620
621
  Keys are then **required**: if the collection is declared encrypted but your
@@ -631,9 +632,9 @@ const vault = was.space(spaceId).collection('vault', {
631
632
  })
632
633
  ```
633
634
 
634
- **Migrating a pre-marker vault** (created before the marker existed, keys-only):
635
- re-declare it once with
636
- `collection.configure({ encryption: { scheme: 'edv' } })` (the marker is
635
+ **Migrating a pre-descriptor vault** (created before the descriptor existed,
636
+ keys-only): re-declare it once with
637
+ `collection.configure({ encryption: { scheme: 'edv' } })` (the descriptor is
637
638
  set-once: declaring it on a collection that lacks one is allowed, changing or
638
639
  clearing an existing one is rejected). Until then, a per-handle override reads
639
640
  it correctly.
@@ -14,8 +14,8 @@ export declare class Collection {
14
14
  * @param options.collectionId {string}
15
15
  * @param [options.capability] {IZcap} - capability attached to every request
16
16
  * @param [options.encryption] {EncryptionOverride} - per-handle encryption
17
- * override; wins over the Collection's declared marker and skips the
18
- * marker-discovery round-trip
17
+ * override; wins over the Collection's declared descriptor and skips the
18
+ * descriptor-discovery round-trip
19
19
  */
20
20
  constructor({ context, spaceId, collectionId, capability, encryption }: {
21
21
  context: ClientContext;
@@ -42,14 +42,15 @@ export declare class Collection {
42
42
  * nor `encryption` is supplied, this fails closed rather than sending a PUT
43
43
  * body that would silently drop an existing collection's `backend` (a
44
44
  * data-placement change) or trip `encryption-immutable` by clearing its
45
- * marker on a replace-semantics server. Pass `force: true` to proceed anyway
45
+ * descriptor on a replace-semantics server. Pass `force: true` to proceed
46
+ * anyway
46
47
  * -- e.g. when creating a new collection through a handle (or use
47
48
  * `space.createCollection()`, which does not merge).
48
49
  *
49
50
  * @param desc {CollectionWritableFields} the fields to merge; `encryption`
50
- * declares the client-side encryption marker, which is set-once on the
51
+ * declares the client-side encryption descriptor, which is set-once on the
51
52
  * server (it may be added to a Collection that lacks one, but
52
- * changing/clearing an existing marker is rejected -- `ConflictError`,
53
+ * changing/clearing an existing descriptor is rejected -- `ConflictError`,
53
54
  * `encryption-immutable`)
54
55
  * @param [desc.force] {boolean} proceed even when the current description
55
56
  * is unreadable and `backend`/`encryption` are omitted (see above)
@@ -73,16 +74,17 @@ export declare class Collection {
73
74
  etag?: string;
74
75
  } | null>;
75
76
  /**
76
- * Writes (replaces) the Collection Description, optionally as a compare-and-swap
77
- * against a prior `ETag` (`ifMatch`, from {@link describeWithEtag}) so a
78
- * concurrent writer cannot be silently clobbered -- a stale validator surfaces
79
- * as `PreconditionFailedError` (412). Sends the writable fields as the full
80
- * body; omit a field to drop it (replace semantics), so callers doing CAS pass
81
- * every field forward. Returns the new `ETag` and the fields written.
77
+ * Writes (replaces) the Collection Description, optionally as a
78
+ * compare-and-swap against a prior `ETag` (`ifMatch`, from {@link
79
+ * describeWithEtag}) so a concurrent writer cannot be silently clobbered -- a
80
+ * stale validator surfaces as `PreconditionFailedError` (412). Sends the
81
+ * writable fields as the full body; omit a field to drop it (replace
82
+ * semantics), so callers doing CAS pass every field forward. Returns the new
83
+ * `ETag` and the fields written.
82
84
  *
83
85
  * This is the generic description-CAS primitive the key-epoch recipient
84
86
  * operations build on (add/remove a reader is a CAS of the `encryption`
85
- * marker); it is not epoch-specific.
87
+ * descriptor); it is not epoch-specific.
86
88
  *
87
89
  * @param description {CollectionWritableFields}
88
90
  * @param options {object}
@@ -138,9 +140,10 @@ export declare class Collection {
138
140
  */
139
141
  get(resourceId: string): Promise<Json | Blob | null>;
140
142
  /**
141
- * Creates or replaces a resource by id (upsert). Forwards the conditional-write
142
- * options (`ifMatch` / `ifNoneMatch`) to `Resource.put`; see it for the
143
- * `conditional-writes` semantics. Returns the stored resource's new `etag`.
143
+ * Creates or replaces a resource by id (upsert). Forwards the
144
+ * conditional-write options (`ifMatch` / `ifNoneMatch`) to `Resource.put`;
145
+ * see it for the `conditional-writes` semantics. Returns the stored
146
+ * resource's new `etag`.
144
147
  *
145
148
  * @param resourceId {string}
146
149
  * @param data {ResourceData}
@@ -162,19 +165,19 @@ export declare class Collection {
162
165
  * pagination links, buffering every page into a single list (the returned
163
166
  * envelope omits `next`). Convenient, but holds the whole collection in memory
164
167
  * -- for a large collection prefer `listPages()` or `listItems()`, which stream
165
- * one page at a time and allow stopping early. Returns `null` if the collection
166
- * is missing or not visible to you (404 conflation caveat).
168
+ * one page at a time and allow stopping early. Returns `null` if the
169
+ * collection is missing or not visible to you (404 conflation caveat).
167
170
  *
168
171
  * @returns {Promise<CollectionResourcesList | null>}
169
172
  */
170
173
  list(): Promise<CollectionResourcesList | null>;
171
174
  /**
172
175
  * Lazily yields the listing one page at a time, following the server's `next`
173
- * links on demand (each page fetched with the same authorization). Use this to
174
- * stream a large collection in constant memory or to stop early. Yields nothing
175
- * if the collection is missing or not visible to you (404 conflation caveat) --
176
- * unlike `list()`, the iterator does not distinguish that from an empty
177
- * collection.
176
+ * links on demand (each page fetched with the same authorization). Use this
177
+ * to stream a large collection in constant memory or to stop early. Yields
178
+ * nothing if the collection is missing or not visible to you (404 conflation
179
+ * caveat) -- unlike `list()`, the iterator does not distinguish that from an
180
+ * empty collection.
178
181
  *
179
182
  * @returns {AsyncGenerator<CollectionResourcesList>}
180
183
  */
@@ -224,9 +227,9 @@ export declare class Collection {
224
227
  grant(options: GrantOptions): Promise<IDelegatedZcap>;
225
228
  /**
226
229
  * Reads the collection's access-control policy. Returns `null` when no policy
227
- * is set (or it is not visible to you). Managing a policy is a controller-level
228
- * operation; a capability scoped to the collection does not cover its policy
229
- * sub-resource.
230
+ * is set (or it is not visible to you). Managing a policy is a
231
+ * controller-level operation; a capability scoped to the collection does not
232
+ * cover its policy sub-resource.
230
233
  *
231
234
  * @returns {Promise<PolicyDocument | null>}
232
235
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../src/Collection.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAiC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,qBAAqB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param [options.capability] {IZcap} - capability attached to every request
41
41
  * @param [options.encryption] {EncryptionOverride} - per-handle encryption
42
- * override; wins over the Collection's declared marker and skips the
43
- * marker-discovery round-trip
42
+ * override; wins over the Collection's declared descriptor and skips the
43
+ * descriptor-discovery round-trip
44
44
  */
45
45
  constructor({ context, spaceId, collectionId, capability, encryption }) {
46
46
  // Guard the id against the Reserved Path Segment Registry up front
@@ -99,14 +99,15 @@ export class Collection {
99
99
  /**
100
100
  * Resolves (once, then caches) the codec for this collection's reads and
101
101
  * writes: the identity codec for a plaintext collection, or the encrypting
102
- * codec when this collection is declared encrypted -- by a per-handle override
103
- * or its `encryption` marker -- and the client's keystore supplies its keys.
104
- * An encrypted collection the client cannot key for fails closed (throws), and
105
- * a successful marker read happens at most once per handle (memoized here) -- a
106
- * fresh handle to the same collection re-reads it, so retain the handle to
107
- * reuse it. A failed resolution (e.g. a transient 500/network error during
108
- * marker discovery) is not memoized: the cache is cleared so the next call
109
- * retries rather than re-throwing the stale error forever.
102
+ * codec when this collection is declared encrypted -- by a per-handle
103
+ * override or its `encryption` descriptor -- and the client's keystore
104
+ * supplies its keys. An encrypted collection the client cannot key for fails
105
+ * closed (throws), and a successful descriptor read happens at most once per
106
+ * handle (memoized here) -- a fresh handle to the same collection re-reads
107
+ * it, so retain the handle to reuse it. A failed resolution (e.g. a transient
108
+ * 500/network error during descriptor discovery) is not memoized: the cache
109
+ * is cleared so the next call retries rather than re-throwing the stale error
110
+ * forever.
110
111
  *
111
112
  * @returns {Promise<ResourceCodec>}
112
113
  */
@@ -137,14 +138,15 @@ export class Collection {
137
138
  * nor `encryption` is supplied, this fails closed rather than sending a PUT
138
139
  * body that would silently drop an existing collection's `backend` (a
139
140
  * data-placement change) or trip `encryption-immutable` by clearing its
140
- * marker on a replace-semantics server. Pass `force: true` to proceed anyway
141
+ * descriptor on a replace-semantics server. Pass `force: true` to proceed
142
+ * anyway
141
143
  * -- e.g. when creating a new collection through a handle (or use
142
144
  * `space.createCollection()`, which does not merge).
143
145
  *
144
146
  * @param desc {CollectionWritableFields} the fields to merge; `encryption`
145
- * declares the client-side encryption marker, which is set-once on the
147
+ * declares the client-side encryption descriptor, which is set-once on the
146
148
  * server (it may be added to a Collection that lacks one, but
147
- * changing/clearing an existing marker is rejected -- `ConflictError`,
149
+ * changing/clearing an existing descriptor is rejected -- `ConflictError`,
148
150
  * `encryption-immutable`)
149
151
  * @param [desc.force] {boolean} proceed even when the current description
150
152
  * is unreadable and `backend`/`encryption` are omitted (see above)
@@ -159,7 +161,7 @@ export class Collection {
159
161
  throw unreadableDescriptionError({
160
162
  operation: `configure collection "${this.id}"`,
161
163
  consequence: "merging forward could silently drop an existing collection's " +
162
- 'backend or encryption marker',
164
+ 'backend or encryption descriptor',
163
165
  advice: 'Supply `backend`/`encryption` explicitly, use a read-capable ' +
164
166
  'capability, or pass `force: true` if you are creating a new ' +
165
167
  'collection.'
@@ -168,7 +170,7 @@ export class Collection {
168
170
  // Merge every current field forward (mirror `Space.configure`): a
169
171
  // replace-semantics server drops anything omitted from the PUT body, so
170
172
  // `configure({ name })` on an EDV collection would otherwise wipe its
171
- // `backend` or trip `encryption-immutable` by clearing the marker.
173
+ // `backend` or trip `encryption-immutable` by clearing the descriptor.
172
174
  const name = desc.name ?? current?.name;
173
175
  const backend = desc.backend ?? current?.backend;
174
176
  const encryption = desc.encryption ?? current?.encryption;
@@ -179,12 +181,12 @@ export class Collection {
179
181
  capability: this.#capability,
180
182
  json: { id: this.id, ...fields }
181
183
  });
182
- // Adding the encryption marker flips this collection from plaintext to
184
+ // Adding the encryption descriptor flips this collection from plaintext to
183
185
  // encrypted server-side. Drop any codec memoized from the prior (plaintext)
184
- // marker so the next read/write re-resolves it -- otherwise a `put` would
185
- // reuse the cached identity codec and write server-visible plaintext into
186
- // the now-encrypted collection. Child resource handles share this codec via
187
- // their thunk, so resetting here propagates to them too.
186
+ // descriptor so the next read/write re-resolves it -- otherwise a `put`
187
+ // would reuse the cached identity codec and write server-visible plaintext
188
+ // into the now-encrypted collection. Child resource handles share this
189
+ // codec via their thunk, so resetting here propagates to them too.
188
190
  if (desc.encryption) {
189
191
  this.#codecHolder.reset();
190
192
  }
@@ -222,16 +224,17 @@ export class Collection {
222
224
  };
223
225
  }
224
226
  /**
225
- * Writes (replaces) the Collection Description, optionally as a compare-and-swap
226
- * against a prior `ETag` (`ifMatch`, from {@link describeWithEtag}) so a
227
- * concurrent writer cannot be silently clobbered -- a stale validator surfaces
228
- * as `PreconditionFailedError` (412). Sends the writable fields as the full
229
- * body; omit a field to drop it (replace semantics), so callers doing CAS pass
230
- * every field forward. Returns the new `ETag` and the fields written.
227
+ * Writes (replaces) the Collection Description, optionally as a
228
+ * compare-and-swap against a prior `ETag` (`ifMatch`, from {@link
229
+ * describeWithEtag}) so a concurrent writer cannot be silently clobbered -- a
230
+ * stale validator surfaces as `PreconditionFailedError` (412). Sends the
231
+ * writable fields as the full body; omit a field to drop it (replace
232
+ * semantics), so callers doing CAS pass every field forward. Returns the new
233
+ * `ETag` and the fields written.
231
234
  *
232
235
  * This is the generic description-CAS primitive the key-epoch recipient
233
236
  * operations build on (add/remove a reader is a CAS of the `encryption`
234
- * marker); it is not epoch-specific.
237
+ * descriptor); it is not epoch-specific.
235
238
  *
236
239
  * @param description {CollectionWritableFields}
237
240
  * @param options {object}
@@ -248,14 +251,14 @@ export class Collection {
248
251
  json: { id: this.id, ...fields },
249
252
  headers: writeHeaders({ precondition: { ifMatch: options.ifMatch } })
250
253
  });
251
- // Writing the `encryption` marker can rotate the key epoch (the recipient
252
- // operations CAS this field) or flip the collection from plaintext to
253
- // encrypted. Drop any memoized codec -- bound at construction to the prior
254
- // marker's write key/epoch -- so the next read/write re-resolves it under
255
- // the new marker; otherwise a `put` on the same handle would keep encrypting
256
- // under the stale epoch, whose key a just-removed reader still holds. Child
257
- // resource handles share this codec via their thunk, so resetting here
258
- // propagates to them too.
254
+ // Writing the `encryption` descriptor can rotate the key epoch (the
255
+ // recipient operations CAS this field) or flip the collection from
256
+ // plaintext to encrypted. Drop any memoized codec -- bound at construction
257
+ // to the prior descriptor's write key/epoch -- so the next read/write
258
+ // re-resolves it under the new descriptor; otherwise a `put` on the same
259
+ // handle would keep encrypting under the stale epoch, whose key a
260
+ // just-removed reader still holds. Child resource handles share this codec
261
+ // via their thunk, so resetting here propagates to them too.
259
262
  if (description.encryption !== undefined) {
260
263
  this.#codecHolder.reset();
261
264
  }
@@ -305,9 +308,9 @@ export class Collection {
305
308
  features: () => this.#features.get(),
306
309
  // A per-resource encryption override resolves its own codec (honoring the
307
310
  // override); without one, share this collection's resolved codec so the
308
- // resource handle does not repeat the marker-discovery round-trip. The two
309
- // are mutually exclusive: the Resource ignores `encryption` when `codec`
310
- // is supplied.
311
+ // resource handle does not repeat the descriptor-discovery round-trip.
312
+ // The two are mutually exclusive: the Resource ignores `encryption` when
313
+ // `codec` is supplied.
311
314
  ...(options.encryption !== undefined
312
315
  ? { encryption: options.encryption }
313
316
  : { codec: () => this.#codec() })
@@ -398,9 +401,10 @@ export class Collection {
398
401
  return this.resource(resourceId).get();
399
402
  }
400
403
  /**
401
- * Creates or replaces a resource by id (upsert). Forwards the conditional-write
402
- * options (`ifMatch` / `ifNoneMatch`) to `Resource.put`; see it for the
403
- * `conditional-writes` semantics. Returns the stored resource's new `etag`.
404
+ * Creates or replaces a resource by id (upsert). Forwards the
405
+ * conditional-write options (`ifMatch` / `ifNoneMatch`) to `Resource.put`;
406
+ * see it for the `conditional-writes` semantics. Returns the stored
407
+ * resource's new `etag`.
404
408
  *
405
409
  * @param resourceId {string}
406
410
  * @param data {ResourceData}
@@ -442,8 +446,8 @@ export class Collection {
442
446
  * pagination links, buffering every page into a single list (the returned
443
447
  * envelope omits `next`). Convenient, but holds the whole collection in memory
444
448
  * -- for a large collection prefer `listPages()` or `listItems()`, which stream
445
- * one page at a time and allow stopping early. Returns `null` if the collection
446
- * is missing or not visible to you (404 conflation caveat).
449
+ * one page at a time and allow stopping early. Returns `null` if the
450
+ * collection is missing or not visible to you (404 conflation caveat).
447
451
  *
448
452
  * @returns {Promise<CollectionResourcesList | null>}
449
453
  */
@@ -452,11 +456,11 @@ export class Collection {
452
456
  }
453
457
  /**
454
458
  * Lazily yields the listing one page at a time, following the server's `next`
455
- * links on demand (each page fetched with the same authorization). Use this to
456
- * stream a large collection in constant memory or to stop early. Yields nothing
457
- * if the collection is missing or not visible to you (404 conflation caveat) --
458
- * unlike `list()`, the iterator does not distinguish that from an empty
459
- * collection.
459
+ * links on demand (each page fetched with the same authorization). Use this
460
+ * to stream a large collection in constant memory or to stop early. Yields
461
+ * nothing if the collection is missing or not visible to you (404 conflation
462
+ * caveat) -- unlike `list()`, the iterator does not distinguish that from an
463
+ * empty collection.
460
464
  *
461
465
  * @returns {AsyncGenerator<CollectionResourcesList>}
462
466
  */
@@ -530,9 +534,9 @@ export class Collection {
530
534
  }
531
535
  /**
532
536
  * Reads the collection's access-control policy. Returns `null` when no policy
533
- * is set (or it is not visible to you). Managing a policy is a controller-level
534
- * operation; a capability scoped to the collection does not cover its policy
535
- * sub-resource.
537
+ * is set (or it is not visible to you). Managing a policy is a
538
+ * controller-level operation; a capability scoped to the collection does not
539
+ * cover its policy sub-resource.
536
540
  *
537
541
  * @returns {Promise<PolicyDocument | null>}
538
542
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.js","sourceRoot":"","sources":["../src/Collection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;GAIG;AACH,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,KAAK,EACN,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE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WAAW;SAC7B,CAAC,CAAA;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW;QACf,OAAO,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE;YACjC,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAA;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO;QACX,OAAO,QAAQ,CAAU,IAAI,CAAC,QAAQ,EAAE;YACtC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;YAC9C,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,OAAO;QACX,OAAO,QAAQ,CAAoB,IAAI,CAAC,QAAQ,EAAE;YAChD,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;YAC9C,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,KAAK;QACT,OAAO,QAAQ,CAAe,IAAI,CAAC,QAAQ,EAAE;YAC3C,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;YAC5C,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -101,13 +101,13 @@ export declare class Resource {
101
101
  * Conditional writes (the backend's `conditional-writes` feature): pass
102
102
  * `ifMatch` (the ETag from a prior read/write) for an update-if-unchanged, or
103
103
  * `ifNoneMatch: true` for a create-if-absent. A failed precondition throws
104
- * `PreconditionFailedError` (412). On an encrypted collection these are managed
105
- * automatically by the codec (the EDV `sequence` becomes the enforced ETag), so
106
- * the explicit options are for plaintext collections -- and because the codec
107
- * pre-reads the current document to compute them, updating an existing
108
- * encrypted document needs read access (a PUT-only capability can only
109
- * create, and only against a backend advertising `conditional-writes`; see
110
- * `upsertResource`). Returns the new `etag`.
104
+ * `PreconditionFailedError` (412). On an encrypted collection these are
105
+ * managed automatically by the codec (the EDV `sequence` becomes the enforced
106
+ * ETag), so the explicit options are for plaintext collections -- and because
107
+ * the codec pre-reads the current document to compute them, updating an
108
+ * existing encrypted document needs read access (a PUT-only capability can
109
+ * only create, and only against a backend advertising `conditional-writes`;
110
+ * see `upsertResource`). Returns the new `etag`.
111
111
  *
112
112
  * @param data {ResourceData}
113
113
  * @param options {object}
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.d.ts","sourceRoot":"","sources":["../src/Resource.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAc1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAkBnB,qBAAa,QAAQ;;IACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IA8BnB;;;;;;;;;;;;;;;;OAgBG;gBACS,EACV,OAAO,EACP,OAAO,EACP,YAAY,EACZ,UAAU,EACV,UAAU,EACV,KAAK,EACL,QAAQ,EACR,UAAU,EACX,EAAE;QACD,OAAO,EAAE,aAAa,CAAA;QACtB,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,MAAM,CAAA;QACpB,UAAU,EAAE,MAAM,CAAA;QAClB,UAAU,CAAC,EAAE,KAAK,CAAA;QAClB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAA;QACpC,QA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GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAkCpE;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,OAAO,CACX,IAAI,GAAE;QAAE,MAAM,CAAC,EAAE,sBAAsB,CAAA;KAAO,EAC9C,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAO,GACxD,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAyC7B;;;;;;;;;;OAUG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1C;;;;;;OAMG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ1D;;;;;;OAMG;IACG,SAAS,IAAI,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAOjD;;;;;OAKG;IACG,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAQtD;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAOhC;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAOlC;;;;;OAKG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAMnC"}
package/dist/Resource.js CHANGED
@@ -33,18 +33,19 @@ export class Resource {
33
33
  * Resolves the codec for this resource: the parent collection's shared codec
34
34
  * when this handle came from `collection.resource(id)`, otherwise one
35
35
  * resolved (and memoized per handle) for its own collection. A standalone
36
- * resource discovers its collection's `encryption` marker (one GET on the
36
+ * resource discovers its collection's `encryption` descriptor (one GET on the
37
37
  * collection, cached per handle) unless a per-handle override is set, and
38
38
  * fails closed if it cannot key an encrypted collection. A fresh standalone
39
- * handle re-reads the marker, so retain the handle to reuse it. A failed
40
- * resolution (e.g. a transient 500/network error during marker discovery) is
41
- * not memoized: the cache is cleared so the next call retries rather than
39
+ * handle re-reads the descriptor, so retain the handle to reuse it. A failed
40
+ * resolution (e.g. a transient 500/network error during descriptor discovery)
41
+ * is not memoized: the cache is cleared so the next call retries rather than
42
42
  * re-throwing the stale error forever.
43
43
  *
44
44
  * A handle obtained via `collection.resource(id)` delegates to the parent's
45
45
  * shared resolver on every call rather than memoizing locally: the parent
46
46
  * already memoizes (so this adds no round-trip), and delegating lets a parent
47
- * reset (e.g. after `configure()` adds the encryption marker) propagate here.
47
+ * reset (e.g. after `configure()` adds the encryption descriptor) propagate
48
+ * here.
48
49
  */
49
50
  #codec;
50
51
  /**
@@ -74,12 +75,12 @@ export class Resource {
74
75
  constructor({ context, spaceId, collectionId, resourceId, capability, codec, features, encryption }) {
75
76
  // Guard the id against the Reserved Path Segment Registry up front, so a
76
77
  // reserved id from caller input can never be mis-targeted at a
77
- // collection-level endpoint. `resourcePath(s, c, 'policy')` is byte-identical
78
- // to the collection policy path, so an unguarded `resource('policy').delete()`
79
- // would silently wipe the collection's access-control policy; the same
80
- // collision exists for `backend` / `quota` / `linkset` / `meta`. Guarding in
81
- // the constructor covers every operation (read, delete, meta, policy, put),
82
- // not just writes.
78
+ // collection-level endpoint. `resourcePath(s, c, 'policy')` is
79
+ // byte-identical to the collection policy path, so an unguarded
80
+ // `resource('policy').delete()` would silently wipe the collection's
81
+ // access-control policy; the same collision exists for `backend` / `quota`
82
+ // / `linkset` / `meta`. Guarding in the constructor covers every operation
83
+ // (read, delete, meta, policy, put), not just writes.
83
84
  assertNotReserved({ id: resourceId, kind: 'resource' });
84
85
  this.#context = context;
85
86
  this.spaceId = spaceId;
@@ -222,13 +223,13 @@ export class Resource {
222
223
  * Conditional writes (the backend's `conditional-writes` feature): pass
223
224
  * `ifMatch` (the ETag from a prior read/write) for an update-if-unchanged, or
224
225
  * `ifNoneMatch: true` for a create-if-absent. A failed precondition throws
225
- * `PreconditionFailedError` (412). On an encrypted collection these are managed
226
- * automatically by the codec (the EDV `sequence` becomes the enforced ETag), so
227
- * the explicit options are for plaintext collections -- and because the codec
228
- * pre-reads the current document to compute them, updating an existing
229
- * encrypted document needs read access (a PUT-only capability can only
230
- * create, and only against a backend advertising `conditional-writes`; see
231
- * `upsertResource`). Returns the new `etag`.
226
+ * `PreconditionFailedError` (412). On an encrypted collection these are
227
+ * managed automatically by the codec (the EDV `sequence` becomes the enforced
228
+ * ETag), so the explicit options are for plaintext collections -- and because
229
+ * the codec pre-reads the current document to compute them, updating an
230
+ * existing encrypted document needs read access (a PUT-only capability can
231
+ * only create, and only against a backend advertising `conditional-writes`;
232
+ * see `upsertResource`). Returns the new `etag`.
232
233
  *
233
234
  * @param data {ResourceData}
234
235
  * @param options {object}
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../src/Resource.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAY7B;;;;;;;;;;;GAWG;AACH,SAAS,aAAa,CAAC,QAAsB;IAC3C,OAAO,QAAQ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AKG;IACH,KAAK,CAAC,WAAW;QACf,OAAO,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE;YACjC,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF"}
package/dist/Space.d.ts CHANGED
@@ -75,7 +75,7 @@ export declare class Space {
75
75
  * @param [desc.encryption] {CollectionEncryption} declare the collection
76
76
  * client-side encrypted (e.g. `{ scheme: 'edv' }`). The returned handle is
77
77
  * pre-seeded with a matching encryption override, so the immediate next
78
- * write encrypts without a marker-discovery round-trip.
78
+ * write encrypts without a descriptor-discovery round-trip.
79
79
  * @returns {Promise<Collection>}
80
80
  */
81
81
  createCollection(desc?: {
@@ -132,7 +132,8 @@ export declare class Space {
132
132
  * connection (the re-consent path), use {@link updateBackend}.
133
133
  *
134
134
  * @param registration {BackendRegistration} the backend to register
135
- * (`{ id, provider, connection: { kind, ... }, name?, storageMode?, features? }`)
135
+ * (`{ id, provider, connection: { kind, ... }, name?, storageMode?,
136
+ * features? }`)
136
137
  * @returns {Promise<BackendDescriptor>} the sanitized descriptor of the
137
138
  * newly registered backend
138
139
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Space.d.ts","sourceRoot":"","sources":["../src/Space.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAiB1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,cAAc,EACd,KAAK,EACL,WAAW,EACX,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,YAAY,CAAA;AAEnB,qBAAa,KAAK;;IAChB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IAKnB;;;;;OAKG;g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