@marketrix.ai/widget 3.8.117 → 3.8.134
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.
|
@@ -388,7 +388,7 @@ export declare const widgetContract: {
|
|
|
388
388
|
error: string;
|
|
389
389
|
} | {
|
|
390
390
|
type: "task/status";
|
|
391
|
-
status: "
|
|
391
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
392
392
|
message?: string | undefined;
|
|
393
393
|
task_id?: string | undefined;
|
|
394
394
|
timestamp?: number | undefined;
|
|
@@ -419,7 +419,7 @@ export declare const widgetContract: {
|
|
|
419
419
|
error: string;
|
|
420
420
|
} | {
|
|
421
421
|
type: "task/status";
|
|
422
|
-
status: "
|
|
422
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
423
423
|
message?: string | undefined;
|
|
424
424
|
task_id?: string | undefined;
|
|
425
425
|
timestamp?: number | undefined;
|
|
@@ -16,20 +16,13 @@ export declare const KnowledgeSourceSchema: z.ZodEnum<{
|
|
|
16
16
|
research: "research";
|
|
17
17
|
}>;
|
|
18
18
|
export type KnowledgeSource = z.infer<typeof KnowledgeSourceSchema>;
|
|
19
|
-
export declare const QAFlowStatusSchema: z.ZodEnum<{
|
|
20
|
-
pending: "pending";
|
|
21
|
-
processing: "processing";
|
|
22
|
-
waiting_review: "waiting_review";
|
|
23
|
-
completed: "completed";
|
|
24
|
-
failed: "failed";
|
|
25
|
-
}>;
|
|
26
19
|
export declare const SimulationStatusSchema: z.ZodEnum<{
|
|
27
|
-
completed: "completed";
|
|
28
|
-
failed: "failed";
|
|
29
20
|
queued: "queued";
|
|
30
21
|
running: "running";
|
|
31
22
|
creating_knowledge: "creating_knowledge";
|
|
32
23
|
has_question: "has_question";
|
|
24
|
+
completed: "completed";
|
|
25
|
+
failed: "failed";
|
|
33
26
|
stopped: "stopped";
|
|
34
27
|
}>;
|
|
35
28
|
export type SimulationStatus = z.infer<typeof SimulationStatusSchema>;
|
|
@@ -39,9 +32,9 @@ export type SimulationStatus = z.infer<typeof SimulationStatusSchema>;
|
|
|
39
32
|
* `simulation/graph-updated` app event.
|
|
40
33
|
*/
|
|
41
34
|
export declare const GraphStatusSchema: z.ZodEnum<{
|
|
42
|
-
pending: "pending";
|
|
43
35
|
completed: "completed";
|
|
44
36
|
failed: "failed";
|
|
37
|
+
pending: "pending";
|
|
45
38
|
generating: "generating";
|
|
46
39
|
}>;
|
|
47
40
|
export declare const ApplicationTypeSchema: z.ZodEnum<{
|
|
@@ -172,15 +165,20 @@ export declare const KnowledgeEntitySchema: z.ZodObject<{
|
|
|
172
165
|
}, z.core.$strip>;
|
|
173
166
|
export type KnowledgeData = z.infer<typeof KnowledgeEntitySchema>;
|
|
174
167
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
168
|
+
* Device viewport — the only device dimension (Chrome-only). A simulation runs at exactly
|
|
169
|
+
* one viewport; selecting N viewports fans out into N simulations (one per viewport).
|
|
170
|
+
* Defined here (the widget/root import closure) so SSE + simulation + qa contracts can share it.
|
|
177
171
|
*/
|
|
178
|
-
export declare const
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
172
|
+
export declare const ViewportNameSchema: z.ZodEnum<{
|
|
173
|
+
desktop: "desktop";
|
|
174
|
+
tablet: "tablet";
|
|
175
|
+
mobile: "mobile";
|
|
176
|
+
}>;
|
|
177
|
+
export type ViewportName = z.infer<typeof ViewportNameSchema>;
|
|
178
|
+
export declare const VIEWPORT_DIMENSIONS: Record<ViewportName, {
|
|
179
|
+
width: number;
|
|
180
|
+
height: number;
|
|
182
181
|
}>;
|
|
183
|
-
export type QAVerdict = z.infer<typeof QAVerdictSchema>;
|
|
184
182
|
export declare const QAProcessResponseSchema: z.ZodObject<{
|
|
185
183
|
ultimate_goal: z.ZodString;
|
|
186
184
|
test_cases: z.ZodArray<z.ZodObject<{
|
|
@@ -218,11 +216,11 @@ export declare const SimulationTaskEntrySchema: z.ZodObject<{
|
|
|
218
216
|
title: z.ZodString;
|
|
219
217
|
instructions: z.ZodString;
|
|
220
218
|
status: z.ZodEnum<{
|
|
221
|
-
pending: "pending";
|
|
222
|
-
failed: "failed";
|
|
223
219
|
running: "running";
|
|
224
220
|
has_question: "has_question";
|
|
221
|
+
failed: "failed";
|
|
225
222
|
stopped: "stopped";
|
|
223
|
+
pending: "pending";
|
|
226
224
|
passed: "passed";
|
|
227
225
|
skipped: "skipped";
|
|
228
226
|
}>;
|
|
@@ -240,6 +238,62 @@ export declare const SimulationTaskEntrySchema: z.ZodObject<{
|
|
|
240
238
|
}, z.core.$strip>>>;
|
|
241
239
|
}, z.core.$strip>;
|
|
242
240
|
export type SimulationTaskEntry = z.infer<typeof SimulationTaskEntrySchema>;
|
|
241
|
+
export declare const SentimentSchema: z.ZodEnum<{
|
|
242
|
+
positive: "positive";
|
|
243
|
+
neutral: "neutral";
|
|
244
|
+
negative: "negative";
|
|
245
|
+
}>;
|
|
246
|
+
export declare const StepReactionSchema: z.ZodObject<{
|
|
247
|
+
step_index: z.ZodNumber;
|
|
248
|
+
screenshot_ref: z.ZodNullable<z.ZodString>;
|
|
249
|
+
reaction: z.ZodString;
|
|
250
|
+
sentiment: z.ZodNullable<z.ZodEnum<{
|
|
251
|
+
positive: "positive";
|
|
252
|
+
neutral: "neutral";
|
|
253
|
+
negative: "negative";
|
|
254
|
+
}>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
export declare const JourneyReactionSchema: z.ZodObject<{
|
|
257
|
+
reaction: z.ZodString;
|
|
258
|
+
sentiment: z.ZodEnum<{
|
|
259
|
+
positive: "positive";
|
|
260
|
+
neutral: "neutral";
|
|
261
|
+
negative: "negative";
|
|
262
|
+
}>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
export declare const PersonaSimReactionEntitySchema: z.ZodObject<{
|
|
265
|
+
id: z.ZodNumber;
|
|
266
|
+
run_id: z.ZodNullable<z.ZodNumber>;
|
|
267
|
+
persona_id: z.ZodNullable<z.ZodNumber>;
|
|
268
|
+
user_index: z.ZodNullable<z.ZodNumber>;
|
|
269
|
+
simulation_id: z.ZodNullable<z.ZodNumber>;
|
|
270
|
+
study_variant_id: z.ZodNullable<z.ZodNumber>;
|
|
271
|
+
journey_reaction: z.ZodNullable<z.ZodString>;
|
|
272
|
+
journey_sentiment: z.ZodNullable<z.ZodEnum<{
|
|
273
|
+
positive: "positive";
|
|
274
|
+
neutral: "neutral";
|
|
275
|
+
negative: "negative";
|
|
276
|
+
}>>;
|
|
277
|
+
status: z.ZodEnum<{
|
|
278
|
+
completed: "completed";
|
|
279
|
+
failed: "failed";
|
|
280
|
+
pending: "pending";
|
|
281
|
+
}>;
|
|
282
|
+
step_reactions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
283
|
+
step_index: z.ZodNumber;
|
|
284
|
+
screenshot_ref: z.ZodNullable<z.ZodString>;
|
|
285
|
+
reaction: z.ZodString;
|
|
286
|
+
sentiment: z.ZodNullable<z.ZodEnum<{
|
|
287
|
+
positive: "positive";
|
|
288
|
+
neutral: "neutral";
|
|
289
|
+
negative: "negative";
|
|
290
|
+
}>>;
|
|
291
|
+
}, z.core.$strip>>>;
|
|
292
|
+
question_answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
293
|
+
study_question_id: z.ZodNumber;
|
|
294
|
+
answer: z.ZodString;
|
|
295
|
+
}, z.core.$strip>>>;
|
|
296
|
+
}, z.core.$strip>;
|
|
243
297
|
export declare const SimulationEntitySchema: z.ZodObject<{
|
|
244
298
|
id: z.ZodOptional<z.ZodNumber>;
|
|
245
299
|
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -248,17 +302,25 @@ export declare const SimulationEntitySchema: z.ZodObject<{
|
|
|
248
302
|
job_id: z.ZodString;
|
|
249
303
|
browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
304
|
status: z.ZodEnum<{
|
|
251
|
-
completed: "completed";
|
|
252
|
-
failed: "failed";
|
|
253
305
|
queued: "queued";
|
|
254
306
|
running: "running";
|
|
255
307
|
creating_knowledge: "creating_knowledge";
|
|
256
308
|
has_question: "has_question";
|
|
309
|
+
completed: "completed";
|
|
310
|
+
failed: "failed";
|
|
257
311
|
stopped: "stopped";
|
|
258
312
|
}>;
|
|
259
313
|
status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
314
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
315
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
318
|
+
direct: "direct";
|
|
319
|
+
uxr: "uxr";
|
|
320
|
+
survey: "survey";
|
|
321
|
+
ab: "ab";
|
|
322
|
+
qa: "qa";
|
|
323
|
+
}>>>;
|
|
262
324
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
263
325
|
source: z.ZodOptional<z.ZodEnum<{
|
|
264
326
|
direct: "direct";
|
|
@@ -271,11 +333,11 @@ export declare const SimulationEntitySchema: z.ZodObject<{
|
|
|
271
333
|
title: z.ZodString;
|
|
272
334
|
instructions: z.ZodString;
|
|
273
335
|
status: z.ZodEnum<{
|
|
274
|
-
pending: "pending";
|
|
275
|
-
failed: "failed";
|
|
276
336
|
running: "running";
|
|
277
337
|
has_question: "has_question";
|
|
338
|
+
failed: "failed";
|
|
278
339
|
stopped: "stopped";
|
|
340
|
+
pending: "pending";
|
|
279
341
|
passed: "passed";
|
|
280
342
|
skipped: "skipped";
|
|
281
343
|
}>;
|
|
@@ -293,17 +355,59 @@ export declare const SimulationEntitySchema: z.ZodObject<{
|
|
|
293
355
|
}, z.core.$strip>>>;
|
|
294
356
|
}, z.core.$strip>>>;
|
|
295
357
|
graph_status: z.ZodOptional<z.ZodEnum<{
|
|
296
|
-
pending: "pending";
|
|
297
358
|
completed: "completed";
|
|
298
359
|
failed: "failed";
|
|
360
|
+
pending: "pending";
|
|
299
361
|
generating: "generating";
|
|
300
362
|
}>>;
|
|
301
363
|
graph_steps_processed: z.ZodOptional<z.ZodNumber>;
|
|
302
364
|
graph_steps_total: z.ZodOptional<z.ZodNumber>;
|
|
303
365
|
graph_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
366
|
created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
305
|
-
persona_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
306
367
|
has_question: z.ZodOptional<z.ZodBoolean>;
|
|
368
|
+
participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
369
|
+
persona_id: z.ZodNumber;
|
|
370
|
+
user_count: z.ZodNumber;
|
|
371
|
+
}, z.core.$strip>>>;
|
|
372
|
+
reactions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
373
|
+
id: z.ZodNumber;
|
|
374
|
+
run_id: z.ZodNullable<z.ZodNumber>;
|
|
375
|
+
persona_id: z.ZodNullable<z.ZodNumber>;
|
|
376
|
+
user_index: z.ZodNullable<z.ZodNumber>;
|
|
377
|
+
simulation_id: z.ZodNullable<z.ZodNumber>;
|
|
378
|
+
study_variant_id: z.ZodNullable<z.ZodNumber>;
|
|
379
|
+
journey_reaction: z.ZodNullable<z.ZodString>;
|
|
380
|
+
journey_sentiment: z.ZodNullable<z.ZodEnum<{
|
|
381
|
+
positive: "positive";
|
|
382
|
+
neutral: "neutral";
|
|
383
|
+
negative: "negative";
|
|
384
|
+
}>>;
|
|
385
|
+
status: z.ZodEnum<{
|
|
386
|
+
completed: "completed";
|
|
387
|
+
failed: "failed";
|
|
388
|
+
pending: "pending";
|
|
389
|
+
}>;
|
|
390
|
+
step_reactions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
391
|
+
step_index: z.ZodNumber;
|
|
392
|
+
screenshot_ref: z.ZodNullable<z.ZodString>;
|
|
393
|
+
reaction: z.ZodString;
|
|
394
|
+
sentiment: z.ZodNullable<z.ZodEnum<{
|
|
395
|
+
positive: "positive";
|
|
396
|
+
neutral: "neutral";
|
|
397
|
+
negative: "negative";
|
|
398
|
+
}>>;
|
|
399
|
+
}, z.core.$strip>>>;
|
|
400
|
+
question_answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
401
|
+
study_question_id: z.ZodNumber;
|
|
402
|
+
answer: z.ZodString;
|
|
403
|
+
}, z.core.$strip>>>;
|
|
404
|
+
}, z.core.$strip>>>;
|
|
405
|
+
driver_persona_id: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
406
|
+
viewport: z.ZodDefault<z.ZodEnum<{
|
|
407
|
+
desktop: "desktop";
|
|
408
|
+
tablet: "tablet";
|
|
409
|
+
mobile: "mobile";
|
|
410
|
+
}>>;
|
|
307
411
|
}, z.core.$strip>;
|
|
308
412
|
export type SimulationData = z.infer<typeof SimulationEntitySchema>;
|
|
309
413
|
export declare const ApplicationEntitySchema: z.ZodObject<{
|
|
@@ -481,21 +585,31 @@ export declare const StateTriggerEntitySchema: z.ZodObject<{
|
|
|
481
585
|
}, z.core.$strip>;
|
|
482
586
|
export type StateTriggerData = z.infer<typeof StateTriggerEntitySchema>;
|
|
483
587
|
/**
|
|
484
|
-
* QA run
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
* Canonical wire vocabulary; `deriveQARunStats` returns `'running'` directly.
|
|
489
|
-
* `'pending'` is the empty-task initial state.
|
|
588
|
+
* QA run status — first-class TEXT+CHECK column on qa_run (no longer derived).
|
|
589
|
+
* `synthesizing` = all sims terminal but per-journey verdicts still completing (QA has no
|
|
590
|
+
* run-level rollup like studies). Canonical wire vocabulary.
|
|
490
591
|
*/
|
|
491
592
|
export declare const QARunStatusSchema: z.ZodEnum<{
|
|
492
|
-
|
|
593
|
+
running: "running";
|
|
493
594
|
completed: "completed";
|
|
494
595
|
failed: "failed";
|
|
495
|
-
running: "running";
|
|
496
596
|
stopped: "stopped";
|
|
597
|
+
synthesizing: "synthesizing";
|
|
497
598
|
}>;
|
|
498
599
|
export type QARunStatus = z.infer<typeof QARunStatusSchema>;
|
|
600
|
+
/** QA verdict per (run, persona, journey, viewport) — DATA-derived by the api from qa_verdict; NOT a wire status. */
|
|
601
|
+
export declare const QARunVerdictStatusSchema: z.ZodEnum<{
|
|
602
|
+
failed: "failed";
|
|
603
|
+
passed: "passed";
|
|
604
|
+
indecisive: "indecisive";
|
|
605
|
+
}>;
|
|
606
|
+
export type QARunVerdictStatus = z.infer<typeof QARunVerdictStatusSchema>;
|
|
607
|
+
/** A human resolution of an indecisive verdict — resolves to a decision, so no `indecisive`. */
|
|
608
|
+
export declare const HumanRulingSchema: z.ZodEnum<{
|
|
609
|
+
failed: "failed";
|
|
610
|
+
passed: "passed";
|
|
611
|
+
}>;
|
|
612
|
+
export type HumanRuling = z.infer<typeof HumanRulingSchema>;
|
|
499
613
|
export declare const ActionLogTypeSchema: z.ZodEnum<{
|
|
500
614
|
user_login: "user_login";
|
|
501
615
|
url_visit: "url_visit";
|
|
@@ -664,12 +778,12 @@ export declare const SuggestedSimulationSchema: z.ZodObject<{
|
|
|
664
778
|
simulation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
665
779
|
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
666
780
|
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
667
|
-
completed: "completed";
|
|
668
|
-
failed: "failed";
|
|
669
781
|
queued: "queued";
|
|
670
782
|
running: "running";
|
|
671
783
|
creating_knowledge: "creating_knowledge";
|
|
672
784
|
has_question: "has_question";
|
|
785
|
+
completed: "completed";
|
|
786
|
+
failed: "failed";
|
|
673
787
|
stopped: "stopped";
|
|
674
788
|
}>>>;
|
|
675
789
|
}, z.core.$strip>;
|
|
@@ -366,10 +366,10 @@ export declare const WidgetEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
366
366
|
}, z.core.$strip>, z.ZodObject<{
|
|
367
367
|
type: z.ZodLiteral<"task/status">;
|
|
368
368
|
status: z.ZodEnum<{
|
|
369
|
-
completed: "completed";
|
|
370
|
-
failed: "failed";
|
|
371
369
|
running: "running";
|
|
372
370
|
has_question: "has_question";
|
|
371
|
+
completed: "completed";
|
|
372
|
+
failed: "failed";
|
|
373
373
|
stopped: "stopped";
|
|
374
374
|
}>;
|
|
375
375
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -850,7 +850,7 @@ export declare const widgetStream: import("@orpc/contract").ContractProcedureBui
|
|
|
850
850
|
error: string;
|
|
851
851
|
} | {
|
|
852
852
|
type: "task/status";
|
|
853
|
-
status: "
|
|
853
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
854
854
|
message?: string | undefined;
|
|
855
855
|
task_id?: string | undefined;
|
|
856
856
|
timestamp?: number | undefined;
|
|
@@ -881,7 +881,7 @@ export declare const widgetStream: import("@orpc/contract").ContractProcedureBui
|
|
|
881
881
|
error: string;
|
|
882
882
|
} | {
|
|
883
883
|
type: "task/status";
|
|
884
|
-
status: "
|
|
884
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
885
885
|
message?: string | undefined;
|
|
886
886
|
task_id?: string | undefined;
|
|
887
887
|
timestamp?: number | undefined;
|
|
@@ -1360,7 +1360,7 @@ export declare const widgetRoutes: {
|
|
|
1360
1360
|
error: string;
|
|
1361
1361
|
} | {
|
|
1362
1362
|
type: "task/status";
|
|
1363
|
-
status: "
|
|
1363
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
1364
1364
|
message?: string | undefined;
|
|
1365
1365
|
task_id?: string | undefined;
|
|
1366
1366
|
timestamp?: number | undefined;
|
|
@@ -1391,7 +1391,7 @@ export declare const widgetRoutes: {
|
|
|
1391
1391
|
error: string;
|
|
1392
1392
|
} | {
|
|
1393
1393
|
type: "task/status";
|
|
1394
|
-
status: "
|
|
1394
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
1395
1395
|
message?: string | undefined;
|
|
1396
1396
|
task_id?: string | undefined;
|
|
1397
1397
|
timestamp?: number | undefined;
|
package/dist/src/sdk/index.d.ts
CHANGED
|
@@ -393,7 +393,7 @@ export declare const sdk: {
|
|
|
393
393
|
error: string;
|
|
394
394
|
} | {
|
|
395
395
|
type: "task/status";
|
|
396
|
-
status: "
|
|
396
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
397
397
|
message?: string | undefined;
|
|
398
398
|
task_id?: string | undefined;
|
|
399
399
|
timestamp?: number | undefined;
|
|
@@ -424,7 +424,7 @@ export declare const sdk: {
|
|
|
424
424
|
error: string;
|
|
425
425
|
} | {
|
|
426
426
|
type: "task/status";
|
|
427
|
-
status: "
|
|
427
|
+
status: "running" | "has_question" | "completed" | "failed" | "stopped";
|
|
428
428
|
message?: string | undefined;
|
|
429
429
|
task_id?: string | undefined;
|
|
430
430
|
timestamp?: number | undefined;
|