@rudderhq/shared 0.5.2-canary.2 → 0.6.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 (79) hide show
  1. package/dist/chat-transcript-provenance.d.ts +7 -0
  2. package/dist/chat-transcript-provenance.d.ts.map +1 -0
  3. package/dist/chat-transcript-provenance.js +41 -0
  4. package/dist/chat-transcript-provenance.js.map +1 -0
  5. package/dist/chat-transcript-provenance.test.d.ts +2 -0
  6. package/dist/chat-transcript-provenance.test.d.ts.map +1 -0
  7. package/dist/chat-transcript-provenance.test.js +30 -0
  8. package/dist/chat-transcript-provenance.test.js.map +1 -0
  9. package/dist/chat-transcript-visibility.d.ts +14 -0
  10. package/dist/chat-transcript-visibility.d.ts.map +1 -0
  11. package/dist/chat-transcript-visibility.js +21 -0
  12. package/dist/chat-transcript-visibility.js.map +1 -0
  13. package/dist/config-schema.d.ts +42 -42
  14. package/dist/constants.d.ts +60 -2
  15. package/dist/constants.d.ts.map +1 -1
  16. package/dist/constants.js +70 -2
  17. package/dist/constants.js.map +1 -1
  18. package/dist/index.d.ts +8 -3
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +6 -2
  21. package/dist/index.js.map +1 -1
  22. package/dist/markdown-source-boundary.d.ts +12 -0
  23. package/dist/markdown-source-boundary.d.ts.map +1 -0
  24. package/dist/markdown-source-boundary.js +201 -0
  25. package/dist/markdown-source-boundary.js.map +1 -0
  26. package/dist/types/chat.d.ts +53 -8
  27. package/dist/types/chat.d.ts.map +1 -1
  28. package/dist/types/heartbeat.d.ts +1 -0
  29. package/dist/types/heartbeat.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +2 -1
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/mcp.d.ts +146 -0
  33. package/dist/types/mcp.d.ts.map +1 -0
  34. package/dist/types/mcp.js +2 -0
  35. package/dist/types/mcp.js.map +1 -0
  36. package/dist/types/secrets.d.ts +2 -0
  37. package/dist/types/secrets.d.ts.map +1 -1
  38. package/dist/validators/adapter-skills.d.ts +8 -8
  39. package/dist/validators/agent-integration.d.ts +6 -6
  40. package/dist/validators/automation.d.ts +6 -6
  41. package/dist/validators/chat-inline-annotations.test.d.ts +2 -0
  42. package/dist/validators/chat-inline-annotations.test.d.ts.map +1 -0
  43. package/dist/validators/chat-inline-annotations.test.js +251 -0
  44. package/dist/validators/chat-inline-annotations.test.js.map +1 -0
  45. package/dist/validators/chat.d.ts +2437 -39
  46. package/dist/validators/chat.d.ts.map +1 -1
  47. package/dist/validators/chat.js +246 -3
  48. package/dist/validators/chat.js.map +1 -1
  49. package/dist/validators/cost.d.ts +4 -4
  50. package/dist/validators/custom-integration.d.ts +1 -1
  51. package/dist/validators/custom-integration.d.ts.map +1 -1
  52. package/dist/validators/finance.d.ts +4 -4
  53. package/dist/validators/index.d.ts +2 -1
  54. package/dist/validators/index.d.ts.map +1 -1
  55. package/dist/validators/index.js +2 -1
  56. package/dist/validators/index.js.map +1 -1
  57. package/dist/validators/mcp.d.ts +2780 -0
  58. package/dist/validators/mcp.d.ts.map +1 -0
  59. package/dist/validators/mcp.js +500 -0
  60. package/dist/validators/mcp.js.map +1 -0
  61. package/dist/validators/mcp.test.d.ts +2 -0
  62. package/dist/validators/mcp.test.d.ts.map +1 -0
  63. package/dist/validators/mcp.test.js +643 -0
  64. package/dist/validators/mcp.test.js.map +1 -0
  65. package/dist/validators/messenger.d.ts +2 -2
  66. package/dist/validators/messenger.test.js +13 -0
  67. package/dist/validators/messenger.test.js.map +1 -1
  68. package/dist/validators/organization-portability.d.ts +20 -20
  69. package/dist/validators/project.d.ts +6 -6
  70. package/dist/validators/secret.d.ts +3 -3
  71. package/dist/validators/secret.d.ts.map +1 -1
  72. package/dist/validators/secret.js +3 -3
  73. package/dist/validators/secret.js.map +1 -1
  74. package/dist/validators/secret.test.d.ts +2 -0
  75. package/dist/validators/secret.test.d.ts.map +1 -0
  76. package/dist/validators/secret.test.js +20 -0
  77. package/dist/validators/secret.test.js.map +1 -0
  78. package/dist/validators/work-product.d.ts +6 -6
  79. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import type { ChatInlineAnnotation, ChatInlineAnnotationInput } from "../types/chat.js";
2
3
  export declare const chatConversationStatusSchema: z.ZodEnum<["active", "resolved", "archived"]>;
3
4
  export declare const chatIssueCreationModeSchema: z.ZodEnum<["manual_approval", "auto_create"]>;
4
5
  export declare const chatMessageRoleSchema: z.ZodEnum<["user", "assistant", "system"]>;
@@ -14,6 +15,765 @@ export declare const chatControlActionKindSchema: z.ZodEnum<["stop", "steer"]>;
14
15
  export declare const chatGenerationEventKindSchema: z.ZodEnum<["generation_started", "runtime_output", "assistant_delta", "transcript", "client_checkpoint", "steer_requested", "steer_provider_sent", "steer_acknowledged", "continuation_scheduled", "stop_requested", "output_cutoff", "runtime_terminal", "late_output_dropped", "terminal_projection_requested", "terminal_projected"]>;
15
16
  export declare const chatTerminalOutboxStatusSchema: z.ZodEnum<["pending", "claimed", "retry_wait", "projected", "failed_actionable"]>;
16
17
  export declare const chatQueuedMessageStatusSchema: z.ZodEnum<["queued", "steer_pending", "accepted_current", "acceptance_unknown", "reconciled_current", "continuation_pending", "running_next", "delivered", "failed_actionable", "steered", "dequeue_claimed", "running", "completed", "cancelled", "failed"]>;
18
+ export declare const MAX_CHAT_INLINE_ANNOTATIONS = 10;
19
+ export declare const MAX_CHAT_INLINE_ANNOTATION_SELECTED_TEXT_LENGTH = 4000;
20
+ export declare const MAX_CHAT_INLINE_ANNOTATION_COMMENT_LENGTH = 2000;
21
+ export declare const MAX_CHAT_INLINE_ANNOTATION_TOTAL_TEXT_LENGTH = 16000;
22
+ export declare const MAX_CHAT_INLINE_ANNOTATION_CONTEXT_LENGTH = 160;
23
+ export declare const MAX_CHAT_INLINE_ANNOTATION_ATTACHMENTS = 10;
24
+ export declare const chatInlineAnnotationSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
25
+ surface: z.ZodLiteral<"assistant_body">;
26
+ id: z.ZodString;
27
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
28
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
29
+ sourceConversationId: z.ZodString;
30
+ sourceMessageId: z.ZodString;
31
+ sourceHash: z.ZodString;
32
+ start: z.ZodNumber;
33
+ end: z.ZodNumber;
34
+ prefix: z.ZodString;
35
+ suffix: z.ZodString;
36
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
37
+ }, "strict", z.ZodTypeAny, {
38
+ start: number;
39
+ end: number;
40
+ id: string;
41
+ surface: "assistant_body";
42
+ selectedText: string;
43
+ sourceConversationId: string;
44
+ sourceMessageId: string;
45
+ sourceHash: string;
46
+ prefix: string;
47
+ suffix: string;
48
+ attachmentIds: string[];
49
+ comment?: string | null | undefined;
50
+ }, {
51
+ start: number;
52
+ end: number;
53
+ id: string;
54
+ surface: "assistant_body";
55
+ selectedText: string;
56
+ sourceConversationId: string;
57
+ sourceMessageId: string;
58
+ sourceHash: string;
59
+ prefix: string;
60
+ suffix: string;
61
+ comment?: unknown;
62
+ attachmentIds?: string[] | undefined;
63
+ }>, z.ZodObject<{
64
+ surface: z.ZodLiteral<"process_transcript">;
65
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
66
+ generationId: z.ZodString;
67
+ generationSeqStart: z.ZodNumber;
68
+ generationSeqEnd: z.ZodNumber;
69
+ id: z.ZodString;
70
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
71
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
72
+ sourceConversationId: z.ZodString;
73
+ sourceMessageId: z.ZodString;
74
+ sourceHash: z.ZodString;
75
+ start: z.ZodNumber;
76
+ end: z.ZodNumber;
77
+ prefix: z.ZodString;
78
+ suffix: z.ZodString;
79
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
80
+ }, "strict", z.ZodTypeAny, {
81
+ start: number;
82
+ end: number;
83
+ id: string;
84
+ generationSeqEnd: number;
85
+ surface: "process_transcript";
86
+ selectedText: string;
87
+ sourceConversationId: string;
88
+ sourceMessageId: string;
89
+ sourceHash: string;
90
+ prefix: string;
91
+ suffix: string;
92
+ attachmentIds: string[];
93
+ transcriptKind: "assistant" | "thinking";
94
+ generationId: string;
95
+ generationSeqStart: number;
96
+ comment?: string | null | undefined;
97
+ }, {
98
+ start: number;
99
+ end: number;
100
+ id: string;
101
+ generationSeqEnd: number;
102
+ surface: "process_transcript";
103
+ selectedText: string;
104
+ sourceConversationId: string;
105
+ sourceMessageId: string;
106
+ sourceHash: string;
107
+ prefix: string;
108
+ suffix: string;
109
+ transcriptKind: "assistant" | "thinking";
110
+ generationId: string;
111
+ generationSeqStart: number;
112
+ comment?: unknown;
113
+ attachmentIds?: string[] | undefined;
114
+ }>]>, {
115
+ start: number;
116
+ end: number;
117
+ id: string;
118
+ surface: "assistant_body";
119
+ selectedText: string;
120
+ sourceConversationId: string;
121
+ sourceMessageId: string;
122
+ sourceHash: string;
123
+ prefix: string;
124
+ suffix: string;
125
+ attachmentIds: string[];
126
+ comment?: string | null | undefined;
127
+ } | {
128
+ start: number;
129
+ end: number;
130
+ id: string;
131
+ generationSeqEnd: number;
132
+ surface: "process_transcript";
133
+ selectedText: string;
134
+ sourceConversationId: string;
135
+ sourceMessageId: string;
136
+ sourceHash: string;
137
+ prefix: string;
138
+ suffix: string;
139
+ attachmentIds: string[];
140
+ transcriptKind: "assistant" | "thinking";
141
+ generationId: string;
142
+ generationSeqStart: number;
143
+ comment?: string | null | undefined;
144
+ }, {
145
+ start: number;
146
+ end: number;
147
+ id: string;
148
+ surface: "assistant_body";
149
+ selectedText: string;
150
+ sourceConversationId: string;
151
+ sourceMessageId: string;
152
+ sourceHash: string;
153
+ prefix: string;
154
+ suffix: string;
155
+ comment?: unknown;
156
+ attachmentIds?: string[] | undefined;
157
+ } | {
158
+ start: number;
159
+ end: number;
160
+ id: string;
161
+ generationSeqEnd: number;
162
+ surface: "process_transcript";
163
+ selectedText: string;
164
+ sourceConversationId: string;
165
+ sourceMessageId: string;
166
+ sourceHash: string;
167
+ prefix: string;
168
+ suffix: string;
169
+ transcriptKind: "assistant" | "thinking";
170
+ generationId: string;
171
+ generationSeqStart: number;
172
+ comment?: unknown;
173
+ attachmentIds?: string[] | undefined;
174
+ }>;
175
+ export declare const chatInlineAnnotationInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
176
+ surface: z.ZodLiteral<"assistant_body">;
177
+ id: z.ZodString;
178
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
179
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
180
+ sourceConversationId: z.ZodString;
181
+ sourceMessageId: z.ZodString;
182
+ sourceHash: z.ZodString;
183
+ start: z.ZodNumber;
184
+ end: z.ZodNumber;
185
+ prefix: z.ZodString;
186
+ suffix: z.ZodString;
187
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
188
+ } & {
189
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
190
+ }, "strict", z.ZodTypeAny, {
191
+ start: number;
192
+ end: number;
193
+ id: string;
194
+ surface: "assistant_body";
195
+ selectedText: string;
196
+ sourceConversationId: string;
197
+ sourceMessageId: string;
198
+ sourceHash: string;
199
+ prefix: string;
200
+ suffix: string;
201
+ attachmentIds: string[];
202
+ comment?: string | null | undefined;
203
+ attachmentFileIndexes?: number[] | undefined;
204
+ }, {
205
+ start: number;
206
+ end: number;
207
+ id: string;
208
+ surface: "assistant_body";
209
+ selectedText: string;
210
+ sourceConversationId: string;
211
+ sourceMessageId: string;
212
+ sourceHash: string;
213
+ prefix: string;
214
+ suffix: string;
215
+ comment?: unknown;
216
+ attachmentIds?: string[] | undefined;
217
+ attachmentFileIndexes?: number[] | undefined;
218
+ }>, z.ZodObject<{
219
+ surface: z.ZodLiteral<"process_transcript">;
220
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
221
+ generationId: z.ZodString;
222
+ generationSeqStart: z.ZodNumber;
223
+ generationSeqEnd: z.ZodNumber;
224
+ id: z.ZodString;
225
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
226
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
227
+ sourceConversationId: z.ZodString;
228
+ sourceMessageId: z.ZodString;
229
+ sourceHash: z.ZodString;
230
+ start: z.ZodNumber;
231
+ end: z.ZodNumber;
232
+ prefix: z.ZodString;
233
+ suffix: z.ZodString;
234
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
235
+ } & {
236
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
237
+ }, "strict", z.ZodTypeAny, {
238
+ start: number;
239
+ end: number;
240
+ id: string;
241
+ generationSeqEnd: number;
242
+ surface: "process_transcript";
243
+ selectedText: string;
244
+ sourceConversationId: string;
245
+ sourceMessageId: string;
246
+ sourceHash: string;
247
+ prefix: string;
248
+ suffix: string;
249
+ attachmentIds: string[];
250
+ transcriptKind: "assistant" | "thinking";
251
+ generationId: string;
252
+ generationSeqStart: number;
253
+ comment?: string | null | undefined;
254
+ attachmentFileIndexes?: number[] | undefined;
255
+ }, {
256
+ start: number;
257
+ end: number;
258
+ id: string;
259
+ generationSeqEnd: number;
260
+ surface: "process_transcript";
261
+ selectedText: string;
262
+ sourceConversationId: string;
263
+ sourceMessageId: string;
264
+ sourceHash: string;
265
+ prefix: string;
266
+ suffix: string;
267
+ transcriptKind: "assistant" | "thinking";
268
+ generationId: string;
269
+ generationSeqStart: number;
270
+ comment?: unknown;
271
+ attachmentIds?: string[] | undefined;
272
+ attachmentFileIndexes?: number[] | undefined;
273
+ }>]>, {
274
+ start: number;
275
+ end: number;
276
+ id: string;
277
+ surface: "assistant_body";
278
+ selectedText: string;
279
+ sourceConversationId: string;
280
+ sourceMessageId: string;
281
+ sourceHash: string;
282
+ prefix: string;
283
+ suffix: string;
284
+ attachmentIds: string[];
285
+ comment?: string | null | undefined;
286
+ attachmentFileIndexes?: number[] | undefined;
287
+ } | {
288
+ start: number;
289
+ end: number;
290
+ id: string;
291
+ generationSeqEnd: number;
292
+ surface: "process_transcript";
293
+ selectedText: string;
294
+ sourceConversationId: string;
295
+ sourceMessageId: string;
296
+ sourceHash: string;
297
+ prefix: string;
298
+ suffix: string;
299
+ attachmentIds: string[];
300
+ transcriptKind: "assistant" | "thinking";
301
+ generationId: string;
302
+ generationSeqStart: number;
303
+ comment?: string | null | undefined;
304
+ attachmentFileIndexes?: number[] | undefined;
305
+ }, {
306
+ start: number;
307
+ end: number;
308
+ id: string;
309
+ surface: "assistant_body";
310
+ selectedText: string;
311
+ sourceConversationId: string;
312
+ sourceMessageId: string;
313
+ sourceHash: string;
314
+ prefix: string;
315
+ suffix: string;
316
+ comment?: unknown;
317
+ attachmentIds?: string[] | undefined;
318
+ attachmentFileIndexes?: number[] | undefined;
319
+ } | {
320
+ start: number;
321
+ end: number;
322
+ id: string;
323
+ generationSeqEnd: number;
324
+ surface: "process_transcript";
325
+ selectedText: string;
326
+ sourceConversationId: string;
327
+ sourceMessageId: string;
328
+ sourceHash: string;
329
+ prefix: string;
330
+ suffix: string;
331
+ transcriptKind: "assistant" | "thinking";
332
+ generationId: string;
333
+ generationSeqStart: number;
334
+ comment?: unknown;
335
+ attachmentIds?: string[] | undefined;
336
+ attachmentFileIndexes?: number[] | undefined;
337
+ }>;
338
+ export declare const chatInlineAnnotationsSchema: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
339
+ surface: z.ZodLiteral<"assistant_body">;
340
+ id: z.ZodString;
341
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
342
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
343
+ sourceConversationId: z.ZodString;
344
+ sourceMessageId: z.ZodString;
345
+ sourceHash: z.ZodString;
346
+ start: z.ZodNumber;
347
+ end: z.ZodNumber;
348
+ prefix: z.ZodString;
349
+ suffix: z.ZodString;
350
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
351
+ }, "strict", z.ZodTypeAny, {
352
+ start: number;
353
+ end: number;
354
+ id: string;
355
+ surface: "assistant_body";
356
+ selectedText: string;
357
+ sourceConversationId: string;
358
+ sourceMessageId: string;
359
+ sourceHash: string;
360
+ prefix: string;
361
+ suffix: string;
362
+ attachmentIds: string[];
363
+ comment?: string | null | undefined;
364
+ }, {
365
+ start: number;
366
+ end: number;
367
+ id: string;
368
+ surface: "assistant_body";
369
+ selectedText: string;
370
+ sourceConversationId: string;
371
+ sourceMessageId: string;
372
+ sourceHash: string;
373
+ prefix: string;
374
+ suffix: string;
375
+ comment?: unknown;
376
+ attachmentIds?: string[] | undefined;
377
+ }>, z.ZodObject<{
378
+ surface: z.ZodLiteral<"process_transcript">;
379
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
380
+ generationId: z.ZodString;
381
+ generationSeqStart: z.ZodNumber;
382
+ generationSeqEnd: z.ZodNumber;
383
+ id: z.ZodString;
384
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
385
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
386
+ sourceConversationId: z.ZodString;
387
+ sourceMessageId: z.ZodString;
388
+ sourceHash: z.ZodString;
389
+ start: z.ZodNumber;
390
+ end: z.ZodNumber;
391
+ prefix: z.ZodString;
392
+ suffix: z.ZodString;
393
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
394
+ }, "strict", z.ZodTypeAny, {
395
+ start: number;
396
+ end: number;
397
+ id: string;
398
+ generationSeqEnd: number;
399
+ surface: "process_transcript";
400
+ selectedText: string;
401
+ sourceConversationId: string;
402
+ sourceMessageId: string;
403
+ sourceHash: string;
404
+ prefix: string;
405
+ suffix: string;
406
+ attachmentIds: string[];
407
+ transcriptKind: "assistant" | "thinking";
408
+ generationId: string;
409
+ generationSeqStart: number;
410
+ comment?: string | null | undefined;
411
+ }, {
412
+ start: number;
413
+ end: number;
414
+ id: string;
415
+ generationSeqEnd: number;
416
+ surface: "process_transcript";
417
+ selectedText: string;
418
+ sourceConversationId: string;
419
+ sourceMessageId: string;
420
+ sourceHash: string;
421
+ prefix: string;
422
+ suffix: string;
423
+ transcriptKind: "assistant" | "thinking";
424
+ generationId: string;
425
+ generationSeqStart: number;
426
+ comment?: unknown;
427
+ attachmentIds?: string[] | undefined;
428
+ }>]>, {
429
+ start: number;
430
+ end: number;
431
+ id: string;
432
+ surface: "assistant_body";
433
+ selectedText: string;
434
+ sourceConversationId: string;
435
+ sourceMessageId: string;
436
+ sourceHash: string;
437
+ prefix: string;
438
+ suffix: string;
439
+ attachmentIds: string[];
440
+ comment?: string | null | undefined;
441
+ } | {
442
+ start: number;
443
+ end: number;
444
+ id: string;
445
+ generationSeqEnd: number;
446
+ surface: "process_transcript";
447
+ selectedText: string;
448
+ sourceConversationId: string;
449
+ sourceMessageId: string;
450
+ sourceHash: string;
451
+ prefix: string;
452
+ suffix: string;
453
+ attachmentIds: string[];
454
+ transcriptKind: "assistant" | "thinking";
455
+ generationId: string;
456
+ generationSeqStart: number;
457
+ comment?: string | null | undefined;
458
+ }, {
459
+ start: number;
460
+ end: number;
461
+ id: string;
462
+ surface: "assistant_body";
463
+ selectedText: string;
464
+ sourceConversationId: string;
465
+ sourceMessageId: string;
466
+ sourceHash: string;
467
+ prefix: string;
468
+ suffix: string;
469
+ comment?: unknown;
470
+ attachmentIds?: string[] | undefined;
471
+ } | {
472
+ start: number;
473
+ end: number;
474
+ id: string;
475
+ generationSeqEnd: number;
476
+ surface: "process_transcript";
477
+ selectedText: string;
478
+ sourceConversationId: string;
479
+ sourceMessageId: string;
480
+ sourceHash: string;
481
+ prefix: string;
482
+ suffix: string;
483
+ transcriptKind: "assistant" | "thinking";
484
+ generationId: string;
485
+ generationSeqStart: number;
486
+ comment?: unknown;
487
+ attachmentIds?: string[] | undefined;
488
+ }>, "many">, ({
489
+ start: number;
490
+ end: number;
491
+ id: string;
492
+ surface: "assistant_body";
493
+ selectedText: string;
494
+ sourceConversationId: string;
495
+ sourceMessageId: string;
496
+ sourceHash: string;
497
+ prefix: string;
498
+ suffix: string;
499
+ attachmentIds: string[];
500
+ comment?: string | null | undefined;
501
+ } | {
502
+ start: number;
503
+ end: number;
504
+ id: string;
505
+ generationSeqEnd: number;
506
+ surface: "process_transcript";
507
+ selectedText: string;
508
+ sourceConversationId: string;
509
+ sourceMessageId: string;
510
+ sourceHash: string;
511
+ prefix: string;
512
+ suffix: string;
513
+ attachmentIds: string[];
514
+ transcriptKind: "assistant" | "thinking";
515
+ generationId: string;
516
+ generationSeqStart: number;
517
+ comment?: string | null | undefined;
518
+ })[], ({
519
+ start: number;
520
+ end: number;
521
+ id: string;
522
+ surface: "assistant_body";
523
+ selectedText: string;
524
+ sourceConversationId: string;
525
+ sourceMessageId: string;
526
+ sourceHash: string;
527
+ prefix: string;
528
+ suffix: string;
529
+ comment?: unknown;
530
+ attachmentIds?: string[] | undefined;
531
+ } | {
532
+ start: number;
533
+ end: number;
534
+ id: string;
535
+ generationSeqEnd: number;
536
+ surface: "process_transcript";
537
+ selectedText: string;
538
+ sourceConversationId: string;
539
+ sourceMessageId: string;
540
+ sourceHash: string;
541
+ prefix: string;
542
+ suffix: string;
543
+ transcriptKind: "assistant" | "thinking";
544
+ generationId: string;
545
+ generationSeqStart: number;
546
+ comment?: unknown;
547
+ attachmentIds?: string[] | undefined;
548
+ })[]>;
549
+ export declare const chatInlineAnnotationsInputSchema: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
550
+ surface: z.ZodLiteral<"assistant_body">;
551
+ id: z.ZodString;
552
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
553
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
554
+ sourceConversationId: z.ZodString;
555
+ sourceMessageId: z.ZodString;
556
+ sourceHash: z.ZodString;
557
+ start: z.ZodNumber;
558
+ end: z.ZodNumber;
559
+ prefix: z.ZodString;
560
+ suffix: z.ZodString;
561
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
562
+ } & {
563
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
564
+ }, "strict", z.ZodTypeAny, {
565
+ start: number;
566
+ end: number;
567
+ id: string;
568
+ surface: "assistant_body";
569
+ selectedText: string;
570
+ sourceConversationId: string;
571
+ sourceMessageId: string;
572
+ sourceHash: string;
573
+ prefix: string;
574
+ suffix: string;
575
+ attachmentIds: string[];
576
+ comment?: string | null | undefined;
577
+ attachmentFileIndexes?: number[] | undefined;
578
+ }, {
579
+ start: number;
580
+ end: number;
581
+ id: string;
582
+ surface: "assistant_body";
583
+ selectedText: string;
584
+ sourceConversationId: string;
585
+ sourceMessageId: string;
586
+ sourceHash: string;
587
+ prefix: string;
588
+ suffix: string;
589
+ comment?: unknown;
590
+ attachmentIds?: string[] | undefined;
591
+ attachmentFileIndexes?: number[] | undefined;
592
+ }>, z.ZodObject<{
593
+ surface: z.ZodLiteral<"process_transcript">;
594
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
595
+ generationId: z.ZodString;
596
+ generationSeqStart: z.ZodNumber;
597
+ generationSeqEnd: z.ZodNumber;
598
+ id: z.ZodString;
599
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
600
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
601
+ sourceConversationId: z.ZodString;
602
+ sourceMessageId: z.ZodString;
603
+ sourceHash: z.ZodString;
604
+ start: z.ZodNumber;
605
+ end: z.ZodNumber;
606
+ prefix: z.ZodString;
607
+ suffix: z.ZodString;
608
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
609
+ } & {
610
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
611
+ }, "strict", z.ZodTypeAny, {
612
+ start: number;
613
+ end: number;
614
+ id: string;
615
+ generationSeqEnd: number;
616
+ surface: "process_transcript";
617
+ selectedText: string;
618
+ sourceConversationId: string;
619
+ sourceMessageId: string;
620
+ sourceHash: string;
621
+ prefix: string;
622
+ suffix: string;
623
+ attachmentIds: string[];
624
+ transcriptKind: "assistant" | "thinking";
625
+ generationId: string;
626
+ generationSeqStart: number;
627
+ comment?: string | null | undefined;
628
+ attachmentFileIndexes?: number[] | undefined;
629
+ }, {
630
+ start: number;
631
+ end: number;
632
+ id: string;
633
+ generationSeqEnd: number;
634
+ surface: "process_transcript";
635
+ selectedText: string;
636
+ sourceConversationId: string;
637
+ sourceMessageId: string;
638
+ sourceHash: string;
639
+ prefix: string;
640
+ suffix: string;
641
+ transcriptKind: "assistant" | "thinking";
642
+ generationId: string;
643
+ generationSeqStart: number;
644
+ comment?: unknown;
645
+ attachmentIds?: string[] | undefined;
646
+ attachmentFileIndexes?: number[] | undefined;
647
+ }>]>, {
648
+ start: number;
649
+ end: number;
650
+ id: string;
651
+ surface: "assistant_body";
652
+ selectedText: string;
653
+ sourceConversationId: string;
654
+ sourceMessageId: string;
655
+ sourceHash: string;
656
+ prefix: string;
657
+ suffix: string;
658
+ attachmentIds: string[];
659
+ comment?: string | null | undefined;
660
+ attachmentFileIndexes?: number[] | undefined;
661
+ } | {
662
+ start: number;
663
+ end: number;
664
+ id: string;
665
+ generationSeqEnd: number;
666
+ surface: "process_transcript";
667
+ selectedText: string;
668
+ sourceConversationId: string;
669
+ sourceMessageId: string;
670
+ sourceHash: string;
671
+ prefix: string;
672
+ suffix: string;
673
+ attachmentIds: string[];
674
+ transcriptKind: "assistant" | "thinking";
675
+ generationId: string;
676
+ generationSeqStart: number;
677
+ comment?: string | null | undefined;
678
+ attachmentFileIndexes?: number[] | undefined;
679
+ }, {
680
+ start: number;
681
+ end: number;
682
+ id: string;
683
+ surface: "assistant_body";
684
+ selectedText: string;
685
+ sourceConversationId: string;
686
+ sourceMessageId: string;
687
+ sourceHash: string;
688
+ prefix: string;
689
+ suffix: string;
690
+ comment?: unknown;
691
+ attachmentIds?: string[] | undefined;
692
+ attachmentFileIndexes?: number[] | undefined;
693
+ } | {
694
+ start: number;
695
+ end: number;
696
+ id: string;
697
+ generationSeqEnd: number;
698
+ surface: "process_transcript";
699
+ selectedText: string;
700
+ sourceConversationId: string;
701
+ sourceMessageId: string;
702
+ sourceHash: string;
703
+ prefix: string;
704
+ suffix: string;
705
+ transcriptKind: "assistant" | "thinking";
706
+ generationId: string;
707
+ generationSeqStart: number;
708
+ comment?: unknown;
709
+ attachmentIds?: string[] | undefined;
710
+ attachmentFileIndexes?: number[] | undefined;
711
+ }>, "many">, ({
712
+ start: number;
713
+ end: number;
714
+ id: string;
715
+ surface: "assistant_body";
716
+ selectedText: string;
717
+ sourceConversationId: string;
718
+ sourceMessageId: string;
719
+ sourceHash: string;
720
+ prefix: string;
721
+ suffix: string;
722
+ attachmentIds: string[];
723
+ comment?: string | null | undefined;
724
+ attachmentFileIndexes?: number[] | undefined;
725
+ } | {
726
+ start: number;
727
+ end: number;
728
+ id: string;
729
+ generationSeqEnd: number;
730
+ surface: "process_transcript";
731
+ selectedText: string;
732
+ sourceConversationId: string;
733
+ sourceMessageId: string;
734
+ sourceHash: string;
735
+ prefix: string;
736
+ suffix: string;
737
+ attachmentIds: string[];
738
+ transcriptKind: "assistant" | "thinking";
739
+ generationId: string;
740
+ generationSeqStart: number;
741
+ comment?: string | null | undefined;
742
+ attachmentFileIndexes?: number[] | undefined;
743
+ })[], ({
744
+ start: number;
745
+ end: number;
746
+ id: string;
747
+ surface: "assistant_body";
748
+ selectedText: string;
749
+ sourceConversationId: string;
750
+ sourceMessageId: string;
751
+ sourceHash: string;
752
+ prefix: string;
753
+ suffix: string;
754
+ comment?: unknown;
755
+ attachmentIds?: string[] | undefined;
756
+ attachmentFileIndexes?: number[] | undefined;
757
+ } | {
758
+ start: number;
759
+ end: number;
760
+ id: string;
761
+ generationSeqEnd: number;
762
+ surface: "process_transcript";
763
+ selectedText: string;
764
+ sourceConversationId: string;
765
+ sourceMessageId: string;
766
+ sourceHash: string;
767
+ prefix: string;
768
+ suffix: string;
769
+ transcriptKind: "assistant" | "thinking";
770
+ generationId: string;
771
+ generationSeqStart: number;
772
+ comment?: unknown;
773
+ attachmentIds?: string[] | undefined;
774
+ attachmentFileIndexes?: number[] | undefined;
775
+ })[]>;
776
+ export declare function normalizeChatInlineAnnotations(annotations: readonly ChatInlineAnnotationInput[]): ChatInlineAnnotation[];
17
777
  export declare const createChatContextLinkSchema: z.ZodObject<{
18
778
  entityType: z.ZodEnum<["issue", "project", "agent"]>;
19
779
  entityId: z.ZodString;
@@ -253,22 +1013,616 @@ export declare const createSideChatSchema: z.ZodObject<{
253
1013
  sourceMessageId: string;
254
1014
  clientMutationId: string;
255
1015
  }>;
256
- export declare const addChatMessageSchema: z.ZodObject<{
257
- body: z.ZodString;
1016
+ export declare const addChatMessageSchema: z.ZodEffects<z.ZodObject<{
1017
+ body: z.ZodDefault<z.ZodString>;
1018
+ inlineAnnotations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
1019
+ surface: z.ZodLiteral<"assistant_body">;
1020
+ id: z.ZodString;
1021
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
1022
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1023
+ sourceConversationId: z.ZodString;
1024
+ sourceMessageId: z.ZodString;
1025
+ sourceHash: z.ZodString;
1026
+ start: z.ZodNumber;
1027
+ end: z.ZodNumber;
1028
+ prefix: z.ZodString;
1029
+ suffix: z.ZodString;
1030
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1031
+ } & {
1032
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1033
+ }, "strict", z.ZodTypeAny, {
1034
+ start: number;
1035
+ end: number;
1036
+ id: string;
1037
+ surface: "assistant_body";
1038
+ selectedText: string;
1039
+ sourceConversationId: string;
1040
+ sourceMessageId: string;
1041
+ sourceHash: string;
1042
+ prefix: string;
1043
+ suffix: string;
1044
+ attachmentIds: string[];
1045
+ comment?: string | null | undefined;
1046
+ attachmentFileIndexes?: number[] | undefined;
1047
+ }, {
1048
+ start: number;
1049
+ end: number;
1050
+ id: string;
1051
+ surface: "assistant_body";
1052
+ selectedText: string;
1053
+ sourceConversationId: string;
1054
+ sourceMessageId: string;
1055
+ sourceHash: string;
1056
+ prefix: string;
1057
+ suffix: string;
1058
+ comment?: unknown;
1059
+ attachmentIds?: string[] | undefined;
1060
+ attachmentFileIndexes?: number[] | undefined;
1061
+ }>, z.ZodObject<{
1062
+ surface: z.ZodLiteral<"process_transcript">;
1063
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
1064
+ generationId: z.ZodString;
1065
+ generationSeqStart: z.ZodNumber;
1066
+ generationSeqEnd: z.ZodNumber;
1067
+ id: z.ZodString;
1068
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
1069
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1070
+ sourceConversationId: z.ZodString;
1071
+ sourceMessageId: z.ZodString;
1072
+ sourceHash: z.ZodString;
1073
+ start: z.ZodNumber;
1074
+ end: z.ZodNumber;
1075
+ prefix: z.ZodString;
1076
+ suffix: z.ZodString;
1077
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1078
+ } & {
1079
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1080
+ }, "strict", z.ZodTypeAny, {
1081
+ start: number;
1082
+ end: number;
1083
+ id: string;
1084
+ generationSeqEnd: number;
1085
+ surface: "process_transcript";
1086
+ selectedText: string;
1087
+ sourceConversationId: string;
1088
+ sourceMessageId: string;
1089
+ sourceHash: string;
1090
+ prefix: string;
1091
+ suffix: string;
1092
+ attachmentIds: string[];
1093
+ transcriptKind: "assistant" | "thinking";
1094
+ generationId: string;
1095
+ generationSeqStart: number;
1096
+ comment?: string | null | undefined;
1097
+ attachmentFileIndexes?: number[] | undefined;
1098
+ }, {
1099
+ start: number;
1100
+ end: number;
1101
+ id: string;
1102
+ generationSeqEnd: number;
1103
+ surface: "process_transcript";
1104
+ selectedText: string;
1105
+ sourceConversationId: string;
1106
+ sourceMessageId: string;
1107
+ sourceHash: string;
1108
+ prefix: string;
1109
+ suffix: string;
1110
+ transcriptKind: "assistant" | "thinking";
1111
+ generationId: string;
1112
+ generationSeqStart: number;
1113
+ comment?: unknown;
1114
+ attachmentIds?: string[] | undefined;
1115
+ attachmentFileIndexes?: number[] | undefined;
1116
+ }>]>, {
1117
+ start: number;
1118
+ end: number;
1119
+ id: string;
1120
+ surface: "assistant_body";
1121
+ selectedText: string;
1122
+ sourceConversationId: string;
1123
+ sourceMessageId: string;
1124
+ sourceHash: string;
1125
+ prefix: string;
1126
+ suffix: string;
1127
+ attachmentIds: string[];
1128
+ comment?: string | null | undefined;
1129
+ attachmentFileIndexes?: number[] | undefined;
1130
+ } | {
1131
+ start: number;
1132
+ end: number;
1133
+ id: string;
1134
+ generationSeqEnd: number;
1135
+ surface: "process_transcript";
1136
+ selectedText: string;
1137
+ sourceConversationId: string;
1138
+ sourceMessageId: string;
1139
+ sourceHash: string;
1140
+ prefix: string;
1141
+ suffix: string;
1142
+ attachmentIds: string[];
1143
+ transcriptKind: "assistant" | "thinking";
1144
+ generationId: string;
1145
+ generationSeqStart: number;
1146
+ comment?: string | null | undefined;
1147
+ attachmentFileIndexes?: number[] | undefined;
1148
+ }, {
1149
+ start: number;
1150
+ end: number;
1151
+ id: string;
1152
+ surface: "assistant_body";
1153
+ selectedText: string;
1154
+ sourceConversationId: string;
1155
+ sourceMessageId: string;
1156
+ sourceHash: string;
1157
+ prefix: string;
1158
+ suffix: string;
1159
+ comment?: unknown;
1160
+ attachmentIds?: string[] | undefined;
1161
+ attachmentFileIndexes?: number[] | undefined;
1162
+ } | {
1163
+ start: number;
1164
+ end: number;
1165
+ id: string;
1166
+ generationSeqEnd: number;
1167
+ surface: "process_transcript";
1168
+ selectedText: string;
1169
+ sourceConversationId: string;
1170
+ sourceMessageId: string;
1171
+ sourceHash: string;
1172
+ prefix: string;
1173
+ suffix: string;
1174
+ transcriptKind: "assistant" | "thinking";
1175
+ generationId: string;
1176
+ generationSeqStart: number;
1177
+ comment?: unknown;
1178
+ attachmentIds?: string[] | undefined;
1179
+ attachmentFileIndexes?: number[] | undefined;
1180
+ }>, "many">, ({
1181
+ start: number;
1182
+ end: number;
1183
+ id: string;
1184
+ surface: "assistant_body";
1185
+ selectedText: string;
1186
+ sourceConversationId: string;
1187
+ sourceMessageId: string;
1188
+ sourceHash: string;
1189
+ prefix: string;
1190
+ suffix: string;
1191
+ attachmentIds: string[];
1192
+ comment?: string | null | undefined;
1193
+ attachmentFileIndexes?: number[] | undefined;
1194
+ } | {
1195
+ start: number;
1196
+ end: number;
1197
+ id: string;
1198
+ generationSeqEnd: number;
1199
+ surface: "process_transcript";
1200
+ selectedText: string;
1201
+ sourceConversationId: string;
1202
+ sourceMessageId: string;
1203
+ sourceHash: string;
1204
+ prefix: string;
1205
+ suffix: string;
1206
+ attachmentIds: string[];
1207
+ transcriptKind: "assistant" | "thinking";
1208
+ generationId: string;
1209
+ generationSeqStart: number;
1210
+ comment?: string | null | undefined;
1211
+ attachmentFileIndexes?: number[] | undefined;
1212
+ })[], ({
1213
+ start: number;
1214
+ end: number;
1215
+ id: string;
1216
+ surface: "assistant_body";
1217
+ selectedText: string;
1218
+ sourceConversationId: string;
1219
+ sourceMessageId: string;
1220
+ sourceHash: string;
1221
+ prefix: string;
1222
+ suffix: string;
1223
+ comment?: unknown;
1224
+ attachmentIds?: string[] | undefined;
1225
+ attachmentFileIndexes?: number[] | undefined;
1226
+ } | {
1227
+ start: number;
1228
+ end: number;
1229
+ id: string;
1230
+ generationSeqEnd: number;
1231
+ surface: "process_transcript";
1232
+ selectedText: string;
1233
+ sourceConversationId: string;
1234
+ sourceMessageId: string;
1235
+ sourceHash: string;
1236
+ prefix: string;
1237
+ suffix: string;
1238
+ transcriptKind: "assistant" | "thinking";
1239
+ generationId: string;
1240
+ generationSeqStart: number;
1241
+ comment?: unknown;
1242
+ attachmentIds?: string[] | undefined;
1243
+ attachmentFileIndexes?: number[] | undefined;
1244
+ })[]>>;
258
1245
  editUserMessageId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
259
1246
  queuedMessageId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
260
1247
  }, "strip", z.ZodTypeAny, {
261
1248
  body: string;
1249
+ inlineAnnotations?: ({
1250
+ start: number;
1251
+ end: number;
1252
+ id: string;
1253
+ surface: "assistant_body";
1254
+ selectedText: string;
1255
+ sourceConversationId: string;
1256
+ sourceMessageId: string;
1257
+ sourceHash: string;
1258
+ prefix: string;
1259
+ suffix: string;
1260
+ attachmentIds: string[];
1261
+ comment?: string | null | undefined;
1262
+ attachmentFileIndexes?: number[] | undefined;
1263
+ } | {
1264
+ start: number;
1265
+ end: number;
1266
+ id: string;
1267
+ generationSeqEnd: number;
1268
+ surface: "process_transcript";
1269
+ selectedText: string;
1270
+ sourceConversationId: string;
1271
+ sourceMessageId: string;
1272
+ sourceHash: string;
1273
+ prefix: string;
1274
+ suffix: string;
1275
+ attachmentIds: string[];
1276
+ transcriptKind: "assistant" | "thinking";
1277
+ generationId: string;
1278
+ generationSeqStart: number;
1279
+ comment?: string | null | undefined;
1280
+ attachmentFileIndexes?: number[] | undefined;
1281
+ })[] | undefined;
262
1282
  editUserMessageId?: string | null | undefined;
263
1283
  queuedMessageId?: string | null | undefined;
264
1284
  }, {
1285
+ body?: string | undefined;
1286
+ inlineAnnotations?: ({
1287
+ start: number;
1288
+ end: number;
1289
+ id: string;
1290
+ surface: "assistant_body";
1291
+ selectedText: string;
1292
+ sourceConversationId: string;
1293
+ sourceMessageId: string;
1294
+ sourceHash: string;
1295
+ prefix: string;
1296
+ suffix: string;
1297
+ comment?: unknown;
1298
+ attachmentIds?: string[] | undefined;
1299
+ attachmentFileIndexes?: number[] | undefined;
1300
+ } | {
1301
+ start: number;
1302
+ end: number;
1303
+ id: string;
1304
+ generationSeqEnd: number;
1305
+ surface: "process_transcript";
1306
+ selectedText: string;
1307
+ sourceConversationId: string;
1308
+ sourceMessageId: string;
1309
+ sourceHash: string;
1310
+ prefix: string;
1311
+ suffix: string;
1312
+ transcriptKind: "assistant" | "thinking";
1313
+ generationId: string;
1314
+ generationSeqStart: number;
1315
+ comment?: unknown;
1316
+ attachmentIds?: string[] | undefined;
1317
+ attachmentFileIndexes?: number[] | undefined;
1318
+ })[] | undefined;
1319
+ editUserMessageId?: string | null | undefined;
1320
+ queuedMessageId?: string | null | undefined;
1321
+ }>, {
265
1322
  body: string;
1323
+ inlineAnnotations?: ({
1324
+ start: number;
1325
+ end: number;
1326
+ id: string;
1327
+ surface: "assistant_body";
1328
+ selectedText: string;
1329
+ sourceConversationId: string;
1330
+ sourceMessageId: string;
1331
+ sourceHash: string;
1332
+ prefix: string;
1333
+ suffix: string;
1334
+ attachmentIds: string[];
1335
+ comment?: string | null | undefined;
1336
+ attachmentFileIndexes?: number[] | undefined;
1337
+ } | {
1338
+ start: number;
1339
+ end: number;
1340
+ id: string;
1341
+ generationSeqEnd: number;
1342
+ surface: "process_transcript";
1343
+ selectedText: string;
1344
+ sourceConversationId: string;
1345
+ sourceMessageId: string;
1346
+ sourceHash: string;
1347
+ prefix: string;
1348
+ suffix: string;
1349
+ attachmentIds: string[];
1350
+ transcriptKind: "assistant" | "thinking";
1351
+ generationId: string;
1352
+ generationSeqStart: number;
1353
+ comment?: string | null | undefined;
1354
+ attachmentFileIndexes?: number[] | undefined;
1355
+ })[] | undefined;
1356
+ editUserMessageId?: string | null | undefined;
1357
+ queuedMessageId?: string | null | undefined;
1358
+ }, {
1359
+ body?: string | undefined;
1360
+ inlineAnnotations?: ({
1361
+ start: number;
1362
+ end: number;
1363
+ id: string;
1364
+ surface: "assistant_body";
1365
+ selectedText: string;
1366
+ sourceConversationId: string;
1367
+ sourceMessageId: string;
1368
+ sourceHash: string;
1369
+ prefix: string;
1370
+ suffix: string;
1371
+ comment?: unknown;
1372
+ attachmentIds?: string[] | undefined;
1373
+ attachmentFileIndexes?: number[] | undefined;
1374
+ } | {
1375
+ start: number;
1376
+ end: number;
1377
+ id: string;
1378
+ generationSeqEnd: number;
1379
+ surface: "process_transcript";
1380
+ selectedText: string;
1381
+ sourceConversationId: string;
1382
+ sourceMessageId: string;
1383
+ sourceHash: string;
1384
+ prefix: string;
1385
+ suffix: string;
1386
+ transcriptKind: "assistant" | "thinking";
1387
+ generationId: string;
1388
+ generationSeqStart: number;
1389
+ comment?: unknown;
1390
+ attachmentIds?: string[] | undefined;
1391
+ attachmentFileIndexes?: number[] | undefined;
1392
+ })[] | undefined;
266
1393
  editUserMessageId?: string | null | undefined;
267
1394
  queuedMessageId?: string | null | undefined;
268
1395
  }>;
269
- export declare const chatQueuedMessagePayloadSchema: z.ZodObject<{
270
- body: z.ZodString;
1396
+ export declare const chatQueuedMessagePayloadSchema: z.ZodEffects<z.ZodObject<{
1397
+ body: z.ZodDefault<z.ZodString>;
271
1398
  attachmentIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1399
+ inlineAnnotations: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
1400
+ surface: z.ZodLiteral<"assistant_body">;
1401
+ id: z.ZodString;
1402
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
1403
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1404
+ sourceConversationId: z.ZodString;
1405
+ sourceMessageId: z.ZodString;
1406
+ sourceHash: z.ZodString;
1407
+ start: z.ZodNumber;
1408
+ end: z.ZodNumber;
1409
+ prefix: z.ZodString;
1410
+ suffix: z.ZodString;
1411
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1412
+ } & {
1413
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1414
+ }, "strict", z.ZodTypeAny, {
1415
+ start: number;
1416
+ end: number;
1417
+ id: string;
1418
+ surface: "assistant_body";
1419
+ selectedText: string;
1420
+ sourceConversationId: string;
1421
+ sourceMessageId: string;
1422
+ sourceHash: string;
1423
+ prefix: string;
1424
+ suffix: string;
1425
+ attachmentIds: string[];
1426
+ comment?: string | null | undefined;
1427
+ attachmentFileIndexes?: number[] | undefined;
1428
+ }, {
1429
+ start: number;
1430
+ end: number;
1431
+ id: string;
1432
+ surface: "assistant_body";
1433
+ selectedText: string;
1434
+ sourceConversationId: string;
1435
+ sourceMessageId: string;
1436
+ sourceHash: string;
1437
+ prefix: string;
1438
+ suffix: string;
1439
+ comment?: unknown;
1440
+ attachmentIds?: string[] | undefined;
1441
+ attachmentFileIndexes?: number[] | undefined;
1442
+ }>, z.ZodObject<{
1443
+ surface: z.ZodLiteral<"process_transcript">;
1444
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
1445
+ generationId: z.ZodString;
1446
+ generationSeqStart: z.ZodNumber;
1447
+ generationSeqEnd: z.ZodNumber;
1448
+ id: z.ZodString;
1449
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
1450
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1451
+ sourceConversationId: z.ZodString;
1452
+ sourceMessageId: z.ZodString;
1453
+ sourceHash: z.ZodString;
1454
+ start: z.ZodNumber;
1455
+ end: z.ZodNumber;
1456
+ prefix: z.ZodString;
1457
+ suffix: z.ZodString;
1458
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1459
+ } & {
1460
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1461
+ }, "strict", z.ZodTypeAny, {
1462
+ start: number;
1463
+ end: number;
1464
+ id: string;
1465
+ generationSeqEnd: number;
1466
+ surface: "process_transcript";
1467
+ selectedText: string;
1468
+ sourceConversationId: string;
1469
+ sourceMessageId: string;
1470
+ sourceHash: string;
1471
+ prefix: string;
1472
+ suffix: string;
1473
+ attachmentIds: string[];
1474
+ transcriptKind: "assistant" | "thinking";
1475
+ generationId: string;
1476
+ generationSeqStart: number;
1477
+ comment?: string | null | undefined;
1478
+ attachmentFileIndexes?: number[] | undefined;
1479
+ }, {
1480
+ start: number;
1481
+ end: number;
1482
+ id: string;
1483
+ generationSeqEnd: number;
1484
+ surface: "process_transcript";
1485
+ selectedText: string;
1486
+ sourceConversationId: string;
1487
+ sourceMessageId: string;
1488
+ sourceHash: string;
1489
+ prefix: string;
1490
+ suffix: string;
1491
+ transcriptKind: "assistant" | "thinking";
1492
+ generationId: string;
1493
+ generationSeqStart: number;
1494
+ comment?: unknown;
1495
+ attachmentIds?: string[] | undefined;
1496
+ attachmentFileIndexes?: number[] | undefined;
1497
+ }>]>, {
1498
+ start: number;
1499
+ end: number;
1500
+ id: string;
1501
+ surface: "assistant_body";
1502
+ selectedText: string;
1503
+ sourceConversationId: string;
1504
+ sourceMessageId: string;
1505
+ sourceHash: string;
1506
+ prefix: string;
1507
+ suffix: string;
1508
+ attachmentIds: string[];
1509
+ comment?: string | null | undefined;
1510
+ attachmentFileIndexes?: number[] | undefined;
1511
+ } | {
1512
+ start: number;
1513
+ end: number;
1514
+ id: string;
1515
+ generationSeqEnd: number;
1516
+ surface: "process_transcript";
1517
+ selectedText: string;
1518
+ sourceConversationId: string;
1519
+ sourceMessageId: string;
1520
+ sourceHash: string;
1521
+ prefix: string;
1522
+ suffix: string;
1523
+ attachmentIds: string[];
1524
+ transcriptKind: "assistant" | "thinking";
1525
+ generationId: string;
1526
+ generationSeqStart: number;
1527
+ comment?: string | null | undefined;
1528
+ attachmentFileIndexes?: number[] | undefined;
1529
+ }, {
1530
+ start: number;
1531
+ end: number;
1532
+ id: string;
1533
+ surface: "assistant_body";
1534
+ selectedText: string;
1535
+ sourceConversationId: string;
1536
+ sourceMessageId: string;
1537
+ sourceHash: string;
1538
+ prefix: string;
1539
+ suffix: string;
1540
+ comment?: unknown;
1541
+ attachmentIds?: string[] | undefined;
1542
+ attachmentFileIndexes?: number[] | undefined;
1543
+ } | {
1544
+ start: number;
1545
+ end: number;
1546
+ id: string;
1547
+ generationSeqEnd: number;
1548
+ surface: "process_transcript";
1549
+ selectedText: string;
1550
+ sourceConversationId: string;
1551
+ sourceMessageId: string;
1552
+ sourceHash: string;
1553
+ prefix: string;
1554
+ suffix: string;
1555
+ transcriptKind: "assistant" | "thinking";
1556
+ generationId: string;
1557
+ generationSeqStart: number;
1558
+ comment?: unknown;
1559
+ attachmentIds?: string[] | undefined;
1560
+ attachmentFileIndexes?: number[] | undefined;
1561
+ }>, "many">, ({
1562
+ start: number;
1563
+ end: number;
1564
+ id: string;
1565
+ surface: "assistant_body";
1566
+ selectedText: string;
1567
+ sourceConversationId: string;
1568
+ sourceMessageId: string;
1569
+ sourceHash: string;
1570
+ prefix: string;
1571
+ suffix: string;
1572
+ attachmentIds: string[];
1573
+ comment?: string | null | undefined;
1574
+ attachmentFileIndexes?: number[] | undefined;
1575
+ } | {
1576
+ start: number;
1577
+ end: number;
1578
+ id: string;
1579
+ generationSeqEnd: number;
1580
+ surface: "process_transcript";
1581
+ selectedText: string;
1582
+ sourceConversationId: string;
1583
+ sourceMessageId: string;
1584
+ sourceHash: string;
1585
+ prefix: string;
1586
+ suffix: string;
1587
+ attachmentIds: string[];
1588
+ transcriptKind: "assistant" | "thinking";
1589
+ generationId: string;
1590
+ generationSeqStart: number;
1591
+ comment?: string | null | undefined;
1592
+ attachmentFileIndexes?: number[] | undefined;
1593
+ })[], ({
1594
+ start: number;
1595
+ end: number;
1596
+ id: string;
1597
+ surface: "assistant_body";
1598
+ selectedText: string;
1599
+ sourceConversationId: string;
1600
+ sourceMessageId: string;
1601
+ sourceHash: string;
1602
+ prefix: string;
1603
+ suffix: string;
1604
+ comment?: unknown;
1605
+ attachmentIds?: string[] | undefined;
1606
+ attachmentFileIndexes?: number[] | undefined;
1607
+ } | {
1608
+ start: number;
1609
+ end: number;
1610
+ id: string;
1611
+ generationSeqEnd: number;
1612
+ surface: "process_transcript";
1613
+ selectedText: string;
1614
+ sourceConversationId: string;
1615
+ sourceMessageId: string;
1616
+ sourceHash: string;
1617
+ prefix: string;
1618
+ suffix: string;
1619
+ transcriptKind: "assistant" | "thinking";
1620
+ generationId: string;
1621
+ generationSeqStart: number;
1622
+ comment?: unknown;
1623
+ attachmentIds?: string[] | undefined;
1624
+ attachmentFileIndexes?: number[] | undefined;
1625
+ })[]>>>;
272
1626
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
273
1627
  skillRefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
274
1628
  accessMode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -276,30 +1630,407 @@ export declare const chatQueuedMessagePayloadSchema: z.ZodObject<{
276
1630
  effort: z.ZodNullable<z.ZodOptional<z.ZodString>>;
277
1631
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
278
1632
  }, "strip", z.ZodTypeAny, {
279
- body: string;
280
1633
  attachmentIds: string[];
1634
+ body: string;
1635
+ inlineAnnotations: ({
1636
+ start: number;
1637
+ end: number;
1638
+ id: string;
1639
+ surface: "assistant_body";
1640
+ selectedText: string;
1641
+ sourceConversationId: string;
1642
+ sourceMessageId: string;
1643
+ sourceHash: string;
1644
+ prefix: string;
1645
+ suffix: string;
1646
+ attachmentIds: string[];
1647
+ comment?: string | null | undefined;
1648
+ attachmentFileIndexes?: number[] | undefined;
1649
+ } | {
1650
+ start: number;
1651
+ end: number;
1652
+ id: string;
1653
+ generationSeqEnd: number;
1654
+ surface: "process_transcript";
1655
+ selectedText: string;
1656
+ sourceConversationId: string;
1657
+ sourceMessageId: string;
1658
+ sourceHash: string;
1659
+ prefix: string;
1660
+ suffix: string;
1661
+ attachmentIds: string[];
1662
+ transcriptKind: "assistant" | "thinking";
1663
+ generationId: string;
1664
+ generationSeqStart: number;
1665
+ comment?: string | null | undefined;
1666
+ attachmentFileIndexes?: number[] | undefined;
1667
+ })[];
281
1668
  skillRefs: string[];
282
1669
  projectId?: string | null | undefined;
283
- metadata?: Record<string, unknown> | null | undefined;
284
1670
  accessMode?: string | null | undefined;
1671
+ metadata?: Record<string, unknown> | null | undefined;
285
1672
  model?: string | null | undefined;
286
1673
  effort?: string | null | undefined;
287
1674
  }, {
288
- body: string;
289
1675
  projectId?: string | null | undefined;
1676
+ accessMode?: string | null | undefined;
290
1677
  metadata?: Record<string, unknown> | null | undefined;
291
1678
  attachmentIds?: string[] | undefined;
1679
+ body?: string | undefined;
1680
+ inlineAnnotations?: ({
1681
+ start: number;
1682
+ end: number;
1683
+ id: string;
1684
+ surface: "assistant_body";
1685
+ selectedText: string;
1686
+ sourceConversationId: string;
1687
+ sourceMessageId: string;
1688
+ sourceHash: string;
1689
+ prefix: string;
1690
+ suffix: string;
1691
+ comment?: unknown;
1692
+ attachmentIds?: string[] | undefined;
1693
+ attachmentFileIndexes?: number[] | undefined;
1694
+ } | {
1695
+ start: number;
1696
+ end: number;
1697
+ id: string;
1698
+ generationSeqEnd: number;
1699
+ surface: "process_transcript";
1700
+ selectedText: string;
1701
+ sourceConversationId: string;
1702
+ sourceMessageId: string;
1703
+ sourceHash: string;
1704
+ prefix: string;
1705
+ suffix: string;
1706
+ transcriptKind: "assistant" | "thinking";
1707
+ generationId: string;
1708
+ generationSeqStart: number;
1709
+ comment?: unknown;
1710
+ attachmentIds?: string[] | undefined;
1711
+ attachmentFileIndexes?: number[] | undefined;
1712
+ })[] | undefined;
292
1713
  skillRefs?: string[] | undefined;
1714
+ model?: string | null | undefined;
1715
+ effort?: string | null | undefined;
1716
+ }>, {
1717
+ attachmentIds: string[];
1718
+ body: string;
1719
+ inlineAnnotations: ({
1720
+ start: number;
1721
+ end: number;
1722
+ id: string;
1723
+ surface: "assistant_body";
1724
+ selectedText: string;
1725
+ sourceConversationId: string;
1726
+ sourceMessageId: string;
1727
+ sourceHash: string;
1728
+ prefix: string;
1729
+ suffix: string;
1730
+ attachmentIds: string[];
1731
+ comment?: string | null | undefined;
1732
+ attachmentFileIndexes?: number[] | undefined;
1733
+ } | {
1734
+ start: number;
1735
+ end: number;
1736
+ id: string;
1737
+ generationSeqEnd: number;
1738
+ surface: "process_transcript";
1739
+ selectedText: string;
1740
+ sourceConversationId: string;
1741
+ sourceMessageId: string;
1742
+ sourceHash: string;
1743
+ prefix: string;
1744
+ suffix: string;
1745
+ attachmentIds: string[];
1746
+ transcriptKind: "assistant" | "thinking";
1747
+ generationId: string;
1748
+ generationSeqStart: number;
1749
+ comment?: string | null | undefined;
1750
+ attachmentFileIndexes?: number[] | undefined;
1751
+ })[];
1752
+ skillRefs: string[];
1753
+ projectId?: string | null | undefined;
1754
+ accessMode?: string | null | undefined;
1755
+ metadata?: Record<string, unknown> | null | undefined;
1756
+ model?: string | null | undefined;
1757
+ effort?: string | null | undefined;
1758
+ }, {
1759
+ projectId?: string | null | undefined;
293
1760
  accessMode?: string | null | undefined;
1761
+ metadata?: Record<string, unknown> | null | undefined;
1762
+ attachmentIds?: string[] | undefined;
1763
+ body?: string | undefined;
1764
+ inlineAnnotations?: ({
1765
+ start: number;
1766
+ end: number;
1767
+ id: string;
1768
+ surface: "assistant_body";
1769
+ selectedText: string;
1770
+ sourceConversationId: string;
1771
+ sourceMessageId: string;
1772
+ sourceHash: string;
1773
+ prefix: string;
1774
+ suffix: string;
1775
+ comment?: unknown;
1776
+ attachmentIds?: string[] | undefined;
1777
+ attachmentFileIndexes?: number[] | undefined;
1778
+ } | {
1779
+ start: number;
1780
+ end: number;
1781
+ id: string;
1782
+ generationSeqEnd: number;
1783
+ surface: "process_transcript";
1784
+ selectedText: string;
1785
+ sourceConversationId: string;
1786
+ sourceMessageId: string;
1787
+ sourceHash: string;
1788
+ prefix: string;
1789
+ suffix: string;
1790
+ transcriptKind: "assistant" | "thinking";
1791
+ generationId: string;
1792
+ generationSeqStart: number;
1793
+ comment?: unknown;
1794
+ attachmentIds?: string[] | undefined;
1795
+ attachmentFileIndexes?: number[] | undefined;
1796
+ })[] | undefined;
1797
+ skillRefs?: string[] | undefined;
294
1798
  model?: string | null | undefined;
295
1799
  effort?: string | null | undefined;
296
1800
  }>;
297
1801
  export declare const createChatQueuedMessageSchema: z.ZodObject<{
298
1802
  clientMutationId: z.ZodString;
299
1803
  expectedGenerationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
300
- payload: z.ZodObject<{
301
- body: z.ZodString;
1804
+ payload: z.ZodEffects<z.ZodObject<{
1805
+ body: z.ZodDefault<z.ZodString>;
302
1806
  attachmentIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1807
+ inlineAnnotations: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
1808
+ surface: z.ZodLiteral<"assistant_body">;
1809
+ id: z.ZodString;
1810
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
1811
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1812
+ sourceConversationId: z.ZodString;
1813
+ sourceMessageId: z.ZodString;
1814
+ sourceHash: z.ZodString;
1815
+ start: z.ZodNumber;
1816
+ end: z.ZodNumber;
1817
+ prefix: z.ZodString;
1818
+ suffix: z.ZodString;
1819
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1820
+ } & {
1821
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1822
+ }, "strict", z.ZodTypeAny, {
1823
+ start: number;
1824
+ end: number;
1825
+ id: string;
1826
+ surface: "assistant_body";
1827
+ selectedText: string;
1828
+ sourceConversationId: string;
1829
+ sourceMessageId: string;
1830
+ sourceHash: string;
1831
+ prefix: string;
1832
+ suffix: string;
1833
+ attachmentIds: string[];
1834
+ comment?: string | null | undefined;
1835
+ attachmentFileIndexes?: number[] | undefined;
1836
+ }, {
1837
+ start: number;
1838
+ end: number;
1839
+ id: string;
1840
+ surface: "assistant_body";
1841
+ selectedText: string;
1842
+ sourceConversationId: string;
1843
+ sourceMessageId: string;
1844
+ sourceHash: string;
1845
+ prefix: string;
1846
+ suffix: string;
1847
+ comment?: unknown;
1848
+ attachmentIds?: string[] | undefined;
1849
+ attachmentFileIndexes?: number[] | undefined;
1850
+ }>, z.ZodObject<{
1851
+ surface: z.ZodLiteral<"process_transcript">;
1852
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
1853
+ generationId: z.ZodString;
1854
+ generationSeqStart: z.ZodNumber;
1855
+ generationSeqEnd: z.ZodNumber;
1856
+ id: z.ZodString;
1857
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
1858
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1859
+ sourceConversationId: z.ZodString;
1860
+ sourceMessageId: z.ZodString;
1861
+ sourceHash: z.ZodString;
1862
+ start: z.ZodNumber;
1863
+ end: z.ZodNumber;
1864
+ prefix: z.ZodString;
1865
+ suffix: z.ZodString;
1866
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1867
+ } & {
1868
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1869
+ }, "strict", z.ZodTypeAny, {
1870
+ start: number;
1871
+ end: number;
1872
+ id: string;
1873
+ generationSeqEnd: number;
1874
+ surface: "process_transcript";
1875
+ selectedText: string;
1876
+ sourceConversationId: string;
1877
+ sourceMessageId: string;
1878
+ sourceHash: string;
1879
+ prefix: string;
1880
+ suffix: string;
1881
+ attachmentIds: string[];
1882
+ transcriptKind: "assistant" | "thinking";
1883
+ generationId: string;
1884
+ generationSeqStart: number;
1885
+ comment?: string | null | undefined;
1886
+ attachmentFileIndexes?: number[] | undefined;
1887
+ }, {
1888
+ start: number;
1889
+ end: number;
1890
+ id: string;
1891
+ generationSeqEnd: number;
1892
+ surface: "process_transcript";
1893
+ selectedText: string;
1894
+ sourceConversationId: string;
1895
+ sourceMessageId: string;
1896
+ sourceHash: string;
1897
+ prefix: string;
1898
+ suffix: string;
1899
+ transcriptKind: "assistant" | "thinking";
1900
+ generationId: string;
1901
+ generationSeqStart: number;
1902
+ comment?: unknown;
1903
+ attachmentIds?: string[] | undefined;
1904
+ attachmentFileIndexes?: number[] | undefined;
1905
+ }>]>, {
1906
+ start: number;
1907
+ end: number;
1908
+ id: string;
1909
+ surface: "assistant_body";
1910
+ selectedText: string;
1911
+ sourceConversationId: string;
1912
+ sourceMessageId: string;
1913
+ sourceHash: string;
1914
+ prefix: string;
1915
+ suffix: string;
1916
+ attachmentIds: string[];
1917
+ comment?: string | null | undefined;
1918
+ attachmentFileIndexes?: number[] | undefined;
1919
+ } | {
1920
+ start: number;
1921
+ end: number;
1922
+ id: string;
1923
+ generationSeqEnd: number;
1924
+ surface: "process_transcript";
1925
+ selectedText: string;
1926
+ sourceConversationId: string;
1927
+ sourceMessageId: string;
1928
+ sourceHash: string;
1929
+ prefix: string;
1930
+ suffix: string;
1931
+ attachmentIds: string[];
1932
+ transcriptKind: "assistant" | "thinking";
1933
+ generationId: string;
1934
+ generationSeqStart: number;
1935
+ comment?: string | null | undefined;
1936
+ attachmentFileIndexes?: number[] | undefined;
1937
+ }, {
1938
+ start: number;
1939
+ end: number;
1940
+ id: string;
1941
+ surface: "assistant_body";
1942
+ selectedText: string;
1943
+ sourceConversationId: string;
1944
+ sourceMessageId: string;
1945
+ sourceHash: string;
1946
+ prefix: string;
1947
+ suffix: string;
1948
+ comment?: unknown;
1949
+ attachmentIds?: string[] | undefined;
1950
+ attachmentFileIndexes?: number[] | undefined;
1951
+ } | {
1952
+ start: number;
1953
+ end: number;
1954
+ id: string;
1955
+ generationSeqEnd: number;
1956
+ surface: "process_transcript";
1957
+ selectedText: string;
1958
+ sourceConversationId: string;
1959
+ sourceMessageId: string;
1960
+ sourceHash: string;
1961
+ prefix: string;
1962
+ suffix: string;
1963
+ transcriptKind: "assistant" | "thinking";
1964
+ generationId: string;
1965
+ generationSeqStart: number;
1966
+ comment?: unknown;
1967
+ attachmentIds?: string[] | undefined;
1968
+ attachmentFileIndexes?: number[] | undefined;
1969
+ }>, "many">, ({
1970
+ start: number;
1971
+ end: number;
1972
+ id: string;
1973
+ surface: "assistant_body";
1974
+ selectedText: string;
1975
+ sourceConversationId: string;
1976
+ sourceMessageId: string;
1977
+ sourceHash: string;
1978
+ prefix: string;
1979
+ suffix: string;
1980
+ attachmentIds: string[];
1981
+ comment?: string | null | undefined;
1982
+ attachmentFileIndexes?: number[] | undefined;
1983
+ } | {
1984
+ start: number;
1985
+ end: number;
1986
+ id: string;
1987
+ generationSeqEnd: number;
1988
+ surface: "process_transcript";
1989
+ selectedText: string;
1990
+ sourceConversationId: string;
1991
+ sourceMessageId: string;
1992
+ sourceHash: string;
1993
+ prefix: string;
1994
+ suffix: string;
1995
+ attachmentIds: string[];
1996
+ transcriptKind: "assistant" | "thinking";
1997
+ generationId: string;
1998
+ generationSeqStart: number;
1999
+ comment?: string | null | undefined;
2000
+ attachmentFileIndexes?: number[] | undefined;
2001
+ })[], ({
2002
+ start: number;
2003
+ end: number;
2004
+ id: string;
2005
+ surface: "assistant_body";
2006
+ selectedText: string;
2007
+ sourceConversationId: string;
2008
+ sourceMessageId: string;
2009
+ sourceHash: string;
2010
+ prefix: string;
2011
+ suffix: string;
2012
+ comment?: unknown;
2013
+ attachmentIds?: string[] | undefined;
2014
+ attachmentFileIndexes?: number[] | undefined;
2015
+ } | {
2016
+ start: number;
2017
+ end: number;
2018
+ id: string;
2019
+ generationSeqEnd: number;
2020
+ surface: "process_transcript";
2021
+ selectedText: string;
2022
+ sourceConversationId: string;
2023
+ sourceMessageId: string;
2024
+ sourceHash: string;
2025
+ prefix: string;
2026
+ suffix: string;
2027
+ transcriptKind: "assistant" | "thinking";
2028
+ generationId: string;
2029
+ generationSeqStart: number;
2030
+ comment?: unknown;
2031
+ attachmentIds?: string[] | undefined;
2032
+ attachmentFileIndexes?: number[] | undefined;
2033
+ })[]>>>;
303
2034
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
304
2035
  skillRefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
305
2036
  accessMode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -307,33 +2038,216 @@ export declare const createChatQueuedMessageSchema: z.ZodObject<{
307
2038
  effort: z.ZodNullable<z.ZodOptional<z.ZodString>>;
308
2039
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
309
2040
  }, "strip", z.ZodTypeAny, {
310
- body: string;
311
2041
  attachmentIds: string[];
2042
+ body: string;
2043
+ inlineAnnotations: ({
2044
+ start: number;
2045
+ end: number;
2046
+ id: string;
2047
+ surface: "assistant_body";
2048
+ selectedText: string;
2049
+ sourceConversationId: string;
2050
+ sourceMessageId: string;
2051
+ sourceHash: string;
2052
+ prefix: string;
2053
+ suffix: string;
2054
+ attachmentIds: string[];
2055
+ comment?: string | null | undefined;
2056
+ attachmentFileIndexes?: number[] | undefined;
2057
+ } | {
2058
+ start: number;
2059
+ end: number;
2060
+ id: string;
2061
+ generationSeqEnd: number;
2062
+ surface: "process_transcript";
2063
+ selectedText: string;
2064
+ sourceConversationId: string;
2065
+ sourceMessageId: string;
2066
+ sourceHash: string;
2067
+ prefix: string;
2068
+ suffix: string;
2069
+ attachmentIds: string[];
2070
+ transcriptKind: "assistant" | "thinking";
2071
+ generationId: string;
2072
+ generationSeqStart: number;
2073
+ comment?: string | null | undefined;
2074
+ attachmentFileIndexes?: number[] | undefined;
2075
+ })[];
312
2076
  skillRefs: string[];
313
2077
  projectId?: string | null | undefined;
314
- metadata?: Record<string, unknown> | null | undefined;
315
2078
  accessMode?: string | null | undefined;
2079
+ metadata?: Record<string, unknown> | null | undefined;
316
2080
  model?: string | null | undefined;
317
2081
  effort?: string | null | undefined;
318
2082
  }, {
319
- body: string;
320
2083
  projectId?: string | null | undefined;
2084
+ accessMode?: string | null | undefined;
321
2085
  metadata?: Record<string, unknown> | null | undefined;
322
2086
  attachmentIds?: string[] | undefined;
2087
+ body?: string | undefined;
2088
+ inlineAnnotations?: ({
2089
+ start: number;
2090
+ end: number;
2091
+ id: string;
2092
+ surface: "assistant_body";
2093
+ selectedText: string;
2094
+ sourceConversationId: string;
2095
+ sourceMessageId: string;
2096
+ sourceHash: string;
2097
+ prefix: string;
2098
+ suffix: string;
2099
+ comment?: unknown;
2100
+ attachmentIds?: string[] | undefined;
2101
+ attachmentFileIndexes?: number[] | undefined;
2102
+ } | {
2103
+ start: number;
2104
+ end: number;
2105
+ id: string;
2106
+ generationSeqEnd: number;
2107
+ surface: "process_transcript";
2108
+ selectedText: string;
2109
+ sourceConversationId: string;
2110
+ sourceMessageId: string;
2111
+ sourceHash: string;
2112
+ prefix: string;
2113
+ suffix: string;
2114
+ transcriptKind: "assistant" | "thinking";
2115
+ generationId: string;
2116
+ generationSeqStart: number;
2117
+ comment?: unknown;
2118
+ attachmentIds?: string[] | undefined;
2119
+ attachmentFileIndexes?: number[] | undefined;
2120
+ })[] | undefined;
323
2121
  skillRefs?: string[] | undefined;
2122
+ model?: string | null | undefined;
2123
+ effort?: string | null | undefined;
2124
+ }>, {
2125
+ attachmentIds: string[];
2126
+ body: string;
2127
+ inlineAnnotations: ({
2128
+ start: number;
2129
+ end: number;
2130
+ id: string;
2131
+ surface: "assistant_body";
2132
+ selectedText: string;
2133
+ sourceConversationId: string;
2134
+ sourceMessageId: string;
2135
+ sourceHash: string;
2136
+ prefix: string;
2137
+ suffix: string;
2138
+ attachmentIds: string[];
2139
+ comment?: string | null | undefined;
2140
+ attachmentFileIndexes?: number[] | undefined;
2141
+ } | {
2142
+ start: number;
2143
+ end: number;
2144
+ id: string;
2145
+ generationSeqEnd: number;
2146
+ surface: "process_transcript";
2147
+ selectedText: string;
2148
+ sourceConversationId: string;
2149
+ sourceMessageId: string;
2150
+ sourceHash: string;
2151
+ prefix: string;
2152
+ suffix: string;
2153
+ attachmentIds: string[];
2154
+ transcriptKind: "assistant" | "thinking";
2155
+ generationId: string;
2156
+ generationSeqStart: number;
2157
+ comment?: string | null | undefined;
2158
+ attachmentFileIndexes?: number[] | undefined;
2159
+ })[];
2160
+ skillRefs: string[];
2161
+ projectId?: string | null | undefined;
2162
+ accessMode?: string | null | undefined;
2163
+ metadata?: Record<string, unknown> | null | undefined;
2164
+ model?: string | null | undefined;
2165
+ effort?: string | null | undefined;
2166
+ }, {
2167
+ projectId?: string | null | undefined;
324
2168
  accessMode?: string | null | undefined;
2169
+ metadata?: Record<string, unknown> | null | undefined;
2170
+ attachmentIds?: string[] | undefined;
2171
+ body?: string | undefined;
2172
+ inlineAnnotations?: ({
2173
+ start: number;
2174
+ end: number;
2175
+ id: string;
2176
+ surface: "assistant_body";
2177
+ selectedText: string;
2178
+ sourceConversationId: string;
2179
+ sourceMessageId: string;
2180
+ sourceHash: string;
2181
+ prefix: string;
2182
+ suffix: string;
2183
+ comment?: unknown;
2184
+ attachmentIds?: string[] | undefined;
2185
+ attachmentFileIndexes?: number[] | undefined;
2186
+ } | {
2187
+ start: number;
2188
+ end: number;
2189
+ id: string;
2190
+ generationSeqEnd: number;
2191
+ surface: "process_transcript";
2192
+ selectedText: string;
2193
+ sourceConversationId: string;
2194
+ sourceMessageId: string;
2195
+ sourceHash: string;
2196
+ prefix: string;
2197
+ suffix: string;
2198
+ transcriptKind: "assistant" | "thinking";
2199
+ generationId: string;
2200
+ generationSeqStart: number;
2201
+ comment?: unknown;
2202
+ attachmentIds?: string[] | undefined;
2203
+ attachmentFileIndexes?: number[] | undefined;
2204
+ })[] | undefined;
2205
+ skillRefs?: string[] | undefined;
325
2206
  model?: string | null | undefined;
326
2207
  effort?: string | null | undefined;
327
2208
  }>;
328
2209
  }, "strip", z.ZodTypeAny, {
329
2210
  clientMutationId: string;
330
2211
  payload: {
331
- body: string;
332
2212
  attachmentIds: string[];
2213
+ body: string;
2214
+ inlineAnnotations: ({
2215
+ start: number;
2216
+ end: number;
2217
+ id: string;
2218
+ surface: "assistant_body";
2219
+ selectedText: string;
2220
+ sourceConversationId: string;
2221
+ sourceMessageId: string;
2222
+ sourceHash: string;
2223
+ prefix: string;
2224
+ suffix: string;
2225
+ attachmentIds: string[];
2226
+ comment?: string | null | undefined;
2227
+ attachmentFileIndexes?: number[] | undefined;
2228
+ } | {
2229
+ start: number;
2230
+ end: number;
2231
+ id: string;
2232
+ generationSeqEnd: number;
2233
+ surface: "process_transcript";
2234
+ selectedText: string;
2235
+ sourceConversationId: string;
2236
+ sourceMessageId: string;
2237
+ sourceHash: string;
2238
+ prefix: string;
2239
+ suffix: string;
2240
+ attachmentIds: string[];
2241
+ transcriptKind: "assistant" | "thinking";
2242
+ generationId: string;
2243
+ generationSeqStart: number;
2244
+ comment?: string | null | undefined;
2245
+ attachmentFileIndexes?: number[] | undefined;
2246
+ })[];
333
2247
  skillRefs: string[];
334
2248
  projectId?: string | null | undefined;
335
- metadata?: Record<string, unknown> | null | undefined;
336
2249
  accessMode?: string | null | undefined;
2250
+ metadata?: Record<string, unknown> | null | undefined;
337
2251
  model?: string | null | undefined;
338
2252
  effort?: string | null | undefined;
339
2253
  };
@@ -341,12 +2255,45 @@ export declare const createChatQueuedMessageSchema: z.ZodObject<{
341
2255
  }, {
342
2256
  clientMutationId: string;
343
2257
  payload: {
344
- body: string;
345
2258
  projectId?: string | null | undefined;
2259
+ accessMode?: string | null | undefined;
346
2260
  metadata?: Record<string, unknown> | null | undefined;
347
2261
  attachmentIds?: string[] | undefined;
2262
+ body?: string | undefined;
2263
+ inlineAnnotations?: ({
2264
+ start: number;
2265
+ end: number;
2266
+ id: string;
2267
+ surface: "assistant_body";
2268
+ selectedText: string;
2269
+ sourceConversationId: string;
2270
+ sourceMessageId: string;
2271
+ sourceHash: string;
2272
+ prefix: string;
2273
+ suffix: string;
2274
+ comment?: unknown;
2275
+ attachmentIds?: string[] | undefined;
2276
+ attachmentFileIndexes?: number[] | undefined;
2277
+ } | {
2278
+ start: number;
2279
+ end: number;
2280
+ id: string;
2281
+ generationSeqEnd: number;
2282
+ surface: "process_transcript";
2283
+ selectedText: string;
2284
+ sourceConversationId: string;
2285
+ sourceMessageId: string;
2286
+ sourceHash: string;
2287
+ prefix: string;
2288
+ suffix: string;
2289
+ transcriptKind: "assistant" | "thinking";
2290
+ generationId: string;
2291
+ generationSeqStart: number;
2292
+ comment?: unknown;
2293
+ attachmentIds?: string[] | undefined;
2294
+ attachmentFileIndexes?: number[] | undefined;
2295
+ })[] | undefined;
348
2296
  skillRefs?: string[] | undefined;
349
- accessMode?: string | null | undefined;
350
2297
  model?: string | null | undefined;
351
2298
  effort?: string | null | undefined;
352
2299
  };
@@ -354,9 +2301,236 @@ export declare const createChatQueuedMessageSchema: z.ZodObject<{
354
2301
  }>;
355
2302
  export declare const updateChatQueuedMessageSchema: z.ZodObject<{
356
2303
  version: z.ZodNumber;
357
- payload: z.ZodObject<{
358
- body: z.ZodString;
2304
+ payload: z.ZodEffects<z.ZodObject<{
2305
+ body: z.ZodDefault<z.ZodString>;
359
2306
  attachmentIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2307
+ inlineAnnotations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"surface", [z.ZodObject<{
2308
+ surface: z.ZodLiteral<"assistant_body">;
2309
+ id: z.ZodString;
2310
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
2311
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2312
+ sourceConversationId: z.ZodString;
2313
+ sourceMessageId: z.ZodString;
2314
+ sourceHash: z.ZodString;
2315
+ start: z.ZodNumber;
2316
+ end: z.ZodNumber;
2317
+ prefix: z.ZodString;
2318
+ suffix: z.ZodString;
2319
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2320
+ } & {
2321
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2322
+ }, "strict", z.ZodTypeAny, {
2323
+ start: number;
2324
+ end: number;
2325
+ id: string;
2326
+ surface: "assistant_body";
2327
+ selectedText: string;
2328
+ sourceConversationId: string;
2329
+ sourceMessageId: string;
2330
+ sourceHash: string;
2331
+ prefix: string;
2332
+ suffix: string;
2333
+ attachmentIds: string[];
2334
+ comment?: string | null | undefined;
2335
+ attachmentFileIndexes?: number[] | undefined;
2336
+ }, {
2337
+ start: number;
2338
+ end: number;
2339
+ id: string;
2340
+ surface: "assistant_body";
2341
+ selectedText: string;
2342
+ sourceConversationId: string;
2343
+ sourceMessageId: string;
2344
+ sourceHash: string;
2345
+ prefix: string;
2346
+ suffix: string;
2347
+ comment?: unknown;
2348
+ attachmentIds?: string[] | undefined;
2349
+ attachmentFileIndexes?: number[] | undefined;
2350
+ }>, z.ZodObject<{
2351
+ surface: z.ZodLiteral<"process_transcript">;
2352
+ transcriptKind: z.ZodEnum<["thinking", "assistant"]>;
2353
+ generationId: z.ZodString;
2354
+ generationSeqStart: z.ZodNumber;
2355
+ generationSeqEnd: z.ZodNumber;
2356
+ id: z.ZodString;
2357
+ selectedText: z.ZodEffects<z.ZodString, string, string>;
2358
+ comment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2359
+ sourceConversationId: z.ZodString;
2360
+ sourceMessageId: z.ZodString;
2361
+ sourceHash: z.ZodString;
2362
+ start: z.ZodNumber;
2363
+ end: z.ZodNumber;
2364
+ prefix: z.ZodString;
2365
+ suffix: z.ZodString;
2366
+ attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2367
+ } & {
2368
+ attachmentFileIndexes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2369
+ }, "strict", z.ZodTypeAny, {
2370
+ start: number;
2371
+ end: number;
2372
+ id: string;
2373
+ generationSeqEnd: number;
2374
+ surface: "process_transcript";
2375
+ selectedText: string;
2376
+ sourceConversationId: string;
2377
+ sourceMessageId: string;
2378
+ sourceHash: string;
2379
+ prefix: string;
2380
+ suffix: string;
2381
+ attachmentIds: string[];
2382
+ transcriptKind: "assistant" | "thinking";
2383
+ generationId: string;
2384
+ generationSeqStart: number;
2385
+ comment?: string | null | undefined;
2386
+ attachmentFileIndexes?: number[] | undefined;
2387
+ }, {
2388
+ start: number;
2389
+ end: number;
2390
+ id: string;
2391
+ generationSeqEnd: number;
2392
+ surface: "process_transcript";
2393
+ selectedText: string;
2394
+ sourceConversationId: string;
2395
+ sourceMessageId: string;
2396
+ sourceHash: string;
2397
+ prefix: string;
2398
+ suffix: string;
2399
+ transcriptKind: "assistant" | "thinking";
2400
+ generationId: string;
2401
+ generationSeqStart: number;
2402
+ comment?: unknown;
2403
+ attachmentIds?: string[] | undefined;
2404
+ attachmentFileIndexes?: number[] | undefined;
2405
+ }>]>, {
2406
+ start: number;
2407
+ end: number;
2408
+ id: string;
2409
+ surface: "assistant_body";
2410
+ selectedText: string;
2411
+ sourceConversationId: string;
2412
+ sourceMessageId: string;
2413
+ sourceHash: string;
2414
+ prefix: string;
2415
+ suffix: string;
2416
+ attachmentIds: string[];
2417
+ comment?: string | null | undefined;
2418
+ attachmentFileIndexes?: number[] | undefined;
2419
+ } | {
2420
+ start: number;
2421
+ end: number;
2422
+ id: string;
2423
+ generationSeqEnd: number;
2424
+ surface: "process_transcript";
2425
+ selectedText: string;
2426
+ sourceConversationId: string;
2427
+ sourceMessageId: string;
2428
+ sourceHash: string;
2429
+ prefix: string;
2430
+ suffix: string;
2431
+ attachmentIds: string[];
2432
+ transcriptKind: "assistant" | "thinking";
2433
+ generationId: string;
2434
+ generationSeqStart: number;
2435
+ comment?: string | null | undefined;
2436
+ attachmentFileIndexes?: number[] | undefined;
2437
+ }, {
2438
+ start: number;
2439
+ end: number;
2440
+ id: string;
2441
+ surface: "assistant_body";
2442
+ selectedText: string;
2443
+ sourceConversationId: string;
2444
+ sourceMessageId: string;
2445
+ sourceHash: string;
2446
+ prefix: string;
2447
+ suffix: string;
2448
+ comment?: unknown;
2449
+ attachmentIds?: string[] | undefined;
2450
+ attachmentFileIndexes?: number[] | undefined;
2451
+ } | {
2452
+ start: number;
2453
+ end: number;
2454
+ id: string;
2455
+ generationSeqEnd: number;
2456
+ surface: "process_transcript";
2457
+ selectedText: string;
2458
+ sourceConversationId: string;
2459
+ sourceMessageId: string;
2460
+ sourceHash: string;
2461
+ prefix: string;
2462
+ suffix: string;
2463
+ transcriptKind: "assistant" | "thinking";
2464
+ generationId: string;
2465
+ generationSeqStart: number;
2466
+ comment?: unknown;
2467
+ attachmentIds?: string[] | undefined;
2468
+ attachmentFileIndexes?: number[] | undefined;
2469
+ }>, "many">, ({
2470
+ start: number;
2471
+ end: number;
2472
+ id: string;
2473
+ surface: "assistant_body";
2474
+ selectedText: string;
2475
+ sourceConversationId: string;
2476
+ sourceMessageId: string;
2477
+ sourceHash: string;
2478
+ prefix: string;
2479
+ suffix: string;
2480
+ attachmentIds: string[];
2481
+ comment?: string | null | undefined;
2482
+ attachmentFileIndexes?: number[] | undefined;
2483
+ } | {
2484
+ start: number;
2485
+ end: number;
2486
+ id: string;
2487
+ generationSeqEnd: number;
2488
+ surface: "process_transcript";
2489
+ selectedText: string;
2490
+ sourceConversationId: string;
2491
+ sourceMessageId: string;
2492
+ sourceHash: string;
2493
+ prefix: string;
2494
+ suffix: string;
2495
+ attachmentIds: string[];
2496
+ transcriptKind: "assistant" | "thinking";
2497
+ generationId: string;
2498
+ generationSeqStart: number;
2499
+ comment?: string | null | undefined;
2500
+ attachmentFileIndexes?: number[] | undefined;
2501
+ })[], ({
2502
+ start: number;
2503
+ end: number;
2504
+ id: string;
2505
+ surface: "assistant_body";
2506
+ selectedText: string;
2507
+ sourceConversationId: string;
2508
+ sourceMessageId: string;
2509
+ sourceHash: string;
2510
+ prefix: string;
2511
+ suffix: string;
2512
+ comment?: unknown;
2513
+ attachmentIds?: string[] | undefined;
2514
+ attachmentFileIndexes?: number[] | undefined;
2515
+ } | {
2516
+ start: number;
2517
+ end: number;
2518
+ id: string;
2519
+ generationSeqEnd: number;
2520
+ surface: "process_transcript";
2521
+ selectedText: string;
2522
+ sourceConversationId: string;
2523
+ sourceMessageId: string;
2524
+ sourceHash: string;
2525
+ prefix: string;
2526
+ suffix: string;
2527
+ transcriptKind: "assistant" | "thinking";
2528
+ generationId: string;
2529
+ generationSeqStart: number;
2530
+ comment?: unknown;
2531
+ attachmentIds?: string[] | undefined;
2532
+ attachmentFileIndexes?: number[] | undefined;
2533
+ })[]>>;
360
2534
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
361
2535
  skillRefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
362
2536
  accessMode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -364,45 +2538,261 @@ export declare const updateChatQueuedMessageSchema: z.ZodObject<{
364
2538
  effort: z.ZodNullable<z.ZodOptional<z.ZodString>>;
365
2539
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
366
2540
  }, "strip", z.ZodTypeAny, {
367
- body: string;
368
2541
  attachmentIds: string[];
2542
+ body: string;
369
2543
  skillRefs: string[];
370
2544
  projectId?: string | null | undefined;
371
- metadata?: Record<string, unknown> | null | undefined;
372
2545
  accessMode?: string | null | undefined;
2546
+ metadata?: Record<string, unknown> | null | undefined;
2547
+ inlineAnnotations?: ({
2548
+ start: number;
2549
+ end: number;
2550
+ id: string;
2551
+ surface: "assistant_body";
2552
+ selectedText: string;
2553
+ sourceConversationId: string;
2554
+ sourceMessageId: string;
2555
+ sourceHash: string;
2556
+ prefix: string;
2557
+ suffix: string;
2558
+ attachmentIds: string[];
2559
+ comment?: string | null | undefined;
2560
+ attachmentFileIndexes?: number[] | undefined;
2561
+ } | {
2562
+ start: number;
2563
+ end: number;
2564
+ id: string;
2565
+ generationSeqEnd: number;
2566
+ surface: "process_transcript";
2567
+ selectedText: string;
2568
+ sourceConversationId: string;
2569
+ sourceMessageId: string;
2570
+ sourceHash: string;
2571
+ prefix: string;
2572
+ suffix: string;
2573
+ attachmentIds: string[];
2574
+ transcriptKind: "assistant" | "thinking";
2575
+ generationId: string;
2576
+ generationSeqStart: number;
2577
+ comment?: string | null | undefined;
2578
+ attachmentFileIndexes?: number[] | undefined;
2579
+ })[] | undefined;
373
2580
  model?: string | null | undefined;
374
2581
  effort?: string | null | undefined;
375
2582
  }, {
376
- body: string;
377
2583
  projectId?: string | null | undefined;
2584
+ accessMode?: string | null | undefined;
378
2585
  metadata?: Record<string, unknown> | null | undefined;
379
2586
  attachmentIds?: string[] | undefined;
2587
+ body?: string | undefined;
2588
+ inlineAnnotations?: ({
2589
+ start: number;
2590
+ end: number;
2591
+ id: string;
2592
+ surface: "assistant_body";
2593
+ selectedText: string;
2594
+ sourceConversationId: string;
2595
+ sourceMessageId: string;
2596
+ sourceHash: string;
2597
+ prefix: string;
2598
+ suffix: string;
2599
+ comment?: unknown;
2600
+ attachmentIds?: string[] | undefined;
2601
+ attachmentFileIndexes?: number[] | undefined;
2602
+ } | {
2603
+ start: number;
2604
+ end: number;
2605
+ id: string;
2606
+ generationSeqEnd: number;
2607
+ surface: "process_transcript";
2608
+ selectedText: string;
2609
+ sourceConversationId: string;
2610
+ sourceMessageId: string;
2611
+ sourceHash: string;
2612
+ prefix: string;
2613
+ suffix: string;
2614
+ transcriptKind: "assistant" | "thinking";
2615
+ generationId: string;
2616
+ generationSeqStart: number;
2617
+ comment?: unknown;
2618
+ attachmentIds?: string[] | undefined;
2619
+ attachmentFileIndexes?: number[] | undefined;
2620
+ })[] | undefined;
380
2621
  skillRefs?: string[] | undefined;
2622
+ model?: string | null | undefined;
2623
+ effort?: string | null | undefined;
2624
+ }>, {
2625
+ attachmentIds: string[];
2626
+ body: string;
2627
+ skillRefs: string[];
2628
+ projectId?: string | null | undefined;
2629
+ accessMode?: string | null | undefined;
2630
+ metadata?: Record<string, unknown> | null | undefined;
2631
+ inlineAnnotations?: ({
2632
+ start: number;
2633
+ end: number;
2634
+ id: string;
2635
+ surface: "assistant_body";
2636
+ selectedText: string;
2637
+ sourceConversationId: string;
2638
+ sourceMessageId: string;
2639
+ sourceHash: string;
2640
+ prefix: string;
2641
+ suffix: string;
2642
+ attachmentIds: string[];
2643
+ comment?: string | null | undefined;
2644
+ attachmentFileIndexes?: number[] | undefined;
2645
+ } | {
2646
+ start: number;
2647
+ end: number;
2648
+ id: string;
2649
+ generationSeqEnd: number;
2650
+ surface: "process_transcript";
2651
+ selectedText: string;
2652
+ sourceConversationId: string;
2653
+ sourceMessageId: string;
2654
+ sourceHash: string;
2655
+ prefix: string;
2656
+ suffix: string;
2657
+ attachmentIds: string[];
2658
+ transcriptKind: "assistant" | "thinking";
2659
+ generationId: string;
2660
+ generationSeqStart: number;
2661
+ comment?: string | null | undefined;
2662
+ attachmentFileIndexes?: number[] | undefined;
2663
+ })[] | undefined;
2664
+ model?: string | null | undefined;
2665
+ effort?: string | null | undefined;
2666
+ }, {
2667
+ projectId?: string | null | undefined;
381
2668
  accessMode?: string | null | undefined;
2669
+ metadata?: Record<string, unknown> | null | undefined;
2670
+ attachmentIds?: string[] | undefined;
2671
+ body?: string | undefined;
2672
+ inlineAnnotations?: ({
2673
+ start: number;
2674
+ end: number;
2675
+ id: string;
2676
+ surface: "assistant_body";
2677
+ selectedText: string;
2678
+ sourceConversationId: string;
2679
+ sourceMessageId: string;
2680
+ sourceHash: string;
2681
+ prefix: string;
2682
+ suffix: string;
2683
+ comment?: unknown;
2684
+ attachmentIds?: string[] | undefined;
2685
+ attachmentFileIndexes?: number[] | undefined;
2686
+ } | {
2687
+ start: number;
2688
+ end: number;
2689
+ id: string;
2690
+ generationSeqEnd: number;
2691
+ surface: "process_transcript";
2692
+ selectedText: string;
2693
+ sourceConversationId: string;
2694
+ sourceMessageId: string;
2695
+ sourceHash: string;
2696
+ prefix: string;
2697
+ suffix: string;
2698
+ transcriptKind: "assistant" | "thinking";
2699
+ generationId: string;
2700
+ generationSeqStart: number;
2701
+ comment?: unknown;
2702
+ attachmentIds?: string[] | undefined;
2703
+ attachmentFileIndexes?: number[] | undefined;
2704
+ })[] | undefined;
2705
+ skillRefs?: string[] | undefined;
382
2706
  model?: string | null | undefined;
383
2707
  effort?: string | null | undefined;
384
2708
  }>;
385
2709
  }, "strip", z.ZodTypeAny, {
386
2710
  version: number;
387
2711
  payload: {
388
- body: string;
389
2712
  attachmentIds: string[];
2713
+ body: string;
390
2714
  skillRefs: string[];
391
2715
  projectId?: string | null | undefined;
392
- metadata?: Record<string, unknown> | null | undefined;
393
2716
  accessMode?: string | null | undefined;
2717
+ metadata?: Record<string, unknown> | null | undefined;
2718
+ inlineAnnotations?: ({
2719
+ start: number;
2720
+ end: number;
2721
+ id: string;
2722
+ surface: "assistant_body";
2723
+ selectedText: string;
2724
+ sourceConversationId: string;
2725
+ sourceMessageId: string;
2726
+ sourceHash: string;
2727
+ prefix: string;
2728
+ suffix: string;
2729
+ attachmentIds: string[];
2730
+ comment?: string | null | undefined;
2731
+ attachmentFileIndexes?: number[] | undefined;
2732
+ } | {
2733
+ start: number;
2734
+ end: number;
2735
+ id: string;
2736
+ generationSeqEnd: number;
2737
+ surface: "process_transcript";
2738
+ selectedText: string;
2739
+ sourceConversationId: string;
2740
+ sourceMessageId: string;
2741
+ sourceHash: string;
2742
+ prefix: string;
2743
+ suffix: string;
2744
+ attachmentIds: string[];
2745
+ transcriptKind: "assistant" | "thinking";
2746
+ generationId: string;
2747
+ generationSeqStart: number;
2748
+ comment?: string | null | undefined;
2749
+ attachmentFileIndexes?: number[] | undefined;
2750
+ })[] | undefined;
394
2751
  model?: string | null | undefined;
395
2752
  effort?: string | null | undefined;
396
2753
  };
397
2754
  }, {
398
2755
  version: number;
399
2756
  payload: {
400
- body: string;
401
2757
  projectId?: string | null | undefined;
2758
+ accessMode?: string | null | undefined;
402
2759
  metadata?: Record<string, unknown> | null | undefined;
403
2760
  attachmentIds?: string[] | undefined;
2761
+ body?: string | undefined;
2762
+ inlineAnnotations?: ({
2763
+ start: number;
2764
+ end: number;
2765
+ id: string;
2766
+ surface: "assistant_body";
2767
+ selectedText: string;
2768
+ sourceConversationId: string;
2769
+ sourceMessageId: string;
2770
+ sourceHash: string;
2771
+ prefix: string;
2772
+ suffix: string;
2773
+ comment?: unknown;
2774
+ attachmentIds?: string[] | undefined;
2775
+ attachmentFileIndexes?: number[] | undefined;
2776
+ } | {
2777
+ start: number;
2778
+ end: number;
2779
+ id: string;
2780
+ generationSeqEnd: number;
2781
+ surface: "process_transcript";
2782
+ selectedText: string;
2783
+ sourceConversationId: string;
2784
+ sourceMessageId: string;
2785
+ sourceHash: string;
2786
+ prefix: string;
2787
+ suffix: string;
2788
+ transcriptKind: "assistant" | "thinking";
2789
+ generationId: string;
2790
+ generationSeqStart: number;
2791
+ comment?: unknown;
2792
+ attachmentIds?: string[] | undefined;
2793
+ attachmentFileIndexes?: number[] | undefined;
2794
+ })[] | undefined;
404
2795
  skillRefs?: string[] | undefined;
405
- accessMode?: string | null | undefined;
406
2796
  model?: string | null | undefined;
407
2797
  effort?: string | null | undefined;
408
2798
  };
@@ -492,13 +2882,13 @@ export declare const chatClientCheckpointSchema: z.ZodObject<{
492
2882
  generationSeq: z.ZodNumber;
493
2883
  renderedBodyHash: z.ZodString;
494
2884
  }, "strip", z.ZodTypeAny, {
495
- renderedBodyHash: string;
496
2885
  generationId: string;
2886
+ renderedBodyHash: string;
497
2887
  attemptEpoch: number;
498
2888
  generationSeq: number;
499
2889
  }, {
500
- renderedBodyHash: string;
501
2890
  generationId: string;
2891
+ renderedBodyHash: string;
502
2892
  attemptEpoch: number;
503
2893
  generationSeq: number;
504
2894
  }>;
@@ -515,8 +2905,8 @@ export declare const appendChatGenerationEventSchema: z.ZodObject<{
515
2905
  controlActionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
516
2906
  queueItemId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
517
2907
  }, "strip", z.ZodTypeAny, {
518
- payload: Record<string, unknown>;
519
2908
  generationId: string;
2909
+ payload: Record<string, unknown>;
520
2910
  attemptEpoch: number;
521
2911
  generationSeq: number;
522
2912
  eventKind: "stop_requested" | "generation_started" | "runtime_output" | "assistant_delta" | "transcript" | "client_checkpoint" | "steer_requested" | "steer_provider_sent" | "steer_acknowledged" | "continuation_scheduled" | "output_cutoff" | "runtime_terminal" | "late_output_dropped" | "terminal_projection_requested" | "terminal_projected";
@@ -879,6 +3269,7 @@ export declare function chatRichReferencesFromStructuredPayload(payload: unknown
879
3269
  identifier?: string | undefined;
880
3270
  display?: "inline" | "card" | undefined;
881
3271
  })[];
3272
+ export declare function chatInlineAnnotationsFromStructuredPayload(payload: unknown): ChatInlineAnnotation[];
882
3273
  export declare function chatAskUserRequestFromStructuredPayload(payload: unknown): {
883
3274
  questions: {
884
3275
  id: string;
@@ -912,23 +3303,23 @@ export declare const chatAutomationCreateSchema: z.ZodEffects<z.ZodObject<{
912
3303
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
913
3304
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
914
3305
  }, "strip", z.ZodTypeAny, {
3306
+ enabled: boolean;
915
3307
  cronExpression: string;
916
3308
  timezone: string;
917
- enabled: boolean;
918
3309
  label?: string | null | undefined;
919
3310
  }, {
920
3311
  cronExpression: string;
921
3312
  timezone: string;
922
- label?: string | null | undefined;
923
3313
  enabled?: boolean | undefined;
3314
+ label?: string | null | undefined;
924
3315
  }>;
925
3316
  }, "strip", z.ZodTypeAny, {
926
3317
  status: "active" | "paused";
927
3318
  title: string;
928
3319
  schedule: {
3320
+ enabled: boolean;
929
3321
  cronExpression: string;
930
3322
  timezone: string;
931
- enabled: boolean;
932
3323
  label?: string | null | undefined;
933
3324
  };
934
3325
  priority: "critical" | "high" | "medium" | "low";
@@ -945,8 +3336,8 @@ export declare const chatAutomationCreateSchema: z.ZodEffects<z.ZodObject<{
945
3336
  schedule: {
946
3337
  cronExpression: string;
947
3338
  timezone: string;
948
- label?: string | null | undefined;
949
3339
  enabled?: boolean | undefined;
3340
+ label?: string | null | undefined;
950
3341
  };
951
3342
  status?: "active" | "paused" | undefined;
952
3343
  projectId?: string | null | undefined;
@@ -963,9 +3354,9 @@ export declare const chatAutomationCreateSchema: z.ZodEffects<z.ZodObject<{
963
3354
  status: "active" | "paused";
964
3355
  title: string;
965
3356
  schedule: {
3357
+ enabled: boolean;
966
3358
  cronExpression: string;
967
3359
  timezone: string;
968
- enabled: boolean;
969
3360
  label?: string | null | undefined;
970
3361
  };
971
3362
  priority: "critical" | "high" | "medium" | "low";
@@ -980,8 +3371,8 @@ export declare const chatAutomationCreateSchema: z.ZodEffects<z.ZodObject<{
980
3371
  schedule: {
981
3372
  cronExpression: string;
982
3373
  timezone: string;
983
- label?: string | null | undefined;
984
3374
  enabled?: boolean | undefined;
3375
+ label?: string | null | undefined;
985
3376
  };
986
3377
  status?: "active" | "paused" | undefined;
987
3378
  projectId?: string | null | undefined;
@@ -999,9 +3390,9 @@ export declare function chatAutomationCreateFromStructuredPayload(payload: unkno
999
3390
  status: "active" | "paused";
1000
3391
  title: string;
1001
3392
  schedule: {
3393
+ enabled: boolean;
1002
3394
  cronExpression: string;
1003
3395
  timezone: string;
1004
- enabled: boolean;
1005
3396
  label?: string | null | undefined;
1006
3397
  };
1007
3398
  priority: "critical" | "high" | "medium" | "low";
@@ -1275,42 +3666,49 @@ export declare const createMessengerCustomGroupWithEntriesSchema: z.ZodEffects<z
1275
3666
  } & {
1276
3667
  itemKeys: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1277
3668
  threadKeys: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3669
+ anchorItemKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1278
3670
  autoGenerateName: z.ZodOptional<z.ZodBoolean>;
1279
3671
  }, "strip", z.ZodTypeAny, {
1280
3672
  name: string;
1281
3673
  icon?: string | null | undefined;
1282
3674
  itemKeys?: string[] | undefined;
1283
3675
  threadKeys?: string[] | undefined;
3676
+ anchorItemKey?: string | undefined;
1284
3677
  autoGenerateName?: boolean | undefined;
1285
3678
  }, {
1286
3679
  name: string;
1287
3680
  icon?: string | null | undefined;
1288
3681
  itemKeys?: string[] | undefined;
1289
3682
  threadKeys?: string[] | undefined;
3683
+ anchorItemKey?: string | undefined;
1290
3684
  autoGenerateName?: boolean | undefined;
1291
3685
  }>, {
1292
3686
  name: string;
1293
3687
  icon?: string | null | undefined;
1294
3688
  itemKeys?: string[] | undefined;
1295
3689
  threadKeys?: string[] | undefined;
3690
+ anchorItemKey?: string | undefined;
1296
3691
  autoGenerateName?: boolean | undefined;
1297
3692
  }, {
1298
3693
  name: string;
1299
3694
  icon?: string | null | undefined;
1300
3695
  itemKeys?: string[] | undefined;
1301
3696
  threadKeys?: string[] | undefined;
3697
+ anchorItemKey?: string | undefined;
1302
3698
  autoGenerateName?: boolean | undefined;
1303
3699
  }>, {
1304
3700
  itemKeys: string[];
1305
3701
  name: string;
1306
3702
  icon?: string | null | undefined;
1307
3703
  threadKeys?: string[] | undefined;
3704
+ anchorItemKey?: string | undefined;
1308
3705
  autoGenerateName?: boolean | undefined;
1309
3706
  }, {
1310
3707
  name: string;
1311
3708
  icon?: string | null | undefined;
1312
3709
  itemKeys?: string[] | undefined;
1313
3710
  threadKeys?: string[] | undefined;
3711
+ anchorItemKey?: string | undefined;
1314
3712
  autoGenerateName?: boolean | undefined;
1315
3713
  }>;
1316
3714
  export declare const updateMessengerCustomGroupSchema: z.ZodObject<{
@@ -1397,7 +3795,7 @@ export type ForkChatConversation = z.infer<typeof forkChatConversationSchema>;
1397
3795
  export type CreateSideChat = z.infer<typeof createSideChatSchema>;
1398
3796
  export type SetChatProjectContext = z.infer<typeof setChatProjectContextSchema>;
1399
3797
  export type UpdateChatConversation = z.infer<typeof updateChatConversationSchema>;
1400
- export type AddChatMessage = z.infer<typeof addChatMessageSchema>;
3798
+ export type AddChatMessage = z.input<typeof addChatMessageSchema>;
1401
3799
  export type UpdateMessengerThreadUserState = z.infer<typeof updateMessengerThreadUserStateSchema>;
1402
3800
  export type CreateMessengerCustomGroup = z.infer<typeof createMessengerCustomGroupSchema>;
1403
3801
  export type CreateMessengerCustomGroupWithEntries = z.infer<typeof createMessengerCustomGroupWithEntriesSchema>;
@@ -1405,9 +3803,9 @@ export type UpdateMessengerCustomGroup = z.infer<typeof updateMessengerCustomGro
1405
3803
  export type ReorderMessengerCustomGroups = z.infer<typeof reorderMessengerCustomGroupsSchema>;
1406
3804
  export type AssignMessengerCustomGroupEntry = z.infer<typeof assignMessengerCustomGroupEntrySchema>;
1407
3805
  export type ReorderMessengerCustomGroupEntries = z.infer<typeof reorderMessengerCustomGroupEntriesSchema>;
1408
- export type ChatQueuedMessagePayloadInput = z.infer<typeof chatQueuedMessagePayloadSchema>;
1409
- export type CreateChatQueuedMessage = z.infer<typeof createChatQueuedMessageSchema>;
1410
- export type UpdateChatQueuedMessage = z.infer<typeof updateChatQueuedMessageSchema>;
3806
+ export type ChatQueuedMessagePayloadInput = z.input<typeof chatQueuedMessagePayloadSchema>;
3807
+ export type CreateChatQueuedMessage = z.input<typeof createChatQueuedMessageSchema>;
3808
+ export type UpdateChatQueuedMessage = z.input<typeof updateChatQueuedMessageSchema>;
1411
3809
  export type CancelChatQueuedMessage = z.infer<typeof cancelChatQueuedMessageSchema>;
1412
3810
  export type SteerChatQueuedMessage = z.infer<typeof steerChatQueuedMessageSchema>;
1413
3811
  export type StopChatGeneration = z.infer<typeof stopChatGenerationSchema>;