@marketrix.ai/widget 3.8.136 → 3.8.137

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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { ChatMessage, InstructionType } from '../types';
3
3
  import type { UIStateActions } from './UIStateContext';
4
4
  /**
5
- * ConversationContext — the single store for the widget's conversation.
5
+ * ChatContext — the single store for the widget's conversation.
6
6
  *
7
7
  * Holds `{ messages, task }` as ONE `SseState`, so the SSE effect commits each
8
8
  * transition through a single atomic `setState(prev => transition(prev))`. This
@@ -25,7 +25,7 @@ export interface ChatActions {
25
25
  removeMessage: (messageId: string) => void;
26
26
  setMessages: (messages: ChatMessage[]) => void;
27
27
  clearMessages: () => void;
28
- sendMessage: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
28
+ messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
29
29
  }
30
30
  export interface SimulationActions {
31
31
  setTaskState: (payload: {
@@ -34,16 +34,16 @@ export interface SimulationActions {
34
34
  }) => void;
35
35
  stopTask: () => Promise<void>;
36
36
  }
37
- interface ConversationContextType {
37
+ interface ChatContextType {
38
38
  chatState: ChatState;
39
39
  chatActions: ChatActions;
40
40
  taskState: SimulationState;
41
41
  taskActions: SimulationActions;
42
42
  }
43
- interface ConversationProviderProps {
43
+ interface ChatProviderProps {
44
44
  children: React.ReactNode;
45
45
  previewMode?: boolean;
46
- /** Current mode from UIState — fallback for sendMessage and progress-line logic. */
46
+ /** Current mode from UIState — fallback for messageDispatch and progress-line logic. */
47
47
  currentMode: InstructionType;
48
48
  /** Injected UI actions so the conversation store drives loading/availability/error without nesting contexts. */
49
49
  uiActions: Pick<UIStateActions, 'setLoading' | 'setAgentAvailable' | 'setError'>;
@@ -51,6 +51,6 @@ interface ConversationProviderProps {
51
51
  initialMessages?: ChatMessage[];
52
52
  initialTask?: SimulationState;
53
53
  }
54
- export declare const ConversationProvider: React.FC<ConversationProviderProps>;
55
- export declare const useConversationContext: () => ConversationContextType;
54
+ export declare const ChatProvider: React.FC<ChatProviderProps>;
55
+ export declare const useChatContext: () => ChatContextType;
56
56
  export {};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * WidgetProviders — composition root that wires UIStateProvider and
3
- * ConversationProvider together.
3
+ * ChatProvider together.
4
4
  *
5
- * Conversation state ({ messages, task }) lives in ONE store (ConversationProvider);
5
+ * Conversation state ({ messages, task }) lives in ONE store (ChatProvider);
6
6
  * UI state (open/minimized/mode/loading/error) lives in UIStateProvider. Both
7
7
  * one-time initialization (SSE connection, ChatService hydration) and persistence
8
8
  * live in inner bridge components that can read every context. React context is
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Pure SSE reducer — the single place where a `WidgetEvent` turns into the next
3
3
  * widget state. No transport, no tool execution, no localStorage: just
4
- * `(state, event) => { state, effects }`. The ConversationContext effect wires
4
+ * `(state, event) => { state, effects }`. The ChatContext effect wires
5
5
  * this up, runs the returned effects (tool exec, wsClient.send, setLoading), and
6
6
  * re-enters via the tool-progress helpers once an async tool finishes.
7
7
  *
@@ -21,7 +21,7 @@ export interface SseState {
21
21
  /** Side effects the wiring layer must run after applying a reduced state. */
22
22
  export type SseEffect = {
23
23
  type: 'executeTool';
24
- callId: string;
24
+ toolCallId: string;
25
25
  tool: string;
26
26
  args: Record<string, unknown>;
27
27
  mode: InstructionType;
@@ -36,7 +36,7 @@ export interface ReduceResult {
36
36
  }
37
37
  type ProgressStatus = 'in_progress' | 'completed' | 'failed';
38
38
  /** Public: progress transition used by the wiring layer for tool lifecycle. */
39
- export declare function reduceToolProgress(state: SseState, toolName: string, explanation: string, status: ProgressStatus, currentMode: InstructionType, error?: string): SseState;
39
+ export declare function reduceToolProgress(state: SseState, browserToolName: string, explanation: string, status: ProgressStatus, currentMode: InstructionType, error?: string): SseState;
40
40
  /** Public: terminal `done` tool — strip the in-flight `done` progress line and end the task. */
41
41
  export declare function reduceToolDone(state: SseState, currentMode: InstructionType): SseState;
42
42
  /** Public: user-initiated stop — flag the active message `stopped` and end the task. */
@@ -22,10 +22,10 @@ interface UseWidgetActions {
22
22
  setMessages: (messages: ChatMessage[]) => void;
23
23
  stopTask: () => Promise<void>;
24
24
  clearChatHistory: () => void;
25
- sendMessage: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
25
+ messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
26
26
  }
27
27
  /**
28
- * Composes UIStateContext and ConversationContext into the unified
28
+ * Composes UIStateContext and ChatContext into the unified
29
29
  * `{ state, actions, config, … }` shape that the widget UI consumes. New code
30
30
  * can either keep using this hook or read the focused contexts directly.
31
31
  */
@@ -12,8 +12,8 @@ export declare const initWidget: (config: MarketrixConfig, container?: HTMLEleme
12
12
  export declare const unmountWidget: () => void;
13
13
  /**
14
14
  * Stop RRWeb session recording without unmounting the widget.
15
- * Keeps the SessionRecorder instance so recording can be restarted with startRecording().
16
- * SessionRecorder.stop() aborts in-flight start() via stopRequested.
15
+ * Keeps the RrwebSessionRecorder instance so recording can be restarted with startRecording().
16
+ * RrwebSessionRecorder.stop() aborts in-flight start() via stopRequested.
17
17
  */
18
18
  export declare const stopRecording: () => void;
19
19
  /**
@@ -45,10 +45,10 @@ export declare const widgetContract: {
45
45
  widget_question: "widget_question";
46
46
  qa_run_started: "qa_run_started";
47
47
  start_simulation: "start_simulation";
48
- create_automation: "create_automation";
49
- update_automation: "update_automation";
50
- delete_automation: "delete_automation";
51
- toggle_automation: "toggle_automation";
48
+ create_workflow: "create_workflow";
49
+ update_workflow: "update_workflow";
50
+ delete_workflow: "delete_workflow";
51
+ toggle_workflow: "toggle_workflow";
52
52
  slack_command: "slack_command";
53
53
  }>;
54
54
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -79,10 +79,10 @@ export declare const widgetContract: {
79
79
  widget_question: "widget_question";
80
80
  qa_run_started: "qa_run_started";
81
81
  start_simulation: "start_simulation";
82
- create_automation: "create_automation";
83
- update_automation: "update_automation";
84
- delete_automation: "delete_automation";
85
- toggle_automation: "toggle_automation";
82
+ create_workflow: "create_workflow";
83
+ update_workflow: "update_workflow";
84
+ delete_workflow: "delete_workflow";
85
+ toggle_workflow: "toggle_workflow";
86
86
  slack_command: "slack_command";
87
87
  }>;
88
88
  metadata: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -187,7 +187,7 @@ export declare const widgetContract: {
187
187
  }, import("zod/v4/core").$strip>>;
188
188
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
189
189
  chatCreate: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
190
- widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
190
+ widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
191
191
  type: import("zod").ZodEnum<{
192
192
  widget: "widget";
193
193
  }>;
@@ -336,7 +336,7 @@ export declare const widgetContract: {
336
336
  task_id: import("zod").ZodOptional<import("zod").ZodString>;
337
337
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
338
338
  type: import("zod").ZodLiteral<"tool/response">;
339
- call_id: import("zod").ZodString;
339
+ tool_call_id: import("zod").ZodString;
340
340
  success: import("zod").ZodBoolean;
341
341
  data: import("zod").ZodOptional<import("zod").ZodString>;
342
342
  error: import("zod").ZodOptional<import("zod").ZodString>;
@@ -345,7 +345,7 @@ export declare const widgetContract: {
345
345
  type: import("zod").ZodLiteral<"ping">;
346
346
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
347
347
  type: import("zod").ZodLiteral<"rrweb/metadata">;
348
- session_id: import("zod").ZodString;
348
+ rrweb_session_id: import("zod").ZodString;
349
349
  chat_id: import("zod").ZodString;
350
350
  application_id: import("zod").ZodNumber;
351
351
  url: import("zod").ZodOptional<import("zod").ZodString>;
@@ -357,7 +357,7 @@ export declare const widgetContract: {
357
357
  }, import("zod/v4/core").$strip>>;
358
358
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
359
359
  type: import("zod").ZodLiteral<"rrweb/events">;
360
- session_id: import("zod").ZodString;
360
+ rrweb_session_id: import("zod").ZodString;
361
361
  events: import("zod").ZodArray<import("zod").ZodUnknown>;
362
362
  }, import("zod/v4/core").$strip>], "type">;
363
363
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -393,8 +393,8 @@ export declare const widgetContract: {
393
393
  timestamp?: number | undefined;
394
394
  } | {
395
395
  type: "tool/call";
396
- call_id: string;
397
- tool: string;
396
+ tool_call_id: string;
397
+ browser_tool: string;
398
398
  args: Record<string, unknown>;
399
399
  mode?: "show" | "do" | undefined;
400
400
  explanation?: string | undefined;
@@ -423,8 +423,8 @@ export declare const widgetContract: {
423
423
  timestamp?: number | undefined;
424
424
  } | {
425
425
  type: "tool/call";
426
- call_id: string;
427
- tool: string;
426
+ tool_call_id: string;
427
+ browser_tool: string;
428
428
  args: Record<string, unknown>;
429
429
  mode?: "show" | "do" | undefined;
430
430
  explanation?: string | undefined;
@@ -45,10 +45,10 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
45
45
  widget_question: "widget_question";
46
46
  qa_run_started: "qa_run_started";
47
47
  start_simulation: "start_simulation";
48
- create_automation: "create_automation";
49
- update_automation: "update_automation";
50
- delete_automation: "delete_automation";
51
- toggle_automation: "toggle_automation";
48
+ create_workflow: "create_workflow";
49
+ update_workflow: "update_workflow";
50
+ delete_workflow: "delete_workflow";
51
+ toggle_workflow: "toggle_workflow";
52
52
  slack_command: "slack_command";
53
53
  }>;
54
54
  }, z.core.$strip>, z.ZodObject<{
@@ -79,10 +79,10 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
79
79
  widget_question: "widget_question";
80
80
  qa_run_started: "qa_run_started";
81
81
  start_simulation: "start_simulation";
82
- create_automation: "create_automation";
83
- update_automation: "update_automation";
84
- delete_automation: "delete_automation";
85
- toggle_automation: "toggle_automation";
82
+ create_workflow: "create_workflow";
83
+ update_workflow: "update_workflow";
84
+ delete_workflow: "delete_workflow";
85
+ toggle_workflow: "toggle_workflow";
86
86
  slack_command: "slack_command";
87
87
  }>;
88
88
  metadata: z.ZodOptional<z.ZodObject<{
@@ -128,10 +128,10 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
128
128
  widget_question: "widget_question";
129
129
  qa_run_started: "qa_run_started";
130
130
  start_simulation: "start_simulation";
131
- create_automation: "create_automation";
132
- update_automation: "update_automation";
133
- delete_automation: "delete_automation";
134
- toggle_automation: "toggle_automation";
131
+ create_workflow: "create_workflow";
132
+ update_workflow: "update_workflow";
133
+ delete_workflow: "delete_workflow";
134
+ toggle_workflow: "toggle_workflow";
135
135
  slack_command: "slack_command";
136
136
  }>>;
137
137
  application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -166,10 +166,10 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
166
166
  widget_question: "widget_question";
167
167
  qa_run_started: "qa_run_started";
168
168
  start_simulation: "start_simulation";
169
- create_automation: "create_automation";
170
- update_automation: "update_automation";
171
- delete_automation: "delete_automation";
172
- toggle_automation: "toggle_automation";
169
+ create_workflow: "create_workflow";
170
+ update_workflow: "update_workflow";
171
+ delete_workflow: "delete_workflow";
172
+ toggle_workflow: "toggle_workflow";
173
173
  slack_command: "slack_command";
174
174
  }>;
175
175
  metadata: z.ZodOptional<z.ZodObject<{
@@ -242,10 +242,10 @@ export declare const activityLogRoutes: {
242
242
  widget_question: "widget_question";
243
243
  qa_run_started: "qa_run_started";
244
244
  start_simulation: "start_simulation";
245
- create_automation: "create_automation";
246
- update_automation: "update_automation";
247
- delete_automation: "delete_automation";
248
- toggle_automation: "toggle_automation";
245
+ create_workflow: "create_workflow";
246
+ update_workflow: "update_workflow";
247
+ delete_workflow: "delete_workflow";
248
+ toggle_workflow: "toggle_workflow";
249
249
  slack_command: "slack_command";
250
250
  }>;
251
251
  }, z.core.$strip>, z.ZodObject<{
@@ -276,10 +276,10 @@ export declare const activityLogRoutes: {
276
276
  widget_question: "widget_question";
277
277
  qa_run_started: "qa_run_started";
278
278
  start_simulation: "start_simulation";
279
- create_automation: "create_automation";
280
- update_automation: "update_automation";
281
- delete_automation: "delete_automation";
282
- toggle_automation: "toggle_automation";
279
+ create_workflow: "create_workflow";
280
+ update_workflow: "update_workflow";
281
+ delete_workflow: "delete_workflow";
282
+ toggle_workflow: "toggle_workflow";
283
283
  slack_command: "slack_command";
284
284
  }>;
285
285
  metadata: z.ZodOptional<z.ZodObject<{
@@ -325,10 +325,10 @@ export declare const activityLogRoutes: {
325
325
  widget_question: "widget_question";
326
326
  qa_run_started: "qa_run_started";
327
327
  start_simulation: "start_simulation";
328
- create_automation: "create_automation";
329
- update_automation: "update_automation";
330
- delete_automation: "delete_automation";
331
- toggle_automation: "toggle_automation";
328
+ create_workflow: "create_workflow";
329
+ update_workflow: "update_workflow";
330
+ delete_workflow: "delete_workflow";
331
+ toggle_workflow: "toggle_workflow";
332
332
  slack_command: "slack_command";
333
333
  }>>;
334
334
  application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -363,10 +363,10 @@ export declare const activityLogRoutes: {
363
363
  widget_question: "widget_question";
364
364
  qa_run_started: "qa_run_started";
365
365
  start_simulation: "start_simulation";
366
- create_automation: "create_automation";
367
- update_automation: "update_automation";
368
- delete_automation: "delete_automation";
369
- toggle_automation: "toggle_automation";
366
+ create_workflow: "create_workflow";
367
+ update_workflow: "update_workflow";
368
+ delete_workflow: "delete_workflow";
369
+ toggle_workflow: "toggle_workflow";
370
370
  slack_command: "slack_command";
371
371
  }>;
372
372
  metadata: z.ZodOptional<z.ZodObject<{
@@ -241,7 +241,7 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
241
241
  snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
242
  }, z.core.$strip>>;
243
243
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
244
- export declare const applicationGraph: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
244
+ export declare const applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
245
245
  application_id: z.ZodCoercedNumber<unknown>;
246
246
  }, z.core.$strip>, z.ZodObject<{
247
247
  nodes: z.ZodArray<z.ZodObject<{
@@ -510,7 +510,7 @@ export declare const applicationRoutes: {
510
510
  snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
511
  }, z.core.$strip>>;
512
512
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
513
- applicationGraph: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
513
+ applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
514
514
  application_id: z.ZodCoercedNumber<unknown>;
515
515
  }, z.core.$strip>, z.ZodObject<{
516
516
  nodes: z.ZodArray<z.ZodObject<{
@@ -194,7 +194,7 @@ export declare const StepReactionSchema: z.ZodObject<{
194
194
  negative: "negative";
195
195
  }>>;
196
196
  }, z.core.$strip>;
197
- export declare const PersonaSimReactionEntitySchema: z.ZodObject<{
197
+ export declare const SimPersonaReactionEntitySchema: z.ZodObject<{
198
198
  id: z.ZodNumber;
199
199
  run_id: z.ZodNullable<z.ZodNumber>;
200
200
  persona_id: z.ZodNullable<z.ZodNumber>;
@@ -504,7 +504,7 @@ export declare const QARunStatusSchema: z.ZodEnum<{
504
504
  completed: "completed";
505
505
  failed: "failed";
506
506
  stopped: "stopped";
507
- synthesizing: "synthesizing";
507
+ finalizing: "finalizing";
508
508
  }>;
509
509
  export type QARunStatus = z.infer<typeof QARunStatusSchema>;
510
510
  /** QA verdict per (run, persona, journey, viewport) — DATA-derived by the api from qa_verdict; NOT a wire status. */
@@ -520,7 +520,7 @@ export declare const HumanRulingSchema: z.ZodEnum<{
520
520
  passed: "passed";
521
521
  }>;
522
522
  export type HumanRuling = z.infer<typeof HumanRulingSchema>;
523
- export declare const ActionLogTypeSchema: z.ZodEnum<{
523
+ export declare const ActivityLogTypeSchema: z.ZodEnum<{
524
524
  user_login: "user_login";
525
525
  url_visit: "url_visit";
526
526
  update_workspace: "update_workspace";
@@ -542,14 +542,14 @@ export declare const ActionLogTypeSchema: z.ZodEnum<{
542
542
  widget_question: "widget_question";
543
543
  qa_run_started: "qa_run_started";
544
544
  start_simulation: "start_simulation";
545
- create_automation: "create_automation";
546
- update_automation: "update_automation";
547
- delete_automation: "delete_automation";
548
- toggle_automation: "toggle_automation";
545
+ create_workflow: "create_workflow";
546
+ update_workflow: "update_workflow";
547
+ delete_workflow: "delete_workflow";
548
+ toggle_workflow: "toggle_workflow";
549
549
  slack_command: "slack_command";
550
550
  }>;
551
- export type ActionLogType = z.infer<typeof ActionLogTypeSchema>;
552
- export declare const ActionLogMetadataSchema: z.ZodObject<{
551
+ export type ActivityLogType = z.infer<typeof ActivityLogTypeSchema>;
552
+ export declare const ActivityLogMetadataSchema: z.ZodObject<{
553
553
  details: z.ZodOptional<z.ZodString>;
554
554
  id: z.ZodOptional<z.ZodNumber>;
555
555
  type: z.ZodOptional<z.ZodString>;
@@ -567,8 +567,8 @@ export declare const ActionLogMetadataSchema: z.ZodObject<{
567
567
  widget_type: z.ZodOptional<z.ZodString>;
568
568
  created_by: z.ZodOptional<z.ZodNumber>;
569
569
  }, z.core.$loose>;
570
- export type ActionLogMetadataData = z.infer<typeof ActionLogMetadataSchema>;
571
- export declare const ActionLogEntitySchema: z.ZodObject<{
570
+ export type ActivityLogMetadataData = z.infer<typeof ActivityLogMetadataSchema>;
571
+ export declare const ActivityLogEntitySchema: z.ZodObject<{
572
572
  id: z.ZodOptional<z.ZodNumber>;
573
573
  created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
574
574
  updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -596,10 +596,10 @@ export declare const ActionLogEntitySchema: z.ZodObject<{
596
596
  widget_question: "widget_question";
597
597
  qa_run_started: "qa_run_started";
598
598
  start_simulation: "start_simulation";
599
- create_automation: "create_automation";
600
- update_automation: "update_automation";
601
- delete_automation: "delete_automation";
602
- toggle_automation: "toggle_automation";
599
+ create_workflow: "create_workflow";
600
+ update_workflow: "update_workflow";
601
+ delete_workflow: "delete_workflow";
602
+ toggle_workflow: "toggle_workflow";
603
603
  slack_command: "slack_command";
604
604
  }>;
605
605
  metadata: z.ZodOptional<z.ZodObject<{
@@ -621,8 +621,8 @@ export declare const ActionLogEntitySchema: z.ZodObject<{
621
621
  created_by: z.ZodOptional<z.ZodNumber>;
622
622
  }, z.core.$loose>>;
623
623
  }, z.core.$strip>;
624
- export type ActionLogData = z.infer<typeof ActionLogEntitySchema>;
625
- export declare const ActionLogCreateSchema: z.ZodObject<{
624
+ export type ActivityLogData = z.infer<typeof ActivityLogEntitySchema>;
625
+ export declare const ActivityLogCreateSchema: z.ZodObject<{
626
626
  id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
627
627
  created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
628
628
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
@@ -668,10 +668,10 @@ export declare const ActionLogCreateSchema: z.ZodObject<{
668
668
  widget_question: "widget_question";
669
669
  qa_run_started: "qa_run_started";
670
670
  start_simulation: "start_simulation";
671
- create_automation: "create_automation";
672
- update_automation: "update_automation";
673
- delete_automation: "delete_automation";
674
- toggle_automation: "toggle_automation";
671
+ create_workflow: "create_workflow";
672
+ update_workflow: "update_workflow";
673
+ delete_workflow: "delete_workflow";
674
+ toggle_workflow: "toggle_workflow";
675
675
  slack_command: "slack_command";
676
676
  }>;
677
677
  }, z.core.$strip>;
@@ -682,18 +682,3 @@ export declare const UserQuotaSchema: z.ZodObject<{
682
682
  remaining: z.ZodNumber;
683
683
  }, z.core.$strip>;
684
684
  export type UserQuotaData = z.infer<typeof UserQuotaSchema>;
685
- export declare const SuggestedSimulationSchema: z.ZodObject<{
686
- description: z.ZodString;
687
- selected: z.ZodBoolean;
688
- simulation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
689
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
690
- queued: "queued";
691
- running: "running";
692
- creating_knowledge: "creating_knowledge";
693
- has_question: "has_question";
694
- completed: "completed";
695
- failed: "failed";
696
- stopped: "stopped";
697
- }>>>;
698
- }, z.core.$strip>;
699
- export type SuggestedSimulation = z.infer<typeof SuggestedSimulationSchema>;
@@ -376,8 +376,8 @@ export declare const WidgetEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
376
376
  timestamp: z.ZodOptional<z.ZodNumber>;
377
377
  }, z.core.$strip>, z.ZodObject<{
378
378
  type: z.ZodLiteral<"tool/call">;
379
- call_id: z.ZodString;
380
- tool: z.ZodString;
379
+ tool_call_id: z.ZodString;
380
+ browser_tool: z.ZodString;
381
381
  args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
382
382
  mode: z.ZodOptional<z.ZodEnum<{
383
383
  show: "show";
@@ -405,7 +405,7 @@ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
405
405
  task_id: z.ZodOptional<z.ZodString>;
406
406
  }, z.core.$strip>, z.ZodObject<{
407
407
  type: z.ZodLiteral<"tool/response">;
408
- call_id: z.ZodString;
408
+ tool_call_id: z.ZodString;
409
409
  success: z.ZodBoolean;
410
410
  data: z.ZodOptional<z.ZodString>;
411
411
  error: z.ZodOptional<z.ZodString>;
@@ -414,7 +414,7 @@ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
414
414
  type: z.ZodLiteral<"ping">;
415
415
  }, z.core.$strip>, z.ZodObject<{
416
416
  type: z.ZodLiteral<"rrweb/metadata">;
417
- session_id: z.ZodString;
417
+ rrweb_session_id: z.ZodString;
418
418
  chat_id: z.ZodString;
419
419
  application_id: z.ZodNumber;
420
420
  url: z.ZodOptional<z.ZodString>;
@@ -426,7 +426,7 @@ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
426
426
  }, z.core.$strip>>;
427
427
  }, z.core.$strip>, z.ZodObject<{
428
428
  type: z.ZodLiteral<"rrweb/events">;
429
- session_id: z.ZodString;
429
+ rrweb_session_id: z.ZodString;
430
430
  events: z.ZodArray<z.ZodUnknown>;
431
431
  }, z.core.$strip>], "type">;
432
432
  export type WidgetCommand = z.infer<typeof WidgetCommandSchema>;
@@ -638,7 +638,7 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
638
638
  limit: z.ZodNumber;
639
639
  offset: z.ZodNumber;
640
640
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
641
- export declare const widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
641
+ export declare const widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
642
642
  type: z.ZodEnum<{
643
643
  widget: "widget";
644
644
  }>;
@@ -854,8 +854,8 @@ export declare const widgetStream: import("@orpc/contract").ContractProcedureBui
854
854
  timestamp?: number | undefined;
855
855
  } | {
856
856
  type: "tool/call";
857
- call_id: string;
858
- tool: string;
857
+ tool_call_id: string;
858
+ browser_tool: string;
859
859
  args: Record<string, unknown>;
860
860
  mode?: "show" | "do" | undefined;
861
861
  explanation?: string | undefined;
@@ -884,8 +884,8 @@ export declare const widgetStream: import("@orpc/contract").ContractProcedureBui
884
884
  timestamp?: number | undefined;
885
885
  } | {
886
886
  type: "tool/call";
887
- call_id: string;
888
- tool: string;
887
+ tool_call_id: string;
888
+ browser_tool: string;
889
889
  args: Record<string, unknown>;
890
890
  mode?: "show" | "do" | undefined;
891
891
  explanation?: string | undefined;
@@ -910,7 +910,7 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
910
910
  task_id: z.ZodOptional<z.ZodString>;
911
911
  }, z.core.$strip>, z.ZodObject<{
912
912
  type: z.ZodLiteral<"tool/response">;
913
- call_id: z.ZodString;
913
+ tool_call_id: z.ZodString;
914
914
  success: z.ZodBoolean;
915
915
  data: z.ZodOptional<z.ZodString>;
916
916
  error: z.ZodOptional<z.ZodString>;
@@ -919,7 +919,7 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
919
919
  type: z.ZodLiteral<"ping">;
920
920
  }, z.core.$strip>, z.ZodObject<{
921
921
  type: z.ZodLiteral<"rrweb/metadata">;
922
- session_id: z.ZodString;
922
+ rrweb_session_id: z.ZodString;
923
923
  chat_id: z.ZodString;
924
924
  application_id: z.ZodNumber;
925
925
  url: z.ZodOptional<z.ZodString>;
@@ -931,7 +931,7 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
931
931
  }, z.core.$strip>>;
932
932
  }, z.core.$strip>, z.ZodObject<{
933
933
  type: z.ZodLiteral<"rrweb/events">;
934
- session_id: z.ZodString;
934
+ rrweb_session_id: z.ZodString;
935
935
  events: z.ZodArray<z.ZodUnknown>;
936
936
  }, z.core.$strip>], "type">;
937
937
  }, z.core.$strip>, z.ZodObject<{
@@ -1146,7 +1146,7 @@ export declare const widgetRoutes: {
1146
1146
  limit: z.ZodNumber;
1147
1147
  offset: z.ZodNumber;
1148
1148
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1149
- widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1149
+ widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1150
1150
  type: z.ZodEnum<{
1151
1151
  widget: "widget";
1152
1152
  }>;
@@ -1362,8 +1362,8 @@ export declare const widgetRoutes: {
1362
1362
  timestamp?: number | undefined;
1363
1363
  } | {
1364
1364
  type: "tool/call";
1365
- call_id: string;
1366
- tool: string;
1365
+ tool_call_id: string;
1366
+ browser_tool: string;
1367
1367
  args: Record<string, unknown>;
1368
1368
  mode?: "show" | "do" | undefined;
1369
1369
  explanation?: string | undefined;
@@ -1392,8 +1392,8 @@ export declare const widgetRoutes: {
1392
1392
  timestamp?: number | undefined;
1393
1393
  } | {
1394
1394
  type: "tool/call";
1395
- call_id: string;
1396
- tool: string;
1395
+ tool_call_id: string;
1396
+ browser_tool: string;
1397
1397
  args: Record<string, unknown>;
1398
1398
  mode?: "show" | "do" | undefined;
1399
1399
  explanation?: string | undefined;
@@ -1418,7 +1418,7 @@ export declare const widgetRoutes: {
1418
1418
  task_id: z.ZodOptional<z.ZodString>;
1419
1419
  }, z.core.$strip>, z.ZodObject<{
1420
1420
  type: z.ZodLiteral<"tool/response">;
1421
- call_id: z.ZodString;
1421
+ tool_call_id: z.ZodString;
1422
1422
  success: z.ZodBoolean;
1423
1423
  data: z.ZodOptional<z.ZodString>;
1424
1424
  error: z.ZodOptional<z.ZodString>;
@@ -1427,7 +1427,7 @@ export declare const widgetRoutes: {
1427
1427
  type: z.ZodLiteral<"ping">;
1428
1428
  }, z.core.$strip>, z.ZodObject<{
1429
1429
  type: z.ZodLiteral<"rrweb/metadata">;
1430
- session_id: z.ZodString;
1430
+ rrweb_session_id: z.ZodString;
1431
1431
  chat_id: z.ZodString;
1432
1432
  application_id: z.ZodNumber;
1433
1433
  url: z.ZodOptional<z.ZodString>;
@@ -1439,7 +1439,7 @@ export declare const widgetRoutes: {
1439
1439
  }, z.core.$strip>>;
1440
1440
  }, z.core.$strip>, z.ZodObject<{
1441
1441
  type: z.ZodLiteral<"rrweb/events">;
1442
- session_id: z.ZodString;
1442
+ rrweb_session_id: z.ZodString;
1443
1443
  events: z.ZodArray<z.ZodUnknown>;
1444
1444
  }, z.core.$strip>], "type">;
1445
1445
  }, z.core.$strip>, z.ZodObject<{