@session.js/types 1.0.8 → 1.0.9

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.
@@ -4,6 +4,9 @@ export interface Storage {
4
4
  delete(key: string): void | Promise<void>;
5
5
  has(key: string): boolean | Promise<boolean>;
6
6
  }
7
+ /** This is not comperhensive list: it does not include dynamic keys like `message_hash:{hash}` and others. It should be used as hint, not a strict enum. */
7
8
  export declare enum StorageKeys {
8
- LastHashes = "last_hashes"
9
+ LastHashes = "last_hashes",
10
+ Avatar = "avatar",
11
+ DisplayName = "display_name"
9
12
  }
@@ -1,4 +1,7 @@
1
+ /** This is not comperhensive list: it does not include dynamic keys like `message_hash:{hash}` and others. It should be used as hint, not a strict enum. */
1
2
  export var StorageKeys;
2
3
  (function (StorageKeys) {
3
4
  StorageKeys["LastHashes"] = "last_hashes";
5
+ StorageKeys["Avatar"] = "avatar";
6
+ StorageKeys["DisplayName"] = "display_name";
4
7
  })(StorageKeys || (StorageKeys = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@session.js/types",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Viktor Shchelochkov <hi@hloth.dev> (https://hloth.dev)",