@sentry/junior 0.146.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-SLJADYE5.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 -295
- package/dist/api/conversations/event-list.d.ts +2 -192
- 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 +64 -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 +630 -564
- package/dist/app.js +369 -309
- package/dist/{catalog-runtime-RQIMSDPR.js → catalog-runtime-WADOZVTB.js} +5 -5
- package/dist/chat/actor.d.ts +4 -1
- package/dist/chat/agent/prompt.d.ts +0 -2
- package/dist/chat/agent/request.d.ts +4 -5
- package/dist/chat/agent/resume.d.ts +1 -0
- package/dist/chat/agent/sandbox.d.ts +2 -2
- package/dist/chat/agent/tools.d.ts +0 -2
- package/dist/chat/agent-dispatch/context.d.ts +2 -2
- package/dist/chat/agent-dispatch/types.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/capabilities/jr-rpc-command.d.ts +2 -2
- package/dist/chat/configuration/service.d.ts +5 -2
- package/dist/chat/configuration/sql.d.ts +9 -0
- package/dist/chat/configuration/types.d.ts +17 -13
- package/dist/chat/conversations/history.d.ts +63 -0
- package/dist/chat/conversations/projection.d.ts +10 -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/credentials/unlink-provider.d.ts +2 -1
- package/dist/chat/credentials/user-token-store.d.ts +2 -0
- package/dist/chat/event-tasks/tool-support.d.ts +2 -0
- package/dist/chat/identities/sql.d.ts +8 -0
- package/dist/chat/logging.d.ts +2 -0
- package/dist/chat/mcp/auth-store.d.ts +0 -2
- package/dist/chat/mcp/oauth.d.ts +0 -2
- package/dist/chat/oauth-flow.d.ts +3 -1
- package/dist/chat/pi/client.d.ts +2 -0
- package/dist/chat/plugins/credential-hooks.d.ts +2 -0
- package/dist/chat/prompt.d.ts +0 -2
- package/dist/chat/resource-events/notification.d.ts +2 -1
- package/dist/chat/resource-events/store.d.ts +1 -1
- package/dist/chat/runtime/delivered-turn-state.d.ts +1 -4
- package/dist/chat/runtime/reply-executor.d.ts +1 -1
- package/dist/chat/runtime/slack-runtime.d.ts +2 -1
- package/dist/chat/runtime/thread-state.d.ts +8 -11
- package/dist/chat/runtime/turn-input.d.ts +4 -2
- package/dist/chat/runtime/turn-preparation.d.ts +11 -4
- package/dist/chat/sandbox/command-result.d.ts +2 -0
- package/dist/chat/sandbox/egress/schemas.d.ts +6 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +7 -5
- package/dist/chat/scheduled-tasks/tools/create.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/list.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +4 -2
- package/dist/chat/scheduled-tasks/tools/update.d.ts +4 -2
- package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -3
- package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
- package/dist/chat/services/provider-default-config.d.ts +2 -2
- package/dist/chat/services/subscribed-decision.d.ts +3 -0
- package/dist/chat/services/subscribed-reply-policy.d.ts +1 -0
- package/dist/chat/services/turn-result.d.ts +0 -3
- package/dist/chat/services/turn-router.d.ts +3 -0
- package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -1
- package/dist/chat/slack/assistant-thread/title.d.ts +0 -3
- package/dist/chat/slack/channel.d.ts +26 -0
- package/dist/chat/slack/dispatch-turn.d.ts +2 -1
- 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/tool-support/canvas/context.d.ts +11 -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/{tools → tool-support}/list/api.d.ts +8 -1
- package/dist/chat/slack/tool-support/list/params.d.ts +5 -0
- package/dist/chat/slack/tools/canvas/create.d.ts +3 -1
- package/dist/chat/slack/tools/canvas/edit.d.ts +2 -0
- package/dist/chat/slack/tools/canvas/read.d.ts +2 -0
- package/dist/chat/slack/tools/canvas/write.d.ts +2 -0
- package/dist/chat/slack/tools/{user-lookup.d.ts → channel-join.d.ts} +6 -5
- package/dist/chat/slack/tools/channel-list-messages.d.ts +5 -2
- package/dist/chat/slack/tools/conversation-message-search.d.ts +4 -8
- package/dist/chat/slack/tools/list/add-items.d.ts +4 -1
- package/dist/chat/slack/tools/list/create.d.ts +2 -0
- package/dist/chat/slack/tools/list/get-items.d.ts +5 -3
- package/dist/chat/slack/tools/list/update-item.d.ts +5 -1
- package/dist/chat/slack/tools/message-add-reaction.d.ts +3 -1
- package/dist/chat/slack/tools/public-search.d.ts +65 -2
- package/dist/chat/slack/tools/send-files.d.ts +3 -1
- package/dist/chat/slack/tools/thread-read.d.ts +4 -5
- package/dist/chat/slack/vision-cache.d.ts +5 -0
- package/dist/chat/source.d.ts +2 -0
- package/dist/chat/state/conversation.d.ts +4 -5
- 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/tool-support/structured-result.d.ts +1 -0
- package/dist/chat/tool-support/timed-out-tool-result.d.ts +11 -0
- package/dist/chat/tools/create-event-task.d.ts +2 -0
- package/dist/chat/tools/delete-event-task.d.ts +2 -0
- package/dist/chat/tools/handoff/tool.d.ts +2 -0
- package/dist/chat/tools/list-event-tasks.d.ts +2 -0
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
- package/dist/chat/tools/runtime/report-progress.d.ts +2 -0
- package/dist/chat/tools/runtime/spawn-agent.d.ts +2 -0
- package/dist/chat/tools/search-conversation-events.d.ts +3 -1
- package/dist/chat/tools/search-resource-event-types.d.ts +2 -0
- package/dist/chat/tools/search-tools.d.ts +2 -0
- package/dist/chat/tools/skill/load-skill.d.ts +2 -0
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +2 -0
- package/dist/chat/tools/stop-watching-resources.d.ts +2 -0
- package/dist/chat/tools/system-time.d.ts +2 -0
- package/dist/chat/tools/types.d.ts +11 -10
- package/dist/chat/tools/update-event-task.d.ts +2 -0
- package/dist/chat/tools/user-lookup.d.ts +29 -0
- package/dist/chat/tools/watch-resource-events.d.ts +4 -2
- package/dist/chat/tools/web/fetch-tool.d.ts +2 -0
- package/dist/chat/tools/web/image-generate.d.ts +2 -0
- package/dist/chat/tools/web/search.d.ts +2 -0
- package/dist/{chunk-GYEKOX7N.js → chunk-2B3PT3V2.js} +1 -1
- package/dist/{chunk-JLMVCNXL.js → chunk-45LOR4PU.js} +22 -4
- package/dist/{chunk-FGHADGIC.js → chunk-4AQZYNHM.js} +2 -2
- package/dist/{chunk-W65V465O.js → chunk-4EA2SFK2.js} +66 -4
- package/dist/{chunk-MKRIZ4VG.js → chunk-4GXJUYJV.js} +4 -2
- package/dist/{chunk-F7REGDKO.js → chunk-55F4QU2V.js} +2 -1
- package/dist/{chunk-M6ZWP4RI.js → chunk-7OEIXFC3.js} +2 -2
- package/dist/{chunk-MCFIXAV5.js → chunk-D3WPMGEX.js} +55 -37
- package/dist/{chunk-AISNSNDV.js → chunk-D6YX4NNN.js} +22 -10
- package/dist/chunk-DUY5CDAM.js +36 -0
- package/dist/{chunk-B63BF443.js → chunk-EAI67NTM.js} +9 -1
- package/dist/{chunk-FEKQHPVA.js → chunk-EINWQFXI.js} +9 -8
- package/dist/chunk-GDFF3BQG.js +136 -0
- package/dist/{chunk-X22KCSCO.js → chunk-GXYDVZKM.js} +7 -5
- package/dist/{chunk-X2WMBTS3.js → chunk-HLPLT3NY.js} +8 -5
- package/dist/{chunk-PB222GIA.js → chunk-HWQGBIH7.js} +1 -1
- package/dist/chunk-IL4EDBMV.js +566 -0
- package/dist/{chunk-HQE6EJS5.js → chunk-LAZGHEYU.js} +1 -1
- package/dist/{chunk-QG7OOKIN.js → chunk-LE5H7LMT.js} +1 -1
- package/dist/chunk-LNVEIJ2L.js +48 -0
- package/dist/{chunk-JUA6VU2Z.js → chunk-OJCP3C3J.js} +12 -23
- package/dist/{chunk-37JJDS4H.js → chunk-POSZWRGL.js} +1 -1
- package/dist/{chunk-TCEJ7XXM.js → chunk-QOWHHM3F.js} +1 -1
- package/dist/{chunk-H6U2U3EP.js → chunk-RRJV5UR5.js} +304 -65
- package/dist/{chunk-OFPYOC3M.js → chunk-ULAU5ZGU.js} +127 -120
- package/dist/{chunk-V6SRLKUB.js → chunk-V2FXMOEA.js} +2 -2
- package/dist/{chunk-GDQEU4I7.js → chunk-VCYSOXON.js} +296 -526
- package/dist/{chunk-BLETMLRX.js → chunk-VMNRXKAH.js} +1374 -989
- package/dist/{chunk-37EVZP66.js → chunk-VRHTNBA6.js} +167 -92
- package/dist/{chunk-FXDDDSPL.js → chunk-VY6W3T43.js} +4 -4
- package/dist/{chunk-ZDGHGY74.js → chunk-WCN4YSH7.js} +13 -6
- package/dist/{chunk-PH4Q3A6W.js → chunk-WOONT5ZP.js} +1 -1
- package/dist/{chunk-47OSH2ZO.js → chunk-XJ42NBP5.js} +395 -206
- package/dist/{chunk-SCGVWUZX.js → chunk-ZCHIC2GM.js} +92 -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/location-configurations.d.ts +127 -0
- package/dist/db/schema.d.ts +150 -3
- package/dist/{db-WWOMXWTT.js → db-XUKZRFFK.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-A6ZZX74U.js → oauth-callback-server-LPZMMGFI.js} +25 -26
- package/dist/{runner-KSGB2UAV.js → runner-DGKUTMPX.js} +22 -41
- package/dist/{skills-26QPWKVS.js → skills-P7YUFSXM.js} +6 -6
- package/dist/spawn-DSK3ZEVD.js +38 -0
- package/dist/{validation-OPSRGFGH.js → validation-S7U5M5NR.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-VMSW7STJ.js → work-GAA7TVAD.js} +18 -19
- package/dist/{worker-2JNFB7C7.js → worker-JXPJH3QB.js} +11 -10
- package/migrations/0024_misty_typhoid_mary.sql +12 -0
- package/migrations/meta/0024_snapshot.json +2275 -0
- package/migrations/meta/_journal.json +7 -0
- 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/canvas/context.d.ts +0 -18
- package/dist/chat/slack/tools/channel-access.d.ts +0 -30
- package/dist/chat/state/artifacts.d.ts +0 -30
- package/dist/chat/tool-support/turn-deadline-result.d.ts +0 -3
- package/dist/chunk-HLXXQI5Q.js +0 -238
- package/dist/chunk-LVW7BLLT.js +0 -115
- package/dist/chunk-Q6QZTTLS.js +0 -55
- package/dist/chunk-QSXZ42KX.js +0 -285
- package/dist/chunk-R776HKPK.js +0 -81
- package/dist/chunk-T5GXFFLA.js +0 -67
- package/dist/spawn-5LAJXZ2P.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}/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>;
|
|
@@ -244,6 +264,7 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
244
264
|
turnId: z.ZodString;
|
|
245
265
|
modelProfile: z.ZodString;
|
|
246
266
|
modelId: z.ZodString;
|
|
267
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
247
268
|
reasoningLevel: z.ZodString;
|
|
248
269
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
249
270
|
source: z.ZodEnum<{
|
|
@@ -304,9 +325,9 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
304
325
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
305
326
|
status: z.ZodEnum<{
|
|
306
327
|
error: "error";
|
|
307
|
-
aborted: "aborted";
|
|
308
328
|
running: "running";
|
|
309
329
|
completed: "completed";
|
|
330
|
+
aborted: "aborted";
|
|
310
331
|
}>;
|
|
311
332
|
}, z.core.$strict>], "type">;
|
|
312
333
|
/** One ordered, privacy-safe canonical event projected for API consumers. */
|
|
@@ -317,8 +338,8 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
317
338
|
type: z.ZodLiteral<"message">;
|
|
318
339
|
messageId: z.ZodString;
|
|
319
340
|
role: z.ZodEnum<{
|
|
320
|
-
system: "system";
|
|
321
341
|
user: "user";
|
|
342
|
+
system: "system";
|
|
322
343
|
assistant: "assistant";
|
|
323
344
|
}>;
|
|
324
345
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
@@ -369,17 +390,17 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
369
390
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
370
391
|
turnId: z.ZodString;
|
|
371
392
|
state: z.ZodEnum<{
|
|
372
|
-
no_reply: "no_reply";
|
|
373
393
|
started: "started";
|
|
374
394
|
succeeded: "succeeded";
|
|
395
|
+
no_reply: "no_reply";
|
|
375
396
|
}>;
|
|
376
397
|
}, z.core.$strict>, z.ZodObject<{
|
|
377
398
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
378
399
|
turnId: z.ZodString;
|
|
379
400
|
state: z.ZodLiteral<"failed">;
|
|
380
401
|
failureKind: z.ZodEnum<{
|
|
381
|
-
delivery: "delivery";
|
|
382
402
|
agent: "agent";
|
|
403
|
+
delivery: "delivery";
|
|
383
404
|
}>;
|
|
384
405
|
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
385
406
|
type: z.ZodLiteral<"turn_context">;
|
|
@@ -403,14 +424,14 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
403
424
|
}, z.core.$strict>>>;
|
|
404
425
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
405
426
|
check: "check";
|
|
406
|
-
info: "info";
|
|
407
|
-
warning: "warning";
|
|
408
427
|
key: "key";
|
|
409
|
-
|
|
428
|
+
warning: "warning";
|
|
410
429
|
activity: "activity";
|
|
411
430
|
brain: "brain";
|
|
412
431
|
calendar: "calendar";
|
|
413
432
|
database: "database";
|
|
433
|
+
info: "info";
|
|
434
|
+
link: "link";
|
|
414
435
|
sparkles: "sparkles";
|
|
415
436
|
}>>;
|
|
416
437
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -421,6 +442,7 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
421
442
|
turnId: z.ZodString;
|
|
422
443
|
modelProfile: z.ZodString;
|
|
423
444
|
modelId: z.ZodString;
|
|
445
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
424
446
|
reasoningLevel: z.ZodString;
|
|
425
447
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
426
448
|
source: z.ZodEnum<{
|
|
@@ -481,9 +503,9 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
481
503
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
482
504
|
status: z.ZodEnum<{
|
|
483
505
|
error: "error";
|
|
484
|
-
aborted: "aborted";
|
|
485
506
|
running: "running";
|
|
486
507
|
completed: "completed";
|
|
508
|
+
aborted: "aborted";
|
|
487
509
|
}>;
|
|
488
510
|
}, z.core.$strict>], "type">;
|
|
489
511
|
}, z.core.$strict>;
|
|
@@ -544,6 +566,10 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
544
566
|
}, z.core.$strict>>;
|
|
545
567
|
conversationId: z.ZodString;
|
|
546
568
|
isParticipant: z.ZodBoolean;
|
|
569
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
570
|
+
public: "public";
|
|
571
|
+
private: "private";
|
|
572
|
+
}>>;
|
|
547
573
|
status: z.ZodEnum<{
|
|
548
574
|
completed: "completed";
|
|
549
575
|
failed: "failed";
|
|
@@ -579,11 +605,11 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
579
605
|
url: z.ZodString;
|
|
580
606
|
description: z.ZodOptional<z.ZodString>;
|
|
581
607
|
status: z.ZodOptional<z.ZodEnum<{
|
|
582
|
-
warning: "warning";
|
|
583
608
|
open: "open";
|
|
584
609
|
draft: "draft";
|
|
585
610
|
closed: "closed";
|
|
586
611
|
merged: "merged";
|
|
612
|
+
warning: "warning";
|
|
587
613
|
}>>;
|
|
588
614
|
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
589
615
|
plugin: z.ZodString;
|
|
@@ -615,8 +641,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
615
641
|
type: z.ZodLiteral<"message">;
|
|
616
642
|
messageId: z.ZodString;
|
|
617
643
|
role: z.ZodEnum<{
|
|
618
|
-
system: "system";
|
|
619
644
|
user: "user";
|
|
645
|
+
system: "system";
|
|
620
646
|
assistant: "assistant";
|
|
621
647
|
}>;
|
|
622
648
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
@@ -667,17 +693,17 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
667
693
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
668
694
|
turnId: z.ZodString;
|
|
669
695
|
state: z.ZodEnum<{
|
|
670
|
-
no_reply: "no_reply";
|
|
671
696
|
started: "started";
|
|
672
697
|
succeeded: "succeeded";
|
|
698
|
+
no_reply: "no_reply";
|
|
673
699
|
}>;
|
|
674
700
|
}, z.core.$strict>, z.ZodObject<{
|
|
675
701
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
676
702
|
turnId: z.ZodString;
|
|
677
703
|
state: z.ZodLiteral<"failed">;
|
|
678
704
|
failureKind: z.ZodEnum<{
|
|
679
|
-
delivery: "delivery";
|
|
680
705
|
agent: "agent";
|
|
706
|
+
delivery: "delivery";
|
|
681
707
|
}>;
|
|
682
708
|
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
683
709
|
type: z.ZodLiteral<"turn_context">;
|
|
@@ -701,14 +727,14 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
701
727
|
}, z.core.$strict>>>;
|
|
702
728
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
703
729
|
check: "check";
|
|
704
|
-
info: "info";
|
|
705
|
-
warning: "warning";
|
|
706
730
|
key: "key";
|
|
707
|
-
|
|
731
|
+
warning: "warning";
|
|
708
732
|
activity: "activity";
|
|
709
733
|
brain: "brain";
|
|
710
734
|
calendar: "calendar";
|
|
711
735
|
database: "database";
|
|
736
|
+
info: "info";
|
|
737
|
+
link: "link";
|
|
712
738
|
sparkles: "sparkles";
|
|
713
739
|
}>>;
|
|
714
740
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -719,6 +745,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
719
745
|
turnId: z.ZodString;
|
|
720
746
|
modelProfile: z.ZodString;
|
|
721
747
|
modelId: z.ZodString;
|
|
748
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
722
749
|
reasoningLevel: z.ZodString;
|
|
723
750
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
724
751
|
source: z.ZodEnum<{
|
|
@@ -779,9 +806,9 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
779
806
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
780
807
|
status: z.ZodEnum<{
|
|
781
808
|
error: "error";
|
|
782
|
-
aborted: "aborted";
|
|
783
809
|
running: "running";
|
|
784
810
|
completed: "completed";
|
|
811
|
+
aborted: "aborted";
|
|
785
812
|
}>;
|
|
786
813
|
}, z.core.$strict>], "type">;
|
|
787
814
|
}, z.core.$strict>>;
|
|
@@ -815,8 +842,8 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
815
842
|
type: z.ZodLiteral<"message">;
|
|
816
843
|
messageId: z.ZodString;
|
|
817
844
|
role: z.ZodEnum<{
|
|
818
|
-
system: "system";
|
|
819
845
|
user: "user";
|
|
846
|
+
system: "system";
|
|
820
847
|
assistant: "assistant";
|
|
821
848
|
}>;
|
|
822
849
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
@@ -867,17 +894,17 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
867
894
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
868
895
|
turnId: z.ZodString;
|
|
869
896
|
state: z.ZodEnum<{
|
|
870
|
-
no_reply: "no_reply";
|
|
871
897
|
started: "started";
|
|
872
898
|
succeeded: "succeeded";
|
|
899
|
+
no_reply: "no_reply";
|
|
873
900
|
}>;
|
|
874
901
|
}, z.core.$strict>, z.ZodObject<{
|
|
875
902
|
type: z.ZodLiteral<"turn_lifecycle">;
|
|
876
903
|
turnId: z.ZodString;
|
|
877
904
|
state: z.ZodLiteral<"failed">;
|
|
878
905
|
failureKind: z.ZodEnum<{
|
|
879
|
-
delivery: "delivery";
|
|
880
906
|
agent: "agent";
|
|
907
|
+
delivery: "delivery";
|
|
881
908
|
}>;
|
|
882
909
|
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
883
910
|
type: z.ZodLiteral<"turn_context">;
|
|
@@ -901,14 +928,14 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
901
928
|
}, z.core.$strict>>>;
|
|
902
929
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
903
930
|
check: "check";
|
|
904
|
-
info: "info";
|
|
905
|
-
warning: "warning";
|
|
906
931
|
key: "key";
|
|
907
|
-
|
|
932
|
+
warning: "warning";
|
|
908
933
|
activity: "activity";
|
|
909
934
|
brain: "brain";
|
|
910
935
|
calendar: "calendar";
|
|
911
936
|
database: "database";
|
|
937
|
+
info: "info";
|
|
938
|
+
link: "link";
|
|
912
939
|
sparkles: "sparkles";
|
|
913
940
|
}>>;
|
|
914
941
|
preview: z.ZodOptional<z.ZodString>;
|
|
@@ -919,6 +946,7 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
919
946
|
turnId: z.ZodString;
|
|
920
947
|
modelProfile: z.ZodString;
|
|
921
948
|
modelId: z.ZodString;
|
|
949
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
922
950
|
reasoningLevel: z.ZodString;
|
|
923
951
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
924
952
|
source: z.ZodEnum<{
|
|
@@ -979,9 +1007,9 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
979
1007
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
980
1008
|
status: z.ZodEnum<{
|
|
981
1009
|
error: "error";
|
|
982
|
-
aborted: "aborted";
|
|
983
1010
|
running: "running";
|
|
984
1011
|
completed: "completed";
|
|
1012
|
+
aborted: "aborted";
|
|
985
1013
|
}>;
|
|
986
1014
|
}, z.core.$strict>], "type">;
|
|
987
1015
|
}, z.core.$strict>>;
|
|
@@ -1027,6 +1055,10 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
1027
1055
|
}, z.core.$strict>>;
|
|
1028
1056
|
conversationId: z.ZodString;
|
|
1029
1057
|
isParticipant: z.ZodBoolean;
|
|
1058
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1059
|
+
public: "public";
|
|
1060
|
+
private: "private";
|
|
1061
|
+
}>>;
|
|
1030
1062
|
status: z.ZodEnum<{
|
|
1031
1063
|
completed: "completed";
|
|
1032
1064
|
failed: "failed";
|
|
@@ -1173,3 +1205,6 @@ export type ConversationStatsReport = z.infer<typeof conversationStatsReportSche
|
|
|
1173
1205
|
export type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
1174
1206
|
export type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
1175
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. */
|