@sentry/junior 0.96.0 → 0.97.1
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/dist/{agent-hooks-5URSMY3O.js → agent-hooks-XSUIVRQS.js} +8 -6
- package/dist/{reporting → api}/conversations/activity.d.ts +1 -1
- package/dist/api/conversations/detail-projection.d.ts +10 -0
- package/dist/api/conversations/detail.d.ts +3 -0
- package/dist/api/conversations/detail.query.d.ts +3 -0
- package/dist/api/conversations/list.d.ts +3 -0
- package/dist/api/conversations/list.query.d.ts +94 -0
- package/dist/api/conversations/projection.d.ts +14 -0
- package/dist/api/conversations/schema.d.ts +683 -0
- package/dist/{reporting → api}/conversations/shared.d.ts +1 -5
- package/dist/api/conversations/stats.d.ts +3 -0
- package/dist/api/conversations/stats.query.d.ts +3 -0
- package/dist/api/conversations/subagent.d.ts +3 -0
- package/dist/{reporting → api}/conversations/transcript.d.ts +4 -4
- package/dist/api/people/list.d.ts +1 -2
- package/dist/api/people/list.query.d.ts +3 -4
- package/dist/api/people/profile.d.ts +1 -2
- package/dist/api/people/profile.query.d.ts +3 -4
- package/dist/api/people/schema.d.ts +193 -0
- package/dist/api/people/shared.d.ts +31 -9
- package/dist/api/schema.d.ts +20 -0
- package/dist/api/schema.js +50 -0
- package/dist/api-reference.d.ts +4 -3
- package/dist/api.d.ts +3 -0
- package/dist/api.js +156 -0
- package/dist/app.d.ts +1 -4
- package/dist/app.js +101 -367
- package/dist/build/virtual-config.d.ts +2 -2
- package/dist/{catalog-runtime-MSMAYYIK.js → catalog-runtime-PFHVMHDR.js} +3 -2
- package/dist/chat/agent/resume.d.ts +3 -1
- package/dist/chat/agent/tools.d.ts +2 -1
- package/dist/chat/config.d.ts +1 -8
- package/dist/chat/conversations/history.d.ts +241 -27
- package/dist/chat/conversations/legacy-advisor-session.d.ts +7 -0
- package/dist/chat/conversations/legacy-import.d.ts +2 -2
- package/dist/chat/conversations/projection.d.ts +19 -3
- package/dist/chat/conversations/sql/legacy-history-import.d.ts +1 -1
- package/dist/chat/conversations/sql/store.d.ts +15 -9
- package/dist/chat/conversations/store.d.ts +9 -4
- package/dist/chat/model-profile.d.ts +14 -0
- package/dist/chat/pi/transcript.d.ts +5 -3
- package/dist/chat/resource-events/store.d.ts +2 -2
- package/dist/chat/services/context-compaction.d.ts +15 -0
- package/dist/chat/services/turn-result.d.ts +1 -0
- package/dist/chat/services/turn-session-record.d.ts +6 -6
- package/dist/chat/state/turn-session.d.ts +16 -5
- package/dist/chat/task-execution/store.d.ts +2 -2
- package/dist/chat/tools/handoff/tool.d.ts +45 -0
- package/dist/chat/tools/types.d.ts +7 -2
- package/dist/chat/usage.d.ts +25 -25
- package/dist/{chunk-RITD7E5L.js → chunk-35BNLDOJ.js} +338 -577
- package/dist/{chunk-PMNN6ST4.js → chunk-3ECW2K2O.js} +7 -2
- package/dist/{chunk-5C6XTTFI.js → chunk-3F4OPKGF.js} +89 -55
- package/dist/chunk-3V7OFJZC.js +264 -0
- package/dist/chunk-4ZNGQH7C.js +25 -0
- package/dist/{chunk-S5KZ5LPG.js → chunk-5HLDPVYS.js} +14 -447
- package/dist/{chunk-DZENG5ML.js → chunk-6U26PYI5.js} +24 -14
- package/dist/chunk-AUUCAFDE.js +546 -0
- package/dist/{chunk-6APU57E6.js → chunk-B3IT5END.js} +41 -260
- package/dist/chunk-CEA3A3UA.js +86 -0
- package/dist/{chunk-YDT7SNCN.js → chunk-D5KZYS4T.js} +1 -1
- package/dist/{chunk-YDVEH3SB.js → chunk-EEZCY5WX.js} +78 -28
- package/dist/{chunk-2NAZZPPS.js → chunk-EOWXRY5E.js} +1 -1
- package/dist/{chunk-GQ3GK22G.js → chunk-FBHZJFHI.js} +2 -2
- package/dist/{chunk-CZEX6KIQ.js → chunk-G3E7SCME.js} +0 -23
- package/dist/chunk-GUAP3H7O.js +319 -0
- package/dist/{chunk-BYZWPRJA.js → chunk-H66UCBPW.js} +6 -4
- package/dist/{chunk-L7CDEIVJ.js → chunk-LMJPRYHP.js} +4 -2
- package/dist/chunk-LUAE4MGW.js +199 -0
- package/dist/{chunk-GY34VGP5.js → chunk-LVA4I4H7.js} +3 -1
- package/dist/chunk-LVUKF5CE.js +63 -0
- package/dist/{chunk-AAZXTVJT.js → chunk-NG2AV7IB.js} +2 -72
- package/dist/chunk-ON6YKIQ7.js +260 -0
- package/dist/chunk-PDO5BLNM.js +22 -0
- package/dist/chunk-QNVHH5PU.js +20 -0
- package/dist/{chunk-P3YFQLEN.js → chunk-T533JLM3.js} +8 -10
- package/dist/chunk-UAMKJPDF.js +11 -0
- package/dist/chunk-VFH4ZKZT.js +66 -0
- package/dist/{chunk-UKHVMPX5.js → chunk-WGXMTFNU.js} +15 -17
- package/dist/{chunk-MNTINMWR.js → chunk-WJOSZOON.js} +184 -300
- package/dist/chunk-WTYEKPXU.js +451 -0
- package/dist/{chunk-IYM2SIVG.js → chunk-XIRPQQVE.js} +605 -363
- package/dist/cli/chat.js +24 -21
- package/dist/cli/check.js +4 -3
- package/dist/cli/init.js +12 -0
- package/dist/cli/plugins.js +12 -9
- package/dist/cli/snapshot-warmup.js +8 -6
- package/dist/cli/upgrade.js +265 -137
- package/dist/db/db.d.ts +4 -0
- package/dist/db/schema/conversations.d.ts +128 -0
- package/dist/db/schema.d.ts +129 -60
- package/dist/{db-2D6RMG67.js → db-BWXYIKFQ.js} +3 -3
- package/dist/detail-GA6NXWQJ.js +43 -0
- package/dist/discovery-RMHYSRL7.js +43 -0
- package/dist/handlers/health.d.ts +3 -0
- package/dist/instrumentation.js +1 -1
- package/dist/{legacy-import-VZ2MEGP7.js → legacy-import-3NQJVGQL.js} +4 -4
- package/dist/{api/people/list.js → list-A3WFRIYX.js} +26 -16
- package/dist/list-UXJI5Q5X.js +27 -0
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -1
- package/dist/plugin-conversations-DDNGC35A.js +36 -0
- package/dist/{api/people/profile.js → profile-4RYDXWTF.js} +33 -18
- package/dist/reporting/plugin-conversations.d.ts +3 -0
- package/dist/reporting-schema.d.ts +140 -0
- package/dist/reporting.d.ts +12 -81
- package/dist/{runner-JZBRQP4F.js → runner-JALSYH2P.js} +17 -12
- package/dist/skills-MAZXZ2KE.js +26 -0
- package/dist/stats-XKXH3PTY.js +217 -0
- package/dist/subagent-TZ55XY37.js +48 -0
- package/dist/usage-schema.d.ts +25 -0
- package/dist/{validation-6XOOQGME.js → validation-FMEAEKCY.js} +4 -3
- package/migrations/0000_initial.sql +115 -0
- package/migrations/0001_conversation_metrics.sql +4 -0
- package/migrations/README.md +12 -30
- package/migrations/meta/0000_snapshot.json +1 -33
- package/migrations/meta/0001_snapshot.json +972 -0
- package/migrations/meta/_journal.json +9 -2
- package/package.json +13 -17
- package/dist/api/people/types.d.ts +0 -85
- package/dist/chat/advisor-request.d.ts +0 -4
- package/dist/chat/conversations/sql/migrations.d.ts +0 -22
- package/dist/chat/tools/advisor/session-store.d.ts +0 -9
- package/dist/chat/tools/advisor/tool.d.ts +0 -72
- package/dist/chunk-RAIB6WSG.js +0 -142
- package/dist/chunk-WM6KHPBQ.js +0 -48
- package/dist/db/schema/migrations.d.ts +0 -58
- package/dist/reporting/conversations/context.d.ts +0 -8
- package/dist/reporting/conversations/details.d.ts +0 -6
- package/dist/reporting/conversations/index.d.ts +0 -4
- package/dist/reporting/conversations/statistics.d.ts +0 -4
- package/dist/reporting/conversations/summaries.d.ts +0 -20
- package/dist/reporting/conversations/types.d.ts +0 -191
- package/dist/reporting/conversations.d.ts +0 -1
- package/dist/reporting.js +0 -1155
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const conversationReportStatusSchema: z.ZodEnum<{
|
|
3
|
+
active: "active";
|
|
4
|
+
completed: "completed";
|
|
5
|
+
failed: "failed";
|
|
6
|
+
hung: "hung";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const conversationSurfaceSchema: z.ZodEnum<{
|
|
9
|
+
api: "api";
|
|
10
|
+
internal: "internal";
|
|
11
|
+
scheduler: "scheduler";
|
|
12
|
+
slack: "slack";
|
|
13
|
+
}>;
|
|
14
|
+
export declare const conversationCostSchema: z.ZodObject<{
|
|
15
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export declare const conversationUsageSchema: z.ZodObject<{
|
|
22
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strict>>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export declare const actorIdentitySchema: z.ZodObject<{
|
|
37
|
+
email: z.ZodOptional<z.ZodString>;
|
|
38
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
39
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
43
|
+
displayTitle: z.ZodString;
|
|
44
|
+
cumulativeDurationMs: z.ZodNumber;
|
|
45
|
+
cumulativeUsage: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
}, z.core.$strict>>;
|
|
60
|
+
conversationId: z.ZodString;
|
|
61
|
+
status: z.ZodEnum<{
|
|
62
|
+
active: "active";
|
|
63
|
+
completed: "completed";
|
|
64
|
+
failed: "failed";
|
|
65
|
+
hung: "hung";
|
|
66
|
+
}>;
|
|
67
|
+
startedAt: z.ZodString;
|
|
68
|
+
lastSeenAt: z.ZodString;
|
|
69
|
+
lastProgressAt: z.ZodString;
|
|
70
|
+
surface: z.ZodEnum<{
|
|
71
|
+
api: "api";
|
|
72
|
+
internal: "internal";
|
|
73
|
+
scheduler: "scheduler";
|
|
74
|
+
slack: "slack";
|
|
75
|
+
}>;
|
|
76
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
email: z.ZodOptional<z.ZodString>;
|
|
78
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
79
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
83
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
84
|
+
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
86
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
export declare const transcriptPartTypeSchema: z.ZodEnum<{
|
|
89
|
+
text: "text";
|
|
90
|
+
thinking: "thinking";
|
|
91
|
+
tool_call: "tool_call";
|
|
92
|
+
tool_result: "tool_result";
|
|
93
|
+
unknown: "unknown";
|
|
94
|
+
}>;
|
|
95
|
+
export declare const transcriptPartSchema: z.ZodObject<{
|
|
96
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
chars: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
100
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
104
|
+
name: z.ZodOptional<z.ZodString>;
|
|
105
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
106
|
+
outputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
+
outputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
outputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
outputType: z.ZodOptional<z.ZodString>;
|
|
110
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
sourceType: z.ZodOptional<z.ZodString>;
|
|
112
|
+
text: z.ZodOptional<z.ZodString>;
|
|
113
|
+
type: z.ZodEnum<{
|
|
114
|
+
text: "text";
|
|
115
|
+
thinking: "thinking";
|
|
116
|
+
tool_call: "tool_call";
|
|
117
|
+
tool_result: "tool_result";
|
|
118
|
+
unknown: "unknown";
|
|
119
|
+
}>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
export declare const transcriptRoleSchema: z.ZodEnum<{
|
|
122
|
+
unknown: "unknown";
|
|
123
|
+
assistant: "assistant";
|
|
124
|
+
system: "system";
|
|
125
|
+
tool: "tool";
|
|
126
|
+
toolResult: "toolResult";
|
|
127
|
+
user: "user";
|
|
128
|
+
}>;
|
|
129
|
+
export declare const transcriptMessageSchema: z.ZodObject<{
|
|
130
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
131
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
chars: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
id: z.ZodOptional<z.ZodString>;
|
|
134
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
135
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
139
|
+
name: z.ZodOptional<z.ZodString>;
|
|
140
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
141
|
+
outputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
|
+
outputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
outputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
outputType: z.ZodOptional<z.ZodString>;
|
|
145
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
sourceType: z.ZodOptional<z.ZodString>;
|
|
147
|
+
text: z.ZodOptional<z.ZodString>;
|
|
148
|
+
type: z.ZodEnum<{
|
|
149
|
+
text: "text";
|
|
150
|
+
thinking: "thinking";
|
|
151
|
+
tool_call: "tool_call";
|
|
152
|
+
tool_result: "tool_result";
|
|
153
|
+
unknown: "unknown";
|
|
154
|
+
}>;
|
|
155
|
+
}, z.core.$strict>>;
|
|
156
|
+
role: z.ZodEnum<{
|
|
157
|
+
unknown: "unknown";
|
|
158
|
+
assistant: "assistant";
|
|
159
|
+
system: "system";
|
|
160
|
+
tool: "tool";
|
|
161
|
+
toolResult: "toolResult";
|
|
162
|
+
user: "user";
|
|
163
|
+
}>;
|
|
164
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
export declare const conversationActivityStatusSchema: z.ZodEnum<{
|
|
167
|
+
error: "error";
|
|
168
|
+
completed: "completed";
|
|
169
|
+
success: "success";
|
|
170
|
+
aborted: "aborted";
|
|
171
|
+
running: "running";
|
|
172
|
+
}>;
|
|
173
|
+
export declare const conversationSubagentActivityReportSchema: z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"subagent">;
|
|
175
|
+
createdAt: z.ZodString;
|
|
176
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
179
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
error: "error";
|
|
181
|
+
success: "success";
|
|
182
|
+
aborted: "aborted";
|
|
183
|
+
}>>;
|
|
184
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
186
|
+
status: z.ZodEnum<{
|
|
187
|
+
error: "error";
|
|
188
|
+
completed: "completed";
|
|
189
|
+
success: "success";
|
|
190
|
+
aborted: "aborted";
|
|
191
|
+
running: "running";
|
|
192
|
+
}>;
|
|
193
|
+
subagentKind: z.ZodString;
|
|
194
|
+
transcriptAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
export declare const conversationToolActivityReportSchema: z.ZodObject<{
|
|
197
|
+
type: z.ZodLiteral<"tool_execution">;
|
|
198
|
+
args: z.ZodOptional<z.ZodUnknown>;
|
|
199
|
+
createdAt: z.ZodString;
|
|
200
|
+
id: z.ZodString;
|
|
201
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
205
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
status: z.ZodEnum<{
|
|
207
|
+
error: "error";
|
|
208
|
+
completed: "completed";
|
|
209
|
+
success: "success";
|
|
210
|
+
aborted: "aborted";
|
|
211
|
+
running: "running";
|
|
212
|
+
}>;
|
|
213
|
+
subagents: z.ZodArray<z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<"subagent">;
|
|
215
|
+
createdAt: z.ZodString;
|
|
216
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
219
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
220
|
+
error: "error";
|
|
221
|
+
success: "success";
|
|
222
|
+
aborted: "aborted";
|
|
223
|
+
}>>;
|
|
224
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
225
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
226
|
+
status: z.ZodEnum<{
|
|
227
|
+
error: "error";
|
|
228
|
+
completed: "completed";
|
|
229
|
+
success: "success";
|
|
230
|
+
aborted: "aborted";
|
|
231
|
+
running: "running";
|
|
232
|
+
}>;
|
|
233
|
+
subagentKind: z.ZodString;
|
|
234
|
+
transcriptAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
}, z.core.$strict>>;
|
|
236
|
+
toolCallId: z.ZodString;
|
|
237
|
+
toolName: z.ZodString;
|
|
238
|
+
}, z.core.$strict>;
|
|
239
|
+
export declare const conversationActivityReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<"tool_execution">;
|
|
241
|
+
args: z.ZodOptional<z.ZodUnknown>;
|
|
242
|
+
createdAt: z.ZodString;
|
|
243
|
+
id: z.ZodString;
|
|
244
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
245
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
248
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
+
status: z.ZodEnum<{
|
|
250
|
+
error: "error";
|
|
251
|
+
completed: "completed";
|
|
252
|
+
success: "success";
|
|
253
|
+
aborted: "aborted";
|
|
254
|
+
running: "running";
|
|
255
|
+
}>;
|
|
256
|
+
subagents: z.ZodArray<z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<"subagent">;
|
|
258
|
+
createdAt: z.ZodString;
|
|
259
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
260
|
+
id: z.ZodString;
|
|
261
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
262
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
263
|
+
error: "error";
|
|
264
|
+
success: "success";
|
|
265
|
+
aborted: "aborted";
|
|
266
|
+
}>>;
|
|
267
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
268
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
269
|
+
status: z.ZodEnum<{
|
|
270
|
+
error: "error";
|
|
271
|
+
completed: "completed";
|
|
272
|
+
success: "success";
|
|
273
|
+
aborted: "aborted";
|
|
274
|
+
running: "running";
|
|
275
|
+
}>;
|
|
276
|
+
subagentKind: z.ZodString;
|
|
277
|
+
transcriptAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
278
|
+
}, z.core.$strict>>;
|
|
279
|
+
toolCallId: z.ZodString;
|
|
280
|
+
toolName: z.ZodString;
|
|
281
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
282
|
+
type: z.ZodLiteral<"subagent">;
|
|
283
|
+
createdAt: z.ZodString;
|
|
284
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
287
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
288
|
+
error: "error";
|
|
289
|
+
success: "success";
|
|
290
|
+
aborted: "aborted";
|
|
291
|
+
}>>;
|
|
292
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
293
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
294
|
+
status: z.ZodEnum<{
|
|
295
|
+
error: "error";
|
|
296
|
+
completed: "completed";
|
|
297
|
+
success: "success";
|
|
298
|
+
aborted: "aborted";
|
|
299
|
+
running: "running";
|
|
300
|
+
}>;
|
|
301
|
+
subagentKind: z.ZodString;
|
|
302
|
+
transcriptAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
}, z.core.$strict>], "type">;
|
|
304
|
+
export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
305
|
+
displayTitle: z.ZodString;
|
|
306
|
+
cumulativeDurationMs: z.ZodNumber;
|
|
307
|
+
cumulativeUsage: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
314
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
}, z.core.$strict>>;
|
|
321
|
+
}, z.core.$strict>>;
|
|
322
|
+
conversationId: z.ZodString;
|
|
323
|
+
status: z.ZodEnum<{
|
|
324
|
+
active: "active";
|
|
325
|
+
completed: "completed";
|
|
326
|
+
failed: "failed";
|
|
327
|
+
hung: "hung";
|
|
328
|
+
}>;
|
|
329
|
+
startedAt: z.ZodString;
|
|
330
|
+
lastSeenAt: z.ZodString;
|
|
331
|
+
lastProgressAt: z.ZodString;
|
|
332
|
+
surface: z.ZodEnum<{
|
|
333
|
+
api: "api";
|
|
334
|
+
internal: "internal";
|
|
335
|
+
scheduler: "scheduler";
|
|
336
|
+
slack: "slack";
|
|
337
|
+
}>;
|
|
338
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
email: z.ZodOptional<z.ZodString>;
|
|
340
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
341
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
342
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
343
|
+
}, z.core.$strict>>;
|
|
344
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
345
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
346
|
+
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
347
|
+
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
348
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
349
|
+
activity: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
350
|
+
type: z.ZodLiteral<"tool_execution">;
|
|
351
|
+
args: z.ZodOptional<z.ZodUnknown>;
|
|
352
|
+
createdAt: z.ZodString;
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
355
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
358
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
+
status: z.ZodEnum<{
|
|
360
|
+
error: "error";
|
|
361
|
+
completed: "completed";
|
|
362
|
+
success: "success";
|
|
363
|
+
aborted: "aborted";
|
|
364
|
+
running: "running";
|
|
365
|
+
}>;
|
|
366
|
+
subagents: z.ZodArray<z.ZodObject<{
|
|
367
|
+
type: z.ZodLiteral<"subagent">;
|
|
368
|
+
createdAt: z.ZodString;
|
|
369
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
370
|
+
id: z.ZodString;
|
|
371
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
372
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
error: "error";
|
|
374
|
+
success: "success";
|
|
375
|
+
aborted: "aborted";
|
|
376
|
+
}>>;
|
|
377
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
378
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
379
|
+
status: z.ZodEnum<{
|
|
380
|
+
error: "error";
|
|
381
|
+
completed: "completed";
|
|
382
|
+
success: "success";
|
|
383
|
+
aborted: "aborted";
|
|
384
|
+
running: "running";
|
|
385
|
+
}>;
|
|
386
|
+
subagentKind: z.ZodString;
|
|
387
|
+
transcriptAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
388
|
+
}, z.core.$strict>>;
|
|
389
|
+
toolCallId: z.ZodString;
|
|
390
|
+
toolName: z.ZodString;
|
|
391
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
392
|
+
type: z.ZodLiteral<"subagent">;
|
|
393
|
+
createdAt: z.ZodString;
|
|
394
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
395
|
+
id: z.ZodString;
|
|
396
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
397
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
398
|
+
error: "error";
|
|
399
|
+
success: "success";
|
|
400
|
+
aborted: "aborted";
|
|
401
|
+
}>>;
|
|
402
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
403
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
404
|
+
status: z.ZodEnum<{
|
|
405
|
+
error: "error";
|
|
406
|
+
completed: "completed";
|
|
407
|
+
success: "success";
|
|
408
|
+
aborted: "aborted";
|
|
409
|
+
running: "running";
|
|
410
|
+
}>;
|
|
411
|
+
subagentKind: z.ZodString;
|
|
412
|
+
transcriptAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
413
|
+
}, z.core.$strict>], "type">>>;
|
|
414
|
+
transcriptAvailable: z.ZodBoolean;
|
|
415
|
+
transcriptMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
416
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
417
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
418
|
+
chars: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
id: z.ZodOptional<z.ZodString>;
|
|
420
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
421
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
422
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
425
|
+
name: z.ZodOptional<z.ZodString>;
|
|
426
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
427
|
+
outputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
|
+
outputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
outputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
430
|
+
outputType: z.ZodOptional<z.ZodString>;
|
|
431
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
432
|
+
sourceType: z.ZodOptional<z.ZodString>;
|
|
433
|
+
text: z.ZodOptional<z.ZodString>;
|
|
434
|
+
type: z.ZodEnum<{
|
|
435
|
+
text: "text";
|
|
436
|
+
thinking: "thinking";
|
|
437
|
+
tool_call: "tool_call";
|
|
438
|
+
tool_result: "tool_result";
|
|
439
|
+
unknown: "unknown";
|
|
440
|
+
}>;
|
|
441
|
+
}, z.core.$strict>>;
|
|
442
|
+
role: z.ZodEnum<{
|
|
443
|
+
unknown: "unknown";
|
|
444
|
+
assistant: "assistant";
|
|
445
|
+
system: "system";
|
|
446
|
+
tool: "tool";
|
|
447
|
+
toolResult: "toolResult";
|
|
448
|
+
user: "user";
|
|
449
|
+
}>;
|
|
450
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
}, z.core.$strict>>>;
|
|
452
|
+
transcriptMessageCount: z.ZodOptional<z.ZodNumber>;
|
|
453
|
+
transcriptRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
454
|
+
transcriptRedactionReason: z.ZodOptional<z.ZodLiteral<"non_public_conversation">>;
|
|
455
|
+
transcriptExpired: z.ZodOptional<z.ZodBoolean>;
|
|
456
|
+
transcriptExpiredAt: z.ZodOptional<z.ZodString>;
|
|
457
|
+
transcript: z.ZodArray<z.ZodObject<{
|
|
458
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
459
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
chars: z.ZodOptional<z.ZodNumber>;
|
|
461
|
+
id: z.ZodOptional<z.ZodString>;
|
|
462
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
463
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
464
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
465
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
467
|
+
name: z.ZodOptional<z.ZodString>;
|
|
468
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
469
|
+
outputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
470
|
+
outputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
471
|
+
outputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
472
|
+
outputType: z.ZodOptional<z.ZodString>;
|
|
473
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
+
sourceType: z.ZodOptional<z.ZodString>;
|
|
475
|
+
text: z.ZodOptional<z.ZodString>;
|
|
476
|
+
type: z.ZodEnum<{
|
|
477
|
+
text: "text";
|
|
478
|
+
thinking: "thinking";
|
|
479
|
+
tool_call: "tool_call";
|
|
480
|
+
tool_result: "tool_result";
|
|
481
|
+
unknown: "unknown";
|
|
482
|
+
}>;
|
|
483
|
+
}, z.core.$strict>>;
|
|
484
|
+
role: z.ZodEnum<{
|
|
485
|
+
unknown: "unknown";
|
|
486
|
+
assistant: "assistant";
|
|
487
|
+
system: "system";
|
|
488
|
+
tool: "tool";
|
|
489
|
+
toolResult: "toolResult";
|
|
490
|
+
user: "user";
|
|
491
|
+
}>;
|
|
492
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
}, z.core.$strict>>;
|
|
494
|
+
generatedAt: z.ZodString;
|
|
495
|
+
sentryConversationUrl: z.ZodOptional<z.ZodString>;
|
|
496
|
+
}, z.core.$strict>;
|
|
497
|
+
export declare const conversationSubagentTranscriptReportSchema: z.ZodObject<{
|
|
498
|
+
type: z.ZodLiteral<"subagent">;
|
|
499
|
+
createdAt: z.ZodString;
|
|
500
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
501
|
+
id: z.ZodString;
|
|
502
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
503
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
504
|
+
error: "error";
|
|
505
|
+
success: "success";
|
|
506
|
+
aborted: "aborted";
|
|
507
|
+
}>>;
|
|
508
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
509
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
510
|
+
status: z.ZodEnum<{
|
|
511
|
+
error: "error";
|
|
512
|
+
completed: "completed";
|
|
513
|
+
success: "success";
|
|
514
|
+
aborted: "aborted";
|
|
515
|
+
running: "running";
|
|
516
|
+
}>;
|
|
517
|
+
subagentConversationId: z.ZodOptional<z.ZodString>;
|
|
518
|
+
subagentKind: z.ZodString;
|
|
519
|
+
subagentSentryConversationUrl: z.ZodOptional<z.ZodString>;
|
|
520
|
+
transcript: z.ZodArray<z.ZodObject<{
|
|
521
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
522
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
523
|
+
chars: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
id: z.ZodOptional<z.ZodString>;
|
|
525
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
526
|
+
inputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
inputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
528
|
+
inputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
529
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
530
|
+
name: z.ZodOptional<z.ZodString>;
|
|
531
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
532
|
+
outputKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
533
|
+
outputSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
outputSizeChars: z.ZodOptional<z.ZodNumber>;
|
|
535
|
+
outputType: z.ZodOptional<z.ZodString>;
|
|
536
|
+
redacted: z.ZodOptional<z.ZodBoolean>;
|
|
537
|
+
sourceType: z.ZodOptional<z.ZodString>;
|
|
538
|
+
text: z.ZodOptional<z.ZodString>;
|
|
539
|
+
type: z.ZodEnum<{
|
|
540
|
+
text: "text";
|
|
541
|
+
thinking: "thinking";
|
|
542
|
+
tool_call: "tool_call";
|
|
543
|
+
tool_result: "tool_result";
|
|
544
|
+
unknown: "unknown";
|
|
545
|
+
}>;
|
|
546
|
+
}, z.core.$strict>>;
|
|
547
|
+
role: z.ZodEnum<{
|
|
548
|
+
unknown: "unknown";
|
|
549
|
+
assistant: "assistant";
|
|
550
|
+
system: "system";
|
|
551
|
+
tool: "tool";
|
|
552
|
+
toolResult: "toolResult";
|
|
553
|
+
user: "user";
|
|
554
|
+
}>;
|
|
555
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
}, z.core.$strict>>;
|
|
557
|
+
transcriptAvailable: z.ZodBoolean;
|
|
558
|
+
transcriptMessageCount: z.ZodOptional<z.ZodNumber>;
|
|
559
|
+
transcriptRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
560
|
+
transcriptRedactionReason: z.ZodOptional<z.ZodLiteral<"non_public_conversation">>;
|
|
561
|
+
transcriptExpired: z.ZodOptional<z.ZodBoolean>;
|
|
562
|
+
transcriptExpiredAt: z.ZodOptional<z.ZodString>;
|
|
563
|
+
unavailableReason: z.ZodOptional<z.ZodEnum<{
|
|
564
|
+
missing_transcript_range: "missing_transcript_range";
|
|
565
|
+
missing_transcript_ref: "missing_transcript_ref";
|
|
566
|
+
not_found: "not_found";
|
|
567
|
+
}>>;
|
|
568
|
+
}, z.core.$strict>;
|
|
569
|
+
export declare const conversationFeedSchema: z.ZodObject<{
|
|
570
|
+
conversations: z.ZodArray<z.ZodObject<{
|
|
571
|
+
displayTitle: z.ZodString;
|
|
572
|
+
cumulativeDurationMs: z.ZodNumber;
|
|
573
|
+
cumulativeUsage: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
575
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
576
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
577
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
580
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
583
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
584
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
585
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
586
|
+
}, z.core.$strict>>;
|
|
587
|
+
}, z.core.$strict>>;
|
|
588
|
+
conversationId: z.ZodString;
|
|
589
|
+
status: z.ZodEnum<{
|
|
590
|
+
active: "active";
|
|
591
|
+
completed: "completed";
|
|
592
|
+
failed: "failed";
|
|
593
|
+
hung: "hung";
|
|
594
|
+
}>;
|
|
595
|
+
startedAt: z.ZodString;
|
|
596
|
+
lastSeenAt: z.ZodString;
|
|
597
|
+
lastProgressAt: z.ZodString;
|
|
598
|
+
surface: z.ZodEnum<{
|
|
599
|
+
api: "api";
|
|
600
|
+
internal: "internal";
|
|
601
|
+
scheduler: "scheduler";
|
|
602
|
+
slack: "slack";
|
|
603
|
+
}>;
|
|
604
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
605
|
+
email: z.ZodOptional<z.ZodString>;
|
|
606
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
607
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
608
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
609
|
+
}, z.core.$strict>>;
|
|
610
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
611
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
612
|
+
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
613
|
+
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
614
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
615
|
+
}, z.core.$strict>>;
|
|
616
|
+
source: z.ZodLiteral<"conversation_index">;
|
|
617
|
+
generatedAt: z.ZodString;
|
|
618
|
+
}, z.core.$strict>;
|
|
619
|
+
export declare const conversationStatsItemSchema: z.ZodObject<{
|
|
620
|
+
active: z.ZodNumber;
|
|
621
|
+
conversations: z.ZodNumber;
|
|
622
|
+
durationMs: z.ZodNumber;
|
|
623
|
+
failed: z.ZodNumber;
|
|
624
|
+
hung: z.ZodNumber;
|
|
625
|
+
label: z.ZodString;
|
|
626
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
627
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
628
|
+
}, z.core.$strict>;
|
|
629
|
+
export declare const conversationStatsReportSchema: z.ZodObject<{
|
|
630
|
+
active: z.ZodNumber;
|
|
631
|
+
conversations: z.ZodNumber;
|
|
632
|
+
durationMs: z.ZodNumber;
|
|
633
|
+
failed: z.ZodNumber;
|
|
634
|
+
generatedAt: z.ZodString;
|
|
635
|
+
hung: z.ZodNumber;
|
|
636
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
637
|
+
active: z.ZodNumber;
|
|
638
|
+
conversations: z.ZodNumber;
|
|
639
|
+
durationMs: z.ZodNumber;
|
|
640
|
+
failed: z.ZodNumber;
|
|
641
|
+
hung: z.ZodNumber;
|
|
642
|
+
label: z.ZodString;
|
|
643
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
644
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
645
|
+
}, z.core.$strict>>;
|
|
646
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
647
|
+
active: z.ZodNumber;
|
|
648
|
+
conversations: z.ZodNumber;
|
|
649
|
+
durationMs: z.ZodNumber;
|
|
650
|
+
failed: z.ZodNumber;
|
|
651
|
+
hung: z.ZodNumber;
|
|
652
|
+
label: z.ZodString;
|
|
653
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
654
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
655
|
+
}, z.core.$strict>>;
|
|
656
|
+
sampleLimit: z.ZodNumber;
|
|
657
|
+
sampleSize: z.ZodNumber;
|
|
658
|
+
source: z.ZodLiteral<"conversation_index">;
|
|
659
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
660
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
661
|
+
truncated: z.ZodBoolean;
|
|
662
|
+
windowEnd: z.ZodString;
|
|
663
|
+
windowStart: z.ZodString;
|
|
664
|
+
}, z.core.$strict>;
|
|
665
|
+
export type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
|
|
666
|
+
export type ConversationSurface = z.infer<typeof conversationSurfaceSchema>;
|
|
667
|
+
export type ConversationCost = z.infer<typeof conversationCostSchema>;
|
|
668
|
+
export type ConversationUsage = z.infer<typeof conversationUsageSchema>;
|
|
669
|
+
export type ActorIdentity = z.infer<typeof actorIdentitySchema>;
|
|
670
|
+
export type ConversationSummaryReport = z.infer<typeof conversationSummaryReportSchema>;
|
|
671
|
+
export type TranscriptPartType = z.infer<typeof transcriptPartTypeSchema>;
|
|
672
|
+
export type TranscriptPart = z.infer<typeof transcriptPartSchema>;
|
|
673
|
+
export type TranscriptRole = z.infer<typeof transcriptRoleSchema>;
|
|
674
|
+
export type TranscriptMessage = z.infer<typeof transcriptMessageSchema>;
|
|
675
|
+
export type ConversationActivityStatus = z.infer<typeof conversationActivityStatusSchema>;
|
|
676
|
+
export type ConversationSubagentActivityReport = z.infer<typeof conversationSubagentActivityReportSchema>;
|
|
677
|
+
export type ConversationToolActivityReport = z.infer<typeof conversationToolActivityReportSchema>;
|
|
678
|
+
export type ConversationActivityReport = z.infer<typeof conversationActivityReportSchema>;
|
|
679
|
+
export type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
|
|
680
|
+
export type ConversationSubagentTranscriptReport = z.infer<typeof conversationSubagentTranscriptReportSchema>;
|
|
681
|
+
export type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
682
|
+
export type ConversationStatsItem = z.infer<typeof conversationStatsItemSchema>;
|
|
683
|
+
export type ConversationStatsReport = z.infer<typeof conversationStatsReportSchema>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type { ConversationSummaryReport, ConversationSurface } from "./
|
|
2
|
-
/** Parse an ISO report timestamp without leaking invalid numbers downstream. */
|
|
3
|
-
export declare function reportTime(value: string): number | undefined;
|
|
1
|
+
import type { ConversationSummaryReport, ConversationSurface } from "./schema";
|
|
4
2
|
/** Format a Slack destination without exposing private channel names. */
|
|
5
3
|
export declare function slackStatsLocationLabel(input: Pick<ConversationSummaryReport, "channel" | "channelName" | "channelNameRedacted">): string | undefined;
|
|
6
4
|
/** Return the generic display label for a conversation surface. */
|
|
7
5
|
export declare function surfaceFallbackLabel(surface: ConversationSurface): string;
|
|
8
|
-
/** Select the most recently seen run independent of input ordering. */
|
|
9
|
-
export declare function newestRun(runs: ConversationSummaryReport[]): ConversationSummaryReport;
|