@blazingagents/sdk 0.4.0 → 0.5.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.
|
@@ -32,7 +32,8 @@ export declare const sessionsListResponseSchema: z.ZodObject<{
|
|
|
32
32
|
/**
|
|
33
33
|
* `GET /v1/sessions/latest` list item — one per Agent: the Agent's most
|
|
34
34
|
* recently updated Session (optionally among one end user's Sessions).
|
|
35
|
-
* Carries `agentId`
|
|
35
|
+
* Carries `agentId` and the Agent's current model, Thinking level, and status,
|
|
36
|
+
* independently of the Session's pinned Version.
|
|
36
37
|
*/
|
|
37
38
|
export declare const latestSessionListItemSchema: z.ZodObject<{
|
|
38
39
|
agentVersion: z.ZodNullable<z.ZodNumber>;
|
|
@@ -44,6 +45,12 @@ export declare const latestSessionListItemSchema: z.ZodObject<{
|
|
|
44
45
|
createdAt: z.ZodISODateTime;
|
|
45
46
|
updatedAt: z.ZodISODateTime;
|
|
46
47
|
agentId: z.ZodString;
|
|
48
|
+
model: z.ZodNullable<z.ZodString>;
|
|
49
|
+
thinkingLevel: z.ZodNullable<z.ZodString>;
|
|
50
|
+
status: z.ZodEnum<{
|
|
51
|
+
active: "active";
|
|
52
|
+
disabled: "disabled";
|
|
53
|
+
}>;
|
|
47
54
|
}, z.core.$strip>;
|
|
48
55
|
export declare const latestSessionsListResponseSchema: z.ZodObject<{
|
|
49
56
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -56,6 +63,12 @@ export declare const latestSessionsListResponseSchema: z.ZodObject<{
|
|
|
56
63
|
createdAt: z.ZodISODateTime;
|
|
57
64
|
updatedAt: z.ZodISODateTime;
|
|
58
65
|
agentId: z.ZodString;
|
|
66
|
+
model: z.ZodNullable<z.ZodString>;
|
|
67
|
+
thinkingLevel: z.ZodNullable<z.ZodString>;
|
|
68
|
+
status: z.ZodEnum<{
|
|
69
|
+
active: "active";
|
|
70
|
+
disabled: "disabled";
|
|
71
|
+
}>;
|
|
59
72
|
}, z.core.$strip>>;
|
|
60
73
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
61
74
|
}, z.core.$strip>;
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { paginatedResponseSchema } from "../api.js";
|
|
3
3
|
import { agentIdSchema, sessionIdSchema } from "../ids.js";
|
|
4
4
|
import { DEFAULT_SESSION_MESSAGES_LIMIT, MAX_SESSION_MESSAGES_LIMIT, } from "../limitations.js";
|
|
5
|
-
import { agentVersionNumberSchema } from "./agents.js";
|
|
5
|
+
import { agentSchema, agentVersionNumberSchema } from "./agents.js";
|
|
6
6
|
import { metadataSchema, userIdSchema } from "./attribution.js";
|
|
7
7
|
/**
|
|
8
8
|
* `GET /v1/agents/{agentId}/sessions` list item — the public wire shape:
|
|
@@ -27,10 +27,16 @@ export const sessionsListResponseSchema = paginatedResponseSchema(sessionListIte
|
|
|
27
27
|
/**
|
|
28
28
|
* `GET /v1/sessions/latest` list item — one per Agent: the Agent's most
|
|
29
29
|
* recently updated Session (optionally among one end user's Sessions).
|
|
30
|
-
* Carries `agentId`
|
|
30
|
+
* Carries `agentId` and the Agent's current model, Thinking level, and status,
|
|
31
|
+
* independently of the Session's pinned Version.
|
|
31
32
|
*/
|
|
32
33
|
export const latestSessionListItemSchema = sessionListItemSchema
|
|
33
|
-
.extend({
|
|
34
|
+
.extend({
|
|
35
|
+
agentId: agentIdSchema,
|
|
36
|
+
model: agentSchema.shape.model,
|
|
37
|
+
thinkingLevel: agentSchema.shape.thinkingLevel,
|
|
38
|
+
status: agentSchema.shape.status,
|
|
39
|
+
})
|
|
34
40
|
.strip();
|
|
35
41
|
export const latestSessionsListResponseSchema = paginatedResponseSchema(latestSessionListItemSchema);
|
|
36
42
|
/**
|