@tinycloud/node-sdk 2.2.0-beta.1 → 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-NsTndW58.d.cts +1453 -0
- package/dist/core-NsTndW58.d.ts +1453 -0
- package/dist/core.cjs +18 -0
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +3 -1422
- package/dist/core.d.ts +3 -1422
- package/dist/core.js +18 -0
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|