@sentry/junior 0.147.0 → 0.149.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-CWMCXAMT.js} +10 -10
- package/dist/api/conversations/access.d.ts +2 -1
- package/dist/api/conversations/aggregate.d.ts +2 -0
- 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/pending-messages.d.ts +15 -0
- 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 +3 -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 +130 -25
- 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 +13 -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 +772 -561
- package/dist/app.js +241 -204
- package/dist/{catalog-runtime-M6ZTPYRV.js → catalog-runtime-GAW5APVI.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 +108 -0
- package/dist/chat/app/services.d.ts +1 -1
- 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 -3
- 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/services/conversation-memory.d.ts +2 -2
- package/dist/chat/services/conversation-title.d.ts +20 -0
- package/dist/chat/slack/assistant-thread/title.d.ts +10 -27
- 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/state/conversation.d.ts +1 -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-25SC7D6Z.js} +1 -1
- package/dist/{chunk-GGB4WL5A.js → chunk-2JHKISQA.js} +1 -1
- package/dist/{chunk-AVZDSUFB.js → chunk-2P6BQQER.js} +4 -4
- package/dist/{chunk-7NVJVJID.js → chunk-32CXPIZE.js} +2 -2
- package/dist/{chunk-YSB2N563.js → chunk-3GYZ5YEH.js} +121 -87
- package/dist/{chunk-DU74WPIC.js → chunk-3I2IVWSZ.js} +1 -1
- package/dist/{chunk-SVHUEHUL.js → chunk-3JVUWLR7.js} +65 -4
- package/dist/{chunk-RXBVB2JM.js → chunk-3KGQOKIG.js} +1 -1
- package/dist/{chunk-YBVXBNSV.js → chunk-4JGM7FXO.js} +2 -2
- package/dist/{chunk-AZ7EAOBE.js → chunk-4YKPOYRV.js} +5 -5
- package/dist/chunk-5CWUQXXT.js +806 -0
- package/dist/{chunk-DLDRQHG5.js → chunk-6G5RCDKP.js} +1 -1
- package/dist/{chunk-AYU72WO7.js → chunk-75DSYFFB.js} +47 -70
- package/dist/{chunk-YHDERDRO.js → chunk-7BH46NB4.js} +91 -75
- package/dist/{chunk-745QJ3ZA.js → chunk-ALJG73MQ.js} +2 -2
- package/dist/chunk-ART7P442.js +48 -0
- package/dist/{chunk-7A4M7PCV.js → chunk-DK5UT6PQ.js} +1180 -556
- package/dist/{chunk-AIOK6LAG.js → chunk-EW2LNCRL.js} +813 -44
- package/dist/chunk-EXW76GW4.js +36 -0
- package/dist/chunk-GDFF3BQG.js +136 -0
- package/dist/{chunk-7UQIVT6G.js → chunk-JMH3DBM5.js} +6 -6
- package/dist/{chunk-CWP5RHVX.js → chunk-JMSMXXED.js} +12 -5
- package/dist/{chunk-CSZINQJ2.js → chunk-MEMURSBG.js} +1 -1
- package/dist/{chunk-YNTTROJT.js → chunk-QIW7OQEO.js} +1 -1
- package/dist/{chunk-Q4R73I43.js → chunk-RB26T3LU.js} +58 -28
- package/dist/{chunk-4LJO56OJ.js → chunk-RLVZIWNQ.js} +1 -1
- package/dist/{chunk-SGZO7UWH.js → chunk-SWHPVZBV.js} +2 -2
- package/dist/{chunk-PVNG6UMU.js → chunk-TFBNBXPU.js} +22 -10
- package/dist/{chunk-EFLJ2WJH.js → chunk-URDCZAL4.js} +5 -5
- package/dist/{chunk-6H5SZR24.js → chunk-UZGASGOD.js} +300 -383
- package/dist/{chunk-YEO3VX72.js → chunk-W7UONUIZ.js} +8 -6
- package/dist/{chunk-JUUKWRBE.js → chunk-X22XXSZA.js} +1 -1
- package/dist/{chunk-X5UY34KT.js → chunk-XPYWWMHR.js} +8 -8
- package/dist/{chunk-IIOOO4FQ.js → chunk-ZYMYLLWG.js} +2 -1
- package/dist/cli/chat.js +32 -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-JBZLRIVY.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-MNTVYY2I.js} +24 -26
- package/dist/{runner-U3XHSKSH.js → runner-K24BWZSZ.js} +23 -25
- package/dist/{skills-AKE6W3WI.js → skills-AU5ST2CG.js} +6 -6
- package/dist/spawn-6PO7CVJ6.js +38 -0
- package/dist/{validation-WDTAULUF.js → validation-IXGZCFRO.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-C3HAO2BG.js → work-WCZIYILX.js} +18 -19
- package/dist/{worker-LNP4YKBM.js → worker-U2AACBEY.js} +11 -10
- package/package.json +6 -5
- 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/chunk-Z4YU7Z4L.js +0 -76
- 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,12 +52,89 @@ 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
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
public: "public";
|
|
60
|
+
private: "private";
|
|
61
|
+
}>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export declare const createConversationMessageBodySchema: z.ZodObject<{
|
|
64
|
+
idempotencyKey: z.ZodString;
|
|
65
|
+
message: z.ZodString;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
export declare const acceptedConversationMessageSchema: z.ZodObject<{
|
|
68
|
+
conversationId: z.ZodString;
|
|
69
|
+
messageId: z.ZodString;
|
|
70
|
+
status: z.ZodEnum<{
|
|
71
|
+
accepted: "accepted";
|
|
72
|
+
duplicate: "duplicate";
|
|
73
|
+
}>;
|
|
74
|
+
}, z.core.$strict>;
|
|
55
75
|
export declare const actorIdentitySchema: z.ZodObject<{
|
|
56
76
|
email: z.ZodOptional<z.ZodString>;
|
|
57
77
|
fullName: z.ZodOptional<z.ZodString>;
|
|
58
78
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
59
79
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
60
80
|
}, z.core.$strict>;
|
|
81
|
+
/** Mailbox delivery mode for one accepted inbound message. */
|
|
82
|
+
export declare const conversationPendingMessageDeliverySchema: z.ZodEnum<{
|
|
83
|
+
defer: "defer";
|
|
84
|
+
interrupt: "interrupt";
|
|
85
|
+
}>;
|
|
86
|
+
/** One accepted mailbox message that has not reached durable history yet. */
|
|
87
|
+
export declare const conversationPendingMessageSchema: z.ZodObject<{
|
|
88
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
email: z.ZodOptional<z.ZodString>;
|
|
90
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
91
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
92
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strict>>;
|
|
94
|
+
createdAt: z.ZodString;
|
|
95
|
+
delivery: z.ZodEnum<{
|
|
96
|
+
defer: "defer";
|
|
97
|
+
interrupt: "interrupt";
|
|
98
|
+
}>;
|
|
99
|
+
inboundMessageId: z.ZodString;
|
|
100
|
+
messageId: z.ZodString;
|
|
101
|
+
receivedAt: z.ZodString;
|
|
102
|
+
role: z.ZodLiteral<"user">;
|
|
103
|
+
source: z.ZodEnum<{
|
|
104
|
+
slack: "slack";
|
|
105
|
+
web: "web";
|
|
106
|
+
}>;
|
|
107
|
+
text: z.ZodOptional<z.ZodString>;
|
|
108
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
/** Bounded mailbox snapshot for one conversation transcript. */
|
|
111
|
+
export declare const conversationPendingMessagesReportSchema: z.ZodObject<{
|
|
112
|
+
conversationId: z.ZodString;
|
|
113
|
+
generatedAt: z.ZodString;
|
|
114
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
115
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
email: z.ZodOptional<z.ZodString>;
|
|
117
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
118
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
createdAt: z.ZodString;
|
|
122
|
+
delivery: z.ZodEnum<{
|
|
123
|
+
defer: "defer";
|
|
124
|
+
interrupt: "interrupt";
|
|
125
|
+
}>;
|
|
126
|
+
inboundMessageId: z.ZodString;
|
|
127
|
+
messageId: z.ZodString;
|
|
128
|
+
receivedAt: z.ZodString;
|
|
129
|
+
role: z.ZodLiteral<"user">;
|
|
130
|
+
source: z.ZodEnum<{
|
|
131
|
+
slack: "slack";
|
|
132
|
+
web: "web";
|
|
133
|
+
}>;
|
|
134
|
+
text: z.ZodOptional<z.ZodString>;
|
|
135
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
136
|
+
}, z.core.$strict>>;
|
|
137
|
+
}, z.core.$strict>;
|
|
61
138
|
export declare const conversationAuxiliaryCostsSchema: z.ZodObject<{
|
|
62
139
|
costUsd: z.ZodNumber;
|
|
63
140
|
operations: z.ZodArray<z.ZodObject<{
|
|
@@ -106,6 +183,10 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
106
183
|
}, z.core.$strict>>;
|
|
107
184
|
conversationId: z.ZodString;
|
|
108
185
|
isParticipant: z.ZodBoolean;
|
|
186
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
187
|
+
public: "public";
|
|
188
|
+
private: "private";
|
|
189
|
+
}>>;
|
|
109
190
|
status: z.ZodEnum<{
|
|
110
191
|
completed: "completed";
|
|
111
192
|
failed: "failed";
|
|
@@ -140,10 +221,11 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
140
221
|
type: z.ZodLiteral<"message">;
|
|
141
222
|
messageId: z.ZodString;
|
|
142
223
|
role: z.ZodEnum<{
|
|
143
|
-
system: "system";
|
|
144
224
|
user: "user";
|
|
225
|
+
system: "system";
|
|
145
226
|
assistant: "assistant";
|
|
146
227
|
}>;
|
|
228
|
+
source: z.ZodOptional<z.ZodLiteral<"web">>;
|
|
147
229
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
148
230
|
email: z.ZodOptional<z.ZodString>;
|
|
149
231
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -192,9 +274,9 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
192
274
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
193
275
|
turnId: z.ZodString;
|
|
194
276
|
state: z.ZodEnum<{
|
|
195
|
-
no_reply: "no_reply";
|
|
196
277
|
started: "started";
|
|
197
278
|
succeeded: "succeeded";
|
|
279
|
+
no_reply: "no_reply";
|
|
198
280
|
}>;
|
|
199
281
|
}, z.core.$strict>, z.ZodObject<{
|
|
200
282
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
@@ -226,14 +308,14 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
226
308
|
}, z.core.$strict>>>;
|
|
227
309
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
228
310
|
check: "check";
|
|
229
|
-
info: "info";
|
|
230
|
-
warning: "warning";
|
|
231
311
|
key: "key";
|
|
232
|
-
|
|
312
|
+
warning: "warning";
|
|
233
313
|
activity: "activity";
|
|
234
314
|
brain: "brain";
|
|
235
315
|
calendar: "calendar";
|
|
236
316
|
database: "database";
|
|
317
|
+
info: "info";
|
|
318
|
+
link: "link";
|
|
237
319
|
sparkles: "sparkles";
|
|
238
320
|
}>>;
|
|
239
321
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -305,9 +387,9 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
305
387
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
306
388
|
status: z.ZodEnum<{
|
|
307
389
|
error: "error";
|
|
308
|
-
aborted: "aborted";
|
|
309
390
|
running: "running";
|
|
310
391
|
completed: "completed";
|
|
392
|
+
aborted: "aborted";
|
|
311
393
|
}>;
|
|
312
394
|
}, z.core.$strict>], "type">;
|
|
313
395
|
/** One ordered, privacy-safe canonical event projected for API consumers. */
|
|
@@ -318,10 +400,11 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
318
400
|
type: z.ZodLiteral<"message">;
|
|
319
401
|
messageId: z.ZodString;
|
|
320
402
|
role: z.ZodEnum<{
|
|
321
|
-
system: "system";
|
|
322
403
|
user: "user";
|
|
404
|
+
system: "system";
|
|
323
405
|
assistant: "assistant";
|
|
324
406
|
}>;
|
|
407
|
+
source: z.ZodOptional<z.ZodLiteral<"web">>;
|
|
325
408
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
326
409
|
email: z.ZodOptional<z.ZodString>;
|
|
327
410
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -370,9 +453,9 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
370
453
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
371
454
|
turnId: z.ZodString;
|
|
372
455
|
state: z.ZodEnum<{
|
|
373
|
-
no_reply: "no_reply";
|
|
374
456
|
started: "started";
|
|
375
457
|
succeeded: "succeeded";
|
|
458
|
+
no_reply: "no_reply";
|
|
376
459
|
}>;
|
|
377
460
|
}, z.core.$strict>, z.ZodObject<{
|
|
378
461
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
@@ -404,14 +487,14 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
404
487
|
}, z.core.$strict>>>;
|
|
405
488
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
406
489
|
check: "check";
|
|
407
|
-
info: "info";
|
|
408
|
-
warning: "warning";
|
|
409
490
|
key: "key";
|
|
410
|
-
|
|
491
|
+
warning: "warning";
|
|
411
492
|
activity: "activity";
|
|
412
493
|
brain: "brain";
|
|
413
494
|
calendar: "calendar";
|
|
414
495
|
database: "database";
|
|
496
|
+
info: "info";
|
|
497
|
+
link: "link";
|
|
415
498
|
sparkles: "sparkles";
|
|
416
499
|
}>>;
|
|
417
500
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -483,9 +566,9 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
483
566
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
484
567
|
status: z.ZodEnum<{
|
|
485
568
|
error: "error";
|
|
486
|
-
aborted: "aborted";
|
|
487
569
|
running: "running";
|
|
488
570
|
completed: "completed";
|
|
571
|
+
aborted: "aborted";
|
|
489
572
|
}>;
|
|
490
573
|
}, z.core.$strict>], "type">;
|
|
491
574
|
}, z.core.$strict>;
|
|
@@ -546,6 +629,10 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
546
629
|
}, z.core.$strict>>;
|
|
547
630
|
conversationId: z.ZodString;
|
|
548
631
|
isParticipant: z.ZodBoolean;
|
|
632
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
633
|
+
public: "public";
|
|
634
|
+
private: "private";
|
|
635
|
+
}>>;
|
|
549
636
|
status: z.ZodEnum<{
|
|
550
637
|
completed: "completed";
|
|
551
638
|
failed: "failed";
|
|
@@ -581,11 +668,11 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
581
668
|
url: z.ZodString;
|
|
582
669
|
description: z.ZodOptional<z.ZodString>;
|
|
583
670
|
status: z.ZodOptional<z.ZodEnum<{
|
|
584
|
-
warning: "warning";
|
|
585
671
|
open: "open";
|
|
586
672
|
draft: "draft";
|
|
587
673
|
closed: "closed";
|
|
588
674
|
merged: "merged";
|
|
675
|
+
warning: "warning";
|
|
589
676
|
}>>;
|
|
590
677
|
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
591
678
|
plugin: z.ZodString;
|
|
@@ -617,10 +704,11 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
617
704
|
type: z.ZodLiteral<"message">;
|
|
618
705
|
messageId: z.ZodString;
|
|
619
706
|
role: z.ZodEnum<{
|
|
620
|
-
system: "system";
|
|
621
707
|
user: "user";
|
|
708
|
+
system: "system";
|
|
622
709
|
assistant: "assistant";
|
|
623
710
|
}>;
|
|
711
|
+
source: z.ZodOptional<z.ZodLiteral<"web">>;
|
|
624
712
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
625
713
|
email: z.ZodOptional<z.ZodString>;
|
|
626
714
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -669,9 +757,9 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
669
757
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
670
758
|
turnId: z.ZodString;
|
|
671
759
|
state: z.ZodEnum<{
|
|
672
|
-
no_reply: "no_reply";
|
|
673
760
|
started: "started";
|
|
674
761
|
succeeded: "succeeded";
|
|
762
|
+
no_reply: "no_reply";
|
|
675
763
|
}>;
|
|
676
764
|
}, z.core.$strict>, z.ZodObject<{
|
|
677
765
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
@@ -703,14 +791,14 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
703
791
|
}, z.core.$strict>>>;
|
|
704
792
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
705
793
|
check: "check";
|
|
706
|
-
info: "info";
|
|
707
|
-
warning: "warning";
|
|
708
794
|
key: "key";
|
|
709
|
-
|
|
795
|
+
warning: "warning";
|
|
710
796
|
activity: "activity";
|
|
711
797
|
brain: "brain";
|
|
712
798
|
calendar: "calendar";
|
|
713
799
|
database: "database";
|
|
800
|
+
info: "info";
|
|
801
|
+
link: "link";
|
|
714
802
|
sparkles: "sparkles";
|
|
715
803
|
}>>;
|
|
716
804
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -782,9 +870,9 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
782
870
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
783
871
|
status: z.ZodEnum<{
|
|
784
872
|
error: "error";
|
|
785
|
-
aborted: "aborted";
|
|
786
873
|
running: "running";
|
|
787
874
|
completed: "completed";
|
|
875
|
+
aborted: "aborted";
|
|
788
876
|
}>;
|
|
789
877
|
}, z.core.$strict>], "type">;
|
|
790
878
|
}, z.core.$strict>>;
|
|
@@ -818,10 +906,11 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
818
906
|
type: z.ZodLiteral<"message">;
|
|
819
907
|
messageId: z.ZodString;
|
|
820
908
|
role: z.ZodEnum<{
|
|
821
|
-
system: "system";
|
|
822
909
|
user: "user";
|
|
910
|
+
system: "system";
|
|
823
911
|
assistant: "assistant";
|
|
824
912
|
}>;
|
|
913
|
+
source: z.ZodOptional<z.ZodLiteral<"web">>;
|
|
825
914
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
826
915
|
email: z.ZodOptional<z.ZodString>;
|
|
827
916
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -870,9 +959,9 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
870
959
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
871
960
|
turnId: z.ZodString;
|
|
872
961
|
state: z.ZodEnum<{
|
|
873
|
-
no_reply: "no_reply";
|
|
874
962
|
started: "started";
|
|
875
963
|
succeeded: "succeeded";
|
|
964
|
+
no_reply: "no_reply";
|
|
876
965
|
}>;
|
|
877
966
|
}, z.core.$strict>, z.ZodObject<{
|
|
878
967
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
@@ -904,14 +993,14 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
904
993
|
}, z.core.$strict>>>;
|
|
905
994
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
906
995
|
check: "check";
|
|
907
|
-
info: "info";
|
|
908
|
-
warning: "warning";
|
|
909
996
|
key: "key";
|
|
910
|
-
|
|
997
|
+
warning: "warning";
|
|
911
998
|
activity: "activity";
|
|
912
999
|
brain: "brain";
|
|
913
1000
|
calendar: "calendar";
|
|
914
1001
|
database: "database";
|
|
1002
|
+
info: "info";
|
|
1003
|
+
link: "link";
|
|
915
1004
|
sparkles: "sparkles";
|
|
916
1005
|
}>>;
|
|
917
1006
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -983,9 +1072,9 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
983
1072
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
984
1073
|
status: z.ZodEnum<{
|
|
985
1074
|
error: "error";
|
|
986
|
-
aborted: "aborted";
|
|
987
1075
|
running: "running";
|
|
988
1076
|
completed: "completed";
|
|
1077
|
+
aborted: "aborted";
|
|
989
1078
|
}>;
|
|
990
1079
|
}, z.core.$strict>], "type">;
|
|
991
1080
|
}, z.core.$strict>>;
|
|
@@ -1031,6 +1120,10 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
1031
1120
|
}, z.core.$strict>>;
|
|
1032
1121
|
conversationId: z.ZodString;
|
|
1033
1122
|
isParticipant: z.ZodBoolean;
|
|
1123
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1124
|
+
public: "public";
|
|
1125
|
+
private: "private";
|
|
1126
|
+
}>>;
|
|
1034
1127
|
status: z.ZodEnum<{
|
|
1035
1128
|
completed: "completed";
|
|
1036
1129
|
failed: "failed";
|
|
@@ -1073,10 +1166,12 @@ export declare const conversationStatsItemSchema: z.ZodObject<{
|
|
|
1073
1166
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1074
1167
|
}, z.core.$strict>;
|
|
1075
1168
|
export declare const conversationMetricDaySchema: z.ZodObject<{
|
|
1169
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1076
1170
|
conversations: z.ZodNumber;
|
|
1077
1171
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1078
1172
|
date: z.ZodString;
|
|
1079
1173
|
durationMs: z.ZodNumber;
|
|
1174
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1080
1175
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1081
1176
|
}, z.core.$strict>;
|
|
1082
1177
|
export declare const guardianMetricDaySchema: z.ZodObject<{
|
|
@@ -1104,6 +1199,7 @@ export declare const guardianStatsSchema: z.ZodObject<{
|
|
|
1104
1199
|
}, z.core.$strict>;
|
|
1105
1200
|
export declare const conversationStatsReportSchema: z.ZodObject<{
|
|
1106
1201
|
active: z.ZodNumber;
|
|
1202
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1107
1203
|
conversations: z.ZodNumber;
|
|
1108
1204
|
durationMs: z.ZodNumber;
|
|
1109
1205
|
failed: z.ZodNumber;
|
|
@@ -1124,10 +1220,12 @@ export declare const conversationStatsReportSchema: z.ZodObject<{
|
|
|
1124
1220
|
requests: z.ZodNumber;
|
|
1125
1221
|
}, z.core.$strict>;
|
|
1126
1222
|
metricDays: z.ZodArray<z.ZodObject<{
|
|
1223
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1127
1224
|
conversations: z.ZodNumber;
|
|
1128
1225
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1129
1226
|
date: z.ZodString;
|
|
1130
1227
|
durationMs: z.ZodNumber;
|
|
1228
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1131
1229
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1132
1230
|
}, z.core.$strict>>;
|
|
1133
1231
|
locations: z.ZodArray<z.ZodObject<{
|
|
@@ -1150,6 +1248,7 @@ export declare const conversationStatsReportSchema: z.ZodObject<{
|
|
|
1150
1248
|
}, z.core.$strict>>;
|
|
1151
1249
|
source: z.ZodLiteral<"conversation_index">;
|
|
1152
1250
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1251
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1153
1252
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
1154
1253
|
windowEnd: z.ZodString;
|
|
1155
1254
|
windowStart: z.ZodString;
|
|
@@ -1177,3 +1276,9 @@ export type ConversationStatsReport = z.infer<typeof conversationStatsReportSche
|
|
|
1177
1276
|
export type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
1178
1277
|
export type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
1179
1278
|
export type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
1279
|
+
export type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
|
|
1280
|
+
export type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
|
|
1281
|
+
export type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
|
|
1282
|
+
export type ConversationPendingMessageDelivery = z.infer<typeof conversationPendingMessageDeliverySchema>;
|
|
1283
|
+
export type ConversationPendingMessage = z.infer<typeof conversationPendingMessageSchema>;
|
|
1284
|
+
export type ConversationPendingMessagesReport = z.infer<typeof conversationPendingMessagesReportSchema>;
|
|
@@ -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, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, createConversationBodySchema, createConversationMessageBodySchema, } from "./schema/conversation";
|
|
4
|
+
export type { AcceptedConversationMessage, ArchiveConversationBody, ArchiveConversationResponse, ActorIdentity, ConversationAuxiliaryCosts, ConversationCost, ConversationDetailReport, ConversationEventPage, ConversationEventHistory, ConversationFeed, ConversationPendingMessage, ConversationPendingMessageDelivery, ConversationPendingMessagesReport, 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,
|
|
@@ -13,10 +14,15 @@ import {
|
|
|
13
14
|
conversationFeedQuerySchema,
|
|
14
15
|
conversationFeedSchema,
|
|
15
16
|
conversationParamsSchema,
|
|
17
|
+
conversationPendingMessageDeliverySchema,
|
|
18
|
+
conversationPendingMessageSchema,
|
|
19
|
+
conversationPendingMessagesReportSchema,
|
|
16
20
|
conversationReportEventDataSchema,
|
|
17
21
|
conversationReportEventSchema,
|
|
18
22
|
conversationStatsReportSchema,
|
|
19
23
|
conversationSummaryReportSchema,
|
|
24
|
+
createConversationBodySchema,
|
|
25
|
+
createConversationMessageBodySchema,
|
|
20
26
|
createPersonalTokenBodySchema,
|
|
21
27
|
createdPersonalTokenSchema,
|
|
22
28
|
dailyConversationActivitySchema,
|
|
@@ -43,7 +49,7 @@ import {
|
|
|
43
49
|
taskRunListSchema,
|
|
44
50
|
taskRunSchema,
|
|
45
51
|
taskSummarySchema
|
|
46
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-3JVUWLR7.js";
|
|
47
53
|
import {
|
|
48
54
|
healthReportSchema,
|
|
49
55
|
pluginOperationalReportFeedSchema,
|
|
@@ -60,6 +66,7 @@ import "../chunk-PDO5BLNM.js";
|
|
|
60
66
|
import "../chunk-VFUK3X5B.js";
|
|
61
67
|
import "../chunk-MLKGABMK.js";
|
|
62
68
|
export {
|
|
69
|
+
acceptedConversationMessageSchema,
|
|
63
70
|
actorDirectoryReportSchema,
|
|
64
71
|
actorProfileReportSchema,
|
|
65
72
|
apiErrorSchema,
|
|
@@ -74,10 +81,15 @@ export {
|
|
|
74
81
|
conversationFeedQuerySchema,
|
|
75
82
|
conversationFeedSchema,
|
|
76
83
|
conversationParamsSchema,
|
|
84
|
+
conversationPendingMessageDeliverySchema,
|
|
85
|
+
conversationPendingMessageSchema,
|
|
86
|
+
conversationPendingMessagesReportSchema,
|
|
77
87
|
conversationReportEventDataSchema,
|
|
78
88
|
conversationReportEventSchema,
|
|
79
89
|
conversationStatsReportSchema,
|
|
80
90
|
conversationSummaryReportSchema,
|
|
91
|
+
createConversationBodySchema,
|
|
92
|
+
createConversationMessageBodySchema,
|
|
81
93
|
createPersonalTokenBodySchema,
|
|
82
94
|
createdPersonalTokenSchema,
|
|
83
95
|
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. */
|