@syntrologie/runtime-sdk 2.3.0 → 2.4.0-canary.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.
@@ -1596,16 +1596,265 @@
1596
1596
  "conditions": {
1597
1597
  "type": "array",
1598
1598
  "items": {
1599
- "type": "object",
1600
- "properties": {
1601
- "type": {
1602
- "type": "string"
1599
+ "anyOf": [
1600
+ {
1601
+ "type": "object",
1602
+ "properties": {
1603
+ "type": {
1604
+ "type": "string",
1605
+ "const": "page_url"
1606
+ },
1607
+ "url": {
1608
+ "type": "string"
1609
+ }
1610
+ },
1611
+ "required": [
1612
+ "type",
1613
+ "url"
1614
+ ],
1615
+ "additionalProperties": false
1616
+ },
1617
+ {
1618
+ "type": "object",
1619
+ "properties": {
1620
+ "type": {
1621
+ "type": "string",
1622
+ "const": "route"
1623
+ },
1624
+ "routeId": {
1625
+ "type": "string"
1626
+ }
1627
+ },
1628
+ "required": [
1629
+ "type",
1630
+ "routeId"
1631
+ ],
1632
+ "additionalProperties": false
1633
+ },
1634
+ {
1635
+ "type": "object",
1636
+ "properties": {
1637
+ "type": {
1638
+ "type": "string",
1639
+ "const": "anchor_visible"
1640
+ },
1641
+ "anchorId": {
1642
+ "type": "string"
1643
+ },
1644
+ "state": {
1645
+ "type": "string",
1646
+ "enum": [
1647
+ "visible",
1648
+ "present",
1649
+ "absent"
1650
+ ]
1651
+ }
1652
+ },
1653
+ "required": [
1654
+ "type",
1655
+ "anchorId",
1656
+ "state"
1657
+ ],
1658
+ "additionalProperties": false
1659
+ },
1660
+ {
1661
+ "type": "object",
1662
+ "properties": {
1663
+ "type": {
1664
+ "type": "string",
1665
+ "const": "event_occurred"
1666
+ },
1667
+ "eventName": {
1668
+ "type": "string"
1669
+ },
1670
+ "withinMs": {
1671
+ "type": "number"
1672
+ }
1673
+ },
1674
+ "required": [
1675
+ "type",
1676
+ "eventName"
1677
+ ],
1678
+ "additionalProperties": false
1679
+ },
1680
+ {
1681
+ "type": "object",
1682
+ "properties": {
1683
+ "type": {
1684
+ "type": "string",
1685
+ "const": "state_equals"
1686
+ },
1687
+ "key": {
1688
+ "type": "string"
1689
+ },
1690
+ "value": {}
1691
+ },
1692
+ "required": [
1693
+ "type",
1694
+ "key"
1695
+ ],
1696
+ "additionalProperties": false
1697
+ },
1698
+ {
1699
+ "type": "object",
1700
+ "properties": {
1701
+ "type": {
1702
+ "type": "string",
1703
+ "const": "viewport"
1704
+ },
1705
+ "minWidth": {
1706
+ "type": "number"
1707
+ },
1708
+ "maxWidth": {
1709
+ "type": "number"
1710
+ },
1711
+ "minHeight": {
1712
+ "type": "number"
1713
+ },
1714
+ "maxHeight": {
1715
+ "type": "number"
1716
+ }
1717
+ },
1718
+ "required": [
1719
+ "type"
1720
+ ],
1721
+ "additionalProperties": false
1722
+ },
1723
+ {
1724
+ "type": "object",
1725
+ "properties": {
1726
+ "type": {
1727
+ "type": "string",
1728
+ "const": "session_metric"
1729
+ },
1730
+ "key": {
1731
+ "type": "string"
1732
+ },
1733
+ "operator": {
1734
+ "type": "string",
1735
+ "enum": [
1736
+ "gte",
1737
+ "lte",
1738
+ "eq",
1739
+ "gt",
1740
+ "lt"
1741
+ ]
1742
+ },
1743
+ "threshold": {
1744
+ "type": "number"
1745
+ }
1746
+ },
1747
+ "required": [
1748
+ "type",
1749
+ "key",
1750
+ "operator",
1751
+ "threshold"
1752
+ ],
1753
+ "additionalProperties": false
1754
+ },
1755
+ {
1756
+ "type": "object",
1757
+ "properties": {
1758
+ "type": {
1759
+ "type": "string",
1760
+ "const": "dismissed"
1761
+ },
1762
+ "key": {
1763
+ "type": "string"
1764
+ },
1765
+ "inverted": {
1766
+ "type": "boolean"
1767
+ }
1768
+ },
1769
+ "required": [
1770
+ "type",
1771
+ "key"
1772
+ ],
1773
+ "additionalProperties": false
1774
+ },
1775
+ {
1776
+ "type": "object",
1777
+ "properties": {
1778
+ "type": {
1779
+ "type": "string",
1780
+ "const": "cooldown_active"
1781
+ },
1782
+ "key": {
1783
+ "type": "string"
1784
+ },
1785
+ "inverted": {
1786
+ "type": "boolean"
1787
+ }
1788
+ },
1789
+ "required": [
1790
+ "type",
1791
+ "key"
1792
+ ],
1793
+ "additionalProperties": false
1794
+ },
1795
+ {
1796
+ "type": "object",
1797
+ "properties": {
1798
+ "type": {
1799
+ "type": "string",
1800
+ "const": "frequency_limit"
1801
+ },
1802
+ "key": {
1803
+ "type": "string"
1804
+ },
1805
+ "limit": {
1806
+ "type": "number"
1807
+ },
1808
+ "inverted": {
1809
+ "type": "boolean"
1810
+ }
1811
+ },
1812
+ "required": [
1813
+ "type",
1814
+ "key",
1815
+ "limit"
1816
+ ],
1817
+ "additionalProperties": false
1818
+ },
1819
+ {
1820
+ "type": "object",
1821
+ "properties": {
1822
+ "type": {
1823
+ "type": "string",
1824
+ "const": "event_count"
1825
+ },
1826
+ "key": {
1827
+ "type": "string"
1828
+ },
1829
+ "operator": {
1830
+ "type": "string",
1831
+ "enum": [
1832
+ "gte",
1833
+ "lte",
1834
+ "eq",
1835
+ "gt",
1836
+ "lt"
1837
+ ]
1838
+ },
1839
+ "count": {
1840
+ "type": "integer",
1841
+ "minimum": 0
1842
+ },
1843
+ "withinMs": {
1844
+ "type": "number",
1845
+ "exclusiveMinimum": true,
1846
+ "minimum": 0
1847
+ }
1848
+ },
1849
+ "required": [
1850
+ "type",
1851
+ "key",
1852
+ "operator",
1853
+ "count"
1854
+ ],
1855
+ "additionalProperties": false
1603
1856
  }
1604
- },
1605
- "required": [
1606
- "type"
1607
- ],
1608
- "additionalProperties": true
1857
+ ]
1609
1858
  }
1610
1859
  },
1611
1860
  "value": {}
@@ -1974,16 +2223,265 @@
1974
2223
  "conditions": {
1975
2224
  "type": "array",
1976
2225
  "items": {
1977
- "type": "object",
1978
- "properties": {
1979
- "type": {
1980
- "type": "string"
2226
+ "anyOf": [
2227
+ {
2228
+ "type": "object",
2229
+ "properties": {
2230
+ "type": {
2231
+ "type": "string",
2232
+ "const": "page_url"
2233
+ },
2234
+ "url": {
2235
+ "type": "string"
2236
+ }
2237
+ },
2238
+ "required": [
2239
+ "type",
2240
+ "url"
2241
+ ],
2242
+ "additionalProperties": false
2243
+ },
2244
+ {
2245
+ "type": "object",
2246
+ "properties": {
2247
+ "type": {
2248
+ "type": "string",
2249
+ "const": "route"
2250
+ },
2251
+ "routeId": {
2252
+ "type": "string"
2253
+ }
2254
+ },
2255
+ "required": [
2256
+ "type",
2257
+ "routeId"
2258
+ ],
2259
+ "additionalProperties": false
2260
+ },
2261
+ {
2262
+ "type": "object",
2263
+ "properties": {
2264
+ "type": {
2265
+ "type": "string",
2266
+ "const": "anchor_visible"
2267
+ },
2268
+ "anchorId": {
2269
+ "type": "string"
2270
+ },
2271
+ "state": {
2272
+ "type": "string",
2273
+ "enum": [
2274
+ "visible",
2275
+ "present",
2276
+ "absent"
2277
+ ]
2278
+ }
2279
+ },
2280
+ "required": [
2281
+ "type",
2282
+ "anchorId",
2283
+ "state"
2284
+ ],
2285
+ "additionalProperties": false
2286
+ },
2287
+ {
2288
+ "type": "object",
2289
+ "properties": {
2290
+ "type": {
2291
+ "type": "string",
2292
+ "const": "event_occurred"
2293
+ },
2294
+ "eventName": {
2295
+ "type": "string"
2296
+ },
2297
+ "withinMs": {
2298
+ "type": "number"
2299
+ }
2300
+ },
2301
+ "required": [
2302
+ "type",
2303
+ "eventName"
2304
+ ],
2305
+ "additionalProperties": false
2306
+ },
2307
+ {
2308
+ "type": "object",
2309
+ "properties": {
2310
+ "type": {
2311
+ "type": "string",
2312
+ "const": "state_equals"
2313
+ },
2314
+ "key": {
2315
+ "type": "string"
2316
+ },
2317
+ "value": {}
2318
+ },
2319
+ "required": [
2320
+ "type",
2321
+ "key"
2322
+ ],
2323
+ "additionalProperties": false
2324
+ },
2325
+ {
2326
+ "type": "object",
2327
+ "properties": {
2328
+ "type": {
2329
+ "type": "string",
2330
+ "const": "viewport"
2331
+ },
2332
+ "minWidth": {
2333
+ "type": "number"
2334
+ },
2335
+ "maxWidth": {
2336
+ "type": "number"
2337
+ },
2338
+ "minHeight": {
2339
+ "type": "number"
2340
+ },
2341
+ "maxHeight": {
2342
+ "type": "number"
2343
+ }
2344
+ },
2345
+ "required": [
2346
+ "type"
2347
+ ],
2348
+ "additionalProperties": false
2349
+ },
2350
+ {
2351
+ "type": "object",
2352
+ "properties": {
2353
+ "type": {
2354
+ "type": "string",
2355
+ "const": "session_metric"
2356
+ },
2357
+ "key": {
2358
+ "type": "string"
2359
+ },
2360
+ "operator": {
2361
+ "type": "string",
2362
+ "enum": [
2363
+ "gte",
2364
+ "lte",
2365
+ "eq",
2366
+ "gt",
2367
+ "lt"
2368
+ ]
2369
+ },
2370
+ "threshold": {
2371
+ "type": "number"
2372
+ }
2373
+ },
2374
+ "required": [
2375
+ "type",
2376
+ "key",
2377
+ "operator",
2378
+ "threshold"
2379
+ ],
2380
+ "additionalProperties": false
2381
+ },
2382
+ {
2383
+ "type": "object",
2384
+ "properties": {
2385
+ "type": {
2386
+ "type": "string",
2387
+ "const": "dismissed"
2388
+ },
2389
+ "key": {
2390
+ "type": "string"
2391
+ },
2392
+ "inverted": {
2393
+ "type": "boolean"
2394
+ }
2395
+ },
2396
+ "required": [
2397
+ "type",
2398
+ "key"
2399
+ ],
2400
+ "additionalProperties": false
2401
+ },
2402
+ {
2403
+ "type": "object",
2404
+ "properties": {
2405
+ "type": {
2406
+ "type": "string",
2407
+ "const": "cooldown_active"
2408
+ },
2409
+ "key": {
2410
+ "type": "string"
2411
+ },
2412
+ "inverted": {
2413
+ "type": "boolean"
2414
+ }
2415
+ },
2416
+ "required": [
2417
+ "type",
2418
+ "key"
2419
+ ],
2420
+ "additionalProperties": false
2421
+ },
2422
+ {
2423
+ "type": "object",
2424
+ "properties": {
2425
+ "type": {
2426
+ "type": "string",
2427
+ "const": "frequency_limit"
2428
+ },
2429
+ "key": {
2430
+ "type": "string"
2431
+ },
2432
+ "limit": {
2433
+ "type": "number"
2434
+ },
2435
+ "inverted": {
2436
+ "type": "boolean"
2437
+ }
2438
+ },
2439
+ "required": [
2440
+ "type",
2441
+ "key",
2442
+ "limit"
2443
+ ],
2444
+ "additionalProperties": false
2445
+ },
2446
+ {
2447
+ "type": "object",
2448
+ "properties": {
2449
+ "type": {
2450
+ "type": "string",
2451
+ "const": "event_count"
2452
+ },
2453
+ "key": {
2454
+ "type": "string"
2455
+ },
2456
+ "operator": {
2457
+ "type": "string",
2458
+ "enum": [
2459
+ "gte",
2460
+ "lte",
2461
+ "eq",
2462
+ "gt",
2463
+ "lt"
2464
+ ]
2465
+ },
2466
+ "count": {
2467
+ "type": "integer",
2468
+ "minimum": 0
2469
+ },
2470
+ "withinMs": {
2471
+ "type": "number",
2472
+ "exclusiveMinimum": true,
2473
+ "minimum": 0
2474
+ }
2475
+ },
2476
+ "required": [
2477
+ "type",
2478
+ "key",
2479
+ "operator",
2480
+ "count"
2481
+ ],
2482
+ "additionalProperties": false
1981
2483
  }
1982
- },
1983
- "required": [
1984
- "type"
1985
- ],
1986
- "additionalProperties": true
2484
+ ]
1987
2485
  }
1988
2486
  },
1989
2487
  "value": {}
@@ -2256,16 +2754,265 @@
2256
2754
  "conditions": {
2257
2755
  "type": "array",
2258
2756
  "items": {
2259
- "type": "object",
2260
- "properties": {
2261
- "type": {
2262
- "type": "string"
2757
+ "anyOf": [
2758
+ {
2759
+ "type": "object",
2760
+ "properties": {
2761
+ "type": {
2762
+ "type": "string",
2763
+ "const": "page_url"
2764
+ },
2765
+ "url": {
2766
+ "type": "string"
2767
+ }
2768
+ },
2769
+ "required": [
2770
+ "type",
2771
+ "url"
2772
+ ],
2773
+ "additionalProperties": false
2774
+ },
2775
+ {
2776
+ "type": "object",
2777
+ "properties": {
2778
+ "type": {
2779
+ "type": "string",
2780
+ "const": "route"
2781
+ },
2782
+ "routeId": {
2783
+ "type": "string"
2784
+ }
2785
+ },
2786
+ "required": [
2787
+ "type",
2788
+ "routeId"
2789
+ ],
2790
+ "additionalProperties": false
2791
+ },
2792
+ {
2793
+ "type": "object",
2794
+ "properties": {
2795
+ "type": {
2796
+ "type": "string",
2797
+ "const": "anchor_visible"
2798
+ },
2799
+ "anchorId": {
2800
+ "type": "string"
2801
+ },
2802
+ "state": {
2803
+ "type": "string",
2804
+ "enum": [
2805
+ "visible",
2806
+ "present",
2807
+ "absent"
2808
+ ]
2809
+ }
2810
+ },
2811
+ "required": [
2812
+ "type",
2813
+ "anchorId",
2814
+ "state"
2815
+ ],
2816
+ "additionalProperties": false
2817
+ },
2818
+ {
2819
+ "type": "object",
2820
+ "properties": {
2821
+ "type": {
2822
+ "type": "string",
2823
+ "const": "event_occurred"
2824
+ },
2825
+ "eventName": {
2826
+ "type": "string"
2827
+ },
2828
+ "withinMs": {
2829
+ "type": "number"
2830
+ }
2831
+ },
2832
+ "required": [
2833
+ "type",
2834
+ "eventName"
2835
+ ],
2836
+ "additionalProperties": false
2837
+ },
2838
+ {
2839
+ "type": "object",
2840
+ "properties": {
2841
+ "type": {
2842
+ "type": "string",
2843
+ "const": "state_equals"
2844
+ },
2845
+ "key": {
2846
+ "type": "string"
2847
+ },
2848
+ "value": {}
2849
+ },
2850
+ "required": [
2851
+ "type",
2852
+ "key"
2853
+ ],
2854
+ "additionalProperties": false
2855
+ },
2856
+ {
2857
+ "type": "object",
2858
+ "properties": {
2859
+ "type": {
2860
+ "type": "string",
2861
+ "const": "viewport"
2862
+ },
2863
+ "minWidth": {
2864
+ "type": "number"
2865
+ },
2866
+ "maxWidth": {
2867
+ "type": "number"
2868
+ },
2869
+ "minHeight": {
2870
+ "type": "number"
2871
+ },
2872
+ "maxHeight": {
2873
+ "type": "number"
2874
+ }
2875
+ },
2876
+ "required": [
2877
+ "type"
2878
+ ],
2879
+ "additionalProperties": false
2880
+ },
2881
+ {
2882
+ "type": "object",
2883
+ "properties": {
2884
+ "type": {
2885
+ "type": "string",
2886
+ "const": "session_metric"
2887
+ },
2888
+ "key": {
2889
+ "type": "string"
2890
+ },
2891
+ "operator": {
2892
+ "type": "string",
2893
+ "enum": [
2894
+ "gte",
2895
+ "lte",
2896
+ "eq",
2897
+ "gt",
2898
+ "lt"
2899
+ ]
2900
+ },
2901
+ "threshold": {
2902
+ "type": "number"
2903
+ }
2904
+ },
2905
+ "required": [
2906
+ "type",
2907
+ "key",
2908
+ "operator",
2909
+ "threshold"
2910
+ ],
2911
+ "additionalProperties": false
2912
+ },
2913
+ {
2914
+ "type": "object",
2915
+ "properties": {
2916
+ "type": {
2917
+ "type": "string",
2918
+ "const": "dismissed"
2919
+ },
2920
+ "key": {
2921
+ "type": "string"
2922
+ },
2923
+ "inverted": {
2924
+ "type": "boolean"
2925
+ }
2926
+ },
2927
+ "required": [
2928
+ "type",
2929
+ "key"
2930
+ ],
2931
+ "additionalProperties": false
2932
+ },
2933
+ {
2934
+ "type": "object",
2935
+ "properties": {
2936
+ "type": {
2937
+ "type": "string",
2938
+ "const": "cooldown_active"
2939
+ },
2940
+ "key": {
2941
+ "type": "string"
2942
+ },
2943
+ "inverted": {
2944
+ "type": "boolean"
2945
+ }
2946
+ },
2947
+ "required": [
2948
+ "type",
2949
+ "key"
2950
+ ],
2951
+ "additionalProperties": false
2952
+ },
2953
+ {
2954
+ "type": "object",
2955
+ "properties": {
2956
+ "type": {
2957
+ "type": "string",
2958
+ "const": "frequency_limit"
2959
+ },
2960
+ "key": {
2961
+ "type": "string"
2962
+ },
2963
+ "limit": {
2964
+ "type": "number"
2965
+ },
2966
+ "inverted": {
2967
+ "type": "boolean"
2968
+ }
2969
+ },
2970
+ "required": [
2971
+ "type",
2972
+ "key",
2973
+ "limit"
2974
+ ],
2975
+ "additionalProperties": false
2976
+ },
2977
+ {
2978
+ "type": "object",
2979
+ "properties": {
2980
+ "type": {
2981
+ "type": "string",
2982
+ "const": "event_count"
2983
+ },
2984
+ "key": {
2985
+ "type": "string"
2986
+ },
2987
+ "operator": {
2988
+ "type": "string",
2989
+ "enum": [
2990
+ "gte",
2991
+ "lte",
2992
+ "eq",
2993
+ "gt",
2994
+ "lt"
2995
+ ]
2996
+ },
2997
+ "count": {
2998
+ "type": "integer",
2999
+ "minimum": 0
3000
+ },
3001
+ "withinMs": {
3002
+ "type": "number",
3003
+ "exclusiveMinimum": true,
3004
+ "minimum": 0
3005
+ }
3006
+ },
3007
+ "required": [
3008
+ "type",
3009
+ "key",
3010
+ "operator",
3011
+ "count"
3012
+ ],
3013
+ "additionalProperties": false
2263
3014
  }
2264
- },
2265
- "required": [
2266
- "type"
2267
- ],
2268
- "additionalProperties": true
3015
+ ]
2269
3016
  }
2270
3017
  },
2271
3018
  "value": {}
@@ -2628,16 +3375,265 @@
2628
3375
  "conditions": {
2629
3376
  "type": "array",
2630
3377
  "items": {
2631
- "type": "object",
2632
- "properties": {
2633
- "type": {
2634
- "type": "string"
3378
+ "anyOf": [
3379
+ {
3380
+ "type": "object",
3381
+ "properties": {
3382
+ "type": {
3383
+ "type": "string",
3384
+ "const": "page_url"
3385
+ },
3386
+ "url": {
3387
+ "type": "string"
3388
+ }
3389
+ },
3390
+ "required": [
3391
+ "type",
3392
+ "url"
3393
+ ],
3394
+ "additionalProperties": false
3395
+ },
3396
+ {
3397
+ "type": "object",
3398
+ "properties": {
3399
+ "type": {
3400
+ "type": "string",
3401
+ "const": "route"
3402
+ },
3403
+ "routeId": {
3404
+ "type": "string"
3405
+ }
3406
+ },
3407
+ "required": [
3408
+ "type",
3409
+ "routeId"
3410
+ ],
3411
+ "additionalProperties": false
3412
+ },
3413
+ {
3414
+ "type": "object",
3415
+ "properties": {
3416
+ "type": {
3417
+ "type": "string",
3418
+ "const": "anchor_visible"
3419
+ },
3420
+ "anchorId": {
3421
+ "type": "string"
3422
+ },
3423
+ "state": {
3424
+ "type": "string",
3425
+ "enum": [
3426
+ "visible",
3427
+ "present",
3428
+ "absent"
3429
+ ]
3430
+ }
3431
+ },
3432
+ "required": [
3433
+ "type",
3434
+ "anchorId",
3435
+ "state"
3436
+ ],
3437
+ "additionalProperties": false
3438
+ },
3439
+ {
3440
+ "type": "object",
3441
+ "properties": {
3442
+ "type": {
3443
+ "type": "string",
3444
+ "const": "event_occurred"
3445
+ },
3446
+ "eventName": {
3447
+ "type": "string"
3448
+ },
3449
+ "withinMs": {
3450
+ "type": "number"
3451
+ }
3452
+ },
3453
+ "required": [
3454
+ "type",
3455
+ "eventName"
3456
+ ],
3457
+ "additionalProperties": false
3458
+ },
3459
+ {
3460
+ "type": "object",
3461
+ "properties": {
3462
+ "type": {
3463
+ "type": "string",
3464
+ "const": "state_equals"
3465
+ },
3466
+ "key": {
3467
+ "type": "string"
3468
+ },
3469
+ "value": {}
3470
+ },
3471
+ "required": [
3472
+ "type",
3473
+ "key"
3474
+ ],
3475
+ "additionalProperties": false
3476
+ },
3477
+ {
3478
+ "type": "object",
3479
+ "properties": {
3480
+ "type": {
3481
+ "type": "string",
3482
+ "const": "viewport"
3483
+ },
3484
+ "minWidth": {
3485
+ "type": "number"
3486
+ },
3487
+ "maxWidth": {
3488
+ "type": "number"
3489
+ },
3490
+ "minHeight": {
3491
+ "type": "number"
3492
+ },
3493
+ "maxHeight": {
3494
+ "type": "number"
3495
+ }
3496
+ },
3497
+ "required": [
3498
+ "type"
3499
+ ],
3500
+ "additionalProperties": false
3501
+ },
3502
+ {
3503
+ "type": "object",
3504
+ "properties": {
3505
+ "type": {
3506
+ "type": "string",
3507
+ "const": "session_metric"
3508
+ },
3509
+ "key": {
3510
+ "type": "string"
3511
+ },
3512
+ "operator": {
3513
+ "type": "string",
3514
+ "enum": [
3515
+ "gte",
3516
+ "lte",
3517
+ "eq",
3518
+ "gt",
3519
+ "lt"
3520
+ ]
3521
+ },
3522
+ "threshold": {
3523
+ "type": "number"
3524
+ }
3525
+ },
3526
+ "required": [
3527
+ "type",
3528
+ "key",
3529
+ "operator",
3530
+ "threshold"
3531
+ ],
3532
+ "additionalProperties": false
3533
+ },
3534
+ {
3535
+ "type": "object",
3536
+ "properties": {
3537
+ "type": {
3538
+ "type": "string",
3539
+ "const": "dismissed"
3540
+ },
3541
+ "key": {
3542
+ "type": "string"
3543
+ },
3544
+ "inverted": {
3545
+ "type": "boolean"
3546
+ }
3547
+ },
3548
+ "required": [
3549
+ "type",
3550
+ "key"
3551
+ ],
3552
+ "additionalProperties": false
3553
+ },
3554
+ {
3555
+ "type": "object",
3556
+ "properties": {
3557
+ "type": {
3558
+ "type": "string",
3559
+ "const": "cooldown_active"
3560
+ },
3561
+ "key": {
3562
+ "type": "string"
3563
+ },
3564
+ "inverted": {
3565
+ "type": "boolean"
3566
+ }
3567
+ },
3568
+ "required": [
3569
+ "type",
3570
+ "key"
3571
+ ],
3572
+ "additionalProperties": false
3573
+ },
3574
+ {
3575
+ "type": "object",
3576
+ "properties": {
3577
+ "type": {
3578
+ "type": "string",
3579
+ "const": "frequency_limit"
3580
+ },
3581
+ "key": {
3582
+ "type": "string"
3583
+ },
3584
+ "limit": {
3585
+ "type": "number"
3586
+ },
3587
+ "inverted": {
3588
+ "type": "boolean"
3589
+ }
3590
+ },
3591
+ "required": [
3592
+ "type",
3593
+ "key",
3594
+ "limit"
3595
+ ],
3596
+ "additionalProperties": false
3597
+ },
3598
+ {
3599
+ "type": "object",
3600
+ "properties": {
3601
+ "type": {
3602
+ "type": "string",
3603
+ "const": "event_count"
3604
+ },
3605
+ "key": {
3606
+ "type": "string"
3607
+ },
3608
+ "operator": {
3609
+ "type": "string",
3610
+ "enum": [
3611
+ "gte",
3612
+ "lte",
3613
+ "eq",
3614
+ "gt",
3615
+ "lt"
3616
+ ]
3617
+ },
3618
+ "count": {
3619
+ "type": "integer",
3620
+ "minimum": 0
3621
+ },
3622
+ "withinMs": {
3623
+ "type": "number",
3624
+ "exclusiveMinimum": true,
3625
+ "minimum": 0
3626
+ }
3627
+ },
3628
+ "required": [
3629
+ "type",
3630
+ "key",
3631
+ "operator",
3632
+ "count"
3633
+ ],
3634
+ "additionalProperties": false
2635
3635
  }
2636
- },
2637
- "required": [
2638
- "type"
2639
- ],
2640
- "additionalProperties": true
3636
+ ]
2641
3637
  }
2642
3638
  },
2643
3639
  "value": {}
@@ -2857,16 +3853,265 @@
2857
3853
  "conditions": {
2858
3854
  "type": "array",
2859
3855
  "items": {
2860
- "type": "object",
2861
- "properties": {
2862
- "type": {
2863
- "type": "string"
3856
+ "anyOf": [
3857
+ {
3858
+ "type": "object",
3859
+ "properties": {
3860
+ "type": {
3861
+ "type": "string",
3862
+ "const": "page_url"
3863
+ },
3864
+ "url": {
3865
+ "type": "string"
3866
+ }
3867
+ },
3868
+ "required": [
3869
+ "type",
3870
+ "url"
3871
+ ],
3872
+ "additionalProperties": false
3873
+ },
3874
+ {
3875
+ "type": "object",
3876
+ "properties": {
3877
+ "type": {
3878
+ "type": "string",
3879
+ "const": "route"
3880
+ },
3881
+ "routeId": {
3882
+ "type": "string"
3883
+ }
3884
+ },
3885
+ "required": [
3886
+ "type",
3887
+ "routeId"
3888
+ ],
3889
+ "additionalProperties": false
3890
+ },
3891
+ {
3892
+ "type": "object",
3893
+ "properties": {
3894
+ "type": {
3895
+ "type": "string",
3896
+ "const": "anchor_visible"
3897
+ },
3898
+ "anchorId": {
3899
+ "type": "string"
3900
+ },
3901
+ "state": {
3902
+ "type": "string",
3903
+ "enum": [
3904
+ "visible",
3905
+ "present",
3906
+ "absent"
3907
+ ]
3908
+ }
3909
+ },
3910
+ "required": [
3911
+ "type",
3912
+ "anchorId",
3913
+ "state"
3914
+ ],
3915
+ "additionalProperties": false
3916
+ },
3917
+ {
3918
+ "type": "object",
3919
+ "properties": {
3920
+ "type": {
3921
+ "type": "string",
3922
+ "const": "event_occurred"
3923
+ },
3924
+ "eventName": {
3925
+ "type": "string"
3926
+ },
3927
+ "withinMs": {
3928
+ "type": "number"
3929
+ }
3930
+ },
3931
+ "required": [
3932
+ "type",
3933
+ "eventName"
3934
+ ],
3935
+ "additionalProperties": false
3936
+ },
3937
+ {
3938
+ "type": "object",
3939
+ "properties": {
3940
+ "type": {
3941
+ "type": "string",
3942
+ "const": "state_equals"
3943
+ },
3944
+ "key": {
3945
+ "type": "string"
3946
+ },
3947
+ "value": {}
3948
+ },
3949
+ "required": [
3950
+ "type",
3951
+ "key"
3952
+ ],
3953
+ "additionalProperties": false
3954
+ },
3955
+ {
3956
+ "type": "object",
3957
+ "properties": {
3958
+ "type": {
3959
+ "type": "string",
3960
+ "const": "viewport"
3961
+ },
3962
+ "minWidth": {
3963
+ "type": "number"
3964
+ },
3965
+ "maxWidth": {
3966
+ "type": "number"
3967
+ },
3968
+ "minHeight": {
3969
+ "type": "number"
3970
+ },
3971
+ "maxHeight": {
3972
+ "type": "number"
3973
+ }
3974
+ },
3975
+ "required": [
3976
+ "type"
3977
+ ],
3978
+ "additionalProperties": false
3979
+ },
3980
+ {
3981
+ "type": "object",
3982
+ "properties": {
3983
+ "type": {
3984
+ "type": "string",
3985
+ "const": "session_metric"
3986
+ },
3987
+ "key": {
3988
+ "type": "string"
3989
+ },
3990
+ "operator": {
3991
+ "type": "string",
3992
+ "enum": [
3993
+ "gte",
3994
+ "lte",
3995
+ "eq",
3996
+ "gt",
3997
+ "lt"
3998
+ ]
3999
+ },
4000
+ "threshold": {
4001
+ "type": "number"
4002
+ }
4003
+ },
4004
+ "required": [
4005
+ "type",
4006
+ "key",
4007
+ "operator",
4008
+ "threshold"
4009
+ ],
4010
+ "additionalProperties": false
4011
+ },
4012
+ {
4013
+ "type": "object",
4014
+ "properties": {
4015
+ "type": {
4016
+ "type": "string",
4017
+ "const": "dismissed"
4018
+ },
4019
+ "key": {
4020
+ "type": "string"
4021
+ },
4022
+ "inverted": {
4023
+ "type": "boolean"
4024
+ }
4025
+ },
4026
+ "required": [
4027
+ "type",
4028
+ "key"
4029
+ ],
4030
+ "additionalProperties": false
4031
+ },
4032
+ {
4033
+ "type": "object",
4034
+ "properties": {
4035
+ "type": {
4036
+ "type": "string",
4037
+ "const": "cooldown_active"
4038
+ },
4039
+ "key": {
4040
+ "type": "string"
4041
+ },
4042
+ "inverted": {
4043
+ "type": "boolean"
4044
+ }
4045
+ },
4046
+ "required": [
4047
+ "type",
4048
+ "key"
4049
+ ],
4050
+ "additionalProperties": false
4051
+ },
4052
+ {
4053
+ "type": "object",
4054
+ "properties": {
4055
+ "type": {
4056
+ "type": "string",
4057
+ "const": "frequency_limit"
4058
+ },
4059
+ "key": {
4060
+ "type": "string"
4061
+ },
4062
+ "limit": {
4063
+ "type": "number"
4064
+ },
4065
+ "inverted": {
4066
+ "type": "boolean"
4067
+ }
4068
+ },
4069
+ "required": [
4070
+ "type",
4071
+ "key",
4072
+ "limit"
4073
+ ],
4074
+ "additionalProperties": false
4075
+ },
4076
+ {
4077
+ "type": "object",
4078
+ "properties": {
4079
+ "type": {
4080
+ "type": "string",
4081
+ "const": "event_count"
4082
+ },
4083
+ "key": {
4084
+ "type": "string"
4085
+ },
4086
+ "operator": {
4087
+ "type": "string",
4088
+ "enum": [
4089
+ "gte",
4090
+ "lte",
4091
+ "eq",
4092
+ "gt",
4093
+ "lt"
4094
+ ]
4095
+ },
4096
+ "count": {
4097
+ "type": "integer",
4098
+ "minimum": 0
4099
+ },
4100
+ "withinMs": {
4101
+ "type": "number",
4102
+ "exclusiveMinimum": true,
4103
+ "minimum": 0
4104
+ }
4105
+ },
4106
+ "required": [
4107
+ "type",
4108
+ "key",
4109
+ "operator",
4110
+ "count"
4111
+ ],
4112
+ "additionalProperties": false
2864
4113
  }
2865
- },
2866
- "required": [
2867
- "type"
2868
- ],
2869
- "additionalProperties": true
4114
+ ]
2870
4115
  }
2871
4116
  },
2872
4117
  "value": {}
@@ -3127,16 +4372,265 @@
3127
4372
  "conditions": {
3128
4373
  "type": "array",
3129
4374
  "items": {
3130
- "type": "object",
3131
- "properties": {
3132
- "type": {
3133
- "type": "string"
4375
+ "anyOf": [
4376
+ {
4377
+ "type": "object",
4378
+ "properties": {
4379
+ "type": {
4380
+ "type": "string",
4381
+ "const": "page_url"
4382
+ },
4383
+ "url": {
4384
+ "type": "string"
4385
+ }
4386
+ },
4387
+ "required": [
4388
+ "type",
4389
+ "url"
4390
+ ],
4391
+ "additionalProperties": false
4392
+ },
4393
+ {
4394
+ "type": "object",
4395
+ "properties": {
4396
+ "type": {
4397
+ "type": "string",
4398
+ "const": "route"
4399
+ },
4400
+ "routeId": {
4401
+ "type": "string"
4402
+ }
4403
+ },
4404
+ "required": [
4405
+ "type",
4406
+ "routeId"
4407
+ ],
4408
+ "additionalProperties": false
4409
+ },
4410
+ {
4411
+ "type": "object",
4412
+ "properties": {
4413
+ "type": {
4414
+ "type": "string",
4415
+ "const": "anchor_visible"
4416
+ },
4417
+ "anchorId": {
4418
+ "type": "string"
4419
+ },
4420
+ "state": {
4421
+ "type": "string",
4422
+ "enum": [
4423
+ "visible",
4424
+ "present",
4425
+ "absent"
4426
+ ]
4427
+ }
4428
+ },
4429
+ "required": [
4430
+ "type",
4431
+ "anchorId",
4432
+ "state"
4433
+ ],
4434
+ "additionalProperties": false
4435
+ },
4436
+ {
4437
+ "type": "object",
4438
+ "properties": {
4439
+ "type": {
4440
+ "type": "string",
4441
+ "const": "event_occurred"
4442
+ },
4443
+ "eventName": {
4444
+ "type": "string"
4445
+ },
4446
+ "withinMs": {
4447
+ "type": "number"
4448
+ }
4449
+ },
4450
+ "required": [
4451
+ "type",
4452
+ "eventName"
4453
+ ],
4454
+ "additionalProperties": false
4455
+ },
4456
+ {
4457
+ "type": "object",
4458
+ "properties": {
4459
+ "type": {
4460
+ "type": "string",
4461
+ "const": "state_equals"
4462
+ },
4463
+ "key": {
4464
+ "type": "string"
4465
+ },
4466
+ "value": {}
4467
+ },
4468
+ "required": [
4469
+ "type",
4470
+ "key"
4471
+ ],
4472
+ "additionalProperties": false
4473
+ },
4474
+ {
4475
+ "type": "object",
4476
+ "properties": {
4477
+ "type": {
4478
+ "type": "string",
4479
+ "const": "viewport"
4480
+ },
4481
+ "minWidth": {
4482
+ "type": "number"
4483
+ },
4484
+ "maxWidth": {
4485
+ "type": "number"
4486
+ },
4487
+ "minHeight": {
4488
+ "type": "number"
4489
+ },
4490
+ "maxHeight": {
4491
+ "type": "number"
4492
+ }
4493
+ },
4494
+ "required": [
4495
+ "type"
4496
+ ],
4497
+ "additionalProperties": false
4498
+ },
4499
+ {
4500
+ "type": "object",
4501
+ "properties": {
4502
+ "type": {
4503
+ "type": "string",
4504
+ "const": "session_metric"
4505
+ },
4506
+ "key": {
4507
+ "type": "string"
4508
+ },
4509
+ "operator": {
4510
+ "type": "string",
4511
+ "enum": [
4512
+ "gte",
4513
+ "lte",
4514
+ "eq",
4515
+ "gt",
4516
+ "lt"
4517
+ ]
4518
+ },
4519
+ "threshold": {
4520
+ "type": "number"
4521
+ }
4522
+ },
4523
+ "required": [
4524
+ "type",
4525
+ "key",
4526
+ "operator",
4527
+ "threshold"
4528
+ ],
4529
+ "additionalProperties": false
4530
+ },
4531
+ {
4532
+ "type": "object",
4533
+ "properties": {
4534
+ "type": {
4535
+ "type": "string",
4536
+ "const": "dismissed"
4537
+ },
4538
+ "key": {
4539
+ "type": "string"
4540
+ },
4541
+ "inverted": {
4542
+ "type": "boolean"
4543
+ }
4544
+ },
4545
+ "required": [
4546
+ "type",
4547
+ "key"
4548
+ ],
4549
+ "additionalProperties": false
4550
+ },
4551
+ {
4552
+ "type": "object",
4553
+ "properties": {
4554
+ "type": {
4555
+ "type": "string",
4556
+ "const": "cooldown_active"
4557
+ },
4558
+ "key": {
4559
+ "type": "string"
4560
+ },
4561
+ "inverted": {
4562
+ "type": "boolean"
4563
+ }
4564
+ },
4565
+ "required": [
4566
+ "type",
4567
+ "key"
4568
+ ],
4569
+ "additionalProperties": false
4570
+ },
4571
+ {
4572
+ "type": "object",
4573
+ "properties": {
4574
+ "type": {
4575
+ "type": "string",
4576
+ "const": "frequency_limit"
4577
+ },
4578
+ "key": {
4579
+ "type": "string"
4580
+ },
4581
+ "limit": {
4582
+ "type": "number"
4583
+ },
4584
+ "inverted": {
4585
+ "type": "boolean"
4586
+ }
4587
+ },
4588
+ "required": [
4589
+ "type",
4590
+ "key",
4591
+ "limit"
4592
+ ],
4593
+ "additionalProperties": false
4594
+ },
4595
+ {
4596
+ "type": "object",
4597
+ "properties": {
4598
+ "type": {
4599
+ "type": "string",
4600
+ "const": "event_count"
4601
+ },
4602
+ "key": {
4603
+ "type": "string"
4604
+ },
4605
+ "operator": {
4606
+ "type": "string",
4607
+ "enum": [
4608
+ "gte",
4609
+ "lte",
4610
+ "eq",
4611
+ "gt",
4612
+ "lt"
4613
+ ]
4614
+ },
4615
+ "count": {
4616
+ "type": "integer",
4617
+ "minimum": 0
4618
+ },
4619
+ "withinMs": {
4620
+ "type": "number",
4621
+ "exclusiveMinimum": true,
4622
+ "minimum": 0
4623
+ }
4624
+ },
4625
+ "required": [
4626
+ "type",
4627
+ "key",
4628
+ "operator",
4629
+ "count"
4630
+ ],
4631
+ "additionalProperties": false
3134
4632
  }
3135
- },
3136
- "required": [
3137
- "type"
3138
- ],
3139
- "additionalProperties": true
4633
+ ]
3140
4634
  }
3141
4635
  },
3142
4636
  "value": {}
@@ -3409,16 +4903,265 @@
3409
4903
  "conditions": {
3410
4904
  "type": "array",
3411
4905
  "items": {
3412
- "type": "object",
3413
- "properties": {
3414
- "type": {
3415
- "type": "string"
4906
+ "anyOf": [
4907
+ {
4908
+ "type": "object",
4909
+ "properties": {
4910
+ "type": {
4911
+ "type": "string",
4912
+ "const": "page_url"
4913
+ },
4914
+ "url": {
4915
+ "type": "string"
4916
+ }
4917
+ },
4918
+ "required": [
4919
+ "type",
4920
+ "url"
4921
+ ],
4922
+ "additionalProperties": false
4923
+ },
4924
+ {
4925
+ "type": "object",
4926
+ "properties": {
4927
+ "type": {
4928
+ "type": "string",
4929
+ "const": "route"
4930
+ },
4931
+ "routeId": {
4932
+ "type": "string"
4933
+ }
4934
+ },
4935
+ "required": [
4936
+ "type",
4937
+ "routeId"
4938
+ ],
4939
+ "additionalProperties": false
4940
+ },
4941
+ {
4942
+ "type": "object",
4943
+ "properties": {
4944
+ "type": {
4945
+ "type": "string",
4946
+ "const": "anchor_visible"
4947
+ },
4948
+ "anchorId": {
4949
+ "type": "string"
4950
+ },
4951
+ "state": {
4952
+ "type": "string",
4953
+ "enum": [
4954
+ "visible",
4955
+ "present",
4956
+ "absent"
4957
+ ]
4958
+ }
4959
+ },
4960
+ "required": [
4961
+ "type",
4962
+ "anchorId",
4963
+ "state"
4964
+ ],
4965
+ "additionalProperties": false
4966
+ },
4967
+ {
4968
+ "type": "object",
4969
+ "properties": {
4970
+ "type": {
4971
+ "type": "string",
4972
+ "const": "event_occurred"
4973
+ },
4974
+ "eventName": {
4975
+ "type": "string"
4976
+ },
4977
+ "withinMs": {
4978
+ "type": "number"
4979
+ }
4980
+ },
4981
+ "required": [
4982
+ "type",
4983
+ "eventName"
4984
+ ],
4985
+ "additionalProperties": false
4986
+ },
4987
+ {
4988
+ "type": "object",
4989
+ "properties": {
4990
+ "type": {
4991
+ "type": "string",
4992
+ "const": "state_equals"
4993
+ },
4994
+ "key": {
4995
+ "type": "string"
4996
+ },
4997
+ "value": {}
4998
+ },
4999
+ "required": [
5000
+ "type",
5001
+ "key"
5002
+ ],
5003
+ "additionalProperties": false
5004
+ },
5005
+ {
5006
+ "type": "object",
5007
+ "properties": {
5008
+ "type": {
5009
+ "type": "string",
5010
+ "const": "viewport"
5011
+ },
5012
+ "minWidth": {
5013
+ "type": "number"
5014
+ },
5015
+ "maxWidth": {
5016
+ "type": "number"
5017
+ },
5018
+ "minHeight": {
5019
+ "type": "number"
5020
+ },
5021
+ "maxHeight": {
5022
+ "type": "number"
5023
+ }
5024
+ },
5025
+ "required": [
5026
+ "type"
5027
+ ],
5028
+ "additionalProperties": false
5029
+ },
5030
+ {
5031
+ "type": "object",
5032
+ "properties": {
5033
+ "type": {
5034
+ "type": "string",
5035
+ "const": "session_metric"
5036
+ },
5037
+ "key": {
5038
+ "type": "string"
5039
+ },
5040
+ "operator": {
5041
+ "type": "string",
5042
+ "enum": [
5043
+ "gte",
5044
+ "lte",
5045
+ "eq",
5046
+ "gt",
5047
+ "lt"
5048
+ ]
5049
+ },
5050
+ "threshold": {
5051
+ "type": "number"
5052
+ }
5053
+ },
5054
+ "required": [
5055
+ "type",
5056
+ "key",
5057
+ "operator",
5058
+ "threshold"
5059
+ ],
5060
+ "additionalProperties": false
5061
+ },
5062
+ {
5063
+ "type": "object",
5064
+ "properties": {
5065
+ "type": {
5066
+ "type": "string",
5067
+ "const": "dismissed"
5068
+ },
5069
+ "key": {
5070
+ "type": "string"
5071
+ },
5072
+ "inverted": {
5073
+ "type": "boolean"
5074
+ }
5075
+ },
5076
+ "required": [
5077
+ "type",
5078
+ "key"
5079
+ ],
5080
+ "additionalProperties": false
5081
+ },
5082
+ {
5083
+ "type": "object",
5084
+ "properties": {
5085
+ "type": {
5086
+ "type": "string",
5087
+ "const": "cooldown_active"
5088
+ },
5089
+ "key": {
5090
+ "type": "string"
5091
+ },
5092
+ "inverted": {
5093
+ "type": "boolean"
5094
+ }
5095
+ },
5096
+ "required": [
5097
+ "type",
5098
+ "key"
5099
+ ],
5100
+ "additionalProperties": false
5101
+ },
5102
+ {
5103
+ "type": "object",
5104
+ "properties": {
5105
+ "type": {
5106
+ "type": "string",
5107
+ "const": "frequency_limit"
5108
+ },
5109
+ "key": {
5110
+ "type": "string"
5111
+ },
5112
+ "limit": {
5113
+ "type": "number"
5114
+ },
5115
+ "inverted": {
5116
+ "type": "boolean"
5117
+ }
5118
+ },
5119
+ "required": [
5120
+ "type",
5121
+ "key",
5122
+ "limit"
5123
+ ],
5124
+ "additionalProperties": false
5125
+ },
5126
+ {
5127
+ "type": "object",
5128
+ "properties": {
5129
+ "type": {
5130
+ "type": "string",
5131
+ "const": "event_count"
5132
+ },
5133
+ "key": {
5134
+ "type": "string"
5135
+ },
5136
+ "operator": {
5137
+ "type": "string",
5138
+ "enum": [
5139
+ "gte",
5140
+ "lte",
5141
+ "eq",
5142
+ "gt",
5143
+ "lt"
5144
+ ]
5145
+ },
5146
+ "count": {
5147
+ "type": "integer",
5148
+ "minimum": 0
5149
+ },
5150
+ "withinMs": {
5151
+ "type": "number",
5152
+ "exclusiveMinimum": true,
5153
+ "minimum": 0
5154
+ }
5155
+ },
5156
+ "required": [
5157
+ "type",
5158
+ "key",
5159
+ "operator",
5160
+ "count"
5161
+ ],
5162
+ "additionalProperties": false
3416
5163
  }
3417
- },
3418
- "required": [
3419
- "type"
3420
- ],
3421
- "additionalProperties": true
5164
+ ]
3422
5165
  }
3423
5166
  },
3424
5167
  "value": {}