@sentry/junior 0.122.1 → 0.124.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.
Files changed (78) hide show
  1. package/dist/{agent-hooks-65WXVKKX.js → agent-hooks-RPQRUAGN.js} +7 -7
  2. package/dist/api/conversations/detail.d.ts +55 -0
  3. package/dist/api/conversations/event-list.d.ts +55 -0
  4. package/dist/api/conversations/events.d.ts +1 -1
  5. package/dist/api/conversations/stats.d.ts +15 -0
  6. package/dist/api/schema/conversation.d.ts +260 -0
  7. package/dist/api/schema.d.ts +1 -1
  8. package/dist/api/schema.js +1 -1
  9. package/dist/api.js +137 -22
  10. package/dist/app.js +33 -20
  11. package/dist/{catalog-runtime-VNNMSKCB.js → catalog-runtime-QM2W6BBD.js} +5 -5
  12. package/dist/chat/agent/action-confirmation-retry.d.ts +6 -0
  13. package/dist/chat/agent/tools.d.ts +12 -0
  14. package/dist/chat/config.d.ts +1 -0
  15. package/dist/chat/conversations/history.d.ts +91 -1
  16. package/dist/chat/conversations/projection.d.ts +24 -0
  17. package/dist/chat/conversations/provenance.d.ts +2 -0
  18. package/dist/chat/conversations/structured-events.d.ts +31 -0
  19. package/dist/chat/mcp/tool-manager.d.ts +1 -1
  20. package/dist/chat/pi/client.d.ts +6 -0
  21. package/dist/chat/pi/sdk.d.ts +1 -1
  22. package/dist/chat/pi/transcript.d.ts +2 -0
  23. package/dist/chat/plugins/agent-hooks.d.ts +2 -0
  24. package/dist/chat/plugins/conversation-events.d.ts +15 -0
  25. package/dist/chat/services/guardian-action-policy.d.ts +12 -0
  26. package/dist/chat/services/guardian-action-review.d.ts +9 -0
  27. package/dist/chat/services/provider-error.d.ts +2 -0
  28. package/dist/chat/tool-support/action-review-evidence.d.ts +4 -0
  29. package/dist/chat/tool-support/action-review-history.d.ts +117 -0
  30. package/dist/chat/tool-support/action-review.d.ts +142 -0
  31. package/dist/chat/tool-support/pi-tool-adapter.d.ts +2 -1
  32. package/dist/chat/tool-support/skill/mcp-tool-summary.d.ts +1 -6
  33. package/dist/chat/tool-support/zod-tool.d.ts +1 -0
  34. package/dist/chat/tools/definition.d.ts +23 -1
  35. package/dist/chat/tools/query-conversation-events.d.ts +1 -1
  36. package/dist/chat/tools/search-tools.d.ts +0 -20
  37. package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -20
  38. package/dist/{chunk-73TQBD5S.js → chunk-4HQMMFRL.js} +1 -1
  39. package/dist/{chunk-3KYLHUVC.js → chunk-4OWSABFE.js} +1474 -593
  40. package/dist/{chunk-LZ4XXS76.js → chunk-7S36LUYT.js} +3 -2
  41. package/dist/{chunk-4ZV2GNHX.js → chunk-APPWCJVJ.js} +1 -1
  42. package/dist/{chunk-O2ULQJWR.js → chunk-AYQZCJZJ.js} +47 -1
  43. package/dist/{chunk-XBYNPBPQ.js → chunk-EKVBTUVM.js} +2 -2
  44. package/dist/{chunk-VLRECFIC.js → chunk-GBIFLB5Y.js} +57 -11
  45. package/dist/{chunk-MSDKKTRG.js → chunk-HOVHXQQE.js} +4 -4
  46. package/dist/{chunk-TI7SYDD4.js → chunk-IYUHOYFA.js} +68 -4
  47. package/dist/{chunk-HGREP4UX.js → chunk-MG3L3UGS.js} +1 -1
  48. package/dist/{chunk-GPQLJDT5.js → chunk-PBZEJRYY.js} +20 -20
  49. package/dist/{chunk-QE33ATQW.js → chunk-PGLSOXFU.js} +19 -11
  50. package/dist/{chunk-MU6HHZEN.js → chunk-PR3M62LK.js} +74 -0
  51. package/dist/{chunk-WFJ2EG4E.js → chunk-RW6MD6ZV.js} +1 -1
  52. package/dist/{chunk-IEE5CSAP.js → chunk-TFO4SDCQ.js} +1 -1
  53. package/dist/{chunk-PYS4QZAF.js → chunk-UZAOIEAR.js} +1 -1
  54. package/dist/{chunk-4JPJTFUH.js → chunk-VLAWZSCB.js} +9 -4
  55. package/dist/chunk-W4YS2LXS.js +55 -0
  56. package/dist/{chunk-U5PRRZMZ.js → chunk-WFIXN6UU.js} +7 -7
  57. package/dist/{chunk-BXT63TNS.js → chunk-WKLA6WLW.js} +77 -6
  58. package/dist/{chunk-M7KAZXTE.js → chunk-YYAQ5ZNK.js} +30 -2
  59. package/dist/{chunk-PXPBBOIU.js → chunk-ZV2K3WM4.js} +1 -1
  60. package/dist/cli/chat.js +22 -22
  61. package/dist/cli/check.js +6 -6
  62. package/dist/cli/init.js +2 -1
  63. package/dist/cli/plugins.js +10 -10
  64. package/dist/cli/snapshot-create.js +8 -8
  65. package/dist/cli/upgrade.js +5 -5
  66. package/dist/{db-36HXKAKH.js → db-2W4KOPLN.js} +5 -5
  67. package/dist/instrumentation.js +2 -2
  68. package/dist/nitro.js +2 -2
  69. package/dist/{oauth-callback-server-UKOO7KKP.js → oauth-callback-server-3TGRLQUD.js} +16 -15
  70. package/dist/{runner-M66KMCQ7.js → runner-NAVNNKQY.js} +11 -10
  71. package/dist/{skills-TTXTVFOG.js → skills-FIVS6EXW.js} +6 -6
  72. package/dist/{validation-TGASRGNN.js → validation-NX4DAKNV.js} +6 -6
  73. package/dist/version.js +1 -1
  74. package/migrations/0012_structured_conversation_events.sql +4 -0
  75. package/migrations/meta/0012_snapshot.json +1244 -0
  76. package/migrations/meta/_journal.json +7 -0
  77. package/package.json +7 -6
  78. package/dist/chat/tool-support/schema-summary.d.ts +0 -2
@@ -11,20 +11,20 @@ import {
11
11
  getPlugins,
12
12
  setPlugins,
13
13
  validatePlugins
14
- } from "./chunk-QE33ATQW.js";
15
- import "./chunk-M7KAZXTE.js";
14
+ } from "./chunk-PGLSOXFU.js";
15
+ import "./chunk-YYAQ5ZNK.js";
16
16
  import "./chunk-GCGJGSQL.js";
17
- import "./chunk-WFJ2EG4E.js";
18
- import "./chunk-TI7SYDD4.js";
17
+ import "./chunk-RW6MD6ZV.js";
18
+ import "./chunk-IYUHOYFA.js";
19
19
  import "./chunk-VFUK3X5B.js";
20
20
  import "./chunk-S7G34U75.js";
21
21
  import "./chunk-HZF5P5UN.js";
22
- import "./chunk-4JPJTFUH.js";
22
+ import "./chunk-VLAWZSCB.js";
23
23
  import "./chunk-OB42YVAE.js";
24
24
  import "./chunk-F3B2YJ76.js";
25
25
  import "./chunk-6GWA276C.js";
26
- import "./chunk-PYS4QZAF.js";
27
- import "./chunk-LZ4XXS76.js";
26
+ import "./chunk-UZAOIEAR.js";
27
+ import "./chunk-7S36LUYT.js";
28
28
  import "./chunk-MLKGABMK.js";
29
29
  export {
30
30
  PluginHookDeniedError,
@@ -99,6 +99,12 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
99
99
  user: "user";
100
100
  assistant: "assistant";
101
101
  }>;
102
+ actorIdentity: import("zod").ZodOptional<import("zod").ZodObject<{
103
+ email: import("zod").ZodOptional<import("zod").ZodString>;
104
+ fullName: import("zod").ZodOptional<import("zod").ZodString>;
105
+ slackUserId: import("zod").ZodOptional<import("zod").ZodString>;
106
+ slackUserName: import("zod").ZodOptional<import("zod").ZodString>;
107
+ }, import("zod/v4/core").$strict>>;
102
108
  eventType: import("zod").ZodOptional<import("zod").ZodString>;
103
109
  text: import("zod").ZodOptional<import("zod").ZodString>;
104
110
  redacted: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
@@ -160,6 +166,33 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
160
166
  kind: import("zod").ZodString;
161
167
  version: import("zod").ZodNumber;
162
168
  content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
169
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
170
+ type: import("zod").ZodLiteral<"structured_event">;
171
+ namespace: import("zod").ZodString;
172
+ name: import("zod").ZodString;
173
+ version: import("zod").ZodNumber;
174
+ turnId: import("zod").ZodOptional<import("zod").ZodString>;
175
+ presentation: import("zod").ZodObject<{
176
+ details: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
177
+ description: import("zod").ZodOptional<import("zod").ZodString>;
178
+ metadata: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
179
+ title: import("zod").ZodString;
180
+ }, import("zod/v4/core").$strict>>>;
181
+ icon: import("zod").ZodOptional<import("zod").ZodEnum<{
182
+ check: "check";
183
+ info: "info";
184
+ warning: "warning";
185
+ key: "key";
186
+ link: "link";
187
+ activity: "activity";
188
+ brain: "brain";
189
+ calendar: "calendar";
190
+ database: "database";
191
+ sparkles: "sparkles";
192
+ }>>;
193
+ preview: import("zod").ZodOptional<import("zod").ZodString>;
194
+ title: import("zod").ZodString;
195
+ }, import("zod/v4/core").$strict>;
163
196
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
164
197
  type: import("zod").ZodLiteral<"turn_routed">;
165
198
  turnId: import("zod").ZodString;
@@ -172,6 +205,28 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
172
205
  inherited: "inherited";
173
206
  router: "router";
174
207
  }>;
208
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
209
+ type: import("zod").ZodLiteral<"guardian_action_reviewed">;
210
+ turnId: import("zod").ZodString;
211
+ toolCallId: import("zod").ZodString;
212
+ toolName: import("zod").ZodString;
213
+ decision: import("zod").ZodEnum<{
214
+ allow: "allow";
215
+ ask: "ask";
216
+ deny: "deny";
217
+ }>;
218
+ riskLevel: import("zod").ZodEnum<{
219
+ low: "low";
220
+ medium: "medium";
221
+ high: "high";
222
+ critical: "critical";
223
+ }>;
224
+ userAuthorization: import("zod").ZodEnum<{
225
+ unknown: "unknown";
226
+ low: "low";
227
+ medium: "medium";
228
+ high: "high";
229
+ }>;
175
230
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
176
231
  type: import("zod").ZodLiteral<"compaction">;
177
232
  modelProfile: import("zod").ZodOptional<import("zod").ZodString>;
@@ -16,6 +16,12 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
16
16
  user: "user";
17
17
  assistant: "assistant";
18
18
  }>;
19
+ actorIdentity: import("zod").ZodOptional<import("zod").ZodObject<{
20
+ email: import("zod").ZodOptional<import("zod").ZodString>;
21
+ fullName: import("zod").ZodOptional<import("zod").ZodString>;
22
+ slackUserId: import("zod").ZodOptional<import("zod").ZodString>;
23
+ slackUserName: import("zod").ZodOptional<import("zod").ZodString>;
24
+ }, import("zod/v4/core").$strict>>;
19
25
  eventType: import("zod").ZodOptional<import("zod").ZodString>;
20
26
  text: import("zod").ZodOptional<import("zod").ZodString>;
21
27
  redacted: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
@@ -77,6 +83,33 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
77
83
  kind: import("zod").ZodString;
78
84
  version: import("zod").ZodNumber;
79
85
  content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
86
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
87
+ type: import("zod").ZodLiteral<"structured_event">;
88
+ namespace: import("zod").ZodString;
89
+ name: import("zod").ZodString;
90
+ version: import("zod").ZodNumber;
91
+ turnId: import("zod").ZodOptional<import("zod").ZodString>;
92
+ presentation: import("zod").ZodObject<{
93
+ details: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
94
+ description: import("zod").ZodOptional<import("zod").ZodString>;
95
+ metadata: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
96
+ title: import("zod").ZodString;
97
+ }, import("zod/v4/core").$strict>>>;
98
+ icon: import("zod").ZodOptional<import("zod").ZodEnum<{
99
+ check: "check";
100
+ info: "info";
101
+ warning: "warning";
102
+ key: "key";
103
+ link: "link";
104
+ activity: "activity";
105
+ brain: "brain";
106
+ calendar: "calendar";
107
+ database: "database";
108
+ sparkles: "sparkles";
109
+ }>>;
110
+ preview: import("zod").ZodOptional<import("zod").ZodString>;
111
+ title: import("zod").ZodString;
112
+ }, import("zod/v4/core").$strict>;
80
113
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
81
114
  type: import("zod").ZodLiteral<"turn_routed">;
82
115
  turnId: import("zod").ZodString;
@@ -89,6 +122,28 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
89
122
  inherited: "inherited";
90
123
  router: "router";
91
124
  }>;
125
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
126
+ type: import("zod").ZodLiteral<"guardian_action_reviewed">;
127
+ turnId: import("zod").ZodString;
128
+ toolCallId: import("zod").ZodString;
129
+ toolName: import("zod").ZodString;
130
+ decision: import("zod").ZodEnum<{
131
+ allow: "allow";
132
+ ask: "ask";
133
+ deny: "deny";
134
+ }>;
135
+ riskLevel: import("zod").ZodEnum<{
136
+ low: "low";
137
+ medium: "medium";
138
+ high: "high";
139
+ critical: "critical";
140
+ }>;
141
+ userAuthorization: import("zod").ZodEnum<{
142
+ unknown: "unknown";
143
+ low: "low";
144
+ medium: "medium";
145
+ high: "high";
146
+ }>;
92
147
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
93
148
  type: import("zod").ZodLiteral<"compaction">;
94
149
  modelProfile: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1,7 +1,7 @@
1
1
  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
- export declare const conversationReportSourceEventTypes: readonly ["message", "message_handled", "assistant_message", "tool_result", "tool_execution_started", "turn_started", "turn_context", "turn_routed", "turn_completed", "turn_failed", "compaction", "handoff", "subagent_started", "subagent_ended"];
4
+ export declare const conversationReportSourceEventTypes: readonly ["message", "message_handled", "assistant_message", "tool_result", "tool_execution_started", "guardian_action_reviewed", "turn_started", "turn_context", "structured_event", "turn_routed", "turn_completed", "turn_failed", "compaction", "handoff", "subagent_started", "subagent_ended"];
5
5
  /** Return tool result ids that may need start metadata from outside a page. */
6
6
  export declare function conversationReportToolResultIds(events: ConversationEvent[]): string[];
7
7
  /**
@@ -8,6 +8,21 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
8
8
  durationMs: import("zod").ZodNumber;
9
9
  failed: import("zod").ZodNumber;
10
10
  generatedAt: import("zod").ZodString;
11
+ guardian: import("zod").ZodObject<{
12
+ allow: import("zod").ZodNumber;
13
+ ask: import("zod").ZodNumber;
14
+ costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
15
+ deny: import("zod").ZodNumber;
16
+ metricDays: import("zod").ZodArray<import("zod").ZodObject<{
17
+ allow: import("zod").ZodNumber;
18
+ ask: import("zod").ZodNumber;
19
+ costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
20
+ date: import("zod").ZodString;
21
+ deny: import("zod").ZodNumber;
22
+ requests: import("zod").ZodNumber;
23
+ }, import("zod/v4/core").$strict>>;
24
+ requests: import("zod").ZodNumber;
25
+ }, import("zod/v4/core").$strict>;
11
26
  metricDays: import("zod").ZodArray<import("zod").ZodObject<{
12
27
  costUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
13
28
  date: import("zod").ZodString;
@@ -115,6 +115,12 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
115
115
  user: "user";
116
116
  assistant: "assistant";
117
117
  }>;
118
+ actorIdentity: z.ZodOptional<z.ZodObject<{
119
+ email: z.ZodOptional<z.ZodString>;
120
+ fullName: z.ZodOptional<z.ZodString>;
121
+ slackUserId: z.ZodOptional<z.ZodString>;
122
+ slackUserName: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strict>>;
118
124
  eventType: z.ZodOptional<z.ZodString>;
119
125
  text: z.ZodOptional<z.ZodString>;
120
126
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
@@ -176,6 +182,33 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
176
182
  kind: z.ZodString;
177
183
  version: z.ZodNumber;
178
184
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ type: z.ZodLiteral<"structured_event">;
187
+ namespace: z.ZodString;
188
+ name: z.ZodString;
189
+ version: z.ZodNumber;
190
+ turnId: z.ZodOptional<z.ZodString>;
191
+ presentation: z.ZodObject<{
192
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
193
+ description: z.ZodOptional<z.ZodString>;
194
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ title: z.ZodString;
196
+ }, z.core.$strict>>>;
197
+ icon: z.ZodOptional<z.ZodEnum<{
198
+ check: "check";
199
+ info: "info";
200
+ warning: "warning";
201
+ key: "key";
202
+ link: "link";
203
+ activity: "activity";
204
+ brain: "brain";
205
+ calendar: "calendar";
206
+ database: "database";
207
+ sparkles: "sparkles";
208
+ }>>;
209
+ preview: z.ZodOptional<z.ZodString>;
210
+ title: z.ZodString;
211
+ }, z.core.$strict>;
179
212
  }, z.core.$strict>, z.ZodObject<{
180
213
  type: z.ZodLiteral<"turn_routed">;
181
214
  turnId: z.ZodString;
@@ -188,6 +221,28 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
188
221
  inherited: "inherited";
189
222
  router: "router";
190
223
  }>;
224
+ }, z.core.$strict>, z.ZodObject<{
225
+ type: z.ZodLiteral<"guardian_action_reviewed">;
226
+ turnId: z.ZodString;
227
+ toolCallId: z.ZodString;
228
+ toolName: z.ZodString;
229
+ decision: z.ZodEnum<{
230
+ allow: "allow";
231
+ ask: "ask";
232
+ deny: "deny";
233
+ }>;
234
+ riskLevel: z.ZodEnum<{
235
+ low: "low";
236
+ medium: "medium";
237
+ high: "high";
238
+ critical: "critical";
239
+ }>;
240
+ userAuthorization: z.ZodEnum<{
241
+ unknown: "unknown";
242
+ low: "low";
243
+ medium: "medium";
244
+ high: "high";
245
+ }>;
191
246
  }, z.core.$strict>, z.ZodObject<{
192
247
  type: z.ZodLiteral<"compaction">;
193
248
  modelProfile: z.ZodOptional<z.ZodString>;
@@ -236,6 +291,12 @@ export declare const conversationReportEventSchema: z.ZodObject<{
236
291
  user: "user";
237
292
  assistant: "assistant";
238
293
  }>;
294
+ actorIdentity: z.ZodOptional<z.ZodObject<{
295
+ email: z.ZodOptional<z.ZodString>;
296
+ fullName: z.ZodOptional<z.ZodString>;
297
+ slackUserId: z.ZodOptional<z.ZodString>;
298
+ slackUserName: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strict>>;
239
300
  eventType: z.ZodOptional<z.ZodString>;
240
301
  text: z.ZodOptional<z.ZodString>;
241
302
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
@@ -297,6 +358,33 @@ export declare const conversationReportEventSchema: z.ZodObject<{
297
358
  kind: z.ZodString;
298
359
  version: z.ZodNumber;
299
360
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
361
+ }, z.core.$strict>, z.ZodObject<{
362
+ type: z.ZodLiteral<"structured_event">;
363
+ namespace: z.ZodString;
364
+ name: z.ZodString;
365
+ version: z.ZodNumber;
366
+ turnId: z.ZodOptional<z.ZodString>;
367
+ presentation: z.ZodObject<{
368
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
+ description: z.ZodOptional<z.ZodString>;
370
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
371
+ title: z.ZodString;
372
+ }, z.core.$strict>>>;
373
+ icon: z.ZodOptional<z.ZodEnum<{
374
+ check: "check";
375
+ info: "info";
376
+ warning: "warning";
377
+ key: "key";
378
+ link: "link";
379
+ activity: "activity";
380
+ brain: "brain";
381
+ calendar: "calendar";
382
+ database: "database";
383
+ sparkles: "sparkles";
384
+ }>>;
385
+ preview: z.ZodOptional<z.ZodString>;
386
+ title: z.ZodString;
387
+ }, z.core.$strict>;
300
388
  }, z.core.$strict>, z.ZodObject<{
301
389
  type: z.ZodLiteral<"turn_routed">;
302
390
  turnId: z.ZodString;
@@ -309,6 +397,28 @@ export declare const conversationReportEventSchema: z.ZodObject<{
309
397
  inherited: "inherited";
310
398
  router: "router";
311
399
  }>;
400
+ }, z.core.$strict>, z.ZodObject<{
401
+ type: z.ZodLiteral<"guardian_action_reviewed">;
402
+ turnId: z.ZodString;
403
+ toolCallId: z.ZodString;
404
+ toolName: z.ZodString;
405
+ decision: z.ZodEnum<{
406
+ allow: "allow";
407
+ ask: "ask";
408
+ deny: "deny";
409
+ }>;
410
+ riskLevel: z.ZodEnum<{
411
+ low: "low";
412
+ medium: "medium";
413
+ high: "high";
414
+ critical: "critical";
415
+ }>;
416
+ userAuthorization: z.ZodEnum<{
417
+ unknown: "unknown";
418
+ low: "low";
419
+ medium: "medium";
420
+ high: "high";
421
+ }>;
312
422
  }, z.core.$strict>, z.ZodObject<{
313
423
  type: z.ZodLiteral<"compaction">;
314
424
  modelProfile: z.ZodOptional<z.ZodString>;
@@ -468,6 +578,12 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
468
578
  user: "user";
469
579
  assistant: "assistant";
470
580
  }>;
581
+ actorIdentity: z.ZodOptional<z.ZodObject<{
582
+ email: z.ZodOptional<z.ZodString>;
583
+ fullName: z.ZodOptional<z.ZodString>;
584
+ slackUserId: z.ZodOptional<z.ZodString>;
585
+ slackUserName: z.ZodOptional<z.ZodString>;
586
+ }, z.core.$strict>>;
471
587
  eventType: z.ZodOptional<z.ZodString>;
472
588
  text: z.ZodOptional<z.ZodString>;
473
589
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
@@ -529,6 +645,33 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
529
645
  kind: z.ZodString;
530
646
  version: z.ZodNumber;
531
647
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
648
+ }, z.core.$strict>, z.ZodObject<{
649
+ type: z.ZodLiteral<"structured_event">;
650
+ namespace: z.ZodString;
651
+ name: z.ZodString;
652
+ version: z.ZodNumber;
653
+ turnId: z.ZodOptional<z.ZodString>;
654
+ presentation: z.ZodObject<{
655
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
656
+ description: z.ZodOptional<z.ZodString>;
657
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
658
+ title: z.ZodString;
659
+ }, z.core.$strict>>>;
660
+ icon: z.ZodOptional<z.ZodEnum<{
661
+ check: "check";
662
+ info: "info";
663
+ warning: "warning";
664
+ key: "key";
665
+ link: "link";
666
+ activity: "activity";
667
+ brain: "brain";
668
+ calendar: "calendar";
669
+ database: "database";
670
+ sparkles: "sparkles";
671
+ }>>;
672
+ preview: z.ZodOptional<z.ZodString>;
673
+ title: z.ZodString;
674
+ }, z.core.$strict>;
532
675
  }, z.core.$strict>, z.ZodObject<{
533
676
  type: z.ZodLiteral<"turn_routed">;
534
677
  turnId: z.ZodString;
@@ -541,6 +684,28 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
541
684
  inherited: "inherited";
542
685
  router: "router";
543
686
  }>;
687
+ }, z.core.$strict>, z.ZodObject<{
688
+ type: z.ZodLiteral<"guardian_action_reviewed">;
689
+ turnId: z.ZodString;
690
+ toolCallId: z.ZodString;
691
+ toolName: z.ZodString;
692
+ decision: z.ZodEnum<{
693
+ allow: "allow";
694
+ ask: "ask";
695
+ deny: "deny";
696
+ }>;
697
+ riskLevel: z.ZodEnum<{
698
+ low: "low";
699
+ medium: "medium";
700
+ high: "high";
701
+ critical: "critical";
702
+ }>;
703
+ userAuthorization: z.ZodEnum<{
704
+ unknown: "unknown";
705
+ low: "low";
706
+ medium: "medium";
707
+ high: "high";
708
+ }>;
544
709
  }, z.core.$strict>, z.ZodObject<{
545
710
  type: z.ZodLiteral<"compaction">;
546
711
  modelProfile: z.ZodOptional<z.ZodString>;
@@ -603,6 +768,12 @@ export declare const conversationEventPageSchema: z.ZodObject<{
603
768
  user: "user";
604
769
  assistant: "assistant";
605
770
  }>;
771
+ actorIdentity: z.ZodOptional<z.ZodObject<{
772
+ email: z.ZodOptional<z.ZodString>;
773
+ fullName: z.ZodOptional<z.ZodString>;
774
+ slackUserId: z.ZodOptional<z.ZodString>;
775
+ slackUserName: z.ZodOptional<z.ZodString>;
776
+ }, z.core.$strict>>;
606
777
  eventType: z.ZodOptional<z.ZodString>;
607
778
  text: z.ZodOptional<z.ZodString>;
608
779
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
@@ -664,6 +835,33 @@ export declare const conversationEventPageSchema: z.ZodObject<{
664
835
  kind: z.ZodString;
665
836
  version: z.ZodNumber;
666
837
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
838
+ }, z.core.$strict>, z.ZodObject<{
839
+ type: z.ZodLiteral<"structured_event">;
840
+ namespace: z.ZodString;
841
+ name: z.ZodString;
842
+ version: z.ZodNumber;
843
+ turnId: z.ZodOptional<z.ZodString>;
844
+ presentation: z.ZodObject<{
845
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
846
+ description: z.ZodOptional<z.ZodString>;
847
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
848
+ title: z.ZodString;
849
+ }, z.core.$strict>>>;
850
+ icon: z.ZodOptional<z.ZodEnum<{
851
+ check: "check";
852
+ info: "info";
853
+ warning: "warning";
854
+ key: "key";
855
+ link: "link";
856
+ activity: "activity";
857
+ brain: "brain";
858
+ calendar: "calendar";
859
+ database: "database";
860
+ sparkles: "sparkles";
861
+ }>>;
862
+ preview: z.ZodOptional<z.ZodString>;
863
+ title: z.ZodString;
864
+ }, z.core.$strict>;
667
865
  }, z.core.$strict>, z.ZodObject<{
668
866
  type: z.ZodLiteral<"turn_routed">;
669
867
  turnId: z.ZodString;
@@ -676,6 +874,28 @@ export declare const conversationEventPageSchema: z.ZodObject<{
676
874
  inherited: "inherited";
677
875
  router: "router";
678
876
  }>;
877
+ }, z.core.$strict>, z.ZodObject<{
878
+ type: z.ZodLiteral<"guardian_action_reviewed">;
879
+ turnId: z.ZodString;
880
+ toolCallId: z.ZodString;
881
+ toolName: z.ZodString;
882
+ decision: z.ZodEnum<{
883
+ allow: "allow";
884
+ ask: "ask";
885
+ deny: "deny";
886
+ }>;
887
+ riskLevel: z.ZodEnum<{
888
+ low: "low";
889
+ medium: "medium";
890
+ high: "high";
891
+ critical: "critical";
892
+ }>;
893
+ userAuthorization: z.ZodEnum<{
894
+ unknown: "unknown";
895
+ low: "low";
896
+ medium: "medium";
897
+ high: "high";
898
+ }>;
679
899
  }, z.core.$strict>, z.ZodObject<{
680
900
  type: z.ZodLiteral<"compaction">;
681
901
  modelProfile: z.ZodOptional<z.ZodString>;
@@ -792,12 +1012,50 @@ export declare const conversationMetricDaySchema: z.ZodObject<{
792
1012
  durationMs: z.ZodNumber;
793
1013
  tokens: z.ZodOptional<z.ZodNumber>;
794
1014
  }, z.core.$strict>;
1015
+ export declare const guardianMetricDaySchema: z.ZodObject<{
1016
+ allow: z.ZodNumber;
1017
+ ask: z.ZodNumber;
1018
+ costUsd: z.ZodOptional<z.ZodNumber>;
1019
+ date: z.ZodString;
1020
+ deny: z.ZodNumber;
1021
+ requests: z.ZodNumber;
1022
+ }, z.core.$strict>;
1023
+ export declare const guardianStatsSchema: z.ZodObject<{
1024
+ allow: z.ZodNumber;
1025
+ ask: z.ZodNumber;
1026
+ costUsd: z.ZodOptional<z.ZodNumber>;
1027
+ deny: z.ZodNumber;
1028
+ metricDays: z.ZodArray<z.ZodObject<{
1029
+ allow: z.ZodNumber;
1030
+ ask: z.ZodNumber;
1031
+ costUsd: z.ZodOptional<z.ZodNumber>;
1032
+ date: z.ZodString;
1033
+ deny: z.ZodNumber;
1034
+ requests: z.ZodNumber;
1035
+ }, z.core.$strict>>;
1036
+ requests: z.ZodNumber;
1037
+ }, z.core.$strict>;
795
1038
  export declare const conversationStatsReportSchema: z.ZodObject<{
796
1039
  active: z.ZodNumber;
797
1040
  conversations: z.ZodNumber;
798
1041
  durationMs: z.ZodNumber;
799
1042
  failed: z.ZodNumber;
800
1043
  generatedAt: z.ZodString;
1044
+ guardian: z.ZodObject<{
1045
+ allow: z.ZodNumber;
1046
+ ask: z.ZodNumber;
1047
+ costUsd: z.ZodOptional<z.ZodNumber>;
1048
+ deny: z.ZodNumber;
1049
+ metricDays: z.ZodArray<z.ZodObject<{
1050
+ allow: z.ZodNumber;
1051
+ ask: z.ZodNumber;
1052
+ costUsd: z.ZodOptional<z.ZodNumber>;
1053
+ date: z.ZodString;
1054
+ deny: z.ZodNumber;
1055
+ requests: z.ZodNumber;
1056
+ }, z.core.$strict>>;
1057
+ requests: z.ZodNumber;
1058
+ }, z.core.$strict>;
801
1059
  metricDays: z.ZodArray<z.ZodObject<{
802
1060
  costUsd: z.ZodOptional<z.ZodNumber>;
803
1061
  date: z.ZodString;
@@ -843,6 +1101,8 @@ export type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
843
1101
  export type ConversationFeed = z.infer<typeof conversationFeedSchema>;
844
1102
  export type ConversationStatsItem = z.infer<typeof conversationStatsItemSchema>;
845
1103
  export type ConversationMetricDay = z.infer<typeof conversationMetricDaySchema>;
1104
+ export type GuardianMetricDay = z.infer<typeof guardianMetricDaySchema>;
1105
+ export type GuardianStats = z.infer<typeof guardianStatsSchema>;
846
1106
  export type ConversationStatsReport = z.infer<typeof conversationStatsReportSchema>;
847
1107
  export type ConversationParams = z.infer<typeof conversationParamsSchema>;
848
1108
  export type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
@@ -1,7 +1,7 @@
1
1
  export { dailyConversationActivitySchema } from "./activity";
2
2
  export type { DailyConversationActivity } from "./activity";
3
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";
4
+ export type { ArchiveConversationBody, ArchiveConversationResponse, ActorIdentity, ConversationCost, ConversationDetailReport, ConversationEventPage, ConversationEventHistory, ConversationFeed, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationMetricDay, ConversationModelUsage, ConversationParams, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, GuardianMetricDay, GuardianStats, } 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";
@@ -30,7 +30,7 @@ import {
30
30
  revokePersonalTokenResponseSchema,
31
31
  statSchema,
32
32
  statsReportSchema
33
- } from "../chunk-O2ULQJWR.js";
33
+ } from "../chunk-AYQZCJZJ.js";
34
34
  import {
35
35
  healthReportSchema,
36
36
  pluginOperationalReportFeedSchema,