@sentry/junior 0.278.0 → 0.280.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/{actor-B4DYygOB.js → actor-6jsm_v96.js} +1 -1
- package/dist/{adapter-BXosqTMx.js → adapter-DVN3iwf9.js} +1 -1
- package/dist/{admin-Thn7NfOi.js → admin-Q_UI--9W.js} +1 -1
- package/dist/{agent-runner-DE-43MPb.js → agent-runner-_PYLv4Qo.js} +79 -39
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +3 -3
- package/dist/api.js +184 -418
- package/dist/{app-CHNS-AX2.d.ts → app-CL2zzzE0.d.ts} +5 -5
- package/dist/app.d.ts +1 -1
- package/dist/app.js +462 -80
- package/dist/{assistant-reply-pauL6qyn.js → assistant-reply-DbebsAxi.js} +1 -1
- package/dist/{automation-DphoTRYl.js → automation-CPqRFjIa.js} +2 -2
- package/dist/{background-compaction-queue-CAL4A2y7.js → background-compaction-queue-B9lmh8Ml.js} +3 -3
- package/dist/{briefs-4fyPJJEu.js → briefs-Dej7V0Bz.js} +11 -10
- package/dist/{catalog-runtime-BoOb5oUv.js → catalog-runtime-DpN0sWQ6.js} +2 -2
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +4 -4
- package/dist/cli/plugins.js +5 -5
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +4 -4
- package/dist/{client-v_OVYuHZ.js → client-h2A2ZPzY.js} +7 -3
- package/dist/{config-o2jLRY5J.js → config-CusBFORe.js} +3 -3
- package/dist/{connections-RC4NXAx8.js → connections-C4h6mGha.js} +11 -11
- package/dist/{conversation-CZfyQvdm.js → conversation-DExTZw8B.js} +22 -7
- package/dist/conversation-pending-messages-Dgz6hrJs.js +173 -0
- package/dist/{conversation-privacy-C23M8KaD.js → conversation-privacy-2cm6OpNg.js} +1 -1
- package/dist/{credential-sync-Dd0WyNfF.js → credential-sync-DK06Jgt-.js} +17 -17
- package/dist/{db-BjLzDJCt.d.ts → db-Dsvk1Tp1.d.ts} +2 -2
- package/dist/{executor-CJfsD0VX.js → executor-Cmr0J8W3.js} +152 -7
- package/dist/instrumentation.d.ts +12 -0
- package/dist/instrumentation.js +56 -23
- package/dist/{logging-dFaXvBRK.js → logging-CGnh65_X.js} +2 -2
- package/dist/{media-DTAA8Qs_.js → media-Dq9_svfQ.js} +1 -1
- package/dist/{message-DSwxIZet.js → message-RpAnqHPY.js} +10 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +18 -6
- package/dist/{oauth-callback-server-CDcuCp27.js → oauth-callback-server-BBnhVKuX.js} +2 -2
- package/dist/{oauth-relay-C6ZAyJgf.js → oauth-relay-D6xxVywK.js} +2 -2
- package/dist/{package-discovery-DJBompdd.js → package-discovery-DJhGdS4c.js} +1 -1
- package/dist/{plugins-DOm9Y6qI.js → plugins-HYh_JOdw.js} +1 -1
- package/dist/{projection-BTge9wrH.js → projection-C1MghKyI.js} +257 -137
- package/dist/{prompt-DDtCnlHP.js → prompt-BcHg-BMy.js} +2 -2
- package/dist/proxy-path-BHYoKZdq.js +15 -0
- package/dist/{queue-C37RbDVc.d.ts → queue-CZyYgPF0.d.ts} +1 -1
- package/dist/{registry-Cp6CNmtP.js → registry-DR7DjX9H.js} +4 -4
- package/dist/{reporting-window-DgHgwQB3.js → reporting-window-B-QP9zX1.js} +28 -2
- package/dist/{resolve-B_7h2cXx.js → resolve-0Ful4oDv.js} +4 -4
- package/dist/{result-5LBEfnLX.js → result-Dd9kCuQ-.js} +12 -12
- package/dist/{runner-C5-S4oq-.js → runner-yiY8gUUu.js} +11 -11
- package/dist/{sandbox-egress-signals-B4GehT1L.js → sandbox-egress-signals-BzQVHCMz.js} +1 -1
- package/dist/{schema-Tr484cCC.d.ts → schema-BkMmF552.d.ts} +1232 -222
- package/dist/{schema-B5fpczDw.js → schema-C5pEgfHc.js} +30 -70
- package/dist/sentry-BRTJqumy.js +51 -0
- package/dist/sentry-DrKC2NeM.d.ts +1 -0
- package/dist/sentry-route-name-BhwWnfqj.js +51 -0
- package/dist/{service-account-Cq_dLrZJ.js → service-account-Cu7HFLZQ.js} +3 -3
- package/dist/{service-account-BkEv20zf.js → service-account-PIMpWZHF.js} +3 -3
- package/dist/{session-stop-BsS4qFS2.js → session-stop-CDEMsNtv.js} +14 -15
- package/dist/{skills-M0BA0_s6.js → skills-B2xIoe0f.js} +5 -5
- package/dist/{spawn-BO3y7H4d.js → spawn-C0DySQRV.js} +3 -3
- package/dist/{stop-D5R82Wla.js → stop-Dj5-nrAo.js} +740 -285
- package/dist/{store-BGBzQWNf.js → store-Dlio-o6u.js} +6 -6
- package/dist/{store-CGJZTEVz.js → store-QzOfDwKA.js} +3 -3
- package/dist/{task-queue-UD27ei2U.js → task-queue-Cp1V_XW3.js} +4 -4
- package/dist/{task-runner-noxjOjkM.js → task-runner-CQkkUj3o.js} +23 -11
- package/dist/{thread-state-BSu6rM6p.js → thread-state-Bn87cfzE.js} +4 -4
- package/dist/{turn-failure-response-wahwyPrZ.js → turn-failure-response-CQebxByj.js} +8 -8
- package/dist/{turn-lifecycle-Bo4Trccw.js → turn-lifecycle-CJJsOhXB.js} +1 -1
- package/dist/{turn-session-routing-DnSaaEpn.js → turn-session-routing-bmG330Cf.js} +10 -11
- package/dist/{validation-B9-8iKyw.js → validation-D1wcf7hp.js} +2 -2
- package/dist/{version-C7HejFP2.js → version-BeHSXUK6.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DLXajQZE.js → viewer-BZ0Hp5Nb.js} +6 -7
- package/dist/{work-DRGSlfia.js → work-BTcCIbWu.js} +12 -12
- package/dist/{worker-BGh5Dwc6.js → worker-D3fDK6zc.js} +7 -7
- package/migrations/0077_drop_agent_invocation_model_profile.sql +1 -0
- package/migrations/0078_plugin_conversation_index.sql +20 -0
- package/migrations/0079_conversation_event_author_index.sql +20 -0
- package/migrations/meta/0077_snapshot.json +4141 -0
- package/migrations/meta/0078_snapshot.json +4175 -0
- package/migrations/meta/0079_snapshot.json +4203 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +4 -4
- package/dist/agent-invocations-D7c4BQGc.js +0 -182
- package/dist/common-Eu6sx09c.js +0 -107
- package/dist/rolldown-runtime-nwUcYXjP.js +0 -27
- package/dist/sentry-MDkYAVPV.js +0 -23
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
import { ConversationAnnotation, OwnedObjectAnnotation, OwnedObjectAnnotation as OwnedObjectAnnotation$1 } from "@sentry/junior-plugin-api";
|
|
3
3
|
declare const INPUT_IMAGE_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
4
4
|
/** Bound JSON image input below the hosting platform's request size limit. */
|
|
@@ -472,12 +472,14 @@ declare const conversationParamsSchema: z.ZodObject<{
|
|
|
472
472
|
conversationId: z.ZodString;
|
|
473
473
|
}, z.core.$strict>;
|
|
474
474
|
declare const conversationDetailQuerySchema: z.ZodObject<{
|
|
475
|
-
limit: z.
|
|
475
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
476
476
|
unreadPage: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
477
|
+
mailbox: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
477
478
|
}, z.core.$strict>;
|
|
478
479
|
/**
|
|
479
480
|
* Page toward the start with `before`, toward the latest with `after`, or
|
|
480
|
-
* both ways from one event with `around`.
|
|
481
|
+
* both ways from one event with `around`. A link target asks for the page
|
|
482
|
+
* around one event by its `event` seq, or around the start of a `turn`.
|
|
481
483
|
*/
|
|
482
484
|
declare const conversationEventsQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
483
485
|
before: z.ZodString;
|
|
@@ -488,6 +490,12 @@ declare const conversationEventsQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
488
490
|
}, z.core.$strict>, z.ZodObject<{
|
|
489
491
|
around: z.ZodString;
|
|
490
492
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
493
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
494
|
+
event: z.ZodCoercedNumber<unknown>;
|
|
495
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
496
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
497
|
+
turn: z.ZodString;
|
|
498
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
491
499
|
}, z.core.$strict>]>;
|
|
492
500
|
declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
493
501
|
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -2960,239 +2968,1241 @@ declare const conversationPendingMessagesReportSchema: z.ZodObject<{
|
|
|
2960
2968
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2961
2969
|
}, z.core.$strict>>;
|
|
2962
2970
|
}, z.core.$strict>;
|
|
2963
|
-
/**
|
|
2964
|
-
declare const
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
/** Queued web messages that the viewer wants Junior to read now. */
|
|
2975
|
-
declare const steerConversationPendingMessagesBodySchema: z.ZodObject<{
|
|
2976
|
-
inboundMessageIds: z.ZodArray<z.ZodString>;
|
|
2977
|
-
}, z.core.$strict>;
|
|
2978
|
-
/** Result of steering queued web messages into the conversation. */
|
|
2979
|
-
declare const steerConversationPendingMessagesResponseSchema: z.ZodObject<{
|
|
2980
|
-
conversationId: z.ZodString;
|
|
2981
|
-
steeredInboundMessageIds: z.ZodArray<z.ZodString>;
|
|
2982
|
-
}, z.core.$strict>;
|
|
2983
|
-
type ConversationPendingMessageDelivery = z.infer<typeof conversationPendingMessageDeliverySchema>;
|
|
2984
|
-
type ConversationPendingMessage = z.infer<typeof conversationPendingMessageSchema>;
|
|
2985
|
-
type ConversationPendingMessagesReport = z.infer<typeof conversationPendingMessagesReportSchema>;
|
|
2986
|
-
type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPendingMessagesBodySchema>;
|
|
2987
|
-
type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
|
|
2988
|
-
type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
|
|
2989
|
-
type SteerConversationPendingMessagesResponse = z.infer<typeof steerConversationPendingMessagesResponseSchema>;
|
|
2990
|
-
declare const archiveConversationBodySchema: z.ZodObject<{
|
|
2991
|
-
archived: z.ZodBoolean;
|
|
2992
|
-
lastSeenAt: z.ZodString;
|
|
2993
|
-
}, z.core.$strict>;
|
|
2994
|
-
declare const archiveConversationResponseSchema: z.ZodObject<{
|
|
2995
|
-
archivedAt: z.ZodNullable<z.ZodString>;
|
|
2996
|
-
}, z.core.$strict>;
|
|
2997
|
-
/** Viewer's auto-archive choice for one conversation. */
|
|
2998
|
-
declare const conversationAutoArchiveSchema: z.ZodObject<{
|
|
2999
|
-
autoArchive: z.ZodBoolean;
|
|
3000
|
-
}, z.core.$strict>;
|
|
3001
|
-
/** Result of archiving all of the viewer's done conversations once. */
|
|
3002
|
-
declare const archiveDoneConversationsResponseSchema: z.ZodObject<{
|
|
3003
|
-
archived: z.ZodNumber;
|
|
3004
|
-
}, z.core.$strict>;
|
|
3005
|
-
type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
3006
|
-
type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
3007
|
-
type ConversationAutoArchive = z.infer<typeof conversationAutoArchiveSchema>;
|
|
3008
|
-
declare const conversationStatsItemSchema: z.ZodObject<{
|
|
3009
|
-
active: z.ZodNumber;
|
|
3010
|
-
conversations: z.ZodNumber;
|
|
3011
|
-
durationMs: z.ZodNumber;
|
|
3012
|
-
failed: z.ZodNumber;
|
|
3013
|
-
label: z.ZodString;
|
|
3014
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3015
|
-
tokens: z.ZodOptional<z.ZodNumber>;
|
|
3016
|
-
}, z.core.$strict>;
|
|
3017
|
-
declare const conversationMetricDaySchema: z.ZodObject<{
|
|
3018
|
-
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3019
|
-
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3020
|
-
conversations: z.ZodNumber;
|
|
3021
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3022
|
-
date: z.ZodString;
|
|
3023
|
-
durationMs: z.ZodNumber;
|
|
3024
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3025
|
-
tokens: z.ZodOptional<z.ZodNumber>;
|
|
3026
|
-
}, z.core.$strict>;
|
|
3027
|
-
declare const guardianMetricDaySchema: z.ZodObject<{
|
|
3028
|
-
allow: z.ZodNumber;
|
|
3029
|
-
ask: z.ZodNumber;
|
|
3030
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3031
|
-
date: z.ZodString;
|
|
3032
|
-
deny: z.ZodNumber;
|
|
3033
|
-
requests: z.ZodNumber;
|
|
3034
|
-
}, z.core.$strict>;
|
|
3035
|
-
declare const guardianStatsSchema: z.ZodObject<{
|
|
3036
|
-
allow: z.ZodNumber;
|
|
3037
|
-
ask: z.ZodNumber;
|
|
3038
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3039
|
-
deny: z.ZodNumber;
|
|
3040
|
-
metricDays: z.ZodArray<z.ZodObject<{
|
|
3041
|
-
allow: z.ZodNumber;
|
|
3042
|
-
ask: z.ZodNumber;
|
|
3043
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3044
|
-
date: z.ZodString;
|
|
3045
|
-
deny: z.ZodNumber;
|
|
3046
|
-
requests: z.ZodNumber;
|
|
3047
|
-
}, z.core.$strict>>;
|
|
3048
|
-
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3049
|
-
allow: z.ZodNumber;
|
|
3050
|
-
ask: z.ZodNumber;
|
|
3051
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3052
|
-
date: z.ZodString;
|
|
3053
|
-
deny: z.ZodNumber;
|
|
3054
|
-
requests: z.ZodNumber;
|
|
3055
|
-
}, z.core.$strict>>>;
|
|
3056
|
-
metricSixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3057
|
-
allow: z.ZodNumber;
|
|
3058
|
-
ask: z.ZodNumber;
|
|
3059
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3060
|
-
date: z.ZodString;
|
|
3061
|
-
deny: z.ZodNumber;
|
|
3062
|
-
requests: z.ZodNumber;
|
|
3063
|
-
}, z.core.$strict>>>;
|
|
3064
|
-
requests: z.ZodNumber;
|
|
3065
|
-
}, z.core.$strict>;
|
|
3066
|
-
declare const conversationStatsReportSchema: z.ZodObject<{
|
|
3067
|
-
active: z.ZodNumber;
|
|
3068
|
-
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3069
|
-
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3070
|
-
conversations: z.ZodNumber;
|
|
3071
|
-
durationMs: z.ZodNumber;
|
|
3072
|
-
failed: z.ZodNumber;
|
|
3073
|
-
generatedAt: z.ZodString;
|
|
3074
|
-
guardian: z.ZodObject<{
|
|
3075
|
-
allow: z.ZodNumber;
|
|
3076
|
-
ask: z.ZodNumber;
|
|
3077
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3078
|
-
deny: z.ZodNumber;
|
|
3079
|
-
metricDays: z.ZodArray<z.ZodObject<{
|
|
3080
|
-
allow: z.ZodNumber;
|
|
3081
|
-
ask: z.ZodNumber;
|
|
3082
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3083
|
-
date: z.ZodString;
|
|
3084
|
-
deny: z.ZodNumber;
|
|
3085
|
-
requests: z.ZodNumber;
|
|
3086
|
-
}, z.core.$strict>>;
|
|
3087
|
-
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3088
|
-
allow: z.ZodNumber;
|
|
3089
|
-
ask: z.ZodNumber;
|
|
3090
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3091
|
-
date: z.ZodString;
|
|
3092
|
-
deny: z.ZodNumber;
|
|
3093
|
-
requests: z.ZodNumber;
|
|
3094
|
-
}, z.core.$strict>>>;
|
|
3095
|
-
metricSixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3096
|
-
allow: z.ZodNumber;
|
|
3097
|
-
ask: z.ZodNumber;
|
|
3098
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3099
|
-
date: z.ZodString;
|
|
3100
|
-
deny: z.ZodNumber;
|
|
3101
|
-
requests: z.ZodNumber;
|
|
2971
|
+
/** Detail report with the mailbox that was read before its history. */
|
|
2972
|
+
declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
2973
|
+
displayTitle: z.ZodString;
|
|
2974
|
+
activityPreview: z.ZodOptional<z.ZodObject<{
|
|
2975
|
+
createdAt: z.ZodString;
|
|
2976
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2977
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
2978
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2979
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
2980
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
2981
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3102
2982
|
}, z.core.$strict>>>;
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
conversations: z.ZodNumber;
|
|
3109
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3110
|
-
date: z.ZodString;
|
|
3111
|
-
durationMs: z.ZodNumber;
|
|
3112
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3113
|
-
tokens: z.ZodOptional<z.ZodNumber>;
|
|
2983
|
+
role: z.ZodEnum<{
|
|
2984
|
+
assistant: "assistant";
|
|
2985
|
+
user: "user";
|
|
2986
|
+
}>;
|
|
2987
|
+
text: z.ZodString;
|
|
3114
2988
|
}, z.core.$strict>>;
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3118
|
-
conversations: z.ZodNumber;
|
|
3119
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3120
|
-
date: z.ZodString;
|
|
3121
|
-
durationMs: z.ZodNumber;
|
|
2989
|
+
cumulativeDurationMs: z.ZodNumber;
|
|
2990
|
+
cumulativeUsage: z.ZodOptional<z.ZodObject<{
|
|
3122
2991
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3123
|
-
|
|
3124
|
-
}, z.core.$strict>>>;
|
|
3125
|
-
metricSixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2992
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3126
2993
|
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3127
2994
|
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
conversations: z.ZodNumber;
|
|
3138
|
-
durationMs: z.ZodNumber;
|
|
3139
|
-
failed: z.ZodNumber;
|
|
3140
|
-
label: z.ZodString;
|
|
3141
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3142
|
-
tokens: z.ZodOptional<z.ZodNumber>;
|
|
3143
|
-
}, z.core.$strict>>;
|
|
3144
|
-
actors: z.ZodArray<z.ZodObject<{
|
|
3145
|
-
active: z.ZodNumber;
|
|
3146
|
-
conversations: z.ZodNumber;
|
|
3147
|
-
durationMs: z.ZodNumber;
|
|
3148
|
-
failed: z.ZodNumber;
|
|
3149
|
-
label: z.ZodString;
|
|
3150
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3151
|
-
tokens: z.ZodOptional<z.ZodNumber>;
|
|
2995
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
2996
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
2997
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2998
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
2999
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
3000
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
3001
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
3002
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
3003
|
+
}, z.core.$strict>>;
|
|
3152
3004
|
}, z.core.$strict>>;
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
type ConversationMetricDay = z.infer<typeof conversationMetricDaySchema>;
|
|
3162
|
-
type GuardianMetricDay = z.infer<typeof guardianMetricDaySchema>;
|
|
3163
|
-
type GuardianStats = z.infer<typeof guardianStatsSchema>;
|
|
3164
|
-
type ConversationStatsReport = z.infer<typeof conversationStatsReportSchema>;
|
|
3165
|
-
/**
|
|
3166
|
-
* Result of stopping the active Turn.
|
|
3167
|
-
*
|
|
3168
|
-
* `stoppedInboundMessageIds` lists every queued human message the stop
|
|
3169
|
-
* removes. `stoppedMessages` holds only the viewer's own web text, so the
|
|
3170
|
-
* dashboard can return it to the composer.
|
|
3171
|
-
*/
|
|
3172
|
-
declare const stopConversationTurnResponseSchema: z.ZodObject<{
|
|
3173
|
-
conversationId: z.ZodString;
|
|
3174
|
-
status: z.ZodEnum<{
|
|
3175
|
-
no_work: "no_work";
|
|
3176
|
-
requested: "requested";
|
|
3177
|
-
}>;
|
|
3178
|
-
stoppedInboundMessageIds: z.ZodArray<z.ZodString>;
|
|
3179
|
-
stoppedMessages: z.ZodArray<z.ZodObject<{
|
|
3180
|
-
inboundMessageId: z.ZodString;
|
|
3181
|
-
text: z.ZodString;
|
|
3005
|
+
auxiliaryCosts: z.ZodOptional<z.ZodObject<{
|
|
3006
|
+
costUsd: z.ZodNumber;
|
|
3007
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
3008
|
+
costUsd: z.ZodNumber;
|
|
3009
|
+
events: z.ZodNumber;
|
|
3010
|
+
name: z.ZodString;
|
|
3011
|
+
namespace: z.ZodString;
|
|
3012
|
+
}, z.core.$strict>>;
|
|
3182
3013
|
}, z.core.$strict>>;
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3014
|
+
childAgentTotals: z.ZodOptional<z.ZodObject<{
|
|
3015
|
+
auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
3016
|
+
count: z.ZodNumber;
|
|
3017
|
+
cumulativeDurationMs: z.ZodNumber;
|
|
3018
|
+
cumulativeUsage: z.ZodOptional<z.ZodObject<{
|
|
3019
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3020
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3021
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3022
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3023
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
3024
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
3025
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3026
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
3027
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
3028
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
3029
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
3030
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
3031
|
+
}, z.core.$strict>>;
|
|
3032
|
+
}, z.core.$strict>>;
|
|
3033
|
+
}, z.core.$strict>>;
|
|
3034
|
+
conversationId: z.ZodString;
|
|
3035
|
+
isParticipant: z.ZodBoolean;
|
|
3036
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
3037
|
+
private: "private";
|
|
3038
|
+
public: "public";
|
|
3039
|
+
}>>;
|
|
3040
|
+
status: z.ZodEnum<{
|
|
3041
|
+
active: "active";
|
|
3042
|
+
completed: "completed";
|
|
3043
|
+
failed: "failed";
|
|
3044
|
+
}>;
|
|
3045
|
+
startedAt: z.ZodString;
|
|
3046
|
+
lastSeenAt: z.ZodString;
|
|
3047
|
+
lastProgressAt: z.ZodString;
|
|
3048
|
+
surface: z.ZodEnum<{
|
|
3049
|
+
api: "api";
|
|
3050
|
+
internal: "internal";
|
|
3051
|
+
scheduler: "scheduler";
|
|
3052
|
+
slack: "slack";
|
|
3053
|
+
}>;
|
|
3054
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
3055
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3056
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3057
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3058
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3059
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3060
|
+
}, z.core.$strict>>;
|
|
3061
|
+
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3062
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3063
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3064
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3065
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3066
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3067
|
+
}, z.core.$strict>>>;
|
|
3068
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3069
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3070
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
3071
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
3072
|
+
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
3073
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
3074
|
+
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
3075
|
+
locationUrl: z.ZodOptional<z.ZodString>;
|
|
3076
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
3077
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3078
|
+
kind: z.ZodLiteral<"resource_link">;
|
|
3079
|
+
objectType: z.ZodOptional<z.ZodEnum<{
|
|
3080
|
+
automation: "automation";
|
|
3081
|
+
calendar_event: "calendar_event";
|
|
3082
|
+
code_change: "code_change";
|
|
3083
|
+
deployment: "deployment";
|
|
3084
|
+
item: "item";
|
|
3085
|
+
task: "task";
|
|
3086
|
+
}>>;
|
|
3087
|
+
key: z.ZodString;
|
|
3088
|
+
label: z.ZodString;
|
|
3089
|
+
url: z.ZodString;
|
|
3090
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3091
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
3092
|
+
closed: "closed";
|
|
3093
|
+
draft: "draft";
|
|
3094
|
+
merged: "merged";
|
|
3095
|
+
open: "open";
|
|
3096
|
+
warning: "warning";
|
|
3097
|
+
}>>;
|
|
3098
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3099
|
+
kind: z.ZodLiteral<"object">;
|
|
3100
|
+
key: z.ZodString;
|
|
3101
|
+
label: z.ZodString;
|
|
3102
|
+
objectType: z.ZodEnum<{
|
|
3103
|
+
automation: "automation";
|
|
3104
|
+
calendar_event: "calendar_event";
|
|
3105
|
+
code_change: "code_change";
|
|
3106
|
+
deployment: "deployment";
|
|
3107
|
+
item: "item";
|
|
3108
|
+
task: "task";
|
|
3109
|
+
}>;
|
|
3110
|
+
title: z.ZodString;
|
|
3111
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
3112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3113
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3114
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
3115
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
3116
|
+
displayType: z.ZodOptional<z.ZodString>;
|
|
3117
|
+
sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
3118
|
+
facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3119
|
+
type: z.ZodLiteral<"code_change">;
|
|
3120
|
+
author: z.ZodOptional<z.ZodString>;
|
|
3121
|
+
sourceBranch: z.ZodOptional<z.ZodString>;
|
|
3122
|
+
targetBranch: z.ZodOptional<z.ZodString>;
|
|
3123
|
+
reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3124
|
+
review: z.ZodOptional<z.ZodEnum<{
|
|
3125
|
+
approved: "approved";
|
|
3126
|
+
changes_requested: "changes_requested";
|
|
3127
|
+
required: "required";
|
|
3128
|
+
}>>;
|
|
3129
|
+
checks: z.ZodOptional<z.ZodObject<{
|
|
3130
|
+
passed: z.ZodNumber;
|
|
3131
|
+
failed: z.ZodNumber;
|
|
3132
|
+
pending: z.ZodNumber;
|
|
3133
|
+
}, z.core.$strict>>;
|
|
3134
|
+
mergeable: z.ZodOptional<z.ZodBoolean>;
|
|
3135
|
+
changedFiles: z.ZodOptional<z.ZodNumber>;
|
|
3136
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
3137
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
3138
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3139
|
+
type: z.ZodLiteral<"task">;
|
|
3140
|
+
assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3141
|
+
priority: z.ZodOptional<z.ZodString>;
|
|
3142
|
+
project: z.ZodOptional<z.ZodString>;
|
|
3143
|
+
cycle: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
dueDate: z.ZodOptional<z.ZodISODate>;
|
|
3145
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3147
|
+
type: z.ZodLiteral<"deployment">;
|
|
3148
|
+
project: z.ZodOptional<z.ZodString>;
|
|
3149
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
3150
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
3151
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
3152
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3153
|
+
type: z.ZodLiteral<"calendar_event">;
|
|
3154
|
+
when: z.ZodOptional<z.ZodString>;
|
|
3155
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3156
|
+
}, z.core.$strict>], "type">>;
|
|
3157
|
+
}, z.core.$strict>], "kind">, z.ZodObject<{
|
|
3158
|
+
plugin: z.ZodString;
|
|
3159
|
+
createdAt: z.ZodString;
|
|
3160
|
+
updatedAt: z.ZodString;
|
|
3161
|
+
}, z.core.$strip>>>>;
|
|
3162
|
+
sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3163
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
3164
|
+
"circle-dashed": "circle-dashed";
|
|
3165
|
+
"circle-dot": "circle-dot";
|
|
3166
|
+
"circle-x": "circle-x";
|
|
3167
|
+
"git-merge": "git-merge";
|
|
3168
|
+
"git-pull-request": "git-pull-request";
|
|
3169
|
+
"triangle-alert": "triangle-alert";
|
|
3170
|
+
}>>;
|
|
3171
|
+
objectType: z.ZodOptional<z.ZodEnum<{
|
|
3172
|
+
automation: "automation";
|
|
3173
|
+
calendar_event: "calendar_event";
|
|
3174
|
+
code_change: "code_change";
|
|
3175
|
+
deployment: "deployment";
|
|
3176
|
+
item: "item";
|
|
3177
|
+
task: "task";
|
|
3178
|
+
}>>;
|
|
3179
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3180
|
+
key: z.ZodString;
|
|
3181
|
+
label: z.ZodString;
|
|
3182
|
+
}, z.core.$strict>>>;
|
|
3183
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
3184
|
+
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
3186
|
+
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
3187
|
+
agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3188
|
+
conversationId: z.ZodString;
|
|
3189
|
+
label: z.ZodString;
|
|
3190
|
+
}, z.core.$strict>>>;
|
|
3191
|
+
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
3192
|
+
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
3193
|
+
readPosition: z.ZodOptional<z.ZodObject<{
|
|
3194
|
+
lastReadSeq: z.ZodNumber;
|
|
3195
|
+
}, z.core.$strict>>;
|
|
3196
|
+
unreadCursor: z.ZodOptional<z.ZodString>;
|
|
3197
|
+
unreadPage: z.ZodOptional<z.ZodObject<{
|
|
3198
|
+
events: z.ZodArray<z.ZodObject<{
|
|
3199
|
+
seq: z.ZodNumber;
|
|
3200
|
+
createdAt: z.ZodString;
|
|
3201
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3202
|
+
type: z.ZodLiteral<"message">;
|
|
3203
|
+
messageId: z.ZodString;
|
|
3204
|
+
role: z.ZodEnum<{
|
|
3205
|
+
assistant: "assistant";
|
|
3206
|
+
system: "system";
|
|
3207
|
+
user: "user";
|
|
3208
|
+
}>;
|
|
3209
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
3210
|
+
slack: "slack";
|
|
3211
|
+
web: "web";
|
|
3212
|
+
}>>;
|
|
3213
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
3214
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3215
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3216
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3217
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3218
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3219
|
+
}, z.core.$strict>>;
|
|
3220
|
+
actorIdentityId: z.ZodOptional<z.ZodString>;
|
|
3221
|
+
agentInvocationId: z.ZodOptional<z.ZodString>;
|
|
3222
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
3223
|
+
eventObjectType: z.ZodOptional<z.ZodEnum<{
|
|
3224
|
+
automation: "automation";
|
|
3225
|
+
calendar_event: "calendar_event";
|
|
3226
|
+
code_change: "code_change";
|
|
3227
|
+
deployment: "deployment";
|
|
3228
|
+
item: "item";
|
|
3229
|
+
task: "task";
|
|
3230
|
+
}>>;
|
|
3231
|
+
explicitMention: z.ZodOptional<z.ZodBoolean>;
|
|
3232
|
+
quiet: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3233
|
+
trustedSummary: z.ZodOptional<z.ZodString>;
|
|
3234
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3235
|
+
eventType: z.ZodString;
|
|
3236
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3237
|
+
objectType: z.ZodOptional<z.ZodEnum<{
|
|
3238
|
+
automation: "automation";
|
|
3239
|
+
calendar_event: "calendar_event";
|
|
3240
|
+
code_change: "code_change";
|
|
3241
|
+
deployment: "deployment";
|
|
3242
|
+
item: "item";
|
|
3243
|
+
task: "task";
|
|
3244
|
+
}>>;
|
|
3245
|
+
trustedSummary: z.ZodOptional<z.ZodString>;
|
|
3246
|
+
}, z.core.$strict>>>;
|
|
3247
|
+
cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3248
|
+
plugin: z.ZodString;
|
|
3249
|
+
key: z.ZodString;
|
|
3250
|
+
kind: z.ZodLiteral<"object">;
|
|
3251
|
+
}, z.core.$strict>>>;
|
|
3252
|
+
reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3253
|
+
kind: z.ZodEnum<{
|
|
3254
|
+
dismissed: "dismissed";
|
|
3255
|
+
submitted: "submitted";
|
|
3256
|
+
taken: "taken";
|
|
3257
|
+
}>;
|
|
3258
|
+
reviewItemId: z.ZodString;
|
|
3259
|
+
}, z.core.$strict>>>;
|
|
3260
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3261
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3262
|
+
id: z.ZodString;
|
|
3263
|
+
filename: z.ZodString;
|
|
3264
|
+
contentType: z.ZodString;
|
|
3265
|
+
bytes: z.ZodNumber;
|
|
3266
|
+
}, z.core.$strict>>>;
|
|
3267
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3268
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3269
|
+
type: z.ZodLiteral<"message_handled">;
|
|
3270
|
+
messageId: z.ZodString;
|
|
3271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3272
|
+
type: z.ZodLiteral<"assistant_message">;
|
|
3273
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
3274
|
+
type: z.ZodLiteral<"reasoning">;
|
|
3275
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3276
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3277
|
+
}, z.core.$strict>>;
|
|
3278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3279
|
+
type: z.ZodLiteral<"tool_calls">;
|
|
3280
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
3281
|
+
toolCallId: z.ZodString;
|
|
3282
|
+
name: z.ZodString;
|
|
3283
|
+
status: z.ZodEnum<{
|
|
3284
|
+
completed: "completed";
|
|
3285
|
+
error: "error";
|
|
3286
|
+
running: "running";
|
|
3287
|
+
}>;
|
|
3288
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
3289
|
+
startedSeq: z.ZodOptional<z.ZodNumber>;
|
|
3290
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
3291
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
3292
|
+
}, z.core.$strict>>;
|
|
3293
|
+
assistant: z.ZodOptional<z.ZodObject<{
|
|
3294
|
+
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3295
|
+
type: z.ZodLiteral<"reasoning">;
|
|
3296
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3297
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3298
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3299
|
+
type: z.ZodLiteral<"tool_call">;
|
|
3300
|
+
toolCallId: z.ZodString;
|
|
3301
|
+
}, z.core.$strict>], "type">>;
|
|
3302
|
+
}, z.core.$strict>>;
|
|
3303
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3304
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
3305
|
+
turnId: z.ZodString;
|
|
3306
|
+
state: z.ZodEnum<{
|
|
3307
|
+
blocked: "blocked";
|
|
3308
|
+
no_reply: "no_reply";
|
|
3309
|
+
succeeded: "succeeded";
|
|
3310
|
+
}>;
|
|
3311
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3312
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
3313
|
+
turnId: z.ZodString;
|
|
3314
|
+
state: z.ZodLiteral<"started">;
|
|
3315
|
+
inputMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3317
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
3318
|
+
turnId: z.ZodString;
|
|
3319
|
+
state: z.ZodLiteral<"failed">;
|
|
3320
|
+
failureCode: z.ZodEnum<{
|
|
3321
|
+
agent_run_failed: "agent_run_failed";
|
|
3322
|
+
delivery_failed: "delivery_failed";
|
|
3323
|
+
model_execution_failed: "model_execution_failed";
|
|
3324
|
+
persistence_failed: "persistence_failed";
|
|
3325
|
+
}>;
|
|
3326
|
+
failureReason: z.ZodOptional<z.ZodEnum<{
|
|
3327
|
+
auth: "auth";
|
|
3328
|
+
capacity: "capacity";
|
|
3329
|
+
content_policy: "content_policy";
|
|
3330
|
+
empty_output: "empty_output";
|
|
3331
|
+
invalid_request: "invalid_request";
|
|
3332
|
+
invalid_response: "invalid_response";
|
|
3333
|
+
network: "network";
|
|
3334
|
+
permission: "permission";
|
|
3335
|
+
quota: "quota";
|
|
3336
|
+
rate_limit: "rate_limit";
|
|
3337
|
+
server: "server";
|
|
3338
|
+
suppressed_output: "suppressed_output";
|
|
3339
|
+
timeout: "timeout";
|
|
3340
|
+
tool_errors: "tool_errors";
|
|
3341
|
+
unknown: "unknown";
|
|
3342
|
+
}>>;
|
|
3343
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
3344
|
+
sentryEventUrl: z.ZodOptional<z.ZodString>;
|
|
3345
|
+
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
3346
|
+
type: z.ZodLiteral<"turn_context">;
|
|
3347
|
+
turnId: z.ZodString;
|
|
3348
|
+
pluginName: z.ZodString;
|
|
3349
|
+
kind: z.ZodString;
|
|
3350
|
+
version: z.ZodNumber;
|
|
3351
|
+
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3353
|
+
type: z.ZodLiteral<"structured_event">;
|
|
3354
|
+
namespace: z.ZodString;
|
|
3355
|
+
name: z.ZodString;
|
|
3356
|
+
version: z.ZodNumber;
|
|
3357
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
3358
|
+
presentation: z.ZodObject<{
|
|
3359
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3360
|
+
content: z.ZodOptional<z.ZodString>;
|
|
3361
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3362
|
+
metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3363
|
+
title: z.ZodString;
|
|
3364
|
+
}, z.core.$strict>>>;
|
|
3365
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
3366
|
+
activity: "activity";
|
|
3367
|
+
brain: "brain";
|
|
3368
|
+
calendar: "calendar";
|
|
3369
|
+
check: "check";
|
|
3370
|
+
database: "database";
|
|
3371
|
+
info: "info";
|
|
3372
|
+
key: "key";
|
|
3373
|
+
link: "link";
|
|
3374
|
+
sparkles: "sparkles";
|
|
3375
|
+
warning: "warning";
|
|
3376
|
+
}>>;
|
|
3377
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
3378
|
+
title: z.ZodString;
|
|
3379
|
+
}, z.core.$strict>;
|
|
3380
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3381
|
+
type: z.ZodLiteral<"attachments_delivered">;
|
|
3382
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
3383
|
+
id: z.ZodString;
|
|
3384
|
+
filename: z.ZodString;
|
|
3385
|
+
contentType: z.ZodString;
|
|
3386
|
+
bytes: z.ZodNumber;
|
|
3387
|
+
}, z.core.$strict>>;
|
|
3388
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3389
|
+
type: z.ZodLiteral<"guardian_action_reviewed">;
|
|
3390
|
+
turnId: z.ZodString;
|
|
3391
|
+
toolCallId: z.ZodString;
|
|
3392
|
+
toolName: z.ZodString;
|
|
3393
|
+
decision: z.ZodEnum<{
|
|
3394
|
+
allow: "allow";
|
|
3395
|
+
ask: "ask";
|
|
3396
|
+
deny: "deny";
|
|
3397
|
+
}>;
|
|
3398
|
+
riskLevel: z.ZodEnum<{
|
|
3399
|
+
critical: "critical";
|
|
3400
|
+
high: "high";
|
|
3401
|
+
low: "low";
|
|
3402
|
+
medium: "medium";
|
|
3403
|
+
}>;
|
|
3404
|
+
userAuthorization: z.ZodEnum<{
|
|
3405
|
+
high: "high";
|
|
3406
|
+
low: "low";
|
|
3407
|
+
medium: "medium";
|
|
3408
|
+
unknown: "unknown";
|
|
3409
|
+
}>;
|
|
3410
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3411
|
+
type: z.ZodLiteral<"compaction">;
|
|
3412
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
3413
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
3414
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3415
|
+
reason: z.ZodLiteral<"capacity">;
|
|
3416
|
+
estimatedInputTokens: z.ZodNumber;
|
|
3417
|
+
replacementInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3418
|
+
triggerTokens: z.ZodNumber;
|
|
3419
|
+
inputLimitTokens: z.ZodNumber;
|
|
3420
|
+
inputMessageCount: z.ZodNumber;
|
|
3421
|
+
retainedMessageCount: z.ZodNumber;
|
|
3422
|
+
summaryChars: z.ZodNumber;
|
|
3423
|
+
}, z.core.$strict>>;
|
|
3424
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3425
|
+
type: z.ZodLiteral<"subagent">;
|
|
3426
|
+
startedSeq: z.ZodNumber;
|
|
3427
|
+
startedAt: z.ZodString;
|
|
3428
|
+
childConversationId: z.ZodString;
|
|
3429
|
+
subagentKind: z.ZodString;
|
|
3430
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
3431
|
+
task: z.ZodOptional<z.ZodString>;
|
|
3432
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3433
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
3434
|
+
status: z.ZodEnum<{
|
|
3435
|
+
aborted: "aborted";
|
|
3436
|
+
blocked: "blocked";
|
|
3437
|
+
completed: "completed";
|
|
3438
|
+
error: "error";
|
|
3439
|
+
running: "running";
|
|
3440
|
+
}>;
|
|
3441
|
+
}, z.core.$strict>], "type">;
|
|
3442
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3443
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3444
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3445
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3446
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3447
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3448
|
+
}, z.core.$strict>>>;
|
|
3449
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
3450
|
+
modelId: z.ZodString;
|
|
3451
|
+
}, z.core.$strict>>;
|
|
3452
|
+
modelCall: z.ZodOptional<z.ZodObject<{
|
|
3453
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3454
|
+
api: z.ZodOptional<z.ZodString>;
|
|
3455
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
3456
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
3457
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3458
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3459
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3460
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3461
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
3462
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
3463
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3464
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
3465
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
3466
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
3467
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
3468
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
3469
|
+
}, z.core.$strict>>;
|
|
3470
|
+
}, z.core.$strict>>;
|
|
3471
|
+
}, z.core.$strict>>;
|
|
3472
|
+
}, z.core.$strict>>;
|
|
3473
|
+
eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3474
|
+
status: z.ZodLiteral<"available">;
|
|
3475
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3476
|
+
status: z.ZodLiteral<"redacted">;
|
|
3477
|
+
reason: z.ZodLiteral<"non_public_conversation">;
|
|
3478
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3479
|
+
status: z.ZodLiteral<"expired">;
|
|
3480
|
+
expiredAt: z.ZodString;
|
|
3481
|
+
}, z.core.$strict>], "status">;
|
|
3482
|
+
previousCursor: z.ZodOptional<z.ZodString>;
|
|
3483
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
generatedAt: z.ZodString;
|
|
3485
|
+
}, z.core.$strict>>;
|
|
3486
|
+
forkedFromConversationId: z.ZodOptional<z.ZodString>;
|
|
3487
|
+
forkedFromTitle: z.ZodOptional<z.ZodString>;
|
|
3488
|
+
forks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3489
|
+
brief: z.ZodOptional<z.ZodObject<{
|
|
3490
|
+
content: z.ZodObject<{
|
|
3491
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
3492
|
+
record: z.ZodObject<{
|
|
3493
|
+
startedAt: z.ZodString;
|
|
3494
|
+
lastActivityAt: z.ZodString;
|
|
3495
|
+
durationMs: z.ZodNumber;
|
|
3496
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
3497
|
+
name: z.ZodString;
|
|
3498
|
+
messages: z.ZodNumber;
|
|
3499
|
+
}, z.core.$strict>>;
|
|
3500
|
+
userMessages: z.ZodNumber;
|
|
3501
|
+
assistantMessages: z.ZodNumber;
|
|
3502
|
+
toolResults: z.ZodNumber;
|
|
3503
|
+
events: z.ZodNumber;
|
|
3504
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
3505
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
3506
|
+
provider: z.ZodString;
|
|
3507
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
3508
|
+
}, z.core.$strict>>;
|
|
3509
|
+
codeChanges: z.ZodArray<z.ZodObject<{
|
|
3510
|
+
repository: z.ZodString;
|
|
3511
|
+
number: z.ZodNumber;
|
|
3512
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3513
|
+
url: z.ZodString;
|
|
3514
|
+
state: z.ZodEnum<{
|
|
3515
|
+
closed: "closed";
|
|
3516
|
+
merged: "merged";
|
|
3517
|
+
open: "open";
|
|
3518
|
+
}>;
|
|
3519
|
+
openedAt: z.ZodOptional<z.ZodString>;
|
|
3520
|
+
mergedAt: z.ZodOptional<z.ZodString>;
|
|
3521
|
+
closedAt: z.ZodOptional<z.ZodString>;
|
|
3522
|
+
}, z.core.$strict>>;
|
|
3523
|
+
}, z.core.$strict>;
|
|
3524
|
+
summary: z.ZodString;
|
|
3525
|
+
intent: z.ZodString;
|
|
3526
|
+
outcome: z.ZodObject<{
|
|
3527
|
+
status: z.ZodEnum<{
|
|
3528
|
+
abandoned: "abandoned";
|
|
3529
|
+
answered: "answered";
|
|
3530
|
+
blocked: "blocked";
|
|
3531
|
+
done: "done";
|
|
3532
|
+
in_progress: "in_progress";
|
|
3533
|
+
partial: "partial";
|
|
3534
|
+
}>;
|
|
3535
|
+
text: z.ZodString;
|
|
3536
|
+
}, z.core.$strict>;
|
|
3537
|
+
decisions: z.ZodArray<z.ZodObject<{
|
|
3538
|
+
text: z.ZodString;
|
|
3539
|
+
by: z.ZodOptional<z.ZodString>;
|
|
3540
|
+
kind: z.ZodEnum<{
|
|
3541
|
+
assumed: "assumed";
|
|
3542
|
+
confirmed: "confirmed";
|
|
3543
|
+
stated: "stated";
|
|
3544
|
+
}>;
|
|
3545
|
+
}, z.core.$strict>>;
|
|
3546
|
+
openDecisions: z.ZodArray<z.ZodObject<{
|
|
3547
|
+
text: z.ZodString;
|
|
3548
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
3549
|
+
}, z.core.$strict>>;
|
|
3550
|
+
facts: z.ZodArray<z.ZodString>;
|
|
3551
|
+
links: z.ZodArray<z.ZodObject<{
|
|
3552
|
+
kind: z.ZodEnum<{
|
|
3553
|
+
code_change: "code_change";
|
|
3554
|
+
resource: "resource";
|
|
3555
|
+
url: "url";
|
|
3556
|
+
}>;
|
|
3557
|
+
label: z.ZodString;
|
|
3558
|
+
url: z.ZodString;
|
|
3559
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3560
|
+
}, z.core.$strict>>;
|
|
3561
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
3562
|
+
}, z.core.$strict>;
|
|
3563
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3564
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3565
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3566
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3567
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3568
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3569
|
+
}, z.core.$strict>>>;
|
|
3570
|
+
updatedAt: z.ZodString;
|
|
3571
|
+
version: z.ZodNumber;
|
|
3572
|
+
}, z.core.$strict>>;
|
|
3573
|
+
modelUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3574
|
+
modelId: z.ZodString;
|
|
3575
|
+
usage: z.ZodObject<{
|
|
3576
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3577
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3578
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3579
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3580
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
3581
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
3582
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3583
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
3584
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
3585
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
3586
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
3587
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
3588
|
+
}, z.core.$strict>>;
|
|
3589
|
+
}, z.core.$strict>;
|
|
3590
|
+
}, z.core.$strict>>>;
|
|
3591
|
+
authors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3592
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3593
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3594
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3595
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3596
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3597
|
+
}, z.core.$strict>>>;
|
|
3598
|
+
events: z.ZodArray<z.ZodObject<{
|
|
3599
|
+
seq: z.ZodNumber;
|
|
3600
|
+
createdAt: z.ZodString;
|
|
3601
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3602
|
+
type: z.ZodLiteral<"message">;
|
|
3603
|
+
messageId: z.ZodString;
|
|
3604
|
+
role: z.ZodEnum<{
|
|
3605
|
+
assistant: "assistant";
|
|
3606
|
+
system: "system";
|
|
3607
|
+
user: "user";
|
|
3608
|
+
}>;
|
|
3609
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
3610
|
+
slack: "slack";
|
|
3611
|
+
web: "web";
|
|
3612
|
+
}>>;
|
|
3613
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
3614
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3615
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3616
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3617
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3618
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3619
|
+
}, z.core.$strict>>;
|
|
3620
|
+
actorIdentityId: z.ZodOptional<z.ZodString>;
|
|
3621
|
+
agentInvocationId: z.ZodOptional<z.ZodString>;
|
|
3622
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
3623
|
+
eventObjectType: z.ZodOptional<z.ZodEnum<{
|
|
3624
|
+
automation: "automation";
|
|
3625
|
+
calendar_event: "calendar_event";
|
|
3626
|
+
code_change: "code_change";
|
|
3627
|
+
deployment: "deployment";
|
|
3628
|
+
item: "item";
|
|
3629
|
+
task: "task";
|
|
3630
|
+
}>>;
|
|
3631
|
+
explicitMention: z.ZodOptional<z.ZodBoolean>;
|
|
3632
|
+
quiet: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3633
|
+
trustedSummary: z.ZodOptional<z.ZodString>;
|
|
3634
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3635
|
+
eventType: z.ZodString;
|
|
3636
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3637
|
+
objectType: z.ZodOptional<z.ZodEnum<{
|
|
3638
|
+
automation: "automation";
|
|
3639
|
+
calendar_event: "calendar_event";
|
|
3640
|
+
code_change: "code_change";
|
|
3641
|
+
deployment: "deployment";
|
|
3642
|
+
item: "item";
|
|
3643
|
+
task: "task";
|
|
3644
|
+
}>>;
|
|
3645
|
+
trustedSummary: z.ZodOptional<z.ZodString>;
|
|
3646
|
+
}, z.core.$strict>>>;
|
|
3647
|
+
cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3648
|
+
plugin: z.ZodString;
|
|
3649
|
+
key: z.ZodString;
|
|
3650
|
+
kind: z.ZodLiteral<"object">;
|
|
3651
|
+
}, z.core.$strict>>>;
|
|
3652
|
+
reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3653
|
+
kind: z.ZodEnum<{
|
|
3654
|
+
dismissed: "dismissed";
|
|
3655
|
+
submitted: "submitted";
|
|
3656
|
+
taken: "taken";
|
|
3657
|
+
}>;
|
|
3658
|
+
reviewItemId: z.ZodString;
|
|
3659
|
+
}, z.core.$strict>>>;
|
|
3660
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3661
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3662
|
+
id: z.ZodString;
|
|
3663
|
+
filename: z.ZodString;
|
|
3664
|
+
contentType: z.ZodString;
|
|
3665
|
+
bytes: z.ZodNumber;
|
|
3666
|
+
}, z.core.$strict>>>;
|
|
3667
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3668
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3669
|
+
type: z.ZodLiteral<"message_handled">;
|
|
3670
|
+
messageId: z.ZodString;
|
|
3671
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3672
|
+
type: z.ZodLiteral<"assistant_message">;
|
|
3673
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
3674
|
+
type: z.ZodLiteral<"reasoning">;
|
|
3675
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3676
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3677
|
+
}, z.core.$strict>>;
|
|
3678
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3679
|
+
type: z.ZodLiteral<"tool_calls">;
|
|
3680
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
3681
|
+
toolCallId: z.ZodString;
|
|
3682
|
+
name: z.ZodString;
|
|
3683
|
+
status: z.ZodEnum<{
|
|
3684
|
+
completed: "completed";
|
|
3685
|
+
error: "error";
|
|
3686
|
+
running: "running";
|
|
3687
|
+
}>;
|
|
3688
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
3689
|
+
startedSeq: z.ZodOptional<z.ZodNumber>;
|
|
3690
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
3691
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
3692
|
+
}, z.core.$strict>>;
|
|
3693
|
+
assistant: z.ZodOptional<z.ZodObject<{
|
|
3694
|
+
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3695
|
+
type: z.ZodLiteral<"reasoning">;
|
|
3696
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3697
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3698
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3699
|
+
type: z.ZodLiteral<"tool_call">;
|
|
3700
|
+
toolCallId: z.ZodString;
|
|
3701
|
+
}, z.core.$strict>], "type">>;
|
|
3702
|
+
}, z.core.$strict>>;
|
|
3703
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3704
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
3705
|
+
turnId: z.ZodString;
|
|
3706
|
+
state: z.ZodEnum<{
|
|
3707
|
+
blocked: "blocked";
|
|
3708
|
+
no_reply: "no_reply";
|
|
3709
|
+
succeeded: "succeeded";
|
|
3710
|
+
}>;
|
|
3711
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3712
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
3713
|
+
turnId: z.ZodString;
|
|
3714
|
+
state: z.ZodLiteral<"started">;
|
|
3715
|
+
inputMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3716
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3717
|
+
type: z.ZodLiteral<"turn_lifecycle">;
|
|
3718
|
+
turnId: z.ZodString;
|
|
3719
|
+
state: z.ZodLiteral<"failed">;
|
|
3720
|
+
failureCode: z.ZodEnum<{
|
|
3721
|
+
agent_run_failed: "agent_run_failed";
|
|
3722
|
+
delivery_failed: "delivery_failed";
|
|
3723
|
+
model_execution_failed: "model_execution_failed";
|
|
3724
|
+
persistence_failed: "persistence_failed";
|
|
3725
|
+
}>;
|
|
3726
|
+
failureReason: z.ZodOptional<z.ZodEnum<{
|
|
3727
|
+
auth: "auth";
|
|
3728
|
+
capacity: "capacity";
|
|
3729
|
+
content_policy: "content_policy";
|
|
3730
|
+
empty_output: "empty_output";
|
|
3731
|
+
invalid_request: "invalid_request";
|
|
3732
|
+
invalid_response: "invalid_response";
|
|
3733
|
+
network: "network";
|
|
3734
|
+
permission: "permission";
|
|
3735
|
+
quota: "quota";
|
|
3736
|
+
rate_limit: "rate_limit";
|
|
3737
|
+
server: "server";
|
|
3738
|
+
suppressed_output: "suppressed_output";
|
|
3739
|
+
timeout: "timeout";
|
|
3740
|
+
tool_errors: "tool_errors";
|
|
3741
|
+
unknown: "unknown";
|
|
3742
|
+
}>>;
|
|
3743
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
3744
|
+
sentryEventUrl: z.ZodOptional<z.ZodString>;
|
|
3745
|
+
}, z.core.$strict>], "state">, z.ZodObject<{
|
|
3746
|
+
type: z.ZodLiteral<"turn_context">;
|
|
3747
|
+
turnId: z.ZodString;
|
|
3748
|
+
pluginName: z.ZodString;
|
|
3749
|
+
kind: z.ZodString;
|
|
3750
|
+
version: z.ZodNumber;
|
|
3751
|
+
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3752
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3753
|
+
type: z.ZodLiteral<"structured_event">;
|
|
3754
|
+
namespace: z.ZodString;
|
|
3755
|
+
name: z.ZodString;
|
|
3756
|
+
version: z.ZodNumber;
|
|
3757
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
3758
|
+
presentation: z.ZodObject<{
|
|
3759
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3760
|
+
content: z.ZodOptional<z.ZodString>;
|
|
3761
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3762
|
+
metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3763
|
+
title: z.ZodString;
|
|
3764
|
+
}, z.core.$strict>>>;
|
|
3765
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
3766
|
+
activity: "activity";
|
|
3767
|
+
brain: "brain";
|
|
3768
|
+
calendar: "calendar";
|
|
3769
|
+
check: "check";
|
|
3770
|
+
database: "database";
|
|
3771
|
+
info: "info";
|
|
3772
|
+
key: "key";
|
|
3773
|
+
link: "link";
|
|
3774
|
+
sparkles: "sparkles";
|
|
3775
|
+
warning: "warning";
|
|
3776
|
+
}>>;
|
|
3777
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
3778
|
+
title: z.ZodString;
|
|
3779
|
+
}, z.core.$strict>;
|
|
3780
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3781
|
+
type: z.ZodLiteral<"attachments_delivered">;
|
|
3782
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
3783
|
+
id: z.ZodString;
|
|
3784
|
+
filename: z.ZodString;
|
|
3785
|
+
contentType: z.ZodString;
|
|
3786
|
+
bytes: z.ZodNumber;
|
|
3787
|
+
}, z.core.$strict>>;
|
|
3788
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3789
|
+
type: z.ZodLiteral<"guardian_action_reviewed">;
|
|
3790
|
+
turnId: z.ZodString;
|
|
3791
|
+
toolCallId: z.ZodString;
|
|
3792
|
+
toolName: z.ZodString;
|
|
3793
|
+
decision: z.ZodEnum<{
|
|
3794
|
+
allow: "allow";
|
|
3795
|
+
ask: "ask";
|
|
3796
|
+
deny: "deny";
|
|
3797
|
+
}>;
|
|
3798
|
+
riskLevel: z.ZodEnum<{
|
|
3799
|
+
critical: "critical";
|
|
3800
|
+
high: "high";
|
|
3801
|
+
low: "low";
|
|
3802
|
+
medium: "medium";
|
|
3803
|
+
}>;
|
|
3804
|
+
userAuthorization: z.ZodEnum<{
|
|
3805
|
+
high: "high";
|
|
3806
|
+
low: "low";
|
|
3807
|
+
medium: "medium";
|
|
3808
|
+
unknown: "unknown";
|
|
3809
|
+
}>;
|
|
3810
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3811
|
+
type: z.ZodLiteral<"compaction">;
|
|
3812
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
3813
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
3814
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3815
|
+
reason: z.ZodLiteral<"capacity">;
|
|
3816
|
+
estimatedInputTokens: z.ZodNumber;
|
|
3817
|
+
replacementInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3818
|
+
triggerTokens: z.ZodNumber;
|
|
3819
|
+
inputLimitTokens: z.ZodNumber;
|
|
3820
|
+
inputMessageCount: z.ZodNumber;
|
|
3821
|
+
retainedMessageCount: z.ZodNumber;
|
|
3822
|
+
summaryChars: z.ZodNumber;
|
|
3823
|
+
}, z.core.$strict>>;
|
|
3824
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3825
|
+
type: z.ZodLiteral<"subagent">;
|
|
3826
|
+
startedSeq: z.ZodNumber;
|
|
3827
|
+
startedAt: z.ZodString;
|
|
3828
|
+
childConversationId: z.ZodString;
|
|
3829
|
+
subagentKind: z.ZodString;
|
|
3830
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
3831
|
+
task: z.ZodOptional<z.ZodString>;
|
|
3832
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3833
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
3834
|
+
status: z.ZodEnum<{
|
|
3835
|
+
aborted: "aborted";
|
|
3836
|
+
blocked: "blocked";
|
|
3837
|
+
completed: "completed";
|
|
3838
|
+
error: "error";
|
|
3839
|
+
running: "running";
|
|
3840
|
+
}>;
|
|
3841
|
+
}, z.core.$strict>], "type">;
|
|
3842
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3843
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3844
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3845
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3846
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3847
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3848
|
+
}, z.core.$strict>>>;
|
|
3849
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
3850
|
+
modelId: z.ZodString;
|
|
3851
|
+
}, z.core.$strict>>;
|
|
3852
|
+
modelCall: z.ZodOptional<z.ZodObject<{
|
|
3853
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3854
|
+
api: z.ZodOptional<z.ZodString>;
|
|
3855
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
3856
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
3857
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3858
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3859
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3860
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
3861
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
3862
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
3863
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3864
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
3865
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
3866
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
3867
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
3868
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
3869
|
+
}, z.core.$strict>>;
|
|
3870
|
+
}, z.core.$strict>>;
|
|
3871
|
+
}, z.core.$strict>>;
|
|
3872
|
+
}, z.core.$strict>>;
|
|
3873
|
+
eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3874
|
+
status: z.ZodLiteral<"available">;
|
|
3875
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3876
|
+
status: z.ZodLiteral<"redacted">;
|
|
3877
|
+
reason: z.ZodLiteral<"non_public_conversation">;
|
|
3878
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3879
|
+
status: z.ZodLiteral<"expired">;
|
|
3880
|
+
expiredAt: z.ZodString;
|
|
3881
|
+
}, z.core.$strict>], "status">;
|
|
3882
|
+
previousCursor: z.ZodOptional<z.ZodString>;
|
|
3883
|
+
generatedAt: z.ZodString;
|
|
3884
|
+
sentryConversationUrl: z.ZodOptional<z.ZodString>;
|
|
3885
|
+
sourceTask: z.ZodOptional<z.ZodObject<{
|
|
3886
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3887
|
+
kind: z.ZodEnum<{
|
|
3888
|
+
event: "event";
|
|
3889
|
+
scheduled: "scheduled";
|
|
3890
|
+
}>;
|
|
3891
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3892
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3893
|
+
triggerMessageId: z.ZodOptional<z.ZodString>;
|
|
3894
|
+
triggerLabel: z.ZodOptional<z.ZodString>;
|
|
3895
|
+
credentialMode: z.ZodOptional<z.ZodEnum<{
|
|
3896
|
+
creator: "creator";
|
|
3897
|
+
system: "system";
|
|
3898
|
+
}>>;
|
|
3899
|
+
credentialUser: z.ZodOptional<z.ZodString>;
|
|
3900
|
+
}, z.core.$strict>>;
|
|
3901
|
+
mailbox: z.ZodObject<{
|
|
3902
|
+
authorization: z.ZodOptional<z.ZodObject<{
|
|
3903
|
+
authorizationUrl: z.ZodString;
|
|
3904
|
+
completionText: z.ZodString;
|
|
3905
|
+
label: z.ZodString;
|
|
3906
|
+
}, z.core.$strict>>;
|
|
3907
|
+
conversationId: z.ZodString;
|
|
3908
|
+
generatedAt: z.ZodString;
|
|
3909
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
3910
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
3911
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3912
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3913
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3914
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3915
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3916
|
+
}, z.core.$strict>>;
|
|
3917
|
+
actorIdentityId: z.ZodOptional<z.ZodString>;
|
|
3918
|
+
createdAt: z.ZodString;
|
|
3919
|
+
delivery: z.ZodEnum<{
|
|
3920
|
+
defer: "defer";
|
|
3921
|
+
interrupt: "interrupt";
|
|
3922
|
+
}>;
|
|
3923
|
+
inboundMessageId: z.ZodString;
|
|
3924
|
+
messageId: z.ZodString;
|
|
3925
|
+
receivedAt: z.ZodString;
|
|
3926
|
+
role: z.ZodLiteral<"user">;
|
|
3927
|
+
source: z.ZodEnum<{
|
|
3928
|
+
slack: "slack";
|
|
3929
|
+
web: "web";
|
|
3930
|
+
}>;
|
|
3931
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3932
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3933
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3934
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3935
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3936
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3937
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3938
|
+
}, z.core.$strict>>>;
|
|
3939
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3940
|
+
id: z.ZodString;
|
|
3941
|
+
filename: z.ZodString;
|
|
3942
|
+
contentType: z.ZodString;
|
|
3943
|
+
bytes: z.ZodNumber;
|
|
3944
|
+
}, z.core.$strict>>>;
|
|
3945
|
+
reviewItemChange: z.ZodOptional<z.ZodObject<{
|
|
3946
|
+
kind: z.ZodEnum<{
|
|
3947
|
+
dismissed: "dismissed";
|
|
3948
|
+
submitted: "submitted";
|
|
3949
|
+
taken: "taken";
|
|
3950
|
+
}>;
|
|
3951
|
+
reviewItemId: z.ZodString;
|
|
3952
|
+
}, z.core.$strict>>;
|
|
3953
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3954
|
+
}, z.core.$strict>>;
|
|
3955
|
+
}, z.core.$strict>;
|
|
3956
|
+
}, z.core.$strict>;
|
|
3957
|
+
/** Optional filters for cancelling accepted mailbox rows. */
|
|
3958
|
+
declare const cancelConversationPendingMessagesBodySchema: z.ZodObject<{
|
|
3959
|
+
inboundMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3960
|
+
receivedBefore: z.ZodOptional<z.ZodString>;
|
|
3961
|
+
}, z.core.$strict>;
|
|
3962
|
+
/** Result of cancelling accepted human-facing mailbox rows. */
|
|
3963
|
+
declare const cancelConversationPendingMessagesResponseSchema: z.ZodObject<{
|
|
3964
|
+
cancelledCount: z.ZodNumber;
|
|
3965
|
+
cancelledInboundMessageIds: z.ZodArray<z.ZodString>;
|
|
3966
|
+
conversationId: z.ZodString;
|
|
3967
|
+
}, z.core.$strict>;
|
|
3968
|
+
/** Queued web messages that the viewer wants Junior to read now. */
|
|
3969
|
+
declare const steerConversationPendingMessagesBodySchema: z.ZodObject<{
|
|
3970
|
+
inboundMessageIds: z.ZodArray<z.ZodString>;
|
|
3971
|
+
}, z.core.$strict>;
|
|
3972
|
+
/** Result of steering queued web messages into the conversation. */
|
|
3973
|
+
declare const steerConversationPendingMessagesResponseSchema: z.ZodObject<{
|
|
3974
|
+
conversationId: z.ZodString;
|
|
3975
|
+
steeredInboundMessageIds: z.ZodArray<z.ZodString>;
|
|
3976
|
+
}, z.core.$strict>;
|
|
3977
|
+
type ConversationPendingMessageDelivery = z.infer<typeof conversationPendingMessageDeliverySchema>;
|
|
3978
|
+
type ConversationPendingMessage = z.infer<typeof conversationPendingMessageSchema>;
|
|
3979
|
+
type ConversationPendingMessagesReport = z.infer<typeof conversationPendingMessagesReportSchema>;
|
|
3980
|
+
type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPendingMessagesBodySchema>;
|
|
3981
|
+
type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
|
|
3982
|
+
type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
|
|
3983
|
+
type SteerConversationPendingMessagesResponse = z.infer<typeof steerConversationPendingMessagesResponseSchema>;
|
|
3984
|
+
declare const archiveConversationBodySchema: z.ZodObject<{
|
|
3985
|
+
archived: z.ZodBoolean;
|
|
3986
|
+
lastSeenAt: z.ZodString;
|
|
3987
|
+
}, z.core.$strict>;
|
|
3988
|
+
declare const archiveConversationResponseSchema: z.ZodObject<{
|
|
3989
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
3990
|
+
}, z.core.$strict>;
|
|
3991
|
+
/** Viewer's auto-archive choice for one conversation. */
|
|
3992
|
+
declare const conversationAutoArchiveSchema: z.ZodObject<{
|
|
3993
|
+
autoArchive: z.ZodBoolean;
|
|
3994
|
+
}, z.core.$strict>;
|
|
3995
|
+
/** Result of archiving all of the viewer's done conversations once. */
|
|
3996
|
+
declare const archiveDoneConversationsResponseSchema: z.ZodObject<{
|
|
3997
|
+
archived: z.ZodNumber;
|
|
3998
|
+
}, z.core.$strict>;
|
|
3999
|
+
type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
4000
|
+
type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
4001
|
+
type ConversationAutoArchive = z.infer<typeof conversationAutoArchiveSchema>;
|
|
4002
|
+
declare const conversationStatsItemSchema: z.ZodObject<{
|
|
4003
|
+
active: z.ZodNumber;
|
|
4004
|
+
conversations: z.ZodNumber;
|
|
4005
|
+
durationMs: z.ZodNumber;
|
|
4006
|
+
failed: z.ZodNumber;
|
|
4007
|
+
label: z.ZodString;
|
|
4008
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4009
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4010
|
+
}, z.core.$strict>;
|
|
4011
|
+
declare const conversationMetricDaySchema: z.ZodObject<{
|
|
4012
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4013
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
4014
|
+
conversations: z.ZodNumber;
|
|
4015
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4016
|
+
date: z.ZodString;
|
|
4017
|
+
durationMs: z.ZodNumber;
|
|
4018
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4019
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4020
|
+
}, z.core.$strict>;
|
|
4021
|
+
declare const guardianMetricDaySchema: z.ZodObject<{
|
|
4022
|
+
allow: z.ZodNumber;
|
|
4023
|
+
ask: z.ZodNumber;
|
|
4024
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4025
|
+
date: z.ZodString;
|
|
4026
|
+
deny: z.ZodNumber;
|
|
4027
|
+
requests: z.ZodNumber;
|
|
4028
|
+
}, z.core.$strict>;
|
|
4029
|
+
declare const guardianStatsSchema: z.ZodObject<{
|
|
4030
|
+
allow: z.ZodNumber;
|
|
4031
|
+
ask: z.ZodNumber;
|
|
4032
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4033
|
+
deny: z.ZodNumber;
|
|
4034
|
+
metricDays: z.ZodArray<z.ZodObject<{
|
|
4035
|
+
allow: z.ZodNumber;
|
|
4036
|
+
ask: z.ZodNumber;
|
|
4037
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4038
|
+
date: z.ZodString;
|
|
4039
|
+
deny: z.ZodNumber;
|
|
4040
|
+
requests: z.ZodNumber;
|
|
4041
|
+
}, z.core.$strict>>;
|
|
4042
|
+
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4043
|
+
allow: z.ZodNumber;
|
|
4044
|
+
ask: z.ZodNumber;
|
|
4045
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4046
|
+
date: z.ZodString;
|
|
4047
|
+
deny: z.ZodNumber;
|
|
4048
|
+
requests: z.ZodNumber;
|
|
4049
|
+
}, z.core.$strict>>>;
|
|
4050
|
+
metricSixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4051
|
+
allow: z.ZodNumber;
|
|
4052
|
+
ask: z.ZodNumber;
|
|
4053
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4054
|
+
date: z.ZodString;
|
|
4055
|
+
deny: z.ZodNumber;
|
|
4056
|
+
requests: z.ZodNumber;
|
|
4057
|
+
}, z.core.$strict>>>;
|
|
4058
|
+
requests: z.ZodNumber;
|
|
4059
|
+
}, z.core.$strict>;
|
|
4060
|
+
declare const conversationStatsReportSchema: z.ZodObject<{
|
|
4061
|
+
active: z.ZodNumber;
|
|
4062
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4063
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
4064
|
+
conversations: z.ZodNumber;
|
|
4065
|
+
durationMs: z.ZodNumber;
|
|
4066
|
+
failed: z.ZodNumber;
|
|
4067
|
+
generatedAt: z.ZodString;
|
|
4068
|
+
guardian: z.ZodObject<{
|
|
4069
|
+
allow: z.ZodNumber;
|
|
4070
|
+
ask: z.ZodNumber;
|
|
4071
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4072
|
+
deny: z.ZodNumber;
|
|
4073
|
+
metricDays: z.ZodArray<z.ZodObject<{
|
|
4074
|
+
allow: z.ZodNumber;
|
|
4075
|
+
ask: z.ZodNumber;
|
|
4076
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4077
|
+
date: z.ZodString;
|
|
4078
|
+
deny: z.ZodNumber;
|
|
4079
|
+
requests: z.ZodNumber;
|
|
4080
|
+
}, z.core.$strict>>;
|
|
4081
|
+
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4082
|
+
allow: z.ZodNumber;
|
|
4083
|
+
ask: z.ZodNumber;
|
|
4084
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4085
|
+
date: z.ZodString;
|
|
4086
|
+
deny: z.ZodNumber;
|
|
4087
|
+
requests: z.ZodNumber;
|
|
4088
|
+
}, z.core.$strict>>>;
|
|
4089
|
+
metricSixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4090
|
+
allow: z.ZodNumber;
|
|
4091
|
+
ask: z.ZodNumber;
|
|
4092
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4093
|
+
date: z.ZodString;
|
|
4094
|
+
deny: z.ZodNumber;
|
|
4095
|
+
requests: z.ZodNumber;
|
|
4096
|
+
}, z.core.$strict>>>;
|
|
4097
|
+
requests: z.ZodNumber;
|
|
4098
|
+
}, z.core.$strict>;
|
|
4099
|
+
metricDays: z.ZodArray<z.ZodObject<{
|
|
4100
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4101
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
4102
|
+
conversations: z.ZodNumber;
|
|
4103
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4104
|
+
date: z.ZodString;
|
|
4105
|
+
durationMs: z.ZodNumber;
|
|
4106
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4107
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4108
|
+
}, z.core.$strict>>;
|
|
4109
|
+
metricHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4110
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4111
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
4112
|
+
conversations: z.ZodNumber;
|
|
4113
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4114
|
+
date: z.ZodString;
|
|
4115
|
+
durationMs: z.ZodNumber;
|
|
4116
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4117
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4118
|
+
}, z.core.$strict>>>;
|
|
4119
|
+
metricSixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4120
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4121
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
4122
|
+
conversations: z.ZodNumber;
|
|
4123
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4124
|
+
date: z.ZodString;
|
|
4125
|
+
durationMs: z.ZodNumber;
|
|
4126
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4127
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4128
|
+
}, z.core.$strict>>>;
|
|
4129
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
4130
|
+
active: z.ZodNumber;
|
|
4131
|
+
conversations: z.ZodNumber;
|
|
4132
|
+
durationMs: z.ZodNumber;
|
|
4133
|
+
failed: z.ZodNumber;
|
|
4134
|
+
label: z.ZodString;
|
|
4135
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4136
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4137
|
+
}, z.core.$strict>>;
|
|
4138
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
4139
|
+
active: z.ZodNumber;
|
|
4140
|
+
conversations: z.ZodNumber;
|
|
4141
|
+
durationMs: z.ZodNumber;
|
|
4142
|
+
failed: z.ZodNumber;
|
|
4143
|
+
label: z.ZodString;
|
|
4144
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4145
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4146
|
+
}, z.core.$strict>>;
|
|
4147
|
+
source: z.ZodLiteral<"conversation_index">;
|
|
4148
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4149
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4150
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
4151
|
+
windowEnd: z.ZodString;
|
|
4152
|
+
windowStart: z.ZodString;
|
|
4153
|
+
}, z.core.$strict>;
|
|
4154
|
+
type ConversationStatsItem = z.infer<typeof conversationStatsItemSchema>;
|
|
4155
|
+
type ConversationMetricDay = z.infer<typeof conversationMetricDaySchema>;
|
|
4156
|
+
type GuardianMetricDay = z.infer<typeof guardianMetricDaySchema>;
|
|
4157
|
+
type GuardianStats = z.infer<typeof guardianStatsSchema>;
|
|
4158
|
+
type ConversationStatsReport = z.infer<typeof conversationStatsReportSchema>;
|
|
4159
|
+
/**
|
|
4160
|
+
* Result of stopping the active Turn.
|
|
4161
|
+
*
|
|
4162
|
+
* `stoppedInboundMessageIds` lists every queued human message the stop
|
|
4163
|
+
* removes. `stoppedMessages` holds only the viewer's own web text, so the
|
|
4164
|
+
* dashboard can return it to the composer.
|
|
4165
|
+
*/
|
|
4166
|
+
declare const stopConversationTurnResponseSchema: z.ZodObject<{
|
|
4167
|
+
conversationId: z.ZodString;
|
|
4168
|
+
status: z.ZodEnum<{
|
|
4169
|
+
no_work: "no_work";
|
|
4170
|
+
requested: "requested";
|
|
4171
|
+
}>;
|
|
4172
|
+
stoppedInboundMessageIds: z.ZodArray<z.ZodString>;
|
|
4173
|
+
stoppedMessages: z.ZodArray<z.ZodObject<{
|
|
4174
|
+
inboundMessageId: z.ZodString;
|
|
4175
|
+
text: z.ZodString;
|
|
4176
|
+
}, z.core.$strict>>;
|
|
4177
|
+
}, z.core.$strict>;
|
|
4178
|
+
type StopConversationTurnResponse = z.infer<typeof stopConversationTurnResponseSchema>;
|
|
4179
|
+
/**
|
|
4180
|
+
* How far the signed-in viewer has read a Conversation transcript.
|
|
3187
4181
|
*
|
|
3188
4182
|
* `lastReadSeq` is the event sequence of the last transcript row the viewer
|
|
3189
4183
|
* saw. The server keeps the highest value it receives, so it only moves
|
|
3190
|
-
* forward.
|
|
4184
|
+
* forward. It is never before the viewer's own latest Message.
|
|
3191
4185
|
*/
|
|
3192
4186
|
declare const conversationReadPositionSchema: z.ZodObject<{
|
|
3193
4187
|
lastReadSeq: z.ZodNumber;
|
|
3194
4188
|
}, z.core.$strict>;
|
|
3195
4189
|
type ConversationReadPosition = z.infer<typeof conversationReadPositionSchema>;
|
|
4190
|
+
/**
|
|
4191
|
+
* The unread rows to summarize: every event after `afterSeq`, through
|
|
4192
|
+
* `throughSeq`. The dashboard sends the range from when the Conversation
|
|
4193
|
+
* opened, so rows that arrive later do not change the summary.
|
|
4194
|
+
*/
|
|
4195
|
+
declare const conversationCatchUpBodySchema: z.ZodObject<{
|
|
4196
|
+
afterSeq: z.ZodNumber;
|
|
4197
|
+
throughSeq: z.ZodNumber;
|
|
4198
|
+
}, z.core.$strict>;
|
|
4199
|
+
/** A short summary of the unread rows, and what waits on the reader. */
|
|
4200
|
+
declare const conversationCatchUpSchema: z.ZodObject<{
|
|
4201
|
+
needsYou: z.ZodOptional<z.ZodString>;
|
|
4202
|
+
summary: z.ZodString;
|
|
4203
|
+
}, z.core.$strict>;
|
|
4204
|
+
type ConversationCatchUpBody = z.infer<typeof conversationCatchUpBodySchema>;
|
|
4205
|
+
type ConversationCatchUp = z.infer<typeof conversationCatchUpSchema>;
|
|
3196
4206
|
/** Pin or unpin one Conversation for the signed-in viewer. */
|
|
3197
4207
|
declare const pinConversationBodySchema: z.ZodObject<{
|
|
3198
4208
|
pinned: z.ZodBoolean;
|
|
@@ -6305,4 +7315,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6305
7315
|
}, z.core.$strict>;
|
|
6306
7316
|
}, z.core.$strict>], "action">;
|
|
6307
7317
|
type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
|
|
6308
|
-
export { automationExecutionSchema as $,
|
|
7318
|
+
export { automationExecutionSchema as $, CancelConversationPendingMessagesResponse as $n, createConversationBodySchema as $r, LocationParams as $t, StatReport as A, UserInputRequest as Ai, pinConversationResponseSchema as An, ConversationReportStatus as Ar, PersonalTokenMetadata as At, AutomationListQuery as B, ConversationStatsItem as Bn, conversationActivityPreviewSchema as Br, serviceAccountSchema as Bt, pluginPackageContentItemReportSchema as C, MessageCard as Ci, ConversationChildAgent as Cn, ConversationEventPage as Cr, workspaceBodySchema as Ct, runtimeInfoReportSchema as D, USER_INPUT_NOTE as Di, PinConversationBody as Dn, ConversationReportEvent as Dr, workspaceSchema as Dt, pluginsSchema as E, AutomationCard as Ei, conversationChildAgentsReportSchema as En, ConversationParams as Er, workspaceRepoSchema as Et, AutomationExecution as F, InputImage as Fi, ConversationReadPosition as Fn, ConversationTurnFailureReason as Fr, personalTokenParamsSchema as Ft, AutomationSummary as G, ArchiveConversationBody as Gn, conversationEventPageSchema as Gr, disconnectConnectionResponseSchema as Gt, AutomationRunList as H, GuardianMetricDay as Hn, conversationDetailQuerySchema as Hr, connectionListSchema as Ht, AutomationExecutionDay as I, MAX_INPUT_IMAGES as Ii, conversationReadPositionSchema as In, ConversationUsage as Ir, revokePersonalTokenResponseSchema as It, ListedAutomationVersion as J, archiveConversationBodySchema as Jn, conversationFeedSchema as Jr, apiErrorSchema as Jt, AutomationUpdate as K, ArchiveConversationResponse as Kn, conversationEventsQuerySchema as Kr, startConnectionResponseSchema as Kt, AutomationExecutionList as L, MAX_INPUT_IMAGE_BYTES as Li, StopConversationTurnResponse as Ln, CreateConversationBody as Lr, disconnectServiceAccountResponseSchema as Lt, statSchema as M, isEmptyUserInputAnswer as Mi, ConversationCatchUpBody as Mn, ConversationSummaryReport as Mr, createdPersonalTokenSchema as Mt, statsReportSchema as N, normalizeUserInputAnswer as Ni, conversationCatchUpBodySchema as Nn, ConversationSurface as Nr, personalTokenListSchema as Nt, skillReportSchema as O, UserInputAnswer as Oi, PinConversationResponse as On, ConversationReportEventData as Or, USER_CUSTOMIZATION_MAX_CHARS as Ot, AutomationEdit as P, webMessageId as Pi, conversationCatchUpSchema as Pn, ConversationTurnFailureCode as Pr, personalTokenMetadataSchema as Pt, automationExecutionListSchema as Q, CancelConversationPendingMessagesBody as Qn, conversationSummaryReportSchema as Qr, LocationDirectoryReport as Qt, AutomationExecutionStatusDay as R, MessageAttachment as Ri, stopConversationTurnResponseSchema as Rn, CreateConversationMessageBody as Rr, serviceAccountListSchema as Rt, pluginOperationalReportSchema as S, dailyConversationActivitySchema as Si, conversationWatchesReportSchema as Sn, ConversationEventHistory as Sr, deleteWorkspaceResponseSchema as St, pluginSchema as T, resolveMessageCards as Ti, conversationChildAgentSchema as Tn, ConversationModelUsage as Tr, workspaceParamsSchema as Tt, AutomationRunWindows as U, GuardianStats as Un, conversationDetailReportSchema as Ur, connectionParamsSchema as Ut, AutomationRun as V, ConversationStatsReport as Vn, conversationAuxiliaryCostsSchema as Vr, startServiceAccountSignInResponseSchema as Vt, AutomationScheduleIntent as W, conversationStatsReportSchema as Wn, conversationEventHistorySchema as Wr, connectionSchema as Wt, automationEditSchema as X, archiveDoneConversationsResponseSchema as Xn, conversationReportEventDataSchema as Xr, LocationActorSummaryReport as Xt, automationEditErrorSchema as Y, archiveConversationResponseSchema as Yn, conversationParamsSchema as Yr, LocationActivityDayReport as Yt, automationEventCatalogSchema as Z, conversationAutoArchiveSchema as Zn, conversationReportEventSchema as Zr, LocationDetailReport as Zt, RuntimeInfoReport as _, codeRepositoryReportSchema as _i, personParamsSchema as _n, ConversationActivityPreview as _r, scheduledAutomationSummarySchema as _t, reviewItemCountSchema as a, CodeActivityDay as ai, ActorActivityDayReport as an, cancelConversationPendingMessagesBodySchema as ar, automationRunListSchema as at, healthReportSchema as b, conversationChildAgentTotalsSchema as bi, ConversationWatchesReport as bn, ConversationCost as br, WorkspaceReport as bt, reviewItemWaitingConversationsSchema as c, CodePersonReport as ci, ActorProfileReport as cn, conversationPendingAuthorizationSchema as cr, automationScheduleIntentSchema as ct, Plugin as d, codeActivityDaySchema as di, ActorWindowMetrics as dn, conversationPendingMessagesReportSchema as dr, automationUpdateSchema as dt, createConversationMessageBodySchema as ei, LocationSummaryReport as en, ConversationPendingMessage as er, automationExecutionStatusDaySchema as et, PluginOperationalReport as f, codeChangeSummaryReportSchema as fi, PeopleActivityDayReport as fn, steerConversationPendingMessagesBodySchema as fr, automationVersionActivateSchema as ft, Plugins as g, codeRepositoryParamsSchema as gi, actorProfileReportSchema as gn, CONVERSATION_DETAIL_VERSION_HEADER as gr, eventAutomationSummarySchema as gt, PluginPackageContentReport as h, codePersonReportSchema as hi, actorDirectoryReportSchema as hn, ActorIdentity as hr, automationVersionSchema as ht, reviewItemActionSchema as i, conversationTurnFailureReasonSchema as ii, locationParamsSchema as in, SteerConversationPendingMessagesResponse as ir, automationParamsSchema as it, StatsReport as j, buttonUserInputField as ji, ConversationCatchUp as jn, ConversationSourceTask as jr, createPersonalTokenBodySchema as jt, skillReportsSchema as k, UserInputField as ki, pinConversationBodySchema as kn, ConversationReportMessageEvent as kr, userCustomizationSchema as kt, ReviewItemChangeRecord as l, CodeRepositoryReport as li, ActorSummaryReport as ln, conversationPendingMessageDeliverySchema as lr, automationSchedulePreviewSchema as lt, PluginPackageContentItemReport as m, codeOverviewReportSchema as mi, PersonalSpendReport as mn, AcceptedConversationMessage as mr, automationVersionParamsSchema as mt, ReviewItemActionBody as n, forkConversationResponseSchema as ni, locationDetailReportSchema as nn, ConversationPendingMessagesReport as nr, automationListQuerySchema as nt, reviewItemListSchema as o, CodeChangeSummaryReport as oi, ActorDirectoryReport as on, cancelConversationPendingMessagesResponseSchema as or, automationRunSchema as ot, PluginOperationalReportFeed as p, codeChangeSummarySchema as pi, PersonParams as pn, steerConversationPendingMessagesResponseSchema as pr, automationVersionListSchema as pt, AutomationVersionList as q, ConversationAutoArchive as qn, conversationFeedQuerySchema as qr, ApiError as qt, ReviewItemPayload as r, conversationTurnFailureCodeSchema as ri, locationDirectoryReportSchema as rn, SteerConversationPendingMessagesBody as rr, automationListSchema as rt, reviewItemSchema as s, CodeOverviewReport as si, ActorDirectoryWindows as sn, conversationDetailWithMailboxReportSchema as sr, automationRunWindowsSchema as st, OwnedObjectAnnotation$1 as t, forkConversationBodySchema as ti, locationActivityDayReportSchema as tn, ConversationPendingMessageDelivery as tr, automationExecutionStatusSchema as tt, HealthReport as u, CodeRepositorySummary as ui, ActorTotalsReport as un, conversationPendingMessageSchema as ur, automationSummarySchema as ut, SkillReport as v, codeRepositorySummarySchema as vi, personalSpendReportSchema as vn, ConversationAgentTreeNode as vr, BaselineSnapshotReport as vt, pluginPackageContentReportSchema as w, messageCardText as wi, ConversationChildAgentsReport as wn, ConversationFeed as wr, workspaceListSchema as wt, pluginOperationalReportFeedSchema as x, DailyConversationActivity as xi, conversationWatchSchema as xn, ConversationDetailReport as xr, baselineSnapshotSchema as xt, SkillReports as y, ConversationChildAgentTotals as yi, ConversationWatch as yn, ConversationAuxiliaryCosts as yr, WorkspaceListReport as yt, AutomationList as z, INPUT_IMAGE_TYPES as zi, ConversationMetricDay as zn, acceptedConversationMessageSchema as zr, serviceAccountParamsSchema as zt };
|