@syntrologie/adapt-gamification 2.8.0-canary.52 → 2.8.0-canary.521
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/cdn.d.ts +22 -14
- package/dist/cdn.d.ts.map +1 -1
- package/dist/runtime.js +47 -85
- package/dist/runtime.js.map +7 -0
- package/dist/schema.d.ts +180 -86
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +425 -79
- package/dist/schema.js.map +7 -0
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -15
- package/dist/cdn.js +0 -40
- package/dist/editor.d.ts +0 -22
- package/dist/editor.d.ts.map +0 -1
- package/dist/editor.js +0 -18
- package/dist/types.js +0 -7
package/dist/schema.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
147
147
|
badgeId: z.ZodString;
|
|
148
148
|
anchorId: z.ZodOptional<z.ZodObject<{
|
|
149
149
|
selector: z.ZodString;
|
|
150
|
-
route: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
150
|
+
route: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string | string[], string | string[]>;
|
|
151
151
|
}, "strict", z.ZodTypeAny, {
|
|
152
152
|
selector: string;
|
|
153
153
|
route: string | string[];
|
|
@@ -234,17 +234,17 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
234
234
|
maxHeight?: number | undefined;
|
|
235
235
|
}>, z.ZodObject<{
|
|
236
236
|
type: z.ZodLiteral<"session_metric">;
|
|
237
|
-
key: z.
|
|
237
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
238
238
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
239
239
|
threshold: z.ZodNumber;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
241
|
type: "session_metric";
|
|
242
|
-
key:
|
|
242
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
243
243
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
244
244
|
threshold: number;
|
|
245
245
|
}, {
|
|
246
246
|
type: "session_metric";
|
|
247
|
-
key:
|
|
247
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
248
248
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
249
249
|
threshold: number;
|
|
250
250
|
}>, z.ZodObject<{
|
|
@@ -293,8 +293,8 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
293
293
|
count: z.ZodNumber;
|
|
294
294
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
295
295
|
counter: z.ZodOptional<z.ZodObject<{
|
|
296
|
-
events: z.ZodArray<z.
|
|
297
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
296
|
+
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", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "many">;
|
|
297
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
298
298
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
299
299
|
contains: z.ZodOptional<z.ZodString>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -303,15 +303,21 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
303
303
|
}, {
|
|
304
304
|
equals?: string | number | boolean | undefined;
|
|
305
305
|
contains?: string | undefined;
|
|
306
|
+
}>, {
|
|
307
|
+
equals?: string | number | boolean | undefined;
|
|
308
|
+
contains?: string | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
equals?: string | number | boolean | undefined;
|
|
311
|
+
contains?: string | undefined;
|
|
306
312
|
}>>>;
|
|
307
313
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
events:
|
|
314
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
309
315
|
match?: Record<string, {
|
|
310
316
|
equals?: string | number | boolean | undefined;
|
|
311
317
|
contains?: string | undefined;
|
|
312
318
|
}> | undefined;
|
|
313
319
|
}, {
|
|
314
|
-
events:
|
|
320
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
315
321
|
match?: Record<string, {
|
|
316
322
|
equals?: string | number | boolean | undefined;
|
|
317
323
|
contains?: string | undefined;
|
|
@@ -324,7 +330,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
324
330
|
count: number;
|
|
325
331
|
withinMs?: number | undefined;
|
|
326
332
|
counter?: {
|
|
327
|
-
events:
|
|
333
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
328
334
|
match?: Record<string, {
|
|
329
335
|
equals?: string | number | boolean | undefined;
|
|
330
336
|
contains?: string | undefined;
|
|
@@ -337,7 +343,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
337
343
|
count: number;
|
|
338
344
|
withinMs?: number | undefined;
|
|
339
345
|
counter?: {
|
|
340
|
-
events:
|
|
346
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
341
347
|
match?: Record<string, {
|
|
342
348
|
equals?: string | number | boolean | undefined;
|
|
343
349
|
contains?: string | undefined;
|
|
@@ -372,7 +378,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
372
378
|
maxHeight?: number | undefined;
|
|
373
379
|
} | {
|
|
374
380
|
type: "session_metric";
|
|
375
|
-
key:
|
|
381
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
376
382
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
377
383
|
threshold: number;
|
|
378
384
|
} | {
|
|
@@ -395,7 +401,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
395
401
|
count: number;
|
|
396
402
|
withinMs?: number | undefined;
|
|
397
403
|
counter?: {
|
|
398
|
-
events:
|
|
404
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
399
405
|
match?: Record<string, {
|
|
400
406
|
equals?: string | number | boolean | undefined;
|
|
401
407
|
contains?: string | undefined;
|
|
@@ -430,7 +436,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
430
436
|
maxHeight?: number | undefined;
|
|
431
437
|
} | {
|
|
432
438
|
type: "session_metric";
|
|
433
|
-
key:
|
|
439
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
434
440
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
435
441
|
threshold: number;
|
|
436
442
|
} | {
|
|
@@ -453,7 +459,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
453
459
|
count: number;
|
|
454
460
|
withinMs?: number | undefined;
|
|
455
461
|
counter?: {
|
|
456
|
-
events:
|
|
462
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
457
463
|
match?: Record<string, {
|
|
458
464
|
equals?: string | number | boolean | undefined;
|
|
459
465
|
contains?: string | undefined;
|
|
@@ -492,7 +498,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
492
498
|
maxHeight?: number | undefined;
|
|
493
499
|
} | {
|
|
494
500
|
type: "session_metric";
|
|
495
|
-
key:
|
|
501
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
496
502
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
497
503
|
threshold: number;
|
|
498
504
|
} | {
|
|
@@ -515,7 +521,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
515
521
|
count: number;
|
|
516
522
|
withinMs?: number | undefined;
|
|
517
523
|
counter?: {
|
|
518
|
-
events:
|
|
524
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
519
525
|
match?: Record<string, {
|
|
520
526
|
equals?: string | number | boolean | undefined;
|
|
521
527
|
contains?: string | undefined;
|
|
@@ -554,7 +560,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
554
560
|
maxHeight?: number | undefined;
|
|
555
561
|
} | {
|
|
556
562
|
type: "session_metric";
|
|
557
|
-
key:
|
|
563
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
558
564
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
559
565
|
threshold: number;
|
|
560
566
|
} | {
|
|
@@ -577,7 +583,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
577
583
|
count: number;
|
|
578
584
|
withinMs?: number | undefined;
|
|
579
585
|
counter?: {
|
|
580
|
-
events:
|
|
586
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
581
587
|
match?: Record<string, {
|
|
582
588
|
equals?: string | number | boolean | undefined;
|
|
583
589
|
contains?: string | undefined;
|
|
@@ -642,9 +648,17 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
642
648
|
method?: "GET" | "POST" | undefined;
|
|
643
649
|
timeoutMs?: number | undefined;
|
|
644
650
|
}>]>>>;
|
|
651
|
+
} & {
|
|
652
|
+
readonly id: z.ZodOptional<z.ZodString>;
|
|
653
|
+
readonly title: z.ZodOptional<z.ZodString>;
|
|
654
|
+
readonly description: z.ZodOptional<z.ZodString>;
|
|
655
|
+
readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
645
656
|
}, "strip", z.ZodTypeAny, {
|
|
646
657
|
badgeId: string;
|
|
647
658
|
kind: "gamification:awardBadge";
|
|
659
|
+
id?: string | undefined;
|
|
660
|
+
description?: string | undefined;
|
|
661
|
+
validation?: string[] | undefined;
|
|
648
662
|
anchorId?: {
|
|
649
663
|
selector: string;
|
|
650
664
|
route: string | string[];
|
|
@@ -679,7 +693,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
679
693
|
maxHeight?: number | undefined;
|
|
680
694
|
} | {
|
|
681
695
|
type: "session_metric";
|
|
682
|
-
key:
|
|
696
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
683
697
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
684
698
|
threshold: number;
|
|
685
699
|
} | {
|
|
@@ -702,7 +716,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
702
716
|
count: number;
|
|
703
717
|
withinMs?: number | undefined;
|
|
704
718
|
counter?: {
|
|
705
|
-
events:
|
|
719
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
706
720
|
match?: Record<string, {
|
|
707
721
|
equals?: string | number | boolean | undefined;
|
|
708
722
|
contains?: string | undefined;
|
|
@@ -731,9 +745,13 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
731
745
|
method?: "GET" | "POST" | undefined;
|
|
732
746
|
timeoutMs?: number | undefined;
|
|
733
747
|
} | null | undefined;
|
|
748
|
+
title?: string | undefined;
|
|
734
749
|
}, {
|
|
735
750
|
badgeId: string;
|
|
736
751
|
kind: "gamification:awardBadge";
|
|
752
|
+
id?: string | undefined;
|
|
753
|
+
description?: string | undefined;
|
|
754
|
+
validation?: string[] | undefined;
|
|
737
755
|
anchorId?: {
|
|
738
756
|
selector: string;
|
|
739
757
|
route: string | string[];
|
|
@@ -768,7 +786,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
768
786
|
maxHeight?: number | undefined;
|
|
769
787
|
} | {
|
|
770
788
|
type: "session_metric";
|
|
771
|
-
key:
|
|
789
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
772
790
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
773
791
|
threshold: number;
|
|
774
792
|
} | {
|
|
@@ -791,7 +809,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
791
809
|
count: number;
|
|
792
810
|
withinMs?: number | undefined;
|
|
793
811
|
counter?: {
|
|
794
|
-
events:
|
|
812
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
795
813
|
match?: Record<string, {
|
|
796
814
|
equals?: string | number | boolean | undefined;
|
|
797
815
|
contains?: string | undefined;
|
|
@@ -820,6 +838,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
|
|
|
820
838
|
method?: "GET" | "POST" | undefined;
|
|
821
839
|
timeoutMs?: number | undefined;
|
|
822
840
|
} | null | undefined;
|
|
841
|
+
title?: string | undefined;
|
|
823
842
|
}>;
|
|
824
843
|
/**
|
|
825
844
|
* Schema for adding points to a user's score.
|
|
@@ -907,17 +926,17 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
907
926
|
maxHeight?: number | undefined;
|
|
908
927
|
}>, z.ZodObject<{
|
|
909
928
|
type: z.ZodLiteral<"session_metric">;
|
|
910
|
-
key: z.
|
|
929
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
911
930
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
912
931
|
threshold: z.ZodNumber;
|
|
913
932
|
}, "strip", z.ZodTypeAny, {
|
|
914
933
|
type: "session_metric";
|
|
915
|
-
key:
|
|
934
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
916
935
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
917
936
|
threshold: number;
|
|
918
937
|
}, {
|
|
919
938
|
type: "session_metric";
|
|
920
|
-
key:
|
|
939
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
921
940
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
922
941
|
threshold: number;
|
|
923
942
|
}>, z.ZodObject<{
|
|
@@ -966,8 +985,8 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
966
985
|
count: z.ZodNumber;
|
|
967
986
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
968
987
|
counter: z.ZodOptional<z.ZodObject<{
|
|
969
|
-
events: z.ZodArray<z.
|
|
970
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
988
|
+
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", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "many">;
|
|
989
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
971
990
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
972
991
|
contains: z.ZodOptional<z.ZodString>;
|
|
973
992
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -976,15 +995,21 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
976
995
|
}, {
|
|
977
996
|
equals?: string | number | boolean | undefined;
|
|
978
997
|
contains?: string | undefined;
|
|
998
|
+
}>, {
|
|
999
|
+
equals?: string | number | boolean | undefined;
|
|
1000
|
+
contains?: string | undefined;
|
|
1001
|
+
}, {
|
|
1002
|
+
equals?: string | number | boolean | undefined;
|
|
1003
|
+
contains?: string | undefined;
|
|
979
1004
|
}>>>;
|
|
980
1005
|
}, "strip", z.ZodTypeAny, {
|
|
981
|
-
events:
|
|
1006
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
982
1007
|
match?: Record<string, {
|
|
983
1008
|
equals?: string | number | boolean | undefined;
|
|
984
1009
|
contains?: string | undefined;
|
|
985
1010
|
}> | undefined;
|
|
986
1011
|
}, {
|
|
987
|
-
events:
|
|
1012
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
988
1013
|
match?: Record<string, {
|
|
989
1014
|
equals?: string | number | boolean | undefined;
|
|
990
1015
|
contains?: string | undefined;
|
|
@@ -997,7 +1022,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
997
1022
|
count: number;
|
|
998
1023
|
withinMs?: number | undefined;
|
|
999
1024
|
counter?: {
|
|
1000
|
-
events:
|
|
1025
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1001
1026
|
match?: Record<string, {
|
|
1002
1027
|
equals?: string | number | boolean | undefined;
|
|
1003
1028
|
contains?: string | undefined;
|
|
@@ -1010,7 +1035,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1010
1035
|
count: number;
|
|
1011
1036
|
withinMs?: number | undefined;
|
|
1012
1037
|
counter?: {
|
|
1013
|
-
events:
|
|
1038
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1014
1039
|
match?: Record<string, {
|
|
1015
1040
|
equals?: string | number | boolean | undefined;
|
|
1016
1041
|
contains?: string | undefined;
|
|
@@ -1045,7 +1070,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1045
1070
|
maxHeight?: number | undefined;
|
|
1046
1071
|
} | {
|
|
1047
1072
|
type: "session_metric";
|
|
1048
|
-
key:
|
|
1073
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1049
1074
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1050
1075
|
threshold: number;
|
|
1051
1076
|
} | {
|
|
@@ -1068,7 +1093,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1068
1093
|
count: number;
|
|
1069
1094
|
withinMs?: number | undefined;
|
|
1070
1095
|
counter?: {
|
|
1071
|
-
events:
|
|
1096
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1072
1097
|
match?: Record<string, {
|
|
1073
1098
|
equals?: string | number | boolean | undefined;
|
|
1074
1099
|
contains?: string | undefined;
|
|
@@ -1103,7 +1128,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1103
1128
|
maxHeight?: number | undefined;
|
|
1104
1129
|
} | {
|
|
1105
1130
|
type: "session_metric";
|
|
1106
|
-
key:
|
|
1131
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1107
1132
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1108
1133
|
threshold: number;
|
|
1109
1134
|
} | {
|
|
@@ -1126,7 +1151,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1126
1151
|
count: number;
|
|
1127
1152
|
withinMs?: number | undefined;
|
|
1128
1153
|
counter?: {
|
|
1129
|
-
events:
|
|
1154
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1130
1155
|
match?: Record<string, {
|
|
1131
1156
|
equals?: string | number | boolean | undefined;
|
|
1132
1157
|
contains?: string | undefined;
|
|
@@ -1165,7 +1190,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1165
1190
|
maxHeight?: number | undefined;
|
|
1166
1191
|
} | {
|
|
1167
1192
|
type: "session_metric";
|
|
1168
|
-
key:
|
|
1193
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1169
1194
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1170
1195
|
threshold: number;
|
|
1171
1196
|
} | {
|
|
@@ -1188,7 +1213,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1188
1213
|
count: number;
|
|
1189
1214
|
withinMs?: number | undefined;
|
|
1190
1215
|
counter?: {
|
|
1191
|
-
events:
|
|
1216
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1192
1217
|
match?: Record<string, {
|
|
1193
1218
|
equals?: string | number | boolean | undefined;
|
|
1194
1219
|
contains?: string | undefined;
|
|
@@ -1227,7 +1252,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1227
1252
|
maxHeight?: number | undefined;
|
|
1228
1253
|
} | {
|
|
1229
1254
|
type: "session_metric";
|
|
1230
|
-
key:
|
|
1255
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1231
1256
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1232
1257
|
threshold: number;
|
|
1233
1258
|
} | {
|
|
@@ -1250,7 +1275,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1250
1275
|
count: number;
|
|
1251
1276
|
withinMs?: number | undefined;
|
|
1252
1277
|
counter?: {
|
|
1253
|
-
events:
|
|
1278
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1254
1279
|
match?: Record<string, {
|
|
1255
1280
|
equals?: string | number | boolean | undefined;
|
|
1256
1281
|
contains?: string | undefined;
|
|
@@ -1315,10 +1340,18 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1315
1340
|
method?: "GET" | "POST" | undefined;
|
|
1316
1341
|
timeoutMs?: number | undefined;
|
|
1317
1342
|
}>]>>>;
|
|
1343
|
+
} & {
|
|
1344
|
+
readonly id: z.ZodOptional<z.ZodString>;
|
|
1345
|
+
readonly title: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
readonly description: z.ZodOptional<z.ZodString>;
|
|
1347
|
+
readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1318
1348
|
}, "strip", z.ZodTypeAny, {
|
|
1319
1349
|
points: number;
|
|
1320
1350
|
kind: "gamification:addPoints";
|
|
1321
1351
|
reason?: string | undefined;
|
|
1352
|
+
id?: string | undefined;
|
|
1353
|
+
description?: string | undefined;
|
|
1354
|
+
validation?: string[] | undefined;
|
|
1322
1355
|
label?: string | undefined;
|
|
1323
1356
|
triggerWhen?: {
|
|
1324
1357
|
type: "rules";
|
|
@@ -1349,7 +1382,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1349
1382
|
maxHeight?: number | undefined;
|
|
1350
1383
|
} | {
|
|
1351
1384
|
type: "session_metric";
|
|
1352
|
-
key:
|
|
1385
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1353
1386
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1354
1387
|
threshold: number;
|
|
1355
1388
|
} | {
|
|
@@ -1372,7 +1405,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1372
1405
|
count: number;
|
|
1373
1406
|
withinMs?: number | undefined;
|
|
1374
1407
|
counter?: {
|
|
1375
|
-
events:
|
|
1408
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1376
1409
|
match?: Record<string, {
|
|
1377
1410
|
equals?: string | number | boolean | undefined;
|
|
1378
1411
|
contains?: string | undefined;
|
|
@@ -1401,10 +1434,14 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1401
1434
|
method?: "GET" | "POST" | undefined;
|
|
1402
1435
|
timeoutMs?: number | undefined;
|
|
1403
1436
|
} | null | undefined;
|
|
1437
|
+
title?: string | undefined;
|
|
1404
1438
|
}, {
|
|
1405
1439
|
points: number;
|
|
1406
1440
|
kind: "gamification:addPoints";
|
|
1407
1441
|
reason?: string | undefined;
|
|
1442
|
+
id?: string | undefined;
|
|
1443
|
+
description?: string | undefined;
|
|
1444
|
+
validation?: string[] | undefined;
|
|
1408
1445
|
label?: string | undefined;
|
|
1409
1446
|
triggerWhen?: {
|
|
1410
1447
|
type: "rules";
|
|
@@ -1435,7 +1472,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1435
1472
|
maxHeight?: number | undefined;
|
|
1436
1473
|
} | {
|
|
1437
1474
|
type: "session_metric";
|
|
1438
|
-
key:
|
|
1475
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1439
1476
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1440
1477
|
threshold: number;
|
|
1441
1478
|
} | {
|
|
@@ -1458,7 +1495,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1458
1495
|
count: number;
|
|
1459
1496
|
withinMs?: number | undefined;
|
|
1460
1497
|
counter?: {
|
|
1461
|
-
events:
|
|
1498
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1462
1499
|
match?: Record<string, {
|
|
1463
1500
|
equals?: string | number | boolean | undefined;
|
|
1464
1501
|
contains?: string | undefined;
|
|
@@ -1487,6 +1524,7 @@ export declare const AddPointsSchema: z.ZodObject<{
|
|
|
1487
1524
|
method?: "GET" | "POST" | undefined;
|
|
1488
1525
|
timeoutMs?: number | undefined;
|
|
1489
1526
|
} | null | undefined;
|
|
1527
|
+
title?: string | undefined;
|
|
1490
1528
|
}>;
|
|
1491
1529
|
/**
|
|
1492
1530
|
* Action step schemas for unified JSON Schema generation.
|
|
@@ -1500,7 +1538,7 @@ export declare const actionStepSchemas: ({
|
|
|
1500
1538
|
badgeId: z.ZodString;
|
|
1501
1539
|
anchorId: z.ZodOptional<z.ZodObject<{
|
|
1502
1540
|
selector: z.ZodString;
|
|
1503
|
-
route: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1541
|
+
route: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string | string[], string | string[]>;
|
|
1504
1542
|
}, "strict", z.ZodTypeAny, {
|
|
1505
1543
|
selector: string;
|
|
1506
1544
|
route: string | string[];
|
|
@@ -1587,17 +1625,17 @@ export declare const actionStepSchemas: ({
|
|
|
1587
1625
|
maxHeight?: number | undefined;
|
|
1588
1626
|
}>, z.ZodObject<{
|
|
1589
1627
|
type: z.ZodLiteral<"session_metric">;
|
|
1590
|
-
key: z.
|
|
1628
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
1591
1629
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
1592
1630
|
threshold: z.ZodNumber;
|
|
1593
1631
|
}, "strip", z.ZodTypeAny, {
|
|
1594
1632
|
type: "session_metric";
|
|
1595
|
-
key:
|
|
1633
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1596
1634
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1597
1635
|
threshold: number;
|
|
1598
1636
|
}, {
|
|
1599
1637
|
type: "session_metric";
|
|
1600
|
-
key:
|
|
1638
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1601
1639
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1602
1640
|
threshold: number;
|
|
1603
1641
|
}>, z.ZodObject<{
|
|
@@ -1646,8 +1684,8 @@ export declare const actionStepSchemas: ({
|
|
|
1646
1684
|
count: z.ZodNumber;
|
|
1647
1685
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
1648
1686
|
counter: z.ZodOptional<z.ZodObject<{
|
|
1649
|
-
events: z.ZodArray<z.
|
|
1650
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1687
|
+
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", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "many">;
|
|
1688
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
1651
1689
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1652
1690
|
contains: z.ZodOptional<z.ZodString>;
|
|
1653
1691
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1656,15 +1694,21 @@ export declare const actionStepSchemas: ({
|
|
|
1656
1694
|
}, {
|
|
1657
1695
|
equals?: string | number | boolean | undefined;
|
|
1658
1696
|
contains?: string | undefined;
|
|
1697
|
+
}>, {
|
|
1698
|
+
equals?: string | number | boolean | undefined;
|
|
1699
|
+
contains?: string | undefined;
|
|
1700
|
+
}, {
|
|
1701
|
+
equals?: string | number | boolean | undefined;
|
|
1702
|
+
contains?: string | undefined;
|
|
1659
1703
|
}>>>;
|
|
1660
1704
|
}, "strip", z.ZodTypeAny, {
|
|
1661
|
-
events:
|
|
1705
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1662
1706
|
match?: Record<string, {
|
|
1663
1707
|
equals?: string | number | boolean | undefined;
|
|
1664
1708
|
contains?: string | undefined;
|
|
1665
1709
|
}> | undefined;
|
|
1666
1710
|
}, {
|
|
1667
|
-
events:
|
|
1711
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1668
1712
|
match?: Record<string, {
|
|
1669
1713
|
equals?: string | number | boolean | undefined;
|
|
1670
1714
|
contains?: string | undefined;
|
|
@@ -1677,7 +1721,7 @@ export declare const actionStepSchemas: ({
|
|
|
1677
1721
|
count: number;
|
|
1678
1722
|
withinMs?: number | undefined;
|
|
1679
1723
|
counter?: {
|
|
1680
|
-
events:
|
|
1724
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1681
1725
|
match?: Record<string, {
|
|
1682
1726
|
equals?: string | number | boolean | undefined;
|
|
1683
1727
|
contains?: string | undefined;
|
|
@@ -1690,7 +1734,7 @@ export declare const actionStepSchemas: ({
|
|
|
1690
1734
|
count: number;
|
|
1691
1735
|
withinMs?: number | undefined;
|
|
1692
1736
|
counter?: {
|
|
1693
|
-
events:
|
|
1737
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1694
1738
|
match?: Record<string, {
|
|
1695
1739
|
equals?: string | number | boolean | undefined;
|
|
1696
1740
|
contains?: string | undefined;
|
|
@@ -1725,7 +1769,7 @@ export declare const actionStepSchemas: ({
|
|
|
1725
1769
|
maxHeight?: number | undefined;
|
|
1726
1770
|
} | {
|
|
1727
1771
|
type: "session_metric";
|
|
1728
|
-
key:
|
|
1772
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1729
1773
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1730
1774
|
threshold: number;
|
|
1731
1775
|
} | {
|
|
@@ -1748,7 +1792,7 @@ export declare const actionStepSchemas: ({
|
|
|
1748
1792
|
count: number;
|
|
1749
1793
|
withinMs?: number | undefined;
|
|
1750
1794
|
counter?: {
|
|
1751
|
-
events:
|
|
1795
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1752
1796
|
match?: Record<string, {
|
|
1753
1797
|
equals?: string | number | boolean | undefined;
|
|
1754
1798
|
contains?: string | undefined;
|
|
@@ -1783,7 +1827,7 @@ export declare const actionStepSchemas: ({
|
|
|
1783
1827
|
maxHeight?: number | undefined;
|
|
1784
1828
|
} | {
|
|
1785
1829
|
type: "session_metric";
|
|
1786
|
-
key:
|
|
1830
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1787
1831
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1788
1832
|
threshold: number;
|
|
1789
1833
|
} | {
|
|
@@ -1806,7 +1850,7 @@ export declare const actionStepSchemas: ({
|
|
|
1806
1850
|
count: number;
|
|
1807
1851
|
withinMs?: number | undefined;
|
|
1808
1852
|
counter?: {
|
|
1809
|
-
events:
|
|
1853
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1810
1854
|
match?: Record<string, {
|
|
1811
1855
|
equals?: string | number | boolean | undefined;
|
|
1812
1856
|
contains?: string | undefined;
|
|
@@ -1845,7 +1889,7 @@ export declare const actionStepSchemas: ({
|
|
|
1845
1889
|
maxHeight?: number | undefined;
|
|
1846
1890
|
} | {
|
|
1847
1891
|
type: "session_metric";
|
|
1848
|
-
key:
|
|
1892
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1849
1893
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1850
1894
|
threshold: number;
|
|
1851
1895
|
} | {
|
|
@@ -1868,7 +1912,7 @@ export declare const actionStepSchemas: ({
|
|
|
1868
1912
|
count: number;
|
|
1869
1913
|
withinMs?: number | undefined;
|
|
1870
1914
|
counter?: {
|
|
1871
|
-
events:
|
|
1915
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1872
1916
|
match?: Record<string, {
|
|
1873
1917
|
equals?: string | number | boolean | undefined;
|
|
1874
1918
|
contains?: string | undefined;
|
|
@@ -1907,7 +1951,7 @@ export declare const actionStepSchemas: ({
|
|
|
1907
1951
|
maxHeight?: number | undefined;
|
|
1908
1952
|
} | {
|
|
1909
1953
|
type: "session_metric";
|
|
1910
|
-
key:
|
|
1954
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
1911
1955
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1912
1956
|
threshold: number;
|
|
1913
1957
|
} | {
|
|
@@ -1930,7 +1974,7 @@ export declare const actionStepSchemas: ({
|
|
|
1930
1974
|
count: number;
|
|
1931
1975
|
withinMs?: number | undefined;
|
|
1932
1976
|
counter?: {
|
|
1933
|
-
events:
|
|
1977
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
1934
1978
|
match?: Record<string, {
|
|
1935
1979
|
equals?: string | number | boolean | undefined;
|
|
1936
1980
|
contains?: string | undefined;
|
|
@@ -1995,9 +2039,17 @@ export declare const actionStepSchemas: ({
|
|
|
1995
2039
|
method?: "GET" | "POST" | undefined;
|
|
1996
2040
|
timeoutMs?: number | undefined;
|
|
1997
2041
|
}>]>>>;
|
|
2042
|
+
} & {
|
|
2043
|
+
readonly id: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
readonly title: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
readonly description: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1998
2047
|
}, "strip", z.ZodTypeAny, {
|
|
1999
2048
|
badgeId: string;
|
|
2000
2049
|
kind: "gamification:awardBadge";
|
|
2050
|
+
id?: string | undefined;
|
|
2051
|
+
description?: string | undefined;
|
|
2052
|
+
validation?: string[] | undefined;
|
|
2001
2053
|
anchorId?: {
|
|
2002
2054
|
selector: string;
|
|
2003
2055
|
route: string | string[];
|
|
@@ -2032,7 +2084,7 @@ export declare const actionStepSchemas: ({
|
|
|
2032
2084
|
maxHeight?: number | undefined;
|
|
2033
2085
|
} | {
|
|
2034
2086
|
type: "session_metric";
|
|
2035
|
-
key:
|
|
2087
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2036
2088
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2037
2089
|
threshold: number;
|
|
2038
2090
|
} | {
|
|
@@ -2055,7 +2107,7 @@ export declare const actionStepSchemas: ({
|
|
|
2055
2107
|
count: number;
|
|
2056
2108
|
withinMs?: number | undefined;
|
|
2057
2109
|
counter?: {
|
|
2058
|
-
events:
|
|
2110
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2059
2111
|
match?: Record<string, {
|
|
2060
2112
|
equals?: string | number | boolean | undefined;
|
|
2061
2113
|
contains?: string | undefined;
|
|
@@ -2084,9 +2136,13 @@ export declare const actionStepSchemas: ({
|
|
|
2084
2136
|
method?: "GET" | "POST" | undefined;
|
|
2085
2137
|
timeoutMs?: number | undefined;
|
|
2086
2138
|
} | null | undefined;
|
|
2139
|
+
title?: string | undefined;
|
|
2087
2140
|
}, {
|
|
2088
2141
|
badgeId: string;
|
|
2089
2142
|
kind: "gamification:awardBadge";
|
|
2143
|
+
id?: string | undefined;
|
|
2144
|
+
description?: string | undefined;
|
|
2145
|
+
validation?: string[] | undefined;
|
|
2090
2146
|
anchorId?: {
|
|
2091
2147
|
selector: string;
|
|
2092
2148
|
route: string | string[];
|
|
@@ -2121,7 +2177,7 @@ export declare const actionStepSchemas: ({
|
|
|
2121
2177
|
maxHeight?: number | undefined;
|
|
2122
2178
|
} | {
|
|
2123
2179
|
type: "session_metric";
|
|
2124
|
-
key:
|
|
2180
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2125
2181
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2126
2182
|
threshold: number;
|
|
2127
2183
|
} | {
|
|
@@ -2144,7 +2200,7 @@ export declare const actionStepSchemas: ({
|
|
|
2144
2200
|
count: number;
|
|
2145
2201
|
withinMs?: number | undefined;
|
|
2146
2202
|
counter?: {
|
|
2147
|
-
events:
|
|
2203
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2148
2204
|
match?: Record<string, {
|
|
2149
2205
|
equals?: string | number | boolean | undefined;
|
|
2150
2206
|
contains?: string | undefined;
|
|
@@ -2173,6 +2229,7 @@ export declare const actionStepSchemas: ({
|
|
|
2173
2229
|
method?: "GET" | "POST" | undefined;
|
|
2174
2230
|
timeoutMs?: number | undefined;
|
|
2175
2231
|
} | null | undefined;
|
|
2232
|
+
title?: string | undefined;
|
|
2176
2233
|
}>;
|
|
2177
2234
|
} | {
|
|
2178
2235
|
defName: string;
|
|
@@ -2259,17 +2316,17 @@ export declare const actionStepSchemas: ({
|
|
|
2259
2316
|
maxHeight?: number | undefined;
|
|
2260
2317
|
}>, z.ZodObject<{
|
|
2261
2318
|
type: z.ZodLiteral<"session_metric">;
|
|
2262
|
-
key: z.
|
|
2319
|
+
key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
|
|
2263
2320
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
2264
2321
|
threshold: z.ZodNumber;
|
|
2265
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2266
2323
|
type: "session_metric";
|
|
2267
|
-
key:
|
|
2324
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2268
2325
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2269
2326
|
threshold: number;
|
|
2270
2327
|
}, {
|
|
2271
2328
|
type: "session_metric";
|
|
2272
|
-
key:
|
|
2329
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2273
2330
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2274
2331
|
threshold: number;
|
|
2275
2332
|
}>, z.ZodObject<{
|
|
@@ -2318,8 +2375,8 @@ export declare const actionStepSchemas: ({
|
|
|
2318
2375
|
count: z.ZodNumber;
|
|
2319
2376
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
2320
2377
|
counter: z.ZodOptional<z.ZodObject<{
|
|
2321
|
-
events: z.ZodArray<z.
|
|
2322
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2378
|
+
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", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "many">;
|
|
2379
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2323
2380
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2324
2381
|
contains: z.ZodOptional<z.ZodString>;
|
|
2325
2382
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2328,15 +2385,21 @@ export declare const actionStepSchemas: ({
|
|
|
2328
2385
|
}, {
|
|
2329
2386
|
equals?: string | number | boolean | undefined;
|
|
2330
2387
|
contains?: string | undefined;
|
|
2388
|
+
}>, {
|
|
2389
|
+
equals?: string | number | boolean | undefined;
|
|
2390
|
+
contains?: string | undefined;
|
|
2391
|
+
}, {
|
|
2392
|
+
equals?: string | number | boolean | undefined;
|
|
2393
|
+
contains?: string | undefined;
|
|
2331
2394
|
}>>>;
|
|
2332
2395
|
}, "strip", z.ZodTypeAny, {
|
|
2333
|
-
events:
|
|
2396
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2334
2397
|
match?: Record<string, {
|
|
2335
2398
|
equals?: string | number | boolean | undefined;
|
|
2336
2399
|
contains?: string | undefined;
|
|
2337
2400
|
}> | undefined;
|
|
2338
2401
|
}, {
|
|
2339
|
-
events:
|
|
2402
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2340
2403
|
match?: Record<string, {
|
|
2341
2404
|
equals?: string | number | boolean | undefined;
|
|
2342
2405
|
contains?: string | undefined;
|
|
@@ -2349,7 +2412,7 @@ export declare const actionStepSchemas: ({
|
|
|
2349
2412
|
count: number;
|
|
2350
2413
|
withinMs?: number | undefined;
|
|
2351
2414
|
counter?: {
|
|
2352
|
-
events:
|
|
2415
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2353
2416
|
match?: Record<string, {
|
|
2354
2417
|
equals?: string | number | boolean | undefined;
|
|
2355
2418
|
contains?: string | undefined;
|
|
@@ -2362,7 +2425,7 @@ export declare const actionStepSchemas: ({
|
|
|
2362
2425
|
count: number;
|
|
2363
2426
|
withinMs?: number | undefined;
|
|
2364
2427
|
counter?: {
|
|
2365
|
-
events:
|
|
2428
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2366
2429
|
match?: Record<string, {
|
|
2367
2430
|
equals?: string | number | boolean | undefined;
|
|
2368
2431
|
contains?: string | undefined;
|
|
@@ -2397,7 +2460,7 @@ export declare const actionStepSchemas: ({
|
|
|
2397
2460
|
maxHeight?: number | undefined;
|
|
2398
2461
|
} | {
|
|
2399
2462
|
type: "session_metric";
|
|
2400
|
-
key:
|
|
2463
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2401
2464
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2402
2465
|
threshold: number;
|
|
2403
2466
|
} | {
|
|
@@ -2420,7 +2483,7 @@ export declare const actionStepSchemas: ({
|
|
|
2420
2483
|
count: number;
|
|
2421
2484
|
withinMs?: number | undefined;
|
|
2422
2485
|
counter?: {
|
|
2423
|
-
events:
|
|
2486
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2424
2487
|
match?: Record<string, {
|
|
2425
2488
|
equals?: string | number | boolean | undefined;
|
|
2426
2489
|
contains?: string | undefined;
|
|
@@ -2455,7 +2518,7 @@ export declare const actionStepSchemas: ({
|
|
|
2455
2518
|
maxHeight?: number | undefined;
|
|
2456
2519
|
} | {
|
|
2457
2520
|
type: "session_metric";
|
|
2458
|
-
key:
|
|
2521
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2459
2522
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2460
2523
|
threshold: number;
|
|
2461
2524
|
} | {
|
|
@@ -2478,7 +2541,7 @@ export declare const actionStepSchemas: ({
|
|
|
2478
2541
|
count: number;
|
|
2479
2542
|
withinMs?: number | undefined;
|
|
2480
2543
|
counter?: {
|
|
2481
|
-
events:
|
|
2544
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2482
2545
|
match?: Record<string, {
|
|
2483
2546
|
equals?: string | number | boolean | undefined;
|
|
2484
2547
|
contains?: string | undefined;
|
|
@@ -2517,7 +2580,7 @@ export declare const actionStepSchemas: ({
|
|
|
2517
2580
|
maxHeight?: number | undefined;
|
|
2518
2581
|
} | {
|
|
2519
2582
|
type: "session_metric";
|
|
2520
|
-
key:
|
|
2583
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2521
2584
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2522
2585
|
threshold: number;
|
|
2523
2586
|
} | {
|
|
@@ -2540,7 +2603,7 @@ export declare const actionStepSchemas: ({
|
|
|
2540
2603
|
count: number;
|
|
2541
2604
|
withinMs?: number | undefined;
|
|
2542
2605
|
counter?: {
|
|
2543
|
-
events:
|
|
2606
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2544
2607
|
match?: Record<string, {
|
|
2545
2608
|
equals?: string | number | boolean | undefined;
|
|
2546
2609
|
contains?: string | undefined;
|
|
@@ -2579,7 +2642,7 @@ export declare const actionStepSchemas: ({
|
|
|
2579
2642
|
maxHeight?: number | undefined;
|
|
2580
2643
|
} | {
|
|
2581
2644
|
type: "session_metric";
|
|
2582
|
-
key:
|
|
2645
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2583
2646
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2584
2647
|
threshold: number;
|
|
2585
2648
|
} | {
|
|
@@ -2602,7 +2665,7 @@ export declare const actionStepSchemas: ({
|
|
|
2602
2665
|
count: number;
|
|
2603
2666
|
withinMs?: number | undefined;
|
|
2604
2667
|
counter?: {
|
|
2605
|
-
events:
|
|
2668
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2606
2669
|
match?: Record<string, {
|
|
2607
2670
|
equals?: string | number | boolean | undefined;
|
|
2608
2671
|
contains?: string | undefined;
|
|
@@ -2667,10 +2730,18 @@ export declare const actionStepSchemas: ({
|
|
|
2667
2730
|
method?: "GET" | "POST" | undefined;
|
|
2668
2731
|
timeoutMs?: number | undefined;
|
|
2669
2732
|
}>]>>>;
|
|
2733
|
+
} & {
|
|
2734
|
+
readonly id: z.ZodOptional<z.ZodString>;
|
|
2735
|
+
readonly title: z.ZodOptional<z.ZodString>;
|
|
2736
|
+
readonly description: z.ZodOptional<z.ZodString>;
|
|
2737
|
+
readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2670
2738
|
}, "strip", z.ZodTypeAny, {
|
|
2671
2739
|
points: number;
|
|
2672
2740
|
kind: "gamification:addPoints";
|
|
2673
2741
|
reason?: string | undefined;
|
|
2742
|
+
id?: string | undefined;
|
|
2743
|
+
description?: string | undefined;
|
|
2744
|
+
validation?: string[] | undefined;
|
|
2674
2745
|
label?: string | undefined;
|
|
2675
2746
|
triggerWhen?: {
|
|
2676
2747
|
type: "rules";
|
|
@@ -2701,7 +2772,7 @@ export declare const actionStepSchemas: ({
|
|
|
2701
2772
|
maxHeight?: number | undefined;
|
|
2702
2773
|
} | {
|
|
2703
2774
|
type: "session_metric";
|
|
2704
|
-
key:
|
|
2775
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2705
2776
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2706
2777
|
threshold: number;
|
|
2707
2778
|
} | {
|
|
@@ -2724,7 +2795,7 @@ export declare const actionStepSchemas: ({
|
|
|
2724
2795
|
count: number;
|
|
2725
2796
|
withinMs?: number | undefined;
|
|
2726
2797
|
counter?: {
|
|
2727
|
-
events:
|
|
2798
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2728
2799
|
match?: Record<string, {
|
|
2729
2800
|
equals?: string | number | boolean | undefined;
|
|
2730
2801
|
contains?: string | undefined;
|
|
@@ -2753,10 +2824,14 @@ export declare const actionStepSchemas: ({
|
|
|
2753
2824
|
method?: "GET" | "POST" | undefined;
|
|
2754
2825
|
timeoutMs?: number | undefined;
|
|
2755
2826
|
} | null | undefined;
|
|
2827
|
+
title?: string | undefined;
|
|
2756
2828
|
}, {
|
|
2757
2829
|
points: number;
|
|
2758
2830
|
kind: "gamification:addPoints";
|
|
2759
2831
|
reason?: string | undefined;
|
|
2832
|
+
id?: string | undefined;
|
|
2833
|
+
description?: string | undefined;
|
|
2834
|
+
validation?: string[] | undefined;
|
|
2760
2835
|
label?: string | undefined;
|
|
2761
2836
|
triggerWhen?: {
|
|
2762
2837
|
type: "rules";
|
|
@@ -2787,7 +2862,7 @@ export declare const actionStepSchemas: ({
|
|
|
2787
2862
|
maxHeight?: number | undefined;
|
|
2788
2863
|
} | {
|
|
2789
2864
|
type: "session_metric";
|
|
2790
|
-
key:
|
|
2865
|
+
key: "time_on_page" | "page_views" | "scroll_depth";
|
|
2791
2866
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2792
2867
|
threshold: number;
|
|
2793
2868
|
} | {
|
|
@@ -2810,7 +2885,7 @@ export declare const actionStepSchemas: ({
|
|
|
2810
2885
|
count: number;
|
|
2811
2886
|
withinMs?: number | undefined;
|
|
2812
2887
|
counter?: {
|
|
2813
|
-
events:
|
|
2888
|
+
events: ("ui.hover" | "ui.idle" | "ui.hesitate" | "ui.rage_click" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "nav.page_view" | "nav.page_leave")[];
|
|
2814
2889
|
match?: Record<string, {
|
|
2815
2890
|
equals?: string | number | boolean | undefined;
|
|
2816
2891
|
contains?: string | undefined;
|
|
@@ -2839,6 +2914,25 @@ export declare const actionStepSchemas: ({
|
|
|
2839
2914
|
method?: "GET" | "POST" | undefined;
|
|
2840
2915
|
timeoutMs?: number | undefined;
|
|
2841
2916
|
} | null | undefined;
|
|
2917
|
+
title?: string | undefined;
|
|
2842
2918
|
}>;
|
|
2843
2919
|
})[];
|
|
2920
|
+
export declare const CAPABILITIES_DOCUMENTATION: {
|
|
2921
|
+
packageId: string;
|
|
2922
|
+
plannerSummary: string;
|
|
2923
|
+
description: string;
|
|
2924
|
+
whenToUse: {
|
|
2925
|
+
goal: string;
|
|
2926
|
+
action: string;
|
|
2927
|
+
}[];
|
|
2928
|
+
conventions: {
|
|
2929
|
+
name: string;
|
|
2930
|
+
description: string;
|
|
2931
|
+
}[];
|
|
2932
|
+
events: {
|
|
2933
|
+
name: string;
|
|
2934
|
+
when: string;
|
|
2935
|
+
props: string;
|
|
2936
|
+
}[];
|
|
2937
|
+
};
|
|
2844
2938
|
//# sourceMappingURL=schema.d.ts.map
|