@zyraxon-ai/client 19.0.3 → 19.0.5

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 (56) hide show
  1. package/dist/contract.d.ts +35 -0
  2. package/dist/contract.d.ts.map +1 -0
  3. package/dist/contract.js +45 -0
  4. package/dist/contract.js.map +1 -0
  5. package/dist/effect.d.ts +24 -0
  6. package/dist/effect.d.ts.map +1 -0
  7. package/dist/effect.js +25 -0
  8. package/dist/effect.js.map +1 -0
  9. package/dist/generated/client-error.d.ts +7 -0
  10. package/dist/generated/client-error.d.ts.map +1 -0
  11. package/dist/generated/client-error.js +9 -0
  12. package/dist/generated/client-error.js.map +1 -0
  13. package/dist/generated/client.d.ts +791 -0
  14. package/dist/generated/client.d.ts.map +1 -0
  15. package/dist/generated/client.js +679 -0
  16. package/dist/generated/client.js.map +1 -0
  17. package/dist/generated/index.d.ts +4 -0
  18. package/dist/generated/index.d.ts.map +1 -0
  19. package/dist/generated/index.js +4 -0
  20. package/dist/generated/index.js.map +1 -0
  21. package/dist/generated/types.d.ts +4228 -0
  22. package/dist/generated/types.d.ts.map +1 -0
  23. package/dist/generated/types.js +14 -0
  24. package/dist/generated/types.js.map +1 -0
  25. package/dist/generated-effect/client-error.d.ts +8 -0
  26. package/dist/generated-effect/client-error.d.ts.map +1 -0
  27. package/dist/generated-effect/client-error.js +6 -0
  28. package/dist/generated-effect/client-error.js.map +1 -0
  29. package/dist/generated-effect/client.d.ts +401 -0
  30. package/dist/generated-effect/client.d.ts.map +1 -0
  31. package/dist/generated-effect/client.js +253 -0
  32. package/dist/generated-effect/client.js.map +1 -0
  33. package/dist/generated-effect/index.d.ts +3 -0
  34. package/dist/generated-effect/index.d.ts.map +1 -0
  35. package/dist/generated-effect/index.js +3 -0
  36. package/dist/generated-effect/index.js.map +1 -0
  37. package/dist/index.d.ts +3 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +2 -0
  40. package/dist/index.js.map +1 -0
  41. package/package.json +25 -14
  42. package/script/build.ts +0 -30
  43. package/src/contract.ts +0 -53
  44. package/src/effect.ts +0 -25
  45. package/src/generated/.httpapi-codegen.json +0 -6
  46. package/src/generated/client-error.ts +0 -11
  47. package/src/generated/client.ts +0 -1029
  48. package/src/generated/index.ts +0 -3
  49. package/src/generated/types.ts +0 -2807
  50. package/src/generated-effect/.httpapi-codegen.json +0 -5
  51. package/src/generated-effect/client-error.ts +0 -5
  52. package/src/generated-effect/client.ts +0 -706
  53. package/src/generated-effect/index.ts +0 -2
  54. package/src/index.ts +0 -2
  55. package/sst-env.d.ts +0 -10
  56. package/tsconfig.json +0 -9
@@ -1,2807 +0,0 @@
1
- import type { ZyraxonEventEncoded } from "@zyraxon-ai/protocol/groups/event"
2
-
3
- export type JsonValue =
4
- | null
5
- | boolean
6
- | number
7
- | string
8
- | ReadonlyArray<JsonValue>
9
- | { readonly [key: string]: JsonValue }
10
-
11
- export type UnauthorizedError = { readonly _tag: "UnauthorizedError"; readonly message: string }
12
- export const isUnauthorizedError = (value: unknown): value is UnauthorizedError =>
13
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnauthorizedError"
14
-
15
- export type InvalidRequestError = {
16
- readonly _tag: "InvalidRequestError"
17
- readonly message: string
18
- readonly kind?: string | undefined
19
- readonly field?: string | undefined
20
- }
21
- export const isInvalidRequestError = (value: unknown): value is InvalidRequestError =>
22
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "InvalidRequestError"
23
-
24
- export type InvalidCursorError = { readonly _tag: "InvalidCursorError"; readonly message: string }
25
- export const isInvalidCursorError = (value: unknown): value is InvalidCursorError =>
26
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "InvalidCursorError"
27
-
28
- export type SessionNotFoundError = {
29
- readonly _tag: "SessionNotFoundError"
30
- readonly sessionID: string
31
- readonly message: string
32
- }
33
- export const isSessionNotFoundError = (value: unknown): value is SessionNotFoundError =>
34
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "SessionNotFoundError"
35
-
36
- export type ConflictError = {
37
- readonly _tag: "ConflictError"
38
- readonly message: string
39
- readonly resource?: string | undefined
40
- }
41
- export const isConflictError = (value: unknown): value is ConflictError =>
42
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ConflictError"
43
-
44
- export type ServiceUnavailableError = {
45
- readonly _tag: "ServiceUnavailableError"
46
- readonly message: string
47
- readonly service?: string | undefined
48
- }
49
- export const isServiceUnavailableError = (value: unknown): value is ServiceUnavailableError =>
50
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ServiceUnavailableError"
51
-
52
- export type MessageNotFoundError = {
53
- readonly _tag: "MessageNotFoundError"
54
- readonly sessionID: string
55
- readonly messageID: string
56
- readonly message: string
57
- }
58
- export const isMessageNotFoundError = (value: unknown): value is MessageNotFoundError =>
59
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "MessageNotFoundError"
60
-
61
- export type UnknownError = {
62
- readonly _tag: "UnknownError"
63
- readonly message: string
64
- readonly ref?: string | undefined
65
- }
66
- export const isUnknownError = (value: unknown): value is UnknownError =>
67
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnknownError"
68
-
69
- export type ProviderNotFoundError = {
70
- readonly _tag: "ProviderNotFoundError"
71
- readonly providerID: string
72
- readonly message: string
73
- }
74
- export const isProviderNotFoundError = (value: unknown): value is ProviderNotFoundError =>
75
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ProviderNotFoundError"
76
-
77
- export type PermissionNotFoundError = {
78
- readonly _tag: "PermissionNotFoundError"
79
- readonly requestID: string
80
- readonly message: string
81
- }
82
- export const isPermissionNotFoundError = (value: unknown): value is PermissionNotFoundError =>
83
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PermissionNotFoundError"
84
-
85
- export type PtyNotFoundError = { readonly _tag: "PtyNotFoundError"; readonly ptyID: string; readonly message: string }
86
- export const isPtyNotFoundError = (value: unknown): value is PtyNotFoundError =>
87
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PtyNotFoundError"
88
-
89
- export type QuestionNotFoundError = {
90
- readonly _tag: "QuestionNotFoundError"
91
- readonly requestID: string
92
- readonly message: string
93
- }
94
- export const isQuestionNotFoundError = (value: unknown): value is QuestionNotFoundError =>
95
- typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "QuestionNotFoundError"
96
-
97
- export type ProjectCopyError = {
98
- readonly name: "ProjectCopyError"
99
- readonly data: { readonly message: string; readonly forceRequired?: boolean | undefined }
100
- }
101
- export const isProjectCopyError = (value: unknown): value is ProjectCopyError =>
102
- typeof value === "object" && value !== null && "name" in value && value["name"] === "ProjectCopyError"
103
-
104
- export type HealthGetOutput = { readonly healthy: true }
105
-
106
- export type LocationGetInput = {
107
- readonly location?: {
108
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
109
- }["location"]
110
- }
111
-
112
- export type LocationGetOutput = {
113
- readonly directory: string
114
- readonly workspaceID?: string
115
- readonly project: { readonly id: string; readonly directory: string }
116
- }
117
-
118
- export type AgentsListInput = {
119
- readonly location?: {
120
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
121
- }["location"]
122
- }
123
-
124
- export type AgentsListOutput = {
125
- readonly location: {
126
- readonly directory: string
127
- readonly workspaceID?: string
128
- readonly project: { readonly id: string; readonly directory: string }
129
- }
130
- readonly data: ReadonlyArray<{
131
- readonly id: string
132
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string }
133
- readonly request: {
134
- readonly headers: { readonly [x: string]: string }
135
- readonly body: { readonly [x: string]: JsonValue }
136
- }
137
- readonly system?: string
138
- readonly description?: string
139
- readonly mode: "subagent" | "primary" | "all"
140
- readonly hidden: boolean
141
- readonly color?: string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info"
142
- readonly steps?: number
143
- readonly permissions: ReadonlyArray<{
144
- readonly action: string
145
- readonly resource: string
146
- readonly effect: "allow" | "deny" | "ask"
147
- }>
148
- }>
149
- }
150
-
151
- export type SessionsListInput = {
152
- readonly workspace?: {
153
- readonly workspace?: string | undefined
154
- readonly limit?: number | undefined
155
- readonly order?: "asc" | "desc" | undefined
156
- readonly search?: string | undefined
157
- readonly directory?: string | undefined
158
- readonly project?: string | undefined
159
- readonly subpath?: string | undefined
160
- readonly cursor?: string | undefined
161
- }["workspace"]
162
- readonly limit?: {
163
- readonly workspace?: string | undefined
164
- readonly limit?: number | undefined
165
- readonly order?: "asc" | "desc" | undefined
166
- readonly search?: string | undefined
167
- readonly directory?: string | undefined
168
- readonly project?: string | undefined
169
- readonly subpath?: string | undefined
170
- readonly cursor?: string | undefined
171
- }["limit"]
172
- readonly order?: {
173
- readonly workspace?: string | undefined
174
- readonly limit?: number | undefined
175
- readonly order?: "asc" | "desc" | undefined
176
- readonly search?: string | undefined
177
- readonly directory?: string | undefined
178
- readonly project?: string | undefined
179
- readonly subpath?: string | undefined
180
- readonly cursor?: string | undefined
181
- }["order"]
182
- readonly search?: {
183
- readonly workspace?: string | undefined
184
- readonly limit?: number | undefined
185
- readonly order?: "asc" | "desc" | undefined
186
- readonly search?: string | undefined
187
- readonly directory?: string | undefined
188
- readonly project?: string | undefined
189
- readonly subpath?: string | undefined
190
- readonly cursor?: string | undefined
191
- }["search"]
192
- readonly directory?: {
193
- readonly workspace?: string | undefined
194
- readonly limit?: number | undefined
195
- readonly order?: "asc" | "desc" | undefined
196
- readonly search?: string | undefined
197
- readonly directory?: string | undefined
198
- readonly project?: string | undefined
199
- readonly subpath?: string | undefined
200
- readonly cursor?: string | undefined
201
- }["directory"]
202
- readonly project?: {
203
- readonly workspace?: string | undefined
204
- readonly limit?: number | undefined
205
- readonly order?: "asc" | "desc" | undefined
206
- readonly search?: string | undefined
207
- readonly directory?: string | undefined
208
- readonly project?: string | undefined
209
- readonly subpath?: string | undefined
210
- readonly cursor?: string | undefined
211
- }["project"]
212
- readonly subpath?: {
213
- readonly workspace?: string | undefined
214
- readonly limit?: number | undefined
215
- readonly order?: "asc" | "desc" | undefined
216
- readonly search?: string | undefined
217
- readonly directory?: string | undefined
218
- readonly project?: string | undefined
219
- readonly subpath?: string | undefined
220
- readonly cursor?: string | undefined
221
- }["subpath"]
222
- readonly cursor?: {
223
- readonly workspace?: string | undefined
224
- readonly limit?: number | undefined
225
- readonly order?: "asc" | "desc" | undefined
226
- readonly search?: string | undefined
227
- readonly directory?: string | undefined
228
- readonly project?: string | undefined
229
- readonly subpath?: string | undefined
230
- readonly cursor?: string | undefined
231
- }["cursor"]
232
- }
233
-
234
- export type SessionsListOutput = {
235
- readonly data: ReadonlyArray<{
236
- readonly id: string
237
- readonly parentID?: string
238
- readonly projectID: string
239
- readonly agent?: string
240
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string }
241
- readonly cost: number
242
- readonly tokens: {
243
- readonly input: number
244
- readonly output: number
245
- readonly reasoning: number
246
- readonly cache: { readonly read: number; readonly write: number }
247
- }
248
- readonly time: { readonly created: number; readonly updated: number; readonly archived?: number }
249
- readonly title: string
250
- readonly location: { readonly directory: string; readonly workspaceID?: string }
251
- readonly subpath?: string
252
- readonly revert?: {
253
- readonly messageID: string
254
- readonly partID?: string
255
- readonly snapshot?: string
256
- readonly diff?: string
257
- readonly files?: ReadonlyArray<{
258
- readonly path: string
259
- readonly status: "added" | "modified" | "deleted"
260
- readonly additions: number
261
- readonly deletions: number
262
- readonly patch: string
263
- }>
264
- }
265
- }>
266
- readonly cursor: { readonly previous?: string | null; readonly next?: string | null }
267
- }
268
-
269
- export type SessionsCreateInput = {
270
- readonly id?: {
271
- readonly id?: string | null
272
- readonly agent?: string | null
273
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string } | null
274
- readonly location?: { readonly directory: string; readonly workspaceID?: string } | null
275
- }["id"]
276
- readonly agent?: {
277
- readonly id?: string | null
278
- readonly agent?: string | null
279
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string } | null
280
- readonly location?: { readonly directory: string; readonly workspaceID?: string } | null
281
- }["agent"]
282
- readonly model?: {
283
- readonly id?: string | null
284
- readonly agent?: string | null
285
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string } | null
286
- readonly location?: { readonly directory: string; readonly workspaceID?: string } | null
287
- }["model"]
288
- readonly location?: {
289
- readonly id?: string | null
290
- readonly agent?: string | null
291
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string } | null
292
- readonly location?: { readonly directory: string; readonly workspaceID?: string } | null
293
- }["location"]
294
- }
295
-
296
- export type SessionsCreateOutput = {
297
- readonly data: {
298
- readonly id: string
299
- readonly parentID?: string
300
- readonly projectID: string
301
- readonly agent?: string
302
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string }
303
- readonly cost: number
304
- readonly tokens: {
305
- readonly input: number
306
- readonly output: number
307
- readonly reasoning: number
308
- readonly cache: { readonly read: number; readonly write: number }
309
- }
310
- readonly time: { readonly created: number; readonly updated: number; readonly archived?: number }
311
- readonly title: string
312
- readonly location: { readonly directory: string; readonly workspaceID?: string }
313
- readonly subpath?: string
314
- readonly revert?: {
315
- readonly messageID: string
316
- readonly partID?: string
317
- readonly snapshot?: string
318
- readonly diff?: string
319
- readonly files?: ReadonlyArray<{
320
- readonly path: string
321
- readonly status: "added" | "modified" | "deleted"
322
- readonly additions: number
323
- readonly deletions: number
324
- readonly patch: string
325
- }>
326
- }
327
- }
328
- }["data"]
329
-
330
- export type SessionsActiveOutput = { readonly data: { readonly [x: string]: { readonly type: "running" } } }["data"]
331
-
332
- export type SessionsGetInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
333
-
334
- export type SessionsGetOutput = {
335
- readonly data: {
336
- readonly id: string
337
- readonly parentID?: string
338
- readonly projectID: string
339
- readonly agent?: string
340
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string }
341
- readonly cost: number
342
- readonly tokens: {
343
- readonly input: number
344
- readonly output: number
345
- readonly reasoning: number
346
- readonly cache: { readonly read: number; readonly write: number }
347
- }
348
- readonly time: { readonly created: number; readonly updated: number; readonly archived?: number }
349
- readonly title: string
350
- readonly location: { readonly directory: string; readonly workspaceID?: string }
351
- readonly subpath?: string
352
- readonly revert?: {
353
- readonly messageID: string
354
- readonly partID?: string
355
- readonly snapshot?: string
356
- readonly diff?: string
357
- readonly files?: ReadonlyArray<{
358
- readonly path: string
359
- readonly status: "added" | "modified" | "deleted"
360
- readonly additions: number
361
- readonly deletions: number
362
- readonly patch: string
363
- }>
364
- }
365
- }
366
- }["data"]
367
-
368
- export type SessionsSwitchAgentInput = {
369
- readonly sessionID: { readonly sessionID: string }["sessionID"]
370
- readonly agent: { readonly agent: string }["agent"]
371
- }
372
-
373
- export type SessionsSwitchAgentOutput = void
374
-
375
- export type SessionsSwitchModelInput = {
376
- readonly sessionID: { readonly sessionID: string }["sessionID"]
377
- readonly model: {
378
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
379
- }["model"]
380
- }
381
-
382
- export type SessionsSwitchModelOutput = void
383
-
384
- export type SessionsPromptInput = {
385
- readonly sessionID: { readonly sessionID: string }["sessionID"]
386
- readonly id?: {
387
- readonly id?: string | null
388
- readonly prompt: {
389
- readonly text: string
390
- readonly files?: ReadonlyArray<{
391
- readonly uri: string
392
- readonly name?: string
393
- readonly description?: string
394
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
395
- }>
396
- readonly agents?: ReadonlyArray<{
397
- readonly name: string
398
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
399
- }>
400
- }
401
- readonly delivery?: "steer" | "queue" | null
402
- readonly resume?: boolean | null
403
- }["id"]
404
- readonly prompt: {
405
- readonly id?: string | null
406
- readonly prompt: {
407
- readonly text: string
408
- readonly files?: ReadonlyArray<{
409
- readonly uri: string
410
- readonly name?: string
411
- readonly description?: string
412
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
413
- }>
414
- readonly agents?: ReadonlyArray<{
415
- readonly name: string
416
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
417
- }>
418
- }
419
- readonly delivery?: "steer" | "queue" | null
420
- readonly resume?: boolean | null
421
- }["prompt"]
422
- readonly delivery?: {
423
- readonly id?: string | null
424
- readonly prompt: {
425
- readonly text: string
426
- readonly files?: ReadonlyArray<{
427
- readonly uri: string
428
- readonly name?: string
429
- readonly description?: string
430
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
431
- }>
432
- readonly agents?: ReadonlyArray<{
433
- readonly name: string
434
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
435
- }>
436
- }
437
- readonly delivery?: "steer" | "queue" | null
438
- readonly resume?: boolean | null
439
- }["delivery"]
440
- readonly resume?: {
441
- readonly id?: string | null
442
- readonly prompt: {
443
- readonly text: string
444
- readonly files?: ReadonlyArray<{
445
- readonly uri: string
446
- readonly name?: string
447
- readonly description?: string
448
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
449
- }>
450
- readonly agents?: ReadonlyArray<{
451
- readonly name: string
452
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
453
- }>
454
- }
455
- readonly delivery?: "steer" | "queue" | null
456
- readonly resume?: boolean | null
457
- }["resume"]
458
- }
459
-
460
- export type SessionsPromptOutput = {
461
- readonly data: {
462
- readonly admittedSeq: number
463
- readonly id: string
464
- readonly sessionID: string
465
- readonly prompt: {
466
- readonly text: string
467
- readonly files?: ReadonlyArray<{
468
- readonly uri: string
469
- readonly mime: string
470
- readonly name?: string
471
- readonly description?: string
472
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
473
- }>
474
- readonly agents?: ReadonlyArray<{
475
- readonly name: string
476
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
477
- }>
478
- }
479
- readonly delivery: "steer" | "queue"
480
- readonly timeCreated: number
481
- readonly promotedSeq?: number
482
- }
483
- }["data"]
484
-
485
- export type SessionsCompactInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
486
-
487
- export type SessionsCompactOutput = void
488
-
489
- export type SessionsWaitInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
490
-
491
- export type SessionsWaitOutput = void
492
-
493
- export type SessionsStageInput = {
494
- readonly sessionID: { readonly sessionID: string }["sessionID"]
495
- readonly messageID: { readonly messageID: string; readonly files?: boolean | undefined }["messageID"]
496
- readonly files?: { readonly messageID: string; readonly files?: boolean | undefined }["files"]
497
- }
498
-
499
- export type SessionsStageOutput = {
500
- readonly data: {
501
- readonly messageID: string
502
- readonly partID?: string
503
- readonly snapshot?: string
504
- readonly diff?: string
505
- readonly files?: ReadonlyArray<{
506
- readonly path: string
507
- readonly status: "added" | "modified" | "deleted"
508
- readonly additions: number
509
- readonly deletions: number
510
- readonly patch: string
511
- }>
512
- }
513
- }["data"]
514
-
515
- export type SessionsClearInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
516
-
517
- export type SessionsClearOutput = void
518
-
519
- export type SessionsCommitInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
520
-
521
- export type SessionsCommitOutput = void
522
-
523
- export type SessionsContextInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
524
-
525
- export type SessionsContextOutput = {
526
- readonly data: ReadonlyArray<
527
- | {
528
- readonly id: string
529
- readonly metadata?: { readonly [x: string]: JsonValue }
530
- readonly time: { readonly created: number }
531
- readonly type: "agent-switched"
532
- readonly agent: string
533
- }
534
- | {
535
- readonly id: string
536
- readonly metadata?: { readonly [x: string]: JsonValue }
537
- readonly time: { readonly created: number }
538
- readonly type: "model-switched"
539
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
540
- }
541
- | {
542
- readonly id: string
543
- readonly metadata?: { readonly [x: string]: JsonValue }
544
- readonly time: { readonly created: number }
545
- readonly text: string
546
- readonly files?: ReadonlyArray<{
547
- readonly uri: string
548
- readonly mime: string
549
- readonly name?: string
550
- readonly description?: string
551
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
552
- }>
553
- readonly agents?: ReadonlyArray<{
554
- readonly name: string
555
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
556
- }>
557
- readonly type: "user"
558
- }
559
- | {
560
- readonly id: string
561
- readonly metadata?: { readonly [x: string]: JsonValue }
562
- readonly time: { readonly created: number }
563
- readonly sessionID: string
564
- readonly text: string
565
- readonly type: "synthetic"
566
- }
567
- | {
568
- readonly id: string
569
- readonly metadata?: { readonly [x: string]: JsonValue }
570
- readonly time: { readonly created: number }
571
- readonly type: "system"
572
- readonly text: string
573
- }
574
- | {
575
- readonly id: string
576
- readonly metadata?: { readonly [x: string]: JsonValue }
577
- readonly time: { readonly created: number; readonly completed?: number }
578
- readonly type: "shell"
579
- readonly callID: string
580
- readonly command: string
581
- readonly output: string
582
- }
583
- | {
584
- readonly id: string
585
- readonly metadata?: { readonly [x: string]: JsonValue }
586
- readonly time: { readonly created: number; readonly completed?: number }
587
- readonly type: "assistant"
588
- readonly agent: string
589
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
590
- readonly content: ReadonlyArray<
591
- | { readonly type: "text"; readonly id: string; readonly text: string }
592
- | {
593
- readonly type: "reasoning"
594
- readonly id: string
595
- readonly text: string
596
- readonly providerMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
597
- readonly time?: { readonly created: number; readonly completed?: number }
598
- }
599
- | {
600
- readonly type: "tool"
601
- readonly id: string
602
- readonly name: string
603
- readonly provider?: {
604
- readonly executed: boolean
605
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
606
- readonly resultMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
607
- }
608
- readonly state:
609
- | { readonly status: "pending"; readonly input: string }
610
- | {
611
- readonly status: "running"
612
- readonly input: { readonly [x: string]: JsonValue }
613
- readonly structured: { readonly [x: string]: JsonValue }
614
- readonly content: ReadonlyArray<
615
- | { readonly type: "text"; readonly text: string }
616
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
617
- >
618
- }
619
- | {
620
- readonly status: "completed"
621
- readonly input: { readonly [x: string]: JsonValue }
622
- readonly attachments?: ReadonlyArray<{
623
- readonly uri: string
624
- readonly mime: string
625
- readonly name?: string
626
- readonly description?: string
627
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
628
- }>
629
- readonly content: ReadonlyArray<
630
- | { readonly type: "text"; readonly text: string }
631
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
632
- >
633
- readonly outputPaths?: ReadonlyArray<string>
634
- readonly structured: { readonly [x: string]: JsonValue }
635
- readonly result?: JsonValue
636
- }
637
- | {
638
- readonly status: "error"
639
- readonly input: { readonly [x: string]: JsonValue }
640
- readonly content: ReadonlyArray<
641
- | { readonly type: "text"; readonly text: string }
642
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
643
- >
644
- readonly structured: { readonly [x: string]: JsonValue }
645
- readonly error: { readonly type: "unknown"; readonly message: string }
646
- readonly result?: JsonValue
647
- }
648
- readonly time: {
649
- readonly created: number
650
- readonly ran?: number
651
- readonly completed?: number
652
- readonly pruned?: number
653
- }
654
- }
655
- >
656
- readonly snapshot?: { readonly start?: string; readonly end?: string; readonly files?: ReadonlyArray<string> }
657
- readonly finish?: string
658
- readonly cost?: number
659
- readonly tokens?: {
660
- readonly input: number
661
- readonly output: number
662
- readonly reasoning: number
663
- readonly cache: { readonly read: number; readonly write: number }
664
- }
665
- readonly error?: { readonly type: "unknown"; readonly message: string }
666
- }
667
- | {
668
- readonly type: "compaction"
669
- readonly reason: "auto" | "manual"
670
- readonly summary: string
671
- readonly recent: string
672
- readonly id: string
673
- readonly metadata?: { readonly [x: string]: JsonValue }
674
- readonly time: { readonly created: number }
675
- }
676
- >
677
- }["data"]
678
-
679
- export type SessionsHistoryInput = {
680
- readonly sessionID: { readonly sessionID: string }["sessionID"]
681
- readonly limit?: { readonly limit?: number | undefined; readonly after?: number | undefined }["limit"]
682
- readonly after?: { readonly limit?: number | undefined; readonly after?: number | undefined }["after"]
683
- }
684
-
685
- export type SessionsHistoryOutput = {
686
- readonly data: ReadonlyArray<
687
- | {
688
- readonly id: string
689
- readonly metadata?: { readonly [x: string]: JsonValue }
690
- readonly type: "session.next.agent.switched"
691
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
692
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
693
- readonly data: {
694
- readonly timestamp: number
695
- readonly sessionID: string
696
- readonly messageID: string
697
- readonly agent: string
698
- }
699
- }
700
- | {
701
- readonly id: string
702
- readonly metadata?: { readonly [x: string]: JsonValue }
703
- readonly type: "session.next.model.switched"
704
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
705
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
706
- readonly data: {
707
- readonly timestamp: number
708
- readonly sessionID: string
709
- readonly messageID: string
710
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
711
- }
712
- }
713
- | {
714
- readonly id: string
715
- readonly metadata?: { readonly [x: string]: JsonValue }
716
- readonly type: "session.next.moved"
717
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
718
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
719
- readonly data: {
720
- readonly timestamp: number
721
- readonly sessionID: string
722
- readonly location: { readonly directory: string; readonly workspaceID?: string }
723
- readonly subdirectory?: string
724
- }
725
- }
726
- | {
727
- readonly id: string
728
- readonly metadata?: { readonly [x: string]: JsonValue }
729
- readonly type: "session.next.prompted"
730
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
731
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
732
- readonly data: {
733
- readonly timestamp: number
734
- readonly sessionID: string
735
- readonly messageID: string
736
- readonly prompt: {
737
- readonly text: string
738
- readonly files?: ReadonlyArray<{
739
- readonly uri: string
740
- readonly mime: string
741
- readonly name?: string
742
- readonly description?: string
743
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
744
- }>
745
- readonly agents?: ReadonlyArray<{
746
- readonly name: string
747
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
748
- }>
749
- }
750
- readonly delivery: "steer" | "queue"
751
- }
752
- }
753
- | {
754
- readonly id: string
755
- readonly metadata?: { readonly [x: string]: JsonValue }
756
- readonly type: "session.next.prompt.admitted"
757
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
758
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
759
- readonly data: {
760
- readonly timestamp: number
761
- readonly sessionID: string
762
- readonly messageID: string
763
- readonly prompt: {
764
- readonly text: string
765
- readonly files?: ReadonlyArray<{
766
- readonly uri: string
767
- readonly mime: string
768
- readonly name?: string
769
- readonly description?: string
770
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
771
- }>
772
- readonly agents?: ReadonlyArray<{
773
- readonly name: string
774
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
775
- }>
776
- }
777
- readonly delivery: "steer" | "queue"
778
- }
779
- }
780
- | {
781
- readonly id: string
782
- readonly metadata?: { readonly [x: string]: JsonValue }
783
- readonly type: "session.next.context.updated"
784
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
785
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
786
- readonly data: {
787
- readonly timestamp: number
788
- readonly sessionID: string
789
- readonly messageID: string
790
- readonly text: string
791
- }
792
- }
793
- | {
794
- readonly id: string
795
- readonly metadata?: { readonly [x: string]: JsonValue }
796
- readonly type: "session.next.synthetic"
797
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
798
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
799
- readonly data: {
800
- readonly timestamp: number
801
- readonly sessionID: string
802
- readonly messageID: string
803
- readonly text: string
804
- }
805
- }
806
- | {
807
- readonly id: string
808
- readonly metadata?: { readonly [x: string]: JsonValue }
809
- readonly type: "session.next.shell.started"
810
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
811
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
812
- readonly data: {
813
- readonly timestamp: number
814
- readonly sessionID: string
815
- readonly messageID: string
816
- readonly callID: string
817
- readonly command: string
818
- }
819
- }
820
- | {
821
- readonly id: string
822
- readonly metadata?: { readonly [x: string]: JsonValue }
823
- readonly type: "session.next.shell.ended"
824
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
825
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
826
- readonly data: {
827
- readonly timestamp: number
828
- readonly sessionID: string
829
- readonly callID: string
830
- readonly output: string
831
- }
832
- }
833
- | {
834
- readonly id: string
835
- readonly metadata?: { readonly [x: string]: JsonValue }
836
- readonly type: "session.next.step.started"
837
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
838
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
839
- readonly data: {
840
- readonly timestamp: number
841
- readonly sessionID: string
842
- readonly assistantMessageID: string
843
- readonly agent: string
844
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
845
- readonly snapshot?: string
846
- }
847
- }
848
- | {
849
- readonly id: string
850
- readonly metadata?: { readonly [x: string]: JsonValue }
851
- readonly type: "session.next.step.ended"
852
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
853
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
854
- readonly data: {
855
- readonly timestamp: number
856
- readonly sessionID: string
857
- readonly assistantMessageID: string
858
- readonly finish: string
859
- readonly cost: number
860
- readonly tokens: {
861
- readonly input: number
862
- readonly output: number
863
- readonly reasoning: number
864
- readonly cache: { readonly read: number; readonly write: number }
865
- }
866
- readonly snapshot?: string
867
- readonly files?: ReadonlyArray<string>
868
- }
869
- }
870
- | {
871
- readonly id: string
872
- readonly metadata?: { readonly [x: string]: JsonValue }
873
- readonly type: "session.next.step.failed"
874
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
875
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
876
- readonly data: {
877
- readonly timestamp: number
878
- readonly sessionID: string
879
- readonly assistantMessageID: string
880
- readonly error: { readonly type: "unknown"; readonly message: string }
881
- }
882
- }
883
- | {
884
- readonly id: string
885
- readonly metadata?: { readonly [x: string]: JsonValue }
886
- readonly type: "session.next.text.started"
887
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
888
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
889
- readonly data: {
890
- readonly timestamp: number
891
- readonly sessionID: string
892
- readonly assistantMessageID: string
893
- readonly textID: string
894
- }
895
- }
896
- | {
897
- readonly id: string
898
- readonly metadata?: { readonly [x: string]: JsonValue }
899
- readonly type: "session.next.text.ended"
900
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
901
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
902
- readonly data: {
903
- readonly timestamp: number
904
- readonly sessionID: string
905
- readonly assistantMessageID: string
906
- readonly textID: string
907
- readonly text: string
908
- }
909
- }
910
- | {
911
- readonly id: string
912
- readonly metadata?: { readonly [x: string]: JsonValue }
913
- readonly type: "session.next.tool.input.started"
914
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
915
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
916
- readonly data: {
917
- readonly timestamp: number
918
- readonly sessionID: string
919
- readonly assistantMessageID: string
920
- readonly callID: string
921
- readonly name: string
922
- }
923
- }
924
- | {
925
- readonly id: string
926
- readonly metadata?: { readonly [x: string]: JsonValue }
927
- readonly type: "session.next.tool.input.ended"
928
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
929
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
930
- readonly data: {
931
- readonly timestamp: number
932
- readonly sessionID: string
933
- readonly assistantMessageID: string
934
- readonly callID: string
935
- readonly text: string
936
- }
937
- }
938
- | {
939
- readonly id: string
940
- readonly metadata?: { readonly [x: string]: JsonValue }
941
- readonly type: "session.next.tool.called"
942
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
943
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
944
- readonly data: {
945
- readonly timestamp: number
946
- readonly sessionID: string
947
- readonly assistantMessageID: string
948
- readonly callID: string
949
- readonly tool: string
950
- readonly input: { readonly [x: string]: JsonValue }
951
- readonly provider: {
952
- readonly executed: boolean
953
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
954
- }
955
- }
956
- }
957
- | {
958
- readonly id: string
959
- readonly metadata?: { readonly [x: string]: JsonValue }
960
- readonly type: "session.next.tool.progress"
961
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
962
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
963
- readonly data: {
964
- readonly timestamp: number
965
- readonly sessionID: string
966
- readonly assistantMessageID: string
967
- readonly callID: string
968
- readonly structured: { readonly [x: string]: JsonValue }
969
- readonly content: ReadonlyArray<
970
- | { readonly type: "text"; readonly text: string }
971
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
972
- >
973
- }
974
- }
975
- | {
976
- readonly id: string
977
- readonly metadata?: { readonly [x: string]: JsonValue }
978
- readonly type: "session.next.tool.success"
979
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
980
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
981
- readonly data: {
982
- readonly timestamp: number
983
- readonly sessionID: string
984
- readonly assistantMessageID: string
985
- readonly callID: string
986
- readonly structured: { readonly [x: string]: JsonValue }
987
- readonly content: ReadonlyArray<
988
- | { readonly type: "text"; readonly text: string }
989
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
990
- >
991
- readonly outputPaths?: ReadonlyArray<string>
992
- readonly result?: JsonValue
993
- readonly provider: {
994
- readonly executed: boolean
995
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
996
- }
997
- }
998
- }
999
- | {
1000
- readonly id: string
1001
- readonly metadata?: { readonly [x: string]: JsonValue }
1002
- readonly type: "session.next.tool.failed"
1003
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1004
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1005
- readonly data: {
1006
- readonly timestamp: number
1007
- readonly sessionID: string
1008
- readonly assistantMessageID: string
1009
- readonly callID: string
1010
- readonly error: { readonly type: "unknown"; readonly message: string }
1011
- readonly result?: JsonValue
1012
- readonly provider: {
1013
- readonly executed: boolean
1014
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1015
- }
1016
- }
1017
- }
1018
- | {
1019
- readonly id: string
1020
- readonly metadata?: { readonly [x: string]: JsonValue }
1021
- readonly type: "session.next.reasoning.started"
1022
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1023
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1024
- readonly data: {
1025
- readonly timestamp: number
1026
- readonly sessionID: string
1027
- readonly assistantMessageID: string
1028
- readonly reasoningID: string
1029
- readonly providerMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1030
- }
1031
- }
1032
- | {
1033
- readonly id: string
1034
- readonly metadata?: { readonly [x: string]: JsonValue }
1035
- readonly type: "session.next.reasoning.ended"
1036
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1037
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1038
- readonly data: {
1039
- readonly timestamp: number
1040
- readonly sessionID: string
1041
- readonly assistantMessageID: string
1042
- readonly reasoningID: string
1043
- readonly text: string
1044
- readonly providerMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1045
- }
1046
- }
1047
- | {
1048
- readonly id: string
1049
- readonly metadata?: { readonly [x: string]: JsonValue }
1050
- readonly type: "session.next.retried"
1051
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1052
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1053
- readonly data: {
1054
- readonly timestamp: number
1055
- readonly sessionID: string
1056
- readonly attempt: number
1057
- readonly error: {
1058
- readonly message: string
1059
- readonly statusCode?: number
1060
- readonly isRetryable: boolean
1061
- readonly responseHeaders?: { readonly [x: string]: string }
1062
- readonly responseBody?: string
1063
- readonly metadata?: { readonly [x: string]: string }
1064
- }
1065
- }
1066
- }
1067
- | {
1068
- readonly id: string
1069
- readonly metadata?: { readonly [x: string]: JsonValue }
1070
- readonly type: "session.next.compaction.started"
1071
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1072
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1073
- readonly data: {
1074
- readonly timestamp: number
1075
- readonly sessionID: string
1076
- readonly messageID: string
1077
- readonly reason: "auto" | "manual"
1078
- }
1079
- }
1080
- | {
1081
- readonly id: string
1082
- readonly metadata?: { readonly [x: string]: JsonValue }
1083
- readonly type: "session.next.compaction.ended"
1084
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1085
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1086
- readonly data: {
1087
- readonly timestamp: number
1088
- readonly sessionID: string
1089
- readonly messageID: string
1090
- readonly reason: "auto" | "manual"
1091
- readonly text: string
1092
- readonly recent: string
1093
- }
1094
- }
1095
- | {
1096
- readonly id: string
1097
- readonly metadata?: { readonly [x: string]: JsonValue }
1098
- readonly type: "session.next.revert.staged"
1099
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1100
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1101
- readonly data: {
1102
- readonly timestamp: number
1103
- readonly sessionID: string
1104
- readonly revert: {
1105
- readonly messageID: string
1106
- readonly partID?: string
1107
- readonly snapshot?: string
1108
- readonly diff?: string
1109
- readonly files?: ReadonlyArray<{
1110
- readonly path: string
1111
- readonly status: "added" | "modified" | "deleted"
1112
- readonly additions: number
1113
- readonly deletions: number
1114
- readonly patch: string
1115
- }>
1116
- }
1117
- }
1118
- }
1119
- | {
1120
- readonly id: string
1121
- readonly metadata?: { readonly [x: string]: JsonValue }
1122
- readonly type: "session.next.revert.cleared"
1123
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1124
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1125
- readonly data: { readonly timestamp: number; readonly sessionID: string }
1126
- }
1127
- | {
1128
- readonly id: string
1129
- readonly metadata?: { readonly [x: string]: JsonValue }
1130
- readonly type: "session.next.revert.committed"
1131
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1132
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1133
- readonly data: { readonly timestamp: number; readonly sessionID: string; readonly messageID: string }
1134
- }
1135
- >
1136
- readonly hasMore: boolean
1137
- }
1138
-
1139
- export type SessionsEventsInput = {
1140
- readonly sessionID: { readonly sessionID: string }["sessionID"]
1141
- readonly after?: { readonly after?: number | undefined }["after"]
1142
- }
1143
-
1144
- export type SessionsEventsOutput =
1145
- | {
1146
- readonly id: string
1147
- readonly metadata?: { readonly [x: string]: unknown }
1148
- readonly type: "session.next.agent.switched"
1149
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1150
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1151
- readonly data: {
1152
- readonly timestamp: number
1153
- readonly sessionID: string
1154
- readonly messageID: string
1155
- readonly agent: string
1156
- }
1157
- }
1158
- | {
1159
- readonly id: string
1160
- readonly metadata?: { readonly [x: string]: unknown }
1161
- readonly type: "session.next.model.switched"
1162
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1163
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1164
- readonly data: {
1165
- readonly timestamp: number
1166
- readonly sessionID: string
1167
- readonly messageID: string
1168
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
1169
- }
1170
- }
1171
- | {
1172
- readonly id: string
1173
- readonly metadata?: { readonly [x: string]: unknown }
1174
- readonly type: "session.next.moved"
1175
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1176
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1177
- readonly data: {
1178
- readonly timestamp: number
1179
- readonly sessionID: string
1180
- readonly location: { readonly directory: string; readonly workspaceID?: string }
1181
- readonly subdirectory?: string
1182
- }
1183
- }
1184
- | {
1185
- readonly id: string
1186
- readonly metadata?: { readonly [x: string]: unknown }
1187
- readonly type: "session.next.prompted"
1188
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1189
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1190
- readonly data: {
1191
- readonly timestamp: number
1192
- readonly sessionID: string
1193
- readonly messageID: string
1194
- readonly prompt: {
1195
- readonly text: string
1196
- readonly files?: ReadonlyArray<{
1197
- readonly uri: string
1198
- readonly mime: string
1199
- readonly name?: string
1200
- readonly description?: string
1201
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1202
- }>
1203
- readonly agents?: ReadonlyArray<{
1204
- readonly name: string
1205
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1206
- }>
1207
- }
1208
- readonly delivery: "steer" | "queue"
1209
- }
1210
- }
1211
- | {
1212
- readonly id: string
1213
- readonly metadata?: { readonly [x: string]: unknown }
1214
- readonly type: "session.next.prompt.admitted"
1215
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1216
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1217
- readonly data: {
1218
- readonly timestamp: number
1219
- readonly sessionID: string
1220
- readonly messageID: string
1221
- readonly prompt: {
1222
- readonly text: string
1223
- readonly files?: ReadonlyArray<{
1224
- readonly uri: string
1225
- readonly mime: string
1226
- readonly name?: string
1227
- readonly description?: string
1228
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1229
- }>
1230
- readonly agents?: ReadonlyArray<{
1231
- readonly name: string
1232
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1233
- }>
1234
- }
1235
- readonly delivery: "steer" | "queue"
1236
- }
1237
- }
1238
- | {
1239
- readonly id: string
1240
- readonly metadata?: { readonly [x: string]: unknown }
1241
- readonly type: "session.next.context.updated"
1242
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1243
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1244
- readonly data: {
1245
- readonly timestamp: number
1246
- readonly sessionID: string
1247
- readonly messageID: string
1248
- readonly text: string
1249
- }
1250
- }
1251
- | {
1252
- readonly id: string
1253
- readonly metadata?: { readonly [x: string]: unknown }
1254
- readonly type: "session.next.synthetic"
1255
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1256
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1257
- readonly data: {
1258
- readonly timestamp: number
1259
- readonly sessionID: string
1260
- readonly messageID: string
1261
- readonly text: string
1262
- }
1263
- }
1264
- | {
1265
- readonly id: string
1266
- readonly metadata?: { readonly [x: string]: unknown }
1267
- readonly type: "session.next.shell.started"
1268
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1269
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1270
- readonly data: {
1271
- readonly timestamp: number
1272
- readonly sessionID: string
1273
- readonly messageID: string
1274
- readonly callID: string
1275
- readonly command: string
1276
- }
1277
- }
1278
- | {
1279
- readonly id: string
1280
- readonly metadata?: { readonly [x: string]: unknown }
1281
- readonly type: "session.next.shell.ended"
1282
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1283
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1284
- readonly data: {
1285
- readonly timestamp: number
1286
- readonly sessionID: string
1287
- readonly callID: string
1288
- readonly output: string
1289
- }
1290
- }
1291
- | {
1292
- readonly id: string
1293
- readonly metadata?: { readonly [x: string]: unknown }
1294
- readonly type: "session.next.step.started"
1295
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1296
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1297
- readonly data: {
1298
- readonly timestamp: number
1299
- readonly sessionID: string
1300
- readonly assistantMessageID: string
1301
- readonly agent: string
1302
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
1303
- readonly snapshot?: string
1304
- }
1305
- }
1306
- | {
1307
- readonly id: string
1308
- readonly metadata?: { readonly [x: string]: unknown }
1309
- readonly type: "session.next.step.ended"
1310
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1311
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1312
- readonly data: {
1313
- readonly timestamp: number
1314
- readonly sessionID: string
1315
- readonly assistantMessageID: string
1316
- readonly finish: string
1317
- readonly cost: number
1318
- readonly tokens: {
1319
- readonly input: number
1320
- readonly output: number
1321
- readonly reasoning: number
1322
- readonly cache: { readonly read: number; readonly write: number }
1323
- }
1324
- readonly snapshot?: string
1325
- readonly files?: ReadonlyArray<string>
1326
- }
1327
- }
1328
- | {
1329
- readonly id: string
1330
- readonly metadata?: { readonly [x: string]: unknown }
1331
- readonly type: "session.next.step.failed"
1332
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1333
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1334
- readonly data: {
1335
- readonly timestamp: number
1336
- readonly sessionID: string
1337
- readonly assistantMessageID: string
1338
- readonly error: { readonly type: "unknown"; readonly message: string }
1339
- }
1340
- }
1341
- | {
1342
- readonly id: string
1343
- readonly metadata?: { readonly [x: string]: unknown }
1344
- readonly type: "session.next.text.started"
1345
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1346
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1347
- readonly data: {
1348
- readonly timestamp: number
1349
- readonly sessionID: string
1350
- readonly assistantMessageID: string
1351
- readonly textID: string
1352
- }
1353
- }
1354
- | {
1355
- readonly id: string
1356
- readonly metadata?: { readonly [x: string]: unknown }
1357
- readonly type: "session.next.text.ended"
1358
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1359
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1360
- readonly data: {
1361
- readonly timestamp: number
1362
- readonly sessionID: string
1363
- readonly assistantMessageID: string
1364
- readonly textID: string
1365
- readonly text: string
1366
- }
1367
- }
1368
- | {
1369
- readonly id: string
1370
- readonly metadata?: { readonly [x: string]: unknown }
1371
- readonly type: "session.next.tool.input.started"
1372
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1373
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1374
- readonly data: {
1375
- readonly timestamp: number
1376
- readonly sessionID: string
1377
- readonly assistantMessageID: string
1378
- readonly callID: string
1379
- readonly name: string
1380
- }
1381
- }
1382
- | {
1383
- readonly id: string
1384
- readonly metadata?: { readonly [x: string]: unknown }
1385
- readonly type: "session.next.tool.input.ended"
1386
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1387
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1388
- readonly data: {
1389
- readonly timestamp: number
1390
- readonly sessionID: string
1391
- readonly assistantMessageID: string
1392
- readonly callID: string
1393
- readonly text: string
1394
- }
1395
- }
1396
- | {
1397
- readonly id: string
1398
- readonly metadata?: { readonly [x: string]: unknown }
1399
- readonly type: "session.next.tool.called"
1400
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1401
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1402
- readonly data: {
1403
- readonly timestamp: number
1404
- readonly sessionID: string
1405
- readonly assistantMessageID: string
1406
- readonly callID: string
1407
- readonly tool: string
1408
- readonly input: { readonly [x: string]: unknown }
1409
- readonly provider: {
1410
- readonly executed: boolean
1411
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: unknown } }
1412
- }
1413
- }
1414
- }
1415
- | {
1416
- readonly id: string
1417
- readonly metadata?: { readonly [x: string]: unknown }
1418
- readonly type: "session.next.tool.progress"
1419
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1420
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1421
- readonly data: {
1422
- readonly timestamp: number
1423
- readonly sessionID: string
1424
- readonly assistantMessageID: string
1425
- readonly callID: string
1426
- readonly structured: { readonly [x: string]: unknown }
1427
- readonly content: ReadonlyArray<
1428
- | { readonly type: "text"; readonly text: string }
1429
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1430
- >
1431
- }
1432
- }
1433
- | {
1434
- readonly id: string
1435
- readonly metadata?: { readonly [x: string]: unknown }
1436
- readonly type: "session.next.tool.success"
1437
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1438
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1439
- readonly data: {
1440
- readonly timestamp: number
1441
- readonly sessionID: string
1442
- readonly assistantMessageID: string
1443
- readonly callID: string
1444
- readonly structured: { readonly [x: string]: unknown }
1445
- readonly content: ReadonlyArray<
1446
- | { readonly type: "text"; readonly text: string }
1447
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1448
- >
1449
- readonly outputPaths?: ReadonlyArray<string>
1450
- readonly result?: unknown
1451
- readonly provider: {
1452
- readonly executed: boolean
1453
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: unknown } }
1454
- }
1455
- }
1456
- }
1457
- | {
1458
- readonly id: string
1459
- readonly metadata?: { readonly [x: string]: unknown }
1460
- readonly type: "session.next.tool.failed"
1461
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1462
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1463
- readonly data: {
1464
- readonly timestamp: number
1465
- readonly sessionID: string
1466
- readonly assistantMessageID: string
1467
- readonly callID: string
1468
- readonly error: { readonly type: "unknown"; readonly message: string }
1469
- readonly result?: unknown
1470
- readonly provider: {
1471
- readonly executed: boolean
1472
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: unknown } }
1473
- }
1474
- }
1475
- }
1476
- | {
1477
- readonly id: string
1478
- readonly metadata?: { readonly [x: string]: unknown }
1479
- readonly type: "session.next.reasoning.started"
1480
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1481
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1482
- readonly data: {
1483
- readonly timestamp: number
1484
- readonly sessionID: string
1485
- readonly assistantMessageID: string
1486
- readonly reasoningID: string
1487
- readonly providerMetadata?: { readonly [x: string]: { readonly [x: string]: unknown } }
1488
- }
1489
- }
1490
- | {
1491
- readonly id: string
1492
- readonly metadata?: { readonly [x: string]: unknown }
1493
- readonly type: "session.next.reasoning.ended"
1494
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1495
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1496
- readonly data: {
1497
- readonly timestamp: number
1498
- readonly sessionID: string
1499
- readonly assistantMessageID: string
1500
- readonly reasoningID: string
1501
- readonly text: string
1502
- readonly providerMetadata?: { readonly [x: string]: { readonly [x: string]: unknown } }
1503
- }
1504
- }
1505
- | {
1506
- readonly id: string
1507
- readonly metadata?: { readonly [x: string]: unknown }
1508
- readonly type: "session.next.retried"
1509
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1510
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1511
- readonly data: {
1512
- readonly timestamp: number
1513
- readonly sessionID: string
1514
- readonly attempt: number
1515
- readonly error: {
1516
- readonly message: string
1517
- readonly statusCode?: number
1518
- readonly isRetryable: boolean
1519
- readonly responseHeaders?: { readonly [x: string]: string }
1520
- readonly responseBody?: string
1521
- readonly metadata?: { readonly [x: string]: string }
1522
- }
1523
- }
1524
- }
1525
- | {
1526
- readonly id: string
1527
- readonly metadata?: { readonly [x: string]: unknown }
1528
- readonly type: "session.next.compaction.started"
1529
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1530
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1531
- readonly data: {
1532
- readonly timestamp: number
1533
- readonly sessionID: string
1534
- readonly messageID: string
1535
- readonly reason: "auto" | "manual"
1536
- }
1537
- }
1538
- | {
1539
- readonly id: string
1540
- readonly metadata?: { readonly [x: string]: unknown }
1541
- readonly type: "session.next.compaction.ended"
1542
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1543
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1544
- readonly data: {
1545
- readonly timestamp: number
1546
- readonly sessionID: string
1547
- readonly messageID: string
1548
- readonly reason: "auto" | "manual"
1549
- readonly text: string
1550
- readonly recent: string
1551
- }
1552
- }
1553
- | {
1554
- readonly id: string
1555
- readonly metadata?: { readonly [x: string]: unknown }
1556
- readonly type: "session.next.revert.staged"
1557
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1558
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1559
- readonly data: {
1560
- readonly timestamp: number
1561
- readonly sessionID: string
1562
- readonly revert: {
1563
- readonly messageID: string
1564
- readonly partID?: string
1565
- readonly snapshot?: string
1566
- readonly diff?: string
1567
- readonly files?: ReadonlyArray<{
1568
- readonly path: string
1569
- readonly status: "added" | "modified" | "deleted"
1570
- readonly additions: number
1571
- readonly deletions: number
1572
- readonly patch: string
1573
- }>
1574
- }
1575
- }
1576
- }
1577
- | {
1578
- readonly id: string
1579
- readonly metadata?: { readonly [x: string]: unknown }
1580
- readonly type: "session.next.revert.cleared"
1581
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1582
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1583
- readonly data: { readonly timestamp: number; readonly sessionID: string }
1584
- }
1585
- | {
1586
- readonly id: string
1587
- readonly metadata?: { readonly [x: string]: unknown }
1588
- readonly type: "session.next.revert.committed"
1589
- readonly durable?: { readonly aggregateID: string; readonly seq: number; readonly version: number }
1590
- readonly location?: { readonly directory: string; readonly workspaceID?: string }
1591
- readonly data: { readonly timestamp: number; readonly sessionID: string; readonly messageID: string }
1592
- }
1593
-
1594
- export type SessionsInterruptInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
1595
-
1596
- export type SessionsInterruptOutput = void
1597
-
1598
- export type SessionsMessageInput = {
1599
- readonly sessionID: { readonly sessionID: string; readonly messageID: string }["sessionID"]
1600
- readonly messageID: { readonly sessionID: string; readonly messageID: string }["messageID"]
1601
- }
1602
-
1603
- export type SessionsMessageOutput = {
1604
- readonly data:
1605
- | {
1606
- readonly id: string
1607
- readonly metadata?: { readonly [x: string]: JsonValue }
1608
- readonly time: { readonly created: number }
1609
- readonly type: "agent-switched"
1610
- readonly agent: string
1611
- }
1612
- | {
1613
- readonly id: string
1614
- readonly metadata?: { readonly [x: string]: JsonValue }
1615
- readonly time: { readonly created: number }
1616
- readonly type: "model-switched"
1617
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
1618
- }
1619
- | {
1620
- readonly id: string
1621
- readonly metadata?: { readonly [x: string]: JsonValue }
1622
- readonly time: { readonly created: number }
1623
- readonly text: string
1624
- readonly files?: ReadonlyArray<{
1625
- readonly uri: string
1626
- readonly mime: string
1627
- readonly name?: string
1628
- readonly description?: string
1629
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1630
- }>
1631
- readonly agents?: ReadonlyArray<{
1632
- readonly name: string
1633
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1634
- }>
1635
- readonly type: "user"
1636
- }
1637
- | {
1638
- readonly id: string
1639
- readonly metadata?: { readonly [x: string]: JsonValue }
1640
- readonly time: { readonly created: number }
1641
- readonly sessionID: string
1642
- readonly text: string
1643
- readonly type: "synthetic"
1644
- }
1645
- | {
1646
- readonly id: string
1647
- readonly metadata?: { readonly [x: string]: JsonValue }
1648
- readonly time: { readonly created: number }
1649
- readonly type: "system"
1650
- readonly text: string
1651
- }
1652
- | {
1653
- readonly id: string
1654
- readonly metadata?: { readonly [x: string]: JsonValue }
1655
- readonly time: { readonly created: number; readonly completed?: number }
1656
- readonly type: "shell"
1657
- readonly callID: string
1658
- readonly command: string
1659
- readonly output: string
1660
- }
1661
- | {
1662
- readonly id: string
1663
- readonly metadata?: { readonly [x: string]: JsonValue }
1664
- readonly time: { readonly created: number; readonly completed?: number }
1665
- readonly type: "assistant"
1666
- readonly agent: string
1667
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
1668
- readonly content: ReadonlyArray<
1669
- | { readonly type: "text"; readonly id: string; readonly text: string }
1670
- | {
1671
- readonly type: "reasoning"
1672
- readonly id: string
1673
- readonly text: string
1674
- readonly providerMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1675
- readonly time?: { readonly created: number; readonly completed?: number }
1676
- }
1677
- | {
1678
- readonly type: "tool"
1679
- readonly id: string
1680
- readonly name: string
1681
- readonly provider?: {
1682
- readonly executed: boolean
1683
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1684
- readonly resultMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1685
- }
1686
- readonly state:
1687
- | { readonly status: "pending"; readonly input: string }
1688
- | {
1689
- readonly status: "running"
1690
- readonly input: { readonly [x: string]: JsonValue }
1691
- readonly structured: { readonly [x: string]: JsonValue }
1692
- readonly content: ReadonlyArray<
1693
- | { readonly type: "text"; readonly text: string }
1694
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1695
- >
1696
- }
1697
- | {
1698
- readonly status: "completed"
1699
- readonly input: { readonly [x: string]: JsonValue }
1700
- readonly attachments?: ReadonlyArray<{
1701
- readonly uri: string
1702
- readonly mime: string
1703
- readonly name?: string
1704
- readonly description?: string
1705
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1706
- }>
1707
- readonly content: ReadonlyArray<
1708
- | { readonly type: "text"; readonly text: string }
1709
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1710
- >
1711
- readonly outputPaths?: ReadonlyArray<string>
1712
- readonly structured: { readonly [x: string]: JsonValue }
1713
- readonly result?: JsonValue
1714
- }
1715
- | {
1716
- readonly status: "error"
1717
- readonly input: { readonly [x: string]: JsonValue }
1718
- readonly content: ReadonlyArray<
1719
- | { readonly type: "text"; readonly text: string }
1720
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1721
- >
1722
- readonly structured: { readonly [x: string]: JsonValue }
1723
- readonly error: { readonly type: "unknown"; readonly message: string }
1724
- readonly result?: JsonValue
1725
- }
1726
- readonly time: {
1727
- readonly created: number
1728
- readonly ran?: number
1729
- readonly completed?: number
1730
- readonly pruned?: number
1731
- }
1732
- }
1733
- >
1734
- readonly snapshot?: { readonly start?: string; readonly end?: string; readonly files?: ReadonlyArray<string> }
1735
- readonly finish?: string
1736
- readonly cost?: number
1737
- readonly tokens?: {
1738
- readonly input: number
1739
- readonly output: number
1740
- readonly reasoning: number
1741
- readonly cache: { readonly read: number; readonly write: number }
1742
- }
1743
- readonly error?: { readonly type: "unknown"; readonly message: string }
1744
- }
1745
- | {
1746
- readonly type: "compaction"
1747
- readonly reason: "auto" | "manual"
1748
- readonly summary: string
1749
- readonly recent: string
1750
- readonly id: string
1751
- readonly metadata?: { readonly [x: string]: JsonValue }
1752
- readonly time: { readonly created: number }
1753
- }
1754
- }["data"]
1755
-
1756
- export type MessagesListInput = {
1757
- readonly sessionID: { readonly sessionID: string }["sessionID"]
1758
- readonly limit?: {
1759
- readonly limit?: number | undefined
1760
- readonly order?: "asc" | "desc" | undefined
1761
- readonly cursor?: string | undefined
1762
- }["limit"]
1763
- readonly order?: {
1764
- readonly limit?: number | undefined
1765
- readonly order?: "asc" | "desc" | undefined
1766
- readonly cursor?: string | undefined
1767
- }["order"]
1768
- readonly cursor?: {
1769
- readonly limit?: number | undefined
1770
- readonly order?: "asc" | "desc" | undefined
1771
- readonly cursor?: string | undefined
1772
- }["cursor"]
1773
- }
1774
-
1775
- export type MessagesListOutput = {
1776
- readonly data: ReadonlyArray<
1777
- | {
1778
- readonly id: string
1779
- readonly metadata?: { readonly [x: string]: JsonValue }
1780
- readonly time: { readonly created: number }
1781
- readonly type: "agent-switched"
1782
- readonly agent: string
1783
- }
1784
- | {
1785
- readonly id: string
1786
- readonly metadata?: { readonly [x: string]: JsonValue }
1787
- readonly time: { readonly created: number }
1788
- readonly type: "model-switched"
1789
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
1790
- }
1791
- | {
1792
- readonly id: string
1793
- readonly metadata?: { readonly [x: string]: JsonValue }
1794
- readonly time: { readonly created: number }
1795
- readonly text: string
1796
- readonly files?: ReadonlyArray<{
1797
- readonly uri: string
1798
- readonly mime: string
1799
- readonly name?: string
1800
- readonly description?: string
1801
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1802
- }>
1803
- readonly agents?: ReadonlyArray<{
1804
- readonly name: string
1805
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1806
- }>
1807
- readonly type: "user"
1808
- }
1809
- | {
1810
- readonly id: string
1811
- readonly metadata?: { readonly [x: string]: JsonValue }
1812
- readonly time: { readonly created: number }
1813
- readonly sessionID: string
1814
- readonly text: string
1815
- readonly type: "synthetic"
1816
- }
1817
- | {
1818
- readonly id: string
1819
- readonly metadata?: { readonly [x: string]: JsonValue }
1820
- readonly time: { readonly created: number }
1821
- readonly type: "system"
1822
- readonly text: string
1823
- }
1824
- | {
1825
- readonly id: string
1826
- readonly metadata?: { readonly [x: string]: JsonValue }
1827
- readonly time: { readonly created: number; readonly completed?: number }
1828
- readonly type: "shell"
1829
- readonly callID: string
1830
- readonly command: string
1831
- readonly output: string
1832
- }
1833
- | {
1834
- readonly id: string
1835
- readonly metadata?: { readonly [x: string]: JsonValue }
1836
- readonly time: { readonly created: number; readonly completed?: number }
1837
- readonly type: "assistant"
1838
- readonly agent: string
1839
- readonly model: { readonly id: string; readonly providerID: string; readonly variant?: string }
1840
- readonly content: ReadonlyArray<
1841
- | { readonly type: "text"; readonly id: string; readonly text: string }
1842
- | {
1843
- readonly type: "reasoning"
1844
- readonly id: string
1845
- readonly text: string
1846
- readonly providerMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1847
- readonly time?: { readonly created: number; readonly completed?: number }
1848
- }
1849
- | {
1850
- readonly type: "tool"
1851
- readonly id: string
1852
- readonly name: string
1853
- readonly provider?: {
1854
- readonly executed: boolean
1855
- readonly metadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1856
- readonly resultMetadata?: { readonly [x: string]: { readonly [x: string]: JsonValue } }
1857
- }
1858
- readonly state:
1859
- | { readonly status: "pending"; readonly input: string }
1860
- | {
1861
- readonly status: "running"
1862
- readonly input: { readonly [x: string]: JsonValue }
1863
- readonly structured: { readonly [x: string]: JsonValue }
1864
- readonly content: ReadonlyArray<
1865
- | { readonly type: "text"; readonly text: string }
1866
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1867
- >
1868
- }
1869
- | {
1870
- readonly status: "completed"
1871
- readonly input: { readonly [x: string]: JsonValue }
1872
- readonly attachments?: ReadonlyArray<{
1873
- readonly uri: string
1874
- readonly mime: string
1875
- readonly name?: string
1876
- readonly description?: string
1877
- readonly source?: { readonly start: number; readonly end: number; readonly text: string }
1878
- }>
1879
- readonly content: ReadonlyArray<
1880
- | { readonly type: "text"; readonly text: string }
1881
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1882
- >
1883
- readonly outputPaths?: ReadonlyArray<string>
1884
- readonly structured: { readonly [x: string]: JsonValue }
1885
- readonly result?: JsonValue
1886
- }
1887
- | {
1888
- readonly status: "error"
1889
- readonly input: { readonly [x: string]: JsonValue }
1890
- readonly content: ReadonlyArray<
1891
- | { readonly type: "text"; readonly text: string }
1892
- | { readonly type: "file"; readonly uri: string; readonly mime: string; readonly name?: string }
1893
- >
1894
- readonly structured: { readonly [x: string]: JsonValue }
1895
- readonly error: { readonly type: "unknown"; readonly message: string }
1896
- readonly result?: JsonValue
1897
- }
1898
- readonly time: {
1899
- readonly created: number
1900
- readonly ran?: number
1901
- readonly completed?: number
1902
- readonly pruned?: number
1903
- }
1904
- }
1905
- >
1906
- readonly snapshot?: { readonly start?: string; readonly end?: string; readonly files?: ReadonlyArray<string> }
1907
- readonly finish?: string
1908
- readonly cost?: number
1909
- readonly tokens?: {
1910
- readonly input: number
1911
- readonly output: number
1912
- readonly reasoning: number
1913
- readonly cache: { readonly read: number; readonly write: number }
1914
- }
1915
- readonly error?: { readonly type: "unknown"; readonly message: string }
1916
- }
1917
- | {
1918
- readonly type: "compaction"
1919
- readonly reason: "auto" | "manual"
1920
- readonly summary: string
1921
- readonly recent: string
1922
- readonly id: string
1923
- readonly metadata?: { readonly [x: string]: JsonValue }
1924
- readonly time: { readonly created: number }
1925
- }
1926
- >
1927
- readonly cursor: { readonly previous?: string | null; readonly next?: string | null }
1928
- }
1929
-
1930
- export type ModelsListInput = {
1931
- readonly location?: {
1932
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
1933
- }["location"]
1934
- }
1935
-
1936
- export type ModelsListOutput = {
1937
- readonly location: {
1938
- readonly directory: string
1939
- readonly workspaceID?: string
1940
- readonly project: { readonly id: string; readonly directory: string }
1941
- }
1942
- readonly data: ReadonlyArray<{
1943
- readonly id: string
1944
- readonly providerID: string
1945
- readonly family?: string
1946
- readonly name: string
1947
- readonly api:
1948
- | {
1949
- readonly id: string
1950
- readonly type: "aisdk"
1951
- readonly package: string
1952
- readonly url?: string
1953
- readonly settings?: { readonly [x: string]: JsonValue }
1954
- }
1955
- | {
1956
- readonly id: string
1957
- readonly type: "native"
1958
- readonly url?: string
1959
- readonly settings: { readonly [x: string]: JsonValue }
1960
- }
1961
- readonly capabilities: {
1962
- readonly tools: boolean
1963
- readonly input: ReadonlyArray<string>
1964
- readonly output: ReadonlyArray<string>
1965
- }
1966
- readonly request: {
1967
- readonly headers: { readonly [x: string]: string }
1968
- readonly body: { readonly [x: string]: JsonValue }
1969
- readonly variant?: string
1970
- }
1971
- readonly variants: ReadonlyArray<{
1972
- readonly id: string
1973
- readonly headers: { readonly [x: string]: string }
1974
- readonly body: { readonly [x: string]: JsonValue }
1975
- }>
1976
- readonly time: { readonly released: number }
1977
- readonly cost: ReadonlyArray<{
1978
- readonly tier?: { readonly type: "context"; readonly size: number }
1979
- readonly input: number
1980
- readonly output: number
1981
- readonly cache: { readonly read: number; readonly write: number }
1982
- }>
1983
- readonly status: "alpha" | "beta" | "deprecated" | "active"
1984
- readonly enabled: boolean
1985
- readonly limit: { readonly context: number; readonly input?: number; readonly output: number }
1986
- }>
1987
- }
1988
-
1989
- export type ProvidersListInput = {
1990
- readonly location?: {
1991
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
1992
- }["location"]
1993
- }
1994
-
1995
- export type ProvidersListOutput = {
1996
- readonly location: {
1997
- readonly directory: string
1998
- readonly workspaceID?: string
1999
- readonly project: { readonly id: string; readonly directory: string }
2000
- }
2001
- readonly data: ReadonlyArray<{
2002
- readonly id: string
2003
- readonly integrationID?: string
2004
- readonly name: string
2005
- readonly disabled?: boolean
2006
- readonly api:
2007
- | {
2008
- readonly type: "aisdk"
2009
- readonly package: string
2010
- readonly url?: string
2011
- readonly settings?: { readonly [x: string]: JsonValue }
2012
- }
2013
- | { readonly type: "native"; readonly url?: string; readonly settings: { readonly [x: string]: JsonValue } }
2014
- readonly request: {
2015
- readonly headers: { readonly [x: string]: string }
2016
- readonly body: { readonly [x: string]: JsonValue }
2017
- }
2018
- }>
2019
- }
2020
-
2021
- export type ProvidersGetInput = {
2022
- readonly providerID: { readonly providerID: string }["providerID"]
2023
- readonly location?: {
2024
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2025
- }["location"]
2026
- }
2027
-
2028
- export type ProvidersGetOutput = {
2029
- readonly location: {
2030
- readonly directory: string
2031
- readonly workspaceID?: string
2032
- readonly project: { readonly id: string; readonly directory: string }
2033
- }
2034
- readonly data: {
2035
- readonly id: string
2036
- readonly integrationID?: string
2037
- readonly name: string
2038
- readonly disabled?: boolean
2039
- readonly api:
2040
- | {
2041
- readonly type: "aisdk"
2042
- readonly package: string
2043
- readonly url?: string
2044
- readonly settings?: { readonly [x: string]: JsonValue }
2045
- }
2046
- | { readonly type: "native"; readonly url?: string; readonly settings: { readonly [x: string]: JsonValue } }
2047
- readonly request: {
2048
- readonly headers: { readonly [x: string]: string }
2049
- readonly body: { readonly [x: string]: JsonValue }
2050
- }
2051
- }
2052
- }
2053
-
2054
- export type IntegrationsListInput = {
2055
- readonly location?: {
2056
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2057
- }["location"]
2058
- }
2059
-
2060
- export type IntegrationsListOutput = {
2061
- readonly location: {
2062
- readonly directory: string
2063
- readonly workspaceID?: string
2064
- readonly project: { readonly id: string; readonly directory: string }
2065
- }
2066
- readonly data: ReadonlyArray<{
2067
- readonly id: string
2068
- readonly name: string
2069
- readonly methods: ReadonlyArray<
2070
- | {
2071
- readonly id: string
2072
- readonly type: "oauth"
2073
- readonly label: string
2074
- readonly prompts?: ReadonlyArray<
2075
- | {
2076
- readonly type: "text"
2077
- readonly key: string
2078
- readonly message: string
2079
- readonly placeholder?: string
2080
- readonly when?: { readonly key: string; readonly op: "eq" | "neq"; readonly value: string }
2081
- }
2082
- | {
2083
- readonly type: "select"
2084
- readonly key: string
2085
- readonly message: string
2086
- readonly options: ReadonlyArray<{
2087
- readonly label: string
2088
- readonly value: string
2089
- readonly hint?: string
2090
- }>
2091
- readonly when?: { readonly key: string; readonly op: "eq" | "neq"; readonly value: string }
2092
- }
2093
- >
2094
- }
2095
- | { readonly type: "key"; readonly label?: string }
2096
- | { readonly type: "env"; readonly names: ReadonlyArray<string> }
2097
- >
2098
- readonly connections: ReadonlyArray<
2099
- | { readonly type: "credential"; readonly id: string; readonly label: string }
2100
- | { readonly type: "env"; readonly name: string }
2101
- >
2102
- }>
2103
- }
2104
-
2105
- export type IntegrationsGetInput = {
2106
- readonly integrationID: { readonly integrationID: string }["integrationID"]
2107
- readonly location?: {
2108
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2109
- }["location"]
2110
- }
2111
-
2112
- export type IntegrationsGetOutput = {
2113
- readonly location: {
2114
- readonly directory: string
2115
- readonly workspaceID?: string
2116
- readonly project: { readonly id: string; readonly directory: string }
2117
- }
2118
- readonly data: {
2119
- readonly id: string
2120
- readonly name: string
2121
- readonly methods: ReadonlyArray<
2122
- | {
2123
- readonly id: string
2124
- readonly type: "oauth"
2125
- readonly label: string
2126
- readonly prompts?: ReadonlyArray<
2127
- | {
2128
- readonly type: "text"
2129
- readonly key: string
2130
- readonly message: string
2131
- readonly placeholder?: string
2132
- readonly when?: { readonly key: string; readonly op: "eq" | "neq"; readonly value: string }
2133
- }
2134
- | {
2135
- readonly type: "select"
2136
- readonly key: string
2137
- readonly message: string
2138
- readonly options: ReadonlyArray<{
2139
- readonly label: string
2140
- readonly value: string
2141
- readonly hint?: string
2142
- }>
2143
- readonly when?: { readonly key: string; readonly op: "eq" | "neq"; readonly value: string }
2144
- }
2145
- >
2146
- }
2147
- | { readonly type: "key"; readonly label?: string }
2148
- | { readonly type: "env"; readonly names: ReadonlyArray<string> }
2149
- >
2150
- readonly connections: ReadonlyArray<
2151
- | { readonly type: "credential"; readonly id: string; readonly label: string }
2152
- | { readonly type: "env"; readonly name: string }
2153
- >
2154
- } | null
2155
- }
2156
-
2157
- export type IntegrationsConnectKeyInput = {
2158
- readonly integrationID: { readonly integrationID: string }["integrationID"]
2159
- readonly location?: {
2160
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2161
- }["location"]
2162
- readonly key: { readonly key: string; readonly label?: string | undefined }["key"]
2163
- readonly label?: { readonly key: string; readonly label?: string | undefined }["label"]
2164
- }
2165
-
2166
- export type IntegrationsConnectKeyOutput = void
2167
-
2168
- export type IntegrationsConnectOauthInput = {
2169
- readonly integrationID: { readonly integrationID: string }["integrationID"]
2170
- readonly location?: {
2171
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2172
- }["location"]
2173
- readonly methodID: {
2174
- readonly methodID: string
2175
- readonly inputs: { readonly [x: string]: string }
2176
- readonly label?: string | undefined
2177
- }["methodID"]
2178
- readonly inputs: {
2179
- readonly methodID: string
2180
- readonly inputs: { readonly [x: string]: string }
2181
- readonly label?: string | undefined
2182
- }["inputs"]
2183
- readonly label?: {
2184
- readonly methodID: string
2185
- readonly inputs: { readonly [x: string]: string }
2186
- readonly label?: string | undefined
2187
- }["label"]
2188
- }
2189
-
2190
- export type IntegrationsConnectOauthOutput = {
2191
- readonly location: {
2192
- readonly directory: string
2193
- readonly workspaceID?: string
2194
- readonly project: { readonly id: string; readonly directory: string }
2195
- }
2196
- readonly data: {
2197
- readonly attemptID: string
2198
- readonly url: string
2199
- readonly instructions: string
2200
- readonly mode: "auto" | "code"
2201
- readonly time: {
2202
- readonly created: number | "Infinity" | "-Infinity" | "NaN"
2203
- readonly expires: number | "Infinity" | "-Infinity" | "NaN"
2204
- }
2205
- }
2206
- }
2207
-
2208
- export type IntegrationsAttemptStatusInput = {
2209
- readonly attemptID: { readonly attemptID: string }["attemptID"]
2210
- readonly location?: {
2211
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2212
- }["location"]
2213
- }
2214
-
2215
- export type IntegrationsAttemptStatusOutput = {
2216
- readonly location: {
2217
- readonly directory: string
2218
- readonly workspaceID?: string
2219
- readonly project: { readonly id: string; readonly directory: string }
2220
- }
2221
- readonly data:
2222
- | {
2223
- readonly status: "pending"
2224
- readonly time: {
2225
- readonly created: number | "Infinity" | "-Infinity" | "NaN"
2226
- readonly expires: number | "Infinity" | "-Infinity" | "NaN"
2227
- }
2228
- }
2229
- | {
2230
- readonly status: "complete"
2231
- readonly time: {
2232
- readonly created: number | "Infinity" | "-Infinity" | "NaN"
2233
- readonly expires: number | "Infinity" | "-Infinity" | "NaN"
2234
- }
2235
- }
2236
- | {
2237
- readonly status: "failed"
2238
- readonly message: string
2239
- readonly time: {
2240
- readonly created: number | "Infinity" | "-Infinity" | "NaN"
2241
- readonly expires: number | "Infinity" | "-Infinity" | "NaN"
2242
- }
2243
- }
2244
- | {
2245
- readonly status: "expired"
2246
- readonly time: {
2247
- readonly created: number | "Infinity" | "-Infinity" | "NaN"
2248
- readonly expires: number | "Infinity" | "-Infinity" | "NaN"
2249
- }
2250
- }
2251
- }
2252
-
2253
- export type IntegrationsAttemptCompleteInput = {
2254
- readonly attemptID: { readonly attemptID: string }["attemptID"]
2255
- readonly location?: {
2256
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2257
- }["location"]
2258
- readonly code?: { readonly code?: string | undefined }["code"]
2259
- }
2260
-
2261
- export type IntegrationsAttemptCompleteOutput = void
2262
-
2263
- export type IntegrationsAttemptCancelInput = {
2264
- readonly attemptID: { readonly attemptID: string }["attemptID"]
2265
- readonly location?: {
2266
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2267
- }["location"]
2268
- }
2269
-
2270
- export type IntegrationsAttemptCancelOutput = void
2271
-
2272
- export type CredentialsUpdateInput = {
2273
- readonly credentialID: { readonly credentialID: string }["credentialID"]
2274
- readonly location?: {
2275
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2276
- }["location"]
2277
- readonly label: { readonly label: string }["label"]
2278
- }
2279
-
2280
- export type CredentialsUpdateOutput = void
2281
-
2282
- export type CredentialsRemoveInput = {
2283
- readonly credentialID: { readonly credentialID: string }["credentialID"]
2284
- readonly location?: {
2285
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2286
- }["location"]
2287
- }
2288
-
2289
- export type CredentialsRemoveOutput = void
2290
-
2291
- export type PermissionsListRequestsInput = {
2292
- readonly location?: {
2293
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2294
- }["location"]
2295
- }
2296
-
2297
- export type PermissionsListRequestsOutput = {
2298
- readonly location: {
2299
- readonly directory: string
2300
- readonly workspaceID?: string
2301
- readonly project: { readonly id: string; readonly directory: string }
2302
- }
2303
- readonly data: ReadonlyArray<{
2304
- readonly id: string
2305
- readonly sessionID: string
2306
- readonly action: string
2307
- readonly resources: ReadonlyArray<string>
2308
- readonly save?: ReadonlyArray<string>
2309
- readonly metadata?: { readonly [x: string]: JsonValue }
2310
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2311
- }>
2312
- }
2313
-
2314
- export type PermissionsListSavedInput = {
2315
- readonly projectID?: { readonly projectID?: string | undefined }["projectID"]
2316
- }
2317
-
2318
- export type PermissionsListSavedOutput = {
2319
- readonly data: ReadonlyArray<{
2320
- readonly id: string
2321
- readonly projectID: string
2322
- readonly action: string
2323
- readonly resource: string
2324
- }>
2325
- }["data"]
2326
-
2327
- export type PermissionsRemoveSavedInput = { readonly id: { readonly id: string }["id"] }
2328
-
2329
- export type PermissionsRemoveSavedOutput = void
2330
-
2331
- export type PermissionsCreateInput = {
2332
- readonly sessionID: { readonly sessionID: string }["sessionID"]
2333
- readonly id?: {
2334
- readonly id?: string | null
2335
- readonly action: string
2336
- readonly resources: ReadonlyArray<string>
2337
- readonly save?: ReadonlyArray<string>
2338
- readonly metadata?: { readonly [x: string]: JsonValue }
2339
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2340
- readonly agent?: string | null
2341
- }["id"]
2342
- readonly action: {
2343
- readonly id?: string | null
2344
- readonly action: string
2345
- readonly resources: ReadonlyArray<string>
2346
- readonly save?: ReadonlyArray<string>
2347
- readonly metadata?: { readonly [x: string]: JsonValue }
2348
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2349
- readonly agent?: string | null
2350
- }["action"]
2351
- readonly resources: {
2352
- readonly id?: string | null
2353
- readonly action: string
2354
- readonly resources: ReadonlyArray<string>
2355
- readonly save?: ReadonlyArray<string>
2356
- readonly metadata?: { readonly [x: string]: JsonValue }
2357
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2358
- readonly agent?: string | null
2359
- }["resources"]
2360
- readonly save?: {
2361
- readonly id?: string | null
2362
- readonly action: string
2363
- readonly resources: ReadonlyArray<string>
2364
- readonly save?: ReadonlyArray<string>
2365
- readonly metadata?: { readonly [x: string]: JsonValue }
2366
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2367
- readonly agent?: string | null
2368
- }["save"]
2369
- readonly metadata?: {
2370
- readonly id?: string | null
2371
- readonly action: string
2372
- readonly resources: ReadonlyArray<string>
2373
- readonly save?: ReadonlyArray<string>
2374
- readonly metadata?: { readonly [x: string]: JsonValue }
2375
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2376
- readonly agent?: string | null
2377
- }["metadata"]
2378
- readonly source?: {
2379
- readonly id?: string | null
2380
- readonly action: string
2381
- readonly resources: ReadonlyArray<string>
2382
- readonly save?: ReadonlyArray<string>
2383
- readonly metadata?: { readonly [x: string]: JsonValue }
2384
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2385
- readonly agent?: string | null
2386
- }["source"]
2387
- readonly agent?: {
2388
- readonly id?: string | null
2389
- readonly action: string
2390
- readonly resources: ReadonlyArray<string>
2391
- readonly save?: ReadonlyArray<string>
2392
- readonly metadata?: { readonly [x: string]: JsonValue }
2393
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2394
- readonly agent?: string | null
2395
- }["agent"]
2396
- }
2397
-
2398
- export type PermissionsCreateOutput = {
2399
- readonly data: { readonly id: string; readonly effect: "allow" | "deny" | "ask" }
2400
- }["data"]
2401
-
2402
- export type PermissionsListInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
2403
-
2404
- export type PermissionsListOutput = {
2405
- readonly data: ReadonlyArray<{
2406
- readonly id: string
2407
- readonly sessionID: string
2408
- readonly action: string
2409
- readonly resources: ReadonlyArray<string>
2410
- readonly save?: ReadonlyArray<string>
2411
- readonly metadata?: { readonly [x: string]: JsonValue }
2412
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2413
- }>
2414
- }["data"]
2415
-
2416
- export type PermissionsGetInput = {
2417
- readonly sessionID: { readonly sessionID: string; readonly requestID: string }["sessionID"]
2418
- readonly requestID: { readonly sessionID: string; readonly requestID: string }["requestID"]
2419
- }
2420
-
2421
- export type PermissionsGetOutput = {
2422
- readonly data: {
2423
- readonly id: string
2424
- readonly sessionID: string
2425
- readonly action: string
2426
- readonly resources: ReadonlyArray<string>
2427
- readonly save?: ReadonlyArray<string>
2428
- readonly metadata?: { readonly [x: string]: JsonValue }
2429
- readonly source?: { readonly type: "tool"; readonly messageID: string; readonly callID: string }
2430
- }
2431
- }["data"]
2432
-
2433
- export type PermissionsReplyInput = {
2434
- readonly sessionID: { readonly sessionID: string; readonly requestID: string }["sessionID"]
2435
- readonly requestID: { readonly sessionID: string; readonly requestID: string }["requestID"]
2436
- readonly reply: { readonly reply: "once" | "always" | "reject"; readonly message?: string | undefined }["reply"]
2437
- readonly message?: { readonly reply: "once" | "always" | "reject"; readonly message?: string | undefined }["message"]
2438
- }
2439
-
2440
- export type PermissionsReplyOutput = void
2441
-
2442
- export type FilesListInput = {
2443
- readonly location?: {
2444
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2445
- readonly path?: string | undefined
2446
- }["location"]
2447
- readonly path?: {
2448
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2449
- readonly path?: string | undefined
2450
- }["path"]
2451
- }
2452
-
2453
- export type FilesListOutput = {
2454
- readonly location: {
2455
- readonly directory: string
2456
- readonly workspaceID?: string
2457
- readonly project: { readonly id: string; readonly directory: string }
2458
- }
2459
- readonly data: ReadonlyArray<{ readonly path: string; readonly type: "file" | "directory" }>
2460
- }
2461
-
2462
- export type FilesFindInput = {
2463
- readonly location?: {
2464
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2465
- readonly query: string
2466
- readonly type?: "file" | "directory" | undefined
2467
- readonly limit?: number | undefined
2468
- }["location"]
2469
- readonly query: {
2470
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2471
- readonly query: string
2472
- readonly type?: "file" | "directory" | undefined
2473
- readonly limit?: number | undefined
2474
- }["query"]
2475
- readonly type?: {
2476
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2477
- readonly query: string
2478
- readonly type?: "file" | "directory" | undefined
2479
- readonly limit?: number | undefined
2480
- }["type"]
2481
- readonly limit?: {
2482
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2483
- readonly query: string
2484
- readonly type?: "file" | "directory" | undefined
2485
- readonly limit?: number | undefined
2486
- }["limit"]
2487
- }
2488
-
2489
- export type FilesFindOutput = {
2490
- readonly location: {
2491
- readonly directory: string
2492
- readonly workspaceID?: string
2493
- readonly project: { readonly id: string; readonly directory: string }
2494
- }
2495
- readonly data: ReadonlyArray<{ readonly path: string; readonly type: "file" | "directory" }>
2496
- }
2497
-
2498
- export type CommandsListInput = {
2499
- readonly location?: {
2500
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2501
- }["location"]
2502
- }
2503
-
2504
- export type CommandsListOutput = {
2505
- readonly location: {
2506
- readonly directory: string
2507
- readonly workspaceID?: string
2508
- readonly project: { readonly id: string; readonly directory: string }
2509
- }
2510
- readonly data: ReadonlyArray<{
2511
- readonly name: string
2512
- readonly template: string
2513
- readonly description?: string
2514
- readonly agent?: string
2515
- readonly model?: { readonly id: string; readonly providerID: string; readonly variant?: string }
2516
- readonly subtask?: boolean
2517
- }>
2518
- }
2519
-
2520
- export type SkillsListInput = {
2521
- readonly location?: {
2522
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2523
- }["location"]
2524
- }
2525
-
2526
- export type SkillsListOutput = {
2527
- readonly location: {
2528
- readonly directory: string
2529
- readonly workspaceID?: string
2530
- readonly project: { readonly id: string; readonly directory: string }
2531
- }
2532
- readonly data: ReadonlyArray<{
2533
- readonly name: string
2534
- readonly description?: string
2535
- readonly slash?: boolean
2536
- readonly location: string
2537
- readonly content: string
2538
- }>
2539
- }
2540
-
2541
- export type EventsSubscribeOutput = ZyraxonEventEncoded
2542
-
2543
- export type PtysListInput = {
2544
- readonly location?: {
2545
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2546
- }["location"]
2547
- }
2548
-
2549
- export type PtysListOutput = {
2550
- readonly location: {
2551
- readonly directory: string
2552
- readonly workspaceID?: string
2553
- readonly project: { readonly id: string; readonly directory: string }
2554
- }
2555
- readonly data: ReadonlyArray<{
2556
- readonly id: string
2557
- readonly title: string
2558
- readonly command: string
2559
- readonly args: ReadonlyArray<string>
2560
- readonly cwd: string
2561
- readonly status: "running" | "exited"
2562
- readonly pid: number
2563
- readonly exitCode?: number
2564
- }>
2565
- }
2566
-
2567
- export type PtysCreateInput = {
2568
- readonly location?: {
2569
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2570
- }["location"]
2571
- readonly command?: {
2572
- readonly command?: string
2573
- readonly args?: ReadonlyArray<string>
2574
- readonly cwd?: string
2575
- readonly title?: string
2576
- readonly env?: { readonly [x: string]: string }
2577
- }["command"]
2578
- readonly args?: {
2579
- readonly command?: string
2580
- readonly args?: ReadonlyArray<string>
2581
- readonly cwd?: string
2582
- readonly title?: string
2583
- readonly env?: { readonly [x: string]: string }
2584
- }["args"]
2585
- readonly cwd?: {
2586
- readonly command?: string
2587
- readonly args?: ReadonlyArray<string>
2588
- readonly cwd?: string
2589
- readonly title?: string
2590
- readonly env?: { readonly [x: string]: string }
2591
- }["cwd"]
2592
- readonly title?: {
2593
- readonly command?: string
2594
- readonly args?: ReadonlyArray<string>
2595
- readonly cwd?: string
2596
- readonly title?: string
2597
- readonly env?: { readonly [x: string]: string }
2598
- }["title"]
2599
- readonly env?: {
2600
- readonly command?: string
2601
- readonly args?: ReadonlyArray<string>
2602
- readonly cwd?: string
2603
- readonly title?: string
2604
- readonly env?: { readonly [x: string]: string }
2605
- }["env"]
2606
- }
2607
-
2608
- export type PtysCreateOutput = {
2609
- readonly location: {
2610
- readonly directory: string
2611
- readonly workspaceID?: string
2612
- readonly project: { readonly id: string; readonly directory: string }
2613
- }
2614
- readonly data: {
2615
- readonly id: string
2616
- readonly title: string
2617
- readonly command: string
2618
- readonly args: ReadonlyArray<string>
2619
- readonly cwd: string
2620
- readonly status: "running" | "exited"
2621
- readonly pid: number
2622
- readonly exitCode?: number
2623
- }
2624
- }
2625
-
2626
- export type PtysGetInput = {
2627
- readonly ptyID: { readonly ptyID: string }["ptyID"]
2628
- readonly location?: {
2629
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2630
- }["location"]
2631
- }
2632
-
2633
- export type PtysGetOutput = {
2634
- readonly location: {
2635
- readonly directory: string
2636
- readonly workspaceID?: string
2637
- readonly project: { readonly id: string; readonly directory: string }
2638
- }
2639
- readonly data: {
2640
- readonly id: string
2641
- readonly title: string
2642
- readonly command: string
2643
- readonly args: ReadonlyArray<string>
2644
- readonly cwd: string
2645
- readonly status: "running" | "exited"
2646
- readonly pid: number
2647
- readonly exitCode?: number
2648
- }
2649
- }
2650
-
2651
- export type PtysUpdateInput = {
2652
- readonly ptyID: { readonly ptyID: string }["ptyID"]
2653
- readonly location?: {
2654
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2655
- }["location"]
2656
- readonly title?: {
2657
- readonly title?: string
2658
- readonly size?: { readonly rows: number; readonly cols: number }
2659
- }["title"]
2660
- readonly size?: { readonly title?: string; readonly size?: { readonly rows: number; readonly cols: number } }["size"]
2661
- }
2662
-
2663
- export type PtysUpdateOutput = {
2664
- readonly location: {
2665
- readonly directory: string
2666
- readonly workspaceID?: string
2667
- readonly project: { readonly id: string; readonly directory: string }
2668
- }
2669
- readonly data: {
2670
- readonly id: string
2671
- readonly title: string
2672
- readonly command: string
2673
- readonly args: ReadonlyArray<string>
2674
- readonly cwd: string
2675
- readonly status: "running" | "exited"
2676
- readonly pid: number
2677
- readonly exitCode?: number
2678
- }
2679
- }
2680
-
2681
- export type PtysRemoveInput = {
2682
- readonly ptyID: { readonly ptyID: string }["ptyID"]
2683
- readonly location?: {
2684
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2685
- }["location"]
2686
- }
2687
-
2688
- export type PtysRemoveOutput = void
2689
-
2690
- export type QuestionsListRequestsInput = {
2691
- readonly location?: {
2692
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2693
- }["location"]
2694
- }
2695
-
2696
- export type QuestionsListRequestsOutput = {
2697
- readonly location: {
2698
- readonly directory: string
2699
- readonly workspaceID?: string
2700
- readonly project: { readonly id: string; readonly directory: string }
2701
- }
2702
- readonly data: ReadonlyArray<{
2703
- readonly id: string
2704
- readonly sessionID: string
2705
- readonly questions: ReadonlyArray<{
2706
- readonly question: string
2707
- readonly header: string
2708
- readonly options: ReadonlyArray<{ readonly label: string; readonly description: string }>
2709
- readonly multiple?: boolean
2710
- readonly custom?: boolean
2711
- }>
2712
- readonly tool?: { readonly messageID: string; readonly callID: string }
2713
- }>
2714
- }
2715
-
2716
- export type QuestionsListInput = { readonly sessionID: { readonly sessionID: string }["sessionID"] }
2717
-
2718
- export type QuestionsListOutput = {
2719
- readonly data: ReadonlyArray<{
2720
- readonly id: string
2721
- readonly sessionID: string
2722
- readonly questions: ReadonlyArray<{
2723
- readonly question: string
2724
- readonly header: string
2725
- readonly options: ReadonlyArray<{ readonly label: string; readonly description: string }>
2726
- readonly multiple?: boolean
2727
- readonly custom?: boolean
2728
- }>
2729
- readonly tool?: { readonly messageID: string; readonly callID: string }
2730
- }>
2731
- }["data"]
2732
-
2733
- export type QuestionsReplyInput = {
2734
- readonly sessionID: { readonly sessionID: string; readonly requestID: string }["sessionID"]
2735
- readonly requestID: { readonly sessionID: string; readonly requestID: string }["requestID"]
2736
- readonly answers: { readonly answers: ReadonlyArray<ReadonlyArray<string>> }["answers"]
2737
- }
2738
-
2739
- export type QuestionsReplyOutput = void
2740
-
2741
- export type QuestionsRejectInput = {
2742
- readonly sessionID: { readonly sessionID: string; readonly requestID: string }["sessionID"]
2743
- readonly requestID: { readonly sessionID: string; readonly requestID: string }["requestID"]
2744
- }
2745
-
2746
- export type QuestionsRejectOutput = void
2747
-
2748
- export type ReferencesListInput = {
2749
- readonly location?: {
2750
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2751
- }["location"]
2752
- }
2753
-
2754
- export type ReferencesListOutput = {
2755
- readonly location: {
2756
- readonly directory: string
2757
- readonly workspaceID?: string
2758
- readonly project: { readonly id: string; readonly directory: string }
2759
- }
2760
- readonly data: ReadonlyArray<{
2761
- readonly name: string
2762
- readonly path: string
2763
- readonly description?: string
2764
- readonly hidden?: boolean
2765
- readonly source:
2766
- | { readonly type: "local"; readonly path: string; readonly description?: string; readonly hidden?: boolean }
2767
- | {
2768
- readonly type: "git"
2769
- readonly repository: string
2770
- readonly branch?: string
2771
- readonly description?: string
2772
- readonly hidden?: boolean
2773
- }
2774
- }>
2775
- }
2776
-
2777
- export type ProjectCopiesCreateInput = {
2778
- readonly projectID: { readonly projectID: string }["projectID"]
2779
- readonly location?: {
2780
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2781
- }["location"]
2782
- readonly strategy: { readonly strategy: string; readonly directory: string; readonly name?: string }["strategy"]
2783
- readonly directory: { readonly strategy: string; readonly directory: string; readonly name?: string }["directory"]
2784
- readonly name?: { readonly strategy: string; readonly directory: string; readonly name?: string }["name"]
2785
- }
2786
-
2787
- export type ProjectCopiesCreateOutput = { readonly directory: string }
2788
-
2789
- export type ProjectCopiesRemoveInput = {
2790
- readonly projectID: { readonly projectID: string }["projectID"]
2791
- readonly location?: {
2792
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2793
- }["location"]
2794
- readonly directory: { readonly directory: string; readonly force: boolean }["directory"]
2795
- readonly force: { readonly directory: string; readonly force: boolean }["force"]
2796
- }
2797
-
2798
- export type ProjectCopiesRemoveOutput = void
2799
-
2800
- export type ProjectCopiesRefreshInput = {
2801
- readonly projectID: { readonly projectID: string }["projectID"]
2802
- readonly location?: {
2803
- readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
2804
- }["location"]
2805
- }
2806
-
2807
- export type ProjectCopiesRefreshOutput = void