@agentknight/sdk 0.9.42 → 0.9.43

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.
package/dist/index.d.ts CHANGED
@@ -19,72 +19,83 @@ declare const ProtocolErrorSchema: z.ZodObject<{
19
19
  type ProtocolError = z.infer<typeof ProtocolErrorSchema>;
20
20
 
21
21
  declare const PairingStatusSchema: z.ZodEnum<{
22
- pending: "pending";
23
22
  paired: "paired";
23
+ pending: "pending";
24
24
  unavailable: "unavailable";
25
25
  }>;
26
26
  type PairingStatus = z.infer<typeof PairingStatusSchema>;
27
27
 
28
28
  declare const SecureEventNameSchema: z.ZodEnum<{
29
- "session.communication": "session.communication";
30
- "session.list.result": "session.list.result";
31
- "session.options.result": "session.options.result";
32
- "session.create.result": "session.create.result";
33
- "session.delete.result": "session.delete.result";
34
- "session.configure.result": "session.configure.result";
35
- "session.remote.result": "session.remote.result";
36
- "session.timeline.page.result": "session.timeline.page.result";
37
- "session.watch.result": "session.watch.result";
38
- "session.prompt.result": "session.prompt.result";
39
- "session.activity": "session.activity";
40
- "session.abort.result": "session.abort.result";
41
- "conversation.item.upsert": "conversation.item.upsert";
42
29
  "conversation.activity.step.upsert": "conversation.activity.step.upsert";
43
- "session.timeline.invalidated": "session.timeline.invalidated";
30
+ "conversation.item.upsert": "conversation.item.upsert";
44
31
  "interaction.request": "interaction.request";
32
+ "interaction.respond": "interaction.respond";
45
33
  "interaction.respond.result": "interaction.respond.result";
46
34
  "permission.request": "permission.request";
35
+ "permission.respond": "permission.respond";
47
36
  "permission.respond.result": "permission.respond.result";
48
- "sessions.snapshot": "sessions.snapshot";
49
- "session.list": "session.list";
50
- "session.options": "session.options";
37
+ "session.abort": "session.abort";
38
+ "session.abort.result": "session.abort.result";
39
+ "session.activity": "session.activity";
40
+ "session.communication": "session.communication";
41
+ "session.configure": "session.configure";
42
+ "session.configure.result": "session.configure.result";
51
43
  "session.create": "session.create";
44
+ "session.create.result": "session.create.result";
52
45
  "session.delete": "session.delete";
53
- "session.configure": "session.configure";
46
+ "session.delete.result": "session.delete.result";
47
+ "session.list": "session.list";
48
+ "session.list.result": "session.list.result";
49
+ "session.options": "session.options";
50
+ "session.options.result": "session.options.result";
51
+ "session.prompt": "session.prompt";
52
+ "session.prompt.result": "session.prompt.result";
54
53
  "session.remote": "session.remote";
54
+ "session.remote.result": "session.remote.result";
55
+ "session.timeline.invalidated": "session.timeline.invalidated";
55
56
  "session.timeline.page": "session.timeline.page";
57
+ "session.timeline.page.result": "session.timeline.page.result";
56
58
  "session.watch": "session.watch";
57
- "session.prompt": "session.prompt";
58
- "session.abort": "session.abort";
59
- "interaction.respond": "interaction.respond";
60
- "permission.respond": "permission.respond";
59
+ "session.watch.result": "session.watch.result";
60
+ "sessions.snapshot": "sessions.snapshot";
61
61
  }>;
62
62
  type SecureEventName = z.infer<typeof SecureEventNameSchema>;
63
63
 
64
64
  declare const SecureMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
65
+ version: z.ZodLiteral<1>;
66
+ algorithm: z.ZodLiteral<"A256GCM">;
67
+ messageId: z.ZodString;
68
+ machineId: z.ZodString;
69
+ clientId: z.ZodString;
70
+ recipientClientId: z.ZodOptional<z.ZodString>;
71
+ keyId: z.ZodString;
72
+ sentAt: z.ZodNumber;
73
+ nonce: z.ZodString;
74
+ ciphertext: z.ZodString;
65
75
  sender: z.ZodLiteral<"pc">;
66
76
  event: z.ZodEnum<{
77
+ "conversation.activity.step.upsert": "conversation.activity.step.upsert";
78
+ "conversation.item.upsert": "conversation.item.upsert";
79
+ "interaction.request": "interaction.request";
80
+ "interaction.respond.result": "interaction.respond.result";
81
+ "permission.request": "permission.request";
82
+ "permission.respond.result": "permission.respond.result";
83
+ "session.abort.result": "session.abort.result";
84
+ "session.activity": "session.activity";
67
85
  "session.communication": "session.communication";
68
- "session.list.result": "session.list.result";
69
- "session.options.result": "session.options.result";
86
+ "session.configure.result": "session.configure.result";
70
87
  "session.create.result": "session.create.result";
71
88
  "session.delete.result": "session.delete.result";
72
- "session.configure.result": "session.configure.result";
89
+ "session.list.result": "session.list.result";
90
+ "session.options.result": "session.options.result";
91
+ "session.prompt.result": "session.prompt.result";
73
92
  "session.remote.result": "session.remote.result";
93
+ "session.timeline.invalidated": "session.timeline.invalidated";
74
94
  "session.timeline.page.result": "session.timeline.page.result";
75
95
  "session.watch.result": "session.watch.result";
76
- "session.prompt.result": "session.prompt.result";
77
- "session.activity": "session.activity";
78
- "session.abort.result": "session.abort.result";
79
- "conversation.item.upsert": "conversation.item.upsert";
80
- "conversation.activity.step.upsert": "conversation.activity.step.upsert";
81
- "session.timeline.invalidated": "session.timeline.invalidated";
82
- "interaction.request": "interaction.request";
83
- "interaction.respond.result": "interaction.respond.result";
84
- "permission.request": "permission.request";
85
- "permission.respond.result": "permission.respond.result";
86
96
  "sessions.snapshot": "sessions.snapshot";
87
97
  }>;
98
+ }, z.core.$strict>, z.ZodObject<{
88
99
  version: z.ZodLiteral<1>;
89
100
  algorithm: z.ZodLiteral<"A256GCM">;
90
101
  messageId: z.ZodString;
@@ -95,86 +106,74 @@ declare const SecureMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
95
106
  sentAt: z.ZodNumber;
96
107
  nonce: z.ZodString;
97
108
  ciphertext: z.ZodString;
98
- }, z.core.$strict>, z.ZodObject<{
99
109
  sender: z.ZodLiteral<"mobile">;
100
110
  event: z.ZodEnum<{
111
+ "interaction.respond": "interaction.respond";
112
+ "permission.respond": "permission.respond";
113
+ "session.abort": "session.abort";
101
114
  "session.communication": "session.communication";
102
- "session.list": "session.list";
103
- "session.options": "session.options";
115
+ "session.configure": "session.configure";
104
116
  "session.create": "session.create";
105
117
  "session.delete": "session.delete";
106
- "session.configure": "session.configure";
118
+ "session.list": "session.list";
119
+ "session.options": "session.options";
120
+ "session.prompt": "session.prompt";
107
121
  "session.remote": "session.remote";
108
122
  "session.timeline.page": "session.timeline.page";
109
123
  "session.watch": "session.watch";
110
- "session.prompt": "session.prompt";
111
- "session.abort": "session.abort";
112
- "interaction.respond": "interaction.respond";
113
- "permission.respond": "permission.respond";
114
124
  }>;
115
- version: z.ZodLiteral<1>;
116
- algorithm: z.ZodLiteral<"A256GCM">;
117
- messageId: z.ZodString;
118
- machineId: z.ZodString;
119
- clientId: z.ZodString;
120
- recipientClientId: z.ZodOptional<z.ZodString>;
121
- keyId: z.ZodString;
122
- sentAt: z.ZodNumber;
123
- nonce: z.ZodString;
124
- ciphertext: z.ZodString;
125
125
  }, z.core.$strict>], "sender">;
126
126
  type SecureMessage = z.infer<typeof SecureMessageSchema>;
127
127
  declare const SecureDeliveryErrorSchema: z.ZodObject<{
128
128
  messageId: z.ZodString;
129
129
  event: z.ZodEnum<{
130
- "session.communication": "session.communication";
131
- "session.list.result": "session.list.result";
132
- "session.options.result": "session.options.result";
133
- "session.create.result": "session.create.result";
134
- "session.delete.result": "session.delete.result";
135
- "session.configure.result": "session.configure.result";
136
- "session.remote.result": "session.remote.result";
137
- "session.timeline.page.result": "session.timeline.page.result";
138
- "session.watch.result": "session.watch.result";
139
- "session.prompt.result": "session.prompt.result";
140
- "session.activity": "session.activity";
141
- "session.abort.result": "session.abort.result";
142
- "conversation.item.upsert": "conversation.item.upsert";
143
130
  "conversation.activity.step.upsert": "conversation.activity.step.upsert";
144
- "session.timeline.invalidated": "session.timeline.invalidated";
131
+ "conversation.item.upsert": "conversation.item.upsert";
145
132
  "interaction.request": "interaction.request";
133
+ "interaction.respond": "interaction.respond";
146
134
  "interaction.respond.result": "interaction.respond.result";
147
135
  "permission.request": "permission.request";
136
+ "permission.respond": "permission.respond";
148
137
  "permission.respond.result": "permission.respond.result";
149
- "sessions.snapshot": "sessions.snapshot";
150
- "session.list": "session.list";
151
- "session.options": "session.options";
138
+ "session.abort": "session.abort";
139
+ "session.abort.result": "session.abort.result";
140
+ "session.activity": "session.activity";
141
+ "session.communication": "session.communication";
142
+ "session.configure": "session.configure";
143
+ "session.configure.result": "session.configure.result";
152
144
  "session.create": "session.create";
145
+ "session.create.result": "session.create.result";
153
146
  "session.delete": "session.delete";
154
- "session.configure": "session.configure";
147
+ "session.delete.result": "session.delete.result";
148
+ "session.list": "session.list";
149
+ "session.list.result": "session.list.result";
150
+ "session.options": "session.options";
151
+ "session.options.result": "session.options.result";
152
+ "session.prompt": "session.prompt";
153
+ "session.prompt.result": "session.prompt.result";
155
154
  "session.remote": "session.remote";
155
+ "session.remote.result": "session.remote.result";
156
+ "session.timeline.invalidated": "session.timeline.invalidated";
156
157
  "session.timeline.page": "session.timeline.page";
158
+ "session.timeline.page.result": "session.timeline.page.result";
157
159
  "session.watch": "session.watch";
158
- "session.prompt": "session.prompt";
159
- "session.abort": "session.abort";
160
- "interaction.respond": "interaction.respond";
161
- "permission.respond": "permission.respond";
160
+ "session.watch.result": "session.watch.result";
161
+ "sessions.snapshot": "sessions.snapshot";
162
162
  }>;
163
163
  machineId: z.ZodString;
164
164
  code: z.ZodEnum<{
165
- MACHINE_OFFLINE: "MACHINE_OFFLINE";
166
165
  IDENTITY_MISMATCH: "IDENTITY_MISMATCH";
167
- KEY_ID_MISMATCH: "KEY_ID_MISMATCH";
168
166
  INVALID_PAYLOAD: "INVALID_PAYLOAD";
169
- SESSION_DELETE_UNSUPPORTED: "SESSION_DELETE_UNSUPPORTED";
167
+ KEY_ID_MISMATCH: "KEY_ID_MISMATCH";
168
+ MACHINE_OFFLINE: "MACHINE_OFFLINE";
170
169
  SESSION_COMMUNICATION_UNSUPPORTED: "SESSION_COMMUNICATION_UNSUPPORTED";
170
+ SESSION_DELETE_UNSUPPORTED: "SESSION_DELETE_UNSUPPORTED";
171
171
  }>;
172
172
  message: z.ZodString;
173
173
  }, z.core.$strict>;
174
174
  type SecureDeliveryError = z.infer<typeof SecureDeliveryErrorSchema>;
175
175
 
176
176
  declare const V2MachineHelloSchema: z.ZodUnion<readonly [z.ZodObject<{
177
- protocolVersion: z.ZodLiteral<9>;
178
177
  userId: z.ZodString;
179
178
  machineId: z.ZodString;
180
179
  machineName: z.ZodString;
@@ -183,8 +182,8 @@ declare const V2MachineHelloSchema: z.ZodUnion<readonly [z.ZodObject<{
183
182
  sdkVersion: z.ZodLiteral<"1.0.9">;
184
183
  clientVersion: z.ZodOptional<z.ZodString>;
185
184
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
185
+ protocolVersion: z.ZodLiteral<9>;
186
186
  }, z.core.$strict>, z.ZodObject<{
187
- protocolVersion: z.ZodLiteral<10>;
188
187
  userId: z.ZodString;
189
188
  machineId: z.ZodString;
190
189
  machineName: z.ZodString;
@@ -193,8 +192,8 @@ declare const V2MachineHelloSchema: z.ZodUnion<readonly [z.ZodObject<{
193
192
  sdkVersion: z.ZodLiteral<"1.0.9">;
194
193
  clientVersion: z.ZodOptional<z.ZodString>;
195
194
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ protocolVersion: z.ZodLiteral<10>;
196
196
  }, z.core.$strict>, z.ZodObject<{
197
- protocolVersion: z.ZodLiteral<11>;
198
197
  userId: z.ZodString;
199
198
  machineId: z.ZodString;
200
199
  machineName: z.ZodString;
@@ -203,6 +202,7 @@ declare const V2MachineHelloSchema: z.ZodUnion<readonly [z.ZodObject<{
203
202
  sdkVersion: z.ZodLiteral<"1.0.9">;
204
203
  clientVersion: z.ZodOptional<z.ZodString>;
205
204
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ protocolVersion: z.ZodLiteral<11>;
206
206
  }, z.core.$strict>]>;
207
207
  type V2MachineHello = z.infer<typeof V2MachineHelloSchema>;
208
208
  declare const MachineHeartbeatSchema: z.ZodObject<{
@@ -213,7 +213,6 @@ declare const MachineHeartbeatSchema: z.ZodObject<{
213
213
  }, z.core.$strip>;
214
214
  type MachineHeartbeat = z.infer<typeof MachineHeartbeatSchema>;
215
215
  declare const MachinePresenceSchema: z.ZodUnion<readonly [z.ZodObject<{
216
- protocolVersion: z.ZodLiteral<9>;
217
216
  userId: z.ZodString;
218
217
  machineId: z.ZodString;
219
218
  machineName: z.ZodString;
@@ -222,11 +221,11 @@ declare const MachinePresenceSchema: z.ZodUnion<readonly [z.ZodObject<{
222
221
  sdkVersion: z.ZodLiteral<"1.0.9">;
223
222
  clientVersion: z.ZodOptional<z.ZodString>;
224
223
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
224
+ protocolVersion: z.ZodLiteral<9>;
225
225
  online: z.ZodLiteral<true>;
226
226
  connectedAt: z.ZodNumber;
227
227
  lastSeen: z.ZodNumber;
228
228
  }, z.core.$strip>, z.ZodObject<{
229
- protocolVersion: z.ZodLiteral<10>;
230
229
  userId: z.ZodString;
231
230
  machineId: z.ZodString;
232
231
  machineName: z.ZodString;
@@ -235,11 +234,11 @@ declare const MachinePresenceSchema: z.ZodUnion<readonly [z.ZodObject<{
235
234
  sdkVersion: z.ZodLiteral<"1.0.9">;
236
235
  clientVersion: z.ZodOptional<z.ZodString>;
237
236
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
237
+ protocolVersion: z.ZodLiteral<10>;
238
238
  online: z.ZodLiteral<true>;
239
239
  connectedAt: z.ZodNumber;
240
240
  lastSeen: z.ZodNumber;
241
241
  }, z.core.$strip>, z.ZodObject<{
242
- protocolVersion: z.ZodLiteral<11>;
243
242
  userId: z.ZodString;
244
243
  machineId: z.ZodString;
245
244
  machineName: z.ZodString;
@@ -248,6 +247,7 @@ declare const MachinePresenceSchema: z.ZodUnion<readonly [z.ZodObject<{
248
247
  sdkVersion: z.ZodLiteral<"1.0.9">;
249
248
  clientVersion: z.ZodOptional<z.ZodString>;
250
249
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
250
+ protocolVersion: z.ZodLiteral<11>;
251
251
  online: z.ZodLiteral<true>;
252
252
  connectedAt: z.ZodNumber;
253
253
  lastSeen: z.ZodNumber;
@@ -280,7 +280,6 @@ type MachineListRequest = z.infer<typeof MachineListRequestSchema>;
280
280
  declare const MachineListResultSchema: z.ZodObject<{
281
281
  requestId: z.ZodString;
282
282
  machines: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
283
- protocolVersion: z.ZodLiteral<9>;
284
283
  userId: z.ZodString;
285
284
  machineId: z.ZodString;
286
285
  machineName: z.ZodString;
@@ -289,11 +288,11 @@ declare const MachineListResultSchema: z.ZodObject<{
289
288
  sdkVersion: z.ZodLiteral<"1.0.9">;
290
289
  clientVersion: z.ZodOptional<z.ZodString>;
291
290
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
291
+ protocolVersion: z.ZodLiteral<9>;
292
292
  online: z.ZodLiteral<true>;
293
293
  connectedAt: z.ZodNumber;
294
294
  lastSeen: z.ZodNumber;
295
295
  }, z.core.$strip>, z.ZodObject<{
296
- protocolVersion: z.ZodLiteral<10>;
297
296
  userId: z.ZodString;
298
297
  machineId: z.ZodString;
299
298
  machineName: z.ZodString;
@@ -302,11 +301,11 @@ declare const MachineListResultSchema: z.ZodObject<{
302
301
  sdkVersion: z.ZodLiteral<"1.0.9">;
303
302
  clientVersion: z.ZodOptional<z.ZodString>;
304
303
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
304
+ protocolVersion: z.ZodLiteral<10>;
305
305
  online: z.ZodLiteral<true>;
306
306
  connectedAt: z.ZodNumber;
307
307
  lastSeen: z.ZodNumber;
308
308
  }, z.core.$strip>, z.ZodObject<{
309
- protocolVersion: z.ZodLiteral<11>;
310
309
  userId: z.ZodString;
311
310
  machineId: z.ZodString;
312
311
  machineName: z.ZodString;
@@ -315,6 +314,7 @@ declare const MachineListResultSchema: z.ZodObject<{
315
314
  sdkVersion: z.ZodLiteral<"1.0.9">;
316
315
  clientVersion: z.ZodOptional<z.ZodString>;
317
316
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
317
+ protocolVersion: z.ZodLiteral<11>;
318
318
  online: z.ZodLiteral<true>;
319
319
  connectedAt: z.ZodNumber;
320
320
  lastSeen: z.ZodNumber;
@@ -324,81 +324,81 @@ declare const MachineListResultSchema: z.ZodObject<{
324
324
  type MachineListResult = z.infer<typeof MachineListResultSchema>;
325
325
 
326
326
  declare const PeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
327
+ version: z.ZodLiteral<1>;
328
+ messageId: z.ZodString;
329
+ sourceSessionId: z.ZodString;
330
+ targetMachineId: z.ZodString;
331
+ targetSessionId: z.ZodString;
327
332
  kind: z.ZodLiteral<"request">;
328
333
  content: z.ZodString;
329
334
  timeoutMs: z.ZodNumber;
335
+ }, z.core.$strict>, z.ZodObject<{
330
336
  version: z.ZodLiteral<1>;
331
337
  messageId: z.ZodString;
332
338
  sourceSessionId: z.ZodString;
333
339
  targetMachineId: z.ZodString;
334
340
  targetSessionId: z.ZodString;
335
- }, z.core.$strict>, z.ZodObject<{
336
341
  kind: z.ZodLiteral<"response">;
337
342
  requestId: z.ZodString;
338
343
  content: z.ZodString;
344
+ }, z.core.$strict>, z.ZodObject<{
339
345
  version: z.ZodLiteral<1>;
340
346
  messageId: z.ZodString;
341
347
  sourceSessionId: z.ZodString;
342
348
  targetMachineId: z.ZodString;
343
349
  targetSessionId: z.ZodString;
344
- }, z.core.$strict>, z.ZodObject<{
345
350
  kind: z.ZodLiteral<"error">;
346
351
  requestId: z.ZodString;
347
352
  code: z.ZodString;
348
353
  message: z.ZodString;
354
+ }, z.core.$strict>, z.ZodObject<{
349
355
  version: z.ZodLiteral<1>;
350
356
  messageId: z.ZodString;
351
357
  sourceSessionId: z.ZodString;
352
358
  targetMachineId: z.ZodString;
353
359
  targetSessionId: z.ZodString;
354
- }, z.core.$strict>, z.ZodObject<{
355
360
  kind: z.ZodLiteral<"cancel">;
356
361
  requestId: z.ZodString;
357
- version: z.ZodLiteral<1>;
358
- messageId: z.ZodString;
359
- sourceSessionId: z.ZodString;
360
- targetMachineId: z.ZodString;
361
- targetSessionId: z.ZodString;
362
362
  }, z.core.$strict>], "kind">;
363
363
  type PeerMessage = z.infer<typeof PeerMessageSchema>;
364
364
  declare const PeerDeliverySchema: z.ZodObject<{
365
365
  sourceMachineId: z.ZodString;
366
366
  message: z.ZodDiscriminatedUnion<[z.ZodObject<{
367
+ version: z.ZodLiteral<1>;
368
+ messageId: z.ZodString;
369
+ sourceSessionId: z.ZodString;
370
+ targetMachineId: z.ZodString;
371
+ targetSessionId: z.ZodString;
367
372
  kind: z.ZodLiteral<"request">;
368
373
  content: z.ZodString;
369
374
  timeoutMs: z.ZodNumber;
375
+ }, z.core.$strict>, z.ZodObject<{
370
376
  version: z.ZodLiteral<1>;
371
377
  messageId: z.ZodString;
372
378
  sourceSessionId: z.ZodString;
373
379
  targetMachineId: z.ZodString;
374
380
  targetSessionId: z.ZodString;
375
- }, z.core.$strict>, z.ZodObject<{
376
381
  kind: z.ZodLiteral<"response">;
377
382
  requestId: z.ZodString;
378
383
  content: z.ZodString;
384
+ }, z.core.$strict>, z.ZodObject<{
379
385
  version: z.ZodLiteral<1>;
380
386
  messageId: z.ZodString;
381
387
  sourceSessionId: z.ZodString;
382
388
  targetMachineId: z.ZodString;
383
389
  targetSessionId: z.ZodString;
384
- }, z.core.$strict>, z.ZodObject<{
385
390
  kind: z.ZodLiteral<"error">;
386
391
  requestId: z.ZodString;
387
392
  code: z.ZodString;
388
393
  message: z.ZodString;
394
+ }, z.core.$strict>, z.ZodObject<{
389
395
  version: z.ZodLiteral<1>;
390
396
  messageId: z.ZodString;
391
397
  sourceSessionId: z.ZodString;
392
398
  targetMachineId: z.ZodString;
393
399
  targetSessionId: z.ZodString;
394
- }, z.core.$strict>, z.ZodObject<{
395
400
  kind: z.ZodLiteral<"cancel">;
396
401
  requestId: z.ZodString;
397
- version: z.ZodLiteral<1>;
398
- messageId: z.ZodString;
399
- sourceSessionId: z.ZodString;
400
- targetMachineId: z.ZodString;
401
- targetSessionId: z.ZodString;
402
402
  }, z.core.$strict>], "kind">;
403
403
  }, z.core.$strict>;
404
404
  type PeerDelivery = z.infer<typeof PeerDeliverySchema>;
@@ -484,17 +484,17 @@ declare const SessionSummarySchema: z.ZodObject<{
484
484
  }, z.core.$strict>>;
485
485
  state: z.ZodEnum<{
486
486
  blocked: "blocked";
487
+ paused: "paused";
487
488
  ready: "ready";
488
489
  running: "running";
489
- paused: "paused";
490
490
  }>;
491
491
  }, z.core.$strict>>;
492
492
  }, z.core.$strip>;
493
493
  type SessionSummary = z.infer<typeof SessionSummarySchema>;
494
494
  declare const SessionAgentModeSchema: z.ZodEnum<{
495
+ autopilot: "autopilot";
495
496
  interactive: "interactive";
496
497
  plan: "plan";
497
- autopilot: "autopilot";
498
498
  }>;
499
499
  type SessionAgentMode = z.infer<typeof SessionAgentModeSchema>;
500
500
  declare const AgentConfigurationOptionSchema: z.ZodObject<{
@@ -517,27 +517,27 @@ declare const CopilotModelOptionSchema: z.ZodObject<{
517
517
  name: z.ZodString;
518
518
  isDefault: z.ZodBoolean;
519
519
  supportedReasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
520
+ high: "high";
520
521
  low: "low";
522
+ max: "max";
521
523
  medium: "medium";
522
- high: "high";
523
524
  xhigh: "xhigh";
524
- max: "max";
525
525
  }>>>;
526
526
  defaultReasoningEffort: z.ZodOptional<z.ZodEnum<{
527
+ high: "high";
527
528
  low: "low";
529
+ max: "max";
528
530
  medium: "medium";
529
- high: "high";
530
531
  xhigh: "xhigh";
531
- max: "max";
532
532
  }>>;
533
533
  creation: z.ZodOptional<z.ZodObject<{
534
534
  agentId: z.ZodString;
535
535
  agentName: z.ZodString;
536
536
  modelName: z.ZodString;
537
537
  agentModes: z.ZodArray<z.ZodEnum<{
538
+ autopilot: "autopilot";
538
539
  interactive: "interactive";
539
540
  plan: "plan";
540
- autopilot: "autopilot";
541
541
  }>>;
542
542
  reasoningEffortConfigurationSupported: z.ZodBoolean;
543
543
  isDefault: z.ZodBoolean;
@@ -546,11 +546,11 @@ declare const CopilotModelOptionSchema: z.ZodObject<{
546
546
  type CopilotModelOption = z.infer<typeof CopilotModelOptionSchema>;
547
547
  declare const SessionReasoningEffortSchema: z.ZodEnum<{
548
548
  default: "default";
549
+ high: "high";
549
550
  low: "low";
551
+ max: "max";
550
552
  medium: "medium";
551
- high: "high";
552
553
  xhigh: "xhigh";
553
- max: "max";
554
554
  }>;
555
555
  type SessionReasoningEffort = z.infer<typeof SessionReasoningEffortSchema>;
556
556
  declare const CurrentReasoningEffortSchema: z.ZodString;
@@ -566,8 +566,8 @@ declare const SessionEnvironmentInfoSchema: z.ZodObject<{
566
566
  description: z.ZodOptional<z.ZodString>;
567
567
  kind: z.ZodEnum<{
568
568
  builtin: "builtin";
569
- skill: "skill";
570
569
  client: "client";
570
+ skill: "skill";
571
571
  }>;
572
572
  }, z.core.$strip>>;
573
573
  skills: z.ZodArray<z.ZodObject<{
@@ -582,10 +582,10 @@ declare const SessionEnvironmentInfoSchema: z.ZodObject<{
582
582
  type SessionEnvironmentInfo = z.infer<typeof SessionEnvironmentInfoSchema>;
583
583
  declare const SessionRemoteStatusSchema: z.ZodObject<{
584
584
  state: z.ZodEnum<{
585
+ active: "active";
586
+ connecting: "connecting";
585
587
  error: "error";
586
588
  off: "off";
587
- connecting: "connecting";
588
- active: "active";
589
589
  }>;
590
590
  attachedSessionId: z.ZodOptional<z.ZodString>;
591
591
  url: z.ZodOptional<z.ZodURL>;
@@ -601,8 +601,8 @@ declare const SessionAvatarPersonaSchema: z.ZodObject<{
601
601
  role: z.ZodEnum<{
602
602
  default: "default";
603
603
  designer: "designer";
604
- filmmaker: "filmmaker";
605
604
  developer: "developer";
605
+ filmmaker: "filmmaker";
606
606
  secretary: "secretary";
607
607
  }>;
608
608
  displayName: z.ZodOptional<z.ZodString>;
@@ -626,8 +626,8 @@ declare const InteractionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
626
626
  kind: z.ZodLiteral<"elicitation">;
627
627
  message: z.ZodString;
628
628
  mode: z.ZodEnum<{
629
- url: "url";
630
629
  form: "form";
630
+ url: "url";
631
631
  }>;
632
632
  source: z.ZodOptional<z.ZodString>;
633
633
  url: z.ZodOptional<z.ZodURL>;
@@ -636,12 +636,12 @@ declare const InteractionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
636
636
  label: z.ZodString;
637
637
  description: z.ZodOptional<z.ZodString>;
638
638
  inputType: z.ZodEnum<{
639
- number: "number";
640
639
  boolean: "boolean";
641
- text: "text";
642
640
  integer: "integer";
643
- select: "select";
644
641
  "multi-select": "multi-select";
642
+ number: "number";
643
+ select: "select";
644
+ text: "text";
645
645
  }>;
646
646
  required: z.ZodBoolean;
647
647
  options: z.ZodArray<z.ZodString>;
@@ -654,9 +654,9 @@ declare const InteractionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
654
654
  maxItems: z.ZodOptional<z.ZodNumber>;
655
655
  format: z.ZodOptional<z.ZodEnum<{
656
656
  date: "date";
657
+ "date-time": "date-time";
657
658
  email: "email";
658
659
  uri: "uri";
659
- "date-time": "date-time";
660
660
  }>>;
661
661
  }, z.core.$strict>>;
662
662
  }, z.core.$strict>, z.ZodObject<{
@@ -665,8 +665,8 @@ declare const InteractionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
665
665
  serverUrl: z.ZodURL;
666
666
  reason: z.ZodEnum<{
667
667
  initial: "initial";
668
- refresh: "refresh";
669
668
  reauth: "reauth";
669
+ refresh: "refresh";
670
670
  upscope: "upscope";
671
671
  }>;
672
672
  responseMode: z.ZodLiteral<"cancel-only">;
@@ -695,9 +695,9 @@ type InteractionRequest = z.infer<typeof InteractionRequestSchema>;
695
695
  declare const InteractionResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
696
696
  kind: z.ZodLiteral<"permission">;
697
697
  decision: z.ZodEnum<{
698
- "approve-once": "approve-once";
699
- "approve-for-session": "approve-for-session";
700
698
  "approve-always": "approve-always";
699
+ "approve-for-session": "approve-for-session";
700
+ "approve-once": "approve-once";
701
701
  reject: "reject";
702
702
  }>;
703
703
  feedback: z.ZodOptional<z.ZodString>;
@@ -708,8 +708,8 @@ declare const InteractionResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
708
708
  }, z.core.$strict>, z.ZodObject<{
709
709
  kind: z.ZodLiteral<"elicitation">;
710
710
  action: z.ZodEnum<{
711
- cancel: "cancel";
712
711
  accept: "accept";
712
+ cancel: "cancel";
713
713
  decline: "decline";
714
714
  }>;
715
715
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
@@ -722,16 +722,16 @@ declare const InteractionResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
722
722
  }, z.core.$strict>, z.ZodObject<{
723
723
  kind: z.ZodLiteral<"auto_mode_switch">;
724
724
  action: z.ZodEnum<{
725
+ no: "no";
725
726
  yes: "yes";
726
727
  yes_always: "yes_always";
727
- no: "no";
728
728
  }>;
729
729
  }, z.core.$strict>, z.ZodObject<{
730
730
  kind: z.ZodLiteral<"session_limits">;
731
731
  action: z.ZodEnum<{
732
- set: "set";
733
- cancel: "cancel";
734
732
  add: "add";
733
+ cancel: "cancel";
734
+ set: "set";
735
735
  unset: "unset";
736
736
  }>;
737
737
  additionalAiCredits: z.ZodOptional<z.ZodNumber>;
@@ -747,9 +747,9 @@ type InteractionResponse = z.infer<typeof InteractionResponseSchema>;
747
747
  declare const PromptImageAttachmentSchema: z.ZodObject<{
748
748
  name: z.ZodString;
749
749
  mimeType: z.ZodEnum<{
750
- "image/webp": "image/webp";
751
750
  "image/jpeg": "image/jpeg";
752
751
  "image/png": "image/png";
752
+ "image/webp": "image/webp";
753
753
  }>;
754
754
  data: z.ZodString;
755
755
  byteLength: z.ZodNumber;
@@ -766,17 +766,24 @@ declare const PromptFileAttachmentSchema: z.ZodObject<{
766
766
  type PromptFileAttachment = z.infer<typeof PromptFileAttachmentSchema>;
767
767
 
768
768
  declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
769
+ id: z.ZodString;
770
+ revision: z.ZodNumber;
771
+ turnId: z.ZodString;
772
+ timestamp: z.ZodISODateTime;
773
+ sourceEventIds: z.ZodArray<z.ZodString>;
774
+ sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
775
+ sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
769
776
  kind: z.ZodLiteral<"human-message">;
770
777
  actor: z.ZodLiteral<"human">;
771
778
  content: z.ZodString;
772
779
  attachments: z.ZodArray<z.ZodObject<{
773
780
  kind: z.ZodEnum<{
774
- unknown: "unknown";
775
781
  file: "file";
776
- image: "image";
782
+ "github-reference": "github-reference";
777
783
  html: "html";
784
+ image: "image";
778
785
  selection: "selection";
779
- "github-reference": "github-reference";
786
+ unknown: "unknown";
780
787
  }>;
781
788
  name: z.ZodString;
782
789
  mimeType: z.ZodOptional<z.ZodString>;
@@ -787,6 +794,7 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
787
794
  imageRef: z.ZodOptional<z.ZodLiteral<"sha256">>;
788
795
  }, z.core.$strict>>;
789
796
  operationId: z.ZodOptional<z.ZodString>;
797
+ }, z.core.$strict>, z.ZodObject<{
790
798
  id: z.ZodString;
791
799
  revision: z.ZodNumber;
792
800
  turnId: z.ZodString;
@@ -794,21 +802,20 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
794
802
  sourceEventIds: z.ZodArray<z.ZodString>;
795
803
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
796
804
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
797
- }, z.core.$strict>, z.ZodObject<{
798
805
  kind: z.ZodLiteral<"assistant-message">;
799
806
  actor: z.ZodEnum<{
800
- subagent: "subagent";
801
807
  assistant: "assistant";
808
+ subagent: "subagent";
802
809
  }>;
803
810
  content: z.ZodString;
804
811
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
805
812
  kind: z.ZodEnum<{
806
- unknown: "unknown";
807
813
  file: "file";
808
- image: "image";
814
+ "github-reference": "github-reference";
809
815
  html: "html";
816
+ image: "image";
810
817
  selection: "selection";
811
- "github-reference": "github-reference";
818
+ unknown: "unknown";
812
819
  }>;
813
820
  name: z.ZodString;
814
821
  mimeType: z.ZodOptional<z.ZodString>;
@@ -821,6 +828,7 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
821
828
  model: z.ZodOptional<z.ZodString>;
822
829
  agentId: z.ZodOptional<z.ZodString>;
823
830
  final: z.ZodBoolean;
831
+ }, z.core.$strict>, z.ZodObject<{
824
832
  id: z.ZodString;
825
833
  revision: z.ZodNumber;
826
834
  turnId: z.ZodString;
@@ -828,16 +836,15 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
828
836
  sourceEventIds: z.ZodArray<z.ZodString>;
829
837
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
830
838
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
831
- }, z.core.$strict>, z.ZodObject<{
832
839
  kind: z.ZodLiteral<"activity-group">;
833
840
  actor: z.ZodEnum<{
834
- subagent: "subagent";
835
841
  assistant: "assistant";
842
+ subagent: "subagent";
836
843
  }>;
837
844
  status: z.ZodEnum<{
838
- running: "running";
839
845
  completed: "completed";
840
846
  failed: "failed";
847
+ running: "running";
841
848
  }>;
842
849
  steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
843
850
  timestamp: z.ZodOptional<z.ZodISODateTime>;
@@ -845,9 +852,9 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
845
852
  kind: z.ZodLiteral<"tool">;
846
853
  name: z.ZodString;
847
854
  status: z.ZodEnum<{
848
- running: "running";
849
855
  completed: "completed";
850
856
  failed: "failed";
857
+ running: "running";
851
858
  }>;
852
859
  }, z.core.$strict>, z.ZodObject<{
853
860
  timestamp: z.ZodOptional<z.ZodISODateTime>;
@@ -863,9 +870,9 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
863
870
  kind: z.ZodLiteral<"subagent">;
864
871
  name: z.ZodString;
865
872
  status: z.ZodEnum<{
866
- running: "running";
867
873
  completed: "completed";
868
874
  failed: "failed";
875
+ running: "running";
869
876
  }>;
870
877
  description: z.ZodOptional<z.ZodString>;
871
878
  model: z.ZodOptional<z.ZodString>;
@@ -878,14 +885,15 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
878
885
  kind: z.ZodLiteral<"permission">;
879
886
  name: z.ZodString;
880
887
  status: z.ZodEnum<{
881
- running: "running";
882
888
  completed: "completed";
883
889
  failed: "failed";
890
+ running: "running";
884
891
  }>;
885
892
  description: z.ZodOptional<z.ZodString>;
886
893
  resultSummary: z.ZodOptional<z.ZodString>;
887
894
  error: z.ZodOptional<z.ZodString>;
888
895
  }, z.core.$strict>], "kind">>;
896
+ }, z.core.$strict>, z.ZodObject<{
889
897
  id: z.ZodString;
890
898
  revision: z.ZodNumber;
891
899
  turnId: z.ZodString;
@@ -893,22 +901,22 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
893
901
  sourceEventIds: z.ZodArray<z.ZodString>;
894
902
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
895
903
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
896
- }, z.core.$strict>, z.ZodObject<{
897
904
  kind: z.ZodLiteral<"notice">;
898
905
  actor: z.ZodEnum<{
899
- subagent: "subagent";
900
906
  assistant: "assistant";
907
+ subagent: "subagent";
901
908
  system: "system";
902
909
  }>;
903
910
  severity: z.ZodEnum<{
904
- success: "success";
905
911
  error: "error";
906
912
  info: "info";
913
+ success: "success";
907
914
  warning: "warning";
908
915
  }>;
909
916
  title: z.ZodString;
910
917
  content: z.ZodString;
911
918
  presentation: z.ZodOptional<z.ZodLiteral<"compact">>;
919
+ }, z.core.$strict>, z.ZodObject<{
912
920
  id: z.ZodString;
913
921
  revision: z.ZodNumber;
914
922
  turnId: z.ZodString;
@@ -916,15 +924,14 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
916
924
  sourceEventIds: z.ZodArray<z.ZodString>;
917
925
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
918
926
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
919
- }, z.core.$strict>, z.ZodObject<{
920
927
  kind: z.ZodLiteral<"plan-update">;
921
928
  actor: z.ZodEnum<{
922
- subagent: "subagent";
923
929
  assistant: "assistant";
930
+ subagent: "subagent";
924
931
  }>;
925
932
  operation: z.ZodEnum<{
926
- deleted: "deleted";
927
933
  created: "created";
934
+ deleted: "deleted";
928
935
  updated: "updated";
929
936
  }>;
930
937
  content: z.ZodString;
@@ -935,13 +942,6 @@ declare const ConversationItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
935
942
  status: z.ZodString;
936
943
  dependsOn: z.ZodArray<z.ZodString>;
937
944
  }, z.core.$strict>>;
938
- id: z.ZodString;
939
- revision: z.ZodNumber;
940
- turnId: z.ZodString;
941
- timestamp: z.ZodISODateTime;
942
- sourceEventIds: z.ZodArray<z.ZodString>;
943
- sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
944
- sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
945
945
  }, z.core.$strict>], "kind">;
946
946
  type ConversationItem = z.infer<typeof ConversationItemSchema>;
947
947
  declare const ConversationActivityStepUpsertSchema: z.ZodObject<{
@@ -953,13 +953,13 @@ declare const ConversationActivityStepUpsertSchema: z.ZodObject<{
953
953
  turnId: z.ZodString;
954
954
  timestamp: z.ZodISODateTime;
955
955
  actor: z.ZodEnum<{
956
- subagent: "subagent";
957
956
  assistant: "assistant";
957
+ subagent: "subagent";
958
958
  }>;
959
959
  status: z.ZodEnum<{
960
- running: "running";
961
960
  completed: "completed";
962
961
  failed: "failed";
962
+ running: "running";
963
963
  }>;
964
964
  sourceEventId: z.ZodString;
965
965
  step: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -968,9 +968,9 @@ declare const ConversationActivityStepUpsertSchema: z.ZodObject<{
968
968
  kind: z.ZodLiteral<"tool">;
969
969
  name: z.ZodString;
970
970
  status: z.ZodEnum<{
971
- running: "running";
972
971
  completed: "completed";
973
972
  failed: "failed";
973
+ running: "running";
974
974
  }>;
975
975
  }, z.core.$strict>, z.ZodObject<{
976
976
  timestamp: z.ZodOptional<z.ZodISODateTime>;
@@ -986,9 +986,9 @@ declare const ConversationActivityStepUpsertSchema: z.ZodObject<{
986
986
  kind: z.ZodLiteral<"subagent">;
987
987
  name: z.ZodString;
988
988
  status: z.ZodEnum<{
989
- running: "running";
990
989
  completed: "completed";
991
990
  failed: "failed";
991
+ running: "running";
992
992
  }>;
993
993
  description: z.ZodOptional<z.ZodString>;
994
994
  model: z.ZodOptional<z.ZodString>;
@@ -1001,9 +1001,9 @@ declare const ConversationActivityStepUpsertSchema: z.ZodObject<{
1001
1001
  kind: z.ZodLiteral<"permission">;
1002
1002
  name: z.ZodString;
1003
1003
  status: z.ZodEnum<{
1004
- running: "running";
1005
1004
  completed: "completed";
1006
1005
  failed: "failed";
1006
+ running: "running";
1007
1007
  }>;
1008
1008
  description: z.ZodOptional<z.ZodString>;
1009
1009
  resultSummary: z.ZodOptional<z.ZodString>;
@@ -1014,17 +1014,24 @@ type ConversationActivityStepUpsert = z.infer<typeof ConversationActivityStepUps
1014
1014
 
1015
1015
  declare const SessionTimelinePageSchema: z.ZodObject<{
1016
1016
  items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1017
+ id: z.ZodString;
1018
+ revision: z.ZodNumber;
1019
+ turnId: z.ZodString;
1020
+ timestamp: z.ZodISODateTime;
1021
+ sourceEventIds: z.ZodArray<z.ZodString>;
1022
+ sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1023
+ sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1017
1024
  kind: z.ZodLiteral<"human-message">;
1018
1025
  actor: z.ZodLiteral<"human">;
1019
1026
  content: z.ZodString;
1020
1027
  attachments: z.ZodArray<z.ZodObject<{
1021
1028
  kind: z.ZodEnum<{
1022
- unknown: "unknown";
1023
1029
  file: "file";
1024
- image: "image";
1030
+ "github-reference": "github-reference";
1025
1031
  html: "html";
1032
+ image: "image";
1026
1033
  selection: "selection";
1027
- "github-reference": "github-reference";
1034
+ unknown: "unknown";
1028
1035
  }>;
1029
1036
  name: z.ZodString;
1030
1037
  mimeType: z.ZodOptional<z.ZodString>;
@@ -1035,6 +1042,7 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1035
1042
  imageRef: z.ZodOptional<z.ZodLiteral<"sha256">>;
1036
1043
  }, z.core.$strict>>;
1037
1044
  operationId: z.ZodOptional<z.ZodString>;
1045
+ }, z.core.$strict>, z.ZodObject<{
1038
1046
  id: z.ZodString;
1039
1047
  revision: z.ZodNumber;
1040
1048
  turnId: z.ZodString;
@@ -1042,21 +1050,20 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1042
1050
  sourceEventIds: z.ZodArray<z.ZodString>;
1043
1051
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1044
1052
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1045
- }, z.core.$strict>, z.ZodObject<{
1046
1053
  kind: z.ZodLiteral<"assistant-message">;
1047
1054
  actor: z.ZodEnum<{
1048
- subagent: "subagent";
1049
1055
  assistant: "assistant";
1056
+ subagent: "subagent";
1050
1057
  }>;
1051
1058
  content: z.ZodString;
1052
1059
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1053
1060
  kind: z.ZodEnum<{
1054
- unknown: "unknown";
1055
1061
  file: "file";
1056
- image: "image";
1062
+ "github-reference": "github-reference";
1057
1063
  html: "html";
1064
+ image: "image";
1058
1065
  selection: "selection";
1059
- "github-reference": "github-reference";
1066
+ unknown: "unknown";
1060
1067
  }>;
1061
1068
  name: z.ZodString;
1062
1069
  mimeType: z.ZodOptional<z.ZodString>;
@@ -1069,6 +1076,7 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1069
1076
  model: z.ZodOptional<z.ZodString>;
1070
1077
  agentId: z.ZodOptional<z.ZodString>;
1071
1078
  final: z.ZodBoolean;
1079
+ }, z.core.$strict>, z.ZodObject<{
1072
1080
  id: z.ZodString;
1073
1081
  revision: z.ZodNumber;
1074
1082
  turnId: z.ZodString;
@@ -1076,16 +1084,15 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1076
1084
  sourceEventIds: z.ZodArray<z.ZodString>;
1077
1085
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1078
1086
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1079
- }, z.core.$strict>, z.ZodObject<{
1080
1087
  kind: z.ZodLiteral<"activity-group">;
1081
1088
  actor: z.ZodEnum<{
1082
- subagent: "subagent";
1083
1089
  assistant: "assistant";
1090
+ subagent: "subagent";
1084
1091
  }>;
1085
1092
  status: z.ZodEnum<{
1086
- running: "running";
1087
1093
  completed: "completed";
1088
1094
  failed: "failed";
1095
+ running: "running";
1089
1096
  }>;
1090
1097
  steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1091
1098
  timestamp: z.ZodOptional<z.ZodISODateTime>;
@@ -1093,9 +1100,9 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1093
1100
  kind: z.ZodLiteral<"tool">;
1094
1101
  name: z.ZodString;
1095
1102
  status: z.ZodEnum<{
1096
- running: "running";
1097
1103
  completed: "completed";
1098
1104
  failed: "failed";
1105
+ running: "running";
1099
1106
  }>;
1100
1107
  }, z.core.$strict>, z.ZodObject<{
1101
1108
  timestamp: z.ZodOptional<z.ZodISODateTime>;
@@ -1111,9 +1118,9 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1111
1118
  kind: z.ZodLiteral<"subagent">;
1112
1119
  name: z.ZodString;
1113
1120
  status: z.ZodEnum<{
1114
- running: "running";
1115
1121
  completed: "completed";
1116
1122
  failed: "failed";
1123
+ running: "running";
1117
1124
  }>;
1118
1125
  description: z.ZodOptional<z.ZodString>;
1119
1126
  model: z.ZodOptional<z.ZodString>;
@@ -1126,14 +1133,15 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1126
1133
  kind: z.ZodLiteral<"permission">;
1127
1134
  name: z.ZodString;
1128
1135
  status: z.ZodEnum<{
1129
- running: "running";
1130
1136
  completed: "completed";
1131
1137
  failed: "failed";
1138
+ running: "running";
1132
1139
  }>;
1133
1140
  description: z.ZodOptional<z.ZodString>;
1134
1141
  resultSummary: z.ZodOptional<z.ZodString>;
1135
1142
  error: z.ZodOptional<z.ZodString>;
1136
1143
  }, z.core.$strict>], "kind">>;
1144
+ }, z.core.$strict>, z.ZodObject<{
1137
1145
  id: z.ZodString;
1138
1146
  revision: z.ZodNumber;
1139
1147
  turnId: z.ZodString;
@@ -1141,22 +1149,22 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1141
1149
  sourceEventIds: z.ZodArray<z.ZodString>;
1142
1150
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1143
1151
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1144
- }, z.core.$strict>, z.ZodObject<{
1145
1152
  kind: z.ZodLiteral<"notice">;
1146
1153
  actor: z.ZodEnum<{
1147
- subagent: "subagent";
1148
1154
  assistant: "assistant";
1155
+ subagent: "subagent";
1149
1156
  system: "system";
1150
1157
  }>;
1151
1158
  severity: z.ZodEnum<{
1152
- success: "success";
1153
1159
  error: "error";
1154
1160
  info: "info";
1161
+ success: "success";
1155
1162
  warning: "warning";
1156
1163
  }>;
1157
1164
  title: z.ZodString;
1158
1165
  content: z.ZodString;
1159
1166
  presentation: z.ZodOptional<z.ZodLiteral<"compact">>;
1167
+ }, z.core.$strict>, z.ZodObject<{
1160
1168
  id: z.ZodString;
1161
1169
  revision: z.ZodNumber;
1162
1170
  turnId: z.ZodString;
@@ -1164,15 +1172,14 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1164
1172
  sourceEventIds: z.ZodArray<z.ZodString>;
1165
1173
  sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1166
1174
  sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1167
- }, z.core.$strict>, z.ZodObject<{
1168
1175
  kind: z.ZodLiteral<"plan-update">;
1169
1176
  actor: z.ZodEnum<{
1170
- subagent: "subagent";
1171
1177
  assistant: "assistant";
1178
+ subagent: "subagent";
1172
1179
  }>;
1173
1180
  operation: z.ZodEnum<{
1174
- deleted: "deleted";
1175
1181
  created: "created";
1182
+ deleted: "deleted";
1176
1183
  updated: "updated";
1177
1184
  }>;
1178
1185
  content: z.ZodString;
@@ -1183,19 +1190,12 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1183
1190
  status: z.ZodString;
1184
1191
  dependsOn: z.ZodArray<z.ZodString>;
1185
1192
  }, z.core.$strict>>;
1186
- id: z.ZodString;
1187
- revision: z.ZodNumber;
1188
- turnId: z.ZodString;
1189
- timestamp: z.ZodISODateTime;
1190
- sourceEventIds: z.ZodArray<z.ZodString>;
1191
- sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1192
- sourceInteractionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1193
1193
  }, z.core.$strict>], "kind">>;
1194
1194
  cursor: z.ZodString;
1195
1195
  hasMore: z.ZodBoolean;
1196
1196
  cursorStatus: z.ZodEnum<{
1197
- ok: "ok";
1198
1197
  expired: "expired";
1198
+ ok: "ok";
1199
1199
  }>;
1200
1200
  assistantPreview: z.ZodOptional<z.ZodObject<{
1201
1201
  id: z.ZodString;
@@ -1206,12 +1206,12 @@ declare const SessionTimelinePageSchema: z.ZodObject<{
1206
1206
  final: z.ZodBoolean;
1207
1207
  attachments: z.ZodArray<z.ZodObject<{
1208
1208
  kind: z.ZodEnum<{
1209
- unknown: "unknown";
1210
1209
  file: "file";
1211
- image: "image";
1210
+ "github-reference": "github-reference";
1212
1211
  html: "html";
1212
+ image: "image";
1213
1213
  selection: "selection";
1214
- "github-reference": "github-reference";
1214
+ unknown: "unknown";
1215
1215
  }>;
1216
1216
  name: z.ZodString;
1217
1217
  mimeType: z.ZodOptional<z.ZodString>;
@@ -1258,8 +1258,8 @@ declare const WorkbenchCommandSchema: z.ZodObject<{
1258
1258
  argumentHint: z.ZodOptional<z.ZodString>;
1259
1259
  kind: z.ZodEnum<{
1260
1260
  builtin: "builtin";
1261
- skill: "skill";
1262
1261
  client: "client";
1262
+ skill: "skill";
1263
1263
  }>;
1264
1264
  allowDuringExecution: z.ZodBoolean;
1265
1265
  supported: z.ZodBoolean;
@@ -1292,8 +1292,8 @@ declare const WorkbenchQueueSnapshotSchema: z.ZodObject<{
1292
1292
  texts: z.ZodArray<z.ZodString>;
1293
1293
  actions: z.ZodArray<z.ZodEnum<{
1294
1294
  edit: "edit";
1295
- remove: "remove";
1296
1295
  move: "move";
1296
+ remove: "remove";
1297
1297
  "send-now": "send-now";
1298
1298
  }>>;
1299
1299
  }, z.core.$strict>>;
@@ -1301,39 +1301,39 @@ declare const WorkbenchQueueSnapshotSchema: z.ZodObject<{
1301
1301
  }, z.core.$strict>;
1302
1302
  type WorkbenchQueueSnapshot = z.infer<typeof WorkbenchQueueSnapshotSchema>;
1303
1303
  declare const WorkbenchQueueMutationRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1304
- action: z.ZodLiteral<"edit">;
1305
- prompt: z.ZodString;
1306
- generation: z.ZodString;
1307
- revision: z.ZodString;
1308
- id: z.ZodString;
1309
1304
  operationId: z.ZodUUID;
1310
1305
  operationCreatedAt: z.ZodISODateTime;
1311
1306
  expectedAgentRunId: z.ZodString;
1312
- }, z.core.$strict>, z.ZodObject<{
1313
- action: z.ZodLiteral<"remove">;
1314
1307
  generation: z.ZodString;
1315
1308
  revision: z.ZodString;
1316
1309
  id: z.ZodString;
1310
+ action: z.ZodLiteral<"edit">;
1311
+ prompt: z.ZodString;
1312
+ }, z.core.$strict>, z.ZodObject<{
1317
1313
  operationId: z.ZodUUID;
1318
1314
  operationCreatedAt: z.ZodISODateTime;
1319
1315
  expectedAgentRunId: z.ZodString;
1320
- }, z.core.$strict>, z.ZodObject<{
1321
- action: z.ZodLiteral<"move">;
1322
- toPosition: z.ZodNumber;
1323
1316
  generation: z.ZodString;
1324
1317
  revision: z.ZodString;
1325
1318
  id: z.ZodString;
1319
+ action: z.ZodLiteral<"remove">;
1320
+ }, z.core.$strict>, z.ZodObject<{
1326
1321
  operationId: z.ZodUUID;
1327
1322
  operationCreatedAt: z.ZodISODateTime;
1328
1323
  expectedAgentRunId: z.ZodString;
1329
- }, z.core.$strict>, z.ZodObject<{
1330
- action: z.ZodLiteral<"send-now">;
1331
1324
  generation: z.ZodString;
1332
1325
  revision: z.ZodString;
1333
1326
  id: z.ZodString;
1327
+ action: z.ZodLiteral<"move">;
1328
+ toPosition: z.ZodNumber;
1329
+ }, z.core.$strict>, z.ZodObject<{
1334
1330
  operationId: z.ZodUUID;
1335
1331
  operationCreatedAt: z.ZodISODateTime;
1336
1332
  expectedAgentRunId: z.ZodString;
1333
+ generation: z.ZodString;
1334
+ revision: z.ZodString;
1335
+ id: z.ZodString;
1336
+ action: z.ZodLiteral<"send-now">;
1337
1337
  }, z.core.$strict>], "action">;
1338
1338
  type WorkbenchQueueMutationRequest = z.infer<typeof WorkbenchQueueMutationRequestSchema>;
1339
1339
  declare const WorkbenchQueueMutationResultSchema: z.ZodObject<{
@@ -1347,8 +1347,8 @@ declare const WorkbenchQueueMutationResultSchema: z.ZodObject<{
1347
1347
  texts: z.ZodArray<z.ZodString>;
1348
1348
  actions: z.ZodArray<z.ZodEnum<{
1349
1349
  edit: "edit";
1350
- remove: "remove";
1351
1350
  move: "move";
1351
+ remove: "remove";
1352
1352
  "send-now": "send-now";
1353
1353
  }>>;
1354
1354
  }, z.core.$strict>>;
@@ -1437,11 +1437,11 @@ declare const WorkbenchScheduleSnapshotSchema: z.ZodObject<{
1437
1437
  time: z.ZodISODateTime;
1438
1438
  prompt: z.ZodString;
1439
1439
  status: z.ZodEnum<{
1440
- unknown: "unknown";
1441
1440
  error: "error";
1441
+ merged: "merged";
1442
1442
  pending: "pending";
1443
1443
  reply: "reply";
1444
- merged: "merged";
1444
+ unknown: "unknown";
1445
1445
  }>;
1446
1446
  reply: z.ZodOptional<z.ZodString>;
1447
1447
  replyEventId: z.ZodOptional<z.ZodString>;
@@ -1451,7 +1451,6 @@ declare const WorkbenchScheduleSnapshotSchema: z.ZodObject<{
1451
1451
  sampledAt: z.ZodISODateTime;
1452
1452
  }, z.core.$strict>;
1453
1453
  declare const WorkbenchScheduleCreateRequestSchema: z.ZodObject<{
1454
- draftId: z.ZodOptional<z.ZodUUID>;
1455
1454
  rule: z.ZodDiscriminatedUnion<[z.ZodObject<{
1456
1455
  kind: z.ZodLiteral<"once">;
1457
1456
  at: z.ZodISODateTime;
@@ -1469,6 +1468,7 @@ declare const WorkbenchScheduleCreateRequestSchema: z.ZodObject<{
1469
1468
  operationId: z.ZodUUID;
1470
1469
  operationCreatedAt: z.ZodISODateTime;
1471
1470
  expectedAgentRunId: z.ZodString;
1471
+ draftId: z.ZodOptional<z.ZodUUID>;
1472
1472
  }, z.core.$strict>;
1473
1473
  declare const WorkbenchScheduleCreateResultSchema: z.ZodObject<{
1474
1474
  snapshot: z.ZodObject<{
@@ -1514,11 +1514,11 @@ declare const WorkbenchScheduleCreateResultSchema: z.ZodObject<{
1514
1514
  time: z.ZodISODateTime;
1515
1515
  prompt: z.ZodString;
1516
1516
  status: z.ZodEnum<{
1517
- unknown: "unknown";
1518
1517
  error: "error";
1518
+ merged: "merged";
1519
1519
  pending: "pending";
1520
1520
  reply: "reply";
1521
- merged: "merged";
1521
+ unknown: "unknown";
1522
1522
  }>;
1523
1523
  reply: z.ZodOptional<z.ZodString>;
1524
1524
  replyEventId: z.ZodOptional<z.ZodString>;
@@ -1573,11 +1573,11 @@ declare const WorkbenchScheduleDeleteResultSchema: z.ZodObject<{
1573
1573
  time: z.ZodISODateTime;
1574
1574
  prompt: z.ZodString;
1575
1575
  status: z.ZodEnum<{
1576
- unknown: "unknown";
1577
1576
  error: "error";
1577
+ merged: "merged";
1578
1578
  pending: "pending";
1579
1579
  reply: "reply";
1580
- merged: "merged";
1580
+ unknown: "unknown";
1581
1581
  }>;
1582
1582
  reply: z.ZodOptional<z.ZodString>;
1583
1583
  replyEventId: z.ZodOptional<z.ZodString>;
@@ -1621,7 +1621,8 @@ interface WorkbenchRuntime {
1621
1621
  compact(sessionId: string): Promise<WorkbenchCompactResult>;
1622
1622
  }
1623
1623
 
1624
- type CodingAgentId = "copilot" | "pi" | "acp";
1624
+ declare const CODING_AGENT_IDS: readonly ["copilot", "pi", "codex", "claude", "acp"];
1625
+ type CodingAgentId = typeof CODING_AGENT_IDS[number];
1625
1626
  type AgentModelOption = CopilotModelOption;
1626
1627
  type AgentPermissionRequest = Readonly<{
1627
1628
  kind: string;
@@ -1757,9 +1758,11 @@ interface ResearchSourceAccess {
1757
1758
 
1758
1759
  declare const AgentSelectionSchema: z.ZodObject<{
1759
1760
  agents: z.ZodArray<z.ZodEnum<{
1761
+ acp: "acp";
1762
+ claude: "claude";
1763
+ codex: "codex";
1760
1764
  copilot: "copilot";
1761
1765
  pi: "pi";
1762
- acp: "acp";
1763
1766
  }>>;
1764
1767
  }, z.core.$strict>;
1765
1768
  type AgentSelection = z.infer<typeof AgentSelectionSchema>;
@@ -1791,6 +1794,7 @@ type CodingAgentConfig = {
1791
1794
  kind: "managed";
1792
1795
  initialSelection?: AgentSelection;
1793
1796
  piDirectory?: string;
1797
+ codexCommand?: string;
1794
1798
  acp?: {
1795
1799
  command: string;
1796
1800
  args: string[];
@@ -1800,6 +1804,11 @@ type CodingAgentConfig = {
1800
1804
  } | {
1801
1805
  kind: "pi";
1802
1806
  agentDirectory?: string;
1807
+ } | {
1808
+ kind: "codex";
1809
+ command?: string;
1810
+ } | {
1811
+ kind: "claude";
1803
1812
  } | {
1804
1813
  kind: "acp";
1805
1814
  command: string;
@@ -2041,5 +2050,7 @@ interface CodingAgentPresentation {
2041
2050
  }
2042
2051
  declare function codingAgentPresentation(agentId: string): CodingAgentPresentation;
2043
2052
 
2044
- export { AgentSelectionSchema, CachedPairingProvider, ContentCipher, DataDirectoryLease, DeviceIdentitySchema, PEER_CHAT_TIMEOUT_MS, PeerChatRequestSchema, PeerChatResultSchema, SessionImageRelayUrlSchema, SessionImageUploadError, SessionImageUploader, SessionImagesConfigSchema, TimelinePageBudgetError, assertPiRuntimeSupported, buildPairingUri, codingAgentPresentation, createCodingAgentAdapter, createPersistentContentCipher, generateContentKey, initialize, loadOrCreateContentKey, parseContentKey, requestPairingUri, supportsAgentSelection };
2053
+ declare const LEGACY_CLIENT_STATE_DIRECTORY: string;
2054
+
2055
+ export { AgentSelectionSchema, CODING_AGENT_IDS, CachedPairingProvider, ContentCipher, DataDirectoryLease, DeviceIdentitySchema, LEGACY_CLIENT_STATE_DIRECTORY, PEER_CHAT_TIMEOUT_MS, PeerChatRequestSchema, PeerChatResultSchema, SessionImageRelayUrlSchema, SessionImageUploadError, SessionImageUploader, SessionImagesConfigSchema, TimelinePageBudgetError, assertPiRuntimeSupported, buildPairingUri, codingAgentPresentation, createCodingAgentAdapter, createPersistentContentCipher, generateContentKey, initialize, loadOrCreateContentKey, parseContentKey, requestPairingUri, supportsAgentSelection };
2045
2056
  export type { Agent, AgentSelection, AgentSelectionProvider, AgentSessionConfiguration, AgentSessionConfigureOptions, AgentSessionCreateOptions, CodingAgentAdapter, CodingAgentConfig, CodingAgentId, CodingAgentSessionCallbacks, ContentKeyMaterial, DeviceIdentity, InitializeOptions, PairingProvider, PairingTicket, PcAgentConfig, PeerChatRequest, PeerChatResult, RelayRegistrationStatus, RelaySocket, RelaySocketFactory, SelectableAgent, SessionImageUploadErrorCode, SessionImageUploaderConfig, TimelineImageProjection, TimelineReadOptions };