@harness-gw/sdk 0.5.0 → 0.5.1

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.
@@ -44,7 +44,7 @@ export declare class HgwRemoteClient {
44
44
  id: string;
45
45
  name: string;
46
46
  };
47
- status: "unavailable" | "ready" | "degraded";
47
+ status: "degraded" | "ready" | "unavailable";
48
48
  capabilities: {
49
49
  agentCatalog: {
50
50
  status: "available";
@@ -174,8 +174,8 @@ export declare class HgwRemoteClient {
174
174
  filename?: string | undefined;
175
175
  } | {
176
176
  type: "file";
177
- mimeType: string;
178
177
  filename?: string | undefined;
178
+ mimeType: string;
179
179
  })[];
180
180
  }>;
181
181
  readArtifact(sessionId: string, artifactId: string, signal?: AbortSignal): Promise<Blob>;
@@ -202,11 +202,27 @@ export declare class HgwRemoteClient {
202
202
  toolInput?: Record<string, unknown> | undefined;
203
203
  toolResult?: {
204
204
  [x: string]: unknown;
205
+ _meta?: {
206
+ [x: string]: unknown;
207
+ "io.modelcontextprotocol/serverInfo"?: {
208
+ version: string;
209
+ websiteUrl?: string | undefined;
210
+ description?: string | undefined;
211
+ icons?: {
212
+ src: string;
213
+ mimeType?: string | undefined;
214
+ sizes?: string[] | undefined;
215
+ theme?: "dark" | "light" | undefined;
216
+ }[] | undefined;
217
+ name: string;
218
+ title?: string | undefined;
219
+ } | undefined;
220
+ } | undefined;
205
221
  content: ({
206
222
  type: "text";
207
223
  text: string;
208
224
  annotations?: {
209
- audience?: ("user" | "assistant")[] | undefined;
225
+ audience?: ("assistant" | "user")[] | undefined;
210
226
  priority?: number | undefined;
211
227
  lastModified?: string | undefined;
212
228
  } | undefined;
@@ -216,7 +232,7 @@ export declare class HgwRemoteClient {
216
232
  data: string;
217
233
  mimeType: string;
218
234
  annotations?: {
219
- audience?: ("user" | "assistant")[] | undefined;
235
+ audience?: ("assistant" | "user")[] | undefined;
220
236
  priority?: number | undefined;
221
237
  lastModified?: string | undefined;
222
238
  } | undefined;
@@ -226,20 +242,18 @@ export declare class HgwRemoteClient {
226
242
  data: string;
227
243
  mimeType: string;
228
244
  annotations?: {
229
- audience?: ("user" | "assistant")[] | undefined;
245
+ audience?: ("assistant" | "user")[] | undefined;
230
246
  priority?: number | undefined;
231
247
  lastModified?: string | undefined;
232
248
  } | undefined;
233
249
  _meta?: Record<string, unknown> | undefined;
234
250
  } | {
235
251
  uri: string;
236
- name: string;
237
- type: "resource_link";
238
252
  description?: string | undefined;
239
253
  mimeType?: string | undefined;
240
254
  size?: number | undefined;
241
255
  annotations?: {
242
- audience?: ("user" | "assistant")[] | undefined;
256
+ audience?: ("assistant" | "user")[] | undefined;
243
257
  priority?: number | undefined;
244
258
  lastModified?: string | undefined;
245
259
  } | undefined;
@@ -250,45 +264,31 @@ export declare class HgwRemoteClient {
250
264
  src: string;
251
265
  mimeType?: string | undefined;
252
266
  sizes?: string[] | undefined;
253
- theme?: "light" | "dark" | undefined;
267
+ theme?: "dark" | "light" | undefined;
254
268
  }[] | undefined;
269
+ name: string;
255
270
  title?: string | undefined;
271
+ type: "resource_link";
256
272
  } | {
257
273
  type: "resource";
258
274
  resource: {
259
275
  uri: string;
260
- text: string;
261
276
  mimeType?: string | undefined;
262
277
  _meta?: Record<string, unknown> | undefined;
278
+ text: string;
263
279
  } | {
264
280
  uri: string;
265
- blob: string;
266
281
  mimeType?: string | undefined;
267
282
  _meta?: Record<string, unknown> | undefined;
283
+ blob: string;
268
284
  };
269
285
  annotations?: {
270
- audience?: ("user" | "assistant")[] | undefined;
286
+ audience?: ("assistant" | "user")[] | undefined;
271
287
  priority?: number | undefined;
272
288
  lastModified?: string | undefined;
273
289
  } | undefined;
274
290
  _meta?: Record<string, unknown> | undefined;
275
291
  })[];
276
- _meta?: {
277
- [x: string]: unknown;
278
- "io.modelcontextprotocol/serverInfo"?: {
279
- version: string;
280
- name: string;
281
- websiteUrl?: string | undefined;
282
- description?: string | undefined;
283
- icons?: {
284
- src: string;
285
- mimeType?: string | undefined;
286
- sizes?: string[] | undefined;
287
- theme?: "light" | "dark" | undefined;
288
- }[] | undefined;
289
- title?: string | undefined;
290
- } | undefined;
291
- } | undefined;
292
292
  structuredContent?: unknown;
293
293
  isError?: boolean | undefined;
294
294
  } | undefined;
@@ -305,11 +305,27 @@ export declare class HgwRemoteClient {
305
305
  /** A tool call the App view makes, answered by the proxy's MCP server. */
306
306
  callMcpAppTool(sessionId: string, toolCallId: string, request: McpAppToolCallRequest): Promise<{
307
307
  [x: string]: unknown;
308
+ _meta?: {
309
+ [x: string]: unknown;
310
+ "io.modelcontextprotocol/serverInfo"?: {
311
+ version: string;
312
+ websiteUrl?: string | undefined;
313
+ description?: string | undefined;
314
+ icons?: {
315
+ src: string;
316
+ mimeType?: string | undefined;
317
+ sizes?: string[] | undefined;
318
+ theme?: "dark" | "light" | undefined;
319
+ }[] | undefined;
320
+ name: string;
321
+ title?: string | undefined;
322
+ } | undefined;
323
+ } | undefined;
308
324
  content: ({
309
325
  type: "text";
310
326
  text: string;
311
327
  annotations?: {
312
- audience?: ("user" | "assistant")[] | undefined;
328
+ audience?: ("assistant" | "user")[] | undefined;
313
329
  priority?: number | undefined;
314
330
  lastModified?: string | undefined;
315
331
  } | undefined;
@@ -319,7 +335,7 @@ export declare class HgwRemoteClient {
319
335
  data: string;
320
336
  mimeType: string;
321
337
  annotations?: {
322
- audience?: ("user" | "assistant")[] | undefined;
338
+ audience?: ("assistant" | "user")[] | undefined;
323
339
  priority?: number | undefined;
324
340
  lastModified?: string | undefined;
325
341
  } | undefined;
@@ -329,20 +345,18 @@ export declare class HgwRemoteClient {
329
345
  data: string;
330
346
  mimeType: string;
331
347
  annotations?: {
332
- audience?: ("user" | "assistant")[] | undefined;
348
+ audience?: ("assistant" | "user")[] | undefined;
333
349
  priority?: number | undefined;
334
350
  lastModified?: string | undefined;
335
351
  } | undefined;
336
352
  _meta?: Record<string, unknown> | undefined;
337
353
  } | {
338
354
  uri: string;
339
- name: string;
340
- type: "resource_link";
341
355
  description?: string | undefined;
342
356
  mimeType?: string | undefined;
343
357
  size?: number | undefined;
344
358
  annotations?: {
345
- audience?: ("user" | "assistant")[] | undefined;
359
+ audience?: ("assistant" | "user")[] | undefined;
346
360
  priority?: number | undefined;
347
361
  lastModified?: string | undefined;
348
362
  } | undefined;
@@ -353,78 +367,64 @@ export declare class HgwRemoteClient {
353
367
  src: string;
354
368
  mimeType?: string | undefined;
355
369
  sizes?: string[] | undefined;
356
- theme?: "light" | "dark" | undefined;
370
+ theme?: "dark" | "light" | undefined;
357
371
  }[] | undefined;
372
+ name: string;
358
373
  title?: string | undefined;
374
+ type: "resource_link";
359
375
  } | {
360
376
  type: "resource";
361
377
  resource: {
362
378
  uri: string;
363
- text: string;
364
379
  mimeType?: string | undefined;
365
380
  _meta?: Record<string, unknown> | undefined;
381
+ text: string;
366
382
  } | {
367
383
  uri: string;
368
- blob: string;
369
384
  mimeType?: string | undefined;
370
385
  _meta?: Record<string, unknown> | undefined;
386
+ blob: string;
371
387
  };
372
388
  annotations?: {
373
- audience?: ("user" | "assistant")[] | undefined;
389
+ audience?: ("assistant" | "user")[] | undefined;
374
390
  priority?: number | undefined;
375
391
  lastModified?: string | undefined;
376
392
  } | undefined;
377
393
  _meta?: Record<string, unknown> | undefined;
378
394
  })[];
395
+ structuredContent?: unknown;
396
+ isError?: boolean | undefined;
397
+ }>;
398
+ /** A resource read the App view makes, answered by the proxy's MCP server. */
399
+ readMcpAppResource(sessionId: string, subject: McpAppSubject, request: McpAppResourceReadRequest): Promise<{
400
+ [x: string]: unknown;
379
401
  _meta?: {
380
402
  [x: string]: unknown;
381
403
  "io.modelcontextprotocol/serverInfo"?: {
382
404
  version: string;
383
- name: string;
384
405
  websiteUrl?: string | undefined;
385
406
  description?: string | undefined;
386
407
  icons?: {
387
408
  src: string;
388
409
  mimeType?: string | undefined;
389
410
  sizes?: string[] | undefined;
390
- theme?: "light" | "dark" | undefined;
411
+ theme?: "dark" | "light" | undefined;
391
412
  }[] | undefined;
413
+ name: string;
392
414
  title?: string | undefined;
393
415
  } | undefined;
394
416
  } | undefined;
395
- structuredContent?: unknown;
396
- isError?: boolean | undefined;
397
- }>;
398
- /** A resource read the App view makes, answered by the proxy's MCP server. */
399
- readMcpAppResource(sessionId: string, subject: McpAppSubject, request: McpAppResourceReadRequest): Promise<{
400
- [x: string]: unknown;
401
417
  contents: ({
402
418
  uri: string;
403
- text: string;
404
419
  mimeType?: string | undefined;
405
420
  _meta?: Record<string, unknown> | undefined;
421
+ text: string;
406
422
  } | {
407
423
  uri: string;
408
- blob: string;
409
424
  mimeType?: string | undefined;
410
425
  _meta?: Record<string, unknown> | undefined;
426
+ blob: string;
411
427
  })[];
412
- _meta?: {
413
- [x: string]: unknown;
414
- "io.modelcontextprotocol/serverInfo"?: {
415
- version: string;
416
- name: string;
417
- websiteUrl?: string | undefined;
418
- description?: string | undefined;
419
- icons?: {
420
- src: string;
421
- mimeType?: string | undefined;
422
- sizes?: string[] | undefined;
423
- theme?: "light" | "dark" | undefined;
424
- }[] | undefined;
425
- title?: string | undefined;
426
- } | undefined;
427
- } | undefined;
428
428
  }>;
429
429
  transcribe(sessionId: string, audio: Blob, signal?: AbortSignal): Promise<string>;
430
430
  transcribeForAgent(agentId: string, audio: Blob, signal?: AbortSignal): Promise<string>;
@@ -20,11 +20,11 @@ type Json = Record<string, unknown>;
20
20
  * the message itself without its credentials.
21
21
  */
22
22
  export declare function frameFields(direction: "in" | "out", message: unknown): {
23
- frame: Json;
24
- sessionId?: string | undefined;
25
- method?: string | undefined;
23
+ direction: "in" | "out";
26
24
  requestId?: {} | null | undefined;
27
- direction: "out" | "in";
25
+ method?: string | undefined;
26
+ sessionId?: string | undefined;
27
+ frame: Json;
28
28
  };
29
29
  /** `stream` with one `acp.frame` debug line per message, each way. */
30
30
  export declare function loggedStream(stream: WireStream, logger: Logger): WireStream;
@@ -118,8 +118,8 @@ export declare const HgwClientCapabilitiesMetaSchema: z.ZodObject<{
118
118
  export declare const HgwInitializeMetaSchema: z.ZodObject<{
119
119
  version: z.ZodLiteral<1>;
120
120
  role: z.ZodEnum<{
121
- operator: "operator";
122
121
  guest: "guest";
122
+ operator: "operator";
123
123
  }>;
124
124
  extensions: z.ZodObject<{
125
125
  steer: z.ZodBoolean;
@@ -177,11 +177,11 @@ export declare const HgwSessionSearchResponseSchema: z.ZodObject<{
177
177
  export declare const HgwSessionInfoMetaSchema: z.ZodObject<{
178
178
  agentId: z.ZodString;
179
179
  status: z.ZodEnum<{
180
- unknown: "unknown";
180
+ failed: "failed";
181
181
  idle: "idle";
182
182
  running: "running";
183
+ unknown: "unknown";
183
184
  "waiting-for-input": "waiting-for-input";
184
- failed: "failed";
185
185
  }>;
186
186
  archived: z.ZodBoolean;
187
187
  createdAt: z.ZodOptional<z.ZodISODateTime>;
@@ -189,11 +189,11 @@ export declare const HgwSessionInfoMetaSchema: z.ZodObject<{
189
189
  pinned: z.ZodOptional<z.ZodBoolean>;
190
190
  platform: z.ZodOptional<z.ZodEnum<{
191
191
  buzz: "buzz";
192
- whatsapp: "whatsapp";
192
+ discord: "discord";
193
+ email: "email";
193
194
  slack: "slack";
194
195
  telegram: "telegram";
195
- email: "email";
196
- discord: "discord";
196
+ whatsapp: "whatsapp";
197
197
  }>>;
198
198
  }, z.core.$strip>;
199
199
  export type HgwSessionInfoMeta = z.infer<typeof HgwSessionInfoMetaSchema>;
@@ -292,8 +292,8 @@ export declare const HgwSteerRequestSchema: z.ZodObject<{
292
292
  }, z.core.$strict>;
293
293
  export declare const HgwSteerResponseSchema: z.ZodObject<{
294
294
  status: z.ZodEnum<{
295
- steered: "steered";
296
295
  queued: "queued";
296
+ steered: "steered";
297
297
  }>;
298
298
  }, z.core.$strict>;
299
299
  /**
@@ -319,27 +319,27 @@ export declare const HgwAgentsListResponseSchema: z.ZodObject<{
319
319
  description: z.ZodOptional<z.ZodString>;
320
320
  status: z.ZodOptional<z.ZodEnum<{
321
321
  active: "active";
322
- unknown: "unknown";
322
+ attention: "attention";
323
323
  idle: "idle";
324
324
  running: "running";
325
- attention: "attention";
325
+ unknown: "unknown";
326
326
  }>>;
327
327
  activity: z.ZodOptional<z.ZodEnum<{
328
328
  active: "active";
329
- unknown: "unknown";
330
329
  idle: "idle";
330
+ unknown: "unknown";
331
331
  }>>;
332
332
  visibility: z.ZodOptional<z.ZodEnum<{
333
- visible: "visible";
334
333
  hidden: "hidden";
334
+ visible: "visible";
335
335
  }>>;
336
336
  role: z.ZodOptional<z.ZodLiteral<"creator">>;
337
337
  avatar: z.ZodOptional<z.ZodString>;
338
338
  muted: z.ZodOptional<z.ZodLiteral<true>>;
339
339
  }, z.core.$strict>;
340
340
  visibility: z.ZodEnum<{
341
- visible: "visible";
342
341
  hidden: "hidden";
342
+ visible: "visible";
343
343
  }>;
344
344
  selectable: z.ZodBoolean;
345
345
  editable: z.ZodBoolean;
@@ -351,8 +351,8 @@ export declare const HgwAgentsListResponseSchema: z.ZodObject<{
351
351
  /** `_hgw/agents/update` params: at least one of visibility, avatar, and muted. */
352
352
  export declare const HgwAgentUpdateRequestSchema: z.ZodObject<{
353
353
  visibility: z.ZodOptional<z.ZodEnum<{
354
- visible: "visible";
355
354
  hidden: "hidden";
355
+ visible: "visible";
356
356
  }>>;
357
357
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
358
  muted: z.ZodOptional<z.ZodBoolean>;
@@ -370,27 +370,27 @@ export declare const HgwAgentUpdateResponseSchema: z.ZodObject<{
370
370
  description: z.ZodOptional<z.ZodString>;
371
371
  status: z.ZodOptional<z.ZodEnum<{
372
372
  active: "active";
373
- unknown: "unknown";
373
+ attention: "attention";
374
374
  idle: "idle";
375
375
  running: "running";
376
- attention: "attention";
376
+ unknown: "unknown";
377
377
  }>>;
378
378
  activity: z.ZodOptional<z.ZodEnum<{
379
379
  active: "active";
380
- unknown: "unknown";
381
380
  idle: "idle";
381
+ unknown: "unknown";
382
382
  }>>;
383
383
  visibility: z.ZodOptional<z.ZodEnum<{
384
- visible: "visible";
385
384
  hidden: "hidden";
385
+ visible: "visible";
386
386
  }>>;
387
387
  role: z.ZodOptional<z.ZodLiteral<"creator">>;
388
388
  avatar: z.ZodOptional<z.ZodString>;
389
389
  muted: z.ZodOptional<z.ZodLiteral<true>>;
390
390
  }, z.core.$strict>;
391
391
  visibility: z.ZodEnum<{
392
- visible: "visible";
393
392
  hidden: "hidden";
393
+ visible: "visible";
394
394
  }>;
395
395
  selectable: z.ZodBoolean;
396
396
  editable: z.ZodBoolean;
@@ -427,8 +427,8 @@ export declare const HgwMessageMetaSchema: z.ZodObject<{
427
427
  opensTurn: z.ZodLiteral<true>;
428
428
  notice: z.ZodOptional<z.ZodObject<{
429
429
  severity: z.ZodEnum<{
430
- info: "info";
431
430
  error: "error";
431
+ info: "info";
432
432
  warning: "warning";
433
433
  }>;
434
434
  title: z.ZodString;
@@ -454,10 +454,10 @@ export declare const HgwSubagentSchema: z.ZodObject<{
454
454
  model: z.ZodOptional<z.ZodString>;
455
455
  depth: z.ZodOptional<z.ZodNumber>;
456
456
  status: z.ZodOptional<z.ZodEnum<{
457
- running: "running";
458
- failed: "failed";
459
457
  cancelled: "cancelled";
460
458
  completed: "completed";
459
+ failed: "failed";
460
+ running: "running";
461
461
  }>>;
462
462
  tokens: z.ZodOptional<z.ZodNumber>;
463
463
  filesRead: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -469,6 +469,8 @@ export declare const HgwSubagentSchema: z.ZodObject<{
469
469
  export type HgwSubagent = z.infer<typeof HgwSubagentSchema>;
470
470
  /** `state_update._meta.hgw` */
471
471
  export declare const HgwStateMetaSchema: z.ZodObject<{
472
+ sequence: z.ZodNumber;
473
+ turnId: z.ZodString;
472
474
  at: z.ZodOptional<z.ZodISODateTime>;
473
475
  execution: z.ZodOptional<z.ZodLiteral<"stopping">>;
474
476
  code: z.ZodOptional<z.ZodString>;
@@ -479,18 +481,20 @@ export declare const HgwStateMetaSchema: z.ZodObject<{
479
481
  amount: z.ZodNumber;
480
482
  currency: z.ZodString;
481
483
  }, z.core.$strip>>;
482
- sequence: z.ZodNumber;
483
- turnId: z.ZodString;
484
484
  }, z.core.$strip>;
485
485
  /** `agent_message_chunk` / `agent_thought_chunk` `_meta.hgw` */
486
486
  export declare const HgwChunkMetaSchema: z.ZodObject<{
487
- subagentId: z.ZodOptional<z.ZodString>;
488
- parentToolCallId: z.ZodOptional<z.ZodString>;
489
487
  sequence: z.ZodNumber;
490
488
  turnId: z.ZodString;
489
+ subagentId: z.ZodOptional<z.ZodString>;
490
+ parentToolCallId: z.ZodOptional<z.ZodString>;
491
491
  }, z.core.$strip>;
492
492
  /** `tool_call_update` / `tool_call_content_chunk` `_meta.hgw` */
493
493
  export declare const HgwToolCallMetaSchema: z.ZodObject<{
494
+ sequence: z.ZodNumber;
495
+ turnId: z.ZodString;
496
+ subagentId: z.ZodOptional<z.ZodString>;
497
+ parentToolCallId: z.ZodOptional<z.ZodString>;
494
498
  messageId: z.ZodString;
495
499
  argsTextDelta: z.ZodOptional<z.ZodString>;
496
500
  argsText: z.ZodOptional<z.ZodString>;
@@ -503,10 +507,10 @@ export declare const HgwToolCallMetaSchema: z.ZodObject<{
503
507
  model: z.ZodOptional<z.ZodString>;
504
508
  depth: z.ZodOptional<z.ZodNumber>;
505
509
  status: z.ZodOptional<z.ZodEnum<{
506
- running: "running";
507
- failed: "failed";
508
510
  cancelled: "cancelled";
509
511
  completed: "completed";
512
+ failed: "failed";
513
+ running: "running";
510
514
  }>>;
511
515
  tokens: z.ZodOptional<z.ZodNumber>;
512
516
  filesRead: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -516,10 +520,6 @@ export declare const HgwToolCallMetaSchema: z.ZodObject<{
516
520
  summary: z.ZodOptional<z.ZodString>;
517
521
  }, z.core.$strip>>;
518
522
  app: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
519
- subagentId: z.ZodOptional<z.ZodString>;
520
- parentToolCallId: z.ZodOptional<z.ZodString>;
521
- sequence: z.ZodNumber;
522
- turnId: z.ZodString;
523
523
  }, z.core.$strip>;
524
524
  /** `plan_update._meta.hgw`: the lossless Session Todos. */
525
525
  export declare const HgwPlanMetaSchema: z.ZodObject<{
@@ -530,9 +530,9 @@ export declare const HgwPlanMetaSchema: z.ZodObject<{
530
530
  label: z.ZodString;
531
531
  status: z.ZodEnum<{
532
532
  active: "active";
533
+ completed: "completed";
533
534
  failed: "failed";
534
535
  pending: "pending";
535
- completed: "completed";
536
536
  }>;
537
537
  }, z.core.$strict>>;
538
538
  }, z.core.$strip>;
@@ -545,9 +545,9 @@ export declare const HgwPlanMetaSchema: z.ZodObject<{
545
545
  */
546
546
  export declare const HgwUsageMetaSchema: z.ZodObject<{
547
547
  source: z.ZodEnum<{
548
+ "local-estimate": "local-estimate";
548
549
  "provider-usage": "provider-usage";
549
550
  "provider-usage-plus-estimate": "provider-usage-plus-estimate";
550
- "local-estimate": "local-estimate";
551
551
  }>;
552
552
  estimated: z.ZodOptional<z.ZodLiteral<true>>;
553
553
  breakdown: z.ZodOptional<z.ZodObject<{
@@ -647,9 +647,9 @@ export declare const HgwAvailableCommandsMetaSchema: z.ZodObject<{
647
647
  scope: z.ZodLiteral<"turn">;
648
648
  answerModes: z.ZodTuple<[z.ZodLiteral<"single">, z.ZodLiteral<"multiple">, z.ZodLiteral<"free-text">], null>;
649
649
  cancellation: z.ZodEnum<{
650
+ "native-cancel": "native-cancel";
650
651
  "native-empty-answer": "native-empty-answer";
651
652
  "native-reject": "native-reject";
652
- "native-cancel": "native-cancel";
653
653
  }>;
654
654
  maxQuestions: z.ZodNumber;
655
655
  maxChoicesPerQuestion: z.ZodNumber;
@@ -774,8 +774,8 @@ export declare const HgwArtifactDescriptorSchema: z.ZodObject<{
774
774
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
775
775
  type: z.ZodLiteral<"inline">;
776
776
  encoding: z.ZodEnum<{
777
- utf8: "utf8";
778
777
  base64: "base64";
778
+ utf8: "utf8";
779
779
  }>;
780
780
  data: z.ZodString;
781
781
  }, z.core.$strict>, z.ZodObject<{
@@ -820,42 +820,42 @@ export declare const HGW_REQUEST_TEXT_MAX = 200;
820
820
  * session list, and those items are marked `replayed`.
821
821
  */
822
822
  export declare const HgwActivityNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
823
+ agentId: z.ZodString;
824
+ sessionId: z.ZodString;
825
+ occurredAt: z.ZodISODateTime;
826
+ replayed: z.ZodOptional<z.ZodLiteral<true>>;
823
827
  type: z.ZodEnum<{
824
- "turn-started": "turn-started";
825
- "turn-finished": "turn-finished";
826
828
  "turn-failed": "turn-failed";
829
+ "turn-finished": "turn-finished";
830
+ "turn-started": "turn-started";
827
831
  }>;
828
832
  turnId: z.ZodString;
833
+ }, z.core.$strip>, z.ZodObject<{
829
834
  agentId: z.ZodString;
830
835
  sessionId: z.ZodString;
831
836
  occurredAt: z.ZodISODateTime;
832
837
  replayed: z.ZodOptional<z.ZodLiteral<true>>;
833
- }, z.core.$strip>, z.ZodObject<{
834
838
  type: z.ZodLiteral<"attention-requested">;
835
839
  requestId: z.ZodString;
836
840
  attentionKind: z.ZodEnum<{
837
- question: "question";
838
841
  permission: "permission";
842
+ question: "question";
839
843
  }>;
840
844
  requestText: z.ZodOptional<z.ZodString>;
841
845
  requestMore: z.ZodOptional<z.ZodNumber>;
846
+ }, z.core.$strip>, z.ZodObject<{
842
847
  agentId: z.ZodString;
843
848
  sessionId: z.ZodString;
844
849
  occurredAt: z.ZodISODateTime;
845
850
  replayed: z.ZodOptional<z.ZodLiteral<true>>;
846
- }, z.core.$strip>, z.ZodObject<{
847
851
  type: z.ZodLiteral<"attention-resolved">;
848
852
  requestId: z.ZodString;
853
+ }, z.core.$strip>, z.ZodObject<{
849
854
  agentId: z.ZodString;
850
855
  sessionId: z.ZodString;
851
856
  occurredAt: z.ZodISODateTime;
852
857
  replayed: z.ZodOptional<z.ZodLiteral<true>>;
853
- }, z.core.$strip>, z.ZodObject<{
854
858
  type: z.ZodLiteral<"unread-changed">;
855
859
  unread: z.ZodBoolean;
856
- agentId: z.ZodString;
857
- sessionId: z.ZodString;
858
- occurredAt: z.ZodISODateTime;
859
- replayed: z.ZodOptional<z.ZodLiteral<true>>;
860
860
  }, z.core.$strip>], "type">;
861
861
  export type HgwActivityNotification = z.infer<typeof HgwActivityNotificationSchema>;