@marketrix.ai/widget 3.8.417 → 3.8.425
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.
|
@@ -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
|
|
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)
|
|
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>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Unified widget localStorage (key `marketrix_chat_context`).
|
|
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'> & {
|