@runtypelabs/persona 4.17.0 → 4.17.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.
@@ -35,6 +35,7 @@ export type RuntypeExecutionStreamEvent = ({
35
35
  iterations?: number;
36
36
  kind: "agent" | "flow";
37
37
  seq: number;
38
+ stepErrorCount?: number;
38
39
  stopReason?: string;
39
40
  success: boolean;
40
41
  successfulSteps?: number;
@@ -364,10 +365,21 @@ export type RuntypeExecutionStreamEvent = ({
364
365
  mode: "form" | "url";
365
366
  pauseCount?: number;
366
367
  requestedSchema?: Record<string, unknown>;
368
+ requests?: Array<{
369
+ message: string;
370
+ mode: "form" | "url";
371
+ name: string;
372
+ requestedSchema?: Record<string, unknown>;
373
+ url?: string;
374
+ }>;
367
375
  serverName?: string;
368
376
  url?: string;
369
377
  };
370
378
  executionId: string;
379
+ externalAgent?: {
380
+ contextId?: string;
381
+ taskId?: string;
382
+ };
371
383
  origin?: "webmcp" | "sdk";
372
384
  pageOrigin?: string;
373
385
  parameters?: Record<string, unknown>;
@@ -418,23 +430,59 @@ export type RuntypeStopReasonKind = NonNullable<
418
430
 
419
431
  export type RuntypeClientInitRequest = {
420
432
  flowId?: string;
421
- sessionId?: string;
433
+ identityProof?: string;
434
+ token: string;
435
+ visitorHistory?: boolean;
436
+ visitorToken?: string;
437
+ } | {
438
+ flowId?: string;
439
+ identityProof?: string;
440
+ sessionId: string;
441
+ token: string;
442
+ visitorHistory?: boolean;
443
+ visitorToken?: string;
444
+ } | {
445
+ conversationId: string;
446
+ flowId?: string;
447
+ identityProof?: string;
448
+ token: string;
449
+ visitorHistory?: boolean;
450
+ visitorToken: string;
451
+ } | {
452
+ conversationId: string;
453
+ flowId?: string;
454
+ identityProof: string;
422
455
  token: string;
456
+ visitorHistory?: boolean;
457
+ visitorToken?: string;
423
458
  };
424
459
 
425
460
  export type RuntypeClientInitResponse = {
461
+ app?: {
462
+ id: string;
463
+ };
426
464
  config: {
427
- placeholder?: string;
465
+ placeholder: string;
428
466
  theme?: unknown;
429
- welcomeMessage?: string | null;
467
+ welcomeMessage: string | null;
430
468
  };
469
+ conversationId: string;
470
+ conversationRevision: string;
431
471
  expiresAt: string;
432
472
  flow?: {
433
473
  description?: string | null;
434
474
  id: string;
435
- name?: string | null;
475
+ name?: string;
436
476
  };
437
477
  sessionId: string;
478
+ targetId?: string;
479
+ visitor?: {
480
+ endUserId: string | null;
481
+ expiresAt: string;
482
+ id: string;
483
+ identityStatus: "not_provided" | "admitted" | "ignored";
484
+ token?: string;
485
+ };
438
486
  };
439
487
 
440
488
  export type RuntypeClientChatRequest = {
@@ -474,6 +522,7 @@ export type RuntypeClientChatRequest = {
474
522
  text: string;
475
523
  type: "reasoning";
476
524
  }>);
525
+ displayContent?: string;
477
526
  id?: string;
478
527
  role: "user" | "assistant" | "system";
479
528
  }>;