@syntrologie/adapt-faq 2.4.0 → 2.5.1

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
@@ -2,7 +2,7 @@
2
2
  * Adaptive FAQ - Config Schema
3
3
  *
4
4
  * Zod schema for validating FAQ accordion configuration.
5
- * Demonstrates compositional action pattern with per-item showWhen.
5
+ * Demonstrates compositional action pattern with per-item triggerWhen.
6
6
  */
7
7
  import { z } from 'zod';
8
8
  /**
@@ -148,7 +148,7 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
148
148
  } | undefined;
149
149
  }>;
150
150
  /** Per-item activation strategy (null = always show) */
151
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
151
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
152
152
  type: z.ZodLiteral<"rules">;
153
153
  rules: z.ZodArray<z.ZodObject<{
154
154
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -283,18 +283,57 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
283
283
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
284
284
  count: z.ZodNumber;
285
285
  withinMs: z.ZodOptional<z.ZodNumber>;
286
+ counter: z.ZodOptional<z.ZodObject<{
287
+ events: z.ZodArray<z.ZodString, "many">;
288
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
289
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
290
+ contains: z.ZodOptional<z.ZodString>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ equals?: string | number | boolean | undefined;
293
+ contains?: string | undefined;
294
+ }, {
295
+ equals?: string | number | boolean | undefined;
296
+ contains?: string | undefined;
297
+ }>>>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ events: string[];
300
+ match?: Record<string, {
301
+ equals?: string | number | boolean | undefined;
302
+ contains?: string | undefined;
303
+ }> | undefined;
304
+ }, {
305
+ events: string[];
306
+ match?: Record<string, {
307
+ equals?: string | number | boolean | undefined;
308
+ contains?: string | undefined;
309
+ }> | undefined;
310
+ }>>;
286
311
  }, "strip", z.ZodTypeAny, {
287
312
  type: "event_count";
288
313
  key: string;
289
314
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
290
315
  count: number;
291
316
  withinMs?: number | undefined;
317
+ counter?: {
318
+ events: string[];
319
+ match?: Record<string, {
320
+ equals?: string | number | boolean | undefined;
321
+ contains?: string | undefined;
322
+ }> | undefined;
323
+ } | undefined;
292
324
  }, {
293
325
  type: "event_count";
294
326
  key: string;
295
327
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
296
328
  count: number;
297
329
  withinMs?: number | undefined;
330
+ counter?: {
331
+ events: string[];
332
+ match?: Record<string, {
333
+ equals?: string | number | boolean | undefined;
334
+ contains?: string | undefined;
335
+ }> | undefined;
336
+ } | undefined;
298
337
  }>]>, "many">;
299
338
  value: z.ZodUnknown;
300
339
  }, "strip", z.ZodTypeAny, {
@@ -346,6 +385,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
346
385
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
347
386
  count: number;
348
387
  withinMs?: number | undefined;
388
+ counter?: {
389
+ events: string[];
390
+ match?: Record<string, {
391
+ equals?: string | number | boolean | undefined;
392
+ contains?: string | undefined;
393
+ }> | undefined;
394
+ } | undefined;
349
395
  })[];
350
396
  value?: unknown;
351
397
  }, {
@@ -397,6 +443,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
397
443
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
398
444
  count: number;
399
445
  withinMs?: number | undefined;
446
+ counter?: {
447
+ events: string[];
448
+ match?: Record<string, {
449
+ equals?: string | number | boolean | undefined;
450
+ contains?: string | undefined;
451
+ }> | undefined;
452
+ } | undefined;
400
453
  })[];
401
454
  value?: unknown;
402
455
  }>, "many">;
@@ -452,6 +505,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
452
505
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
453
506
  count: number;
454
507
  withinMs?: number | undefined;
508
+ counter?: {
509
+ events: string[];
510
+ match?: Record<string, {
511
+ equals?: string | number | boolean | undefined;
512
+ contains?: string | undefined;
513
+ }> | undefined;
514
+ } | undefined;
455
515
  })[];
456
516
  value?: unknown;
457
517
  }[];
@@ -507,6 +567,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
507
567
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
508
568
  count: number;
509
569
  withinMs?: number | undefined;
570
+ counter?: {
571
+ events: string[];
572
+ match?: Record<string, {
573
+ equals?: string | number | boolean | undefined;
574
+ contains?: string | undefined;
575
+ }> | undefined;
576
+ } | undefined;
510
577
  })[];
511
578
  value?: unknown;
512
579
  }[];
@@ -566,7 +633,7 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
566
633
  method?: "GET" | "POST" | undefined;
567
634
  timeoutMs?: number | undefined;
568
635
  }>]>>>;
569
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
636
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
570
637
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
571
638
  title: z.ZodOptional<z.ZodString>;
572
639
  body: z.ZodOptional<z.ZodString>;
@@ -609,7 +676,7 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
609
676
  } | undefined;
610
677
  };
611
678
  kind: "faq:question";
612
- showWhen?: {
679
+ triggerWhen?: {
613
680
  type: "rules";
614
681
  rules: {
615
682
  conditions: ({
@@ -660,6 +727,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
660
727
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
661
728
  count: number;
662
729
  withinMs?: number | undefined;
730
+ counter?: {
731
+ events: string[];
732
+ match?: Record<string, {
733
+ equals?: string | number | boolean | undefined;
734
+ contains?: string | undefined;
735
+ }> | undefined;
736
+ } | undefined;
663
737
  })[];
664
738
  value?: unknown;
665
739
  }[];
@@ -717,7 +791,7 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
717
791
  } | undefined;
718
792
  };
719
793
  kind: "faq:question";
720
- showWhen?: {
794
+ triggerWhen?: {
721
795
  type: "rules";
722
796
  rules: {
723
797
  conditions: ({
@@ -768,6 +842,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
768
842
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
769
843
  count: number;
770
844
  withinMs?: number | undefined;
845
+ counter?: {
846
+ events: string[];
847
+ match?: Record<string, {
848
+ equals?: string | number | boolean | undefined;
849
+ contains?: string | undefined;
850
+ }> | undefined;
851
+ } | undefined;
771
852
  })[];
772
853
  value?: unknown;
773
854
  }[];
@@ -825,7 +906,7 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
825
906
  } | undefined;
826
907
  };
827
908
  kind: "faq:question";
828
- showWhen?: {
909
+ triggerWhen?: {
829
910
  type: "rules";
830
911
  rules: {
831
912
  conditions: ({
@@ -876,6 +957,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
876
957
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
877
958
  count: number;
878
959
  withinMs?: number | undefined;
960
+ counter?: {
961
+ events: string[];
962
+ match?: Record<string, {
963
+ equals?: string | number | boolean | undefined;
964
+ contains?: string | undefined;
965
+ }> | undefined;
966
+ } | undefined;
879
967
  })[];
880
968
  value?: unknown;
881
969
  }[];
@@ -933,7 +1021,7 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
933
1021
  } | undefined;
934
1022
  };
935
1023
  kind: "faq:question";
936
- showWhen?: {
1024
+ triggerWhen?: {
937
1025
  type: "rules";
938
1026
  rules: {
939
1027
  conditions: ({
@@ -984,6 +1072,13 @@ export declare const FAQQuestionSchema: z.ZodEffects<z.ZodObject<{
984
1072
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
985
1073
  count: number;
986
1074
  withinMs?: number | undefined;
1075
+ counter?: {
1076
+ events: string[];
1077
+ match?: Record<string, {
1078
+ equals?: string | number | boolean | undefined;
1079
+ contains?: string | undefined;
1080
+ }> | undefined;
1081
+ } | undefined;
987
1082
  })[];
988
1083
  value?: unknown;
989
1084
  }[];
@@ -1167,7 +1262,7 @@ export declare const configSchema: z.ZodObject<{
1167
1262
  } | undefined;
1168
1263
  }>;
1169
1264
  /** Per-item activation strategy (null = always show) */
1170
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1265
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1171
1266
  type: z.ZodLiteral<"rules">;
1172
1267
  rules: z.ZodArray<z.ZodObject<{
1173
1268
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -1302,18 +1397,57 @@ export declare const configSchema: z.ZodObject<{
1302
1397
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
1303
1398
  count: z.ZodNumber;
1304
1399
  withinMs: z.ZodOptional<z.ZodNumber>;
1400
+ counter: z.ZodOptional<z.ZodObject<{
1401
+ events: z.ZodArray<z.ZodString, "many">;
1402
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1403
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1404
+ contains: z.ZodOptional<z.ZodString>;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ equals?: string | number | boolean | undefined;
1407
+ contains?: string | undefined;
1408
+ }, {
1409
+ equals?: string | number | boolean | undefined;
1410
+ contains?: string | undefined;
1411
+ }>>>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ events: string[];
1414
+ match?: Record<string, {
1415
+ equals?: string | number | boolean | undefined;
1416
+ contains?: string | undefined;
1417
+ }> | undefined;
1418
+ }, {
1419
+ events: string[];
1420
+ match?: Record<string, {
1421
+ equals?: string | number | boolean | undefined;
1422
+ contains?: string | undefined;
1423
+ }> | undefined;
1424
+ }>>;
1305
1425
  }, "strip", z.ZodTypeAny, {
1306
1426
  type: "event_count";
1307
1427
  key: string;
1308
1428
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1309
1429
  count: number;
1310
1430
  withinMs?: number | undefined;
1431
+ counter?: {
1432
+ events: string[];
1433
+ match?: Record<string, {
1434
+ equals?: string | number | boolean | undefined;
1435
+ contains?: string | undefined;
1436
+ }> | undefined;
1437
+ } | undefined;
1311
1438
  }, {
1312
1439
  type: "event_count";
1313
1440
  key: string;
1314
1441
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1315
1442
  count: number;
1316
1443
  withinMs?: number | undefined;
1444
+ counter?: {
1445
+ events: string[];
1446
+ match?: Record<string, {
1447
+ equals?: string | number | boolean | undefined;
1448
+ contains?: string | undefined;
1449
+ }> | undefined;
1450
+ } | undefined;
1317
1451
  }>]>, "many">;
1318
1452
  value: z.ZodUnknown;
1319
1453
  }, "strip", z.ZodTypeAny, {
@@ -1365,6 +1499,13 @@ export declare const configSchema: z.ZodObject<{
1365
1499
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1366
1500
  count: number;
1367
1501
  withinMs?: number | undefined;
1502
+ counter?: {
1503
+ events: string[];
1504
+ match?: Record<string, {
1505
+ equals?: string | number | boolean | undefined;
1506
+ contains?: string | undefined;
1507
+ }> | undefined;
1508
+ } | undefined;
1368
1509
  })[];
1369
1510
  value?: unknown;
1370
1511
  }, {
@@ -1416,6 +1557,13 @@ export declare const configSchema: z.ZodObject<{
1416
1557
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1417
1558
  count: number;
1418
1559
  withinMs?: number | undefined;
1560
+ counter?: {
1561
+ events: string[];
1562
+ match?: Record<string, {
1563
+ equals?: string | number | boolean | undefined;
1564
+ contains?: string | undefined;
1565
+ }> | undefined;
1566
+ } | undefined;
1419
1567
  })[];
1420
1568
  value?: unknown;
1421
1569
  }>, "many">;
@@ -1471,6 +1619,13 @@ export declare const configSchema: z.ZodObject<{
1471
1619
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1472
1620
  count: number;
1473
1621
  withinMs?: number | undefined;
1622
+ counter?: {
1623
+ events: string[];
1624
+ match?: Record<string, {
1625
+ equals?: string | number | boolean | undefined;
1626
+ contains?: string | undefined;
1627
+ }> | undefined;
1628
+ } | undefined;
1474
1629
  })[];
1475
1630
  value?: unknown;
1476
1631
  }[];
@@ -1526,6 +1681,13 @@ export declare const configSchema: z.ZodObject<{
1526
1681
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1527
1682
  count: number;
1528
1683
  withinMs?: number | undefined;
1684
+ counter?: {
1685
+ events: string[];
1686
+ match?: Record<string, {
1687
+ equals?: string | number | boolean | undefined;
1688
+ contains?: string | undefined;
1689
+ }> | undefined;
1690
+ } | undefined;
1529
1691
  })[];
1530
1692
  value?: unknown;
1531
1693
  }[];
@@ -1585,7 +1747,7 @@ export declare const configSchema: z.ZodObject<{
1585
1747
  method?: "GET" | "POST" | undefined;
1586
1748
  timeoutMs?: number | undefined;
1587
1749
  }>]>>>;
1588
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
1750
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
1589
1751
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1590
1752
  title: z.ZodOptional<z.ZodString>;
1591
1753
  body: z.ZodOptional<z.ZodString>;
@@ -1628,7 +1790,7 @@ export declare const configSchema: z.ZodObject<{
1628
1790
  } | undefined;
1629
1791
  };
1630
1792
  kind: "faq:question";
1631
- showWhen?: {
1793
+ triggerWhen?: {
1632
1794
  type: "rules";
1633
1795
  rules: {
1634
1796
  conditions: ({
@@ -1679,6 +1841,13 @@ export declare const configSchema: z.ZodObject<{
1679
1841
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1680
1842
  count: number;
1681
1843
  withinMs?: number | undefined;
1844
+ counter?: {
1845
+ events: string[];
1846
+ match?: Record<string, {
1847
+ equals?: string | number | boolean | undefined;
1848
+ contains?: string | undefined;
1849
+ }> | undefined;
1850
+ } | undefined;
1682
1851
  })[];
1683
1852
  value?: unknown;
1684
1853
  }[];
@@ -1736,7 +1905,7 @@ export declare const configSchema: z.ZodObject<{
1736
1905
  } | undefined;
1737
1906
  };
1738
1907
  kind: "faq:question";
1739
- showWhen?: {
1908
+ triggerWhen?: {
1740
1909
  type: "rules";
1741
1910
  rules: {
1742
1911
  conditions: ({
@@ -1787,6 +1956,13 @@ export declare const configSchema: z.ZodObject<{
1787
1956
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1788
1957
  count: number;
1789
1958
  withinMs?: number | undefined;
1959
+ counter?: {
1960
+ events: string[];
1961
+ match?: Record<string, {
1962
+ equals?: string | number | boolean | undefined;
1963
+ contains?: string | undefined;
1964
+ }> | undefined;
1965
+ } | undefined;
1790
1966
  })[];
1791
1967
  value?: unknown;
1792
1968
  }[];
@@ -1844,7 +2020,7 @@ export declare const configSchema: z.ZodObject<{
1844
2020
  } | undefined;
1845
2021
  };
1846
2022
  kind: "faq:question";
1847
- showWhen?: {
2023
+ triggerWhen?: {
1848
2024
  type: "rules";
1849
2025
  rules: {
1850
2026
  conditions: ({
@@ -1895,6 +2071,13 @@ export declare const configSchema: z.ZodObject<{
1895
2071
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
1896
2072
  count: number;
1897
2073
  withinMs?: number | undefined;
2074
+ counter?: {
2075
+ events: string[];
2076
+ match?: Record<string, {
2077
+ equals?: string | number | boolean | undefined;
2078
+ contains?: string | undefined;
2079
+ }> | undefined;
2080
+ } | undefined;
1898
2081
  })[];
1899
2082
  value?: unknown;
1900
2083
  }[];
@@ -1952,7 +2135,7 @@ export declare const configSchema: z.ZodObject<{
1952
2135
  } | undefined;
1953
2136
  };
1954
2137
  kind: "faq:question";
1955
- showWhen?: {
2138
+ triggerWhen?: {
1956
2139
  type: "rules";
1957
2140
  rules: {
1958
2141
  conditions: ({
@@ -2003,6 +2186,13 @@ export declare const configSchema: z.ZodObject<{
2003
2186
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2004
2187
  count: number;
2005
2188
  withinMs?: number | undefined;
2189
+ counter?: {
2190
+ events: string[];
2191
+ match?: Record<string, {
2192
+ equals?: string | number | boolean | undefined;
2193
+ contains?: string | undefined;
2194
+ }> | undefined;
2195
+ } | undefined;
2006
2196
  })[];
2007
2197
  value?: unknown;
2008
2198
  }[];
@@ -2191,18 +2381,57 @@ export declare const configSchema: z.ZodObject<{
2191
2381
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
2192
2382
  count: z.ZodNumber;
2193
2383
  withinMs: z.ZodOptional<z.ZodNumber>;
2384
+ counter: z.ZodOptional<z.ZodObject<{
2385
+ events: z.ZodArray<z.ZodString, "many">;
2386
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2387
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2388
+ contains: z.ZodOptional<z.ZodString>;
2389
+ }, "strip", z.ZodTypeAny, {
2390
+ equals?: string | number | boolean | undefined;
2391
+ contains?: string | undefined;
2392
+ }, {
2393
+ equals?: string | number | boolean | undefined;
2394
+ contains?: string | undefined;
2395
+ }>>>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ events: string[];
2398
+ match?: Record<string, {
2399
+ equals?: string | number | boolean | undefined;
2400
+ contains?: string | undefined;
2401
+ }> | undefined;
2402
+ }, {
2403
+ events: string[];
2404
+ match?: Record<string, {
2405
+ equals?: string | number | boolean | undefined;
2406
+ contains?: string | undefined;
2407
+ }> | undefined;
2408
+ }>>;
2194
2409
  }, "strip", z.ZodTypeAny, {
2195
2410
  type: "event_count";
2196
2411
  key: string;
2197
2412
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2198
2413
  count: number;
2199
2414
  withinMs?: number | undefined;
2415
+ counter?: {
2416
+ events: string[];
2417
+ match?: Record<string, {
2418
+ equals?: string | number | boolean | undefined;
2419
+ contains?: string | undefined;
2420
+ }> | undefined;
2421
+ } | undefined;
2200
2422
  }, {
2201
2423
  type: "event_count";
2202
2424
  key: string;
2203
2425
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2204
2426
  count: number;
2205
2427
  withinMs?: number | undefined;
2428
+ counter?: {
2429
+ events: string[];
2430
+ match?: Record<string, {
2431
+ equals?: string | number | boolean | undefined;
2432
+ contains?: string | undefined;
2433
+ }> | undefined;
2434
+ } | undefined;
2206
2435
  }>]>, "many">;
2207
2436
  value: z.ZodUnknown;
2208
2437
  }, "strip", z.ZodTypeAny, {
@@ -2254,6 +2483,13 @@ export declare const configSchema: z.ZodObject<{
2254
2483
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2255
2484
  count: number;
2256
2485
  withinMs?: number | undefined;
2486
+ counter?: {
2487
+ events: string[];
2488
+ match?: Record<string, {
2489
+ equals?: string | number | boolean | undefined;
2490
+ contains?: string | undefined;
2491
+ }> | undefined;
2492
+ } | undefined;
2257
2493
  })[];
2258
2494
  value?: unknown;
2259
2495
  }, {
@@ -2305,6 +2541,13 @@ export declare const configSchema: z.ZodObject<{
2305
2541
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2306
2542
  count: number;
2307
2543
  withinMs?: number | undefined;
2544
+ counter?: {
2545
+ events: string[];
2546
+ match?: Record<string, {
2547
+ equals?: string | number | boolean | undefined;
2548
+ contains?: string | undefined;
2549
+ }> | undefined;
2550
+ } | undefined;
2308
2551
  })[];
2309
2552
  value?: unknown;
2310
2553
  }>, "many">;
@@ -2360,6 +2603,13 @@ export declare const configSchema: z.ZodObject<{
2360
2603
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2361
2604
  count: number;
2362
2605
  withinMs?: number | undefined;
2606
+ counter?: {
2607
+ events: string[];
2608
+ match?: Record<string, {
2609
+ equals?: string | number | boolean | undefined;
2610
+ contains?: string | undefined;
2611
+ }> | undefined;
2612
+ } | undefined;
2363
2613
  })[];
2364
2614
  value?: unknown;
2365
2615
  }[];
@@ -2415,6 +2665,13 @@ export declare const configSchema: z.ZodObject<{
2415
2665
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2416
2666
  count: number;
2417
2667
  withinMs?: number | undefined;
2668
+ counter?: {
2669
+ events: string[];
2670
+ match?: Record<string, {
2671
+ equals?: string | number | boolean | undefined;
2672
+ contains?: string | undefined;
2673
+ }> | undefined;
2674
+ } | undefined;
2418
2675
  })[];
2419
2676
  value?: unknown;
2420
2677
  }[];
@@ -2614,7 +2871,7 @@ export declare const configSchema: z.ZodObject<{
2614
2871
  } | undefined;
2615
2872
  }>;
2616
2873
  /** Per-item activation strategy (null = always show) */
2617
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2874
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2618
2875
  type: z.ZodLiteral<"rules">;
2619
2876
  rules: z.ZodArray<z.ZodObject<{
2620
2877
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2749,18 +3006,57 @@ export declare const configSchema: z.ZodObject<{
2749
3006
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
2750
3007
  count: z.ZodNumber;
2751
3008
  withinMs: z.ZodOptional<z.ZodNumber>;
3009
+ counter: z.ZodOptional<z.ZodObject<{
3010
+ events: z.ZodArray<z.ZodString, "many">;
3011
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3012
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3013
+ contains: z.ZodOptional<z.ZodString>;
3014
+ }, "strip", z.ZodTypeAny, {
3015
+ equals?: string | number | boolean | undefined;
3016
+ contains?: string | undefined;
3017
+ }, {
3018
+ equals?: string | number | boolean | undefined;
3019
+ contains?: string | undefined;
3020
+ }>>>;
3021
+ }, "strip", z.ZodTypeAny, {
3022
+ events: string[];
3023
+ match?: Record<string, {
3024
+ equals?: string | number | boolean | undefined;
3025
+ contains?: string | undefined;
3026
+ }> | undefined;
3027
+ }, {
3028
+ events: string[];
3029
+ match?: Record<string, {
3030
+ equals?: string | number | boolean | undefined;
3031
+ contains?: string | undefined;
3032
+ }> | undefined;
3033
+ }>>;
2752
3034
  }, "strip", z.ZodTypeAny, {
2753
3035
  type: "event_count";
2754
3036
  key: string;
2755
3037
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2756
3038
  count: number;
2757
3039
  withinMs?: number | undefined;
3040
+ counter?: {
3041
+ events: string[];
3042
+ match?: Record<string, {
3043
+ equals?: string | number | boolean | undefined;
3044
+ contains?: string | undefined;
3045
+ }> | undefined;
3046
+ } | undefined;
2758
3047
  }, {
2759
3048
  type: "event_count";
2760
3049
  key: string;
2761
3050
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2762
3051
  count: number;
2763
3052
  withinMs?: number | undefined;
3053
+ counter?: {
3054
+ events: string[];
3055
+ match?: Record<string, {
3056
+ equals?: string | number | boolean | undefined;
3057
+ contains?: string | undefined;
3058
+ }> | undefined;
3059
+ } | undefined;
2764
3060
  }>]>, "many">;
2765
3061
  value: z.ZodUnknown;
2766
3062
  }, "strip", z.ZodTypeAny, {
@@ -2812,6 +3108,13 @@ export declare const configSchema: z.ZodObject<{
2812
3108
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2813
3109
  count: number;
2814
3110
  withinMs?: number | undefined;
3111
+ counter?: {
3112
+ events: string[];
3113
+ match?: Record<string, {
3114
+ equals?: string | number | boolean | undefined;
3115
+ contains?: string | undefined;
3116
+ }> | undefined;
3117
+ } | undefined;
2815
3118
  })[];
2816
3119
  value?: unknown;
2817
3120
  }, {
@@ -2863,6 +3166,13 @@ export declare const configSchema: z.ZodObject<{
2863
3166
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2864
3167
  count: number;
2865
3168
  withinMs?: number | undefined;
3169
+ counter?: {
3170
+ events: string[];
3171
+ match?: Record<string, {
3172
+ equals?: string | number | boolean | undefined;
3173
+ contains?: string | undefined;
3174
+ }> | undefined;
3175
+ } | undefined;
2866
3176
  })[];
2867
3177
  value?: unknown;
2868
3178
  }>, "many">;
@@ -2918,6 +3228,13 @@ export declare const configSchema: z.ZodObject<{
2918
3228
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2919
3229
  count: number;
2920
3230
  withinMs?: number | undefined;
3231
+ counter?: {
3232
+ events: string[];
3233
+ match?: Record<string, {
3234
+ equals?: string | number | boolean | undefined;
3235
+ contains?: string | undefined;
3236
+ }> | undefined;
3237
+ } | undefined;
2921
3238
  })[];
2922
3239
  value?: unknown;
2923
3240
  }[];
@@ -2973,6 +3290,13 @@ export declare const configSchema: z.ZodObject<{
2973
3290
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
2974
3291
  count: number;
2975
3292
  withinMs?: number | undefined;
3293
+ counter?: {
3294
+ events: string[];
3295
+ match?: Record<string, {
3296
+ equals?: string | number | boolean | undefined;
3297
+ contains?: string | undefined;
3298
+ }> | undefined;
3299
+ } | undefined;
2976
3300
  })[];
2977
3301
  value?: unknown;
2978
3302
  }[];
@@ -3032,7 +3356,7 @@ export declare const configSchema: z.ZodObject<{
3032
3356
  method?: "GET" | "POST" | undefined;
3033
3357
  timeoutMs?: number | undefined;
3034
3358
  }>]>>>;
3035
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
3359
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
3036
3360
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3037
3361
  title: z.ZodOptional<z.ZodString>;
3038
3362
  body: z.ZodOptional<z.ZodString>;
@@ -3075,7 +3399,7 @@ export declare const configSchema: z.ZodObject<{
3075
3399
  } | undefined;
3076
3400
  };
3077
3401
  kind: "faq:question";
3078
- showWhen?: {
3402
+ triggerWhen?: {
3079
3403
  type: "rules";
3080
3404
  rules: {
3081
3405
  conditions: ({
@@ -3126,6 +3450,13 @@ export declare const configSchema: z.ZodObject<{
3126
3450
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3127
3451
  count: number;
3128
3452
  withinMs?: number | undefined;
3453
+ counter?: {
3454
+ events: string[];
3455
+ match?: Record<string, {
3456
+ equals?: string | number | boolean | undefined;
3457
+ contains?: string | undefined;
3458
+ }> | undefined;
3459
+ } | undefined;
3129
3460
  })[];
3130
3461
  value?: unknown;
3131
3462
  }[];
@@ -3183,7 +3514,7 @@ export declare const configSchema: z.ZodObject<{
3183
3514
  } | undefined;
3184
3515
  };
3185
3516
  kind: "faq:question";
3186
- showWhen?: {
3517
+ triggerWhen?: {
3187
3518
  type: "rules";
3188
3519
  rules: {
3189
3520
  conditions: ({
@@ -3234,6 +3565,13 @@ export declare const configSchema: z.ZodObject<{
3234
3565
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3235
3566
  count: number;
3236
3567
  withinMs?: number | undefined;
3568
+ counter?: {
3569
+ events: string[];
3570
+ match?: Record<string, {
3571
+ equals?: string | number | boolean | undefined;
3572
+ contains?: string | undefined;
3573
+ }> | undefined;
3574
+ } | undefined;
3237
3575
  })[];
3238
3576
  value?: unknown;
3239
3577
  }[];
@@ -3291,7 +3629,7 @@ export declare const configSchema: z.ZodObject<{
3291
3629
  } | undefined;
3292
3630
  };
3293
3631
  kind: "faq:question";
3294
- showWhen?: {
3632
+ triggerWhen?: {
3295
3633
  type: "rules";
3296
3634
  rules: {
3297
3635
  conditions: ({
@@ -3342,6 +3680,13 @@ export declare const configSchema: z.ZodObject<{
3342
3680
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3343
3681
  count: number;
3344
3682
  withinMs?: number | undefined;
3683
+ counter?: {
3684
+ events: string[];
3685
+ match?: Record<string, {
3686
+ equals?: string | number | boolean | undefined;
3687
+ contains?: string | undefined;
3688
+ }> | undefined;
3689
+ } | undefined;
3345
3690
  })[];
3346
3691
  value?: unknown;
3347
3692
  }[];
@@ -3399,7 +3744,7 @@ export declare const configSchema: z.ZodObject<{
3399
3744
  } | undefined;
3400
3745
  };
3401
3746
  kind: "faq:question";
3402
- showWhen?: {
3747
+ triggerWhen?: {
3403
3748
  type: "rules";
3404
3749
  rules: {
3405
3750
  conditions: ({
@@ -3450,6 +3795,13 @@ export declare const configSchema: z.ZodObject<{
3450
3795
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3451
3796
  count: number;
3452
3797
  withinMs?: number | undefined;
3798
+ counter?: {
3799
+ events: string[];
3800
+ match?: Record<string, {
3801
+ equals?: string | number | boolean | undefined;
3802
+ contains?: string | undefined;
3803
+ }> | undefined;
3804
+ } | undefined;
3453
3805
  })[];
3454
3806
  value?: unknown;
3455
3807
  }[];
@@ -3511,7 +3863,7 @@ export declare const configSchema: z.ZodObject<{
3511
3863
  } | undefined;
3512
3864
  };
3513
3865
  kind: "faq:question";
3514
- showWhen?: {
3866
+ triggerWhen?: {
3515
3867
  type: "rules";
3516
3868
  rules: {
3517
3869
  conditions: ({
@@ -3562,6 +3914,13 @@ export declare const configSchema: z.ZodObject<{
3562
3914
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3563
3915
  count: number;
3564
3916
  withinMs?: number | undefined;
3917
+ counter?: {
3918
+ events: string[];
3919
+ match?: Record<string, {
3920
+ equals?: string | number | boolean | undefined;
3921
+ contains?: string | undefined;
3922
+ }> | undefined;
3923
+ } | undefined;
3565
3924
  })[];
3566
3925
  value?: unknown;
3567
3926
  }[];
@@ -3642,6 +4001,13 @@ export declare const configSchema: z.ZodObject<{
3642
4001
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3643
4002
  count: number;
3644
4003
  withinMs?: number | undefined;
4004
+ counter?: {
4005
+ events: string[];
4006
+ match?: Record<string, {
4007
+ equals?: string | number | boolean | undefined;
4008
+ contains?: string | undefined;
4009
+ }> | undefined;
4010
+ } | undefined;
3645
4011
  })[];
3646
4012
  value?: unknown;
3647
4013
  }[];
@@ -3697,7 +4063,7 @@ export declare const configSchema: z.ZodObject<{
3697
4063
  } | undefined;
3698
4064
  };
3699
4065
  kind: "faq:question";
3700
- showWhen?: {
4066
+ triggerWhen?: {
3701
4067
  type: "rules";
3702
4068
  rules: {
3703
4069
  conditions: ({
@@ -3748,6 +4114,13 @@ export declare const configSchema: z.ZodObject<{
3748
4114
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3749
4115
  count: number;
3750
4116
  withinMs?: number | undefined;
4117
+ counter?: {
4118
+ events: string[];
4119
+ match?: Record<string, {
4120
+ equals?: string | number | boolean | undefined;
4121
+ contains?: string | undefined;
4122
+ }> | undefined;
4123
+ } | undefined;
3751
4124
  })[];
3752
4125
  value?: unknown;
3753
4126
  }[];
@@ -3828,6 +4201,13 @@ export declare const configSchema: z.ZodObject<{
3828
4201
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3829
4202
  count: number;
3830
4203
  withinMs?: number | undefined;
4204
+ counter?: {
4205
+ events: string[];
4206
+ match?: Record<string, {
4207
+ equals?: string | number | boolean | undefined;
4208
+ contains?: string | undefined;
4209
+ }> | undefined;
4210
+ } | undefined;
3831
4211
  })[];
3832
4212
  value?: unknown;
3833
4213
  }[];
@@ -3854,20 +4234,6 @@ export declare const configSchema: z.ZodObject<{
3854
4234
  position?: "prepend" | "append" | undefined;
3855
4235
  once?: boolean | undefined;
3856
4236
  }>, "many">>;
3857
- /** Event scope for the FAQ widget */
3858
- scope: z.ZodOptional<z.ZodObject<{
3859
- events: z.ZodArray<z.ZodString, "many">;
3860
- urlContains: z.ZodOptional<z.ZodString>;
3861
- props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3862
- }, "strip", z.ZodTypeAny, {
3863
- events: string[];
3864
- urlContains?: string | undefined;
3865
- props?: Record<string, string | number | boolean> | undefined;
3866
- }, {
3867
- events: string[];
3868
- urlContains?: string | undefined;
3869
- props?: Record<string, string | number | boolean> | undefined;
3870
- }>>;
3871
4237
  }, "strip", z.ZodTypeAny, {
3872
4238
  theme: "light" | "dark" | "auto";
3873
4239
  searchable: boolean;
@@ -3901,7 +4267,7 @@ export declare const configSchema: z.ZodObject<{
3901
4267
  } | undefined;
3902
4268
  };
3903
4269
  kind: "faq:question";
3904
- showWhen?: {
4270
+ triggerWhen?: {
3905
4271
  type: "rules";
3906
4272
  rules: {
3907
4273
  conditions: ({
@@ -3952,6 +4318,13 @@ export declare const configSchema: z.ZodObject<{
3952
4318
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
3953
4319
  count: number;
3954
4320
  withinMs?: number | undefined;
4321
+ counter?: {
4322
+ events: string[];
4323
+ match?: Record<string, {
4324
+ equals?: string | number | boolean | undefined;
4325
+ contains?: string | undefined;
4326
+ }> | undefined;
4327
+ } | undefined;
3955
4328
  })[];
3956
4329
  value?: unknown;
3957
4330
  }[];
@@ -4019,7 +4392,7 @@ export declare const configSchema: z.ZodObject<{
4019
4392
  } | undefined;
4020
4393
  };
4021
4394
  kind: "faq:question";
4022
- showWhen?: {
4395
+ triggerWhen?: {
4023
4396
  type: "rules";
4024
4397
  rules: {
4025
4398
  conditions: ({
@@ -4070,6 +4443,13 @@ export declare const configSchema: z.ZodObject<{
4070
4443
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4071
4444
  count: number;
4072
4445
  withinMs?: number | undefined;
4446
+ counter?: {
4447
+ events: string[];
4448
+ match?: Record<string, {
4449
+ equals?: string | number | boolean | undefined;
4450
+ contains?: string | undefined;
4451
+ }> | undefined;
4452
+ } | undefined;
4073
4453
  })[];
4074
4454
  value?: unknown;
4075
4455
  }[];
@@ -4150,6 +4530,13 @@ export declare const configSchema: z.ZodObject<{
4150
4530
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4151
4531
  count: number;
4152
4532
  withinMs?: number | undefined;
4533
+ counter?: {
4534
+ events: string[];
4535
+ match?: Record<string, {
4536
+ equals?: string | number | boolean | undefined;
4537
+ contains?: string | undefined;
4538
+ }> | undefined;
4539
+ } | undefined;
4153
4540
  })[];
4154
4541
  value?: unknown;
4155
4542
  }[];
@@ -4176,11 +4563,6 @@ export declare const configSchema: z.ZodObject<{
4176
4563
  position?: "prepend" | "append" | undefined;
4177
4564
  once?: boolean | undefined;
4178
4565
  }[] | undefined;
4179
- scope?: {
4180
- events: string[];
4181
- urlContains?: string | undefined;
4182
- props?: Record<string, string | number | boolean> | undefined;
4183
- } | undefined;
4184
4566
  title?: string | undefined;
4185
4567
  }, {
4186
4568
  theme?: "light" | "dark" | "auto" | undefined;
@@ -4215,7 +4597,7 @@ export declare const configSchema: z.ZodObject<{
4215
4597
  } | undefined;
4216
4598
  };
4217
4599
  kind: "faq:question";
4218
- showWhen?: {
4600
+ triggerWhen?: {
4219
4601
  type: "rules";
4220
4602
  rules: {
4221
4603
  conditions: ({
@@ -4266,6 +4648,13 @@ export declare const configSchema: z.ZodObject<{
4266
4648
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4267
4649
  count: number;
4268
4650
  withinMs?: number | undefined;
4651
+ counter?: {
4652
+ events: string[];
4653
+ match?: Record<string, {
4654
+ equals?: string | number | boolean | undefined;
4655
+ contains?: string | undefined;
4656
+ }> | undefined;
4657
+ } | undefined;
4269
4658
  })[];
4270
4659
  value?: unknown;
4271
4660
  }[];
@@ -4333,7 +4722,7 @@ export declare const configSchema: z.ZodObject<{
4333
4722
  } | undefined;
4334
4723
  };
4335
4724
  kind: "faq:question";
4336
- showWhen?: {
4725
+ triggerWhen?: {
4337
4726
  type: "rules";
4338
4727
  rules: {
4339
4728
  conditions: ({
@@ -4384,6 +4773,13 @@ export declare const configSchema: z.ZodObject<{
4384
4773
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4385
4774
  count: number;
4386
4775
  withinMs?: number | undefined;
4776
+ counter?: {
4777
+ events: string[];
4778
+ match?: Record<string, {
4779
+ equals?: string | number | boolean | undefined;
4780
+ contains?: string | undefined;
4781
+ }> | undefined;
4782
+ } | undefined;
4387
4783
  })[];
4388
4784
  value?: unknown;
4389
4785
  }[];
@@ -4464,6 +4860,13 @@ export declare const configSchema: z.ZodObject<{
4464
4860
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4465
4861
  count: number;
4466
4862
  withinMs?: number | undefined;
4863
+ counter?: {
4864
+ events: string[];
4865
+ match?: Record<string, {
4866
+ equals?: string | number | boolean | undefined;
4867
+ contains?: string | undefined;
4868
+ }> | undefined;
4869
+ } | undefined;
4467
4870
  })[];
4468
4871
  value?: unknown;
4469
4872
  }[];
@@ -4490,11 +4893,6 @@ export declare const configSchema: z.ZodObject<{
4490
4893
  position?: "prepend" | "append" | undefined;
4491
4894
  once?: boolean | undefined;
4492
4895
  }[] | undefined;
4493
- scope?: {
4494
- events: string[];
4495
- urlContains?: string | undefined;
4496
- props?: Record<string, string | number | boolean> | undefined;
4497
- } | undefined;
4498
4896
  title?: string | undefined;
4499
4897
  }>;
4500
4898
  export type FAQConfig = z.infer<typeof configSchema>;
@@ -4709,7 +5107,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
4709
5107
  } | undefined;
4710
5108
  }>;
4711
5109
  /** Per-item activation strategy (null = always show) */
4712
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5110
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4713
5111
  type: z.ZodLiteral<"rules">;
4714
5112
  rules: z.ZodArray<z.ZodObject<{
4715
5113
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -4844,18 +5242,57 @@ export declare const UpdateFaqSchema: z.ZodObject<{
4844
5242
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
4845
5243
  count: z.ZodNumber;
4846
5244
  withinMs: z.ZodOptional<z.ZodNumber>;
5245
+ counter: z.ZodOptional<z.ZodObject<{
5246
+ events: z.ZodArray<z.ZodString, "many">;
5247
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5248
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5249
+ contains: z.ZodOptional<z.ZodString>;
5250
+ }, "strip", z.ZodTypeAny, {
5251
+ equals?: string | number | boolean | undefined;
5252
+ contains?: string | undefined;
5253
+ }, {
5254
+ equals?: string | number | boolean | undefined;
5255
+ contains?: string | undefined;
5256
+ }>>>;
5257
+ }, "strip", z.ZodTypeAny, {
5258
+ events: string[];
5259
+ match?: Record<string, {
5260
+ equals?: string | number | boolean | undefined;
5261
+ contains?: string | undefined;
5262
+ }> | undefined;
5263
+ }, {
5264
+ events: string[];
5265
+ match?: Record<string, {
5266
+ equals?: string | number | boolean | undefined;
5267
+ contains?: string | undefined;
5268
+ }> | undefined;
5269
+ }>>;
4847
5270
  }, "strip", z.ZodTypeAny, {
4848
5271
  type: "event_count";
4849
5272
  key: string;
4850
5273
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4851
5274
  count: number;
4852
5275
  withinMs?: number | undefined;
5276
+ counter?: {
5277
+ events: string[];
5278
+ match?: Record<string, {
5279
+ equals?: string | number | boolean | undefined;
5280
+ contains?: string | undefined;
5281
+ }> | undefined;
5282
+ } | undefined;
4853
5283
  }, {
4854
5284
  type: "event_count";
4855
5285
  key: string;
4856
5286
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4857
5287
  count: number;
4858
5288
  withinMs?: number | undefined;
5289
+ counter?: {
5290
+ events: string[];
5291
+ match?: Record<string, {
5292
+ equals?: string | number | boolean | undefined;
5293
+ contains?: string | undefined;
5294
+ }> | undefined;
5295
+ } | undefined;
4859
5296
  }>]>, "many">;
4860
5297
  value: z.ZodUnknown;
4861
5298
  }, "strip", z.ZodTypeAny, {
@@ -4907,6 +5344,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
4907
5344
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4908
5345
  count: number;
4909
5346
  withinMs?: number | undefined;
5347
+ counter?: {
5348
+ events: string[];
5349
+ match?: Record<string, {
5350
+ equals?: string | number | boolean | undefined;
5351
+ contains?: string | undefined;
5352
+ }> | undefined;
5353
+ } | undefined;
4910
5354
  })[];
4911
5355
  value?: unknown;
4912
5356
  }, {
@@ -4958,6 +5402,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
4958
5402
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
4959
5403
  count: number;
4960
5404
  withinMs?: number | undefined;
5405
+ counter?: {
5406
+ events: string[];
5407
+ match?: Record<string, {
5408
+ equals?: string | number | boolean | undefined;
5409
+ contains?: string | undefined;
5410
+ }> | undefined;
5411
+ } | undefined;
4961
5412
  })[];
4962
5413
  value?: unknown;
4963
5414
  }>, "many">;
@@ -5013,6 +5464,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5013
5464
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5014
5465
  count: number;
5015
5466
  withinMs?: number | undefined;
5467
+ counter?: {
5468
+ events: string[];
5469
+ match?: Record<string, {
5470
+ equals?: string | number | boolean | undefined;
5471
+ contains?: string | undefined;
5472
+ }> | undefined;
5473
+ } | undefined;
5016
5474
  })[];
5017
5475
  value?: unknown;
5018
5476
  }[];
@@ -5068,6 +5526,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5068
5526
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5069
5527
  count: number;
5070
5528
  withinMs?: number | undefined;
5529
+ counter?: {
5530
+ events: string[];
5531
+ match?: Record<string, {
5532
+ equals?: string | number | boolean | undefined;
5533
+ contains?: string | undefined;
5534
+ }> | undefined;
5535
+ } | undefined;
5071
5536
  })[];
5072
5537
  value?: unknown;
5073
5538
  }[];
@@ -5127,7 +5592,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5127
5592
  method?: "GET" | "POST" | undefined;
5128
5593
  timeoutMs?: number | undefined;
5129
5594
  }>]>>>;
5130
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
5595
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
5131
5596
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5132
5597
  title: z.ZodOptional<z.ZodString>;
5133
5598
  body: z.ZodOptional<z.ZodString>;
@@ -5170,7 +5635,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5170
5635
  } | undefined;
5171
5636
  };
5172
5637
  kind: "faq:question";
5173
- showWhen?: {
5638
+ triggerWhen?: {
5174
5639
  type: "rules";
5175
5640
  rules: {
5176
5641
  conditions: ({
@@ -5221,6 +5686,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5221
5686
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5222
5687
  count: number;
5223
5688
  withinMs?: number | undefined;
5689
+ counter?: {
5690
+ events: string[];
5691
+ match?: Record<string, {
5692
+ equals?: string | number | boolean | undefined;
5693
+ contains?: string | undefined;
5694
+ }> | undefined;
5695
+ } | undefined;
5224
5696
  })[];
5225
5697
  value?: unknown;
5226
5698
  }[];
@@ -5278,7 +5750,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5278
5750
  } | undefined;
5279
5751
  };
5280
5752
  kind: "faq:question";
5281
- showWhen?: {
5753
+ triggerWhen?: {
5282
5754
  type: "rules";
5283
5755
  rules: {
5284
5756
  conditions: ({
@@ -5329,6 +5801,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5329
5801
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5330
5802
  count: number;
5331
5803
  withinMs?: number | undefined;
5804
+ counter?: {
5805
+ events: string[];
5806
+ match?: Record<string, {
5807
+ equals?: string | number | boolean | undefined;
5808
+ contains?: string | undefined;
5809
+ }> | undefined;
5810
+ } | undefined;
5332
5811
  })[];
5333
5812
  value?: unknown;
5334
5813
  }[];
@@ -5386,7 +5865,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5386
5865
  } | undefined;
5387
5866
  };
5388
5867
  kind: "faq:question";
5389
- showWhen?: {
5868
+ triggerWhen?: {
5390
5869
  type: "rules";
5391
5870
  rules: {
5392
5871
  conditions: ({
@@ -5437,6 +5916,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5437
5916
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5438
5917
  count: number;
5439
5918
  withinMs?: number | undefined;
5919
+ counter?: {
5920
+ events: string[];
5921
+ match?: Record<string, {
5922
+ equals?: string | number | boolean | undefined;
5923
+ contains?: string | undefined;
5924
+ }> | undefined;
5925
+ } | undefined;
5440
5926
  })[];
5441
5927
  value?: unknown;
5442
5928
  }[];
@@ -5494,7 +5980,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5494
5980
  } | undefined;
5495
5981
  };
5496
5982
  kind: "faq:question";
5497
- showWhen?: {
5983
+ triggerWhen?: {
5498
5984
  type: "rules";
5499
5985
  rules: {
5500
5986
  conditions: ({
@@ -5545,6 +6031,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5545
6031
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5546
6032
  count: number;
5547
6033
  withinMs?: number | undefined;
6034
+ counter?: {
6035
+ events: string[];
6036
+ match?: Record<string, {
6037
+ equals?: string | number | boolean | undefined;
6038
+ contains?: string | undefined;
6039
+ }> | undefined;
6040
+ } | undefined;
5548
6041
  })[];
5549
6042
  value?: unknown;
5550
6043
  }[];
@@ -5611,7 +6104,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5611
6104
  } | undefined;
5612
6105
  };
5613
6106
  kind: "faq:question";
5614
- showWhen?: {
6107
+ triggerWhen?: {
5615
6108
  type: "rules";
5616
6109
  rules: {
5617
6110
  conditions: ({
@@ -5662,6 +6155,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5662
6155
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5663
6156
  count: number;
5664
6157
  withinMs?: number | undefined;
6158
+ counter?: {
6159
+ events: string[];
6160
+ match?: Record<string, {
6161
+ equals?: string | number | boolean | undefined;
6162
+ contains?: string | undefined;
6163
+ }> | undefined;
6164
+ } | undefined;
5665
6165
  })[];
5666
6166
  value?: unknown;
5667
6167
  }[];
@@ -5727,7 +6227,7 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5727
6227
  } | undefined;
5728
6228
  };
5729
6229
  kind: "faq:question";
5730
- showWhen?: {
6230
+ triggerWhen?: {
5731
6231
  type: "rules";
5732
6232
  rules: {
5733
6233
  conditions: ({
@@ -5778,6 +6278,13 @@ export declare const UpdateFaqSchema: z.ZodObject<{
5778
6278
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5779
6279
  count: number;
5780
6280
  withinMs?: number | undefined;
6281
+ counter?: {
6282
+ events: string[];
6283
+ match?: Record<string, {
6284
+ equals?: string | number | boolean | undefined;
6285
+ contains?: string | undefined;
6286
+ }> | undefined;
6287
+ } | undefined;
5781
6288
  })[];
5782
6289
  value?: unknown;
5783
6290
  }[];
@@ -5843,7 +6350,7 @@ export declare function validateFAQQuestion(data: unknown): z.SafeParseReturnTyp
5843
6350
  } | undefined;
5844
6351
  };
5845
6352
  kind: "faq:question";
5846
- showWhen?: {
6353
+ triggerWhen?: {
5847
6354
  type: "rules";
5848
6355
  rules: {
5849
6356
  conditions: ({
@@ -5894,6 +6401,13 @@ export declare function validateFAQQuestion(data: unknown): z.SafeParseReturnTyp
5894
6401
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
5895
6402
  count: number;
5896
6403
  withinMs?: number | undefined;
6404
+ counter?: {
6405
+ events: string[];
6406
+ match?: Record<string, {
6407
+ equals?: string | number | boolean | undefined;
6408
+ contains?: string | undefined;
6409
+ }> | undefined;
6410
+ } | undefined;
5897
6411
  })[];
5898
6412
  value?: unknown;
5899
6413
  }[];
@@ -5951,7 +6465,7 @@ export declare function validateFAQQuestion(data: unknown): z.SafeParseReturnTyp
5951
6465
  } | undefined;
5952
6466
  };
5953
6467
  kind: "faq:question";
5954
- showWhen?: {
6468
+ triggerWhen?: {
5955
6469
  type: "rules";
5956
6470
  rules: {
5957
6471
  conditions: ({
@@ -6002,6 +6516,13 @@ export declare function validateFAQQuestion(data: unknown): z.SafeParseReturnTyp
6002
6516
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6003
6517
  count: number;
6004
6518
  withinMs?: number | undefined;
6519
+ counter?: {
6520
+ events: string[];
6521
+ match?: Record<string, {
6522
+ equals?: string | number | boolean | undefined;
6523
+ contains?: string | undefined;
6524
+ }> | undefined;
6525
+ } | undefined;
6005
6526
  })[];
6006
6527
  value?: unknown;
6007
6528
  }[];
@@ -6067,7 +6588,7 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6067
6588
  } | undefined;
6068
6589
  };
6069
6590
  kind: "faq:question";
6070
- showWhen?: {
6591
+ triggerWhen?: {
6071
6592
  type: "rules";
6072
6593
  rules: {
6073
6594
  conditions: ({
@@ -6118,6 +6639,13 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6118
6639
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6119
6640
  count: number;
6120
6641
  withinMs?: number | undefined;
6642
+ counter?: {
6643
+ events: string[];
6644
+ match?: Record<string, {
6645
+ equals?: string | number | boolean | undefined;
6646
+ contains?: string | undefined;
6647
+ }> | undefined;
6648
+ } | undefined;
6121
6649
  })[];
6122
6650
  value?: unknown;
6123
6651
  }[];
@@ -6185,7 +6713,7 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6185
6713
  } | undefined;
6186
6714
  };
6187
6715
  kind: "faq:question";
6188
- showWhen?: {
6716
+ triggerWhen?: {
6189
6717
  type: "rules";
6190
6718
  rules: {
6191
6719
  conditions: ({
@@ -6236,6 +6764,13 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6236
6764
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6237
6765
  count: number;
6238
6766
  withinMs?: number | undefined;
6767
+ counter?: {
6768
+ events: string[];
6769
+ match?: Record<string, {
6770
+ equals?: string | number | boolean | undefined;
6771
+ contains?: string | undefined;
6772
+ }> | undefined;
6773
+ } | undefined;
6239
6774
  })[];
6240
6775
  value?: unknown;
6241
6776
  }[];
@@ -6316,6 +6851,13 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6316
6851
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6317
6852
  count: number;
6318
6853
  withinMs?: number | undefined;
6854
+ counter?: {
6855
+ events: string[];
6856
+ match?: Record<string, {
6857
+ equals?: string | number | boolean | undefined;
6858
+ contains?: string | undefined;
6859
+ }> | undefined;
6860
+ } | undefined;
6319
6861
  })[];
6320
6862
  value?: unknown;
6321
6863
  }[];
@@ -6342,11 +6884,6 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6342
6884
  position?: "prepend" | "append" | undefined;
6343
6885
  once?: boolean | undefined;
6344
6886
  }[] | undefined;
6345
- scope?: {
6346
- events: string[];
6347
- urlContains?: string | undefined;
6348
- props?: Record<string, string | number | boolean> | undefined;
6349
- } | undefined;
6350
6887
  title?: string | undefined;
6351
6888
  }, {
6352
6889
  theme: "light" | "dark" | "auto";
@@ -6381,7 +6918,7 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6381
6918
  } | undefined;
6382
6919
  };
6383
6920
  kind: "faq:question";
6384
- showWhen?: {
6921
+ triggerWhen?: {
6385
6922
  type: "rules";
6386
6923
  rules: {
6387
6924
  conditions: ({
@@ -6432,6 +6969,13 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6432
6969
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6433
6970
  count: number;
6434
6971
  withinMs?: number | undefined;
6972
+ counter?: {
6973
+ events: string[];
6974
+ match?: Record<string, {
6975
+ equals?: string | number | boolean | undefined;
6976
+ contains?: string | undefined;
6977
+ }> | undefined;
6978
+ } | undefined;
6435
6979
  })[];
6436
6980
  value?: unknown;
6437
6981
  }[];
@@ -6499,7 +7043,7 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6499
7043
  } | undefined;
6500
7044
  };
6501
7045
  kind: "faq:question";
6502
- showWhen?: {
7046
+ triggerWhen?: {
6503
7047
  type: "rules";
6504
7048
  rules: {
6505
7049
  conditions: ({
@@ -6550,6 +7094,13 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6550
7094
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6551
7095
  count: number;
6552
7096
  withinMs?: number | undefined;
7097
+ counter?: {
7098
+ events: string[];
7099
+ match?: Record<string, {
7100
+ equals?: string | number | boolean | undefined;
7101
+ contains?: string | undefined;
7102
+ }> | undefined;
7103
+ } | undefined;
6553
7104
  })[];
6554
7105
  value?: unknown;
6555
7106
  }[];
@@ -6630,6 +7181,13 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6630
7181
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6631
7182
  count: number;
6632
7183
  withinMs?: number | undefined;
7184
+ counter?: {
7185
+ events: string[];
7186
+ match?: Record<string, {
7187
+ equals?: string | number | boolean | undefined;
7188
+ contains?: string | undefined;
7189
+ }> | undefined;
7190
+ } | undefined;
6633
7191
  })[];
6634
7192
  value?: unknown;
6635
7193
  }[];
@@ -6656,11 +7214,6 @@ export declare function validateFAQConfig(data: unknown): z.SafeParseReturnType<
6656
7214
  position?: "prepend" | "append" | undefined;
6657
7215
  once?: boolean | undefined;
6658
7216
  }[] | undefined;
6659
- scope?: {
6660
- events: string[];
6661
- urlContains?: string | undefined;
6662
- props?: Record<string, string | number | boolean> | undefined;
6663
- } | undefined;
6664
7217
  title?: string | undefined;
6665
7218
  }>;
6666
7219
  /**
@@ -6813,7 +7366,7 @@ export declare const actionStepSchemas: ({
6813
7366
  } | undefined;
6814
7367
  }>;
6815
7368
  /** Per-item activation strategy (null = always show) */
6816
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7369
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6817
7370
  type: z.ZodLiteral<"rules">;
6818
7371
  rules: z.ZodArray<z.ZodObject<{
6819
7372
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -6948,18 +7501,57 @@ export declare const actionStepSchemas: ({
6948
7501
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
6949
7502
  count: z.ZodNumber;
6950
7503
  withinMs: z.ZodOptional<z.ZodNumber>;
7504
+ counter: z.ZodOptional<z.ZodObject<{
7505
+ events: z.ZodArray<z.ZodString, "many">;
7506
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7507
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
7508
+ contains: z.ZodOptional<z.ZodString>;
7509
+ }, "strip", z.ZodTypeAny, {
7510
+ equals?: string | number | boolean | undefined;
7511
+ contains?: string | undefined;
7512
+ }, {
7513
+ equals?: string | number | boolean | undefined;
7514
+ contains?: string | undefined;
7515
+ }>>>;
7516
+ }, "strip", z.ZodTypeAny, {
7517
+ events: string[];
7518
+ match?: Record<string, {
7519
+ equals?: string | number | boolean | undefined;
7520
+ contains?: string | undefined;
7521
+ }> | undefined;
7522
+ }, {
7523
+ events: string[];
7524
+ match?: Record<string, {
7525
+ equals?: string | number | boolean | undefined;
7526
+ contains?: string | undefined;
7527
+ }> | undefined;
7528
+ }>>;
6951
7529
  }, "strip", z.ZodTypeAny, {
6952
7530
  type: "event_count";
6953
7531
  key: string;
6954
7532
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6955
7533
  count: number;
6956
7534
  withinMs?: number | undefined;
7535
+ counter?: {
7536
+ events: string[];
7537
+ match?: Record<string, {
7538
+ equals?: string | number | boolean | undefined;
7539
+ contains?: string | undefined;
7540
+ }> | undefined;
7541
+ } | undefined;
6957
7542
  }, {
6958
7543
  type: "event_count";
6959
7544
  key: string;
6960
7545
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
6961
7546
  count: number;
6962
7547
  withinMs?: number | undefined;
7548
+ counter?: {
7549
+ events: string[];
7550
+ match?: Record<string, {
7551
+ equals?: string | number | boolean | undefined;
7552
+ contains?: string | undefined;
7553
+ }> | undefined;
7554
+ } | undefined;
6963
7555
  }>]>, "many">;
6964
7556
  value: z.ZodUnknown;
6965
7557
  }, "strip", z.ZodTypeAny, {
@@ -7011,6 +7603,13 @@ export declare const actionStepSchemas: ({
7011
7603
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7012
7604
  count: number;
7013
7605
  withinMs?: number | undefined;
7606
+ counter?: {
7607
+ events: string[];
7608
+ match?: Record<string, {
7609
+ equals?: string | number | boolean | undefined;
7610
+ contains?: string | undefined;
7611
+ }> | undefined;
7612
+ } | undefined;
7014
7613
  })[];
7015
7614
  value?: unknown;
7016
7615
  }, {
@@ -7062,6 +7661,13 @@ export declare const actionStepSchemas: ({
7062
7661
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7063
7662
  count: number;
7064
7663
  withinMs?: number | undefined;
7664
+ counter?: {
7665
+ events: string[];
7666
+ match?: Record<string, {
7667
+ equals?: string | number | boolean | undefined;
7668
+ contains?: string | undefined;
7669
+ }> | undefined;
7670
+ } | undefined;
7065
7671
  })[];
7066
7672
  value?: unknown;
7067
7673
  }>, "many">;
@@ -7117,6 +7723,13 @@ export declare const actionStepSchemas: ({
7117
7723
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7118
7724
  count: number;
7119
7725
  withinMs?: number | undefined;
7726
+ counter?: {
7727
+ events: string[];
7728
+ match?: Record<string, {
7729
+ equals?: string | number | boolean | undefined;
7730
+ contains?: string | undefined;
7731
+ }> | undefined;
7732
+ } | undefined;
7120
7733
  })[];
7121
7734
  value?: unknown;
7122
7735
  }[];
@@ -7172,6 +7785,13 @@ export declare const actionStepSchemas: ({
7172
7785
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7173
7786
  count: number;
7174
7787
  withinMs?: number | undefined;
7788
+ counter?: {
7789
+ events: string[];
7790
+ match?: Record<string, {
7791
+ equals?: string | number | boolean | undefined;
7792
+ contains?: string | undefined;
7793
+ }> | undefined;
7794
+ } | undefined;
7175
7795
  })[];
7176
7796
  value?: unknown;
7177
7797
  }[];
@@ -7231,7 +7851,7 @@ export declare const actionStepSchemas: ({
7231
7851
  method?: "GET" | "POST" | undefined;
7232
7852
  timeoutMs?: number | undefined;
7233
7853
  }>]>>>;
7234
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
7854
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
7235
7855
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7236
7856
  title: z.ZodOptional<z.ZodString>;
7237
7857
  body: z.ZodOptional<z.ZodString>;
@@ -7274,7 +7894,7 @@ export declare const actionStepSchemas: ({
7274
7894
  } | undefined;
7275
7895
  };
7276
7896
  kind: "faq:question";
7277
- showWhen?: {
7897
+ triggerWhen?: {
7278
7898
  type: "rules";
7279
7899
  rules: {
7280
7900
  conditions: ({
@@ -7325,6 +7945,13 @@ export declare const actionStepSchemas: ({
7325
7945
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7326
7946
  count: number;
7327
7947
  withinMs?: number | undefined;
7948
+ counter?: {
7949
+ events: string[];
7950
+ match?: Record<string, {
7951
+ equals?: string | number | boolean | undefined;
7952
+ contains?: string | undefined;
7953
+ }> | undefined;
7954
+ } | undefined;
7328
7955
  })[];
7329
7956
  value?: unknown;
7330
7957
  }[];
@@ -7382,7 +8009,7 @@ export declare const actionStepSchemas: ({
7382
8009
  } | undefined;
7383
8010
  };
7384
8011
  kind: "faq:question";
7385
- showWhen?: {
8012
+ triggerWhen?: {
7386
8013
  type: "rules";
7387
8014
  rules: {
7388
8015
  conditions: ({
@@ -7433,6 +8060,13 @@ export declare const actionStepSchemas: ({
7433
8060
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7434
8061
  count: number;
7435
8062
  withinMs?: number | undefined;
8063
+ counter?: {
8064
+ events: string[];
8065
+ match?: Record<string, {
8066
+ equals?: string | number | boolean | undefined;
8067
+ contains?: string | undefined;
8068
+ }> | undefined;
8069
+ } | undefined;
7436
8070
  })[];
7437
8071
  value?: unknown;
7438
8072
  }[];
@@ -7646,7 +8280,7 @@ export declare const actionStepSchemas: ({
7646
8280
  } | undefined;
7647
8281
  }>;
7648
8282
  /** Per-item activation strategy (null = always show) */
7649
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8283
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7650
8284
  type: z.ZodLiteral<"rules">;
7651
8285
  rules: z.ZodArray<z.ZodObject<{
7652
8286
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -7781,18 +8415,57 @@ export declare const actionStepSchemas: ({
7781
8415
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
7782
8416
  count: z.ZodNumber;
7783
8417
  withinMs: z.ZodOptional<z.ZodNumber>;
8418
+ counter: z.ZodOptional<z.ZodObject<{
8419
+ events: z.ZodArray<z.ZodString, "many">;
8420
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8421
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
8422
+ contains: z.ZodOptional<z.ZodString>;
8423
+ }, "strip", z.ZodTypeAny, {
8424
+ equals?: string | number | boolean | undefined;
8425
+ contains?: string | undefined;
8426
+ }, {
8427
+ equals?: string | number | boolean | undefined;
8428
+ contains?: string | undefined;
8429
+ }>>>;
8430
+ }, "strip", z.ZodTypeAny, {
8431
+ events: string[];
8432
+ match?: Record<string, {
8433
+ equals?: string | number | boolean | undefined;
8434
+ contains?: string | undefined;
8435
+ }> | undefined;
8436
+ }, {
8437
+ events: string[];
8438
+ match?: Record<string, {
8439
+ equals?: string | number | boolean | undefined;
8440
+ contains?: string | undefined;
8441
+ }> | undefined;
8442
+ }>>;
7784
8443
  }, "strip", z.ZodTypeAny, {
7785
8444
  type: "event_count";
7786
8445
  key: string;
7787
8446
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7788
8447
  count: number;
7789
8448
  withinMs?: number | undefined;
8449
+ counter?: {
8450
+ events: string[];
8451
+ match?: Record<string, {
8452
+ equals?: string | number | boolean | undefined;
8453
+ contains?: string | undefined;
8454
+ }> | undefined;
8455
+ } | undefined;
7790
8456
  }, {
7791
8457
  type: "event_count";
7792
8458
  key: string;
7793
8459
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7794
8460
  count: number;
7795
8461
  withinMs?: number | undefined;
8462
+ counter?: {
8463
+ events: string[];
8464
+ match?: Record<string, {
8465
+ equals?: string | number | boolean | undefined;
8466
+ contains?: string | undefined;
8467
+ }> | undefined;
8468
+ } | undefined;
7796
8469
  }>]>, "many">;
7797
8470
  value: z.ZodUnknown;
7798
8471
  }, "strip", z.ZodTypeAny, {
@@ -7844,6 +8517,13 @@ export declare const actionStepSchemas: ({
7844
8517
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7845
8518
  count: number;
7846
8519
  withinMs?: number | undefined;
8520
+ counter?: {
8521
+ events: string[];
8522
+ match?: Record<string, {
8523
+ equals?: string | number | boolean | undefined;
8524
+ contains?: string | undefined;
8525
+ }> | undefined;
8526
+ } | undefined;
7847
8527
  })[];
7848
8528
  value?: unknown;
7849
8529
  }, {
@@ -7895,6 +8575,13 @@ export declare const actionStepSchemas: ({
7895
8575
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7896
8576
  count: number;
7897
8577
  withinMs?: number | undefined;
8578
+ counter?: {
8579
+ events: string[];
8580
+ match?: Record<string, {
8581
+ equals?: string | number | boolean | undefined;
8582
+ contains?: string | undefined;
8583
+ }> | undefined;
8584
+ } | undefined;
7898
8585
  })[];
7899
8586
  value?: unknown;
7900
8587
  }>, "many">;
@@ -7950,6 +8637,13 @@ export declare const actionStepSchemas: ({
7950
8637
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
7951
8638
  count: number;
7952
8639
  withinMs?: number | undefined;
8640
+ counter?: {
8641
+ events: string[];
8642
+ match?: Record<string, {
8643
+ equals?: string | number | boolean | undefined;
8644
+ contains?: string | undefined;
8645
+ }> | undefined;
8646
+ } | undefined;
7953
8647
  })[];
7954
8648
  value?: unknown;
7955
8649
  }[];
@@ -8005,6 +8699,13 @@ export declare const actionStepSchemas: ({
8005
8699
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
8006
8700
  count: number;
8007
8701
  withinMs?: number | undefined;
8702
+ counter?: {
8703
+ events: string[];
8704
+ match?: Record<string, {
8705
+ equals?: string | number | boolean | undefined;
8706
+ contains?: string | undefined;
8707
+ }> | undefined;
8708
+ } | undefined;
8008
8709
  })[];
8009
8710
  value?: unknown;
8010
8711
  }[];
@@ -8064,7 +8765,7 @@ export declare const actionStepSchemas: ({
8064
8765
  method?: "GET" | "POST" | undefined;
8065
8766
  timeoutMs?: number | undefined;
8066
8767
  }>]>>>;
8067
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
8768
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
8068
8769
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8069
8770
  title: z.ZodOptional<z.ZodString>;
8070
8771
  body: z.ZodOptional<z.ZodString>;
@@ -8107,7 +8808,7 @@ export declare const actionStepSchemas: ({
8107
8808
  } | undefined;
8108
8809
  };
8109
8810
  kind: "faq:question";
8110
- showWhen?: {
8811
+ triggerWhen?: {
8111
8812
  type: "rules";
8112
8813
  rules: {
8113
8814
  conditions: ({
@@ -8158,6 +8859,13 @@ export declare const actionStepSchemas: ({
8158
8859
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
8159
8860
  count: number;
8160
8861
  withinMs?: number | undefined;
8862
+ counter?: {
8863
+ events: string[];
8864
+ match?: Record<string, {
8865
+ equals?: string | number | boolean | undefined;
8866
+ contains?: string | undefined;
8867
+ }> | undefined;
8868
+ } | undefined;
8161
8869
  })[];
8162
8870
  value?: unknown;
8163
8871
  }[];
@@ -8215,7 +8923,7 @@ export declare const actionStepSchemas: ({
8215
8923
  } | undefined;
8216
8924
  };
8217
8925
  kind: "faq:question";
8218
- showWhen?: {
8926
+ triggerWhen?: {
8219
8927
  type: "rules";
8220
8928
  rules: {
8221
8929
  conditions: ({
@@ -8266,6 +8974,13 @@ export declare const actionStepSchemas: ({
8266
8974
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
8267
8975
  count: number;
8268
8976
  withinMs?: number | undefined;
8977
+ counter?: {
8978
+ events: string[];
8979
+ match?: Record<string, {
8980
+ equals?: string | number | boolean | undefined;
8981
+ contains?: string | undefined;
8982
+ }> | undefined;
8983
+ } | undefined;
8269
8984
  })[];
8270
8985
  value?: unknown;
8271
8986
  }[];
@@ -8323,7 +9038,7 @@ export declare const actionStepSchemas: ({
8323
9038
  } | undefined;
8324
9039
  };
8325
9040
  kind: "faq:question";
8326
- showWhen?: {
9041
+ triggerWhen?: {
8327
9042
  type: "rules";
8328
9043
  rules: {
8329
9044
  conditions: ({
@@ -8374,6 +9089,13 @@ export declare const actionStepSchemas: ({
8374
9089
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
8375
9090
  count: number;
8376
9091
  withinMs?: number | undefined;
9092
+ counter?: {
9093
+ events: string[];
9094
+ match?: Record<string, {
9095
+ equals?: string | number | boolean | undefined;
9096
+ contains?: string | undefined;
9097
+ }> | undefined;
9098
+ } | undefined;
8377
9099
  })[];
8378
9100
  value?: unknown;
8379
9101
  }[];
@@ -8431,7 +9153,7 @@ export declare const actionStepSchemas: ({
8431
9153
  } | undefined;
8432
9154
  };
8433
9155
  kind: "faq:question";
8434
- showWhen?: {
9156
+ triggerWhen?: {
8435
9157
  type: "rules";
8436
9158
  rules: {
8437
9159
  conditions: ({
@@ -8482,6 +9204,13 @@ export declare const actionStepSchemas: ({
8482
9204
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
8483
9205
  count: number;
8484
9206
  withinMs?: number | undefined;
9207
+ counter?: {
9208
+ events: string[];
9209
+ match?: Record<string, {
9210
+ equals?: string | number | boolean | undefined;
9211
+ contains?: string | undefined;
9212
+ }> | undefined;
9213
+ } | undefined;
8485
9214
  })[];
8486
9215
  value?: unknown;
8487
9216
  }[];
@@ -8548,7 +9277,7 @@ export declare const actionStepSchemas: ({
8548
9277
  } | undefined;
8549
9278
  };
8550
9279
  kind: "faq:question";
8551
- showWhen?: {
9280
+ triggerWhen?: {
8552
9281
  type: "rules";
8553
9282
  rules: {
8554
9283
  conditions: ({
@@ -8599,6 +9328,13 @@ export declare const actionStepSchemas: ({
8599
9328
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
8600
9329
  count: number;
8601
9330
  withinMs?: number | undefined;
9331
+ counter?: {
9332
+ events: string[];
9333
+ match?: Record<string, {
9334
+ equals?: string | number | boolean | undefined;
9335
+ contains?: string | undefined;
9336
+ }> | undefined;
9337
+ } | undefined;
8602
9338
  })[];
8603
9339
  value?: unknown;
8604
9340
  }[];
@@ -8664,7 +9400,7 @@ export declare const actionStepSchemas: ({
8664
9400
  } | undefined;
8665
9401
  };
8666
9402
  kind: "faq:question";
8667
- showWhen?: {
9403
+ triggerWhen?: {
8668
9404
  type: "rules";
8669
9405
  rules: {
8670
9406
  conditions: ({
@@ -8715,6 +9451,13 @@ export declare const actionStepSchemas: ({
8715
9451
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
8716
9452
  count: number;
8717
9453
  withinMs?: number | undefined;
9454
+ counter?: {
9455
+ events: string[];
9456
+ match?: Record<string, {
9457
+ equals?: string | number | boolean | undefined;
9458
+ contains?: string | undefined;
9459
+ }> | undefined;
9460
+ } | undefined;
8718
9461
  })[];
8719
9462
  value?: unknown;
8720
9463
  }[];
@@ -8907,7 +9650,7 @@ export declare const tileWidgets: {
8907
9650
  } | undefined;
8908
9651
  }>;
8909
9652
  /** Per-item activation strategy (null = always show) */
8910
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9653
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8911
9654
  type: z.ZodLiteral<"rules">;
8912
9655
  rules: z.ZodArray<z.ZodObject<{
8913
9656
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -9042,18 +9785,57 @@ export declare const tileWidgets: {
9042
9785
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
9043
9786
  count: z.ZodNumber;
9044
9787
  withinMs: z.ZodOptional<z.ZodNumber>;
9788
+ counter: z.ZodOptional<z.ZodObject<{
9789
+ events: z.ZodArray<z.ZodString, "many">;
9790
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
9791
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
9792
+ contains: z.ZodOptional<z.ZodString>;
9793
+ }, "strip", z.ZodTypeAny, {
9794
+ equals?: string | number | boolean | undefined;
9795
+ contains?: string | undefined;
9796
+ }, {
9797
+ equals?: string | number | boolean | undefined;
9798
+ contains?: string | undefined;
9799
+ }>>>;
9800
+ }, "strip", z.ZodTypeAny, {
9801
+ events: string[];
9802
+ match?: Record<string, {
9803
+ equals?: string | number | boolean | undefined;
9804
+ contains?: string | undefined;
9805
+ }> | undefined;
9806
+ }, {
9807
+ events: string[];
9808
+ match?: Record<string, {
9809
+ equals?: string | number | boolean | undefined;
9810
+ contains?: string | undefined;
9811
+ }> | undefined;
9812
+ }>>;
9045
9813
  }, "strip", z.ZodTypeAny, {
9046
9814
  type: "event_count";
9047
9815
  key: string;
9048
9816
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9049
9817
  count: number;
9050
9818
  withinMs?: number | undefined;
9819
+ counter?: {
9820
+ events: string[];
9821
+ match?: Record<string, {
9822
+ equals?: string | number | boolean | undefined;
9823
+ contains?: string | undefined;
9824
+ }> | undefined;
9825
+ } | undefined;
9051
9826
  }, {
9052
9827
  type: "event_count";
9053
9828
  key: string;
9054
9829
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9055
9830
  count: number;
9056
9831
  withinMs?: number | undefined;
9832
+ counter?: {
9833
+ events: string[];
9834
+ match?: Record<string, {
9835
+ equals?: string | number | boolean | undefined;
9836
+ contains?: string | undefined;
9837
+ }> | undefined;
9838
+ } | undefined;
9057
9839
  }>]>, "many">;
9058
9840
  value: z.ZodUnknown;
9059
9841
  }, "strip", z.ZodTypeAny, {
@@ -9105,6 +9887,13 @@ export declare const tileWidgets: {
9105
9887
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9106
9888
  count: number;
9107
9889
  withinMs?: number | undefined;
9890
+ counter?: {
9891
+ events: string[];
9892
+ match?: Record<string, {
9893
+ equals?: string | number | boolean | undefined;
9894
+ contains?: string | undefined;
9895
+ }> | undefined;
9896
+ } | undefined;
9108
9897
  })[];
9109
9898
  value?: unknown;
9110
9899
  }, {
@@ -9156,6 +9945,13 @@ export declare const tileWidgets: {
9156
9945
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9157
9946
  count: number;
9158
9947
  withinMs?: number | undefined;
9948
+ counter?: {
9949
+ events: string[];
9950
+ match?: Record<string, {
9951
+ equals?: string | number | boolean | undefined;
9952
+ contains?: string | undefined;
9953
+ }> | undefined;
9954
+ } | undefined;
9159
9955
  })[];
9160
9956
  value?: unknown;
9161
9957
  }>, "many">;
@@ -9211,6 +10007,13 @@ export declare const tileWidgets: {
9211
10007
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9212
10008
  count: number;
9213
10009
  withinMs?: number | undefined;
10010
+ counter?: {
10011
+ events: string[];
10012
+ match?: Record<string, {
10013
+ equals?: string | number | boolean | undefined;
10014
+ contains?: string | undefined;
10015
+ }> | undefined;
10016
+ } | undefined;
9214
10017
  })[];
9215
10018
  value?: unknown;
9216
10019
  }[];
@@ -9266,6 +10069,13 @@ export declare const tileWidgets: {
9266
10069
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9267
10070
  count: number;
9268
10071
  withinMs?: number | undefined;
10072
+ counter?: {
10073
+ events: string[];
10074
+ match?: Record<string, {
10075
+ equals?: string | number | boolean | undefined;
10076
+ contains?: string | undefined;
10077
+ }> | undefined;
10078
+ } | undefined;
9269
10079
  })[];
9270
10080
  value?: unknown;
9271
10081
  }[];
@@ -9325,7 +10135,7 @@ export declare const tileWidgets: {
9325
10135
  method?: "GET" | "POST" | undefined;
9326
10136
  timeoutMs?: number | undefined;
9327
10137
  }>]>>>;
9328
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
10138
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
9329
10139
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9330
10140
  title: z.ZodOptional<z.ZodString>;
9331
10141
  body: z.ZodOptional<z.ZodString>;
@@ -9368,7 +10178,7 @@ export declare const tileWidgets: {
9368
10178
  } | undefined;
9369
10179
  };
9370
10180
  kind: "faq:question";
9371
- showWhen?: {
10181
+ triggerWhen?: {
9372
10182
  type: "rules";
9373
10183
  rules: {
9374
10184
  conditions: ({
@@ -9419,6 +10229,13 @@ export declare const tileWidgets: {
9419
10229
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9420
10230
  count: number;
9421
10231
  withinMs?: number | undefined;
10232
+ counter?: {
10233
+ events: string[];
10234
+ match?: Record<string, {
10235
+ equals?: string | number | boolean | undefined;
10236
+ contains?: string | undefined;
10237
+ }> | undefined;
10238
+ } | undefined;
9422
10239
  })[];
9423
10240
  value?: unknown;
9424
10241
  }[];
@@ -9476,7 +10293,7 @@ export declare const tileWidgets: {
9476
10293
  } | undefined;
9477
10294
  };
9478
10295
  kind: "faq:question";
9479
- showWhen?: {
10296
+ triggerWhen?: {
9480
10297
  type: "rules";
9481
10298
  rules: {
9482
10299
  conditions: ({
@@ -9527,6 +10344,13 @@ export declare const tileWidgets: {
9527
10344
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9528
10345
  count: number;
9529
10346
  withinMs?: number | undefined;
10347
+ counter?: {
10348
+ events: string[];
10349
+ match?: Record<string, {
10350
+ equals?: string | number | boolean | undefined;
10351
+ contains?: string | undefined;
10352
+ }> | undefined;
10353
+ } | undefined;
9530
10354
  })[];
9531
10355
  value?: unknown;
9532
10356
  }[];
@@ -9584,7 +10408,7 @@ export declare const tileWidgets: {
9584
10408
  } | undefined;
9585
10409
  };
9586
10410
  kind: "faq:question";
9587
- showWhen?: {
10411
+ triggerWhen?: {
9588
10412
  type: "rules";
9589
10413
  rules: {
9590
10414
  conditions: ({
@@ -9635,6 +10459,13 @@ export declare const tileWidgets: {
9635
10459
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9636
10460
  count: number;
9637
10461
  withinMs?: number | undefined;
10462
+ counter?: {
10463
+ events: string[];
10464
+ match?: Record<string, {
10465
+ equals?: string | number | boolean | undefined;
10466
+ contains?: string | undefined;
10467
+ }> | undefined;
10468
+ } | undefined;
9638
10469
  })[];
9639
10470
  value?: unknown;
9640
10471
  }[];
@@ -9692,7 +10523,7 @@ export declare const tileWidgets: {
9692
10523
  } | undefined;
9693
10524
  };
9694
10525
  kind: "faq:question";
9695
- showWhen?: {
10526
+ triggerWhen?: {
9696
10527
  type: "rules";
9697
10528
  rules: {
9698
10529
  conditions: ({
@@ -9743,6 +10574,13 @@ export declare const tileWidgets: {
9743
10574
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9744
10575
  count: number;
9745
10576
  withinMs?: number | undefined;
10577
+ counter?: {
10578
+ events: string[];
10579
+ match?: Record<string, {
10580
+ equals?: string | number | boolean | undefined;
10581
+ contains?: string | undefined;
10582
+ }> | undefined;
10583
+ } | undefined;
9746
10584
  })[];
9747
10585
  value?: unknown;
9748
10586
  }[];
@@ -9931,18 +10769,57 @@ export declare const tileWidgets: {
9931
10769
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
9932
10770
  count: z.ZodNumber;
9933
10771
  withinMs: z.ZodOptional<z.ZodNumber>;
10772
+ counter: z.ZodOptional<z.ZodObject<{
10773
+ events: z.ZodArray<z.ZodString, "many">;
10774
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
10775
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
10776
+ contains: z.ZodOptional<z.ZodString>;
10777
+ }, "strip", z.ZodTypeAny, {
10778
+ equals?: string | number | boolean | undefined;
10779
+ contains?: string | undefined;
10780
+ }, {
10781
+ equals?: string | number | boolean | undefined;
10782
+ contains?: string | undefined;
10783
+ }>>>;
10784
+ }, "strip", z.ZodTypeAny, {
10785
+ events: string[];
10786
+ match?: Record<string, {
10787
+ equals?: string | number | boolean | undefined;
10788
+ contains?: string | undefined;
10789
+ }> | undefined;
10790
+ }, {
10791
+ events: string[];
10792
+ match?: Record<string, {
10793
+ equals?: string | number | boolean | undefined;
10794
+ contains?: string | undefined;
10795
+ }> | undefined;
10796
+ }>>;
9934
10797
  }, "strip", z.ZodTypeAny, {
9935
10798
  type: "event_count";
9936
10799
  key: string;
9937
10800
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9938
10801
  count: number;
9939
10802
  withinMs?: number | undefined;
10803
+ counter?: {
10804
+ events: string[];
10805
+ match?: Record<string, {
10806
+ equals?: string | number | boolean | undefined;
10807
+ contains?: string | undefined;
10808
+ }> | undefined;
10809
+ } | undefined;
9940
10810
  }, {
9941
10811
  type: "event_count";
9942
10812
  key: string;
9943
10813
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9944
10814
  count: number;
9945
10815
  withinMs?: number | undefined;
10816
+ counter?: {
10817
+ events: string[];
10818
+ match?: Record<string, {
10819
+ equals?: string | number | boolean | undefined;
10820
+ contains?: string | undefined;
10821
+ }> | undefined;
10822
+ } | undefined;
9946
10823
  }>]>, "many">;
9947
10824
  value: z.ZodUnknown;
9948
10825
  }, "strip", z.ZodTypeAny, {
@@ -9994,6 +10871,13 @@ export declare const tileWidgets: {
9994
10871
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
9995
10872
  count: number;
9996
10873
  withinMs?: number | undefined;
10874
+ counter?: {
10875
+ events: string[];
10876
+ match?: Record<string, {
10877
+ equals?: string | number | boolean | undefined;
10878
+ contains?: string | undefined;
10879
+ }> | undefined;
10880
+ } | undefined;
9997
10881
  })[];
9998
10882
  value?: unknown;
9999
10883
  }, {
@@ -10045,6 +10929,13 @@ export declare const tileWidgets: {
10045
10929
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10046
10930
  count: number;
10047
10931
  withinMs?: number | undefined;
10932
+ counter?: {
10933
+ events: string[];
10934
+ match?: Record<string, {
10935
+ equals?: string | number | boolean | undefined;
10936
+ contains?: string | undefined;
10937
+ }> | undefined;
10938
+ } | undefined;
10048
10939
  })[];
10049
10940
  value?: unknown;
10050
10941
  }>, "many">;
@@ -10100,6 +10991,13 @@ export declare const tileWidgets: {
10100
10991
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10101
10992
  count: number;
10102
10993
  withinMs?: number | undefined;
10994
+ counter?: {
10995
+ events: string[];
10996
+ match?: Record<string, {
10997
+ equals?: string | number | boolean | undefined;
10998
+ contains?: string | undefined;
10999
+ }> | undefined;
11000
+ } | undefined;
10103
11001
  })[];
10104
11002
  value?: unknown;
10105
11003
  }[];
@@ -10155,6 +11053,13 @@ export declare const tileWidgets: {
10155
11053
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10156
11054
  count: number;
10157
11055
  withinMs?: number | undefined;
11056
+ counter?: {
11057
+ events: string[];
11058
+ match?: Record<string, {
11059
+ equals?: string | number | boolean | undefined;
11060
+ contains?: string | undefined;
11061
+ }> | undefined;
11062
+ } | undefined;
10158
11063
  })[];
10159
11064
  value?: unknown;
10160
11065
  }[];
@@ -10354,7 +11259,7 @@ export declare const tileWidgets: {
10354
11259
  } | undefined;
10355
11260
  }>;
10356
11261
  /** Per-item activation strategy (null = always show) */
10357
- showWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11262
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10358
11263
  type: z.ZodLiteral<"rules">;
10359
11264
  rules: z.ZodArray<z.ZodObject<{
10360
11265
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -10489,18 +11394,57 @@ export declare const tileWidgets: {
10489
11394
  operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
10490
11395
  count: z.ZodNumber;
10491
11396
  withinMs: z.ZodOptional<z.ZodNumber>;
11397
+ counter: z.ZodOptional<z.ZodObject<{
11398
+ events: z.ZodArray<z.ZodString, "many">;
11399
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
11400
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
11401
+ contains: z.ZodOptional<z.ZodString>;
11402
+ }, "strip", z.ZodTypeAny, {
11403
+ equals?: string | number | boolean | undefined;
11404
+ contains?: string | undefined;
11405
+ }, {
11406
+ equals?: string | number | boolean | undefined;
11407
+ contains?: string | undefined;
11408
+ }>>>;
11409
+ }, "strip", z.ZodTypeAny, {
11410
+ events: string[];
11411
+ match?: Record<string, {
11412
+ equals?: string | number | boolean | undefined;
11413
+ contains?: string | undefined;
11414
+ }> | undefined;
11415
+ }, {
11416
+ events: string[];
11417
+ match?: Record<string, {
11418
+ equals?: string | number | boolean | undefined;
11419
+ contains?: string | undefined;
11420
+ }> | undefined;
11421
+ }>>;
10492
11422
  }, "strip", z.ZodTypeAny, {
10493
11423
  type: "event_count";
10494
11424
  key: string;
10495
11425
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10496
11426
  count: number;
10497
11427
  withinMs?: number | undefined;
11428
+ counter?: {
11429
+ events: string[];
11430
+ match?: Record<string, {
11431
+ equals?: string | number | boolean | undefined;
11432
+ contains?: string | undefined;
11433
+ }> | undefined;
11434
+ } | undefined;
10498
11435
  }, {
10499
11436
  type: "event_count";
10500
11437
  key: string;
10501
11438
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10502
11439
  count: number;
10503
11440
  withinMs?: number | undefined;
11441
+ counter?: {
11442
+ events: string[];
11443
+ match?: Record<string, {
11444
+ equals?: string | number | boolean | undefined;
11445
+ contains?: string | undefined;
11446
+ }> | undefined;
11447
+ } | undefined;
10504
11448
  }>]>, "many">;
10505
11449
  value: z.ZodUnknown;
10506
11450
  }, "strip", z.ZodTypeAny, {
@@ -10552,6 +11496,13 @@ export declare const tileWidgets: {
10552
11496
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10553
11497
  count: number;
10554
11498
  withinMs?: number | undefined;
11499
+ counter?: {
11500
+ events: string[];
11501
+ match?: Record<string, {
11502
+ equals?: string | number | boolean | undefined;
11503
+ contains?: string | undefined;
11504
+ }> | undefined;
11505
+ } | undefined;
10555
11506
  })[];
10556
11507
  value?: unknown;
10557
11508
  }, {
@@ -10603,6 +11554,13 @@ export declare const tileWidgets: {
10603
11554
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10604
11555
  count: number;
10605
11556
  withinMs?: number | undefined;
11557
+ counter?: {
11558
+ events: string[];
11559
+ match?: Record<string, {
11560
+ equals?: string | number | boolean | undefined;
11561
+ contains?: string | undefined;
11562
+ }> | undefined;
11563
+ } | undefined;
10606
11564
  })[];
10607
11565
  value?: unknown;
10608
11566
  }>, "many">;
@@ -10658,6 +11616,13 @@ export declare const tileWidgets: {
10658
11616
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10659
11617
  count: number;
10660
11618
  withinMs?: number | undefined;
11619
+ counter?: {
11620
+ events: string[];
11621
+ match?: Record<string, {
11622
+ equals?: string | number | boolean | undefined;
11623
+ contains?: string | undefined;
11624
+ }> | undefined;
11625
+ } | undefined;
10661
11626
  })[];
10662
11627
  value?: unknown;
10663
11628
  }[];
@@ -10713,6 +11678,13 @@ export declare const tileWidgets: {
10713
11678
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10714
11679
  count: number;
10715
11680
  withinMs?: number | undefined;
11681
+ counter?: {
11682
+ events: string[];
11683
+ match?: Record<string, {
11684
+ equals?: string | number | boolean | undefined;
11685
+ contains?: string | undefined;
11686
+ }> | undefined;
11687
+ } | undefined;
10716
11688
  })[];
10717
11689
  value?: unknown;
10718
11690
  }[];
@@ -10772,7 +11744,7 @@ export declare const tileWidgets: {
10772
11744
  method?: "GET" | "POST" | undefined;
10773
11745
  timeoutMs?: number | undefined;
10774
11746
  }>]>>>;
10775
- /** Toast config when showWhen transitions false → true. Required when showWhen is set (use null to opt out). */
11747
+ /** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
10776
11748
  notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10777
11749
  title: z.ZodOptional<z.ZodString>;
10778
11750
  body: z.ZodOptional<z.ZodString>;
@@ -10815,7 +11787,7 @@ export declare const tileWidgets: {
10815
11787
  } | undefined;
10816
11788
  };
10817
11789
  kind: "faq:question";
10818
- showWhen?: {
11790
+ triggerWhen?: {
10819
11791
  type: "rules";
10820
11792
  rules: {
10821
11793
  conditions: ({
@@ -10866,6 +11838,13 @@ export declare const tileWidgets: {
10866
11838
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10867
11839
  count: number;
10868
11840
  withinMs?: number | undefined;
11841
+ counter?: {
11842
+ events: string[];
11843
+ match?: Record<string, {
11844
+ equals?: string | number | boolean | undefined;
11845
+ contains?: string | undefined;
11846
+ }> | undefined;
11847
+ } | undefined;
10869
11848
  })[];
10870
11849
  value?: unknown;
10871
11850
  }[];
@@ -10923,7 +11902,7 @@ export declare const tileWidgets: {
10923
11902
  } | undefined;
10924
11903
  };
10925
11904
  kind: "faq:question";
10926
- showWhen?: {
11905
+ triggerWhen?: {
10927
11906
  type: "rules";
10928
11907
  rules: {
10929
11908
  conditions: ({
@@ -10974,6 +11953,13 @@ export declare const tileWidgets: {
10974
11953
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
10975
11954
  count: number;
10976
11955
  withinMs?: number | undefined;
11956
+ counter?: {
11957
+ events: string[];
11958
+ match?: Record<string, {
11959
+ equals?: string | number | boolean | undefined;
11960
+ contains?: string | undefined;
11961
+ }> | undefined;
11962
+ } | undefined;
10977
11963
  })[];
10978
11964
  value?: unknown;
10979
11965
  }[];
@@ -11031,7 +12017,7 @@ export declare const tileWidgets: {
11031
12017
  } | undefined;
11032
12018
  };
11033
12019
  kind: "faq:question";
11034
- showWhen?: {
12020
+ triggerWhen?: {
11035
12021
  type: "rules";
11036
12022
  rules: {
11037
12023
  conditions: ({
@@ -11082,6 +12068,13 @@ export declare const tileWidgets: {
11082
12068
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11083
12069
  count: number;
11084
12070
  withinMs?: number | undefined;
12071
+ counter?: {
12072
+ events: string[];
12073
+ match?: Record<string, {
12074
+ equals?: string | number | boolean | undefined;
12075
+ contains?: string | undefined;
12076
+ }> | undefined;
12077
+ } | undefined;
11085
12078
  })[];
11086
12079
  value?: unknown;
11087
12080
  }[];
@@ -11139,7 +12132,7 @@ export declare const tileWidgets: {
11139
12132
  } | undefined;
11140
12133
  };
11141
12134
  kind: "faq:question";
11142
- showWhen?: {
12135
+ triggerWhen?: {
11143
12136
  type: "rules";
11144
12137
  rules: {
11145
12138
  conditions: ({
@@ -11190,6 +12183,13 @@ export declare const tileWidgets: {
11190
12183
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11191
12184
  count: number;
11192
12185
  withinMs?: number | undefined;
12186
+ counter?: {
12187
+ events: string[];
12188
+ match?: Record<string, {
12189
+ equals?: string | number | boolean | undefined;
12190
+ contains?: string | undefined;
12191
+ }> | undefined;
12192
+ } | undefined;
11193
12193
  })[];
11194
12194
  value?: unknown;
11195
12195
  }[];
@@ -11251,7 +12251,7 @@ export declare const tileWidgets: {
11251
12251
  } | undefined;
11252
12252
  };
11253
12253
  kind: "faq:question";
11254
- showWhen?: {
12254
+ triggerWhen?: {
11255
12255
  type: "rules";
11256
12256
  rules: {
11257
12257
  conditions: ({
@@ -11302,6 +12302,13 @@ export declare const tileWidgets: {
11302
12302
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11303
12303
  count: number;
11304
12304
  withinMs?: number | undefined;
12305
+ counter?: {
12306
+ events: string[];
12307
+ match?: Record<string, {
12308
+ equals?: string | number | boolean | undefined;
12309
+ contains?: string | undefined;
12310
+ }> | undefined;
12311
+ } | undefined;
11305
12312
  })[];
11306
12313
  value?: unknown;
11307
12314
  }[];
@@ -11382,6 +12389,13 @@ export declare const tileWidgets: {
11382
12389
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11383
12390
  count: number;
11384
12391
  withinMs?: number | undefined;
12392
+ counter?: {
12393
+ events: string[];
12394
+ match?: Record<string, {
12395
+ equals?: string | number | boolean | undefined;
12396
+ contains?: string | undefined;
12397
+ }> | undefined;
12398
+ } | undefined;
11385
12399
  })[];
11386
12400
  value?: unknown;
11387
12401
  }[];
@@ -11437,7 +12451,7 @@ export declare const tileWidgets: {
11437
12451
  } | undefined;
11438
12452
  };
11439
12453
  kind: "faq:question";
11440
- showWhen?: {
12454
+ triggerWhen?: {
11441
12455
  type: "rules";
11442
12456
  rules: {
11443
12457
  conditions: ({
@@ -11488,6 +12502,13 @@ export declare const tileWidgets: {
11488
12502
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11489
12503
  count: number;
11490
12504
  withinMs?: number | undefined;
12505
+ counter?: {
12506
+ events: string[];
12507
+ match?: Record<string, {
12508
+ equals?: string | number | boolean | undefined;
12509
+ contains?: string | undefined;
12510
+ }> | undefined;
12511
+ } | undefined;
11491
12512
  })[];
11492
12513
  value?: unknown;
11493
12514
  }[];
@@ -11568,6 +12589,13 @@ export declare const tileWidgets: {
11568
12589
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11569
12590
  count: number;
11570
12591
  withinMs?: number | undefined;
12592
+ counter?: {
12593
+ events: string[];
12594
+ match?: Record<string, {
12595
+ equals?: string | number | boolean | undefined;
12596
+ contains?: string | undefined;
12597
+ }> | undefined;
12598
+ } | undefined;
11571
12599
  })[];
11572
12600
  value?: unknown;
11573
12601
  }[];
@@ -11594,20 +12622,6 @@ export declare const tileWidgets: {
11594
12622
  position?: "prepend" | "append" | undefined;
11595
12623
  once?: boolean | undefined;
11596
12624
  }>, "many">>;
11597
- /** Event scope for the FAQ widget */
11598
- scope: z.ZodOptional<z.ZodObject<{
11599
- events: z.ZodArray<z.ZodString, "many">;
11600
- urlContains: z.ZodOptional<z.ZodString>;
11601
- props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
11602
- }, "strip", z.ZodTypeAny, {
11603
- events: string[];
11604
- urlContains?: string | undefined;
11605
- props?: Record<string, string | number | boolean> | undefined;
11606
- }, {
11607
- events: string[];
11608
- urlContains?: string | undefined;
11609
- props?: Record<string, string | number | boolean> | undefined;
11610
- }>>;
11611
12625
  }, "strip", z.ZodTypeAny, {
11612
12626
  theme: "light" | "dark" | "auto";
11613
12627
  searchable: boolean;
@@ -11641,7 +12655,7 @@ export declare const tileWidgets: {
11641
12655
  } | undefined;
11642
12656
  };
11643
12657
  kind: "faq:question";
11644
- showWhen?: {
12658
+ triggerWhen?: {
11645
12659
  type: "rules";
11646
12660
  rules: {
11647
12661
  conditions: ({
@@ -11692,6 +12706,13 @@ export declare const tileWidgets: {
11692
12706
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11693
12707
  count: number;
11694
12708
  withinMs?: number | undefined;
12709
+ counter?: {
12710
+ events: string[];
12711
+ match?: Record<string, {
12712
+ equals?: string | number | boolean | undefined;
12713
+ contains?: string | undefined;
12714
+ }> | undefined;
12715
+ } | undefined;
11695
12716
  })[];
11696
12717
  value?: unknown;
11697
12718
  }[];
@@ -11759,7 +12780,7 @@ export declare const tileWidgets: {
11759
12780
  } | undefined;
11760
12781
  };
11761
12782
  kind: "faq:question";
11762
- showWhen?: {
12783
+ triggerWhen?: {
11763
12784
  type: "rules";
11764
12785
  rules: {
11765
12786
  conditions: ({
@@ -11810,6 +12831,13 @@ export declare const tileWidgets: {
11810
12831
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11811
12832
  count: number;
11812
12833
  withinMs?: number | undefined;
12834
+ counter?: {
12835
+ events: string[];
12836
+ match?: Record<string, {
12837
+ equals?: string | number | boolean | undefined;
12838
+ contains?: string | undefined;
12839
+ }> | undefined;
12840
+ } | undefined;
11813
12841
  })[];
11814
12842
  value?: unknown;
11815
12843
  }[];
@@ -11890,6 +12918,13 @@ export declare const tileWidgets: {
11890
12918
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
11891
12919
  count: number;
11892
12920
  withinMs?: number | undefined;
12921
+ counter?: {
12922
+ events: string[];
12923
+ match?: Record<string, {
12924
+ equals?: string | number | boolean | undefined;
12925
+ contains?: string | undefined;
12926
+ }> | undefined;
12927
+ } | undefined;
11893
12928
  })[];
11894
12929
  value?: unknown;
11895
12930
  }[];
@@ -11916,11 +12951,6 @@ export declare const tileWidgets: {
11916
12951
  position?: "prepend" | "append" | undefined;
11917
12952
  once?: boolean | undefined;
11918
12953
  }[] | undefined;
11919
- scope?: {
11920
- events: string[];
11921
- urlContains?: string | undefined;
11922
- props?: Record<string, string | number | boolean> | undefined;
11923
- } | undefined;
11924
12954
  title?: string | undefined;
11925
12955
  }, {
11926
12956
  theme?: "light" | "dark" | "auto" | undefined;
@@ -11955,7 +12985,7 @@ export declare const tileWidgets: {
11955
12985
  } | undefined;
11956
12986
  };
11957
12987
  kind: "faq:question";
11958
- showWhen?: {
12988
+ triggerWhen?: {
11959
12989
  type: "rules";
11960
12990
  rules: {
11961
12991
  conditions: ({
@@ -12006,6 +13036,13 @@ export declare const tileWidgets: {
12006
13036
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
12007
13037
  count: number;
12008
13038
  withinMs?: number | undefined;
13039
+ counter?: {
13040
+ events: string[];
13041
+ match?: Record<string, {
13042
+ equals?: string | number | boolean | undefined;
13043
+ contains?: string | undefined;
13044
+ }> | undefined;
13045
+ } | undefined;
12009
13046
  })[];
12010
13047
  value?: unknown;
12011
13048
  }[];
@@ -12073,7 +13110,7 @@ export declare const tileWidgets: {
12073
13110
  } | undefined;
12074
13111
  };
12075
13112
  kind: "faq:question";
12076
- showWhen?: {
13113
+ triggerWhen?: {
12077
13114
  type: "rules";
12078
13115
  rules: {
12079
13116
  conditions: ({
@@ -12124,6 +13161,13 @@ export declare const tileWidgets: {
12124
13161
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
12125
13162
  count: number;
12126
13163
  withinMs?: number | undefined;
13164
+ counter?: {
13165
+ events: string[];
13166
+ match?: Record<string, {
13167
+ equals?: string | number | boolean | undefined;
13168
+ contains?: string | undefined;
13169
+ }> | undefined;
13170
+ } | undefined;
12127
13171
  })[];
12128
13172
  value?: unknown;
12129
13173
  }[];
@@ -12204,6 +13248,13 @@ export declare const tileWidgets: {
12204
13248
  operator: "gte" | "lte" | "eq" | "gt" | "lt";
12205
13249
  count: number;
12206
13250
  withinMs?: number | undefined;
13251
+ counter?: {
13252
+ events: string[];
13253
+ match?: Record<string, {
13254
+ equals?: string | number | boolean | undefined;
13255
+ contains?: string | undefined;
13256
+ }> | undefined;
13257
+ } | undefined;
12207
13258
  })[];
12208
13259
  value?: unknown;
12209
13260
  }[];
@@ -12230,11 +13281,6 @@ export declare const tileWidgets: {
12230
13281
  position?: "prepend" | "append" | undefined;
12231
13282
  once?: boolean | undefined;
12232
13283
  }[] | undefined;
12233
- scope?: {
12234
- events: string[];
12235
- urlContains?: string | undefined;
12236
- props?: Record<string, string | number | boolean> | undefined;
12237
- } | undefined;
12238
13284
  title?: string | undefined;
12239
13285
  }>;
12240
13286
  }[];