@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/core.js CHANGED
@@ -1033,6 +1033,24 @@ var DelegatedAccess = class {
1033
1033
  get hooks() {
1034
1034
  return this._hooks;
1035
1035
  }
1036
+ /**
1037
+ * Export the handles needed to rehydrate this activated delegation via
1038
+ * `TinyCloudNode.restoreSession(...)` in another process or after a
1039
+ * restart.
1040
+ *
1041
+ * See `RestorableSession` for lifetime caveats.
1042
+ */
1043
+ get restorable() {
1044
+ return {
1045
+ delegationHeader: this.session.delegationHeader,
1046
+ delegationCid: this.session.delegationCid,
1047
+ spaceId: this.session.spaceId,
1048
+ jwk: this.session.jwk,
1049
+ verificationMethod: this.session.verificationMethod,
1050
+ address: this.session.address,
1051
+ chainId: this.session.chainId
1052
+ };
1053
+ }
1036
1054
  };
1037
1055
 
1038
1056
  // src/keys/WasmKeyProvider.ts