@syntrologie/runtime-sdk 2.4.0-canary.23 → 2.4.0-canary.25

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.
@@ -79,663 +79,19 @@ export declare const TileZ: z.ZodObject<{
79
79
  include?: string[] | undefined;
80
80
  exclude?: string[] | undefined;
81
81
  }>;
82
- strategy: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
83
- type: z.ZodLiteral<"rules">;
84
- rules: z.ZodArray<z.ZodObject<{
85
- conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
86
- type: z.ZodLiteral<"page_url">;
87
- url: z.ZodString;
88
- }, "strip", z.ZodTypeAny, {
89
- type: "page_url";
90
- url: string;
91
- }, {
92
- type: "page_url";
93
- url: string;
94
- }>, z.ZodObject<{
95
- type: z.ZodLiteral<"route">;
96
- routeId: z.ZodString;
97
- }, "strip", z.ZodTypeAny, {
98
- type: "route";
99
- routeId: string;
100
- }, {
101
- type: "route";
102
- routeId: string;
103
- }>, z.ZodObject<{
104
- type: z.ZodLiteral<"anchor_visible">;
105
- anchorId: z.ZodString;
106
- state: z.ZodEnum<["visible", "present", "absent"]>;
107
- }, "strip", z.ZodTypeAny, {
108
- type: "anchor_visible";
109
- anchorId: string;
110
- state: "visible" | "present" | "absent";
111
- }, {
112
- type: "anchor_visible";
113
- anchorId: string;
114
- state: "visible" | "present" | "absent";
115
- }>, z.ZodObject<{
116
- type: z.ZodLiteral<"event_occurred">;
117
- eventName: z.ZodString;
118
- withinMs: z.ZodOptional<z.ZodNumber>;
119
- }, "strip", z.ZodTypeAny, {
120
- type: "event_occurred";
121
- eventName: string;
122
- withinMs?: number | undefined;
123
- }, {
124
- type: "event_occurred";
125
- eventName: string;
126
- withinMs?: number | undefined;
127
- }>, z.ZodObject<{
128
- type: z.ZodLiteral<"state_equals">;
129
- key: z.ZodString;
130
- value: z.ZodUnknown;
131
- }, "strip", z.ZodTypeAny, {
132
- type: "state_equals";
133
- key: string;
134
- value?: unknown;
135
- }, {
136
- type: "state_equals";
137
- key: string;
138
- value?: unknown;
139
- }>, z.ZodObject<{
140
- type: z.ZodLiteral<"viewport">;
141
- minWidth: z.ZodOptional<z.ZodNumber>;
142
- maxWidth: z.ZodOptional<z.ZodNumber>;
143
- minHeight: z.ZodOptional<z.ZodNumber>;
144
- maxHeight: z.ZodOptional<z.ZodNumber>;
145
- }, "strip", z.ZodTypeAny, {
146
- type: "viewport";
147
- minWidth?: number | undefined;
148
- maxWidth?: number | undefined;
149
- minHeight?: number | undefined;
150
- maxHeight?: number | undefined;
151
- }, {
152
- type: "viewport";
153
- minWidth?: number | undefined;
154
- maxWidth?: number | undefined;
155
- minHeight?: number | undefined;
156
- maxHeight?: number | undefined;
157
- }>, z.ZodObject<{
158
- type: z.ZodLiteral<"session_metric">;
159
- key: z.ZodString;
160
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
161
- threshold: z.ZodNumber;
162
- }, "strip", z.ZodTypeAny, {
163
- type: "session_metric";
164
- key: string;
165
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
166
- threshold: number;
167
- }, {
168
- type: "session_metric";
169
- key: string;
170
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
171
- threshold: number;
172
- }>, z.ZodObject<{
173
- type: z.ZodLiteral<"dismissed">;
174
- key: z.ZodString;
175
- inverted: z.ZodOptional<z.ZodBoolean>;
176
- }, "strip", z.ZodTypeAny, {
177
- type: "dismissed";
178
- key: string;
179
- inverted?: boolean | undefined;
180
- }, {
181
- type: "dismissed";
182
- key: string;
183
- inverted?: boolean | undefined;
184
- }>, z.ZodObject<{
185
- type: z.ZodLiteral<"cooldown_active">;
186
- key: z.ZodString;
187
- inverted: z.ZodOptional<z.ZodBoolean>;
188
- }, "strip", z.ZodTypeAny, {
189
- type: "cooldown_active";
190
- key: string;
191
- inverted?: boolean | undefined;
192
- }, {
193
- type: "cooldown_active";
194
- key: string;
195
- inverted?: boolean | undefined;
196
- }>, z.ZodObject<{
197
- type: z.ZodLiteral<"frequency_limit">;
198
- key: z.ZodString;
199
- limit: z.ZodNumber;
200
- inverted: z.ZodOptional<z.ZodBoolean>;
201
- }, "strip", z.ZodTypeAny, {
202
- type: "frequency_limit";
203
- key: string;
204
- limit: number;
205
- inverted?: boolean | undefined;
206
- }, {
207
- type: "frequency_limit";
208
- key: string;
209
- limit: number;
210
- inverted?: boolean | undefined;
211
- }>, z.ZodObject<{
212
- type: z.ZodLiteral<"event_count">;
213
- key: z.ZodString;
214
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
215
- count: z.ZodNumber;
216
- withinMs: z.ZodOptional<z.ZodNumber>;
217
- counter: z.ZodOptional<z.ZodObject<{
218
- events: z.ZodArray<z.ZodString, "many">;
219
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
220
- equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
221
- contains: z.ZodOptional<z.ZodString>;
222
- }, "strip", z.ZodTypeAny, {
223
- equals?: string | number | boolean | undefined;
224
- contains?: string | undefined;
225
- }, {
226
- equals?: string | number | boolean | undefined;
227
- contains?: string | undefined;
228
- }>>>;
229
- }, "strip", z.ZodTypeAny, {
230
- events: string[];
231
- match?: Record<string, {
232
- equals?: string | number | boolean | undefined;
233
- contains?: string | undefined;
234
- }> | undefined;
235
- }, {
236
- events: string[];
237
- match?: Record<string, {
238
- equals?: string | number | boolean | undefined;
239
- contains?: string | undefined;
240
- }> | undefined;
241
- }>>;
242
- }, "strip", z.ZodTypeAny, {
243
- type: "event_count";
244
- key: string;
245
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
246
- count: number;
247
- withinMs?: number | undefined;
248
- counter?: {
249
- events: string[];
250
- match?: Record<string, {
251
- equals?: string | number | boolean | undefined;
252
- contains?: string | undefined;
253
- }> | undefined;
254
- } | undefined;
255
- }, {
256
- type: "event_count";
257
- key: string;
258
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
259
- count: number;
260
- withinMs?: number | undefined;
261
- counter?: {
262
- events: string[];
263
- match?: Record<string, {
264
- equals?: string | number | boolean | undefined;
265
- contains?: string | undefined;
266
- }> | undefined;
267
- } | undefined;
268
- }>]>, "many">;
269
- value: z.ZodUnknown;
270
- }, "strip", z.ZodTypeAny, {
271
- conditions: ({
272
- type: "page_url";
273
- url: string;
274
- } | {
275
- type: "route";
276
- routeId: string;
277
- } | {
278
- type: "anchor_visible";
279
- anchorId: string;
280
- state: "visible" | "present" | "absent";
281
- } | {
282
- type: "event_occurred";
283
- eventName: string;
284
- withinMs?: number | undefined;
285
- } | {
286
- type: "state_equals";
287
- key: string;
288
- value?: unknown;
289
- } | {
290
- type: "viewport";
291
- minWidth?: number | undefined;
292
- maxWidth?: number | undefined;
293
- minHeight?: number | undefined;
294
- maxHeight?: number | undefined;
295
- } | {
296
- type: "session_metric";
297
- key: string;
298
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
299
- threshold: number;
300
- } | {
301
- type: "dismissed";
302
- key: string;
303
- inverted?: boolean | undefined;
304
- } | {
305
- type: "cooldown_active";
306
- key: string;
307
- inverted?: boolean | undefined;
308
- } | {
309
- type: "frequency_limit";
310
- key: string;
311
- limit: number;
312
- inverted?: boolean | undefined;
313
- } | {
314
- type: "event_count";
315
- key: string;
316
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
317
- count: number;
318
- withinMs?: number | undefined;
319
- counter?: {
320
- events: string[];
321
- match?: Record<string, {
322
- equals?: string | number | boolean | undefined;
323
- contains?: string | undefined;
324
- }> | undefined;
325
- } | undefined;
326
- })[];
327
- value?: unknown;
328
- }, {
329
- conditions: ({
330
- type: "page_url";
331
- url: string;
332
- } | {
333
- type: "route";
334
- routeId: string;
335
- } | {
336
- type: "anchor_visible";
337
- anchorId: string;
338
- state: "visible" | "present" | "absent";
339
- } | {
340
- type: "event_occurred";
341
- eventName: string;
342
- withinMs?: number | undefined;
343
- } | {
344
- type: "state_equals";
345
- key: string;
346
- value?: unknown;
347
- } | {
348
- type: "viewport";
349
- minWidth?: number | undefined;
350
- maxWidth?: number | undefined;
351
- minHeight?: number | undefined;
352
- maxHeight?: number | undefined;
353
- } | {
354
- type: "session_metric";
355
- key: string;
356
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
357
- threshold: number;
358
- } | {
359
- type: "dismissed";
360
- key: string;
361
- inverted?: boolean | undefined;
362
- } | {
363
- type: "cooldown_active";
364
- key: string;
365
- inverted?: boolean | undefined;
366
- } | {
367
- type: "frequency_limit";
368
- key: string;
369
- limit: number;
370
- inverted?: boolean | undefined;
371
- } | {
372
- type: "event_count";
373
- key: string;
374
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
375
- count: number;
376
- withinMs?: number | undefined;
377
- counter?: {
378
- events: string[];
379
- match?: Record<string, {
380
- equals?: string | number | boolean | undefined;
381
- contains?: string | undefined;
382
- }> | undefined;
383
- } | undefined;
384
- })[];
385
- value?: unknown;
386
- }>, "many">;
387
- default: z.ZodUnknown;
388
- }, "strip", z.ZodTypeAny, {
389
- type: "rules";
390
- rules: {
391
- conditions: ({
392
- type: "page_url";
393
- url: string;
394
- } | {
395
- type: "route";
396
- routeId: string;
397
- } | {
398
- type: "anchor_visible";
399
- anchorId: string;
400
- state: "visible" | "present" | "absent";
401
- } | {
402
- type: "event_occurred";
403
- eventName: string;
404
- withinMs?: number | undefined;
405
- } | {
406
- type: "state_equals";
407
- key: string;
408
- value?: unknown;
409
- } | {
410
- type: "viewport";
411
- minWidth?: number | undefined;
412
- maxWidth?: number | undefined;
413
- minHeight?: number | undefined;
414
- maxHeight?: number | undefined;
415
- } | {
416
- type: "session_metric";
417
- key: string;
418
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
419
- threshold: number;
420
- } | {
421
- type: "dismissed";
422
- key: string;
423
- inverted?: boolean | undefined;
424
- } | {
425
- type: "cooldown_active";
426
- key: string;
427
- inverted?: boolean | undefined;
428
- } | {
429
- type: "frequency_limit";
430
- key: string;
431
- limit: number;
432
- inverted?: boolean | undefined;
433
- } | {
434
- type: "event_count";
435
- key: string;
436
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
437
- count: number;
438
- withinMs?: number | undefined;
439
- counter?: {
440
- events: string[];
441
- match?: Record<string, {
442
- equals?: string | number | boolean | undefined;
443
- contains?: string | undefined;
444
- }> | undefined;
445
- } | undefined;
446
- })[];
447
- value?: unknown;
448
- }[];
449
- default?: unknown;
450
- }, {
451
- type: "rules";
452
- rules: {
453
- conditions: ({
454
- type: "page_url";
455
- url: string;
456
- } | {
457
- type: "route";
458
- routeId: string;
459
- } | {
460
- type: "anchor_visible";
461
- anchorId: string;
462
- state: "visible" | "present" | "absent";
463
- } | {
464
- type: "event_occurred";
465
- eventName: string;
466
- withinMs?: number | undefined;
467
- } | {
468
- type: "state_equals";
469
- key: string;
470
- value?: unknown;
471
- } | {
472
- type: "viewport";
473
- minWidth?: number | undefined;
474
- maxWidth?: number | undefined;
475
- minHeight?: number | undefined;
476
- maxHeight?: number | undefined;
477
- } | {
478
- type: "session_metric";
479
- key: string;
480
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
481
- threshold: number;
482
- } | {
483
- type: "dismissed";
484
- key: string;
485
- inverted?: boolean | undefined;
486
- } | {
487
- type: "cooldown_active";
488
- key: string;
489
- inverted?: boolean | undefined;
490
- } | {
491
- type: "frequency_limit";
492
- key: string;
493
- limit: number;
494
- inverted?: boolean | undefined;
495
- } | {
496
- type: "event_count";
497
- key: string;
498
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
499
- count: number;
500
- withinMs?: number | undefined;
501
- counter?: {
502
- events: string[];
503
- match?: Record<string, {
504
- equals?: string | number | boolean | undefined;
505
- contains?: string | undefined;
506
- }> | undefined;
507
- } | undefined;
508
- })[];
509
- value?: unknown;
510
- }[];
511
- default?: unknown;
512
- }>, z.ZodObject<{
513
- type: z.ZodLiteral<"score">;
514
- field: z.ZodString;
515
- threshold: z.ZodNumber;
516
- above: z.ZodUnknown;
517
- below: z.ZodUnknown;
518
- }, "strip", z.ZodTypeAny, {
519
- type: "score";
520
- threshold: number;
521
- field: string;
522
- above?: unknown;
523
- below?: unknown;
524
- }, {
525
- type: "score";
526
- threshold: number;
527
- field: string;
528
- above?: unknown;
529
- below?: unknown;
530
- }>, z.ZodObject<{
531
- type: z.ZodLiteral<"model">;
532
- modelId: z.ZodString;
533
- inputs: z.ZodArray<z.ZodString, "many">;
534
- outputMapping: z.ZodRecord<z.ZodString, z.ZodUnknown>;
535
- default: z.ZodUnknown;
536
- }, "strip", z.ZodTypeAny, {
537
- type: "model";
538
- modelId: string;
539
- inputs: string[];
540
- outputMapping: Record<string, unknown>;
541
- default?: unknown;
542
- }, {
543
- type: "model";
544
- modelId: string;
545
- inputs: string[];
546
- outputMapping: Record<string, unknown>;
547
- default?: unknown;
548
- }>, z.ZodObject<{
549
- type: z.ZodLiteral<"external">;
550
- endpoint: z.ZodString;
551
- method: z.ZodOptional<z.ZodEnum<["GET", "POST"]>>;
552
- default: z.ZodUnknown;
553
- timeoutMs: z.ZodOptional<z.ZodNumber>;
554
- }, "strip", z.ZodTypeAny, {
555
- type: "external";
556
- endpoint: string;
557
- default?: unknown;
558
- method?: "GET" | "POST" | undefined;
559
- timeoutMs?: number | undefined;
560
- }, {
561
- type: "external";
562
- endpoint: string;
563
- default?: unknown;
564
- method?: "GET" | "POST" | undefined;
565
- timeoutMs?: number | undefined;
566
- }>]>>;
82
+ onlyIfPopulated: z.ZodOptional<z.ZodBoolean>;
567
83
  }, "strip", z.ZodTypeAny, {
568
84
  routes: {
569
85
  include?: string[] | undefined;
570
86
  exclude?: string[] | undefined;
571
87
  };
572
- strategy?: {
573
- type: "rules";
574
- rules: {
575
- conditions: ({
576
- type: "page_url";
577
- url: string;
578
- } | {
579
- type: "route";
580
- routeId: string;
581
- } | {
582
- type: "anchor_visible";
583
- anchorId: string;
584
- state: "visible" | "present" | "absent";
585
- } | {
586
- type: "event_occurred";
587
- eventName: string;
588
- withinMs?: number | undefined;
589
- } | {
590
- type: "state_equals";
591
- key: string;
592
- value?: unknown;
593
- } | {
594
- type: "viewport";
595
- minWidth?: number | undefined;
596
- maxWidth?: number | undefined;
597
- minHeight?: number | undefined;
598
- maxHeight?: number | undefined;
599
- } | {
600
- type: "session_metric";
601
- key: string;
602
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
603
- threshold: number;
604
- } | {
605
- type: "dismissed";
606
- key: string;
607
- inverted?: boolean | undefined;
608
- } | {
609
- type: "cooldown_active";
610
- key: string;
611
- inverted?: boolean | undefined;
612
- } | {
613
- type: "frequency_limit";
614
- key: string;
615
- limit: number;
616
- inverted?: boolean | undefined;
617
- } | {
618
- type: "event_count";
619
- key: string;
620
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
621
- count: number;
622
- withinMs?: number | undefined;
623
- counter?: {
624
- events: string[];
625
- match?: Record<string, {
626
- equals?: string | number | boolean | undefined;
627
- contains?: string | undefined;
628
- }> | undefined;
629
- } | undefined;
630
- })[];
631
- value?: unknown;
632
- }[];
633
- default?: unknown;
634
- } | {
635
- type: "score";
636
- threshold: number;
637
- field: string;
638
- above?: unknown;
639
- below?: unknown;
640
- } | {
641
- type: "model";
642
- modelId: string;
643
- inputs: string[];
644
- outputMapping: Record<string, unknown>;
645
- default?: unknown;
646
- } | {
647
- type: "external";
648
- endpoint: string;
649
- default?: unknown;
650
- method?: "GET" | "POST" | undefined;
651
- timeoutMs?: number | undefined;
652
- } | undefined;
88
+ onlyIfPopulated?: boolean | undefined;
653
89
  }, {
654
90
  routes: {
655
91
  include?: string[] | undefined;
656
92
  exclude?: string[] | undefined;
657
93
  };
658
- strategy?: {
659
- type: "rules";
660
- rules: {
661
- conditions: ({
662
- type: "page_url";
663
- url: string;
664
- } | {
665
- type: "route";
666
- routeId: string;
667
- } | {
668
- type: "anchor_visible";
669
- anchorId: string;
670
- state: "visible" | "present" | "absent";
671
- } | {
672
- type: "event_occurred";
673
- eventName: string;
674
- withinMs?: number | undefined;
675
- } | {
676
- type: "state_equals";
677
- key: string;
678
- value?: unknown;
679
- } | {
680
- type: "viewport";
681
- minWidth?: number | undefined;
682
- maxWidth?: number | undefined;
683
- minHeight?: number | undefined;
684
- maxHeight?: number | undefined;
685
- } | {
686
- type: "session_metric";
687
- key: string;
688
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
689
- threshold: number;
690
- } | {
691
- type: "dismissed";
692
- key: string;
693
- inverted?: boolean | undefined;
694
- } | {
695
- type: "cooldown_active";
696
- key: string;
697
- inverted?: boolean | undefined;
698
- } | {
699
- type: "frequency_limit";
700
- key: string;
701
- limit: number;
702
- inverted?: boolean | undefined;
703
- } | {
704
- type: "event_count";
705
- key: string;
706
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
707
- count: number;
708
- withinMs?: number | undefined;
709
- counter?: {
710
- events: string[];
711
- match?: Record<string, {
712
- equals?: string | number | boolean | undefined;
713
- contains?: string | undefined;
714
- }> | undefined;
715
- } | undefined;
716
- })[];
717
- value?: unknown;
718
- }[];
719
- default?: unknown;
720
- } | {
721
- type: "score";
722
- threshold: number;
723
- field: string;
724
- above?: unknown;
725
- below?: unknown;
726
- } | {
727
- type: "model";
728
- modelId: string;
729
- inputs: string[];
730
- outputMapping: Record<string, unknown>;
731
- default?: unknown;
732
- } | {
733
- type: "external";
734
- endpoint: string;
735
- default?: unknown;
736
- method?: "GET" | "POST" | undefined;
737
- timeoutMs?: number | undefined;
738
- } | undefined;
94
+ onlyIfPopulated?: boolean | undefined;
739
95
  }>>;
740
96
  notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
741
97
  on: z.ZodString;
@@ -790,87 +146,7 @@ export declare const TileZ: z.ZodObject<{
790
146
  include?: string[] | undefined;
791
147
  exclude?: string[] | undefined;
792
148
  };
793
- strategy?: {
794
- type: "rules";
795
- rules: {
796
- conditions: ({
797
- type: "page_url";
798
- url: string;
799
- } | {
800
- type: "route";
801
- routeId: string;
802
- } | {
803
- type: "anchor_visible";
804
- anchorId: string;
805
- state: "visible" | "present" | "absent";
806
- } | {
807
- type: "event_occurred";
808
- eventName: string;
809
- withinMs?: number | undefined;
810
- } | {
811
- type: "state_equals";
812
- key: string;
813
- value?: unknown;
814
- } | {
815
- type: "viewport";
816
- minWidth?: number | undefined;
817
- maxWidth?: number | undefined;
818
- minHeight?: number | undefined;
819
- maxHeight?: number | undefined;
820
- } | {
821
- type: "session_metric";
822
- key: string;
823
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
824
- threshold: number;
825
- } | {
826
- type: "dismissed";
827
- key: string;
828
- inverted?: boolean | undefined;
829
- } | {
830
- type: "cooldown_active";
831
- key: string;
832
- inverted?: boolean | undefined;
833
- } | {
834
- type: "frequency_limit";
835
- key: string;
836
- limit: number;
837
- inverted?: boolean | undefined;
838
- } | {
839
- type: "event_count";
840
- key: string;
841
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
842
- count: number;
843
- withinMs?: number | undefined;
844
- counter?: {
845
- events: string[];
846
- match?: Record<string, {
847
- equals?: string | number | boolean | undefined;
848
- contains?: string | undefined;
849
- }> | undefined;
850
- } | undefined;
851
- })[];
852
- value?: unknown;
853
- }[];
854
- default?: unknown;
855
- } | {
856
- type: "score";
857
- threshold: number;
858
- field: string;
859
- above?: unknown;
860
- below?: unknown;
861
- } | {
862
- type: "model";
863
- modelId: string;
864
- inputs: string[];
865
- outputMapping: Record<string, unknown>;
866
- default?: unknown;
867
- } | {
868
- type: "external";
869
- endpoint: string;
870
- default?: unknown;
871
- method?: "GET" | "POST" | undefined;
872
- timeoutMs?: number | undefined;
873
- } | undefined;
149
+ onlyIfPopulated?: boolean | undefined;
874
150
  } | undefined;
875
151
  notifications?: {
876
152
  on: string;
@@ -897,87 +173,7 @@ export declare const TileZ: z.ZodObject<{
897
173
  include?: string[] | undefined;
898
174
  exclude?: string[] | undefined;
899
175
  };
900
- strategy?: {
901
- type: "rules";
902
- rules: {
903
- conditions: ({
904
- type: "page_url";
905
- url: string;
906
- } | {
907
- type: "route";
908
- routeId: string;
909
- } | {
910
- type: "anchor_visible";
911
- anchorId: string;
912
- state: "visible" | "present" | "absent";
913
- } | {
914
- type: "event_occurred";
915
- eventName: string;
916
- withinMs?: number | undefined;
917
- } | {
918
- type: "state_equals";
919
- key: string;
920
- value?: unknown;
921
- } | {
922
- type: "viewport";
923
- minWidth?: number | undefined;
924
- maxWidth?: number | undefined;
925
- minHeight?: number | undefined;
926
- maxHeight?: number | undefined;
927
- } | {
928
- type: "session_metric";
929
- key: string;
930
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
931
- threshold: number;
932
- } | {
933
- type: "dismissed";
934
- key: string;
935
- inverted?: boolean | undefined;
936
- } | {
937
- type: "cooldown_active";
938
- key: string;
939
- inverted?: boolean | undefined;
940
- } | {
941
- type: "frequency_limit";
942
- key: string;
943
- limit: number;
944
- inverted?: boolean | undefined;
945
- } | {
946
- type: "event_count";
947
- key: string;
948
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
949
- count: number;
950
- withinMs?: number | undefined;
951
- counter?: {
952
- events: string[];
953
- match?: Record<string, {
954
- equals?: string | number | boolean | undefined;
955
- contains?: string | undefined;
956
- }> | undefined;
957
- } | undefined;
958
- })[];
959
- value?: unknown;
960
- }[];
961
- default?: unknown;
962
- } | {
963
- type: "score";
964
- threshold: number;
965
- field: string;
966
- above?: unknown;
967
- below?: unknown;
968
- } | {
969
- type: "model";
970
- modelId: string;
971
- inputs: string[];
972
- outputMapping: Record<string, unknown>;
973
- default?: unknown;
974
- } | {
975
- type: "external";
976
- endpoint: string;
977
- default?: unknown;
978
- method?: "GET" | "POST" | undefined;
979
- timeoutMs?: number | undefined;
980
- } | undefined;
176
+ onlyIfPopulated?: boolean | undefined;
981
177
  } | undefined;
982
178
  notifications?: {
983
179
  on: string;
@@ -999,6 +195,9 @@ export declare const CanvasElementConfigZ: z.ZodObject<{
999
195
  blur: z.ZodOptional<z.ZodString>;
1000
196
  border: z.ZodOptional<z.ZodString>;
1001
197
  width: z.ZodOptional<z.ZodString>;
198
+ transitionDuration: z.ZodOptional<z.ZodString>;
199
+ transitionEasing: z.ZodOptional<z.ZodString>;
200
+ transitionFade: z.ZodOptional<z.ZodString>;
1002
201
  }, "strip", z.ZodTypeAny, {
1003
202
  position?: "right" | "left" | undefined;
1004
203
  layout?: "push" | "overlay" | undefined;
@@ -1006,6 +205,9 @@ export declare const CanvasElementConfigZ: z.ZodObject<{
1006
205
  blur?: string | undefined;
1007
206
  border?: string | undefined;
1008
207
  width?: string | undefined;
208
+ transitionDuration?: string | undefined;
209
+ transitionEasing?: string | undefined;
210
+ transitionFade?: string | undefined;
1009
211
  }, {
1010
212
  position?: "right" | "left" | undefined;
1011
213
  layout?: "push" | "overlay" | undefined;
@@ -1013,6 +215,9 @@ export declare const CanvasElementConfigZ: z.ZodObject<{
1013
215
  blur?: string | undefined;
1014
216
  border?: string | undefined;
1015
217
  width?: string | undefined;
218
+ transitionDuration?: string | undefined;
219
+ transitionEasing?: string | undefined;
220
+ transitionFade?: string | undefined;
1016
221
  }>;
1017
222
  export declare const LauncherElementConfigZ: z.ZodObject<{
1018
223
  background: z.ZodOptional<z.ZodString>;
@@ -1212,6 +417,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
1212
417
  blur: z.ZodOptional<z.ZodString>;
1213
418
  border: z.ZodOptional<z.ZodString>;
1214
419
  width: z.ZodOptional<z.ZodString>;
420
+ transitionDuration: z.ZodOptional<z.ZodString>;
421
+ transitionEasing: z.ZodOptional<z.ZodString>;
422
+ transitionFade: z.ZodOptional<z.ZodString>;
1215
423
  }, "strip", z.ZodTypeAny, {
1216
424
  position?: "right" | "left" | undefined;
1217
425
  layout?: "push" | "overlay" | undefined;
@@ -1219,6 +427,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
1219
427
  blur?: string | undefined;
1220
428
  border?: string | undefined;
1221
429
  width?: string | undefined;
430
+ transitionDuration?: string | undefined;
431
+ transitionEasing?: string | undefined;
432
+ transitionFade?: string | undefined;
1222
433
  }, {
1223
434
  position?: "right" | "left" | undefined;
1224
435
  layout?: "push" | "overlay" | undefined;
@@ -1226,6 +437,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
1226
437
  blur?: string | undefined;
1227
438
  border?: string | undefined;
1228
439
  width?: string | undefined;
440
+ transitionDuration?: string | undefined;
441
+ transitionEasing?: string | undefined;
442
+ transitionFade?: string | undefined;
1229
443
  }>>;
1230
444
  launcher: z.ZodOptional<z.ZodObject<{
1231
445
  background: z.ZodOptional<z.ZodString>;
@@ -1456,6 +670,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
1456
670
  blur?: string | undefined;
1457
671
  border?: string | undefined;
1458
672
  width?: string | undefined;
673
+ transitionDuration?: string | undefined;
674
+ transitionEasing?: string | undefined;
675
+ transitionFade?: string | undefined;
1459
676
  } | undefined;
1460
677
  launcher?: {
1461
678
  size?: string | undefined;
@@ -1535,6 +752,9 @@ export declare const CanvasThemeConfigZ: z.ZodObject<{
1535
752
  blur?: string | undefined;
1536
753
  border?: string | undefined;
1537
754
  width?: string | undefined;
755
+ transitionDuration?: string | undefined;
756
+ transitionEasing?: string | undefined;
757
+ transitionFade?: string | undefined;
1538
758
  } | undefined;
1539
759
  launcher?: {
1540
760
  size?: string | undefined;
@@ -1620,663 +840,19 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
1620
840
  include?: string[] | undefined;
1621
841
  exclude?: string[] | undefined;
1622
842
  }>;
1623
- strategy: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1624
- type: z.ZodLiteral<"rules">;
1625
- rules: z.ZodArray<z.ZodObject<{
1626
- conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1627
- type: z.ZodLiteral<"page_url">;
1628
- url: z.ZodString;
1629
- }, "strip", z.ZodTypeAny, {
1630
- type: "page_url";
1631
- url: string;
1632
- }, {
1633
- type: "page_url";
1634
- url: string;
1635
- }>, z.ZodObject<{
1636
- type: z.ZodLiteral<"route">;
1637
- routeId: z.ZodString;
1638
- }, "strip", z.ZodTypeAny, {
1639
- type: "route";
1640
- routeId: string;
1641
- }, {
1642
- type: "route";
1643
- routeId: string;
1644
- }>, z.ZodObject<{
1645
- type: z.ZodLiteral<"anchor_visible">;
1646
- anchorId: z.ZodString;
1647
- state: z.ZodEnum<["visible", "present", "absent"]>;
1648
- }, "strip", z.ZodTypeAny, {
1649
- type: "anchor_visible";
1650
- anchorId: string;
1651
- state: "visible" | "present" | "absent";
1652
- }, {
1653
- type: "anchor_visible";
1654
- anchorId: string;
1655
- state: "visible" | "present" | "absent";
1656
- }>, z.ZodObject<{
1657
- type: z.ZodLiteral<"event_occurred">;
1658
- eventName: z.ZodString;
1659
- withinMs: z.ZodOptional<z.ZodNumber>;
1660
- }, "strip", z.ZodTypeAny, {
1661
- type: "event_occurred";
1662
- eventName: string;
1663
- withinMs?: number | undefined;
1664
- }, {
1665
- type: "event_occurred";
1666
- eventName: string;
1667
- withinMs?: number | undefined;
1668
- }>, z.ZodObject<{
1669
- type: z.ZodLiteral<"state_equals">;
1670
- key: z.ZodString;
1671
- value: z.ZodUnknown;
1672
- }, "strip", z.ZodTypeAny, {
1673
- type: "state_equals";
1674
- key: string;
1675
- value?: unknown;
1676
- }, {
1677
- type: "state_equals";
1678
- key: string;
1679
- value?: unknown;
1680
- }>, z.ZodObject<{
1681
- type: z.ZodLiteral<"viewport">;
1682
- minWidth: z.ZodOptional<z.ZodNumber>;
1683
- maxWidth: z.ZodOptional<z.ZodNumber>;
1684
- minHeight: z.ZodOptional<z.ZodNumber>;
1685
- maxHeight: z.ZodOptional<z.ZodNumber>;
1686
- }, "strip", z.ZodTypeAny, {
1687
- type: "viewport";
1688
- minWidth?: number | undefined;
1689
- maxWidth?: number | undefined;
1690
- minHeight?: number | undefined;
1691
- maxHeight?: number | undefined;
1692
- }, {
1693
- type: "viewport";
1694
- minWidth?: number | undefined;
1695
- maxWidth?: number | undefined;
1696
- minHeight?: number | undefined;
1697
- maxHeight?: number | undefined;
1698
- }>, z.ZodObject<{
1699
- type: z.ZodLiteral<"session_metric">;
1700
- key: z.ZodString;
1701
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
1702
- threshold: z.ZodNumber;
1703
- }, "strip", z.ZodTypeAny, {
1704
- type: "session_metric";
1705
- key: string;
1706
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1707
- threshold: number;
1708
- }, {
1709
- type: "session_metric";
1710
- key: string;
1711
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1712
- threshold: number;
1713
- }>, z.ZodObject<{
1714
- type: z.ZodLiteral<"dismissed">;
1715
- key: z.ZodString;
1716
- inverted: z.ZodOptional<z.ZodBoolean>;
1717
- }, "strip", z.ZodTypeAny, {
1718
- type: "dismissed";
1719
- key: string;
1720
- inverted?: boolean | undefined;
1721
- }, {
1722
- type: "dismissed";
1723
- key: string;
1724
- inverted?: boolean | undefined;
1725
- }>, z.ZodObject<{
1726
- type: z.ZodLiteral<"cooldown_active">;
1727
- key: z.ZodString;
1728
- inverted: z.ZodOptional<z.ZodBoolean>;
1729
- }, "strip", z.ZodTypeAny, {
1730
- type: "cooldown_active";
1731
- key: string;
1732
- inverted?: boolean | undefined;
1733
- }, {
1734
- type: "cooldown_active";
1735
- key: string;
1736
- inverted?: boolean | undefined;
1737
- }>, z.ZodObject<{
1738
- type: z.ZodLiteral<"frequency_limit">;
1739
- key: z.ZodString;
1740
- limit: z.ZodNumber;
1741
- inverted: z.ZodOptional<z.ZodBoolean>;
1742
- }, "strip", z.ZodTypeAny, {
1743
- type: "frequency_limit";
1744
- key: string;
1745
- limit: number;
1746
- inverted?: boolean | undefined;
1747
- }, {
1748
- type: "frequency_limit";
1749
- key: string;
1750
- limit: number;
1751
- inverted?: boolean | undefined;
1752
- }>, z.ZodObject<{
1753
- type: z.ZodLiteral<"event_count">;
1754
- key: z.ZodString;
1755
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
1756
- count: z.ZodNumber;
1757
- withinMs: z.ZodOptional<z.ZodNumber>;
1758
- counter: z.ZodOptional<z.ZodObject<{
1759
- events: z.ZodArray<z.ZodString, "many">;
1760
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1761
- equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1762
- contains: z.ZodOptional<z.ZodString>;
1763
- }, "strip", z.ZodTypeAny, {
1764
- equals?: string | number | boolean | undefined;
1765
- contains?: string | undefined;
1766
- }, {
1767
- equals?: string | number | boolean | undefined;
1768
- contains?: string | undefined;
1769
- }>>>;
1770
- }, "strip", z.ZodTypeAny, {
1771
- events: string[];
1772
- match?: Record<string, {
1773
- equals?: string | number | boolean | undefined;
1774
- contains?: string | undefined;
1775
- }> | undefined;
1776
- }, {
1777
- events: string[];
1778
- match?: Record<string, {
1779
- equals?: string | number | boolean | undefined;
1780
- contains?: string | undefined;
1781
- }> | undefined;
1782
- }>>;
1783
- }, "strip", z.ZodTypeAny, {
1784
- type: "event_count";
1785
- key: string;
1786
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1787
- count: number;
1788
- withinMs?: number | undefined;
1789
- counter?: {
1790
- events: string[];
1791
- match?: Record<string, {
1792
- equals?: string | number | boolean | undefined;
1793
- contains?: string | undefined;
1794
- }> | undefined;
1795
- } | undefined;
1796
- }, {
1797
- type: "event_count";
1798
- key: string;
1799
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1800
- count: number;
1801
- withinMs?: number | undefined;
1802
- counter?: {
1803
- events: string[];
1804
- match?: Record<string, {
1805
- equals?: string | number | boolean | undefined;
1806
- contains?: string | undefined;
1807
- }> | undefined;
1808
- } | undefined;
1809
- }>]>, "many">;
1810
- value: z.ZodUnknown;
1811
- }, "strip", z.ZodTypeAny, {
1812
- conditions: ({
1813
- type: "page_url";
1814
- url: string;
1815
- } | {
1816
- type: "route";
1817
- routeId: string;
1818
- } | {
1819
- type: "anchor_visible";
1820
- anchorId: string;
1821
- state: "visible" | "present" | "absent";
1822
- } | {
1823
- type: "event_occurred";
1824
- eventName: string;
1825
- withinMs?: number | undefined;
1826
- } | {
1827
- type: "state_equals";
1828
- key: string;
1829
- value?: unknown;
1830
- } | {
1831
- type: "viewport";
1832
- minWidth?: number | undefined;
1833
- maxWidth?: number | undefined;
1834
- minHeight?: number | undefined;
1835
- maxHeight?: number | undefined;
1836
- } | {
1837
- type: "session_metric";
1838
- key: string;
1839
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1840
- threshold: number;
1841
- } | {
1842
- type: "dismissed";
1843
- key: string;
1844
- inverted?: boolean | undefined;
1845
- } | {
1846
- type: "cooldown_active";
1847
- key: string;
1848
- inverted?: boolean | undefined;
1849
- } | {
1850
- type: "frequency_limit";
1851
- key: string;
1852
- limit: number;
1853
- inverted?: boolean | undefined;
1854
- } | {
1855
- type: "event_count";
1856
- key: string;
1857
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1858
- count: number;
1859
- withinMs?: number | undefined;
1860
- counter?: {
1861
- events: string[];
1862
- match?: Record<string, {
1863
- equals?: string | number | boolean | undefined;
1864
- contains?: string | undefined;
1865
- }> | undefined;
1866
- } | undefined;
1867
- })[];
1868
- value?: unknown;
1869
- }, {
1870
- conditions: ({
1871
- type: "page_url";
1872
- url: string;
1873
- } | {
1874
- type: "route";
1875
- routeId: string;
1876
- } | {
1877
- type: "anchor_visible";
1878
- anchorId: string;
1879
- state: "visible" | "present" | "absent";
1880
- } | {
1881
- type: "event_occurred";
1882
- eventName: string;
1883
- withinMs?: number | undefined;
1884
- } | {
1885
- type: "state_equals";
1886
- key: string;
1887
- value?: unknown;
1888
- } | {
1889
- type: "viewport";
1890
- minWidth?: number | undefined;
1891
- maxWidth?: number | undefined;
1892
- minHeight?: number | undefined;
1893
- maxHeight?: number | undefined;
1894
- } | {
1895
- type: "session_metric";
1896
- key: string;
1897
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1898
- threshold: number;
1899
- } | {
1900
- type: "dismissed";
1901
- key: string;
1902
- inverted?: boolean | undefined;
1903
- } | {
1904
- type: "cooldown_active";
1905
- key: string;
1906
- inverted?: boolean | undefined;
1907
- } | {
1908
- type: "frequency_limit";
1909
- key: string;
1910
- limit: number;
1911
- inverted?: boolean | undefined;
1912
- } | {
1913
- type: "event_count";
1914
- key: string;
1915
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1916
- count: number;
1917
- withinMs?: number | undefined;
1918
- counter?: {
1919
- events: string[];
1920
- match?: Record<string, {
1921
- equals?: string | number | boolean | undefined;
1922
- contains?: string | undefined;
1923
- }> | undefined;
1924
- } | undefined;
1925
- })[];
1926
- value?: unknown;
1927
- }>, "many">;
1928
- default: z.ZodUnknown;
1929
- }, "strip", z.ZodTypeAny, {
1930
- type: "rules";
1931
- rules: {
1932
- conditions: ({
1933
- type: "page_url";
1934
- url: string;
1935
- } | {
1936
- type: "route";
1937
- routeId: string;
1938
- } | {
1939
- type: "anchor_visible";
1940
- anchorId: string;
1941
- state: "visible" | "present" | "absent";
1942
- } | {
1943
- type: "event_occurred";
1944
- eventName: string;
1945
- withinMs?: number | undefined;
1946
- } | {
1947
- type: "state_equals";
1948
- key: string;
1949
- value?: unknown;
1950
- } | {
1951
- type: "viewport";
1952
- minWidth?: number | undefined;
1953
- maxWidth?: number | undefined;
1954
- minHeight?: number | undefined;
1955
- maxHeight?: number | undefined;
1956
- } | {
1957
- type: "session_metric";
1958
- key: string;
1959
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1960
- threshold: number;
1961
- } | {
1962
- type: "dismissed";
1963
- key: string;
1964
- inverted?: boolean | undefined;
1965
- } | {
1966
- type: "cooldown_active";
1967
- key: string;
1968
- inverted?: boolean | undefined;
1969
- } | {
1970
- type: "frequency_limit";
1971
- key: string;
1972
- limit: number;
1973
- inverted?: boolean | undefined;
1974
- } | {
1975
- type: "event_count";
1976
- key: string;
1977
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
1978
- count: number;
1979
- withinMs?: number | undefined;
1980
- counter?: {
1981
- events: string[];
1982
- match?: Record<string, {
1983
- equals?: string | number | boolean | undefined;
1984
- contains?: string | undefined;
1985
- }> | undefined;
1986
- } | undefined;
1987
- })[];
1988
- value?: unknown;
1989
- }[];
1990
- default?: unknown;
1991
- }, {
1992
- type: "rules";
1993
- rules: {
1994
- conditions: ({
1995
- type: "page_url";
1996
- url: string;
1997
- } | {
1998
- type: "route";
1999
- routeId: string;
2000
- } | {
2001
- type: "anchor_visible";
2002
- anchorId: string;
2003
- state: "visible" | "present" | "absent";
2004
- } | {
2005
- type: "event_occurred";
2006
- eventName: string;
2007
- withinMs?: number | undefined;
2008
- } | {
2009
- type: "state_equals";
2010
- key: string;
2011
- value?: unknown;
2012
- } | {
2013
- type: "viewport";
2014
- minWidth?: number | undefined;
2015
- maxWidth?: number | undefined;
2016
- minHeight?: number | undefined;
2017
- maxHeight?: number | undefined;
2018
- } | {
2019
- type: "session_metric";
2020
- key: string;
2021
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2022
- threshold: number;
2023
- } | {
2024
- type: "dismissed";
2025
- key: string;
2026
- inverted?: boolean | undefined;
2027
- } | {
2028
- type: "cooldown_active";
2029
- key: string;
2030
- inverted?: boolean | undefined;
2031
- } | {
2032
- type: "frequency_limit";
2033
- key: string;
2034
- limit: number;
2035
- inverted?: boolean | undefined;
2036
- } | {
2037
- type: "event_count";
2038
- key: string;
2039
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2040
- count: number;
2041
- withinMs?: number | undefined;
2042
- counter?: {
2043
- events: string[];
2044
- match?: Record<string, {
2045
- equals?: string | number | boolean | undefined;
2046
- contains?: string | undefined;
2047
- }> | undefined;
2048
- } | undefined;
2049
- })[];
2050
- value?: unknown;
2051
- }[];
2052
- default?: unknown;
2053
- }>, z.ZodObject<{
2054
- type: z.ZodLiteral<"score">;
2055
- field: z.ZodString;
2056
- threshold: z.ZodNumber;
2057
- above: z.ZodUnknown;
2058
- below: z.ZodUnknown;
2059
- }, "strip", z.ZodTypeAny, {
2060
- type: "score";
2061
- threshold: number;
2062
- field: string;
2063
- above?: unknown;
2064
- below?: unknown;
2065
- }, {
2066
- type: "score";
2067
- threshold: number;
2068
- field: string;
2069
- above?: unknown;
2070
- below?: unknown;
2071
- }>, z.ZodObject<{
2072
- type: z.ZodLiteral<"model">;
2073
- modelId: z.ZodString;
2074
- inputs: z.ZodArray<z.ZodString, "many">;
2075
- outputMapping: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2076
- default: z.ZodUnknown;
2077
- }, "strip", z.ZodTypeAny, {
2078
- type: "model";
2079
- modelId: string;
2080
- inputs: string[];
2081
- outputMapping: Record<string, unknown>;
2082
- default?: unknown;
2083
- }, {
2084
- type: "model";
2085
- modelId: string;
2086
- inputs: string[];
2087
- outputMapping: Record<string, unknown>;
2088
- default?: unknown;
2089
- }>, z.ZodObject<{
2090
- type: z.ZodLiteral<"external">;
2091
- endpoint: z.ZodString;
2092
- method: z.ZodOptional<z.ZodEnum<["GET", "POST"]>>;
2093
- default: z.ZodUnknown;
2094
- timeoutMs: z.ZodOptional<z.ZodNumber>;
2095
- }, "strip", z.ZodTypeAny, {
2096
- type: "external";
2097
- endpoint: string;
2098
- default?: unknown;
2099
- method?: "GET" | "POST" | undefined;
2100
- timeoutMs?: number | undefined;
2101
- }, {
2102
- type: "external";
2103
- endpoint: string;
2104
- default?: unknown;
2105
- method?: "GET" | "POST" | undefined;
2106
- timeoutMs?: number | undefined;
2107
- }>]>>;
843
+ onlyIfPopulated: z.ZodOptional<z.ZodBoolean>;
2108
844
  }, "strip", z.ZodTypeAny, {
2109
845
  routes: {
2110
846
  include?: string[] | undefined;
2111
847
  exclude?: string[] | undefined;
2112
848
  };
2113
- strategy?: {
2114
- type: "rules";
2115
- rules: {
2116
- conditions: ({
2117
- type: "page_url";
2118
- url: string;
2119
- } | {
2120
- type: "route";
2121
- routeId: string;
2122
- } | {
2123
- type: "anchor_visible";
2124
- anchorId: string;
2125
- state: "visible" | "present" | "absent";
2126
- } | {
2127
- type: "event_occurred";
2128
- eventName: string;
2129
- withinMs?: number | undefined;
2130
- } | {
2131
- type: "state_equals";
2132
- key: string;
2133
- value?: unknown;
2134
- } | {
2135
- type: "viewport";
2136
- minWidth?: number | undefined;
2137
- maxWidth?: number | undefined;
2138
- minHeight?: number | undefined;
2139
- maxHeight?: number | undefined;
2140
- } | {
2141
- type: "session_metric";
2142
- key: string;
2143
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2144
- threshold: number;
2145
- } | {
2146
- type: "dismissed";
2147
- key: string;
2148
- inverted?: boolean | undefined;
2149
- } | {
2150
- type: "cooldown_active";
2151
- key: string;
2152
- inverted?: boolean | undefined;
2153
- } | {
2154
- type: "frequency_limit";
2155
- key: string;
2156
- limit: number;
2157
- inverted?: boolean | undefined;
2158
- } | {
2159
- type: "event_count";
2160
- key: string;
2161
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2162
- count: number;
2163
- withinMs?: number | undefined;
2164
- counter?: {
2165
- events: string[];
2166
- match?: Record<string, {
2167
- equals?: string | number | boolean | undefined;
2168
- contains?: string | undefined;
2169
- }> | undefined;
2170
- } | undefined;
2171
- })[];
2172
- value?: unknown;
2173
- }[];
2174
- default?: unknown;
2175
- } | {
2176
- type: "score";
2177
- threshold: number;
2178
- field: string;
2179
- above?: unknown;
2180
- below?: unknown;
2181
- } | {
2182
- type: "model";
2183
- modelId: string;
2184
- inputs: string[];
2185
- outputMapping: Record<string, unknown>;
2186
- default?: unknown;
2187
- } | {
2188
- type: "external";
2189
- endpoint: string;
2190
- default?: unknown;
2191
- method?: "GET" | "POST" | undefined;
2192
- timeoutMs?: number | undefined;
2193
- } | undefined;
849
+ onlyIfPopulated?: boolean | undefined;
2194
850
  }, {
2195
851
  routes: {
2196
852
  include?: string[] | undefined;
2197
853
  exclude?: string[] | undefined;
2198
854
  };
2199
- strategy?: {
2200
- type: "rules";
2201
- rules: {
2202
- conditions: ({
2203
- type: "page_url";
2204
- url: string;
2205
- } | {
2206
- type: "route";
2207
- routeId: string;
2208
- } | {
2209
- type: "anchor_visible";
2210
- anchorId: string;
2211
- state: "visible" | "present" | "absent";
2212
- } | {
2213
- type: "event_occurred";
2214
- eventName: string;
2215
- withinMs?: number | undefined;
2216
- } | {
2217
- type: "state_equals";
2218
- key: string;
2219
- value?: unknown;
2220
- } | {
2221
- type: "viewport";
2222
- minWidth?: number | undefined;
2223
- maxWidth?: number | undefined;
2224
- minHeight?: number | undefined;
2225
- maxHeight?: number | undefined;
2226
- } | {
2227
- type: "session_metric";
2228
- key: string;
2229
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2230
- threshold: number;
2231
- } | {
2232
- type: "dismissed";
2233
- key: string;
2234
- inverted?: boolean | undefined;
2235
- } | {
2236
- type: "cooldown_active";
2237
- key: string;
2238
- inverted?: boolean | undefined;
2239
- } | {
2240
- type: "frequency_limit";
2241
- key: string;
2242
- limit: number;
2243
- inverted?: boolean | undefined;
2244
- } | {
2245
- type: "event_count";
2246
- key: string;
2247
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2248
- count: number;
2249
- withinMs?: number | undefined;
2250
- counter?: {
2251
- events: string[];
2252
- match?: Record<string, {
2253
- equals?: string | number | boolean | undefined;
2254
- contains?: string | undefined;
2255
- }> | undefined;
2256
- } | undefined;
2257
- })[];
2258
- value?: unknown;
2259
- }[];
2260
- default?: unknown;
2261
- } | {
2262
- type: "score";
2263
- threshold: number;
2264
- field: string;
2265
- above?: unknown;
2266
- below?: unknown;
2267
- } | {
2268
- type: "model";
2269
- modelId: string;
2270
- inputs: string[];
2271
- outputMapping: Record<string, unknown>;
2272
- default?: unknown;
2273
- } | {
2274
- type: "external";
2275
- endpoint: string;
2276
- default?: unknown;
2277
- method?: "GET" | "POST" | undefined;
2278
- timeoutMs?: number | undefined;
2279
- } | undefined;
855
+ onlyIfPopulated?: boolean | undefined;
2280
856
  }>>;
2281
857
  notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
2282
858
  on: z.ZodString;
@@ -2331,87 +907,7 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2331
907
  include?: string[] | undefined;
2332
908
  exclude?: string[] | undefined;
2333
909
  };
2334
- strategy?: {
2335
- type: "rules";
2336
- rules: {
2337
- conditions: ({
2338
- type: "page_url";
2339
- url: string;
2340
- } | {
2341
- type: "route";
2342
- routeId: string;
2343
- } | {
2344
- type: "anchor_visible";
2345
- anchorId: string;
2346
- state: "visible" | "present" | "absent";
2347
- } | {
2348
- type: "event_occurred";
2349
- eventName: string;
2350
- withinMs?: number | undefined;
2351
- } | {
2352
- type: "state_equals";
2353
- key: string;
2354
- value?: unknown;
2355
- } | {
2356
- type: "viewport";
2357
- minWidth?: number | undefined;
2358
- maxWidth?: number | undefined;
2359
- minHeight?: number | undefined;
2360
- maxHeight?: number | undefined;
2361
- } | {
2362
- type: "session_metric";
2363
- key: string;
2364
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2365
- threshold: number;
2366
- } | {
2367
- type: "dismissed";
2368
- key: string;
2369
- inverted?: boolean | undefined;
2370
- } | {
2371
- type: "cooldown_active";
2372
- key: string;
2373
- inverted?: boolean | undefined;
2374
- } | {
2375
- type: "frequency_limit";
2376
- key: string;
2377
- limit: number;
2378
- inverted?: boolean | undefined;
2379
- } | {
2380
- type: "event_count";
2381
- key: string;
2382
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2383
- count: number;
2384
- withinMs?: number | undefined;
2385
- counter?: {
2386
- events: string[];
2387
- match?: Record<string, {
2388
- equals?: string | number | boolean | undefined;
2389
- contains?: string | undefined;
2390
- }> | undefined;
2391
- } | undefined;
2392
- })[];
2393
- value?: unknown;
2394
- }[];
2395
- default?: unknown;
2396
- } | {
2397
- type: "score";
2398
- threshold: number;
2399
- field: string;
2400
- above?: unknown;
2401
- below?: unknown;
2402
- } | {
2403
- type: "model";
2404
- modelId: string;
2405
- inputs: string[];
2406
- outputMapping: Record<string, unknown>;
2407
- default?: unknown;
2408
- } | {
2409
- type: "external";
2410
- endpoint: string;
2411
- default?: unknown;
2412
- method?: "GET" | "POST" | undefined;
2413
- timeoutMs?: number | undefined;
2414
- } | undefined;
910
+ onlyIfPopulated?: boolean | undefined;
2415
911
  } | undefined;
2416
912
  notifications?: {
2417
913
  on: string;
@@ -2438,87 +934,7 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2438
934
  include?: string[] | undefined;
2439
935
  exclude?: string[] | undefined;
2440
936
  };
2441
- strategy?: {
2442
- type: "rules";
2443
- rules: {
2444
- conditions: ({
2445
- type: "page_url";
2446
- url: string;
2447
- } | {
2448
- type: "route";
2449
- routeId: string;
2450
- } | {
2451
- type: "anchor_visible";
2452
- anchorId: string;
2453
- state: "visible" | "present" | "absent";
2454
- } | {
2455
- type: "event_occurred";
2456
- eventName: string;
2457
- withinMs?: number | undefined;
2458
- } | {
2459
- type: "state_equals";
2460
- key: string;
2461
- value?: unknown;
2462
- } | {
2463
- type: "viewport";
2464
- minWidth?: number | undefined;
2465
- maxWidth?: number | undefined;
2466
- minHeight?: number | undefined;
2467
- maxHeight?: number | undefined;
2468
- } | {
2469
- type: "session_metric";
2470
- key: string;
2471
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2472
- threshold: number;
2473
- } | {
2474
- type: "dismissed";
2475
- key: string;
2476
- inverted?: boolean | undefined;
2477
- } | {
2478
- type: "cooldown_active";
2479
- key: string;
2480
- inverted?: boolean | undefined;
2481
- } | {
2482
- type: "frequency_limit";
2483
- key: string;
2484
- limit: number;
2485
- inverted?: boolean | undefined;
2486
- } | {
2487
- type: "event_count";
2488
- key: string;
2489
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2490
- count: number;
2491
- withinMs?: number | undefined;
2492
- counter?: {
2493
- events: string[];
2494
- match?: Record<string, {
2495
- equals?: string | number | boolean | undefined;
2496
- contains?: string | undefined;
2497
- }> | undefined;
2498
- } | undefined;
2499
- })[];
2500
- value?: unknown;
2501
- }[];
2502
- default?: unknown;
2503
- } | {
2504
- type: "score";
2505
- threshold: number;
2506
- field: string;
2507
- above?: unknown;
2508
- below?: unknown;
2509
- } | {
2510
- type: "model";
2511
- modelId: string;
2512
- inputs: string[];
2513
- outputMapping: Record<string, unknown>;
2514
- default?: unknown;
2515
- } | {
2516
- type: "external";
2517
- endpoint: string;
2518
- default?: unknown;
2519
- method?: "GET" | "POST" | undefined;
2520
- timeoutMs?: number | undefined;
2521
- } | undefined;
937
+ onlyIfPopulated?: boolean | undefined;
2522
938
  } | undefined;
2523
939
  notifications?: {
2524
940
  on: string;
@@ -2547,6 +963,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2547
963
  blur: z.ZodOptional<z.ZodString>;
2548
964
  border: z.ZodOptional<z.ZodString>;
2549
965
  width: z.ZodOptional<z.ZodString>;
966
+ transitionDuration: z.ZodOptional<z.ZodString>;
967
+ transitionEasing: z.ZodOptional<z.ZodString>;
968
+ transitionFade: z.ZodOptional<z.ZodString>;
2550
969
  }, "strip", z.ZodTypeAny, {
2551
970
  position?: "right" | "left" | undefined;
2552
971
  layout?: "push" | "overlay" | undefined;
@@ -2554,6 +973,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2554
973
  blur?: string | undefined;
2555
974
  border?: string | undefined;
2556
975
  width?: string | undefined;
976
+ transitionDuration?: string | undefined;
977
+ transitionEasing?: string | undefined;
978
+ transitionFade?: string | undefined;
2557
979
  }, {
2558
980
  position?: "right" | "left" | undefined;
2559
981
  layout?: "push" | "overlay" | undefined;
@@ -2561,6 +983,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2561
983
  blur?: string | undefined;
2562
984
  border?: string | undefined;
2563
985
  width?: string | undefined;
986
+ transitionDuration?: string | undefined;
987
+ transitionEasing?: string | undefined;
988
+ transitionFade?: string | undefined;
2564
989
  }>>;
2565
990
  launcher: z.ZodOptional<z.ZodObject<{
2566
991
  background: z.ZodOptional<z.ZodString>;
@@ -2791,6 +1216,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2791
1216
  blur?: string | undefined;
2792
1217
  border?: string | undefined;
2793
1218
  width?: string | undefined;
1219
+ transitionDuration?: string | undefined;
1220
+ transitionEasing?: string | undefined;
1221
+ transitionFade?: string | undefined;
2794
1222
  } | undefined;
2795
1223
  launcher?: {
2796
1224
  size?: string | undefined;
@@ -2870,6 +1298,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2870
1298
  blur?: string | undefined;
2871
1299
  border?: string | undefined;
2872
1300
  width?: string | undefined;
1301
+ transitionDuration?: string | undefined;
1302
+ transitionEasing?: string | undefined;
1303
+ transitionFade?: string | undefined;
2873
1304
  } | undefined;
2874
1305
  launcher?: {
2875
1306
  size?: string | undefined;
@@ -2948,87 +1379,7 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
2948
1379
  include?: string[] | undefined;
2949
1380
  exclude?: string[] | undefined;
2950
1381
  };
2951
- strategy?: {
2952
- type: "rules";
2953
- rules: {
2954
- conditions: ({
2955
- type: "page_url";
2956
- url: string;
2957
- } | {
2958
- type: "route";
2959
- routeId: string;
2960
- } | {
2961
- type: "anchor_visible";
2962
- anchorId: string;
2963
- state: "visible" | "present" | "absent";
2964
- } | {
2965
- type: "event_occurred";
2966
- eventName: string;
2967
- withinMs?: number | undefined;
2968
- } | {
2969
- type: "state_equals";
2970
- key: string;
2971
- value?: unknown;
2972
- } | {
2973
- type: "viewport";
2974
- minWidth?: number | undefined;
2975
- maxWidth?: number | undefined;
2976
- minHeight?: number | undefined;
2977
- maxHeight?: number | undefined;
2978
- } | {
2979
- type: "session_metric";
2980
- key: string;
2981
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
2982
- threshold: number;
2983
- } | {
2984
- type: "dismissed";
2985
- key: string;
2986
- inverted?: boolean | undefined;
2987
- } | {
2988
- type: "cooldown_active";
2989
- key: string;
2990
- inverted?: boolean | undefined;
2991
- } | {
2992
- type: "frequency_limit";
2993
- key: string;
2994
- limit: number;
2995
- inverted?: boolean | undefined;
2996
- } | {
2997
- type: "event_count";
2998
- key: string;
2999
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3000
- count: number;
3001
- withinMs?: number | undefined;
3002
- counter?: {
3003
- events: string[];
3004
- match?: Record<string, {
3005
- equals?: string | number | boolean | undefined;
3006
- contains?: string | undefined;
3007
- }> | undefined;
3008
- } | undefined;
3009
- })[];
3010
- value?: unknown;
3011
- }[];
3012
- default?: unknown;
3013
- } | {
3014
- type: "score";
3015
- threshold: number;
3016
- field: string;
3017
- above?: unknown;
3018
- below?: unknown;
3019
- } | {
3020
- type: "model";
3021
- modelId: string;
3022
- inputs: string[];
3023
- outputMapping: Record<string, unknown>;
3024
- default?: unknown;
3025
- } | {
3026
- type: "external";
3027
- endpoint: string;
3028
- default?: unknown;
3029
- method?: "GET" | "POST" | undefined;
3030
- timeoutMs?: number | undefined;
3031
- } | undefined;
1382
+ onlyIfPopulated?: boolean | undefined;
3032
1383
  } | undefined;
3033
1384
  notifications?: {
3034
1385
  on: string;
@@ -3099,6 +1450,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
3099
1450
  blur?: string | undefined;
3100
1451
  border?: string | undefined;
3101
1452
  width?: string | undefined;
1453
+ transitionDuration?: string | undefined;
1454
+ transitionEasing?: string | undefined;
1455
+ transitionFade?: string | undefined;
3102
1456
  } | undefined;
3103
1457
  launcher?: {
3104
1458
  size?: string | undefined;
@@ -3152,87 +1506,7 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
3152
1506
  include?: string[] | undefined;
3153
1507
  exclude?: string[] | undefined;
3154
1508
  };
3155
- strategy?: {
3156
- type: "rules";
3157
- rules: {
3158
- conditions: ({
3159
- type: "page_url";
3160
- url: string;
3161
- } | {
3162
- type: "route";
3163
- routeId: string;
3164
- } | {
3165
- type: "anchor_visible";
3166
- anchorId: string;
3167
- state: "visible" | "present" | "absent";
3168
- } | {
3169
- type: "event_occurred";
3170
- eventName: string;
3171
- withinMs?: number | undefined;
3172
- } | {
3173
- type: "state_equals";
3174
- key: string;
3175
- value?: unknown;
3176
- } | {
3177
- type: "viewport";
3178
- minWidth?: number | undefined;
3179
- maxWidth?: number | undefined;
3180
- minHeight?: number | undefined;
3181
- maxHeight?: number | undefined;
3182
- } | {
3183
- type: "session_metric";
3184
- key: string;
3185
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3186
- threshold: number;
3187
- } | {
3188
- type: "dismissed";
3189
- key: string;
3190
- inverted?: boolean | undefined;
3191
- } | {
3192
- type: "cooldown_active";
3193
- key: string;
3194
- inverted?: boolean | undefined;
3195
- } | {
3196
- type: "frequency_limit";
3197
- key: string;
3198
- limit: number;
3199
- inverted?: boolean | undefined;
3200
- } | {
3201
- type: "event_count";
3202
- key: string;
3203
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3204
- count: number;
3205
- withinMs?: number | undefined;
3206
- counter?: {
3207
- events: string[];
3208
- match?: Record<string, {
3209
- equals?: string | number | boolean | undefined;
3210
- contains?: string | undefined;
3211
- }> | undefined;
3212
- } | undefined;
3213
- })[];
3214
- value?: unknown;
3215
- }[];
3216
- default?: unknown;
3217
- } | {
3218
- type: "score";
3219
- threshold: number;
3220
- field: string;
3221
- above?: unknown;
3222
- below?: unknown;
3223
- } | {
3224
- type: "model";
3225
- modelId: string;
3226
- inputs: string[];
3227
- outputMapping: Record<string, unknown>;
3228
- default?: unknown;
3229
- } | {
3230
- type: "external";
3231
- endpoint: string;
3232
- default?: unknown;
3233
- method?: "GET" | "POST" | undefined;
3234
- timeoutMs?: number | undefined;
3235
- } | undefined;
1509
+ onlyIfPopulated?: boolean | undefined;
3236
1510
  } | undefined;
3237
1511
  notifications?: {
3238
1512
  on: string;
@@ -3303,6 +1577,9 @@ export declare const CanvasConfigResponseZ: z.ZodObject<{
3303
1577
  blur?: string | undefined;
3304
1578
  border?: string | undefined;
3305
1579
  width?: string | undefined;
1580
+ transitionDuration?: string | undefined;
1581
+ transitionEasing?: string | undefined;
1582
+ transitionFade?: string | undefined;
3306
1583
  } | undefined;
3307
1584
  launcher?: {
3308
1585
  size?: string | undefined;
@@ -3366,663 +1643,19 @@ export declare const configSchemas: ({
3366
1643
  include?: string[] | undefined;
3367
1644
  exclude?: string[] | undefined;
3368
1645
  }>;
3369
- strategy: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3370
- type: z.ZodLiteral<"rules">;
3371
- rules: z.ZodArray<z.ZodObject<{
3372
- conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3373
- type: z.ZodLiteral<"page_url">;
3374
- url: z.ZodString;
3375
- }, "strip", z.ZodTypeAny, {
3376
- type: "page_url";
3377
- url: string;
3378
- }, {
3379
- type: "page_url";
3380
- url: string;
3381
- }>, z.ZodObject<{
3382
- type: z.ZodLiteral<"route">;
3383
- routeId: z.ZodString;
3384
- }, "strip", z.ZodTypeAny, {
3385
- type: "route";
3386
- routeId: string;
3387
- }, {
3388
- type: "route";
3389
- routeId: string;
3390
- }>, z.ZodObject<{
3391
- type: z.ZodLiteral<"anchor_visible">;
3392
- anchorId: z.ZodString;
3393
- state: z.ZodEnum<["visible", "present", "absent"]>;
3394
- }, "strip", z.ZodTypeAny, {
3395
- type: "anchor_visible";
3396
- anchorId: string;
3397
- state: "visible" | "present" | "absent";
3398
- }, {
3399
- type: "anchor_visible";
3400
- anchorId: string;
3401
- state: "visible" | "present" | "absent";
3402
- }>, z.ZodObject<{
3403
- type: z.ZodLiteral<"event_occurred">;
3404
- eventName: z.ZodString;
3405
- withinMs: z.ZodOptional<z.ZodNumber>;
3406
- }, "strip", z.ZodTypeAny, {
3407
- type: "event_occurred";
3408
- eventName: string;
3409
- withinMs?: number | undefined;
3410
- }, {
3411
- type: "event_occurred";
3412
- eventName: string;
3413
- withinMs?: number | undefined;
3414
- }>, z.ZodObject<{
3415
- type: z.ZodLiteral<"state_equals">;
3416
- key: z.ZodString;
3417
- value: z.ZodUnknown;
3418
- }, "strip", z.ZodTypeAny, {
3419
- type: "state_equals";
3420
- key: string;
3421
- value?: unknown;
3422
- }, {
3423
- type: "state_equals";
3424
- key: string;
3425
- value?: unknown;
3426
- }>, z.ZodObject<{
3427
- type: z.ZodLiteral<"viewport">;
3428
- minWidth: z.ZodOptional<z.ZodNumber>;
3429
- maxWidth: z.ZodOptional<z.ZodNumber>;
3430
- minHeight: z.ZodOptional<z.ZodNumber>;
3431
- maxHeight: z.ZodOptional<z.ZodNumber>;
3432
- }, "strip", z.ZodTypeAny, {
3433
- type: "viewport";
3434
- minWidth?: number | undefined;
3435
- maxWidth?: number | undefined;
3436
- minHeight?: number | undefined;
3437
- maxHeight?: number | undefined;
3438
- }, {
3439
- type: "viewport";
3440
- minWidth?: number | undefined;
3441
- maxWidth?: number | undefined;
3442
- minHeight?: number | undefined;
3443
- maxHeight?: number | undefined;
3444
- }>, z.ZodObject<{
3445
- type: z.ZodLiteral<"session_metric">;
3446
- key: z.ZodString;
3447
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
3448
- threshold: z.ZodNumber;
3449
- }, "strip", z.ZodTypeAny, {
3450
- type: "session_metric";
3451
- key: string;
3452
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3453
- threshold: number;
3454
- }, {
3455
- type: "session_metric";
3456
- key: string;
3457
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3458
- threshold: number;
3459
- }>, z.ZodObject<{
3460
- type: z.ZodLiteral<"dismissed">;
3461
- key: z.ZodString;
3462
- inverted: z.ZodOptional<z.ZodBoolean>;
3463
- }, "strip", z.ZodTypeAny, {
3464
- type: "dismissed";
3465
- key: string;
3466
- inverted?: boolean | undefined;
3467
- }, {
3468
- type: "dismissed";
3469
- key: string;
3470
- inverted?: boolean | undefined;
3471
- }>, z.ZodObject<{
3472
- type: z.ZodLiteral<"cooldown_active">;
3473
- key: z.ZodString;
3474
- inverted: z.ZodOptional<z.ZodBoolean>;
3475
- }, "strip", z.ZodTypeAny, {
3476
- type: "cooldown_active";
3477
- key: string;
3478
- inverted?: boolean | undefined;
3479
- }, {
3480
- type: "cooldown_active";
3481
- key: string;
3482
- inverted?: boolean | undefined;
3483
- }>, z.ZodObject<{
3484
- type: z.ZodLiteral<"frequency_limit">;
3485
- key: z.ZodString;
3486
- limit: z.ZodNumber;
3487
- inverted: z.ZodOptional<z.ZodBoolean>;
3488
- }, "strip", z.ZodTypeAny, {
3489
- type: "frequency_limit";
3490
- key: string;
3491
- limit: number;
3492
- inverted?: boolean | undefined;
3493
- }, {
3494
- type: "frequency_limit";
3495
- key: string;
3496
- limit: number;
3497
- inverted?: boolean | undefined;
3498
- }>, z.ZodObject<{
3499
- type: z.ZodLiteral<"event_count">;
3500
- key: z.ZodString;
3501
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
3502
- count: z.ZodNumber;
3503
- withinMs: z.ZodOptional<z.ZodNumber>;
3504
- counter: z.ZodOptional<z.ZodObject<{
3505
- events: z.ZodArray<z.ZodString, "many">;
3506
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3507
- equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3508
- contains: z.ZodOptional<z.ZodString>;
3509
- }, "strip", z.ZodTypeAny, {
3510
- equals?: string | number | boolean | undefined;
3511
- contains?: string | undefined;
3512
- }, {
3513
- equals?: string | number | boolean | undefined;
3514
- contains?: string | undefined;
3515
- }>>>;
3516
- }, "strip", z.ZodTypeAny, {
3517
- events: string[];
3518
- match?: Record<string, {
3519
- equals?: string | number | boolean | undefined;
3520
- contains?: string | undefined;
3521
- }> | undefined;
3522
- }, {
3523
- events: string[];
3524
- match?: Record<string, {
3525
- equals?: string | number | boolean | undefined;
3526
- contains?: string | undefined;
3527
- }> | undefined;
3528
- }>>;
3529
- }, "strip", z.ZodTypeAny, {
3530
- type: "event_count";
3531
- key: string;
3532
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3533
- count: number;
3534
- withinMs?: number | undefined;
3535
- counter?: {
3536
- events: string[];
3537
- match?: Record<string, {
3538
- equals?: string | number | boolean | undefined;
3539
- contains?: string | undefined;
3540
- }> | undefined;
3541
- } | undefined;
3542
- }, {
3543
- type: "event_count";
3544
- key: string;
3545
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3546
- count: number;
3547
- withinMs?: number | undefined;
3548
- counter?: {
3549
- events: string[];
3550
- match?: Record<string, {
3551
- equals?: string | number | boolean | undefined;
3552
- contains?: string | undefined;
3553
- }> | undefined;
3554
- } | undefined;
3555
- }>]>, "many">;
3556
- value: z.ZodUnknown;
3557
- }, "strip", z.ZodTypeAny, {
3558
- conditions: ({
3559
- type: "page_url";
3560
- url: string;
3561
- } | {
3562
- type: "route";
3563
- routeId: string;
3564
- } | {
3565
- type: "anchor_visible";
3566
- anchorId: string;
3567
- state: "visible" | "present" | "absent";
3568
- } | {
3569
- type: "event_occurred";
3570
- eventName: string;
3571
- withinMs?: number | undefined;
3572
- } | {
3573
- type: "state_equals";
3574
- key: string;
3575
- value?: unknown;
3576
- } | {
3577
- type: "viewport";
3578
- minWidth?: number | undefined;
3579
- maxWidth?: number | undefined;
3580
- minHeight?: number | undefined;
3581
- maxHeight?: number | undefined;
3582
- } | {
3583
- type: "session_metric";
3584
- key: string;
3585
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3586
- threshold: number;
3587
- } | {
3588
- type: "dismissed";
3589
- key: string;
3590
- inverted?: boolean | undefined;
3591
- } | {
3592
- type: "cooldown_active";
3593
- key: string;
3594
- inverted?: boolean | undefined;
3595
- } | {
3596
- type: "frequency_limit";
3597
- key: string;
3598
- limit: number;
3599
- inverted?: boolean | undefined;
3600
- } | {
3601
- type: "event_count";
3602
- key: string;
3603
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3604
- count: number;
3605
- withinMs?: number | undefined;
3606
- counter?: {
3607
- events: string[];
3608
- match?: Record<string, {
3609
- equals?: string | number | boolean | undefined;
3610
- contains?: string | undefined;
3611
- }> | undefined;
3612
- } | undefined;
3613
- })[];
3614
- value?: unknown;
3615
- }, {
3616
- conditions: ({
3617
- type: "page_url";
3618
- url: string;
3619
- } | {
3620
- type: "route";
3621
- routeId: string;
3622
- } | {
3623
- type: "anchor_visible";
3624
- anchorId: string;
3625
- state: "visible" | "present" | "absent";
3626
- } | {
3627
- type: "event_occurred";
3628
- eventName: string;
3629
- withinMs?: number | undefined;
3630
- } | {
3631
- type: "state_equals";
3632
- key: string;
3633
- value?: unknown;
3634
- } | {
3635
- type: "viewport";
3636
- minWidth?: number | undefined;
3637
- maxWidth?: number | undefined;
3638
- minHeight?: number | undefined;
3639
- maxHeight?: number | undefined;
3640
- } | {
3641
- type: "session_metric";
3642
- key: string;
3643
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3644
- threshold: number;
3645
- } | {
3646
- type: "dismissed";
3647
- key: string;
3648
- inverted?: boolean | undefined;
3649
- } | {
3650
- type: "cooldown_active";
3651
- key: string;
3652
- inverted?: boolean | undefined;
3653
- } | {
3654
- type: "frequency_limit";
3655
- key: string;
3656
- limit: number;
3657
- inverted?: boolean | undefined;
3658
- } | {
3659
- type: "event_count";
3660
- key: string;
3661
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3662
- count: number;
3663
- withinMs?: number | undefined;
3664
- counter?: {
3665
- events: string[];
3666
- match?: Record<string, {
3667
- equals?: string | number | boolean | undefined;
3668
- contains?: string | undefined;
3669
- }> | undefined;
3670
- } | undefined;
3671
- })[];
3672
- value?: unknown;
3673
- }>, "many">;
3674
- default: z.ZodUnknown;
3675
- }, "strip", z.ZodTypeAny, {
3676
- type: "rules";
3677
- rules: {
3678
- conditions: ({
3679
- type: "page_url";
3680
- url: string;
3681
- } | {
3682
- type: "route";
3683
- routeId: string;
3684
- } | {
3685
- type: "anchor_visible";
3686
- anchorId: string;
3687
- state: "visible" | "present" | "absent";
3688
- } | {
3689
- type: "event_occurred";
3690
- eventName: string;
3691
- withinMs?: number | undefined;
3692
- } | {
3693
- type: "state_equals";
3694
- key: string;
3695
- value?: unknown;
3696
- } | {
3697
- type: "viewport";
3698
- minWidth?: number | undefined;
3699
- maxWidth?: number | undefined;
3700
- minHeight?: number | undefined;
3701
- maxHeight?: number | undefined;
3702
- } | {
3703
- type: "session_metric";
3704
- key: string;
3705
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3706
- threshold: number;
3707
- } | {
3708
- type: "dismissed";
3709
- key: string;
3710
- inverted?: boolean | undefined;
3711
- } | {
3712
- type: "cooldown_active";
3713
- key: string;
3714
- inverted?: boolean | undefined;
3715
- } | {
3716
- type: "frequency_limit";
3717
- key: string;
3718
- limit: number;
3719
- inverted?: boolean | undefined;
3720
- } | {
3721
- type: "event_count";
3722
- key: string;
3723
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3724
- count: number;
3725
- withinMs?: number | undefined;
3726
- counter?: {
3727
- events: string[];
3728
- match?: Record<string, {
3729
- equals?: string | number | boolean | undefined;
3730
- contains?: string | undefined;
3731
- }> | undefined;
3732
- } | undefined;
3733
- })[];
3734
- value?: unknown;
3735
- }[];
3736
- default?: unknown;
3737
- }, {
3738
- type: "rules";
3739
- rules: {
3740
- conditions: ({
3741
- type: "page_url";
3742
- url: string;
3743
- } | {
3744
- type: "route";
3745
- routeId: string;
3746
- } | {
3747
- type: "anchor_visible";
3748
- anchorId: string;
3749
- state: "visible" | "present" | "absent";
3750
- } | {
3751
- type: "event_occurred";
3752
- eventName: string;
3753
- withinMs?: number | undefined;
3754
- } | {
3755
- type: "state_equals";
3756
- key: string;
3757
- value?: unknown;
3758
- } | {
3759
- type: "viewport";
3760
- minWidth?: number | undefined;
3761
- maxWidth?: number | undefined;
3762
- minHeight?: number | undefined;
3763
- maxHeight?: number | undefined;
3764
- } | {
3765
- type: "session_metric";
3766
- key: string;
3767
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3768
- threshold: number;
3769
- } | {
3770
- type: "dismissed";
3771
- key: string;
3772
- inverted?: boolean | undefined;
3773
- } | {
3774
- type: "cooldown_active";
3775
- key: string;
3776
- inverted?: boolean | undefined;
3777
- } | {
3778
- type: "frequency_limit";
3779
- key: string;
3780
- limit: number;
3781
- inverted?: boolean | undefined;
3782
- } | {
3783
- type: "event_count";
3784
- key: string;
3785
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3786
- count: number;
3787
- withinMs?: number | undefined;
3788
- counter?: {
3789
- events: string[];
3790
- match?: Record<string, {
3791
- equals?: string | number | boolean | undefined;
3792
- contains?: string | undefined;
3793
- }> | undefined;
3794
- } | undefined;
3795
- })[];
3796
- value?: unknown;
3797
- }[];
3798
- default?: unknown;
3799
- }>, z.ZodObject<{
3800
- type: z.ZodLiteral<"score">;
3801
- field: z.ZodString;
3802
- threshold: z.ZodNumber;
3803
- above: z.ZodUnknown;
3804
- below: z.ZodUnknown;
3805
- }, "strip", z.ZodTypeAny, {
3806
- type: "score";
3807
- threshold: number;
3808
- field: string;
3809
- above?: unknown;
3810
- below?: unknown;
3811
- }, {
3812
- type: "score";
3813
- threshold: number;
3814
- field: string;
3815
- above?: unknown;
3816
- below?: unknown;
3817
- }>, z.ZodObject<{
3818
- type: z.ZodLiteral<"model">;
3819
- modelId: z.ZodString;
3820
- inputs: z.ZodArray<z.ZodString, "many">;
3821
- outputMapping: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3822
- default: z.ZodUnknown;
3823
- }, "strip", z.ZodTypeAny, {
3824
- type: "model";
3825
- modelId: string;
3826
- inputs: string[];
3827
- outputMapping: Record<string, unknown>;
3828
- default?: unknown;
3829
- }, {
3830
- type: "model";
3831
- modelId: string;
3832
- inputs: string[];
3833
- outputMapping: Record<string, unknown>;
3834
- default?: unknown;
3835
- }>, z.ZodObject<{
3836
- type: z.ZodLiteral<"external">;
3837
- endpoint: z.ZodString;
3838
- method: z.ZodOptional<z.ZodEnum<["GET", "POST"]>>;
3839
- default: z.ZodUnknown;
3840
- timeoutMs: z.ZodOptional<z.ZodNumber>;
3841
- }, "strip", z.ZodTypeAny, {
3842
- type: "external";
3843
- endpoint: string;
3844
- default?: unknown;
3845
- method?: "GET" | "POST" | undefined;
3846
- timeoutMs?: number | undefined;
3847
- }, {
3848
- type: "external";
3849
- endpoint: string;
3850
- default?: unknown;
3851
- method?: "GET" | "POST" | undefined;
3852
- timeoutMs?: number | undefined;
3853
- }>]>>;
1646
+ onlyIfPopulated: z.ZodOptional<z.ZodBoolean>;
3854
1647
  }, "strip", z.ZodTypeAny, {
3855
1648
  routes: {
3856
1649
  include?: string[] | undefined;
3857
1650
  exclude?: string[] | undefined;
3858
1651
  };
3859
- strategy?: {
3860
- type: "rules";
3861
- rules: {
3862
- conditions: ({
3863
- type: "page_url";
3864
- url: string;
3865
- } | {
3866
- type: "route";
3867
- routeId: string;
3868
- } | {
3869
- type: "anchor_visible";
3870
- anchorId: string;
3871
- state: "visible" | "present" | "absent";
3872
- } | {
3873
- type: "event_occurred";
3874
- eventName: string;
3875
- withinMs?: number | undefined;
3876
- } | {
3877
- type: "state_equals";
3878
- key: string;
3879
- value?: unknown;
3880
- } | {
3881
- type: "viewport";
3882
- minWidth?: number | undefined;
3883
- maxWidth?: number | undefined;
3884
- minHeight?: number | undefined;
3885
- maxHeight?: number | undefined;
3886
- } | {
3887
- type: "session_metric";
3888
- key: string;
3889
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3890
- threshold: number;
3891
- } | {
3892
- type: "dismissed";
3893
- key: string;
3894
- inverted?: boolean | undefined;
3895
- } | {
3896
- type: "cooldown_active";
3897
- key: string;
3898
- inverted?: boolean | undefined;
3899
- } | {
3900
- type: "frequency_limit";
3901
- key: string;
3902
- limit: number;
3903
- inverted?: boolean | undefined;
3904
- } | {
3905
- type: "event_count";
3906
- key: string;
3907
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3908
- count: number;
3909
- withinMs?: number | undefined;
3910
- counter?: {
3911
- events: string[];
3912
- match?: Record<string, {
3913
- equals?: string | number | boolean | undefined;
3914
- contains?: string | undefined;
3915
- }> | undefined;
3916
- } | undefined;
3917
- })[];
3918
- value?: unknown;
3919
- }[];
3920
- default?: unknown;
3921
- } | {
3922
- type: "score";
3923
- threshold: number;
3924
- field: string;
3925
- above?: unknown;
3926
- below?: unknown;
3927
- } | {
3928
- type: "model";
3929
- modelId: string;
3930
- inputs: string[];
3931
- outputMapping: Record<string, unknown>;
3932
- default?: unknown;
3933
- } | {
3934
- type: "external";
3935
- endpoint: string;
3936
- default?: unknown;
3937
- method?: "GET" | "POST" | undefined;
3938
- timeoutMs?: number | undefined;
3939
- } | undefined;
1652
+ onlyIfPopulated?: boolean | undefined;
3940
1653
  }, {
3941
1654
  routes: {
3942
1655
  include?: string[] | undefined;
3943
1656
  exclude?: string[] | undefined;
3944
1657
  };
3945
- strategy?: {
3946
- type: "rules";
3947
- rules: {
3948
- conditions: ({
3949
- type: "page_url";
3950
- url: string;
3951
- } | {
3952
- type: "route";
3953
- routeId: string;
3954
- } | {
3955
- type: "anchor_visible";
3956
- anchorId: string;
3957
- state: "visible" | "present" | "absent";
3958
- } | {
3959
- type: "event_occurred";
3960
- eventName: string;
3961
- withinMs?: number | undefined;
3962
- } | {
3963
- type: "state_equals";
3964
- key: string;
3965
- value?: unknown;
3966
- } | {
3967
- type: "viewport";
3968
- minWidth?: number | undefined;
3969
- maxWidth?: number | undefined;
3970
- minHeight?: number | undefined;
3971
- maxHeight?: number | undefined;
3972
- } | {
3973
- type: "session_metric";
3974
- key: string;
3975
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3976
- threshold: number;
3977
- } | {
3978
- type: "dismissed";
3979
- key: string;
3980
- inverted?: boolean | undefined;
3981
- } | {
3982
- type: "cooldown_active";
3983
- key: string;
3984
- inverted?: boolean | undefined;
3985
- } | {
3986
- type: "frequency_limit";
3987
- key: string;
3988
- limit: number;
3989
- inverted?: boolean | undefined;
3990
- } | {
3991
- type: "event_count";
3992
- key: string;
3993
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
3994
- count: number;
3995
- withinMs?: number | undefined;
3996
- counter?: {
3997
- events: string[];
3998
- match?: Record<string, {
3999
- equals?: string | number | boolean | undefined;
4000
- contains?: string | undefined;
4001
- }> | undefined;
4002
- } | undefined;
4003
- })[];
4004
- value?: unknown;
4005
- }[];
4006
- default?: unknown;
4007
- } | {
4008
- type: "score";
4009
- threshold: number;
4010
- field: string;
4011
- above?: unknown;
4012
- below?: unknown;
4013
- } | {
4014
- type: "model";
4015
- modelId: string;
4016
- inputs: string[];
4017
- outputMapping: Record<string, unknown>;
4018
- default?: unknown;
4019
- } | {
4020
- type: "external";
4021
- endpoint: string;
4022
- default?: unknown;
4023
- method?: "GET" | "POST" | undefined;
4024
- timeoutMs?: number | undefined;
4025
- } | undefined;
1658
+ onlyIfPopulated?: boolean | undefined;
4026
1659
  }>>;
4027
1660
  notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
4028
1661
  on: z.ZodString;
@@ -4077,87 +1710,7 @@ export declare const configSchemas: ({
4077
1710
  include?: string[] | undefined;
4078
1711
  exclude?: string[] | undefined;
4079
1712
  };
4080
- strategy?: {
4081
- type: "rules";
4082
- rules: {
4083
- conditions: ({
4084
- type: "page_url";
4085
- url: string;
4086
- } | {
4087
- type: "route";
4088
- routeId: string;
4089
- } | {
4090
- type: "anchor_visible";
4091
- anchorId: string;
4092
- state: "visible" | "present" | "absent";
4093
- } | {
4094
- type: "event_occurred";
4095
- eventName: string;
4096
- withinMs?: number | undefined;
4097
- } | {
4098
- type: "state_equals";
4099
- key: string;
4100
- value?: unknown;
4101
- } | {
4102
- type: "viewport";
4103
- minWidth?: number | undefined;
4104
- maxWidth?: number | undefined;
4105
- minHeight?: number | undefined;
4106
- maxHeight?: number | undefined;
4107
- } | {
4108
- type: "session_metric";
4109
- key: string;
4110
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4111
- threshold: number;
4112
- } | {
4113
- type: "dismissed";
4114
- key: string;
4115
- inverted?: boolean | undefined;
4116
- } | {
4117
- type: "cooldown_active";
4118
- key: string;
4119
- inverted?: boolean | undefined;
4120
- } | {
4121
- type: "frequency_limit";
4122
- key: string;
4123
- limit: number;
4124
- inverted?: boolean | undefined;
4125
- } | {
4126
- type: "event_count";
4127
- key: string;
4128
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4129
- count: number;
4130
- withinMs?: number | undefined;
4131
- counter?: {
4132
- events: string[];
4133
- match?: Record<string, {
4134
- equals?: string | number | boolean | undefined;
4135
- contains?: string | undefined;
4136
- }> | undefined;
4137
- } | undefined;
4138
- })[];
4139
- value?: unknown;
4140
- }[];
4141
- default?: unknown;
4142
- } | {
4143
- type: "score";
4144
- threshold: number;
4145
- field: string;
4146
- above?: unknown;
4147
- below?: unknown;
4148
- } | {
4149
- type: "model";
4150
- modelId: string;
4151
- inputs: string[];
4152
- outputMapping: Record<string, unknown>;
4153
- default?: unknown;
4154
- } | {
4155
- type: "external";
4156
- endpoint: string;
4157
- default?: unknown;
4158
- method?: "GET" | "POST" | undefined;
4159
- timeoutMs?: number | undefined;
4160
- } | undefined;
1713
+ onlyIfPopulated?: boolean | undefined;
4161
1714
  } | undefined;
4162
1715
  notifications?: {
4163
1716
  on: string;
@@ -4184,87 +1737,7 @@ export declare const configSchemas: ({
4184
1737
  include?: string[] | undefined;
4185
1738
  exclude?: string[] | undefined;
4186
1739
  };
4187
- strategy?: {
4188
- type: "rules";
4189
- rules: {
4190
- conditions: ({
4191
- type: "page_url";
4192
- url: string;
4193
- } | {
4194
- type: "route";
4195
- routeId: string;
4196
- } | {
4197
- type: "anchor_visible";
4198
- anchorId: string;
4199
- state: "visible" | "present" | "absent";
4200
- } | {
4201
- type: "event_occurred";
4202
- eventName: string;
4203
- withinMs?: number | undefined;
4204
- } | {
4205
- type: "state_equals";
4206
- key: string;
4207
- value?: unknown;
4208
- } | {
4209
- type: "viewport";
4210
- minWidth?: number | undefined;
4211
- maxWidth?: number | undefined;
4212
- minHeight?: number | undefined;
4213
- maxHeight?: number | undefined;
4214
- } | {
4215
- type: "session_metric";
4216
- key: string;
4217
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4218
- threshold: number;
4219
- } | {
4220
- type: "dismissed";
4221
- key: string;
4222
- inverted?: boolean | undefined;
4223
- } | {
4224
- type: "cooldown_active";
4225
- key: string;
4226
- inverted?: boolean | undefined;
4227
- } | {
4228
- type: "frequency_limit";
4229
- key: string;
4230
- limit: number;
4231
- inverted?: boolean | undefined;
4232
- } | {
4233
- type: "event_count";
4234
- key: string;
4235
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4236
- count: number;
4237
- withinMs?: number | undefined;
4238
- counter?: {
4239
- events: string[];
4240
- match?: Record<string, {
4241
- equals?: string | number | boolean | undefined;
4242
- contains?: string | undefined;
4243
- }> | undefined;
4244
- } | undefined;
4245
- })[];
4246
- value?: unknown;
4247
- }[];
4248
- default?: unknown;
4249
- } | {
4250
- type: "score";
4251
- threshold: number;
4252
- field: string;
4253
- above?: unknown;
4254
- below?: unknown;
4255
- } | {
4256
- type: "model";
4257
- modelId: string;
4258
- inputs: string[];
4259
- outputMapping: Record<string, unknown>;
4260
- default?: unknown;
4261
- } | {
4262
- type: "external";
4263
- endpoint: string;
4264
- default?: unknown;
4265
- method?: "GET" | "POST" | undefined;
4266
- timeoutMs?: number | undefined;
4267
- } | undefined;
1740
+ onlyIfPopulated?: boolean | undefined;
4268
1741
  } | undefined;
4269
1742
  notifications?: {
4270
1743
  on: string;
@@ -4294,6 +1767,9 @@ export declare const configSchemas: ({
4294
1767
  blur: z.ZodOptional<z.ZodString>;
4295
1768
  border: z.ZodOptional<z.ZodString>;
4296
1769
  width: z.ZodOptional<z.ZodString>;
1770
+ transitionDuration: z.ZodOptional<z.ZodString>;
1771
+ transitionEasing: z.ZodOptional<z.ZodString>;
1772
+ transitionFade: z.ZodOptional<z.ZodString>;
4297
1773
  }, "strip", z.ZodTypeAny, {
4298
1774
  position?: "right" | "left" | undefined;
4299
1775
  layout?: "push" | "overlay" | undefined;
@@ -4301,6 +1777,9 @@ export declare const configSchemas: ({
4301
1777
  blur?: string | undefined;
4302
1778
  border?: string | undefined;
4303
1779
  width?: string | undefined;
1780
+ transitionDuration?: string | undefined;
1781
+ transitionEasing?: string | undefined;
1782
+ transitionFade?: string | undefined;
4304
1783
  }, {
4305
1784
  position?: "right" | "left" | undefined;
4306
1785
  layout?: "push" | "overlay" | undefined;
@@ -4308,6 +1787,9 @@ export declare const configSchemas: ({
4308
1787
  blur?: string | undefined;
4309
1788
  border?: string | undefined;
4310
1789
  width?: string | undefined;
1790
+ transitionDuration?: string | undefined;
1791
+ transitionEasing?: string | undefined;
1792
+ transitionFade?: string | undefined;
4311
1793
  }>>;
4312
1794
  launcher: z.ZodOptional<z.ZodObject<{
4313
1795
  background: z.ZodOptional<z.ZodString>;
@@ -4538,6 +2020,9 @@ export declare const configSchemas: ({
4538
2020
  blur?: string | undefined;
4539
2021
  border?: string | undefined;
4540
2022
  width?: string | undefined;
2023
+ transitionDuration?: string | undefined;
2024
+ transitionEasing?: string | undefined;
2025
+ transitionFade?: string | undefined;
4541
2026
  } | undefined;
4542
2027
  launcher?: {
4543
2028
  size?: string | undefined;
@@ -4617,6 +2102,9 @@ export declare const configSchemas: ({
4617
2102
  blur?: string | undefined;
4618
2103
  border?: string | undefined;
4619
2104
  width?: string | undefined;
2105
+ transitionDuration?: string | undefined;
2106
+ transitionEasing?: string | undefined;
2107
+ transitionFade?: string | undefined;
4620
2108
  } | undefined;
4621
2109
  launcher?: {
4622
2110
  size?: string | undefined;
@@ -4706,663 +2194,19 @@ export declare const configSchemas: ({
4706
2194
  include?: string[] | undefined;
4707
2195
  exclude?: string[] | undefined;
4708
2196
  }>;
4709
- strategy: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4710
- type: z.ZodLiteral<"rules">;
4711
- rules: z.ZodArray<z.ZodObject<{
4712
- conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4713
- type: z.ZodLiteral<"page_url">;
4714
- url: z.ZodString;
4715
- }, "strip", z.ZodTypeAny, {
4716
- type: "page_url";
4717
- url: string;
4718
- }, {
4719
- type: "page_url";
4720
- url: string;
4721
- }>, z.ZodObject<{
4722
- type: z.ZodLiteral<"route">;
4723
- routeId: z.ZodString;
4724
- }, "strip", z.ZodTypeAny, {
4725
- type: "route";
4726
- routeId: string;
4727
- }, {
4728
- type: "route";
4729
- routeId: string;
4730
- }>, z.ZodObject<{
4731
- type: z.ZodLiteral<"anchor_visible">;
4732
- anchorId: z.ZodString;
4733
- state: z.ZodEnum<["visible", "present", "absent"]>;
4734
- }, "strip", z.ZodTypeAny, {
4735
- type: "anchor_visible";
4736
- anchorId: string;
4737
- state: "visible" | "present" | "absent";
4738
- }, {
4739
- type: "anchor_visible";
4740
- anchorId: string;
4741
- state: "visible" | "present" | "absent";
4742
- }>, z.ZodObject<{
4743
- type: z.ZodLiteral<"event_occurred">;
4744
- eventName: z.ZodString;
4745
- withinMs: z.ZodOptional<z.ZodNumber>;
4746
- }, "strip", z.ZodTypeAny, {
4747
- type: "event_occurred";
4748
- eventName: string;
4749
- withinMs?: number | undefined;
4750
- }, {
4751
- type: "event_occurred";
4752
- eventName: string;
4753
- withinMs?: number | undefined;
4754
- }>, z.ZodObject<{
4755
- type: z.ZodLiteral<"state_equals">;
4756
- key: z.ZodString;
4757
- value: z.ZodUnknown;
4758
- }, "strip", z.ZodTypeAny, {
4759
- type: "state_equals";
4760
- key: string;
4761
- value?: unknown;
4762
- }, {
4763
- type: "state_equals";
4764
- key: string;
4765
- value?: unknown;
4766
- }>, z.ZodObject<{
4767
- type: z.ZodLiteral<"viewport">;
4768
- minWidth: z.ZodOptional<z.ZodNumber>;
4769
- maxWidth: z.ZodOptional<z.ZodNumber>;
4770
- minHeight: z.ZodOptional<z.ZodNumber>;
4771
- maxHeight: z.ZodOptional<z.ZodNumber>;
4772
- }, "strip", z.ZodTypeAny, {
4773
- type: "viewport";
4774
- minWidth?: number | undefined;
4775
- maxWidth?: number | undefined;
4776
- minHeight?: number | undefined;
4777
- maxHeight?: number | undefined;
4778
- }, {
4779
- type: "viewport";
4780
- minWidth?: number | undefined;
4781
- maxWidth?: number | undefined;
4782
- minHeight?: number | undefined;
4783
- maxHeight?: number | undefined;
4784
- }>, z.ZodObject<{
4785
- type: z.ZodLiteral<"session_metric">;
4786
- key: z.ZodString;
4787
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
4788
- threshold: z.ZodNumber;
4789
- }, "strip", z.ZodTypeAny, {
4790
- type: "session_metric";
4791
- key: string;
4792
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4793
- threshold: number;
4794
- }, {
4795
- type: "session_metric";
4796
- key: string;
4797
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4798
- threshold: number;
4799
- }>, z.ZodObject<{
4800
- type: z.ZodLiteral<"dismissed">;
4801
- key: z.ZodString;
4802
- inverted: z.ZodOptional<z.ZodBoolean>;
4803
- }, "strip", z.ZodTypeAny, {
4804
- type: "dismissed";
4805
- key: string;
4806
- inverted?: boolean | undefined;
4807
- }, {
4808
- type: "dismissed";
4809
- key: string;
4810
- inverted?: boolean | undefined;
4811
- }>, z.ZodObject<{
4812
- type: z.ZodLiteral<"cooldown_active">;
4813
- key: z.ZodString;
4814
- inverted: z.ZodOptional<z.ZodBoolean>;
4815
- }, "strip", z.ZodTypeAny, {
4816
- type: "cooldown_active";
4817
- key: string;
4818
- inverted?: boolean | undefined;
4819
- }, {
4820
- type: "cooldown_active";
4821
- key: string;
4822
- inverted?: boolean | undefined;
4823
- }>, z.ZodObject<{
4824
- type: z.ZodLiteral<"frequency_limit">;
4825
- key: z.ZodString;
4826
- limit: z.ZodNumber;
4827
- inverted: z.ZodOptional<z.ZodBoolean>;
4828
- }, "strip", z.ZodTypeAny, {
4829
- type: "frequency_limit";
4830
- key: string;
4831
- limit: number;
4832
- inverted?: boolean | undefined;
4833
- }, {
4834
- type: "frequency_limit";
4835
- key: string;
4836
- limit: number;
4837
- inverted?: boolean | undefined;
4838
- }>, z.ZodObject<{
4839
- type: z.ZodLiteral<"event_count">;
4840
- key: z.ZodString;
4841
- operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
4842
- count: z.ZodNumber;
4843
- withinMs: z.ZodOptional<z.ZodNumber>;
4844
- counter: z.ZodOptional<z.ZodObject<{
4845
- events: z.ZodArray<z.ZodString, "many">;
4846
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4847
- equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
4848
- contains: z.ZodOptional<z.ZodString>;
4849
- }, "strip", z.ZodTypeAny, {
4850
- equals?: string | number | boolean | undefined;
4851
- contains?: string | undefined;
4852
- }, {
4853
- equals?: string | number | boolean | undefined;
4854
- contains?: string | undefined;
4855
- }>>>;
4856
- }, "strip", z.ZodTypeAny, {
4857
- events: string[];
4858
- match?: Record<string, {
4859
- equals?: string | number | boolean | undefined;
4860
- contains?: string | undefined;
4861
- }> | undefined;
4862
- }, {
4863
- events: string[];
4864
- match?: Record<string, {
4865
- equals?: string | number | boolean | undefined;
4866
- contains?: string | undefined;
4867
- }> | undefined;
4868
- }>>;
4869
- }, "strip", z.ZodTypeAny, {
4870
- type: "event_count";
4871
- key: string;
4872
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4873
- count: number;
4874
- withinMs?: number | undefined;
4875
- counter?: {
4876
- events: string[];
4877
- match?: Record<string, {
4878
- equals?: string | number | boolean | undefined;
4879
- contains?: string | undefined;
4880
- }> | undefined;
4881
- } | undefined;
4882
- }, {
4883
- type: "event_count";
4884
- key: string;
4885
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4886
- count: number;
4887
- withinMs?: number | undefined;
4888
- counter?: {
4889
- events: string[];
4890
- match?: Record<string, {
4891
- equals?: string | number | boolean | undefined;
4892
- contains?: string | undefined;
4893
- }> | undefined;
4894
- } | undefined;
4895
- }>]>, "many">;
4896
- value: z.ZodUnknown;
4897
- }, "strip", z.ZodTypeAny, {
4898
- conditions: ({
4899
- type: "page_url";
4900
- url: string;
4901
- } | {
4902
- type: "route";
4903
- routeId: string;
4904
- } | {
4905
- type: "anchor_visible";
4906
- anchorId: string;
4907
- state: "visible" | "present" | "absent";
4908
- } | {
4909
- type: "event_occurred";
4910
- eventName: string;
4911
- withinMs?: number | undefined;
4912
- } | {
4913
- type: "state_equals";
4914
- key: string;
4915
- value?: unknown;
4916
- } | {
4917
- type: "viewport";
4918
- minWidth?: number | undefined;
4919
- maxWidth?: number | undefined;
4920
- minHeight?: number | undefined;
4921
- maxHeight?: number | undefined;
4922
- } | {
4923
- type: "session_metric";
4924
- key: string;
4925
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4926
- threshold: number;
4927
- } | {
4928
- type: "dismissed";
4929
- key: string;
4930
- inverted?: boolean | undefined;
4931
- } | {
4932
- type: "cooldown_active";
4933
- key: string;
4934
- inverted?: boolean | undefined;
4935
- } | {
4936
- type: "frequency_limit";
4937
- key: string;
4938
- limit: number;
4939
- inverted?: boolean | undefined;
4940
- } | {
4941
- type: "event_count";
4942
- key: string;
4943
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4944
- count: number;
4945
- withinMs?: number | undefined;
4946
- counter?: {
4947
- events: string[];
4948
- match?: Record<string, {
4949
- equals?: string | number | boolean | undefined;
4950
- contains?: string | undefined;
4951
- }> | undefined;
4952
- } | undefined;
4953
- })[];
4954
- value?: unknown;
4955
- }, {
4956
- conditions: ({
4957
- type: "page_url";
4958
- url: string;
4959
- } | {
4960
- type: "route";
4961
- routeId: string;
4962
- } | {
4963
- type: "anchor_visible";
4964
- anchorId: string;
4965
- state: "visible" | "present" | "absent";
4966
- } | {
4967
- type: "event_occurred";
4968
- eventName: string;
4969
- withinMs?: number | undefined;
4970
- } | {
4971
- type: "state_equals";
4972
- key: string;
4973
- value?: unknown;
4974
- } | {
4975
- type: "viewport";
4976
- minWidth?: number | undefined;
4977
- maxWidth?: number | undefined;
4978
- minHeight?: number | undefined;
4979
- maxHeight?: number | undefined;
4980
- } | {
4981
- type: "session_metric";
4982
- key: string;
4983
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
4984
- threshold: number;
4985
- } | {
4986
- type: "dismissed";
4987
- key: string;
4988
- inverted?: boolean | undefined;
4989
- } | {
4990
- type: "cooldown_active";
4991
- key: string;
4992
- inverted?: boolean | undefined;
4993
- } | {
4994
- type: "frequency_limit";
4995
- key: string;
4996
- limit: number;
4997
- inverted?: boolean | undefined;
4998
- } | {
4999
- type: "event_count";
5000
- key: string;
5001
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5002
- count: number;
5003
- withinMs?: number | undefined;
5004
- counter?: {
5005
- events: string[];
5006
- match?: Record<string, {
5007
- equals?: string | number | boolean | undefined;
5008
- contains?: string | undefined;
5009
- }> | undefined;
5010
- } | undefined;
5011
- })[];
5012
- value?: unknown;
5013
- }>, "many">;
5014
- default: z.ZodUnknown;
5015
- }, "strip", z.ZodTypeAny, {
5016
- type: "rules";
5017
- rules: {
5018
- conditions: ({
5019
- type: "page_url";
5020
- url: string;
5021
- } | {
5022
- type: "route";
5023
- routeId: string;
5024
- } | {
5025
- type: "anchor_visible";
5026
- anchorId: string;
5027
- state: "visible" | "present" | "absent";
5028
- } | {
5029
- type: "event_occurred";
5030
- eventName: string;
5031
- withinMs?: number | undefined;
5032
- } | {
5033
- type: "state_equals";
5034
- key: string;
5035
- value?: unknown;
5036
- } | {
5037
- type: "viewport";
5038
- minWidth?: number | undefined;
5039
- maxWidth?: number | undefined;
5040
- minHeight?: number | undefined;
5041
- maxHeight?: number | undefined;
5042
- } | {
5043
- type: "session_metric";
5044
- key: string;
5045
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5046
- threshold: number;
5047
- } | {
5048
- type: "dismissed";
5049
- key: string;
5050
- inverted?: boolean | undefined;
5051
- } | {
5052
- type: "cooldown_active";
5053
- key: string;
5054
- inverted?: boolean | undefined;
5055
- } | {
5056
- type: "frequency_limit";
5057
- key: string;
5058
- limit: number;
5059
- inverted?: boolean | undefined;
5060
- } | {
5061
- type: "event_count";
5062
- key: string;
5063
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5064
- count: number;
5065
- withinMs?: number | undefined;
5066
- counter?: {
5067
- events: string[];
5068
- match?: Record<string, {
5069
- equals?: string | number | boolean | undefined;
5070
- contains?: string | undefined;
5071
- }> | undefined;
5072
- } | undefined;
5073
- })[];
5074
- value?: unknown;
5075
- }[];
5076
- default?: unknown;
5077
- }, {
5078
- type: "rules";
5079
- rules: {
5080
- conditions: ({
5081
- type: "page_url";
5082
- url: string;
5083
- } | {
5084
- type: "route";
5085
- routeId: string;
5086
- } | {
5087
- type: "anchor_visible";
5088
- anchorId: string;
5089
- state: "visible" | "present" | "absent";
5090
- } | {
5091
- type: "event_occurred";
5092
- eventName: string;
5093
- withinMs?: number | undefined;
5094
- } | {
5095
- type: "state_equals";
5096
- key: string;
5097
- value?: unknown;
5098
- } | {
5099
- type: "viewport";
5100
- minWidth?: number | undefined;
5101
- maxWidth?: number | undefined;
5102
- minHeight?: number | undefined;
5103
- maxHeight?: number | undefined;
5104
- } | {
5105
- type: "session_metric";
5106
- key: string;
5107
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5108
- threshold: number;
5109
- } | {
5110
- type: "dismissed";
5111
- key: string;
5112
- inverted?: boolean | undefined;
5113
- } | {
5114
- type: "cooldown_active";
5115
- key: string;
5116
- inverted?: boolean | undefined;
5117
- } | {
5118
- type: "frequency_limit";
5119
- key: string;
5120
- limit: number;
5121
- inverted?: boolean | undefined;
5122
- } | {
5123
- type: "event_count";
5124
- key: string;
5125
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5126
- count: number;
5127
- withinMs?: number | undefined;
5128
- counter?: {
5129
- events: string[];
5130
- match?: Record<string, {
5131
- equals?: string | number | boolean | undefined;
5132
- contains?: string | undefined;
5133
- }> | undefined;
5134
- } | undefined;
5135
- })[];
5136
- value?: unknown;
5137
- }[];
5138
- default?: unknown;
5139
- }>, z.ZodObject<{
5140
- type: z.ZodLiteral<"score">;
5141
- field: z.ZodString;
5142
- threshold: z.ZodNumber;
5143
- above: z.ZodUnknown;
5144
- below: z.ZodUnknown;
5145
- }, "strip", z.ZodTypeAny, {
5146
- type: "score";
5147
- threshold: number;
5148
- field: string;
5149
- above?: unknown;
5150
- below?: unknown;
5151
- }, {
5152
- type: "score";
5153
- threshold: number;
5154
- field: string;
5155
- above?: unknown;
5156
- below?: unknown;
5157
- }>, z.ZodObject<{
5158
- type: z.ZodLiteral<"model">;
5159
- modelId: z.ZodString;
5160
- inputs: z.ZodArray<z.ZodString, "many">;
5161
- outputMapping: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5162
- default: z.ZodUnknown;
5163
- }, "strip", z.ZodTypeAny, {
5164
- type: "model";
5165
- modelId: string;
5166
- inputs: string[];
5167
- outputMapping: Record<string, unknown>;
5168
- default?: unknown;
5169
- }, {
5170
- type: "model";
5171
- modelId: string;
5172
- inputs: string[];
5173
- outputMapping: Record<string, unknown>;
5174
- default?: unknown;
5175
- }>, z.ZodObject<{
5176
- type: z.ZodLiteral<"external">;
5177
- endpoint: z.ZodString;
5178
- method: z.ZodOptional<z.ZodEnum<["GET", "POST"]>>;
5179
- default: z.ZodUnknown;
5180
- timeoutMs: z.ZodOptional<z.ZodNumber>;
5181
- }, "strip", z.ZodTypeAny, {
5182
- type: "external";
5183
- endpoint: string;
5184
- default?: unknown;
5185
- method?: "GET" | "POST" | undefined;
5186
- timeoutMs?: number | undefined;
5187
- }, {
5188
- type: "external";
5189
- endpoint: string;
5190
- default?: unknown;
5191
- method?: "GET" | "POST" | undefined;
5192
- timeoutMs?: number | undefined;
5193
- }>]>>;
2197
+ onlyIfPopulated: z.ZodOptional<z.ZodBoolean>;
5194
2198
  }, "strip", z.ZodTypeAny, {
5195
2199
  routes: {
5196
2200
  include?: string[] | undefined;
5197
2201
  exclude?: string[] | undefined;
5198
2202
  };
5199
- strategy?: {
5200
- type: "rules";
5201
- rules: {
5202
- conditions: ({
5203
- type: "page_url";
5204
- url: string;
5205
- } | {
5206
- type: "route";
5207
- routeId: string;
5208
- } | {
5209
- type: "anchor_visible";
5210
- anchorId: string;
5211
- state: "visible" | "present" | "absent";
5212
- } | {
5213
- type: "event_occurred";
5214
- eventName: string;
5215
- withinMs?: number | undefined;
5216
- } | {
5217
- type: "state_equals";
5218
- key: string;
5219
- value?: unknown;
5220
- } | {
5221
- type: "viewport";
5222
- minWidth?: number | undefined;
5223
- maxWidth?: number | undefined;
5224
- minHeight?: number | undefined;
5225
- maxHeight?: number | undefined;
5226
- } | {
5227
- type: "session_metric";
5228
- key: string;
5229
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5230
- threshold: number;
5231
- } | {
5232
- type: "dismissed";
5233
- key: string;
5234
- inverted?: boolean | undefined;
5235
- } | {
5236
- type: "cooldown_active";
5237
- key: string;
5238
- inverted?: boolean | undefined;
5239
- } | {
5240
- type: "frequency_limit";
5241
- key: string;
5242
- limit: number;
5243
- inverted?: boolean | undefined;
5244
- } | {
5245
- type: "event_count";
5246
- key: string;
5247
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5248
- count: number;
5249
- withinMs?: number | undefined;
5250
- counter?: {
5251
- events: string[];
5252
- match?: Record<string, {
5253
- equals?: string | number | boolean | undefined;
5254
- contains?: string | undefined;
5255
- }> | undefined;
5256
- } | undefined;
5257
- })[];
5258
- value?: unknown;
5259
- }[];
5260
- default?: unknown;
5261
- } | {
5262
- type: "score";
5263
- threshold: number;
5264
- field: string;
5265
- above?: unknown;
5266
- below?: unknown;
5267
- } | {
5268
- type: "model";
5269
- modelId: string;
5270
- inputs: string[];
5271
- outputMapping: Record<string, unknown>;
5272
- default?: unknown;
5273
- } | {
5274
- type: "external";
5275
- endpoint: string;
5276
- default?: unknown;
5277
- method?: "GET" | "POST" | undefined;
5278
- timeoutMs?: number | undefined;
5279
- } | undefined;
2203
+ onlyIfPopulated?: boolean | undefined;
5280
2204
  }, {
5281
2205
  routes: {
5282
2206
  include?: string[] | undefined;
5283
2207
  exclude?: string[] | undefined;
5284
2208
  };
5285
- strategy?: {
5286
- type: "rules";
5287
- rules: {
5288
- conditions: ({
5289
- type: "page_url";
5290
- url: string;
5291
- } | {
5292
- type: "route";
5293
- routeId: string;
5294
- } | {
5295
- type: "anchor_visible";
5296
- anchorId: string;
5297
- state: "visible" | "present" | "absent";
5298
- } | {
5299
- type: "event_occurred";
5300
- eventName: string;
5301
- withinMs?: number | undefined;
5302
- } | {
5303
- type: "state_equals";
5304
- key: string;
5305
- value?: unknown;
5306
- } | {
5307
- type: "viewport";
5308
- minWidth?: number | undefined;
5309
- maxWidth?: number | undefined;
5310
- minHeight?: number | undefined;
5311
- maxHeight?: number | undefined;
5312
- } | {
5313
- type: "session_metric";
5314
- key: string;
5315
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5316
- threshold: number;
5317
- } | {
5318
- type: "dismissed";
5319
- key: string;
5320
- inverted?: boolean | undefined;
5321
- } | {
5322
- type: "cooldown_active";
5323
- key: string;
5324
- inverted?: boolean | undefined;
5325
- } | {
5326
- type: "frequency_limit";
5327
- key: string;
5328
- limit: number;
5329
- inverted?: boolean | undefined;
5330
- } | {
5331
- type: "event_count";
5332
- key: string;
5333
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5334
- count: number;
5335
- withinMs?: number | undefined;
5336
- counter?: {
5337
- events: string[];
5338
- match?: Record<string, {
5339
- equals?: string | number | boolean | undefined;
5340
- contains?: string | undefined;
5341
- }> | undefined;
5342
- } | undefined;
5343
- })[];
5344
- value?: unknown;
5345
- }[];
5346
- default?: unknown;
5347
- } | {
5348
- type: "score";
5349
- threshold: number;
5350
- field: string;
5351
- above?: unknown;
5352
- below?: unknown;
5353
- } | {
5354
- type: "model";
5355
- modelId: string;
5356
- inputs: string[];
5357
- outputMapping: Record<string, unknown>;
5358
- default?: unknown;
5359
- } | {
5360
- type: "external";
5361
- endpoint: string;
5362
- default?: unknown;
5363
- method?: "GET" | "POST" | undefined;
5364
- timeoutMs?: number | undefined;
5365
- } | undefined;
2209
+ onlyIfPopulated?: boolean | undefined;
5366
2210
  }>>;
5367
2211
  notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
5368
2212
  on: z.ZodString;
@@ -5417,87 +2261,7 @@ export declare const configSchemas: ({
5417
2261
  include?: string[] | undefined;
5418
2262
  exclude?: string[] | undefined;
5419
2263
  };
5420
- strategy?: {
5421
- type: "rules";
5422
- rules: {
5423
- conditions: ({
5424
- type: "page_url";
5425
- url: string;
5426
- } | {
5427
- type: "route";
5428
- routeId: string;
5429
- } | {
5430
- type: "anchor_visible";
5431
- anchorId: string;
5432
- state: "visible" | "present" | "absent";
5433
- } | {
5434
- type: "event_occurred";
5435
- eventName: string;
5436
- withinMs?: number | undefined;
5437
- } | {
5438
- type: "state_equals";
5439
- key: string;
5440
- value?: unknown;
5441
- } | {
5442
- type: "viewport";
5443
- minWidth?: number | undefined;
5444
- maxWidth?: number | undefined;
5445
- minHeight?: number | undefined;
5446
- maxHeight?: number | undefined;
5447
- } | {
5448
- type: "session_metric";
5449
- key: string;
5450
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5451
- threshold: number;
5452
- } | {
5453
- type: "dismissed";
5454
- key: string;
5455
- inverted?: boolean | undefined;
5456
- } | {
5457
- type: "cooldown_active";
5458
- key: string;
5459
- inverted?: boolean | undefined;
5460
- } | {
5461
- type: "frequency_limit";
5462
- key: string;
5463
- limit: number;
5464
- inverted?: boolean | undefined;
5465
- } | {
5466
- type: "event_count";
5467
- key: string;
5468
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5469
- count: number;
5470
- withinMs?: number | undefined;
5471
- counter?: {
5472
- events: string[];
5473
- match?: Record<string, {
5474
- equals?: string | number | boolean | undefined;
5475
- contains?: string | undefined;
5476
- }> | undefined;
5477
- } | undefined;
5478
- })[];
5479
- value?: unknown;
5480
- }[];
5481
- default?: unknown;
5482
- } | {
5483
- type: "score";
5484
- threshold: number;
5485
- field: string;
5486
- above?: unknown;
5487
- below?: unknown;
5488
- } | {
5489
- type: "model";
5490
- modelId: string;
5491
- inputs: string[];
5492
- outputMapping: Record<string, unknown>;
5493
- default?: unknown;
5494
- } | {
5495
- type: "external";
5496
- endpoint: string;
5497
- default?: unknown;
5498
- method?: "GET" | "POST" | undefined;
5499
- timeoutMs?: number | undefined;
5500
- } | undefined;
2264
+ onlyIfPopulated?: boolean | undefined;
5501
2265
  } | undefined;
5502
2266
  notifications?: {
5503
2267
  on: string;
@@ -5524,87 +2288,7 @@ export declare const configSchemas: ({
5524
2288
  include?: string[] | undefined;
5525
2289
  exclude?: string[] | undefined;
5526
2290
  };
5527
- strategy?: {
5528
- type: "rules";
5529
- rules: {
5530
- conditions: ({
5531
- type: "page_url";
5532
- url: string;
5533
- } | {
5534
- type: "route";
5535
- routeId: string;
5536
- } | {
5537
- type: "anchor_visible";
5538
- anchorId: string;
5539
- state: "visible" | "present" | "absent";
5540
- } | {
5541
- type: "event_occurred";
5542
- eventName: string;
5543
- withinMs?: number | undefined;
5544
- } | {
5545
- type: "state_equals";
5546
- key: string;
5547
- value?: unknown;
5548
- } | {
5549
- type: "viewport";
5550
- minWidth?: number | undefined;
5551
- maxWidth?: number | undefined;
5552
- minHeight?: number | undefined;
5553
- maxHeight?: number | undefined;
5554
- } | {
5555
- type: "session_metric";
5556
- key: string;
5557
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5558
- threshold: number;
5559
- } | {
5560
- type: "dismissed";
5561
- key: string;
5562
- inverted?: boolean | undefined;
5563
- } | {
5564
- type: "cooldown_active";
5565
- key: string;
5566
- inverted?: boolean | undefined;
5567
- } | {
5568
- type: "frequency_limit";
5569
- key: string;
5570
- limit: number;
5571
- inverted?: boolean | undefined;
5572
- } | {
5573
- type: "event_count";
5574
- key: string;
5575
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
5576
- count: number;
5577
- withinMs?: number | undefined;
5578
- counter?: {
5579
- events: string[];
5580
- match?: Record<string, {
5581
- equals?: string | number | boolean | undefined;
5582
- contains?: string | undefined;
5583
- }> | undefined;
5584
- } | undefined;
5585
- })[];
5586
- value?: unknown;
5587
- }[];
5588
- default?: unknown;
5589
- } | {
5590
- type: "score";
5591
- threshold: number;
5592
- field: string;
5593
- above?: unknown;
5594
- below?: unknown;
5595
- } | {
5596
- type: "model";
5597
- modelId: string;
5598
- inputs: string[];
5599
- outputMapping: Record<string, unknown>;
5600
- default?: unknown;
5601
- } | {
5602
- type: "external";
5603
- endpoint: string;
5604
- default?: unknown;
5605
- method?: "GET" | "POST" | undefined;
5606
- timeoutMs?: number | undefined;
5607
- } | undefined;
2291
+ onlyIfPopulated?: boolean | undefined;
5608
2292
  } | undefined;
5609
2293
  notifications?: {
5610
2294
  on: string;
@@ -5633,6 +2317,9 @@ export declare const configSchemas: ({
5633
2317
  blur: z.ZodOptional<z.ZodString>;
5634
2318
  border: z.ZodOptional<z.ZodString>;
5635
2319
  width: z.ZodOptional<z.ZodString>;
2320
+ transitionDuration: z.ZodOptional<z.ZodString>;
2321
+ transitionEasing: z.ZodOptional<z.ZodString>;
2322
+ transitionFade: z.ZodOptional<z.ZodString>;
5636
2323
  }, "strip", z.ZodTypeAny, {
5637
2324
  position?: "right" | "left" | undefined;
5638
2325
  layout?: "push" | "overlay" | undefined;
@@ -5640,6 +2327,9 @@ export declare const configSchemas: ({
5640
2327
  blur?: string | undefined;
5641
2328
  border?: string | undefined;
5642
2329
  width?: string | undefined;
2330
+ transitionDuration?: string | undefined;
2331
+ transitionEasing?: string | undefined;
2332
+ transitionFade?: string | undefined;
5643
2333
  }, {
5644
2334
  position?: "right" | "left" | undefined;
5645
2335
  layout?: "push" | "overlay" | undefined;
@@ -5647,6 +2337,9 @@ export declare const configSchemas: ({
5647
2337
  blur?: string | undefined;
5648
2338
  border?: string | undefined;
5649
2339
  width?: string | undefined;
2340
+ transitionDuration?: string | undefined;
2341
+ transitionEasing?: string | undefined;
2342
+ transitionFade?: string | undefined;
5650
2343
  }>>;
5651
2344
  launcher: z.ZodOptional<z.ZodObject<{
5652
2345
  background: z.ZodOptional<z.ZodString>;
@@ -5877,6 +2570,9 @@ export declare const configSchemas: ({
5877
2570
  blur?: string | undefined;
5878
2571
  border?: string | undefined;
5879
2572
  width?: string | undefined;
2573
+ transitionDuration?: string | undefined;
2574
+ transitionEasing?: string | undefined;
2575
+ transitionFade?: string | undefined;
5880
2576
  } | undefined;
5881
2577
  launcher?: {
5882
2578
  size?: string | undefined;
@@ -5956,6 +2652,9 @@ export declare const configSchemas: ({
5956
2652
  blur?: string | undefined;
5957
2653
  border?: string | undefined;
5958
2654
  width?: string | undefined;
2655
+ transitionDuration?: string | undefined;
2656
+ transitionEasing?: string | undefined;
2657
+ transitionFade?: string | undefined;
5959
2658
  } | undefined;
5960
2659
  launcher?: {
5961
2660
  size?: string | undefined;
@@ -6034,87 +2733,7 @@ export declare const configSchemas: ({
6034
2733
  include?: string[] | undefined;
6035
2734
  exclude?: string[] | undefined;
6036
2735
  };
6037
- strategy?: {
6038
- type: "rules";
6039
- rules: {
6040
- conditions: ({
6041
- type: "page_url";
6042
- url: string;
6043
- } | {
6044
- type: "route";
6045
- routeId: string;
6046
- } | {
6047
- type: "anchor_visible";
6048
- anchorId: string;
6049
- state: "visible" | "present" | "absent";
6050
- } | {
6051
- type: "event_occurred";
6052
- eventName: string;
6053
- withinMs?: number | undefined;
6054
- } | {
6055
- type: "state_equals";
6056
- key: string;
6057
- value?: unknown;
6058
- } | {
6059
- type: "viewport";
6060
- minWidth?: number | undefined;
6061
- maxWidth?: number | undefined;
6062
- minHeight?: number | undefined;
6063
- maxHeight?: number | undefined;
6064
- } | {
6065
- type: "session_metric";
6066
- key: string;
6067
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
6068
- threshold: number;
6069
- } | {
6070
- type: "dismissed";
6071
- key: string;
6072
- inverted?: boolean | undefined;
6073
- } | {
6074
- type: "cooldown_active";
6075
- key: string;
6076
- inverted?: boolean | undefined;
6077
- } | {
6078
- type: "frequency_limit";
6079
- key: string;
6080
- limit: number;
6081
- inverted?: boolean | undefined;
6082
- } | {
6083
- type: "event_count";
6084
- key: string;
6085
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
6086
- count: number;
6087
- withinMs?: number | undefined;
6088
- counter?: {
6089
- events: string[];
6090
- match?: Record<string, {
6091
- equals?: string | number | boolean | undefined;
6092
- contains?: string | undefined;
6093
- }> | undefined;
6094
- } | undefined;
6095
- })[];
6096
- value?: unknown;
6097
- }[];
6098
- default?: unknown;
6099
- } | {
6100
- type: "score";
6101
- threshold: number;
6102
- field: string;
6103
- above?: unknown;
6104
- below?: unknown;
6105
- } | {
6106
- type: "model";
6107
- modelId: string;
6108
- inputs: string[];
6109
- outputMapping: Record<string, unknown>;
6110
- default?: unknown;
6111
- } | {
6112
- type: "external";
6113
- endpoint: string;
6114
- default?: unknown;
6115
- method?: "GET" | "POST" | undefined;
6116
- timeoutMs?: number | undefined;
6117
- } | undefined;
2736
+ onlyIfPopulated?: boolean | undefined;
6118
2737
  } | undefined;
6119
2738
  notifications?: {
6120
2739
  on: string;
@@ -6185,6 +2804,9 @@ export declare const configSchemas: ({
6185
2804
  blur?: string | undefined;
6186
2805
  border?: string | undefined;
6187
2806
  width?: string | undefined;
2807
+ transitionDuration?: string | undefined;
2808
+ transitionEasing?: string | undefined;
2809
+ transitionFade?: string | undefined;
6188
2810
  } | undefined;
6189
2811
  launcher?: {
6190
2812
  size?: string | undefined;
@@ -6238,87 +2860,7 @@ export declare const configSchemas: ({
6238
2860
  include?: string[] | undefined;
6239
2861
  exclude?: string[] | undefined;
6240
2862
  };
6241
- strategy?: {
6242
- type: "rules";
6243
- rules: {
6244
- conditions: ({
6245
- type: "page_url";
6246
- url: string;
6247
- } | {
6248
- type: "route";
6249
- routeId: string;
6250
- } | {
6251
- type: "anchor_visible";
6252
- anchorId: string;
6253
- state: "visible" | "present" | "absent";
6254
- } | {
6255
- type: "event_occurred";
6256
- eventName: string;
6257
- withinMs?: number | undefined;
6258
- } | {
6259
- type: "state_equals";
6260
- key: string;
6261
- value?: unknown;
6262
- } | {
6263
- type: "viewport";
6264
- minWidth?: number | undefined;
6265
- maxWidth?: number | undefined;
6266
- minHeight?: number | undefined;
6267
- maxHeight?: number | undefined;
6268
- } | {
6269
- type: "session_metric";
6270
- key: string;
6271
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
6272
- threshold: number;
6273
- } | {
6274
- type: "dismissed";
6275
- key: string;
6276
- inverted?: boolean | undefined;
6277
- } | {
6278
- type: "cooldown_active";
6279
- key: string;
6280
- inverted?: boolean | undefined;
6281
- } | {
6282
- type: "frequency_limit";
6283
- key: string;
6284
- limit: number;
6285
- inverted?: boolean | undefined;
6286
- } | {
6287
- type: "event_count";
6288
- key: string;
6289
- operator: "gte" | "lte" | "eq" | "gt" | "lt";
6290
- count: number;
6291
- withinMs?: number | undefined;
6292
- counter?: {
6293
- events: string[];
6294
- match?: Record<string, {
6295
- equals?: string | number | boolean | undefined;
6296
- contains?: string | undefined;
6297
- }> | undefined;
6298
- } | undefined;
6299
- })[];
6300
- value?: unknown;
6301
- }[];
6302
- default?: unknown;
6303
- } | {
6304
- type: "score";
6305
- threshold: number;
6306
- field: string;
6307
- above?: unknown;
6308
- below?: unknown;
6309
- } | {
6310
- type: "model";
6311
- modelId: string;
6312
- inputs: string[];
6313
- outputMapping: Record<string, unknown>;
6314
- default?: unknown;
6315
- } | {
6316
- type: "external";
6317
- endpoint: string;
6318
- default?: unknown;
6319
- method?: "GET" | "POST" | undefined;
6320
- timeoutMs?: number | undefined;
6321
- } | undefined;
2863
+ onlyIfPopulated?: boolean | undefined;
6322
2864
  } | undefined;
6323
2865
  notifications?: {
6324
2866
  on: string;
@@ -6389,6 +2931,9 @@ export declare const configSchemas: ({
6389
2931
  blur?: string | undefined;
6390
2932
  border?: string | undefined;
6391
2933
  width?: string | undefined;
2934
+ transitionDuration?: string | undefined;
2935
+ transitionEasing?: string | undefined;
2936
+ transitionFade?: string | undefined;
6392
2937
  } | undefined;
6393
2938
  launcher?: {
6394
2939
  size?: string | undefined;