@xapp/stentor-service-user-storage 1.86.8 → 1.86.10

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.
Files changed (2) hide show
  1. package/README.md +21 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1 +1,21 @@
1
- Copy this to create a new package under `/packages`
1
+ ## @xapp/stentor-service-user-storage
2
+
3
+ A DynamoDB-backed implementation of `UserStorageService` (from `stentor-models`). `DynamoUserStorageService` extends `@xapp/stentor-service-dynamo`'s `DynamoService` to create, read, and update a user's conversational `Storage` record (keyed by `appId`/`userId`), and to query new/active user counts between two dates via the `appId-createdTimestamp-index` and `appId-lastActiveTimestamp-index` indexes. `get()` automatically converts older, deprecated storage shapes (e.g. `currentIntent`, `currentAudioPlayerIntent`) into the current `Storage` model.
4
+
5
+ ### Usage
6
+
7
+ ```ts
8
+ import { DynamoUserStorageService } from "@xapp/stentor-service-user-storage";
9
+
10
+ const userStorage = new DynamoUserStorageService({
11
+ tableName: "UserStorage",
12
+ appId: "my-app-id"
13
+ });
14
+
15
+ const storage = await userStorage.get("user-123");
16
+ const newUsers = await userStorage.newUsersBetween(new Date("2026-01-01"));
17
+ ```
18
+
19
+ ### Documentation
20
+
21
+ - [AWS DynamoDB Developer Guide](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.86.8",
7
+ "version": "1.86.10",
8
8
  "description": "PLACEHOLDER DESCRIPTION OF PACKAGE",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -15,12 +15,12 @@
15
15
  "node": "^20 || ^22 || ^24"
16
16
  },
17
17
  "devDependencies": {
18
- "@aws-sdk/lib-dynamodb": "3.1116.0",
18
+ "@aws-sdk/lib-dynamodb": "3.1133.0",
19
19
  "@types/chai": "5.2.3",
20
- "@types/node": "24.13.3",
20
+ "@types/node": "24.13.6",
21
21
  "@xapp/config": "0.3.0",
22
22
  "chai": "4.5.0",
23
- "stentor-handler": "1.74.10",
23
+ "stentor-handler": "1.74.11",
24
24
  "stentor-models": "1.79.0",
25
25
  "stentor-utils": "1.76.0",
26
26
  "typescript": "5.9.3"
@@ -29,7 +29,7 @@
29
29
  "@xapp/stentor-handler-legacy": "1.86.6",
30
30
  "@xapp/stentor-handler-media": "1.86.7",
31
31
  "@xapp/stentor-media-manager": "1.86.7",
32
- "@xapp/stentor-service-dynamo": "1.86.8"
32
+ "@xapp/stentor-service-dynamo": "1.86.10"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@aws-sdk/lib-dynamodb": "^3.0.0",