@sentry/junior 0.147.0 → 0.148.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-HS6VGUPM.js → agent-hooks-VAUYT6PD.js} +10 -10
- package/dist/api/conversations/access.d.ts +2 -1
- package/dist/api/conversations/archive.d.ts +3 -5
- package/dist/api/conversations/create.d.ts +6 -0
- package/dist/api/conversations/detail.d.ts +2 -296
- package/dist/api/conversations/event-list.d.ts +2 -193
- package/dist/api/conversations/list.d.ts +4 -66
- package/dist/api/conversations/routes.d.ts +1 -1
- package/dist/api/conversations/stats.d.ts +0 -54
- package/dist/api/http.d.ts +2 -6
- package/dist/api/locations/detail.d.ts +3 -111
- package/dist/api/locations/list.d.ts +0 -45
- package/dist/api/locations/query.d.ts +2 -1
- package/dist/api/locations/routes.d.ts +1 -1
- package/dist/api/people/list.d.ts +0 -29
- package/dist/api/people/profile.d.ts +2 -106
- package/dist/api/people/profile.query.d.ts +2 -1
- package/dist/api/people/routes.d.ts +1 -1
- package/dist/api/people/shared.d.ts +1 -1
- package/dist/api/people/spend.d.ts +3 -4
- package/dist/api/personal-tokens/routes.d.ts +2 -2
- package/dist/api/route.d.ts +8 -14
- package/dist/api/schema/conversation.d.ts +60 -29
- package/dist/api/schema/location.d.ts +4 -0
- package/dist/api/schema/person.d.ts +7 -3
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -1
- package/dist/api/stats.d.ts +0 -13
- package/dist/api/validation.d.ts +7 -0
- package/dist/api/viewer.d.ts +3 -0
- package/dist/api.d.ts +2 -1
- package/dist/api.js +624 -562
- package/dist/app.js +183 -105
- package/dist/{catalog-runtime-M6ZTPYRV.js → catalog-runtime-WADOZVTB.js} +5 -5
- package/dist/chat/actor.d.ts +4 -1
- package/dist/chat/agent/request.d.ts +2 -0
- package/dist/chat/agent/resume.d.ts +1 -0
- package/dist/chat/agent-dispatch/context.d.ts +2 -2
- package/dist/chat/agent-invocations/types.d.ts +52 -0
- package/dist/chat/api-turns/work.d.ts +103 -0
- package/dist/chat/conversations/history.d.ts +60 -0
- package/dist/chat/conversations/provenance.d.ts +6 -0
- package/dist/chat/conversations/sql/actor-identity.d.ts +19 -0
- package/dist/chat/conversations/store.d.ts +1 -1
- package/dist/chat/resource-events/store.d.ts +1 -1
- package/dist/chat/runtime/reply-executor.d.ts +1 -1
- package/dist/chat/runtime/slack-runtime.d.ts +2 -1
- package/dist/chat/runtime/turn-preparation.d.ts +9 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +5 -5
- package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -2
- package/dist/chat/slack/channel.d.ts +26 -0
- package/dist/chat/slack/dispatch-turn.d.ts +1 -0
- package/dist/chat/slack/timestamp-param.d.ts +0 -2
- package/dist/chat/slack/{tools → tool-support}/canvas/api.d.ts +1 -1
- package/dist/chat/slack/{tools → tool-support}/canvas/context.d.ts +3 -0
- package/dist/chat/slack/tool-support/channel-access.d.ts +42 -0
- package/dist/chat/slack/tool-support/channel-target.d.ts +27 -0
- package/dist/chat/slack/tool-support/list/params.d.ts +5 -0
- package/dist/chat/slack/tools/canvas/create.d.ts +1 -1
- package/dist/chat/slack/tools/channel-join.d.ts +28 -0
- package/dist/chat/slack/tools/channel-list-messages.d.ts +3 -2
- package/dist/chat/slack/tools/conversation-message-search.d.ts +2 -8
- package/dist/chat/slack/tools/message-add-reaction.d.ts +1 -1
- package/dist/chat/slack/tools/public-search.d.ts +63 -2
- package/dist/chat/slack/tools/send-files.d.ts +1 -1
- package/dist/chat/slack/tools/thread-read.d.ts +2 -5
- package/dist/chat/source.d.ts +2 -0
- package/dist/chat/task-execution/checkpoint.d.ts +1 -0
- package/dist/chat/task-execution/state.d.ts +9 -4
- package/dist/chat/task-execution/store.d.ts +3 -2
- package/dist/chat/task-execution/turn-cursor.d.ts +2 -0
- package/dist/chat/task-execution/worker.d.ts +2 -0
- package/dist/chat/tasks/read.d.ts +1 -1
- package/dist/chat/tools/search-conversation-events.d.ts +1 -1
- package/dist/chat/tools/types.d.ts +11 -4
- package/dist/chat/tools/watch-resource-events.d.ts +2 -2
- package/dist/{chunk-ORO3PWKQ.js → chunk-2B3PT3V2.js} +1 -1
- package/dist/{chunk-SVHUEHUL.js → chunk-45LOR4PU.js} +21 -4
- package/dist/{chunk-YBVXBNSV.js → chunk-4AQZYNHM.js} +2 -2
- package/dist/{chunk-Z4YU7Z4L.js → chunk-4EA2SFK2.js} +65 -4
- package/dist/{chunk-7NVJVJID.js → chunk-4GXJUYJV.js} +2 -2
- package/dist/{chunk-IIOOO4FQ.js → chunk-55F4QU2V.js} +2 -1
- package/dist/{chunk-745QJ3ZA.js → chunk-7OEIXFC3.js} +2 -2
- package/dist/{chunk-DU74WPIC.js → chunk-D3WPMGEX.js} +1 -1
- package/dist/{chunk-PVNG6UMU.js → chunk-D6YX4NNN.js} +22 -10
- package/dist/chunk-DUY5CDAM.js +36 -0
- package/dist/{chunk-4LJO56OJ.js → chunk-EAI67NTM.js} +1 -1
- package/dist/{chunk-X5UY34KT.js → chunk-EINWQFXI.js} +8 -8
- package/dist/chunk-GDFF3BQG.js +136 -0
- package/dist/{chunk-EFLJ2WJH.js → chunk-GXYDVZKM.js} +5 -5
- package/dist/{chunk-CWP5RHVX.js → chunk-HLPLT3NY.js} +8 -5
- package/dist/{chunk-JUUKWRBE.js → chunk-HWQGBIH7.js} +1 -1
- package/dist/{chunk-AZ7EAOBE.js → chunk-IL4EDBMV.js} +5 -5
- package/dist/{chunk-DLDRQHG5.js → chunk-LAZGHEYU.js} +1 -1
- package/dist/{chunk-RXBVB2JM.js → chunk-LE5H7LMT.js} +1 -1
- package/dist/chunk-LNVEIJ2L.js +48 -0
- package/dist/{chunk-YEO3VX72.js → chunk-OJCP3C3J.js} +8 -6
- package/dist/{chunk-GGB4WL5A.js → chunk-POSZWRGL.js} +1 -1
- package/dist/{chunk-YNTTROJT.js → chunk-QOWHHM3F.js} +1 -1
- package/dist/{chunk-6H5SZR24.js → chunk-RRJV5UR5.js} +302 -59
- package/dist/{chunk-AYU72WO7.js → chunk-ULAU5ZGU.js} +41 -64
- package/dist/{chunk-SGZO7UWH.js → chunk-V2FXMOEA.js} +2 -2
- package/dist/{chunk-AIOK6LAG.js → chunk-VCYSOXON.js} +272 -41
- package/dist/{chunk-7A4M7PCV.js → chunk-VMNRXKAH.js} +1166 -540
- package/dist/{chunk-YSB2N563.js → chunk-VRHTNBA6.js} +121 -87
- package/dist/{chunk-AVZDSUFB.js → chunk-VY6W3T43.js} +4 -4
- package/dist/{chunk-7UQIVT6G.js → chunk-WCN4YSH7.js} +6 -6
- package/dist/{chunk-CSZINQJ2.js → chunk-WOONT5ZP.js} +1 -1
- package/dist/{chunk-Q4R73I43.js → chunk-XJ42NBP5.js} +58 -28
- package/dist/{chunk-YHDERDRO.js → chunk-ZCHIC2GM.js} +91 -75
- package/dist/chunk-ZPL2RR7F.js +798 -0
- package/dist/cli/chat.js +33 -35
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/agent-invocations.d.ts +20 -0
- package/dist/db/schema/conversation-annotations.d.ts +2 -2
- package/dist/db/schema.d.ts +22 -2
- package/dist/{db-CSEW4RII.js → db-XUKZRFFK.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-FUEV5HNG.js → oauth-callback-server-LPZMMGFI.js} +25 -26
- package/dist/{runner-U3XHSKSH.js → runner-DGKUTMPX.js} +17 -18
- package/dist/{skills-AKE6W3WI.js → skills-P7YUFSXM.js} +6 -6
- package/dist/spawn-DSK3ZEVD.js +38 -0
- package/dist/{validation-WDTAULUF.js → validation-S7U5M5NR.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-C3HAO2BG.js → work-GAA7TVAD.js} +18 -19
- package/dist/{worker-LNP4YKBM.js → worker-JXPJH3QB.js} +11 -10
- package/package.json +5 -4
- package/dist/api/health.d.ts +0 -7
- package/dist/api/personal-tokens/create.d.ts +0 -11
- package/dist/api/personal-tokens/list.d.ts +0 -12
- package/dist/api/personal-tokens/revoke.d.ts +0 -5
- package/dist/api/plugin-reports.d.ts +0 -63
- package/dist/api/plugins.d.ts +0 -8
- package/dist/api/runtime.d.ts +0 -24
- package/dist/api/skills.d.ts +0 -6
- package/dist/chat/slack/tools/channel-access.d.ts +0 -30
- package/dist/chunk-34GS7B6L.js +0 -115
- package/dist/chunk-AVOCH2Z5.js +0 -285
- package/dist/chunk-HLXXQI5Q.js +0 -238
- package/dist/chunk-K4SZAP3K.js +0 -67
- package/dist/chunk-R776HKPK.js +0 -81
- package/dist/spawn-B6GDTWJ4.js +0 -39
- /package/dist/chat/slack/{tools → tool-support}/canvas/markdown.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/channel-capabilities.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/context.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/list/api.d.ts +0 -0
- /package/dist/chat/slack/{tools → tool-support}/slack-message-url.d.ts +0 -0
|
@@ -52,6 +52,22 @@ export declare const archiveConversationBodySchema: z.ZodObject<{
|
|
|
52
52
|
export declare const archiveConversationResponseSchema: z.ZodObject<{
|
|
53
53
|
archived: z.ZodBoolean;
|
|
54
54
|
}, z.core.$strict>;
|
|
55
|
+
export declare const createConversationBodySchema: z.ZodObject<{
|
|
56
|
+
idempotencyKey: z.ZodString;
|
|
57
|
+
message: z.ZodString;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
export declare const createConversationMessageBodySchema: z.ZodObject<{
|
|
60
|
+
idempotencyKey: z.ZodString;
|
|
61
|
+
message: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export declare const acceptedConversationMessageSchema: z.ZodObject<{
|
|
64
|
+
conversationId: z.ZodString;
|
|
65
|
+
messageId: z.ZodString;
|
|
66
|
+
status: z.ZodEnum<{
|
|
67
|
+
accepted: "accepted";
|
|
68
|
+
duplicate: "duplicate";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strict>;
|
|
55
71
|
export declare const actorIdentitySchema: z.ZodObject<{
|
|
56
72
|
email: z.ZodOptional<z.ZodString>;
|
|
57
73
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -106,6 +122,10 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
106
122
|
}, z.core.$strict>>;
|
|
107
123
|
conversationId: z.ZodString;
|
|
108
124
|
isParticipant: z.ZodBoolean;
|
|
125
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
public: "public";
|
|
127
|
+
private: "private";
|
|
128
|
+
}>>;
|
|
109
129
|
status: z.ZodEnum<{
|
|
110
130
|
completed: "completed";
|
|
111
131
|
failed: "failed";
|
|
@@ -140,8 +160,8 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
140
160
|
type: z.ZodLiteral<"message">;
|
|
141
161
|
messageId: z.ZodString;
|
|
142
162
|
role: z.ZodEnum<{
|
|
143
|
-
system: "system";
|
|
144
163
|
user: "user";
|
|
164
|
+
system: "system";
|
|
145
165
|
assistant: "assistant";
|
|
146
166
|
}>;
|
|
147
167
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
@@ -192,17 +212,17 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
192
212
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
193
213
|
turnId: z.ZodString;
|
|
194
214
|
state: z.ZodEnum<{
|
|
195
|
-
no_reply: "no_reply";
|
|
196
215
|
started: "started";
|
|
197
216
|
succeeded: "succeeded";
|
|
217
|
+
no_reply: "no_reply";
|
|
198
218
|
}>;
|
|
199
219
|
}, z.core.$strict>, z.ZodObject<{
|
|
200
220
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
201
221
|
turnId: z.ZodString;
|
|
202
222
|
state: z.ZodLiteral<"failed">;
|
|
203
223
|
failureKind: z.ZodEnum<{
|
|
204
|
-
delivery: "delivery";
|
|
205
224
|
agent: "agent";
|
|
225
|
+
delivery: "delivery";
|
|
206
226
|
}>;
|
|
207
227
|
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
208
228
|
type: z.ZodLiteral<"turn_context">;
|
|
@@ -226,14 +246,14 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
226
246
|
}, z.core.$strict>>>;
|
|
227
247
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
228
248
|
check: "check";
|
|
229
|
-
info: "info";
|
|
230
|
-
warning: "warning";
|
|
231
249
|
key: "key";
|
|
232
|
-
|
|
250
|
+
warning: "warning";
|
|
233
251
|
activity: "activity";
|
|
234
252
|
brain: "brain";
|
|
235
253
|
calendar: "calendar";
|
|
236
254
|
database: "database";
|
|
255
|
+
info: "info";
|
|
256
|
+
link: "link";
|
|
237
257
|
sparkles: "sparkles";
|
|
238
258
|
}>>;
|
|
239
259
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -305,9 +325,9 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
305
325
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
306
326
|
status: z.ZodEnum<{
|
|
307
327
|
error: "error";
|
|
308
|
-
aborted: "aborted";
|
|
309
328
|
running: "running";
|
|
310
329
|
completed: "completed";
|
|
330
|
+
aborted: "aborted";
|
|
311
331
|
}>;
|
|
312
332
|
}, z.core.$strict>], "type">;
|
|
313
333
|
/** One ordered, privacy-safe canonical event projected for API consumers. */
|
|
@@ -318,8 +338,8 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
318
338
|
type: z.ZodLiteral<"message">;
|
|
319
339
|
messageId: z.ZodString;
|
|
320
340
|
role: z.ZodEnum<{
|
|
321
|
-
system: "system";
|
|
322
341
|
user: "user";
|
|
342
|
+
system: "system";
|
|
323
343
|
assistant: "assistant";
|
|
324
344
|
}>;
|
|
325
345
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
@@ -370,17 +390,17 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
370
390
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
371
391
|
turnId: z.ZodString;
|
|
372
392
|
state: z.ZodEnum<{
|
|
373
|
-
no_reply: "no_reply";
|
|
374
393
|
started: "started";
|
|
375
394
|
succeeded: "succeeded";
|
|
395
|
+
no_reply: "no_reply";
|
|
376
396
|
}>;
|
|
377
397
|
}, z.core.$strict>, z.ZodObject<{
|
|
378
398
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
379
399
|
turnId: z.ZodString;
|
|
380
400
|
state: z.ZodLiteral<"failed">;
|
|
381
401
|
failureKind: z.ZodEnum<{
|
|
382
|
-
delivery: "delivery";
|
|
383
402
|
agent: "agent";
|
|
403
|
+
delivery: "delivery";
|
|
384
404
|
}>;
|
|
385
405
|
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
386
406
|
type: z.ZodLiteral<"turn_context">;
|
|
@@ -404,14 +424,14 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
404
424
|
}, z.core.$strict>>>;
|
|
405
425
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
406
426
|
check: "check";
|
|
407
|
-
info: "info";
|
|
408
|
-
warning: "warning";
|
|
409
427
|
key: "key";
|
|
410
|
-
|
|
428
|
+
warning: "warning";
|
|
411
429
|
activity: "activity";
|
|
412
430
|
brain: "brain";
|
|
413
431
|
calendar: "calendar";
|
|
414
432
|
database: "database";
|
|
433
|
+
info: "info";
|
|
434
|
+
link: "link";
|
|
415
435
|
sparkles: "sparkles";
|
|
416
436
|
}>>;
|
|
417
437
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -483,9 +503,9 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
483
503
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
484
504
|
status: z.ZodEnum<{
|
|
485
505
|
error: "error";
|
|
486
|
-
aborted: "aborted";
|
|
487
506
|
running: "running";
|
|
488
507
|
completed: "completed";
|
|
508
|
+
aborted: "aborted";
|
|
489
509
|
}>;
|
|
490
510
|
}, z.core.$strict>], "type">;
|
|
491
511
|
}, z.core.$strict>;
|
|
@@ -546,6 +566,10 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
546
566
|
}, z.core.$strict>>;
|
|
547
567
|
conversationId: z.ZodString;
|
|
548
568
|
isParticipant: z.ZodBoolean;
|
|
569
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
570
|
+
public: "public";
|
|
571
|
+
private: "private";
|
|
572
|
+
}>>;
|
|
549
573
|
status: z.ZodEnum<{
|
|
550
574
|
completed: "completed";
|
|
551
575
|
failed: "failed";
|
|
@@ -581,11 +605,11 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
581
605
|
url: z.ZodString;
|
|
582
606
|
description: z.ZodOptional<z.ZodString>;
|
|
583
607
|
status: z.ZodOptional<z.ZodEnum<{
|
|
584
|
-
warning: "warning";
|
|
585
608
|
open: "open";
|
|
586
609
|
draft: "draft";
|
|
587
610
|
closed: "closed";
|
|
588
611
|
merged: "merged";
|
|
612
|
+
warning: "warning";
|
|
589
613
|
}>>;
|
|
590
614
|
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
591
615
|
plugin: z.ZodString;
|
|
@@ -617,8 +641,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
617
641
|
type: z.ZodLiteral<"message">;
|
|
618
642
|
messageId: z.ZodString;
|
|
619
643
|
role: z.ZodEnum<{
|
|
620
|
-
system: "system";
|
|
621
644
|
user: "user";
|
|
645
|
+
system: "system";
|
|
622
646
|
assistant: "assistant";
|
|
623
647
|
}>;
|
|
624
648
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
@@ -669,17 +693,17 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
669
693
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
670
694
|
turnId: z.ZodString;
|
|
671
695
|
state: z.ZodEnum<{
|
|
672
|
-
no_reply: "no_reply";
|
|
673
696
|
started: "started";
|
|
674
697
|
succeeded: "succeeded";
|
|
698
|
+
no_reply: "no_reply";
|
|
675
699
|
}>;
|
|
676
700
|
}, z.core.$strict>, z.ZodObject<{
|
|
677
701
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
678
702
|
turnId: z.ZodString;
|
|
679
703
|
state: z.ZodLiteral<"failed">;
|
|
680
704
|
failureKind: z.ZodEnum<{
|
|
681
|
-
delivery: "delivery";
|
|
682
705
|
agent: "agent";
|
|
706
|
+
delivery: "delivery";
|
|
683
707
|
}>;
|
|
684
708
|
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
685
709
|
type: z.ZodLiteral<"turn_context">;
|
|
@@ -703,14 +727,14 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
703
727
|
}, z.core.$strict>>>;
|
|
704
728
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
705
729
|
check: "check";
|
|
706
|
-
info: "info";
|
|
707
|
-
warning: "warning";
|
|
708
730
|
key: "key";
|
|
709
|
-
|
|
731
|
+
warning: "warning";
|
|
710
732
|
activity: "activity";
|
|
711
733
|
brain: "brain";
|
|
712
734
|
calendar: "calendar";
|
|
713
735
|
database: "database";
|
|
736
|
+
info: "info";
|
|
737
|
+
link: "link";
|
|
714
738
|
sparkles: "sparkles";
|
|
715
739
|
}>>;
|
|
716
740
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -782,9 +806,9 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
782
806
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
783
807
|
status: z.ZodEnum<{
|
|
784
808
|
error: "error";
|
|
785
|
-
aborted: "aborted";
|
|
786
809
|
running: "running";
|
|
787
810
|
completed: "completed";
|
|
811
|
+
aborted: "aborted";
|
|
788
812
|
}>;
|
|
789
813
|
}, z.core.$strict>], "type">;
|
|
790
814
|
}, z.core.$strict>>;
|
|
@@ -818,8 +842,8 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
818
842
|
type: z.ZodLiteral<"message">;
|
|
819
843
|
messageId: z.ZodString;
|
|
820
844
|
role: z.ZodEnum<{
|
|
821
|
-
system: "system";
|
|
822
845
|
user: "user";
|
|
846
|
+
system: "system";
|
|
823
847
|
assistant: "assistant";
|
|
824
848
|
}>;
|
|
825
849
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
@@ -870,17 +894,17 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
870
894
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
871
895
|
turnId: z.ZodString;
|
|
872
896
|
state: z.ZodEnum<{
|
|
873
|
-
no_reply: "no_reply";
|
|
874
897
|
started: "started";
|
|
875
898
|
succeeded: "succeeded";
|
|
899
|
+
no_reply: "no_reply";
|
|
876
900
|
}>;
|
|
877
901
|
}, z.core.$strict>, z.ZodObject<{
|
|
878
902
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
879
903
|
turnId: z.ZodString;
|
|
880
904
|
state: z.ZodLiteral<"failed">;
|
|
881
905
|
failureKind: z.ZodEnum<{
|
|
882
|
-
delivery: "delivery";
|
|
883
906
|
agent: "agent";
|
|
907
|
+
delivery: "delivery";
|
|
884
908
|
}>;
|
|
885
909
|
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
886
910
|
type: z.ZodLiteral<"turn_context">;
|
|
@@ -904,14 +928,14 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
904
928
|
}, z.core.$strict>>>;
|
|
905
929
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
906
930
|
check: "check";
|
|
907
|
-
info: "info";
|
|
908
|
-
warning: "warning";
|
|
909
931
|
key: "key";
|
|
910
|
-
|
|
932
|
+
warning: "warning";
|
|
911
933
|
activity: "activity";
|
|
912
934
|
brain: "brain";
|
|
913
935
|
calendar: "calendar";
|
|
914
936
|
database: "database";
|
|
937
|
+
info: "info";
|
|
938
|
+
link: "link";
|
|
915
939
|
sparkles: "sparkles";
|
|
916
940
|
}>>;
|
|
917
941
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -983,9 +1007,9 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
983
1007
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
984
1008
|
status: z.ZodEnum<{
|
|
985
1009
|
error: "error";
|
|
986
|
-
aborted: "aborted";
|
|
987
1010
|
running: "running";
|
|
988
1011
|
completed: "completed";
|
|
1012
|
+
aborted: "aborted";
|
|
989
1013
|
}>;
|
|
990
1014
|
}, z.core.$strict>], "type">;
|
|
991
1015
|
}, z.core.$strict>>;
|
|
@@ -1031,6 +1055,10 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
1031
1055
|
}, z.core.$strict>>;
|
|
1032
1056
|
conversationId: z.ZodString;
|
|
1033
1057
|
isParticipant: z.ZodBoolean;
|
|
1058
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1059
|
+
public: "public";
|
|
1060
|
+
private: "private";
|
|
1061
|
+
}>>;
|
|
1034
1062
|
status: z.ZodEnum<{
|
|
1035
1063
|
completed: "completed";
|
|
1036
1064
|
failed: "failed";
|
|
@@ -1177,3 +1205,6 @@ export type ConversationStatsReport = z.infer<typeof conversationStatsReportSche
|
|
|
1177
1205
|
export type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
1178
1206
|
export type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
1179
1207
|
export type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
1208
|
+
export type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
|
|
1209
|
+
export type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
|
|
1210
|
+
export type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
|
|
@@ -163,6 +163,10 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
163
163
|
}, z.core.$strict>>;
|
|
164
164
|
conversationId: z.ZodString;
|
|
165
165
|
isParticipant: z.ZodBoolean;
|
|
166
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
167
|
+
public: "public";
|
|
168
|
+
private: "private";
|
|
169
|
+
}>>;
|
|
166
170
|
status: z.ZodEnum<{
|
|
167
171
|
completed: "completed";
|
|
168
172
|
failed: "failed";
|
|
@@ -6,9 +6,9 @@ export declare const personParamsSchema: z.ZodObject<{
|
|
|
6
6
|
export declare const peopleConversationStatsItemSchema: z.ZodObject<{
|
|
7
7
|
label: z.ZodString;
|
|
8
8
|
failed: z.ZodNumber;
|
|
9
|
-
durationMs: z.ZodNumber;
|
|
10
9
|
active: z.ZodNumber;
|
|
11
10
|
conversations: z.ZodNumber;
|
|
11
|
+
durationMs: z.ZodNumber;
|
|
12
12
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
}, z.core.$strict>;
|
|
14
14
|
export declare const actorActivityDayReportSchema: z.ZodObject<{
|
|
@@ -96,9 +96,9 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
96
96
|
locations: z.ZodArray<z.ZodObject<{
|
|
97
97
|
label: z.ZodString;
|
|
98
98
|
failed: z.ZodNumber;
|
|
99
|
-
durationMs: z.ZodNumber;
|
|
100
99
|
active: z.ZodNumber;
|
|
101
100
|
conversations: z.ZodNumber;
|
|
101
|
+
durationMs: z.ZodNumber;
|
|
102
102
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
103
103
|
}, z.core.$strict>>;
|
|
104
104
|
recentConversations: z.ZodArray<z.ZodObject<{
|
|
@@ -130,6 +130,10 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
130
130
|
}, z.core.$strict>>;
|
|
131
131
|
conversationId: z.ZodString;
|
|
132
132
|
isParticipant: z.ZodBoolean;
|
|
133
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
public: "public";
|
|
135
|
+
private: "private";
|
|
136
|
+
}>>;
|
|
133
137
|
status: z.ZodEnum<{
|
|
134
138
|
completed: "completed";
|
|
135
139
|
failed: "failed";
|
|
@@ -169,9 +173,9 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
169
173
|
surfaces: z.ZodArray<z.ZodObject<{
|
|
170
174
|
label: z.ZodString;
|
|
171
175
|
failed: z.ZodNumber;
|
|
172
|
-
durationMs: z.ZodNumber;
|
|
173
176
|
active: z.ZodNumber;
|
|
174
177
|
conversations: z.ZodNumber;
|
|
178
|
+
durationMs: z.ZodNumber;
|
|
175
179
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
176
180
|
}, z.core.$strict>>;
|
|
177
181
|
totals: z.ZodObject<{
|
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, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventPageSchema, conversationEventHistorySchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, } from "./schema/conversation";
|
|
4
|
-
export type { ArchiveConversationBody, ArchiveConversationResponse, ActorIdentity, ConversationAuxiliaryCosts, ConversationCost, ConversationDetailReport, ConversationEventPage, ConversationEventHistory, ConversationFeed, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationMetricDay, ConversationModelUsage, ConversationParams, ConversationSourceTask, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, GuardianMetricDay, GuardianStats, } from "./schema/conversation";
|
|
3
|
+
export { acceptedConversationMessageSchema, archiveConversationBodySchema, archiveConversationResponseSchema, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventPageSchema, conversationEventHistorySchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, createConversationBodySchema, createConversationMessageBodySchema, } from "./schema/conversation";
|
|
4
|
+
export type { AcceptedConversationMessage, ArchiveConversationBody, ArchiveConversationResponse, ActorIdentity, ConversationAuxiliaryCosts, ConversationCost, ConversationDetailReport, ConversationEventPage, ConversationEventHistory, ConversationFeed, ConversationReportEvent, ConversationReportEventData, ConversationReportStatus, ConversationMetricDay, ConversationModelUsage, ConversationParams, ConversationSourceTask, ConversationStatsItem, ConversationStatsReport, ConversationSummaryReport, ConversationSurface, ConversationUsage, CreateConversationBody, CreateConversationMessageBody, GuardianMetricDay, GuardianStats, } from "./schema/conversation";
|
|
5
5
|
export { actorDirectoryReportSchema, actorProfileReportSchema, personalSpendReportSchema, 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
acceptedConversationMessageSchema,
|
|
2
3
|
actorDirectoryReportSchema,
|
|
3
4
|
actorProfileReportSchema,
|
|
4
5
|
apiErrorSchema,
|
|
@@ -17,6 +18,8 @@ import {
|
|
|
17
18
|
conversationReportEventSchema,
|
|
18
19
|
conversationStatsReportSchema,
|
|
19
20
|
conversationSummaryReportSchema,
|
|
21
|
+
createConversationBodySchema,
|
|
22
|
+
createConversationMessageBodySchema,
|
|
20
23
|
createPersonalTokenBodySchema,
|
|
21
24
|
createdPersonalTokenSchema,
|
|
22
25
|
dailyConversationActivitySchema,
|
|
@@ -43,7 +46,7 @@ import {
|
|
|
43
46
|
taskRunListSchema,
|
|
44
47
|
taskRunSchema,
|
|
45
48
|
taskSummarySchema
|
|
46
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-45LOR4PU.js";
|
|
47
50
|
import {
|
|
48
51
|
healthReportSchema,
|
|
49
52
|
pluginOperationalReportFeedSchema,
|
|
@@ -60,6 +63,7 @@ import "../chunk-PDO5BLNM.js";
|
|
|
60
63
|
import "../chunk-VFUK3X5B.js";
|
|
61
64
|
import "../chunk-MLKGABMK.js";
|
|
62
65
|
export {
|
|
66
|
+
acceptedConversationMessageSchema,
|
|
63
67
|
actorDirectoryReportSchema,
|
|
64
68
|
actorProfileReportSchema,
|
|
65
69
|
apiErrorSchema,
|
|
@@ -78,6 +82,8 @@ export {
|
|
|
78
82
|
conversationReportEventSchema,
|
|
79
83
|
conversationStatsReportSchema,
|
|
80
84
|
conversationSummaryReportSchema,
|
|
85
|
+
createConversationBodySchema,
|
|
86
|
+
createConversationMessageBodySchema,
|
|
81
87
|
createPersonalTokenBodySchema,
|
|
82
88
|
createdPersonalTokenSchema,
|
|
83
89
|
dailyConversationActivitySchema,
|
package/dist/api/stats.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
import { type StatsReport } from "./schema/stats";
|
|
2
2
|
/** Read the last 90 days of named daily counters. */
|
|
3
3
|
export declare function readStatsReport(): Promise<StatsReport>;
|
|
4
|
-
declare const _default: import("./route").ApiRoute<import("zod").ZodObject<{
|
|
5
|
-
generatedAt: import("zod").ZodString;
|
|
6
|
-
stats: import("zod").ZodArray<import("zod").ZodObject<{
|
|
7
|
-
count: import("zod").ZodNumber;
|
|
8
|
-
date: import("zod").ZodString;
|
|
9
|
-
metric: import("zod").ZodString;
|
|
10
|
-
name: import("zod").ZodString;
|
|
11
|
-
namespace: import("zod").ZodString;
|
|
12
|
-
}, import("zod/v4/core").$strict>>;
|
|
13
|
-
windowEnd: import("zod").ZodString;
|
|
14
|
-
windowStart: import("zod").ZodString;
|
|
15
|
-
}, import("zod/v4/core").$strict>>;
|
|
16
|
-
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ValidationTargets } from "hono";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
/** Validate one request input and use Junior's stable JSON error contract. */
|
|
4
|
+
export declare function validateRequest<TTarget extends keyof ValidationTargets, TSchema extends z.ZodType>(target: TTarget, schema: TSchema, message: string): import("hono").MiddlewareHandler<import("hono").Env, string, {
|
|
5
|
+
in: (undefined extends (TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").input<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.input<TSchema> : never) ? true : false) extends true ? { [K in TTarget]?: ([TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").input<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.input<TSchema> : never] extends [ValidationTargets[K]] ? ValidationTargets[K] & (TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").input<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.input<TSchema> : never) : import("hono/validator").InferInput<TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").input<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.input<TSchema> : never, K, import("hono/types").ParsedFormValue>) | undefined; } : { [K_1 in TTarget]: [TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").input<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.input<TSchema> : never] extends [ValidationTargets[K_1]] ? ValidationTargets[K_1] & (TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").input<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.input<TSchema> : never) : import("hono/validator").InferInput<TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").input<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.input<TSchema> : never, K_1, import("hono/types").ParsedFormValue>; };
|
|
6
|
+
out: { [K_2 in TTarget]: TSchema extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").output<TSchema> : TSchema extends z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<TSchema> : never; };
|
|
7
|
+
}, never>;
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
2
|
import { jsonResponse } from "./api/http";
|
|
3
|
-
import {
|
|
3
|
+
import type { JuniorApiEnv, JuniorApiVariables } from "./api/route";
|
|
4
4
|
export { authenticatePersonalToken } from "./personal-tokens/store";
|
|
5
|
+
export { resolveViewerUser } from "./chat/plugins/viewer";
|
|
5
6
|
export type { JuniorApiVariables };
|
|
6
7
|
export { jsonResponse };
|
|
7
8
|
/** Create Junior's production REST API for authenticated dashboard consumers. */
|