@mastra/dynamodb 1.1.1 → 1.1.2-alpha.0
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/CHANGELOG.md +37 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-storage-dynamodb.md +2 -0
- package/dist/entities/index.d.ts +20 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/score.d.ts +20 -0
- package/dist/entities/score.d.ts.map +1 -1
- package/dist/index.cjs +37 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +37 -6
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +9 -5
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
2
2
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
3
|
-
import type { StoragePagination } from '@mastra/core/storage';
|
|
3
|
+
import type { StoragePagination, ScoreTenancyFilters } from '@mastra/core/storage';
|
|
4
4
|
import type { DynamoDBDomainConfig } from '../../db/index.js';
|
|
5
5
|
export declare class ScoresStorageDynamoDB extends ScoresStorage {
|
|
6
6
|
private service;
|
|
@@ -22,26 +22,30 @@ export declare class ScoresStorageDynamoDB extends ScoresStorage {
|
|
|
22
22
|
saveScore(score: SaveScorePayload): Promise<{
|
|
23
23
|
score: ScoreRowData;
|
|
24
24
|
}>;
|
|
25
|
-
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
25
|
+
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, filters, }: {
|
|
26
26
|
scorerId: string;
|
|
27
27
|
pagination: StoragePagination;
|
|
28
28
|
entityId?: string;
|
|
29
29
|
entityType?: string;
|
|
30
30
|
source?: ScoringSource;
|
|
31
|
+
filters?: ScoreTenancyFilters;
|
|
31
32
|
}): Promise<ListScoresResponse>;
|
|
32
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
33
|
+
listScoresByRunId({ runId, pagination, filters, }: {
|
|
33
34
|
runId: string;
|
|
34
35
|
pagination: StoragePagination;
|
|
36
|
+
filters?: ScoreTenancyFilters;
|
|
35
37
|
}): Promise<ListScoresResponse>;
|
|
36
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
38
|
+
listScoresByEntityId({ entityId, entityType, pagination, filters, }: {
|
|
37
39
|
entityId: string;
|
|
38
40
|
entityType: string;
|
|
39
41
|
pagination: StoragePagination;
|
|
42
|
+
filters?: ScoreTenancyFilters;
|
|
40
43
|
}): Promise<ListScoresResponse>;
|
|
41
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
44
|
+
listScoresBySpan({ traceId, spanId, pagination, filters, }: {
|
|
42
45
|
traceId: string;
|
|
43
46
|
spanId: string;
|
|
44
47
|
pagination: StoragePagination;
|
|
48
|
+
filters?: ScoreTenancyFilters;
|
|
45
49
|
}): Promise<ListScoresResponse>;
|
|
46
50
|
}
|
|
47
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5G,OAAO,EAGL,aAAa,EAId,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA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AU,EACV,UAAU,EACV,OAAO,GACR,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,iBAAiB,CAAC;QAC9B,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAiDzB,gBAAgB,CAAC,EACrB,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,GACR,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,iBAAiB,CAAC;QAC9B,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA8ChC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/dynamodb",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2-alpha.0",
|
|
4
4
|
"description": "DynamoDB storage adapter for Mastra",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"tsx": "^4.22.4",
|
|
40
40
|
"typescript": "^6.0.3",
|
|
41
41
|
"vitest": "4.1.8",
|
|
42
|
-
"@internal/
|
|
43
|
-
"@
|
|
44
|
-
"@internal/
|
|
45
|
-
"@
|
|
42
|
+
"@internal/lint": "0.0.110",
|
|
43
|
+
"@internal/storage-test-utils": "0.0.106",
|
|
44
|
+
"@internal/types-builder": "0.0.85",
|
|
45
|
+
"@mastra/core": "1.49.0-alpha.5"
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://mastra.ai",
|
|
48
48
|
"repository": {
|