@marketrix.ai/widget 3.8.417 → 3.8.427

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.
@@ -41,6 +41,15 @@ export declare const widgetContract: {
41
41
  delete_knowledge: "delete_knowledge";
42
42
  request_membership: "request_membership";
43
43
  invite_user: "invite_user";
44
+ create_workspace: "create_workspace";
45
+ trial_started: "trial_started";
46
+ trial_ending_soon: "trial_ending_soon";
47
+ trial_ended: "trial_ended";
48
+ subscription_created: "subscription_created";
49
+ subscription_canceled: "subscription_canceled";
50
+ plan_changed: "plan_changed";
51
+ payment_succeeded: "payment_succeeded";
52
+ payment_failed: "payment_failed";
44
53
  widget_question: "widget_question";
45
54
  qa_run_started: "qa_run_started";
46
55
  start_simulation: "start_simulation";
@@ -83,6 +92,15 @@ export declare const widgetContract: {
83
92
  delete_knowledge: "delete_knowledge";
84
93
  request_membership: "request_membership";
85
94
  invite_user: "invite_user";
95
+ create_workspace: "create_workspace";
96
+ trial_started: "trial_started";
97
+ trial_ending_soon: "trial_ending_soon";
98
+ trial_ended: "trial_ended";
99
+ subscription_created: "subscription_created";
100
+ subscription_canceled: "subscription_canceled";
101
+ plan_changed: "plan_changed";
102
+ payment_succeeded: "payment_succeeded";
103
+ payment_failed: "payment_failed";
86
104
  widget_question: "widget_question";
87
105
  qa_run_started: "qa_run_started";
88
106
  start_simulation: "start_simulation";
@@ -41,6 +41,15 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
41
41
  delete_knowledge: "delete_knowledge";
42
42
  request_membership: "request_membership";
43
43
  invite_user: "invite_user";
44
+ create_workspace: "create_workspace";
45
+ trial_started: "trial_started";
46
+ trial_ending_soon: "trial_ending_soon";
47
+ trial_ended: "trial_ended";
48
+ subscription_created: "subscription_created";
49
+ subscription_canceled: "subscription_canceled";
50
+ plan_changed: "plan_changed";
51
+ payment_succeeded: "payment_succeeded";
52
+ payment_failed: "payment_failed";
44
53
  widget_question: "widget_question";
45
54
  qa_run_started: "qa_run_started";
46
55
  start_simulation: "start_simulation";
@@ -83,6 +92,15 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
83
92
  delete_knowledge: "delete_knowledge";
84
93
  request_membership: "request_membership";
85
94
  invite_user: "invite_user";
95
+ create_workspace: "create_workspace";
96
+ trial_started: "trial_started";
97
+ trial_ending_soon: "trial_ending_soon";
98
+ trial_ended: "trial_ended";
99
+ subscription_created: "subscription_created";
100
+ subscription_canceled: "subscription_canceled";
101
+ plan_changed: "plan_changed";
102
+ payment_succeeded: "payment_succeeded";
103
+ payment_failed: "payment_failed";
86
104
  widget_question: "widget_question";
87
105
  qa_run_started: "qa_run_started";
88
106
  start_simulation: "start_simulation";
@@ -140,6 +158,15 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
140
158
  delete_knowledge: "delete_knowledge";
141
159
  request_membership: "request_membership";
142
160
  invite_user: "invite_user";
161
+ create_workspace: "create_workspace";
162
+ trial_started: "trial_started";
163
+ trial_ending_soon: "trial_ending_soon";
164
+ trial_ended: "trial_ended";
165
+ subscription_created: "subscription_created";
166
+ subscription_canceled: "subscription_canceled";
167
+ plan_changed: "plan_changed";
168
+ payment_succeeded: "payment_succeeded";
169
+ payment_failed: "payment_failed";
143
170
  widget_question: "widget_question";
144
171
  qa_run_started: "qa_run_started";
145
172
  start_simulation: "start_simulation";
@@ -186,6 +213,15 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
186
213
  delete_knowledge: "delete_knowledge";
187
214
  request_membership: "request_membership";
188
215
  invite_user: "invite_user";
216
+ create_workspace: "create_workspace";
217
+ trial_started: "trial_started";
218
+ trial_ending_soon: "trial_ending_soon";
219
+ trial_ended: "trial_ended";
220
+ subscription_created: "subscription_created";
221
+ subscription_canceled: "subscription_canceled";
222
+ plan_changed: "plan_changed";
223
+ payment_succeeded: "payment_succeeded";
224
+ payment_failed: "payment_failed";
189
225
  widget_question: "widget_question";
190
226
  qa_run_started: "qa_run_started";
191
227
  start_simulation: "start_simulation";
@@ -270,6 +306,15 @@ export declare const activityLogRoutes: {
270
306
  delete_knowledge: "delete_knowledge";
271
307
  request_membership: "request_membership";
272
308
  invite_user: "invite_user";
309
+ create_workspace: "create_workspace";
310
+ trial_started: "trial_started";
311
+ trial_ending_soon: "trial_ending_soon";
312
+ trial_ended: "trial_ended";
313
+ subscription_created: "subscription_created";
314
+ subscription_canceled: "subscription_canceled";
315
+ plan_changed: "plan_changed";
316
+ payment_succeeded: "payment_succeeded";
317
+ payment_failed: "payment_failed";
273
318
  widget_question: "widget_question";
274
319
  qa_run_started: "qa_run_started";
275
320
  start_simulation: "start_simulation";
@@ -312,6 +357,15 @@ export declare const activityLogRoutes: {
312
357
  delete_knowledge: "delete_knowledge";
313
358
  request_membership: "request_membership";
314
359
  invite_user: "invite_user";
360
+ create_workspace: "create_workspace";
361
+ trial_started: "trial_started";
362
+ trial_ending_soon: "trial_ending_soon";
363
+ trial_ended: "trial_ended";
364
+ subscription_created: "subscription_created";
365
+ subscription_canceled: "subscription_canceled";
366
+ plan_changed: "plan_changed";
367
+ payment_succeeded: "payment_succeeded";
368
+ payment_failed: "payment_failed";
315
369
  widget_question: "widget_question";
316
370
  qa_run_started: "qa_run_started";
317
371
  start_simulation: "start_simulation";
@@ -369,6 +423,15 @@ export declare const activityLogRoutes: {
369
423
  delete_knowledge: "delete_knowledge";
370
424
  request_membership: "request_membership";
371
425
  invite_user: "invite_user";
426
+ create_workspace: "create_workspace";
427
+ trial_started: "trial_started";
428
+ trial_ending_soon: "trial_ending_soon";
429
+ trial_ended: "trial_ended";
430
+ subscription_created: "subscription_created";
431
+ subscription_canceled: "subscription_canceled";
432
+ plan_changed: "plan_changed";
433
+ payment_succeeded: "payment_succeeded";
434
+ payment_failed: "payment_failed";
372
435
  widget_question: "widget_question";
373
436
  qa_run_started: "qa_run_started";
374
437
  start_simulation: "start_simulation";
@@ -415,6 +478,15 @@ export declare const activityLogRoutes: {
415
478
  delete_knowledge: "delete_knowledge";
416
479
  request_membership: "request_membership";
417
480
  invite_user: "invite_user";
481
+ create_workspace: "create_workspace";
482
+ trial_started: "trial_started";
483
+ trial_ending_soon: "trial_ending_soon";
484
+ trial_ended: "trial_ended";
485
+ subscription_created: "subscription_created";
486
+ subscription_canceled: "subscription_canceled";
487
+ plan_changed: "plan_changed";
488
+ payment_succeeded: "payment_succeeded";
489
+ payment_failed: "payment_failed";
418
490
  widget_question: "widget_question";
419
491
  qa_run_started: "qa_run_started";
420
492
  start_simulation: "start_simulation";
@@ -36,14 +36,14 @@ export declare const PaginationSchema: z.ZodObject<{
36
36
  * and `?enabled=false` would match enabled rows. `.optional()` is outermost so the object key stays omittable.
37
37
  */
38
38
  export declare const booleanQueryParam: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean | undefined, string | boolean>>>;
39
- /** Paginated list for unbounded queries — includes total/limit/offset for pagination */
39
+ /** Paginated list for unbounded queries */
40
40
  export declare const paginatedListOf: <T extends z.ZodTypeAny>(schema: T) => z.ZodObject<{
41
41
  items: z.ZodArray<T>;
42
42
  total: z.ZodNumber;
43
43
  limit: z.ZodNumber;
44
44
  offset: z.ZodNumber;
45
45
  }, z.core.$strip>;
46
- /** Simple list for bounded results (scoped to parent entity) — includes count */
46
+ /** Simple list for bounded results (scoped to parent entity) */
47
47
  export declare const listOf: <T extends z.ZodTypeAny>(schema: T) => z.ZodObject<{
48
48
  items: z.ZodArray<T>;
49
49
  count: z.ZodNumber;
@@ -70,18 +70,12 @@ export declare const ToolCallRecordSchema: z.ZodObject<{
70
70
  * malformed input.
71
71
  */
72
72
  export declare const SlackWebhookUrlSchema: z.ZodString;
73
- /**
74
- * Graph edge schema - transition from one node to another via an action
75
- */
76
73
  export declare const GraphEdgeSchema: z.ZodObject<{
77
74
  start: z.ZodString;
78
75
  end: z.ZodString;
79
76
  action: z.ZodString;
80
77
  }, z.core.$loose>;
81
78
  export type GraphEdgeData = z.infer<typeof GraphEdgeSchema>;
82
- /**
83
- * Graph section schema - functional UI section within a page node
84
- */
85
79
  export declare const GraphSectionSchema: z.ZodObject<{
86
80
  id: z.ZodString;
87
81
  label: z.ZodString;
@@ -328,10 +328,7 @@ export declare const ApplicationEntitySchema: z.ZodObject<{
328
328
  allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
329
329
  }, z.core.$strip>;
330
330
  export type ApplicationData = z.infer<typeof ApplicationEntitySchema>;
331
- /**
332
- * Application read schema — entity minus password. Used for all API
333
- * responses; password is write-only and never returned to clients.
334
- */
331
+ /** Used for all API responses; password is write-only and never returned to clients. */
335
332
  export declare const ApplicationReadSchema: z.ZodObject<{
336
333
  id: z.ZodOptional<z.ZodNumber>;
337
334
  created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -476,10 +473,7 @@ export declare const WidgetEntitySchema: z.ZodObject<{
476
473
  snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
477
474
  }, z.core.$strip>;
478
475
  export type WidgetData = z.infer<typeof WidgetEntitySchema>;
479
- /**
480
- * State Trigger entity schema - stores URL patterns and messages to show in widget
481
- * `message` is one or more chip texts shown by the widget when the URL pattern matches.
482
- */
476
+ /** `message` is one or more chip texts shown by the widget when the URL pattern matches. */
483
477
  export declare const StateTriggerEntitySchema: z.ZodObject<{
484
478
  id: z.ZodOptional<z.ZodNumber>;
485
479
  created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -535,6 +529,15 @@ export declare const ActivityLogTypeSchema: z.ZodEnum<{
535
529
  delete_knowledge: "delete_knowledge";
536
530
  request_membership: "request_membership";
537
531
  invite_user: "invite_user";
532
+ create_workspace: "create_workspace";
533
+ trial_started: "trial_started";
534
+ trial_ending_soon: "trial_ending_soon";
535
+ trial_ended: "trial_ended";
536
+ subscription_created: "subscription_created";
537
+ subscription_canceled: "subscription_canceled";
538
+ plan_changed: "plan_changed";
539
+ payment_succeeded: "payment_succeeded";
540
+ payment_failed: "payment_failed";
538
541
  widget_question: "widget_question";
539
542
  qa_run_started: "qa_run_started";
540
543
  start_simulation: "start_simulation";
@@ -596,6 +599,15 @@ export declare const ActivityLogEntitySchema: z.ZodObject<{
596
599
  delete_knowledge: "delete_knowledge";
597
600
  request_membership: "request_membership";
598
601
  invite_user: "invite_user";
602
+ create_workspace: "create_workspace";
603
+ trial_started: "trial_started";
604
+ trial_ending_soon: "trial_ending_soon";
605
+ trial_ended: "trial_ended";
606
+ subscription_created: "subscription_created";
607
+ subscription_canceled: "subscription_canceled";
608
+ plan_changed: "plan_changed";
609
+ payment_succeeded: "payment_succeeded";
610
+ payment_failed: "payment_failed";
599
611
  widget_question: "widget_question";
600
612
  qa_run_started: "qa_run_started";
601
613
  start_simulation: "start_simulation";
@@ -676,6 +688,15 @@ export declare const ActivityLogCreateSchema: z.ZodObject<{
676
688
  delete_knowledge: "delete_knowledge";
677
689
  request_membership: "request_membership";
678
690
  invite_user: "invite_user";
691
+ create_workspace: "create_workspace";
692
+ trial_started: "trial_started";
693
+ trial_ending_soon: "trial_ending_soon";
694
+ trial_ended: "trial_ended";
695
+ subscription_created: "subscription_created";
696
+ subscription_canceled: "subscription_canceled";
697
+ plan_changed: "plan_changed";
698
+ payment_succeeded: "payment_succeeded";
699
+ payment_failed: "payment_failed";
679
700
  widget_question: "widget_question";
680
701
  qa_run_started: "qa_run_started";
681
702
  start_simulation: "start_simulation";
@@ -43,6 +43,15 @@ export declare const sdk: {
43
43
  delete_knowledge: "delete_knowledge";
44
44
  request_membership: "request_membership";
45
45
  invite_user: "invite_user";
46
+ create_workspace: "create_workspace";
47
+ trial_started: "trial_started";
48
+ trial_ending_soon: "trial_ending_soon";
49
+ trial_ended: "trial_ended";
50
+ subscription_created: "subscription_created";
51
+ subscription_canceled: "subscription_canceled";
52
+ plan_changed: "plan_changed";
53
+ payment_succeeded: "payment_succeeded";
54
+ payment_failed: "payment_failed";
46
55
  widget_question: "widget_question";
47
56
  qa_run_started: "qa_run_started";
48
57
  start_simulation: "start_simulation";
@@ -85,6 +94,15 @@ export declare const sdk: {
85
94
  delete_knowledge: "delete_knowledge";
86
95
  request_membership: "request_membership";
87
96
  invite_user: "invite_user";
97
+ create_workspace: "create_workspace";
98
+ trial_started: "trial_started";
99
+ trial_ending_soon: "trial_ending_soon";
100
+ trial_ended: "trial_ended";
101
+ subscription_created: "subscription_created";
102
+ subscription_canceled: "subscription_canceled";
103
+ plan_changed: "plan_changed";
104
+ payment_succeeded: "payment_succeeded";
105
+ payment_failed: "payment_failed";
88
106
  widget_question: "widget_question";
89
107
  qa_run_started: "qa_run_started";
90
108
  start_simulation: "start_simulation";
@@ -1,4 +1,4 @@
1
- /** Unified widget localStorage (key `marketrix_chat_context`). Canonical StorageService — `app/src/services/StorageService.ts` must stay byte-identical (modulo its `'../types'` import); change semantics here first, then copy to the app mirror. */
1
+ /** Unified widget localStorage (key `marketrix_chat_context`). */
2
2
  import type { ChatMessage, InstructionType, MarketrixConfig } from '../types';
3
3
  /** Serializable ChatMessage: timestamp as string, no videoStream. */
4
4
  type StoredMessage = Omit<ChatMessage, 'videoStream' | 'timestamp'> & {