@mastra/dsql 1.1.1 → 1.1.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/CHANGELOG.md +74 -0
- package/dist/index.cjs +52 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +52 -16
- 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,5 +1,5 @@
|
|
|
1
1
|
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
2
|
-
import type { StoragePagination, CreateIndexOptions } from '@mastra/core/storage';
|
|
2
|
+
import type { StoragePagination, CreateIndexOptions, ScoreTenancyFilters } from '@mastra/core/storage';
|
|
3
3
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
4
|
import type { DsqlDomainConfig } from '../../db/index.js';
|
|
5
5
|
export declare class ScoresDSQL extends ScoresStorage {
|
|
@@ -25,29 +25,33 @@ export declare class ScoresDSQL extends ScoresStorage {
|
|
|
25
25
|
getScoreById({ id }: {
|
|
26
26
|
id: string;
|
|
27
27
|
}): Promise<ScoreRowData | null>;
|
|
28
|
-
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
28
|
+
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, filters, }: {
|
|
29
29
|
scorerId: string;
|
|
30
30
|
pagination: StoragePagination;
|
|
31
31
|
entityId?: string;
|
|
32
32
|
entityType?: string;
|
|
33
33
|
source?: ScoringSource;
|
|
34
|
+
filters?: ScoreTenancyFilters;
|
|
34
35
|
}): Promise<ListScoresResponse>;
|
|
35
36
|
saveScore(score: SaveScorePayload): Promise<{
|
|
36
37
|
score: ScoreRowData;
|
|
37
38
|
}>;
|
|
38
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
39
|
+
listScoresByRunId({ runId, pagination, filters, }: {
|
|
39
40
|
runId: string;
|
|
40
41
|
pagination: StoragePagination;
|
|
42
|
+
filters?: ScoreTenancyFilters;
|
|
41
43
|
}): Promise<ListScoresResponse>;
|
|
42
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
44
|
+
listScoresByEntityId({ entityId, entityType, pagination, filters, }: {
|
|
43
45
|
pagination: StoragePagination;
|
|
44
46
|
entityId: string;
|
|
45
47
|
entityType: string;
|
|
48
|
+
filters?: ScoreTenancyFilters;
|
|
46
49
|
}): Promise<ListScoresResponse>;
|
|
47
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
50
|
+
listScoresBySpan({ traceId, spanId, pagination, filters, }: {
|
|
48
51
|
traceId: string;
|
|
49
52
|
spanId: string;
|
|
50
53
|
pagination: StoragePagination;
|
|
54
|
+
filters?: ScoreTenancyFilters;
|
|
51
55
|
}): Promise<ListScoresResponse>;
|
|
52
56
|
}
|
|
53
57
|
//# 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,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,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;AAE5G,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACvG,OAAO,EAIL,aAAa,EAId,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,M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AAU,EACV,OAAO,GACR,EAAE;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAwDzB,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;CAgDhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/dsql",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Amazon Aurora DSQL storage provider for Mastra",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"tsup": "^8.5.1",
|
|
35
35
|
"typescript": "^5.8.3",
|
|
36
36
|
"vitest": "4.1.8",
|
|
37
|
-
"@internal/types-builder": "0.0.
|
|
38
|
-
"@internal/storage-test-utils": "0.0.
|
|
39
|
-
"@internal/lint": "0.0.
|
|
40
|
-
"@mastra/core": "1.
|
|
37
|
+
"@internal/types-builder": "0.0.86",
|
|
38
|
+
"@internal/storage-test-utils": "0.0.107",
|
|
39
|
+
"@internal/lint": "0.0.111",
|
|
40
|
+
"@mastra/core": "1.49.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|