@sentry/junior 0.109.0 → 0.111.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-FHHVLNPA.js → agent-hooks-QQ2IWKOP.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 +1 -1
- 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} +31 -3
- 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 +767 -384
- package/dist/app.js +591 -447
- package/dist/build/virtual-config.d.ts +2 -0
- package/dist/catalog-runtime-D22W6QEJ.js +16 -0
- package/dist/chat/agent/request.d.ts +3 -6
- package/dist/chat/agent/resume.d.ts +11 -12
- package/dist/chat/agent/sandbox.d.ts +36 -11
- package/dist/chat/agent/tools.d.ts +5 -8
- package/dist/chat/config.d.ts +8 -1
- package/dist/chat/conversations/history.d.ts +3 -0
- package/dist/chat/conversations/sql/privacy.d.ts +3 -15
- package/dist/chat/pi/messages.d.ts +2 -2
- package/dist/chat/pi/sdk.d.ts +1 -1
- package/dist/chat/pi/sql-model-usage.d.ts +4 -1
- package/dist/chat/plugins/agent-hooks.d.ts +2 -2
- package/dist/chat/runtime/agent-continue-runner.d.ts +7 -3
- package/dist/chat/runtime/slack-runtime.d.ts +1 -2
- package/dist/chat/runtime/thread-state.d.ts +3 -7
- package/dist/chat/runtime/turn-preparation.d.ts +2 -2
- package/dist/chat/sandbox/command-result.d.ts +91 -0
- package/dist/chat/sandbox/errors.d.ts +3 -1
- package/dist/chat/sandbox/ref.d.ts +5 -0
- package/dist/chat/sandbox/sandbox.d.ts +19 -46
- package/dist/chat/sandbox/session.d.ts +16 -20
- package/dist/chat/sandbox/skill-sync.d.ts +2 -2
- package/dist/chat/sandbox/workspace.d.ts +14 -12
- 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-result.d.ts +3 -4
- 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 +9 -7
- package/dist/chat/task-execution/state.d.ts +75 -22
- package/dist/chat/task-execution/store.d.ts +34 -3
- package/dist/chat/task-execution/worker.d.ts +0 -1
- package/dist/chat/tool-support/normalize-result.d.ts +2 -2
- package/dist/chat/tool-support/pi-tool-adapter.d.ts +2 -2
- package/dist/chat/tool-support/structured-result.d.ts +1 -2
- package/dist/chat/tools/sandbox/file-uploads.d.ts +1 -1
- package/dist/chat/{runtime → tools/sandbox}/generated-artifacts.d.ts +3 -3
- package/dist/chat/tools/types.d.ts +1 -1
- package/dist/chat/tools/web/fetch-content.d.ts +5 -0
- package/dist/chat/tools/web/image-generate.d.ts +2 -1
- package/dist/chat/tools/web/search.d.ts +1 -1
- package/dist/{chunk-CEA3A3UA.js → chunk-2ZTTXTSZ.js} +24 -1
- package/dist/{chunk-IVVGFRQQ.js → chunk-42WRQLJ6.js} +10 -38
- package/dist/{chunk-O3JMSZLI.js → chunk-6Y5L4BOM.js} +3 -5
- package/dist/{chunk-HO5NT6OE.js → chunk-B45FPP2A.js} +306 -31
- package/dist/{chunk-WHMOBKT7.js → chunk-BTRNMS6A.js} +2 -2
- package/dist/{chunk-PLB7MRCQ.js → chunk-C4MZ3GP5.js} +1 -1
- package/dist/{chunk-HHVY4SMP.js → chunk-FPK7XY3F.js} +98 -92
- package/dist/{chunk-RGX4V75M.js → chunk-IFAHK54X.js} +3 -3
- package/dist/{chunk-ISMWX44P.js → chunk-J7APPQIJ.js} +2 -2
- package/dist/{chunk-TMBRFULF.js → chunk-JQFJO5WH.js} +7 -1
- package/dist/{chunk-FWJRXN4F.js → chunk-L6JPKANW.js} +3 -139
- package/dist/{chunk-7Q6WCISF.js → chunk-MIAKQNYX.js} +43 -31
- package/dist/chunk-MPVES2IC.js +44 -0
- package/dist/{chunk-JNAVF45E.js → chunk-NQLWOTY4.js} +47 -19
- package/dist/{chunk-IXKSQGIO.js → chunk-OOLU34J4.js} +8860 -9137
- package/dist/{chunk-OUHNWH46.js → chunk-PYKKM4MM.js} +1 -1
- package/dist/{chunk-MXW4GL53.js → chunk-PZELBSHC.js} +8 -9
- package/dist/{chunk-QY636HZU.js → chunk-QQIVLZW4.js} +96 -17
- package/dist/{chunk-72OMGPDS.js → chunk-SL3ZKNLQ.js} +19 -18
- package/dist/{chunk-3SXUV423.js → chunk-WSRBFHPX.js} +1 -1
- package/dist/{chunk-TT6GMXNA.js → chunk-XQAYFRWT.js} +2 -2
- package/dist/{chunk-MGUMR35T.js → chunk-Z2W4SJZ7.js} +1 -1
- package/dist/{chunk-OCD3OZRK.js → chunk-Z4G3WCP3.js} +1 -1
- package/dist/{chunk-FENLIFJD.js → chunk-ZRZ4SVWG.js} +69 -10
- package/dist/cli/chat.js +23 -24
- package/dist/cli/check.js +8 -8
- package/dist/cli/plugins.js +15 -16
- package/dist/cli/snapshot-warmup.js +11 -11
- package/dist/cli/upgrade.js +9 -9
- package/dist/db/schema/conversations.d.ts +17 -0
- package/dist/db/schema.d.ts +17 -0
- package/dist/{db-V3NU72O2.js → db-WXQOQESG.js} +8 -9
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +15 -10
- package/dist/reporting-schema.d.ts +46 -0
- package/dist/{runner-JYBCQBLK.js → runner-4QY4XH4B.js} +23 -33
- package/dist/{skills-U6MDAST7.js → skills-P5MU4EBX.js} +8 -8
- package/dist/{validation-72N3JVRU.js → validation-PQF5OP6T.js} +8 -8
- package/dist/version.js +1 -1
- package/migrations/0007_thick_sugar_man.sql +23 -0
- package/migrations/meta/0007_snapshot.json +1013 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +6 -6
- package/dist/catalog-runtime-DMGJSLV2.js +0 -16
- package/dist/chunk-OB42YVAE.js +0 -16
- package/dist/chunk-SYAQIR5Z.js +0 -53
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";
|
|
@@ -139,6 +153,9 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
139
153
|
type: z.ZodLiteral<"compaction">;
|
|
140
154
|
}, z.core.$strict>, z.ZodObject<{
|
|
141
155
|
type: z.ZodLiteral<"handoff">;
|
|
156
|
+
modelProfile: z.ZodString;
|
|
157
|
+
modelId: z.ZodString;
|
|
158
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
142
159
|
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
143
160
|
}, z.core.$strict>, z.ZodObject<{
|
|
144
161
|
type: z.ZodLiteral<"subagent_started">;
|
|
@@ -150,8 +167,8 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
150
167
|
startedSeq: z.ZodNumber;
|
|
151
168
|
outcome: z.ZodEnum<{
|
|
152
169
|
error: "error";
|
|
153
|
-
aborted: "aborted";
|
|
154
170
|
success: "success";
|
|
171
|
+
aborted: "aborted";
|
|
155
172
|
}>;
|
|
156
173
|
}, z.core.$strict>], "type">;
|
|
157
174
|
/** One ordered, privacy-safe canonical event projected for API consumers. */
|
|
@@ -211,6 +228,9 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
211
228
|
type: z.ZodLiteral<"compaction">;
|
|
212
229
|
}, z.core.$strict>, z.ZodObject<{
|
|
213
230
|
type: z.ZodLiteral<"handoff">;
|
|
231
|
+
modelProfile: z.ZodString;
|
|
232
|
+
modelId: z.ZodString;
|
|
233
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
214
234
|
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
215
235
|
}, z.core.$strict>, z.ZodObject<{
|
|
216
236
|
type: z.ZodLiteral<"subagent_started">;
|
|
@@ -222,8 +242,8 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
222
242
|
startedSeq: z.ZodNumber;
|
|
223
243
|
outcome: z.ZodEnum<{
|
|
224
244
|
error: "error";
|
|
225
|
-
aborted: "aborted";
|
|
226
245
|
success: "success";
|
|
246
|
+
aborted: "aborted";
|
|
227
247
|
}>;
|
|
228
248
|
}, z.core.$strict>], "type">;
|
|
229
249
|
}, z.core.$strict>;
|
|
@@ -274,6 +294,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
274
294
|
}, z.core.$strict>>;
|
|
275
295
|
}, z.core.$strict>>;
|
|
276
296
|
conversationId: z.ZodString;
|
|
297
|
+
isParticipant: z.ZodBoolean;
|
|
277
298
|
status: z.ZodEnum<{
|
|
278
299
|
completed: "completed";
|
|
279
300
|
failed: "failed";
|
|
@@ -375,6 +396,9 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
375
396
|
type: z.ZodLiteral<"compaction">;
|
|
376
397
|
}, z.core.$strict>, z.ZodObject<{
|
|
377
398
|
type: z.ZodLiteral<"handoff">;
|
|
399
|
+
modelProfile: z.ZodString;
|
|
400
|
+
modelId: z.ZodString;
|
|
401
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
378
402
|
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
379
403
|
}, z.core.$strict>, z.ZodObject<{
|
|
380
404
|
type: z.ZodLiteral<"subagent_started">;
|
|
@@ -386,8 +410,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
386
410
|
startedSeq: z.ZodNumber;
|
|
387
411
|
outcome: z.ZodEnum<{
|
|
388
412
|
error: "error";
|
|
389
|
-
aborted: "aborted";
|
|
390
413
|
success: "success";
|
|
414
|
+
aborted: "aborted";
|
|
391
415
|
}>;
|
|
392
416
|
}, z.core.$strict>], "type">;
|
|
393
417
|
}, z.core.$strict>>;
|
|
@@ -423,6 +447,7 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
423
447
|
}, z.core.$strict>>;
|
|
424
448
|
}, z.core.$strict>>;
|
|
425
449
|
conversationId: z.ZodString;
|
|
450
|
+
isParticipant: z.ZodBoolean;
|
|
426
451
|
status: z.ZodEnum<{
|
|
427
452
|
completed: "completed";
|
|
428
453
|
failed: "failed";
|
|
@@ -520,3 +545,6 @@ export type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
|
520
545
|
export type ConversationStatsItem = z.infer<typeof conversationStatsItemSchema>;
|
|
521
546
|
export type ConversationMetricDay = z.infer<typeof conversationMetricDaySchema>;
|
|
522
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>;
|