@interop/was-client 0.14.1 → 0.14.3

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/dist/types.d.ts CHANGED
@@ -14,87 +14,15 @@
14
14
  */
15
15
  import type { IZcap, IDelegatedZcap, IRootZcap } from '@interop/data-integrity-core/zcap';
16
16
  import type { ISigner } from '@interop/data-integrity-core';
17
- import type { ActionInput, CollectionDescription as CoreCollectionDescription } from '@interop/storage-core';
17
+ import type { ActionInput } from '@interop/storage-core';
18
18
  export type { IZcap, IDelegatedZcap, IRootZcap, ISigner };
19
- declare module '@interop/storage-core' {
20
- interface ResourceMetadata {
21
- /**
22
- * The key-epoch id the Resource's content was encrypted under (an id from
23
- * the Collection's `encryption.epochs`). Client-declared: the server stores
24
- * it opaquely, never computes or verifies it. A sibling of `custom`, which
25
- * on an encrypted Collection is the opaque envelope and is full-replaced on
26
- * every metadata write.
27
- */
28
- epoch?: string;
29
- }
30
- interface ChangeDocument {
31
- /**
32
- * The key-epoch id the Resource was encrypted under, when the writer
33
- * declared one. Rides the feed so a replicating reader picks the right
34
- * epoch key without a `/meta` fetch per Resource.
35
- */
36
- epoch?: string;
37
- }
38
- interface ResourceSummary {
39
- /**
40
- * The key-epoch id the Resource was encrypted under, when the writer
41
- * declared one. Surfaced in listings so a reader can pick the right epoch
42
- * key without a `/meta` fetch per item.
43
- */
44
- epoch?: string;
45
- }
46
- }
47
- /**
48
- * One recipient's wrapped copy of an epoch's collection key -- the JWE
49
- * general-serialization `recipients` entry shape verbatim (`header` with
50
- * `kid`/`alg`/key-agreement members, plus the wrapped key as `encrypted_key`),
51
- * the same shape an EDV envelope's `recipients` array carries. Nothing secret:
52
- * public keys and wrapped-key ciphertext only.
53
- */
54
- export interface CollectionEncryptionRecipient {
55
- header: {
56
- kid: string;
57
- alg: string;
58
- [member: string]: unknown;
59
- };
60
- encrypted_key: string;
61
- }
62
- /**
63
- * One key epoch of an encrypted Collection: an opaque epoch `id` plus the
64
- * epoch's collection key wrapped once per recipient. Epochs are append-only;
65
- * removing a reader appends a fresh epoch that excludes it.
66
- */
67
- export interface CollectionEncryptionEpoch {
68
- id: string;
69
- recipients: CollectionEncryptionRecipient[];
70
- }
71
- /**
72
- * The client-side encryption marker for a Collection (see the storage-core doc
73
- * comment). Locally widened with the key-epoch public references (`epochs` /
74
- * `currentEpoch`) that a multi-recipient Collection carries: each epoch wraps a
75
- * collection key to every recipient, writes use `currentEpoch`, and removing a
76
- * reader appends a fresh epoch that excludes it.
77
- */
78
- export type CollectionEncryption = {
79
- scheme: 'edv';
80
- currentEpoch?: string;
81
- epochs?: CollectionEncryptionEpoch[];
82
- };
83
- /**
84
- * A Collection Description (see the storage-core doc comment), with the
85
- * locally-widened {@link CollectionEncryption} marker.
86
- */
87
- export type CollectionDescription = Omit<CoreCollectionDescription, 'encryption'> & {
88
- encryption?: CollectionEncryption;
89
- };
90
19
  /**
91
20
  * Re-export the shared WAS wire model from `@interop/storage-core`. The
92
21
  * resources-in-a-collection listing is `CollectionResourcesList` (formerly
93
22
  * `ResourceListing`) and the collections-in-a-space listing is `CollectionsList`
94
- * (formerly `CollectionListing`). (`CollectionDescription` / `CollectionEncryption`
95
- * are temporarily the locally-widened shapes above, until storage-core 0.3.4.)
23
+ * (formerly `CollectionListing`).
96
24
  */
97
- export type { Action, ActionInput, SpaceDescription, PolicyDocument, LinkSet, LinkSetEntry, CollectionSummary, CollectionsList, SpaceSummary, SpaceListing, ResourceSummary, CollectionResourcesList, ResourceMetadata, ResourceMetadataCustom, ImportStats, BackendReference, BackendDescriptor, BackendRegistration, BackendConnectionInput, BackendConnectionPublic, StorageLimit, CollectionUsage, BackendUsage, SpaceQuotaReport } from '@interop/storage-core';
25
+ export type { Action, ActionInput, SpaceDescription, CollectionDescription, CollectionEncryption, CollectionEncryptionEpoch, CollectionEncryptionRecipient, PolicyDocument, LinkSet, LinkSetEntry, CollectionSummary, CollectionsList, SpaceSummary, SpaceListing, ResourceSummary, CollectionResourcesList, ResourceMetadata, ResourceMetadataCustom, ImportStats, BackendReference, BackendDescriptor, BackendRegistration, BackendConnectionInput, BackendConnectionPublic, StorageLimit, CollectionUsage, BackendUsage, SpaceQuotaReport } from '@interop/storage-core';
98
26
  /**
99
27
  * A JSON-serializable value, the shape stored for JSON resources and
100
28
  * descriptions.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EACV,KAAK,EACL,cAAc,EACd,SAAS,EACV,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,IAAI,yBAAyB,EACnD,MAAM,uBAAuB,CAAA;AAE9B,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,CAAA;AASzD,OAAO,QAAQ,uBAAuB,CAAC;IACrC,UAAU,gBAAgB;QACxB;;;;;;WAMG;QACH,KAAK,CAAC,EAAE,MAAM,CAAA;KACf;IACD,UAAU,cAAc;QACtB;;;;WAIG;QACH,KAAK,CAAC,EAAE,MAAM,CAAA;KACf;IACD,UAAU,eAAe;QACvB;;;;WAIG;QACH,KAAK,CAAC,EAAE,MAAM,CAAA;KACf;CACF;AAED;;;;;;GAMG;AACH,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC/D,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,6BAA6B,EAAE,CAAA;CAC5C;AAED;;;;;;GAMG;AACH,MAA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,CAAC,EAAE,kBAAkB,CAAA;CAChC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,UAAU,CAAA;IACxB,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB"}
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.14.1",
4
+ "version": "0.14.3",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "pnpm run clear && tsc",
@@ -44,10 +44,10 @@
44
44
  "dependencies": {
45
45
  "@interop/data-integrity-core": "^8.2.0",
46
46
  "@interop/ed25519-signature": "^7.1.3",
47
- "@interop/edv-client": "^17.6.0",
47
+ "@interop/edv-client": "^17.6.1",
48
48
  "@interop/ezcap": "^7.3.2",
49
49
  "@interop/http-client": "^1.0.4",
50
- "@interop/minimal-cipher": "^7.6.0",
50
+ "@interop/minimal-cipher": "^7.6.1",
51
51
  "@interop/storage-core": "^0.3.4",
52
52
  "@interop/x25519-key-agreement-key": "^5.2.0",
53
53
  "@scure/base": "^2.2.0"