@syntrologie/adapt-gamification 2.8.0-canary.62 → 2.8.0-canary.621

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/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[];
@@ -185,11 +185,11 @@ export declare const AwardBadgeSchema: z.ZodObject<{
185
185
  }, "strip", z.ZodTypeAny, {
186
186
  type: "anchor_visible";
187
187
  anchorId: string;
188
- state: "visible" | "present" | "absent";
188
+ state: "absent" | "visible" | "present";
189
189
  }, {
190
190
  type: "anchor_visible";
191
191
  anchorId: string;
192
- state: "visible" | "present" | "absent";
192
+ state: "absent" | "visible" | "present";
193
193
  }>, z.ZodObject<{
194
194
  type: z.ZodLiteral<"event_occurred">;
195
195
  eventName: z.ZodString;
@@ -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.ZodString;
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: string;
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: string;
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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;
@@ -355,7 +361,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
355
361
  } | {
356
362
  type: "anchor_visible";
357
363
  anchorId: string;
358
- state: "visible" | "present" | "absent";
364
+ state: "absent" | "visible" | "present";
359
365
  } | {
360
366
  type: "event_occurred";
361
367
  eventName: string;
@@ -372,7 +378,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
372
378
  maxHeight?: number | undefined;
373
379
  } | {
374
380
  type: "session_metric";
375
- key: string;
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: string[];
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;
@@ -413,7 +419,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
413
419
  } | {
414
420
  type: "anchor_visible";
415
421
  anchorId: string;
416
- state: "visible" | "present" | "absent";
422
+ state: "absent" | "visible" | "present";
417
423
  } | {
418
424
  type: "event_occurred";
419
425
  eventName: string;
@@ -430,7 +436,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
430
436
  maxHeight?: number | undefined;
431
437
  } | {
432
438
  type: "session_metric";
433
- key: string;
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: string[];
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;
@@ -475,7 +481,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
475
481
  } | {
476
482
  type: "anchor_visible";
477
483
  anchorId: string;
478
- state: "visible" | "present" | "absent";
484
+ state: "absent" | "visible" | "present";
479
485
  } | {
480
486
  type: "event_occurred";
481
487
  eventName: string;
@@ -492,7 +498,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
492
498
  maxHeight?: number | undefined;
493
499
  } | {
494
500
  type: "session_metric";
495
- key: string;
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: string[];
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;
@@ -537,7 +543,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
537
543
  } | {
538
544
  type: "anchor_visible";
539
545
  anchorId: string;
540
- state: "visible" | "present" | "absent";
546
+ state: "absent" | "visible" | "present";
541
547
  } | {
542
548
  type: "event_occurred";
543
549
  eventName: string;
@@ -554,7 +560,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
554
560
  maxHeight?: number | undefined;
555
561
  } | {
556
562
  type: "session_metric";
557
- key: string;
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: string[];
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;
@@ -595,14 +601,14 @@ export declare const AwardBadgeSchema: z.ZodObject<{
595
601
  below: z.ZodUnknown;
596
602
  }, "strip", z.ZodTypeAny, {
597
603
  type: "score";
598
- threshold: number;
599
604
  field: string;
605
+ threshold: number;
600
606
  above?: unknown;
601
607
  below?: unknown;
602
608
  }, {
603
609
  type: "score";
604
- threshold: number;
605
610
  field: string;
611
+ threshold: number;
606
612
  above?: unknown;
607
613
  below?: unknown;
608
614
  }>, z.ZodObject<{
@@ -632,19 +638,27 @@ export declare const AwardBadgeSchema: z.ZodObject<{
632
638
  }, "strip", z.ZodTypeAny, {
633
639
  type: "external";
634
640
  endpoint: string;
635
- default?: unknown;
636
641
  method?: "GET" | "POST" | undefined;
642
+ default?: unknown;
637
643
  timeoutMs?: number | undefined;
638
644
  }, {
639
645
  type: "external";
640
646
  endpoint: string;
641
- default?: unknown;
642
647
  method?: "GET" | "POST" | undefined;
648
+ default?: unknown;
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[];
@@ -662,7 +676,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
662
676
  } | {
663
677
  type: "anchor_visible";
664
678
  anchorId: string;
665
- state: "visible" | "present" | "absent";
679
+ state: "absent" | "visible" | "present";
666
680
  } | {
667
681
  type: "event_occurred";
668
682
  eventName: 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: string;
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: string[];
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;
@@ -714,8 +728,8 @@ export declare const AwardBadgeSchema: z.ZodObject<{
714
728
  default?: unknown;
715
729
  } | {
716
730
  type: "score";
717
- threshold: number;
718
731
  field: string;
732
+ threshold: number;
719
733
  above?: unknown;
720
734
  below?: unknown;
721
735
  } | {
@@ -727,13 +741,17 @@ export declare const AwardBadgeSchema: z.ZodObject<{
727
741
  } | {
728
742
  type: "external";
729
743
  endpoint: string;
730
- default?: unknown;
731
744
  method?: "GET" | "POST" | undefined;
745
+ default?: unknown;
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[];
@@ -751,7 +769,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
751
769
  } | {
752
770
  type: "anchor_visible";
753
771
  anchorId: string;
754
- state: "visible" | "present" | "absent";
772
+ state: "absent" | "visible" | "present";
755
773
  } | {
756
774
  type: "event_occurred";
757
775
  eventName: 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: string;
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: string[];
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;
@@ -803,8 +821,8 @@ export declare const AwardBadgeSchema: z.ZodObject<{
803
821
  default?: unknown;
804
822
  } | {
805
823
  type: "score";
806
- threshold: number;
807
824
  field: string;
825
+ threshold: number;
808
826
  above?: unknown;
809
827
  below?: unknown;
810
828
  } | {
@@ -816,10 +834,11 @@ export declare const AwardBadgeSchema: z.ZodObject<{
816
834
  } | {
817
835
  type: "external";
818
836
  endpoint: string;
819
- default?: unknown;
820
837
  method?: "GET" | "POST" | undefined;
838
+ default?: unknown;
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.
@@ -858,11 +877,11 @@ export declare const AddPointsSchema: z.ZodObject<{
858
877
  }, "strip", z.ZodTypeAny, {
859
878
  type: "anchor_visible";
860
879
  anchorId: string;
861
- state: "visible" | "present" | "absent";
880
+ state: "absent" | "visible" | "present";
862
881
  }, {
863
882
  type: "anchor_visible";
864
883
  anchorId: string;
865
- state: "visible" | "present" | "absent";
884
+ state: "absent" | "visible" | "present";
866
885
  }>, z.ZodObject<{
867
886
  type: z.ZodLiteral<"event_occurred">;
868
887
  eventName: z.ZodString;
@@ -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.ZodString;
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: string;
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: string;
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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;
@@ -1028,7 +1053,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1028
1053
  } | {
1029
1054
  type: "anchor_visible";
1030
1055
  anchorId: string;
1031
- state: "visible" | "present" | "absent";
1056
+ state: "absent" | "visible" | "present";
1032
1057
  } | {
1033
1058
  type: "event_occurred";
1034
1059
  eventName: string;
@@ -1045,7 +1070,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1045
1070
  maxHeight?: number | undefined;
1046
1071
  } | {
1047
1072
  type: "session_metric";
1048
- key: string;
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: string[];
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;
@@ -1086,7 +1111,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1086
1111
  } | {
1087
1112
  type: "anchor_visible";
1088
1113
  anchorId: string;
1089
- state: "visible" | "present" | "absent";
1114
+ state: "absent" | "visible" | "present";
1090
1115
  } | {
1091
1116
  type: "event_occurred";
1092
1117
  eventName: string;
@@ -1103,7 +1128,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1103
1128
  maxHeight?: number | undefined;
1104
1129
  } | {
1105
1130
  type: "session_metric";
1106
- key: string;
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: string[];
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;
@@ -1148,7 +1173,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1148
1173
  } | {
1149
1174
  type: "anchor_visible";
1150
1175
  anchorId: string;
1151
- state: "visible" | "present" | "absent";
1176
+ state: "absent" | "visible" | "present";
1152
1177
  } | {
1153
1178
  type: "event_occurred";
1154
1179
  eventName: string;
@@ -1165,7 +1190,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1165
1190
  maxHeight?: number | undefined;
1166
1191
  } | {
1167
1192
  type: "session_metric";
1168
- key: string;
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: string[];
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;
@@ -1210,7 +1235,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1210
1235
  } | {
1211
1236
  type: "anchor_visible";
1212
1237
  anchorId: string;
1213
- state: "visible" | "present" | "absent";
1238
+ state: "absent" | "visible" | "present";
1214
1239
  } | {
1215
1240
  type: "event_occurred";
1216
1241
  eventName: string;
@@ -1227,7 +1252,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1227
1252
  maxHeight?: number | undefined;
1228
1253
  } | {
1229
1254
  type: "session_metric";
1230
- key: string;
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: string[];
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;
@@ -1268,14 +1293,14 @@ export declare const AddPointsSchema: z.ZodObject<{
1268
1293
  below: z.ZodUnknown;
1269
1294
  }, "strip", z.ZodTypeAny, {
1270
1295
  type: "score";
1271
- threshold: number;
1272
1296
  field: string;
1297
+ threshold: number;
1273
1298
  above?: unknown;
1274
1299
  below?: unknown;
1275
1300
  }, {
1276
1301
  type: "score";
1277
- threshold: number;
1278
1302
  field: string;
1303
+ threshold: number;
1279
1304
  above?: unknown;
1280
1305
  below?: unknown;
1281
1306
  }>, z.ZodObject<{
@@ -1305,20 +1330,28 @@ export declare const AddPointsSchema: z.ZodObject<{
1305
1330
  }, "strip", z.ZodTypeAny, {
1306
1331
  type: "external";
1307
1332
  endpoint: string;
1308
- default?: unknown;
1309
1333
  method?: "GET" | "POST" | undefined;
1334
+ default?: unknown;
1310
1335
  timeoutMs?: number | undefined;
1311
1336
  }, {
1312
1337
  type: "external";
1313
1338
  endpoint: string;
1314
- default?: unknown;
1315
1339
  method?: "GET" | "POST" | undefined;
1340
+ default?: unknown;
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";
@@ -1332,7 +1365,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1332
1365
  } | {
1333
1366
  type: "anchor_visible";
1334
1367
  anchorId: string;
1335
- state: "visible" | "present" | "absent";
1368
+ state: "absent" | "visible" | "present";
1336
1369
  } | {
1337
1370
  type: "event_occurred";
1338
1371
  eventName: string;
@@ -1349,7 +1382,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1349
1382
  maxHeight?: number | undefined;
1350
1383
  } | {
1351
1384
  type: "session_metric";
1352
- key: string;
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: string[];
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;
@@ -1384,8 +1417,8 @@ export declare const AddPointsSchema: z.ZodObject<{
1384
1417
  default?: unknown;
1385
1418
  } | {
1386
1419
  type: "score";
1387
- threshold: number;
1388
1420
  field: string;
1421
+ threshold: number;
1389
1422
  above?: unknown;
1390
1423
  below?: unknown;
1391
1424
  } | {
@@ -1397,14 +1430,18 @@ export declare const AddPointsSchema: z.ZodObject<{
1397
1430
  } | {
1398
1431
  type: "external";
1399
1432
  endpoint: string;
1400
- default?: unknown;
1401
1433
  method?: "GET" | "POST" | undefined;
1434
+ default?: unknown;
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";
@@ -1418,7 +1455,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1418
1455
  } | {
1419
1456
  type: "anchor_visible";
1420
1457
  anchorId: string;
1421
- state: "visible" | "present" | "absent";
1458
+ state: "absent" | "visible" | "present";
1422
1459
  } | {
1423
1460
  type: "event_occurred";
1424
1461
  eventName: string;
@@ -1435,7 +1472,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1435
1472
  maxHeight?: number | undefined;
1436
1473
  } | {
1437
1474
  type: "session_metric";
1438
- key: string;
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: string[];
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;
@@ -1470,8 +1507,8 @@ export declare const AddPointsSchema: z.ZodObject<{
1470
1507
  default?: unknown;
1471
1508
  } | {
1472
1509
  type: "score";
1473
- threshold: number;
1474
1510
  field: string;
1511
+ threshold: number;
1475
1512
  above?: unknown;
1476
1513
  below?: unknown;
1477
1514
  } | {
@@ -1483,10 +1520,11 @@ export declare const AddPointsSchema: z.ZodObject<{
1483
1520
  } | {
1484
1521
  type: "external";
1485
1522
  endpoint: string;
1486
- default?: unknown;
1487
1523
  method?: "GET" | "POST" | undefined;
1524
+ default?: unknown;
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[];
@@ -1538,11 +1576,11 @@ export declare const actionStepSchemas: ({
1538
1576
  }, "strip", z.ZodTypeAny, {
1539
1577
  type: "anchor_visible";
1540
1578
  anchorId: string;
1541
- state: "visible" | "present" | "absent";
1579
+ state: "absent" | "visible" | "present";
1542
1580
  }, {
1543
1581
  type: "anchor_visible";
1544
1582
  anchorId: string;
1545
- state: "visible" | "present" | "absent";
1583
+ state: "absent" | "visible" | "present";
1546
1584
  }>, z.ZodObject<{
1547
1585
  type: z.ZodLiteral<"event_occurred">;
1548
1586
  eventName: z.ZodString;
@@ -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.ZodString;
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: string;
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: string;
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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;
@@ -1708,7 +1752,7 @@ export declare const actionStepSchemas: ({
1708
1752
  } | {
1709
1753
  type: "anchor_visible";
1710
1754
  anchorId: string;
1711
- state: "visible" | "present" | "absent";
1755
+ state: "absent" | "visible" | "present";
1712
1756
  } | {
1713
1757
  type: "event_occurred";
1714
1758
  eventName: string;
@@ -1725,7 +1769,7 @@ export declare const actionStepSchemas: ({
1725
1769
  maxHeight?: number | undefined;
1726
1770
  } | {
1727
1771
  type: "session_metric";
1728
- key: string;
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: string[];
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;
@@ -1766,7 +1810,7 @@ export declare const actionStepSchemas: ({
1766
1810
  } | {
1767
1811
  type: "anchor_visible";
1768
1812
  anchorId: string;
1769
- state: "visible" | "present" | "absent";
1813
+ state: "absent" | "visible" | "present";
1770
1814
  } | {
1771
1815
  type: "event_occurred";
1772
1816
  eventName: string;
@@ -1783,7 +1827,7 @@ export declare const actionStepSchemas: ({
1783
1827
  maxHeight?: number | undefined;
1784
1828
  } | {
1785
1829
  type: "session_metric";
1786
- key: string;
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: string[];
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;
@@ -1828,7 +1872,7 @@ export declare const actionStepSchemas: ({
1828
1872
  } | {
1829
1873
  type: "anchor_visible";
1830
1874
  anchorId: string;
1831
- state: "visible" | "present" | "absent";
1875
+ state: "absent" | "visible" | "present";
1832
1876
  } | {
1833
1877
  type: "event_occurred";
1834
1878
  eventName: string;
@@ -1845,7 +1889,7 @@ export declare const actionStepSchemas: ({
1845
1889
  maxHeight?: number | undefined;
1846
1890
  } | {
1847
1891
  type: "session_metric";
1848
- key: string;
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: string[];
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;
@@ -1890,7 +1934,7 @@ export declare const actionStepSchemas: ({
1890
1934
  } | {
1891
1935
  type: "anchor_visible";
1892
1936
  anchorId: string;
1893
- state: "visible" | "present" | "absent";
1937
+ state: "absent" | "visible" | "present";
1894
1938
  } | {
1895
1939
  type: "event_occurred";
1896
1940
  eventName: string;
@@ -1907,7 +1951,7 @@ export declare const actionStepSchemas: ({
1907
1951
  maxHeight?: number | undefined;
1908
1952
  } | {
1909
1953
  type: "session_metric";
1910
- key: string;
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: string[];
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;
@@ -1948,14 +1992,14 @@ export declare const actionStepSchemas: ({
1948
1992
  below: z.ZodUnknown;
1949
1993
  }, "strip", z.ZodTypeAny, {
1950
1994
  type: "score";
1951
- threshold: number;
1952
1995
  field: string;
1996
+ threshold: number;
1953
1997
  above?: unknown;
1954
1998
  below?: unknown;
1955
1999
  }, {
1956
2000
  type: "score";
1957
- threshold: number;
1958
2001
  field: string;
2002
+ threshold: number;
1959
2003
  above?: unknown;
1960
2004
  below?: unknown;
1961
2005
  }>, z.ZodObject<{
@@ -1985,19 +2029,27 @@ export declare const actionStepSchemas: ({
1985
2029
  }, "strip", z.ZodTypeAny, {
1986
2030
  type: "external";
1987
2031
  endpoint: string;
1988
- default?: unknown;
1989
2032
  method?: "GET" | "POST" | undefined;
2033
+ default?: unknown;
1990
2034
  timeoutMs?: number | undefined;
1991
2035
  }, {
1992
2036
  type: "external";
1993
2037
  endpoint: string;
1994
- default?: unknown;
1995
2038
  method?: "GET" | "POST" | undefined;
2039
+ default?: unknown;
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[];
@@ -2015,7 +2067,7 @@ export declare const actionStepSchemas: ({
2015
2067
  } | {
2016
2068
  type: "anchor_visible";
2017
2069
  anchorId: string;
2018
- state: "visible" | "present" | "absent";
2070
+ state: "absent" | "visible" | "present";
2019
2071
  } | {
2020
2072
  type: "event_occurred";
2021
2073
  eventName: string;
@@ -2032,7 +2084,7 @@ export declare const actionStepSchemas: ({
2032
2084
  maxHeight?: number | undefined;
2033
2085
  } | {
2034
2086
  type: "session_metric";
2035
- key: string;
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: string[];
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;
@@ -2067,8 +2119,8 @@ export declare const actionStepSchemas: ({
2067
2119
  default?: unknown;
2068
2120
  } | {
2069
2121
  type: "score";
2070
- threshold: number;
2071
2122
  field: string;
2123
+ threshold: number;
2072
2124
  above?: unknown;
2073
2125
  below?: unknown;
2074
2126
  } | {
@@ -2080,13 +2132,17 @@ export declare const actionStepSchemas: ({
2080
2132
  } | {
2081
2133
  type: "external";
2082
2134
  endpoint: string;
2083
- default?: unknown;
2084
2135
  method?: "GET" | "POST" | undefined;
2136
+ default?: unknown;
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[];
@@ -2104,7 +2160,7 @@ export declare const actionStepSchemas: ({
2104
2160
  } | {
2105
2161
  type: "anchor_visible";
2106
2162
  anchorId: string;
2107
- state: "visible" | "present" | "absent";
2163
+ state: "absent" | "visible" | "present";
2108
2164
  } | {
2109
2165
  type: "event_occurred";
2110
2166
  eventName: string;
@@ -2121,7 +2177,7 @@ export declare const actionStepSchemas: ({
2121
2177
  maxHeight?: number | undefined;
2122
2178
  } | {
2123
2179
  type: "session_metric";
2124
- key: string;
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: string[];
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;
@@ -2156,8 +2212,8 @@ export declare const actionStepSchemas: ({
2156
2212
  default?: unknown;
2157
2213
  } | {
2158
2214
  type: "score";
2159
- threshold: number;
2160
2215
  field: string;
2216
+ threshold: number;
2161
2217
  above?: unknown;
2162
2218
  below?: unknown;
2163
2219
  } | {
@@ -2169,10 +2225,11 @@ export declare const actionStepSchemas: ({
2169
2225
  } | {
2170
2226
  type: "external";
2171
2227
  endpoint: string;
2172
- default?: unknown;
2173
2228
  method?: "GET" | "POST" | undefined;
2229
+ default?: unknown;
2174
2230
  timeoutMs?: number | undefined;
2175
2231
  } | null | undefined;
2232
+ title?: string | undefined;
2176
2233
  }>;
2177
2234
  } | {
2178
2235
  defName: string;
@@ -2210,11 +2267,11 @@ export declare const actionStepSchemas: ({
2210
2267
  }, "strip", z.ZodTypeAny, {
2211
2268
  type: "anchor_visible";
2212
2269
  anchorId: string;
2213
- state: "visible" | "present" | "absent";
2270
+ state: "absent" | "visible" | "present";
2214
2271
  }, {
2215
2272
  type: "anchor_visible";
2216
2273
  anchorId: string;
2217
- state: "visible" | "present" | "absent";
2274
+ state: "absent" | "visible" | "present";
2218
2275
  }>, z.ZodObject<{
2219
2276
  type: z.ZodLiteral<"event_occurred">;
2220
2277
  eventName: z.ZodString;
@@ -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.ZodString;
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: string;
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: string;
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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;
@@ -2380,7 +2443,7 @@ export declare const actionStepSchemas: ({
2380
2443
  } | {
2381
2444
  type: "anchor_visible";
2382
2445
  anchorId: string;
2383
- state: "visible" | "present" | "absent";
2446
+ state: "absent" | "visible" | "present";
2384
2447
  } | {
2385
2448
  type: "event_occurred";
2386
2449
  eventName: string;
@@ -2397,7 +2460,7 @@ export declare const actionStepSchemas: ({
2397
2460
  maxHeight?: number | undefined;
2398
2461
  } | {
2399
2462
  type: "session_metric";
2400
- key: string;
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: string[];
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;
@@ -2438,7 +2501,7 @@ export declare const actionStepSchemas: ({
2438
2501
  } | {
2439
2502
  type: "anchor_visible";
2440
2503
  anchorId: string;
2441
- state: "visible" | "present" | "absent";
2504
+ state: "absent" | "visible" | "present";
2442
2505
  } | {
2443
2506
  type: "event_occurred";
2444
2507
  eventName: string;
@@ -2455,7 +2518,7 @@ export declare const actionStepSchemas: ({
2455
2518
  maxHeight?: number | undefined;
2456
2519
  } | {
2457
2520
  type: "session_metric";
2458
- key: string;
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: string[];
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;
@@ -2500,7 +2563,7 @@ export declare const actionStepSchemas: ({
2500
2563
  } | {
2501
2564
  type: "anchor_visible";
2502
2565
  anchorId: string;
2503
- state: "visible" | "present" | "absent";
2566
+ state: "absent" | "visible" | "present";
2504
2567
  } | {
2505
2568
  type: "event_occurred";
2506
2569
  eventName: string;
@@ -2517,7 +2580,7 @@ export declare const actionStepSchemas: ({
2517
2580
  maxHeight?: number | undefined;
2518
2581
  } | {
2519
2582
  type: "session_metric";
2520
- key: string;
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: string[];
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;
@@ -2562,7 +2625,7 @@ export declare const actionStepSchemas: ({
2562
2625
  } | {
2563
2626
  type: "anchor_visible";
2564
2627
  anchorId: string;
2565
- state: "visible" | "present" | "absent";
2628
+ state: "absent" | "visible" | "present";
2566
2629
  } | {
2567
2630
  type: "event_occurred";
2568
2631
  eventName: string;
@@ -2579,7 +2642,7 @@ export declare const actionStepSchemas: ({
2579
2642
  maxHeight?: number | undefined;
2580
2643
  } | {
2581
2644
  type: "session_metric";
2582
- key: string;
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: string[];
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;
@@ -2620,14 +2683,14 @@ export declare const actionStepSchemas: ({
2620
2683
  below: z.ZodUnknown;
2621
2684
  }, "strip", z.ZodTypeAny, {
2622
2685
  type: "score";
2623
- threshold: number;
2624
2686
  field: string;
2687
+ threshold: number;
2625
2688
  above?: unknown;
2626
2689
  below?: unknown;
2627
2690
  }, {
2628
2691
  type: "score";
2629
- threshold: number;
2630
2692
  field: string;
2693
+ threshold: number;
2631
2694
  above?: unknown;
2632
2695
  below?: unknown;
2633
2696
  }>, z.ZodObject<{
@@ -2657,20 +2720,28 @@ export declare const actionStepSchemas: ({
2657
2720
  }, "strip", z.ZodTypeAny, {
2658
2721
  type: "external";
2659
2722
  endpoint: string;
2660
- default?: unknown;
2661
2723
  method?: "GET" | "POST" | undefined;
2724
+ default?: unknown;
2662
2725
  timeoutMs?: number | undefined;
2663
2726
  }, {
2664
2727
  type: "external";
2665
2728
  endpoint: string;
2666
- default?: unknown;
2667
2729
  method?: "GET" | "POST" | undefined;
2730
+ default?: unknown;
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";
@@ -2684,7 +2755,7 @@ export declare const actionStepSchemas: ({
2684
2755
  } | {
2685
2756
  type: "anchor_visible";
2686
2757
  anchorId: string;
2687
- state: "visible" | "present" | "absent";
2758
+ state: "absent" | "visible" | "present";
2688
2759
  } | {
2689
2760
  type: "event_occurred";
2690
2761
  eventName: string;
@@ -2701,7 +2772,7 @@ export declare const actionStepSchemas: ({
2701
2772
  maxHeight?: number | undefined;
2702
2773
  } | {
2703
2774
  type: "session_metric";
2704
- key: string;
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: string[];
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;
@@ -2736,8 +2807,8 @@ export declare const actionStepSchemas: ({
2736
2807
  default?: unknown;
2737
2808
  } | {
2738
2809
  type: "score";
2739
- threshold: number;
2740
2810
  field: string;
2811
+ threshold: number;
2741
2812
  above?: unknown;
2742
2813
  below?: unknown;
2743
2814
  } | {
@@ -2749,14 +2820,18 @@ export declare const actionStepSchemas: ({
2749
2820
  } | {
2750
2821
  type: "external";
2751
2822
  endpoint: string;
2752
- default?: unknown;
2753
2823
  method?: "GET" | "POST" | undefined;
2824
+ default?: unknown;
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";
@@ -2770,7 +2845,7 @@ export declare const actionStepSchemas: ({
2770
2845
  } | {
2771
2846
  type: "anchor_visible";
2772
2847
  anchorId: string;
2773
- state: "visible" | "present" | "absent";
2848
+ state: "absent" | "visible" | "present";
2774
2849
  } | {
2775
2850
  type: "event_occurred";
2776
2851
  eventName: string;
@@ -2787,7 +2862,7 @@ export declare const actionStepSchemas: ({
2787
2862
  maxHeight?: number | undefined;
2788
2863
  } | {
2789
2864
  type: "session_metric";
2790
- key: string;
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: string[];
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;
@@ -2822,8 +2897,8 @@ export declare const actionStepSchemas: ({
2822
2897
  default?: unknown;
2823
2898
  } | {
2824
2899
  type: "score";
2825
- threshold: number;
2826
2900
  field: string;
2901
+ threshold: number;
2827
2902
  above?: unknown;
2828
2903
  below?: unknown;
2829
2904
  } | {
@@ -2835,10 +2910,29 @@ export declare const actionStepSchemas: ({
2835
2910
  } | {
2836
2911
  type: "external";
2837
2912
  endpoint: string;
2838
- default?: unknown;
2839
2913
  method?: "GET" | "POST" | undefined;
2914
+ default?: unknown;
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