@sentry/junior 0.108.0 → 0.110.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-NU5HK3PS.js → agent-hooks-ELT4ODFF.js} +12 -13
- package/dist/api/conversations/access.d.ts +9 -0
- package/dist/api/conversations/aggregate.d.ts +12 -1
- package/dist/api/conversations/archive.d.ts +3 -5
- package/dist/api/conversations/detail.d.ts +156 -7
- package/dist/api/conversations/events.d.ts +2 -2
- package/dist/api/conversations/list.d.ts +57 -6
- package/dist/api/conversations/projection.d.ts +6 -7
- package/dist/api/conversations/reporting.d.ts +10 -4
- package/dist/api/conversations/routes.d.ts +2 -1
- package/dist/api/conversations/shared.d.ts +1 -1
- package/dist/api/conversations/stats.d.ts +37 -6
- package/dist/api/conversations/stats.query.d.ts +1 -1
- package/dist/api/conversations/usage.d.ts +9 -0
- package/dist/api/http.d.ts +7 -0
- package/dist/api/locations/detail.d.ts +102 -6
- package/dist/api/locations/list.d.ts +43 -5
- package/dist/api/locations/query.d.ts +4 -2
- package/dist/api/locations/routes.d.ts +2 -1
- package/dist/api/people/list.d.ts +28 -6
- package/dist/api/people/list.query.d.ts +1 -1
- package/dist/api/people/profile.d.ts +96 -7
- package/dist/api/people/profile.query.d.ts +4 -2
- package/dist/api/people/routes.d.ts +2 -1
- package/dist/api/people/shared.d.ts +1219 -2
- package/dist/api/route.d.ts +18 -4
- package/dist/api/schema/common.d.ts +6 -0
- package/dist/api/{conversations/schema.d.ts → schema/conversation.d.ts} +88 -9
- package/dist/api/{locations/schema.d.ts → schema/location.d.ts} +5 -0
- package/dist/api/{people/schema.d.ts → schema/person.d.ts} +37 -45
- package/dist/api/schema.d.ts +8 -22
- package/dist/api/schema.js +10 -2
- package/dist/api.d.ts +5 -1
- package/dist/api.js +838 -369
- package/dist/app.d.ts +1 -0
- package/dist/app.js +1564 -486
- package/dist/catalog-runtime-4GI22PXK.js +16 -0
- package/dist/chat/agent/resume.d.ts +11 -12
- package/dist/chat/conversations/history.d.ts +3 -0
- package/dist/chat/conversations/sql/privacy.d.ts +3 -15
- package/dist/chat/conversations/sql/store.d.ts +0 -7
- package/dist/chat/log-context.d.ts +40 -0
- package/dist/chat/logging.d.ts +3 -26
- package/dist/chat/pi/messages.d.ts +2 -2
- package/dist/chat/pi/sql-model-usage.d.ts +4 -1
- package/dist/chat/runtime/slack-resume.d.ts +2 -2
- package/dist/chat/services/auth-pause.d.ts +4 -0
- package/dist/chat/services/context-compaction.d.ts +1 -0
- package/dist/chat/services/turn-session-record.d.ts +0 -2
- package/dist/chat/slack/reply.d.ts +7 -19
- package/dist/chat/state/conversation.d.ts +1 -0
- package/dist/chat/task-execution/queue-signing.d.ts +10 -8
- package/dist/chat/task-execution/queue.d.ts +9 -7
- package/dist/chat/task-execution/slack-work.d.ts +6 -6
- package/dist/{chunk-UD6THJ2I.js → chunk-2T7TIEXI.js} +197 -12
- package/dist/{chunk-CEA3A3UA.js → chunk-2ZTTXTSZ.js} +24 -1
- package/dist/{chunk-XKB7LGIW.js → chunk-3S7YYHBI.js} +3 -139
- package/dist/chunk-3TV7OEHL.js +10 -0
- package/dist/{chunk-A5CO2EHL.js → chunk-3UBQI73J.js} +11 -15
- package/dist/{chunk-7FBGKXPE.js → chunk-42WRQLJ6.js} +10 -33
- package/dist/{chunk-TE4QHJH4.js → chunk-4QU44P7Q.js} +135 -595
- package/dist/{chunk-RT5BUHR5.js → chunk-6Y5L4BOM.js} +3 -5
- package/dist/{chunk-VIXFG2VC.js → chunk-C4MZ3GP5.js} +1 -2
- package/dist/{chunk-3RGQLX2F.js → chunk-C5XAFTHY.js} +1011 -29
- package/dist/{chunk-PUAMO4PI.js → chunk-FPK7XY3F.js} +139 -99
- package/dist/{chunk-H3QYZL7K.js → chunk-GK47NBDE.js} +28 -3
- package/dist/{chunk-O24R4DCK.js → chunk-IYKPU7H6.js} +94 -56
- package/dist/chunk-JQFJO5WH.js +477 -0
- package/dist/{chunk-VH6KWKG2.js → chunk-L5XQPJ7T.js} +3 -3
- package/dist/{chunk-2XXEKR44.js → chunk-MIAKQNYX.js} +43 -31
- package/dist/{chunk-KPMPQ6AA.js → chunk-RHHRKSPI.js} +249 -223
- package/dist/{chunk-YT72TOEK.js → chunk-SBOBTS27.js} +2 -2
- package/dist/{chunk-B5I5LMSP.js → chunk-W6RJZG7F.js} +5 -7
- package/dist/chunk-W75ZPAGG.js +44 -0
- package/dist/{chunk-SS67LUOK.js → chunk-WNOVRQ67.js} +6 -7
- package/dist/{chunk-YIPD3L6L.js → chunk-Y3H2DN6F.js} +8 -10
- package/dist/{chunk-DY7TRYB5.js → chunk-Y5FK3CNG.js} +1 -1
- package/dist/chunk-ZKIOWEFL.js +125 -0
- package/dist/cli/chat.js +23 -24
- package/dist/cli/check.js +9 -7
- package/dist/cli/plugins.js +16 -17
- package/dist/cli/snapshot-warmup.js +11 -10
- package/dist/cli/upgrade.js +314 -3505
- package/dist/db/db.d.ts +1 -1
- package/dist/db/schema/conversations.d.ts +17 -0
- package/dist/db/schema.d.ts +17 -0
- package/dist/{db-AMRBAT5D.js → db-Y6W6CWWW.js} +8 -7
- package/dist/instrumentation.js +4 -3
- package/dist/nitro.js +4 -4
- package/dist/reporting-schema.d.ts +46 -0
- package/dist/{runner-TQH5GAJ4.js → runner-BBFV5GLR.js} +17 -21
- package/dist/{skills-ITNHBARB.js → skills-AR4AF32L.js} +8 -6
- package/dist/{validation-AGQ46ZGV.js → validation-FBIEPTC2.js} +8 -6
- package/dist/version.d.ts +2 -0
- package/dist/version.js +7 -0
- package/migrations/0006_drop_legacy_conversation_messages.sql +1 -0
- package/migrations/0007_thick_sugar_man.sql +23 -0
- package/migrations/README.md +12 -9
- package/migrations/meta/0006_snapshot.json +948 -0
- package/migrations/meta/0007_snapshot.json +1013 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +9 -5
- package/dist/catalog-runtime-FOFNPR3P.js +0 -14
- package/dist/chunk-AHJR2IFF.js +0 -115
- package/dist/chunk-B7PUBQQM.js +0 -53
- package/dist/chunk-G3E7SCME.js +0 -28
- package/dist/chunk-J3B3FPP2.js +0 -1061
- package/dist/chunk-OB42YVAE.js +0 -16
- package/dist/chunk-TWINAEZQ.js +0 -1283
package/dist/api/route.d.ts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { Context, Hono } from "hono";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/** Authenticated viewer fields made available to Junior API route handlers. */
|
|
4
|
+
export type JuniorApiVariables = {
|
|
5
|
+
verifiedViewerEmail?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Carry authenticated viewer state through Junior REST route handlers. */
|
|
8
|
+
export type JuniorApiEnv = {
|
|
9
|
+
Variables: JuniorApiVariables;
|
|
10
|
+
};
|
|
11
|
+
/** Describe one schema-owned REST endpoint. */
|
|
12
|
+
export type ApiRoute<TResponseSchema extends z.ZodType = z.ZodType> = {
|
|
13
|
+
handler: (context: Context<JuniorApiEnv>) => Promise<z.input<TResponseSchema>> | z.input<TResponseSchema>;
|
|
5
14
|
method: "get" | "patch";
|
|
6
15
|
path: string;
|
|
16
|
+
responseSchema: TResponseSchema;
|
|
7
17
|
};
|
|
18
|
+
/** Define a REST endpoint while preserving its response-schema type. */
|
|
19
|
+
export declare function defineApiRoute<TResponseSchema extends z.ZodType>(route: ApiRoute<TResponseSchema>): ApiRoute<TResponseSchema>;
|
|
20
|
+
/** Register schema-owned routes on one Hono application. */
|
|
21
|
+
export declare function registerApiRoutes(app: Hono<JuniorApiEnv>, routes: readonly ApiRoute[]): void;
|
|
@@ -32,6 +32,19 @@ export declare const conversationUsageSchema: z.ZodObject<{
|
|
|
32
32
|
total: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
}, z.core.$strict>>;
|
|
34
34
|
}, z.core.$strict>;
|
|
35
|
+
export declare const conversationParamsSchema: z.ZodObject<{
|
|
36
|
+
conversationId: z.ZodString;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
39
|
+
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
export declare const archiveConversationBodySchema: z.ZodObject<{
|
|
42
|
+
archived: z.ZodBoolean;
|
|
43
|
+
lastSeenAt: z.ZodString;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export declare const archiveConversationResponseSchema: z.ZodObject<{
|
|
46
|
+
archived: z.ZodBoolean;
|
|
47
|
+
}, z.core.$strict>;
|
|
35
48
|
export declare const actorIdentitySchema: z.ZodObject<{
|
|
36
49
|
email: z.ZodOptional<z.ZodString>;
|
|
37
50
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -57,6 +70,7 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
57
70
|
}, z.core.$strict>>;
|
|
58
71
|
}, z.core.$strict>>;
|
|
59
72
|
conversationId: z.ZodString;
|
|
73
|
+
isParticipant: z.ZodBoolean;
|
|
60
74
|
status: z.ZodEnum<{
|
|
61
75
|
completed: "completed";
|
|
62
76
|
failed: "failed";
|
|
@@ -94,6 +108,7 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
94
108
|
user: "user";
|
|
95
109
|
assistant: "assistant";
|
|
96
110
|
}>;
|
|
111
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
97
112
|
text: z.ZodOptional<z.ZodString>;
|
|
98
113
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
99
114
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -101,7 +116,23 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
101
116
|
messageId: z.ZodString;
|
|
102
117
|
}, z.core.$strict>, z.ZodObject<{
|
|
103
118
|
type: z.ZodLiteral<"tool_started">;
|
|
119
|
+
toolCallId: z.ZodString;
|
|
104
120
|
name: z.ZodString;
|
|
121
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<"tool_calls">;
|
|
123
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
124
|
+
toolCallId: z.ZodString;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
127
|
+
}, 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>;
|
|
105
136
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
106
137
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
107
138
|
turnId: z.ZodString;
|
|
@@ -122,19 +153,22 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
122
153
|
type: z.ZodLiteral<"compaction">;
|
|
123
154
|
}, z.core.$strict>, z.ZodObject<{
|
|
124
155
|
type: z.ZodLiteral<"handoff">;
|
|
125
|
-
|
|
156
|
+
modelProfile: z.ZodString;
|
|
157
|
+
modelId: z.ZodString;
|
|
158
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
159
|
+
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
126
160
|
}, z.core.$strict>, z.ZodObject<{
|
|
127
161
|
type: z.ZodLiteral<"subagent_started">;
|
|
128
162
|
childConversationId: z.ZodString;
|
|
129
163
|
subagentKind: z.ZodString;
|
|
130
|
-
|
|
164
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
131
165
|
}, z.core.$strict>, z.ZodObject<{
|
|
132
166
|
type: z.ZodLiteral<"subagent_ended">;
|
|
133
167
|
startedSeq: z.ZodNumber;
|
|
134
168
|
outcome: z.ZodEnum<{
|
|
135
169
|
error: "error";
|
|
136
|
-
aborted: "aborted";
|
|
137
170
|
success: "success";
|
|
171
|
+
aborted: "aborted";
|
|
138
172
|
}>;
|
|
139
173
|
}, z.core.$strict>], "type">;
|
|
140
174
|
/** One ordered, privacy-safe canonical event projected for API consumers. */
|
|
@@ -149,6 +183,7 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
149
183
|
user: "user";
|
|
150
184
|
assistant: "assistant";
|
|
151
185
|
}>;
|
|
186
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
152
187
|
text: z.ZodOptional<z.ZodString>;
|
|
153
188
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
154
189
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -156,7 +191,23 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
156
191
|
messageId: z.ZodString;
|
|
157
192
|
}, z.core.$strict>, z.ZodObject<{
|
|
158
193
|
type: z.ZodLiteral<"tool_started">;
|
|
194
|
+
toolCallId: z.ZodString;
|
|
159
195
|
name: z.ZodString;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
type: z.ZodLiteral<"tool_calls">;
|
|
198
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
199
|
+
toolCallId: z.ZodString;
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
202
|
+
}, 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>;
|
|
160
211
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
161
212
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
162
213
|
turnId: z.ZodString;
|
|
@@ -177,19 +228,22 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
177
228
|
type: z.ZodLiteral<"compaction">;
|
|
178
229
|
}, z.core.$strict>, z.ZodObject<{
|
|
179
230
|
type: z.ZodLiteral<"handoff">;
|
|
180
|
-
|
|
231
|
+
modelProfile: z.ZodString;
|
|
232
|
+
modelId: z.ZodString;
|
|
233
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
234
|
+
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
181
235
|
}, z.core.$strict>, z.ZodObject<{
|
|
182
236
|
type: z.ZodLiteral<"subagent_started">;
|
|
183
237
|
childConversationId: z.ZodString;
|
|
184
238
|
subagentKind: z.ZodString;
|
|
185
|
-
|
|
239
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
186
240
|
}, z.core.$strict>, z.ZodObject<{
|
|
187
241
|
type: z.ZodLiteral<"subagent_ended">;
|
|
188
242
|
startedSeq: z.ZodNumber;
|
|
189
243
|
outcome: z.ZodEnum<{
|
|
190
244
|
error: "error";
|
|
191
|
-
aborted: "aborted";
|
|
192
245
|
success: "success";
|
|
246
|
+
aborted: "aborted";
|
|
193
247
|
}>;
|
|
194
248
|
}, z.core.$strict>], "type">;
|
|
195
249
|
}, z.core.$strict>;
|
|
@@ -240,6 +294,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
240
294
|
}, z.core.$strict>>;
|
|
241
295
|
}, z.core.$strict>>;
|
|
242
296
|
conversationId: z.ZodString;
|
|
297
|
+
isParticipant: z.ZodBoolean;
|
|
243
298
|
status: z.ZodEnum<{
|
|
244
299
|
completed: "completed";
|
|
245
300
|
failed: "failed";
|
|
@@ -296,6 +351,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
296
351
|
user: "user";
|
|
297
352
|
assistant: "assistant";
|
|
298
353
|
}>;
|
|
354
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
299
355
|
text: z.ZodOptional<z.ZodString>;
|
|
300
356
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
301
357
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -303,7 +359,23 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
303
359
|
messageId: z.ZodString;
|
|
304
360
|
}, z.core.$strict>, z.ZodObject<{
|
|
305
361
|
type: z.ZodLiteral<"tool_started">;
|
|
362
|
+
toolCallId: z.ZodString;
|
|
306
363
|
name: z.ZodString;
|
|
364
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
365
|
+
type: z.ZodLiteral<"tool_calls">;
|
|
366
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
367
|
+
toolCallId: z.ZodString;
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
372
|
+
type: z.ZodLiteral<"tool_result">;
|
|
373
|
+
toolCallId: z.ZodString;
|
|
374
|
+
outcome: z.ZodEnum<{
|
|
375
|
+
error: "error";
|
|
376
|
+
completed: "completed";
|
|
377
|
+
}>;
|
|
378
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
307
379
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
308
380
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
309
381
|
turnId: z.ZodString;
|
|
@@ -324,19 +396,22 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
324
396
|
type: z.ZodLiteral<"compaction">;
|
|
325
397
|
}, z.core.$strict>, z.ZodObject<{
|
|
326
398
|
type: z.ZodLiteral<"handoff">;
|
|
327
|
-
|
|
399
|
+
modelProfile: z.ZodString;
|
|
400
|
+
modelId: z.ZodString;
|
|
401
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
402
|
+
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
328
403
|
}, z.core.$strict>, z.ZodObject<{
|
|
329
404
|
type: z.ZodLiteral<"subagent_started">;
|
|
330
405
|
childConversationId: z.ZodString;
|
|
331
406
|
subagentKind: z.ZodString;
|
|
332
|
-
|
|
407
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
333
408
|
}, z.core.$strict>, z.ZodObject<{
|
|
334
409
|
type: z.ZodLiteral<"subagent_ended">;
|
|
335
410
|
startedSeq: z.ZodNumber;
|
|
336
411
|
outcome: z.ZodEnum<{
|
|
337
412
|
error: "error";
|
|
338
|
-
aborted: "aborted";
|
|
339
413
|
success: "success";
|
|
414
|
+
aborted: "aborted";
|
|
340
415
|
}>;
|
|
341
416
|
}, z.core.$strict>], "type">;
|
|
342
417
|
}, z.core.$strict>>;
|
|
@@ -372,6 +447,7 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
372
447
|
}, z.core.$strict>>;
|
|
373
448
|
}, z.core.$strict>>;
|
|
374
449
|
conversationId: z.ZodString;
|
|
450
|
+
isParticipant: z.ZodBoolean;
|
|
375
451
|
status: z.ZodEnum<{
|
|
376
452
|
completed: "completed";
|
|
377
453
|
failed: "failed";
|
|
@@ -469,3 +545,6 @@ export type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
|
469
545
|
export type ConversationStatsItem = z.infer<typeof conversationStatsItemSchema>;
|
|
470
546
|
export type ConversationMetricDay = z.infer<typeof conversationMetricDaySchema>;
|
|
471
547
|
export type ConversationStatsReport = z.infer<typeof conversationStatsReportSchema>;
|
|
548
|
+
export type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
549
|
+
export type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
550
|
+
export type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const locationParamsSchema: z.ZodObject<{
|
|
3
|
+
locationId: z.ZodString;
|
|
4
|
+
}, z.core.$strict>;
|
|
2
5
|
export declare const locationSummaryReportSchema: z.ZodObject<{
|
|
3
6
|
active: z.ZodNumber;
|
|
4
7
|
conversations: z.ZodNumber;
|
|
@@ -150,6 +153,7 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
150
153
|
}, z.core.$strict>>;
|
|
151
154
|
}, z.core.$strict>>;
|
|
152
155
|
conversationId: z.ZodString;
|
|
156
|
+
isParticipant: z.ZodBoolean;
|
|
153
157
|
status: z.ZodEnum<{
|
|
154
158
|
completed: "completed";
|
|
155
159
|
failed: "failed";
|
|
@@ -187,3 +191,4 @@ export type LocationActorSummaryReport = z.infer<typeof locationActorSummaryRepo
|
|
|
187
191
|
export type LocationActivityDayReport = z.infer<typeof locationActivityDayReportSchema>;
|
|
188
192
|
export type LocationDirectoryReport = z.infer<typeof locationDirectoryReportSchema>;
|
|
189
193
|
export type LocationDetailReport = z.infer<typeof locationDetailReportSchema>;
|
|
194
|
+
export type LocationParams = z.infer<typeof locationParamsSchema>;
|
|
@@ -1,34 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { actorIdentitySchema } from "
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
6
|
-
status: z.ZodEnum<{
|
|
7
|
-
completed: "completed";
|
|
8
|
-
failed: "failed";
|
|
9
|
-
active: "active";
|
|
10
|
-
}>;
|
|
11
|
-
channelName: z.ZodOptional<z.ZodString>;
|
|
12
|
-
archivedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
-
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
14
|
-
email: z.ZodOptional<z.ZodString>;
|
|
15
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
16
|
-
slackUserId: z.ZodOptional<z.ZodString>;
|
|
17
|
-
slackUserName: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$strict>>;
|
|
19
|
-
surface: z.ZodEnum<{
|
|
20
|
-
slack: "slack";
|
|
21
|
-
api: "api";
|
|
22
|
-
internal: "internal";
|
|
23
|
-
scheduler: "scheduler";
|
|
24
|
-
}>;
|
|
25
|
-
displayTitle: z.ZodString;
|
|
26
|
-
cumulativeDurationMs: z.ZodNumber;
|
|
27
|
-
startedAt: z.ZodString;
|
|
28
|
-
lastSeenAt: z.ZodString;
|
|
29
|
-
lastProgressAt: z.ZodString;
|
|
30
|
-
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
locationId: z.ZodOptional<z.ZodString>;
|
|
2
|
+
import { actorIdentitySchema, conversationSummaryReportSchema } from "./conversation";
|
|
3
|
+
export declare const personParamsSchema: z.ZodObject<{
|
|
4
|
+
email: z.ZodString;
|
|
32
5
|
}, z.core.$strict>;
|
|
33
6
|
export declare const peopleConversationStatsItemSchema: z.ZodObject<{
|
|
34
7
|
failed: z.ZodNumber;
|
|
@@ -127,34 +100,52 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
127
100
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
128
101
|
}, z.core.$strict>>;
|
|
129
102
|
recentConversations: z.ZodArray<z.ZodObject<{
|
|
103
|
+
displayTitle: z.ZodString;
|
|
104
|
+
cumulativeDurationMs: z.ZodNumber;
|
|
105
|
+
cumulativeUsage: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
}, z.core.$strict>>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
130
120
|
conversationId: z.ZodString;
|
|
131
|
-
|
|
121
|
+
isParticipant: z.ZodBoolean;
|
|
132
122
|
status: z.ZodEnum<{
|
|
133
123
|
completed: "completed";
|
|
134
124
|
failed: "failed";
|
|
135
125
|
active: "active";
|
|
136
126
|
}>;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
email: z.ZodOptional<z.ZodString>;
|
|
141
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
142
|
-
slackUserId: z.ZodOptional<z.ZodString>;
|
|
143
|
-
slackUserName: z.ZodOptional<z.ZodString>;
|
|
144
|
-
}, z.core.$strict>>;
|
|
127
|
+
startedAt: z.ZodString;
|
|
128
|
+
lastSeenAt: z.ZodString;
|
|
129
|
+
lastProgressAt: z.ZodString;
|
|
145
130
|
surface: z.ZodEnum<{
|
|
146
131
|
slack: "slack";
|
|
147
132
|
api: "api";
|
|
148
133
|
internal: "internal";
|
|
149
134
|
scheduler: "scheduler";
|
|
150
135
|
}>;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
136
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
137
|
+
email: z.ZodOptional<z.ZodString>;
|
|
138
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
139
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
140
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$strict>>;
|
|
142
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
143
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
144
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
156
145
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
157
146
|
locationId: z.ZodOptional<z.ZodString>;
|
|
147
|
+
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
148
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
158
149
|
}, z.core.$strict>>;
|
|
159
150
|
actor: z.ZodObject<{
|
|
160
151
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -183,7 +174,7 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
183
174
|
windowStart: z.ZodString;
|
|
184
175
|
}, z.core.$strict>;
|
|
185
176
|
export type ActorIdentity = z.infer<typeof actorIdentitySchema>;
|
|
186
|
-
export type ConversationSummaryReport = z.infer<typeof
|
|
177
|
+
export type ConversationSummaryReport = z.infer<typeof conversationSummaryReportSchema>;
|
|
187
178
|
export type ConversationStatsItem = z.infer<typeof peopleConversationStatsItemSchema>;
|
|
188
179
|
export type ActorActivityDayReport = z.infer<typeof actorActivityDayReportSchema>;
|
|
189
180
|
export type PeopleActivityDayReport = z.infer<typeof peopleActivityDayReportSchema>;
|
|
@@ -191,3 +182,4 @@ export type ActorTotalsReport = z.infer<typeof actorTotalsReportSchema>;
|
|
|
191
182
|
export type ActorSummaryReport = z.infer<typeof actorSummaryReportSchema>;
|
|
192
183
|
export type ActorDirectoryReport = z.infer<typeof actorDirectoryReportSchema>;
|
|
193
184
|
export type ActorProfileReport = z.infer<typeof actorProfileReportSchema>;
|
|
185
|
+
export type PersonParams = z.infer<typeof personParamsSchema>;
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
export { dailyConversationActivitySchema } from "./activity";
|
|
2
2
|
export type { DailyConversationActivity } from "./activity";
|
|
3
|
-
export { conversationDetailReportSchema, conversationEventHistorySchema, conversationFeedSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, } from "./
|
|
4
|
-
export type { ActorIdentity, ConversationCost, ConversationDetailReport, ConversationEventHistory, ConversationFeed, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationMetricDay, ConversationModelUsage, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, } from "./
|
|
5
|
-
export { actorDirectoryReportSchema, actorProfileReportSchema, } from "./
|
|
6
|
-
export { locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, } from "./
|
|
7
|
-
export type { LocationActorSummaryReport, LocationActivityDayReport, LocationDetailReport, LocationDirectoryReport, LocationSummaryReport, } from "./
|
|
8
|
-
export type { ActorActivityDayReport, ActorDirectoryReport, ActorProfileReport, ActorSummaryReport, ActorTotalsReport, PeopleActivityDayReport, } from "./
|
|
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";
|
|
5
|
+
export { actorDirectoryReportSchema, actorProfileReportSchema, personParamsSchema, } from "./schema/person";
|
|
6
|
+
export { locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, } from "./schema/location";
|
|
7
|
+
export type { LocationActorSummaryReport, LocationActivityDayReport, LocationDetailReport, LocationDirectoryReport, LocationSummaryReport, LocationParams, } from "./schema/location";
|
|
8
|
+
export type { ActorActivityDayReport, ActorDirectoryReport, ActorProfileReport, ActorSummaryReport, ActorTotalsReport, PeopleActivityDayReport, PersonParams, } from "./schema/person";
|
|
9
|
+
export { apiErrorSchema } from "./schema/common";
|
|
10
|
+
export type { ApiError } from "./schema/common";
|
|
9
11
|
export { healthReportSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginReportSchema, pluginReportsSchema, runtimeInfoReportSchema, skillReportSchema, skillReportsSchema, } from "../reporting-schema";
|
|
10
12
|
export type { HealthReport, PluginOperationalReport, PluginOperationalReportFeed, PluginPackageContentItemReport, PluginPackageContentReport, PluginReport, PluginReports, RuntimeInfoReport, SkillReport, SkillReports, } from "../reporting-schema";
|
|
11
|
-
import { z } from "zod";
|
|
12
|
-
export declare const conversationParamsSchema: z.ZodObject<{
|
|
13
|
-
conversationId: z.ZodString;
|
|
14
|
-
}, z.core.$strict>;
|
|
15
|
-
export declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
16
|
-
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
17
|
-
}, z.core.$strict>;
|
|
18
|
-
export declare const personParamsSchema: z.ZodObject<{
|
|
19
|
-
email: z.ZodString;
|
|
20
|
-
}, z.core.$strict>;
|
|
21
|
-
export declare const locationParamsSchema: z.ZodObject<{
|
|
22
|
-
locationId: z.ZodString;
|
|
23
|
-
}, z.core.$strict>;
|
|
24
|
-
export type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
25
|
-
export type PersonParams = z.infer<typeof personParamsSchema>;
|
|
26
|
-
export type LocationParams = z.infer<typeof locationParamsSchema>;
|
package/dist/api/schema.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
actorDirectoryReportSchema,
|
|
3
3
|
actorProfileReportSchema,
|
|
4
|
+
apiErrorSchema,
|
|
5
|
+
archiveConversationBodySchema,
|
|
6
|
+
archiveConversationResponseSchema,
|
|
4
7
|
conversationDetailReportSchema,
|
|
5
8
|
conversationEventHistorySchema,
|
|
6
9
|
conversationFeedQuerySchema,
|
|
@@ -9,13 +12,14 @@ import {
|
|
|
9
12
|
conversationReportEventDataSchema,
|
|
10
13
|
conversationReportEventSchema,
|
|
11
14
|
conversationStatsReportSchema,
|
|
15
|
+
conversationSummaryReportSchema,
|
|
12
16
|
dailyConversationActivitySchema,
|
|
13
17
|
locationActivityDayReportSchema,
|
|
14
18
|
locationDetailReportSchema,
|
|
15
19
|
locationDirectoryReportSchema,
|
|
16
20
|
locationParamsSchema,
|
|
17
21
|
personParamsSchema
|
|
18
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-FPK7XY3F.js";
|
|
19
23
|
import {
|
|
20
24
|
healthReportSchema,
|
|
21
25
|
pluginOperationalReportFeedSchema,
|
|
@@ -27,13 +31,16 @@ import {
|
|
|
27
31
|
runtimeInfoReportSchema,
|
|
28
32
|
skillReportSchema,
|
|
29
33
|
skillReportsSchema
|
|
30
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-2ZTTXTSZ.js";
|
|
31
35
|
import "../chunk-PDO5BLNM.js";
|
|
32
36
|
import "../chunk-VFUK3X5B.js";
|
|
33
37
|
import "../chunk-MLKGABMK.js";
|
|
34
38
|
export {
|
|
35
39
|
actorDirectoryReportSchema,
|
|
36
40
|
actorProfileReportSchema,
|
|
41
|
+
apiErrorSchema,
|
|
42
|
+
archiveConversationBodySchema,
|
|
43
|
+
archiveConversationResponseSchema,
|
|
37
44
|
conversationDetailReportSchema,
|
|
38
45
|
conversationEventHistorySchema,
|
|
39
46
|
conversationFeedQuerySchema,
|
|
@@ -42,6 +49,7 @@ export {
|
|
|
42
49
|
conversationReportEventDataSchema,
|
|
43
50
|
conversationReportEventSchema,
|
|
44
51
|
conversationStatsReportSchema,
|
|
52
|
+
conversationSummaryReportSchema,
|
|
45
53
|
dailyConversationActivitySchema,
|
|
46
54
|
healthReportSchema,
|
|
47
55
|
locationActivityDayReportSchema,
|
package/dist/api.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
+
import { jsonResponse } from "./api/http";
|
|
3
|
+
import { type JuniorApiEnv, type JuniorApiVariables } from "./api/route";
|
|
4
|
+
export type { JuniorApiVariables };
|
|
5
|
+
export { jsonResponse };
|
|
2
6
|
/** Create Junior's production REST API for authenticated dashboard consumers. */
|
|
3
|
-
export declare function createJuniorApi(): Hono
|
|
7
|
+
export declare function createJuniorApi(): Hono<JuniorApiEnv>;
|