shuvcode 2.0.0-alpha-15 → 2.0.0-alpha-16

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.
@@ -6,9 +6,6 @@ export type ServiceHealth = {
6
6
  version: string;
7
7
  pid: number;
8
8
  };
9
- export type ServiceStopResponse = {
10
- accepted: boolean;
11
- };
12
9
  export type ModelRef = {
13
10
  id: string;
14
11
  providerID: string;
@@ -19,8 +16,16 @@ export type ProviderSettings = {
19
16
  };
20
17
  export type AgentColor = string;
21
18
  export type PermissionEffect = "allow" | "deny" | "ask";
22
- export type PluginInfo = {
23
- id: string;
19
+ export type PluginSource = {
20
+ type: "builtin";
21
+ } | {
22
+ type: "package";
23
+ package: string;
24
+ } | {
25
+ type: "local";
26
+ path: string;
27
+ } | {
28
+ type: "sdk";
24
29
  };
25
30
  export type SessionForkBoundary = {
26
31
  type: "before";
@@ -30,15 +35,6 @@ export type SessionForkBoundary = {
30
35
  messageID: string;
31
36
  };
32
37
  export type MoneyUSD = number;
33
- export type TokenUsageInfo = {
34
- input: number;
35
- output: number;
36
- reasoning: number;
37
- cache: {
38
- read: number;
39
- write: number;
40
- };
41
- };
42
38
  export type LocationRef = {
43
39
  directory: string;
44
40
  workspaceID?: string;
@@ -51,18 +47,6 @@ export type FileDiffInfo = {
51
47
  status: "added" | "deleted" | "modified";
52
48
  };
53
49
  export type SessionPolicyToolID = string;
54
- export type SessionMessageAgentSelected = {
55
- id: string;
56
- metadata?: {
57
- [x: string]: JsonValue;
58
- };
59
- time: {
60
- created: number;
61
- };
62
- type: "agent-switched";
63
- agent: string;
64
- previous?: string;
65
- };
66
50
  export type PromptBase64 = string;
67
51
  export type PromptFileSource = {
68
52
  type: "inline";
@@ -75,141 +59,23 @@ export type PromptMention = {
75
59
  end: number;
76
60
  text: string;
77
61
  };
78
- export type StructuredOutputJsonSchema = {
79
- [x: string]: JsonValue;
80
- };
81
- export type SessionMessageSynthetic = {
82
- id: string;
83
- metadata?: {
84
- [x: string]: JsonValue;
85
- };
86
- time: {
87
- created: number;
88
- };
89
- text: string;
90
- description?: string;
91
- type: "synthetic";
92
- };
93
- export type SessionMessageSystem = {
94
- id: string;
95
- metadata?: {
96
- [x: string]: JsonValue;
97
- };
98
- time: {
99
- created: number;
100
- };
101
- type: "system";
102
- text: string;
103
- description?: string;
104
- };
105
- export type SessionMessageSkill = {
106
- id: string;
107
- metadata?: {
108
- [x: string]: JsonValue;
109
- };
110
- time: {
111
- created: number;
112
- };
113
- type: "skill";
114
- skill: string;
115
- name: string;
116
- text: string;
117
- };
118
- export type SessionMessageShell = {
119
- id: string;
120
- metadata?: {
121
- [x: string]: JsonValue;
122
- };
123
- time: {
124
- created: number;
125
- completed?: number;
126
- };
127
- type: "shell";
128
- shellID: string;
129
- command: string;
130
- status: "running" | "exited" | "timeout" | "killed";
131
- exit?: number | "Infinity" | "-Infinity" | "NaN";
132
- output?: {
133
- output: string;
134
- cursor: number;
135
- size: number;
136
- truncated: boolean;
137
- };
138
- };
139
- export type SessionMessageProviderState = {
140
- [x: string]: JsonValue;
141
- };
142
62
  export type SessionMessageToolStateStreaming = {
143
63
  status: "streaming";
144
64
  input: string;
145
65
  };
146
- export type SessionMessageToolStateRunning = {
147
- status: "running";
148
- input: {
149
- [x: string]: JsonValue;
150
- };
151
- metadata: {
152
- [x: string]: JsonValue;
153
- };
154
- };
155
66
  export type ToolTextContent = {
156
67
  type: "text";
157
68
  text: string;
158
69
  };
159
- export type ToolFileContent = {
160
- type: "file";
161
- uri: string;
162
- mime: string;
163
- name?: string | null;
164
- };
165
70
  export type SessionStructuredError = {
166
71
  type: string;
167
72
  message: string;
168
73
  status?: number;
169
74
  };
170
- export type SessionMessageAssistantStructured = {
171
- type: "structured";
172
- value: JsonValue;
173
- };
174
- export type SessionMessageCompactionRunning = {
175
- type: "compaction";
176
- id: string;
177
- metadata?: {
178
- [x: string]: JsonValue;
179
- };
180
- time: {
181
- created: number;
182
- };
183
- status: "running";
184
- reason: "auto" | "manual";
185
- summary: string;
186
- recent: string;
187
- };
188
- export type SessionMessageCompactionCompleted = {
189
- type: "compaction";
190
- id: string;
191
- metadata?: {
192
- [x: string]: JsonValue;
193
- };
194
- time: {
195
- created: number;
196
- };
197
- status: "completed";
198
- reason: "auto" | "manual";
199
- summary: string;
200
- recent: string;
201
- };
202
75
  export type SessionActive = {
203
76
  type: "running";
204
77
  };
205
78
  export type SessionInboxDelivery = "steer" | "queue";
206
- export type SessionInboxSyntheticPayload = {
207
- text: string;
208
- description?: string;
209
- metadata?: {
210
- [x: string]: JsonValue;
211
- };
212
- };
213
79
  export type SessionInboxCompactionPayload = {};
214
80
  export type InstructionEntryKey = string;
215
81
  export type SessionGenerateResponse = {
@@ -224,33 +90,7 @@ export type SessionInboxSyntheticPayload1 = {
224
90
  [x: string]: any;
225
91
  };
226
92
  };
227
- export type ShellInfo = {
228
- id: string;
229
- status: "running" | "exited" | "timeout" | "killed";
230
- command: string;
231
- cwd: string;
232
- shell: string;
233
- file: string;
234
- pid?: number;
235
- exit?: number;
236
- metadata: {
237
- [x: string]: any;
238
- };
239
- time: {
240
- started: number;
241
- completed?: number;
242
- };
243
- };
244
- export type SessionMessageProviderState4 = {
245
- [x: string]: any;
246
- };
247
- export type SessionMessageProviderState5 = {
248
- [x: string]: any;
249
- };
250
- export type SessionMessageProviderState6 = {
251
- [x: string]: any;
252
- };
253
- export type SessionMessageProviderState7 = {
93
+ export type SessionMessageProviderState1 = {
254
94
  [x: string]: any;
255
95
  };
256
96
  export type ToolFileContent1 = {
@@ -259,12 +99,6 @@ export type ToolFileContent1 = {
259
99
  mime: string;
260
100
  name?: string | undefined;
261
101
  };
262
- export type SessionMessageProviderState8 = {
263
- [x: string]: any;
264
- };
265
- export type SessionMessageProviderState9 = {
266
- [x: string]: any;
267
- };
268
102
  export type EventLogSynced = {
269
103
  type: "log.synced";
270
104
  aggregateID: string;
@@ -272,50 +106,12 @@ export type EventLogSynced = {
272
106
  };
273
107
  export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
274
108
  export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
275
- export type ModelCapabilities = {
276
- tools: boolean;
277
- input: Array<string>;
278
- output: Array<string>;
279
- };
280
- export type ModelVariant = {
281
- id: string;
282
- settings?: {
283
- [x: string]: any;
284
- };
285
- headers?: {
286
- [x: string]: string;
287
- };
288
- body?: {
289
- [x: string]: any;
290
- };
291
- };
292
109
  export type MoneyUSDPerMillionTokens = number;
293
110
  export type GenerateTextResponse = {
294
111
  data: {
295
112
  text: string;
296
113
  };
297
114
  };
298
- export type ProviderInfo = {
299
- id: string;
300
- integrationID?: string;
301
- name: string;
302
- activation: "auto" | "enabled" | "disabled";
303
- package: string;
304
- settings?: {
305
- [x: string]: any;
306
- };
307
- headers?: {
308
- [x: string]: string;
309
- };
310
- body?: {
311
- [x: string]: any;
312
- };
313
- };
314
- export type FormWhen = {
315
- key: string;
316
- op: "eq" | "neq";
317
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
318
- };
319
115
  export type FormOption = {
320
116
  value: string;
321
117
  label: string;
@@ -347,66 +143,6 @@ export type ConnectionEnvInfo = {
347
143
  type: "env";
348
144
  name: string;
349
145
  };
350
- export type IntegrationAttemptStatus = {
351
- status: "pending";
352
- time: {
353
- created: number | "Infinity" | "-Infinity" | "NaN";
354
- expires: number | "Infinity" | "-Infinity" | "NaN";
355
- };
356
- } | {
357
- status: "complete";
358
- time: {
359
- created: number | "Infinity" | "-Infinity" | "NaN";
360
- expires: number | "Infinity" | "-Infinity" | "NaN";
361
- };
362
- } | {
363
- status: "failed";
364
- message: string;
365
- time: {
366
- created: number | "Infinity" | "-Infinity" | "NaN";
367
- expires: number | "Infinity" | "-Infinity" | "NaN";
368
- };
369
- } | {
370
- status: "expired";
371
- time: {
372
- created: number | "Infinity" | "-Infinity" | "NaN";
373
- expires: number | "Infinity" | "-Infinity" | "NaN";
374
- };
375
- };
376
- export type IntegrationCommandAttempt = {
377
- attemptID: string;
378
- time: {
379
- created: number | "Infinity" | "-Infinity" | "NaN";
380
- expires: number | "Infinity" | "-Infinity" | "NaN";
381
- };
382
- };
383
- export type IntegrationCommandAttemptStatus = {
384
- status: "pending";
385
- message?: string;
386
- time: {
387
- created: number | "Infinity" | "-Infinity" | "NaN";
388
- expires: number | "Infinity" | "-Infinity" | "NaN";
389
- };
390
- } | {
391
- status: "complete";
392
- time: {
393
- created: number | "Infinity" | "-Infinity" | "NaN";
394
- expires: number | "Infinity" | "-Infinity" | "NaN";
395
- };
396
- } | {
397
- status: "failed";
398
- message: string;
399
- time: {
400
- created: number | "Infinity" | "-Infinity" | "NaN";
401
- expires: number | "Infinity" | "-Infinity" | "NaN";
402
- };
403
- } | {
404
- status: "expired";
405
- time: {
406
- created: number | "Infinity" | "-Infinity" | "NaN";
407
- expires: number | "Infinity" | "-Infinity" | "NaN";
408
- };
409
- };
410
146
  export type AuthProfile = {
411
147
  providerID: string;
412
148
  profileID?: string;
@@ -464,9 +200,6 @@ export type ProjectCurrent = {
464
200
  directory: string;
465
201
  canonical: string;
466
202
  };
467
- export type FormMetadata = {
468
- [x: string]: JsonValue;
469
- };
470
203
  export type FormValue = string | number | boolean | Array<string>;
471
204
  export type PermissionSource = {
472
205
  type: "tool";
@@ -529,22 +262,9 @@ export type SessionStatus = {
529
262
  } | {
530
263
  type: "busy";
531
264
  };
532
- export type ShellInfo1 = {
533
- id: string;
534
- status: "running" | "exited" | "timeout" | "killed";
535
- command: string;
536
- cwd: string;
537
- shell: string;
538
- file: string;
539
- pid?: number;
540
- exit?: number;
541
- metadata: {
542
- [x: string]: JsonValue;
543
- };
544
- time: {
545
- started: number;
546
- completed?: number;
547
- };
265
+ export type PtyTicketConnectToken = {
266
+ ticket: string;
267
+ expires_in: number;
548
268
  };
549
269
  export type ReferenceLocalSource = {
550
270
  type: "local";
@@ -588,18 +308,6 @@ export type WebSearchResult = {
588
308
  published?: number;
589
309
  };
590
310
  };
591
- export type SessionMessageModelSelected = {
592
- id: string;
593
- metadata?: {
594
- [x: string]: JsonValue;
595
- };
596
- time: {
597
- created: number;
598
- };
599
- type: "model-switched";
600
- model: ModelRef;
601
- previous?: ModelRef;
602
- };
603
311
  export type CommandInfo = {
604
312
  name: string;
605
313
  template: string;
@@ -622,22 +330,25 @@ export type PermissionRule = {
622
330
  resource: string;
623
331
  effect: PermissionEffect;
624
332
  };
625
- export type SessionMessageLocationSwitched = {
333
+ export type PluginInfo = {
626
334
  id: string;
627
- metadata?: {
628
- [x: string]: JsonValue;
629
- };
630
- time: {
631
- created: number;
632
- };
633
- type: "location-switched";
634
- location: LocationRef;
635
- projectID?: string;
636
- subpath?: string;
637
- previous?: {
638
- location: LocationRef;
639
- projectID?: string;
640
- subpath?: string;
335
+ source: PluginSource;
336
+ status: "active";
337
+ tui: boolean;
338
+ } | {
339
+ id?: string;
340
+ source: PluginSource;
341
+ status: "failed";
342
+ error: string;
343
+ tui: boolean;
344
+ };
345
+ export type TokenUsageInfo = {
346
+ input: number;
347
+ output: number;
348
+ reasoning: number;
349
+ cache: {
350
+ read: number;
351
+ write: number;
641
352
  };
642
353
  };
643
354
  export type SessionInboxMovePayload = {
@@ -645,6 +356,85 @@ export type SessionInboxMovePayload = {
645
356
  projectID: string;
646
357
  subpath?: string;
647
358
  };
359
+ export type V2EventServerConnected = {
360
+ id: string;
361
+ metadata?: {
362
+ [x: string]: any;
363
+ } | undefined;
364
+ location?: LocationRef | undefined;
365
+ type: "server.connected";
366
+ data: {};
367
+ };
368
+ export type SessionPolicyTools = {
369
+ allow: Array<SessionPolicyToolID>;
370
+ };
371
+ export type SessionMessageProviderState = {
372
+ [x: string]: JsonValue;
373
+ };
374
+ export type SessionMessageToolStateRunning = {
375
+ status: "running";
376
+ input: {
377
+ [x: string]: JsonValue;
378
+ };
379
+ metadata: {
380
+ [x: string]: JsonValue;
381
+ };
382
+ };
383
+ export type SessionInboxSyntheticPayload = {
384
+ text: string;
385
+ description?: string;
386
+ metadata?: {
387
+ [x: string]: JsonValue;
388
+ };
389
+ };
390
+ export type FormMetadata = {
391
+ [x: string]: JsonValue;
392
+ };
393
+ export type PromptFileAttachment = {
394
+ data: PromptBase64;
395
+ mime: string;
396
+ source: PromptFileSource;
397
+ name?: string;
398
+ description?: string;
399
+ mention?: PromptMention;
400
+ };
401
+ export type PromptAgentAttachment = {
402
+ name: string;
403
+ mention?: PromptMention;
404
+ };
405
+ export type PromptSkillAttachment = {
406
+ id: string;
407
+ name: string;
408
+ mention?: PromptMention;
409
+ };
410
+ export type ToolFileContent = {
411
+ type: "file";
412
+ uri: string;
413
+ mime: string;
414
+ name?: string | null;
415
+ };
416
+ export type SessionMessageAssistantRetry = {
417
+ attempt: number;
418
+ at: number;
419
+ error: SessionStructuredError;
420
+ };
421
+ export type SessionInboxCompaction = {
422
+ id: string;
423
+ sessionID: string;
424
+ timeCreated: number;
425
+ type: "compaction";
426
+ payload: SessionInboxCompactionPayload;
427
+ delivery: SessionInboxDelivery;
428
+ };
429
+ export type InstructionEntryInfo = {
430
+ key: InstructionEntryKey;
431
+ value: JsonValue;
432
+ };
433
+ export type InstructionEntrySnapshot = Array<{
434
+ key: InstructionEntryKey;
435
+ value: JsonValue;
436
+ removed: boolean;
437
+ }>;
648
438
  export type SessionAgentSelected = {
649
439
  id: string;
650
440
  created: number;
@@ -721,6 +511,24 @@ export type SessionRenamed = {
721
511
  title: string;
722
512
  };
723
513
  };
514
+ export type SessionViewed = {
515
+ id: string;
516
+ created: number;
517
+ metadata?: {
518
+ [x: string]: any;
519
+ };
520
+ type: "session.viewed";
521
+ durable: {
522
+ aggregateID: string;
523
+ seq: number;
524
+ version: 1;
525
+ };
526
+ location?: LocationRef;
527
+ data: {
528
+ sessionID: string;
529
+ idle: number;
530
+ };
531
+ };
724
532
  export type SessionDeleted = {
725
533
  id: string;
726
534
  created: number;
@@ -774,6 +582,25 @@ export type SessionInboxCancelled = {
774
582
  inboxID: string;
775
583
  };
776
584
  };
585
+ export type SessionInboxDeliveryChanged = {
586
+ id: string;
587
+ created: number;
588
+ metadata?: {
589
+ [x: string]: any;
590
+ };
591
+ type: "session.inbox.delivery.changed";
592
+ durable: {
593
+ aggregateID: string;
594
+ seq: number;
595
+ version: 1;
596
+ };
597
+ location?: LocationRef;
598
+ data: {
599
+ sessionID: string;
600
+ inboxID: string;
601
+ delivery: SessionInboxDelivery;
602
+ };
603
+ };
777
604
  export type SessionExecutionStarted = {
778
605
  id: string;
779
606
  created: number;
@@ -808,6 +635,24 @@ export type SessionExecutionSucceeded = {
808
635
  sessionID: string;
809
636
  };
810
637
  };
638
+ export type SessionExecutionFailed = {
639
+ id: string;
640
+ created: number;
641
+ metadata?: {
642
+ [x: string]: any;
643
+ };
644
+ type: "session.execution.failed";
645
+ durable: {
646
+ aggregateID: string;
647
+ seq: number;
648
+ version: 1;
649
+ };
650
+ location?: LocationRef;
651
+ data: {
652
+ sessionID: string;
653
+ error: SessionStructuredError;
654
+ };
655
+ };
811
656
  export type SessionExecutionInterrupted = {
812
657
  id: string;
813
658
  created: number;
@@ -910,29 +755,6 @@ export type SessionStepStarted = {
910
755
  snapshot?: string;
911
756
  };
912
757
  };
913
- export type SessionStepEnded = {
914
- id: string;
915
- created: number;
916
- metadata?: {
917
- [x: string]: any;
918
- };
919
- type: "session.step.ended";
920
- durable: {
921
- aggregateID: string;
922
- seq: number;
923
- version: 1;
924
- };
925
- location?: LocationRef;
926
- data: {
927
- sessionID: string;
928
- assistantMessageID: string;
929
- finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
930
- cost: MoneyUSD;
931
- tokens: TokenUsageInfo;
932
- snapshot?: string;
933
- files?: Array<string>;
934
- };
935
- };
936
758
  export type SessionTextStarted = {
937
759
  id: string;
938
760
  created: number;
@@ -952,25 +774,6 @@ export type SessionTextStarted = {
952
774
  ordinal: number;
953
775
  };
954
776
  };
955
- export type SessionStructuredCompleted = {
956
- id: string;
957
- created: number;
958
- metadata?: {
959
- [x: string]: any;
960
- };
961
- type: "session.structured.completed";
962
- durable: {
963
- aggregateID: string;
964
- seq: number;
965
- version: 1;
966
- };
967
- location?: LocationRef;
968
- data: {
969
- sessionID: string;
970
- assistantMessageID: string;
971
- value: JsonValue;
972
- };
973
- };
974
777
  export type SessionToolInputStarted = {
975
778
  id: string;
976
779
  created: number;
@@ -1011,33 +814,13 @@ export type SessionToolInputEnded = {
1011
814
  text: string;
1012
815
  };
1013
816
  };
1014
- export type SessionCompactionStarted = {
1015
- id: string;
1016
- created: number;
1017
- metadata?: {
1018
- [x: string]: any;
1019
- };
1020
- type: "session.compaction.started";
1021
- durable: {
1022
- aggregateID: string;
1023
- seq: number;
1024
- version: 1;
1025
- };
1026
- location?: LocationRef;
1027
- data: {
1028
- sessionID: string;
1029
- reason: "auto" | "manual";
1030
- recent: string;
1031
- inputID?: string;
1032
- };
1033
- };
1034
- export type SessionCompactionEnded = {
817
+ export type SessionRetryScheduled = {
1035
818
  id: string;
1036
819
  created: number;
1037
820
  metadata?: {
1038
821
  [x: string]: any;
1039
822
  };
1040
- type: "session.compaction.ended";
823
+ type: "session.retry.scheduled";
1041
824
  durable: {
1042
825
  aggregateID: string;
1043
826
  seq: number;
@@ -1046,9 +829,10 @@ export type SessionCompactionEnded = {
1046
829
  location?: LocationRef;
1047
830
  data: {
1048
831
  sessionID: string;
1049
- reason: "auto" | "manual";
1050
- text: string;
1051
- recent: string;
832
+ assistantMessageID: string;
833
+ attempt: number;
834
+ at: number;
835
+ error: SessionStructuredError;
1052
836
  };
1053
837
  };
1054
838
  export type SessionRevertCleared = {
@@ -1086,27 +870,7 @@ export type SessionRevertCommitted = {
1086
870
  to: string;
1087
871
  };
1088
872
  };
1089
- export type SessionUsageRecorded = {
1090
- id: string;
1091
- created: number;
1092
- metadata?: {
1093
- [x: string]: any;
1094
- };
1095
- type: "session.usage.recorded";
1096
- durable: {
1097
- aggregateID: string;
1098
- seq: number;
1099
- version: 1;
1100
- };
1101
- location?: LocationRef;
1102
- data: {
1103
- sessionID: string;
1104
- source: "title" | "compaction";
1105
- cost: MoneyUSD;
1106
- tokens: TokenUsageInfo;
1107
- };
1108
- };
1109
- export type ModelsDevRefreshed = {
873
+ export type ModelsDevRefreshed = {
1110
874
  id: string;
1111
875
  created: number;
1112
876
  metadata?: {
@@ -1158,20 +922,6 @@ export type AgentUpdated = {
1158
922
  location?: LocationRef;
1159
923
  data: {};
1160
924
  };
1161
- export type SessionUsageUpdated = {
1162
- id: string;
1163
- created: number;
1164
- metadata?: {
1165
- [x: string]: any;
1166
- };
1167
- type: "session.usage.updated";
1168
- location?: LocationRef;
1169
- data: {
1170
- sessionID: string;
1171
- cost: MoneyUSD;
1172
- tokens: TokenUsageInfo;
1173
- };
1174
- };
1175
925
  export type SessionTextDelta = {
1176
926
  id: string;
1177
927
  created: number;
@@ -1550,87 +1300,47 @@ export type McpResourcesChanged = {
1550
1300
  server: string;
1551
1301
  };
1552
1302
  };
1553
- export type V2EventServerConnected = {
1303
+ export type ShellInfo = {
1554
1304
  id: string;
1555
- metadata?: {
1305
+ status: "running" | "exited" | "timeout" | "killed";
1306
+ command: string;
1307
+ cwd: string;
1308
+ shell: string;
1309
+ file: string;
1310
+ pid?: number;
1311
+ exit?: number;
1312
+ metadata: {
1556
1313
  [x: string]: any;
1557
- } | undefined;
1558
- location?: LocationRef | undefined;
1559
- type: "server.connected";
1560
- data: {};
1561
- };
1562
- export type SessionRevert = {
1563
- messageID: string;
1564
- partID?: string;
1565
- snapshot?: string;
1566
- files?: Array<FileDiffInfo>;
1567
- };
1568
- export type SessionPolicyTools = {
1569
- allow: Array<SessionPolicyToolID>;
1570
- };
1571
- export type PromptFileAttachment = {
1572
- data: PromptBase64;
1573
- mime: string;
1574
- source: PromptFileSource;
1575
- name?: string;
1576
- description?: string;
1577
- mention?: PromptMention;
1578
- };
1579
- export type PromptAgentAttachment = {
1580
- name: string;
1581
- mention?: PromptMention;
1582
- };
1583
- export type PromptSkillAttachment = {
1584
- id: string;
1585
- name: string;
1586
- text: string;
1587
- mention?: PromptMention;
1588
- };
1589
- export type StructuredOutputRequest = {
1590
- schema: StructuredOutputJsonSchema;
1591
- name?: string;
1592
- description?: string;
1593
- };
1594
- export type SessionMessageAssistantText = {
1595
- type: "text";
1596
- text: string;
1597
- state?: SessionMessageProviderState;
1598
- };
1599
- export type SessionMessageAssistantReasoning = {
1600
- type: "reasoning";
1601
- text: string;
1602
- state?: SessionMessageProviderState;
1603
- time?: {
1604
- created: number;
1314
+ };
1315
+ time: {
1316
+ started: number;
1605
1317
  completed?: number;
1606
1318
  };
1607
1319
  };
1608
- export type ToolContent = ToolTextContent | ToolFileContent;
1609
- export type SessionMessageAssistantRetry = {
1610
- attempt: number;
1611
- at: number;
1612
- error: SessionStructuredError;
1613
- };
1614
- export type SessionMessageCompactionFailed = {
1615
- type: "compaction";
1320
+ export type ShellInfo1 = {
1616
1321
  id: string;
1617
- metadata?: {
1322
+ status: "running" | "exited" | "timeout" | "killed";
1323
+ command: string;
1324
+ cwd: string;
1325
+ shell: string;
1326
+ file: string;
1327
+ pid?: number;
1328
+ exit?: number;
1329
+ metadata: {
1618
1330
  [x: string]: JsonValue;
1619
1331
  };
1620
1332
  time: {
1621
- created: number;
1333
+ started: number;
1334
+ completed?: number;
1622
1335
  };
1623
- status: "failed";
1624
- reason: "auto" | "manual";
1625
- error: SessionStructuredError;
1626
1336
  };
1627
- export type SessionExecutionFailed = {
1337
+ export type SessionTextEnded = {
1628
1338
  id: string;
1629
1339
  created: number;
1630
1340
  metadata?: {
1631
1341
  [x: string]: any;
1632
1342
  };
1633
- type: "session.execution.failed";
1343
+ type: "session.text.ended";
1634
1344
  durable: {
1635
1345
  aggregateID: string;
1636
1346
  seq: number;
@@ -1639,16 +1349,19 @@ export type SessionExecutionFailed = {
1639
1349
  location?: LocationRef;
1640
1350
  data: {
1641
1351
  sessionID: string;
1642
- error: SessionStructuredError;
1352
+ assistantMessageID: string;
1353
+ ordinal: number;
1354
+ text: string;
1355
+ state?: SessionMessageProviderState1;
1643
1356
  };
1644
1357
  };
1645
- export type SessionStepFailed = {
1358
+ export type SessionReasoningStarted = {
1646
1359
  id: string;
1647
1360
  created: number;
1648
1361
  metadata?: {
1649
1362
  [x: string]: any;
1650
1363
  };
1651
- type: "session.step.failed";
1364
+ type: "session.reasoning.started";
1652
1365
  durable: {
1653
1366
  aggregateID: string;
1654
1367
  seq: number;
@@ -1658,20 +1371,17 @@ export type SessionStepFailed = {
1658
1371
  data: {
1659
1372
  sessionID: string;
1660
1373
  assistantMessageID: string;
1661
- error: SessionStructuredError;
1662
- cost?: MoneyUSD;
1663
- tokens?: TokenUsageInfo;
1664
- snapshot?: string;
1665
- files?: Array<string>;
1374
+ ordinal: number;
1375
+ state?: SessionMessageProviderState1;
1666
1376
  };
1667
1377
  };
1668
- export type SessionStructuredFailed = {
1378
+ export type SessionReasoningEnded = {
1669
1379
  id: string;
1670
1380
  created: number;
1671
1381
  metadata?: {
1672
1382
  [x: string]: any;
1673
1383
  };
1674
- type: "session.structured.failed";
1384
+ type: "session.reasoning.ended";
1675
1385
  durable: {
1676
1386
  aggregateID: string;
1677
1387
  seq: number;
@@ -1681,16 +1391,18 @@ export type SessionStructuredFailed = {
1681
1391
  data: {
1682
1392
  sessionID: string;
1683
1393
  assistantMessageID: string;
1684
- error: SessionStructuredError;
1394
+ ordinal: number;
1395
+ text: string;
1396
+ state?: SessionMessageProviderState1;
1685
1397
  };
1686
1398
  };
1687
- export type SessionRetryScheduled = {
1399
+ export type SessionToolCalled = {
1688
1400
  id: string;
1689
1401
  created: number;
1690
1402
  metadata?: {
1691
1403
  [x: string]: any;
1692
1404
  };
1693
- type: "session.retry.scheduled";
1405
+ type: "session.tool.called";
1694
1406
  durable: {
1695
1407
  aggregateID: string;
1696
1408
  seq: number;
@@ -1700,18 +1412,22 @@ export type SessionRetryScheduled = {
1700
1412
  data: {
1701
1413
  sessionID: string;
1702
1414
  assistantMessageID: string;
1703
- attempt: number;
1704
- at: number;
1705
- error: SessionStructuredError;
1415
+ id: string;
1416
+ input: {
1417
+ [x: string]: any;
1418
+ };
1419
+ executed: boolean;
1420
+ state?: SessionMessageProviderState1;
1706
1421
  };
1707
1422
  };
1708
- export type SessionCompactionFailed = {
1423
+ export type ToolContent1 = ToolTextContent | ToolFileContent1;
1424
+ export type SessionCompactionStarted = {
1709
1425
  id: string;
1710
1426
  created: number;
1711
1427
  metadata?: {
1712
1428
  [x: string]: any;
1713
1429
  };
1714
- type: "session.compaction.failed";
1430
+ type: "session.compaction.started";
1715
1431
  durable: {
1716
1432
  aggregateID: string;
1717
1433
  seq: number;
@@ -1721,17 +1437,17 @@ export type SessionCompactionFailed = {
1721
1437
  data: {
1722
1438
  sessionID: string;
1723
1439
  reason: "auto" | "manual";
1724
- error: SessionStructuredError;
1440
+ recent: string;
1725
1441
  inputID?: string;
1726
1442
  };
1727
1443
  };
1728
- export type SessionInboxDeliveryChanged = {
1444
+ export type SessionCompactionEnded = {
1729
1445
  id: string;
1730
1446
  created: number;
1731
1447
  metadata?: {
1732
1448
  [x: string]: any;
1733
1449
  };
1734
- type: "session.inbox.delivery.changed";
1450
+ type: "session.compaction.ended";
1735
1451
  durable: {
1736
1452
  aggregateID: string;
1737
1453
  seq: number;
@@ -1740,37 +1456,18 @@ export type SessionInboxDeliveryChanged = {
1740
1456
  location?: LocationRef;
1741
1457
  data: {
1742
1458
  sessionID: string;
1743
- inboxID: string;
1744
- delivery: SessionInboxDelivery;
1459
+ reason: "auto" | "manual";
1460
+ text: string;
1461
+ recent: string;
1745
1462
  };
1746
1463
  };
1747
- export type SessionInboxSynthetic = {
1748
- id: string;
1749
- sessionID: string;
1750
- timeCreated: number;
1751
- type: "synthetic";
1752
- payload: SessionInboxSyntheticPayload;
1753
- delivery: SessionInboxDelivery;
1754
- };
1755
- export type SessionInboxCompaction = {
1756
- id: string;
1757
- sessionID: string;
1758
- timeCreated: number;
1759
- type: "compaction";
1760
- payload: SessionInboxCompactionPayload;
1761
- delivery: SessionInboxDelivery;
1762
- };
1763
- export type InstructionEntryInfo = {
1764
- key: InstructionEntryKey;
1765
- value: JsonValue;
1766
- };
1767
- export type SessionShellStarted = {
1464
+ export type SessionCompactionFailed = {
1768
1465
  id: string;
1769
1466
  created: number;
1770
1467
  metadata?: {
1771
1468
  [x: string]: any;
1772
1469
  };
1773
- type: "session.shell.started";
1470
+ type: "session.compaction.failed";
1774
1471
  durable: {
1775
1472
  aggregateID: string;
1776
1473
  seq: number;
@@ -1779,136 +1476,49 @@ export type SessionShellStarted = {
1779
1476
  location?: LocationRef;
1780
1477
  data: {
1781
1478
  sessionID: string;
1782
- shell: ShellInfo;
1479
+ reason: "auto" | "manual";
1480
+ error: SessionStructuredError;
1481
+ inputID?: string;
1783
1482
  };
1784
1483
  };
1785
- export type SessionShellEnded = {
1484
+ export type ModelCompatibility = {
1485
+ reasoningField?: ModelReasoningField;
1486
+ maxTokensField?: ModelMaxTokensField;
1487
+ requireFinishReason?: boolean;
1488
+ };
1489
+ export type ModelVariant = {
1786
1490
  id: string;
1787
- created: number;
1788
- metadata?: {
1491
+ settings?: {
1789
1492
  [x: string]: any;
1790
1493
  };
1791
- type: "session.shell.ended";
1792
- durable: {
1793
- aggregateID: string;
1794
- seq: number;
1795
- version: 1;
1796
- };
1797
- location?: LocationRef;
1798
- data: {
1799
- sessionID: string;
1800
- shell: ShellInfo;
1801
- output: {
1802
- output: string;
1803
- cursor: number;
1804
- size: number;
1805
- truncated: boolean;
1806
- };
1494
+ headers?: {
1495
+ [x: string]: string;
1807
1496
  };
1808
- };
1809
- export type ShellCreated = {
1810
- id: string;
1811
- created: number;
1812
- metadata?: {
1497
+ body?: {
1813
1498
  [x: string]: any;
1814
1499
  };
1815
- type: "shell.created";
1816
- location?: LocationRef;
1817
- data: {
1818
- info: ShellInfo;
1819
- };
1820
1500
  };
1821
- export type SessionTextEnded = {
1501
+ export type ProviderInfo = {
1822
1502
  id: string;
1823
- created: number;
1824
- metadata?: {
1503
+ integrationID?: string;
1504
+ name: string;
1505
+ activation: "auto" | "enabled" | "disabled";
1506
+ package: string;
1507
+ settings?: {
1825
1508
  [x: string]: any;
1826
1509
  };
1827
- type: "session.text.ended";
1828
- durable: {
1829
- aggregateID: string;
1830
- seq: number;
1831
- version: 1;
1510
+ headers?: {
1511
+ [x: string]: string;
1832
1512
  };
1833
- location?: LocationRef;
1834
- data: {
1835
- sessionID: string;
1836
- assistantMessageID: string;
1837
- ordinal: number;
1838
- text: string;
1839
- state?: SessionMessageProviderState4;
1513
+ body?: {
1514
+ [x: string]: any;
1840
1515
  };
1841
1516
  };
1842
- export type SessionReasoningStarted = {
1843
- id: string;
1844
- created: number;
1845
- metadata?: {
1846
- [x: string]: any;
1847
- };
1848
- type: "session.reasoning.started";
1849
- durable: {
1850
- aggregateID: string;
1851
- seq: number;
1852
- version: 1;
1853
- };
1854
- location?: LocationRef;
1855
- data: {
1856
- sessionID: string;
1857
- assistantMessageID: string;
1858
- ordinal: number;
1859
- state?: SessionMessageProviderState5;
1860
- };
1861
- };
1862
- export type SessionReasoningEnded = {
1863
- id: string;
1864
- created: number;
1865
- metadata?: {
1866
- [x: string]: any;
1867
- };
1868
- type: "session.reasoning.ended";
1869
- durable: {
1870
- aggregateID: string;
1871
- seq: number;
1872
- version: 1;
1873
- };
1874
- location?: LocationRef;
1875
- data: {
1876
- sessionID: string;
1877
- assistantMessageID: string;
1878
- ordinal: number;
1879
- text: string;
1880
- state?: SessionMessageProviderState6;
1881
- };
1882
- };
1883
- export type SessionToolCalled = {
1884
- id: string;
1885
- created: number;
1886
- metadata?: {
1887
- [x: string]: any;
1888
- };
1889
- type: "session.tool.called";
1890
- durable: {
1891
- aggregateID: string;
1892
- seq: number;
1893
- version: 1;
1894
- };
1895
- location?: LocationRef;
1896
- data: {
1897
- sessionID: string;
1898
- assistantMessageID: string;
1899
- id: string;
1900
- input: {
1901
- [x: string]: any;
1902
- };
1903
- executed: boolean;
1904
- state?: SessionMessageProviderState7;
1905
- };
1906
- };
1907
- export type ToolContent1 = ToolTextContent | ToolFileContent1;
1908
- export type ModelCompatibility = {
1909
- reasoningField?: ModelReasoningField;
1910
- maxTokensField?: ModelMaxTokensField;
1911
- requireFinishReason?: boolean;
1517
+ export type ModelCapabilities = {
1518
+ tools: boolean;
1519
+ input: Array<string>;
1520
+ output: Array<string>;
1521
+ responsesWebsockets?: boolean;
1912
1522
  };
1913
1523
  export type ModelCost = {
1914
1524
  tier?: {
@@ -1922,66 +1532,6 @@ export type ModelCost = {
1922
1532
  write: MoneyUSDPerMillionTokens;
1923
1533
  };
1924
1534
  };
1925
- export type FormNumberField = {
1926
- key: string;
1927
- title?: string;
1928
- description?: string;
1929
- required?: boolean;
1930
- when?: Array<FormWhen>;
1931
- type: "number";
1932
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1933
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1934
- default?: number | "Infinity" | "-Infinity" | "NaN";
1935
- };
1936
- export type FormIntegerField = {
1937
- key: string;
1938
- title?: string;
1939
- description?: string;
1940
- required?: boolean;
1941
- when?: Array<FormWhen>;
1942
- type: "integer";
1943
- minimum?: number | "Infinity" | "-Infinity" | "NaN";
1944
- maximum?: number | "Infinity" | "-Infinity" | "NaN";
1945
- default?: number | "Infinity" | "-Infinity" | "NaN";
1946
- };
1947
- export type FormBooleanField = {
1948
- key: string;
1949
- title?: string;
1950
- description?: string;
1951
- required?: boolean;
1952
- when?: Array<FormWhen>;
1953
- type: "boolean";
1954
- default?: boolean;
1955
- };
1956
- export type FormStringField = {
1957
- key: string;
1958
- title?: string;
1959
- description?: string;
1960
- required?: boolean;
1961
- when?: Array<FormWhen>;
1962
- type: "string";
1963
- format?: "email" | "uri" | "date" | "date-time";
1964
- minLength?: number;
1965
- maxLength?: number;
1966
- pattern?: string;
1967
- placeholder?: string;
1968
- default?: string;
1969
- options?: Array<FormOption>;
1970
- custom?: boolean;
1971
- };
1972
- export type FormMultiselectField = {
1973
- key: string;
1974
- title?: string;
1975
- description?: string;
1976
- required?: boolean;
1977
- when?: Array<FormWhen>;
1978
- type: "multiselect";
1979
- options: Array<FormOption>;
1980
- minItems?: number;
1981
- maxItems?: number;
1982
- custom?: boolean;
1983
- default?: Array<string>;
1984
- };
1985
1535
  export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
1986
1536
  export type AuthStatus = {
1987
1537
  ready: boolean;
@@ -2080,67 +1630,7 @@ export type PtyUpdated = {
2080
1630
  info: Pty;
2081
1631
  };
2082
1632
  };
2083
- export type FormStringField1 = {
2084
- key: string;
2085
- title?: string;
2086
- description?: string;
2087
- required?: boolean;
2088
- when?: Array<FormWhen1>;
2089
- type: "string";
2090
- format?: "email" | "uri" | "date" | "date-time";
2091
- minLength?: number;
2092
- maxLength?: number;
2093
- pattern?: string;
2094
- placeholder?: string;
2095
- default?: string;
2096
- options?: Array<FormOption>;
2097
- custom?: boolean;
2098
- };
2099
- export type FormNumberField1 = {
2100
- key: string;
2101
- title?: string;
2102
- description?: string;
2103
- required?: boolean;
2104
- when?: Array<FormWhen1>;
2105
- type: "number";
2106
- minimum?: number;
2107
- maximum?: number;
2108
- default?: number;
2109
- };
2110
- export type FormIntegerField1 = {
2111
- key: string;
2112
- title?: string;
2113
- description?: string;
2114
- required?: boolean;
2115
- when?: Array<FormWhen1>;
2116
- type: "integer";
2117
- minimum?: number;
2118
- maximum?: number;
2119
- default?: number;
2120
- };
2121
- export type FormBooleanField1 = {
2122
- key: string;
2123
- title?: string;
2124
- description?: string;
2125
- required?: boolean;
2126
- when?: Array<FormWhen1>;
2127
- type: "boolean";
2128
- default?: boolean;
2129
- };
2130
- export type FormMultiselectField1 = {
2131
- key: string;
2132
- title?: string;
2133
- description?: string;
2134
- required?: boolean;
2135
- when?: Array<FormWhen1>;
2136
- type: "multiselect";
2137
- options: Array<FormOption>;
2138
- minItems?: number;
2139
- maxItems?: number;
2140
- custom?: boolean;
2141
- default?: Array<string>;
2142
- };
2143
- export type SessionStatus2 = {
1633
+ export type SessionStatusUpdated = {
2144
1634
  id: string;
2145
1635
  created: number;
2146
1636
  metadata?: {
@@ -2159,6 +1649,91 @@ export type VcsInfo = {
2159
1649
  branch: VcsBranch;
2160
1650
  };
2161
1651
  export type PermissionRuleset = Array<PermissionRule>;
1652
+ export type SessionStepEnded = {
1653
+ id: string;
1654
+ created: number;
1655
+ metadata?: {
1656
+ [x: string]: any;
1657
+ };
1658
+ type: "session.step.ended";
1659
+ durable: {
1660
+ aggregateID: string;
1661
+ seq: number;
1662
+ version: 1;
1663
+ };
1664
+ location?: LocationRef;
1665
+ data: {
1666
+ sessionID: string;
1667
+ assistantMessageID: string;
1668
+ finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
1669
+ rawFinish?: string;
1670
+ providerState?: SessionMessageProviderState1;
1671
+ cost: MoneyUSD;
1672
+ tokens: TokenUsageInfo;
1673
+ snapshot?: string;
1674
+ files?: Array<string>;
1675
+ };
1676
+ };
1677
+ export type SessionUsageRecorded = {
1678
+ id: string;
1679
+ created: number;
1680
+ metadata?: {
1681
+ [x: string]: any;
1682
+ };
1683
+ type: "session.usage.recorded";
1684
+ durable: {
1685
+ aggregateID: string;
1686
+ seq: number;
1687
+ version: 1;
1688
+ };
1689
+ location?: LocationRef;
1690
+ data: {
1691
+ sessionID: string;
1692
+ source: "title" | "compaction";
1693
+ cost: MoneyUSD;
1694
+ tokens: TokenUsageInfo;
1695
+ };
1696
+ };
1697
+ export type SessionUsageUpdated = {
1698
+ id: string;
1699
+ created: number;
1700
+ metadata?: {
1701
+ [x: string]: any;
1702
+ };
1703
+ type: "session.usage.updated";
1704
+ location?: LocationRef;
1705
+ data: {
1706
+ sessionID: string;
1707
+ cost: MoneyUSD;
1708
+ tokens: TokenUsageInfo;
1709
+ };
1710
+ };
1711
+ export type SessionStepFailed = {
1712
+ id: string;
1713
+ created: number;
1714
+ metadata?: {
1715
+ [x: string]: any;
1716
+ };
1717
+ type: "session.step.failed";
1718
+ durable: {
1719
+ aggregateID: string;
1720
+ seq: number;
1721
+ version: 1;
1722
+ };
1723
+ location?: LocationRef;
1724
+ data: {
1725
+ sessionID: string;
1726
+ assistantMessageID: string;
1727
+ error: SessionStructuredError;
1728
+ finish?: "content-filter";
1729
+ rawFinish?: string;
1730
+ providerState?: SessionMessageProviderState1;
1731
+ cost?: MoneyUSD;
1732
+ tokens?: TokenUsageInfo;
1733
+ snapshot?: string;
1734
+ files?: Array<string>;
1735
+ };
1736
+ };
2162
1737
  export type SessionInboxMove = {
2163
1738
  id: string;
2164
1739
  sessionID: string;
@@ -2167,13 +1742,209 @@ export type SessionInboxMove = {
2167
1742
  payload: SessionInboxMovePayload;
2168
1743
  delivery: SessionInboxDelivery;
2169
1744
  };
2170
- export type SessionRevertStaged = {
1745
+ export type SessionRevert = {
1746
+ messageID: string;
1747
+ partID?: string;
1748
+ snapshot?: string;
1749
+ files?: Array<FileDiffInfo>;
1750
+ };
1751
+ export type SessionPolicy = {
1752
+ tools: SessionPolicyTools;
1753
+ };
1754
+ export type SessionMessageAgentSelected = {
1755
+ id: string;
1756
+ metadata?: {
1757
+ [x: string]: JsonValue;
1758
+ };
1759
+ time: {
1760
+ created: number;
1761
+ };
1762
+ type: "agent-switched";
1763
+ agent: string;
1764
+ previous?: string;
1765
+ };
1766
+ export type SessionMessageModelSelected = {
1767
+ id: string;
1768
+ metadata?: {
1769
+ [x: string]: JsonValue;
1770
+ };
1771
+ time: {
1772
+ created: number;
1773
+ };
1774
+ type: "model-switched";
1775
+ model: ModelRef;
1776
+ previous?: ModelRef;
1777
+ };
1778
+ export type SessionMessageLocationSwitched = {
1779
+ id: string;
1780
+ metadata?: {
1781
+ [x: string]: JsonValue;
1782
+ };
1783
+ time: {
1784
+ created: number;
1785
+ };
1786
+ type: "location-switched";
1787
+ location: LocationRef;
1788
+ projectID?: string;
1789
+ subpath?: string;
1790
+ previous?: {
1791
+ location: LocationRef;
1792
+ projectID?: string;
1793
+ subpath?: string;
1794
+ };
1795
+ };
1796
+ export type SessionMessageSynthetic = {
1797
+ id: string;
1798
+ metadata?: {
1799
+ [x: string]: JsonValue;
1800
+ };
1801
+ time: {
1802
+ created: number;
1803
+ };
1804
+ text: string;
1805
+ description?: string;
1806
+ type: "synthetic";
1807
+ };
1808
+ export type SessionMessageSystem = {
1809
+ id: string;
1810
+ metadata?: {
1811
+ [x: string]: JsonValue;
1812
+ };
1813
+ time: {
1814
+ created: number;
1815
+ };
1816
+ type: "system";
1817
+ text: string;
1818
+ description?: string;
1819
+ };
1820
+ export type SessionMessageSkill = {
1821
+ id: string;
1822
+ metadata?: {
1823
+ [x: string]: JsonValue;
1824
+ };
1825
+ time: {
1826
+ created: number;
1827
+ };
1828
+ type: "skill";
1829
+ skill: string;
1830
+ name: string;
1831
+ text: string;
1832
+ };
1833
+ export type SessionMessageShell = {
1834
+ id: string;
1835
+ metadata?: {
1836
+ [x: string]: JsonValue;
1837
+ };
1838
+ time: {
1839
+ created: number;
1840
+ completed?: number;
1841
+ };
1842
+ type: "shell";
1843
+ shellID: string;
1844
+ command: string;
1845
+ status: "running" | "exited" | "timeout" | "killed";
1846
+ exit?: number | ("Infinity" | "-Infinity" | "NaN");
1847
+ output?: {
1848
+ output: string;
1849
+ cursor: number;
1850
+ size: number;
1851
+ truncated: boolean;
1852
+ };
1853
+ };
1854
+ export type SessionMessageCompactionRunning = {
1855
+ type: "compaction";
1856
+ id: string;
1857
+ metadata?: {
1858
+ [x: string]: JsonValue;
1859
+ };
1860
+ time: {
1861
+ created: number;
1862
+ };
1863
+ status: "running";
1864
+ reason: "auto" | "manual";
1865
+ summary: string;
1866
+ recent: string;
1867
+ };
1868
+ export type SessionMessageCompactionCompleted = {
1869
+ type: "compaction";
1870
+ id: string;
1871
+ metadata?: {
1872
+ [x: string]: JsonValue;
1873
+ };
1874
+ time: {
1875
+ created: number;
1876
+ };
1877
+ status: "completed";
1878
+ reason: "auto" | "manual";
1879
+ summary: string;
1880
+ recent: string;
1881
+ };
1882
+ export type SessionMessageCompactionFailed = {
1883
+ type: "compaction";
1884
+ id: string;
1885
+ metadata?: {
1886
+ [x: string]: JsonValue;
1887
+ };
1888
+ time: {
1889
+ created: number;
1890
+ };
1891
+ status: "failed";
1892
+ reason: "auto" | "manual";
1893
+ error: SessionStructuredError;
1894
+ };
1895
+ export type SessionMessageAssistantText = {
1896
+ type: "text";
1897
+ text: string;
1898
+ state?: SessionMessageProviderState;
1899
+ };
1900
+ export type SessionMessageAssistantReasoning = {
1901
+ type: "reasoning";
1902
+ text: string;
1903
+ state?: SessionMessageProviderState;
1904
+ time?: {
1905
+ created: number;
1906
+ completed?: number;
1907
+ };
1908
+ };
1909
+ export type SessionInboxSynthetic = {
1910
+ id: string;
1911
+ sessionID: string;
1912
+ timeCreated: number;
1913
+ type: "synthetic";
1914
+ payload: SessionInboxSyntheticPayload;
1915
+ delivery: SessionInboxDelivery;
1916
+ };
1917
+ export type FormWhen = {
1918
+ key: string;
1919
+ op: "eq" | "neq";
1920
+ value: string | (number | ("Infinity" | "-Infinity" | "NaN")) | boolean;
1921
+ };
1922
+ export type ToolContent = ToolTextContent | ToolFileContent;
1923
+ export type SessionShellStarted = {
1924
+ id: string;
1925
+ created: number;
1926
+ metadata?: {
1927
+ [x: string]: any;
1928
+ };
1929
+ type: "session.shell.started";
1930
+ durable: {
1931
+ aggregateID: string;
1932
+ seq: number;
1933
+ version: 1;
1934
+ };
1935
+ location?: LocationRef;
1936
+ data: {
1937
+ sessionID: string;
1938
+ shell: ShellInfo;
1939
+ };
1940
+ };
1941
+ export type SessionShellEnded = {
2171
1942
  id: string;
2172
1943
  created: number;
2173
1944
  metadata?: {
2174
1945
  [x: string]: any;
2175
1946
  };
2176
- type: "session.revert.staged";
1947
+ type: "session.shell.ended";
2177
1948
  durable: {
2178
1949
  aggregateID: string;
2179
1950
  seq: number;
@@ -2182,69 +1953,27 @@ export type SessionRevertStaged = {
2182
1953
  location?: LocationRef;
2183
1954
  data: {
2184
1955
  sessionID: string;
2185
- revert: SessionRevert;
1956
+ shell: ShellInfo;
1957
+ output: {
1958
+ output: string;
1959
+ cursor: number;
1960
+ size: number;
1961
+ truncated: boolean;
1962
+ };
2186
1963
  };
2187
1964
  };
2188
- export type SessionPolicy = {
2189
- tools: SessionPolicyTools;
2190
- };
2191
- export type SessionMessageUser = {
1965
+ export type ShellCreated = {
2192
1966
  id: string;
2193
- metadata?: {
2194
- [x: string]: JsonValue;
2195
- };
2196
- time: {
2197
- created: number;
2198
- };
2199
- text: string;
2200
- files?: Array<PromptFileAttachment>;
2201
- agents?: Array<PromptAgentAttachment>;
2202
- output?: StructuredOutputRequest;
2203
- skills?: Array<PromptSkillAttachment>;
2204
- type: "user";
2205
- };
2206
- export type SessionInboxUserPayload = {
2207
- text: string;
2208
- files?: Array<PromptFileAttachment>;
2209
- agents?: Array<PromptAgentAttachment>;
2210
- output?: StructuredOutputRequest;
2211
- skills?: Array<PromptSkillAttachment>;
2212
- metadata?: {
2213
- [x: string]: JsonValue;
2214
- };
2215
- };
2216
- export type SessionInboxUserPayload1 = {
2217
- text: string;
2218
- files?: Array<PromptFileAttachment>;
2219
- agents?: Array<PromptAgentAttachment>;
2220
- output?: StructuredOutputRequest;
2221
- skills?: Array<PromptSkillAttachment>;
1967
+ created: number;
2222
1968
  metadata?: {
2223
1969
  [x: string]: any;
2224
1970
  };
2225
- };
2226
- export type SessionMessageToolStateCompleted = {
2227
- status: "completed";
2228
- input: {
2229
- [x: string]: JsonValue;
2230
- };
2231
- content: [ToolContent, ...Array<ToolContent>];
2232
- metadata?: {
2233
- [x: string]: JsonValue;
2234
- };
2235
- };
2236
- export type SessionMessageToolStateError = {
2237
- status: "error";
2238
- input: {
2239
- [x: string]: JsonValue;
2240
- };
2241
- error: SessionStructuredError;
2242
- content?: [ToolContent, ...Array<ToolContent>];
2243
- metadata?: {
2244
- [x: string]: JsonValue;
1971
+ type: "shell.created";
1972
+ location?: LocationRef;
1973
+ data: {
1974
+ info: ShellInfo;
2245
1975
  };
2246
1976
  };
2247
- export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
2248
1977
  export type SessionToolSuccess = {
2249
1978
  id: string;
2250
1979
  created: number;
@@ -2267,7 +1996,7 @@ export type SessionToolSuccess = {
2267
1996
  [x: string]: JsonValue;
2268
1997
  };
2269
1998
  executed: boolean;
2270
- resultState?: SessionMessageProviderState8;
1999
+ resultState?: SessionMessageProviderState1;
2271
2000
  };
2272
2001
  };
2273
2002
  export type SessionToolFailed = {
@@ -2293,7 +2022,7 @@ export type SessionToolFailed = {
2293
2022
  [x: string]: JsonValue;
2294
2023
  };
2295
2024
  executed: boolean;
2296
- resultState?: SessionMessageProviderState9;
2025
+ resultState?: SessionMessageProviderState1;
2297
2026
  };
2298
2027
  };
2299
2028
  export type ModelInfo = {
@@ -2327,7 +2056,6 @@ export type ModelInfo = {
2327
2056
  output: number;
2328
2057
  };
2329
2058
  };
2330
- export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
2331
2059
  export type FormState = {
2332
2060
  status: "pending";
2333
2061
  } | {
@@ -2350,7 +2078,66 @@ export type FormReplied = {
2350
2078
  answer: FormAnswer;
2351
2079
  };
2352
2080
  };
2353
- export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2081
+ export type FormStringField1 = {
2082
+ key: string;
2083
+ title?: string;
2084
+ description?: string;
2085
+ required?: boolean;
2086
+ when?: Array<FormWhen1>;
2087
+ type: "string";
2088
+ format?: "email" | "uri" | "date" | "date-time";
2089
+ minLength?: number;
2090
+ maxLength?: number;
2091
+ pattern?: string;
2092
+ placeholder?: string;
2093
+ default?: string;
2094
+ options?: Array<FormOption>;
2095
+ custom?: boolean;
2096
+ };
2097
+ export type FormNumberField1 = {
2098
+ key: string;
2099
+ title?: string;
2100
+ description?: string;
2101
+ required?: boolean;
2102
+ when?: Array<FormWhen1>;
2103
+ type: "number";
2104
+ minimum?: number;
2105
+ maximum?: number;
2106
+ default?: number;
2107
+ };
2108
+ export type FormIntegerField1 = {
2109
+ key: string;
2110
+ title?: string;
2111
+ description?: string;
2112
+ required?: boolean;
2113
+ when?: Array<FormWhen1>;
2114
+ type: "integer";
2115
+ minimum?: number;
2116
+ maximum?: number;
2117
+ default?: number;
2118
+ };
2119
+ export type FormBooleanField1 = {
2120
+ key: string;
2121
+ title?: string;
2122
+ description?: string;
2123
+ required?: boolean;
2124
+ when?: Array<FormWhen1>;
2125
+ type: "boolean";
2126
+ default?: boolean;
2127
+ };
2128
+ export type FormMultiselectField1 = {
2129
+ key: string;
2130
+ title?: string;
2131
+ description?: string;
2132
+ required?: boolean;
2133
+ when?: Array<FormWhen1>;
2134
+ type: "multiselect";
2135
+ options: Array<FormOption>;
2136
+ minItems?: number;
2137
+ maxItems?: number;
2138
+ custom?: boolean;
2139
+ default?: Array<string>;
2140
+ };
2354
2141
  export type ReferenceInfo = {
2355
2142
  name: string;
2356
2143
  path: string;
@@ -2649,6 +2436,24 @@ export type ConfigEntry = {
2649
2436
  type: "claude";
2650
2437
  path: string;
2651
2438
  };
2439
+ export type SessionRevertStaged = {
2440
+ id: string;
2441
+ created: number;
2442
+ metadata?: {
2443
+ [x: string]: any;
2444
+ };
2445
+ type: "session.revert.staged";
2446
+ durable: {
2447
+ aggregateID: string;
2448
+ seq: number;
2449
+ version: 1;
2450
+ };
2451
+ location?: LocationRef;
2452
+ data: {
2453
+ sessionID: string;
2454
+ revert: SessionRevert;
2455
+ };
2456
+ };
2652
2457
  export type SessionInfo = {
2653
2458
  id: string;
2654
2459
  parentID?: string;
@@ -2661,9 +2466,12 @@ export type SessionInfo = {
2661
2466
  model?: ModelRef;
2662
2467
  cost: MoneyUSD;
2663
2468
  tokens: TokenUsageInfo;
2469
+ outcome?: "succeeded" | "failed" | "interrupted";
2664
2470
  time: {
2665
2471
  created: number;
2666
2472
  updated: number;
2473
+ idle?: number;
2474
+ viewed?: number;
2667
2475
  archived?: number;
2668
2476
  };
2669
2477
  title?: string;
@@ -2711,15 +2519,138 @@ export type SessionForked = {
2711
2519
  seq: number;
2712
2520
  version: 2;
2713
2521
  };
2714
- location?: LocationRef;
2715
- data: {
2716
- sessionID: string;
2717
- parentID: string;
2718
- boundary: SessionForkBoundary;
2719
- instructions?: {
2720
- [x: string]: string;
2721
- };
2722
- policy?: SessionPolicy;
2522
+ location?: LocationRef;
2523
+ data: {
2524
+ sessionID: string;
2525
+ parentID: string;
2526
+ boundary: SessionForkBoundary;
2527
+ instructions?: {
2528
+ [x: string]: string;
2529
+ };
2530
+ policy?: SessionPolicy;
2531
+ instructionEntries?: InstructionEntrySnapshot;
2532
+ };
2533
+ };
2534
+ export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
2535
+ export type SessionMessageUser = {
2536
+ id: string;
2537
+ metadata?: {
2538
+ [x: string]: JsonValue;
2539
+ };
2540
+ time: {
2541
+ created: number;
2542
+ };
2543
+ text: string;
2544
+ files?: Array<PromptFileAttachment>;
2545
+ agents?: Array<PromptAgentAttachment>;
2546
+ skills?: Array<PromptSkillAttachment>;
2547
+ type: "user";
2548
+ };
2549
+ export type SessionInboxUserPayload = {
2550
+ text: string;
2551
+ files?: Array<PromptFileAttachment>;
2552
+ agents?: Array<PromptAgentAttachment>;
2553
+ skills?: Array<PromptSkillAttachment>;
2554
+ metadata?: {
2555
+ [x: string]: JsonValue;
2556
+ };
2557
+ };
2558
+ export type SessionInboxUserPayload1 = {
2559
+ text: string;
2560
+ files?: Array<PromptFileAttachment>;
2561
+ agents?: Array<PromptAgentAttachment>;
2562
+ skills?: Array<PromptSkillAttachment>;
2563
+ metadata?: {
2564
+ [x: string]: any;
2565
+ };
2566
+ };
2567
+ export type IntegrationAttemptStatus = {
2568
+ status: "pending";
2569
+ time: {
2570
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2571
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2572
+ };
2573
+ } | {
2574
+ status: "complete";
2575
+ time: {
2576
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2577
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2578
+ };
2579
+ } | {
2580
+ status: "failed";
2581
+ message: string;
2582
+ time: {
2583
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2584
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2585
+ };
2586
+ } | {
2587
+ status: "expired";
2588
+ time: {
2589
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2590
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2591
+ };
2592
+ };
2593
+ export type IntegrationCommandAttempt = {
2594
+ attemptID: string;
2595
+ time: {
2596
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2597
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2598
+ };
2599
+ };
2600
+ export type IntegrationCommandAttemptStatus = {
2601
+ status: "pending";
2602
+ message?: string;
2603
+ time: {
2604
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2605
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2606
+ };
2607
+ } | {
2608
+ status: "complete";
2609
+ time: {
2610
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2611
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2612
+ };
2613
+ } | {
2614
+ status: "failed";
2615
+ message: string;
2616
+ time: {
2617
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2618
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2619
+ };
2620
+ } | {
2621
+ status: "expired";
2622
+ time: {
2623
+ created: number | ("Infinity" | "-Infinity" | "NaN");
2624
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
2625
+ };
2626
+ };
2627
+ export type SessionMessageToolStateCompleted = {
2628
+ status: "completed";
2629
+ input: {
2630
+ [x: string]: JsonValue;
2631
+ };
2632
+ content: [ToolContent, ...Array<ToolContent>];
2633
+ metadata?: {
2634
+ [x: string]: JsonValue;
2635
+ };
2636
+ };
2637
+ export type SessionMessageToolStateError = {
2638
+ status: "error";
2639
+ input: {
2640
+ [x: string]: JsonValue;
2641
+ };
2642
+ error: SessionStructuredError;
2643
+ content?: [ToolContent, ...Array<ToolContent>];
2644
+ metadata?: {
2645
+ [x: string]: JsonValue;
2646
+ };
2647
+ };
2648
+ export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2649
+ export type SessionsResponse = {
2650
+ data: Array<SessionInfo>;
2651
+ cursor: {
2652
+ previous?: string | null;
2653
+ next?: string | null;
2723
2654
  };
2724
2655
  };
2725
2656
  export type SessionInboxUser = {
@@ -2747,6 +2678,66 @@ export type SessionInboxItem = {
2747
2678
  payload: SessionInboxMovePayload;
2748
2679
  delivery: SessionInboxDelivery;
2749
2680
  };
2681
+ export type FormStringField = {
2682
+ key: string;
2683
+ title?: string;
2684
+ description?: string;
2685
+ required?: boolean;
2686
+ when?: Array<FormWhen>;
2687
+ type: "string";
2688
+ format?: "email" | "uri" | "date" | "date-time";
2689
+ minLength?: number;
2690
+ maxLength?: number;
2691
+ pattern?: string;
2692
+ placeholder?: string;
2693
+ default?: string;
2694
+ options?: Array<FormOption>;
2695
+ custom?: boolean;
2696
+ };
2697
+ export type FormNumberField = {
2698
+ key: string;
2699
+ title?: string;
2700
+ description?: string;
2701
+ required?: boolean;
2702
+ when?: Array<FormWhen>;
2703
+ type: "number";
2704
+ minimum?: number | ("Infinity" | "-Infinity" | "NaN");
2705
+ maximum?: number | ("Infinity" | "-Infinity" | "NaN");
2706
+ default?: number | ("Infinity" | "-Infinity" | "NaN");
2707
+ };
2708
+ export type FormIntegerField = {
2709
+ key: string;
2710
+ title?: string;
2711
+ description?: string;
2712
+ required?: boolean;
2713
+ when?: Array<FormWhen>;
2714
+ type: "integer";
2715
+ minimum?: number | ("Infinity" | "-Infinity" | "NaN");
2716
+ maximum?: number | ("Infinity" | "-Infinity" | "NaN");
2717
+ default?: number | ("Infinity" | "-Infinity" | "NaN");
2718
+ };
2719
+ export type FormBooleanField = {
2720
+ key: string;
2721
+ title?: string;
2722
+ description?: string;
2723
+ required?: boolean;
2724
+ when?: Array<FormWhen>;
2725
+ type: "boolean";
2726
+ default?: boolean;
2727
+ };
2728
+ export type FormMultiselectField = {
2729
+ key: string;
2730
+ title?: string;
2731
+ description?: string;
2732
+ required?: boolean;
2733
+ when?: Array<FormWhen>;
2734
+ type: "multiselect";
2735
+ options: Array<FormOption>;
2736
+ minItems?: number;
2737
+ maxItems?: number;
2738
+ custom?: boolean;
2739
+ default?: Array<string>;
2740
+ };
2750
2741
  export type SessionMessageAssistantTool = {
2751
2742
  type: "tool";
2752
2743
  id: string;
@@ -2761,15 +2752,7 @@ export type SessionMessageAssistantTool = {
2761
2752
  completed?: number;
2762
2753
  };
2763
2754
  };
2764
- export type FormFields = [FormField, ...Array<FormField>];
2765
- export type FormFields3 = [FormField1, ...Array<FormField1>];
2766
- export type SessionsResponse = {
2767
- data: Array<SessionInfo>;
2768
- cursor: {
2769
- previous?: string | null;
2770
- next?: string | null;
2771
- };
2772
- };
2755
+ export type FormFields2 = [FormField1, ...Array<FormField1>];
2773
2756
  export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
2774
2757
  export type SessionInboxEnqueued = {
2775
2758
  id: string;
@@ -2790,6 +2773,7 @@ export type SessionInboxEnqueued = {
2790
2773
  item: SessionInboxItem;
2791
2774
  };
2792
2775
  };
2776
+ export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
2793
2777
  export type SessionMessageAssistant = {
2794
2778
  id: string;
2795
2779
  metadata?: {
@@ -2802,46 +2786,30 @@ export type SessionMessageAssistant = {
2802
2786
  type: "assistant";
2803
2787
  agent: string;
2804
2788
  model: ModelRef;
2805
- content: Array<SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool | SessionMessageAssistantStructured>;
2789
+ content: Array<SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool>;
2806
2790
  snapshot?: {
2807
2791
  start?: string;
2808
2792
  end?: string;
2809
2793
  files?: Array<string>;
2810
2794
  };
2811
2795
  finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
2796
+ rawFinish?: string;
2797
+ providerState?: SessionMessageProviderState;
2812
2798
  cost?: MoneyUSD;
2813
2799
  tokens?: TokenUsageInfo;
2814
2800
  error?: SessionStructuredError;
2815
2801
  retry?: SessionMessageAssistantRetry;
2816
2802
  };
2817
- export type IntegrationOAuthMethod = {
2818
- id: string;
2819
- type: "oauth";
2820
- label: string;
2821
- form?: FormFields;
2822
- };
2823
- export type IntegrationKeyMethod = {
2824
- type: "key";
2825
- label?: string;
2826
- form?: FormFields;
2827
- };
2828
- export type FormInfo = {
2829
- id: string;
2830
- sessionID: string;
2831
- title: string;
2832
- metadata?: FormMetadata;
2833
- fields: FormFields;
2834
- };
2835
2803
  export type FormInfo1 = {
2836
2804
  id: string;
2837
2805
  sessionID: string;
2838
2806
  title: string;
2839
2807
  metadata?: FormMetadata1;
2840
- fields: FormFields3;
2808
+ fields: FormFields2;
2841
2809
  };
2842
- export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionStructuredCompleted | SessionStructuredFailed | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded;
2810
+ export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded;
2811
+ export type FormFields = [FormField, ...Array<FormField>];
2843
2812
  export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
2844
- export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
2845
2813
  export type FormCreated = {
2846
2814
  id: string;
2847
2815
  created: number;
@@ -2855,6 +2823,24 @@ export type FormCreated = {
2855
2823
  };
2856
2824
  };
2857
2825
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
2826
+ export type IntegrationOAuthMethod = {
2827
+ id: string;
2828
+ type: "oauth";
2829
+ label: string;
2830
+ form?: FormFields;
2831
+ };
2832
+ export type IntegrationKeyMethod = {
2833
+ type: "key";
2834
+ label?: string;
2835
+ form?: FormFields;
2836
+ };
2837
+ export type FormInfo = {
2838
+ id: string;
2839
+ sessionID: string;
2840
+ title: string;
2841
+ metadata?: FormMetadata;
2842
+ fields: FormFields;
2843
+ };
2858
2844
  export type SessionTransferData = {
2859
2845
  info: SessionInfo;
2860
2846
  messages: Array<SessionMessageInfo>;
@@ -2866,13 +2852,14 @@ export type SessionMessagesResponse = {
2866
2852
  next?: string | null;
2867
2853
  };
2868
2854
  };
2855
+ export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventServerConnected;
2856
+ export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
2869
2857
  export type IntegrationInfo = {
2870
2858
  id: string;
2871
2859
  name: string;
2872
2860
  methods: Array<IntegrationMethod>;
2873
2861
  connections: Array<ConnectionInfo>;
2874
2862
  };
2875
- export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionStructuredCompleted | SessionStructuredFailed | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatus2 | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventServerConnected;
2876
2863
  export type UnauthorizedError = {
2877
2864
  readonly _tag: "UnauthorizedError";
2878
2865
  readonly message: string;
@@ -3000,6 +2987,11 @@ export type PtyNotFoundError = {
3000
2987
  readonly message: string;
3001
2988
  };
3002
2989
  export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
2990
+ export type ForbiddenError = {
2991
+ readonly _tag: "ForbiddenError";
2992
+ readonly message: string;
2993
+ };
2994
+ export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
3003
2995
  export type ShellNotFoundError = {
3004
2996
  readonly _tag: "ShellNotFoundError";
3005
2997
  readonly id: string;
@@ -3015,12 +3007,6 @@ export type WorktreeError = {
3015
3007
  };
3016
3008
  export declare const isWorktreeError: (value: unknown) => value is WorktreeError;
3017
3009
  export type HealthGetOutput = ServiceHealth;
3018
- export type HealthStopInput = {
3019
- readonly instanceID: {
3020
- readonly instanceID: string;
3021
- }["instanceID"];
3022
- };
3023
- export type HealthStopOutput = ServiceStopResponse;
3024
3010
  export type ServerGetOutput = {
3025
3011
  urls: Array<string>;
3026
3012
  };
@@ -3357,9 +3343,12 @@ export type SessionImportInput = {
3357
3343
  readonly write: number;
3358
3344
  };
3359
3345
  };
3346
+ readonly outcome?: "succeeded" | "failed" | "interrupted";
3360
3347
  readonly time: {
3361
3348
  readonly created: number;
3362
3349
  readonly updated: number;
3350
+ readonly idle?: number;
3351
+ readonly viewed?: number;
3363
3352
  readonly archived?: number;
3364
3353
  };
3365
3354
  readonly title?: string;
@@ -3473,17 +3462,9 @@ export type SessionImportInput = {
3473
3462
  readonly text: string;
3474
3463
  };
3475
3464
  }>;
3476
- readonly output?: {
3477
- readonly schema: {
3478
- readonly [x: string]: JsonValue;
3479
- };
3480
- readonly name?: string;
3481
- readonly description?: string;
3482
- };
3483
3465
  readonly skills?: ReadonlyArray<{
3484
3466
  readonly id: string;
3485
3467
  readonly name: string;
3486
- readonly text: string;
3487
3468
  readonly mention?: {
3488
3469
  readonly start: number;
3489
3470
  readonly end: number;
@@ -3666,9 +3647,6 @@ export type SessionImportInput = {
3666
3647
  readonly ran?: number;
3667
3648
  readonly completed?: number;
3668
3649
  };
3669
- } | {
3670
- readonly type: "structured";
3671
- readonly value: JsonValue;
3672
3650
  }>;
3673
3651
  readonly snapshot?: {
3674
3652
  readonly start?: string;
@@ -3676,6 +3654,10 @@ export type SessionImportInput = {
3676
3654
  readonly files?: ReadonlyArray<string>;
3677
3655
  };
3678
3656
  readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
3657
+ readonly rawFinish?: string;
3658
+ readonly providerState?: {
3659
+ readonly [x: string]: JsonValue;
3660
+ };
3679
3661
  readonly cost?: number;
3680
3662
  readonly tokens?: {
3681
3663
  readonly input: number;
@@ -3779,9 +3761,12 @@ export type SessionImportInput = {
3779
3761
  readonly write: number;
3780
3762
  };
3781
3763
  };
3764
+ readonly outcome?: "succeeded" | "failed" | "interrupted";
3782
3765
  readonly time: {
3783
3766
  readonly created: number;
3784
3767
  readonly updated: number;
3768
+ readonly idle?: number;
3769
+ readonly viewed?: number;
3785
3770
  readonly archived?: number;
3786
3771
  };
3787
3772
  readonly title?: string;
@@ -3895,17 +3880,9 @@ export type SessionImportInput = {
3895
3880
  readonly text: string;
3896
3881
  };
3897
3882
  }>;
3898
- readonly output?: {
3899
- readonly schema: {
3900
- readonly [x: string]: JsonValue;
3901
- };
3902
- readonly name?: string;
3903
- readonly description?: string;
3904
- };
3905
3883
  readonly skills?: ReadonlyArray<{
3906
3884
  readonly id: string;
3907
3885
  readonly name: string;
3908
- readonly text: string;
3909
3886
  readonly mention?: {
3910
3887
  readonly start: number;
3911
3888
  readonly end: number;
@@ -4088,9 +4065,6 @@ export type SessionImportInput = {
4088
4065
  readonly ran?: number;
4089
4066
  readonly completed?: number;
4090
4067
  };
4091
- } | {
4092
- readonly type: "structured";
4093
- readonly value: JsonValue;
4094
4068
  }>;
4095
4069
  readonly snapshot?: {
4096
4070
  readonly start?: string;
@@ -4098,6 +4072,10 @@ export type SessionImportInput = {
4098
4072
  readonly files?: ReadonlyArray<string>;
4099
4073
  };
4100
4074
  readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
4075
+ readonly rawFinish?: string;
4076
+ readonly providerState?: {
4077
+ readonly [x: string]: JsonValue;
4078
+ };
4101
4079
  readonly cost?: number;
4102
4080
  readonly tokens?: {
4103
4081
  readonly input: number;
@@ -4201,9 +4179,12 @@ export type SessionImportInput = {
4201
4179
  readonly write: number;
4202
4180
  };
4203
4181
  };
4182
+ readonly outcome?: "succeeded" | "failed" | "interrupted";
4204
4183
  readonly time: {
4205
4184
  readonly created: number;
4206
4185
  readonly updated: number;
4186
+ readonly idle?: number;
4187
+ readonly viewed?: number;
4207
4188
  readonly archived?: number;
4208
4189
  };
4209
4190
  readonly title?: string;
@@ -4317,17 +4298,9 @@ export type SessionImportInput = {
4317
4298
  readonly text: string;
4318
4299
  };
4319
4300
  }>;
4320
- readonly output?: {
4321
- readonly schema: {
4322
- readonly [x: string]: JsonValue;
4323
- };
4324
- readonly name?: string;
4325
- readonly description?: string;
4326
- };
4327
4301
  readonly skills?: ReadonlyArray<{
4328
4302
  readonly id: string;
4329
4303
  readonly name: string;
4330
- readonly text: string;
4331
4304
  readonly mention?: {
4332
4305
  readonly start: number;
4333
4306
  readonly end: number;
@@ -4510,9 +4483,6 @@ export type SessionImportInput = {
4510
4483
  readonly ran?: number;
4511
4484
  readonly completed?: number;
4512
4485
  };
4513
- } | {
4514
- readonly type: "structured";
4515
- readonly value: JsonValue;
4516
4486
  }>;
4517
4487
  readonly snapshot?: {
4518
4488
  readonly start?: string;
@@ -4520,6 +4490,10 @@ export type SessionImportInput = {
4520
4490
  readonly files?: ReadonlyArray<string>;
4521
4491
  };
4522
4492
  readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
4493
+ readonly rawFinish?: string;
4494
+ readonly providerState?: {
4495
+ readonly [x: string]: JsonValue;
4496
+ };
4523
4497
  readonly cost?: number;
4524
4498
  readonly tokens?: {
4525
4499
  readonly input: number;
@@ -4737,13 +4711,6 @@ export type SessionPromptInput = {
4737
4711
  readonly text: string;
4738
4712
  };
4739
4713
  }>;
4740
- readonly output?: {
4741
- readonly schema: {
4742
- readonly [x: string]: JsonValue;
4743
- };
4744
- readonly name?: string;
4745
- readonly description?: string;
4746
- };
4747
4714
  readonly skills?: ReadonlyArray<{
4748
4715
  readonly id: string;
4749
4716
  readonly mention?: {
@@ -4779,13 +4746,6 @@ export type SessionPromptInput = {
4779
4746
  readonly text: string;
4780
4747
  };
4781
4748
  }>;
4782
- readonly output?: {
4783
- readonly schema: {
4784
- readonly [x: string]: JsonValue;
4785
- };
4786
- readonly name?: string;
4787
- readonly description?: string;
4788
- };
4789
4749
  readonly skills?: ReadonlyArray<{
4790
4750
  readonly id: string;
4791
4751
  readonly mention?: {
@@ -4821,13 +4781,6 @@ export type SessionPromptInput = {
4821
4781
  readonly text: string;
4822
4782
  };
4823
4783
  }>;
4824
- readonly output?: {
4825
- readonly schema: {
4826
- readonly [x: string]: JsonValue;
4827
- };
4828
- readonly name?: string;
4829
- readonly description?: string;
4830
- };
4831
4784
  readonly skills?: ReadonlyArray<{
4832
4785
  readonly id: string;
4833
4786
  readonly mention?: {
@@ -4863,13 +4816,6 @@ export type SessionPromptInput = {
4863
4816
  readonly text: string;
4864
4817
  };
4865
4818
  }>;
4866
- readonly output?: {
4867
- readonly schema: {
4868
- readonly [x: string]: JsonValue;
4869
- };
4870
- readonly name?: string;
4871
- readonly description?: string;
4872
- };
4873
4819
  readonly skills?: ReadonlyArray<{
4874
4820
  readonly id: string;
4875
4821
  readonly mention?: {
@@ -4884,48 +4830,6 @@ export type SessionPromptInput = {
4884
4830
  readonly delivery?: ("steer" | "queue") | null;
4885
4831
  readonly resume?: boolean | null;
4886
4832
  }["agents"];
4887
- readonly output?: {
4888
- readonly id?: string | null;
4889
- readonly text: string;
4890
- readonly files?: ReadonlyArray<{
4891
- readonly uri: string;
4892
- readonly name?: string;
4893
- readonly description?: string;
4894
- readonly mention?: {
4895
- readonly start: number;
4896
- readonly end: number;
4897
- readonly text: string;
4898
- };
4899
- }>;
4900
- readonly agents?: ReadonlyArray<{
4901
- readonly name: string;
4902
- readonly mention?: {
4903
- readonly start: number;
4904
- readonly end: number;
4905
- readonly text: string;
4906
- };
4907
- }>;
4908
- readonly output?: {
4909
- readonly schema: {
4910
- readonly [x: string]: JsonValue;
4911
- };
4912
- readonly name?: string;
4913
- readonly description?: string;
4914
- };
4915
- readonly skills?: ReadonlyArray<{
4916
- readonly id: string;
4917
- readonly mention?: {
4918
- readonly start: number;
4919
- readonly end: number;
4920
- readonly text: string;
4921
- };
4922
- }>;
4923
- readonly metadata?: {
4924
- readonly [x: string]: JsonValue;
4925
- };
4926
- readonly delivery?: ("steer" | "queue") | null;
4927
- readonly resume?: boolean | null;
4928
- }["output"];
4929
4833
  readonly skills?: {
4930
4834
  readonly id?: string | null;
4931
4835
  readonly text: string;
@@ -4947,13 +4851,6 @@ export type SessionPromptInput = {
4947
4851
  readonly text: string;
4948
4852
  };
4949
4853
  }>;
4950
- readonly output?: {
4951
- readonly schema: {
4952
- readonly [x: string]: JsonValue;
4953
- };
4954
- readonly name?: string;
4955
- readonly description?: string;
4956
- };
4957
4854
  readonly skills?: ReadonlyArray<{
4958
4855
  readonly id: string;
4959
4856
  readonly mention?: {
@@ -4989,13 +4886,6 @@ export type SessionPromptInput = {
4989
4886
  readonly text: string;
4990
4887
  };
4991
4888
  }>;
4992
- readonly output?: {
4993
- readonly schema: {
4994
- readonly [x: string]: JsonValue;
4995
- };
4996
- readonly name?: string;
4997
- readonly description?: string;
4998
- };
4999
4889
  readonly skills?: ReadonlyArray<{
5000
4890
  readonly id: string;
5001
4891
  readonly mention?: {
@@ -5031,13 +4921,6 @@ export type SessionPromptInput = {
5031
4921
  readonly text: string;
5032
4922
  };
5033
4923
  }>;
5034
- readonly output?: {
5035
- readonly schema: {
5036
- readonly [x: string]: JsonValue;
5037
- };
5038
- readonly name?: string;
5039
- readonly description?: string;
5040
- };
5041
4924
  readonly skills?: ReadonlyArray<{
5042
4925
  readonly id: string;
5043
4926
  readonly mention?: {
@@ -5073,13 +4956,6 @@ export type SessionPromptInput = {
5073
4956
  readonly text: string;
5074
4957
  };
5075
4958
  }>;
5076
- readonly output?: {
5077
- readonly schema: {
5078
- readonly [x: string]: JsonValue;
5079
- };
5080
- readonly name?: string;
5081
- readonly description?: string;
5082
- };
5083
4959
  readonly skills?: ReadonlyArray<{
5084
4960
  readonly id: string;
5085
4961
  readonly mention?: {
@@ -5793,6 +5669,15 @@ export type SessionEnvironmentInput = {
5793
5669
  }["variables"];
5794
5670
  };
5795
5671
  export type SessionEnvironmentOutput = void;
5672
+ export type SessionViewInput = {
5673
+ readonly sessionID: {
5674
+ readonly sessionID: string;
5675
+ }["sessionID"];
5676
+ readonly idle: {
5677
+ readonly idle: number;
5678
+ }["idle"];
5679
+ };
5680
+ export type SessionViewOutput = void;
5796
5681
  export type MessageListInput = {
5797
5682
  readonly sessionID: {
5798
5683
  readonly sessionID: string;
@@ -6058,8 +5943,8 @@ export type IntegrationOauthConnectOutput = {
6058
5943
  instructions: string;
6059
5944
  mode: "auto" | "code";
6060
5945
  time: {
6061
- created: number | "Infinity" | "-Infinity" | "NaN";
6062
- expires: number | "Infinity" | "-Infinity" | "NaN";
5946
+ created: number | ("Infinity" | "-Infinity" | "NaN");
5947
+ expires: number | ("Infinity" | "-Infinity" | "NaN");
6063
5948
  };
6064
5949
  };
6065
5950
  };
@@ -6433,7 +6318,7 @@ export type FormCreateInput = {
6433
6318
  readonly when?: ReadonlyArray<{
6434
6319
  readonly key: string;
6435
6320
  readonly op: "eq" | "neq";
6436
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6321
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6437
6322
  }>;
6438
6323
  readonly type: "string";
6439
6324
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -6456,12 +6341,12 @@ export type FormCreateInput = {
6456
6341
  readonly when?: ReadonlyArray<{
6457
6342
  readonly key: string;
6458
6343
  readonly op: "eq" | "neq";
6459
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6344
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6460
6345
  }>;
6461
6346
  readonly type: "number";
6462
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6463
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6464
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6347
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6348
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6349
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6465
6350
  } | {
6466
6351
  readonly key: string;
6467
6352
  readonly title?: string;
@@ -6470,12 +6355,12 @@ export type FormCreateInput = {
6470
6355
  readonly when?: ReadonlyArray<{
6471
6356
  readonly key: string;
6472
6357
  readonly op: "eq" | "neq";
6473
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6358
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6474
6359
  }>;
6475
6360
  readonly type: "integer";
6476
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6477
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6478
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6361
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6362
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6363
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6479
6364
  } | {
6480
6365
  readonly key: string;
6481
6366
  readonly title?: string;
@@ -6484,7 +6369,7 @@ export type FormCreateInput = {
6484
6369
  readonly when?: ReadonlyArray<{
6485
6370
  readonly key: string;
6486
6371
  readonly op: "eq" | "neq";
6487
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6372
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6488
6373
  }>;
6489
6374
  readonly type: "boolean";
6490
6375
  readonly default?: boolean;
@@ -6496,7 +6381,7 @@ export type FormCreateInput = {
6496
6381
  readonly when?: ReadonlyArray<{
6497
6382
  readonly key: string;
6498
6383
  readonly op: "eq" | "neq";
6499
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6384
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6500
6385
  }>;
6501
6386
  readonly type: "multiselect";
6502
6387
  readonly options: ReadonlyArray<{
@@ -6523,7 +6408,7 @@ export type FormCreateInput = {
6523
6408
  readonly when?: ReadonlyArray<{
6524
6409
  readonly key: string;
6525
6410
  readonly op: "eq" | "neq";
6526
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6411
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6527
6412
  }>;
6528
6413
  readonly type: "string";
6529
6414
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -6546,12 +6431,12 @@ export type FormCreateInput = {
6546
6431
  readonly when?: ReadonlyArray<{
6547
6432
  readonly key: string;
6548
6433
  readonly op: "eq" | "neq";
6549
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6434
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6550
6435
  }>;
6551
6436
  readonly type: "number";
6552
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6553
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6554
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6437
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6438
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6439
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6555
6440
  } | {
6556
6441
  readonly key: string;
6557
6442
  readonly title?: string;
@@ -6560,12 +6445,12 @@ export type FormCreateInput = {
6560
6445
  readonly when?: ReadonlyArray<{
6561
6446
  readonly key: string;
6562
6447
  readonly op: "eq" | "neq";
6563
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6448
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6564
6449
  }>;
6565
6450
  readonly type: "integer";
6566
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6567
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6568
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6451
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6452
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6453
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6569
6454
  } | {
6570
6455
  readonly key: string;
6571
6456
  readonly title?: string;
@@ -6574,7 +6459,7 @@ export type FormCreateInput = {
6574
6459
  readonly when?: ReadonlyArray<{
6575
6460
  readonly key: string;
6576
6461
  readonly op: "eq" | "neq";
6577
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6462
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6578
6463
  }>;
6579
6464
  readonly type: "boolean";
6580
6465
  readonly default?: boolean;
@@ -6586,7 +6471,7 @@ export type FormCreateInput = {
6586
6471
  readonly when?: ReadonlyArray<{
6587
6472
  readonly key: string;
6588
6473
  readonly op: "eq" | "neq";
6589
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6474
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6590
6475
  }>;
6591
6476
  readonly type: "multiselect";
6592
6477
  readonly options: ReadonlyArray<{
@@ -6622,7 +6507,7 @@ export type FormCreateInput = {
6622
6507
  readonly when?: ReadonlyArray<{
6623
6508
  readonly key: string;
6624
6509
  readonly op: "eq" | "neq";
6625
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6510
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6626
6511
  }>;
6627
6512
  readonly type: "string";
6628
6513
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -6645,12 +6530,12 @@ export type FormCreateInput = {
6645
6530
  readonly when?: ReadonlyArray<{
6646
6531
  readonly key: string;
6647
6532
  readonly op: "eq" | "neq";
6648
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6533
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6649
6534
  }>;
6650
6535
  readonly type: "number";
6651
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6652
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6653
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6536
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6537
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6538
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6654
6539
  } | {
6655
6540
  readonly key: string;
6656
6541
  readonly title?: string;
@@ -6659,12 +6544,12 @@ export type FormCreateInput = {
6659
6544
  readonly when?: ReadonlyArray<{
6660
6545
  readonly key: string;
6661
6546
  readonly op: "eq" | "neq";
6662
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6547
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6663
6548
  }>;
6664
6549
  readonly type: "integer";
6665
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6666
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6667
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6550
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6551
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6552
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6668
6553
  } | {
6669
6554
  readonly key: string;
6670
6555
  readonly title?: string;
@@ -6673,7 +6558,7 @@ export type FormCreateInput = {
6673
6558
  readonly when?: ReadonlyArray<{
6674
6559
  readonly key: string;
6675
6560
  readonly op: "eq" | "neq";
6676
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6561
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6677
6562
  }>;
6678
6563
  readonly type: "boolean";
6679
6564
  readonly default?: boolean;
@@ -6685,7 +6570,7 @@ export type FormCreateInput = {
6685
6570
  readonly when?: ReadonlyArray<{
6686
6571
  readonly key: string;
6687
6572
  readonly op: "eq" | "neq";
6688
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6573
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6689
6574
  }>;
6690
6575
  readonly type: "multiselect";
6691
6576
  readonly options: ReadonlyArray<{
@@ -6712,7 +6597,7 @@ export type FormCreateInput = {
6712
6597
  readonly when?: ReadonlyArray<{
6713
6598
  readonly key: string;
6714
6599
  readonly op: "eq" | "neq";
6715
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6600
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6716
6601
  }>;
6717
6602
  readonly type: "string";
6718
6603
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -6735,12 +6620,12 @@ export type FormCreateInput = {
6735
6620
  readonly when?: ReadonlyArray<{
6736
6621
  readonly key: string;
6737
6622
  readonly op: "eq" | "neq";
6738
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6623
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6739
6624
  }>;
6740
6625
  readonly type: "number";
6741
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6742
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6743
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6626
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6627
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6628
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6744
6629
  } | {
6745
6630
  readonly key: string;
6746
6631
  readonly title?: string;
@@ -6749,12 +6634,12 @@ export type FormCreateInput = {
6749
6634
  readonly when?: ReadonlyArray<{
6750
6635
  readonly key: string;
6751
6636
  readonly op: "eq" | "neq";
6752
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6637
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6753
6638
  }>;
6754
6639
  readonly type: "integer";
6755
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6756
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6757
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6640
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6641
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6642
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6758
6643
  } | {
6759
6644
  readonly key: string;
6760
6645
  readonly title?: string;
@@ -6763,7 +6648,7 @@ export type FormCreateInput = {
6763
6648
  readonly when?: ReadonlyArray<{
6764
6649
  readonly key: string;
6765
6650
  readonly op: "eq" | "neq";
6766
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6651
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6767
6652
  }>;
6768
6653
  readonly type: "boolean";
6769
6654
  readonly default?: boolean;
@@ -6775,7 +6660,7 @@ export type FormCreateInput = {
6775
6660
  readonly when?: ReadonlyArray<{
6776
6661
  readonly key: string;
6777
6662
  readonly op: "eq" | "neq";
6778
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6663
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6779
6664
  }>;
6780
6665
  readonly type: "multiselect";
6781
6666
  readonly options: ReadonlyArray<{
@@ -6811,7 +6696,7 @@ export type FormCreateInput = {
6811
6696
  readonly when?: ReadonlyArray<{
6812
6697
  readonly key: string;
6813
6698
  readonly op: "eq" | "neq";
6814
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6699
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6815
6700
  }>;
6816
6701
  readonly type: "string";
6817
6702
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -6834,12 +6719,12 @@ export type FormCreateInput = {
6834
6719
  readonly when?: ReadonlyArray<{
6835
6720
  readonly key: string;
6836
6721
  readonly op: "eq" | "neq";
6837
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6722
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6838
6723
  }>;
6839
6724
  readonly type: "number";
6840
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6841
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6842
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6725
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6726
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6727
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6843
6728
  } | {
6844
6729
  readonly key: string;
6845
6730
  readonly title?: string;
@@ -6848,12 +6733,12 @@ export type FormCreateInput = {
6848
6733
  readonly when?: ReadonlyArray<{
6849
6734
  readonly key: string;
6850
6735
  readonly op: "eq" | "neq";
6851
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6736
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6852
6737
  }>;
6853
6738
  readonly type: "integer";
6854
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6855
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6856
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6739
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6740
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6741
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6857
6742
  } | {
6858
6743
  readonly key: string;
6859
6744
  readonly title?: string;
@@ -6862,7 +6747,7 @@ export type FormCreateInput = {
6862
6747
  readonly when?: ReadonlyArray<{
6863
6748
  readonly key: string;
6864
6749
  readonly op: "eq" | "neq";
6865
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6750
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6866
6751
  }>;
6867
6752
  readonly type: "boolean";
6868
6753
  readonly default?: boolean;
@@ -6874,7 +6759,7 @@ export type FormCreateInput = {
6874
6759
  readonly when?: ReadonlyArray<{
6875
6760
  readonly key: string;
6876
6761
  readonly op: "eq" | "neq";
6877
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6762
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6878
6763
  }>;
6879
6764
  readonly type: "multiselect";
6880
6765
  readonly options: ReadonlyArray<{
@@ -6901,7 +6786,7 @@ export type FormCreateInput = {
6901
6786
  readonly when?: ReadonlyArray<{
6902
6787
  readonly key: string;
6903
6788
  readonly op: "eq" | "neq";
6904
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6789
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6905
6790
  }>;
6906
6791
  readonly type: "string";
6907
6792
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -6924,12 +6809,12 @@ export type FormCreateInput = {
6924
6809
  readonly when?: ReadonlyArray<{
6925
6810
  readonly key: string;
6926
6811
  readonly op: "eq" | "neq";
6927
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6812
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6928
6813
  }>;
6929
6814
  readonly type: "number";
6930
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6931
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6932
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6815
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6816
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6817
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6933
6818
  } | {
6934
6819
  readonly key: string;
6935
6820
  readonly title?: string;
@@ -6938,12 +6823,12 @@ export type FormCreateInput = {
6938
6823
  readonly when?: ReadonlyArray<{
6939
6824
  readonly key: string;
6940
6825
  readonly op: "eq" | "neq";
6941
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6826
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6942
6827
  }>;
6943
6828
  readonly type: "integer";
6944
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
6945
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
6946
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6829
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6830
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6831
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
6947
6832
  } | {
6948
6833
  readonly key: string;
6949
6834
  readonly title?: string;
@@ -6952,7 +6837,7 @@ export type FormCreateInput = {
6952
6837
  readonly when?: ReadonlyArray<{
6953
6838
  readonly key: string;
6954
6839
  readonly op: "eq" | "neq";
6955
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6840
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6956
6841
  }>;
6957
6842
  readonly type: "boolean";
6958
6843
  readonly default?: boolean;
@@ -6964,7 +6849,7 @@ export type FormCreateInput = {
6964
6849
  readonly when?: ReadonlyArray<{
6965
6850
  readonly key: string;
6966
6851
  readonly op: "eq" | "neq";
6967
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6852
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
6968
6853
  }>;
6969
6854
  readonly type: "multiselect";
6970
6855
  readonly options: ReadonlyArray<{
@@ -7000,7 +6885,7 @@ export type FormCreateInput = {
7000
6885
  readonly when?: ReadonlyArray<{
7001
6886
  readonly key: string;
7002
6887
  readonly op: "eq" | "neq";
7003
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6888
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7004
6889
  }>;
7005
6890
  readonly type: "string";
7006
6891
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -7023,12 +6908,12 @@ export type FormCreateInput = {
7023
6908
  readonly when?: ReadonlyArray<{
7024
6909
  readonly key: string;
7025
6910
  readonly op: "eq" | "neq";
7026
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6911
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7027
6912
  }>;
7028
6913
  readonly type: "number";
7029
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
7030
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
7031
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6914
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6915
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6916
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
7032
6917
  } | {
7033
6918
  readonly key: string;
7034
6919
  readonly title?: string;
@@ -7037,12 +6922,12 @@ export type FormCreateInput = {
7037
6922
  readonly when?: ReadonlyArray<{
7038
6923
  readonly key: string;
7039
6924
  readonly op: "eq" | "neq";
7040
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6925
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7041
6926
  }>;
7042
6927
  readonly type: "integer";
7043
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
7044
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
7045
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
6928
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
6929
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
6930
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
7046
6931
  } | {
7047
6932
  readonly key: string;
7048
6933
  readonly title?: string;
@@ -7051,7 +6936,7 @@ export type FormCreateInput = {
7051
6936
  readonly when?: ReadonlyArray<{
7052
6937
  readonly key: string;
7053
6938
  readonly op: "eq" | "neq";
7054
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6939
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7055
6940
  }>;
7056
6941
  readonly type: "boolean";
7057
6942
  readonly default?: boolean;
@@ -7063,7 +6948,7 @@ export type FormCreateInput = {
7063
6948
  readonly when?: ReadonlyArray<{
7064
6949
  readonly key: string;
7065
6950
  readonly op: "eq" | "neq";
7066
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6951
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7067
6952
  }>;
7068
6953
  readonly type: "multiselect";
7069
6954
  readonly options: ReadonlyArray<{
@@ -7090,7 +6975,7 @@ export type FormCreateInput = {
7090
6975
  readonly when?: ReadonlyArray<{
7091
6976
  readonly key: string;
7092
6977
  readonly op: "eq" | "neq";
7093
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
6978
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7094
6979
  }>;
7095
6980
  readonly type: "string";
7096
6981
  readonly format?: "email" | "uri" | "date" | "date-time";
@@ -7113,12 +6998,12 @@ export type FormCreateInput = {
7113
6998
  readonly when?: ReadonlyArray<{
7114
6999
  readonly key: string;
7115
7000
  readonly op: "eq" | "neq";
7116
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
7001
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7117
7002
  }>;
7118
7003
  readonly type: "number";
7119
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
7120
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
7121
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
7004
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
7005
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
7006
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
7122
7007
  } | {
7123
7008
  readonly key: string;
7124
7009
  readonly title?: string;
@@ -7127,12 +7012,12 @@ export type FormCreateInput = {
7127
7012
  readonly when?: ReadonlyArray<{
7128
7013
  readonly key: string;
7129
7014
  readonly op: "eq" | "neq";
7130
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
7015
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7131
7016
  }>;
7132
7017
  readonly type: "integer";
7133
- readonly minimum?: number | "Infinity" | "-Infinity" | "NaN";
7134
- readonly maximum?: number | "Infinity" | "-Infinity" | "NaN";
7135
- readonly default?: number | "Infinity" | "-Infinity" | "NaN";
7018
+ readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN");
7019
+ readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN");
7020
+ readonly default?: number | ("Infinity" | "-Infinity" | "NaN");
7136
7021
  } | {
7137
7022
  readonly key: string;
7138
7023
  readonly title?: string;
@@ -7141,7 +7026,7 @@ export type FormCreateInput = {
7141
7026
  readonly when?: ReadonlyArray<{
7142
7027
  readonly key: string;
7143
7028
  readonly op: "eq" | "neq";
7144
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
7029
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7145
7030
  }>;
7146
7031
  readonly type: "boolean";
7147
7032
  readonly default?: boolean;
@@ -7153,7 +7038,7 @@ export type FormCreateInput = {
7153
7038
  readonly when?: ReadonlyArray<{
7154
7039
  readonly key: string;
7155
7040
  readonly op: "eq" | "neq";
7156
- readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
7041
+ readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean;
7157
7042
  }>;
7158
7043
  readonly type: "multiselect";
7159
7044
  readonly options: ReadonlyArray<{
@@ -7707,6 +7592,32 @@ export type PtyRemoveInput = {
7707
7592
  }["location"];
7708
7593
  };
7709
7594
  export type PtyRemoveOutput = void;
7595
+ export type PtyConnectTokenInput = {
7596
+ readonly ptyID: {
7597
+ readonly ptyID: string;
7598
+ }["ptyID"];
7599
+ readonly location?: {
7600
+ readonly location?: {
7601
+ readonly directory?: string | undefined;
7602
+ readonly workspace?: string | undefined;
7603
+ } | undefined;
7604
+ }["location"];
7605
+ readonly "x-opencode-ticket"?: {
7606
+ readonly "x-opencode-ticket"?: string | undefined;
7607
+ }["x-opencode-ticket"];
7608
+ };
7609
+ export type PtyConnectTokenOutput = {
7610
+ location: {
7611
+ directory: string;
7612
+ workspaceID?: string;
7613
+ project: {
7614
+ id: string;
7615
+ directory: string;
7616
+ canonical: string;
7617
+ };
7618
+ };
7619
+ data: PtyTicketConnectToken;
7620
+ };
7710
7621
  export type ShellListInput = {
7711
7622
  readonly location?: {
7712
7623
  readonly location?: {