@marketrix.ai/widget 3.8.136 → 3.8.138

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.
@@ -82,7 +82,6 @@ export declare const UserEntitySchema: z.ZodObject<{
82
82
  last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
83
  password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
84
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
- prompt_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
86
85
  last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
87
86
  auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
88
87
  password: "password";
@@ -105,7 +104,6 @@ export declare const UserCreateSchema: z.ZodObject<{
105
104
  first_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
106
105
  last_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
107
106
  image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
108
- prompt_limit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
109
107
  last_login_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
110
108
  auth_method: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
111
109
  password: "password";
@@ -188,13 +186,13 @@ export declare const StepReactionSchema: z.ZodObject<{
188
186
  step_index: z.ZodNumber;
189
187
  screenshot_ref: z.ZodNullable<z.ZodString>;
190
188
  reaction: z.ZodString;
191
- sentiment: z.ZodNullable<z.ZodEnum<{
189
+ sentiment: z.ZodEnum<{
192
190
  positive: "positive";
193
191
  neutral: "neutral";
194
192
  negative: "negative";
195
- }>>;
193
+ }>;
196
194
  }, z.core.$strip>;
197
- export declare const PersonaSimReactionEntitySchema: z.ZodObject<{
195
+ export declare const SimPersonaReactionEntitySchema: z.ZodObject<{
198
196
  id: z.ZodNumber;
199
197
  run_id: z.ZodNullable<z.ZodNumber>;
200
198
  persona_id: z.ZodNullable<z.ZodNumber>;
@@ -216,11 +214,11 @@ export declare const PersonaSimReactionEntitySchema: z.ZodObject<{
216
214
  step_index: z.ZodNumber;
217
215
  screenshot_ref: z.ZodNullable<z.ZodString>;
218
216
  reaction: z.ZodString;
219
- sentiment: z.ZodNullable<z.ZodEnum<{
217
+ sentiment: z.ZodEnum<{
220
218
  positive: "positive";
221
219
  neutral: "neutral";
222
220
  negative: "negative";
223
- }>>;
221
+ }>;
224
222
  }, z.core.$strip>>>;
225
223
  question_answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
226
224
  study_question_id: z.ZodNumber;
@@ -243,17 +241,17 @@ export declare const SimulationEntitySchema: z.ZodObject<{
243
241
  failed: "failed";
244
242
  stopped: "stopped";
245
243
  }>;
246
- status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ status_message: z.ZodString;
247
245
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
- instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ instructions: z.ZodString;
249
247
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
248
+ type: z.ZodEnum<{
251
249
  direct: "direct";
252
250
  uxr: "uxr";
253
251
  survey: "survey";
254
- ab: "ab";
252
+ abtest: "abtest";
255
253
  qa: "qa";
256
- }>>>;
254
+ }>;
257
255
  pinned: z.ZodOptional<z.ZodBoolean>;
258
256
  source: z.ZodOptional<z.ZodEnum<{
259
257
  direct: "direct";
@@ -262,8 +260,8 @@ export declare const SimulationEntitySchema: z.ZodObject<{
262
260
  graph_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
261
  source_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
264
262
  step_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
265
- started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
- completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
264
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
267
265
  graph_status: z.ZodOptional<z.ZodEnum<{
268
266
  completed: "completed";
269
267
  failed: "failed";
@@ -301,11 +299,11 @@ export declare const SimulationEntitySchema: z.ZodObject<{
301
299
  step_index: z.ZodNumber;
302
300
  screenshot_ref: z.ZodNullable<z.ZodString>;
303
301
  reaction: z.ZodString;
304
- sentiment: z.ZodNullable<z.ZodEnum<{
302
+ sentiment: z.ZodEnum<{
305
303
  positive: "positive";
306
304
  neutral: "neutral";
307
305
  negative: "negative";
308
- }>>;
306
+ }>;
309
307
  }, z.core.$strip>>>;
310
308
  question_answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
311
309
  study_question_id: z.ZodNumber;
@@ -331,10 +329,10 @@ export declare const ApplicationEntitySchema: z.ZodObject<{
331
329
  app: "app";
332
330
  website: "website";
333
331
  }>;
334
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
+ url: z.ZodString;
335
333
  username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
336
334
  password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
- allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
335
+ allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
338
336
  }, z.core.$strip>;
339
337
  export type ApplicationData = z.infer<typeof ApplicationEntitySchema>;
340
338
  /**
@@ -351,10 +349,10 @@ export declare const ApplicationReadSchema: z.ZodObject<{
351
349
  website: "website";
352
350
  }>;
353
351
  name: z.ZodString;
354
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ url: z.ZodString;
355
353
  workspace_id: z.ZodNumber;
356
354
  username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
- allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
355
+ allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
358
356
  }, z.core.$strip>;
359
357
  export type ApplicationReadData = z.infer<typeof ApplicationReadSchema>;
360
358
  export declare const WidgetChipSchema: z.ZodObject<{
@@ -504,7 +502,7 @@ export declare const QARunStatusSchema: z.ZodEnum<{
504
502
  completed: "completed";
505
503
  failed: "failed";
506
504
  stopped: "stopped";
507
- synthesizing: "synthesizing";
505
+ finalizing: "finalizing";
508
506
  }>;
509
507
  export type QARunStatus = z.infer<typeof QARunStatusSchema>;
510
508
  /** QA verdict per (run, persona, journey, viewport) — DATA-derived by the api from qa_verdict; NOT a wire status. */
@@ -515,12 +513,12 @@ export declare const QARunVerdictStatusSchema: z.ZodEnum<{
515
513
  }>;
516
514
  export type QARunVerdictStatus = z.infer<typeof QARunVerdictStatusSchema>;
517
515
  /** A human resolution of an indecisive verdict — resolves to a decision, so no `indecisive`. */
518
- export declare const HumanRulingSchema: z.ZodEnum<{
516
+ export declare const RulingSchema: z.ZodEnum<{
519
517
  failed: "failed";
520
518
  passed: "passed";
521
519
  }>;
522
- export type HumanRuling = z.infer<typeof HumanRulingSchema>;
523
- export declare const ActionLogTypeSchema: z.ZodEnum<{
520
+ export type Ruling = z.infer<typeof RulingSchema>;
521
+ export declare const ActivityLogTypeSchema: z.ZodEnum<{
524
522
  user_login: "user_login";
525
523
  url_visit: "url_visit";
526
524
  update_workspace: "update_workspace";
@@ -542,14 +540,14 @@ export declare const ActionLogTypeSchema: z.ZodEnum<{
542
540
  widget_question: "widget_question";
543
541
  qa_run_started: "qa_run_started";
544
542
  start_simulation: "start_simulation";
545
- create_automation: "create_automation";
546
- update_automation: "update_automation";
547
- delete_automation: "delete_automation";
548
- toggle_automation: "toggle_automation";
543
+ create_workflow: "create_workflow";
544
+ update_workflow: "update_workflow";
545
+ delete_workflow: "delete_workflow";
546
+ toggle_workflow: "toggle_workflow";
549
547
  slack_command: "slack_command";
550
548
  }>;
551
- export type ActionLogType = z.infer<typeof ActionLogTypeSchema>;
552
- export declare const ActionLogMetadataSchema: z.ZodObject<{
549
+ export type ActivityLogType = z.infer<typeof ActivityLogTypeSchema>;
550
+ export declare const ActivityLogMetadataSchema: z.ZodObject<{
553
551
  details: z.ZodOptional<z.ZodString>;
554
552
  id: z.ZodOptional<z.ZodNumber>;
555
553
  type: z.ZodOptional<z.ZodString>;
@@ -567,8 +565,8 @@ export declare const ActionLogMetadataSchema: z.ZodObject<{
567
565
  widget_type: z.ZodOptional<z.ZodString>;
568
566
  created_by: z.ZodOptional<z.ZodNumber>;
569
567
  }, z.core.$loose>;
570
- export type ActionLogMetadataData = z.infer<typeof ActionLogMetadataSchema>;
571
- export declare const ActionLogEntitySchema: z.ZodObject<{
568
+ export type ActivityLogMetadataData = z.infer<typeof ActivityLogMetadataSchema>;
569
+ export declare const ActivityLogEntitySchema: z.ZodObject<{
572
570
  id: z.ZodOptional<z.ZodNumber>;
573
571
  created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
574
572
  updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -596,10 +594,10 @@ export declare const ActionLogEntitySchema: z.ZodObject<{
596
594
  widget_question: "widget_question";
597
595
  qa_run_started: "qa_run_started";
598
596
  start_simulation: "start_simulation";
599
- create_automation: "create_automation";
600
- update_automation: "update_automation";
601
- delete_automation: "delete_automation";
602
- toggle_automation: "toggle_automation";
597
+ create_workflow: "create_workflow";
598
+ update_workflow: "update_workflow";
599
+ delete_workflow: "delete_workflow";
600
+ toggle_workflow: "toggle_workflow";
603
601
  slack_command: "slack_command";
604
602
  }>;
605
603
  metadata: z.ZodOptional<z.ZodObject<{
@@ -621,8 +619,8 @@ export declare const ActionLogEntitySchema: z.ZodObject<{
621
619
  created_by: z.ZodOptional<z.ZodNumber>;
622
620
  }, z.core.$loose>>;
623
621
  }, z.core.$strip>;
624
- export type ActionLogData = z.infer<typeof ActionLogEntitySchema>;
625
- export declare const ActionLogCreateSchema: z.ZodObject<{
622
+ export type ActivityLogData = z.infer<typeof ActivityLogEntitySchema>;
623
+ export declare const ActivityLogCreateSchema: z.ZodObject<{
626
624
  id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
627
625
  created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
628
626
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
@@ -668,32 +666,10 @@ export declare const ActionLogCreateSchema: z.ZodObject<{
668
666
  widget_question: "widget_question";
669
667
  qa_run_started: "qa_run_started";
670
668
  start_simulation: "start_simulation";
671
- create_automation: "create_automation";
672
- update_automation: "update_automation";
673
- delete_automation: "delete_automation";
674
- toggle_automation: "toggle_automation";
669
+ create_workflow: "create_workflow";
670
+ update_workflow: "update_workflow";
671
+ delete_workflow: "delete_workflow";
672
+ toggle_workflow: "toggle_workflow";
675
673
  slack_command: "slack_command";
676
674
  }>;
677
675
  }, z.core.$strip>;
678
- export declare const UserQuotaSchema: z.ZodObject<{
679
- user_id: z.ZodNumber;
680
- limit: z.ZodNumber;
681
- used: z.ZodNumber;
682
- remaining: z.ZodNumber;
683
- }, z.core.$strip>;
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>;
@@ -74,10 +74,10 @@ export declare const WidgetInfoSchema: z.ZodObject<{
74
74
  website: "website";
75
75
  }>>;
76
76
  name: z.ZodOptional<z.ZodString>;
77
- url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
77
+ url: z.ZodOptional<z.ZodString>;
78
78
  workspace_id: z.ZodOptional<z.ZodNumber>;
79
79
  username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
80
- allowed_domains: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
80
+ allowed_domains: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
81
81
  }, z.core.$strip>;
82
82
  workspace: z.ZodObject<{
83
83
  id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -119,7 +119,6 @@ export declare const WidgetInfoSchema: z.ZodObject<{
119
119
  last_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
120
120
  password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
121
121
  image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
122
- prompt_limit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
123
122
  last_login_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
124
123
  auth_method: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
125
124
  password: "password";
@@ -141,10 +140,10 @@ export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
141
140
  website: "website";
142
141
  }>;
143
142
  name: z.ZodString;
144
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ url: z.ZodString;
145
144
  workspace_id: z.ZodNumber;
146
145
  username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
- allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
146
+ allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
148
147
  widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
148
  id: z.ZodOptional<z.ZodNumber>;
150
149
  created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -376,8 +375,8 @@ export declare const WidgetEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
376
375
  timestamp: z.ZodOptional<z.ZodNumber>;
377
376
  }, z.core.$strip>, z.ZodObject<{
378
377
  type: z.ZodLiteral<"tool/call">;
379
- call_id: z.ZodString;
380
- tool: z.ZodString;
378
+ tool_call_id: z.ZodString;
379
+ browser_tool: z.ZodString;
381
380
  args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
382
381
  mode: z.ZodOptional<z.ZodEnum<{
383
382
  show: "show";
@@ -405,7 +404,7 @@ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
405
404
  task_id: z.ZodOptional<z.ZodString>;
406
405
  }, z.core.$strip>, z.ZodObject<{
407
406
  type: z.ZodLiteral<"tool/response">;
408
- call_id: z.ZodString;
407
+ tool_call_id: z.ZodString;
409
408
  success: z.ZodBoolean;
410
409
  data: z.ZodOptional<z.ZodString>;
411
410
  error: z.ZodOptional<z.ZodString>;
@@ -414,7 +413,7 @@ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
414
413
  type: z.ZodLiteral<"ping">;
415
414
  }, z.core.$strip>, z.ZodObject<{
416
415
  type: z.ZodLiteral<"rrweb/metadata">;
417
- session_id: z.ZodString;
416
+ rrweb_session_id: z.ZodString;
418
417
  chat_id: z.ZodString;
419
418
  application_id: z.ZodNumber;
420
419
  url: z.ZodOptional<z.ZodString>;
@@ -426,7 +425,7 @@ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
426
425
  }, z.core.$strip>>;
427
426
  }, z.core.$strip>, z.ZodObject<{
428
427
  type: z.ZodLiteral<"rrweb/events">;
429
- session_id: z.ZodString;
428
+ rrweb_session_id: z.ZodString;
430
429
  events: z.ZodArray<z.ZodUnknown>;
431
430
  }, z.core.$strip>], "type">;
432
431
  export type WidgetCommand = z.infer<typeof WidgetCommandSchema>;
@@ -638,7 +637,7 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
638
637
  limit: z.ZodNumber;
639
638
  offset: z.ZodNumber;
640
639
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
641
- export declare const widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
640
+ export declare const widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
642
641
  type: z.ZodEnum<{
643
642
  widget: "widget";
644
643
  }>;
@@ -854,8 +853,8 @@ export declare const widgetStream: import("@orpc/contract").ContractProcedureBui
854
853
  timestamp?: number | undefined;
855
854
  } | {
856
855
  type: "tool/call";
857
- call_id: string;
858
- tool: string;
856
+ tool_call_id: string;
857
+ browser_tool: string;
859
858
  args: Record<string, unknown>;
860
859
  mode?: "show" | "do" | undefined;
861
860
  explanation?: string | undefined;
@@ -884,8 +883,8 @@ export declare const widgetStream: import("@orpc/contract").ContractProcedureBui
884
883
  timestamp?: number | undefined;
885
884
  } | {
886
885
  type: "tool/call";
887
- call_id: string;
888
- tool: string;
886
+ tool_call_id: string;
887
+ browser_tool: string;
889
888
  args: Record<string, unknown>;
890
889
  mode?: "show" | "do" | undefined;
891
890
  explanation?: string | undefined;
@@ -910,7 +909,7 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
910
909
  task_id: z.ZodOptional<z.ZodString>;
911
910
  }, z.core.$strip>, z.ZodObject<{
912
911
  type: z.ZodLiteral<"tool/response">;
913
- call_id: z.ZodString;
912
+ tool_call_id: z.ZodString;
914
913
  success: z.ZodBoolean;
915
914
  data: z.ZodOptional<z.ZodString>;
916
915
  error: z.ZodOptional<z.ZodString>;
@@ -919,7 +918,7 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
919
918
  type: z.ZodLiteral<"ping">;
920
919
  }, z.core.$strip>, z.ZodObject<{
921
920
  type: z.ZodLiteral<"rrweb/metadata">;
922
- session_id: z.ZodString;
921
+ rrweb_session_id: z.ZodString;
923
922
  chat_id: z.ZodString;
924
923
  application_id: z.ZodNumber;
925
924
  url: z.ZodOptional<z.ZodString>;
@@ -931,7 +930,7 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
931
930
  }, z.core.$strip>>;
932
931
  }, z.core.$strip>, z.ZodObject<{
933
932
  type: z.ZodLiteral<"rrweb/events">;
934
- session_id: z.ZodString;
933
+ rrweb_session_id: z.ZodString;
935
934
  events: z.ZodArray<z.ZodUnknown>;
936
935
  }, z.core.$strip>], "type">;
937
936
  }, z.core.$strip>, z.ZodObject<{
@@ -1146,7 +1145,7 @@ export declare const widgetRoutes: {
1146
1145
  limit: z.ZodNumber;
1147
1146
  offset: z.ZodNumber;
1148
1147
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1149
- widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1148
+ widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1150
1149
  type: z.ZodEnum<{
1151
1150
  widget: "widget";
1152
1151
  }>;
@@ -1362,8 +1361,8 @@ export declare const widgetRoutes: {
1362
1361
  timestamp?: number | undefined;
1363
1362
  } | {
1364
1363
  type: "tool/call";
1365
- call_id: string;
1366
- tool: string;
1364
+ tool_call_id: string;
1365
+ browser_tool: string;
1367
1366
  args: Record<string, unknown>;
1368
1367
  mode?: "show" | "do" | undefined;
1369
1368
  explanation?: string | undefined;
@@ -1392,8 +1391,8 @@ export declare const widgetRoutes: {
1392
1391
  timestamp?: number | undefined;
1393
1392
  } | {
1394
1393
  type: "tool/call";
1395
- call_id: string;
1396
- tool: string;
1394
+ tool_call_id: string;
1395
+ browser_tool: string;
1397
1396
  args: Record<string, unknown>;
1398
1397
  mode?: "show" | "do" | undefined;
1399
1398
  explanation?: string | undefined;
@@ -1418,7 +1417,7 @@ export declare const widgetRoutes: {
1418
1417
  task_id: z.ZodOptional<z.ZodString>;
1419
1418
  }, z.core.$strip>, z.ZodObject<{
1420
1419
  type: z.ZodLiteral<"tool/response">;
1421
- call_id: z.ZodString;
1420
+ tool_call_id: z.ZodString;
1422
1421
  success: z.ZodBoolean;
1423
1422
  data: z.ZodOptional<z.ZodString>;
1424
1423
  error: z.ZodOptional<z.ZodString>;
@@ -1427,7 +1426,7 @@ export declare const widgetRoutes: {
1427
1426
  type: z.ZodLiteral<"ping">;
1428
1427
  }, z.core.$strip>, z.ZodObject<{
1429
1428
  type: z.ZodLiteral<"rrweb/metadata">;
1430
- session_id: z.ZodString;
1429
+ rrweb_session_id: z.ZodString;
1431
1430
  chat_id: z.ZodString;
1432
1431
  application_id: z.ZodNumber;
1433
1432
  url: z.ZodOptional<z.ZodString>;
@@ -1439,7 +1438,7 @@ export declare const widgetRoutes: {
1439
1438
  }, z.core.$strip>>;
1440
1439
  }, z.core.$strip>, z.ZodObject<{
1441
1440
  type: z.ZodLiteral<"rrweb/events">;
1442
- session_id: z.ZodString;
1441
+ rrweb_session_id: z.ZodString;
1443
1442
  events: z.ZodArray<z.ZodUnknown>;
1444
1443
  }, z.core.$strip>], "type">;
1445
1444
  }, z.core.$strip>, z.ZodObject<{
@@ -50,10 +50,10 @@ export declare const sdk: {
50
50
  widget_question: "widget_question";
51
51
  qa_run_started: "qa_run_started";
52
52
  start_simulation: "start_simulation";
53
- create_automation: "create_automation";
54
- update_automation: "update_automation";
55
- delete_automation: "delete_automation";
56
- toggle_automation: "toggle_automation";
53
+ create_workflow: "create_workflow";
54
+ update_workflow: "update_workflow";
55
+ delete_workflow: "delete_workflow";
56
+ toggle_workflow: "toggle_workflow";
57
57
  slack_command: "slack_command";
58
58
  }>;
59
59
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -84,10 +84,10 @@ export declare const sdk: {
84
84
  widget_question: "widget_question";
85
85
  qa_run_started: "qa_run_started";
86
86
  start_simulation: "start_simulation";
87
- create_automation: "create_automation";
88
- update_automation: "update_automation";
89
- delete_automation: "delete_automation";
90
- toggle_automation: "toggle_automation";
87
+ create_workflow: "create_workflow";
88
+ update_workflow: "update_workflow";
89
+ delete_workflow: "delete_workflow";
90
+ toggle_workflow: "toggle_workflow";
91
91
  slack_command: "slack_command";
92
92
  }>;
93
93
  metadata: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -121,10 +121,10 @@ export declare const sdk: {
121
121
  website: "website";
122
122
  }>;
123
123
  name: import("zod").ZodString;
124
- url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
124
+ url: import("zod").ZodString;
125
125
  workspace_id: import("zod").ZodNumber;
126
126
  username: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
127
- allowed_domains: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>>;
127
+ allowed_domains: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
128
128
  widgets: import("zod").ZodArray<import("zod").ZodObject<{
129
129
  id: import("zod").ZodOptional<import("zod").ZodNumber>;
130
130
  created_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -192,7 +192,7 @@ export declare const sdk: {
192
192
  }, import("zod/v4/core").$strip>>;
193
193
  }, import("zod/v4/core").$strip>, Record<never, never>>;
194
194
  chatCreate: import("@orpc/contract").ContractProcedureClient<Record<never, never>, import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodString, Record<never, never>>;
195
- widgetGetDefaults: import("@orpc/contract").ContractProcedureClient<Record<never, never>, import("zod").ZodObject<{
195
+ widgetDefaultGet: import("@orpc/contract").ContractProcedureClient<Record<never, never>, import("zod").ZodObject<{
196
196
  type: import("zod").ZodEnum<{
197
197
  widget: "widget";
198
198
  }>;
@@ -341,7 +341,7 @@ export declare const sdk: {
341
341
  task_id: import("zod").ZodOptional<import("zod").ZodString>;
342
342
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
343
343
  type: import("zod").ZodLiteral<"tool/response">;
344
- call_id: import("zod").ZodString;
344
+ tool_call_id: import("zod").ZodString;
345
345
  success: import("zod").ZodBoolean;
346
346
  data: import("zod").ZodOptional<import("zod").ZodString>;
347
347
  error: import("zod").ZodOptional<import("zod").ZodString>;
@@ -350,7 +350,7 @@ export declare const sdk: {
350
350
  type: import("zod").ZodLiteral<"ping">;
351
351
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
352
352
  type: import("zod").ZodLiteral<"rrweb/metadata">;
353
- session_id: import("zod").ZodString;
353
+ rrweb_session_id: import("zod").ZodString;
354
354
  chat_id: import("zod").ZodString;
355
355
  application_id: import("zod").ZodNumber;
356
356
  url: import("zod").ZodOptional<import("zod").ZodString>;
@@ -362,7 +362,7 @@ export declare const sdk: {
362
362
  }, import("zod/v4/core").$strip>>;
363
363
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
364
364
  type: import("zod").ZodLiteral<"rrweb/events">;
365
- session_id: import("zod").ZodString;
365
+ rrweb_session_id: import("zod").ZodString;
366
366
  events: import("zod").ZodArray<import("zod").ZodUnknown>;
367
367
  }, import("zod/v4/core").$strip>], "type">;
368
368
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -398,8 +398,8 @@ export declare const sdk: {
398
398
  timestamp?: number | undefined;
399
399
  } | {
400
400
  type: "tool/call";
401
- call_id: string;
402
- tool: string;
401
+ tool_call_id: string;
402
+ browser_tool: string;
403
403
  args: Record<string, unknown>;
404
404
  mode?: "show" | "do" | undefined;
405
405
  explanation?: string | undefined;
@@ -428,8 +428,8 @@ export declare const sdk: {
428
428
  timestamp?: number | undefined;
429
429
  } | {
430
430
  type: "tool/call";
431
- call_id: string;
432
- tool: string;
431
+ tool_call_id: string;
432
+ browser_tool: string;
433
433
  args: Record<string, unknown>;
434
434
  mode?: "show" | "do" | undefined;
435
435
  explanation?: string | undefined;
@@ -1,4 +1,4 @@
1
- import type { MarketrixConfig, SendMessageRequest, SendMessageResponse } from '../types';
1
+ import type { MarketrixConfig, MessageDispatchRequest, MessageDispatchResponse } from '../types';
2
2
  export declare class ApiService {
3
3
  private config;
4
4
  constructor(config: MarketrixConfig);
@@ -12,7 +12,7 @@ export declare class ApiService {
12
12
  * Send a message via the typed stream (fire-and-forget).
13
13
  * The actual response arrives asynchronously as a chat/response stream event.
14
14
  */
15
- sendMessage(request: SendMessageRequest): Promise<SendMessageResponse>;
15
+ messageDispatch(request: MessageDispatchRequest): Promise<MessageDispatchResponse>;
16
16
  /**
17
17
  * Update configuration
18
18
  */
@@ -78,11 +78,11 @@ export interface ExtractParams {
78
78
  extract_links?: boolean;
79
79
  start_from_char?: number;
80
80
  }
81
- export declare class ToolService {
81
+ export declare class BrowserToolService {
82
82
  private static instance;
83
83
  private constructor();
84
- static getInstance(): ToolService;
85
- executeTool(toolName: string, args: Record<string, unknown>, mode?: string, explanation?: string): Promise<ToolExecutionResult<unknown>>;
84
+ static getInstance(): BrowserToolService;
85
+ executeTool(browserToolName: string, args: Record<string, unknown>, mode?: string, explanation?: string): Promise<ToolExecutionResult<unknown>>;
86
86
  private requiresHighlight;
87
87
  private navigate;
88
88
  private search;
@@ -110,4 +110,4 @@ export declare class ToolService {
110
110
  private getInteractableElements;
111
111
  private getScreenshot;
112
112
  }
113
- export declare const toolService: ToolService;
113
+ export declare const browserToolService: BrowserToolService;
@@ -4,12 +4,12 @@
4
4
  * Centralized chat ID management with promise-based locking to prevent
5
5
  * concurrent chat ID creation. Ensures only one chat ID is created per session.
6
6
  */
7
- declare class SessionManager {
7
+ declare class ChatSessionManager {
8
8
  private static instance;
9
9
  private chatId;
10
10
  private initializationPromise;
11
11
  private constructor();
12
- static getInstance(): SessionManager;
12
+ static getInstance(): ChatSessionManager;
13
13
  getChatId(): string | null;
14
14
  /**
15
15
  * Get or create chat ID with promise-based locking
@@ -23,5 +23,5 @@ declare class SessionManager {
23
23
  private getStoredChatId;
24
24
  private storeChatId;
25
25
  }
26
- export declare const sessionManager: SessionManager;
26
+ export declare const chatSessionManager: ChatSessionManager;
27
27
  export {};
@@ -86,7 +86,7 @@ export declare class DomService {
86
86
  getElementByIndex(index: number): ElementLookupResult;
87
87
  /**
88
88
  * Get an element by index with validation.
89
- * This is the main entry point for ToolService to use.
89
+ * This is the main entry point for BrowserToolService to use.
90
90
  * It validates the element matches its fingerprint and attempts recovery if not.
91
91
  * Returns element only if it's interactable.
92
92
  */
@@ -1,8 +1,8 @@
1
1
  /**
2
- * SessionRecorder manages real-time RRWeb session recording,
2
+ * RrwebSessionRecorder manages real-time RRWeb session recording,
3
3
  * sending batched events to the API via HTTP POST (widget message endpoint).
4
4
  */
5
- export declare class SessionRecorder {
5
+ export declare class RrwebSessionRecorder {
6
6
  private eventQueue;
7
7
  private estimatedQueueBytes;
8
8
  private sessionId;
@@ -17,7 +17,7 @@ export declare class SessionRecorder {
17
17
  private consecutiveFailures;
18
18
  private isFlushing;
19
19
  constructor(chatId: string, applicationId: number);
20
- private sendMetadata;
20
+ private metadataEmit;
21
21
  private bufferEvent;
22
22
  /**
23
23
  * Flush buffered events via POST.
@@ -1,7 +1,7 @@
1
1
  export interface ShowModeOptions {
2
2
  element: HTMLElement;
3
3
  explanation: string;
4
- toolName: string;
4
+ browserToolName: string;
5
5
  isClickAction?: boolean;
6
6
  }
7
7
  export declare class ShowModeService {
@@ -57,7 +57,7 @@ declare class StorageService {
57
57
  getChatId(): string | null;
58
58
  /**
59
59
  * Set chat_id in both localStorage and window.name.
60
- * Dispatches a 'marketrix:chatid' event so other services (e.g. SessionRecorder) can react.
60
+ * Dispatches a 'marketrix:chatid' event so other services (e.g. RrwebSessionRecorder) can react.
61
61
  */
62
62
  setChatId(chatId: string | null): void;
63
63
  getMessages(): StoredMessage[];
@@ -9,7 +9,7 @@ export declare class WidgetService {
9
9
  * Always returns default settings merged with existing widget settings if found
10
10
  * Returns null if no credentials provided (for preview mode)
11
11
  */
12
- fetchWidgetSettings(): Promise<WidgetData | null>;
12
+ widgetSettingsGet(): Promise<WidgetData | null>;
13
13
  /**
14
14
  * Get widget settings from widget data
15
15
  * Settings are always objects (current API format)
@@ -2,7 +2,7 @@
2
2
  * Browser Use Tools - widget tool registry.
3
3
  *
4
4
  * IMPORTANT: This file is the single source of truth for widget tool metadata.
5
- * ALLOWED_TOOLS in ConversationContext.tsx and TOOL_NAME_MAPPING in chat.ts are
5
+ * ALLOWED_TOOLS in ChatContext.tsx and TOOL_NAME_MAPPING in chat.ts are
6
6
  * derived from BROWSER_TOOLS below.
7
7
  */
8
8
  interface BrowserToolMetadata {