@sentry/junior 0.112.0 → 0.113.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/dist/{agent-hooks-6MVTPKP4.js → agent-hooks-BKEMWR3Z.js} +8 -8
- package/dist/api/conversations/cursor.d.ts +17 -0
- package/dist/api/conversations/detail.d.ts +16 -18
- package/dist/api/conversations/event-list.d.ts +91 -0
- package/dist/api/conversations/event-page.d.ts +18 -0
- package/dist/api/conversations/events.d.ts +5 -1
- package/dist/api/conversations/projection.d.ts +6 -1
- package/dist/api/schema/conversation.d.ts +132 -51
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -1
- package/dist/api.js +444 -138
- package/dist/app.js +20 -20
- package/dist/{catalog-runtime-UEO25P2J.js → catalog-runtime-6XYOUVRZ.js} +5 -5
- package/dist/chat/pi/transcript.d.ts +2 -0
- package/dist/chat/services/provider-error.d.ts +39 -0
- package/dist/chat/services/provider-retry.d.ts +3 -6
- package/dist/chat/task-execution/state.d.ts +2 -2
- package/dist/chat/task-execution/store.d.ts +1 -1
- package/dist/{chunk-CSS7JHEM.js → chunk-36UJA3OD.js} +1 -1
- package/dist/{chunk-4EJO4HIC.js → chunk-3CTIAKSS.js} +1 -1
- package/dist/{chunk-66IP6WED.js → chunk-4VKFQPCW.js} +4 -4
- package/dist/{chunk-GJG67YFS.js → chunk-4WZ7YKDF.js} +2 -2
- package/dist/{chunk-SKEMI4IF.js → chunk-DXRPHBOU.js} +132 -23
- package/dist/{chunk-GR4IB6OQ.js → chunk-H5ON7XTE.js} +73 -28
- package/dist/{chunk-X3SP5RDW.js → chunk-HMRVILWZ.js} +1 -1
- package/dist/{chunk-2FJ6WEYV.js → chunk-K5BXPM74.js} +1 -1
- package/dist/{chunk-QIALGHRN.js → chunk-LLKDNPYV.js} +2 -2
- package/dist/{chunk-ZHP4KNF7.js → chunk-LR2SKL5Y.js} +1 -1
- package/dist/{chunk-AU2JVUDF.js → chunk-NP7TYFYR.js} +1 -1
- package/dist/{chunk-TZU3R5OC.js → chunk-OXE5ZUTS.js} +1 -1
- package/dist/{chunk-NDQL4ESR.js → chunk-QTS66GMR.js} +2 -2
- package/dist/{chunk-PK4ETCUQ.js → chunk-RCBUZGIT.js} +217 -199
- package/dist/{chunk-JE23YR3X.js → chunk-UKGNSJQQ.js} +50 -42
- package/dist/{chunk-AWNDKI5K.js → chunk-WBB22ANL.js} +20 -15
- package/dist/{chunk-VBSVNOLA.js → chunk-YJ44UT7D.js} +5 -5
- package/dist/{chunk-IV2O4HQJ.js → chunk-ZRSUCJGA.js} +1 -1
- package/dist/cli/chat.js +19 -19
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +11 -11
- package/dist/cli/snapshot-warmup.js +8 -8
- package/dist/cli/upgrade.js +5 -5
- package/dist/{db-P5H5RVQV.js → db-2ASK6MV6.js} +5 -5
- package/dist/instrumentation.js +2 -2
- package/dist/nitro.js +2 -2
- package/dist/{runner-B4ZDUO3R.js → runner-L363K62Z.js} +12 -13
- package/dist/{skills-GWTOZ3XV.js → skills-VCPG3NOO.js} +6 -6
- package/dist/{validation-QFIC6XH6.js → validation-GY7AJBLC.js} +6 -6
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -11,21 +11,21 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-YJ44UT7D.js";
|
|
15
|
+
import "./chunk-HMRVILWZ.js";
|
|
16
|
+
import "./chunk-QTS66GMR.js";
|
|
17
|
+
import "./chunk-LLKDNPYV.js";
|
|
18
18
|
import "./chunk-JQFJO5WH.js";
|
|
19
19
|
import "./chunk-4ZNGQH7C.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-RCBUZGIT.js";
|
|
21
21
|
import "./chunk-VFUK3X5B.js";
|
|
22
22
|
import "./chunk-6Y5L4BOM.js";
|
|
23
23
|
import "./chunk-C4MZ3GP5.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-36UJA3OD.js";
|
|
25
25
|
import "./chunk-42WRQLJ6.js";
|
|
26
26
|
import "./chunk-6GWA276C.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-NP7TYFYR.js";
|
|
28
|
+
import "./chunk-ZRSUCJGA.js";
|
|
29
29
|
import "./chunk-MLKGABMK.js";
|
|
30
30
|
export {
|
|
31
31
|
PluginHookDeniedError,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const conversationCursorPayloadSchema: z.ZodObject<{
|
|
3
|
+
conversationId: z.ZodString;
|
|
4
|
+
seq: z.ZodNumber;
|
|
5
|
+
version: z.ZodLiteral<1>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
type ConversationCursorPayload = z.infer<typeof conversationCursorPayloadSchema>;
|
|
8
|
+
/** Encode an authenticated, conversation-bound event position for an API cursor. */
|
|
9
|
+
export declare function encodeConversationCursor(payload: Omit<ConversationCursorPayload, "version">): string;
|
|
10
|
+
/** Decode an authenticated reporting cursor for the expected conversation. */
|
|
11
|
+
export declare function decodeConversationCursor(args: {
|
|
12
|
+
conversationId: string;
|
|
13
|
+
cursor: string;
|
|
14
|
+
}): {
|
|
15
|
+
seq: number;
|
|
16
|
+
} | undefined;
|
|
17
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ConversationDetailReport } from "../schema/conversation";
|
|
2
2
|
/** Load one conversation from its canonical event history. */
|
|
3
3
|
export declare function readConversationDetail(conversationId: string, options?: {
|
|
4
|
+
limit?: number;
|
|
4
5
|
verifiedViewerEmail?: string;
|
|
5
6
|
}): Promise<ConversationDetailReport | undefined>;
|
|
6
7
|
/** Serve one conversation detail endpoint. */
|
|
@@ -86,25 +87,21 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
|
|
|
86
87
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
87
88
|
type: import("zod").ZodLiteral<"message_handled">;
|
|
88
89
|
messageId: import("zod").ZodString;
|
|
89
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
90
|
-
type: import("zod").ZodLiteral<"tool_started">;
|
|
91
|
-
toolCallId: import("zod").ZodString;
|
|
92
|
-
name: import("zod").ZodString;
|
|
93
90
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
94
91
|
type: import("zod").ZodLiteral<"tool_calls">;
|
|
95
92
|
calls: import("zod").ZodArray<import("zod").ZodObject<{
|
|
96
93
|
toolCallId: import("zod").ZodString;
|
|
97
94
|
name: import("zod").ZodString;
|
|
95
|
+
status: import("zod").ZodEnum<{
|
|
96
|
+
error: "error";
|
|
97
|
+
running: "running";
|
|
98
|
+
completed: "completed";
|
|
99
|
+
}>;
|
|
100
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
+
startedSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
98
102
|
input: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
103
|
+
output: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
99
104
|
}, import("zod/v4/core").$strict>>;
|
|
100
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
101
|
-
type: import("zod").ZodLiteral<"tool_result">;
|
|
102
|
-
toolCallId: import("zod").ZodString;
|
|
103
|
-
outcome: import("zod").ZodEnum<{
|
|
104
|
-
error: "error";
|
|
105
|
-
completed: "completed";
|
|
106
|
-
}>;
|
|
107
|
-
output: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
108
105
|
}, import("zod/v4/core").$strict>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
109
106
|
type: import("zod").ZodLiteral<"turn_lifecycle">;
|
|
110
107
|
turnId: import("zod").ZodString;
|
|
@@ -130,17 +127,17 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
|
|
|
130
127
|
reasoningLevel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
128
|
triggeringToolCallId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
132
129
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
133
|
-
type: import("zod").ZodLiteral<"
|
|
130
|
+
type: import("zod").ZodLiteral<"subagent">;
|
|
131
|
+
startedSeq: import("zod").ZodNumber;
|
|
132
|
+
startedAt: import("zod").ZodString;
|
|
134
133
|
childConversationId: import("zod").ZodString;
|
|
135
134
|
subagentKind: import("zod").ZodString;
|
|
136
135
|
parentToolCallId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
|
-
|
|
138
|
-
type: import("zod").ZodLiteral<"subagent_ended">;
|
|
139
|
-
startedSeq: import("zod").ZodNumber;
|
|
140
|
-
outcome: import("zod").ZodEnum<{
|
|
136
|
+
status: import("zod").ZodEnum<{
|
|
141
137
|
error: "error";
|
|
142
|
-
success: "success";
|
|
143
138
|
aborted: "aborted";
|
|
139
|
+
running: "running";
|
|
140
|
+
completed: "completed";
|
|
144
141
|
}>;
|
|
145
142
|
}, import("zod/v4/core").$strict>], "type">;
|
|
146
143
|
}, import("zod/v4/core").$strict>>;
|
|
@@ -153,6 +150,7 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
|
|
|
153
150
|
status: import("zod").ZodLiteral<"expired">;
|
|
154
151
|
expiredAt: import("zod").ZodString;
|
|
155
152
|
}, import("zod/v4/core").$strict>], "status">;
|
|
153
|
+
previousCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
156
154
|
generatedAt: import("zod").ZodString;
|
|
157
155
|
sentryConversationUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
158
156
|
}, import("zod/v4/core").$strict>>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type ConversationEventPage } from "../schema/conversation";
|
|
2
|
+
/** Read one bounded page of reporting events before a signed cursor. */
|
|
3
|
+
export declare function readConversationEvents(conversationId: string, beforeValue: string, options?: {
|
|
4
|
+
limit?: number;
|
|
5
|
+
verifiedViewerEmail?: string;
|
|
6
|
+
}): Promise<ConversationEventPage | undefined>;
|
|
7
|
+
declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
|
|
8
|
+
events: import("zod").ZodArray<import("zod").ZodObject<{
|
|
9
|
+
seq: import("zod").ZodNumber;
|
|
10
|
+
createdAt: import("zod").ZodString;
|
|
11
|
+
data: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
12
|
+
type: import("zod").ZodLiteral<"message">;
|
|
13
|
+
messageId: import("zod").ZodString;
|
|
14
|
+
role: import("zod").ZodEnum<{
|
|
15
|
+
system: "system";
|
|
16
|
+
user: "user";
|
|
17
|
+
assistant: "assistant";
|
|
18
|
+
}>;
|
|
19
|
+
eventType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
redacted: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
22
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
23
|
+
type: import("zod").ZodLiteral<"message_handled">;
|
|
24
|
+
messageId: import("zod").ZodString;
|
|
25
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
26
|
+
type: import("zod").ZodLiteral<"tool_calls">;
|
|
27
|
+
calls: import("zod").ZodArray<import("zod").ZodObject<{
|
|
28
|
+
toolCallId: import("zod").ZodString;
|
|
29
|
+
name: import("zod").ZodString;
|
|
30
|
+
status: import("zod").ZodEnum<{
|
|
31
|
+
error: "error";
|
|
32
|
+
running: "running";
|
|
33
|
+
completed: "completed";
|
|
34
|
+
}>;
|
|
35
|
+
startedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
startedSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
37
|
+
input: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
38
|
+
output: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
39
|
+
}, import("zod/v4/core").$strict>>;
|
|
40
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
41
|
+
type: import("zod").ZodLiteral<"turn_lifecycle">;
|
|
42
|
+
turnId: import("zod").ZodString;
|
|
43
|
+
state: import("zod").ZodEnum<{
|
|
44
|
+
no_reply: "no_reply";
|
|
45
|
+
started: "started";
|
|
46
|
+
succeeded: "succeeded";
|
|
47
|
+
}>;
|
|
48
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
49
|
+
type: import("zod").ZodLiteral<"turn_lifecycle">;
|
|
50
|
+
turnId: import("zod").ZodString;
|
|
51
|
+
state: import("zod").ZodLiteral<"failed">;
|
|
52
|
+
failureKind: import("zod").ZodEnum<{
|
|
53
|
+
delivery: "delivery";
|
|
54
|
+
agent: "agent";
|
|
55
|
+
}>;
|
|
56
|
+
}, import("zod/v4/core").$strict>], "state">, import("zod").ZodObject<{
|
|
57
|
+
type: import("zod").ZodLiteral<"compaction">;
|
|
58
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
59
|
+
type: import("zod").ZodLiteral<"handoff">;
|
|
60
|
+
modelProfile: import("zod").ZodString;
|
|
61
|
+
modelId: import("zod").ZodString;
|
|
62
|
+
reasoningLevel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
triggeringToolCallId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
65
|
+
type: import("zod").ZodLiteral<"subagent">;
|
|
66
|
+
startedSeq: import("zod").ZodNumber;
|
|
67
|
+
startedAt: import("zod").ZodString;
|
|
68
|
+
childConversationId: import("zod").ZodString;
|
|
69
|
+
subagentKind: import("zod").ZodString;
|
|
70
|
+
parentToolCallId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
|
+
status: import("zod").ZodEnum<{
|
|
72
|
+
error: "error";
|
|
73
|
+
aborted: "aborted";
|
|
74
|
+
running: "running";
|
|
75
|
+
completed: "completed";
|
|
76
|
+
}>;
|
|
77
|
+
}, import("zod/v4/core").$strict>], "type">;
|
|
78
|
+
}, import("zod/v4/core").$strict>>;
|
|
79
|
+
eventHistory: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
80
|
+
status: import("zod").ZodLiteral<"available">;
|
|
81
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
82
|
+
status: import("zod").ZodLiteral<"redacted">;
|
|
83
|
+
reason: import("zod").ZodLiteral<"non_public_conversation">;
|
|
84
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
85
|
+
status: import("zod").ZodLiteral<"expired">;
|
|
86
|
+
expiredAt: import("zod").ZodString;
|
|
87
|
+
}, import("zod/v4/core").$strict>], "status">;
|
|
88
|
+
previousCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
89
|
+
generatedAt: import("zod").ZodString;
|
|
90
|
+
}, import("zod/v4/core").$strict>>;
|
|
91
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { JuniorSqlDatabase } from "@/db/db";
|
|
2
|
+
import type { ConversationReportEvent } from "../schema/conversation";
|
|
3
|
+
/**
|
|
4
|
+
* Read the latest reporting events before an exclusive boundary.
|
|
5
|
+
*
|
|
6
|
+
* Source rows are scanned in bounded chunks until the requested projected page
|
|
7
|
+
* and one older event are known. This keeps ordinary pages bounded without
|
|
8
|
+
* assuming every canonical agent step produces a reporting event.
|
|
9
|
+
*/
|
|
10
|
+
export declare function readConversationEventPage(executor: JuniorSqlDatabase, args: {
|
|
11
|
+
beforeSeq?: number;
|
|
12
|
+
canExposePayload: boolean;
|
|
13
|
+
conversationId: string;
|
|
14
|
+
limit: number;
|
|
15
|
+
}): Promise<{
|
|
16
|
+
events: ConversationReportEvent[];
|
|
17
|
+
previousSeq?: number;
|
|
18
|
+
}>;
|
|
@@ -2,13 +2,17 @@ import type { ConversationEvent } from "@/chat/conversations/history";
|
|
|
2
2
|
import { type ConversationReportEvent } from "../schema/conversation";
|
|
3
3
|
/** Canonical event types that can contribute to the reporting projection. */
|
|
4
4
|
export declare const conversationReportSourceEventTypes: readonly ["message", "message_handled", "agent_step", "tool_execution_started", "turn_started", "turn_completed", "turn_failed", "compaction", "handoff", "subagent_started", "subagent_ended"];
|
|
5
|
+
/** Return tool result ids that may need start metadata from outside a page. */
|
|
6
|
+
export declare function conversationReportToolResultIds(events: ConversationEvent[]): string[];
|
|
5
7
|
/**
|
|
6
8
|
* Project canonical events into the ordered reporting boundary.
|
|
7
9
|
*
|
|
8
10
|
* `canExposePayload` must come from the authorized conversation-detail policy;
|
|
9
11
|
* this projection never derives visibility or authorization from event data.
|
|
10
12
|
*/
|
|
11
|
-
export declare function
|
|
13
|
+
export declare function projectConversationReportEventPage(args: {
|
|
12
14
|
canExposePayload: boolean;
|
|
13
15
|
events: ConversationEvent[];
|
|
16
|
+
subagentStartEvents?: ConversationEvent[];
|
|
17
|
+
toolStartEvents?: ConversationEvent[];
|
|
14
18
|
}): ConversationReportEvent[];
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { Conversation as StoredConversation } from "@/chat/conversations/store";
|
|
2
|
-
import type { ConversationSummaryReport, ConversationUsage } from "../schema/conversation";
|
|
2
|
+
import type { ConversationEventHistory, ConversationSummaryReport, ConversationUsage } from "../schema/conversation";
|
|
3
3
|
import type { ConversationAccess } from "./access";
|
|
4
4
|
type ConversationProjectionSource = Pick<StoredConversation, "actor" | "archivedAtMs" | "channelName" | "conversationId" | "createdAtMs" | "execution" | "lastActivityAtMs" | "source" | "title" | "updatedAtMs">;
|
|
5
|
+
/** Describe whether a viewer can read one conversation's retained events. */
|
|
6
|
+
export declare function conversationEventHistory(args: {
|
|
7
|
+
canExposePayload: boolean;
|
|
8
|
+
transcriptPurgedAtMs?: number;
|
|
9
|
+
}): ConversationEventHistory;
|
|
5
10
|
/** Project one durable conversation and its SQL metrics into the REST summary. */
|
|
6
11
|
export declare function conversationSummaryFromStoredConversation(args: {
|
|
7
12
|
access?: ConversationAccess;
|
|
@@ -35,6 +35,13 @@ export declare const conversationUsageSchema: z.ZodObject<{
|
|
|
35
35
|
export declare const conversationParamsSchema: z.ZodObject<{
|
|
36
36
|
conversationId: z.ZodString;
|
|
37
37
|
}, z.core.$strict>;
|
|
38
|
+
export declare const conversationDetailQuerySchema: z.ZodObject<{
|
|
39
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
export declare const conversationEventsQuerySchema: z.ZodObject<{
|
|
42
|
+
before: z.ZodString;
|
|
43
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
44
|
+
}, z.core.$strict>;
|
|
38
45
|
export declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
39
46
|
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
40
47
|
}, z.core.$strict>;
|
|
@@ -114,25 +121,21 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
114
121
|
}, z.core.$strict>, z.ZodObject<{
|
|
115
122
|
type: z.ZodLiteral<"message_handled">;
|
|
116
123
|
messageId: z.ZodString;
|
|
117
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
118
|
-
type: z.ZodLiteral<"tool_started">;
|
|
119
|
-
toolCallId: z.ZodString;
|
|
120
|
-
name: z.ZodString;
|
|
121
124
|
}, z.core.$strict>, z.ZodObject<{
|
|
122
125
|
type: z.ZodLiteral<"tool_calls">;
|
|
123
126
|
calls: z.ZodArray<z.ZodObject<{
|
|
124
127
|
toolCallId: z.ZodString;
|
|
125
128
|
name: z.ZodString;
|
|
129
|
+
status: z.ZodEnum<{
|
|
130
|
+
error: "error";
|
|
131
|
+
running: "running";
|
|
132
|
+
completed: "completed";
|
|
133
|
+
}>;
|
|
134
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
135
|
+
startedSeq: z.ZodOptional<z.ZodNumber>;
|
|
126
136
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
137
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
127
138
|
}, z.core.$strict>>;
|
|
128
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
129
|
-
type: z.ZodLiteral<"tool_result">;
|
|
130
|
-
toolCallId: z.ZodString;
|
|
131
|
-
outcome: z.ZodEnum<{
|
|
132
|
-
error: "error";
|
|
133
|
-
completed: "completed";
|
|
134
|
-
}>;
|
|
135
|
-
output: z.ZodOptional<z.ZodUnknown>;
|
|
136
139
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
137
140
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
138
141
|
turnId: z.ZodString;
|
|
@@ -158,17 +161,17 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
158
161
|
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
159
162
|
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
160
163
|
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
-
type: z.ZodLiteral<"
|
|
164
|
+
type: z.ZodLiteral<"subagent">;
|
|
165
|
+
startedSeq: z.ZodNumber;
|
|
166
|
+
startedAt: z.ZodString;
|
|
162
167
|
childConversationId: z.ZodString;
|
|
163
168
|
subagentKind: z.ZodString;
|
|
164
169
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
165
|
-
|
|
166
|
-
type: z.ZodLiteral<"subagent_ended">;
|
|
167
|
-
startedSeq: z.ZodNumber;
|
|
168
|
-
outcome: z.ZodEnum<{
|
|
170
|
+
status: z.ZodEnum<{
|
|
169
171
|
error: "error";
|
|
170
|
-
success: "success";
|
|
171
172
|
aborted: "aborted";
|
|
173
|
+
running: "running";
|
|
174
|
+
completed: "completed";
|
|
172
175
|
}>;
|
|
173
176
|
}, z.core.$strict>], "type">;
|
|
174
177
|
/** One ordered, privacy-safe canonical event projected for API consumers. */
|
|
@@ -189,25 +192,21 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
189
192
|
}, z.core.$strict>, z.ZodObject<{
|
|
190
193
|
type: z.ZodLiteral<"message_handled">;
|
|
191
194
|
messageId: z.ZodString;
|
|
192
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
-
type: z.ZodLiteral<"tool_started">;
|
|
194
|
-
toolCallId: z.ZodString;
|
|
195
|
-
name: z.ZodString;
|
|
196
195
|
}, z.core.$strict>, z.ZodObject<{
|
|
197
196
|
type: z.ZodLiteral<"tool_calls">;
|
|
198
197
|
calls: z.ZodArray<z.ZodObject<{
|
|
199
198
|
toolCallId: z.ZodString;
|
|
200
199
|
name: z.ZodString;
|
|
200
|
+
status: z.ZodEnum<{
|
|
201
|
+
error: "error";
|
|
202
|
+
running: "running";
|
|
203
|
+
completed: "completed";
|
|
204
|
+
}>;
|
|
205
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
206
|
+
startedSeq: z.ZodOptional<z.ZodNumber>;
|
|
201
207
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
208
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
202
209
|
}, z.core.$strict>>;
|
|
203
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
204
|
-
type: z.ZodLiteral<"tool_result">;
|
|
205
|
-
toolCallId: z.ZodString;
|
|
206
|
-
outcome: z.ZodEnum<{
|
|
207
|
-
error: "error";
|
|
208
|
-
completed: "completed";
|
|
209
|
-
}>;
|
|
210
|
-
output: z.ZodOptional<z.ZodUnknown>;
|
|
211
210
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
212
211
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
213
212
|
turnId: z.ZodString;
|
|
@@ -233,17 +232,17 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
233
232
|
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
234
233
|
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
235
234
|
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
-
type: z.ZodLiteral<"
|
|
235
|
+
type: z.ZodLiteral<"subagent">;
|
|
236
|
+
startedSeq: z.ZodNumber;
|
|
237
|
+
startedAt: z.ZodString;
|
|
237
238
|
childConversationId: z.ZodString;
|
|
238
239
|
subagentKind: z.ZodString;
|
|
239
240
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
240
|
-
|
|
241
|
-
type: z.ZodLiteral<"subagent_ended">;
|
|
242
|
-
startedSeq: z.ZodNumber;
|
|
243
|
-
outcome: z.ZodEnum<{
|
|
241
|
+
status: z.ZodEnum<{
|
|
244
242
|
error: "error";
|
|
245
|
-
success: "success";
|
|
246
243
|
aborted: "aborted";
|
|
244
|
+
running: "running";
|
|
245
|
+
completed: "completed";
|
|
247
246
|
}>;
|
|
248
247
|
}, z.core.$strict>], "type">;
|
|
249
248
|
}, z.core.$strict>;
|
|
@@ -357,25 +356,106 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
357
356
|
}, z.core.$strict>, z.ZodObject<{
|
|
358
357
|
type: z.ZodLiteral<"message_handled">;
|
|
359
358
|
messageId: z.ZodString;
|
|
360
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
361
|
-
type: z.ZodLiteral<"tool_started">;
|
|
362
|
-
toolCallId: z.ZodString;
|
|
363
|
-
name: z.ZodString;
|
|
364
359
|
}, z.core.$strict>, z.ZodObject<{
|
|
365
360
|
type: z.ZodLiteral<"tool_calls">;
|
|
366
361
|
calls: z.ZodArray<z.ZodObject<{
|
|
367
362
|
toolCallId: z.ZodString;
|
|
368
363
|
name: z.ZodString;
|
|
364
|
+
status: z.ZodEnum<{
|
|
365
|
+
error: "error";
|
|
366
|
+
running: "running";
|
|
367
|
+
completed: "completed";
|
|
368
|
+
}>;
|
|
369
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
370
|
+
startedSeq: z.ZodOptional<z.ZodNumber>;
|
|
369
371
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
372
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
370
373
|
}, z.core.$strict>>;
|
|
374
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
376
|
+
turnId: z.ZodString;
|
|
377
|
+
state: z.ZodEnum<{
|
|
378
|
+
no_reply: "no_reply";
|
|
379
|
+
started: "started";
|
|
380
|
+
succeeded: "succeeded";
|
|
381
|
+
}>;
|
|
371
382
|
}, z.core.$strict>, z.ZodObject<{
|
|
372
|
-
type: z.ZodLiteral<"
|
|
373
|
-
|
|
374
|
-
|
|
383
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
384
|
+
turnId: z.ZodString;
|
|
385
|
+
state: z.ZodLiteral<"failed">;
|
|
386
|
+
failureKind: z.ZodEnum<{
|
|
387
|
+
delivery: "delivery";
|
|
388
|
+
agent: "agent";
|
|
389
|
+
}>;
|
|
390
|
+
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
391
|
+
type: z.ZodLiteral<"compaction">;
|
|
392
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
393
|
+
type: z.ZodLiteral<"handoff">;
|
|
394
|
+
modelProfile: z.ZodString;
|
|
395
|
+
modelId: z.ZodString;
|
|
396
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
397
|
+
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
398
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
399
|
+
type: z.ZodLiteral<"subagent">;
|
|
400
|
+
startedSeq: z.ZodNumber;
|
|
401
|
+
startedAt: z.ZodString;
|
|
402
|
+
childConversationId: z.ZodString;
|
|
403
|
+
subagentKind: z.ZodString;
|
|
404
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
405
|
+
status: z.ZodEnum<{
|
|
375
406
|
error: "error";
|
|
407
|
+
aborted: "aborted";
|
|
408
|
+
running: "running";
|
|
376
409
|
completed: "completed";
|
|
377
410
|
}>;
|
|
378
|
-
|
|
411
|
+
}, z.core.$strict>], "type">;
|
|
412
|
+
}, z.core.$strict>>;
|
|
413
|
+
eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
414
|
+
status: z.ZodLiteral<"available">;
|
|
415
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
416
|
+
status: z.ZodLiteral<"redacted">;
|
|
417
|
+
reason: z.ZodLiteral<"non_public_conversation">;
|
|
418
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
419
|
+
status: z.ZodLiteral<"expired">;
|
|
420
|
+
expiredAt: z.ZodString;
|
|
421
|
+
}, z.core.$strict>], "status">;
|
|
422
|
+
previousCursor: z.ZodOptional<z.ZodString>;
|
|
423
|
+
generatedAt: z.ZodString;
|
|
424
|
+
sentryConversationUrl: z.ZodOptional<z.ZodString>;
|
|
425
|
+
}, z.core.$strict>;
|
|
426
|
+
export declare const conversationEventPageSchema: z.ZodObject<{
|
|
427
|
+
events: z.ZodArray<z.ZodObject<{
|
|
428
|
+
seq: z.ZodNumber;
|
|
429
|
+
createdAt: z.ZodString;
|
|
430
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
431
|
+
type: z.ZodLiteral<"message">;
|
|
432
|
+
messageId: z.ZodString;
|
|
433
|
+
role: z.ZodEnum<{
|
|
434
|
+
system: "system";
|
|
435
|
+
user: "user";
|
|
436
|
+
assistant: "assistant";
|
|
437
|
+
}>;
|
|
438
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
439
|
+
text: z.ZodOptional<z.ZodString>;
|
|
440
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
442
|
+
type: z.ZodLiteral<"message_handled">;
|
|
443
|
+
messageId: z.ZodString;
|
|
444
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
445
|
+
type: z.ZodLiteral<"tool_calls">;
|
|
446
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
447
|
+
toolCallId: z.ZodString;
|
|
448
|
+
name: z.ZodString;
|
|
449
|
+
status: z.ZodEnum<{
|
|
450
|
+
error: "error";
|
|
451
|
+
running: "running";
|
|
452
|
+
completed: "completed";
|
|
453
|
+
}>;
|
|
454
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
455
|
+
startedSeq: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
457
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
458
|
+
}, z.core.$strict>>;
|
|
379
459
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
380
460
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
381
461
|
turnId: z.ZodString;
|
|
@@ -401,17 +481,17 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
401
481
|
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
402
482
|
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
403
483
|
}, z.core.$strict>, z.ZodObject<{
|
|
404
|
-
type: z.ZodLiteral<"
|
|
484
|
+
type: z.ZodLiteral<"subagent">;
|
|
485
|
+
startedSeq: z.ZodNumber;
|
|
486
|
+
startedAt: z.ZodString;
|
|
405
487
|
childConversationId: z.ZodString;
|
|
406
488
|
subagentKind: z.ZodString;
|
|
407
489
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
408
|
-
|
|
409
|
-
type: z.ZodLiteral<"subagent_ended">;
|
|
410
|
-
startedSeq: z.ZodNumber;
|
|
411
|
-
outcome: z.ZodEnum<{
|
|
490
|
+
status: z.ZodEnum<{
|
|
412
491
|
error: "error";
|
|
413
|
-
success: "success";
|
|
414
492
|
aborted: "aborted";
|
|
493
|
+
running: "running";
|
|
494
|
+
completed: "completed";
|
|
415
495
|
}>;
|
|
416
496
|
}, z.core.$strict>], "type">;
|
|
417
497
|
}, z.core.$strict>>;
|
|
@@ -424,8 +504,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
424
504
|
status: z.ZodLiteral<"expired">;
|
|
425
505
|
expiredAt: z.ZodString;
|
|
426
506
|
}, z.core.$strict>], "status">;
|
|
507
|
+
previousCursor: z.ZodOptional<z.ZodString>;
|
|
427
508
|
generatedAt: z.ZodString;
|
|
428
|
-
sentryConversationUrl: z.ZodOptional<z.ZodString>;
|
|
429
509
|
}, z.core.$strict>;
|
|
430
510
|
export declare const conversationFeedSchema: z.ZodObject<{
|
|
431
511
|
conversations: z.ZodArray<z.ZodObject<{
|
|
@@ -541,6 +621,7 @@ export type ConversationReportEventData = z.infer<typeof conversationReportEvent
|
|
|
541
621
|
export type ConversationReportEvent = z.infer<typeof conversationReportEventSchema>;
|
|
542
622
|
export type ConversationEventHistory = z.infer<typeof conversationEventHistorySchema>;
|
|
543
623
|
export type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
|
|
624
|
+
export type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
|
|
544
625
|
export type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
545
626
|
export type ConversationStatsItem = z.infer<typeof conversationStatsItemSchema>;
|
|
546
627
|
export type ConversationMetricDay = z.infer<typeof conversationMetricDaySchema>;
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { dailyConversationActivitySchema } from "./activity";
|
|
2
2
|
export type { DailyConversationActivity } from "./activity";
|
|
3
|
-
export { archiveConversationBodySchema, archiveConversationResponseSchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, } from "./schema/conversation";
|
|
4
|
-
export type { ArchiveConversationBody, ArchiveConversationResponse, ActorIdentity, ConversationCost, ConversationDetailReport, ConversationEventHistory, ConversationFeed, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationMetricDay, ConversationModelUsage, ConversationParams, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, } from "./schema/conversation";
|
|
3
|
+
export { archiveConversationBodySchema, archiveConversationResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventPageSchema, conversationEventHistorySchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, } from "./schema/conversation";
|
|
4
|
+
export type { ArchiveConversationBody, ArchiveConversationResponse, ActorIdentity, ConversationCost, ConversationDetailReport, ConversationEventPage, ConversationEventHistory, ConversationFeed, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationMetricDay, ConversationModelUsage, ConversationParams, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, } from "./schema/conversation";
|
|
5
5
|
export { actorDirectoryReportSchema, actorProfileReportSchema, personParamsSchema, } from "./schema/person";
|
|
6
6
|
export { locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, } from "./schema/location";
|
|
7
7
|
export type { LocationActorSummaryReport, LocationActivityDayReport, LocationDetailReport, LocationDirectoryReport, LocationSummaryReport, LocationParams, } from "./schema/location";
|
package/dist/api/schema.js
CHANGED
|
@@ -4,8 +4,11 @@ import {
|
|
|
4
4
|
apiErrorSchema,
|
|
5
5
|
archiveConversationBodySchema,
|
|
6
6
|
archiveConversationResponseSchema,
|
|
7
|
+
conversationDetailQuerySchema,
|
|
7
8
|
conversationDetailReportSchema,
|
|
8
9
|
conversationEventHistorySchema,
|
|
10
|
+
conversationEventPageSchema,
|
|
11
|
+
conversationEventsQuerySchema,
|
|
9
12
|
conversationFeedQuerySchema,
|
|
10
13
|
conversationFeedSchema,
|
|
11
14
|
conversationParamsSchema,
|
|
@@ -19,7 +22,7 @@ import {
|
|
|
19
22
|
locationDirectoryReportSchema,
|
|
20
23
|
locationParamsSchema,
|
|
21
24
|
personParamsSchema
|
|
22
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-UKGNSJQQ.js";
|
|
23
26
|
import {
|
|
24
27
|
healthReportSchema,
|
|
25
28
|
pluginOperationalReportFeedSchema,
|
|
@@ -41,8 +44,11 @@ export {
|
|
|
41
44
|
apiErrorSchema,
|
|
42
45
|
archiveConversationBodySchema,
|
|
43
46
|
archiveConversationResponseSchema,
|
|
47
|
+
conversationDetailQuerySchema,
|
|
44
48
|
conversationDetailReportSchema,
|
|
45
49
|
conversationEventHistorySchema,
|
|
50
|
+
conversationEventPageSchema,
|
|
51
|
+
conversationEventsQuerySchema,
|
|
46
52
|
conversationFeedQuerySchema,
|
|
47
53
|
conversationFeedSchema,
|
|
48
54
|
conversationParamsSchema,
|