@syntrologie/adapt-nav 2.12.0 → 2.14.0
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.
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +3 -3
- package/dist/schema.d.ts +132 -132
- package/dist/schema.d.ts.map +1 -1
- package/node_modules/@syntrologie/sdk-contracts/dist/index.d.ts +1 -1
- package/node_modules/@syntrologie/sdk-contracts/dist/index.js +5 -3
- package/node_modules/@syntrologie/sdk-contracts/dist/schemas.d.ts +150 -79
- package/node_modules/@syntrologie/sdk-contracts/dist/schemas.js +266 -67
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts.map +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.js +6 -3
- package/package.json +1 -1
|
@@ -15,6 +15,14 @@ export declare const AnchorIdZ: z.ZodObject<{
|
|
|
15
15
|
selector: string;
|
|
16
16
|
route: string | string[];
|
|
17
17
|
}>;
|
|
18
|
+
/** Events that can be counted in event_count conditions. */
|
|
19
|
+
export declare const COUNTABLE_EVENTS: readonly ["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"];
|
|
20
|
+
export declare const CountableEventZ: z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>;
|
|
21
|
+
/** Valid session metric keys. */
|
|
22
|
+
export declare const SESSION_METRIC_KEYS: readonly ["time_on_page", "page_views", "scroll_depth"];
|
|
23
|
+
export declare const SessionMetricKeyZ: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
24
|
+
/** Element chain match field prefixes for counter filters. */
|
|
25
|
+
export declare const ELEMENT_MATCH_FIELDS: readonly ["tag_name", "$el_text"];
|
|
18
26
|
export declare const PageUrlConditionZ: z.ZodObject<{
|
|
19
27
|
type: z.ZodLiteral<"page_url">;
|
|
20
28
|
url: z.ZodString;
|
|
@@ -95,17 +103,17 @@ export declare const ViewportConditionZ: z.ZodObject<{
|
|
|
95
103
|
}>;
|
|
96
104
|
export declare const SessionMetricConditionZ: z.ZodObject<{
|
|
97
105
|
type: z.ZodLiteral<"session_metric">;
|
|
98
|
-
key: z.
|
|
106
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
99
107
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
100
108
|
threshold: z.ZodNumber;
|
|
101
109
|
}, "strip", z.ZodTypeAny, {
|
|
102
110
|
type: "session_metric";
|
|
103
|
-
key:
|
|
111
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
104
112
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
105
113
|
threshold: number;
|
|
106
114
|
}, {
|
|
107
115
|
type: "session_metric";
|
|
108
|
-
key:
|
|
116
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
109
117
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
110
118
|
threshold: number;
|
|
111
119
|
}>;
|
|
@@ -162,7 +170,7 @@ export declare const MatchOpZ: z.ZodObject<{
|
|
|
162
170
|
contains?: string | undefined;
|
|
163
171
|
}>;
|
|
164
172
|
export declare const CounterDefZ: z.ZodObject<{
|
|
165
|
-
events: z.ZodArray<z.
|
|
173
|
+
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
|
|
166
174
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
167
175
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
168
176
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -174,13 +182,13 @@ export declare const CounterDefZ: z.ZodObject<{
|
|
|
174
182
|
contains?: string | undefined;
|
|
175
183
|
}>>>;
|
|
176
184
|
}, "strip", z.ZodTypeAny, {
|
|
177
|
-
events:
|
|
185
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
178
186
|
match?: Record<string, {
|
|
179
187
|
equals?: string | number | boolean | undefined;
|
|
180
188
|
contains?: string | undefined;
|
|
181
189
|
}> | undefined;
|
|
182
190
|
}, {
|
|
183
|
-
events:
|
|
191
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
184
192
|
match?: Record<string, {
|
|
185
193
|
equals?: string | number | boolean | undefined;
|
|
186
194
|
contains?: string | undefined;
|
|
@@ -193,7 +201,7 @@ export declare const EventCountConditionZ: z.ZodObject<{
|
|
|
193
201
|
count: z.ZodNumber;
|
|
194
202
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
195
203
|
counter: z.ZodOptional<z.ZodObject<{
|
|
196
|
-
events: z.ZodArray<z.
|
|
204
|
+
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
|
|
197
205
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
198
206
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
199
207
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -205,13 +213,13 @@ export declare const EventCountConditionZ: z.ZodObject<{
|
|
|
205
213
|
contains?: string | undefined;
|
|
206
214
|
}>>>;
|
|
207
215
|
}, "strip", z.ZodTypeAny, {
|
|
208
|
-
events:
|
|
216
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
209
217
|
match?: Record<string, {
|
|
210
218
|
equals?: string | number | boolean | undefined;
|
|
211
219
|
contains?: string | undefined;
|
|
212
220
|
}> | undefined;
|
|
213
221
|
}, {
|
|
214
|
-
events:
|
|
222
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
215
223
|
match?: Record<string, {
|
|
216
224
|
equals?: string | number | boolean | undefined;
|
|
217
225
|
contains?: string | undefined;
|
|
@@ -224,7 +232,7 @@ export declare const EventCountConditionZ: z.ZodObject<{
|
|
|
224
232
|
count: number;
|
|
225
233
|
withinMs?: number | undefined;
|
|
226
234
|
counter?: {
|
|
227
|
-
events:
|
|
235
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
228
236
|
match?: Record<string, {
|
|
229
237
|
equals?: string | number | boolean | undefined;
|
|
230
238
|
contains?: string | undefined;
|
|
@@ -237,7 +245,7 @@ export declare const EventCountConditionZ: z.ZodObject<{
|
|
|
237
245
|
count: number;
|
|
238
246
|
withinMs?: number | undefined;
|
|
239
247
|
counter?: {
|
|
240
|
-
events:
|
|
248
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
241
249
|
match?: Record<string, {
|
|
242
250
|
equals?: string | number | boolean | undefined;
|
|
243
251
|
contains?: string | undefined;
|
|
@@ -318,17 +326,17 @@ export declare const ConditionZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
318
326
|
maxHeight?: number | undefined;
|
|
319
327
|
}>, z.ZodObject<{
|
|
320
328
|
type: z.ZodLiteral<"session_metric">;
|
|
321
|
-
key: z.
|
|
329
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
322
330
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
323
331
|
threshold: z.ZodNumber;
|
|
324
332
|
}, "strip", z.ZodTypeAny, {
|
|
325
333
|
type: "session_metric";
|
|
326
|
-
key:
|
|
334
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
327
335
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
328
336
|
threshold: number;
|
|
329
337
|
}, {
|
|
330
338
|
type: "session_metric";
|
|
331
|
-
key:
|
|
339
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
332
340
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
333
341
|
threshold: number;
|
|
334
342
|
}>, z.ZodObject<{
|
|
@@ -377,7 +385,7 @@ export declare const ConditionZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
377
385
|
count: z.ZodNumber;
|
|
378
386
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
379
387
|
counter: z.ZodOptional<z.ZodObject<{
|
|
380
|
-
events: z.ZodArray<z.
|
|
388
|
+
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
|
|
381
389
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
382
390
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
383
391
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -389,13 +397,13 @@ export declare const ConditionZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
389
397
|
contains?: string | undefined;
|
|
390
398
|
}>>>;
|
|
391
399
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
events:
|
|
400
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
393
401
|
match?: Record<string, {
|
|
394
402
|
equals?: string | number | boolean | undefined;
|
|
395
403
|
contains?: string | undefined;
|
|
396
404
|
}> | undefined;
|
|
397
405
|
}, {
|
|
398
|
-
events:
|
|
406
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
399
407
|
match?: Record<string, {
|
|
400
408
|
equals?: string | number | boolean | undefined;
|
|
401
409
|
contains?: string | undefined;
|
|
@@ -408,7 +416,7 @@ export declare const ConditionZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
408
416
|
count: number;
|
|
409
417
|
withinMs?: number | undefined;
|
|
410
418
|
counter?: {
|
|
411
|
-
events:
|
|
419
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
412
420
|
match?: Record<string, {
|
|
413
421
|
equals?: string | number | boolean | undefined;
|
|
414
422
|
contains?: string | undefined;
|
|
@@ -421,7 +429,7 @@ export declare const ConditionZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
421
429
|
count: number;
|
|
422
430
|
withinMs?: number | undefined;
|
|
423
431
|
counter?: {
|
|
424
|
-
events:
|
|
432
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
425
433
|
match?: Record<string, {
|
|
426
434
|
equals?: string | number | boolean | undefined;
|
|
427
435
|
contains?: string | undefined;
|
|
@@ -503,17 +511,17 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
503
511
|
maxHeight?: number | undefined;
|
|
504
512
|
}>, z.ZodObject<{
|
|
505
513
|
type: z.ZodLiteral<"session_metric">;
|
|
506
|
-
key: z.
|
|
514
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
507
515
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
508
516
|
threshold: z.ZodNumber;
|
|
509
517
|
}, "strip", z.ZodTypeAny, {
|
|
510
518
|
type: "session_metric";
|
|
511
|
-
key:
|
|
519
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
512
520
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
513
521
|
threshold: number;
|
|
514
522
|
}, {
|
|
515
523
|
type: "session_metric";
|
|
516
|
-
key:
|
|
524
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
517
525
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
518
526
|
threshold: number;
|
|
519
527
|
}>, z.ZodObject<{
|
|
@@ -562,7 +570,7 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
562
570
|
count: z.ZodNumber;
|
|
563
571
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
564
572
|
counter: z.ZodOptional<z.ZodObject<{
|
|
565
|
-
events: z.ZodArray<z.
|
|
573
|
+
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
|
|
566
574
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
567
575
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
568
576
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -574,13 +582,13 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
574
582
|
contains?: string | undefined;
|
|
575
583
|
}>>>;
|
|
576
584
|
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
events:
|
|
585
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
578
586
|
match?: Record<string, {
|
|
579
587
|
equals?: string | number | boolean | undefined;
|
|
580
588
|
contains?: string | undefined;
|
|
581
589
|
}> | undefined;
|
|
582
590
|
}, {
|
|
583
|
-
events:
|
|
591
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
584
592
|
match?: Record<string, {
|
|
585
593
|
equals?: string | number | boolean | undefined;
|
|
586
594
|
contains?: string | undefined;
|
|
@@ -593,7 +601,7 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
593
601
|
count: number;
|
|
594
602
|
withinMs?: number | undefined;
|
|
595
603
|
counter?: {
|
|
596
|
-
events:
|
|
604
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
597
605
|
match?: Record<string, {
|
|
598
606
|
equals?: string | number | boolean | undefined;
|
|
599
607
|
contains?: string | undefined;
|
|
@@ -606,7 +614,7 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
606
614
|
count: number;
|
|
607
615
|
withinMs?: number | undefined;
|
|
608
616
|
counter?: {
|
|
609
|
-
events:
|
|
617
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
610
618
|
match?: Record<string, {
|
|
611
619
|
equals?: string | number | boolean | undefined;
|
|
612
620
|
contains?: string | undefined;
|
|
@@ -641,7 +649,7 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
641
649
|
maxHeight?: number | undefined;
|
|
642
650
|
} | {
|
|
643
651
|
type: "session_metric";
|
|
644
|
-
key:
|
|
652
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
645
653
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
646
654
|
threshold: number;
|
|
647
655
|
} | {
|
|
@@ -664,7 +672,7 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
664
672
|
count: number;
|
|
665
673
|
withinMs?: number | undefined;
|
|
666
674
|
counter?: {
|
|
667
|
-
events:
|
|
675
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
668
676
|
match?: Record<string, {
|
|
669
677
|
equals?: string | number | boolean | undefined;
|
|
670
678
|
contains?: string | undefined;
|
|
@@ -699,7 +707,7 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
699
707
|
maxHeight?: number | undefined;
|
|
700
708
|
} | {
|
|
701
709
|
type: "session_metric";
|
|
702
|
-
key:
|
|
710
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
703
711
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
704
712
|
threshold: number;
|
|
705
713
|
} | {
|
|
@@ -722,7 +730,7 @@ export declare const RuleZ: z.ZodObject<{
|
|
|
722
730
|
count: number;
|
|
723
731
|
withinMs?: number | undefined;
|
|
724
732
|
counter?: {
|
|
725
|
-
events:
|
|
733
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
726
734
|
match?: Record<string, {
|
|
727
735
|
equals?: string | number | boolean | undefined;
|
|
728
736
|
contains?: string | undefined;
|
|
@@ -808,17 +816,17 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
808
816
|
maxHeight?: number | undefined;
|
|
809
817
|
}>, z.ZodObject<{
|
|
810
818
|
type: z.ZodLiteral<"session_metric">;
|
|
811
|
-
key: z.
|
|
819
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
812
820
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
813
821
|
threshold: z.ZodNumber;
|
|
814
822
|
}, "strip", z.ZodTypeAny, {
|
|
815
823
|
type: "session_metric";
|
|
816
|
-
key:
|
|
824
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
817
825
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
818
826
|
threshold: number;
|
|
819
827
|
}, {
|
|
820
828
|
type: "session_metric";
|
|
821
|
-
key:
|
|
829
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
822
830
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
823
831
|
threshold: number;
|
|
824
832
|
}>, z.ZodObject<{
|
|
@@ -867,7 +875,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
867
875
|
count: z.ZodNumber;
|
|
868
876
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
869
877
|
counter: z.ZodOptional<z.ZodObject<{
|
|
870
|
-
events: z.ZodArray<z.
|
|
878
|
+
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
|
|
871
879
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
872
880
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
873
881
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -879,13 +887,13 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
879
887
|
contains?: string | undefined;
|
|
880
888
|
}>>>;
|
|
881
889
|
}, "strip", z.ZodTypeAny, {
|
|
882
|
-
events:
|
|
890
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
883
891
|
match?: Record<string, {
|
|
884
892
|
equals?: string | number | boolean | undefined;
|
|
885
893
|
contains?: string | undefined;
|
|
886
894
|
}> | undefined;
|
|
887
895
|
}, {
|
|
888
|
-
events:
|
|
896
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
889
897
|
match?: Record<string, {
|
|
890
898
|
equals?: string | number | boolean | undefined;
|
|
891
899
|
contains?: string | undefined;
|
|
@@ -898,7 +906,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
898
906
|
count: number;
|
|
899
907
|
withinMs?: number | undefined;
|
|
900
908
|
counter?: {
|
|
901
|
-
events:
|
|
909
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
902
910
|
match?: Record<string, {
|
|
903
911
|
equals?: string | number | boolean | undefined;
|
|
904
912
|
contains?: string | undefined;
|
|
@@ -911,7 +919,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
911
919
|
count: number;
|
|
912
920
|
withinMs?: number | undefined;
|
|
913
921
|
counter?: {
|
|
914
|
-
events:
|
|
922
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
915
923
|
match?: Record<string, {
|
|
916
924
|
equals?: string | number | boolean | undefined;
|
|
917
925
|
contains?: string | undefined;
|
|
@@ -946,7 +954,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
946
954
|
maxHeight?: number | undefined;
|
|
947
955
|
} | {
|
|
948
956
|
type: "session_metric";
|
|
949
|
-
key:
|
|
957
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
950
958
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
951
959
|
threshold: number;
|
|
952
960
|
} | {
|
|
@@ -969,7 +977,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
969
977
|
count: number;
|
|
970
978
|
withinMs?: number | undefined;
|
|
971
979
|
counter?: {
|
|
972
|
-
events:
|
|
980
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
973
981
|
match?: Record<string, {
|
|
974
982
|
equals?: string | number | boolean | undefined;
|
|
975
983
|
contains?: string | undefined;
|
|
@@ -1004,7 +1012,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
1004
1012
|
maxHeight?: number | undefined;
|
|
1005
1013
|
} | {
|
|
1006
1014
|
type: "session_metric";
|
|
1007
|
-
key:
|
|
1015
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1008
1016
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1009
1017
|
threshold: number;
|
|
1010
1018
|
} | {
|
|
@@ -1027,7 +1035,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
1027
1035
|
count: number;
|
|
1028
1036
|
withinMs?: number | undefined;
|
|
1029
1037
|
counter?: {
|
|
1030
|
-
events:
|
|
1038
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1031
1039
|
match?: Record<string, {
|
|
1032
1040
|
equals?: string | number | boolean | undefined;
|
|
1033
1041
|
contains?: string | undefined;
|
|
@@ -1066,7 +1074,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
1066
1074
|
maxHeight?: number | undefined;
|
|
1067
1075
|
} | {
|
|
1068
1076
|
type: "session_metric";
|
|
1069
|
-
key:
|
|
1077
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1070
1078
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1071
1079
|
threshold: number;
|
|
1072
1080
|
} | {
|
|
@@ -1089,7 +1097,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
1089
1097
|
count: number;
|
|
1090
1098
|
withinMs?: number | undefined;
|
|
1091
1099
|
counter?: {
|
|
1092
|
-
events:
|
|
1100
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1093
1101
|
match?: Record<string, {
|
|
1094
1102
|
equals?: string | number | boolean | undefined;
|
|
1095
1103
|
contains?: string | undefined;
|
|
@@ -1128,7 +1136,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
1128
1136
|
maxHeight?: number | undefined;
|
|
1129
1137
|
} | {
|
|
1130
1138
|
type: "session_metric";
|
|
1131
|
-
key:
|
|
1139
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1132
1140
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1133
1141
|
threshold: number;
|
|
1134
1142
|
} | {
|
|
@@ -1151,7 +1159,7 @@ export declare const RuleStrategyZ: z.ZodObject<{
|
|
|
1151
1159
|
count: number;
|
|
1152
1160
|
withinMs?: number | undefined;
|
|
1153
1161
|
counter?: {
|
|
1154
|
-
events:
|
|
1162
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1155
1163
|
match?: Record<string, {
|
|
1156
1164
|
equals?: string | number | boolean | undefined;
|
|
1157
1165
|
contains?: string | undefined;
|
|
@@ -1296,17 +1304,17 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1296
1304
|
maxHeight?: number | undefined;
|
|
1297
1305
|
}>, z.ZodObject<{
|
|
1298
1306
|
type: z.ZodLiteral<"session_metric">;
|
|
1299
|
-
key: z.
|
|
1307
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
1300
1308
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
1301
1309
|
threshold: z.ZodNumber;
|
|
1302
1310
|
}, "strip", z.ZodTypeAny, {
|
|
1303
1311
|
type: "session_metric";
|
|
1304
|
-
key:
|
|
1312
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1305
1313
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1306
1314
|
threshold: number;
|
|
1307
1315
|
}, {
|
|
1308
1316
|
type: "session_metric";
|
|
1309
|
-
key:
|
|
1317
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1310
1318
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1311
1319
|
threshold: number;
|
|
1312
1320
|
}>, z.ZodObject<{
|
|
@@ -1355,7 +1363,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1355
1363
|
count: z.ZodNumber;
|
|
1356
1364
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
1357
1365
|
counter: z.ZodOptional<z.ZodObject<{
|
|
1358
|
-
events: z.ZodArray<z.
|
|
1366
|
+
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
|
|
1359
1367
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1360
1368
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1361
1369
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -1367,13 +1375,13 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1367
1375
|
contains?: string | undefined;
|
|
1368
1376
|
}>>>;
|
|
1369
1377
|
}, "strip", z.ZodTypeAny, {
|
|
1370
|
-
events:
|
|
1378
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1371
1379
|
match?: Record<string, {
|
|
1372
1380
|
equals?: string | number | boolean | undefined;
|
|
1373
1381
|
contains?: string | undefined;
|
|
1374
1382
|
}> | undefined;
|
|
1375
1383
|
}, {
|
|
1376
|
-
events:
|
|
1384
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1377
1385
|
match?: Record<string, {
|
|
1378
1386
|
equals?: string | number | boolean | undefined;
|
|
1379
1387
|
contains?: string | undefined;
|
|
@@ -1386,7 +1394,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1386
1394
|
count: number;
|
|
1387
1395
|
withinMs?: number | undefined;
|
|
1388
1396
|
counter?: {
|
|
1389
|
-
events:
|
|
1397
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1390
1398
|
match?: Record<string, {
|
|
1391
1399
|
equals?: string | number | boolean | undefined;
|
|
1392
1400
|
contains?: string | undefined;
|
|
@@ -1399,7 +1407,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1399
1407
|
count: number;
|
|
1400
1408
|
withinMs?: number | undefined;
|
|
1401
1409
|
counter?: {
|
|
1402
|
-
events:
|
|
1410
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1403
1411
|
match?: Record<string, {
|
|
1404
1412
|
equals?: string | number | boolean | undefined;
|
|
1405
1413
|
contains?: string | undefined;
|
|
@@ -1434,7 +1442,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1434
1442
|
maxHeight?: number | undefined;
|
|
1435
1443
|
} | {
|
|
1436
1444
|
type: "session_metric";
|
|
1437
|
-
key:
|
|
1445
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1438
1446
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1439
1447
|
threshold: number;
|
|
1440
1448
|
} | {
|
|
@@ -1457,7 +1465,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1457
1465
|
count: number;
|
|
1458
1466
|
withinMs?: number | undefined;
|
|
1459
1467
|
counter?: {
|
|
1460
|
-
events:
|
|
1468
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1461
1469
|
match?: Record<string, {
|
|
1462
1470
|
equals?: string | number | boolean | undefined;
|
|
1463
1471
|
contains?: string | undefined;
|
|
@@ -1492,7 +1500,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1492
1500
|
maxHeight?: number | undefined;
|
|
1493
1501
|
} | {
|
|
1494
1502
|
type: "session_metric";
|
|
1495
|
-
key:
|
|
1503
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1496
1504
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1497
1505
|
threshold: number;
|
|
1498
1506
|
} | {
|
|
@@ -1515,7 +1523,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1515
1523
|
count: number;
|
|
1516
1524
|
withinMs?: number | undefined;
|
|
1517
1525
|
counter?: {
|
|
1518
|
-
events:
|
|
1526
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1519
1527
|
match?: Record<string, {
|
|
1520
1528
|
equals?: string | number | boolean | undefined;
|
|
1521
1529
|
contains?: string | undefined;
|
|
@@ -1554,7 +1562,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1554
1562
|
maxHeight?: number | undefined;
|
|
1555
1563
|
} | {
|
|
1556
1564
|
type: "session_metric";
|
|
1557
|
-
key:
|
|
1565
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1558
1566
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1559
1567
|
threshold: number;
|
|
1560
1568
|
} | {
|
|
@@ -1577,7 +1585,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1577
1585
|
count: number;
|
|
1578
1586
|
withinMs?: number | undefined;
|
|
1579
1587
|
counter?: {
|
|
1580
|
-
events:
|
|
1588
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1581
1589
|
match?: Record<string, {
|
|
1582
1590
|
equals?: string | number | boolean | undefined;
|
|
1583
1591
|
contains?: string | undefined;
|
|
@@ -1616,7 +1624,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1616
1624
|
maxHeight?: number | undefined;
|
|
1617
1625
|
} | {
|
|
1618
1626
|
type: "session_metric";
|
|
1619
|
-
key:
|
|
1627
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1620
1628
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1621
1629
|
threshold: number;
|
|
1622
1630
|
} | {
|
|
@@ -1639,7 +1647,7 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1639
1647
|
count: number;
|
|
1640
1648
|
withinMs?: number | undefined;
|
|
1641
1649
|
counter?: {
|
|
1642
|
-
events:
|
|
1650
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1643
1651
|
match?: Record<string, {
|
|
1644
1652
|
equals?: string | number | boolean | undefined;
|
|
1645
1653
|
contains?: string | undefined;
|
|
@@ -1782,17 +1790,17 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1782
1790
|
maxHeight?: number | undefined;
|
|
1783
1791
|
}>, z.ZodObject<{
|
|
1784
1792
|
type: z.ZodLiteral<"session_metric">;
|
|
1785
|
-
key: z.
|
|
1793
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
1786
1794
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
1787
1795
|
threshold: z.ZodNumber;
|
|
1788
1796
|
}, "strip", z.ZodTypeAny, {
|
|
1789
1797
|
type: "session_metric";
|
|
1790
|
-
key:
|
|
1798
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1791
1799
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1792
1800
|
threshold: number;
|
|
1793
1801
|
}, {
|
|
1794
1802
|
type: "session_metric";
|
|
1795
|
-
key:
|
|
1803
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1796
1804
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1797
1805
|
threshold: number;
|
|
1798
1806
|
}>, z.ZodObject<{
|
|
@@ -1841,7 +1849,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1841
1849
|
count: z.ZodNumber;
|
|
1842
1850
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
1843
1851
|
counter: z.ZodOptional<z.ZodObject<{
|
|
1844
|
-
events: z.ZodArray<z.
|
|
1852
|
+
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
|
|
1845
1853
|
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1846
1854
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1847
1855
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -1853,13 +1861,13 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1853
1861
|
contains?: string | undefined;
|
|
1854
1862
|
}>>>;
|
|
1855
1863
|
}, "strip", z.ZodTypeAny, {
|
|
1856
|
-
events:
|
|
1864
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1857
1865
|
match?: Record<string, {
|
|
1858
1866
|
equals?: string | number | boolean | undefined;
|
|
1859
1867
|
contains?: string | undefined;
|
|
1860
1868
|
}> | undefined;
|
|
1861
1869
|
}, {
|
|
1862
|
-
events:
|
|
1870
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1863
1871
|
match?: Record<string, {
|
|
1864
1872
|
equals?: string | number | boolean | undefined;
|
|
1865
1873
|
contains?: string | undefined;
|
|
@@ -1872,7 +1880,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1872
1880
|
count: number;
|
|
1873
1881
|
withinMs?: number | undefined;
|
|
1874
1882
|
counter?: {
|
|
1875
|
-
events:
|
|
1883
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1876
1884
|
match?: Record<string, {
|
|
1877
1885
|
equals?: string | number | boolean | undefined;
|
|
1878
1886
|
contains?: string | undefined;
|
|
@@ -1885,7 +1893,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1885
1893
|
count: number;
|
|
1886
1894
|
withinMs?: number | undefined;
|
|
1887
1895
|
counter?: {
|
|
1888
|
-
events:
|
|
1896
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1889
1897
|
match?: Record<string, {
|
|
1890
1898
|
equals?: string | number | boolean | undefined;
|
|
1891
1899
|
contains?: string | undefined;
|
|
@@ -1920,7 +1928,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1920
1928
|
maxHeight?: number | undefined;
|
|
1921
1929
|
} | {
|
|
1922
1930
|
type: "session_metric";
|
|
1923
|
-
key:
|
|
1931
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1924
1932
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1925
1933
|
threshold: number;
|
|
1926
1934
|
} | {
|
|
@@ -1943,7 +1951,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1943
1951
|
count: number;
|
|
1944
1952
|
withinMs?: number | undefined;
|
|
1945
1953
|
counter?: {
|
|
1946
|
-
events:
|
|
1954
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
1947
1955
|
match?: Record<string, {
|
|
1948
1956
|
equals?: string | number | boolean | undefined;
|
|
1949
1957
|
contains?: string | undefined;
|
|
@@ -1978,7 +1986,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
1978
1986
|
maxHeight?: number | undefined;
|
|
1979
1987
|
} | {
|
|
1980
1988
|
type: "session_metric";
|
|
1981
|
-
key:
|
|
1989
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1982
1990
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1983
1991
|
threshold: number;
|
|
1984
1992
|
} | {
|
|
@@ -2001,7 +2009,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
2001
2009
|
count: number;
|
|
2002
2010
|
withinMs?: number | undefined;
|
|
2003
2011
|
counter?: {
|
|
2004
|
-
events:
|
|
2012
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
2005
2013
|
match?: Record<string, {
|
|
2006
2014
|
equals?: string | number | boolean | undefined;
|
|
2007
2015
|
contains?: string | undefined;
|
|
@@ -2040,7 +2048,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
2040
2048
|
maxHeight?: number | undefined;
|
|
2041
2049
|
} | {
|
|
2042
2050
|
type: "session_metric";
|
|
2043
|
-
key:
|
|
2051
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2044
2052
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2045
2053
|
threshold: number;
|
|
2046
2054
|
} | {
|
|
@@ -2063,7 +2071,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
2063
2071
|
count: number;
|
|
2064
2072
|
withinMs?: number | undefined;
|
|
2065
2073
|
counter?: {
|
|
2066
|
-
events:
|
|
2074
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
2067
2075
|
match?: Record<string, {
|
|
2068
2076
|
equals?: string | number | boolean | undefined;
|
|
2069
2077
|
contains?: string | undefined;
|
|
@@ -2102,7 +2110,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
2102
2110
|
maxHeight?: number | undefined;
|
|
2103
2111
|
} | {
|
|
2104
2112
|
type: "session_metric";
|
|
2105
|
-
key:
|
|
2113
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2106
2114
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2107
2115
|
threshold: number;
|
|
2108
2116
|
} | {
|
|
@@ -2125,7 +2133,7 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
2125
2133
|
count: number;
|
|
2126
2134
|
withinMs?: number | undefined;
|
|
2127
2135
|
counter?: {
|
|
2128
|
-
events:
|
|
2136
|
+
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
|
|
2129
2137
|
match?: Record<string, {
|
|
2130
2138
|
equals?: string | number | boolean | undefined;
|
|
2131
2139
|
contains?: string | undefined;
|
|
@@ -2191,6 +2199,69 @@ export declare const TriggerWhenZ: z.ZodOptional<z.ZodNullable<z.ZodDiscriminate
|
|
|
2191
2199
|
timeoutMs?: number | undefined;
|
|
2192
2200
|
}>]>>>;
|
|
2193
2201
|
export type TriggerWhenSchema = z.infer<typeof TriggerWhenZ>;
|
|
2202
|
+
/** Complete triggerWhen examples showing the full rules wrapper structure. */
|
|
2203
|
+
export declare const TRIGGER_EXAMPLES: ({
|
|
2204
|
+
name: string;
|
|
2205
|
+
description: string;
|
|
2206
|
+
triggerWhen: {
|
|
2207
|
+
type: "rules";
|
|
2208
|
+
rules: {
|
|
2209
|
+
conditions: {
|
|
2210
|
+
type: "event_count";
|
|
2211
|
+
key: string;
|
|
2212
|
+
operator: "gte";
|
|
2213
|
+
count: number;
|
|
2214
|
+
counter: {
|
|
2215
|
+
events: string[];
|
|
2216
|
+
match: {
|
|
2217
|
+
'attr__data-id': {
|
|
2218
|
+
equals: string;
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
};
|
|
2222
|
+
}[];
|
|
2223
|
+
value: boolean;
|
|
2224
|
+
}[];
|
|
2225
|
+
default: boolean;
|
|
2226
|
+
};
|
|
2227
|
+
} | {
|
|
2228
|
+
name: string;
|
|
2229
|
+
description: string;
|
|
2230
|
+
triggerWhen: {
|
|
2231
|
+
type: "rules";
|
|
2232
|
+
rules: {
|
|
2233
|
+
conditions: {
|
|
2234
|
+
type: "session_metric";
|
|
2235
|
+
key: string;
|
|
2236
|
+
operator: "gte";
|
|
2237
|
+
threshold: number;
|
|
2238
|
+
}[];
|
|
2239
|
+
value: boolean;
|
|
2240
|
+
}[];
|
|
2241
|
+
default: boolean;
|
|
2242
|
+
};
|
|
2243
|
+
} | {
|
|
2244
|
+
name: string;
|
|
2245
|
+
description: string;
|
|
2246
|
+
triggerWhen: {
|
|
2247
|
+
type: "rules";
|
|
2248
|
+
rules: {
|
|
2249
|
+
conditions: {
|
|
2250
|
+
type: "anchor_visible";
|
|
2251
|
+
anchorId: string;
|
|
2252
|
+
state: "visible";
|
|
2253
|
+
}[];
|
|
2254
|
+
value: boolean;
|
|
2255
|
+
}[];
|
|
2256
|
+
default: boolean;
|
|
2257
|
+
};
|
|
2258
|
+
} | {
|
|
2259
|
+
name: string;
|
|
2260
|
+
description: string;
|
|
2261
|
+
triggerWhen: null;
|
|
2262
|
+
})[];
|
|
2263
|
+
/** Documentation for counter.match field keys. */
|
|
2264
|
+
export declare const MATCH_FIELD_DOCS: Record<string, string>;
|
|
2194
2265
|
/** Scopes a widget to specific events/URLs. */
|
|
2195
2266
|
export declare const EventScopeZ: z.ZodObject<{
|
|
2196
2267
|
events: z.ZodArray<z.ZodString, "many">;
|