@agentmark-ai/api-types 0.6.0 → 0.8.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/README.md +7 -0
- package/dist/types.d.ts +12 -0
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @agentmark-ai/api-types
|
|
2
|
+
|
|
3
|
+
Shared API contract types (analytics service, traces, scores, experiments)
|
|
4
|
+
used by the AgentMark CLI dev server and the AgentMark platform.
|
|
5
|
+
|
|
6
|
+
Looking for the public wire contract (Zod schemas, error envelope)? That is
|
|
7
|
+
[`@agentmark-ai/api-schemas`](https://www.npmjs.com/package/@agentmark-ai/api-schemas).
|
package/dist/types.d.ts
CHANGED
|
@@ -258,6 +258,12 @@ export interface AggregateRequestsParams extends PaginationParams {
|
|
|
258
258
|
filters?: AnalyticsFilter[];
|
|
259
259
|
startDate?: string;
|
|
260
260
|
endDate?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Env scoping. Aggregations must be computed over a single environment's
|
|
263
|
+
* rows — an unscoped groupBy silently sums every env's traffic into one
|
|
264
|
+
* table. Undefined means "no env filter" (legacy callers only).
|
|
265
|
+
*/
|
|
266
|
+
env?: EnvironmentQueryScope;
|
|
261
267
|
}
|
|
262
268
|
/**
|
|
263
269
|
* Environment scoping for analytics list queries (feature 054 — Environments
|
|
@@ -630,6 +636,12 @@ export interface ScoresParams extends Partial<PaginationParams> {
|
|
|
630
636
|
sessionId?: string;
|
|
631
637
|
startDate?: string;
|
|
632
638
|
endDate?: string;
|
|
639
|
+
/**
|
|
640
|
+
* Structured filters over scores-table fields (name, score, source,
|
|
641
|
+
* user_id, resource_id, created_at) — AND of leaves and one-level
|
|
642
|
+
* OR-groups. Ignored by resource-keyed lookups (`resourceId` set).
|
|
643
|
+
*/
|
|
644
|
+
filters?: AnalyticsFilterNode[];
|
|
633
645
|
/** Single-env scoping per FR-031/FR-051/FR-109. Undefined = no env filter. */
|
|
634
646
|
environment?: EnvironmentScope;
|
|
635
647
|
/** Env-name allow-list from a saved filter (FR-122..FR-124). */
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmark-ai/api-types",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Shared API contract types
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Shared API contract types (analytics service, traces, scores) used by the AgentMark CLI dev server and platform. For the public wire schemas use @agentmark-ai/api-schemas.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
7
|
"publishConfig": {
|
|
11
8
|
"access": "public"
|
|
12
9
|
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc -p tsconfig.build.json",
|
|
15
15
|
"clean": "rm -rf dist"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@agentmark-ai/api-schemas": "0.
|
|
18
|
+
"@agentmark-ai/api-schemas": "0.6.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"typescript": "^5.5.3"
|