@sentry/junior 0.298.0 → 0.300.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 (95) hide show
  1. package/dist/{actor-6jsm_v96.js → actor-D2iXzvlN.js} +2 -1
  2. package/dist/{state-CSuA2J1V.js → adapter-S5UkjNK3.js} +53 -136
  3. package/dist/{admin-BF3DbYGf.js → admin-UrTniSPO.js} +2 -2
  4. package/dist/{agent-runner-Q9GkoerG.js → agent-runner-bY4_0UPm.js} +1444 -1478
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +7 -7
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +382 -68
  9. package/dist/{app-DOg_mCtV.d.ts → app-D-AcIcCV.d.ts} +17 -4
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +148 -483
  12. package/dist/{automation-Cn8qmbdr.js → automation-Dw82oQ-h.js} +2 -2
  13. package/dist/{background-compaction-queue-BZhGFOK6.js → background-compaction-queue-B6U3060-.js} +9 -5
  14. package/dist/{briefs-CQrCRF6-.js → briefs-DqiwWu-n.js} +4 -4
  15. package/dist/{catalog-runtime-DZeD2WbL.js → catalog-runtime-D1oYNv04.js} +1 -1
  16. package/dist/cli/chat.js +17 -17
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +5 -5
  20. package/dist/cli/snapshot-create.js +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +4 -4
  23. package/dist/{config-BOByVnxe.js → config-9nHoFiJP.js} +117 -12
  24. package/dist/{connections-BNN5cJam.js → connections-DZjTN3JC.js} +6 -6
  25. package/dist/continue-in-slack-Dtv7_U42.js +176 -0
  26. package/dist/{conversation-DCkzvxqB.js → conversation-Dyjq2CZ8.js} +36 -13
  27. package/dist/{conversation-feed-CMA12Rjs.js → conversation-feed-CcDxlrlQ.js} +109 -3
  28. package/dist/{conversation-privacy-C0eRxsgb.js → conversation-privacy-D-5HTXjS.js} +1 -1
  29. package/dist/{conversation-turn-D9qvcDX6.js → conversation-turn-Cxl8WZD7.js} +85 -68
  30. package/dist/{credential-sync-B_iUpxGL.js → credential-sync-C49ClwDX.js} +18 -18
  31. package/dist/{db-DoMcnYol.d.ts → db-2resqBh1.d.ts} +1 -1
  32. package/dist/{db-CoMNr2Zm.js → db-BJNo6fK5.js} +176 -12
  33. package/dist/{executor-C-m8VrzX.js → executor-DBIaOeJ_.js} +47 -13
  34. package/dist/{media-BepyEUNm.js → history-IjdmO_r6.js} +1 -85
  35. package/dist/instrumentation.js +14 -5
  36. package/dist/lineage-0dereG7H.js +37 -0
  37. package/dist/{logging-CJTi5niy.js → logging-BIclibct.js} +1 -1
  38. package/dist/{message-Q6_5DAWR.js → message-dkOl-Iii.js} +9 -10
  39. package/dist/model-input-CLo9TaUd.js +82 -0
  40. package/dist/nitro.d.ts +1 -1
  41. package/dist/nitro.js +17 -9
  42. package/dist/{oauth-callback-server-CH5XAyo-.js → oauth-callback-server-WmpjfJgQ.js} +2 -2
  43. package/dist/{plugins-HYh_JOdw.js → plugins-BBX07Jzt.js} +1 -1
  44. package/dist/{projection-BgwEE36_.js → projection-w_X-zi7v.js} +1035 -692
  45. package/dist/{prompt-DXc9DYT9.js → prompt-B1Xw46-S.js} +4 -4
  46. package/dist/{registry-9XwqSnM-.js → registry-BmP5vnlj.js} +4 -4
  47. package/dist/{resolve-DUIAbcRL.js → resolve-goo34bJK.js} +3 -3
  48. package/dist/{result-C2Vn8QGn.js → result-PVBeU0Wf.js} +158 -69
  49. package/dist/{runner-CXGtw-Mc.js → runner-DKrfvNV6.js} +9 -9
  50. package/dist/{sandbox-egress-signals-Di3S_dO7.js → sandbox-egress-signals-DsUcqrI0.js} +1 -1
  51. package/dist/{schema-Dyp7racy.js → schema-C9iNFz5n.js} +51 -7
  52. package/dist/{schema-BnbZ-rKv.d.ts → schema-Dns-sTas.d.ts} +1285 -761
  53. package/dist/{service-account-DM3KBBeG.js → service-account-CMAAloAL.js} +3 -3
  54. package/dist/{service-account-GzAMUQ8a.js → service-account-CmowamcB.js} +4 -4
  55. package/dist/session-stop-BcAXze8a.js +3330 -0
  56. package/dist/{skills-DCK9SD_l.js → skills-DfsazET6.js} +3 -3
  57. package/dist/slack-conversation-unfurl-CzQonuWz.js +370 -0
  58. package/dist/spawn-C7o0FDDp.js +73 -0
  59. package/dist/state-zSilNpbi.js +132 -0
  60. package/dist/{user-input-request-CXNIov9n.js → statuses-Hn-HsOph.js} +115 -26
  61. package/dist/{stop-Dh2DfwpK.js → stop-CFOujp8C.js} +9105 -6007
  62. package/dist/{store-DrA17Fbz.js → store-Dkeis_8o.js} +10 -10
  63. package/dist/{store-B1zepKG8.js → store-E3x2Fg_F.js} +24 -4
  64. package/dist/{task-queue-D1rXWfFN.js → task-queue-D-hCqdZW.js} +4 -4
  65. package/dist/{task-runner-CT4M8oDz.js → task-runner-vohUPLHe.js} +10 -10
  66. package/dist/{thread-context-DnqUkbzN.js → thread-context-BzvdkgI9.js} +18 -18
  67. package/dist/{turn-session-routing-VXDVXLRl.js → turn-session-routing-Bo_LxFum.js} +5 -5
  68. package/dist/turn-user-message-D5RnVmxQ.js +355 -0
  69. package/dist/users-2bggndVg.js +424 -0
  70. package/dist/{validation-zxAJBDDy.js → validation-BbWikeSa.js} +1 -1
  71. package/dist/{version-DcZ40a0g.js → version-GVBMW2jA.js} +1 -1
  72. package/dist/version.js +1 -1
  73. package/dist/{viewer-CgiGjW10.js → viewer-BpxRliyO.js} +36 -163
  74. package/dist/{warmup-CwKbxQLl.js → warmup-BW2qwnal.js} +1140 -145
  75. package/dist/{worker-CbDUzaBA.js → worker-Cbd-iuwZ.js} +25 -20
  76. package/migrations/0104_code_change_draft.sql +1 -0
  77. package/migrations/0105_attachment_uploads.sql +14 -0
  78. package/migrations/0106_conversation_agent_config.sql +1 -0
  79. package/migrations/0107_attachment_deferred_download.sql +2 -0
  80. package/migrations/meta/0104_snapshot.json +4516 -0
  81. package/migrations/meta/0105_snapshot.json +4611 -0
  82. package/migrations/meta/0106_snapshot.json +4617 -0
  83. package/migrations/meta/0107_snapshot.json +4617 -0
  84. package/migrations/meta/_journal.json +28 -0
  85. package/package.json +10 -8
  86. package/dist/attempt-selection-ClP3MMPr.js +0 -61
  87. package/dist/locks-D-0h111u.js +0 -48
  88. package/dist/notification-Bv25xbj0.js +0 -1284
  89. package/dist/prompt-input-BUr4J9RO.js +0 -1424
  90. package/dist/session-stop-D4i7e6iT.js +0 -181
  91. package/dist/spawn-6cX6xE9G.js +0 -80
  92. package/dist/turn-cancel-l460pfGW.js +0 -201
  93. package/dist/turn-user-message-BSPmkm7X.js +0 -608
  94. package/dist/turn-wake-DVFVXyhX.js +0 -161
  95. package/dist/{oauth-relay-CsfIazeF.js → oauth-relay-DRzq73b6.js} +1 -1
@@ -1,29 +1,32 @@
1
1
  import * as z from "zod";
2
- import { ConversationAnnotation, OwnedObjectAnnotation, OwnedObjectAnnotation as OwnedObjectAnnotation$1 } from "@sentry/junior-plugin-api";
2
+ import { ConversationAnnotation, ObjectAnnotation, OwnedObjectAnnotation, OwnedObjectAnnotation as OwnedObjectAnnotation$1 } from "@sentry/junior-plugin-api";
3
3
  declare const INPUT_IMAGE_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
4
4
  /** Video types that browsers play in a `<video>` element. */
5
5
  declare const INLINE_VIDEO_TYPES: readonly ["video/mp4", "video/webm"];
6
- /** Bound JSON image input below the hosting platform's request size limit. */
7
- declare const MAX_INPUT_IMAGE_BYTES: number;
8
- declare const MAX_INPUT_IMAGES = 3;
9
- /** Image bytes accepted with a web message, never stored in its mailbox row. */
10
- declare const inputImageSchema: z.ZodObject<{
6
+ /**
7
+ * Largest file that Junior stores from Slack or the web, or loads into the
8
+ * sandbox.
9
+ *
10
+ * Every path streams the bytes, so this cap does not depend on function
11
+ * memory. It bounds transfer time and sandbox disk use.
12
+ */
13
+ declare const MAX_ATTACHMENT_BYTES: number;
14
+ /** Most files on one web Message, as in one Slack message. */
15
+ declare const MAX_INPUT_ATTACHMENTS = 10;
16
+ /** File facts that a browser declares before it uploads the bytes. */
17
+ declare const inputFileSchema: z.ZodObject<{
11
18
  filename: z.ZodString;
12
- contentType: z.ZodEnum<{
13
- "image/gif": "image/gif";
14
- "image/jpeg": "image/jpeg";
15
- "image/png": "image/png";
16
- "image/webp": "image/webp";
17
- }>;
18
- data: z.ZodString;
19
+ contentType: z.ZodString;
20
+ bytes: z.ZodNumber;
19
21
  }, z.core.$strict>;
20
- type InputImage = z.output<typeof inputImageSchema>;
22
+ type InputFile = z.output<typeof inputFileSchema>;
21
23
  /** Safe attachment facts shared by mailbox input and transcript messages. */
22
24
  declare const messageAttachmentSchema: z.ZodObject<{
23
25
  id: z.ZodString;
24
26
  filename: z.ZodString;
25
27
  contentType: z.ZodString;
26
28
  bytes: z.ZodNumber;
29
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
27
30
  }, z.core.$strict>;
28
31
  type MessageAttachment = z.output<typeof messageAttachmentSchema>;
29
32
  /** True when an Event type names an agent invocation result. */
@@ -164,23 +167,198 @@ declare const messageCardRefSchema: z.ZodObject<{
164
167
  type MessageCardRef = z.output<typeof messageCardRefSchema>;
165
168
  /** Resolve current saved facts without fetching providers or changing history. */
166
169
  declare function resolveMessageCards(refs: readonly MessageCardRef[], annotations: readonly ConversationAnnotation[]): OwnedObjectAnnotation[];
167
- declare const dailyConversationActivitySchema: z.ZodObject<{
168
- active: z.ZodNumber;
169
- conversations: z.ZodNumber;
170
- date: z.ZodString;
171
- durationMs: z.ZodNumber;
172
- failed: z.ZodNumber;
173
- tokens: z.ZodOptional<z.ZodNumber>;
170
+ /** Copy saved annotation facts without storage timestamps for Message delivery. */
171
+ declare function annotationCard(annotation: ConversationAnnotation): OwnedObjectAnnotation;
172
+ /** Where a failed turn stopped. */
173
+ declare const conversationTurnFailureCodeSchema: z.ZodEnum<{
174
+ agent_run_failed: "agent_run_failed";
175
+ delivery_failed: "delivery_failed";
176
+ model_execution_failed: "model_execution_failed";
177
+ persistence_failed: "persistence_failed";
178
+ }>;
179
+ /**
180
+ * Why a failed turn stopped.
181
+ * Values are fixed labels only. Do not store raw exception text.
182
+ */
183
+ declare const conversationTurnFailureReasonSchema: z.ZodEnum<{
184
+ auth: "auth";
185
+ capacity: "capacity";
186
+ content_policy: "content_policy";
187
+ empty_output: "empty_output";
188
+ invalid_request: "invalid_request";
189
+ invalid_response: "invalid_response";
190
+ network: "network";
191
+ permission: "permission";
192
+ quota: "quota";
193
+ rate_limit: "rate_limit";
194
+ server: "server";
195
+ suppressed_output: "suppressed_output";
196
+ timeout: "timeout";
197
+ tool_errors: "tool_errors";
198
+ unknown: "unknown";
199
+ }>;
200
+ declare const conversationReportStatusSchema: z.ZodEnum<{
201
+ active: "active";
202
+ completed: "completed";
203
+ failed: "failed";
204
+ stopped: "stopped";
205
+ }>;
206
+ declare const conversationSurfaceSchema: z.ZodEnum<{
207
+ api: "api";
208
+ internal: "internal";
209
+ scheduler: "scheduler";
210
+ slack: "slack";
211
+ }>;
212
+ declare const conversationCostSchema: z.ZodObject<{
213
+ input: z.ZodOptional<z.ZodNumber>;
214
+ output: z.ZodOptional<z.ZodNumber>;
215
+ cacheRead: z.ZodOptional<z.ZodNumber>;
216
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
217
+ total: z.ZodOptional<z.ZodNumber>;
218
+ }, z.core.$strict>;
219
+ declare const conversationUsageSchema: z.ZodObject<{
220
+ inputTokens: z.ZodOptional<z.ZodNumber>;
221
+ outputTokens: z.ZodOptional<z.ZodNumber>;
222
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
223
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
224
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
225
+ totalTokens: z.ZodOptional<z.ZodNumber>;
226
+ cost: z.ZodOptional<z.ZodObject<{
227
+ input: z.ZodOptional<z.ZodNumber>;
228
+ output: z.ZodOptional<z.ZodNumber>;
229
+ cacheRead: z.ZodOptional<z.ZodNumber>;
230
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
231
+ total: z.ZodOptional<z.ZodNumber>;
232
+ }, z.core.$strict>>;
233
+ }, z.core.$strict>;
234
+ declare const conversationParamsSchema: z.ZodObject<{
235
+ conversationId: z.ZodString;
236
+ }, z.core.$strict>;
237
+ declare const conversationDetailQuerySchema: z.ZodObject<{
238
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
239
+ unreadPage: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
240
+ mailbox: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
241
+ after: z.ZodOptional<z.ZodString>;
174
242
  }, z.core.$strict>;
175
- type DailyConversationActivity = z.infer<typeof dailyConversationActivitySchema>;
176
243
  /**
177
- * The part of a Conversation total that its child agents spent, at any depth.
178
- * Present only when the Conversation has child agents. The Conversation's own
179
- * part is the total minus this part.
244
+ * Page toward the start with `before`, toward the latest with `after`, or
245
+ * both ways from one event with `around`. A link target asks for the page
246
+ * around one event by its `event` seq, or around the start of a `turn`.
180
247
  */
181
- declare const conversationChildAgentTotalsSchema: z.ZodObject<{
182
- auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
183
- count: z.ZodNumber;
248
+ declare const conversationEventsQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
249
+ before: z.ZodString;
250
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
251
+ }, z.core.$strict>, z.ZodObject<{
252
+ after: z.ZodString;
253
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
254
+ }, z.core.$strict>, z.ZodObject<{
255
+ around: z.ZodString;
256
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ event: z.ZodCoercedNumber<unknown>;
259
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
260
+ }, z.core.$strict>, z.ZodObject<{
261
+ turn: z.ZodString;
262
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
263
+ }, z.core.$strict>]>;
264
+ declare const conversationFeedQuerySchema: z.ZodObject<{
265
+ actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
266
+ codeRepositoryId: z.ZodOptional<z.ZodString>;
267
+ cursor: z.ZodOptional<z.ZodString>;
268
+ q: z.ZodOptional<z.ZodString>;
269
+ status: z.ZodDefault<z.ZodEnum<{
270
+ active: "active";
271
+ archived: "archived";
272
+ }>>;
273
+ }, z.core.$strict>;
274
+ declare const createConversationMessageBodySchema: z.ZodObject<{
275
+ idempotencyKey: z.ZodString;
276
+ message: z.ZodString;
277
+ uploadIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
+ }, z.core.$strict>;
279
+ declare const createConversationBodySchema: z.ZodObject<{
280
+ idempotencyKey: z.ZodString;
281
+ message: z.ZodString;
282
+ uploadIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
283
+ title: z.ZodOptional<z.ZodString>;
284
+ visibility: z.ZodOptional<z.ZodEnum<{
285
+ private: "private";
286
+ public: "public";
287
+ }>>;
288
+ }, z.core.$strict>;
289
+ declare const acceptedConversationMessageSchema: z.ZodObject<{
290
+ conversationId: z.ZodString;
291
+ messageId: z.ZodString;
292
+ status: z.ZodEnum<{
293
+ accepted: "accepted";
294
+ duplicate: "duplicate";
295
+ }>;
296
+ }, z.core.$strict>;
297
+ declare const actorIdentitySchema: z.ZodObject<{
298
+ avatarUrl: z.ZodOptional<z.ZodString>;
299
+ email: z.ZodOptional<z.ZodString>;
300
+ fullName: z.ZodOptional<z.ZodString>;
301
+ slackUserId: z.ZodOptional<z.ZodString>;
302
+ slackUserName: z.ZodOptional<z.ZodString>;
303
+ }, z.core.$strict>;
304
+ declare const conversationAuxiliaryCostsSchema: z.ZodObject<{
305
+ costUsd: z.ZodNumber;
306
+ operations: z.ZodArray<z.ZodObject<{
307
+ costUsd: z.ZodNumber;
308
+ events: z.ZodNumber;
309
+ name: z.ZodString;
310
+ namespace: z.ZodString;
311
+ }, z.core.$strict>>;
312
+ }, z.core.$strict>;
313
+ /** Optional reverse link from a task-triggered conversation back to its task. */
314
+ declare const conversationSourceTaskSchema: z.ZodObject<{
315
+ id: z.ZodOptional<z.ZodString>;
316
+ kind: z.ZodEnum<{
317
+ event: "event";
318
+ scheduled: "scheduled";
319
+ }>;
320
+ label: z.ZodOptional<z.ZodString>;
321
+ title: z.ZodOptional<z.ZodString>;
322
+ triggerMessageId: z.ZodOptional<z.ZodString>;
323
+ triggerLabel: z.ZodOptional<z.ZodString>;
324
+ credentialMode: z.ZodOptional<z.ZodEnum<{
325
+ creator: "creator";
326
+ system: "system";
327
+ }>>;
328
+ credentialUser: z.ZodOptional<z.ZodString>;
329
+ }, z.core.$strict>;
330
+ declare const conversationActivityPreviewSchema: z.ZodObject<{
331
+ createdAt: z.ZodString;
332
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
+ avatarUrl: z.ZodOptional<z.ZodString>;
334
+ email: z.ZodOptional<z.ZodString>;
335
+ fullName: z.ZodOptional<z.ZodString>;
336
+ slackUserId: z.ZodOptional<z.ZodString>;
337
+ slackUserName: z.ZodOptional<z.ZodString>;
338
+ }, z.core.$strict>>>;
339
+ role: z.ZodEnum<{
340
+ assistant: "assistant";
341
+ user: "user";
342
+ }>;
343
+ text: z.ZodString;
344
+ }, z.core.$strict>;
345
+ declare const conversationSummaryReportSchema: z.ZodObject<{
346
+ displayTitle: z.ZodString;
347
+ activityPreview: z.ZodOptional<z.ZodObject<{
348
+ createdAt: z.ZodString;
349
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
350
+ avatarUrl: z.ZodOptional<z.ZodString>;
351
+ email: z.ZodOptional<z.ZodString>;
352
+ fullName: z.ZodOptional<z.ZodString>;
353
+ slackUserId: z.ZodOptional<z.ZodString>;
354
+ slackUserName: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strict>>>;
356
+ role: z.ZodEnum<{
357
+ assistant: "assistant";
358
+ user: "user";
359
+ }>;
360
+ text: z.ZodString;
361
+ }, z.core.$strict>>;
184
362
  cumulativeDurationMs: z.ZodNumber;
185
363
  cumulativeUsage: z.ZodOptional<z.ZodObject<{
186
364
  inputTokens: z.ZodOptional<z.ZodNumber>;
@@ -197,517 +375,281 @@ declare const conversationChildAgentTotalsSchema: z.ZodObject<{
197
375
  total: z.ZodOptional<z.ZodNumber>;
198
376
  }, z.core.$strict>>;
199
377
  }, z.core.$strict>>;
200
- }, z.core.$strict>;
201
- type ConversationChildAgentTotals = z.infer<typeof conversationChildAgentTotalsSchema>;
202
- declare const codeChangeSummarySchema: z.ZodObject<{
203
- closed: z.ZodNumber;
204
- costUsd: z.ZodOptional<z.ZodNumber>;
205
- created: z.ZodNumber;
206
- medianCostUsd: z.ZodOptional<z.ZodNumber>;
207
- medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
208
- merged: z.ZodNumber;
209
- mergeRate: z.ZodOptional<z.ZodNumber>;
210
- open: z.ZodNumber;
211
- }, z.core.$strict>;
212
- declare const codeActivityDaySchema: z.ZodObject<{
213
- closed: z.ZodNumber;
214
- created: z.ZodNumber;
215
- date: z.ZodString;
216
- merged: z.ZodNumber;
217
- }, z.core.$strict>;
218
- declare const codeRepositorySummarySchema: z.ZodObject<{
219
- closed: z.ZodNumber;
220
- created: z.ZodNumber;
221
- id: z.ZodString;
222
- medianCostUsd: z.ZodOptional<z.ZodNumber>;
223
- merged: z.ZodNumber;
224
- mergeRate: z.ZodOptional<z.ZodNumber>;
225
- name: z.ZodString;
226
- open: z.ZodNumber;
227
- provider: z.ZodString;
228
- url: z.ZodOptional<z.ZodString>;
229
- }, z.core.$strict>;
230
- declare const codeChangeSummaryReportSchema: z.ZodObject<{
231
- closedAt: z.ZodOptional<z.ZodString>;
232
- id: z.ZodString;
233
- lastActivityAt: z.ZodOptional<z.ZodString>;
234
- mergedAt: z.ZodOptional<z.ZodString>;
235
- number: z.ZodNumber;
236
- openedAt: z.ZodString;
237
- provider: z.ZodString;
238
- repository: z.ZodString;
239
- state: z.ZodEnum<{
240
- closed: "closed";
241
- merged: "merged";
242
- open: "open";
243
- }>;
244
- title: z.ZodOptional<z.ZodString>;
245
- url: z.ZodOptional<z.ZodString>;
246
- }, z.core.$strict>;
247
- declare const codeOverviewReportSchema: z.ZodObject<{
248
- activityDays: z.ZodArray<z.ZodObject<{
249
- closed: z.ZodNumber;
250
- created: z.ZodNumber;
251
- date: z.ZodString;
252
- merged: z.ZodNumber;
253
- }, z.core.$strict>>;
254
- activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
- closed: z.ZodNumber;
256
- created: z.ZodNumber;
257
- date: z.ZodString;
258
- merged: z.ZodNumber;
259
- }, z.core.$strict>>>;
260
- activitySixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
261
- closed: z.ZodNumber;
262
- created: z.ZodNumber;
263
- date: z.ZodString;
264
- merged: z.ZodNumber;
265
- }, z.core.$strict>>>;
266
- changes: z.ZodArray<z.ZodObject<{
267
- closedAt: z.ZodOptional<z.ZodString>;
268
- id: z.ZodString;
269
- lastActivityAt: z.ZodOptional<z.ZodString>;
270
- mergedAt: z.ZodOptional<z.ZodString>;
271
- number: z.ZodNumber;
272
- openedAt: z.ZodString;
273
- provider: z.ZodString;
274
- repository: z.ZodString;
275
- state: z.ZodEnum<{
276
- closed: "closed";
277
- merged: "merged";
278
- open: "open";
279
- }>;
280
- title: z.ZodOptional<z.ZodString>;
281
- url: z.ZodOptional<z.ZodString>;
282
- }, z.core.$strict>>;
283
- generatedAt: z.ZodString;
284
- repositories: z.ZodArray<z.ZodObject<{
285
- closed: z.ZodNumber;
286
- created: z.ZodNumber;
287
- id: z.ZodString;
288
- medianCostUsd: z.ZodOptional<z.ZodNumber>;
289
- merged: z.ZodNumber;
290
- mergeRate: z.ZodOptional<z.ZodNumber>;
291
- name: z.ZodString;
292
- open: z.ZodNumber;
293
- provider: z.ZodString;
294
- url: z.ZodOptional<z.ZodString>;
295
- }, z.core.$strict>>;
296
- summary: z.ZodObject<{
297
- closed: z.ZodNumber;
298
- costUsd: z.ZodOptional<z.ZodNumber>;
299
- created: z.ZodNumber;
300
- medianCostUsd: z.ZodOptional<z.ZodNumber>;
301
- medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
302
- merged: z.ZodNumber;
303
- mergeRate: z.ZodOptional<z.ZodNumber>;
304
- open: z.ZodNumber;
305
- }, z.core.$strict>;
306
- windowEnd: z.ZodString;
307
- windowStart: z.ZodString;
308
- }, z.core.$strict>;
309
- declare const codeRepositoryParamsSchema: z.ZodObject<{
310
- repositoryId: z.ZodString;
311
- }, z.core.$strict>;
312
- /** Code activity, recent changes, and Workspaces for one repository. */
313
- declare const codeRepositoryReportSchema: z.ZodObject<{
314
- activityDays: z.ZodArray<z.ZodObject<{
315
- closed: z.ZodNumber;
316
- created: z.ZodNumber;
317
- date: z.ZodString;
318
- merged: z.ZodNumber;
319
- }, z.core.$strict>>;
320
- activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
321
- closed: z.ZodNumber;
322
- created: z.ZodNumber;
323
- date: z.ZodString;
324
- merged: z.ZodNumber;
325
- }, z.core.$strict>>>;
326
- activitySixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
- closed: z.ZodNumber;
328
- created: z.ZodNumber;
329
- date: z.ZodString;
330
- merged: z.ZodNumber;
331
- }, z.core.$strict>>>;
332
- changes: z.ZodArray<z.ZodObject<{
333
- closedAt: z.ZodOptional<z.ZodString>;
334
- id: z.ZodString;
335
- lastActivityAt: z.ZodOptional<z.ZodString>;
336
- mergedAt: z.ZodOptional<z.ZodString>;
337
- number: z.ZodNumber;
338
- openedAt: z.ZodString;
339
- provider: z.ZodString;
340
- repository: z.ZodString;
341
- state: z.ZodEnum<{
342
- closed: "closed";
343
- merged: "merged";
344
- open: "open";
345
- }>;
346
- title: z.ZodOptional<z.ZodString>;
347
- url: z.ZodOptional<z.ZodString>;
378
+ auxiliaryCosts: z.ZodOptional<z.ZodObject<{
379
+ costUsd: z.ZodNumber;
380
+ operations: z.ZodArray<z.ZodObject<{
381
+ costUsd: z.ZodNumber;
382
+ events: z.ZodNumber;
383
+ name: z.ZodString;
384
+ namespace: z.ZodString;
385
+ }, z.core.$strict>>;
348
386
  }, z.core.$strict>>;
349
- generatedAt: z.ZodString;
350
- repository: z.ZodObject<{
351
- id: z.ZodString;
352
- name: z.ZodString;
353
- provider: z.ZodString;
354
- url: z.ZodOptional<z.ZodString>;
355
- }, z.core.$strict>;
356
- summary: z.ZodObject<{
357
- closed: z.ZodNumber;
358
- costUsd: z.ZodOptional<z.ZodNumber>;
359
- created: z.ZodNumber;
360
- medianCostUsd: z.ZodOptional<z.ZodNumber>;
361
- medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
362
- merged: z.ZodNumber;
363
- mergeRate: z.ZodOptional<z.ZodNumber>;
364
- open: z.ZodNumber;
365
- }, z.core.$strict>;
366
- windowEnd: z.ZodString;
367
- windowStart: z.ZodString;
368
- workspaces: z.ZodArray<z.ZodObject<{
369
- id: z.ZodString;
370
- name: z.ZodString;
387
+ childAgentTotals: z.ZodOptional<z.ZodObject<{
388
+ auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
389
+ count: z.ZodNumber;
390
+ cumulativeDurationMs: z.ZodNumber;
391
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
392
+ inputTokens: z.ZodOptional<z.ZodNumber>;
393
+ outputTokens: z.ZodOptional<z.ZodNumber>;
394
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
395
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
396
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
397
+ totalTokens: z.ZodOptional<z.ZodNumber>;
398
+ cost: z.ZodOptional<z.ZodObject<{
399
+ input: z.ZodOptional<z.ZodNumber>;
400
+ output: z.ZodOptional<z.ZodNumber>;
401
+ cacheRead: z.ZodOptional<z.ZodNumber>;
402
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
403
+ total: z.ZodOptional<z.ZodNumber>;
404
+ }, z.core.$strict>>;
405
+ }, z.core.$strict>>;
371
406
  }, z.core.$strict>>;
372
- }, z.core.$strict>;
373
- /** Person-scoped code activity and recent code changes for one People profile. */
374
- declare const codePersonReportSchema: z.ZodObject<{
375
- activityDays: z.ZodArray<z.ZodObject<{
376
- closed: z.ZodNumber;
377
- created: z.ZodNumber;
378
- date: z.ZodString;
379
- merged: z.ZodNumber;
407
+ conversationId: z.ZodString;
408
+ kind: z.ZodEnum<{
409
+ automation: "automation";
410
+ root: "root";
411
+ task: "task";
412
+ thread: "thread";
413
+ }>;
414
+ parentConversationId: z.ZodOptional<z.ZodString>;
415
+ isParticipant: z.ZodBoolean;
416
+ visibility: z.ZodOptional<z.ZodEnum<{
417
+ private: "private";
418
+ public: "public";
419
+ }>>;
420
+ status: z.ZodEnum<{
421
+ active: "active";
422
+ completed: "completed";
423
+ failed: "failed";
424
+ stopped: "stopped";
425
+ }>;
426
+ startedAt: z.ZodString;
427
+ lastSeenAt: z.ZodString;
428
+ lastProgressAt: z.ZodString;
429
+ lastMessageAt: z.ZodOptional<z.ZodString>;
430
+ surface: z.ZodEnum<{
431
+ api: "api";
432
+ internal: "internal";
433
+ scheduler: "scheduler";
434
+ slack: "slack";
435
+ }>;
436
+ actorIdentity: z.ZodOptional<z.ZodObject<{
437
+ avatarUrl: z.ZodOptional<z.ZodString>;
438
+ email: z.ZodOptional<z.ZodString>;
439
+ fullName: z.ZodOptional<z.ZodString>;
440
+ slackUserId: z.ZodOptional<z.ZodString>;
441
+ slackUserName: z.ZodOptional<z.ZodString>;
380
442
  }, z.core.$strict>>;
381
- activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
382
- closed: z.ZodNumber;
383
- created: z.ZodNumber;
384
- date: z.ZodString;
385
- merged: z.ZodNumber;
386
- }, z.core.$strict>>>;
387
- activitySixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
388
- closed: z.ZodNumber;
389
- created: z.ZodNumber;
390
- date: z.ZodString;
391
- merged: z.ZodNumber;
443
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
444
+ avatarUrl: z.ZodOptional<z.ZodString>;
445
+ email: z.ZodOptional<z.ZodString>;
446
+ fullName: z.ZodOptional<z.ZodString>;
447
+ slackUserId: z.ZodOptional<z.ZodString>;
448
+ slackUserName: z.ZodOptional<z.ZodString>;
392
449
  }, z.core.$strict>>>;
393
- changes: z.ZodArray<z.ZodObject<{
394
- closedAt: z.ZodOptional<z.ZodString>;
395
- id: z.ZodString;
396
- lastActivityAt: z.ZodOptional<z.ZodString>;
397
- mergedAt: z.ZodOptional<z.ZodString>;
398
- number: z.ZodNumber;
399
- openedAt: z.ZodString;
400
- provider: z.ZodString;
401
- repository: z.ZodString;
402
- state: z.ZodEnum<{
450
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ pinPosition: z.ZodOptional<z.ZodNumber>;
453
+ channel: z.ZodOptional<z.ZodString>;
454
+ channelName: z.ZodOptional<z.ZodString>;
455
+ channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
456
+ locationId: z.ZodOptional<z.ZodString>;
457
+ sentryTraceUrl: z.ZodOptional<z.ZodString>;
458
+ locationUrl: z.ZodOptional<z.ZodString>;
459
+ traceId: z.ZodOptional<z.ZodString>;
460
+ annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
461
+ kind: z.ZodLiteral<"resource_link">;
462
+ objectType: z.ZodOptional<z.ZodEnum<{
463
+ automation: "automation";
464
+ calendar_event: "calendar_event";
465
+ code_change: "code_change";
466
+ conversation: "conversation";
467
+ deployment: "deployment";
468
+ document: "document";
469
+ item: "item";
470
+ message: "message";
471
+ person: "person";
472
+ task: "task";
473
+ web_page: "web_page";
474
+ }>>;
475
+ key: z.ZodString;
476
+ label: z.ZodString;
477
+ url: z.ZodString;
478
+ description: z.ZodOptional<z.ZodString>;
479
+ status: z.ZodOptional<z.ZodEnum<{
403
480
  closed: "closed";
481
+ draft: "draft";
404
482
  merged: "merged";
405
483
  open: "open";
484
+ warning: "warning";
485
+ }>>;
486
+ }, z.core.$strict>, z.ZodObject<{
487
+ kind: z.ZodLiteral<"object">;
488
+ key: z.ZodString;
489
+ label: z.ZodString;
490
+ objectType: z.ZodEnum<{
491
+ automation: "automation";
492
+ calendar_event: "calendar_event";
493
+ code_change: "code_change";
494
+ conversation: "conversation";
495
+ deployment: "deployment";
496
+ document: "document";
497
+ item: "item";
498
+ message: "message";
499
+ person: "person";
500
+ task: "task";
501
+ web_page: "web_page";
406
502
  }>;
407
- title: z.ZodOptional<z.ZodString>;
408
- url: z.ZodOptional<z.ZodString>;
409
- }, z.core.$strict>>;
410
- generatedAt: z.ZodString;
411
- summary: z.ZodObject<{
412
- closed: z.ZodNumber;
413
- costUsd: z.ZodOptional<z.ZodNumber>;
414
- created: z.ZodNumber;
415
- medianCostUsd: z.ZodOptional<z.ZodNumber>;
416
- medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
417
- merged: z.ZodNumber;
418
- mergeRate: z.ZodOptional<z.ZodNumber>;
419
- open: z.ZodNumber;
420
- }, z.core.$strict>;
421
- windowEnd: z.ZodString;
422
- windowStart: z.ZodString;
423
- }, z.core.$strict>;
424
- type CodeActivityDay = z.infer<typeof codeActivityDaySchema>;
425
- type CodeChangeSummaryReport = z.infer<typeof codeChangeSummaryReportSchema>;
426
- type CodeOverviewReport = z.infer<typeof codeOverviewReportSchema>;
427
- type CodePersonReport = z.infer<typeof codePersonReportSchema>;
428
- type CodeRepositoryReport = z.infer<typeof codeRepositoryReportSchema>;
429
- type CodeRepositorySummary = z.infer<typeof codeRepositorySummarySchema>;
430
- /** Where a failed turn stopped. */
431
- declare const conversationTurnFailureCodeSchema: z.ZodEnum<{
432
- agent_run_failed: "agent_run_failed";
433
- delivery_failed: "delivery_failed";
434
- model_execution_failed: "model_execution_failed";
435
- persistence_failed: "persistence_failed";
436
- }>;
437
- /**
438
- * Why a failed turn stopped.
439
- * Values are fixed labels only. Do not store raw exception text.
440
- */
441
- declare const conversationTurnFailureReasonSchema: z.ZodEnum<{
442
- auth: "auth";
443
- capacity: "capacity";
444
- content_policy: "content_policy";
445
- empty_output: "empty_output";
446
- invalid_request: "invalid_request";
447
- invalid_response: "invalid_response";
448
- network: "network";
449
- permission: "permission";
450
- quota: "quota";
451
- rate_limit: "rate_limit";
452
- server: "server";
453
- suppressed_output: "suppressed_output";
454
- timeout: "timeout";
455
- tool_errors: "tool_errors";
456
- unknown: "unknown";
457
- }>;
458
- declare const conversationReportStatusSchema: z.ZodEnum<{
459
- active: "active";
460
- completed: "completed";
461
- failed: "failed";
462
- stopped: "stopped";
463
- }>;
464
- declare const conversationSurfaceSchema: z.ZodEnum<{
465
- api: "api";
466
- internal: "internal";
467
- scheduler: "scheduler";
468
- slack: "slack";
469
- }>;
470
- declare const conversationCostSchema: z.ZodObject<{
471
- input: z.ZodOptional<z.ZodNumber>;
472
- output: z.ZodOptional<z.ZodNumber>;
473
- cacheRead: z.ZodOptional<z.ZodNumber>;
474
- cacheWrite: z.ZodOptional<z.ZodNumber>;
475
- total: z.ZodOptional<z.ZodNumber>;
476
- }, z.core.$strict>;
477
- declare const conversationUsageSchema: z.ZodObject<{
478
- inputTokens: z.ZodOptional<z.ZodNumber>;
479
- outputTokens: z.ZodOptional<z.ZodNumber>;
480
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
481
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
482
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
483
- totalTokens: z.ZodOptional<z.ZodNumber>;
484
- cost: z.ZodOptional<z.ZodObject<{
485
- input: z.ZodOptional<z.ZodNumber>;
486
- output: z.ZodOptional<z.ZodNumber>;
487
- cacheRead: z.ZodOptional<z.ZodNumber>;
488
- cacheWrite: z.ZodOptional<z.ZodNumber>;
489
- total: z.ZodOptional<z.ZodNumber>;
490
- }, z.core.$strict>>;
491
- }, z.core.$strict>;
492
- declare const conversationParamsSchema: z.ZodObject<{
493
- conversationId: z.ZodString;
494
- }, z.core.$strict>;
495
- declare const conversationDetailQuerySchema: z.ZodObject<{
496
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
497
- unreadPage: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
498
- mailbox: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
499
- after: z.ZodOptional<z.ZodString>;
500
- }, z.core.$strict>;
501
- /**
502
- * Page toward the start with `before`, toward the latest with `after`, or
503
- * both ways from one event with `around`. A link target asks for the page
504
- * around one event by its `event` seq, or around the start of a `turn`.
505
- */
506
- declare const conversationEventsQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
507
- before: z.ZodString;
508
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
509
- }, z.core.$strict>, z.ZodObject<{
510
- after: z.ZodString;
511
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
512
- }, z.core.$strict>, z.ZodObject<{
513
- around: z.ZodString;
514
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
515
- }, z.core.$strict>, z.ZodObject<{
516
- event: z.ZodCoercedNumber<unknown>;
517
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
518
- }, z.core.$strict>, z.ZodObject<{
519
- turn: z.ZodString;
520
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
521
- }, z.core.$strict>]>;
522
- declare const conversationFeedQuerySchema: z.ZodObject<{
523
- actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
524
- codeRepositoryId: z.ZodOptional<z.ZodString>;
525
- q: z.ZodOptional<z.ZodString>;
526
- status: z.ZodDefault<z.ZodEnum<{
527
- active: "active";
528
- archived: "archived";
529
- }>>;
530
- }, z.core.$strict>;
531
- declare const createConversationMessageBodySchema: z.ZodObject<{
532
- idempotencyKey: z.ZodString;
533
- message: z.ZodString;
534
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
535
- filename: z.ZodString;
536
- contentType: z.ZodEnum<{
537
- "image/gif": "image/gif";
538
- "image/jpeg": "image/jpeg";
539
- "image/png": "image/png";
540
- "image/webp": "image/webp";
541
- }>;
542
- data: z.ZodString;
503
+ title: z.ZodString;
504
+ url: z.ZodNullable<z.ZodURL>;
505
+ description: z.ZodOptional<z.ZodString>;
506
+ status: z.ZodOptional<z.ZodString>;
507
+ trigger: z.ZodOptional<z.ZodString>;
508
+ warning: z.ZodOptional<z.ZodString>;
509
+ displayType: z.ZodOptional<z.ZodString>;
510
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
511
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
512
+ type: z.ZodLiteral<"code_change">;
513
+ summary: z.ZodOptional<z.ZodString>;
514
+ author: z.ZodOptional<z.ZodString>;
515
+ sourceBranch: z.ZodOptional<z.ZodString>;
516
+ targetBranch: z.ZodOptional<z.ZodString>;
517
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
518
+ review: z.ZodOptional<z.ZodEnum<{
519
+ approved: "approved";
520
+ changes_requested: "changes_requested";
521
+ required: "required";
522
+ }>>;
523
+ checks: z.ZodOptional<z.ZodObject<{
524
+ passed: z.ZodNumber;
525
+ failed: z.ZodNumber;
526
+ pending: z.ZodNumber;
527
+ }, z.core.$strict>>;
528
+ mergeable: z.ZodOptional<z.ZodBoolean>;
529
+ changedFiles: z.ZodOptional<z.ZodNumber>;
530
+ additions: z.ZodOptional<z.ZodNumber>;
531
+ deletions: z.ZodOptional<z.ZodNumber>;
532
+ previewImageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
533
+ }, z.core.$strict>, z.ZodObject<{
534
+ type: z.ZodLiteral<"task">;
535
+ summary: z.ZodOptional<z.ZodString>;
536
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
537
+ priority: z.ZodOptional<z.ZodString>;
538
+ project: z.ZodOptional<z.ZodString>;
539
+ cycle: z.ZodOptional<z.ZodString>;
540
+ dueDate: z.ZodOptional<z.ZodISODate>;
541
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
542
+ }, z.core.$strict>, z.ZodObject<{
543
+ type: z.ZodLiteral<"deployment">;
544
+ summary: z.ZodOptional<z.ZodString>;
545
+ project: z.ZodOptional<z.ZodString>;
546
+ environment: z.ZodOptional<z.ZodString>;
547
+ revision: z.ZodOptional<z.ZodString>;
548
+ branch: z.ZodOptional<z.ZodString>;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ type: z.ZodLiteral<"calendar_event">;
551
+ summary: z.ZodOptional<z.ZodString>;
552
+ when: z.ZodOptional<z.ZodString>;
553
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
+ }, z.core.$strict>, z.ZodObject<{
555
+ type: z.ZodLiteral<"conversation">;
556
+ summary: z.ZodOptional<z.ZodString>;
557
+ participants: z.ZodOptional<z.ZodArray<z.ZodString>>;
558
+ lastActivityAt: z.ZodOptional<z.ZodISODateTime>;
559
+ }, z.core.$strict>, z.ZodObject<{
560
+ type: z.ZodLiteral<"document">;
561
+ summary: z.ZodOptional<z.ZodString>;
562
+ owner: z.ZodOptional<z.ZodString>;
563
+ modifiedAt: z.ZodOptional<z.ZodISODateTime>;
564
+ }, z.core.$strict>, z.ZodObject<{
565
+ type: z.ZodLiteral<"message">;
566
+ summary: z.ZodOptional<z.ZodString>;
567
+ channel: z.ZodOptional<z.ZodString>;
568
+ author: z.ZodOptional<z.ZodString>;
569
+ sentAt: z.ZodOptional<z.ZodISODateTime>;
570
+ }, z.core.$strict>, z.ZodObject<{
571
+ type: z.ZodLiteral<"web_page">;
572
+ summary: z.ZodOptional<z.ZodString>;
573
+ siteName: z.ZodOptional<z.ZodString>;
574
+ author: z.ZodOptional<z.ZodString>;
575
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ type: z.ZodLiteral<"person">;
578
+ summary: z.ZodOptional<z.ZodString>;
579
+ email: z.ZodOptional<z.ZodString>;
580
+ slackHandle: z.ZodOptional<z.ZodString>;
581
+ githubHandle: z.ZodOptional<z.ZodString>;
582
+ avatarUrl: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strict>], "type">>;
584
+ }, z.core.$strict>], "kind">, z.ZodObject<{
585
+ plugin: z.ZodString;
586
+ createdAt: z.ZodString;
587
+ updatedAt: z.ZodString;
588
+ }, z.core.$strip>>>>;
589
+ sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
+ icon: z.ZodOptional<z.ZodEnum<{
591
+ "circle-dashed": "circle-dashed";
592
+ "circle-dot": "circle-dot";
593
+ "circle-x": "circle-x";
594
+ "git-merge": "git-merge";
595
+ "git-pull-request": "git-pull-request";
596
+ "triangle-alert": "triangle-alert";
597
+ }>>;
598
+ objectType: z.ZodOptional<z.ZodEnum<{
599
+ automation: "automation";
600
+ calendar_event: "calendar_event";
601
+ code_change: "code_change";
602
+ conversation: "conversation";
603
+ deployment: "deployment";
604
+ document: "document";
605
+ item: "item";
606
+ message: "message";
607
+ person: "person";
608
+ task: "task";
609
+ web_page: "web_page";
610
+ }>>;
611
+ status: z.ZodOptional<z.ZodString>;
612
+ key: z.ZodString;
613
+ label: z.ZodString;
543
614
  }, z.core.$strict>>>;
615
+ assignedWork: z.ZodOptional<z.ZodBoolean>;
616
+ finishedWorkAt: z.ZodOptional<z.ZodString>;
617
+ isPriority: z.ZodOptional<z.ZodBoolean>;
618
+ unfinishedWork: z.ZodOptional<z.ZodBoolean>;
619
+ awaitingAuthorization: z.ZodOptional<z.ZodBoolean>;
544
620
  }, z.core.$strict>;
545
- declare const createConversationBodySchema: z.ZodObject<{
546
- idempotencyKey: z.ZodString;
547
- message: z.ZodString;
548
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
549
- filename: z.ZodString;
550
- contentType: z.ZodEnum<{
551
- "image/gif": "image/gif";
552
- "image/jpeg": "image/jpeg";
553
- "image/png": "image/png";
554
- "image/webp": "image/webp";
555
- }>;
556
- data: z.ZodString;
557
- }, z.core.$strict>>>;
558
- title: z.ZodOptional<z.ZodString>;
559
- visibility: z.ZodOptional<z.ZodEnum<{
560
- private: "private";
561
- public: "public";
621
+ /** One Event listed on a message that holds several Events. */
622
+ declare const conversationReportMessageEventSchema: z.ZodObject<{
623
+ eventType: z.ZodString;
624
+ label: z.ZodOptional<z.ZodString>;
625
+ objectType: z.ZodOptional<z.ZodEnum<{
626
+ automation: "automation";
627
+ calendar_event: "calendar_event";
628
+ code_change: "code_change";
629
+ conversation: "conversation";
630
+ deployment: "deployment";
631
+ document: "document";
632
+ item: "item";
633
+ message: "message";
634
+ person: "person";
635
+ task: "task";
636
+ web_page: "web_page";
562
637
  }>>;
638
+ trustedSummary: z.ZodOptional<z.ZodString>;
563
639
  }, z.core.$strict>;
564
- declare const acceptedConversationMessageSchema: z.ZodObject<{
565
- conversationId: z.ZodString;
640
+ /** Privacy-safe event variants owned by the conversation reporting API. */
641
+ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
642
+ type: z.ZodLiteral<"message">;
566
643
  messageId: z.ZodString;
567
- status: z.ZodEnum<{
568
- accepted: "accepted";
569
- duplicate: "duplicate";
570
- }>;
571
- }, z.core.$strict>;
572
- declare const actorIdentitySchema: z.ZodObject<{
573
- avatarUrl: z.ZodOptional<z.ZodString>;
574
- email: z.ZodOptional<z.ZodString>;
575
- fullName: z.ZodOptional<z.ZodString>;
576
- slackUserId: z.ZodOptional<z.ZodString>;
577
- slackUserName: z.ZodOptional<z.ZodString>;
578
- }, z.core.$strict>;
579
- declare const conversationAuxiliaryCostsSchema: z.ZodObject<{
580
- costUsd: z.ZodNumber;
581
- operations: z.ZodArray<z.ZodObject<{
582
- costUsd: z.ZodNumber;
583
- events: z.ZodNumber;
584
- name: z.ZodString;
585
- namespace: z.ZodString;
586
- }, z.core.$strict>>;
587
- }, z.core.$strict>;
588
- /** Optional reverse link from a task-triggered conversation back to its task. */
589
- declare const conversationSourceTaskSchema: z.ZodObject<{
590
- id: z.ZodOptional<z.ZodString>;
591
- kind: z.ZodEnum<{
592
- event: "event";
593
- scheduled: "scheduled";
594
- }>;
595
- label: z.ZodOptional<z.ZodString>;
596
- title: z.ZodOptional<z.ZodString>;
597
- triggerMessageId: z.ZodOptional<z.ZodString>;
598
- triggerLabel: z.ZodOptional<z.ZodString>;
599
- credentialMode: z.ZodOptional<z.ZodEnum<{
600
- creator: "creator";
601
- system: "system";
602
- }>>;
603
- credentialUser: z.ZodOptional<z.ZodString>;
604
- }, z.core.$strict>;
605
- declare const conversationActivityPreviewSchema: z.ZodObject<{
606
- createdAt: z.ZodString;
607
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
- avatarUrl: z.ZodOptional<z.ZodString>;
609
- email: z.ZodOptional<z.ZodString>;
610
- fullName: z.ZodOptional<z.ZodString>;
611
- slackUserId: z.ZodOptional<z.ZodString>;
612
- slackUserName: z.ZodOptional<z.ZodString>;
613
- }, z.core.$strict>>>;
614
644
  role: z.ZodEnum<{
615
645
  assistant: "assistant";
646
+ system: "system";
616
647
  user: "user";
617
648
  }>;
618
- text: z.ZodString;
619
- }, z.core.$strict>;
620
- declare const conversationSummaryReportSchema: z.ZodObject<{
621
- displayTitle: z.ZodString;
622
- activityPreview: z.ZodOptional<z.ZodObject<{
623
- createdAt: z.ZodString;
624
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
625
- avatarUrl: z.ZodOptional<z.ZodString>;
626
- email: z.ZodOptional<z.ZodString>;
627
- fullName: z.ZodOptional<z.ZodString>;
628
- slackUserId: z.ZodOptional<z.ZodString>;
629
- slackUserName: z.ZodOptional<z.ZodString>;
630
- }, z.core.$strict>>>;
631
- role: z.ZodEnum<{
632
- assistant: "assistant";
633
- user: "user";
634
- }>;
635
- text: z.ZodString;
636
- }, z.core.$strict>>;
637
- cumulativeDurationMs: z.ZodNumber;
638
- cumulativeUsage: z.ZodOptional<z.ZodObject<{
639
- inputTokens: z.ZodOptional<z.ZodNumber>;
640
- outputTokens: z.ZodOptional<z.ZodNumber>;
641
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
642
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
643
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
644
- totalTokens: z.ZodOptional<z.ZodNumber>;
645
- cost: z.ZodOptional<z.ZodObject<{
646
- input: z.ZodOptional<z.ZodNumber>;
647
- output: z.ZodOptional<z.ZodNumber>;
648
- cacheRead: z.ZodOptional<z.ZodNumber>;
649
- cacheWrite: z.ZodOptional<z.ZodNumber>;
650
- total: z.ZodOptional<z.ZodNumber>;
651
- }, z.core.$strict>>;
652
- }, z.core.$strict>>;
653
- auxiliaryCosts: z.ZodOptional<z.ZodObject<{
654
- costUsd: z.ZodNumber;
655
- operations: z.ZodArray<z.ZodObject<{
656
- costUsd: z.ZodNumber;
657
- events: z.ZodNumber;
658
- name: z.ZodString;
659
- namespace: z.ZodString;
660
- }, z.core.$strict>>;
661
- }, z.core.$strict>>;
662
- childAgentTotals: z.ZodOptional<z.ZodObject<{
663
- auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
664
- count: z.ZodNumber;
665
- cumulativeDurationMs: z.ZodNumber;
666
- cumulativeUsage: z.ZodOptional<z.ZodObject<{
667
- inputTokens: z.ZodOptional<z.ZodNumber>;
668
- outputTokens: z.ZodOptional<z.ZodNumber>;
669
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
670
- cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
671
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
672
- totalTokens: z.ZodOptional<z.ZodNumber>;
673
- cost: z.ZodOptional<z.ZodObject<{
674
- input: z.ZodOptional<z.ZodNumber>;
675
- output: z.ZodOptional<z.ZodNumber>;
676
- cacheRead: z.ZodOptional<z.ZodNumber>;
677
- cacheWrite: z.ZodOptional<z.ZodNumber>;
678
- total: z.ZodOptional<z.ZodNumber>;
679
- }, z.core.$strict>>;
680
- }, z.core.$strict>>;
681
- }, z.core.$strict>>;
682
- conversationId: z.ZodString;
683
- kind: z.ZodEnum<{
684
- automation: "automation";
685
- root: "root";
686
- task: "task";
687
- thread: "thread";
688
- }>;
689
- parentConversationId: z.ZodOptional<z.ZodString>;
690
- isParticipant: z.ZodBoolean;
691
- visibility: z.ZodOptional<z.ZodEnum<{
692
- private: "private";
693
- public: "public";
694
- }>>;
695
- status: z.ZodEnum<{
696
- active: "active";
697
- completed: "completed";
698
- failed: "failed";
699
- stopped: "stopped";
700
- }>;
701
- startedAt: z.ZodString;
702
- lastSeenAt: z.ZodString;
703
- lastProgressAt: z.ZodString;
704
- lastMessageAt: z.ZodOptional<z.ZodString>;
705
- surface: z.ZodEnum<{
706
- api: "api";
707
- internal: "internal";
708
- scheduler: "scheduler";
649
+ source: z.ZodOptional<z.ZodEnum<{
709
650
  slack: "slack";
710
- }>;
651
+ web: "web";
652
+ }>>;
711
653
  actorIdentity: z.ZodOptional<z.ZodObject<{
712
654
  avatarUrl: z.ZodOptional<z.ZodString>;
713
655
  email: z.ZodOptional<z.ZodString>;
@@ -715,207 +657,54 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
715
657
  slackUserId: z.ZodOptional<z.ZodString>;
716
658
  slackUserName: z.ZodOptional<z.ZodString>;
717
659
  }, z.core.$strict>>;
718
- participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
719
- avatarUrl: z.ZodOptional<z.ZodString>;
720
- email: z.ZodOptional<z.ZodString>;
721
- fullName: z.ZodOptional<z.ZodString>;
722
- slackUserId: z.ZodOptional<z.ZodString>;
723
- slackUserName: z.ZodOptional<z.ZodString>;
724
- }, z.core.$strict>>>;
725
- archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
- pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
727
- pinPosition: z.ZodOptional<z.ZodNumber>;
728
- channel: z.ZodOptional<z.ZodString>;
729
- channelName: z.ZodOptional<z.ZodString>;
730
- channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
731
- locationId: z.ZodOptional<z.ZodString>;
732
- sentryTraceUrl: z.ZodOptional<z.ZodString>;
733
- locationUrl: z.ZodOptional<z.ZodString>;
734
- traceId: z.ZodOptional<z.ZodString>;
735
- annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
736
- kind: z.ZodLiteral<"resource_link">;
660
+ actorIdentityId: z.ZodOptional<z.ZodString>;
661
+ agentInvocationId: z.ZodOptional<z.ZodString>;
662
+ eventType: z.ZodOptional<z.ZodString>;
663
+ eventNamespace: z.ZodOptional<z.ZodString>;
664
+ eventObjectType: z.ZodOptional<z.ZodEnum<{
665
+ automation: "automation";
666
+ calendar_event: "calendar_event";
667
+ code_change: "code_change";
668
+ conversation: "conversation";
669
+ deployment: "deployment";
670
+ document: "document";
671
+ item: "item";
672
+ message: "message";
673
+ person: "person";
674
+ task: "task";
675
+ web_page: "web_page";
676
+ }>>;
677
+ explicitMention: z.ZodOptional<z.ZodBoolean>;
678
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
679
+ trustedSummary: z.ZodOptional<z.ZodString>;
680
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
681
+ eventType: z.ZodString;
682
+ label: z.ZodOptional<z.ZodString>;
737
683
  objectType: z.ZodOptional<z.ZodEnum<{
738
684
  automation: "automation";
739
685
  calendar_event: "calendar_event";
740
686
  code_change: "code_change";
687
+ conversation: "conversation";
741
688
  deployment: "deployment";
689
+ document: "document";
742
690
  item: "item";
691
+ message: "message";
692
+ person: "person";
743
693
  task: "task";
694
+ web_page: "web_page";
744
695
  }>>;
696
+ trustedSummary: z.ZodOptional<z.ZodString>;
697
+ }, z.core.$strict>>>;
698
+ cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
699
+ plugin: z.ZodString;
745
700
  key: z.ZodString;
746
- label: z.ZodString;
747
- url: z.ZodString;
748
- description: z.ZodOptional<z.ZodString>;
749
- status: z.ZodOptional<z.ZodEnum<{
750
- closed: "closed";
751
- draft: "draft";
752
- merged: "merged";
753
- open: "open";
754
- warning: "warning";
755
- }>>;
756
- }, z.core.$strict>, z.ZodObject<{
757
701
  kind: z.ZodLiteral<"object">;
758
- key: z.ZodString;
759
- label: z.ZodString;
760
- objectType: z.ZodEnum<{
761
- automation: "automation";
762
- calendar_event: "calendar_event";
763
- code_change: "code_change";
764
- deployment: "deployment";
765
- item: "item";
766
- task: "task";
767
- }>;
768
- title: z.ZodString;
769
- url: z.ZodNullable<z.ZodURL>;
770
- description: z.ZodOptional<z.ZodString>;
771
- status: z.ZodOptional<z.ZodString>;
772
- trigger: z.ZodOptional<z.ZodString>;
773
- warning: z.ZodOptional<z.ZodString>;
774
- displayType: z.ZodOptional<z.ZodString>;
775
- sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
776
- facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
777
- type: z.ZodLiteral<"code_change">;
778
- author: z.ZodOptional<z.ZodString>;
779
- sourceBranch: z.ZodOptional<z.ZodString>;
780
- targetBranch: z.ZodOptional<z.ZodString>;
781
- reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
782
- review: z.ZodOptional<z.ZodEnum<{
783
- approved: "approved";
784
- changes_requested: "changes_requested";
785
- required: "required";
786
- }>>;
787
- checks: z.ZodOptional<z.ZodObject<{
788
- passed: z.ZodNumber;
789
- failed: z.ZodNumber;
790
- pending: z.ZodNumber;
791
- }, z.core.$strict>>;
792
- mergeable: z.ZodOptional<z.ZodBoolean>;
793
- changedFiles: z.ZodOptional<z.ZodNumber>;
794
- additions: z.ZodOptional<z.ZodNumber>;
795
- deletions: z.ZodOptional<z.ZodNumber>;
796
- }, z.core.$strict>, z.ZodObject<{
797
- type: z.ZodLiteral<"task">;
798
- assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
799
- priority: z.ZodOptional<z.ZodString>;
800
- project: z.ZodOptional<z.ZodString>;
801
- cycle: z.ZodOptional<z.ZodString>;
802
- dueDate: z.ZodOptional<z.ZodISODate>;
803
- labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
804
- }, z.core.$strict>, z.ZodObject<{
805
- type: z.ZodLiteral<"deployment">;
806
- project: z.ZodOptional<z.ZodString>;
807
- environment: z.ZodOptional<z.ZodString>;
808
- revision: z.ZodOptional<z.ZodString>;
809
- branch: z.ZodOptional<z.ZodString>;
810
- }, z.core.$strict>, z.ZodObject<{
811
- type: z.ZodLiteral<"calendar_event">;
812
- when: z.ZodOptional<z.ZodString>;
813
- attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
814
- }, z.core.$strict>], "type">>;
815
- }, z.core.$strict>], "kind">, z.ZodObject<{
816
- plugin: z.ZodString;
817
- createdAt: z.ZodString;
818
- updatedAt: z.ZodString;
819
- }, z.core.$strip>>>>;
820
- sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
821
- icon: z.ZodOptional<z.ZodEnum<{
822
- "circle-dashed": "circle-dashed";
823
- "circle-dot": "circle-dot";
824
- "circle-x": "circle-x";
825
- "git-merge": "git-merge";
826
- "git-pull-request": "git-pull-request";
827
- "triangle-alert": "triangle-alert";
828
- }>>;
829
- objectType: z.ZodOptional<z.ZodEnum<{
830
- automation: "automation";
831
- calendar_event: "calendar_event";
832
- code_change: "code_change";
833
- deployment: "deployment";
834
- item: "item";
835
- task: "task";
836
- }>>;
837
- status: z.ZodOptional<z.ZodString>;
838
- key: z.ZodString;
839
- label: z.ZodString;
840
- }, z.core.$strict>>>;
841
- assignedWork: z.ZodOptional<z.ZodBoolean>;
842
- finishedWorkAt: z.ZodOptional<z.ZodString>;
843
- isPriority: z.ZodOptional<z.ZodBoolean>;
844
- unfinishedWork: z.ZodOptional<z.ZodBoolean>;
845
- awaitingAuthorization: z.ZodOptional<z.ZodBoolean>;
846
- }, z.core.$strict>;
847
- /** One Event listed on a message that holds several Events. */
848
- declare const conversationReportMessageEventSchema: z.ZodObject<{
849
- eventType: z.ZodString;
850
- label: z.ZodOptional<z.ZodString>;
851
- objectType: z.ZodOptional<z.ZodEnum<{
852
- automation: "automation";
853
- calendar_event: "calendar_event";
854
- code_change: "code_change";
855
- deployment: "deployment";
856
- item: "item";
857
- task: "task";
858
- }>>;
859
- trustedSummary: z.ZodOptional<z.ZodString>;
860
- }, z.core.$strict>;
861
- /** Privacy-safe event variants owned by the conversation reporting API. */
862
- declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
863
- type: z.ZodLiteral<"message">;
864
- messageId: z.ZodString;
865
- role: z.ZodEnum<{
866
- assistant: "assistant";
867
- system: "system";
868
- user: "user";
869
- }>;
870
- source: z.ZodOptional<z.ZodEnum<{
871
- slack: "slack";
872
- web: "web";
873
- }>>;
874
- actorIdentity: z.ZodOptional<z.ZodObject<{
875
- avatarUrl: z.ZodOptional<z.ZodString>;
876
- email: z.ZodOptional<z.ZodString>;
877
- fullName: z.ZodOptional<z.ZodString>;
878
- slackUserId: z.ZodOptional<z.ZodString>;
879
- slackUserName: z.ZodOptional<z.ZodString>;
880
- }, z.core.$strict>>;
881
- actorIdentityId: z.ZodOptional<z.ZodString>;
882
- agentInvocationId: z.ZodOptional<z.ZodString>;
883
- eventType: z.ZodOptional<z.ZodString>;
884
- eventNamespace: z.ZodOptional<z.ZodString>;
885
- eventObjectType: z.ZodOptional<z.ZodEnum<{
886
- automation: "automation";
887
- calendar_event: "calendar_event";
888
- code_change: "code_change";
889
- deployment: "deployment";
890
- item: "item";
891
- task: "task";
892
- }>>;
893
- explicitMention: z.ZodOptional<z.ZodBoolean>;
894
- quiet: z.ZodOptional<z.ZodLiteral<true>>;
895
- trustedSummary: z.ZodOptional<z.ZodString>;
896
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
897
- eventType: z.ZodString;
898
- label: z.ZodOptional<z.ZodString>;
899
- objectType: z.ZodOptional<z.ZodEnum<{
900
- automation: "automation";
901
- calendar_event: "calendar_event";
902
- code_change: "code_change";
903
- deployment: "deployment";
904
- item: "item";
905
- task: "task";
906
- }>>;
907
- trustedSummary: z.ZodOptional<z.ZodString>;
908
- }, z.core.$strict>>>;
909
- cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
910
- plugin: z.ZodString;
911
- key: z.ZodString;
912
- kind: z.ZodLiteral<"object">;
913
- }, z.core.$strict>>>;
914
- reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
915
- kind: z.ZodEnum<{
916
- dismissed: "dismissed";
917
- submitted: "submitted";
918
- taken: "taken";
702
+ }, z.core.$strict>>>;
703
+ reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
704
+ kind: z.ZodEnum<{
705
+ dismissed: "dismissed";
706
+ submitted: "submitted";
707
+ taken: "taken";
919
708
  }>;
920
709
  reviewItemId: z.ZodString;
921
710
  }, z.core.$strict>>>;
@@ -925,6 +714,7 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
925
714
  filename: z.ZodString;
926
715
  contentType: z.ZodString;
927
716
  bytes: z.ZodNumber;
717
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
928
718
  }, z.core.$strict>>>;
929
719
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
930
720
  }, z.core.$strict>, z.ZodObject<{
@@ -1046,6 +836,7 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
1046
836
  filename: z.ZodString;
1047
837
  contentType: z.ZodString;
1048
838
  bytes: z.ZodNumber;
839
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
1049
840
  }, z.core.$strict>>;
1050
841
  }, z.core.$strict>, z.ZodObject<{
1051
842
  type: z.ZodLiteral<"reply_posted">;
@@ -1141,9 +932,14 @@ declare const conversationReportEventSchema: z.ZodObject<{
1141
932
  automation: "automation";
1142
933
  calendar_event: "calendar_event";
1143
934
  code_change: "code_change";
935
+ conversation: "conversation";
1144
936
  deployment: "deployment";
937
+ document: "document";
1145
938
  item: "item";
939
+ message: "message";
940
+ person: "person";
1146
941
  task: "task";
942
+ web_page: "web_page";
1147
943
  }>>;
1148
944
  explicitMention: z.ZodOptional<z.ZodBoolean>;
1149
945
  quiet: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1155,9 +951,14 @@ declare const conversationReportEventSchema: z.ZodObject<{
1155
951
  automation: "automation";
1156
952
  calendar_event: "calendar_event";
1157
953
  code_change: "code_change";
954
+ conversation: "conversation";
1158
955
  deployment: "deployment";
956
+ document: "document";
1159
957
  item: "item";
958
+ message: "message";
959
+ person: "person";
1160
960
  task: "task";
961
+ web_page: "web_page";
1161
962
  }>>;
1162
963
  trustedSummary: z.ZodOptional<z.ZodString>;
1163
964
  }, z.core.$strict>>>;
@@ -1180,6 +981,7 @@ declare const conversationReportEventSchema: z.ZodObject<{
1180
981
  filename: z.ZodString;
1181
982
  contentType: z.ZodString;
1182
983
  bytes: z.ZodNumber;
984
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
1183
985
  }, z.core.$strict>>>;
1184
986
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
1185
987
  }, z.core.$strict>, z.ZodObject<{
@@ -1301,6 +1103,7 @@ declare const conversationReportEventSchema: z.ZodObject<{
1301
1103
  filename: z.ZodString;
1302
1104
  contentType: z.ZodString;
1303
1105
  bytes: z.ZodNumber;
1106
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
1304
1107
  }, z.core.$strict>>;
1305
1108
  }, z.core.$strict>, z.ZodObject<{
1306
1109
  type: z.ZodLiteral<"reply_posted">;
@@ -1479,9 +1282,14 @@ declare const conversationEventPageSchema: z.ZodObject<{
1479
1282
  automation: "automation";
1480
1283
  calendar_event: "calendar_event";
1481
1284
  code_change: "code_change";
1285
+ conversation: "conversation";
1482
1286
  deployment: "deployment";
1287
+ document: "document";
1483
1288
  item: "item";
1289
+ message: "message";
1290
+ person: "person";
1484
1291
  task: "task";
1292
+ web_page: "web_page";
1485
1293
  }>>;
1486
1294
  explicitMention: z.ZodOptional<z.ZodBoolean>;
1487
1295
  quiet: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1493,9 +1301,14 @@ declare const conversationEventPageSchema: z.ZodObject<{
1493
1301
  automation: "automation";
1494
1302
  calendar_event: "calendar_event";
1495
1303
  code_change: "code_change";
1304
+ conversation: "conversation";
1496
1305
  deployment: "deployment";
1306
+ document: "document";
1497
1307
  item: "item";
1308
+ message: "message";
1309
+ person: "person";
1498
1310
  task: "task";
1311
+ web_page: "web_page";
1499
1312
  }>>;
1500
1313
  trustedSummary: z.ZodOptional<z.ZodString>;
1501
1314
  }, z.core.$strict>>>;
@@ -1518,6 +1331,7 @@ declare const conversationEventPageSchema: z.ZodObject<{
1518
1331
  filename: z.ZodString;
1519
1332
  contentType: z.ZodString;
1520
1333
  bytes: z.ZodNumber;
1334
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
1521
1335
  }, z.core.$strict>>>;
1522
1336
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
1523
1337
  }, z.core.$strict>, z.ZodObject<{
@@ -1639,6 +1453,7 @@ declare const conversationEventPageSchema: z.ZodObject<{
1639
1453
  filename: z.ZodString;
1640
1454
  contentType: z.ZodString;
1641
1455
  bytes: z.ZodNumber;
1456
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
1642
1457
  }, z.core.$strict>>;
1643
1458
  }, z.core.$strict>, z.ZodObject<{
1644
1459
  type: z.ZodLiteral<"reply_posted">;
@@ -1880,9 +1695,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1880
1695
  automation: "automation";
1881
1696
  calendar_event: "calendar_event";
1882
1697
  code_change: "code_change";
1698
+ conversation: "conversation";
1883
1699
  deployment: "deployment";
1700
+ document: "document";
1884
1701
  item: "item";
1702
+ message: "message";
1703
+ person: "person";
1885
1704
  task: "task";
1705
+ web_page: "web_page";
1886
1706
  }>>;
1887
1707
  key: z.ZodString;
1888
1708
  label: z.ZodString;
@@ -1903,9 +1723,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1903
1723
  automation: "automation";
1904
1724
  calendar_event: "calendar_event";
1905
1725
  code_change: "code_change";
1726
+ conversation: "conversation";
1906
1727
  deployment: "deployment";
1728
+ document: "document";
1907
1729
  item: "item";
1730
+ message: "message";
1731
+ person: "person";
1908
1732
  task: "task";
1733
+ web_page: "web_page";
1909
1734
  }>;
1910
1735
  title: z.ZodString;
1911
1736
  url: z.ZodNullable<z.ZodURL>;
@@ -1917,6 +1742,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1917
1742
  sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1918
1743
  facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1919
1744
  type: z.ZodLiteral<"code_change">;
1745
+ summary: z.ZodOptional<z.ZodString>;
1920
1746
  author: z.ZodOptional<z.ZodString>;
1921
1747
  sourceBranch: z.ZodOptional<z.ZodString>;
1922
1748
  targetBranch: z.ZodOptional<z.ZodString>;
@@ -1935,8 +1761,10 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1935
1761
  changedFiles: z.ZodOptional<z.ZodNumber>;
1936
1762
  additions: z.ZodOptional<z.ZodNumber>;
1937
1763
  deletions: z.ZodOptional<z.ZodNumber>;
1764
+ previewImageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1938
1765
  }, z.core.$strict>, z.ZodObject<{
1939
1766
  type: z.ZodLiteral<"task">;
1767
+ summary: z.ZodOptional<z.ZodString>;
1940
1768
  assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1941
1769
  priority: z.ZodOptional<z.ZodString>;
1942
1770
  project: z.ZodOptional<z.ZodString>;
@@ -1945,14 +1773,45 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1945
1773
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1946
1774
  }, z.core.$strict>, z.ZodObject<{
1947
1775
  type: z.ZodLiteral<"deployment">;
1776
+ summary: z.ZodOptional<z.ZodString>;
1948
1777
  project: z.ZodOptional<z.ZodString>;
1949
1778
  environment: z.ZodOptional<z.ZodString>;
1950
1779
  revision: z.ZodOptional<z.ZodString>;
1951
1780
  branch: z.ZodOptional<z.ZodString>;
1952
1781
  }, z.core.$strict>, z.ZodObject<{
1953
1782
  type: z.ZodLiteral<"calendar_event">;
1783
+ summary: z.ZodOptional<z.ZodString>;
1954
1784
  when: z.ZodOptional<z.ZodString>;
1955
1785
  attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1786
+ }, z.core.$strict>, z.ZodObject<{
1787
+ type: z.ZodLiteral<"conversation">;
1788
+ summary: z.ZodOptional<z.ZodString>;
1789
+ participants: z.ZodOptional<z.ZodArray<z.ZodString>>;
1790
+ lastActivityAt: z.ZodOptional<z.ZodISODateTime>;
1791
+ }, z.core.$strict>, z.ZodObject<{
1792
+ type: z.ZodLiteral<"document">;
1793
+ summary: z.ZodOptional<z.ZodString>;
1794
+ owner: z.ZodOptional<z.ZodString>;
1795
+ modifiedAt: z.ZodOptional<z.ZodISODateTime>;
1796
+ }, z.core.$strict>, z.ZodObject<{
1797
+ type: z.ZodLiteral<"message">;
1798
+ summary: z.ZodOptional<z.ZodString>;
1799
+ channel: z.ZodOptional<z.ZodString>;
1800
+ author: z.ZodOptional<z.ZodString>;
1801
+ sentAt: z.ZodOptional<z.ZodISODateTime>;
1802
+ }, z.core.$strict>, z.ZodObject<{
1803
+ type: z.ZodLiteral<"web_page">;
1804
+ summary: z.ZodOptional<z.ZodString>;
1805
+ siteName: z.ZodOptional<z.ZodString>;
1806
+ author: z.ZodOptional<z.ZodString>;
1807
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
1808
+ }, z.core.$strict>, z.ZodObject<{
1809
+ type: z.ZodLiteral<"person">;
1810
+ summary: z.ZodOptional<z.ZodString>;
1811
+ email: z.ZodOptional<z.ZodString>;
1812
+ slackHandle: z.ZodOptional<z.ZodString>;
1813
+ githubHandle: z.ZodOptional<z.ZodString>;
1814
+ avatarUrl: z.ZodOptional<z.ZodString>;
1956
1815
  }, z.core.$strict>], "type">>;
1957
1816
  }, z.core.$strict>], "kind">, z.ZodObject<{
1958
1817
  plugin: z.ZodString;
@@ -1972,9 +1831,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1972
1831
  automation: "automation";
1973
1832
  calendar_event: "calendar_event";
1974
1833
  code_change: "code_change";
1834
+ conversation: "conversation";
1975
1835
  deployment: "deployment";
1836
+ document: "document";
1976
1837
  item: "item";
1838
+ message: "message";
1839
+ person: "person";
1977
1840
  task: "task";
1841
+ web_page: "web_page";
1978
1842
  }>>;
1979
1843
  status: z.ZodOptional<z.ZodString>;
1980
1844
  key: z.ZodString;
@@ -2037,9 +1901,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2037
1901
  automation: "automation";
2038
1902
  calendar_event: "calendar_event";
2039
1903
  code_change: "code_change";
1904
+ conversation: "conversation";
2040
1905
  deployment: "deployment";
1906
+ document: "document";
2041
1907
  item: "item";
1908
+ message: "message";
1909
+ person: "person";
2042
1910
  task: "task";
1911
+ web_page: "web_page";
2043
1912
  }>>;
2044
1913
  explicitMention: z.ZodOptional<z.ZodBoolean>;
2045
1914
  quiet: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2051,9 +1920,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2051
1920
  automation: "automation";
2052
1921
  calendar_event: "calendar_event";
2053
1922
  code_change: "code_change";
1923
+ conversation: "conversation";
2054
1924
  deployment: "deployment";
1925
+ document: "document";
2055
1926
  item: "item";
1927
+ message: "message";
1928
+ person: "person";
2056
1929
  task: "task";
1930
+ web_page: "web_page";
2057
1931
  }>>;
2058
1932
  trustedSummary: z.ZodOptional<z.ZodString>;
2059
1933
  }, z.core.$strict>>>;
@@ -2076,6 +1950,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2076
1950
  filename: z.ZodString;
2077
1951
  contentType: z.ZodString;
2078
1952
  bytes: z.ZodNumber;
1953
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
2079
1954
  }, z.core.$strict>>>;
2080
1955
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
2081
1956
  }, z.core.$strict>, z.ZodObject<{
@@ -2197,6 +2072,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2197
2072
  filename: z.ZodString;
2198
2073
  contentType: z.ZodString;
2199
2074
  bytes: z.ZodNumber;
2075
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
2200
2076
  }, z.core.$strict>>;
2201
2077
  }, z.core.$strict>, z.ZodObject<{
2202
2078
  type: z.ZodLiteral<"reply_posted">;
@@ -2443,9 +2319,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2443
2319
  automation: "automation";
2444
2320
  calendar_event: "calendar_event";
2445
2321
  code_change: "code_change";
2322
+ conversation: "conversation";
2446
2323
  deployment: "deployment";
2324
+ document: "document";
2447
2325
  item: "item";
2326
+ message: "message";
2327
+ person: "person";
2448
2328
  task: "task";
2329
+ web_page: "web_page";
2449
2330
  }>>;
2450
2331
  explicitMention: z.ZodOptional<z.ZodBoolean>;
2451
2332
  quiet: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2457,9 +2338,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2457
2338
  automation: "automation";
2458
2339
  calendar_event: "calendar_event";
2459
2340
  code_change: "code_change";
2341
+ conversation: "conversation";
2460
2342
  deployment: "deployment";
2343
+ document: "document";
2461
2344
  item: "item";
2345
+ message: "message";
2346
+ person: "person";
2462
2347
  task: "task";
2348
+ web_page: "web_page";
2463
2349
  }>>;
2464
2350
  trustedSummary: z.ZodOptional<z.ZodString>;
2465
2351
  }, z.core.$strict>>>;
@@ -2482,6 +2368,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2482
2368
  filename: z.ZodString;
2483
2369
  contentType: z.ZodString;
2484
2370
  bytes: z.ZodNumber;
2371
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
2485
2372
  }, z.core.$strict>>>;
2486
2373
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
2487
2374
  }, z.core.$strict>, z.ZodObject<{
@@ -2603,6 +2490,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2603
2490
  filename: z.ZodString;
2604
2491
  contentType: z.ZodString;
2605
2492
  bytes: z.ZodNumber;
2493
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
2606
2494
  }, z.core.$strict>>;
2607
2495
  }, z.core.$strict>, z.ZodObject<{
2608
2496
  type: z.ZodLiteral<"reply_posted">;
@@ -2698,59 +2586,518 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2698
2586
  }, z.core.$strict>>;
2699
2587
  }, z.core.$strict>>;
2700
2588
  }, z.core.$strict>>;
2701
- appended: z.ZodOptional<z.ZodLiteral<true>>;
2702
- appendCursor: z.ZodOptional<z.ZodString>;
2703
- eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2704
- status: z.ZodLiteral<"available">;
2705
- }, z.core.$strict>, z.ZodObject<{
2706
- status: z.ZodLiteral<"redacted">;
2707
- reason: z.ZodLiteral<"non_public_conversation">;
2708
- }, z.core.$strict>, z.ZodObject<{
2709
- status: z.ZodLiteral<"expired">;
2710
- expiredAt: z.ZodString;
2711
- }, z.core.$strict>], "status">;
2712
- previousCursor: z.ZodOptional<z.ZodString>;
2589
+ appended: z.ZodOptional<z.ZodLiteral<true>>;
2590
+ appendCursor: z.ZodOptional<z.ZodString>;
2591
+ eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2592
+ status: z.ZodLiteral<"available">;
2593
+ }, z.core.$strict>, z.ZodObject<{
2594
+ status: z.ZodLiteral<"redacted">;
2595
+ reason: z.ZodLiteral<"non_public_conversation">;
2596
+ }, z.core.$strict>, z.ZodObject<{
2597
+ status: z.ZodLiteral<"expired">;
2598
+ expiredAt: z.ZodString;
2599
+ }, z.core.$strict>], "status">;
2600
+ previousCursor: z.ZodOptional<z.ZodString>;
2601
+ generatedAt: z.ZodString;
2602
+ sentryConversationUrl: z.ZodOptional<z.ZodString>;
2603
+ sourceTask: z.ZodOptional<z.ZodObject<{
2604
+ id: z.ZodOptional<z.ZodString>;
2605
+ kind: z.ZodEnum<{
2606
+ event: "event";
2607
+ scheduled: "scheduled";
2608
+ }>;
2609
+ label: z.ZodOptional<z.ZodString>;
2610
+ title: z.ZodOptional<z.ZodString>;
2611
+ triggerMessageId: z.ZodOptional<z.ZodString>;
2612
+ triggerLabel: z.ZodOptional<z.ZodString>;
2613
+ credentialMode: z.ZodOptional<z.ZodEnum<{
2614
+ creator: "creator";
2615
+ system: "system";
2616
+ }>>;
2617
+ credentialUser: z.ZodOptional<z.ZodString>;
2618
+ }, z.core.$strict>>;
2619
+ }, z.core.$strict>;
2620
+ type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
2621
+ type ConversationTurnFailureCode = z.infer<typeof conversationTurnFailureCodeSchema>;
2622
+ type ConversationTurnFailureReason = z.infer<typeof conversationTurnFailureReasonSchema>;
2623
+ type ConversationSurface = z.infer<typeof conversationSurfaceSchema>;
2624
+ type ConversationCost = z.infer<typeof conversationCostSchema>;
2625
+ type ConversationUsage = z.infer<typeof conversationUsageSchema>;
2626
+ type ConversationAuxiliaryCosts = z.infer<typeof conversationAuxiliaryCostsSchema>;
2627
+ type ActorIdentity = z.infer<typeof actorIdentitySchema>;
2628
+ type ConversationActivityPreview = z.infer<typeof conversationActivityPreviewSchema>;
2629
+ type ConversationSummaryReport = z.infer<typeof conversationSummaryReportSchema>;
2630
+ type ConversationModelUsage = z.infer<typeof conversationModelUsageSchema>;
2631
+ type ConversationReportMessageEvent = z.infer<typeof conversationReportMessageEventSchema>;
2632
+ type ConversationReportEventData = z.infer<typeof conversationReportEventDataSchema>;
2633
+ type ConversationReportEvent = z.infer<typeof conversationReportEventSchema>;
2634
+ type ConversationEventHistory = z.infer<typeof conversationEventHistorySchema>;
2635
+ type ConversationSourceTask = z.infer<typeof conversationSourceTaskSchema>;
2636
+ type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
2637
+ type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
2638
+ type ConversationParams = z.infer<typeof conversationParamsSchema>;
2639
+ type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
2640
+ type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
2641
+ type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
2642
+ /**
2643
+ * Build the card of one Conversation that the viewer may read. Give `brief`
2644
+ * only when the viewer may see the Brief.
2645
+ */
2646
+ declare function conversationObjectCard(args: {
2647
+ brief?: string;
2648
+ participants: readonly ActorIdentity[];
2649
+ summary: Pick<ConversationSummaryReport, "archivedAt" | "conversationId" | "displayTitle" | "lastSeenAt" | "status">;
2650
+ url: string;
2651
+ }): ObjectAnnotation;
2652
+ /** Build the card of one known person from what the People pages show. */
2653
+ declare function personObjectCard(args: {
2654
+ /** A verified linked GitHub login, from account linking only. */
2655
+ githubHandle?: string;
2656
+ person: ActorIdentity & {
2657
+ email: string;
2658
+ };
2659
+ url: string;
2660
+ }): ObjectAnnotation;
2661
+ /**
2662
+ * Build the card of one chat message. Give `text` only when the viewer may
2663
+ * read the message: the card shows a short snippet of it, never all of it.
2664
+ */
2665
+ declare function messageObjectCard(args: {
2666
+ author?: string;
2667
+ /** Where the message is, such as `#general` or `Direct message`. */
2668
+ channel: string;
2669
+ key: string;
2670
+ sentAt?: string;
2671
+ text?: string;
2672
+ url: string;
2673
+ }): ObjectAnnotation;
2674
+ /**
2675
+ * Build the card of one public web page from its oEmbed fields or meta
2676
+ * tags. `thumbnailUrl` must be a Junior image path.
2677
+ */
2678
+ declare function webPageObjectCard(args: {
2679
+ author?: string;
2680
+ description?: string;
2681
+ siteName?: string;
2682
+ thumbnailUrl?: string;
2683
+ title: string;
2684
+ url: string;
2685
+ }): ObjectAnnotation;
2686
+ /** The most links that one object request may resolve. */
2687
+ declare const MAX_OBJECT_LINKS = 20;
2688
+ /** One or more `url` query values. */
2689
+ declare const objectLinksQuerySchema: z.ZodObject<{
2690
+ url: z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>;
2691
+ }, z.core.$strict>;
2692
+ /** The object cards of the links that resolved for the viewer. */
2693
+ declare const objectLinksReportSchema: z.ZodObject<{
2694
+ objects: z.ZodArray<z.ZodObject<{
2695
+ object: z.ZodObject<{
2696
+ kind: z.ZodLiteral<"object">;
2697
+ key: z.ZodString;
2698
+ label: z.ZodString;
2699
+ objectType: z.ZodEnum<{
2700
+ automation: "automation";
2701
+ calendar_event: "calendar_event";
2702
+ code_change: "code_change";
2703
+ conversation: "conversation";
2704
+ deployment: "deployment";
2705
+ document: "document";
2706
+ item: "item";
2707
+ message: "message";
2708
+ person: "person";
2709
+ task: "task";
2710
+ web_page: "web_page";
2711
+ }>;
2712
+ title: z.ZodString;
2713
+ url: z.ZodNullable<z.ZodURL>;
2714
+ description: z.ZodOptional<z.ZodString>;
2715
+ status: z.ZodOptional<z.ZodString>;
2716
+ trigger: z.ZodOptional<z.ZodString>;
2717
+ warning: z.ZodOptional<z.ZodString>;
2718
+ displayType: z.ZodOptional<z.ZodString>;
2719
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2720
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2721
+ type: z.ZodLiteral<"code_change">;
2722
+ summary: z.ZodOptional<z.ZodString>;
2723
+ author: z.ZodOptional<z.ZodString>;
2724
+ sourceBranch: z.ZodOptional<z.ZodString>;
2725
+ targetBranch: z.ZodOptional<z.ZodString>;
2726
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2727
+ review: z.ZodOptional<z.ZodEnum<{
2728
+ approved: "approved";
2729
+ changes_requested: "changes_requested";
2730
+ required: "required";
2731
+ }>>;
2732
+ checks: z.ZodOptional<z.ZodObject<{
2733
+ passed: z.ZodNumber;
2734
+ failed: z.ZodNumber;
2735
+ pending: z.ZodNumber;
2736
+ }, z.core.$strict>>;
2737
+ mergeable: z.ZodOptional<z.ZodBoolean>;
2738
+ changedFiles: z.ZodOptional<z.ZodNumber>;
2739
+ additions: z.ZodOptional<z.ZodNumber>;
2740
+ deletions: z.ZodOptional<z.ZodNumber>;
2741
+ previewImageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
2742
+ }, z.core.$strict>, z.ZodObject<{
2743
+ type: z.ZodLiteral<"task">;
2744
+ summary: z.ZodOptional<z.ZodString>;
2745
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2746
+ priority: z.ZodOptional<z.ZodString>;
2747
+ project: z.ZodOptional<z.ZodString>;
2748
+ cycle: z.ZodOptional<z.ZodString>;
2749
+ dueDate: z.ZodOptional<z.ZodISODate>;
2750
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2751
+ }, z.core.$strict>, z.ZodObject<{
2752
+ type: z.ZodLiteral<"deployment">;
2753
+ summary: z.ZodOptional<z.ZodString>;
2754
+ project: z.ZodOptional<z.ZodString>;
2755
+ environment: z.ZodOptional<z.ZodString>;
2756
+ revision: z.ZodOptional<z.ZodString>;
2757
+ branch: z.ZodOptional<z.ZodString>;
2758
+ }, z.core.$strict>, z.ZodObject<{
2759
+ type: z.ZodLiteral<"calendar_event">;
2760
+ summary: z.ZodOptional<z.ZodString>;
2761
+ when: z.ZodOptional<z.ZodString>;
2762
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
2763
+ }, z.core.$strict>, z.ZodObject<{
2764
+ type: z.ZodLiteral<"conversation">;
2765
+ summary: z.ZodOptional<z.ZodString>;
2766
+ participants: z.ZodOptional<z.ZodArray<z.ZodString>>;
2767
+ lastActivityAt: z.ZodOptional<z.ZodISODateTime>;
2768
+ }, z.core.$strict>, z.ZodObject<{
2769
+ type: z.ZodLiteral<"document">;
2770
+ summary: z.ZodOptional<z.ZodString>;
2771
+ owner: z.ZodOptional<z.ZodString>;
2772
+ modifiedAt: z.ZodOptional<z.ZodISODateTime>;
2773
+ }, z.core.$strict>, z.ZodObject<{
2774
+ type: z.ZodLiteral<"message">;
2775
+ summary: z.ZodOptional<z.ZodString>;
2776
+ channel: z.ZodOptional<z.ZodString>;
2777
+ author: z.ZodOptional<z.ZodString>;
2778
+ sentAt: z.ZodOptional<z.ZodISODateTime>;
2779
+ }, z.core.$strict>, z.ZodObject<{
2780
+ type: z.ZodLiteral<"web_page">;
2781
+ summary: z.ZodOptional<z.ZodString>;
2782
+ siteName: z.ZodOptional<z.ZodString>;
2783
+ author: z.ZodOptional<z.ZodString>;
2784
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
2785
+ }, z.core.$strict>, z.ZodObject<{
2786
+ type: z.ZodLiteral<"person">;
2787
+ summary: z.ZodOptional<z.ZodString>;
2788
+ email: z.ZodOptional<z.ZodString>;
2789
+ slackHandle: z.ZodOptional<z.ZodString>;
2790
+ githubHandle: z.ZodOptional<z.ZodString>;
2791
+ avatarUrl: z.ZodOptional<z.ZodString>;
2792
+ }, z.core.$strict>], "type">>;
2793
+ plugin: z.ZodString;
2794
+ }, z.core.$strict>;
2795
+ url: z.ZodString;
2796
+ }, z.core.$strict>>;
2797
+ }, z.core.$strict>;
2798
+ type ObjectLinksReport = z.output<typeof objectLinksReportSchema>;
2799
+ /** A participant asks to attach one linked object to a Conversation. */
2800
+ declare const attachObjectLinkBodySchema: z.ZodObject<{
2801
+ url: z.ZodString;
2802
+ }, z.core.$strict>;
2803
+ /** `unchanged` when the Conversation already has the object. */
2804
+ declare const attachObjectLinkResponseSchema: z.ZodObject<{
2805
+ status: z.ZodEnum<{
2806
+ attached: "attached";
2807
+ unchanged: "unchanged";
2808
+ }>;
2809
+ }, z.core.$strict>;
2810
+ type AttachObjectLinkResponse = z.output<typeof attachObjectLinkResponseSchema>;
2811
+ declare const dailyConversationActivitySchema: z.ZodObject<{
2812
+ active: z.ZodNumber;
2813
+ conversations: z.ZodNumber;
2814
+ date: z.ZodString;
2815
+ durationMs: z.ZodNumber;
2816
+ failed: z.ZodNumber;
2817
+ tokens: z.ZodOptional<z.ZodNumber>;
2818
+ }, z.core.$strict>;
2819
+ type DailyConversationActivity = z.infer<typeof dailyConversationActivitySchema>;
2820
+ /**
2821
+ * The part of a Conversation total that its child agents spent, at any depth.
2822
+ * Present only when the Conversation has child agents. The Conversation's own
2823
+ * part is the total minus this part.
2824
+ */
2825
+ declare const conversationChildAgentTotalsSchema: z.ZodObject<{
2826
+ auxiliaryCostUsd: z.ZodOptional<z.ZodNumber>;
2827
+ count: z.ZodNumber;
2828
+ cumulativeDurationMs: z.ZodNumber;
2829
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
2830
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2831
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2832
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2833
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2834
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2835
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2836
+ cost: z.ZodOptional<z.ZodObject<{
2837
+ input: z.ZodOptional<z.ZodNumber>;
2838
+ output: z.ZodOptional<z.ZodNumber>;
2839
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2840
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2841
+ total: z.ZodOptional<z.ZodNumber>;
2842
+ }, z.core.$strict>>;
2843
+ }, z.core.$strict>>;
2844
+ }, z.core.$strict>;
2845
+ type ConversationChildAgentTotals = z.infer<typeof conversationChildAgentTotalsSchema>;
2846
+ declare const codeChangeSummarySchema: z.ZodObject<{
2847
+ closed: z.ZodNumber;
2848
+ costUsd: z.ZodOptional<z.ZodNumber>;
2849
+ created: z.ZodNumber;
2850
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
2851
+ medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
2852
+ merged: z.ZodNumber;
2853
+ mergeRate: z.ZodOptional<z.ZodNumber>;
2854
+ open: z.ZodNumber;
2855
+ }, z.core.$strict>;
2856
+ declare const codeActivityDaySchema: z.ZodObject<{
2857
+ closed: z.ZodNumber;
2858
+ created: z.ZodNumber;
2859
+ date: z.ZodString;
2860
+ merged: z.ZodNumber;
2861
+ }, z.core.$strict>;
2862
+ declare const codeRepositorySummarySchema: z.ZodObject<{
2863
+ closed: z.ZodNumber;
2864
+ created: z.ZodNumber;
2865
+ id: z.ZodString;
2866
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
2867
+ merged: z.ZodNumber;
2868
+ mergeRate: z.ZodOptional<z.ZodNumber>;
2869
+ name: z.ZodString;
2870
+ open: z.ZodNumber;
2871
+ provider: z.ZodString;
2872
+ url: z.ZodOptional<z.ZodString>;
2873
+ }, z.core.$strict>;
2874
+ declare const codeChangeSummaryReportSchema: z.ZodObject<{
2875
+ closedAt: z.ZodOptional<z.ZodString>;
2876
+ draft: z.ZodBoolean;
2877
+ id: z.ZodString;
2878
+ lastActivityAt: z.ZodOptional<z.ZodString>;
2879
+ mergedAt: z.ZodOptional<z.ZodString>;
2880
+ number: z.ZodNumber;
2881
+ openedAt: z.ZodString;
2882
+ provider: z.ZodString;
2883
+ repository: z.ZodString;
2884
+ state: z.ZodEnum<{
2885
+ closed: "closed";
2886
+ merged: "merged";
2887
+ open: "open";
2888
+ }>;
2889
+ title: z.ZodOptional<z.ZodString>;
2890
+ url: z.ZodOptional<z.ZodString>;
2891
+ }, z.core.$strict>;
2892
+ declare const codeOverviewReportSchema: z.ZodObject<{
2893
+ activityDays: z.ZodArray<z.ZodObject<{
2894
+ closed: z.ZodNumber;
2895
+ created: z.ZodNumber;
2896
+ date: z.ZodString;
2897
+ merged: z.ZodNumber;
2898
+ }, z.core.$strict>>;
2899
+ activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
2900
+ closed: z.ZodNumber;
2901
+ created: z.ZodNumber;
2902
+ date: z.ZodString;
2903
+ merged: z.ZodNumber;
2904
+ }, z.core.$strict>>>;
2905
+ activitySixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
2906
+ closed: z.ZodNumber;
2907
+ created: z.ZodNumber;
2908
+ date: z.ZodString;
2909
+ merged: z.ZodNumber;
2910
+ }, z.core.$strict>>>;
2911
+ changes: z.ZodArray<z.ZodObject<{
2912
+ closedAt: z.ZodOptional<z.ZodString>;
2913
+ draft: z.ZodBoolean;
2914
+ id: z.ZodString;
2915
+ lastActivityAt: z.ZodOptional<z.ZodString>;
2916
+ mergedAt: z.ZodOptional<z.ZodString>;
2917
+ number: z.ZodNumber;
2918
+ openedAt: z.ZodString;
2919
+ provider: z.ZodString;
2920
+ repository: z.ZodString;
2921
+ state: z.ZodEnum<{
2922
+ closed: "closed";
2923
+ merged: "merged";
2924
+ open: "open";
2925
+ }>;
2926
+ title: z.ZodOptional<z.ZodString>;
2927
+ url: z.ZodOptional<z.ZodString>;
2928
+ }, z.core.$strict>>;
2929
+ generatedAt: z.ZodString;
2930
+ repositories: z.ZodArray<z.ZodObject<{
2931
+ closed: z.ZodNumber;
2932
+ created: z.ZodNumber;
2933
+ id: z.ZodString;
2934
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
2935
+ merged: z.ZodNumber;
2936
+ mergeRate: z.ZodOptional<z.ZodNumber>;
2937
+ name: z.ZodString;
2938
+ open: z.ZodNumber;
2939
+ provider: z.ZodString;
2940
+ url: z.ZodOptional<z.ZodString>;
2941
+ }, z.core.$strict>>;
2942
+ summary: z.ZodObject<{
2943
+ closed: z.ZodNumber;
2944
+ costUsd: z.ZodOptional<z.ZodNumber>;
2945
+ created: z.ZodNumber;
2946
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
2947
+ medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
2948
+ merged: z.ZodNumber;
2949
+ mergeRate: z.ZodOptional<z.ZodNumber>;
2950
+ open: z.ZodNumber;
2951
+ }, z.core.$strict>;
2952
+ windowEnd: z.ZodString;
2953
+ windowStart: z.ZodString;
2954
+ }, z.core.$strict>;
2955
+ declare const codeRepositoryParamsSchema: z.ZodObject<{
2956
+ repositoryId: z.ZodString;
2957
+ }, z.core.$strict>;
2958
+ /** Code activity, recent changes, and Workspaces for one repository. */
2959
+ declare const codeRepositoryReportSchema: z.ZodObject<{
2960
+ activityDays: z.ZodArray<z.ZodObject<{
2961
+ closed: z.ZodNumber;
2962
+ created: z.ZodNumber;
2963
+ date: z.ZodString;
2964
+ merged: z.ZodNumber;
2965
+ }, z.core.$strict>>;
2966
+ activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
2967
+ closed: z.ZodNumber;
2968
+ created: z.ZodNumber;
2969
+ date: z.ZodString;
2970
+ merged: z.ZodNumber;
2971
+ }, z.core.$strict>>>;
2972
+ activitySixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
2973
+ closed: z.ZodNumber;
2974
+ created: z.ZodNumber;
2975
+ date: z.ZodString;
2976
+ merged: z.ZodNumber;
2977
+ }, z.core.$strict>>>;
2978
+ changes: z.ZodArray<z.ZodObject<{
2979
+ closedAt: z.ZodOptional<z.ZodString>;
2980
+ draft: z.ZodBoolean;
2981
+ id: z.ZodString;
2982
+ lastActivityAt: z.ZodOptional<z.ZodString>;
2983
+ mergedAt: z.ZodOptional<z.ZodString>;
2984
+ number: z.ZodNumber;
2985
+ openedAt: z.ZodString;
2986
+ provider: z.ZodString;
2987
+ repository: z.ZodString;
2988
+ state: z.ZodEnum<{
2989
+ closed: "closed";
2990
+ merged: "merged";
2991
+ open: "open";
2992
+ }>;
2993
+ title: z.ZodOptional<z.ZodString>;
2994
+ url: z.ZodOptional<z.ZodString>;
2995
+ }, z.core.$strict>>;
2713
2996
  generatedAt: z.ZodString;
2714
- sentryConversationUrl: z.ZodOptional<z.ZodString>;
2715
- sourceTask: z.ZodOptional<z.ZodObject<{
2716
- id: z.ZodOptional<z.ZodString>;
2717
- kind: z.ZodEnum<{
2718
- event: "event";
2719
- scheduled: "scheduled";
2997
+ repository: z.ZodObject<{
2998
+ id: z.ZodString;
2999
+ name: z.ZodString;
3000
+ provider: z.ZodString;
3001
+ url: z.ZodOptional<z.ZodString>;
3002
+ }, z.core.$strict>;
3003
+ summary: z.ZodObject<{
3004
+ closed: z.ZodNumber;
3005
+ costUsd: z.ZodOptional<z.ZodNumber>;
3006
+ created: z.ZodNumber;
3007
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
3008
+ medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
3009
+ merged: z.ZodNumber;
3010
+ mergeRate: z.ZodOptional<z.ZodNumber>;
3011
+ open: z.ZodNumber;
3012
+ }, z.core.$strict>;
3013
+ windowEnd: z.ZodString;
3014
+ windowStart: z.ZodString;
3015
+ workspaces: z.ZodArray<z.ZodObject<{
3016
+ id: z.ZodString;
3017
+ name: z.ZodString;
3018
+ }, z.core.$strict>>;
3019
+ }, z.core.$strict>;
3020
+ /** Person-scoped code activity and recent code changes for one People profile. */
3021
+ declare const codePersonReportSchema: z.ZodObject<{
3022
+ activityDays: z.ZodArray<z.ZodObject<{
3023
+ closed: z.ZodNumber;
3024
+ created: z.ZodNumber;
3025
+ date: z.ZodString;
3026
+ merged: z.ZodNumber;
3027
+ }, z.core.$strict>>;
3028
+ activityHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
3029
+ closed: z.ZodNumber;
3030
+ created: z.ZodNumber;
3031
+ date: z.ZodString;
3032
+ merged: z.ZodNumber;
3033
+ }, z.core.$strict>>>;
3034
+ activitySixHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
3035
+ closed: z.ZodNumber;
3036
+ created: z.ZodNumber;
3037
+ date: z.ZodString;
3038
+ merged: z.ZodNumber;
3039
+ }, z.core.$strict>>>;
3040
+ changes: z.ZodArray<z.ZodObject<{
3041
+ closedAt: z.ZodOptional<z.ZodString>;
3042
+ draft: z.ZodBoolean;
3043
+ id: z.ZodString;
3044
+ lastActivityAt: z.ZodOptional<z.ZodString>;
3045
+ mergedAt: z.ZodOptional<z.ZodString>;
3046
+ number: z.ZodNumber;
3047
+ openedAt: z.ZodString;
3048
+ provider: z.ZodString;
3049
+ repository: z.ZodString;
3050
+ state: z.ZodEnum<{
3051
+ closed: "closed";
3052
+ merged: "merged";
3053
+ open: "open";
2720
3054
  }>;
2721
- label: z.ZodOptional<z.ZodString>;
2722
3055
  title: z.ZodOptional<z.ZodString>;
2723
- triggerMessageId: z.ZodOptional<z.ZodString>;
2724
- triggerLabel: z.ZodOptional<z.ZodString>;
2725
- credentialMode: z.ZodOptional<z.ZodEnum<{
2726
- creator: "creator";
2727
- system: "system";
2728
- }>>;
2729
- credentialUser: z.ZodOptional<z.ZodString>;
3056
+ url: z.ZodOptional<z.ZodString>;
2730
3057
  }, z.core.$strict>>;
3058
+ generatedAt: z.ZodString;
3059
+ summary: z.ZodObject<{
3060
+ closed: z.ZodNumber;
3061
+ costUsd: z.ZodOptional<z.ZodNumber>;
3062
+ created: z.ZodNumber;
3063
+ medianCostUsd: z.ZodOptional<z.ZodNumber>;
3064
+ medianMergeTimeMs: z.ZodOptional<z.ZodNumber>;
3065
+ merged: z.ZodNumber;
3066
+ mergeRate: z.ZodOptional<z.ZodNumber>;
3067
+ open: z.ZodNumber;
3068
+ }, z.core.$strict>;
3069
+ windowEnd: z.ZodString;
3070
+ windowStart: z.ZodString;
2731
3071
  }, z.core.$strict>;
2732
- type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
2733
- type ConversationTurnFailureCode = z.infer<typeof conversationTurnFailureCodeSchema>;
2734
- type ConversationTurnFailureReason = z.infer<typeof conversationTurnFailureReasonSchema>;
2735
- type ConversationSurface = z.infer<typeof conversationSurfaceSchema>;
2736
- type ConversationCost = z.infer<typeof conversationCostSchema>;
2737
- type ConversationUsage = z.infer<typeof conversationUsageSchema>;
2738
- type ConversationAuxiliaryCosts = z.infer<typeof conversationAuxiliaryCostsSchema>;
2739
- type ActorIdentity = z.infer<typeof actorIdentitySchema>;
2740
- type ConversationActivityPreview = z.infer<typeof conversationActivityPreviewSchema>;
2741
- type ConversationSummaryReport = z.infer<typeof conversationSummaryReportSchema>;
2742
- type ConversationModelUsage = z.infer<typeof conversationModelUsageSchema>;
2743
- type ConversationReportMessageEvent = z.infer<typeof conversationReportMessageEventSchema>;
2744
- type ConversationReportEventData = z.infer<typeof conversationReportEventDataSchema>;
2745
- type ConversationReportEvent = z.infer<typeof conversationReportEventSchema>;
2746
- type ConversationEventHistory = z.infer<typeof conversationEventHistorySchema>;
2747
- type ConversationSourceTask = z.infer<typeof conversationSourceTaskSchema>;
2748
- type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
2749
- type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
2750
- type ConversationParams = z.infer<typeof conversationParamsSchema>;
2751
- type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
2752
- type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
2753
- type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
3072
+ type CodeActivityDay = z.infer<typeof codeActivityDaySchema>;
3073
+ type CodeChangeSummaryReport = z.infer<typeof codeChangeSummaryReportSchema>;
3074
+ type CodeOverviewReport = z.infer<typeof codeOverviewReportSchema>;
3075
+ type CodePersonReport = z.infer<typeof codePersonReportSchema>;
3076
+ type CodeRepositoryReport = z.infer<typeof codeRepositoryReportSchema>;
3077
+ type CodeRepositorySummary = z.infer<typeof codeRepositorySummarySchema>;
3078
+ /**
3079
+ * Ask to upload one file for a Message. `conversationId` names an existing
3080
+ * Conversation; without it, the file is for the Conversation that the first
3081
+ * Message with this idempotency key creates.
3082
+ */
3083
+ declare const createAttachmentUploadBodySchema: z.ZodObject<{
3084
+ filename: z.ZodString;
3085
+ contentType: z.ZodString;
3086
+ bytes: z.ZodNumber;
3087
+ conversationId: z.ZodOptional<z.ZodString>;
3088
+ idempotencyKey: z.ZodString;
3089
+ }, z.core.$strict>;
3090
+ /** Upload id and the request that writes the file bytes. */
3091
+ declare const attachmentUploadSchema: z.ZodObject<{
3092
+ uploadId: z.ZodString;
3093
+ target: z.ZodObject<{
3094
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
3095
+ method: z.ZodLiteral<"PUT">;
3096
+ url: z.ZodString;
3097
+ }, z.core.$strict>;
3098
+ }, z.core.$strict>;
3099
+ type CreateAttachmentUploadBody = z.infer<typeof createAttachmentUploadBodySchema>;
3100
+ type AttachmentUpload = z.infer<typeof attachmentUploadSchema>;
2754
3101
  /** Mailbox delivery mode for one accepted inbound message. */
2755
3102
  declare const conversationPendingMessageDeliverySchema: z.ZodEnum<{
2756
3103
  defer: "defer";
@@ -2792,6 +3139,7 @@ declare const conversationPendingMessageSchema: z.ZodObject<{
2792
3139
  filename: z.ZodString;
2793
3140
  contentType: z.ZodString;
2794
3141
  bytes: z.ZodNumber;
3142
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
2795
3143
  }, z.core.$strict>>>;
2796
3144
  reviewItemChange: z.ZodOptional<z.ZodObject<{
2797
3145
  kind: z.ZodEnum<{
@@ -2853,6 +3201,7 @@ declare const conversationPendingMessagesReportSchema: z.ZodObject<{
2853
3201
  filename: z.ZodString;
2854
3202
  contentType: z.ZodString;
2855
3203
  bytes: z.ZodNumber;
3204
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
2856
3205
  }, z.core.$strict>>>;
2857
3206
  reviewItemChange: z.ZodOptional<z.ZodObject<{
2858
3207
  kind: z.ZodEnum<{
@@ -2987,9 +3336,14 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
2987
3336
  automation: "automation";
2988
3337
  calendar_event: "calendar_event";
2989
3338
  code_change: "code_change";
3339
+ conversation: "conversation";
2990
3340
  deployment: "deployment";
3341
+ document: "document";
2991
3342
  item: "item";
3343
+ message: "message";
3344
+ person: "person";
2992
3345
  task: "task";
3346
+ web_page: "web_page";
2993
3347
  }>>;
2994
3348
  key: z.ZodString;
2995
3349
  label: z.ZodString;
@@ -3010,9 +3364,14 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3010
3364
  automation: "automation";
3011
3365
  calendar_event: "calendar_event";
3012
3366
  code_change: "code_change";
3367
+ conversation: "conversation";
3013
3368
  deployment: "deployment";
3369
+ document: "document";
3014
3370
  item: "item";
3371
+ message: "message";
3372
+ person: "person";
3015
3373
  task: "task";
3374
+ web_page: "web_page";
3016
3375
  }>;
3017
3376
  title: z.ZodString;
3018
3377
  url: z.ZodNullable<z.ZodURL>;
@@ -3024,6 +3383,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3024
3383
  sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
3025
3384
  facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3026
3385
  type: z.ZodLiteral<"code_change">;
3386
+ summary: z.ZodOptional<z.ZodString>;
3027
3387
  author: z.ZodOptional<z.ZodString>;
3028
3388
  sourceBranch: z.ZodOptional<z.ZodString>;
3029
3389
  targetBranch: z.ZodOptional<z.ZodString>;
@@ -3042,8 +3402,10 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3042
3402
  changedFiles: z.ZodOptional<z.ZodNumber>;
3043
3403
  additions: z.ZodOptional<z.ZodNumber>;
3044
3404
  deletions: z.ZodOptional<z.ZodNumber>;
3405
+ previewImageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
3045
3406
  }, z.core.$strict>, z.ZodObject<{
3046
3407
  type: z.ZodLiteral<"task">;
3408
+ summary: z.ZodOptional<z.ZodString>;
3047
3409
  assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
3048
3410
  priority: z.ZodOptional<z.ZodString>;
3049
3411
  project: z.ZodOptional<z.ZodString>;
@@ -3052,14 +3414,45 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3052
3414
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
3053
3415
  }, z.core.$strict>, z.ZodObject<{
3054
3416
  type: z.ZodLiteral<"deployment">;
3417
+ summary: z.ZodOptional<z.ZodString>;
3055
3418
  project: z.ZodOptional<z.ZodString>;
3056
3419
  environment: z.ZodOptional<z.ZodString>;
3057
3420
  revision: z.ZodOptional<z.ZodString>;
3058
3421
  branch: z.ZodOptional<z.ZodString>;
3059
3422
  }, z.core.$strict>, z.ZodObject<{
3060
3423
  type: z.ZodLiteral<"calendar_event">;
3424
+ summary: z.ZodOptional<z.ZodString>;
3061
3425
  when: z.ZodOptional<z.ZodString>;
3062
3426
  attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
3427
+ }, z.core.$strict>, z.ZodObject<{
3428
+ type: z.ZodLiteral<"conversation">;
3429
+ summary: z.ZodOptional<z.ZodString>;
3430
+ participants: z.ZodOptional<z.ZodArray<z.ZodString>>;
3431
+ lastActivityAt: z.ZodOptional<z.ZodISODateTime>;
3432
+ }, z.core.$strict>, z.ZodObject<{
3433
+ type: z.ZodLiteral<"document">;
3434
+ summary: z.ZodOptional<z.ZodString>;
3435
+ owner: z.ZodOptional<z.ZodString>;
3436
+ modifiedAt: z.ZodOptional<z.ZodISODateTime>;
3437
+ }, z.core.$strict>, z.ZodObject<{
3438
+ type: z.ZodLiteral<"message">;
3439
+ summary: z.ZodOptional<z.ZodString>;
3440
+ channel: z.ZodOptional<z.ZodString>;
3441
+ author: z.ZodOptional<z.ZodString>;
3442
+ sentAt: z.ZodOptional<z.ZodISODateTime>;
3443
+ }, z.core.$strict>, z.ZodObject<{
3444
+ type: z.ZodLiteral<"web_page">;
3445
+ summary: z.ZodOptional<z.ZodString>;
3446
+ siteName: z.ZodOptional<z.ZodString>;
3447
+ author: z.ZodOptional<z.ZodString>;
3448
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
3449
+ }, z.core.$strict>, z.ZodObject<{
3450
+ type: z.ZodLiteral<"person">;
3451
+ summary: z.ZodOptional<z.ZodString>;
3452
+ email: z.ZodOptional<z.ZodString>;
3453
+ slackHandle: z.ZodOptional<z.ZodString>;
3454
+ githubHandle: z.ZodOptional<z.ZodString>;
3455
+ avatarUrl: z.ZodOptional<z.ZodString>;
3063
3456
  }, z.core.$strict>], "type">>;
3064
3457
  }, z.core.$strict>], "kind">, z.ZodObject<{
3065
3458
  plugin: z.ZodString;
@@ -3079,9 +3472,14 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3079
3472
  automation: "automation";
3080
3473
  calendar_event: "calendar_event";
3081
3474
  code_change: "code_change";
3475
+ conversation: "conversation";
3082
3476
  deployment: "deployment";
3477
+ document: "document";
3083
3478
  item: "item";
3479
+ message: "message";
3480
+ person: "person";
3084
3481
  task: "task";
3482
+ web_page: "web_page";
3085
3483
  }>>;
3086
3484
  status: z.ZodOptional<z.ZodString>;
3087
3485
  key: z.ZodString;
@@ -3144,9 +3542,14 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3144
3542
  automation: "automation";
3145
3543
  calendar_event: "calendar_event";
3146
3544
  code_change: "code_change";
3545
+ conversation: "conversation";
3147
3546
  deployment: "deployment";
3547
+ document: "document";
3148
3548
  item: "item";
3549
+ message: "message";
3550
+ person: "person";
3149
3551
  task: "task";
3552
+ web_page: "web_page";
3150
3553
  }>>;
3151
3554
  explicitMention: z.ZodOptional<z.ZodBoolean>;
3152
3555
  quiet: z.ZodOptional<z.ZodLiteral<true>>;
@@ -3158,9 +3561,14 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3158
3561
  automation: "automation";
3159
3562
  calendar_event: "calendar_event";
3160
3563
  code_change: "code_change";
3564
+ conversation: "conversation";
3161
3565
  deployment: "deployment";
3566
+ document: "document";
3162
3567
  item: "item";
3568
+ message: "message";
3569
+ person: "person";
3163
3570
  task: "task";
3571
+ web_page: "web_page";
3164
3572
  }>>;
3165
3573
  trustedSummary: z.ZodOptional<z.ZodString>;
3166
3574
  }, z.core.$strict>>>;
@@ -3183,6 +3591,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3183
3591
  filename: z.ZodString;
3184
3592
  contentType: z.ZodString;
3185
3593
  bytes: z.ZodNumber;
3594
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
3186
3595
  }, z.core.$strict>>>;
3187
3596
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
3188
3597
  }, z.core.$strict>, z.ZodObject<{
@@ -3304,6 +3713,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3304
3713
  filename: z.ZodString;
3305
3714
  contentType: z.ZodString;
3306
3715
  bytes: z.ZodNumber;
3716
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
3307
3717
  }, z.core.$strict>>;
3308
3718
  }, z.core.$strict>, z.ZodObject<{
3309
3719
  type: z.ZodLiteral<"reply_posted">;
@@ -3550,9 +3960,14 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3550
3960
  automation: "automation";
3551
3961
  calendar_event: "calendar_event";
3552
3962
  code_change: "code_change";
3963
+ conversation: "conversation";
3553
3964
  deployment: "deployment";
3965
+ document: "document";
3554
3966
  item: "item";
3967
+ message: "message";
3968
+ person: "person";
3555
3969
  task: "task";
3970
+ web_page: "web_page";
3556
3971
  }>>;
3557
3972
  explicitMention: z.ZodOptional<z.ZodBoolean>;
3558
3973
  quiet: z.ZodOptional<z.ZodLiteral<true>>;
@@ -3564,9 +3979,14 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3564
3979
  automation: "automation";
3565
3980
  calendar_event: "calendar_event";
3566
3981
  code_change: "code_change";
3982
+ conversation: "conversation";
3567
3983
  deployment: "deployment";
3984
+ document: "document";
3568
3985
  item: "item";
3986
+ message: "message";
3987
+ person: "person";
3569
3988
  task: "task";
3989
+ web_page: "web_page";
3570
3990
  }>>;
3571
3991
  trustedSummary: z.ZodOptional<z.ZodString>;
3572
3992
  }, z.core.$strict>>>;
@@ -3589,6 +4009,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3589
4009
  filename: z.ZodString;
3590
4010
  contentType: z.ZodString;
3591
4011
  bytes: z.ZodNumber;
4012
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
3592
4013
  }, z.core.$strict>>>;
3593
4014
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
3594
4015
  }, z.core.$strict>, z.ZodObject<{
@@ -3710,6 +4131,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3710
4131
  filename: z.ZodString;
3711
4132
  contentType: z.ZodString;
3712
4133
  bytes: z.ZodNumber;
4134
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
3713
4135
  }, z.core.$strict>>;
3714
4136
  }, z.core.$strict>, z.ZodObject<{
3715
4137
  type: z.ZodLiteral<"reply_posted">;
@@ -3878,6 +4300,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3878
4300
  filename: z.ZodString;
3879
4301
  contentType: z.ZodString;
3880
4302
  bytes: z.ZodNumber;
4303
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
3881
4304
  }, z.core.$strict>>>;
3882
4305
  reviewItemChange: z.ZodOptional<z.ZodObject<{
3883
4306
  kind: z.ZodEnum<{
@@ -3939,6 +4362,7 @@ declare const conversationUnchangedDetailWithMailboxSchema: z.ZodObject<{
3939
4362
  filename: z.ZodString;
3940
4363
  contentType: z.ZodString;
3941
4364
  bytes: z.ZodNumber;
4365
+ pending: z.ZodOptional<z.ZodLiteral<true>>;
3942
4366
  }, z.core.$strict>>>;
3943
4367
  reviewItemChange: z.ZodOptional<z.ZodObject<{
3944
4368
  kind: z.ZodEnum<{
@@ -4006,6 +4430,7 @@ declare const conversationFeedSchema: z.ZodObject<{
4006
4430
  conversations: z.ZodArray<z.ZodType<ConversationFeedItem, unknown, z.core.$ZodTypeInternals<ConversationFeedItem, unknown>>>;
4007
4431
  source: z.ZodLiteral<"conversation_index">;
4008
4432
  generatedAt: z.ZodString;
4433
+ nextCursor: z.ZodOptional<z.ZodString>;
4009
4434
  }, z.core.$strict>;
4010
4435
  type ConversationFeed = z.infer<typeof conversationFeedSchema>;
4011
4436
  /**
@@ -4872,9 +5297,14 @@ declare const actorProfileReportSchema: z.ZodObject<{
4872
5297
  automation: "automation";
4873
5298
  calendar_event: "calendar_event";
4874
5299
  code_change: "code_change";
5300
+ conversation: "conversation";
4875
5301
  deployment: "deployment";
5302
+ document: "document";
4876
5303
  item: "item";
5304
+ message: "message";
5305
+ person: "person";
4877
5306
  task: "task";
5307
+ web_page: "web_page";
4878
5308
  }>>;
4879
5309
  key: z.ZodString;
4880
5310
  label: z.ZodString;
@@ -4895,9 +5325,14 @@ declare const actorProfileReportSchema: z.ZodObject<{
4895
5325
  automation: "automation";
4896
5326
  calendar_event: "calendar_event";
4897
5327
  code_change: "code_change";
5328
+ conversation: "conversation";
4898
5329
  deployment: "deployment";
5330
+ document: "document";
4899
5331
  item: "item";
5332
+ message: "message";
5333
+ person: "person";
4900
5334
  task: "task";
5335
+ web_page: "web_page";
4901
5336
  }>;
4902
5337
  title: z.ZodString;
4903
5338
  url: z.ZodNullable<z.ZodURL>;
@@ -4909,6 +5344,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
4909
5344
  sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
4910
5345
  facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4911
5346
  type: z.ZodLiteral<"code_change">;
5347
+ summary: z.ZodOptional<z.ZodString>;
4912
5348
  author: z.ZodOptional<z.ZodString>;
4913
5349
  sourceBranch: z.ZodOptional<z.ZodString>;
4914
5350
  targetBranch: z.ZodOptional<z.ZodString>;
@@ -4927,8 +5363,10 @@ declare const actorProfileReportSchema: z.ZodObject<{
4927
5363
  changedFiles: z.ZodOptional<z.ZodNumber>;
4928
5364
  additions: z.ZodOptional<z.ZodNumber>;
4929
5365
  deletions: z.ZodOptional<z.ZodNumber>;
5366
+ previewImageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
4930
5367
  }, z.core.$strict>, z.ZodObject<{
4931
5368
  type: z.ZodLiteral<"task">;
5369
+ summary: z.ZodOptional<z.ZodString>;
4932
5370
  assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
4933
5371
  priority: z.ZodOptional<z.ZodString>;
4934
5372
  project: z.ZodOptional<z.ZodString>;
@@ -4937,14 +5375,45 @@ declare const actorProfileReportSchema: z.ZodObject<{
4937
5375
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
4938
5376
  }, z.core.$strict>, z.ZodObject<{
4939
5377
  type: z.ZodLiteral<"deployment">;
5378
+ summary: z.ZodOptional<z.ZodString>;
4940
5379
  project: z.ZodOptional<z.ZodString>;
4941
5380
  environment: z.ZodOptional<z.ZodString>;
4942
5381
  revision: z.ZodOptional<z.ZodString>;
4943
5382
  branch: z.ZodOptional<z.ZodString>;
4944
5383
  }, z.core.$strict>, z.ZodObject<{
4945
5384
  type: z.ZodLiteral<"calendar_event">;
5385
+ summary: z.ZodOptional<z.ZodString>;
4946
5386
  when: z.ZodOptional<z.ZodString>;
4947
5387
  attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
5388
+ }, z.core.$strict>, z.ZodObject<{
5389
+ type: z.ZodLiteral<"conversation">;
5390
+ summary: z.ZodOptional<z.ZodString>;
5391
+ participants: z.ZodOptional<z.ZodArray<z.ZodString>>;
5392
+ lastActivityAt: z.ZodOptional<z.ZodISODateTime>;
5393
+ }, z.core.$strict>, z.ZodObject<{
5394
+ type: z.ZodLiteral<"document">;
5395
+ summary: z.ZodOptional<z.ZodString>;
5396
+ owner: z.ZodOptional<z.ZodString>;
5397
+ modifiedAt: z.ZodOptional<z.ZodISODateTime>;
5398
+ }, z.core.$strict>, z.ZodObject<{
5399
+ type: z.ZodLiteral<"message">;
5400
+ summary: z.ZodOptional<z.ZodString>;
5401
+ channel: z.ZodOptional<z.ZodString>;
5402
+ author: z.ZodOptional<z.ZodString>;
5403
+ sentAt: z.ZodOptional<z.ZodISODateTime>;
5404
+ }, z.core.$strict>, z.ZodObject<{
5405
+ type: z.ZodLiteral<"web_page">;
5406
+ summary: z.ZodOptional<z.ZodString>;
5407
+ siteName: z.ZodOptional<z.ZodString>;
5408
+ author: z.ZodOptional<z.ZodString>;
5409
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
5410
+ }, z.core.$strict>, z.ZodObject<{
5411
+ type: z.ZodLiteral<"person">;
5412
+ summary: z.ZodOptional<z.ZodString>;
5413
+ email: z.ZodOptional<z.ZodString>;
5414
+ slackHandle: z.ZodOptional<z.ZodString>;
5415
+ githubHandle: z.ZodOptional<z.ZodString>;
5416
+ avatarUrl: z.ZodOptional<z.ZodString>;
4948
5417
  }, z.core.$strict>], "type">>;
4949
5418
  }, z.core.$strict>], "kind">, z.ZodObject<{
4950
5419
  plugin: z.ZodString;
@@ -4964,9 +5433,14 @@ declare const actorProfileReportSchema: z.ZodObject<{
4964
5433
  automation: "automation";
4965
5434
  calendar_event: "calendar_event";
4966
5435
  code_change: "code_change";
5436
+ conversation: "conversation";
4967
5437
  deployment: "deployment";
5438
+ document: "document";
4968
5439
  item: "item";
5440
+ message: "message";
5441
+ person: "person";
4969
5442
  task: "task";
5443
+ web_page: "web_page";
4970
5444
  }>>;
4971
5445
  status: z.ZodOptional<z.ZodString>;
4972
5446
  key: z.ZodString;
@@ -5307,9 +5781,14 @@ declare const locationDetailReportSchema: z.ZodObject<{
5307
5781
  automation: "automation";
5308
5782
  calendar_event: "calendar_event";
5309
5783
  code_change: "code_change";
5784
+ conversation: "conversation";
5310
5785
  deployment: "deployment";
5786
+ document: "document";
5311
5787
  item: "item";
5788
+ message: "message";
5789
+ person: "person";
5312
5790
  task: "task";
5791
+ web_page: "web_page";
5313
5792
  }>>;
5314
5793
  key: z.ZodString;
5315
5794
  label: z.ZodString;
@@ -5330,9 +5809,14 @@ declare const locationDetailReportSchema: z.ZodObject<{
5330
5809
  automation: "automation";
5331
5810
  calendar_event: "calendar_event";
5332
5811
  code_change: "code_change";
5812
+ conversation: "conversation";
5333
5813
  deployment: "deployment";
5814
+ document: "document";
5334
5815
  item: "item";
5816
+ message: "message";
5817
+ person: "person";
5335
5818
  task: "task";
5819
+ web_page: "web_page";
5336
5820
  }>;
5337
5821
  title: z.ZodString;
5338
5822
  url: z.ZodNullable<z.ZodURL>;
@@ -5344,6 +5828,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
5344
5828
  sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
5345
5829
  facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5346
5830
  type: z.ZodLiteral<"code_change">;
5831
+ summary: z.ZodOptional<z.ZodString>;
5347
5832
  author: z.ZodOptional<z.ZodString>;
5348
5833
  sourceBranch: z.ZodOptional<z.ZodString>;
5349
5834
  targetBranch: z.ZodOptional<z.ZodString>;
@@ -5362,8 +5847,10 @@ declare const locationDetailReportSchema: z.ZodObject<{
5362
5847
  changedFiles: z.ZodOptional<z.ZodNumber>;
5363
5848
  additions: z.ZodOptional<z.ZodNumber>;
5364
5849
  deletions: z.ZodOptional<z.ZodNumber>;
5850
+ previewImageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
5365
5851
  }, z.core.$strict>, z.ZodObject<{
5366
5852
  type: z.ZodLiteral<"task">;
5853
+ summary: z.ZodOptional<z.ZodString>;
5367
5854
  assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
5368
5855
  priority: z.ZodOptional<z.ZodString>;
5369
5856
  project: z.ZodOptional<z.ZodString>;
@@ -5372,14 +5859,45 @@ declare const locationDetailReportSchema: z.ZodObject<{
5372
5859
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
5373
5860
  }, z.core.$strict>, z.ZodObject<{
5374
5861
  type: z.ZodLiteral<"deployment">;
5862
+ summary: z.ZodOptional<z.ZodString>;
5375
5863
  project: z.ZodOptional<z.ZodString>;
5376
5864
  environment: z.ZodOptional<z.ZodString>;
5377
5865
  revision: z.ZodOptional<z.ZodString>;
5378
5866
  branch: z.ZodOptional<z.ZodString>;
5379
5867
  }, z.core.$strict>, z.ZodObject<{
5380
5868
  type: z.ZodLiteral<"calendar_event">;
5869
+ summary: z.ZodOptional<z.ZodString>;
5381
5870
  when: z.ZodOptional<z.ZodString>;
5382
5871
  attendees: z.ZodOptional<z.ZodArray<z.ZodString>>;
5872
+ }, z.core.$strict>, z.ZodObject<{
5873
+ type: z.ZodLiteral<"conversation">;
5874
+ summary: z.ZodOptional<z.ZodString>;
5875
+ participants: z.ZodOptional<z.ZodArray<z.ZodString>>;
5876
+ lastActivityAt: z.ZodOptional<z.ZodISODateTime>;
5877
+ }, z.core.$strict>, z.ZodObject<{
5878
+ type: z.ZodLiteral<"document">;
5879
+ summary: z.ZodOptional<z.ZodString>;
5880
+ owner: z.ZodOptional<z.ZodString>;
5881
+ modifiedAt: z.ZodOptional<z.ZodISODateTime>;
5882
+ }, z.core.$strict>, z.ZodObject<{
5883
+ type: z.ZodLiteral<"message">;
5884
+ summary: z.ZodOptional<z.ZodString>;
5885
+ channel: z.ZodOptional<z.ZodString>;
5886
+ author: z.ZodOptional<z.ZodString>;
5887
+ sentAt: z.ZodOptional<z.ZodISODateTime>;
5888
+ }, z.core.$strict>, z.ZodObject<{
5889
+ type: z.ZodLiteral<"web_page">;
5890
+ summary: z.ZodOptional<z.ZodString>;
5891
+ siteName: z.ZodOptional<z.ZodString>;
5892
+ author: z.ZodOptional<z.ZodString>;
5893
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
5894
+ }, z.core.$strict>, z.ZodObject<{
5895
+ type: z.ZodLiteral<"person">;
5896
+ summary: z.ZodOptional<z.ZodString>;
5897
+ email: z.ZodOptional<z.ZodString>;
5898
+ slackHandle: z.ZodOptional<z.ZodString>;
5899
+ githubHandle: z.ZodOptional<z.ZodString>;
5900
+ avatarUrl: z.ZodOptional<z.ZodString>;
5383
5901
  }, z.core.$strict>], "type">>;
5384
5902
  }, z.core.$strict>], "kind">, z.ZodObject<{
5385
5903
  plugin: z.ZodString;
@@ -5399,9 +5917,14 @@ declare const locationDetailReportSchema: z.ZodObject<{
5399
5917
  automation: "automation";
5400
5918
  calendar_event: "calendar_event";
5401
5919
  code_change: "code_change";
5920
+ conversation: "conversation";
5402
5921
  deployment: "deployment";
5922
+ document: "document";
5403
5923
  item: "item";
5924
+ message: "message";
5925
+ person: "person";
5404
5926
  task: "task";
5927
+ web_page: "web_page";
5405
5928
  }>>;
5406
5929
  status: z.ZodOptional<z.ZodString>;
5407
5930
  key: z.ZodString;
@@ -5553,6 +6076,7 @@ declare const personalTokenListSchema: z.ZodObject<{
5553
6076
  }, z.core.$strict>;
5554
6077
  declare const createPersonalTokenBodySchema: z.ZodObject<{
5555
6078
  name: z.ZodString;
6079
+ previewOrigin: z.ZodOptional<z.ZodString>;
5556
6080
  }, z.core.$strict>;
5557
6081
  declare const createdPersonalTokenSchema: z.ZodObject<{
5558
6082
  id: z.ZodString;
@@ -7774,4 +8298,4 @@ declare const versionsSchema: z.ZodObject<{
7774
8298
  spend: z.ZodString;
7775
8299
  }, z.core.$strict>;
7776
8300
  type Versions = z.output<typeof versionsSchema>;
7777
- export { AutomationVersionList as $, codeChangeSummarySchema as $i, ConversationDeliveryResponse as $n, steerConversationPendingMessagesBodySchema as $r, isWithinNotificationSchedule as $t, runtimeInfoReportSchema as A, conversationDetailReportSchema as Ai, personParamsSchema as An, ConversationAutoArchive as Ar, workspaceListSchema as At, replyTimeSegmentsReportSchema as B, createConversationMessageBodySchema as Bi, CONVERSATION_TITLE_MAX_LENGTH as Bn, ConversationPendingMessage as Br, personalTokenMetadataSchema as Bt, healthReportSchema as C, isAgentInvocationResultEventType as Ca, ConversationUsage as Ci, ActorTotalsReport as Cn, ConversationStatsItem as Cr, scheduledAutomationSummarySchema as Ct, pluginPackageContentReportSchema as D, MessageAttachment as Da, conversationActivityPreviewSchema as Di, PersonalSpendReport as Dn, conversationStatsReportSchema as Dr, baselineSnapshotSchema as Dt, pluginPackageContentItemReportSchema as E, MAX_INPUT_IMAGE_BYTES as Ea, acceptedConversationMessageSchema as Ei, PersonParams as En, GuardianStats as Er, WorkspaceReport as Et, StatsReport as F, conversationParamsSchema as Fi, conversationWatchesReportSchema as Fn, ConversationFeed as Fr, userCustomizationSchema as Ft, AutomationList as G, CodeActivityDay as Gi, CONVERSATION_OUTLINE_TEXT_LENGTH as Gn, cancelConversationPendingMessagesBodySchema as Gr, serviceAccountParamsSchema as Gt, AutomationExecution as H, forkConversationResponseSchema as Hi, RenameConversationResponse as Hn, ConversationPendingMessagesReport as Hr, revokePersonalTokenResponseSchema as Ht, statSchema as I, conversationReportEventDataSchema as Ii, ConversationChildAgent as In, ConversationFeedItem as Ir, PersonalTokenMetadata as It, AutomationRunList as J, CodePersonReport as Ji, ConversationSubscriptionBody as Jn, conversationPendingAuthorizationSchema as Jr, NotificationSettings as Jt, AutomationListQuery as K, CodeChangeSummaryReport as Ki, ConversationOutline as Kn, cancelConversationPendingMessagesResponseSchema as Kr, serviceAccountSchema as Kt, statsReportSchema as L, conversationReportEventSchema as Li, ConversationChildAgentsReport as Ln, conversationFeedSchema as Lr, createPersonalTokenBodySchema as Lt, skillReportSchema as M, conversationEventPageSchema as Mi, ConversationWatch as Mn, archiveConversationResponseSchema as Mr, workspaceRepoSchema as Mt, skillReportsSchema as N, conversationEventsQuerySchema as Ni, ConversationWatchesReport as Nn, archiveDoneConversationsResponseSchema as Nr, workspaceSchema as Nt, pluginSchema as O, INLINE_VIDEO_TYPES as Oa, conversationAuxiliaryCostsSchema as Oi, actorDirectoryReportSchema as On, ArchiveConversationBody as Or, deleteWorkspaceResponseSchema as Ot, StatReport as P, conversationFeedQuerySchema as Pi, conversationWatchSchema as Pn, conversationAutoArchiveSchema as Pr, USER_CUSTOMIZATION_MAX_CHARS as Pt, AutomationUpdate as Q, codeChangeSummaryReportSchema as Qi, ConversationDeliveryBody as Qn, conversationUnchangedDetailWithMailboxSchema as Qr, NotificationSchedule as Qt, ReplyTimeHistogram as R, conversationSummaryReportSchema as Ri, conversationChildAgentSchema as Rn, CancelConversationPendingMessagesBody as Rr, createdPersonalTokenSchema as Rt, SkillReports as S, AGENT_REPLY_EVENT_TYPE as Sa, ConversationTurnFailureReason as Si, ActorSummaryReport as Sn, ConversationMetricDay as Sr, eventAutomationSummarySchema as St, pluginOperationalReportSchema as T, MAX_INPUT_IMAGES as Ta, CreateConversationMessageBody as Ti, PeopleActivityDayReport as Tn, GuardianMetricDay as Tr, WorkspaceListReport as Tt, AutomationExecutionList as U, conversationTurnFailureCodeSchema as Ui, renameConversationBodySchema as Un, SteerConversationPendingMessagesBody as Ur, disconnectServiceAccountResponseSchema as Ut, AutomationEdit as V, forkConversationBodySchema as Vi, RenameConversationBody as Vn, ConversationPendingMessageDelivery as Vr, personalTokenParamsSchema as Vt, AutomationExecutionStatusDay as W, conversationTurnFailureReasonSchema as Wi, renameConversationResponseSchema as Wn, SteerConversationPendingMessagesResponse as Wr, serviceAccountListSchema as Wt, AutomationScheduleIntent as X, CodeRepositorySummary as Xi, conversationSubscriptionBodySchema as Xn, conversationPendingMessageSchema as Xr, testNotificationResponseSchema as Xt, AutomationRunWindows as Y, CodeRepositoryReport as Yi, ConversationSubscriptionResponse as Yn, conversationPendingMessageDeliverySchema as Yr, notificationSettingsSchema as Yt, AutomationSummary as Z, codeActivityDaySchema as Zi, conversationSubscriptionResponseSchema as Zn, conversationPendingMessagesReportSchema as Zr, DEFAULT_NOTIFICATION_SCHEDULE as Zt, PluginPackageContentReport as _, UserInputRequest as _a, ConversationReportStatus as _i, locationParamsSchema as _n, ContinueConversationInSlackResponse as _r, automationUpdateSchema as _t, ReviewItemPayload as a, ConversationChildAgentTotals as aa, ConversationActivityPreview as ai, startConnectionResponseSchema as an, ReorderPinnedConversationsResponse as ar, automationExecutionSchema as at, SkillDetailReport as b, normalizeUserInputAnswer as ba, ConversationSurface as bi, ActorDirectoryWindows as bn, StopConversationTurnResponse as br, automationVersionParamsSchema as bt, reviewItemListSchema as c, dailyConversationActivitySchema as ca, ConversationCost as ci, LocationActivityDayReport as cn, reorderPinnedConversationsBodySchema as cr, automationListQuerySchema as ct, ReviewItemChangeRecord as d, resolveMessageCards as da, ConversationEventPage as di, LocationDirectoryReport as dn, ConversationCatchUpBody as dr, automationRunListSchema as dt, codeOverviewReportSchema as ea, steerConversationPendingMessagesResponseSchema as ei, notificationScheduleSchema as en, conversationDeliveryBodySchema as er, ListedAutomationVersion as et, HealthReport as f, AutomationTask as fa, ConversationModelUsage as fi, LocationParams as fn, conversationCatchUpBodySchema as fr, automationRunSchema as ft, PluginPackageContentItemReport as g, UserInputField as ga, ConversationReportMessageEvent as gi, locationDirectoryReportSchema as gn, ContinueConversationInSlackBody as gr, automationSummarySchema as gt, PluginOperationalReportFeed as h, UserInputAnswer as ha, ConversationReportEventData as hi, locationDetailReportSchema as hn, conversationReadPositionSchema as hr, automationSchedulePreviewSchema as ht, ReviewItemActionBody as i, codeRepositorySummarySchema as ia, CONVERSATION_VERSION_HEADER as ii, disconnectConnectionResponseSchema as in, ReorderPinnedConversationsBody as ir, automationExecutionListSchema as it, skillDetailReportSchema as j, conversationEventHistorySchema as ji, personalSpendReportSchema as jn, archiveConversationBodySchema as jr, workspaceParamsSchema as jt, pluginsSchema as k, INPUT_IMAGE_TYPES as ka, conversationDetailQuerySchema as ki, actorProfileReportSchema as kn, ArchiveConversationResponse as kr, workspaceBodySchema as kt, reviewItemSchema as l, MessageCard as la, ConversationDetailReport as li, LocationActorSummaryReport as ln, reorderPinnedConversationsResponseSchema as lr, automationListSchema as lt, PluginOperationalReport as m, USER_INPUT_NOTE as ma, ConversationReportEvent as mi, locationActivityDayReportSchema as mn, ConversationReadPosition as mr, automationScheduleIntentSchema as mt, Versions as n, codeRepositoryParamsSchema as na, ActorIdentity as ni, connectionParamsSchema as nn, PinConversationBody as nr, automationEditSchema as nt, reviewItemActionSchema as o, conversationChildAgentTotalsSchema as oa, ConversationAgentTreeNode as oi, ApiError as on, pinConversationBodySchema as or, automationExecutionStatusDaySchema as ot, Plugin as p, AutomationCard as pa, ConversationParams as pi, LocationSummaryReport as pn, conversationCatchUpSchema as pr, automationRunWindowsSchema as pt, AutomationRun as q, CodeOverviewReport as qi, conversationOutlineSchema as qn, conversationDetailWithMailboxReportSchema as qr, startServiceAccountSignInResponseSchema as qt, versionsSchema as r, codeRepositoryReportSchema as ra, CONVERSATION_DETAIL_VERSION_HEADER as ri, connectionSchema as rn, PinConversationResponse as rr, automationEventCatalogSchema as rt, reviewItemCountSchema as s, DailyConversationActivity as sa, ConversationAuxiliaryCosts as si, apiErrorSchema as sn, pinConversationResponseSchema as sr, automationExecutionStatusSchema as st, OwnedObjectAnnotation$1 as t, codePersonReportSchema as ta, AcceptedConversationMessage as ti, connectionListSchema as tn, conversationDeliveryResponseSchema as tr, automationEditErrorSchema as tt, reviewItemWaitingConversationsSchema as u, messageCardText as ua, ConversationEventHistory as ui, LocationDetailReport as un, ConversationCatchUp as ur, automationParamsSchema as ut, Plugins as v, buttonUserInputField as va, ConversationSourceTask as vi, ActorActivityDayReport as vn, continueConversationInSlackBodySchema as vr, automationVersionActivateSchema as vt, pluginOperationalReportFeedSchema as w, InputImage as wa, CreateConversationBody as wi, ActorWindowMetrics as wn, ConversationStatsReport as wr, BaselineSnapshotReport as wt, SkillReport as x, webMessageId as xa, ConversationTurnFailureCode as xi, ActorProfileReport as xn, stopConversationTurnResponseSchema as xr, automationVersionSchema as xt, RuntimeInfoReport as y, isEmptyUserInputAnswer as ya, ConversationSummaryReport as yi, ActorDirectoryReport as yn, continueConversationInSlackResponseSchema as yr, automationVersionListSchema as yt, ReplyTimeSegmentsReport as z, createConversationBodySchema as zi, conversationChildAgentsReportSchema as zn, CancelConversationPendingMessagesResponse as zr, personalTokenListSchema as zt };
8301
+ export { AutomationVersionList as $, ConversationSurface as $i, ConversationDeliveryResponse as $n, steerConversationPendingMessagesBodySchema as $r, isWithinNotificationSchedule as $t, runtimeInfoReportSchema as A, USER_INPUT_NOTE as Aa, conversationObjectCard as Ai, personParamsSchema as An, ConversationAutoArchive as Ar, workspaceListSchema as At, replyTimeSegmentsReportSchema as B, InputFile as Ba, ConversationAuxiliaryCosts as Bi, CONVERSATION_TITLE_MAX_LENGTH as Bn, ConversationPendingMessage as Br, personalTokenMetadataSchema as Bt, healthReportSchema as C, conversationTurnFailureReasonSchema as Ca, AttachObjectLinkResponse as Ci, ActorTotalsReport as Cn, ConversationStatsItem as Cr, scheduledAutomationSummarySchema as Ct, pluginPackageContentReportSchema as D, resolveMessageCards as Da, attachObjectLinkResponseSchema as Di, PersonalSpendReport as Dn, conversationStatsReportSchema as Dr, baselineSnapshotSchema as Dt, pluginPackageContentItemReportSchema as E, messageCardText as Ea, attachObjectLinkBodySchema as Ei, PersonParams as En, GuardianStats as Er, WorkspaceReport as Et, StatsReport as F, isEmptyUserInputAnswer as Fa, ActorIdentity as Fi, conversationWatchesReportSchema as Fn, ConversationFeed as Fr, userCustomizationSchema as Ft, AutomationList as G, INPUT_IMAGE_TYPES as Ga, ConversationModelUsage as Gi, CONVERSATION_OUTLINE_TEXT_LENGTH as Gn, cancelConversationPendingMessagesBodySchema as Gr, serviceAccountParamsSchema as Gt, AutomationExecution as H, MAX_INPUT_ATTACHMENTS as Ha, ConversationDetailReport as Hi, RenameConversationResponse as Hn, ConversationPendingMessagesReport as Hr, revokePersonalTokenResponseSchema as Ht, statSchema as I, normalizeUserInputAnswer as Ia, CONVERSATION_DETAIL_VERSION_HEADER as Ii, ConversationChildAgent as In, ConversationFeedItem as Ir, PersonalTokenMetadata as It, AutomationRunList as J, ConversationReportEventData as Ji, ConversationSubscriptionBody as Jn, conversationPendingAuthorizationSchema as Jr, NotificationSettings as Jt, AutomationListQuery as K, ConversationParams as Ki, ConversationOutline as Kn, cancelConversationPendingMessagesResponseSchema as Kr, serviceAccountSchema as Kt, statsReportSchema as L, webMessageId as La, CONVERSATION_VERSION_HEADER as Li, ConversationChildAgentsReport as Ln, conversationFeedSchema as Lr, createPersonalTokenBodySchema as Lt, skillReportSchema as M, UserInputField as Ma, personObjectCard as Mi, ConversationWatch as Mn, archiveConversationResponseSchema as Mr, workspaceRepoSchema as Mt, skillReportsSchema as N, UserInputRequest as Na, webPageObjectCard as Ni, ConversationWatchesReport as Nn, archiveDoneConversationsResponseSchema as Nr, workspaceSchema as Nt, pluginSchema as O, AutomationTask as Oa, objectLinksQuerySchema as Oi, actorDirectoryReportSchema as On, ArchiveConversationBody as Or, deleteWorkspaceResponseSchema as Ot, StatReport as P, buttonUserInputField as Pa, AcceptedConversationMessage as Pi, conversationWatchSchema as Pn, conversationAutoArchiveSchema as Pr, USER_CUSTOMIZATION_MAX_CHARS as Pt, AutomationUpdate as Q, ConversationSummaryReport as Qi, ConversationDeliveryBody as Qn, conversationUnchangedDetailWithMailboxSchema as Qr, NotificationSchedule as Qt, ReplyTimeHistogram as R, AGENT_REPLY_EVENT_TYPE as Ra, ConversationActivityPreview as Ri, conversationChildAgentSchema as Rn, CancelConversationPendingMessagesBody as Rr, createdPersonalTokenSchema as Rt, SkillReports as S, conversationTurnFailureCodeSchema as Sa, dailyConversationActivitySchema as Si, ActorSummaryReport as Sn, ConversationMetricDay as Sr, eventAutomationSummarySchema as St, pluginOperationalReportSchema as T, annotationCard as Ta, ObjectLinksReport as Ti, PeopleActivityDayReport as Tn, GuardianMetricDay as Tr, WorkspaceListReport as Tt, AutomationExecutionList as U, MessageAttachment as Ua, ConversationEventHistory as Ui, renameConversationBodySchema as Un, SteerConversationPendingMessagesBody as Ur, disconnectServiceAccountResponseSchema as Ut, AutomationEdit as V, MAX_ATTACHMENT_BYTES as Va, ConversationCost as Vi, RenameConversationBody as Vn, ConversationPendingMessageDelivery as Vr, personalTokenParamsSchema as Vt, AutomationExecutionStatusDay as W, INLINE_VIDEO_TYPES as Wa, ConversationEventPage as Wi, renameConversationResponseSchema as Wn, SteerConversationPendingMessagesResponse as Wr, serviceAccountListSchema as Wt, AutomationScheduleIntent as X, ConversationReportStatus as Xi, conversationSubscriptionBodySchema as Xn, conversationPendingMessageSchema as Xr, testNotificationResponseSchema as Xt, AutomationRunWindows as Y, ConversationReportMessageEvent as Yi, ConversationSubscriptionResponse as Yn, conversationPendingMessageDeliverySchema as Yr, notificationSettingsSchema as Yt, AutomationSummary as Z, ConversationSourceTask as Zi, conversationSubscriptionResponseSchema as Zn, conversationPendingMessagesReportSchema as Zr, DEFAULT_NOTIFICATION_SCHEDULE as Zt, PluginPackageContentReport as _, conversationSummaryReportSchema as _a, codeRepositoryReportSchema as _i, locationParamsSchema as _n, ContinueConversationInSlackResponse as _r, automationUpdateSchema as _t, ReviewItemPayload as a, acceptedConversationMessageSchema as aa, CodeActivityDay as ai, startConnectionResponseSchema as an, ReorderPinnedConversationsResponse as ar, automationExecutionSchema as at, SkillDetailReport as b, forkConversationBodySchema as ba, conversationChildAgentTotalsSchema as bi, ActorDirectoryWindows as bn, StopConversationTurnResponse as br, automationVersionParamsSchema as bt, reviewItemListSchema as c, conversationDetailQuerySchema as ca, CodePersonReport as ci, LocationActivityDayReport as cn, reorderPinnedConversationsBodySchema as cr, automationListQuerySchema as ct, ReviewItemChangeRecord as d, conversationEventPageSchema as da, codeActivityDaySchema as di, LocationDirectoryReport as dn, ConversationCatchUpBody as dr, automationRunListSchema as dt, ConversationTurnFailureCode as ea, steerConversationPendingMessagesResponseSchema as ei, notificationScheduleSchema as en, conversationDeliveryBodySchema as er, ListedAutomationVersion as et, HealthReport as f, conversationEventsQuerySchema as fa, codeChangeSummaryReportSchema as fi, LocationParams as fn, conversationCatchUpBodySchema as fr, automationRunSchema as ft, PluginPackageContentItemReport as g, conversationReportEventSchema as ga, codeRepositoryParamsSchema as gi, locationDirectoryReportSchema as gn, ContinueConversationInSlackBody as gr, automationSummarySchema as gt, PluginOperationalReportFeed as h, conversationReportEventDataSchema as ha, codePersonReportSchema as hi, locationDetailReportSchema as hn, conversationReadPositionSchema as hr, automationSchedulePreviewSchema as ht, ReviewItemActionBody as i, CreateConversationMessageBody as ia, createAttachmentUploadBodySchema as ii, disconnectConnectionResponseSchema as in, ReorderPinnedConversationsBody as ir, automationExecutionListSchema as it, skillDetailReportSchema as j, UserInputAnswer as ja, messageObjectCard as ji, personalSpendReportSchema as jn, archiveConversationBodySchema as jr, workspaceParamsSchema as jt, pluginsSchema as k, AutomationCard as ka, objectLinksReportSchema as ki, actorProfileReportSchema as kn, ArchiveConversationResponse as kr, workspaceBodySchema as kt, reviewItemSchema as l, conversationDetailReportSchema as la, CodeRepositoryReport as li, LocationActorSummaryReport as ln, reorderPinnedConversationsResponseSchema as lr, automationListSchema as lt, PluginOperationalReport as m, conversationParamsSchema as ma, codeOverviewReportSchema as mi, locationActivityDayReportSchema as mn, ConversationReadPosition as mr, automationScheduleIntentSchema as mt, Versions as n, ConversationUsage as na, CreateAttachmentUploadBody as ni, connectionParamsSchema as nn, PinConversationBody as nr, automationEditSchema as nt, reviewItemActionSchema as o, conversationActivityPreviewSchema as oa, CodeChangeSummaryReport as oi, ApiError as on, pinConversationBodySchema as or, automationExecutionStatusDaySchema as ot, Plugin as p, conversationFeedQuerySchema as pa, codeChangeSummarySchema as pi, LocationSummaryReport as pn, conversationCatchUpSchema as pr, automationRunWindowsSchema as pt, AutomationRun as q, ConversationReportEvent as qi, conversationOutlineSchema as qn, conversationDetailWithMailboxReportSchema as qr, startServiceAccountSignInResponseSchema as qt, versionsSchema as r, CreateConversationBody as ra, attachmentUploadSchema as ri, connectionSchema as rn, PinConversationResponse as rr, automationEventCatalogSchema as rt, reviewItemCountSchema as s, conversationAuxiliaryCostsSchema as sa, CodeOverviewReport as si, apiErrorSchema as sn, pinConversationResponseSchema as sr, automationExecutionStatusSchema as st, OwnedObjectAnnotation$1 as t, ConversationTurnFailureReason as ta, AttachmentUpload as ti, connectionListSchema as tn, conversationDeliveryResponseSchema as tr, automationEditErrorSchema as tt, reviewItemWaitingConversationsSchema as u, conversationEventHistorySchema as ua, CodeRepositorySummary as ui, LocationDetailReport as un, ConversationCatchUp as ur, automationParamsSchema as ut, Plugins as v, createConversationBodySchema as va, codeRepositorySummarySchema as vi, ActorActivityDayReport as vn, continueConversationInSlackBodySchema as vr, automationVersionActivateSchema as vt, pluginOperationalReportFeedSchema as w, MessageCard as wa, MAX_OBJECT_LINKS as wi, ActorWindowMetrics as wn, ConversationStatsReport as wr, BaselineSnapshotReport as wt, SkillReport as x, forkConversationResponseSchema as xa, DailyConversationActivity as xi, ActorProfileReport as xn, stopConversationTurnResponseSchema as xr, automationVersionSchema as xt, RuntimeInfoReport as y, createConversationMessageBodySchema as ya, ConversationChildAgentTotals as yi, ActorDirectoryReport as yn, continueConversationInSlackResponseSchema as yr, automationVersionListSchema as yt, ReplyTimeSegmentsReport as z, isAgentInvocationResultEventType as za, ConversationAgentTreeNode as zi, conversationChildAgentsReportSchema as zn, CancelConversationPendingMessagesResponse as zr, personalTokenListSchema as zt };