@tinycloud/node-sdk 2.2.0-beta.0 → 2.2.0-beta.2

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/index.cjs CHANGED
@@ -18057,6 +18057,24 @@ var DelegatedAccess = class {
18057
18057
  get hooks() {
18058
18058
  return this._hooks;
18059
18059
  }
18060
+ /**
18061
+ * Export the handles needed to rehydrate this activated delegation via
18062
+ * `TinyCloudNode.restoreSession(...)` in another process or after a
18063
+ * restart.
18064
+ *
18065
+ * See `RestorableSession` for lifetime caveats.
18066
+ */
18067
+ get restorable() {
18068
+ return {
18069
+ delegationHeader: this.session.delegationHeader,
18070
+ delegationCid: this.session.delegationCid,
18071
+ spaceId: this.session.spaceId,
18072
+ jwk: this.session.jwk,
18073
+ verificationMethod: this.session.verificationMethod,
18074
+ address: this.session.address,
18075
+ chainId: this.session.chainId
18076
+ };
18077
+ }
18060
18078
  };
18061
18079
 
18062
18080
  // src/keys/WasmKeyProvider.ts