@syntrologie/adapt-gamification 2.8.0-canary.21 → 2.8.0-canary.211

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
@@ -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,7 +293,7 @@ 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">;
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", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
297
297
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
298
298
  equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
299
299
  contains: z.ZodOptional<z.ZodString>;
@@ -305,13 +305,13 @@ export declare const AwardBadgeSchema: z.ZodObject<{
305
305
  contains?: string | undefined;
306
306
  }>>>;
307
307
  }, "strip", z.ZodTypeAny, {
308
- events: string[];
308
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
309
309
  match?: Record<string, {
310
310
  equals?: string | number | boolean | undefined;
311
311
  contains?: string | undefined;
312
312
  }> | undefined;
313
313
  }, {
314
- events: string[];
314
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
315
315
  match?: Record<string, {
316
316
  equals?: string | number | boolean | undefined;
317
317
  contains?: string | undefined;
@@ -324,7 +324,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
324
324
  count: number;
325
325
  withinMs?: number | undefined;
326
326
  counter?: {
327
- events: string[];
327
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
328
328
  match?: Record<string, {
329
329
  equals?: string | number | boolean | undefined;
330
330
  contains?: string | undefined;
@@ -337,7 +337,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
337
337
  count: number;
338
338
  withinMs?: number | undefined;
339
339
  counter?: {
340
- events: string[];
340
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
341
341
  match?: Record<string, {
342
342
  equals?: string | number | boolean | undefined;
343
343
  contains?: string | undefined;
@@ -372,7 +372,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
372
372
  maxHeight?: number | undefined;
373
373
  } | {
374
374
  type: "session_metric";
375
- key: string;
375
+ key: "time_on_page" | "page_views" | "scroll_depth";
376
376
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
377
377
  threshold: number;
378
378
  } | {
@@ -395,7 +395,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
395
395
  count: number;
396
396
  withinMs?: number | undefined;
397
397
  counter?: {
398
- events: string[];
398
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
399
399
  match?: Record<string, {
400
400
  equals?: string | number | boolean | undefined;
401
401
  contains?: string | undefined;
@@ -430,7 +430,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
430
430
  maxHeight?: number | undefined;
431
431
  } | {
432
432
  type: "session_metric";
433
- key: string;
433
+ key: "time_on_page" | "page_views" | "scroll_depth";
434
434
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
435
435
  threshold: number;
436
436
  } | {
@@ -453,7 +453,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
453
453
  count: number;
454
454
  withinMs?: number | undefined;
455
455
  counter?: {
456
- events: string[];
456
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
457
457
  match?: Record<string, {
458
458
  equals?: string | number | boolean | undefined;
459
459
  contains?: string | undefined;
@@ -492,7 +492,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
492
492
  maxHeight?: number | undefined;
493
493
  } | {
494
494
  type: "session_metric";
495
- key: string;
495
+ key: "time_on_page" | "page_views" | "scroll_depth";
496
496
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
497
497
  threshold: number;
498
498
  } | {
@@ -515,7 +515,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
515
515
  count: number;
516
516
  withinMs?: number | undefined;
517
517
  counter?: {
518
- events: string[];
518
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
519
519
  match?: Record<string, {
520
520
  equals?: string | number | boolean | undefined;
521
521
  contains?: string | undefined;
@@ -554,7 +554,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
554
554
  maxHeight?: number | undefined;
555
555
  } | {
556
556
  type: "session_metric";
557
- key: string;
557
+ key: "time_on_page" | "page_views" | "scroll_depth";
558
558
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
559
559
  threshold: number;
560
560
  } | {
@@ -577,7 +577,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
577
577
  count: number;
578
578
  withinMs?: number | undefined;
579
579
  counter?: {
580
- events: string[];
580
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
581
581
  match?: Record<string, {
582
582
  equals?: string | number | boolean | undefined;
583
583
  contains?: string | undefined;
@@ -642,9 +642,15 @@ export declare const AwardBadgeSchema: z.ZodObject<{
642
642
  method?: "GET" | "POST" | undefined;
643
643
  timeoutMs?: number | undefined;
644
644
  }>]>>>;
645
+ } & {
646
+ readonly title: z.ZodOptional<z.ZodString>;
647
+ readonly description: z.ZodOptional<z.ZodString>;
648
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
645
649
  }, "strip", z.ZodTypeAny, {
646
650
  badgeId: string;
647
651
  kind: "gamification:awardBadge";
652
+ description?: string | undefined;
653
+ validation?: string[] | undefined;
648
654
  anchorId?: {
649
655
  selector: string;
650
656
  route: string | string[];
@@ -679,7 +685,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
679
685
  maxHeight?: number | undefined;
680
686
  } | {
681
687
  type: "session_metric";
682
- key: string;
688
+ key: "time_on_page" | "page_views" | "scroll_depth";
683
689
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
684
690
  threshold: number;
685
691
  } | {
@@ -702,7 +708,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
702
708
  count: number;
703
709
  withinMs?: number | undefined;
704
710
  counter?: {
705
- events: string[];
711
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
706
712
  match?: Record<string, {
707
713
  equals?: string | number | boolean | undefined;
708
714
  contains?: string | undefined;
@@ -731,9 +737,12 @@ export declare const AwardBadgeSchema: z.ZodObject<{
731
737
  method?: "GET" | "POST" | undefined;
732
738
  timeoutMs?: number | undefined;
733
739
  } | null | undefined;
740
+ title?: string | undefined;
734
741
  }, {
735
742
  badgeId: string;
736
743
  kind: "gamification:awardBadge";
744
+ description?: string | undefined;
745
+ validation?: string[] | undefined;
737
746
  anchorId?: {
738
747
  selector: string;
739
748
  route: string | string[];
@@ -768,7 +777,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
768
777
  maxHeight?: number | undefined;
769
778
  } | {
770
779
  type: "session_metric";
771
- key: string;
780
+ key: "time_on_page" | "page_views" | "scroll_depth";
772
781
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
773
782
  threshold: number;
774
783
  } | {
@@ -791,7 +800,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
791
800
  count: number;
792
801
  withinMs?: number | undefined;
793
802
  counter?: {
794
- events: string[];
803
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
795
804
  match?: Record<string, {
796
805
  equals?: string | number | boolean | undefined;
797
806
  contains?: string | undefined;
@@ -820,6 +829,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
820
829
  method?: "GET" | "POST" | undefined;
821
830
  timeoutMs?: number | undefined;
822
831
  } | null | undefined;
832
+ title?: string | undefined;
823
833
  }>;
824
834
  /**
825
835
  * Schema for adding points to a user's score.
@@ -907,17 +917,17 @@ export declare const AddPointsSchema: z.ZodObject<{
907
917
  maxHeight?: number | undefined;
908
918
  }>, z.ZodObject<{
909
919
  type: z.ZodLiteral<"session_metric">;
910
- key: z.ZodString;
920
+ key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
911
921
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
912
922
  threshold: z.ZodNumber;
913
923
  }, "strip", z.ZodTypeAny, {
914
924
  type: "session_metric";
915
- key: string;
925
+ key: "time_on_page" | "page_views" | "scroll_depth";
916
926
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
917
927
  threshold: number;
918
928
  }, {
919
929
  type: "session_metric";
920
- key: string;
930
+ key: "time_on_page" | "page_views" | "scroll_depth";
921
931
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
922
932
  threshold: number;
923
933
  }>, z.ZodObject<{
@@ -966,7 +976,7 @@ export declare const AddPointsSchema: z.ZodObject<{
966
976
  count: z.ZodNumber;
967
977
  withinMs: z.ZodOptional<z.ZodNumber>;
968
978
  counter: z.ZodOptional<z.ZodObject<{
969
- events: z.ZodArray<z.ZodString, "many">;
979
+ events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
970
980
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
971
981
  equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
972
982
  contains: z.ZodOptional<z.ZodString>;
@@ -978,13 +988,13 @@ export declare const AddPointsSchema: z.ZodObject<{
978
988
  contains?: string | undefined;
979
989
  }>>>;
980
990
  }, "strip", z.ZodTypeAny, {
981
- events: string[];
991
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
982
992
  match?: Record<string, {
983
993
  equals?: string | number | boolean | undefined;
984
994
  contains?: string | undefined;
985
995
  }> | undefined;
986
996
  }, {
987
- events: string[];
997
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
988
998
  match?: Record<string, {
989
999
  equals?: string | number | boolean | undefined;
990
1000
  contains?: string | undefined;
@@ -997,7 +1007,7 @@ export declare const AddPointsSchema: z.ZodObject<{
997
1007
  count: number;
998
1008
  withinMs?: number | undefined;
999
1009
  counter?: {
1000
- events: string[];
1010
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1001
1011
  match?: Record<string, {
1002
1012
  equals?: string | number | boolean | undefined;
1003
1013
  contains?: string | undefined;
@@ -1010,7 +1020,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1010
1020
  count: number;
1011
1021
  withinMs?: number | undefined;
1012
1022
  counter?: {
1013
- events: string[];
1023
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1014
1024
  match?: Record<string, {
1015
1025
  equals?: string | number | boolean | undefined;
1016
1026
  contains?: string | undefined;
@@ -1045,7 +1055,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1045
1055
  maxHeight?: number | undefined;
1046
1056
  } | {
1047
1057
  type: "session_metric";
1048
- key: string;
1058
+ key: "time_on_page" | "page_views" | "scroll_depth";
1049
1059
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1050
1060
  threshold: number;
1051
1061
  } | {
@@ -1068,7 +1078,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1068
1078
  count: number;
1069
1079
  withinMs?: number | undefined;
1070
1080
  counter?: {
1071
- events: string[];
1081
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1072
1082
  match?: Record<string, {
1073
1083
  equals?: string | number | boolean | undefined;
1074
1084
  contains?: string | undefined;
@@ -1103,7 +1113,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1103
1113
  maxHeight?: number | undefined;
1104
1114
  } | {
1105
1115
  type: "session_metric";
1106
- key: string;
1116
+ key: "time_on_page" | "page_views" | "scroll_depth";
1107
1117
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1108
1118
  threshold: number;
1109
1119
  } | {
@@ -1126,7 +1136,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1126
1136
  count: number;
1127
1137
  withinMs?: number | undefined;
1128
1138
  counter?: {
1129
- events: string[];
1139
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1130
1140
  match?: Record<string, {
1131
1141
  equals?: string | number | boolean | undefined;
1132
1142
  contains?: string | undefined;
@@ -1165,7 +1175,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1165
1175
  maxHeight?: number | undefined;
1166
1176
  } | {
1167
1177
  type: "session_metric";
1168
- key: string;
1178
+ key: "time_on_page" | "page_views" | "scroll_depth";
1169
1179
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1170
1180
  threshold: number;
1171
1181
  } | {
@@ -1188,7 +1198,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1188
1198
  count: number;
1189
1199
  withinMs?: number | undefined;
1190
1200
  counter?: {
1191
- events: string[];
1201
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1192
1202
  match?: Record<string, {
1193
1203
  equals?: string | number | boolean | undefined;
1194
1204
  contains?: string | undefined;
@@ -1227,7 +1237,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1227
1237
  maxHeight?: number | undefined;
1228
1238
  } | {
1229
1239
  type: "session_metric";
1230
- key: string;
1240
+ key: "time_on_page" | "page_views" | "scroll_depth";
1231
1241
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1232
1242
  threshold: number;
1233
1243
  } | {
@@ -1250,7 +1260,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1250
1260
  count: number;
1251
1261
  withinMs?: number | undefined;
1252
1262
  counter?: {
1253
- events: string[];
1263
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1254
1264
  match?: Record<string, {
1255
1265
  equals?: string | number | boolean | undefined;
1256
1266
  contains?: string | undefined;
@@ -1315,10 +1325,16 @@ export declare const AddPointsSchema: z.ZodObject<{
1315
1325
  method?: "GET" | "POST" | undefined;
1316
1326
  timeoutMs?: number | undefined;
1317
1327
  }>]>>>;
1328
+ } & {
1329
+ readonly title: z.ZodOptional<z.ZodString>;
1330
+ readonly description: z.ZodOptional<z.ZodString>;
1331
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1318
1332
  }, "strip", z.ZodTypeAny, {
1319
1333
  points: number;
1320
1334
  kind: "gamification:addPoints";
1321
1335
  reason?: string | undefined;
1336
+ description?: string | undefined;
1337
+ validation?: string[] | undefined;
1322
1338
  label?: string | undefined;
1323
1339
  triggerWhen?: {
1324
1340
  type: "rules";
@@ -1349,7 +1365,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1349
1365
  maxHeight?: number | undefined;
1350
1366
  } | {
1351
1367
  type: "session_metric";
1352
- key: string;
1368
+ key: "time_on_page" | "page_views" | "scroll_depth";
1353
1369
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1354
1370
  threshold: number;
1355
1371
  } | {
@@ -1372,7 +1388,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1372
1388
  count: number;
1373
1389
  withinMs?: number | undefined;
1374
1390
  counter?: {
1375
- events: string[];
1391
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1376
1392
  match?: Record<string, {
1377
1393
  equals?: string | number | boolean | undefined;
1378
1394
  contains?: string | undefined;
@@ -1401,10 +1417,13 @@ export declare const AddPointsSchema: z.ZodObject<{
1401
1417
  method?: "GET" | "POST" | undefined;
1402
1418
  timeoutMs?: number | undefined;
1403
1419
  } | null | undefined;
1420
+ title?: string | undefined;
1404
1421
  }, {
1405
1422
  points: number;
1406
1423
  kind: "gamification:addPoints";
1407
1424
  reason?: string | undefined;
1425
+ description?: string | undefined;
1426
+ validation?: string[] | undefined;
1408
1427
  label?: string | undefined;
1409
1428
  triggerWhen?: {
1410
1429
  type: "rules";
@@ -1435,7 +1454,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1435
1454
  maxHeight?: number | undefined;
1436
1455
  } | {
1437
1456
  type: "session_metric";
1438
- key: string;
1457
+ key: "time_on_page" | "page_views" | "scroll_depth";
1439
1458
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1440
1459
  threshold: number;
1441
1460
  } | {
@@ -1458,7 +1477,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1458
1477
  count: number;
1459
1478
  withinMs?: number | undefined;
1460
1479
  counter?: {
1461
- events: string[];
1480
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1462
1481
  match?: Record<string, {
1463
1482
  equals?: string | number | boolean | undefined;
1464
1483
  contains?: string | undefined;
@@ -1487,6 +1506,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1487
1506
  method?: "GET" | "POST" | undefined;
1488
1507
  timeoutMs?: number | undefined;
1489
1508
  } | null | undefined;
1509
+ title?: string | undefined;
1490
1510
  }>;
1491
1511
  /**
1492
1512
  * Action step schemas for unified JSON Schema generation.
@@ -1587,17 +1607,17 @@ export declare const actionStepSchemas: ({
1587
1607
  maxHeight?: number | undefined;
1588
1608
  }>, z.ZodObject<{
1589
1609
  type: z.ZodLiteral<"session_metric">;
1590
- key: z.ZodString;
1610
+ key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
1591
1611
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
1592
1612
  threshold: z.ZodNumber;
1593
1613
  }, "strip", z.ZodTypeAny, {
1594
1614
  type: "session_metric";
1595
- key: string;
1615
+ key: "time_on_page" | "page_views" | "scroll_depth";
1596
1616
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1597
1617
  threshold: number;
1598
1618
  }, {
1599
1619
  type: "session_metric";
1600
- key: string;
1620
+ key: "time_on_page" | "page_views" | "scroll_depth";
1601
1621
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1602
1622
  threshold: number;
1603
1623
  }>, z.ZodObject<{
@@ -1646,7 +1666,7 @@ export declare const actionStepSchemas: ({
1646
1666
  count: z.ZodNumber;
1647
1667
  withinMs: z.ZodOptional<z.ZodNumber>;
1648
1668
  counter: z.ZodOptional<z.ZodObject<{
1649
- events: z.ZodArray<z.ZodString, "many">;
1669
+ events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
1650
1670
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1651
1671
  equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1652
1672
  contains: z.ZodOptional<z.ZodString>;
@@ -1658,13 +1678,13 @@ export declare const actionStepSchemas: ({
1658
1678
  contains?: string | undefined;
1659
1679
  }>>>;
1660
1680
  }, "strip", z.ZodTypeAny, {
1661
- events: string[];
1681
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1662
1682
  match?: Record<string, {
1663
1683
  equals?: string | number | boolean | undefined;
1664
1684
  contains?: string | undefined;
1665
1685
  }> | undefined;
1666
1686
  }, {
1667
- events: string[];
1687
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1668
1688
  match?: Record<string, {
1669
1689
  equals?: string | number | boolean | undefined;
1670
1690
  contains?: string | undefined;
@@ -1677,7 +1697,7 @@ export declare const actionStepSchemas: ({
1677
1697
  count: number;
1678
1698
  withinMs?: number | undefined;
1679
1699
  counter?: {
1680
- events: string[];
1700
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1681
1701
  match?: Record<string, {
1682
1702
  equals?: string | number | boolean | undefined;
1683
1703
  contains?: string | undefined;
@@ -1690,7 +1710,7 @@ export declare const actionStepSchemas: ({
1690
1710
  count: number;
1691
1711
  withinMs?: number | undefined;
1692
1712
  counter?: {
1693
- events: string[];
1713
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1694
1714
  match?: Record<string, {
1695
1715
  equals?: string | number | boolean | undefined;
1696
1716
  contains?: string | undefined;
@@ -1725,7 +1745,7 @@ export declare const actionStepSchemas: ({
1725
1745
  maxHeight?: number | undefined;
1726
1746
  } | {
1727
1747
  type: "session_metric";
1728
- key: string;
1748
+ key: "time_on_page" | "page_views" | "scroll_depth";
1729
1749
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1730
1750
  threshold: number;
1731
1751
  } | {
@@ -1748,7 +1768,7 @@ export declare const actionStepSchemas: ({
1748
1768
  count: number;
1749
1769
  withinMs?: number | undefined;
1750
1770
  counter?: {
1751
- events: string[];
1771
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1752
1772
  match?: Record<string, {
1753
1773
  equals?: string | number | boolean | undefined;
1754
1774
  contains?: string | undefined;
@@ -1783,7 +1803,7 @@ export declare const actionStepSchemas: ({
1783
1803
  maxHeight?: number | undefined;
1784
1804
  } | {
1785
1805
  type: "session_metric";
1786
- key: string;
1806
+ key: "time_on_page" | "page_views" | "scroll_depth";
1787
1807
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1788
1808
  threshold: number;
1789
1809
  } | {
@@ -1806,7 +1826,7 @@ export declare const actionStepSchemas: ({
1806
1826
  count: number;
1807
1827
  withinMs?: number | undefined;
1808
1828
  counter?: {
1809
- events: string[];
1829
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1810
1830
  match?: Record<string, {
1811
1831
  equals?: string | number | boolean | undefined;
1812
1832
  contains?: string | undefined;
@@ -1845,7 +1865,7 @@ export declare const actionStepSchemas: ({
1845
1865
  maxHeight?: number | undefined;
1846
1866
  } | {
1847
1867
  type: "session_metric";
1848
- key: string;
1868
+ key: "time_on_page" | "page_views" | "scroll_depth";
1849
1869
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1850
1870
  threshold: number;
1851
1871
  } | {
@@ -1868,7 +1888,7 @@ export declare const actionStepSchemas: ({
1868
1888
  count: number;
1869
1889
  withinMs?: number | undefined;
1870
1890
  counter?: {
1871
- events: string[];
1891
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1872
1892
  match?: Record<string, {
1873
1893
  equals?: string | number | boolean | undefined;
1874
1894
  contains?: string | undefined;
@@ -1907,7 +1927,7 @@ export declare const actionStepSchemas: ({
1907
1927
  maxHeight?: number | undefined;
1908
1928
  } | {
1909
1929
  type: "session_metric";
1910
- key: string;
1930
+ key: "time_on_page" | "page_views" | "scroll_depth";
1911
1931
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1912
1932
  threshold: number;
1913
1933
  } | {
@@ -1930,7 +1950,7 @@ export declare const actionStepSchemas: ({
1930
1950
  count: number;
1931
1951
  withinMs?: number | undefined;
1932
1952
  counter?: {
1933
- events: string[];
1953
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
1934
1954
  match?: Record<string, {
1935
1955
  equals?: string | number | boolean | undefined;
1936
1956
  contains?: string | undefined;
@@ -1995,9 +2015,15 @@ export declare const actionStepSchemas: ({
1995
2015
  method?: "GET" | "POST" | undefined;
1996
2016
  timeoutMs?: number | undefined;
1997
2017
  }>]>>>;
2018
+ } & {
2019
+ readonly title: z.ZodOptional<z.ZodString>;
2020
+ readonly description: z.ZodOptional<z.ZodString>;
2021
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1998
2022
  }, "strip", z.ZodTypeAny, {
1999
2023
  badgeId: string;
2000
2024
  kind: "gamification:awardBadge";
2025
+ description?: string | undefined;
2026
+ validation?: string[] | undefined;
2001
2027
  anchorId?: {
2002
2028
  selector: string;
2003
2029
  route: string | string[];
@@ -2032,7 +2058,7 @@ export declare const actionStepSchemas: ({
2032
2058
  maxHeight?: number | undefined;
2033
2059
  } | {
2034
2060
  type: "session_metric";
2035
- key: string;
2061
+ key: "time_on_page" | "page_views" | "scroll_depth";
2036
2062
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2037
2063
  threshold: number;
2038
2064
  } | {
@@ -2055,7 +2081,7 @@ export declare const actionStepSchemas: ({
2055
2081
  count: number;
2056
2082
  withinMs?: number | undefined;
2057
2083
  counter?: {
2058
- events: string[];
2084
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2059
2085
  match?: Record<string, {
2060
2086
  equals?: string | number | boolean | undefined;
2061
2087
  contains?: string | undefined;
@@ -2084,9 +2110,12 @@ export declare const actionStepSchemas: ({
2084
2110
  method?: "GET" | "POST" | undefined;
2085
2111
  timeoutMs?: number | undefined;
2086
2112
  } | null | undefined;
2113
+ title?: string | undefined;
2087
2114
  }, {
2088
2115
  badgeId: string;
2089
2116
  kind: "gamification:awardBadge";
2117
+ description?: string | undefined;
2118
+ validation?: string[] | undefined;
2090
2119
  anchorId?: {
2091
2120
  selector: string;
2092
2121
  route: string | string[];
@@ -2121,7 +2150,7 @@ export declare const actionStepSchemas: ({
2121
2150
  maxHeight?: number | undefined;
2122
2151
  } | {
2123
2152
  type: "session_metric";
2124
- key: string;
2153
+ key: "time_on_page" | "page_views" | "scroll_depth";
2125
2154
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2126
2155
  threshold: number;
2127
2156
  } | {
@@ -2144,7 +2173,7 @@ export declare const actionStepSchemas: ({
2144
2173
  count: number;
2145
2174
  withinMs?: number | undefined;
2146
2175
  counter?: {
2147
- events: string[];
2176
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2148
2177
  match?: Record<string, {
2149
2178
  equals?: string | number | boolean | undefined;
2150
2179
  contains?: string | undefined;
@@ -2173,6 +2202,7 @@ export declare const actionStepSchemas: ({
2173
2202
  method?: "GET" | "POST" | undefined;
2174
2203
  timeoutMs?: number | undefined;
2175
2204
  } | null | undefined;
2205
+ title?: string | undefined;
2176
2206
  }>;
2177
2207
  } | {
2178
2208
  defName: string;
@@ -2259,17 +2289,17 @@ export declare const actionStepSchemas: ({
2259
2289
  maxHeight?: number | undefined;
2260
2290
  }>, z.ZodObject<{
2261
2291
  type: z.ZodLiteral<"session_metric">;
2262
- key: z.ZodString;
2292
+ key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
2263
2293
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
2264
2294
  threshold: z.ZodNumber;
2265
2295
  }, "strip", z.ZodTypeAny, {
2266
2296
  type: "session_metric";
2267
- key: string;
2297
+ key: "time_on_page" | "page_views" | "scroll_depth";
2268
2298
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2269
2299
  threshold: number;
2270
2300
  }, {
2271
2301
  type: "session_metric";
2272
- key: string;
2302
+ key: "time_on_page" | "page_views" | "scroll_depth";
2273
2303
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2274
2304
  threshold: number;
2275
2305
  }>, z.ZodObject<{
@@ -2318,7 +2348,7 @@ export declare const actionStepSchemas: ({
2318
2348
  count: z.ZodNumber;
2319
2349
  withinMs: z.ZodOptional<z.ZodNumber>;
2320
2350
  counter: z.ZodOptional<z.ZodObject<{
2321
- events: z.ZodArray<z.ZodString, "many">;
2351
+ events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "nav.page_view", "nav.page_leave", "behavior.rage_click", "behavior.hesitation", "behavior.confusion"]>, "many">;
2322
2352
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2323
2353
  equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2324
2354
  contains: z.ZodOptional<z.ZodString>;
@@ -2330,13 +2360,13 @@ export declare const actionStepSchemas: ({
2330
2360
  contains?: string | undefined;
2331
2361
  }>>>;
2332
2362
  }, "strip", z.ZodTypeAny, {
2333
- events: string[];
2363
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2334
2364
  match?: Record<string, {
2335
2365
  equals?: string | number | boolean | undefined;
2336
2366
  contains?: string | undefined;
2337
2367
  }> | undefined;
2338
2368
  }, {
2339
- events: string[];
2369
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2340
2370
  match?: Record<string, {
2341
2371
  equals?: string | number | boolean | undefined;
2342
2372
  contains?: string | undefined;
@@ -2349,7 +2379,7 @@ export declare const actionStepSchemas: ({
2349
2379
  count: number;
2350
2380
  withinMs?: number | undefined;
2351
2381
  counter?: {
2352
- events: string[];
2382
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2353
2383
  match?: Record<string, {
2354
2384
  equals?: string | number | boolean | undefined;
2355
2385
  contains?: string | undefined;
@@ -2362,7 +2392,7 @@ export declare const actionStepSchemas: ({
2362
2392
  count: number;
2363
2393
  withinMs?: number | undefined;
2364
2394
  counter?: {
2365
- events: string[];
2395
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2366
2396
  match?: Record<string, {
2367
2397
  equals?: string | number | boolean | undefined;
2368
2398
  contains?: string | undefined;
@@ -2397,7 +2427,7 @@ export declare const actionStepSchemas: ({
2397
2427
  maxHeight?: number | undefined;
2398
2428
  } | {
2399
2429
  type: "session_metric";
2400
- key: string;
2430
+ key: "time_on_page" | "page_views" | "scroll_depth";
2401
2431
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2402
2432
  threshold: number;
2403
2433
  } | {
@@ -2420,7 +2450,7 @@ export declare const actionStepSchemas: ({
2420
2450
  count: number;
2421
2451
  withinMs?: number | undefined;
2422
2452
  counter?: {
2423
- events: string[];
2453
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2424
2454
  match?: Record<string, {
2425
2455
  equals?: string | number | boolean | undefined;
2426
2456
  contains?: string | undefined;
@@ -2455,7 +2485,7 @@ export declare const actionStepSchemas: ({
2455
2485
  maxHeight?: number | undefined;
2456
2486
  } | {
2457
2487
  type: "session_metric";
2458
- key: string;
2488
+ key: "time_on_page" | "page_views" | "scroll_depth";
2459
2489
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2460
2490
  threshold: number;
2461
2491
  } | {
@@ -2478,7 +2508,7 @@ export declare const actionStepSchemas: ({
2478
2508
  count: number;
2479
2509
  withinMs?: number | undefined;
2480
2510
  counter?: {
2481
- events: string[];
2511
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2482
2512
  match?: Record<string, {
2483
2513
  equals?: string | number | boolean | undefined;
2484
2514
  contains?: string | undefined;
@@ -2517,7 +2547,7 @@ export declare const actionStepSchemas: ({
2517
2547
  maxHeight?: number | undefined;
2518
2548
  } | {
2519
2549
  type: "session_metric";
2520
- key: string;
2550
+ key: "time_on_page" | "page_views" | "scroll_depth";
2521
2551
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2522
2552
  threshold: number;
2523
2553
  } | {
@@ -2540,7 +2570,7 @@ export declare const actionStepSchemas: ({
2540
2570
  count: number;
2541
2571
  withinMs?: number | undefined;
2542
2572
  counter?: {
2543
- events: string[];
2573
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2544
2574
  match?: Record<string, {
2545
2575
  equals?: string | number | boolean | undefined;
2546
2576
  contains?: string | undefined;
@@ -2579,7 +2609,7 @@ export declare const actionStepSchemas: ({
2579
2609
  maxHeight?: number | undefined;
2580
2610
  } | {
2581
2611
  type: "session_metric";
2582
- key: string;
2612
+ key: "time_on_page" | "page_views" | "scroll_depth";
2583
2613
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2584
2614
  threshold: number;
2585
2615
  } | {
@@ -2602,7 +2632,7 @@ export declare const actionStepSchemas: ({
2602
2632
  count: number;
2603
2633
  withinMs?: number | undefined;
2604
2634
  counter?: {
2605
- events: string[];
2635
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2606
2636
  match?: Record<string, {
2607
2637
  equals?: string | number | boolean | undefined;
2608
2638
  contains?: string | undefined;
@@ -2667,10 +2697,16 @@ export declare const actionStepSchemas: ({
2667
2697
  method?: "GET" | "POST" | undefined;
2668
2698
  timeoutMs?: number | undefined;
2669
2699
  }>]>>>;
2700
+ } & {
2701
+ readonly title: z.ZodOptional<z.ZodString>;
2702
+ readonly description: z.ZodOptional<z.ZodString>;
2703
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2670
2704
  }, "strip", z.ZodTypeAny, {
2671
2705
  points: number;
2672
2706
  kind: "gamification:addPoints";
2673
2707
  reason?: string | undefined;
2708
+ description?: string | undefined;
2709
+ validation?: string[] | undefined;
2674
2710
  label?: string | undefined;
2675
2711
  triggerWhen?: {
2676
2712
  type: "rules";
@@ -2701,7 +2737,7 @@ export declare const actionStepSchemas: ({
2701
2737
  maxHeight?: number | undefined;
2702
2738
  } | {
2703
2739
  type: "session_metric";
2704
- key: string;
2740
+ key: "time_on_page" | "page_views" | "scroll_depth";
2705
2741
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2706
2742
  threshold: number;
2707
2743
  } | {
@@ -2724,7 +2760,7 @@ export declare const actionStepSchemas: ({
2724
2760
  count: number;
2725
2761
  withinMs?: number | undefined;
2726
2762
  counter?: {
2727
- events: string[];
2763
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2728
2764
  match?: Record<string, {
2729
2765
  equals?: string | number | boolean | undefined;
2730
2766
  contains?: string | undefined;
@@ -2753,10 +2789,13 @@ export declare const actionStepSchemas: ({
2753
2789
  method?: "GET" | "POST" | undefined;
2754
2790
  timeoutMs?: number | undefined;
2755
2791
  } | null | undefined;
2792
+ title?: string | undefined;
2756
2793
  }, {
2757
2794
  points: number;
2758
2795
  kind: "gamification:addPoints";
2759
2796
  reason?: string | undefined;
2797
+ description?: string | undefined;
2798
+ validation?: string[] | undefined;
2760
2799
  label?: string | undefined;
2761
2800
  triggerWhen?: {
2762
2801
  type: "rules";
@@ -2787,7 +2826,7 @@ export declare const actionStepSchemas: ({
2787
2826
  maxHeight?: number | undefined;
2788
2827
  } | {
2789
2828
  type: "session_metric";
2790
- key: string;
2829
+ key: "time_on_page" | "page_views" | "scroll_depth";
2791
2830
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2792
2831
  threshold: number;
2793
2832
  } | {
@@ -2810,7 +2849,7 @@ export declare const actionStepSchemas: ({
2810
2849
  count: number;
2811
2850
  withinMs?: number | undefined;
2812
2851
  counter?: {
2813
- events: string[];
2852
+ events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "nav.page_view" | "nav.page_leave" | "behavior.rage_click" | "behavior.hesitation" | "behavior.confusion")[];
2814
2853
  match?: Record<string, {
2815
2854
  equals?: string | number | boolean | undefined;
2816
2855
  contains?: string | undefined;
@@ -2839,6 +2878,7 @@ export declare const actionStepSchemas: ({
2839
2878
  method?: "GET" | "POST" | undefined;
2840
2879
  timeoutMs?: number | undefined;
2841
2880
  } | null | undefined;
2881
+ title?: string | undefined;
2842
2882
  }>;
2843
2883
  })[];
2844
2884
  //# sourceMappingURL=schema.d.ts.map