@syntrologie/adapt-gamification 2.8.0-canary.31 → 2.8.0-canary.310

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", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
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" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
581
581
  match?: Record<string, {
582
582
  equals?: string | number | boolean | undefined;
583
583
  contains?: string | undefined;
@@ -642,9 +642,17 @@ export declare const AwardBadgeSchema: z.ZodObject<{
642
642
  method?: "GET" | "POST" | undefined;
643
643
  timeoutMs?: number | undefined;
644
644
  }>]>>>;
645
+ } & {
646
+ readonly id: z.ZodOptional<z.ZodString>;
647
+ readonly title: z.ZodOptional<z.ZodString>;
648
+ readonly description: z.ZodOptional<z.ZodString>;
649
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
645
650
  }, "strip", z.ZodTypeAny, {
646
651
  badgeId: string;
647
652
  kind: "gamification:awardBadge";
653
+ id?: string | undefined;
654
+ description?: string | undefined;
655
+ validation?: string[] | undefined;
648
656
  anchorId?: {
649
657
  selector: string;
650
658
  route: string | string[];
@@ -679,7 +687,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
679
687
  maxHeight?: number | undefined;
680
688
  } | {
681
689
  type: "session_metric";
682
- key: string;
690
+ key: "time_on_page" | "page_views" | "scroll_depth";
683
691
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
684
692
  threshold: number;
685
693
  } | {
@@ -702,7 +710,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
702
710
  count: number;
703
711
  withinMs?: number | undefined;
704
712
  counter?: {
705
- events: string[];
713
+ events: ("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")[];
706
714
  match?: Record<string, {
707
715
  equals?: string | number | boolean | undefined;
708
716
  contains?: string | undefined;
@@ -731,9 +739,13 @@ export declare const AwardBadgeSchema: z.ZodObject<{
731
739
  method?: "GET" | "POST" | undefined;
732
740
  timeoutMs?: number | undefined;
733
741
  } | null | undefined;
742
+ title?: string | undefined;
734
743
  }, {
735
744
  badgeId: string;
736
745
  kind: "gamification:awardBadge";
746
+ id?: string | undefined;
747
+ description?: string | undefined;
748
+ validation?: string[] | undefined;
737
749
  anchorId?: {
738
750
  selector: string;
739
751
  route: string | string[];
@@ -768,7 +780,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
768
780
  maxHeight?: number | undefined;
769
781
  } | {
770
782
  type: "session_metric";
771
- key: string;
783
+ key: "time_on_page" | "page_views" | "scroll_depth";
772
784
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
773
785
  threshold: number;
774
786
  } | {
@@ -791,7 +803,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
791
803
  count: number;
792
804
  withinMs?: number | undefined;
793
805
  counter?: {
794
- events: string[];
806
+ events: ("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")[];
795
807
  match?: Record<string, {
796
808
  equals?: string | number | boolean | undefined;
797
809
  contains?: string | undefined;
@@ -820,6 +832,7 @@ export declare const AwardBadgeSchema: z.ZodObject<{
820
832
  method?: "GET" | "POST" | undefined;
821
833
  timeoutMs?: number | undefined;
822
834
  } | null | undefined;
835
+ title?: string | undefined;
823
836
  }>;
824
837
  /**
825
838
  * Schema for adding points to a user's score.
@@ -907,17 +920,17 @@ export declare const AddPointsSchema: z.ZodObject<{
907
920
  maxHeight?: number | undefined;
908
921
  }>, z.ZodObject<{
909
922
  type: z.ZodLiteral<"session_metric">;
910
- key: z.ZodString;
923
+ key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
911
924
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
912
925
  threshold: z.ZodNumber;
913
926
  }, "strip", z.ZodTypeAny, {
914
927
  type: "session_metric";
915
- key: string;
928
+ key: "time_on_page" | "page_views" | "scroll_depth";
916
929
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
917
930
  threshold: number;
918
931
  }, {
919
932
  type: "session_metric";
920
- key: string;
933
+ key: "time_on_page" | "page_views" | "scroll_depth";
921
934
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
922
935
  threshold: number;
923
936
  }>, z.ZodObject<{
@@ -966,7 +979,7 @@ export declare const AddPointsSchema: z.ZodObject<{
966
979
  count: z.ZodNumber;
967
980
  withinMs: z.ZodOptional<z.ZodNumber>;
968
981
  counter: z.ZodOptional<z.ZodObject<{
969
- events: z.ZodArray<z.ZodString, "many">;
982
+ 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">;
970
983
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
971
984
  equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
972
985
  contains: z.ZodOptional<z.ZodString>;
@@ -978,13 +991,13 @@ export declare const AddPointsSchema: z.ZodObject<{
978
991
  contains?: string | undefined;
979
992
  }>>>;
980
993
  }, "strip", z.ZodTypeAny, {
981
- events: string[];
994
+ events: ("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")[];
982
995
  match?: Record<string, {
983
996
  equals?: string | number | boolean | undefined;
984
997
  contains?: string | undefined;
985
998
  }> | undefined;
986
999
  }, {
987
- events: string[];
1000
+ events: ("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")[];
988
1001
  match?: Record<string, {
989
1002
  equals?: string | number | boolean | undefined;
990
1003
  contains?: string | undefined;
@@ -997,7 +1010,7 @@ export declare const AddPointsSchema: z.ZodObject<{
997
1010
  count: number;
998
1011
  withinMs?: number | undefined;
999
1012
  counter?: {
1000
- events: string[];
1013
+ events: ("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")[];
1001
1014
  match?: Record<string, {
1002
1015
  equals?: string | number | boolean | undefined;
1003
1016
  contains?: string | undefined;
@@ -1010,7 +1023,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1010
1023
  count: number;
1011
1024
  withinMs?: number | undefined;
1012
1025
  counter?: {
1013
- events: string[];
1026
+ events: ("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")[];
1014
1027
  match?: Record<string, {
1015
1028
  equals?: string | number | boolean | undefined;
1016
1029
  contains?: string | undefined;
@@ -1045,7 +1058,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1045
1058
  maxHeight?: number | undefined;
1046
1059
  } | {
1047
1060
  type: "session_metric";
1048
- key: string;
1061
+ key: "time_on_page" | "page_views" | "scroll_depth";
1049
1062
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1050
1063
  threshold: number;
1051
1064
  } | {
@@ -1068,7 +1081,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1068
1081
  count: number;
1069
1082
  withinMs?: number | undefined;
1070
1083
  counter?: {
1071
- events: string[];
1084
+ events: ("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")[];
1072
1085
  match?: Record<string, {
1073
1086
  equals?: string | number | boolean | undefined;
1074
1087
  contains?: string | undefined;
@@ -1103,7 +1116,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1103
1116
  maxHeight?: number | undefined;
1104
1117
  } | {
1105
1118
  type: "session_metric";
1106
- key: string;
1119
+ key: "time_on_page" | "page_views" | "scroll_depth";
1107
1120
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1108
1121
  threshold: number;
1109
1122
  } | {
@@ -1126,7 +1139,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1126
1139
  count: number;
1127
1140
  withinMs?: number | undefined;
1128
1141
  counter?: {
1129
- events: string[];
1142
+ events: ("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")[];
1130
1143
  match?: Record<string, {
1131
1144
  equals?: string | number | boolean | undefined;
1132
1145
  contains?: string | undefined;
@@ -1165,7 +1178,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1165
1178
  maxHeight?: number | undefined;
1166
1179
  } | {
1167
1180
  type: "session_metric";
1168
- key: string;
1181
+ key: "time_on_page" | "page_views" | "scroll_depth";
1169
1182
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1170
1183
  threshold: number;
1171
1184
  } | {
@@ -1188,7 +1201,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1188
1201
  count: number;
1189
1202
  withinMs?: number | undefined;
1190
1203
  counter?: {
1191
- events: string[];
1204
+ events: ("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")[];
1192
1205
  match?: Record<string, {
1193
1206
  equals?: string | number | boolean | undefined;
1194
1207
  contains?: string | undefined;
@@ -1227,7 +1240,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1227
1240
  maxHeight?: number | undefined;
1228
1241
  } | {
1229
1242
  type: "session_metric";
1230
- key: string;
1243
+ key: "time_on_page" | "page_views" | "scroll_depth";
1231
1244
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1232
1245
  threshold: number;
1233
1246
  } | {
@@ -1250,7 +1263,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1250
1263
  count: number;
1251
1264
  withinMs?: number | undefined;
1252
1265
  counter?: {
1253
- events: string[];
1266
+ events: ("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")[];
1254
1267
  match?: Record<string, {
1255
1268
  equals?: string | number | boolean | undefined;
1256
1269
  contains?: string | undefined;
@@ -1315,10 +1328,18 @@ export declare const AddPointsSchema: z.ZodObject<{
1315
1328
  method?: "GET" | "POST" | undefined;
1316
1329
  timeoutMs?: number | undefined;
1317
1330
  }>]>>>;
1331
+ } & {
1332
+ readonly id: z.ZodOptional<z.ZodString>;
1333
+ readonly title: z.ZodOptional<z.ZodString>;
1334
+ readonly description: z.ZodOptional<z.ZodString>;
1335
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1318
1336
  }, "strip", z.ZodTypeAny, {
1319
1337
  points: number;
1320
1338
  kind: "gamification:addPoints";
1321
1339
  reason?: string | undefined;
1340
+ id?: string | undefined;
1341
+ description?: string | undefined;
1342
+ validation?: string[] | undefined;
1322
1343
  label?: string | undefined;
1323
1344
  triggerWhen?: {
1324
1345
  type: "rules";
@@ -1349,7 +1370,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1349
1370
  maxHeight?: number | undefined;
1350
1371
  } | {
1351
1372
  type: "session_metric";
1352
- key: string;
1373
+ key: "time_on_page" | "page_views" | "scroll_depth";
1353
1374
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1354
1375
  threshold: number;
1355
1376
  } | {
@@ -1372,7 +1393,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1372
1393
  count: number;
1373
1394
  withinMs?: number | undefined;
1374
1395
  counter?: {
1375
- events: string[];
1396
+ events: ("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")[];
1376
1397
  match?: Record<string, {
1377
1398
  equals?: string | number | boolean | undefined;
1378
1399
  contains?: string | undefined;
@@ -1401,10 +1422,14 @@ export declare const AddPointsSchema: z.ZodObject<{
1401
1422
  method?: "GET" | "POST" | undefined;
1402
1423
  timeoutMs?: number | undefined;
1403
1424
  } | null | undefined;
1425
+ title?: string | undefined;
1404
1426
  }, {
1405
1427
  points: number;
1406
1428
  kind: "gamification:addPoints";
1407
1429
  reason?: string | undefined;
1430
+ id?: string | undefined;
1431
+ description?: string | undefined;
1432
+ validation?: string[] | undefined;
1408
1433
  label?: string | undefined;
1409
1434
  triggerWhen?: {
1410
1435
  type: "rules";
@@ -1435,7 +1460,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1435
1460
  maxHeight?: number | undefined;
1436
1461
  } | {
1437
1462
  type: "session_metric";
1438
- key: string;
1463
+ key: "time_on_page" | "page_views" | "scroll_depth";
1439
1464
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1440
1465
  threshold: number;
1441
1466
  } | {
@@ -1458,7 +1483,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1458
1483
  count: number;
1459
1484
  withinMs?: number | undefined;
1460
1485
  counter?: {
1461
- events: string[];
1486
+ events: ("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")[];
1462
1487
  match?: Record<string, {
1463
1488
  equals?: string | number | boolean | undefined;
1464
1489
  contains?: string | undefined;
@@ -1487,6 +1512,7 @@ export declare const AddPointsSchema: z.ZodObject<{
1487
1512
  method?: "GET" | "POST" | undefined;
1488
1513
  timeoutMs?: number | undefined;
1489
1514
  } | null | undefined;
1515
+ title?: string | undefined;
1490
1516
  }>;
1491
1517
  /**
1492
1518
  * Action step schemas for unified JSON Schema generation.
@@ -1587,17 +1613,17 @@ export declare const actionStepSchemas: ({
1587
1613
  maxHeight?: number | undefined;
1588
1614
  }>, z.ZodObject<{
1589
1615
  type: z.ZodLiteral<"session_metric">;
1590
- key: z.ZodString;
1616
+ key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
1591
1617
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
1592
1618
  threshold: z.ZodNumber;
1593
1619
  }, "strip", z.ZodTypeAny, {
1594
1620
  type: "session_metric";
1595
- key: string;
1621
+ key: "time_on_page" | "page_views" | "scroll_depth";
1596
1622
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1597
1623
  threshold: number;
1598
1624
  }, {
1599
1625
  type: "session_metric";
1600
- key: string;
1626
+ key: "time_on_page" | "page_views" | "scroll_depth";
1601
1627
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1602
1628
  threshold: number;
1603
1629
  }>, z.ZodObject<{
@@ -1646,7 +1672,7 @@ export declare const actionStepSchemas: ({
1646
1672
  count: z.ZodNumber;
1647
1673
  withinMs: z.ZodOptional<z.ZodNumber>;
1648
1674
  counter: z.ZodOptional<z.ZodObject<{
1649
- events: z.ZodArray<z.ZodString, "many">;
1675
+ 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">;
1650
1676
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1651
1677
  equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1652
1678
  contains: z.ZodOptional<z.ZodString>;
@@ -1658,13 +1684,13 @@ export declare const actionStepSchemas: ({
1658
1684
  contains?: string | undefined;
1659
1685
  }>>>;
1660
1686
  }, "strip", z.ZodTypeAny, {
1661
- events: string[];
1687
+ events: ("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")[];
1662
1688
  match?: Record<string, {
1663
1689
  equals?: string | number | boolean | undefined;
1664
1690
  contains?: string | undefined;
1665
1691
  }> | undefined;
1666
1692
  }, {
1667
- events: string[];
1693
+ events: ("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")[];
1668
1694
  match?: Record<string, {
1669
1695
  equals?: string | number | boolean | undefined;
1670
1696
  contains?: string | undefined;
@@ -1677,7 +1703,7 @@ export declare const actionStepSchemas: ({
1677
1703
  count: number;
1678
1704
  withinMs?: number | undefined;
1679
1705
  counter?: {
1680
- events: string[];
1706
+ events: ("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")[];
1681
1707
  match?: Record<string, {
1682
1708
  equals?: string | number | boolean | undefined;
1683
1709
  contains?: string | undefined;
@@ -1690,7 +1716,7 @@ export declare const actionStepSchemas: ({
1690
1716
  count: number;
1691
1717
  withinMs?: number | undefined;
1692
1718
  counter?: {
1693
- events: string[];
1719
+ events: ("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")[];
1694
1720
  match?: Record<string, {
1695
1721
  equals?: string | number | boolean | undefined;
1696
1722
  contains?: string | undefined;
@@ -1725,7 +1751,7 @@ export declare const actionStepSchemas: ({
1725
1751
  maxHeight?: number | undefined;
1726
1752
  } | {
1727
1753
  type: "session_metric";
1728
- key: string;
1754
+ key: "time_on_page" | "page_views" | "scroll_depth";
1729
1755
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1730
1756
  threshold: number;
1731
1757
  } | {
@@ -1748,7 +1774,7 @@ export declare const actionStepSchemas: ({
1748
1774
  count: number;
1749
1775
  withinMs?: number | undefined;
1750
1776
  counter?: {
1751
- events: string[];
1777
+ events: ("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")[];
1752
1778
  match?: Record<string, {
1753
1779
  equals?: string | number | boolean | undefined;
1754
1780
  contains?: string | undefined;
@@ -1783,7 +1809,7 @@ export declare const actionStepSchemas: ({
1783
1809
  maxHeight?: number | undefined;
1784
1810
  } | {
1785
1811
  type: "session_metric";
1786
- key: string;
1812
+ key: "time_on_page" | "page_views" | "scroll_depth";
1787
1813
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1788
1814
  threshold: number;
1789
1815
  } | {
@@ -1806,7 +1832,7 @@ export declare const actionStepSchemas: ({
1806
1832
  count: number;
1807
1833
  withinMs?: number | undefined;
1808
1834
  counter?: {
1809
- events: string[];
1835
+ events: ("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")[];
1810
1836
  match?: Record<string, {
1811
1837
  equals?: string | number | boolean | undefined;
1812
1838
  contains?: string | undefined;
@@ -1845,7 +1871,7 @@ export declare const actionStepSchemas: ({
1845
1871
  maxHeight?: number | undefined;
1846
1872
  } | {
1847
1873
  type: "session_metric";
1848
- key: string;
1874
+ key: "time_on_page" | "page_views" | "scroll_depth";
1849
1875
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1850
1876
  threshold: number;
1851
1877
  } | {
@@ -1868,7 +1894,7 @@ export declare const actionStepSchemas: ({
1868
1894
  count: number;
1869
1895
  withinMs?: number | undefined;
1870
1896
  counter?: {
1871
- events: string[];
1897
+ events: ("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")[];
1872
1898
  match?: Record<string, {
1873
1899
  equals?: string | number | boolean | undefined;
1874
1900
  contains?: string | undefined;
@@ -1907,7 +1933,7 @@ export declare const actionStepSchemas: ({
1907
1933
  maxHeight?: number | undefined;
1908
1934
  } | {
1909
1935
  type: "session_metric";
1910
- key: string;
1936
+ key: "time_on_page" | "page_views" | "scroll_depth";
1911
1937
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1912
1938
  threshold: number;
1913
1939
  } | {
@@ -1930,7 +1956,7 @@ export declare const actionStepSchemas: ({
1930
1956
  count: number;
1931
1957
  withinMs?: number | undefined;
1932
1958
  counter?: {
1933
- events: string[];
1959
+ events: ("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")[];
1934
1960
  match?: Record<string, {
1935
1961
  equals?: string | number | boolean | undefined;
1936
1962
  contains?: string | undefined;
@@ -1995,9 +2021,17 @@ export declare const actionStepSchemas: ({
1995
2021
  method?: "GET" | "POST" | undefined;
1996
2022
  timeoutMs?: number | undefined;
1997
2023
  }>]>>>;
2024
+ } & {
2025
+ readonly id: z.ZodOptional<z.ZodString>;
2026
+ readonly title: z.ZodOptional<z.ZodString>;
2027
+ readonly description: z.ZodOptional<z.ZodString>;
2028
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1998
2029
  }, "strip", z.ZodTypeAny, {
1999
2030
  badgeId: string;
2000
2031
  kind: "gamification:awardBadge";
2032
+ id?: string | undefined;
2033
+ description?: string | undefined;
2034
+ validation?: string[] | undefined;
2001
2035
  anchorId?: {
2002
2036
  selector: string;
2003
2037
  route: string | string[];
@@ -2032,7 +2066,7 @@ export declare const actionStepSchemas: ({
2032
2066
  maxHeight?: number | undefined;
2033
2067
  } | {
2034
2068
  type: "session_metric";
2035
- key: string;
2069
+ key: "time_on_page" | "page_views" | "scroll_depth";
2036
2070
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2037
2071
  threshold: number;
2038
2072
  } | {
@@ -2055,7 +2089,7 @@ export declare const actionStepSchemas: ({
2055
2089
  count: number;
2056
2090
  withinMs?: number | undefined;
2057
2091
  counter?: {
2058
- events: string[];
2092
+ events: ("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")[];
2059
2093
  match?: Record<string, {
2060
2094
  equals?: string | number | boolean | undefined;
2061
2095
  contains?: string | undefined;
@@ -2084,9 +2118,13 @@ export declare const actionStepSchemas: ({
2084
2118
  method?: "GET" | "POST" | undefined;
2085
2119
  timeoutMs?: number | undefined;
2086
2120
  } | null | undefined;
2121
+ title?: string | undefined;
2087
2122
  }, {
2088
2123
  badgeId: string;
2089
2124
  kind: "gamification:awardBadge";
2125
+ id?: string | undefined;
2126
+ description?: string | undefined;
2127
+ validation?: string[] | undefined;
2090
2128
  anchorId?: {
2091
2129
  selector: string;
2092
2130
  route: string | string[];
@@ -2121,7 +2159,7 @@ export declare const actionStepSchemas: ({
2121
2159
  maxHeight?: number | undefined;
2122
2160
  } | {
2123
2161
  type: "session_metric";
2124
- key: string;
2162
+ key: "time_on_page" | "page_views" | "scroll_depth";
2125
2163
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2126
2164
  threshold: number;
2127
2165
  } | {
@@ -2144,7 +2182,7 @@ export declare const actionStepSchemas: ({
2144
2182
  count: number;
2145
2183
  withinMs?: number | undefined;
2146
2184
  counter?: {
2147
- events: string[];
2185
+ events: ("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")[];
2148
2186
  match?: Record<string, {
2149
2187
  equals?: string | number | boolean | undefined;
2150
2188
  contains?: string | undefined;
@@ -2173,6 +2211,7 @@ export declare const actionStepSchemas: ({
2173
2211
  method?: "GET" | "POST" | undefined;
2174
2212
  timeoutMs?: number | undefined;
2175
2213
  } | null | undefined;
2214
+ title?: string | undefined;
2176
2215
  }>;
2177
2216
  } | {
2178
2217
  defName: string;
@@ -2259,17 +2298,17 @@ export declare const actionStepSchemas: ({
2259
2298
  maxHeight?: number | undefined;
2260
2299
  }>, z.ZodObject<{
2261
2300
  type: z.ZodLiteral<"session_metric">;
2262
- key: z.ZodString;
2301
+ key: z.ZodEnum<["time_on_page", "page_views", "scroll_depth"]>;
2263
2302
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
2264
2303
  threshold: z.ZodNumber;
2265
2304
  }, "strip", z.ZodTypeAny, {
2266
2305
  type: "session_metric";
2267
- key: string;
2306
+ key: "time_on_page" | "page_views" | "scroll_depth";
2268
2307
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2269
2308
  threshold: number;
2270
2309
  }, {
2271
2310
  type: "session_metric";
2272
- key: string;
2311
+ key: "time_on_page" | "page_views" | "scroll_depth";
2273
2312
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2274
2313
  threshold: number;
2275
2314
  }>, z.ZodObject<{
@@ -2318,7 +2357,7 @@ export declare const actionStepSchemas: ({
2318
2357
  count: z.ZodNumber;
2319
2358
  withinMs: z.ZodOptional<z.ZodNumber>;
2320
2359
  counter: z.ZodOptional<z.ZodObject<{
2321
- events: z.ZodArray<z.ZodString, "many">;
2360
+ 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">;
2322
2361
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2323
2362
  equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2324
2363
  contains: z.ZodOptional<z.ZodString>;
@@ -2330,13 +2369,13 @@ export declare const actionStepSchemas: ({
2330
2369
  contains?: string | undefined;
2331
2370
  }>>>;
2332
2371
  }, "strip", z.ZodTypeAny, {
2333
- events: string[];
2372
+ events: ("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")[];
2334
2373
  match?: Record<string, {
2335
2374
  equals?: string | number | boolean | undefined;
2336
2375
  contains?: string | undefined;
2337
2376
  }> | undefined;
2338
2377
  }, {
2339
- events: string[];
2378
+ events: ("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")[];
2340
2379
  match?: Record<string, {
2341
2380
  equals?: string | number | boolean | undefined;
2342
2381
  contains?: string | undefined;
@@ -2349,7 +2388,7 @@ export declare const actionStepSchemas: ({
2349
2388
  count: number;
2350
2389
  withinMs?: number | undefined;
2351
2390
  counter?: {
2352
- events: string[];
2391
+ events: ("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")[];
2353
2392
  match?: Record<string, {
2354
2393
  equals?: string | number | boolean | undefined;
2355
2394
  contains?: string | undefined;
@@ -2362,7 +2401,7 @@ export declare const actionStepSchemas: ({
2362
2401
  count: number;
2363
2402
  withinMs?: number | undefined;
2364
2403
  counter?: {
2365
- events: string[];
2404
+ events: ("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")[];
2366
2405
  match?: Record<string, {
2367
2406
  equals?: string | number | boolean | undefined;
2368
2407
  contains?: string | undefined;
@@ -2397,7 +2436,7 @@ export declare const actionStepSchemas: ({
2397
2436
  maxHeight?: number | undefined;
2398
2437
  } | {
2399
2438
  type: "session_metric";
2400
- key: string;
2439
+ key: "time_on_page" | "page_views" | "scroll_depth";
2401
2440
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2402
2441
  threshold: number;
2403
2442
  } | {
@@ -2420,7 +2459,7 @@ export declare const actionStepSchemas: ({
2420
2459
  count: number;
2421
2460
  withinMs?: number | undefined;
2422
2461
  counter?: {
2423
- events: string[];
2462
+ events: ("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")[];
2424
2463
  match?: Record<string, {
2425
2464
  equals?: string | number | boolean | undefined;
2426
2465
  contains?: string | undefined;
@@ -2455,7 +2494,7 @@ export declare const actionStepSchemas: ({
2455
2494
  maxHeight?: number | undefined;
2456
2495
  } | {
2457
2496
  type: "session_metric";
2458
- key: string;
2497
+ key: "time_on_page" | "page_views" | "scroll_depth";
2459
2498
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2460
2499
  threshold: number;
2461
2500
  } | {
@@ -2478,7 +2517,7 @@ export declare const actionStepSchemas: ({
2478
2517
  count: number;
2479
2518
  withinMs?: number | undefined;
2480
2519
  counter?: {
2481
- events: string[];
2520
+ events: ("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")[];
2482
2521
  match?: Record<string, {
2483
2522
  equals?: string | number | boolean | undefined;
2484
2523
  contains?: string | undefined;
@@ -2517,7 +2556,7 @@ export declare const actionStepSchemas: ({
2517
2556
  maxHeight?: number | undefined;
2518
2557
  } | {
2519
2558
  type: "session_metric";
2520
- key: string;
2559
+ key: "time_on_page" | "page_views" | "scroll_depth";
2521
2560
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2522
2561
  threshold: number;
2523
2562
  } | {
@@ -2540,7 +2579,7 @@ export declare const actionStepSchemas: ({
2540
2579
  count: number;
2541
2580
  withinMs?: number | undefined;
2542
2581
  counter?: {
2543
- events: string[];
2582
+ events: ("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")[];
2544
2583
  match?: Record<string, {
2545
2584
  equals?: string | number | boolean | undefined;
2546
2585
  contains?: string | undefined;
@@ -2579,7 +2618,7 @@ export declare const actionStepSchemas: ({
2579
2618
  maxHeight?: number | undefined;
2580
2619
  } | {
2581
2620
  type: "session_metric";
2582
- key: string;
2621
+ key: "time_on_page" | "page_views" | "scroll_depth";
2583
2622
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2584
2623
  threshold: number;
2585
2624
  } | {
@@ -2602,7 +2641,7 @@ export declare const actionStepSchemas: ({
2602
2641
  count: number;
2603
2642
  withinMs?: number | undefined;
2604
2643
  counter?: {
2605
- events: string[];
2644
+ events: ("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")[];
2606
2645
  match?: Record<string, {
2607
2646
  equals?: string | number | boolean | undefined;
2608
2647
  contains?: string | undefined;
@@ -2667,10 +2706,18 @@ export declare const actionStepSchemas: ({
2667
2706
  method?: "GET" | "POST" | undefined;
2668
2707
  timeoutMs?: number | undefined;
2669
2708
  }>]>>>;
2709
+ } & {
2710
+ readonly id: z.ZodOptional<z.ZodString>;
2711
+ readonly title: z.ZodOptional<z.ZodString>;
2712
+ readonly description: z.ZodOptional<z.ZodString>;
2713
+ readonly validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2670
2714
  }, "strip", z.ZodTypeAny, {
2671
2715
  points: number;
2672
2716
  kind: "gamification:addPoints";
2673
2717
  reason?: string | undefined;
2718
+ id?: string | undefined;
2719
+ description?: string | undefined;
2720
+ validation?: string[] | undefined;
2674
2721
  label?: string | undefined;
2675
2722
  triggerWhen?: {
2676
2723
  type: "rules";
@@ -2701,7 +2748,7 @@ export declare const actionStepSchemas: ({
2701
2748
  maxHeight?: number | undefined;
2702
2749
  } | {
2703
2750
  type: "session_metric";
2704
- key: string;
2751
+ key: "time_on_page" | "page_views" | "scroll_depth";
2705
2752
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2706
2753
  threshold: number;
2707
2754
  } | {
@@ -2724,7 +2771,7 @@ export declare const actionStepSchemas: ({
2724
2771
  count: number;
2725
2772
  withinMs?: number | undefined;
2726
2773
  counter?: {
2727
- events: string[];
2774
+ events: ("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")[];
2728
2775
  match?: Record<string, {
2729
2776
  equals?: string | number | boolean | undefined;
2730
2777
  contains?: string | undefined;
@@ -2753,10 +2800,14 @@ export declare const actionStepSchemas: ({
2753
2800
  method?: "GET" | "POST" | undefined;
2754
2801
  timeoutMs?: number | undefined;
2755
2802
  } | null | undefined;
2803
+ title?: string | undefined;
2756
2804
  }, {
2757
2805
  points: number;
2758
2806
  kind: "gamification:addPoints";
2759
2807
  reason?: string | undefined;
2808
+ id?: string | undefined;
2809
+ description?: string | undefined;
2810
+ validation?: string[] | undefined;
2760
2811
  label?: string | undefined;
2761
2812
  triggerWhen?: {
2762
2813
  type: "rules";
@@ -2787,7 +2838,7 @@ export declare const actionStepSchemas: ({
2787
2838
  maxHeight?: number | undefined;
2788
2839
  } | {
2789
2840
  type: "session_metric";
2790
- key: string;
2841
+ key: "time_on_page" | "page_views" | "scroll_depth";
2791
2842
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2792
2843
  threshold: number;
2793
2844
  } | {
@@ -2810,7 +2861,7 @@ export declare const actionStepSchemas: ({
2810
2861
  count: number;
2811
2862
  withinMs?: number | undefined;
2812
2863
  counter?: {
2813
- events: string[];
2864
+ events: ("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")[];
2814
2865
  match?: Record<string, {
2815
2866
  equals?: string | number | boolean | undefined;
2816
2867
  contains?: string | undefined;
@@ -2839,6 +2890,7 @@ export declare const actionStepSchemas: ({
2839
2890
  method?: "GET" | "POST" | undefined;
2840
2891
  timeoutMs?: number | undefined;
2841
2892
  } | null | undefined;
2893
+ title?: string | undefined;
2842
2894
  }>;
2843
2895
  })[];
2844
2896
  //# sourceMappingURL=schema.d.ts.map