@sentry/junior 0.277.0 → 0.279.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.
Files changed (91) hide show
  1. package/dist/{adapter-BtfBHVM5.js → adapter-phTTgw7H.js} +1 -1
  2. package/dist/{admin-DzAKbZsm.js → admin-PcpJDugZ.js} +1 -1
  3. package/dist/{agent-invocations-Crs3XHhg.js → agent-invocations-CUg_SODU.js} +0 -1
  4. package/dist/{agent-runner-BsYAbniN.js → agent-runner-DwvT1BY0.js} +321 -847
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +6 -6
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +46 -414
  9. package/dist/{app-BjEQwNVP.d.ts → app-DVs6noo7.d.ts} +6 -27
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +460 -78
  12. package/dist/{assistant-reply-NebRGG4G.js → assistant-reply-BXfxczd7.js} +28 -6
  13. package/dist/{automation-Cql9h2vO.js → automation-BehArCcq.js} +1 -1
  14. package/dist/{background-compaction-queue-hh18yCeU.js → background-compaction-queue-CcbuLJrZ.js} +2 -2
  15. package/dist/{briefs-BBo0Eimi.js → briefs-Dd_ezwED.js} +10 -10
  16. package/dist/{catalog-runtime-DE-F4Awo.js → catalog-runtime-BWVMeZhW.js} +2 -2
  17. package/dist/cli/chat.js +16 -16
  18. package/dist/cli/check.js +3 -3
  19. package/dist/cli/init.js +0 -2
  20. package/dist/cli/main.js +4 -4
  21. package/dist/cli/plugins.js +5 -5
  22. package/dist/cli/snapshot-create.js +4 -4
  23. package/dist/cli/upgrade.d.ts +1 -1
  24. package/dist/cli/upgrade.js +4 -4
  25. package/dist/{client-DZ8HTnYH.js → client-Bpxe4vKa.js} +8 -4
  26. package/dist/{config-D5uUtrCP.js → config-C_bmRhrJ.js} +25 -100
  27. package/dist/{connections-Do24CGP5.js → connections-B2rHe5W5.js} +10 -10
  28. package/dist/{conversation-SsASlWL7.js → conversation-CIiJtx5q.js} +56 -104
  29. package/dist/conversation-pending-messages-CnBvE6-6.js +173 -0
  30. package/dist/{conversation-privacy-VuylvlKr.js → conversation-privacy-CzOfcz0U.js} +1 -1
  31. package/dist/{credential-sync-BGQK3pOa.js → credential-sync-Dal_unpv.js} +15 -15
  32. package/dist/{db-DEiwO5Sh.d.ts → db-CyLrV9C7.d.ts} +1 -1
  33. package/dist/{executor-hPfFTH0C.js → executor-BfYH-Wws.js} +6 -4
  34. package/dist/instrumentation.d.ts +12 -0
  35. package/dist/instrumentation.js +56 -23
  36. package/dist/{logging-cI3T1dNc.js → logging-CkT3_Xxp.js} +2 -2
  37. package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
  38. package/dist/{message-DBwsAl7O.js → message-Q5dkgaJ5.js} +23 -29
  39. package/dist/nitro.d.ts +1 -1
  40. package/dist/nitro.js +18 -6
  41. package/dist/{oauth-callback-server-DXrnbplb.js → oauth-callback-server-BDRaqe8O.js} +2 -2
  42. package/dist/{oauth-relay-C6ZAyJgf.js → oauth-relay-D0G3T16m.js} +1 -1
  43. package/dist/{package-discovery-DJBompdd.js → package-discovery-DJhGdS4c.js} +1 -1
  44. package/dist/{plugins-DOm9Y6qI.js → plugins-HYh_JOdw.js} +1 -1
  45. package/dist/{projection-7EFIqzuj.js → projection-DWxX7pb1.js} +214 -138
  46. package/dist/{prompt-oRfGsxd3.js → prompt--dwus7Y-.js} +1 -1
  47. package/dist/proxy-path-BHYoKZdq.js +15 -0
  48. package/dist/{registry-Bzefs7kT.js → registry-DnrdeO4s.js} +2 -2
  49. package/dist/{resolve-CuiEY_2u.js → resolve-C_QXfqD_.js} +3 -3
  50. package/dist/{result-DrcUtFaD.js → result-DNmOxT-N.js} +10 -10
  51. package/dist/{runner-CDE4CZ52.js → runner-zd_noJ1l.js} +11 -11
  52. package/dist/{sandbox-egress-signals-0tcmGd13.js → sandbox-egress-signals-DQjv-nbG.js} +1 -1
  53. package/dist/{schema-Dzi3lkdP.js → schema-CNJNzvr8.js} +4 -4
  54. package/dist/{schema-B6N2nc6v.d.ts → schema-e90H5FIN.d.ts} +2176 -967
  55. package/dist/sentry-BRTJqumy.js +51 -0
  56. package/dist/sentry-DrKC2NeM.d.ts +1 -0
  57. package/dist/sentry-route-name-BhwWnfqj.js +51 -0
  58. package/dist/{service-account-BOz9pqOE.js → service-account-BK26XlHo.js} +3 -3
  59. package/dist/{service-account-DIyz_9Uh.js → service-account-CCH2Hv4h.js} +3 -3
  60. package/dist/{session-stop-0juF_BP0.js → session-stop-6Tf--T7G.js} +23 -16
  61. package/dist/{skills-CU5Is147.js → skills-BNrk8gi4.js} +4 -4
  62. package/dist/{spawn-6C9jHH4b.js → spawn-C75hAB9l.js} +3 -4
  63. package/dist/{stop-6FVG1c-r.js → stop-RYbf7PWi.js} +742 -207
  64. package/dist/{store-DtHZviJ1.js → store-CO5vGjwD.js} +9 -16
  65. package/dist/{store-DKs1WwdB.js → store-G3h2djJU.js} +3 -3
  66. package/dist/{task-queue-CcvFQE_p.js → task-queue-DlN58XeM.js} +3 -3
  67. package/dist/{task-runner-DBkNejLl.js → task-runner-B-Bdm23d.js} +22 -10
  68. package/dist/{thread-state-4hjEIkIq.js → thread-state-Cj_7Slru.js} +4 -4
  69. package/dist/{turn-failure-response-BZNLydC3.js → turn-failure-response-CE7gaoC7.js} +7 -7
  70. package/dist/{turn-lifecycle-BhqYjaa4.js → turn-lifecycle-7sXwXLJ6.js} +1 -1
  71. package/dist/{turn-session-routing-jnLOfBHJ.js → turn-session-routing-FBdaH1zf.js} +10 -10
  72. package/dist/{validation-BUFmsnKs.js → validation-DLWxEzWW.js} +2 -2
  73. package/dist/{version-DJTk0ZCE.js → version-DtQ8WFIZ.js} +1 -1
  74. package/dist/version.js +1 -1
  75. package/dist/{viewer-WY0RYE4E.js → viewer-vsM8_90o.js} +53 -22
  76. package/dist/{work-C5AKvXJV.js → work-DsoFRO_0.js} +12 -17
  77. package/dist/{worker-BcYVDVUy.js → worker-6kZEsCXs.js} +7 -7
  78. package/migrations/0077_drop_agent_invocation_model_profile.sql +1 -0
  79. package/migrations/0078_plugin_conversation_index.sql +20 -0
  80. package/migrations/0079_conversation_event_author_index.sql +20 -0
  81. package/migrations/meta/0075_snapshot.json +98 -314
  82. package/migrations/meta/0076_snapshot.json +98 -314
  83. package/migrations/meta/0077_snapshot.json +4141 -0
  84. package/migrations/meta/0078_snapshot.json +4175 -0
  85. package/migrations/meta/0079_snapshot.json +4203 -0
  86. package/migrations/meta/_journal.json +22 -1
  87. package/package.json +5 -5
  88. package/dist/common-Eu6sx09c.js +0 -107
  89. package/dist/model-profile-B998sjVd.js +0 -67
  90. package/dist/rolldown-runtime-nwUcYXjP.js +0 -27
  91. package/dist/sentry-MDkYAVPV.js +0 -23
@@ -473,11 +473,23 @@ declare const conversationParamsSchema: z.ZodObject<{
473
473
  }, z.core.$strict>;
474
474
  declare const conversationDetailQuerySchema: z.ZodObject<{
475
475
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
476
+ unreadPage: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
477
+ mailbox: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
476
478
  }, z.core.$strict>;
477
- declare const conversationEventsQuerySchema: z.ZodObject<{
479
+ /**
480
+ * Page toward the start with `before`, toward the latest with `after`, or
481
+ * both ways from one event with `around`.
482
+ */
483
+ declare const conversationEventsQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
478
484
  before: z.ZodString;
479
485
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
480
- }, z.core.$strict>;
486
+ }, z.core.$strict>, z.ZodObject<{
487
+ after: z.ZodString;
488
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
489
+ }, z.core.$strict>, z.ZodObject<{
490
+ around: z.ZodString;
491
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
492
+ }, z.core.$strict>]>;
481
493
  declare const conversationFeedQuerySchema: z.ZodObject<{
482
494
  actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
483
495
  codeRepositoryId: z.ZodOptional<z.ZodString>;
@@ -534,140 +546,6 @@ declare const actorIdentitySchema: z.ZodObject<{
534
546
  slackUserId: z.ZodOptional<z.ZodString>;
535
547
  slackUserName: z.ZodOptional<z.ZodString>;
536
548
  }, z.core.$strict>;
537
- /** Mailbox delivery mode for one accepted inbound message. */
538
- declare const conversationPendingMessageDeliverySchema: z.ZodEnum<{
539
- defer: "defer";
540
- interrupt: "interrupt";
541
- }>;
542
- /** One accepted mailbox message that has not reached durable history yet. */
543
- declare const conversationPendingMessageSchema: z.ZodObject<{
544
- actorIdentity: z.ZodOptional<z.ZodObject<{
545
- avatarUrl: z.ZodOptional<z.ZodString>;
546
- email: z.ZodOptional<z.ZodString>;
547
- fullName: z.ZodOptional<z.ZodString>;
548
- slackUserId: z.ZodOptional<z.ZodString>;
549
- slackUserName: z.ZodOptional<z.ZodString>;
550
- }, z.core.$strict>>;
551
- actorIdentityId: z.ZodOptional<z.ZodString>;
552
- createdAt: z.ZodString;
553
- delivery: z.ZodEnum<{
554
- defer: "defer";
555
- interrupt: "interrupt";
556
- }>;
557
- inboundMessageId: z.ZodString;
558
- messageId: z.ZodString;
559
- receivedAt: z.ZodString;
560
- role: z.ZodLiteral<"user">;
561
- source: z.ZodEnum<{
562
- slack: "slack";
563
- web: "web";
564
- }>;
565
- text: z.ZodOptional<z.ZodString>;
566
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
567
- avatarUrl: z.ZodOptional<z.ZodString>;
568
- email: z.ZodOptional<z.ZodString>;
569
- fullName: z.ZodOptional<z.ZodString>;
570
- slackUserId: z.ZodOptional<z.ZodString>;
571
- slackUserName: z.ZodOptional<z.ZodString>;
572
- }, z.core.$strict>>>;
573
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
574
- id: z.ZodString;
575
- filename: z.ZodString;
576
- contentType: z.ZodString;
577
- bytes: z.ZodNumber;
578
- }, z.core.$strict>>>;
579
- reviewItemChange: z.ZodOptional<z.ZodObject<{
580
- kind: z.ZodEnum<{
581
- dismissed: "dismissed";
582
- submitted: "submitted";
583
- taken: "taken";
584
- }>;
585
- reviewItemId: z.ZodString;
586
- }, z.core.$strict>>;
587
- redacted: z.ZodOptional<z.ZodLiteral<true>>;
588
- }, z.core.$strict>;
589
- /** Participant-only authorization prompt for a parked web turn. */
590
- declare const conversationPendingAuthorizationSchema: z.ZodObject<{
591
- authorizationUrl: z.ZodString;
592
- completionText: z.ZodString;
593
- label: z.ZodString;
594
- }, z.core.$strict>;
595
- /** Bounded mailbox snapshot for one conversation transcript. */
596
- declare const conversationPendingMessagesReportSchema: z.ZodObject<{
597
- authorization: z.ZodOptional<z.ZodObject<{
598
- authorizationUrl: z.ZodString;
599
- completionText: z.ZodString;
600
- label: z.ZodString;
601
- }, z.core.$strict>>;
602
- conversationId: z.ZodString;
603
- generatedAt: z.ZodString;
604
- messages: z.ZodArray<z.ZodObject<{
605
- actorIdentity: z.ZodOptional<z.ZodObject<{
606
- avatarUrl: z.ZodOptional<z.ZodString>;
607
- email: z.ZodOptional<z.ZodString>;
608
- fullName: z.ZodOptional<z.ZodString>;
609
- slackUserId: z.ZodOptional<z.ZodString>;
610
- slackUserName: z.ZodOptional<z.ZodString>;
611
- }, z.core.$strict>>;
612
- actorIdentityId: z.ZodOptional<z.ZodString>;
613
- createdAt: z.ZodString;
614
- delivery: z.ZodEnum<{
615
- defer: "defer";
616
- interrupt: "interrupt";
617
- }>;
618
- inboundMessageId: z.ZodString;
619
- messageId: z.ZodString;
620
- receivedAt: z.ZodString;
621
- role: z.ZodLiteral<"user">;
622
- source: z.ZodEnum<{
623
- slack: "slack";
624
- web: "web";
625
- }>;
626
- text: z.ZodOptional<z.ZodString>;
627
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
628
- avatarUrl: z.ZodOptional<z.ZodString>;
629
- email: z.ZodOptional<z.ZodString>;
630
- fullName: z.ZodOptional<z.ZodString>;
631
- slackUserId: z.ZodOptional<z.ZodString>;
632
- slackUserName: z.ZodOptional<z.ZodString>;
633
- }, z.core.$strict>>>;
634
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
- id: z.ZodString;
636
- filename: z.ZodString;
637
- contentType: z.ZodString;
638
- bytes: z.ZodNumber;
639
- }, z.core.$strict>>>;
640
- reviewItemChange: z.ZodOptional<z.ZodObject<{
641
- kind: z.ZodEnum<{
642
- dismissed: "dismissed";
643
- submitted: "submitted";
644
- taken: "taken";
645
- }>;
646
- reviewItemId: z.ZodString;
647
- }, z.core.$strict>>;
648
- redacted: z.ZodOptional<z.ZodLiteral<true>>;
649
- }, z.core.$strict>>;
650
- }, z.core.$strict>;
651
- /** Optional filters for cancelling accepted mailbox rows. */
652
- declare const cancelConversationPendingMessagesBodySchema: z.ZodObject<{
653
- inboundMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
654
- receivedBefore: z.ZodOptional<z.ZodString>;
655
- }, z.core.$strict>;
656
- /** Result of cancelling accepted human-facing mailbox rows. */
657
- declare const cancelConversationPendingMessagesResponseSchema: z.ZodObject<{
658
- cancelledCount: z.ZodNumber;
659
- cancelledInboundMessageIds: z.ZodArray<z.ZodString>;
660
- conversationId: z.ZodString;
661
- }, z.core.$strict>;
662
- /** Queued web messages that the viewer wants Junior to read now. */
663
- declare const steerConversationPendingMessagesBodySchema: z.ZodObject<{
664
- inboundMessageIds: z.ZodArray<z.ZodString>;
665
- }, z.core.$strict>;
666
- /** Result of steering queued web messages into the conversation. */
667
- declare const steerConversationPendingMessagesResponseSchema: z.ZodObject<{
668
- conversationId: z.ZodString;
669
- steeredInboundMessageIds: z.ZodArray<z.ZodString>;
670
- }, z.core.$strict>;
671
549
  declare const conversationAuxiliaryCostsSchema: z.ZodObject<{
672
550
  costUsd: z.ZodNumber;
673
551
  operations: z.ZodArray<z.ZodObject<{
@@ -971,6 +849,7 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
971
849
  task: "task";
972
850
  }>>;
973
851
  explicitMention: z.ZodOptional<z.ZodBoolean>;
852
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
974
853
  trustedSummary: z.ZodOptional<z.ZodString>;
975
854
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
976
855
  eventType: z.ZodString;
@@ -1126,19 +1005,6 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
1126
1005
  contentType: z.ZodString;
1127
1006
  bytes: z.ZodNumber;
1128
1007
  }, z.core.$strict>>;
1129
- }, z.core.$strict>, z.ZodObject<{
1130
- type: z.ZodLiteral<"turn_routed">;
1131
- turnId: z.ZodString;
1132
- modelProfile: z.ZodString;
1133
- modelId: z.ZodString;
1134
- costUsd: z.ZodOptional<z.ZodNumber>;
1135
- reasoningLevel: z.ZodString;
1136
- confidence: z.ZodOptional<z.ZodNumber>;
1137
- source: z.ZodEnum<{
1138
- configured: "configured";
1139
- inherited: "inherited";
1140
- router: "router";
1141
- }>;
1142
1008
  }, z.core.$strict>, z.ZodObject<{
1143
1009
  type: z.ZodLiteral<"guardian_action_reviewed">;
1144
1010
  turnId: z.ZodString;
@@ -1163,7 +1029,6 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
1163
1029
  }>;
1164
1030
  }, z.core.$strict>, z.ZodObject<{
1165
1031
  type: z.ZodLiteral<"compaction">;
1166
- modelProfile: z.ZodOptional<z.ZodString>;
1167
1032
  modelId: z.ZodOptional<z.ZodString>;
1168
1033
  summary: z.ZodOptional<z.ZodString>;
1169
1034
  details: z.ZodOptional<z.ZodObject<{
@@ -1176,13 +1041,6 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
1176
1041
  retainedMessageCount: z.ZodNumber;
1177
1042
  summaryChars: z.ZodNumber;
1178
1043
  }, z.core.$strict>>;
1179
- }, z.core.$strict>, z.ZodObject<{
1180
- type: z.ZodLiteral<"handoff">;
1181
- modelProfile: z.ZodString;
1182
- modelId: z.ZodString;
1183
- reasoningLevel: z.ZodOptional<z.ZodString>;
1184
- triggeringToolCallId: z.ZodOptional<z.ZodString>;
1185
- summary: z.ZodOptional<z.ZodString>;
1186
1044
  }, z.core.$strict>, z.ZodObject<{
1187
1045
  type: z.ZodLiteral<"subagent">;
1188
1046
  startedSeq: z.ZodNumber;
@@ -1236,6 +1094,7 @@ declare const conversationReportEventSchema: z.ZodObject<{
1236
1094
  task: "task";
1237
1095
  }>>;
1238
1096
  explicitMention: z.ZodOptional<z.ZodBoolean>;
1097
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
1239
1098
  trustedSummary: z.ZodOptional<z.ZodString>;
1240
1099
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1241
1100
  eventType: z.ZodString;
@@ -1391,19 +1250,6 @@ declare const conversationReportEventSchema: z.ZodObject<{
1391
1250
  contentType: z.ZodString;
1392
1251
  bytes: z.ZodNumber;
1393
1252
  }, z.core.$strict>>;
1394
- }, z.core.$strict>, z.ZodObject<{
1395
- type: z.ZodLiteral<"turn_routed">;
1396
- turnId: z.ZodString;
1397
- modelProfile: z.ZodString;
1398
- modelId: z.ZodString;
1399
- costUsd: z.ZodOptional<z.ZodNumber>;
1400
- reasoningLevel: z.ZodString;
1401
- confidence: z.ZodOptional<z.ZodNumber>;
1402
- source: z.ZodEnum<{
1403
- configured: "configured";
1404
- inherited: "inherited";
1405
- router: "router";
1406
- }>;
1407
1253
  }, z.core.$strict>, z.ZodObject<{
1408
1254
  type: z.ZodLiteral<"guardian_action_reviewed">;
1409
1255
  turnId: z.ZodString;
@@ -1428,7 +1274,6 @@ declare const conversationReportEventSchema: z.ZodObject<{
1428
1274
  }>;
1429
1275
  }, z.core.$strict>, z.ZodObject<{
1430
1276
  type: z.ZodLiteral<"compaction">;
1431
- modelProfile: z.ZodOptional<z.ZodString>;
1432
1277
  modelId: z.ZodOptional<z.ZodString>;
1433
1278
  summary: z.ZodOptional<z.ZodString>;
1434
1279
  details: z.ZodOptional<z.ZodObject<{
@@ -1441,13 +1286,6 @@ declare const conversationReportEventSchema: z.ZodObject<{
1441
1286
  retainedMessageCount: z.ZodNumber;
1442
1287
  summaryChars: z.ZodNumber;
1443
1288
  }, z.core.$strict>>;
1444
- }, z.core.$strict>, z.ZodObject<{
1445
- type: z.ZodLiteral<"handoff">;
1446
- modelProfile: z.ZodString;
1447
- modelId: z.ZodString;
1448
- reasoningLevel: z.ZodOptional<z.ZodString>;
1449
- triggeringToolCallId: z.ZodOptional<z.ZodString>;
1450
- summary: z.ZodOptional<z.ZodString>;
1451
1289
  }, z.core.$strict>, z.ZodObject<{
1452
1290
  type: z.ZodLiteral<"subagent">;
1453
1291
  startedSeq: z.ZodNumber;
@@ -1475,8 +1313,6 @@ declare const conversationReportEventSchema: z.ZodObject<{
1475
1313
  }, z.core.$strict>>>;
1476
1314
  model: z.ZodOptional<z.ZodObject<{
1477
1315
  modelId: z.ZodString;
1478
- modelProfile: z.ZodOptional<z.ZodString>;
1479
- reasoningLevel: z.ZodOptional<z.ZodString>;
1480
1316
  }, z.core.$strict>>;
1481
1317
  modelCall: z.ZodOptional<z.ZodObject<{
1482
1318
  provider: z.ZodOptional<z.ZodString>;
@@ -1543,83 +1379,1666 @@ declare const conversationAgentTreeNodeSchema: z.ZodObject<{
1543
1379
  label: z.ZodString;
1544
1380
  }, z.core.$strict>;
1545
1381
  type ConversationAgentTreeNode = z.infer<typeof conversationAgentTreeNodeSchema>;
1546
- declare const conversationDetailReportSchema: z.ZodObject<{
1547
- displayTitle: z.ZodString;
1548
- activityPreview: z.ZodOptional<z.ZodObject<{
1382
+ declare const conversationEventPageSchema: z.ZodObject<{
1383
+ events: z.ZodArray<z.ZodObject<{
1384
+ seq: z.ZodNumber;
1549
1385
  createdAt: z.ZodString;
1550
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1551
- avatarUrl: z.ZodOptional<z.ZodString>;
1552
- email: z.ZodOptional<z.ZodString>;
1553
- fullName: z.ZodOptional<z.ZodString>;
1554
- slackUserId: z.ZodOptional<z.ZodString>;
1555
- slackUserName: z.ZodOptional<z.ZodString>;
1556
- }, z.core.$strict>>>;
1557
- role: z.ZodEnum<{
1558
- assistant: "assistant";
1559
- user: "user";
1560
- }>;
1561
- text: z.ZodString;
1562
- }, z.core.$strict>>;
1563
- cumulativeDurationMs: z.ZodNumber;
1564
- cumulativeUsage: z.ZodOptional<z.ZodObject<{
1565
- inputTokens: z.ZodOptional<z.ZodNumber>;
1566
- outputTokens: z.ZodOptional<z.ZodNumber>;
1567
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1568
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
1569
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
1570
- totalTokens: z.ZodOptional<z.ZodNumber>;
1571
- cost: z.ZodOptional<z.ZodObject<{
1572
- input: z.ZodOptional<z.ZodNumber>;
1573
- output: z.ZodOptional<z.ZodNumber>;
1574
- cacheRead: z.ZodOptional<z.ZodNumber>;
1575
- cacheWrite: z.ZodOptional<z.ZodNumber>;
1576
- total: z.ZodOptional<z.ZodNumber>;
1577
- }, z.core.$strict>>;
1578
- }, z.core.$strict>>;
1579
- auxiliaryCosts: z.ZodOptional<z.ZodObject<{
1580
- costUsd: z.ZodNumber;
1581
- operations: z.ZodArray<z.ZodObject<{
1582
- costUsd: z.ZodNumber;
1583
- events: z.ZodNumber;
1584
- name: z.ZodString;
1585
- namespace: z.ZodString;
1586
- }, z.core.$strict>>;
1587
- }, z.core.$strict>>;
1588
- childAgentTotals: z.ZodOptional<z.ZodObject<{
1589
- auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
1590
- count: z.ZodNumber;
1591
- cumulativeDurationMs: z.ZodNumber;
1592
- cumulativeUsage: z.ZodOptional<z.ZodObject<{
1593
- inputTokens: z.ZodOptional<z.ZodNumber>;
1594
- outputTokens: z.ZodOptional<z.ZodNumber>;
1595
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1596
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
1597
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
1598
- totalTokens: z.ZodOptional<z.ZodNumber>;
1599
- cost: z.ZodOptional<z.ZodObject<{
1600
- input: z.ZodOptional<z.ZodNumber>;
1601
- output: z.ZodOptional<z.ZodNumber>;
1602
- cacheRead: z.ZodOptional<z.ZodNumber>;
1603
- cacheWrite: z.ZodOptional<z.ZodNumber>;
1604
- total: z.ZodOptional<z.ZodNumber>;
1386
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1387
+ type: z.ZodLiteral<"message">;
1388
+ messageId: z.ZodString;
1389
+ role: z.ZodEnum<{
1390
+ assistant: "assistant";
1391
+ system: "system";
1392
+ user: "user";
1393
+ }>;
1394
+ source: z.ZodOptional<z.ZodEnum<{
1395
+ slack: "slack";
1396
+ web: "web";
1397
+ }>>;
1398
+ actorIdentity: z.ZodOptional<z.ZodObject<{
1399
+ avatarUrl: z.ZodOptional<z.ZodString>;
1400
+ email: z.ZodOptional<z.ZodString>;
1401
+ fullName: z.ZodOptional<z.ZodString>;
1402
+ slackUserId: z.ZodOptional<z.ZodString>;
1403
+ slackUserName: z.ZodOptional<z.ZodString>;
1605
1404
  }, z.core.$strict>>;
1606
- }, z.core.$strict>>;
1607
- }, z.core.$strict>>;
1608
- conversationId: z.ZodString;
1609
- isParticipant: z.ZodBoolean;
1610
- visibility: z.ZodOptional<z.ZodEnum<{
1611
- private: "private";
1612
- public: "public";
1613
- }>>;
1614
- status: z.ZodEnum<{
1615
- active: "active";
1616
- completed: "completed";
1617
- failed: "failed";
1618
- }>;
1619
- startedAt: z.ZodString;
1620
- lastSeenAt: z.ZodString;
1621
- lastProgressAt: z.ZodString;
1622
- surface: z.ZodEnum<{
1405
+ actorIdentityId: z.ZodOptional<z.ZodString>;
1406
+ agentInvocationId: z.ZodOptional<z.ZodString>;
1407
+ eventType: z.ZodOptional<z.ZodString>;
1408
+ eventObjectType: z.ZodOptional<z.ZodEnum<{
1409
+ automation: "automation";
1410
+ calendar_event: "calendar_event";
1411
+ code_change: "code_change";
1412
+ deployment: "deployment";
1413
+ item: "item";
1414
+ task: "task";
1415
+ }>>;
1416
+ explicitMention: z.ZodOptional<z.ZodBoolean>;
1417
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
1418
+ trustedSummary: z.ZodOptional<z.ZodString>;
1419
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1420
+ eventType: z.ZodString;
1421
+ label: z.ZodOptional<z.ZodString>;
1422
+ objectType: z.ZodOptional<z.ZodEnum<{
1423
+ automation: "automation";
1424
+ calendar_event: "calendar_event";
1425
+ code_change: "code_change";
1426
+ deployment: "deployment";
1427
+ item: "item";
1428
+ task: "task";
1429
+ }>>;
1430
+ trustedSummary: z.ZodOptional<z.ZodString>;
1431
+ }, z.core.$strict>>>;
1432
+ cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
1433
+ plugin: z.ZodString;
1434
+ key: z.ZodString;
1435
+ kind: z.ZodLiteral<"object">;
1436
+ }, z.core.$strict>>>;
1437
+ reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1438
+ kind: z.ZodEnum<{
1439
+ dismissed: "dismissed";
1440
+ submitted: "submitted";
1441
+ taken: "taken";
1442
+ }>;
1443
+ reviewItemId: z.ZodString;
1444
+ }, z.core.$strict>>>;
1445
+ text: z.ZodOptional<z.ZodString>;
1446
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1447
+ id: z.ZodString;
1448
+ filename: z.ZodString;
1449
+ contentType: z.ZodString;
1450
+ bytes: z.ZodNumber;
1451
+ }, z.core.$strict>>>;
1452
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
1453
+ }, z.core.$strict>, z.ZodObject<{
1454
+ type: z.ZodLiteral<"message_handled">;
1455
+ messageId: z.ZodString;
1456
+ }, z.core.$strict>, z.ZodObject<{
1457
+ type: z.ZodLiteral<"assistant_message">;
1458
+ parts: z.ZodArray<z.ZodObject<{
1459
+ type: z.ZodLiteral<"reasoning">;
1460
+ text: z.ZodOptional<z.ZodString>;
1461
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
1462
+ }, z.core.$strict>>;
1463
+ }, z.core.$strict>, z.ZodObject<{
1464
+ type: z.ZodLiteral<"tool_calls">;
1465
+ calls: z.ZodArray<z.ZodObject<{
1466
+ toolCallId: z.ZodString;
1467
+ name: z.ZodString;
1468
+ status: z.ZodEnum<{
1469
+ completed: "completed";
1470
+ error: "error";
1471
+ running: "running";
1472
+ }>;
1473
+ startedAt: z.ZodOptional<z.ZodString>;
1474
+ startedSeq: z.ZodOptional<z.ZodNumber>;
1475
+ input: z.ZodOptional<z.ZodUnknown>;
1476
+ output: z.ZodOptional<z.ZodUnknown>;
1477
+ }, z.core.$strict>>;
1478
+ assistant: z.ZodOptional<z.ZodObject<{
1479
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1480
+ type: z.ZodLiteral<"reasoning">;
1481
+ text: z.ZodOptional<z.ZodString>;
1482
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
1483
+ }, z.core.$strict>, z.ZodObject<{
1484
+ type: z.ZodLiteral<"tool_call">;
1485
+ toolCallId: z.ZodString;
1486
+ }, z.core.$strict>], "type">>;
1487
+ }, z.core.$strict>>;
1488
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1489
+ type: z.ZodLiteral<"turn_lifecycle">;
1490
+ turnId: z.ZodString;
1491
+ state: z.ZodEnum<{
1492
+ blocked: "blocked";
1493
+ no_reply: "no_reply";
1494
+ succeeded: "succeeded";
1495
+ }>;
1496
+ }, z.core.$strict>, z.ZodObject<{
1497
+ type: z.ZodLiteral<"turn_lifecycle">;
1498
+ turnId: z.ZodString;
1499
+ state: z.ZodLiteral<"started">;
1500
+ inputMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1501
+ }, z.core.$strict>, z.ZodObject<{
1502
+ type: z.ZodLiteral<"turn_lifecycle">;
1503
+ turnId: z.ZodString;
1504
+ state: z.ZodLiteral<"failed">;
1505
+ failureCode: z.ZodEnum<{
1506
+ agent_run_failed: "agent_run_failed";
1507
+ delivery_failed: "delivery_failed";
1508
+ model_execution_failed: "model_execution_failed";
1509
+ persistence_failed: "persistence_failed";
1510
+ }>;
1511
+ failureReason: z.ZodOptional<z.ZodEnum<{
1512
+ auth: "auth";
1513
+ capacity: "capacity";
1514
+ content_policy: "content_policy";
1515
+ empty_output: "empty_output";
1516
+ invalid_request: "invalid_request";
1517
+ invalid_response: "invalid_response";
1518
+ network: "network";
1519
+ permission: "permission";
1520
+ quota: "quota";
1521
+ rate_limit: "rate_limit";
1522
+ server: "server";
1523
+ suppressed_output: "suppressed_output";
1524
+ timeout: "timeout";
1525
+ tool_errors: "tool_errors";
1526
+ unknown: "unknown";
1527
+ }>>;
1528
+ eventId: z.ZodOptional<z.ZodString>;
1529
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
1530
+ }, z.core.$strict>], "state">, z.ZodObject<{
1531
+ type: z.ZodLiteral<"turn_context">;
1532
+ turnId: z.ZodString;
1533
+ pluginName: z.ZodString;
1534
+ kind: z.ZodString;
1535
+ version: z.ZodNumber;
1536
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1537
+ }, z.core.$strict>, z.ZodObject<{
1538
+ type: z.ZodLiteral<"structured_event">;
1539
+ namespace: z.ZodString;
1540
+ name: z.ZodString;
1541
+ version: z.ZodNumber;
1542
+ turnId: z.ZodOptional<z.ZodString>;
1543
+ presentation: z.ZodObject<{
1544
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1545
+ content: z.ZodOptional<z.ZodString>;
1546
+ description: z.ZodOptional<z.ZodString>;
1547
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
1548
+ title: z.ZodString;
1549
+ }, z.core.$strict>>>;
1550
+ icon: z.ZodOptional<z.ZodEnum<{
1551
+ activity: "activity";
1552
+ brain: "brain";
1553
+ calendar: "calendar";
1554
+ check: "check";
1555
+ database: "database";
1556
+ info: "info";
1557
+ key: "key";
1558
+ link: "link";
1559
+ sparkles: "sparkles";
1560
+ warning: "warning";
1561
+ }>>;
1562
+ preview: z.ZodOptional<z.ZodString>;
1563
+ title: z.ZodString;
1564
+ }, z.core.$strict>;
1565
+ }, z.core.$strict>, z.ZodObject<{
1566
+ type: z.ZodLiteral<"attachments_delivered">;
1567
+ attachments: z.ZodArray<z.ZodObject<{
1568
+ id: z.ZodString;
1569
+ filename: z.ZodString;
1570
+ contentType: z.ZodString;
1571
+ bytes: z.ZodNumber;
1572
+ }, z.core.$strict>>;
1573
+ }, z.core.$strict>, z.ZodObject<{
1574
+ type: z.ZodLiteral<"guardian_action_reviewed">;
1575
+ turnId: z.ZodString;
1576
+ toolCallId: z.ZodString;
1577
+ toolName: z.ZodString;
1578
+ decision: z.ZodEnum<{
1579
+ allow: "allow";
1580
+ ask: "ask";
1581
+ deny: "deny";
1582
+ }>;
1583
+ riskLevel: z.ZodEnum<{
1584
+ critical: "critical";
1585
+ high: "high";
1586
+ low: "low";
1587
+ medium: "medium";
1588
+ }>;
1589
+ userAuthorization: z.ZodEnum<{
1590
+ high: "high";
1591
+ low: "low";
1592
+ medium: "medium";
1593
+ unknown: "unknown";
1594
+ }>;
1595
+ }, z.core.$strict>, z.ZodObject<{
1596
+ type: z.ZodLiteral<"compaction">;
1597
+ modelId: z.ZodOptional<z.ZodString>;
1598
+ summary: z.ZodOptional<z.ZodString>;
1599
+ details: z.ZodOptional<z.ZodObject<{
1600
+ reason: z.ZodLiteral<"capacity">;
1601
+ estimatedInputTokens: z.ZodNumber;
1602
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
1603
+ triggerTokens: z.ZodNumber;
1604
+ inputLimitTokens: z.ZodNumber;
1605
+ inputMessageCount: z.ZodNumber;
1606
+ retainedMessageCount: z.ZodNumber;
1607
+ summaryChars: z.ZodNumber;
1608
+ }, z.core.$strict>>;
1609
+ }, z.core.$strict>, z.ZodObject<{
1610
+ type: z.ZodLiteral<"subagent">;
1611
+ startedSeq: z.ZodNumber;
1612
+ startedAt: z.ZodString;
1613
+ childConversationId: z.ZodString;
1614
+ subagentKind: z.ZodString;
1615
+ agentName: z.ZodOptional<z.ZodString>;
1616
+ task: z.ZodOptional<z.ZodString>;
1617
+ title: z.ZodOptional<z.ZodString>;
1618
+ parentToolCallId: z.ZodOptional<z.ZodString>;
1619
+ status: z.ZodEnum<{
1620
+ aborted: "aborted";
1621
+ blocked: "blocked";
1622
+ completed: "completed";
1623
+ error: "error";
1624
+ running: "running";
1625
+ }>;
1626
+ }, z.core.$strict>], "type">;
1627
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1628
+ avatarUrl: z.ZodOptional<z.ZodString>;
1629
+ email: z.ZodOptional<z.ZodString>;
1630
+ fullName: z.ZodOptional<z.ZodString>;
1631
+ slackUserId: z.ZodOptional<z.ZodString>;
1632
+ slackUserName: z.ZodOptional<z.ZodString>;
1633
+ }, z.core.$strict>>>;
1634
+ model: z.ZodOptional<z.ZodObject<{
1635
+ modelId: z.ZodString;
1636
+ }, z.core.$strict>>;
1637
+ modelCall: z.ZodOptional<z.ZodObject<{
1638
+ provider: z.ZodOptional<z.ZodString>;
1639
+ api: z.ZodOptional<z.ZodString>;
1640
+ stopReason: z.ZodOptional<z.ZodString>;
1641
+ usage: z.ZodOptional<z.ZodObject<{
1642
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1643
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1644
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1645
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
1646
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
1647
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1648
+ cost: z.ZodOptional<z.ZodObject<{
1649
+ input: z.ZodOptional<z.ZodNumber>;
1650
+ output: z.ZodOptional<z.ZodNumber>;
1651
+ cacheRead: z.ZodOptional<z.ZodNumber>;
1652
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
1653
+ total: z.ZodOptional<z.ZodNumber>;
1654
+ }, z.core.$strict>>;
1655
+ }, z.core.$strict>>;
1656
+ }, z.core.$strict>>;
1657
+ }, z.core.$strict>>;
1658
+ eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1659
+ status: z.ZodLiteral<"available">;
1660
+ }, z.core.$strict>, z.ZodObject<{
1661
+ status: z.ZodLiteral<"redacted">;
1662
+ reason: z.ZodLiteral<"non_public_conversation">;
1663
+ }, z.core.$strict>, z.ZodObject<{
1664
+ status: z.ZodLiteral<"expired">;
1665
+ expiredAt: z.ZodString;
1666
+ }, z.core.$strict>], "status">;
1667
+ previousCursor: z.ZodOptional<z.ZodString>;
1668
+ nextCursor: z.ZodOptional<z.ZodString>;
1669
+ generatedAt: z.ZodString;
1670
+ }, z.core.$strict>;
1671
+ /**
1672
+ * Carries the detail version token in both directions. A custom header, not
1673
+ * `ETag` / `If-None-Match`: in production the Vercel CDN answered standard
1674
+ * validators itself, after the function had already built the full report.
1675
+ */
1676
+ declare const CONVERSATION_DETAIL_VERSION_HEADER = "x-junior-detail-version";
1677
+ declare const conversationDetailReportSchema: z.ZodObject<{
1678
+ displayTitle: z.ZodString;
1679
+ activityPreview: z.ZodOptional<z.ZodObject<{
1680
+ createdAt: z.ZodString;
1681
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1682
+ avatarUrl: z.ZodOptional<z.ZodString>;
1683
+ email: z.ZodOptional<z.ZodString>;
1684
+ fullName: z.ZodOptional<z.ZodString>;
1685
+ slackUserId: z.ZodOptional<z.ZodString>;
1686
+ slackUserName: z.ZodOptional<z.ZodString>;
1687
+ }, z.core.$strict>>>;
1688
+ role: z.ZodEnum<{
1689
+ assistant: "assistant";
1690
+ user: "user";
1691
+ }>;
1692
+ text: z.ZodString;
1693
+ }, z.core.$strict>>;
1694
+ cumulativeDurationMs: z.ZodNumber;
1695
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
1696
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1697
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1698
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1699
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
1700
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
1701
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1702
+ cost: z.ZodOptional<z.ZodObject<{
1703
+ input: z.ZodOptional<z.ZodNumber>;
1704
+ output: z.ZodOptional<z.ZodNumber>;
1705
+ cacheRead: z.ZodOptional<z.ZodNumber>;
1706
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
1707
+ total: z.ZodOptional<z.ZodNumber>;
1708
+ }, z.core.$strict>>;
1709
+ }, z.core.$strict>>;
1710
+ auxiliaryCosts: z.ZodOptional<z.ZodObject<{
1711
+ costUsd: z.ZodNumber;
1712
+ operations: z.ZodArray<z.ZodObject<{
1713
+ costUsd: z.ZodNumber;
1714
+ events: z.ZodNumber;
1715
+ name: z.ZodString;
1716
+ namespace: z.ZodString;
1717
+ }, z.core.$strict>>;
1718
+ }, z.core.$strict>>;
1719
+ childAgentTotals: z.ZodOptional<z.ZodObject<{
1720
+ auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
1721
+ count: z.ZodNumber;
1722
+ cumulativeDurationMs: z.ZodNumber;
1723
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
1724
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1725
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1726
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1727
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
1728
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
1729
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1730
+ cost: z.ZodOptional<z.ZodObject<{
1731
+ input: z.ZodOptional<z.ZodNumber>;
1732
+ output: z.ZodOptional<z.ZodNumber>;
1733
+ cacheRead: z.ZodOptional<z.ZodNumber>;
1734
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
1735
+ total: z.ZodOptional<z.ZodNumber>;
1736
+ }, z.core.$strict>>;
1737
+ }, z.core.$strict>>;
1738
+ }, z.core.$strict>>;
1739
+ conversationId: z.ZodString;
1740
+ isParticipant: z.ZodBoolean;
1741
+ visibility: z.ZodOptional<z.ZodEnum<{
1742
+ private: "private";
1743
+ public: "public";
1744
+ }>>;
1745
+ status: z.ZodEnum<{
1746
+ active: "active";
1747
+ completed: "completed";
1748
+ failed: "failed";
1749
+ }>;
1750
+ startedAt: z.ZodString;
1751
+ lastSeenAt: z.ZodString;
1752
+ lastProgressAt: z.ZodString;
1753
+ surface: z.ZodEnum<{
1754
+ api: "api";
1755
+ internal: "internal";
1756
+ scheduler: "scheduler";
1757
+ slack: "slack";
1758
+ }>;
1759
+ actorIdentity: z.ZodOptional<z.ZodObject<{
1760
+ avatarUrl: z.ZodOptional<z.ZodString>;
1761
+ email: z.ZodOptional<z.ZodString>;
1762
+ fullName: z.ZodOptional<z.ZodString>;
1763
+ slackUserId: z.ZodOptional<z.ZodString>;
1764
+ slackUserName: z.ZodOptional<z.ZodString>;
1765
+ }, z.core.$strict>>;
1766
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1767
+ avatarUrl: z.ZodOptional<z.ZodString>;
1768
+ email: z.ZodOptional<z.ZodString>;
1769
+ fullName: z.ZodOptional<z.ZodString>;
1770
+ slackUserId: z.ZodOptional<z.ZodString>;
1771
+ slackUserName: z.ZodOptional<z.ZodString>;
1772
+ }, z.core.$strict>>>;
1773
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1774
+ pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1775
+ channel: z.ZodOptional<z.ZodString>;
1776
+ channelName: z.ZodOptional<z.ZodString>;
1777
+ channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
1778
+ locationId: z.ZodOptional<z.ZodString>;
1779
+ sentryTraceUrl: z.ZodOptional<z.ZodString>;
1780
+ locationUrl: z.ZodOptional<z.ZodString>;
1781
+ traceId: z.ZodOptional<z.ZodString>;
1782
+ annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
1783
+ kind: z.ZodLiteral<"resource_link">;
1784
+ objectType: z.ZodOptional<z.ZodEnum<{
1785
+ automation: "automation";
1786
+ calendar_event: "calendar_event";
1787
+ code_change: "code_change";
1788
+ deployment: "deployment";
1789
+ item: "item";
1790
+ task: "task";
1791
+ }>>;
1792
+ key: z.ZodString;
1793
+ label: z.ZodString;
1794
+ url: z.ZodString;
1795
+ description: z.ZodOptional<z.ZodString>;
1796
+ status: z.ZodOptional<z.ZodEnum<{
1797
+ closed: "closed";
1798
+ draft: "draft";
1799
+ merged: "merged";
1800
+ open: "open";
1801
+ warning: "warning";
1802
+ }>>;
1803
+ }, z.core.$strict>, z.ZodObject<{
1804
+ kind: z.ZodLiteral<"object">;
1805
+ key: z.ZodString;
1806
+ label: z.ZodString;
1807
+ objectType: z.ZodEnum<{
1808
+ automation: "automation";
1809
+ calendar_event: "calendar_event";
1810
+ code_change: "code_change";
1811
+ deployment: "deployment";
1812
+ item: "item";
1813
+ task: "task";
1814
+ }>;
1815
+ title: z.ZodString;
1816
+ url: z.ZodNullable<z.ZodURL>;
1817
+ description: z.ZodOptional<z.ZodString>;
1818
+ status: z.ZodOptional<z.ZodString>;
1819
+ trigger: z.ZodOptional<z.ZodString>;
1820
+ warning: z.ZodOptional<z.ZodString>;
1821
+ displayType: z.ZodOptional<z.ZodString>;
1822
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1823
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1824
+ type: z.ZodLiteral<"code_change">;
1825
+ author: z.ZodOptional<z.ZodString>;
1826
+ sourceBranch: z.ZodOptional<z.ZodString>;
1827
+ targetBranch: z.ZodOptional<z.ZodString>;
1828
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1829
+ review: z.ZodOptional<z.ZodEnum<{
1830
+ approved: "approved";
1831
+ changes_requested: "changes_requested";
1832
+ required: "required";
1833
+ }>>;
1834
+ checks: z.ZodOptional<z.ZodObject<{
1835
+ passed: z.ZodNumber;
1836
+ failed: z.ZodNumber;
1837
+ pending: z.ZodNumber;
1838
+ }, z.core.$strict>>;
1839
+ mergeable: z.ZodOptional<z.ZodBoolean>;
1840
+ changedFiles: z.ZodOptional<z.ZodNumber>;
1841
+ additions: z.ZodOptional<z.ZodNumber>;
1842
+ deletions: z.ZodOptional<z.ZodNumber>;
1843
+ }, z.core.$strict>, z.ZodObject<{
1844
+ type: z.ZodLiteral<"task">;
1845
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1846
+ priority: z.ZodOptional<z.ZodString>;
1847
+ project: z.ZodOptional<z.ZodString>;
1848
+ cycle: z.ZodOptional<z.ZodString>;
1849
+ dueDate: z.ZodOptional<z.ZodISODate>;
1850
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1851
+ }, z.core.$strict>, z.ZodObject<{
1852
+ type: z.ZodLiteral<"deployment">;
1853
+ project: z.ZodOptional<z.ZodString>;
1854
+ environment: z.ZodOptional<z.ZodString>;
1855
+ revision: z.ZodOptional<z.ZodString>;
1856
+ branch: z.ZodOptional<z.ZodString>;
1857
+ }, z.core.$strict>, z.ZodObject<{
1858
+ type: z.ZodLiteral<"calendar_event">;
1859
+ when: z.ZodOptional<z.ZodString>;
1860
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1861
+ }, z.core.$strict>], "type">>;
1862
+ }, z.core.$strict>], "kind">, z.ZodObject<{
1863
+ plugin: z.ZodString;
1864
+ createdAt: z.ZodString;
1865
+ updatedAt: z.ZodString;
1866
+ }, z.core.$strip>>>>;
1867
+ sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1868
+ icon: z.ZodOptional<z.ZodEnum<{
1869
+ "circle-dashed": "circle-dashed";
1870
+ "circle-dot": "circle-dot";
1871
+ "circle-x": "circle-x";
1872
+ "git-merge": "git-merge";
1873
+ "git-pull-request": "git-pull-request";
1874
+ "triangle-alert": "triangle-alert";
1875
+ }>>;
1876
+ objectType: z.ZodOptional<z.ZodEnum<{
1877
+ automation: "automation";
1878
+ calendar_event: "calendar_event";
1879
+ code_change: "code_change";
1880
+ deployment: "deployment";
1881
+ item: "item";
1882
+ task: "task";
1883
+ }>>;
1884
+ status: z.ZodOptional<z.ZodString>;
1885
+ key: z.ZodString;
1886
+ label: z.ZodString;
1887
+ }, z.core.$strict>>>;
1888
+ assignedWork: z.ZodOptional<z.ZodBoolean>;
1889
+ finishedWorkAt: z.ZodOptional<z.ZodString>;
1890
+ isPriority: z.ZodOptional<z.ZodBoolean>;
1891
+ unfinishedWork: z.ZodOptional<z.ZodBoolean>;
1892
+ agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
1893
+ conversationId: z.ZodString;
1894
+ label: z.ZodString;
1895
+ }, z.core.$strict>>>;
1896
+ autoArchive: z.ZodOptional<z.ZodBoolean>;
1897
+ canFork: z.ZodOptional<z.ZodBoolean>;
1898
+ readPosition: z.ZodOptional<z.ZodObject<{
1899
+ lastReadSeq: z.ZodNumber;
1900
+ }, z.core.$strict>>;
1901
+ unreadCursor: z.ZodOptional<z.ZodString>;
1902
+ unreadPage: z.ZodOptional<z.ZodObject<{
1903
+ events: z.ZodArray<z.ZodObject<{
1904
+ seq: z.ZodNumber;
1905
+ createdAt: z.ZodString;
1906
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1907
+ type: z.ZodLiteral<"message">;
1908
+ messageId: z.ZodString;
1909
+ role: z.ZodEnum<{
1910
+ assistant: "assistant";
1911
+ system: "system";
1912
+ user: "user";
1913
+ }>;
1914
+ source: z.ZodOptional<z.ZodEnum<{
1915
+ slack: "slack";
1916
+ web: "web";
1917
+ }>>;
1918
+ actorIdentity: z.ZodOptional<z.ZodObject<{
1919
+ avatarUrl: z.ZodOptional<z.ZodString>;
1920
+ email: z.ZodOptional<z.ZodString>;
1921
+ fullName: z.ZodOptional<z.ZodString>;
1922
+ slackUserId: z.ZodOptional<z.ZodString>;
1923
+ slackUserName: z.ZodOptional<z.ZodString>;
1924
+ }, z.core.$strict>>;
1925
+ actorIdentityId: z.ZodOptional<z.ZodString>;
1926
+ agentInvocationId: z.ZodOptional<z.ZodString>;
1927
+ eventType: z.ZodOptional<z.ZodString>;
1928
+ eventObjectType: z.ZodOptional<z.ZodEnum<{
1929
+ automation: "automation";
1930
+ calendar_event: "calendar_event";
1931
+ code_change: "code_change";
1932
+ deployment: "deployment";
1933
+ item: "item";
1934
+ task: "task";
1935
+ }>>;
1936
+ explicitMention: z.ZodOptional<z.ZodBoolean>;
1937
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
1938
+ trustedSummary: z.ZodOptional<z.ZodString>;
1939
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1940
+ eventType: z.ZodString;
1941
+ label: z.ZodOptional<z.ZodString>;
1942
+ objectType: z.ZodOptional<z.ZodEnum<{
1943
+ automation: "automation";
1944
+ calendar_event: "calendar_event";
1945
+ code_change: "code_change";
1946
+ deployment: "deployment";
1947
+ item: "item";
1948
+ task: "task";
1949
+ }>>;
1950
+ trustedSummary: z.ZodOptional<z.ZodString>;
1951
+ }, z.core.$strict>>>;
1952
+ cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
1953
+ plugin: z.ZodString;
1954
+ key: z.ZodString;
1955
+ kind: z.ZodLiteral<"object">;
1956
+ }, z.core.$strict>>>;
1957
+ reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1958
+ kind: z.ZodEnum<{
1959
+ dismissed: "dismissed";
1960
+ submitted: "submitted";
1961
+ taken: "taken";
1962
+ }>;
1963
+ reviewItemId: z.ZodString;
1964
+ }, z.core.$strict>>>;
1965
+ text: z.ZodOptional<z.ZodString>;
1966
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1967
+ id: z.ZodString;
1968
+ filename: z.ZodString;
1969
+ contentType: z.ZodString;
1970
+ bytes: z.ZodNumber;
1971
+ }, z.core.$strict>>>;
1972
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
1973
+ }, z.core.$strict>, z.ZodObject<{
1974
+ type: z.ZodLiteral<"message_handled">;
1975
+ messageId: z.ZodString;
1976
+ }, z.core.$strict>, z.ZodObject<{
1977
+ type: z.ZodLiteral<"assistant_message">;
1978
+ parts: z.ZodArray<z.ZodObject<{
1979
+ type: z.ZodLiteral<"reasoning">;
1980
+ text: z.ZodOptional<z.ZodString>;
1981
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
1982
+ }, z.core.$strict>>;
1983
+ }, z.core.$strict>, z.ZodObject<{
1984
+ type: z.ZodLiteral<"tool_calls">;
1985
+ calls: z.ZodArray<z.ZodObject<{
1986
+ toolCallId: z.ZodString;
1987
+ name: z.ZodString;
1988
+ status: z.ZodEnum<{
1989
+ completed: "completed";
1990
+ error: "error";
1991
+ running: "running";
1992
+ }>;
1993
+ startedAt: z.ZodOptional<z.ZodString>;
1994
+ startedSeq: z.ZodOptional<z.ZodNumber>;
1995
+ input: z.ZodOptional<z.ZodUnknown>;
1996
+ output: z.ZodOptional<z.ZodUnknown>;
1997
+ }, z.core.$strict>>;
1998
+ assistant: z.ZodOptional<z.ZodObject<{
1999
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2000
+ type: z.ZodLiteral<"reasoning">;
2001
+ text: z.ZodOptional<z.ZodString>;
2002
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
2003
+ }, z.core.$strict>, z.ZodObject<{
2004
+ type: z.ZodLiteral<"tool_call">;
2005
+ toolCallId: z.ZodString;
2006
+ }, z.core.$strict>], "type">>;
2007
+ }, z.core.$strict>>;
2008
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2009
+ type: z.ZodLiteral<"turn_lifecycle">;
2010
+ turnId: z.ZodString;
2011
+ state: z.ZodEnum<{
2012
+ blocked: "blocked";
2013
+ no_reply: "no_reply";
2014
+ succeeded: "succeeded";
2015
+ }>;
2016
+ }, z.core.$strict>, z.ZodObject<{
2017
+ type: z.ZodLiteral<"turn_lifecycle">;
2018
+ turnId: z.ZodString;
2019
+ state: z.ZodLiteral<"started">;
2020
+ inputMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2021
+ }, z.core.$strict>, z.ZodObject<{
2022
+ type: z.ZodLiteral<"turn_lifecycle">;
2023
+ turnId: z.ZodString;
2024
+ state: z.ZodLiteral<"failed">;
2025
+ failureCode: z.ZodEnum<{
2026
+ agent_run_failed: "agent_run_failed";
2027
+ delivery_failed: "delivery_failed";
2028
+ model_execution_failed: "model_execution_failed";
2029
+ persistence_failed: "persistence_failed";
2030
+ }>;
2031
+ failureReason: z.ZodOptional<z.ZodEnum<{
2032
+ auth: "auth";
2033
+ capacity: "capacity";
2034
+ content_policy: "content_policy";
2035
+ empty_output: "empty_output";
2036
+ invalid_request: "invalid_request";
2037
+ invalid_response: "invalid_response";
2038
+ network: "network";
2039
+ permission: "permission";
2040
+ quota: "quota";
2041
+ rate_limit: "rate_limit";
2042
+ server: "server";
2043
+ suppressed_output: "suppressed_output";
2044
+ timeout: "timeout";
2045
+ tool_errors: "tool_errors";
2046
+ unknown: "unknown";
2047
+ }>>;
2048
+ eventId: z.ZodOptional<z.ZodString>;
2049
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
2050
+ }, z.core.$strict>], "state">, z.ZodObject<{
2051
+ type: z.ZodLiteral<"turn_context">;
2052
+ turnId: z.ZodString;
2053
+ pluginName: z.ZodString;
2054
+ kind: z.ZodString;
2055
+ version: z.ZodNumber;
2056
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2057
+ }, z.core.$strict>, z.ZodObject<{
2058
+ type: z.ZodLiteral<"structured_event">;
2059
+ namespace: z.ZodString;
2060
+ name: z.ZodString;
2061
+ version: z.ZodNumber;
2062
+ turnId: z.ZodOptional<z.ZodString>;
2063
+ presentation: z.ZodObject<{
2064
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
2065
+ content: z.ZodOptional<z.ZodString>;
2066
+ description: z.ZodOptional<z.ZodString>;
2067
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
2068
+ title: z.ZodString;
2069
+ }, z.core.$strict>>>;
2070
+ icon: z.ZodOptional<z.ZodEnum<{
2071
+ activity: "activity";
2072
+ brain: "brain";
2073
+ calendar: "calendar";
2074
+ check: "check";
2075
+ database: "database";
2076
+ info: "info";
2077
+ key: "key";
2078
+ link: "link";
2079
+ sparkles: "sparkles";
2080
+ warning: "warning";
2081
+ }>>;
2082
+ preview: z.ZodOptional<z.ZodString>;
2083
+ title: z.ZodString;
2084
+ }, z.core.$strict>;
2085
+ }, z.core.$strict>, z.ZodObject<{
2086
+ type: z.ZodLiteral<"attachments_delivered">;
2087
+ attachments: z.ZodArray<z.ZodObject<{
2088
+ id: z.ZodString;
2089
+ filename: z.ZodString;
2090
+ contentType: z.ZodString;
2091
+ bytes: z.ZodNumber;
2092
+ }, z.core.$strict>>;
2093
+ }, z.core.$strict>, z.ZodObject<{
2094
+ type: z.ZodLiteral<"guardian_action_reviewed">;
2095
+ turnId: z.ZodString;
2096
+ toolCallId: z.ZodString;
2097
+ toolName: z.ZodString;
2098
+ decision: z.ZodEnum<{
2099
+ allow: "allow";
2100
+ ask: "ask";
2101
+ deny: "deny";
2102
+ }>;
2103
+ riskLevel: z.ZodEnum<{
2104
+ critical: "critical";
2105
+ high: "high";
2106
+ low: "low";
2107
+ medium: "medium";
2108
+ }>;
2109
+ userAuthorization: z.ZodEnum<{
2110
+ high: "high";
2111
+ low: "low";
2112
+ medium: "medium";
2113
+ unknown: "unknown";
2114
+ }>;
2115
+ }, z.core.$strict>, z.ZodObject<{
2116
+ type: z.ZodLiteral<"compaction">;
2117
+ modelId: z.ZodOptional<z.ZodString>;
2118
+ summary: z.ZodOptional<z.ZodString>;
2119
+ details: z.ZodOptional<z.ZodObject<{
2120
+ reason: z.ZodLiteral<"capacity">;
2121
+ estimatedInputTokens: z.ZodNumber;
2122
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
2123
+ triggerTokens: z.ZodNumber;
2124
+ inputLimitTokens: z.ZodNumber;
2125
+ inputMessageCount: z.ZodNumber;
2126
+ retainedMessageCount: z.ZodNumber;
2127
+ summaryChars: z.ZodNumber;
2128
+ }, z.core.$strict>>;
2129
+ }, z.core.$strict>, z.ZodObject<{
2130
+ type: z.ZodLiteral<"subagent">;
2131
+ startedSeq: z.ZodNumber;
2132
+ startedAt: z.ZodString;
2133
+ childConversationId: z.ZodString;
2134
+ subagentKind: z.ZodString;
2135
+ agentName: z.ZodOptional<z.ZodString>;
2136
+ task: z.ZodOptional<z.ZodString>;
2137
+ title: z.ZodOptional<z.ZodString>;
2138
+ parentToolCallId: z.ZodOptional<z.ZodString>;
2139
+ status: z.ZodEnum<{
2140
+ aborted: "aborted";
2141
+ blocked: "blocked";
2142
+ completed: "completed";
2143
+ error: "error";
2144
+ running: "running";
2145
+ }>;
2146
+ }, z.core.$strict>], "type">;
2147
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2148
+ avatarUrl: z.ZodOptional<z.ZodString>;
2149
+ email: z.ZodOptional<z.ZodString>;
2150
+ fullName: z.ZodOptional<z.ZodString>;
2151
+ slackUserId: z.ZodOptional<z.ZodString>;
2152
+ slackUserName: z.ZodOptional<z.ZodString>;
2153
+ }, z.core.$strict>>>;
2154
+ model: z.ZodOptional<z.ZodObject<{
2155
+ modelId: z.ZodString;
2156
+ }, z.core.$strict>>;
2157
+ modelCall: z.ZodOptional<z.ZodObject<{
2158
+ provider: z.ZodOptional<z.ZodString>;
2159
+ api: z.ZodOptional<z.ZodString>;
2160
+ stopReason: z.ZodOptional<z.ZodString>;
2161
+ usage: z.ZodOptional<z.ZodObject<{
2162
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2163
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2164
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2165
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2166
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2167
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2168
+ cost: z.ZodOptional<z.ZodObject<{
2169
+ input: z.ZodOptional<z.ZodNumber>;
2170
+ output: z.ZodOptional<z.ZodNumber>;
2171
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2172
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2173
+ total: z.ZodOptional<z.ZodNumber>;
2174
+ }, z.core.$strict>>;
2175
+ }, z.core.$strict>>;
2176
+ }, z.core.$strict>>;
2177
+ }, z.core.$strict>>;
2178
+ eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2179
+ status: z.ZodLiteral<"available">;
2180
+ }, z.core.$strict>, z.ZodObject<{
2181
+ status: z.ZodLiteral<"redacted">;
2182
+ reason: z.ZodLiteral<"non_public_conversation">;
2183
+ }, z.core.$strict>, z.ZodObject<{
2184
+ status: z.ZodLiteral<"expired">;
2185
+ expiredAt: z.ZodString;
2186
+ }, z.core.$strict>], "status">;
2187
+ previousCursor: z.ZodOptional<z.ZodString>;
2188
+ nextCursor: z.ZodOptional<z.ZodString>;
2189
+ generatedAt: z.ZodString;
2190
+ }, z.core.$strict>>;
2191
+ forkedFromConversationId: z.ZodOptional<z.ZodString>;
2192
+ forkedFromTitle: z.ZodOptional<z.ZodString>;
2193
+ forks: z.ZodOptional<z.ZodArray<z.ZodString>>;
2194
+ brief: z.ZodOptional<z.ZodObject<{
2195
+ content: z.ZodObject<{
2196
+ schemaVersion: z.ZodLiteral<1>;
2197
+ record: z.ZodObject<{
2198
+ startedAt: z.ZodString;
2199
+ lastActivityAt: z.ZodString;
2200
+ durationMs: z.ZodNumber;
2201
+ participants: z.ZodArray<z.ZodObject<{
2202
+ name: z.ZodString;
2203
+ messages: z.ZodNumber;
2204
+ }, z.core.$strict>>;
2205
+ userMessages: z.ZodNumber;
2206
+ assistantMessages: z.ZodNumber;
2207
+ toolResults: z.ZodNumber;
2208
+ events: z.ZodNumber;
2209
+ turns: z.ZodOptional<z.ZodNumber>;
2210
+ location: z.ZodOptional<z.ZodObject<{
2211
+ provider: z.ZodString;
2212
+ channelName: z.ZodOptional<z.ZodString>;
2213
+ }, z.core.$strict>>;
2214
+ codeChanges: z.ZodArray<z.ZodObject<{
2215
+ repository: z.ZodString;
2216
+ number: z.ZodNumber;
2217
+ title: z.ZodOptional<z.ZodString>;
2218
+ url: z.ZodString;
2219
+ state: z.ZodEnum<{
2220
+ closed: "closed";
2221
+ merged: "merged";
2222
+ open: "open";
2223
+ }>;
2224
+ openedAt: z.ZodOptional<z.ZodString>;
2225
+ mergedAt: z.ZodOptional<z.ZodString>;
2226
+ closedAt: z.ZodOptional<z.ZodString>;
2227
+ }, z.core.$strict>>;
2228
+ }, z.core.$strict>;
2229
+ summary: z.ZodString;
2230
+ intent: z.ZodString;
2231
+ outcome: z.ZodObject<{
2232
+ status: z.ZodEnum<{
2233
+ abandoned: "abandoned";
2234
+ answered: "answered";
2235
+ blocked: "blocked";
2236
+ done: "done";
2237
+ in_progress: "in_progress";
2238
+ partial: "partial";
2239
+ }>;
2240
+ text: z.ZodString;
2241
+ }, z.core.$strict>;
2242
+ decisions: z.ZodArray<z.ZodObject<{
2243
+ text: z.ZodString;
2244
+ by: z.ZodOptional<z.ZodString>;
2245
+ kind: z.ZodEnum<{
2246
+ assumed: "assumed";
2247
+ confirmed: "confirmed";
2248
+ stated: "stated";
2249
+ }>;
2250
+ }, z.core.$strict>>;
2251
+ openDecisions: z.ZodArray<z.ZodObject<{
2252
+ text: z.ZodString;
2253
+ owner: z.ZodOptional<z.ZodString>;
2254
+ }, z.core.$strict>>;
2255
+ facts: z.ZodArray<z.ZodString>;
2256
+ links: z.ZodArray<z.ZodObject<{
2257
+ kind: z.ZodEnum<{
2258
+ code_change: "code_change";
2259
+ resource: "resource";
2260
+ url: "url";
2261
+ }>;
2262
+ label: z.ZodString;
2263
+ url: z.ZodString;
2264
+ status: z.ZodOptional<z.ZodString>;
2265
+ }, z.core.$strict>>;
2266
+ keywords: z.ZodArray<z.ZodString>;
2267
+ }, z.core.$strict>;
2268
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2269
+ avatarUrl: z.ZodOptional<z.ZodString>;
2270
+ email: z.ZodOptional<z.ZodString>;
2271
+ fullName: z.ZodOptional<z.ZodString>;
2272
+ slackUserId: z.ZodOptional<z.ZodString>;
2273
+ slackUserName: z.ZodOptional<z.ZodString>;
2274
+ }, z.core.$strict>>>;
2275
+ updatedAt: z.ZodString;
2276
+ version: z.ZodNumber;
2277
+ }, z.core.$strict>>;
2278
+ modelUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
2279
+ modelId: z.ZodString;
2280
+ usage: z.ZodObject<{
2281
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2282
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2283
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2284
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2285
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2286
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2287
+ cost: z.ZodOptional<z.ZodObject<{
2288
+ input: z.ZodOptional<z.ZodNumber>;
2289
+ output: z.ZodOptional<z.ZodNumber>;
2290
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2291
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2292
+ total: z.ZodOptional<z.ZodNumber>;
2293
+ }, z.core.$strict>>;
2294
+ }, z.core.$strict>;
2295
+ }, z.core.$strict>>>;
2296
+ authors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2297
+ avatarUrl: z.ZodOptional<z.ZodString>;
2298
+ email: z.ZodOptional<z.ZodString>;
2299
+ fullName: z.ZodOptional<z.ZodString>;
2300
+ slackUserId: z.ZodOptional<z.ZodString>;
2301
+ slackUserName: z.ZodOptional<z.ZodString>;
2302
+ }, z.core.$strict>>>;
2303
+ events: z.ZodArray<z.ZodObject<{
2304
+ seq: z.ZodNumber;
2305
+ createdAt: z.ZodString;
2306
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
2307
+ type: z.ZodLiteral<"message">;
2308
+ messageId: z.ZodString;
2309
+ role: z.ZodEnum<{
2310
+ assistant: "assistant";
2311
+ system: "system";
2312
+ user: "user";
2313
+ }>;
2314
+ source: z.ZodOptional<z.ZodEnum<{
2315
+ slack: "slack";
2316
+ web: "web";
2317
+ }>>;
2318
+ actorIdentity: z.ZodOptional<z.ZodObject<{
2319
+ avatarUrl: z.ZodOptional<z.ZodString>;
2320
+ email: z.ZodOptional<z.ZodString>;
2321
+ fullName: z.ZodOptional<z.ZodString>;
2322
+ slackUserId: z.ZodOptional<z.ZodString>;
2323
+ slackUserName: z.ZodOptional<z.ZodString>;
2324
+ }, z.core.$strict>>;
2325
+ actorIdentityId: z.ZodOptional<z.ZodString>;
2326
+ agentInvocationId: z.ZodOptional<z.ZodString>;
2327
+ eventType: z.ZodOptional<z.ZodString>;
2328
+ eventObjectType: z.ZodOptional<z.ZodEnum<{
2329
+ automation: "automation";
2330
+ calendar_event: "calendar_event";
2331
+ code_change: "code_change";
2332
+ deployment: "deployment";
2333
+ item: "item";
2334
+ task: "task";
2335
+ }>>;
2336
+ explicitMention: z.ZodOptional<z.ZodBoolean>;
2337
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
2338
+ trustedSummary: z.ZodOptional<z.ZodString>;
2339
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
2340
+ eventType: z.ZodString;
2341
+ label: z.ZodOptional<z.ZodString>;
2342
+ objectType: z.ZodOptional<z.ZodEnum<{
2343
+ automation: "automation";
2344
+ calendar_event: "calendar_event";
2345
+ code_change: "code_change";
2346
+ deployment: "deployment";
2347
+ item: "item";
2348
+ task: "task";
2349
+ }>>;
2350
+ trustedSummary: z.ZodOptional<z.ZodString>;
2351
+ }, z.core.$strict>>>;
2352
+ cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
2353
+ plugin: z.ZodString;
2354
+ key: z.ZodString;
2355
+ kind: z.ZodLiteral<"object">;
2356
+ }, z.core.$strict>>>;
2357
+ reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2358
+ kind: z.ZodEnum<{
2359
+ dismissed: "dismissed";
2360
+ submitted: "submitted";
2361
+ taken: "taken";
2362
+ }>;
2363
+ reviewItemId: z.ZodString;
2364
+ }, z.core.$strict>>>;
2365
+ text: z.ZodOptional<z.ZodString>;
2366
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2367
+ id: z.ZodString;
2368
+ filename: z.ZodString;
2369
+ contentType: z.ZodString;
2370
+ bytes: z.ZodNumber;
2371
+ }, z.core.$strict>>>;
2372
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
2373
+ }, z.core.$strict>, z.ZodObject<{
2374
+ type: z.ZodLiteral<"message_handled">;
2375
+ messageId: z.ZodString;
2376
+ }, z.core.$strict>, z.ZodObject<{
2377
+ type: z.ZodLiteral<"assistant_message">;
2378
+ parts: z.ZodArray<z.ZodObject<{
2379
+ type: z.ZodLiteral<"reasoning">;
2380
+ text: z.ZodOptional<z.ZodString>;
2381
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
2382
+ }, z.core.$strict>>;
2383
+ }, z.core.$strict>, z.ZodObject<{
2384
+ type: z.ZodLiteral<"tool_calls">;
2385
+ calls: z.ZodArray<z.ZodObject<{
2386
+ toolCallId: z.ZodString;
2387
+ name: z.ZodString;
2388
+ status: z.ZodEnum<{
2389
+ completed: "completed";
2390
+ error: "error";
2391
+ running: "running";
2392
+ }>;
2393
+ startedAt: z.ZodOptional<z.ZodString>;
2394
+ startedSeq: z.ZodOptional<z.ZodNumber>;
2395
+ input: z.ZodOptional<z.ZodUnknown>;
2396
+ output: z.ZodOptional<z.ZodUnknown>;
2397
+ }, z.core.$strict>>;
2398
+ assistant: z.ZodOptional<z.ZodObject<{
2399
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2400
+ type: z.ZodLiteral<"reasoning">;
2401
+ text: z.ZodOptional<z.ZodString>;
2402
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
2403
+ }, z.core.$strict>, z.ZodObject<{
2404
+ type: z.ZodLiteral<"tool_call">;
2405
+ toolCallId: z.ZodString;
2406
+ }, z.core.$strict>], "type">>;
2407
+ }, z.core.$strict>>;
2408
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2409
+ type: z.ZodLiteral<"turn_lifecycle">;
2410
+ turnId: z.ZodString;
2411
+ state: z.ZodEnum<{
2412
+ blocked: "blocked";
2413
+ no_reply: "no_reply";
2414
+ succeeded: "succeeded";
2415
+ }>;
2416
+ }, z.core.$strict>, z.ZodObject<{
2417
+ type: z.ZodLiteral<"turn_lifecycle">;
2418
+ turnId: z.ZodString;
2419
+ state: z.ZodLiteral<"started">;
2420
+ inputMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2421
+ }, z.core.$strict>, z.ZodObject<{
2422
+ type: z.ZodLiteral<"turn_lifecycle">;
2423
+ turnId: z.ZodString;
2424
+ state: z.ZodLiteral<"failed">;
2425
+ failureCode: z.ZodEnum<{
2426
+ agent_run_failed: "agent_run_failed";
2427
+ delivery_failed: "delivery_failed";
2428
+ model_execution_failed: "model_execution_failed";
2429
+ persistence_failed: "persistence_failed";
2430
+ }>;
2431
+ failureReason: z.ZodOptional<z.ZodEnum<{
2432
+ auth: "auth";
2433
+ capacity: "capacity";
2434
+ content_policy: "content_policy";
2435
+ empty_output: "empty_output";
2436
+ invalid_request: "invalid_request";
2437
+ invalid_response: "invalid_response";
2438
+ network: "network";
2439
+ permission: "permission";
2440
+ quota: "quota";
2441
+ rate_limit: "rate_limit";
2442
+ server: "server";
2443
+ suppressed_output: "suppressed_output";
2444
+ timeout: "timeout";
2445
+ tool_errors: "tool_errors";
2446
+ unknown: "unknown";
2447
+ }>>;
2448
+ eventId: z.ZodOptional<z.ZodString>;
2449
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
2450
+ }, z.core.$strict>], "state">, z.ZodObject<{
2451
+ type: z.ZodLiteral<"turn_context">;
2452
+ turnId: z.ZodString;
2453
+ pluginName: z.ZodString;
2454
+ kind: z.ZodString;
2455
+ version: z.ZodNumber;
2456
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2457
+ }, z.core.$strict>, z.ZodObject<{
2458
+ type: z.ZodLiteral<"structured_event">;
2459
+ namespace: z.ZodString;
2460
+ name: z.ZodString;
2461
+ version: z.ZodNumber;
2462
+ turnId: z.ZodOptional<z.ZodString>;
2463
+ presentation: z.ZodObject<{
2464
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
2465
+ content: z.ZodOptional<z.ZodString>;
2466
+ description: z.ZodOptional<z.ZodString>;
2467
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
2468
+ title: z.ZodString;
2469
+ }, z.core.$strict>>>;
2470
+ icon: z.ZodOptional<z.ZodEnum<{
2471
+ activity: "activity";
2472
+ brain: "brain";
2473
+ calendar: "calendar";
2474
+ check: "check";
2475
+ database: "database";
2476
+ info: "info";
2477
+ key: "key";
2478
+ link: "link";
2479
+ sparkles: "sparkles";
2480
+ warning: "warning";
2481
+ }>>;
2482
+ preview: z.ZodOptional<z.ZodString>;
2483
+ title: z.ZodString;
2484
+ }, z.core.$strict>;
2485
+ }, z.core.$strict>, z.ZodObject<{
2486
+ type: z.ZodLiteral<"attachments_delivered">;
2487
+ attachments: z.ZodArray<z.ZodObject<{
2488
+ id: z.ZodString;
2489
+ filename: z.ZodString;
2490
+ contentType: z.ZodString;
2491
+ bytes: z.ZodNumber;
2492
+ }, z.core.$strict>>;
2493
+ }, z.core.$strict>, z.ZodObject<{
2494
+ type: z.ZodLiteral<"guardian_action_reviewed">;
2495
+ turnId: z.ZodString;
2496
+ toolCallId: z.ZodString;
2497
+ toolName: z.ZodString;
2498
+ decision: z.ZodEnum<{
2499
+ allow: "allow";
2500
+ ask: "ask";
2501
+ deny: "deny";
2502
+ }>;
2503
+ riskLevel: z.ZodEnum<{
2504
+ critical: "critical";
2505
+ high: "high";
2506
+ low: "low";
2507
+ medium: "medium";
2508
+ }>;
2509
+ userAuthorization: z.ZodEnum<{
2510
+ high: "high";
2511
+ low: "low";
2512
+ medium: "medium";
2513
+ unknown: "unknown";
2514
+ }>;
2515
+ }, z.core.$strict>, z.ZodObject<{
2516
+ type: z.ZodLiteral<"compaction">;
2517
+ modelId: z.ZodOptional<z.ZodString>;
2518
+ summary: z.ZodOptional<z.ZodString>;
2519
+ details: z.ZodOptional<z.ZodObject<{
2520
+ reason: z.ZodLiteral<"capacity">;
2521
+ estimatedInputTokens: z.ZodNumber;
2522
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
2523
+ triggerTokens: z.ZodNumber;
2524
+ inputLimitTokens: z.ZodNumber;
2525
+ inputMessageCount: z.ZodNumber;
2526
+ retainedMessageCount: z.ZodNumber;
2527
+ summaryChars: z.ZodNumber;
2528
+ }, z.core.$strict>>;
2529
+ }, z.core.$strict>, z.ZodObject<{
2530
+ type: z.ZodLiteral<"subagent">;
2531
+ startedSeq: z.ZodNumber;
2532
+ startedAt: z.ZodString;
2533
+ childConversationId: z.ZodString;
2534
+ subagentKind: z.ZodString;
2535
+ agentName: z.ZodOptional<z.ZodString>;
2536
+ task: z.ZodOptional<z.ZodString>;
2537
+ title: z.ZodOptional<z.ZodString>;
2538
+ parentToolCallId: z.ZodOptional<z.ZodString>;
2539
+ status: z.ZodEnum<{
2540
+ aborted: "aborted";
2541
+ blocked: "blocked";
2542
+ completed: "completed";
2543
+ error: "error";
2544
+ running: "running";
2545
+ }>;
2546
+ }, z.core.$strict>], "type">;
2547
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2548
+ avatarUrl: z.ZodOptional<z.ZodString>;
2549
+ email: z.ZodOptional<z.ZodString>;
2550
+ fullName: z.ZodOptional<z.ZodString>;
2551
+ slackUserId: z.ZodOptional<z.ZodString>;
2552
+ slackUserName: z.ZodOptional<z.ZodString>;
2553
+ }, z.core.$strict>>>;
2554
+ model: z.ZodOptional<z.ZodObject<{
2555
+ modelId: z.ZodString;
2556
+ }, z.core.$strict>>;
2557
+ modelCall: z.ZodOptional<z.ZodObject<{
2558
+ provider: z.ZodOptional<z.ZodString>;
2559
+ api: z.ZodOptional<z.ZodString>;
2560
+ stopReason: z.ZodOptional<z.ZodString>;
2561
+ usage: z.ZodOptional<z.ZodObject<{
2562
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2563
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2564
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2565
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2566
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2567
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2568
+ cost: z.ZodOptional<z.ZodObject<{
2569
+ input: z.ZodOptional<z.ZodNumber>;
2570
+ output: z.ZodOptional<z.ZodNumber>;
2571
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2572
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2573
+ total: z.ZodOptional<z.ZodNumber>;
2574
+ }, z.core.$strict>>;
2575
+ }, z.core.$strict>>;
2576
+ }, z.core.$strict>>;
2577
+ }, z.core.$strict>>;
2578
+ eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2579
+ status: z.ZodLiteral<"available">;
2580
+ }, z.core.$strict>, z.ZodObject<{
2581
+ status: z.ZodLiteral<"redacted">;
2582
+ reason: z.ZodLiteral<"non_public_conversation">;
2583
+ }, z.core.$strict>, z.ZodObject<{
2584
+ status: z.ZodLiteral<"expired">;
2585
+ expiredAt: z.ZodString;
2586
+ }, z.core.$strict>], "status">;
2587
+ previousCursor: z.ZodOptional<z.ZodString>;
2588
+ generatedAt: z.ZodString;
2589
+ sentryConversationUrl: z.ZodOptional<z.ZodString>;
2590
+ sourceTask: z.ZodOptional<z.ZodObject<{
2591
+ id: z.ZodOptional<z.ZodString>;
2592
+ kind: z.ZodEnum<{
2593
+ event: "event";
2594
+ scheduled: "scheduled";
2595
+ }>;
2596
+ label: z.ZodOptional<z.ZodString>;
2597
+ title: z.ZodOptional<z.ZodString>;
2598
+ triggerMessageId: z.ZodOptional<z.ZodString>;
2599
+ triggerLabel: z.ZodOptional<z.ZodString>;
2600
+ credentialMode: z.ZodOptional<z.ZodEnum<{
2601
+ creator: "creator";
2602
+ system: "system";
2603
+ }>>;
2604
+ credentialUser: z.ZodOptional<z.ZodString>;
2605
+ }, z.core.$strict>>;
2606
+ }, z.core.$strict>;
2607
+ declare const conversationFeedSchema: z.ZodObject<{
2608
+ conversations: z.ZodArray<z.ZodObject<{
2609
+ displayTitle: z.ZodString;
2610
+ activityPreview: z.ZodOptional<z.ZodObject<{
2611
+ createdAt: z.ZodString;
2612
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2613
+ avatarUrl: z.ZodOptional<z.ZodString>;
2614
+ email: z.ZodOptional<z.ZodString>;
2615
+ fullName: z.ZodOptional<z.ZodString>;
2616
+ slackUserId: z.ZodOptional<z.ZodString>;
2617
+ slackUserName: z.ZodOptional<z.ZodString>;
2618
+ }, z.core.$strict>>>;
2619
+ role: z.ZodEnum<{
2620
+ assistant: "assistant";
2621
+ user: "user";
2622
+ }>;
2623
+ text: z.ZodString;
2624
+ }, z.core.$strict>>;
2625
+ cumulativeDurationMs: z.ZodNumber;
2626
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
2627
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2628
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2629
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2630
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2631
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2632
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2633
+ cost: z.ZodOptional<z.ZodObject<{
2634
+ input: z.ZodOptional<z.ZodNumber>;
2635
+ output: z.ZodOptional<z.ZodNumber>;
2636
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2637
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2638
+ total: z.ZodOptional<z.ZodNumber>;
2639
+ }, z.core.$strict>>;
2640
+ }, z.core.$strict>>;
2641
+ auxiliaryCosts: z.ZodOptional<z.ZodObject<{
2642
+ costUsd: z.ZodNumber;
2643
+ operations: z.ZodArray<z.ZodObject<{
2644
+ costUsd: z.ZodNumber;
2645
+ events: z.ZodNumber;
2646
+ name: z.ZodString;
2647
+ namespace: z.ZodString;
2648
+ }, z.core.$strict>>;
2649
+ }, z.core.$strict>>;
2650
+ childAgentTotals: z.ZodOptional<z.ZodObject<{
2651
+ auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
2652
+ count: z.ZodNumber;
2653
+ cumulativeDurationMs: z.ZodNumber;
2654
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
2655
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2656
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2657
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2658
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2659
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2660
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2661
+ cost: z.ZodOptional<z.ZodObject<{
2662
+ input: z.ZodOptional<z.ZodNumber>;
2663
+ output: z.ZodOptional<z.ZodNumber>;
2664
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2665
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2666
+ total: z.ZodOptional<z.ZodNumber>;
2667
+ }, z.core.$strict>>;
2668
+ }, z.core.$strict>>;
2669
+ }, z.core.$strict>>;
2670
+ conversationId: z.ZodString;
2671
+ isParticipant: z.ZodBoolean;
2672
+ visibility: z.ZodOptional<z.ZodEnum<{
2673
+ private: "private";
2674
+ public: "public";
2675
+ }>>;
2676
+ status: z.ZodEnum<{
2677
+ active: "active";
2678
+ completed: "completed";
2679
+ failed: "failed";
2680
+ }>;
2681
+ startedAt: z.ZodString;
2682
+ lastSeenAt: z.ZodString;
2683
+ lastProgressAt: z.ZodString;
2684
+ surface: z.ZodEnum<{
2685
+ api: "api";
2686
+ internal: "internal";
2687
+ scheduler: "scheduler";
2688
+ slack: "slack";
2689
+ }>;
2690
+ actorIdentity: z.ZodOptional<z.ZodObject<{
2691
+ avatarUrl: z.ZodOptional<z.ZodString>;
2692
+ email: z.ZodOptional<z.ZodString>;
2693
+ fullName: z.ZodOptional<z.ZodString>;
2694
+ slackUserId: z.ZodOptional<z.ZodString>;
2695
+ slackUserName: z.ZodOptional<z.ZodString>;
2696
+ }, z.core.$strict>>;
2697
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2698
+ avatarUrl: z.ZodOptional<z.ZodString>;
2699
+ email: z.ZodOptional<z.ZodString>;
2700
+ fullName: z.ZodOptional<z.ZodString>;
2701
+ slackUserId: z.ZodOptional<z.ZodString>;
2702
+ slackUserName: z.ZodOptional<z.ZodString>;
2703
+ }, z.core.$strict>>>;
2704
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2705
+ pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2706
+ channel: z.ZodOptional<z.ZodString>;
2707
+ channelName: z.ZodOptional<z.ZodString>;
2708
+ channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
2709
+ locationId: z.ZodOptional<z.ZodString>;
2710
+ sentryTraceUrl: z.ZodOptional<z.ZodString>;
2711
+ locationUrl: z.ZodOptional<z.ZodString>;
2712
+ traceId: z.ZodOptional<z.ZodString>;
2713
+ annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
2714
+ kind: z.ZodLiteral<"resource_link">;
2715
+ objectType: z.ZodOptional<z.ZodEnum<{
2716
+ automation: "automation";
2717
+ calendar_event: "calendar_event";
2718
+ code_change: "code_change";
2719
+ deployment: "deployment";
2720
+ item: "item";
2721
+ task: "task";
2722
+ }>>;
2723
+ key: z.ZodString;
2724
+ label: z.ZodString;
2725
+ url: z.ZodString;
2726
+ description: z.ZodOptional<z.ZodString>;
2727
+ status: z.ZodOptional<z.ZodEnum<{
2728
+ closed: "closed";
2729
+ draft: "draft";
2730
+ merged: "merged";
2731
+ open: "open";
2732
+ warning: "warning";
2733
+ }>>;
2734
+ }, z.core.$strict>, z.ZodObject<{
2735
+ kind: z.ZodLiteral<"object">;
2736
+ key: z.ZodString;
2737
+ label: z.ZodString;
2738
+ objectType: z.ZodEnum<{
2739
+ automation: "automation";
2740
+ calendar_event: "calendar_event";
2741
+ code_change: "code_change";
2742
+ deployment: "deployment";
2743
+ item: "item";
2744
+ task: "task";
2745
+ }>;
2746
+ title: z.ZodString;
2747
+ url: z.ZodNullable<z.ZodURL>;
2748
+ description: z.ZodOptional<z.ZodString>;
2749
+ status: z.ZodOptional<z.ZodString>;
2750
+ trigger: z.ZodOptional<z.ZodString>;
2751
+ warning: z.ZodOptional<z.ZodString>;
2752
+ displayType: z.ZodOptional<z.ZodString>;
2753
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2754
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2755
+ type: z.ZodLiteral<"code_change">;
2756
+ author: z.ZodOptional<z.ZodString>;
2757
+ sourceBranch: z.ZodOptional<z.ZodString>;
2758
+ targetBranch: z.ZodOptional<z.ZodString>;
2759
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2760
+ review: z.ZodOptional<z.ZodEnum<{
2761
+ approved: "approved";
2762
+ changes_requested: "changes_requested";
2763
+ required: "required";
2764
+ }>>;
2765
+ checks: z.ZodOptional<z.ZodObject<{
2766
+ passed: z.ZodNumber;
2767
+ failed: z.ZodNumber;
2768
+ pending: z.ZodNumber;
2769
+ }, z.core.$strict>>;
2770
+ mergeable: z.ZodOptional<z.ZodBoolean>;
2771
+ changedFiles: z.ZodOptional<z.ZodNumber>;
2772
+ additions: z.ZodOptional<z.ZodNumber>;
2773
+ deletions: z.ZodOptional<z.ZodNumber>;
2774
+ }, z.core.$strict>, z.ZodObject<{
2775
+ type: z.ZodLiteral<"task">;
2776
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2777
+ priority: z.ZodOptional<z.ZodString>;
2778
+ project: z.ZodOptional<z.ZodString>;
2779
+ cycle: z.ZodOptional<z.ZodString>;
2780
+ dueDate: z.ZodOptional<z.ZodISODate>;
2781
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2782
+ }, z.core.$strict>, z.ZodObject<{
2783
+ type: z.ZodLiteral<"deployment">;
2784
+ project: z.ZodOptional<z.ZodString>;
2785
+ environment: z.ZodOptional<z.ZodString>;
2786
+ revision: z.ZodOptional<z.ZodString>;
2787
+ branch: z.ZodOptional<z.ZodString>;
2788
+ }, z.core.$strict>, z.ZodObject<{
2789
+ type: z.ZodLiteral<"calendar_event">;
2790
+ when: z.ZodOptional<z.ZodString>;
2791
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2792
+ }, z.core.$strict>], "type">>;
2793
+ }, z.core.$strict>], "kind">, z.ZodObject<{
2794
+ plugin: z.ZodString;
2795
+ createdAt: z.ZodString;
2796
+ updatedAt: z.ZodString;
2797
+ }, z.core.$strip>>>>;
2798
+ sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2799
+ icon: z.ZodOptional<z.ZodEnum<{
2800
+ "circle-dashed": "circle-dashed";
2801
+ "circle-dot": "circle-dot";
2802
+ "circle-x": "circle-x";
2803
+ "git-merge": "git-merge";
2804
+ "git-pull-request": "git-pull-request";
2805
+ "triangle-alert": "triangle-alert";
2806
+ }>>;
2807
+ objectType: z.ZodOptional<z.ZodEnum<{
2808
+ automation: "automation";
2809
+ calendar_event: "calendar_event";
2810
+ code_change: "code_change";
2811
+ deployment: "deployment";
2812
+ item: "item";
2813
+ task: "task";
2814
+ }>>;
2815
+ status: z.ZodOptional<z.ZodString>;
2816
+ key: z.ZodString;
2817
+ label: z.ZodString;
2818
+ }, z.core.$strict>>>;
2819
+ assignedWork: z.ZodOptional<z.ZodBoolean>;
2820
+ finishedWorkAt: z.ZodOptional<z.ZodString>;
2821
+ isPriority: z.ZodOptional<z.ZodBoolean>;
2822
+ unfinishedWork: z.ZodOptional<z.ZodBoolean>;
2823
+ }, z.core.$strict>>;
2824
+ source: z.ZodLiteral<"conversation_index">;
2825
+ generatedAt: z.ZodString;
2826
+ }, z.core.$strict>;
2827
+ type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
2828
+ type ConversationTurnFailureCode = z.infer<typeof conversationTurnFailureCodeSchema>;
2829
+ type ConversationTurnFailureReason = z.infer<typeof conversationTurnFailureReasonSchema>;
2830
+ type ConversationSurface = z.infer<typeof conversationSurfaceSchema>;
2831
+ type ConversationCost = z.infer<typeof conversationCostSchema>;
2832
+ type ConversationUsage = z.infer<typeof conversationUsageSchema>;
2833
+ type ConversationAuxiliaryCosts = z.infer<typeof conversationAuxiliaryCostsSchema>;
2834
+ type ActorIdentity = z.infer<typeof actorIdentitySchema>;
2835
+ type ConversationActivityPreview = z.infer<typeof conversationActivityPreviewSchema>;
2836
+ type ConversationSummaryReport = z.infer<typeof conversationSummaryReportSchema>;
2837
+ type ConversationModelUsage = z.infer<typeof conversationModelUsageSchema>;
2838
+ type ConversationReportMessageEvent = z.infer<typeof conversationReportMessageEventSchema>;
2839
+ type ConversationReportEventData = z.infer<typeof conversationReportEventDataSchema>;
2840
+ type ConversationReportEvent = z.infer<typeof conversationReportEventSchema>;
2841
+ type ConversationEventHistory = z.infer<typeof conversationEventHistorySchema>;
2842
+ type ConversationSourceTask = z.infer<typeof conversationSourceTaskSchema>;
2843
+ type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
2844
+ type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
2845
+ type ConversationFeed = z.infer<typeof conversationFeedSchema>;
2846
+ type ConversationParams = z.infer<typeof conversationParamsSchema>;
2847
+ type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
2848
+ type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
2849
+ type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
2850
+ /** Mailbox delivery mode for one accepted inbound message. */
2851
+ declare const conversationPendingMessageDeliverySchema: z.ZodEnum<{
2852
+ defer: "defer";
2853
+ interrupt: "interrupt";
2854
+ }>;
2855
+ /** One accepted mailbox message that has not reached durable history yet. */
2856
+ declare const conversationPendingMessageSchema: z.ZodObject<{
2857
+ actorIdentity: z.ZodOptional<z.ZodObject<{
2858
+ avatarUrl: z.ZodOptional<z.ZodString>;
2859
+ email: z.ZodOptional<z.ZodString>;
2860
+ fullName: z.ZodOptional<z.ZodString>;
2861
+ slackUserId: z.ZodOptional<z.ZodString>;
2862
+ slackUserName: z.ZodOptional<z.ZodString>;
2863
+ }, z.core.$strict>>;
2864
+ actorIdentityId: z.ZodOptional<z.ZodString>;
2865
+ createdAt: z.ZodString;
2866
+ delivery: z.ZodEnum<{
2867
+ defer: "defer";
2868
+ interrupt: "interrupt";
2869
+ }>;
2870
+ inboundMessageId: z.ZodString;
2871
+ messageId: z.ZodString;
2872
+ receivedAt: z.ZodString;
2873
+ role: z.ZodLiteral<"user">;
2874
+ source: z.ZodEnum<{
2875
+ slack: "slack";
2876
+ web: "web";
2877
+ }>;
2878
+ text: z.ZodOptional<z.ZodString>;
2879
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2880
+ avatarUrl: z.ZodOptional<z.ZodString>;
2881
+ email: z.ZodOptional<z.ZodString>;
2882
+ fullName: z.ZodOptional<z.ZodString>;
2883
+ slackUserId: z.ZodOptional<z.ZodString>;
2884
+ slackUserName: z.ZodOptional<z.ZodString>;
2885
+ }, z.core.$strict>>>;
2886
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2887
+ id: z.ZodString;
2888
+ filename: z.ZodString;
2889
+ contentType: z.ZodString;
2890
+ bytes: z.ZodNumber;
2891
+ }, z.core.$strict>>>;
2892
+ reviewItemChange: z.ZodOptional<z.ZodObject<{
2893
+ kind: z.ZodEnum<{
2894
+ dismissed: "dismissed";
2895
+ submitted: "submitted";
2896
+ taken: "taken";
2897
+ }>;
2898
+ reviewItemId: z.ZodString;
2899
+ }, z.core.$strict>>;
2900
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
2901
+ }, z.core.$strict>;
2902
+ /** Participant-only authorization prompt for a parked web turn. */
2903
+ declare const conversationPendingAuthorizationSchema: z.ZodObject<{
2904
+ authorizationUrl: z.ZodString;
2905
+ completionText: z.ZodString;
2906
+ label: z.ZodString;
2907
+ }, z.core.$strict>;
2908
+ /** Bounded mailbox snapshot for one conversation transcript. */
2909
+ declare const conversationPendingMessagesReportSchema: z.ZodObject<{
2910
+ authorization: z.ZodOptional<z.ZodObject<{
2911
+ authorizationUrl: z.ZodString;
2912
+ completionText: z.ZodString;
2913
+ label: z.ZodString;
2914
+ }, z.core.$strict>>;
2915
+ conversationId: z.ZodString;
2916
+ generatedAt: z.ZodString;
2917
+ messages: z.ZodArray<z.ZodObject<{
2918
+ actorIdentity: z.ZodOptional<z.ZodObject<{
2919
+ avatarUrl: z.ZodOptional<z.ZodString>;
2920
+ email: z.ZodOptional<z.ZodString>;
2921
+ fullName: z.ZodOptional<z.ZodString>;
2922
+ slackUserId: z.ZodOptional<z.ZodString>;
2923
+ slackUserName: z.ZodOptional<z.ZodString>;
2924
+ }, z.core.$strict>>;
2925
+ actorIdentityId: z.ZodOptional<z.ZodString>;
2926
+ createdAt: z.ZodString;
2927
+ delivery: z.ZodEnum<{
2928
+ defer: "defer";
2929
+ interrupt: "interrupt";
2930
+ }>;
2931
+ inboundMessageId: z.ZodString;
2932
+ messageId: z.ZodString;
2933
+ receivedAt: z.ZodString;
2934
+ role: z.ZodLiteral<"user">;
2935
+ source: z.ZodEnum<{
2936
+ slack: "slack";
2937
+ web: "web";
2938
+ }>;
2939
+ text: z.ZodOptional<z.ZodString>;
2940
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2941
+ avatarUrl: z.ZodOptional<z.ZodString>;
2942
+ email: z.ZodOptional<z.ZodString>;
2943
+ fullName: z.ZodOptional<z.ZodString>;
2944
+ slackUserId: z.ZodOptional<z.ZodString>;
2945
+ slackUserName: z.ZodOptional<z.ZodString>;
2946
+ }, z.core.$strict>>>;
2947
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2948
+ id: z.ZodString;
2949
+ filename: z.ZodString;
2950
+ contentType: z.ZodString;
2951
+ bytes: z.ZodNumber;
2952
+ }, z.core.$strict>>>;
2953
+ reviewItemChange: z.ZodOptional<z.ZodObject<{
2954
+ kind: z.ZodEnum<{
2955
+ dismissed: "dismissed";
2956
+ submitted: "submitted";
2957
+ taken: "taken";
2958
+ }>;
2959
+ reviewItemId: z.ZodString;
2960
+ }, z.core.$strict>>;
2961
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
2962
+ }, z.core.$strict>>;
2963
+ }, z.core.$strict>;
2964
+ /** Detail report with the mailbox that was read before its history. */
2965
+ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
2966
+ displayTitle: z.ZodString;
2967
+ activityPreview: z.ZodOptional<z.ZodObject<{
2968
+ createdAt: z.ZodString;
2969
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2970
+ avatarUrl: z.ZodOptional<z.ZodString>;
2971
+ email: z.ZodOptional<z.ZodString>;
2972
+ fullName: z.ZodOptional<z.ZodString>;
2973
+ slackUserId: z.ZodOptional<z.ZodString>;
2974
+ slackUserName: z.ZodOptional<z.ZodString>;
2975
+ }, z.core.$strict>>>;
2976
+ role: z.ZodEnum<{
2977
+ assistant: "assistant";
2978
+ user: "user";
2979
+ }>;
2980
+ text: z.ZodString;
2981
+ }, z.core.$strict>>;
2982
+ cumulativeDurationMs: z.ZodNumber;
2983
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
2984
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2985
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2986
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2987
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2988
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2989
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2990
+ cost: z.ZodOptional<z.ZodObject<{
2991
+ input: z.ZodOptional<z.ZodNumber>;
2992
+ output: z.ZodOptional<z.ZodNumber>;
2993
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2994
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2995
+ total: z.ZodOptional<z.ZodNumber>;
2996
+ }, z.core.$strict>>;
2997
+ }, z.core.$strict>>;
2998
+ auxiliaryCosts: z.ZodOptional<z.ZodObject<{
2999
+ costUsd: z.ZodNumber;
3000
+ operations: z.ZodArray<z.ZodObject<{
3001
+ costUsd: z.ZodNumber;
3002
+ events: z.ZodNumber;
3003
+ name: z.ZodString;
3004
+ namespace: z.ZodString;
3005
+ }, z.core.$strict>>;
3006
+ }, z.core.$strict>>;
3007
+ childAgentTotals: z.ZodOptional<z.ZodObject<{
3008
+ auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
3009
+ count: z.ZodNumber;
3010
+ cumulativeDurationMs: z.ZodNumber;
3011
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
3012
+ inputTokens: z.ZodOptional<z.ZodNumber>;
3013
+ outputTokens: z.ZodOptional<z.ZodNumber>;
3014
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3015
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
3016
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
3017
+ totalTokens: z.ZodOptional<z.ZodNumber>;
3018
+ cost: z.ZodOptional<z.ZodObject<{
3019
+ input: z.ZodOptional<z.ZodNumber>;
3020
+ output: z.ZodOptional<z.ZodNumber>;
3021
+ cacheRead: z.ZodOptional<z.ZodNumber>;
3022
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
3023
+ total: z.ZodOptional<z.ZodNumber>;
3024
+ }, z.core.$strict>>;
3025
+ }, z.core.$strict>>;
3026
+ }, z.core.$strict>>;
3027
+ conversationId: z.ZodString;
3028
+ isParticipant: z.ZodBoolean;
3029
+ visibility: z.ZodOptional<z.ZodEnum<{
3030
+ private: "private";
3031
+ public: "public";
3032
+ }>>;
3033
+ status: z.ZodEnum<{
3034
+ active: "active";
3035
+ completed: "completed";
3036
+ failed: "failed";
3037
+ }>;
3038
+ startedAt: z.ZodString;
3039
+ lastSeenAt: z.ZodString;
3040
+ lastProgressAt: z.ZodString;
3041
+ surface: z.ZodEnum<{
1623
3042
  api: "api";
1624
3043
  internal: "internal";
1625
3044
  scheduler: "scheduler";
@@ -1767,382 +3186,373 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1767
3186
  readPosition: z.ZodOptional<z.ZodObject<{
1768
3187
  lastReadSeq: z.ZodNumber;
1769
3188
  }, z.core.$strict>>;
1770
- forkedFromConversationId: z.ZodOptional<z.ZodString>;
1771
- forkedFromTitle: z.ZodOptional<z.ZodString>;
1772
- forks: z.ZodOptional<z.ZodArray<z.ZodString>>;
1773
- brief: z.ZodOptional<z.ZodObject<{
1774
- content: z.ZodObject<{
1775
- schemaVersion: z.ZodLiteral<1>;
1776
- record: z.ZodObject<{
1777
- startedAt: z.ZodString;
1778
- lastActivityAt: z.ZodString;
1779
- durationMs: z.ZodNumber;
1780
- participants: z.ZodArray<z.ZodObject<{
1781
- name: z.ZodString;
1782
- messages: z.ZodNumber;
1783
- }, z.core.$strict>>;
1784
- userMessages: z.ZodNumber;
1785
- assistantMessages: z.ZodNumber;
1786
- toolResults: z.ZodNumber;
1787
- events: z.ZodNumber;
1788
- turns: z.ZodOptional<z.ZodNumber>;
1789
- location: z.ZodOptional<z.ZodObject<{
1790
- provider: z.ZodString;
1791
- channelName: z.ZodOptional<z.ZodString>;
1792
- }, z.core.$strict>>;
1793
- codeChanges: z.ZodArray<z.ZodObject<{
1794
- repository: z.ZodString;
1795
- number: z.ZodNumber;
1796
- title: z.ZodOptional<z.ZodString>;
1797
- url: z.ZodString;
1798
- state: z.ZodEnum<{
1799
- closed: "closed";
1800
- merged: "merged";
1801
- open: "open";
1802
- }>;
1803
- openedAt: z.ZodOptional<z.ZodString>;
1804
- mergedAt: z.ZodOptional<z.ZodString>;
1805
- closedAt: z.ZodOptional<z.ZodString>;
1806
- }, z.core.$strict>>;
1807
- }, z.core.$strict>;
1808
- summary: z.ZodString;
1809
- intent: z.ZodString;
1810
- outcome: z.ZodObject<{
1811
- status: z.ZodEnum<{
1812
- abandoned: "abandoned";
1813
- answered: "answered";
1814
- blocked: "blocked";
1815
- done: "done";
1816
- in_progress: "in_progress";
1817
- partial: "partial";
1818
- }>;
1819
- text: z.ZodString;
1820
- }, z.core.$strict>;
1821
- decisions: z.ZodArray<z.ZodObject<{
1822
- text: z.ZodString;
1823
- by: z.ZodOptional<z.ZodString>;
1824
- kind: z.ZodEnum<{
1825
- assumed: "assumed";
1826
- confirmed: "confirmed";
1827
- stated: "stated";
1828
- }>;
1829
- }, z.core.$strict>>;
1830
- openDecisions: z.ZodArray<z.ZodObject<{
1831
- text: z.ZodString;
1832
- owner: z.ZodOptional<z.ZodString>;
1833
- }, z.core.$strict>>;
1834
- facts: z.ZodArray<z.ZodString>;
1835
- links: z.ZodArray<z.ZodObject<{
1836
- kind: z.ZodEnum<{
1837
- code_change: "code_change";
1838
- resource: "resource";
1839
- url: "url";
3189
+ unreadCursor: z.ZodOptional<z.ZodString>;
3190
+ unreadPage: z.ZodOptional<z.ZodObject<{
3191
+ events: z.ZodArray<z.ZodObject<{
3192
+ seq: z.ZodNumber;
3193
+ createdAt: z.ZodString;
3194
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
3195
+ type: z.ZodLiteral<"message">;
3196
+ messageId: z.ZodString;
3197
+ role: z.ZodEnum<{
3198
+ assistant: "assistant";
3199
+ system: "system";
3200
+ user: "user";
1840
3201
  }>;
1841
- label: z.ZodString;
1842
- url: z.ZodString;
1843
- status: z.ZodOptional<z.ZodString>;
1844
- }, z.core.$strict>>;
1845
- keywords: z.ZodArray<z.ZodString>;
1846
- }, z.core.$strict>;
1847
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1848
- avatarUrl: z.ZodOptional<z.ZodString>;
1849
- email: z.ZodOptional<z.ZodString>;
1850
- fullName: z.ZodOptional<z.ZodString>;
1851
- slackUserId: z.ZodOptional<z.ZodString>;
1852
- slackUserName: z.ZodOptional<z.ZodString>;
1853
- }, z.core.$strict>>>;
1854
- updatedAt: z.ZodString;
1855
- version: z.ZodNumber;
1856
- }, z.core.$strict>>;
1857
- modelUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
1858
- modelId: z.ZodString;
1859
- usage: z.ZodObject<{
1860
- inputTokens: z.ZodOptional<z.ZodNumber>;
1861
- outputTokens: z.ZodOptional<z.ZodNumber>;
1862
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1863
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
1864
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
1865
- totalTokens: z.ZodOptional<z.ZodNumber>;
1866
- cost: z.ZodOptional<z.ZodObject<{
1867
- input: z.ZodOptional<z.ZodNumber>;
1868
- output: z.ZodOptional<z.ZodNumber>;
1869
- cacheRead: z.ZodOptional<z.ZodNumber>;
1870
- cacheWrite: z.ZodOptional<z.ZodNumber>;
1871
- total: z.ZodOptional<z.ZodNumber>;
1872
- }, z.core.$strict>>;
1873
- }, z.core.$strict>;
1874
- }, z.core.$strict>>>;
1875
- authors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1876
- avatarUrl: z.ZodOptional<z.ZodString>;
1877
- email: z.ZodOptional<z.ZodString>;
1878
- fullName: z.ZodOptional<z.ZodString>;
1879
- slackUserId: z.ZodOptional<z.ZodString>;
1880
- slackUserName: z.ZodOptional<z.ZodString>;
1881
- }, z.core.$strict>>>;
1882
- events: z.ZodArray<z.ZodObject<{
1883
- seq: z.ZodNumber;
1884
- createdAt: z.ZodString;
1885
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1886
- type: z.ZodLiteral<"message">;
1887
- messageId: z.ZodString;
1888
- role: z.ZodEnum<{
1889
- assistant: "assistant";
1890
- system: "system";
1891
- user: "user";
1892
- }>;
1893
- source: z.ZodOptional<z.ZodEnum<{
1894
- slack: "slack";
1895
- web: "web";
1896
- }>>;
1897
- actorIdentity: z.ZodOptional<z.ZodObject<{
1898
- avatarUrl: z.ZodOptional<z.ZodString>;
1899
- email: z.ZodOptional<z.ZodString>;
1900
- fullName: z.ZodOptional<z.ZodString>;
1901
- slackUserId: z.ZodOptional<z.ZodString>;
1902
- slackUserName: z.ZodOptional<z.ZodString>;
1903
- }, z.core.$strict>>;
1904
- actorIdentityId: z.ZodOptional<z.ZodString>;
1905
- agentInvocationId: z.ZodOptional<z.ZodString>;
1906
- eventType: z.ZodOptional<z.ZodString>;
1907
- eventObjectType: z.ZodOptional<z.ZodEnum<{
1908
- automation: "automation";
1909
- calendar_event: "calendar_event";
1910
- code_change: "code_change";
1911
- deployment: "deployment";
1912
- item: "item";
1913
- task: "task";
1914
- }>>;
1915
- explicitMention: z.ZodOptional<z.ZodBoolean>;
1916
- trustedSummary: z.ZodOptional<z.ZodString>;
1917
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1918
- eventType: z.ZodString;
1919
- label: z.ZodOptional<z.ZodString>;
1920
- objectType: z.ZodOptional<z.ZodEnum<{
3202
+ source: z.ZodOptional<z.ZodEnum<{
3203
+ slack: "slack";
3204
+ web: "web";
3205
+ }>>;
3206
+ actorIdentity: z.ZodOptional<z.ZodObject<{
3207
+ avatarUrl: z.ZodOptional<z.ZodString>;
3208
+ email: z.ZodOptional<z.ZodString>;
3209
+ fullName: z.ZodOptional<z.ZodString>;
3210
+ slackUserId: z.ZodOptional<z.ZodString>;
3211
+ slackUserName: z.ZodOptional<z.ZodString>;
3212
+ }, z.core.$strict>>;
3213
+ actorIdentityId: z.ZodOptional<z.ZodString>;
3214
+ agentInvocationId: z.ZodOptional<z.ZodString>;
3215
+ eventType: z.ZodOptional<z.ZodString>;
3216
+ eventObjectType: z.ZodOptional<z.ZodEnum<{
1921
3217
  automation: "automation";
1922
3218
  calendar_event: "calendar_event";
1923
3219
  code_change: "code_change";
1924
3220
  deployment: "deployment";
1925
3221
  item: "item";
1926
- task: "task";
1927
- }>>;
1928
- trustedSummary: z.ZodOptional<z.ZodString>;
1929
- }, z.core.$strict>>>;
1930
- cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
1931
- plugin: z.ZodString;
1932
- key: z.ZodString;
1933
- kind: z.ZodLiteral<"object">;
1934
- }, z.core.$strict>>>;
1935
- reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1936
- kind: z.ZodEnum<{
1937
- dismissed: "dismissed";
1938
- submitted: "submitted";
1939
- taken: "taken";
1940
- }>;
1941
- reviewItemId: z.ZodString;
1942
- }, z.core.$strict>>>;
1943
- text: z.ZodOptional<z.ZodString>;
1944
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1945
- id: z.ZodString;
1946
- filename: z.ZodString;
1947
- contentType: z.ZodString;
1948
- bytes: z.ZodNumber;
1949
- }, z.core.$strict>>>;
1950
- redacted: z.ZodOptional<z.ZodLiteral<true>>;
1951
- }, z.core.$strict>, z.ZodObject<{
1952
- type: z.ZodLiteral<"message_handled">;
1953
- messageId: z.ZodString;
1954
- }, z.core.$strict>, z.ZodObject<{
1955
- type: z.ZodLiteral<"assistant_message">;
1956
- parts: z.ZodArray<z.ZodObject<{
1957
- type: z.ZodLiteral<"reasoning">;
3222
+ task: "task";
3223
+ }>>;
3224
+ explicitMention: z.ZodOptional<z.ZodBoolean>;
3225
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
3226
+ trustedSummary: z.ZodOptional<z.ZodString>;
3227
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
3228
+ eventType: z.ZodString;
3229
+ label: z.ZodOptional<z.ZodString>;
3230
+ objectType: z.ZodOptional<z.ZodEnum<{
3231
+ automation: "automation";
3232
+ calendar_event: "calendar_event";
3233
+ code_change: "code_change";
3234
+ deployment: "deployment";
3235
+ item: "item";
3236
+ task: "task";
3237
+ }>>;
3238
+ trustedSummary: z.ZodOptional<z.ZodString>;
3239
+ }, z.core.$strict>>>;
3240
+ cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
3241
+ plugin: z.ZodString;
3242
+ key: z.ZodString;
3243
+ kind: z.ZodLiteral<"object">;
3244
+ }, z.core.$strict>>>;
3245
+ reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3246
+ kind: z.ZodEnum<{
3247
+ dismissed: "dismissed";
3248
+ submitted: "submitted";
3249
+ taken: "taken";
3250
+ }>;
3251
+ reviewItemId: z.ZodString;
3252
+ }, z.core.$strict>>>;
1958
3253
  text: z.ZodOptional<z.ZodString>;
3254
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3255
+ id: z.ZodString;
3256
+ filename: z.ZodString;
3257
+ contentType: z.ZodString;
3258
+ bytes: z.ZodNumber;
3259
+ }, z.core.$strict>>>;
1959
3260
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
1960
- }, z.core.$strict>>;
1961
- }, z.core.$strict>, z.ZodObject<{
1962
- type: z.ZodLiteral<"tool_calls">;
1963
- calls: z.ZodArray<z.ZodObject<{
1964
- toolCallId: z.ZodString;
3261
+ }, z.core.$strict>, z.ZodObject<{
3262
+ type: z.ZodLiteral<"message_handled">;
3263
+ messageId: z.ZodString;
3264
+ }, z.core.$strict>, z.ZodObject<{
3265
+ type: z.ZodLiteral<"assistant_message">;
3266
+ parts: z.ZodArray<z.ZodObject<{
3267
+ type: z.ZodLiteral<"reasoning">;
3268
+ text: z.ZodOptional<z.ZodString>;
3269
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
3270
+ }, z.core.$strict>>;
3271
+ }, z.core.$strict>, z.ZodObject<{
3272
+ type: z.ZodLiteral<"tool_calls">;
3273
+ calls: z.ZodArray<z.ZodObject<{
3274
+ toolCallId: z.ZodString;
3275
+ name: z.ZodString;
3276
+ status: z.ZodEnum<{
3277
+ completed: "completed";
3278
+ error: "error";
3279
+ running: "running";
3280
+ }>;
3281
+ startedAt: z.ZodOptional<z.ZodString>;
3282
+ startedSeq: z.ZodOptional<z.ZodNumber>;
3283
+ input: z.ZodOptional<z.ZodUnknown>;
3284
+ output: z.ZodOptional<z.ZodUnknown>;
3285
+ }, z.core.$strict>>;
3286
+ assistant: z.ZodOptional<z.ZodObject<{
3287
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3288
+ type: z.ZodLiteral<"reasoning">;
3289
+ text: z.ZodOptional<z.ZodString>;
3290
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
3291
+ }, z.core.$strict>, z.ZodObject<{
3292
+ type: z.ZodLiteral<"tool_call">;
3293
+ toolCallId: z.ZodString;
3294
+ }, z.core.$strict>], "type">>;
3295
+ }, z.core.$strict>>;
3296
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3297
+ type: z.ZodLiteral<"turn_lifecycle">;
3298
+ turnId: z.ZodString;
3299
+ state: z.ZodEnum<{
3300
+ blocked: "blocked";
3301
+ no_reply: "no_reply";
3302
+ succeeded: "succeeded";
3303
+ }>;
3304
+ }, z.core.$strict>, z.ZodObject<{
3305
+ type: z.ZodLiteral<"turn_lifecycle">;
3306
+ turnId: z.ZodString;
3307
+ state: z.ZodLiteral<"started">;
3308
+ inputMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3309
+ }, z.core.$strict>, z.ZodObject<{
3310
+ type: z.ZodLiteral<"turn_lifecycle">;
3311
+ turnId: z.ZodString;
3312
+ state: z.ZodLiteral<"failed">;
3313
+ failureCode: z.ZodEnum<{
3314
+ agent_run_failed: "agent_run_failed";
3315
+ delivery_failed: "delivery_failed";
3316
+ model_execution_failed: "model_execution_failed";
3317
+ persistence_failed: "persistence_failed";
3318
+ }>;
3319
+ failureReason: z.ZodOptional<z.ZodEnum<{
3320
+ auth: "auth";
3321
+ capacity: "capacity";
3322
+ content_policy: "content_policy";
3323
+ empty_output: "empty_output";
3324
+ invalid_request: "invalid_request";
3325
+ invalid_response: "invalid_response";
3326
+ network: "network";
3327
+ permission: "permission";
3328
+ quota: "quota";
3329
+ rate_limit: "rate_limit";
3330
+ server: "server";
3331
+ suppressed_output: "suppressed_output";
3332
+ timeout: "timeout";
3333
+ tool_errors: "tool_errors";
3334
+ unknown: "unknown";
3335
+ }>>;
3336
+ eventId: z.ZodOptional<z.ZodString>;
3337
+ sentryEventUrl: z.ZodOptional<z.ZodString>;
3338
+ }, z.core.$strict>], "state">, z.ZodObject<{
3339
+ type: z.ZodLiteral<"turn_context">;
3340
+ turnId: z.ZodString;
3341
+ pluginName: z.ZodString;
3342
+ kind: z.ZodString;
3343
+ version: z.ZodNumber;
3344
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3345
+ }, z.core.$strict>, z.ZodObject<{
3346
+ type: z.ZodLiteral<"structured_event">;
3347
+ namespace: z.ZodString;
1965
3348
  name: z.ZodString;
3349
+ version: z.ZodNumber;
3350
+ turnId: z.ZodOptional<z.ZodString>;
3351
+ presentation: z.ZodObject<{
3352
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
3353
+ content: z.ZodOptional<z.ZodString>;
3354
+ description: z.ZodOptional<z.ZodString>;
3355
+ metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
3356
+ title: z.ZodString;
3357
+ }, z.core.$strict>>>;
3358
+ icon: z.ZodOptional<z.ZodEnum<{
3359
+ activity: "activity";
3360
+ brain: "brain";
3361
+ calendar: "calendar";
3362
+ check: "check";
3363
+ database: "database";
3364
+ info: "info";
3365
+ key: "key";
3366
+ link: "link";
3367
+ sparkles: "sparkles";
3368
+ warning: "warning";
3369
+ }>>;
3370
+ preview: z.ZodOptional<z.ZodString>;
3371
+ title: z.ZodString;
3372
+ }, z.core.$strict>;
3373
+ }, z.core.$strict>, z.ZodObject<{
3374
+ type: z.ZodLiteral<"attachments_delivered">;
3375
+ attachments: z.ZodArray<z.ZodObject<{
3376
+ id: z.ZodString;
3377
+ filename: z.ZodString;
3378
+ contentType: z.ZodString;
3379
+ bytes: z.ZodNumber;
3380
+ }, z.core.$strict>>;
3381
+ }, z.core.$strict>, z.ZodObject<{
3382
+ type: z.ZodLiteral<"guardian_action_reviewed">;
3383
+ turnId: z.ZodString;
3384
+ toolCallId: z.ZodString;
3385
+ toolName: z.ZodString;
3386
+ decision: z.ZodEnum<{
3387
+ allow: "allow";
3388
+ ask: "ask";
3389
+ deny: "deny";
3390
+ }>;
3391
+ riskLevel: z.ZodEnum<{
3392
+ critical: "critical";
3393
+ high: "high";
3394
+ low: "low";
3395
+ medium: "medium";
3396
+ }>;
3397
+ userAuthorization: z.ZodEnum<{
3398
+ high: "high";
3399
+ low: "low";
3400
+ medium: "medium";
3401
+ unknown: "unknown";
3402
+ }>;
3403
+ }, z.core.$strict>, z.ZodObject<{
3404
+ type: z.ZodLiteral<"compaction">;
3405
+ modelId: z.ZodOptional<z.ZodString>;
3406
+ summary: z.ZodOptional<z.ZodString>;
3407
+ details: z.ZodOptional<z.ZodObject<{
3408
+ reason: z.ZodLiteral<"capacity">;
3409
+ estimatedInputTokens: z.ZodNumber;
3410
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
3411
+ triggerTokens: z.ZodNumber;
3412
+ inputLimitTokens: z.ZodNumber;
3413
+ inputMessageCount: z.ZodNumber;
3414
+ retainedMessageCount: z.ZodNumber;
3415
+ summaryChars: z.ZodNumber;
3416
+ }, z.core.$strict>>;
3417
+ }, z.core.$strict>, z.ZodObject<{
3418
+ type: z.ZodLiteral<"subagent">;
3419
+ startedSeq: z.ZodNumber;
3420
+ startedAt: z.ZodString;
3421
+ childConversationId: z.ZodString;
3422
+ subagentKind: z.ZodString;
3423
+ agentName: z.ZodOptional<z.ZodString>;
3424
+ task: z.ZodOptional<z.ZodString>;
3425
+ title: z.ZodOptional<z.ZodString>;
3426
+ parentToolCallId: z.ZodOptional<z.ZodString>;
1966
3427
  status: z.ZodEnum<{
3428
+ aborted: "aborted";
3429
+ blocked: "blocked";
1967
3430
  completed: "completed";
1968
3431
  error: "error";
1969
3432
  running: "running";
1970
3433
  }>;
1971
- startedAt: z.ZodOptional<z.ZodString>;
1972
- startedSeq: z.ZodOptional<z.ZodNumber>;
1973
- input: z.ZodOptional<z.ZodUnknown>;
1974
- output: z.ZodOptional<z.ZodUnknown>;
3434
+ }, z.core.$strict>], "type">;
3435
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3436
+ avatarUrl: z.ZodOptional<z.ZodString>;
3437
+ email: z.ZodOptional<z.ZodString>;
3438
+ fullName: z.ZodOptional<z.ZodString>;
3439
+ slackUserId: z.ZodOptional<z.ZodString>;
3440
+ slackUserName: z.ZodOptional<z.ZodString>;
3441
+ }, z.core.$strict>>>;
3442
+ model: z.ZodOptional<z.ZodObject<{
3443
+ modelId: z.ZodString;
1975
3444
  }, z.core.$strict>>;
1976
- assistant: z.ZodOptional<z.ZodObject<{
1977
- parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1978
- type: z.ZodLiteral<"reasoning">;
1979
- text: z.ZodOptional<z.ZodString>;
1980
- redacted: z.ZodOptional<z.ZodLiteral<true>>;
1981
- }, z.core.$strict>, z.ZodObject<{
1982
- type: z.ZodLiteral<"tool_call">;
1983
- toolCallId: z.ZodString;
1984
- }, z.core.$strict>], "type">>;
3445
+ modelCall: z.ZodOptional<z.ZodObject<{
3446
+ provider: z.ZodOptional<z.ZodString>;
3447
+ api: z.ZodOptional<z.ZodString>;
3448
+ stopReason: z.ZodOptional<z.ZodString>;
3449
+ usage: z.ZodOptional<z.ZodObject<{
3450
+ inputTokens: z.ZodOptional<z.ZodNumber>;
3451
+ outputTokens: z.ZodOptional<z.ZodNumber>;
3452
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3453
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
3454
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
3455
+ totalTokens: z.ZodOptional<z.ZodNumber>;
3456
+ cost: z.ZodOptional<z.ZodObject<{
3457
+ input: z.ZodOptional<z.ZodNumber>;
3458
+ output: z.ZodOptional<z.ZodNumber>;
3459
+ cacheRead: z.ZodOptional<z.ZodNumber>;
3460
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
3461
+ total: z.ZodOptional<z.ZodNumber>;
3462
+ }, z.core.$strict>>;
3463
+ }, z.core.$strict>>;
1985
3464
  }, z.core.$strict>>;
1986
- }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1987
- type: z.ZodLiteral<"turn_lifecycle">;
1988
- turnId: z.ZodString;
1989
- state: z.ZodEnum<{
1990
- blocked: "blocked";
1991
- no_reply: "no_reply";
1992
- succeeded: "succeeded";
1993
- }>;
1994
- }, z.core.$strict>, z.ZodObject<{
1995
- type: z.ZodLiteral<"turn_lifecycle">;
1996
- turnId: z.ZodString;
1997
- state: z.ZodLiteral<"started">;
1998
- inputMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3465
+ }, z.core.$strict>>;
3466
+ eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
3467
+ status: z.ZodLiteral<"available">;
1999
3468
  }, z.core.$strict>, z.ZodObject<{
2000
- type: z.ZodLiteral<"turn_lifecycle">;
2001
- turnId: z.ZodString;
2002
- state: z.ZodLiteral<"failed">;
2003
- failureCode: z.ZodEnum<{
2004
- agent_run_failed: "agent_run_failed";
2005
- delivery_failed: "delivery_failed";
2006
- model_execution_failed: "model_execution_failed";
2007
- persistence_failed: "persistence_failed";
2008
- }>;
2009
- failureReason: z.ZodOptional<z.ZodEnum<{
2010
- auth: "auth";
2011
- capacity: "capacity";
2012
- content_policy: "content_policy";
2013
- empty_output: "empty_output";
2014
- invalid_request: "invalid_request";
2015
- invalid_response: "invalid_response";
2016
- network: "network";
2017
- permission: "permission";
2018
- quota: "quota";
2019
- rate_limit: "rate_limit";
2020
- server: "server";
2021
- suppressed_output: "suppressed_output";
2022
- timeout: "timeout";
2023
- tool_errors: "tool_errors";
2024
- unknown: "unknown";
2025
- }>>;
2026
- eventId: z.ZodOptional<z.ZodString>;
2027
- sentryEventUrl: z.ZodOptional<z.ZodString>;
2028
- }, z.core.$strict>], "state">, z.ZodObject<{
2029
- type: z.ZodLiteral<"turn_context">;
2030
- turnId: z.ZodString;
2031
- pluginName: z.ZodString;
2032
- kind: z.ZodString;
2033
- version: z.ZodNumber;
2034
- content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3469
+ status: z.ZodLiteral<"redacted">;
3470
+ reason: z.ZodLiteral<"non_public_conversation">;
2035
3471
  }, z.core.$strict>, z.ZodObject<{
2036
- type: z.ZodLiteral<"structured_event">;
2037
- namespace: z.ZodString;
2038
- name: z.ZodString;
2039
- version: z.ZodNumber;
2040
- turnId: z.ZodOptional<z.ZodString>;
2041
- presentation: z.ZodObject<{
2042
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
2043
- content: z.ZodOptional<z.ZodString>;
2044
- description: z.ZodOptional<z.ZodString>;
2045
- metadata: z.ZodOptional<z.ZodArray<z.ZodString>>;
2046
- title: z.ZodString;
2047
- }, z.core.$strict>>>;
2048
- icon: z.ZodOptional<z.ZodEnum<{
2049
- activity: "activity";
2050
- brain: "brain";
2051
- calendar: "calendar";
2052
- check: "check";
2053
- database: "database";
2054
- info: "info";
2055
- key: "key";
2056
- link: "link";
2057
- sparkles: "sparkles";
2058
- warning: "warning";
2059
- }>>;
2060
- preview: z.ZodOptional<z.ZodString>;
2061
- title: z.ZodString;
3472
+ status: z.ZodLiteral<"expired">;
3473
+ expiredAt: z.ZodString;
3474
+ }, z.core.$strict>], "status">;
3475
+ previousCursor: z.ZodOptional<z.ZodString>;
3476
+ nextCursor: z.ZodOptional<z.ZodString>;
3477
+ generatedAt: z.ZodString;
3478
+ }, z.core.$strict>>;
3479
+ forkedFromConversationId: z.ZodOptional<z.ZodString>;
3480
+ forkedFromTitle: z.ZodOptional<z.ZodString>;
3481
+ forks: z.ZodOptional<z.ZodArray<z.ZodString>>;
3482
+ brief: z.ZodOptional<z.ZodObject<{
3483
+ content: z.ZodObject<{
3484
+ schemaVersion: z.ZodLiteral<1>;
3485
+ record: z.ZodObject<{
3486
+ startedAt: z.ZodString;
3487
+ lastActivityAt: z.ZodString;
3488
+ durationMs: z.ZodNumber;
3489
+ participants: z.ZodArray<z.ZodObject<{
3490
+ name: z.ZodString;
3491
+ messages: z.ZodNumber;
3492
+ }, z.core.$strict>>;
3493
+ userMessages: z.ZodNumber;
3494
+ assistantMessages: z.ZodNumber;
3495
+ toolResults: z.ZodNumber;
3496
+ events: z.ZodNumber;
3497
+ turns: z.ZodOptional<z.ZodNumber>;
3498
+ location: z.ZodOptional<z.ZodObject<{
3499
+ provider: z.ZodString;
3500
+ channelName: z.ZodOptional<z.ZodString>;
3501
+ }, z.core.$strict>>;
3502
+ codeChanges: z.ZodArray<z.ZodObject<{
3503
+ repository: z.ZodString;
3504
+ number: z.ZodNumber;
3505
+ title: z.ZodOptional<z.ZodString>;
3506
+ url: z.ZodString;
3507
+ state: z.ZodEnum<{
3508
+ closed: "closed";
3509
+ merged: "merged";
3510
+ open: "open";
3511
+ }>;
3512
+ openedAt: z.ZodOptional<z.ZodString>;
3513
+ mergedAt: z.ZodOptional<z.ZodString>;
3514
+ closedAt: z.ZodOptional<z.ZodString>;
3515
+ }, z.core.$strict>>;
2062
3516
  }, z.core.$strict>;
2063
- }, z.core.$strict>, z.ZodObject<{
2064
- type: z.ZodLiteral<"attachments_delivered">;
2065
- attachments: z.ZodArray<z.ZodObject<{
2066
- id: z.ZodString;
2067
- filename: z.ZodString;
2068
- contentType: z.ZodString;
2069
- bytes: z.ZodNumber;
3517
+ summary: z.ZodString;
3518
+ intent: z.ZodString;
3519
+ outcome: z.ZodObject<{
3520
+ status: z.ZodEnum<{
3521
+ abandoned: "abandoned";
3522
+ answered: "answered";
3523
+ blocked: "blocked";
3524
+ done: "done";
3525
+ in_progress: "in_progress";
3526
+ partial: "partial";
3527
+ }>;
3528
+ text: z.ZodString;
3529
+ }, z.core.$strict>;
3530
+ decisions: z.ZodArray<z.ZodObject<{
3531
+ text: z.ZodString;
3532
+ by: z.ZodOptional<z.ZodString>;
3533
+ kind: z.ZodEnum<{
3534
+ assumed: "assumed";
3535
+ confirmed: "confirmed";
3536
+ stated: "stated";
3537
+ }>;
2070
3538
  }, z.core.$strict>>;
2071
- }, z.core.$strict>, z.ZodObject<{
2072
- type: z.ZodLiteral<"turn_routed">;
2073
- turnId: z.ZodString;
2074
- modelProfile: z.ZodString;
2075
- modelId: z.ZodString;
2076
- costUsd: z.ZodOptional<z.ZodNumber>;
2077
- reasoningLevel: z.ZodString;
2078
- confidence: z.ZodOptional<z.ZodNumber>;
2079
- source: z.ZodEnum<{
2080
- configured: "configured";
2081
- inherited: "inherited";
2082
- router: "router";
2083
- }>;
2084
- }, z.core.$strict>, z.ZodObject<{
2085
- type: z.ZodLiteral<"guardian_action_reviewed">;
2086
- turnId: z.ZodString;
2087
- toolCallId: z.ZodString;
2088
- toolName: z.ZodString;
2089
- decision: z.ZodEnum<{
2090
- allow: "allow";
2091
- ask: "ask";
2092
- deny: "deny";
2093
- }>;
2094
- riskLevel: z.ZodEnum<{
2095
- critical: "critical";
2096
- high: "high";
2097
- low: "low";
2098
- medium: "medium";
2099
- }>;
2100
- userAuthorization: z.ZodEnum<{
2101
- high: "high";
2102
- low: "low";
2103
- medium: "medium";
2104
- unknown: "unknown";
2105
- }>;
2106
- }, z.core.$strict>, z.ZodObject<{
2107
- type: z.ZodLiteral<"compaction">;
2108
- modelProfile: z.ZodOptional<z.ZodString>;
2109
- modelId: z.ZodOptional<z.ZodString>;
2110
- summary: z.ZodOptional<z.ZodString>;
2111
- details: z.ZodOptional<z.ZodObject<{
2112
- reason: z.ZodLiteral<"capacity">;
2113
- estimatedInputTokens: z.ZodNumber;
2114
- replacementInputTokens: z.ZodOptional<z.ZodNumber>;
2115
- triggerTokens: z.ZodNumber;
2116
- inputLimitTokens: z.ZodNumber;
2117
- inputMessageCount: z.ZodNumber;
2118
- retainedMessageCount: z.ZodNumber;
2119
- summaryChars: z.ZodNumber;
3539
+ openDecisions: z.ZodArray<z.ZodObject<{
3540
+ text: z.ZodString;
3541
+ owner: z.ZodOptional<z.ZodString>;
3542
+ }, z.core.$strict>>;
3543
+ facts: z.ZodArray<z.ZodString>;
3544
+ links: z.ZodArray<z.ZodObject<{
3545
+ kind: z.ZodEnum<{
3546
+ code_change: "code_change";
3547
+ resource: "resource";
3548
+ url: "url";
3549
+ }>;
3550
+ label: z.ZodString;
3551
+ url: z.ZodString;
3552
+ status: z.ZodOptional<z.ZodString>;
2120
3553
  }, z.core.$strict>>;
2121
- }, z.core.$strict>, z.ZodObject<{
2122
- type: z.ZodLiteral<"handoff">;
2123
- modelProfile: z.ZodString;
2124
- modelId: z.ZodString;
2125
- reasoningLevel: z.ZodOptional<z.ZodString>;
2126
- triggeringToolCallId: z.ZodOptional<z.ZodString>;
2127
- summary: z.ZodOptional<z.ZodString>;
2128
- }, z.core.$strict>, z.ZodObject<{
2129
- type: z.ZodLiteral<"subagent">;
2130
- startedSeq: z.ZodNumber;
2131
- startedAt: z.ZodString;
2132
- childConversationId: z.ZodString;
2133
- subagentKind: z.ZodString;
2134
- agentName: z.ZodOptional<z.ZodString>;
2135
- task: z.ZodOptional<z.ZodString>;
2136
- title: z.ZodOptional<z.ZodString>;
2137
- parentToolCallId: z.ZodOptional<z.ZodString>;
2138
- status: z.ZodEnum<{
2139
- aborted: "aborted";
2140
- blocked: "blocked";
2141
- completed: "completed";
2142
- error: "error";
2143
- running: "running";
2144
- }>;
2145
- }, z.core.$strict>], "type">;
3554
+ keywords: z.ZodArray<z.ZodString>;
3555
+ }, z.core.$strict>;
2146
3556
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2147
3557
  avatarUrl: z.ZodOptional<z.ZodString>;
2148
3558
  email: z.ZodOptional<z.ZodString>;
@@ -2150,62 +3560,34 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2150
3560
  slackUserId: z.ZodOptional<z.ZodString>;
2151
3561
  slackUserName: z.ZodOptional<z.ZodString>;
2152
3562
  }, z.core.$strict>>>;
2153
- model: z.ZodOptional<z.ZodObject<{
2154
- modelId: z.ZodString;
2155
- modelProfile: z.ZodOptional<z.ZodString>;
2156
- reasoningLevel: z.ZodOptional<z.ZodString>;
2157
- }, z.core.$strict>>;
2158
- modelCall: z.ZodOptional<z.ZodObject<{
2159
- provider: z.ZodOptional<z.ZodString>;
2160
- api: z.ZodOptional<z.ZodString>;
2161
- stopReason: z.ZodOptional<z.ZodString>;
2162
- usage: z.ZodOptional<z.ZodObject<{
2163
- inputTokens: z.ZodOptional<z.ZodNumber>;
2164
- outputTokens: z.ZodOptional<z.ZodNumber>;
2165
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2166
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2167
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
2168
- totalTokens: z.ZodOptional<z.ZodNumber>;
2169
- cost: z.ZodOptional<z.ZodObject<{
2170
- input: z.ZodOptional<z.ZodNumber>;
2171
- output: z.ZodOptional<z.ZodNumber>;
2172
- cacheRead: z.ZodOptional<z.ZodNumber>;
2173
- cacheWrite: z.ZodOptional<z.ZodNumber>;
2174
- total: z.ZodOptional<z.ZodNumber>;
2175
- }, z.core.$strict>>;
2176
- }, z.core.$strict>>;
2177
- }, z.core.$strict>>;
2178
- }, z.core.$strict>>;
2179
- eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2180
- status: z.ZodLiteral<"available">;
2181
- }, z.core.$strict>, z.ZodObject<{
2182
- status: z.ZodLiteral<"redacted">;
2183
- reason: z.ZodLiteral<"non_public_conversation">;
2184
- }, z.core.$strict>, z.ZodObject<{
2185
- status: z.ZodLiteral<"expired">;
2186
- expiredAt: z.ZodString;
2187
- }, z.core.$strict>], "status">;
2188
- previousCursor: z.ZodOptional<z.ZodString>;
2189
- generatedAt: z.ZodString;
2190
- sentryConversationUrl: z.ZodOptional<z.ZodString>;
2191
- sourceTask: z.ZodOptional<z.ZodObject<{
2192
- id: z.ZodOptional<z.ZodString>;
2193
- kind: z.ZodEnum<{
2194
- event: "event";
2195
- scheduled: "scheduled";
2196
- }>;
2197
- label: z.ZodOptional<z.ZodString>;
2198
- title: z.ZodOptional<z.ZodString>;
2199
- triggerMessageId: z.ZodOptional<z.ZodString>;
2200
- triggerLabel: z.ZodOptional<z.ZodString>;
2201
- credentialMode: z.ZodOptional<z.ZodEnum<{
2202
- creator: "creator";
2203
- system: "system";
2204
- }>>;
2205
- credentialUser: z.ZodOptional<z.ZodString>;
3563
+ updatedAt: z.ZodString;
3564
+ version: z.ZodNumber;
2206
3565
  }, z.core.$strict>>;
2207
- }, z.core.$strict>;
2208
- declare const conversationEventPageSchema: z.ZodObject<{
3566
+ modelUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
3567
+ modelId: z.ZodString;
3568
+ usage: z.ZodObject<{
3569
+ inputTokens: z.ZodOptional<z.ZodNumber>;
3570
+ outputTokens: z.ZodOptional<z.ZodNumber>;
3571
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3572
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
3573
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
3574
+ totalTokens: z.ZodOptional<z.ZodNumber>;
3575
+ cost: z.ZodOptional<z.ZodObject<{
3576
+ input: z.ZodOptional<z.ZodNumber>;
3577
+ output: z.ZodOptional<z.ZodNumber>;
3578
+ cacheRead: z.ZodOptional<z.ZodNumber>;
3579
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
3580
+ total: z.ZodOptional<z.ZodNumber>;
3581
+ }, z.core.$strict>>;
3582
+ }, z.core.$strict>;
3583
+ }, z.core.$strict>>>;
3584
+ authors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3585
+ avatarUrl: z.ZodOptional<z.ZodString>;
3586
+ email: z.ZodOptional<z.ZodString>;
3587
+ fullName: z.ZodOptional<z.ZodString>;
3588
+ slackUserId: z.ZodOptional<z.ZodString>;
3589
+ slackUserName: z.ZodOptional<z.ZodString>;
3590
+ }, z.core.$strict>>>;
2209
3591
  events: z.ZodArray<z.ZodObject<{
2210
3592
  seq: z.ZodNumber;
2211
3593
  createdAt: z.ZodString;
@@ -2240,6 +3622,7 @@ declare const conversationEventPageSchema: z.ZodObject<{
2240
3622
  task: "task";
2241
3623
  }>>;
2242
3624
  explicitMention: z.ZodOptional<z.ZodBoolean>;
3625
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
2243
3626
  trustedSummary: z.ZodOptional<z.ZodString>;
2244
3627
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
2245
3628
  eventType: z.ZodString;
@@ -2395,19 +3778,6 @@ declare const conversationEventPageSchema: z.ZodObject<{
2395
3778
  contentType: z.ZodString;
2396
3779
  bytes: z.ZodNumber;
2397
3780
  }, z.core.$strict>>;
2398
- }, z.core.$strict>, z.ZodObject<{
2399
- type: z.ZodLiteral<"turn_routed">;
2400
- turnId: z.ZodString;
2401
- modelProfile: z.ZodString;
2402
- modelId: z.ZodString;
2403
- costUsd: z.ZodOptional<z.ZodNumber>;
2404
- reasoningLevel: z.ZodString;
2405
- confidence: z.ZodOptional<z.ZodNumber>;
2406
- source: z.ZodEnum<{
2407
- configured: "configured";
2408
- inherited: "inherited";
2409
- router: "router";
2410
- }>;
2411
3781
  }, z.core.$strict>, z.ZodObject<{
2412
3782
  type: z.ZodLiteral<"guardian_action_reviewed">;
2413
3783
  turnId: z.ZodString;
@@ -2432,7 +3802,6 @@ declare const conversationEventPageSchema: z.ZodObject<{
2432
3802
  }>;
2433
3803
  }, z.core.$strict>, z.ZodObject<{
2434
3804
  type: z.ZodLiteral<"compaction">;
2435
- modelProfile: z.ZodOptional<z.ZodString>;
2436
3805
  modelId: z.ZodOptional<z.ZodString>;
2437
3806
  summary: z.ZodOptional<z.ZodString>;
2438
3807
  details: z.ZodOptional<z.ZodObject<{
@@ -2445,13 +3814,6 @@ declare const conversationEventPageSchema: z.ZodObject<{
2445
3814
  retainedMessageCount: z.ZodNumber;
2446
3815
  summaryChars: z.ZodNumber;
2447
3816
  }, z.core.$strict>>;
2448
- }, z.core.$strict>, z.ZodObject<{
2449
- type: z.ZodLiteral<"handoff">;
2450
- modelProfile: z.ZodString;
2451
- modelId: z.ZodString;
2452
- reasoningLevel: z.ZodOptional<z.ZodString>;
2453
- triggeringToolCallId: z.ZodOptional<z.ZodString>;
2454
- summary: z.ZodOptional<z.ZodString>;
2455
3817
  }, z.core.$strict>, z.ZodObject<{
2456
3818
  type: z.ZodLiteral<"subagent">;
2457
3819
  startedSeq: z.ZodNumber;
@@ -2468,296 +3830,143 @@ declare const conversationEventPageSchema: z.ZodObject<{
2468
3830
  completed: "completed";
2469
3831
  error: "error";
2470
3832
  running: "running";
2471
- }>;
2472
- }, z.core.$strict>], "type">;
2473
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2474
- avatarUrl: z.ZodOptional<z.ZodString>;
2475
- email: z.ZodOptional<z.ZodString>;
2476
- fullName: z.ZodOptional<z.ZodString>;
2477
- slackUserId: z.ZodOptional<z.ZodString>;
2478
- slackUserName: z.ZodOptional<z.ZodString>;
2479
- }, z.core.$strict>>>;
2480
- model: z.ZodOptional<z.ZodObject<{
2481
- modelId: z.ZodString;
2482
- modelProfile: z.ZodOptional<z.ZodString>;
2483
- reasoningLevel: z.ZodOptional<z.ZodString>;
2484
- }, z.core.$strict>>;
2485
- modelCall: z.ZodOptional<z.ZodObject<{
2486
- provider: z.ZodOptional<z.ZodString>;
2487
- api: z.ZodOptional<z.ZodString>;
2488
- stopReason: z.ZodOptional<z.ZodString>;
2489
- usage: z.ZodOptional<z.ZodObject<{
2490
- inputTokens: z.ZodOptional<z.ZodNumber>;
2491
- outputTokens: z.ZodOptional<z.ZodNumber>;
2492
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2493
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2494
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
2495
- totalTokens: z.ZodOptional<z.ZodNumber>;
2496
- cost: z.ZodOptional<z.ZodObject<{
2497
- input: z.ZodOptional<z.ZodNumber>;
2498
- output: z.ZodOptional<z.ZodNumber>;
2499
- cacheRead: z.ZodOptional<z.ZodNumber>;
2500
- cacheWrite: z.ZodOptional<z.ZodNumber>;
2501
- total: z.ZodOptional<z.ZodNumber>;
2502
- }, z.core.$strict>>;
2503
- }, z.core.$strict>>;
2504
- }, z.core.$strict>>;
2505
- }, z.core.$strict>>;
2506
- eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2507
- status: z.ZodLiteral<"available">;
2508
- }, z.core.$strict>, z.ZodObject<{
2509
- status: z.ZodLiteral<"redacted">;
2510
- reason: z.ZodLiteral<"non_public_conversation">;
2511
- }, z.core.$strict>, z.ZodObject<{
2512
- status: z.ZodLiteral<"expired">;
2513
- expiredAt: z.ZodString;
2514
- }, z.core.$strict>], "status">;
2515
- previousCursor: z.ZodOptional<z.ZodString>;
2516
- generatedAt: z.ZodString;
2517
- }, z.core.$strict>;
2518
- declare const conversationFeedSchema: z.ZodObject<{
2519
- conversations: z.ZodArray<z.ZodObject<{
2520
- displayTitle: z.ZodString;
2521
- activityPreview: z.ZodOptional<z.ZodObject<{
2522
- createdAt: z.ZodString;
2523
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2524
- avatarUrl: z.ZodOptional<z.ZodString>;
2525
- email: z.ZodOptional<z.ZodString>;
2526
- fullName: z.ZodOptional<z.ZodString>;
2527
- slackUserId: z.ZodOptional<z.ZodString>;
2528
- slackUserName: z.ZodOptional<z.ZodString>;
2529
- }, z.core.$strict>>>;
2530
- role: z.ZodEnum<{
2531
- assistant: "assistant";
2532
- user: "user";
2533
- }>;
2534
- text: z.ZodString;
2535
- }, z.core.$strict>>;
2536
- cumulativeDurationMs: z.ZodNumber;
2537
- cumulativeUsage: z.ZodOptional<z.ZodObject<{
2538
- inputTokens: z.ZodOptional<z.ZodNumber>;
2539
- outputTokens: z.ZodOptional<z.ZodNumber>;
2540
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2541
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2542
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
2543
- totalTokens: z.ZodOptional<z.ZodNumber>;
2544
- cost: z.ZodOptional<z.ZodObject<{
2545
- input: z.ZodOptional<z.ZodNumber>;
2546
- output: z.ZodOptional<z.ZodNumber>;
2547
- cacheRead: z.ZodOptional<z.ZodNumber>;
2548
- cacheWrite: z.ZodOptional<z.ZodNumber>;
2549
- total: z.ZodOptional<z.ZodNumber>;
2550
- }, z.core.$strict>>;
2551
- }, z.core.$strict>>;
2552
- auxiliaryCosts: z.ZodOptional<z.ZodObject<{
2553
- costUsd: z.ZodNumber;
2554
- operations: z.ZodArray<z.ZodObject<{
2555
- costUsd: z.ZodNumber;
2556
- events: z.ZodNumber;
2557
- name: z.ZodString;
2558
- namespace: z.ZodString;
2559
- }, z.core.$strict>>;
2560
- }, z.core.$strict>>;
2561
- childAgentTotals: z.ZodOptional<z.ZodObject<{
2562
- auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
2563
- count: z.ZodNumber;
2564
- cumulativeDurationMs: z.ZodNumber;
2565
- cumulativeUsage: z.ZodOptional<z.ZodObject<{
2566
- inputTokens: z.ZodOptional<z.ZodNumber>;
2567
- outputTokens: z.ZodOptional<z.ZodNumber>;
2568
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2569
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2570
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
2571
- totalTokens: z.ZodOptional<z.ZodNumber>;
2572
- cost: z.ZodOptional<z.ZodObject<{
2573
- input: z.ZodOptional<z.ZodNumber>;
2574
- output: z.ZodOptional<z.ZodNumber>;
2575
- cacheRead: z.ZodOptional<z.ZodNumber>;
2576
- cacheWrite: z.ZodOptional<z.ZodNumber>;
2577
- total: z.ZodOptional<z.ZodNumber>;
2578
- }, z.core.$strict>>;
2579
- }, z.core.$strict>>;
2580
- }, z.core.$strict>>;
2581
- conversationId: z.ZodString;
2582
- isParticipant: z.ZodBoolean;
2583
- visibility: z.ZodOptional<z.ZodEnum<{
2584
- private: "private";
2585
- public: "public";
2586
- }>>;
2587
- status: z.ZodEnum<{
2588
- active: "active";
2589
- completed: "completed";
2590
- failed: "failed";
2591
- }>;
2592
- startedAt: z.ZodString;
2593
- lastSeenAt: z.ZodString;
2594
- lastProgressAt: z.ZodString;
2595
- surface: z.ZodEnum<{
2596
- api: "api";
2597
- internal: "internal";
2598
- scheduler: "scheduler";
2599
- slack: "slack";
2600
- }>;
2601
- actorIdentity: z.ZodOptional<z.ZodObject<{
2602
- avatarUrl: z.ZodOptional<z.ZodString>;
2603
- email: z.ZodOptional<z.ZodString>;
2604
- fullName: z.ZodOptional<z.ZodString>;
2605
- slackUserId: z.ZodOptional<z.ZodString>;
2606
- slackUserName: z.ZodOptional<z.ZodString>;
2607
- }, z.core.$strict>>;
2608
- participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
3833
+ }>;
3834
+ }, z.core.$strict>], "type">;
3835
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2609
3836
  avatarUrl: z.ZodOptional<z.ZodString>;
2610
3837
  email: z.ZodOptional<z.ZodString>;
2611
3838
  fullName: z.ZodOptional<z.ZodString>;
2612
3839
  slackUserId: z.ZodOptional<z.ZodString>;
2613
3840
  slackUserName: z.ZodOptional<z.ZodString>;
2614
3841
  }, z.core.$strict>>>;
2615
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2616
- pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2617
- channel: z.ZodOptional<z.ZodString>;
2618
- channelName: z.ZodOptional<z.ZodString>;
2619
- channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
2620
- locationId: z.ZodOptional<z.ZodString>;
2621
- sentryTraceUrl: z.ZodOptional<z.ZodString>;
2622
- locationUrl: z.ZodOptional<z.ZodString>;
2623
- traceId: z.ZodOptional<z.ZodString>;
2624
- annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
2625
- kind: z.ZodLiteral<"resource_link">;
2626
- objectType: z.ZodOptional<z.ZodEnum<{
2627
- automation: "automation";
2628
- calendar_event: "calendar_event";
2629
- code_change: "code_change";
2630
- deployment: "deployment";
2631
- item: "item";
2632
- task: "task";
2633
- }>>;
2634
- key: z.ZodString;
2635
- label: z.ZodString;
2636
- url: z.ZodString;
2637
- description: z.ZodOptional<z.ZodString>;
2638
- status: z.ZodOptional<z.ZodEnum<{
2639
- closed: "closed";
2640
- draft: "draft";
2641
- merged: "merged";
2642
- open: "open";
2643
- warning: "warning";
2644
- }>>;
2645
- }, z.core.$strict>, z.ZodObject<{
2646
- kind: z.ZodLiteral<"object">;
2647
- key: z.ZodString;
2648
- label: z.ZodString;
2649
- objectType: z.ZodEnum<{
2650
- automation: "automation";
2651
- calendar_event: "calendar_event";
2652
- code_change: "code_change";
2653
- deployment: "deployment";
2654
- item: "item";
2655
- task: "task";
2656
- }>;
2657
- title: z.ZodString;
2658
- url: z.ZodNullable<z.ZodURL>;
2659
- description: z.ZodOptional<z.ZodString>;
2660
- status: z.ZodOptional<z.ZodString>;
2661
- trigger: z.ZodOptional<z.ZodString>;
2662
- warning: z.ZodOptional<z.ZodString>;
2663
- displayType: z.ZodOptional<z.ZodString>;
2664
- sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2665
- facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2666
- type: z.ZodLiteral<"code_change">;
2667
- author: z.ZodOptional<z.ZodString>;
2668
- sourceBranch: z.ZodOptional<z.ZodString>;
2669
- targetBranch: z.ZodOptional<z.ZodString>;
2670
- reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2671
- review: z.ZodOptional<z.ZodEnum<{
2672
- approved: "approved";
2673
- changes_requested: "changes_requested";
2674
- required: "required";
2675
- }>>;
2676
- checks: z.ZodOptional<z.ZodObject<{
2677
- passed: z.ZodNumber;
2678
- failed: z.ZodNumber;
2679
- pending: z.ZodNumber;
3842
+ model: z.ZodOptional<z.ZodObject<{
3843
+ modelId: z.ZodString;
3844
+ }, z.core.$strict>>;
3845
+ modelCall: z.ZodOptional<z.ZodObject<{
3846
+ provider: z.ZodOptional<z.ZodString>;
3847
+ api: z.ZodOptional<z.ZodString>;
3848
+ stopReason: z.ZodOptional<z.ZodString>;
3849
+ usage: z.ZodOptional<z.ZodObject<{
3850
+ inputTokens: z.ZodOptional<z.ZodNumber>;
3851
+ outputTokens: z.ZodOptional<z.ZodNumber>;
3852
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
3853
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
3854
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
3855
+ totalTokens: z.ZodOptional<z.ZodNumber>;
3856
+ cost: z.ZodOptional<z.ZodObject<{
3857
+ input: z.ZodOptional<z.ZodNumber>;
3858
+ output: z.ZodOptional<z.ZodNumber>;
3859
+ cacheRead: z.ZodOptional<z.ZodNumber>;
3860
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
3861
+ total: z.ZodOptional<z.ZodNumber>;
2680
3862
  }, z.core.$strict>>;
2681
- mergeable: z.ZodOptional<z.ZodBoolean>;
2682
- changedFiles: z.ZodOptional<z.ZodNumber>;
2683
- additions: z.ZodOptional<z.ZodNumber>;
2684
- deletions: z.ZodOptional<z.ZodNumber>;
2685
- }, z.core.$strict>, z.ZodObject<{
2686
- type: z.ZodLiteral<"task">;
2687
- assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2688
- priority: z.ZodOptional<z.ZodString>;
2689
- project: z.ZodOptional<z.ZodString>;
2690
- cycle: z.ZodOptional<z.ZodString>;
2691
- dueDate: z.ZodOptional<z.ZodISODate>;
2692
- labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2693
- }, z.core.$strict>, z.ZodObject<{
2694
- type: z.ZodLiteral<"deployment">;
2695
- project: z.ZodOptional<z.ZodString>;
2696
- environment: z.ZodOptional<z.ZodString>;
2697
- revision: z.ZodOptional<z.ZodString>;
2698
- branch: z.ZodOptional<z.ZodString>;
2699
- }, z.core.$strict>, z.ZodObject<{
2700
- type: z.ZodLiteral<"calendar_event">;
2701
- when: z.ZodOptional<z.ZodString>;
2702
- attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2703
- }, z.core.$strict>], "type">>;
2704
- }, z.core.$strict>], "kind">, z.ZodObject<{
2705
- plugin: z.ZodString;
2706
- createdAt: z.ZodString;
2707
- updatedAt: z.ZodString;
2708
- }, z.core.$strip>>>>;
2709
- sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2710
- icon: z.ZodOptional<z.ZodEnum<{
2711
- "circle-dashed": "circle-dashed";
2712
- "circle-dot": "circle-dot";
2713
- "circle-x": "circle-x";
2714
- "git-merge": "git-merge";
2715
- "git-pull-request": "git-pull-request";
2716
- "triangle-alert": "triangle-alert";
2717
- }>>;
2718
- objectType: z.ZodOptional<z.ZodEnum<{
2719
- automation: "automation";
2720
- calendar_event: "calendar_event";
2721
- code_change: "code_change";
2722
- deployment: "deployment";
2723
- item: "item";
2724
- task: "task";
2725
- }>>;
2726
- status: z.ZodOptional<z.ZodString>;
2727
- key: z.ZodString;
2728
- label: z.ZodString;
2729
- }, z.core.$strict>>>;
2730
- assignedWork: z.ZodOptional<z.ZodBoolean>;
2731
- finishedWorkAt: z.ZodOptional<z.ZodString>;
2732
- isPriority: z.ZodOptional<z.ZodBoolean>;
2733
- unfinishedWork: z.ZodOptional<z.ZodBoolean>;
3863
+ }, z.core.$strict>>;
3864
+ }, z.core.$strict>>;
2734
3865
  }, z.core.$strict>>;
2735
- source: z.ZodLiteral<"conversation_index">;
3866
+ eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
3867
+ status: z.ZodLiteral<"available">;
3868
+ }, z.core.$strict>, z.ZodObject<{
3869
+ status: z.ZodLiteral<"redacted">;
3870
+ reason: z.ZodLiteral<"non_public_conversation">;
3871
+ }, z.core.$strict>, z.ZodObject<{
3872
+ status: z.ZodLiteral<"expired">;
3873
+ expiredAt: z.ZodString;
3874
+ }, z.core.$strict>], "status">;
3875
+ previousCursor: z.ZodOptional<z.ZodString>;
2736
3876
  generatedAt: z.ZodString;
3877
+ sentryConversationUrl: z.ZodOptional<z.ZodString>;
3878
+ sourceTask: z.ZodOptional<z.ZodObject<{
3879
+ id: z.ZodOptional<z.ZodString>;
3880
+ kind: z.ZodEnum<{
3881
+ event: "event";
3882
+ scheduled: "scheduled";
3883
+ }>;
3884
+ label: z.ZodOptional<z.ZodString>;
3885
+ title: z.ZodOptional<z.ZodString>;
3886
+ triggerMessageId: z.ZodOptional<z.ZodString>;
3887
+ triggerLabel: z.ZodOptional<z.ZodString>;
3888
+ credentialMode: z.ZodOptional<z.ZodEnum<{
3889
+ creator: "creator";
3890
+ system: "system";
3891
+ }>>;
3892
+ credentialUser: z.ZodOptional<z.ZodString>;
3893
+ }, z.core.$strict>>;
3894
+ mailbox: z.ZodObject<{
3895
+ authorization: z.ZodOptional<z.ZodObject<{
3896
+ authorizationUrl: z.ZodString;
3897
+ completionText: z.ZodString;
3898
+ label: z.ZodString;
3899
+ }, z.core.$strict>>;
3900
+ conversationId: z.ZodString;
3901
+ generatedAt: z.ZodString;
3902
+ messages: z.ZodArray<z.ZodObject<{
3903
+ actorIdentity: z.ZodOptional<z.ZodObject<{
3904
+ avatarUrl: z.ZodOptional<z.ZodString>;
3905
+ email: z.ZodOptional<z.ZodString>;
3906
+ fullName: z.ZodOptional<z.ZodString>;
3907
+ slackUserId: z.ZodOptional<z.ZodString>;
3908
+ slackUserName: z.ZodOptional<z.ZodString>;
3909
+ }, z.core.$strict>>;
3910
+ actorIdentityId: z.ZodOptional<z.ZodString>;
3911
+ createdAt: z.ZodString;
3912
+ delivery: z.ZodEnum<{
3913
+ defer: "defer";
3914
+ interrupt: "interrupt";
3915
+ }>;
3916
+ inboundMessageId: z.ZodString;
3917
+ messageId: z.ZodString;
3918
+ receivedAt: z.ZodString;
3919
+ role: z.ZodLiteral<"user">;
3920
+ source: z.ZodEnum<{
3921
+ slack: "slack";
3922
+ web: "web";
3923
+ }>;
3924
+ text: z.ZodOptional<z.ZodString>;
3925
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3926
+ avatarUrl: z.ZodOptional<z.ZodString>;
3927
+ email: z.ZodOptional<z.ZodString>;
3928
+ fullName: z.ZodOptional<z.ZodString>;
3929
+ slackUserId: z.ZodOptional<z.ZodString>;
3930
+ slackUserName: z.ZodOptional<z.ZodString>;
3931
+ }, z.core.$strict>>>;
3932
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3933
+ id: z.ZodString;
3934
+ filename: z.ZodString;
3935
+ contentType: z.ZodString;
3936
+ bytes: z.ZodNumber;
3937
+ }, z.core.$strict>>>;
3938
+ reviewItemChange: z.ZodOptional<z.ZodObject<{
3939
+ kind: z.ZodEnum<{
3940
+ dismissed: "dismissed";
3941
+ submitted: "submitted";
3942
+ taken: "taken";
3943
+ }>;
3944
+ reviewItemId: z.ZodString;
3945
+ }, z.core.$strict>>;
3946
+ redacted: z.ZodOptional<z.ZodLiteral<true>>;
3947
+ }, z.core.$strict>>;
3948
+ }, z.core.$strict>;
3949
+ }, z.core.$strict>;
3950
+ /** Optional filters for cancelling accepted mailbox rows. */
3951
+ declare const cancelConversationPendingMessagesBodySchema: z.ZodObject<{
3952
+ inboundMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3953
+ receivedBefore: z.ZodOptional<z.ZodString>;
3954
+ }, z.core.$strict>;
3955
+ /** Result of cancelling accepted human-facing mailbox rows. */
3956
+ declare const cancelConversationPendingMessagesResponseSchema: z.ZodObject<{
3957
+ cancelledCount: z.ZodNumber;
3958
+ cancelledInboundMessageIds: z.ZodArray<z.ZodString>;
3959
+ conversationId: z.ZodString;
3960
+ }, z.core.$strict>;
3961
+ /** Queued web messages that the viewer wants Junior to read now. */
3962
+ declare const steerConversationPendingMessagesBodySchema: z.ZodObject<{
3963
+ inboundMessageIds: z.ZodArray<z.ZodString>;
3964
+ }, z.core.$strict>;
3965
+ /** Result of steering queued web messages into the conversation. */
3966
+ declare const steerConversationPendingMessagesResponseSchema: z.ZodObject<{
3967
+ conversationId: z.ZodString;
3968
+ steeredInboundMessageIds: z.ZodArray<z.ZodString>;
2737
3969
  }, z.core.$strict>;
2738
- type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
2739
- type ConversationTurnFailureCode = z.infer<typeof conversationTurnFailureCodeSchema>;
2740
- type ConversationTurnFailureReason = z.infer<typeof conversationTurnFailureReasonSchema>;
2741
- type ConversationSurface = z.infer<typeof conversationSurfaceSchema>;
2742
- type ConversationCost = z.infer<typeof conversationCostSchema>;
2743
- type ConversationUsage = z.infer<typeof conversationUsageSchema>;
2744
- type ConversationAuxiliaryCosts = z.infer<typeof conversationAuxiliaryCostsSchema>;
2745
- type ActorIdentity = z.infer<typeof actorIdentitySchema>;
2746
- type ConversationActivityPreview = z.infer<typeof conversationActivityPreviewSchema>;
2747
- type ConversationSummaryReport = z.infer<typeof conversationSummaryReportSchema>;
2748
- type ConversationModelUsage = z.infer<typeof conversationModelUsageSchema>;
2749
- type ConversationReportMessageEvent = z.infer<typeof conversationReportMessageEventSchema>;
2750
- type ConversationReportEventData = z.infer<typeof conversationReportEventDataSchema>;
2751
- type ConversationReportEvent = z.infer<typeof conversationReportEventSchema>;
2752
- type ConversationEventHistory = z.infer<typeof conversationEventHistorySchema>;
2753
- type ConversationSourceTask = z.infer<typeof conversationSourceTaskSchema>;
2754
- type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
2755
- type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
2756
- type ConversationFeed = z.infer<typeof conversationFeedSchema>;
2757
- type ConversationParams = z.infer<typeof conversationParamsSchema>;
2758
- type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
2759
- type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
2760
- type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
2761
3970
  type ConversationPendingMessageDelivery = z.infer<typeof conversationPendingMessageDeliverySchema>;
2762
3971
  type ConversationPendingMessage = z.infer<typeof conversationPendingMessageSchema>;
2763
3972
  type ConversationPendingMessagesReport = z.infer<typeof conversationPendingMessagesReportSchema>;
@@ -6083,4 +7292,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6083
7292
  }, z.core.$strict>;
6084
7293
  }, z.core.$strict>], "action">;
6085
7294
  type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
6086
- export { automationExecutionSchema as $, ConversationAgentTreeNode as $n, CodeActivityDay as $r, LocationParams as $t, StatReport as A, MAX_INPUT_IMAGES as Ai, pinConversationResponseSchema as An, conversationDetailQuerySchema as Ar, PersonalTokenMetadata as At, AutomationListQuery as B, conversationStatsReportSchema as Bn, conversationPendingMessageSchema as Br, serviceAccountSchema as Bt, pluginPackageContentItemReportSchema as C, UserInputField as Ci, ConversationChildAgent as Cn, SteerConversationPendingMessagesBody as Cr, workspaceBodySchema as Ct, runtimeInfoReportSchema as D, normalizeUserInputAnswer as Di, PinConversationBody as Dn, cancelConversationPendingMessagesResponseSchema as Dr, workspaceSchema as Dt, pluginsSchema as E, isEmptyUserInputAnswer as Ei, conversationChildAgentsReportSchema as En, cancelConversationPendingMessagesBodySchema as Er, workspaceRepoSchema as Et, AutomationExecution as F, ConversationMetricDay as Fn, conversationFeedQuerySchema as Fr, personalTokenParamsSchema as Ft, AutomationSummary as G, archiveConversationResponseSchema as Gn, createConversationBodySchema as Gr, disconnectConnectionResponseSchema as Gt, AutomationRunList as H, ArchiveConversationResponse as Hn, conversationReportEventDataSchema as Hr, connectionListSchema as Ht, AutomationExecutionDay as I, ConversationStatsItem as In, conversationFeedSchema as Ir, revokePersonalTokenResponseSchema as It, ListedAutomationVersion as J, AcceptedConversationMessage as Jn, forkConversationResponseSchema as Jr, apiErrorSchema as Jt, AutomationUpdate as K, archiveDoneConversationsResponseSchema as Kn, createConversationMessageBodySchema as Kr, startConnectionResponseSchema as Kt, AutomationExecutionList as L, ConversationStatsReport as Ln, conversationParamsSchema as Lr, disconnectServiceAccountResponseSchema as Lt, statSchema as M, MessageAttachment as Mi, conversationReadPositionSchema as Mn, conversationEventHistorySchema as Mr, createdPersonalTokenSchema as Mt, statsReportSchema as N, INPUT_IMAGE_TYPES as Ni, StopConversationTurnResponse as Nn, conversationEventPageSchema as Nr, personalTokenListSchema as Nt, skillReportSchema as O, webMessageId as Oi, PinConversationResponse as On, conversationActivityPreviewSchema as Or, USER_CUSTOMIZATION_MAX_CHARS as Ot, AutomationEdit as P, stopConversationTurnResponseSchema as Pn, conversationEventsQuerySchema as Pr, personalTokenMetadataSchema as Pt, automationExecutionListSchema as Q, ConversationActivityPreview as Qn, conversationTurnFailureReasonSchema as Qr, LocationDirectoryReport as Qt, AutomationExecutionStatusDay as R, GuardianMetricDay as Rn, conversationPendingAuthorizationSchema as Rr, serviceAccountListSchema as Rt, pluginOperationalReportSchema as S, UserInputAnswer as Si, conversationWatchesReportSchema as Sn, CreateConversationMessageBody as Sr, deleteWorkspaceResponseSchema as St, pluginSchema as T, buttonUserInputField as Ti, conversationChildAgentSchema as Tn, acceptedConversationMessageSchema as Tr, workspaceParamsSchema as Tt, AutomationRunWindows as U, ConversationAutoArchive as Un, conversationReportEventSchema as Ur, connectionParamsSchema as Ut, AutomationRun as V, ArchiveConversationBody as Vn, conversationPendingMessagesReportSchema as Vr, startServiceAccountSignInResponseSchema as Vt, AutomationScheduleIntent as W, archiveConversationBodySchema as Wn, conversationSummaryReportSchema as Wr, connectionSchema as Wt, automationEditSchema as X, CancelConversationPendingMessagesBody as Xn, steerConversationPendingMessagesResponseSchema as Xr, LocationActorSummaryReport as Xt, automationEditErrorSchema as Y, ActorIdentity as Yn, steerConversationPendingMessagesBodySchema as Yr, LocationActivityDayReport as Yt, automationEventCatalogSchema as Z, CancelConversationPendingMessagesResponse as Zn, conversationTurnFailureCodeSchema as Zr, LocationDetailReport as Zt, RuntimeInfoReport as _, MessageCard as _i, personParamsSchema as _n, ConversationSurface as _r, scheduledAutomationSummarySchema as _t, reviewItemCountSchema as a, codeActivityDaySchema as ai, ActorActivityDayReport as an, ConversationFeed as ar, automationRunListSchema as at, healthReportSchema as b, AutomationCard as bi, ConversationWatchesReport as bn, ConversationUsage as br, WorkspaceReport as bt, reviewItemWaitingConversationsSchema as c, codeOverviewReportSchema as ci, ActorProfileReport as cn, ConversationPendingMessage as cr, automationScheduleIntentSchema as ct, Plugin as d, codeRepositoryReportSchema as di, ActorWindowMetrics as dn, ConversationReportEvent as dr, automationUpdateSchema as dt, CodeChangeSummaryReport as ei, LocationSummaryReport as en, ConversationAuxiliaryCosts as er, automationExecutionStatusDaySchema as et, PluginOperationalReport as f, codeRepositorySummarySchema as fi, PeopleActivityDayReport as fn, ConversationReportEventData as fr, automationVersionActivateSchema as ft, Plugins as g, dailyConversationActivitySchema as gi, actorProfileReportSchema as gn, ConversationSummaryReport as gr, eventAutomationSummarySchema as gt, PluginPackageContentReport as h, DailyConversationActivity as hi, actorDirectoryReportSchema as hn, ConversationSourceTask as hr, automationVersionSchema as ht, reviewItemActionSchema as i, CodeRepositorySummary as ii, locationParamsSchema as in, ConversationEventPage as ir, automationParamsSchema as it, StatsReport as j, MAX_INPUT_IMAGE_BYTES as ji, ConversationReadPosition as jn, conversationDetailReportSchema as jr, createPersonalTokenBodySchema as jt, skillReportsSchema as k, InputImage as ki, pinConversationBodySchema as kn, conversationAuxiliaryCostsSchema as kr, userCustomizationSchema as kt, ReviewItemChangeRecord as l, codePersonReportSchema as li, ActorSummaryReport as ln, ConversationPendingMessageDelivery as lr, automationSchedulePreviewSchema as lt, PluginPackageContentItemReport as m, conversationChildAgentTotalsSchema as mi, PersonalSpendReport as mn, ConversationReportStatus as mr, automationVersionParamsSchema as mt, ReviewItemActionBody as n, CodePersonReport as ni, locationDetailReportSchema as nn, ConversationDetailReport as nr, automationListQuerySchema as nt, reviewItemListSchema as o, codeChangeSummaryReportSchema as oi, ActorDirectoryReport as on, ConversationModelUsage as or, automationRunSchema as ot, PluginOperationalReportFeed as p, ConversationChildAgentTotals as pi, PersonParams as pn, ConversationReportMessageEvent as pr, automationVersionListSchema as pt, AutomationVersionList as q, conversationAutoArchiveSchema as qn, forkConversationBodySchema as qr, ApiError as qt, ReviewItemPayload as r, CodeRepositoryReport as ri, locationDirectoryReportSchema as rn, ConversationEventHistory as rr, automationListSchema as rt, reviewItemSchema as s, codeChangeSummarySchema as si, ActorDirectoryWindows as sn, ConversationParams as sr, automationRunWindowsSchema as st, OwnedObjectAnnotation$1 as t, CodeOverviewReport as ti, locationActivityDayReportSchema as tn, ConversationCost as tr, automationExecutionStatusSchema as tt, HealthReport as u, codeRepositoryParamsSchema as ui, ActorTotalsReport as un, ConversationPendingMessagesReport as ur, automationSummarySchema as ut, SkillReport as v, messageCardText as vi, personalSpendReportSchema as vn, ConversationTurnFailureCode as vr, BaselineSnapshotReport as vt, pluginPackageContentReportSchema as w, UserInputRequest as wi, ConversationChildAgentsReport as wn, SteerConversationPendingMessagesResponse as wr, workspaceListSchema as wt, pluginOperationalReportFeedSchema as x, USER_INPUT_NOTE as xi, conversationWatchSchema as xn, CreateConversationBody as xr, baselineSnapshotSchema as xt, SkillReports as y, resolveMessageCards as yi, ConversationWatch as yn, ConversationTurnFailureReason as yr, WorkspaceListReport as yt, AutomationList as z, GuardianStats as zn, conversationPendingMessageDeliverySchema as zr, serviceAccountParamsSchema as zt };
7295
+ export { automationExecutionSchema as $, SteerConversationPendingMessagesBody as $n, conversationTurnFailureCodeSchema as $r, LocationParams as $t, StatReport as A, webMessageId as Ai, pinConversationResponseSchema as An, ConversationTurnFailureCode as Ar, PersonalTokenMetadata as At, AutomationListQuery as B, conversationStatsReportSchema as Bn, conversationEventHistorySchema as Br, serviceAccountSchema as Bt, pluginPackageContentItemReportSchema as C, USER_INPUT_NOTE as Ci, ConversationChildAgent as Cn, ConversationReportEvent as Cr, workspaceBodySchema as Ct, runtimeInfoReportSchema as D, buttonUserInputField as Di, PinConversationBody as Dn, ConversationSourceTask as Dr, workspaceSchema as Dt, pluginsSchema as E, UserInputRequest as Ei, conversationChildAgentsReportSchema as En, ConversationReportStatus as Er, workspaceRepoSchema as Et, AutomationExecution as F, INPUT_IMAGE_TYPES as Fi, ConversationMetricDay as Fn, acceptedConversationMessageSchema as Fr, personalTokenParamsSchema as Ft, AutomationSummary as G, archiveConversationResponseSchema as Gn, conversationParamsSchema as Gr, disconnectConnectionResponseSchema as Gt, AutomationRunList as H, ArchiveConversationResponse as Hn, conversationEventsQuerySchema as Hr, connectionListSchema as Ht, AutomationExecutionDay as I, ConversationStatsItem as In, conversationActivityPreviewSchema as Ir, revokePersonalTokenResponseSchema as It, ListedAutomationVersion as J, CancelConversationPendingMessagesBody as Jn, conversationSummaryReportSchema as Jr, apiErrorSchema as Jt, AutomationUpdate as K, archiveDoneConversationsResponseSchema as Kn, conversationReportEventDataSchema as Kr, startConnectionResponseSchema as Kt, AutomationExecutionList as L, ConversationStatsReport as Ln, conversationAuxiliaryCostsSchema as Lr, disconnectServiceAccountResponseSchema as Lt, statSchema as M, MAX_INPUT_IMAGES as Mi, conversationReadPositionSchema as Mn, ConversationUsage as Mr, createdPersonalTokenSchema as Mt, statsReportSchema as N, MAX_INPUT_IMAGE_BYTES as Ni, StopConversationTurnResponse as Nn, CreateConversationBody as Nr, personalTokenListSchema as Nt, skillReportSchema as O, isEmptyUserInputAnswer as Oi, PinConversationResponse as On, ConversationSummaryReport as Or, USER_CUSTOMIZATION_MAX_CHARS as Ot, AutomationEdit as P, MessageAttachment as Pi, stopConversationTurnResponseSchema as Pn, CreateConversationMessageBody as Pr, personalTokenMetadataSchema as Pt, automationExecutionListSchema as Q, ConversationPendingMessagesReport as Qn, forkConversationResponseSchema as Qr, LocationDirectoryReport as Qt, AutomationExecutionStatusDay as R, GuardianMetricDay as Rn, conversationDetailQuerySchema as Rr, serviceAccountListSchema as Rt, pluginOperationalReportSchema as S, AutomationCard as Si, conversationWatchesReportSchema as Sn, ConversationParams as Sr, deleteWorkspaceResponseSchema as St, pluginSchema as T, UserInputField as Ti, conversationChildAgentSchema as Tn, ConversationReportMessageEvent as Tr, workspaceParamsSchema as Tt, AutomationRunWindows as U, ConversationAutoArchive as Un, conversationFeedQuerySchema as Ur, connectionParamsSchema as Ut, AutomationRun as V, ArchiveConversationBody as Vn, conversationEventPageSchema as Vr, startServiceAccountSignInResponseSchema as Vt, AutomationScheduleIntent as W, archiveConversationBodySchema as Wn, conversationFeedSchema as Wr, connectionSchema as Wt, automationEditSchema as X, ConversationPendingMessage as Xn, createConversationMessageBodySchema as Xr, LocationActorSummaryReport as Xt, automationEditErrorSchema as Y, CancelConversationPendingMessagesResponse as Yn, createConversationBodySchema as Yr, LocationActivityDayReport as Yt, automationEventCatalogSchema as Z, ConversationPendingMessageDelivery as Zn, forkConversationBodySchema as Zr, LocationDetailReport as Zt, RuntimeInfoReport as _, DailyConversationActivity as _i, personParamsSchema as _n, ConversationDetailReport as _r, scheduledAutomationSummarySchema as _t, reviewItemCountSchema as a, CodeRepositoryReport as ai, ActorActivityDayReport as an, conversationPendingMessageDeliverySchema as ar, automationRunListSchema as at, healthReportSchema as b, messageCardText as bi, ConversationWatchesReport as bn, ConversationFeed as br, WorkspaceReport as bt, reviewItemWaitingConversationsSchema as c, codeChangeSummaryReportSchema as ci, ActorProfileReport as cn, steerConversationPendingMessagesBodySchema as cr, automationScheduleIntentSchema as ct, Plugin as d, codePersonReportSchema as di, ActorWindowMetrics as dn, ActorIdentity as dr, automationUpdateSchema as dt, conversationTurnFailureReasonSchema as ei, LocationSummaryReport as en, SteerConversationPendingMessagesResponse as er, automationExecutionStatusDaySchema as et, PluginOperationalReport as f, codeRepositoryParamsSchema as fi, PeopleActivityDayReport as fn, CONVERSATION_DETAIL_VERSION_HEADER as fr, automationVersionActivateSchema as ft, Plugins as g, conversationChildAgentTotalsSchema as gi, actorProfileReportSchema as gn, ConversationCost as gr, eventAutomationSummarySchema as gt, PluginPackageContentReport as h, ConversationChildAgentTotals as hi, actorDirectoryReportSchema as hn, ConversationAuxiliaryCosts as hr, automationVersionSchema as ht, reviewItemActionSchema as i, CodePersonReport as ii, locationParamsSchema as in, conversationPendingAuthorizationSchema as ir, automationParamsSchema as it, StatsReport as j, InputImage as ji, ConversationReadPosition as jn, ConversationTurnFailureReason as jr, createPersonalTokenBodySchema as jt, skillReportsSchema as k, normalizeUserInputAnswer as ki, pinConversationBodySchema as kn, ConversationSurface as kr, userCustomizationSchema as kt, ReviewItemChangeRecord as l, codeChangeSummarySchema as li, ActorSummaryReport as ln, steerConversationPendingMessagesResponseSchema as lr, automationSchedulePreviewSchema as lt, PluginPackageContentItemReport as m, codeRepositorySummarySchema as mi, PersonalSpendReport as mn, ConversationAgentTreeNode as mr, automationVersionParamsSchema as mt, ReviewItemActionBody as n, CodeChangeSummaryReport as ni, locationDetailReportSchema as nn, cancelConversationPendingMessagesResponseSchema as nr, automationListQuerySchema as nt, reviewItemListSchema as o, CodeRepositorySummary as oi, ActorDirectoryReport as on, conversationPendingMessageSchema as or, automationRunSchema as ot, PluginOperationalReportFeed as p, codeRepositoryReportSchema as pi, PersonParams as pn, ConversationActivityPreview as pr, automationVersionListSchema as pt, AutomationVersionList as q, conversationAutoArchiveSchema as qn, conversationReportEventSchema as qr, ApiError as qt, ReviewItemPayload as r, CodeOverviewReport as ri, locationDirectoryReportSchema as rn, conversationDetailWithMailboxReportSchema as rr, automationListSchema as rt, reviewItemSchema as s, codeActivityDaySchema as si, ActorDirectoryWindows as sn, conversationPendingMessagesReportSchema as sr, automationRunWindowsSchema as st, OwnedObjectAnnotation$1 as t, CodeActivityDay as ti, locationActivityDayReportSchema as tn, cancelConversationPendingMessagesBodySchema as tr, automationExecutionStatusSchema as tt, HealthReport as u, codeOverviewReportSchema as ui, ActorTotalsReport as un, AcceptedConversationMessage as ur, automationSummarySchema as ut, SkillReport as v, dailyConversationActivitySchema as vi, personalSpendReportSchema as vn, ConversationEventHistory as vr, BaselineSnapshotReport as vt, pluginPackageContentReportSchema as w, UserInputAnswer as wi, ConversationChildAgentsReport as wn, ConversationReportEventData as wr, workspaceListSchema as wt, pluginOperationalReportFeedSchema as x, resolveMessageCards as xi, conversationWatchSchema as xn, ConversationModelUsage as xr, baselineSnapshotSchema as xt, SkillReports as y, MessageCard as yi, ConversationWatch as yn, ConversationEventPage as yr, WorkspaceListReport as yt, AutomationList as z, GuardianStats as zn, conversationDetailReportSchema as zr, serviceAccountParamsSchema as zt };