@marketrix.ai/widget 3.8.260 → 3.8.301

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.
@@ -32,6 +32,12 @@ export declare const PaginationSchema: z.ZodObject<{
32
32
  limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
33
33
  offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
34
34
  }, z.core.$strip>;
35
+ /**
36
+ * Query-string boolean: 'true'/'false' (or a real boolean) → boolean, anything else → undefined.
37
+ * `z.coerce.boolean()` is WRONG for query strings — it's `Boolean(val)`, so `Boolean('false') === true`
38
+ * and `?enabled=false` would match enabled rows. Parse the two tokens explicitly instead.
39
+ */
40
+ export declare const booleanQueryParam: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean | undefined, string | boolean>>>;
35
41
  /** Paginated list for unbounded queries — includes total/limit/offset for pagination */
36
42
  export declare const paginatedListOf: <T extends z.ZodTypeAny>(schema: T) => z.ZodObject<{
37
43
  items: z.ZodArray<T>;
@@ -60,7 +66,6 @@ export declare const ToolCallRecordSchema: z.ZodObject<{
60
66
  params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
61
67
  result: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
62
68
  }, z.core.$strip>;
63
- export type ToolCallRecord = z.infer<typeof ToolCallRecordSchema>;
64
69
  /**
65
70
  * Slack incoming-webhook URL validator — shared by the workspace update path
66
71
  * and the slack-test endpoint so both surface a 400 BAD_REQUEST for the same
@@ -117,6 +117,19 @@ export declare const KnowledgeEntitySchema: z.ZodObject<{
117
117
  }>>>;
118
118
  }, z.core.$strip>;
119
119
  export type KnowledgeData = z.infer<typeof KnowledgeEntitySchema>;
120
+ export declare const PersonaFileEntitySchema: z.ZodObject<{
121
+ id: z.ZodOptional<z.ZodNumber>;
122
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
123
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
124
+ workspace_id: z.ZodNumber;
125
+ application_id: z.ZodNumber;
126
+ persona_id: z.ZodNumber;
127
+ file_name: z.ZodString;
128
+ file_size: z.ZodCoercedNumber<unknown>;
129
+ file_type: z.ZodString;
130
+ file_url: z.ZodString;
131
+ }, z.core.$strip>;
132
+ export type PersonaFileData = z.infer<typeof PersonaFileEntitySchema>;
120
133
  /**
121
134
  * Device viewport — the only device dimension (Chrome-only). A simulation runs at exactly
122
135
  * one viewport; selecting N viewports fans out into N simulations (one per viewport).
@@ -230,7 +243,7 @@ export declare const SimulationEntitySchema: z.ZodObject<{
230
243
  graph_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
244
  created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
232
245
  has_question: z.ZodOptional<z.ZodBoolean>;
233
- participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
246
+ riders: z.ZodDefault<z.ZodArray<z.ZodObject<{
234
247
  persona_id: z.ZodNumber;
235
248
  user_count: z.ZodNumber;
236
249
  }, z.core.$strip>>>;
@@ -452,25 +465,25 @@ export declare const StateTriggerEntitySchema: z.ZodObject<{
452
465
  export type StateTriggerData = z.infer<typeof StateTriggerEntitySchema>;
453
466
  /**
454
467
  * QA run status — first-class TEXT+CHECK column on qa_run (no longer derived).
455
- * `synthesizing` = all sims terminal but per-journey verdicts still completing (QA has no
468
+ * `finalizing` = all sims terminal but per-journey outcomes still completing (QA has no
456
469
  * run-level rollup like studies). Canonical wire vocabulary.
457
470
  */
458
471
  export declare const QARunStatusSchema: z.ZodEnum<{
472
+ created: "created";
459
473
  running: "running";
460
474
  completed: "completed";
461
475
  failed: "failed";
462
476
  stopped: "stopped";
463
477
  finalizing: "finalizing";
464
478
  }>;
465
- export type QARunStatus = z.infer<typeof QARunStatusSchema>;
466
- /** QA verdict per (run, persona, journey, viewport) — DATA-derived by the api from qa_verdict; NOT a wire status. */
467
- export declare const QARunVerdictStatusSchema: z.ZodEnum<{
479
+ /** QA outcome per (run, persona, journey, viewport) — DATA-derived by the api from qa_outcomes; NOT a wire status. */
480
+ export declare const QARunOutcomeStatusSchema: z.ZodEnum<{
468
481
  failed: "failed";
469
482
  passed: "passed";
470
483
  indecisive: "indecisive";
471
484
  }>;
472
- export type QARunVerdictStatus = z.infer<typeof QARunVerdictStatusSchema>;
473
- /** A human resolution of an indecisive verdict — resolves to a decision, so no `indecisive`. */
485
+ export type QARunOutcomeStatus = z.infer<typeof QARunOutcomeStatusSchema>;
486
+ /** A human resolution of an indecisive outcome — resolves to a decision, so no `indecisive`. */
474
487
  export declare const RulingSchema: z.ZodEnum<{
475
488
  failed: "failed";
476
489
  passed: "passed";