@tinycloud/node-sdk 2.2.0-beta.1 → 2.2.0-beta.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/core.cjs CHANGED
@@ -1072,6 +1072,24 @@ var DelegatedAccess = class {
1072
1072
  get hooks() {
1073
1073
  return this._hooks;
1074
1074
  }
1075
+ /**
1076
+ * Export the handles needed to rehydrate this activated delegation via
1077
+ * `TinyCloudNode.restoreSession(...)` in another process or after a
1078
+ * restart.
1079
+ *
1080
+ * See `RestorableSession` for lifetime caveats.
1081
+ */
1082
+ get restorable() {
1083
+ return {
1084
+ delegationHeader: this.session.delegationHeader,
1085
+ delegationCid: this.session.delegationCid,
1086
+ spaceId: this.session.spaceId,
1087
+ jwk: this.session.jwk,
1088
+ verificationMethod: this.session.verificationMethod,
1089
+ address: this.session.address,
1090
+ chainId: this.session.chainId
1091
+ };
1092
+ }
1075
1093
  };
1076
1094
 
1077
1095
  // src/keys/WasmKeyProvider.ts