@sentry/junior 0.268.0 → 0.270.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 (83) hide show
  1. package/README.md +2 -9
  2. package/dist/{adapter-04AcD2SO.js → adapter-BQNTKVTF.js} +3 -49
  3. package/dist/{admin-DIU1QyG3.js → admin-CKVEoXa4.js} +1 -1
  4. package/dist/{agent-runner-CAYfFmU7.js → agent-runner-MSQSMFkq.js} +4538 -3251
  5. package/dist/api/schema.d.ts +2 -3
  6. package/dist/api/schema.js +7 -7
  7. package/dist/api.d.ts +3 -1
  8. package/dist/api.js +190 -301
  9. package/dist/{app-z6Uuyq3j.d.ts → app-Bz8t4P8p.d.ts} +9 -3
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +129 -209
  12. package/dist/{automation-CmeFBSEh.js → automation-Dwh_xcqM.js} +74 -74
  13. package/dist/{briefs-DQbV2jNr.js → briefs-DNFzFFVx.js} +5 -5
  14. package/dist/{catalog-runtime-BD9GSpc6.js → catalog-runtime-Bdym_wKy.js} +1 -1
  15. package/dist/cli/chat.js +16 -26
  16. package/dist/cli/check.js +3 -3
  17. package/dist/cli/main.js +5 -3
  18. package/dist/cli/plugins.js +4 -4
  19. package/dist/cli/snapshot-create.js +4 -4
  20. package/dist/cli/upgrade.d.ts +1 -1
  21. package/dist/cli/upgrade.js +3 -3
  22. package/dist/{client-C1yDYjoS.js → client-B2MjENki.js} +31 -16
  23. package/dist/{config-DrTeF80T.js → config-Dm3pWRqY.js} +3 -3
  24. package/dist/{connections-D46f8vvi.js → connections-0BBhiD-p.js} +10 -10
  25. package/dist/{conversation-DSo310Ps.js → conversation-AhOVzN_k.js} +11 -86
  26. package/dist/{conversation-privacy-CxlOCiUo.js → conversation-privacy-C1pJ89rs.js} +1 -1
  27. package/dist/{credential-sync-sm9fegLY.js → credential-sync-BRiWYs6_.js} +15 -14
  28. package/dist/{credentialed-lukuD-cc.js → credentialed-BeBaJMZ_.js} +565 -83
  29. package/dist/{store-xMuuXRE0.d.ts → db-BYOuu6v2.d.ts} +4 -0
  30. package/dist/{executor-4vhvsMZJ.js → executor-BB6eJkD4.js} +6 -6
  31. package/dist/instrumentation.js +2 -2
  32. package/dist/{interruption-marker-CkncDT8d.js → interruption-marker-CdblrIQK.js} +1 -1
  33. package/dist/{job-queue-In9QKz-I.js → job-queue-DiaXoSDg.js} +2 -2
  34. package/dist/{list-BkgnXEEB.js → list-BTDRxkOg.js} +331 -662
  35. package/dist/locks-D-0h111u.js +48 -0
  36. package/dist/{logging-DLSpkSSr.js → logging-C6EdT6PP.js} +1 -1
  37. package/dist/{history-C84mlAwO.js → media-U6Tuz6Mi.js} +84 -2
  38. package/dist/{message-BObyg59s.js → message-DsjiWRVg.js} +4 -4
  39. package/dist/{model-profile-Bg8EoCKD.js → model-profile-B998sjVd.js} +9 -2
  40. package/dist/nitro.d.ts +1 -1
  41. package/dist/nitro.js +5 -3
  42. package/dist/{oauth-callback-server-B-WbSdoH.js → oauth-callback-server-CjFFVGqa.js} +2 -2
  43. package/dist/{prompt-BW9jFsqZ.js → prompt-BPSdXYXV.js} +1 -1
  44. package/dist/{registry-BgecKva0.js → registry-CndmkP2P.js} +1 -1
  45. package/dist/reporting-schema-CZREhYc-.js +104 -0
  46. package/dist/{web-message-id-DlHNANtd.js → reporting-window-DRCi1Ls_.js} +139 -7
  47. package/dist/{resolve-Cpa4Bu1O.js → resolve-BkAA1wH7.js} +3 -3
  48. package/dist/{result-D3TSmZZ8.js → result-9TJTpuYP.js} +30 -11
  49. package/dist/{runner-DS5OKhEp.js → runner-BmKLSyJm.js} +12 -11
  50. package/dist/{sandbox-egress-signals-CnDjY5rx.js → sandbox-egress-signals-CjLaogMo.js} +1 -1
  51. package/dist/{schema-0050HFnB.js → schema-DNLJ_MzW.js} +36 -20
  52. package/dist/{schema-ZngqcOWM.d.ts → schema-WayPSHFu.d.ts} +149 -12
  53. package/dist/{service-account-CKV2WTY7.js → service-account-D6e9cVmH.js} +4 -3
  54. package/dist/{service-account-DGjnDw9y.js → service-account-DlhYl-Mu.js} +3 -3
  55. package/dist/{session-stop-Dam1EI7B.js → session-stop-MZRgYqYH.js} +24 -16
  56. package/dist/{skills-CfAnfImD.js → skills-BggTR_ue.js} +2 -2
  57. package/dist/{spawn-cmq9p4Ly.js → spawn-DmtlcAT_.js} +2 -2
  58. package/dist/{store-zPEoJPBB.js → store-BeWGgaMA.js} +3 -3
  59. package/dist/{store-C5PN02QO.js → store-Byarin7b.js} +4 -4
  60. package/dist/{task-queue-_mf28dSu.js → task-queue-Dt1_ZoI_.js} +3 -3
  61. package/dist/task-runner-DyKqAPpm.js +269 -0
  62. package/dist/{thread-state-BbbPh0Sn.js → thread-state-BHBLMvgb.js} +5 -5
  63. package/dist/{turn-failure-response-BKKmnMB5.js → turn-failure-response-DWXy_0oJ.js} +9 -9
  64. package/dist/{turn-lifecycle-oP0kVeGz.js → turn-lifecycle-AiXkVqCB.js} +1 -1
  65. package/dist/{tasks-SB9z-VTU.js → turn-session-routing-B9KLBhaT.js} +939 -120
  66. package/dist/{validation--JsAGLwc.js → validation-BW60Vtx_.js} +1 -1
  67. package/dist/{version-jHwJp4hC.js → version-CivPYmkH.js} +1 -1
  68. package/dist/version.js +1 -1
  69. package/dist/{viewer-CpXTGlep.js → viewer-BTgAfdUg.js} +216 -27
  70. package/dist/{work-3N-GHY9m.js → work-Bjm52fHo.js} +17 -36
  71. package/dist/{worker-CCdbcItd.js → worker-CMbgtHLu.js} +15 -7
  72. package/migrations/0069_system_identity.sql +25 -0
  73. package/migrations/0070_review_item_foreign_keys.sql +5 -0
  74. package/migrations/AGENTS.md +17 -0
  75. package/migrations/meta/0069_snapshot.json +3979 -0
  76. package/migrations/meta/0070_snapshot.json +3997 -0
  77. package/migrations/meta/_journal.json +15 -1
  78. package/package.json +5 -4
  79. package/dist/db-BU4LQD8s.d.ts +0 -6
  80. package/dist/history-BgI33Kie.d.ts +0 -78
  81. package/dist/reporting-window-DVCD_10C.js +0 -227
  82. package/dist/task-runner-DMI2prDO.js +0 -1073
  83. package/migrations/README.md +0 -30
@@ -1,14 +1,14 @@
1
- import { At as upsertConversationMessage, Dt as normalizeConversationText, Et as markConversationMessage, Gt as saveTurnCheckpoint, In as persistWithRetry, K as commitAcceptedReply, Ot as recordDeliveredAssistantMessage, Pt as authorizationId, Z as loadProjection, ft as hydrateConversationMessages, it as recordAuthorizationCompleted, pt as persistConversationMessages, xt as buildConversationContext } from "./tasks-SB9z-VTU.js";
2
- import { S as setTags, T as withLogContext, p as logException } from "./logging-DLSpkSSr.js";
3
- import { d as getConversationEventStore, p as getConversationStore } from "./viewer-CpXTGlep.js";
4
- import { f as credentialContextForActor } from "./registry-BgecKva0.js";
5
- import { R as messageCardText } from "./conversation-DSo310Ps.js";
6
- import { X as markTurnFailed, Z as startActiveTurn } from "./store-C5PN02QO.js";
7
- import { r as getAssistantReplyText } from "./interruption-marker-CkncDT8d.js";
8
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DMI2prDO.js";
9
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-oP0kVeGz.js";
10
- import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BbbPh0Sn.js";
11
- import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-BKKmnMB5.js";
1
+ import { At as loadProjection, Gt as hydrateConversationMessages, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, gr as persistWithRetry, ln as upsertConversationMessage, on as normalizeConversationText, pn as authorizationId, sn as recordDeliveredAssistantMessage, wn as saveTurnCheckpoint } from "./turn-session-routing-B9KLBhaT.js";
2
+ import { S as setTags, T as withLogContext, p as logException } from "./logging-C6EdT6PP.js";
3
+ import { j as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-BTgAfdUg.js";
4
+ import { f as credentialContextForActor } from "./registry-CndmkP2P.js";
5
+ import { R as messageCardText } from "./conversation-AhOVzN_k.js";
6
+ import { X as markTurnFailed, Z as startActiveTurn } from "./store-Byarin7b.js";
7
+ import { r as getAssistantReplyText } from "./interruption-marker-CdblrIQK.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-AiXkVqCB.js";
9
+ import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BHBLMvgb.js";
10
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DyKqAPpm.js";
11
+ import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-DWXy_0oJ.js";
12
12
  import { randomUUID } from "node:crypto";
13
13
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
14
14
  // src/chat/local/runner.ts
@@ -100,6 +100,7 @@ async function runLocalAgentTurnInContext(input, deps) {
100
100
  userId: "local-cli",
101
101
  userName: "local"
102
102
  },
103
+ authorIdentityId: SYSTEM_IDENTITY_ID,
103
104
  meta: {
104
105
  explicitMention: true,
105
106
  replied: false
@@ -1,4 +1,4 @@
1
- import { xt as sandboxEgressSignalsResponseSchema } from "./credentialed-lukuD-cc.js";
1
+ import { Kt as sandboxEgressSignalsResponseSchema } from "./credentialed-BeBaJMZ_.js";
2
2
  // src/chat/local/sandbox-egress-signals.ts
3
3
  const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
4
4
  const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
@@ -1,8 +1,8 @@
1
1
  import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-C1RNOCs8.js";
2
- import { E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, O as conversationUsageSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-DSo310Ps.js";
3
- import { s as userInputRequestSchema } from "./web-message-id-DlHNANtd.js";
4
- import "./automation-CmeFBSEh.js";
5
- import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours } from "./reporting-window-DVCD_10C.js";
2
+ import { E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, O as conversationUsageSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-AhOVzN_k.js";
3
+ import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, y as userInputRequestSchema } from "./reporting-window-DRCi1Ls_.js";
4
+ import "./automation-Dwh_xcqM.js";
5
+ import "./reporting-schema-CZREhYc-.js";
6
6
  import { z } from "zod";
7
7
  import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
8
8
  // src/api/schema/common.ts
@@ -362,6 +362,8 @@ const locationDetailReportSchema = locationSummaryReportSchema.extend({
362
362
  }).strict();
363
363
  // src/api/schema/person.ts
364
364
  const personParamsSchema = z.object({ email: z.string().trim().min(1) }).strict();
365
+ /** Route parameters for the photo of one Identity. */
366
+ const avatarParamsSchema = z.object({ identityId: z.string().min(1).max(200) }).strict();
365
367
  const peopleConversationStatsItemSchema = conversationStatsItemSchema.omit({ costUsd: true });
366
368
  /** UTC day (`YYYY-MM-DD`) or hour (`YYYY-MM-DDTHH`) activity bucket key. */
367
369
  const peopleMetricBucketSchema = z.string().regex(/^\d{4}-\d{2}-\d{2}(T\d{2})?$/);
@@ -514,24 +516,38 @@ const reviewItemSchema = z.object({
514
516
  updatedAt: z.string().datetime(),
515
517
  visibility: z.enum(["public", "private"])
516
518
  }).strict();
517
- /** Review desk list filters. */
519
+ /**
520
+ * Review desk list filters. The list has the open items that the viewer can
521
+ * see, one page at a time. A search also finds done and dismissed items,
522
+ * after the open ones.
523
+ */
518
524
  const reviewItemListQuerySchema = z.object({
519
- /** `true` lists done and dismissed items instead of open ones. */
520
- archived: z.enum(["true", "false"]).optional(),
521
525
  conversationId: z.string().min(1).optional(),
522
- q: z.string().trim().max(200).optional(),
523
- view: z.enum([
524
- "mine",
525
- "everyone",
526
- "all"
527
- ]).optional()
528
- }).strict();
529
- const reviewItemListSchema = z.object({ items: z.array(reviewItemSchema) }).strict();
530
- /** Open Review items that wait on the viewer. */
526
+ /** `nextCursor` of the page before. */
527
+ cursor: z.string().min(1).max(1e3).optional(),
528
+ /** The number of open items on one page. */
529
+ limit: z.coerce.number().int().min(1).max(100).default(50),
530
+ q: z.string().trim().max(200).optional()
531
+ }).strict();
532
+ /**
533
+ * One page of the review desk list. Open items come first, newest change
534
+ * first. The first page of a search also has the newest archived matches.
535
+ */
536
+ const reviewItemListSchema = z.object({
537
+ items: z.array(reviewItemSchema),
538
+ /** Set when more archived items match than the list shows. */
539
+ moreArchived: z.boolean().optional(),
540
+ /** Set when more open items follow. Pass it as `cursor` to read them. */
541
+ nextCursor: z.string().min(1).optional()
542
+ }).strict();
543
+ /** The count of Review items for the nav. */
531
544
  const reviewItemCountSchema = z.object({
532
- /** Open items assigned to the viewer as a User. */
533
- mine: z.number().int().nonnegative() }).strict();
534
- /** Conversations with an open item assigned to the viewer or Everyone. */
545
+ /**
546
+ * Open action items assigned to the viewer as a User
547
+ * (`reviewItemNeedsUser`). Notices and items for Everyone do not count.
548
+ */
549
+ needsViewer: z.number().int().nonnegative() }).strict();
550
+ /** Conversations linked to an open action item assigned to the viewer. */
535
551
  const reviewItemWaitingConversationsSchema = z.object({ conversationIds: z.array(z.string().min(1)) }).strict();
536
552
  const reviewItemParamsSchema = z.object({ id: z.string().min(1) }).strict();
537
553
  /** One person action on a Review item. */
@@ -603,4 +619,4 @@ const statsReportSchema = z.object({
603
619
  windowEnd: z.string(),
604
620
  windowStart: z.string()
605
621
  }).strict();
606
- export { conversationWatchSchema as $, personParamsSchema as A, connectionListSchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationParamsSchema as F, codeActivityDaySchema as G, connectionSchema as H, activityDays as I, codeOverviewReportSchema as J, codeChangeSummaryReportSchema as K, activityHours as L, locationActivityDayReportSchema as M, locationDetailReportSchema as N, actorDirectoryReportSchema as O, locationDirectoryReportSchema as P, codeRepositorySummarySchema as Q, activitySixHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, disconnectConnectionResponseSchema as U, connectionParamsSchema as V, startConnectionResponseSchema as W, codeRepositoryParamsSchema as X, codePersonReportSchema as Y, codeRepositoryReportSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, apiErrorSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, reviewItemCountSchema as d, conversationWatchesReportSchema as et, reviewItemListQuerySchema as f, reviewItemWaitingConversationsSchema as g, reviewItemSchema as h, deleteWorkspaceResponseSchema as i, conversationStatsReportSchema as it, personalSpendReportSchema as j, actorProfileReportSchema as k, workspaceSchema as l, reviewItemParamsSchema as m, statsReportSchema as n, conversationChildAgentsReportSchema as nt, workspaceListSchema as o, reviewItemListSchema as p, codeChangeSummarySchema as q, baselineSnapshotSchema as r, stopConversationTurnResponseSchema as rt, workspaceParamsSchema as s, statSchema as t, conversationChildAgentSchema as tt, reviewItemActionSchema as u, serviceAccountListSchema as v, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, dailyConversationActivitySchema as z };
622
+ export { codeRepositorySummarySchema as $, avatarParamsSchema as A, dailyConversationActivitySchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationDirectoryReportSchema as F, startConnectionResponseSchema as G, connectionParamsSchema as H, locationParamsSchema as I, codeChangeSummarySchema as J, codeActivityDaySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, actorDirectoryReportSchema as O, locationDetailReportSchema as P, codeRepositoryReportSchema as Q, activityHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, connectionSchema as U, connectionListSchema as V, disconnectConnectionResponseSchema as W, codePersonReportSchema as X, codeOverviewReportSchema as Y, codeRepositoryParamsSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, conversationStatsReportSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, reviewItemCountSchema as d, conversationWatchSchema as et, reviewItemListQuerySchema as f, reviewItemWaitingConversationsSchema as g, reviewItemSchema as h, deleteWorkspaceResponseSchema as i, stopConversationTurnResponseSchema as it, personParamsSchema as j, actorProfileReportSchema as k, workspaceSchema as l, reviewItemParamsSchema as m, statsReportSchema as n, conversationChildAgentSchema as nt, workspaceListSchema as o, apiErrorSchema as ot, reviewItemListSchema as p, codeChangeSummaryReportSchema as q, baselineSnapshotSchema as r, conversationChildAgentsReportSchema as rt, workspaceParamsSchema as s, statSchema as t, conversationWatchesReportSchema as tt, reviewItemActionSchema as u, serviceAccountListSchema as v, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, activitySixHours as z };
@@ -1,7 +1,29 @@
1
- import { n as conversationTurnFailureReasonSchema, t as conversationTurnFailureCodeSchema } from "./history-BgI33Kie.js";
2
1
  import { z } from "zod";
3
- import { OwnedObjectAnnotation as OwnedObjectAnnotation$1 } from "@sentry/junior-plugin-api";
2
+ import { ConversationAnnotation, OwnedObjectAnnotation, OwnedObjectAnnotation as OwnedObjectAnnotation$1 } from "@sentry/junior-plugin-api";
4
3
  declare const INPUT_IMAGE_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
4
+ /** Bound JSON image input below the hosting platform's request size limit. */
5
+ declare const MAX_INPUT_IMAGE_BYTES: number;
6
+ declare const MAX_INPUT_IMAGES = 3;
7
+ /** Image bytes accepted with a web message, never stored in its mailbox row. */
8
+ declare const inputImageSchema: z.ZodObject<{
9
+ filename: z.ZodString;
10
+ contentType: z.ZodEnum<{
11
+ "image/gif": "image/gif";
12
+ "image/jpeg": "image/jpeg";
13
+ "image/png": "image/png";
14
+ "image/webp": "image/webp";
15
+ }>;
16
+ data: z.ZodString;
17
+ }, z.core.$strict>;
18
+ type InputImage = z.output<typeof inputImageSchema>;
19
+ /** Safe attachment facts shared by mailbox input and transcript messages. */
20
+ declare const messageAttachmentSchema: z.ZodObject<{
21
+ id: z.ZodString;
22
+ filename: z.ZodString;
23
+ contentType: z.ZodString;
24
+ bytes: z.ZodNumber;
25
+ }, z.core.$strict>;
26
+ type MessageAttachment = z.output<typeof messageAttachmentSchema>;
5
27
  /**
6
28
  * Build the retry-stable Message id shared by web ingress and browser sends.
7
29
  * Keep the existing hash and prefix so retries still address stored Messages.
@@ -61,6 +83,15 @@ declare const userInputRequestSchema: z.ZodObject<{
61
83
  kind: z.ZodLiteral<"text">;
62
84
  }, z.core.$strip>], "kind">>;
63
85
  }, z.core.$strip>;
86
+ /**
87
+ * Label and help text of the free-text input that every form adds after the
88
+ * fields. The text goes with the picked answers and does not replace them, so
89
+ * every surface says that in the same words.
90
+ */
91
+ declare const USER_INPUT_NOTE: {
92
+ readonly label: "Anything else?";
93
+ readonly description: "Optional. This note is sent together with your answers above.";
94
+ };
64
95
  /** One field of a user input request. */
65
96
  type UserInputField = z.output<typeof userInputFieldSchema>;
66
97
  /** A question with one or more fields for a person to answer. */
@@ -89,12 +120,30 @@ declare function buttonUserInputField(request: UserInputRequest): Extract<UserIn
89
120
  declare function normalizeUserInputAnswer(request: UserInputRequest, answer: UserInputAnswer): UserInputAnswer;
90
121
  /** Return true when an answer has no value and no free text. */
91
122
  declare function isEmptyUserInputAnswer(answer: UserInputAnswer): boolean;
92
- /**
93
- * Write an answer as the text of the person's message. Slack and the web
94
- * dashboard both send this text, so the model reads one format. The first
95
- * line names the request, and each field starts its own line.
96
- */
97
- declare function formatUserInputAnswer(request: UserInputRequest, answer: UserInputAnswer): string;
123
+ /** Saved automation facts shown with a Message, not a live status view. */
124
+ declare const automationCardSchema: z.ZodObject<{
125
+ kind: z.ZodLiteral<"automation">;
126
+ id: z.ZodString;
127
+ title: z.ZodString;
128
+ url: z.ZodNullable<z.ZodString>;
129
+ instruction: z.ZodString;
130
+ trigger: z.ZodString;
131
+ warning: z.ZodNullable<z.ZodString>;
132
+ }, z.core.$strict>;
133
+ type AutomationCard = z.output<typeof automationCardSchema>;
134
+ /** Facts for delivery and display. Messages store only references. */
135
+ type MessageCard = OwnedObjectAnnotation | AutomationCard;
136
+ /** Render each built-in card with its own text format. */
137
+ declare function messageCardText(card: MessageCard): string;
138
+ /** Store only the annotation identity with a Message. */
139
+ declare const messageCardRefSchema: z.ZodObject<{
140
+ plugin: z.ZodString;
141
+ key: z.ZodString;
142
+ kind: z.ZodLiteral<"object">;
143
+ }, z.core.$strict>;
144
+ type MessageCardRef = z.output<typeof messageCardRefSchema>;
145
+ /** Resolve current saved facts without fetching providers or changing history. */
146
+ declare function resolveMessageCards(refs: readonly MessageCardRef[], annotations: readonly ConversationAnnotation[]): OwnedObjectAnnotation[];
98
147
  declare const dailyConversationActivitySchema: z.ZodObject<{
99
148
  active: z.ZodNumber;
100
149
  conversations: z.ZodNumber;
@@ -354,6 +403,34 @@ type CodeOverviewReport = z.infer<typeof codeOverviewReportSchema>;
354
403
  type CodePersonReport = z.infer<typeof codePersonReportSchema>;
355
404
  type CodeRepositoryReport = z.infer<typeof codeRepositoryReportSchema>;
356
405
  type CodeRepositorySummary = z.infer<typeof codeRepositorySummarySchema>;
406
+ /** Where a failed turn stopped. */
407
+ declare const conversationTurnFailureCodeSchema: z.ZodEnum<{
408
+ agent_run_failed: "agent_run_failed";
409
+ delivery_failed: "delivery_failed";
410
+ model_execution_failed: "model_execution_failed";
411
+ persistence_failed: "persistence_failed";
412
+ }>;
413
+ /**
414
+ * Why a failed turn stopped.
415
+ * Values are fixed labels only. Do not store raw exception text.
416
+ */
417
+ declare const conversationTurnFailureReasonSchema: z.ZodEnum<{
418
+ auth: "auth";
419
+ capacity: "capacity";
420
+ content_policy: "content_policy";
421
+ empty_output: "empty_output";
422
+ invalid_request: "invalid_request";
423
+ invalid_response: "invalid_response";
424
+ network: "network";
425
+ permission: "permission";
426
+ quota: "quota";
427
+ rate_limit: "rate_limit";
428
+ server: "server";
429
+ suppressed_output: "suppressed_output";
430
+ timeout: "timeout";
431
+ tool_errors: "tool_errors";
432
+ unknown: "unknown";
433
+ }>;
357
434
  declare const conversationReportStatusSchema: z.ZodEnum<{
358
435
  active: "active";
359
436
  completed: "completed";
@@ -454,6 +531,7 @@ declare const acceptedConversationMessageSchema: z.ZodObject<{
454
531
  }>;
455
532
  }, z.core.$strict>;
456
533
  declare const actorIdentitySchema: z.ZodObject<{
534
+ avatarUrl: z.ZodOptional<z.ZodString>;
457
535
  email: z.ZodOptional<z.ZodString>;
458
536
  fullName: z.ZodOptional<z.ZodString>;
459
537
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -467,6 +545,7 @@ declare const conversationPendingMessageDeliverySchema: z.ZodEnum<{
467
545
  /** One accepted mailbox message that has not reached durable history yet. */
468
546
  declare const conversationPendingMessageSchema: z.ZodObject<{
469
547
  actorIdentity: z.ZodOptional<z.ZodObject<{
548
+ avatarUrl: z.ZodOptional<z.ZodString>;
470
549
  email: z.ZodOptional<z.ZodString>;
471
550
  fullName: z.ZodOptional<z.ZodString>;
472
551
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -486,6 +565,13 @@ declare const conversationPendingMessageSchema: z.ZodObject<{
486
565
  web: "web";
487
566
  }>;
488
567
  text: z.ZodOptional<z.ZodString>;
568
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
+ avatarUrl: z.ZodOptional<z.ZodString>;
570
+ email: z.ZodOptional<z.ZodString>;
571
+ fullName: z.ZodOptional<z.ZodString>;
572
+ slackUserId: z.ZodOptional<z.ZodString>;
573
+ slackUserName: z.ZodOptional<z.ZodString>;
574
+ }, z.core.$strict>>>;
489
575
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
490
576
  id: z.ZodString;
491
577
  filename: z.ZodString;
@@ -511,6 +597,7 @@ declare const conversationPendingMessagesReportSchema: z.ZodObject<{
511
597
  generatedAt: z.ZodString;
512
598
  messages: z.ZodArray<z.ZodObject<{
513
599
  actorIdentity: z.ZodOptional<z.ZodObject<{
600
+ avatarUrl: z.ZodOptional<z.ZodString>;
514
601
  email: z.ZodOptional<z.ZodString>;
515
602
  fullName: z.ZodOptional<z.ZodString>;
516
603
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -530,6 +617,13 @@ declare const conversationPendingMessagesReportSchema: z.ZodObject<{
530
617
  web: "web";
531
618
  }>;
532
619
  text: z.ZodOptional<z.ZodString>;
620
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
621
+ avatarUrl: z.ZodOptional<z.ZodString>;
622
+ email: z.ZodOptional<z.ZodString>;
623
+ fullName: z.ZodOptional<z.ZodString>;
624
+ slackUserId: z.ZodOptional<z.ZodString>;
625
+ slackUserName: z.ZodOptional<z.ZodString>;
626
+ }, z.core.$strict>>>;
533
627
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
534
628
  id: z.ZodString;
535
629
  filename: z.ZodString;
@@ -588,6 +682,7 @@ declare const conversationSourceTaskSchema: z.ZodObject<{
588
682
  declare const conversationActivityPreviewSchema: z.ZodObject<{
589
683
  createdAt: z.ZodString;
590
684
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
685
+ avatarUrl: z.ZodOptional<z.ZodString>;
591
686
  email: z.ZodOptional<z.ZodString>;
592
687
  fullName: z.ZodOptional<z.ZodString>;
593
688
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -604,6 +699,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
604
699
  activityPreview: z.ZodOptional<z.ZodObject<{
605
700
  createdAt: z.ZodString;
606
701
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
702
+ avatarUrl: z.ZodOptional<z.ZodString>;
607
703
  email: z.ZodOptional<z.ZodString>;
608
704
  fullName: z.ZodOptional<z.ZodString>;
609
705
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -681,12 +777,14 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
681
777
  slack: "slack";
682
778
  }>;
683
779
  actorIdentity: z.ZodOptional<z.ZodObject<{
780
+ avatarUrl: z.ZodOptional<z.ZodString>;
684
781
  email: z.ZodOptional<z.ZodString>;
685
782
  fullName: z.ZodOptional<z.ZodString>;
686
783
  slackUserId: z.ZodOptional<z.ZodString>;
687
784
  slackUserName: z.ZodOptional<z.ZodString>;
688
785
  }, z.core.$strict>>;
689
786
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
787
+ avatarUrl: z.ZodOptional<z.ZodString>;
690
788
  email: z.ZodOptional<z.ZodString>;
691
789
  fullName: z.ZodOptional<z.ZodString>;
692
790
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -839,6 +937,7 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
839
937
  web: "web";
840
938
  }>>;
841
939
  actorIdentity: z.ZodOptional<z.ZodObject<{
940
+ avatarUrl: z.ZodOptional<z.ZodString>;
842
941
  email: z.ZodOptional<z.ZodString>;
843
942
  fullName: z.ZodOptional<z.ZodString>;
844
943
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -1094,6 +1193,7 @@ declare const conversationReportEventSchema: z.ZodObject<{
1094
1193
  web: "web";
1095
1194
  }>>;
1096
1195
  actorIdentity: z.ZodOptional<z.ZodObject<{
1196
+ avatarUrl: z.ZodOptional<z.ZodString>;
1097
1197
  email: z.ZodOptional<z.ZodString>;
1098
1198
  fullName: z.ZodOptional<z.ZodString>;
1099
1199
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -1333,6 +1433,7 @@ declare const conversationReportEventSchema: z.ZodObject<{
1333
1433
  }>;
1334
1434
  }, z.core.$strict>], "type">;
1335
1435
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1436
+ avatarUrl: z.ZodOptional<z.ZodString>;
1336
1437
  email: z.ZodOptional<z.ZodString>;
1337
1438
  fullName: z.ZodOptional<z.ZodString>;
1338
1439
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -1410,6 +1511,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1410
1511
  activityPreview: z.ZodOptional<z.ZodObject<{
1411
1512
  createdAt: z.ZodString;
1412
1513
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1514
+ avatarUrl: z.ZodOptional<z.ZodString>;
1413
1515
  email: z.ZodOptional<z.ZodString>;
1414
1516
  fullName: z.ZodOptional<z.ZodString>;
1415
1517
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -1487,12 +1589,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1487
1589
  slack: "slack";
1488
1590
  }>;
1489
1591
  actorIdentity: z.ZodOptional<z.ZodObject<{
1592
+ avatarUrl: z.ZodOptional<z.ZodString>;
1490
1593
  email: z.ZodOptional<z.ZodString>;
1491
1594
  fullName: z.ZodOptional<z.ZodString>;
1492
1595
  slackUserId: z.ZodOptional<z.ZodString>;
1493
1596
  slackUserName: z.ZodOptional<z.ZodString>;
1494
1597
  }, z.core.$strict>>;
1495
1598
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1599
+ avatarUrl: z.ZodOptional<z.ZodString>;
1496
1600
  email: z.ZodOptional<z.ZodString>;
1497
1601
  fullName: z.ZodOptional<z.ZodString>;
1498
1602
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -1699,6 +1803,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1699
1803
  keywords: z.ZodArray<z.ZodString>;
1700
1804
  }, z.core.$strict>;
1701
1805
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1806
+ avatarUrl: z.ZodOptional<z.ZodString>;
1702
1807
  email: z.ZodOptional<z.ZodString>;
1703
1808
  fullName: z.ZodOptional<z.ZodString>;
1704
1809
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -1741,6 +1846,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1741
1846
  web: "web";
1742
1847
  }>>;
1743
1848
  actorIdentity: z.ZodOptional<z.ZodObject<{
1849
+ avatarUrl: z.ZodOptional<z.ZodString>;
1744
1850
  email: z.ZodOptional<z.ZodString>;
1745
1851
  fullName: z.ZodOptional<z.ZodString>;
1746
1852
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -1980,6 +2086,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1980
2086
  }>;
1981
2087
  }, z.core.$strict>], "type">;
1982
2088
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2089
+ avatarUrl: z.ZodOptional<z.ZodString>;
1983
2090
  email: z.ZodOptional<z.ZodString>;
1984
2091
  fullName: z.ZodOptional<z.ZodString>;
1985
2092
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -2057,6 +2164,7 @@ declare const conversationEventPageSchema: z.ZodObject<{
2057
2164
  web: "web";
2058
2165
  }>>;
2059
2166
  actorIdentity: z.ZodOptional<z.ZodObject<{
2167
+ avatarUrl: z.ZodOptional<z.ZodString>;
2060
2168
  email: z.ZodOptional<z.ZodString>;
2061
2169
  fullName: z.ZodOptional<z.ZodString>;
2062
2170
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -2296,6 +2404,7 @@ declare const conversationEventPageSchema: z.ZodObject<{
2296
2404
  }>;
2297
2405
  }, z.core.$strict>], "type">;
2298
2406
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2407
+ avatarUrl: z.ZodOptional<z.ZodString>;
2299
2408
  email: z.ZodOptional<z.ZodString>;
2300
2409
  fullName: z.ZodOptional<z.ZodString>;
2301
2410
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -2345,6 +2454,7 @@ declare const conversationFeedSchema: z.ZodObject<{
2345
2454
  activityPreview: z.ZodOptional<z.ZodObject<{
2346
2455
  createdAt: z.ZodString;
2347
2456
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2457
+ avatarUrl: z.ZodOptional<z.ZodString>;
2348
2458
  email: z.ZodOptional<z.ZodString>;
2349
2459
  fullName: z.ZodOptional<z.ZodString>;
2350
2460
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -2422,12 +2532,14 @@ declare const conversationFeedSchema: z.ZodObject<{
2422
2532
  slack: "slack";
2423
2533
  }>;
2424
2534
  actorIdentity: z.ZodOptional<z.ZodObject<{
2535
+ avatarUrl: z.ZodOptional<z.ZodString>;
2425
2536
  email: z.ZodOptional<z.ZodString>;
2426
2537
  fullName: z.ZodOptional<z.ZodString>;
2427
2538
  slackUserId: z.ZodOptional<z.ZodString>;
2428
2539
  slackUserName: z.ZodOptional<z.ZodString>;
2429
2540
  }, z.core.$strict>>;
2430
2541
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2542
+ avatarUrl: z.ZodOptional<z.ZodString>;
2431
2543
  email: z.ZodOptional<z.ZodString>;
2432
2544
  fullName: z.ZodOptional<z.ZodString>;
2433
2545
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -3019,6 +3131,7 @@ declare const actorSummaryReportSchema: z.ZodObject<{
3019
3131
  firstSeenAt: z.ZodString;
3020
3132
  lastSeenAt: z.ZodString;
3021
3133
  actor: z.ZodObject<{
3134
+ avatarUrl: z.ZodOptional<z.ZodString>;
3022
3135
  fullName: z.ZodOptional<z.ZodString>;
3023
3136
  slackUserId: z.ZodOptional<z.ZodString>;
3024
3137
  slackUserName: z.ZodOptional<z.ZodString>;
@@ -3078,6 +3191,7 @@ declare const actorDirectoryReportSchema: z.ZodObject<{
3078
3191
  firstSeenAt: z.ZodString;
3079
3192
  lastSeenAt: z.ZodString;
3080
3193
  actor: z.ZodObject<{
3194
+ avatarUrl: z.ZodOptional<z.ZodString>;
3081
3195
  fullName: z.ZodOptional<z.ZodString>;
3082
3196
  slackUserId: z.ZodOptional<z.ZodString>;
3083
3197
  slackUserName: z.ZodOptional<z.ZodString>;
@@ -3156,6 +3270,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
3156
3270
  activityPreview: z.ZodOptional<z.ZodObject<{
3157
3271
  createdAt: z.ZodString;
3158
3272
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3273
+ avatarUrl: z.ZodOptional<z.ZodString>;
3159
3274
  email: z.ZodOptional<z.ZodString>;
3160
3275
  fullName: z.ZodOptional<z.ZodString>;
3161
3276
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -3233,12 +3348,14 @@ declare const actorProfileReportSchema: z.ZodObject<{
3233
3348
  slack: "slack";
3234
3349
  }>;
3235
3350
  actorIdentity: z.ZodOptional<z.ZodObject<{
3351
+ avatarUrl: z.ZodOptional<z.ZodString>;
3236
3352
  email: z.ZodOptional<z.ZodString>;
3237
3353
  fullName: z.ZodOptional<z.ZodString>;
3238
3354
  slackUserId: z.ZodOptional<z.ZodString>;
3239
3355
  slackUserName: z.ZodOptional<z.ZodString>;
3240
3356
  }, z.core.$strict>>;
3241
3357
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
3358
+ avatarUrl: z.ZodOptional<z.ZodString>;
3242
3359
  email: z.ZodOptional<z.ZodString>;
3243
3360
  fullName: z.ZodOptional<z.ZodString>;
3244
3361
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -3364,6 +3481,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
3364
3481
  unfinishedWork: z.ZodOptional<z.ZodBoolean>;
3365
3482
  }, z.core.$strict>>;
3366
3483
  actor: z.ZodObject<{
3484
+ avatarUrl: z.ZodOptional<z.ZodString>;
3367
3485
  fullName: z.ZodOptional<z.ZodString>;
3368
3486
  slackUserId: z.ZodOptional<z.ZodString>;
3369
3487
  slackUserName: z.ZodOptional<z.ZodString>;
@@ -3442,6 +3560,7 @@ declare const locationActorSummaryReportSchema: z.ZodObject<{
3442
3560
  costUsd: z.ZodOptional<z.ZodNumber>;
3443
3561
  tokens: z.ZodOptional<z.ZodNumber>;
3444
3562
  actor: z.ZodObject<{
3563
+ avatarUrl: z.ZodOptional<z.ZodString>;
3445
3564
  email: z.ZodOptional<z.ZodString>;
3446
3565
  fullName: z.ZodOptional<z.ZodString>;
3447
3566
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -3561,6 +3680,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
3561
3680
  costUsd: z.ZodOptional<z.ZodNumber>;
3562
3681
  tokens: z.ZodOptional<z.ZodNumber>;
3563
3682
  actor: z.ZodObject<{
3683
+ avatarUrl: z.ZodOptional<z.ZodString>;
3564
3684
  email: z.ZodOptional<z.ZodString>;
3565
3685
  fullName: z.ZodOptional<z.ZodString>;
3566
3686
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -3573,6 +3693,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
3573
3693
  activityPreview: z.ZodOptional<z.ZodObject<{
3574
3694
  createdAt: z.ZodString;
3575
3695
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3696
+ avatarUrl: z.ZodOptional<z.ZodString>;
3576
3697
  email: z.ZodOptional<z.ZodString>;
3577
3698
  fullName: z.ZodOptional<z.ZodString>;
3578
3699
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -3650,12 +3771,14 @@ declare const locationDetailReportSchema: z.ZodObject<{
3650
3771
  slack: "slack";
3651
3772
  }>;
3652
3773
  actorIdentity: z.ZodOptional<z.ZodObject<{
3774
+ avatarUrl: z.ZodOptional<z.ZodString>;
3653
3775
  email: z.ZodOptional<z.ZodString>;
3654
3776
  fullName: z.ZodOptional<z.ZodString>;
3655
3777
  slackUserId: z.ZodOptional<z.ZodString>;
3656
3778
  slackUserName: z.ZodOptional<z.ZodString>;
3657
3779
  }, z.core.$strict>>;
3658
3780
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
3781
+ avatarUrl: z.ZodOptional<z.ZodString>;
3659
3782
  email: z.ZodOptional<z.ZodString>;
3660
3783
  fullName: z.ZodOptional<z.ZodString>;
3661
3784
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4005,6 +4128,7 @@ declare const scheduledAutomationSummarySchema: z.ZodObject<{
4005
4128
  id: z.ZodString;
4006
4129
  instruction: z.ZodString;
4007
4130
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4131
+ avatarUrl: z.ZodOptional<z.ZodString>;
4008
4132
  email: z.ZodOptional<z.ZodString>;
4009
4133
  fullName: z.ZodOptional<z.ZodString>;
4010
4134
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4074,6 +4198,7 @@ declare const eventAutomationSummarySchema: z.ZodObject<{
4074
4198
  id: z.ZodString;
4075
4199
  instruction: z.ZodString;
4076
4200
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4201
+ avatarUrl: z.ZodOptional<z.ZodString>;
4077
4202
  email: z.ZodOptional<z.ZodString>;
4078
4203
  fullName: z.ZodOptional<z.ZodString>;
4079
4204
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4146,6 +4271,7 @@ declare const automationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4146
4271
  id: z.ZodString;
4147
4272
  instruction: z.ZodString;
4148
4273
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4274
+ avatarUrl: z.ZodOptional<z.ZodString>;
4149
4275
  email: z.ZodOptional<z.ZodString>;
4150
4276
  fullName: z.ZodOptional<z.ZodString>;
4151
4277
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4214,6 +4340,7 @@ declare const automationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4214
4340
  id: z.ZodString;
4215
4341
  instruction: z.ZodString;
4216
4342
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4343
+ avatarUrl: z.ZodOptional<z.ZodString>;
4217
4344
  email: z.ZodOptional<z.ZodString>;
4218
4345
  fullName: z.ZodOptional<z.ZodString>;
4219
4346
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4343,6 +4470,7 @@ declare const automationListSchema: z.ZodObject<{
4343
4470
  id: z.ZodString;
4344
4471
  instruction: z.ZodString;
4345
4472
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4473
+ avatarUrl: z.ZodOptional<z.ZodString>;
4346
4474
  email: z.ZodOptional<z.ZodString>;
4347
4475
  fullName: z.ZodOptional<z.ZodString>;
4348
4476
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4411,6 +4539,7 @@ declare const automationListSchema: z.ZodObject<{
4411
4539
  id: z.ZodString;
4412
4540
  instruction: z.ZodString;
4413
4541
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4542
+ avatarUrl: z.ZodOptional<z.ZodString>;
4414
4543
  email: z.ZodOptional<z.ZodString>;
4415
4544
  fullName: z.ZodOptional<z.ZodString>;
4416
4545
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4579,6 +4708,7 @@ declare const automationExecutionListSchema: z.ZodObject<{
4579
4708
  id: z.ZodString;
4580
4709
  instruction: z.ZodString;
4581
4710
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4711
+ avatarUrl: z.ZodOptional<z.ZodString>;
4582
4712
  email: z.ZodOptional<z.ZodString>;
4583
4713
  fullName: z.ZodOptional<z.ZodString>;
4584
4714
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -4647,6 +4777,7 @@ declare const automationExecutionListSchema: z.ZodObject<{
4647
4777
  id: z.ZodString;
4648
4778
  instruction: z.ZodString;
4649
4779
  mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4780
+ avatarUrl: z.ZodOptional<z.ZodString>;
4650
4781
  email: z.ZodOptional<z.ZodString>;
4651
4782
  fullName: z.ZodOptional<z.ZodString>;
4652
4783
  slackUserId: z.ZodOptional<z.ZodString>;
@@ -5710,6 +5841,10 @@ declare const reviewItemSchema: z.ZodObject<{
5710
5841
  }>;
5711
5842
  }, z.core.$strict>;
5712
5843
  type ReviewItemPayload = z.output<typeof reviewItemSchema>;
5844
+ /**
5845
+ * One page of the review desk list. Open items come first, newest change
5846
+ * first. The first page of a search also has the newest archived matches.
5847
+ */
5713
5848
  declare const reviewItemListSchema: z.ZodObject<{
5714
5849
  items: z.ZodArray<z.ZodObject<{
5715
5850
  addedByConversationId: z.ZodString;
@@ -5786,12 +5921,14 @@ declare const reviewItemListSchema: z.ZodObject<{
5786
5921
  public: "public";
5787
5922
  }>;
5788
5923
  }, z.core.$strict>>;
5924
+ moreArchived: z.ZodOptional<z.ZodBoolean>;
5925
+ nextCursor: z.ZodOptional<z.ZodString>;
5789
5926
  }, z.core.$strict>;
5790
- /** Open Review items that wait on the viewer. */
5927
+ /** The count of Review items for the nav. */
5791
5928
  declare const reviewItemCountSchema: z.ZodObject<{
5792
- mine: z.ZodNumber;
5929
+ needsViewer: z.ZodNumber;
5793
5930
  }, z.core.$strict>;
5794
- /** Conversations with an open item assigned to the viewer or Everyone. */
5931
+ /** Conversations linked to an open action item assigned to the viewer. */
5795
5932
  declare const reviewItemWaitingConversationsSchema: z.ZodObject<{
5796
5933
  conversationIds: z.ZodArray<z.ZodString>;
5797
5934
  }, z.core.$strict>;
@@ -5810,4 +5947,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5810
5947
  }, z.core.$strict>;
5811
5948
  }, z.core.$strict>], "action">;
5812
5949
  type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
5813
- export { automationExecutionStatusDaySchema as $, ConversationReportEvent as $n, codeRepositoryReportSchema as $r, LocationSummaryReport as $t, StatsReport as A, ConversationStatsReport as An, conversationPendingMessageSchema as Ar, createPersonalTokenBodySchema as At, AutomationRun as B, ConversationActivityPreview as Bn, steerConversationPendingMessagesResponseSchema as Br, startServiceAccountSignInResponseSchema as Bt, pluginPackageContentReportSchema as C, ConversationChildAgentsReport as Cn, conversationEventPageSchema as Cr, workspaceListSchema as Ct, skillReportSchema as D, stopConversationTurnResponseSchema as Dn, conversationParamsSchema as Dr, USER_CUSTOMIZATION_MAX_CHARS as Dt, runtimeInfoReportSchema as E, StopConversationTurnResponse as En, conversationFeedSchema as Er, workspaceSchema as Et, AutomationExecutionDay as F, ActorIdentity as Fn, createConversationBodySchema as Fr, revokePersonalTokenResponseSchema as Ft, AutomationUpdate as G, ConversationEventHistory as Gn, CodeRepositoryReport as Gr, startConnectionResponseSchema as Gt, AutomationRunWindows as H, ConversationAuxiliaryCosts as Hn, CodeChangeSummaryReport as Hr, connectionParamsSchema as Ht, AutomationExecutionList as I, ArchiveConversationBody as In, createConversationMessageBodySchema as Ir, disconnectServiceAccountResponseSchema as It, automationEditErrorSchema as J, ConversationModelUsage as Jn, codeChangeSummaryReportSchema as Jr, LocationActivityDayReport as Jt, AutomationVersionList as K, ConversationEventPage as Kn, CodeRepositorySummary as Kr, ApiError as Kt, AutomationExecutionStatusDay as L, ArchiveConversationResponse as Ln, forkConversationBodySchema as Lr, serviceAccountListSchema as Lt, statsReportSchema as M, GuardianStats as Mn, conversationReportEventDataSchema as Mr, personalTokenListSchema as Mt, AutomationEdit as N, conversationStatsReportSchema as Nn, conversationReportEventSchema as Nr, personalTokenMetadataSchema as Nt, skillReportsSchema as O, ConversationMetricDay as On, conversationPendingAuthorizationSchema as Or, userCustomizationSchema as Ot, AutomationExecution as P, AcceptedConversationMessage as Pn, conversationSummaryReportSchema as Pr, personalTokenParamsSchema as Pt, automationExecutionSchema as Q, ConversationPendingMessagesReport as Qn, codeRepositoryParamsSchema as Qr, LocationParams as Qt, AutomationList as R, CancelConversationPendingMessagesBody as Rn, forkConversationResponseSchema as Rr, serviceAccountParamsSchema as Rt, pluginPackageContentItemReportSchema as S, ConversationChildAgent as Sn, conversationEventHistorySchema as Sr, workspaceBodySchema as St, pluginsSchema as T, conversationChildAgentsReportSchema as Tn, conversationFeedQuerySchema as Tr, workspaceRepoSchema as Tt, AutomationScheduleIntent as U, ConversationCost as Un, CodeOverviewReport as Ur, connectionSchema as Ut, AutomationRunList as V, ConversationAgentTreeNode as Vn, CodeActivityDay as Vr, connectionListSchema as Vt, AutomationSummary as W, ConversationDetailReport as Wn, CodePersonReport as Wr, disconnectConnectionResponseSchema as Wt, automationEventCatalogSchema as X, ConversationPendingMessage as Xn, codeOverviewReportSchema as Xr, LocationDetailReport as Xt, automationEditSchema as Y, ConversationParams as Yn, codeChangeSummarySchema as Yr, LocationActorSummaryReport as Yt, automationExecutionListSchema as Z, ConversationPendingMessageDelivery as Zn, codePersonReportSchema as Zr, LocationDirectoryReport as Zt, SkillReport as _, personalSpendReportSchema as _n, cancelConversationPendingMessagesResponseSchema as _r, BaselineSnapshotReport as _t, reviewItemCountSchema as a, UserInputAnswer as ai, ActorDirectoryReport as an, ConversationSurface as ar, automationRunSchema as at, pluginOperationalReportFeedSchema as b, conversationWatchSchema as bn, conversationDetailQuerySchema as br, baselineSnapshotSchema as bt, reviewItemWaitingConversationsSchema as c, buttonUserInputField as ci, ActorSummaryReport as cn, ConversationUsage as cr, automationSchedulePreviewSchema as ct, PluginOperationalReport as d, normalizeUserInputAnswer as di, PeopleActivityDayReport as dn, SteerConversationPendingMessagesBody as dr, automationVersionActivateSchema as dt, codeRepositorySummarySchema as ei, locationActivityDayReportSchema as en, ConversationReportEventData as er, automationExecutionStatusSchema as et, PluginOperationalReportFeed as f, userInputRequestSchema as fi, PersonParams as fn, SteerConversationPendingMessagesResponse as fr, automationVersionListSchema as ft, RuntimeInfoReport as g, personParamsSchema as gn, cancelConversationPendingMessagesBodySchema as gr, scheduledAutomationSummarySchema as gt, Plugins as h, actorProfileReportSchema as hn, archiveConversationResponseSchema as hr, eventAutomationSummarySchema as ht, reviewItemActionSchema as i, dailyConversationActivitySchema as ii, ActorActivityDayReport as in, ConversationSummaryReport as ir, automationRunListSchema as it, statSchema as j, GuardianMetricDay as jn, conversationPendingMessagesReportSchema as jr, createdPersonalTokenSchema as jt, StatReport as k, ConversationStatsItem as kn, conversationPendingMessageDeliverySchema as kr, PersonalTokenMetadata as kt, HealthReport as l, formatUserInputAnswer as li, ActorTotalsReport as ln, CreateConversationBody as lr, automationSummarySchema as lt, PluginPackageContentReport as m, INPUT_IMAGE_TYPES as mi, actorDirectoryReportSchema as mn, archiveConversationBodySchema as mr, automationVersionSchema as mt, ReviewItemActionBody as n, conversationChildAgentTotalsSchema as ni, locationDirectoryReportSchema as nn, ConversationReportStatus as nr, automationListSchema as nt, reviewItemListSchema as o, UserInputField as oi, ActorDirectoryWindows as on, ConversationTurnFailureCode as or, automationRunWindowsSchema as ot, PluginPackageContentItemReport as p, webMessageId as pi, PersonalSpendReport as pn, acceptedConversationMessageSchema as pr, automationVersionParamsSchema as pt, ListedAutomationVersion as q, ConversationFeed as qn, codeActivityDaySchema as qr, apiErrorSchema as qt, ReviewItemPayload as r, DailyConversationActivity as ri, locationParamsSchema as rn, ConversationSourceTask as rr, automationParamsSchema as rt, reviewItemSchema as s, UserInputRequest as si, ActorProfileReport as sn, ConversationTurnFailureReason as sr, automationScheduleIntentSchema as st, OwnedObjectAnnotation$1 as t, ConversationChildAgentTotals as ti, locationDetailReportSchema as tn, ConversationReportMessageEvent as tr, automationListQuerySchema as tt, Plugin as u, isEmptyUserInputAnswer as ui, ActorWindowMetrics as un, CreateConversationMessageBody as ur, automationUpdateSchema as ut, SkillReports as v, ConversationWatch as vn, conversationActivityPreviewSchema as vr, WorkspaceListReport as vt, pluginSchema as w, conversationChildAgentSchema as wn, conversationEventsQuerySchema as wr, workspaceParamsSchema as wt, pluginOperationalReportSchema as x, conversationWatchesReportSchema as xn, conversationDetailReportSchema as xr, deleteWorkspaceResponseSchema as xt, healthReportSchema as y, ConversationWatchesReport as yn, conversationAuxiliaryCostsSchema as yr, WorkspaceReport as yt, AutomationListQuery as z, CancelConversationPendingMessagesResponse as zn, steerConversationPendingMessagesBodySchema as zr, serviceAccountSchema as zt };
5950
+ export { automationExecutionStatusDaySchema as $, ConversationReportEvent as $n, codePersonReportSchema as $r, LocationSummaryReport as $t, StatsReport as A, ConversationStatsReport as An, conversationPendingMessageSchema as Ar, createPersonalTokenBodySchema as At, AutomationRun as B, ConversationActivityPreview as Bn, steerConversationPendingMessagesResponseSchema as Br, startServiceAccountSignInResponseSchema as Bt, pluginPackageContentReportSchema as C, INPUT_IMAGE_TYPES as Ci, ConversationChildAgentsReport as Cn, conversationEventPageSchema as Cr, workspaceListSchema as Ct, skillReportSchema as D, stopConversationTurnResponseSchema as Dn, conversationParamsSchema as Dr, USER_CUSTOMIZATION_MAX_CHARS as Dt, runtimeInfoReportSchema as E, StopConversationTurnResponse as En, conversationFeedSchema as Er, workspaceSchema as Et, AutomationExecutionDay as F, ActorIdentity as Fn, createConversationBodySchema as Fr, revokePersonalTokenResponseSchema as Ft, AutomationUpdate as G, ConversationEventHistory as Gn, CodeOverviewReport as Gr, startConnectionResponseSchema as Gt, AutomationRunWindows as H, ConversationAuxiliaryCosts as Hn, conversationTurnFailureReasonSchema as Hr, connectionParamsSchema as Ht, AutomationExecutionList as I, ArchiveConversationBody as In, createConversationMessageBodySchema as Ir, disconnectServiceAccountResponseSchema as It, automationEditErrorSchema as J, ConversationModelUsage as Jn, CodeRepositorySummary as Jr, LocationActivityDayReport as Jt, AutomationVersionList as K, ConversationEventPage as Kn, CodePersonReport as Kr, ApiError as Kt, AutomationExecutionStatusDay as L, ArchiveConversationResponse as Ln, forkConversationBodySchema as Lr, serviceAccountListSchema as Lt, statsReportSchema as M, GuardianStats as Mn, conversationReportEventDataSchema as Mr, personalTokenListSchema as Mt, AutomationEdit as N, conversationStatsReportSchema as Nn, conversationReportEventSchema as Nr, personalTokenMetadataSchema as Nt, skillReportsSchema as O, ConversationMetricDay as On, conversationPendingAuthorizationSchema as Or, userCustomizationSchema as Ot, AutomationExecution as P, AcceptedConversationMessage as Pn, conversationSummaryReportSchema as Pr, personalTokenParamsSchema as Pt, automationExecutionSchema as Q, ConversationPendingMessagesReport as Qn, codeOverviewReportSchema as Qr, LocationParams as Qt, AutomationList as R, CancelConversationPendingMessagesBody as Rn, forkConversationResponseSchema as Rr, serviceAccountParamsSchema as Rt, pluginPackageContentItemReportSchema as S, MessageAttachment as Si, ConversationChildAgent as Sn, conversationEventHistorySchema as Sr, workspaceBodySchema as St, pluginsSchema as T, conversationChildAgentsReportSchema as Tn, conversationFeedQuerySchema as Tr, workspaceRepoSchema as Tt, AutomationScheduleIntent as U, ConversationCost as Un, CodeActivityDay as Ur, connectionSchema as Ut, AutomationRunList as V, ConversationAgentTreeNode as Vn, conversationTurnFailureCodeSchema as Vr, connectionListSchema as Vt, AutomationSummary as W, ConversationDetailReport as Wn, CodeChangeSummaryReport as Wr, disconnectConnectionResponseSchema as Wt, automationEventCatalogSchema as X, ConversationPendingMessage as Xn, codeChangeSummaryReportSchema as Xr, LocationDetailReport as Xt, automationEditSchema as Y, ConversationParams as Yn, codeActivityDaySchema as Yr, LocationActorSummaryReport as Yt, automationExecutionListSchema as Z, ConversationPendingMessageDelivery as Zn, codeChangeSummarySchema as Zr, LocationDirectoryReport as Zt, SkillReport as _, normalizeUserInputAnswer as _i, personalSpendReportSchema as _n, cancelConversationPendingMessagesResponseSchema as _r, BaselineSnapshotReport as _t, reviewItemCountSchema as a, DailyConversationActivity as ai, ActorDirectoryReport as an, ConversationSurface as ar, automationRunSchema as at, pluginOperationalReportFeedSchema as b, MAX_INPUT_IMAGES as bi, conversationWatchSchema as bn, conversationDetailQuerySchema as br, baselineSnapshotSchema as bt, reviewItemWaitingConversationsSchema as c, messageCardText as ci, ActorSummaryReport as cn, ConversationUsage as cr, automationSchedulePreviewSchema as ct, PluginOperationalReport as d, USER_INPUT_NOTE as di, PeopleActivityDayReport as dn, SteerConversationPendingMessagesBody as dr, automationVersionActivateSchema as dt, codeRepositoryParamsSchema as ei, locationActivityDayReportSchema as en, ConversationReportEventData as er, automationExecutionStatusSchema as et, PluginOperationalReportFeed as f, UserInputAnswer as fi, PersonParams as fn, SteerConversationPendingMessagesResponse as fr, automationVersionListSchema as ft, RuntimeInfoReport as g, isEmptyUserInputAnswer as gi, personParamsSchema as gn, cancelConversationPendingMessagesBodySchema as gr, scheduledAutomationSummarySchema as gt, Plugins as h, buttonUserInputField as hi, actorProfileReportSchema as hn, archiveConversationResponseSchema as hr, eventAutomationSummarySchema as ht, reviewItemActionSchema as i, conversationChildAgentTotalsSchema as ii, ActorActivityDayReport as in, ConversationSummaryReport as ir, automationRunListSchema as it, statSchema as j, GuardianMetricDay as jn, conversationPendingMessagesReportSchema as jr, createdPersonalTokenSchema as jt, StatReport as k, ConversationStatsItem as kn, conversationPendingMessageDeliverySchema as kr, PersonalTokenMetadata as kt, HealthReport as l, resolveMessageCards as li, ActorTotalsReport as ln, CreateConversationBody as lr, automationSummarySchema as lt, PluginPackageContentReport as m, UserInputRequest as mi, actorDirectoryReportSchema as mn, archiveConversationBodySchema as mr, automationVersionSchema as mt, ReviewItemActionBody as n, codeRepositorySummarySchema as ni, locationDirectoryReportSchema as nn, ConversationReportStatus as nr, automationListSchema as nt, reviewItemListSchema as o, dailyConversationActivitySchema as oi, ActorDirectoryWindows as on, ConversationTurnFailureCode as or, automationRunWindowsSchema as ot, PluginPackageContentItemReport as p, UserInputField as pi, PersonalSpendReport as pn, acceptedConversationMessageSchema as pr, automationVersionParamsSchema as pt, ListedAutomationVersion as q, ConversationFeed as qn, CodeRepositoryReport as qr, apiErrorSchema as qt, ReviewItemPayload as r, ConversationChildAgentTotals as ri, locationParamsSchema as rn, ConversationSourceTask as rr, automationParamsSchema as rt, reviewItemSchema as s, MessageCard as si, ActorProfileReport as sn, ConversationTurnFailureReason as sr, automationScheduleIntentSchema as st, OwnedObjectAnnotation$1 as t, codeRepositoryReportSchema as ti, locationDetailReportSchema as tn, ConversationReportMessageEvent as tr, automationListQuerySchema as tt, Plugin as u, AutomationCard as ui, ActorWindowMetrics as un, CreateConversationMessageBody as ur, automationUpdateSchema as ut, SkillReports as v, webMessageId as vi, ConversationWatch as vn, conversationActivityPreviewSchema as vr, WorkspaceListReport as vt, pluginSchema as w, conversationChildAgentSchema as wn, conversationEventsQuerySchema as wr, workspaceParamsSchema as wt, pluginOperationalReportSchema as x, MAX_INPUT_IMAGE_BYTES as xi, conversationWatchesReportSchema as xn, conversationDetailReportSchema as xr, deleteWorkspaceResponseSchema as xt, healthReportSchema as y, InputImage as yi, ConversationWatchesReport as yn, conversationAuxiliaryCostsSchema as yr, WorkspaceReport as yt, AutomationListQuery as z, CancelConversationPendingMessagesResponse as zn, steerConversationPendingMessagesBodySchema as zr, serviceAccountSchema as zt };