@uniformdev/context 16.2.1-alpha.142 → 16.2.1-alpha.320

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.
@@ -0,0 +1,1620 @@
1
+ import { p as paths$7 } from './v2-manifest.swagger-2ea6ebb4.js';
2
+
3
+ /**
4
+ * This file was auto-generated by openapi-typescript.
5
+ * Do not make direct changes to the file.
6
+ */
7
+ interface paths$6 {
8
+ "/api/v1/enrichments": {
9
+ get: {
10
+ parameters: {
11
+ query: {
12
+ projectId: string;
13
+ };
14
+ };
15
+ responses: {
16
+ /** OK */
17
+ 200: {
18
+ content: {
19
+ "application/json": {
20
+ enrichments: components$6["schemas"]["EnrichmentCategoryWithValues"][];
21
+ };
22
+ };
23
+ };
24
+ 400: external$6["swagger.yml"]["components"]["responses"]["BadRequestError"];
25
+ 401: external$6["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
26
+ 403: external$6["swagger.yml"]["components"]["responses"]["ForbiddenError"];
27
+ 429: external$6["swagger.yml"]["components"]["responses"]["RateLimitError"];
28
+ 500: external$6["swagger.yml"]["components"]["responses"]["InternalServerError"];
29
+ };
30
+ };
31
+ put: {
32
+ responses: {
33
+ /** OK */
34
+ 204: never;
35
+ 400: external$6["swagger.yml"]["components"]["responses"]["BadRequestError"];
36
+ 401: external$6["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
37
+ 403: external$6["swagger.yml"]["components"]["responses"]["ForbiddenError"];
38
+ 429: external$6["swagger.yml"]["components"]["responses"]["RateLimitError"];
39
+ 500: external$6["swagger.yml"]["components"]["responses"]["InternalServerError"];
40
+ };
41
+ requestBody: {
42
+ content: {
43
+ "application/json": {
44
+ enrichment: components$6["schemas"]["EnrichmentCategory"];
45
+ /** Format: uuid */
46
+ projectId: string;
47
+ };
48
+ };
49
+ };
50
+ };
51
+ delete: {
52
+ responses: {
53
+ /** OK */
54
+ 204: never;
55
+ 400: external$6["swagger.yml"]["components"]["responses"]["BadRequestError"];
56
+ 401: external$6["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
57
+ 403: external$6["swagger.yml"]["components"]["responses"]["ForbiddenError"];
58
+ 429: external$6["swagger.yml"]["components"]["responses"]["RateLimitError"];
59
+ 500: external$6["swagger.yml"]["components"]["responses"]["InternalServerError"];
60
+ };
61
+ requestBody: {
62
+ content: {
63
+ "application/json": {
64
+ enrichmentId: string;
65
+ /** Format: uuid */
66
+ projectId: string;
67
+ };
68
+ };
69
+ };
70
+ };
71
+ };
72
+ }
73
+ interface components$6 {
74
+ schemas: {
75
+ EnrichmentCategory: {
76
+ /** @description Public ID of the enrichment category */
77
+ id: string;
78
+ /** @description Display name of the enrichment category */
79
+ name: string;
80
+ /** @description Optional sort order of the enrichment category (if not set, sorts by name) */
81
+ sortOrder?: number | null;
82
+ /**
83
+ * @description The maximum visitor score allowed for enrichment keys in this category
84
+ * @default 99999999
85
+ */
86
+ cap?: number;
87
+ };
88
+ EnrichmentCategoryWithValues: components$6["schemas"]["EnrichmentCategory"] & {
89
+ values: components$6["schemas"]["EnrichmentValue"][];
90
+ };
91
+ EnrichmentValue: {
92
+ /** @description Public ID of the enrichment value */
93
+ id: string;
94
+ /** @description Display name of the enrichment value */
95
+ value: string;
96
+ /** @description Optional sort order of the enrichment value (if not set, sorts by name) */
97
+ sortOrder?: number | null;
98
+ };
99
+ };
100
+ }
101
+ interface external$6 {
102
+ "swagger.yml": {
103
+ paths: {};
104
+ components: {
105
+ schemas: {
106
+ Error: {
107
+ /** @description Error message(s) that occurred while processing the request */
108
+ errorMessage?: string[] | string;
109
+ };
110
+ };
111
+ responses: {
112
+ /** Request input validation failed */
113
+ BadRequestError: {
114
+ content: {
115
+ "application/json": external$6["swagger.yml"]["components"]["schemas"]["Error"];
116
+ };
117
+ };
118
+ /** API key or token was not valid */
119
+ UnauthorizedError: {
120
+ content: {
121
+ "application/json": external$6["swagger.yml"]["components"]["schemas"]["Error"];
122
+ };
123
+ };
124
+ /** Permission was denied */
125
+ ForbiddenError: {
126
+ content: {
127
+ "application/json": external$6["swagger.yml"]["components"]["schemas"]["Error"];
128
+ };
129
+ };
130
+ /** Too many requests in allowed time period */
131
+ RateLimitError: unknown;
132
+ /** Execution error occurred */
133
+ InternalServerError: unknown;
134
+ };
135
+ };
136
+ operations: {};
137
+ };
138
+ }
139
+
140
+ /**
141
+ * This file was auto-generated by openapi-typescript.
142
+ * Do not make direct changes to the file.
143
+ */
144
+ interface paths$5 {
145
+ "/api/v1/enrichment-values": {
146
+ put: {
147
+ responses: {
148
+ /** OK */
149
+ 204: never;
150
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
151
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
152
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
153
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
154
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
155
+ };
156
+ requestBody: {
157
+ content: {
158
+ "application/json": {
159
+ enrichmentValue: external$5["v1-enrichments.swagger.yml"]["components"]["schemas"]["EnrichmentValue"];
160
+ enrichmentId: string;
161
+ /** Format: uuid */
162
+ projectId: string;
163
+ };
164
+ };
165
+ };
166
+ };
167
+ delete: {
168
+ responses: {
169
+ /** OK */
170
+ 204: never;
171
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
172
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
173
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
174
+ /** Parent enrichment category was not found */
175
+ 404: unknown;
176
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
177
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
178
+ };
179
+ requestBody: {
180
+ content: {
181
+ "application/json": {
182
+ enrichmentId: string;
183
+ /** Format: uuid */
184
+ projectId: string;
185
+ enrichmentValueId: string;
186
+ };
187
+ };
188
+ };
189
+ };
190
+ };
191
+ }
192
+ interface external$5 {
193
+ "swagger.yml": {
194
+ paths: {};
195
+ components: {
196
+ schemas: {
197
+ Error: {
198
+ /** @description Error message(s) that occurred while processing the request */
199
+ errorMessage?: string[] | string;
200
+ };
201
+ };
202
+ responses: {
203
+ /** Request input validation failed */
204
+ BadRequestError: {
205
+ content: {
206
+ "application/json": external$5["swagger.yml"]["components"]["schemas"]["Error"];
207
+ };
208
+ };
209
+ /** API key or token was not valid */
210
+ UnauthorizedError: {
211
+ content: {
212
+ "application/json": external$5["swagger.yml"]["components"]["schemas"]["Error"];
213
+ };
214
+ };
215
+ /** Permission was denied */
216
+ ForbiddenError: {
217
+ content: {
218
+ "application/json": external$5["swagger.yml"]["components"]["schemas"]["Error"];
219
+ };
220
+ };
221
+ /** Too many requests in allowed time period */
222
+ RateLimitError: unknown;
223
+ /** Execution error occurred */
224
+ InternalServerError: unknown;
225
+ };
226
+ };
227
+ operations: {};
228
+ };
229
+ "v1-enrichments.swagger.yml": {
230
+ paths: {
231
+ "/api/v1/enrichments": {
232
+ get: {
233
+ parameters: {
234
+ query: {
235
+ projectId: string;
236
+ };
237
+ };
238
+ responses: {
239
+ /** OK */
240
+ 200: {
241
+ content: {
242
+ "application/json": {
243
+ enrichments: external$5["v1-enrichments.swagger.yml"]["components"]["schemas"]["EnrichmentCategoryWithValues"][];
244
+ };
245
+ };
246
+ };
247
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
248
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
249
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
250
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
251
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
252
+ };
253
+ };
254
+ put: {
255
+ responses: {
256
+ /** OK */
257
+ 204: never;
258
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
259
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
260
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
261
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
262
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
263
+ };
264
+ requestBody: {
265
+ content: {
266
+ "application/json": {
267
+ enrichment: external$5["v1-enrichments.swagger.yml"]["components"]["schemas"]["EnrichmentCategory"];
268
+ /** Format: uuid */
269
+ projectId: string;
270
+ };
271
+ };
272
+ };
273
+ };
274
+ delete: {
275
+ responses: {
276
+ /** OK */
277
+ 204: never;
278
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
279
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
280
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
281
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
282
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
283
+ };
284
+ requestBody: {
285
+ content: {
286
+ "application/json": {
287
+ enrichmentId: string;
288
+ /** Format: uuid */
289
+ projectId: string;
290
+ };
291
+ };
292
+ };
293
+ };
294
+ };
295
+ };
296
+ components: {
297
+ schemas: {
298
+ EnrichmentCategory: {
299
+ /** @description Public ID of the enrichment category */
300
+ id: string;
301
+ /** @description Display name of the enrichment category */
302
+ name: string;
303
+ /** @description Optional sort order of the enrichment category (if not set, sorts by name) */
304
+ sortOrder?: number | null;
305
+ /**
306
+ * @description The maximum visitor score allowed for enrichment keys in this category
307
+ * @default 99999999
308
+ */
309
+ cap?: number;
310
+ };
311
+ EnrichmentCategoryWithValues: external$5["v1-enrichments.swagger.yml"]["components"]["schemas"]["EnrichmentCategory"] & {
312
+ values: external$5["v1-enrichments.swagger.yml"]["components"]["schemas"]["EnrichmentValue"][];
313
+ };
314
+ EnrichmentValue: {
315
+ /** @description Public ID of the enrichment value */
316
+ id: string;
317
+ /** @description Display name of the enrichment value */
318
+ value: string;
319
+ /** @description Optional sort order of the enrichment value (if not set, sorts by name) */
320
+ sortOrder?: number | null;
321
+ };
322
+ };
323
+ };
324
+ operations: {};
325
+ };
326
+ }
327
+
328
+ /**
329
+ * This file was auto-generated by openapi-typescript.
330
+ * Do not make direct changes to the file.
331
+ */
332
+ interface paths$4 {
333
+ "/api/v2/aggregate": {
334
+ get: {
335
+ parameters: {
336
+ query: {
337
+ /** The project to fetch aggregates for */
338
+ projectId: string;
339
+ /** Limit the results to a specific aggregate ID */
340
+ aggregateId?: string;
341
+ /**
342
+ * Limit the results to a specific aggregate type
343
+ * 0: Audience
344
+ * 1: Intent
345
+ */
346
+ type?: 0 | 1;
347
+ };
348
+ };
349
+ responses: {
350
+ /** OK */
351
+ 200: {
352
+ content: {
353
+ "application/json": {
354
+ aggregates: components$5["schemas"]["AggregateData"][];
355
+ };
356
+ };
357
+ };
358
+ 400: external$4["swagger.yml"]["components"]["responses"]["BadRequestError"];
359
+ 401: external$4["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
360
+ 403: external$4["swagger.yml"]["components"]["responses"]["ForbiddenError"];
361
+ 429: external$4["swagger.yml"]["components"]["responses"]["RateLimitError"];
362
+ 500: external$4["swagger.yml"]["components"]["responses"]["InternalServerError"];
363
+ };
364
+ };
365
+ put: {
366
+ responses: {
367
+ /** OK */
368
+ 204: never;
369
+ 400: external$4["swagger.yml"]["components"]["responses"]["BadRequestError"];
370
+ 401: external$4["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
371
+ 403: external$4["swagger.yml"]["components"]["responses"]["ForbiddenError"];
372
+ 429: external$4["swagger.yml"]["components"]["responses"]["RateLimitError"];
373
+ 500: external$4["swagger.yml"]["components"]["responses"]["InternalServerError"];
374
+ };
375
+ requestBody: {
376
+ content: {
377
+ "application/json": {
378
+ aggregate: components$5["schemas"]["AggregateData"];
379
+ /** Format: uuid */
380
+ projectId: string;
381
+ /**
382
+ * @description Skips updating aggregate inputs and upserts only the aggregate definition.
383
+ * Inputs data is still required, but is ignored and not saved or validated.
384
+ * Useful when creating aggregates that reference each other: Create the definitions, then the inputs.
385
+ *
386
+ * @default false
387
+ */
388
+ skipInputs?: boolean;
389
+ };
390
+ };
391
+ };
392
+ };
393
+ delete: {
394
+ responses: {
395
+ /** OK */
396
+ 204: never;
397
+ 400: external$4["swagger.yml"]["components"]["responses"]["BadRequestError"];
398
+ 401: external$4["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
399
+ 403: external$4["swagger.yml"]["components"]["responses"]["ForbiddenError"];
400
+ 429: external$4["swagger.yml"]["components"]["responses"]["RateLimitError"];
401
+ 500: external$4["swagger.yml"]["components"]["responses"]["InternalServerError"];
402
+ };
403
+ requestBody: {
404
+ content: {
405
+ "application/json": {
406
+ aggregateId: string;
407
+ /** Format: uuid */
408
+ projectId: string;
409
+ };
410
+ };
411
+ };
412
+ };
413
+ };
414
+ }
415
+ interface components$5 {
416
+ schemas: {
417
+ AggregateData: {
418
+ id: string;
419
+ name: string;
420
+ description?: string;
421
+ /**
422
+ * @description The type of aggregate
423
+ * 0: Audience
424
+ * 1: Intent
425
+ *
426
+ * @enum {number}
427
+ */
428
+ type: 0 | 1;
429
+ inputs: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
430
+ };
431
+ };
432
+ }
433
+ interface external$4 {
434
+ "swagger.yml": {
435
+ paths: {};
436
+ components: {
437
+ schemas: {
438
+ Error: {
439
+ /** @description Error message(s) that occurred while processing the request */
440
+ errorMessage?: string[] | string;
441
+ };
442
+ };
443
+ responses: {
444
+ /** Request input validation failed */
445
+ BadRequestError: {
446
+ content: {
447
+ "application/json": external$4["swagger.yml"]["components"]["schemas"]["Error"];
448
+ };
449
+ };
450
+ /** API key or token was not valid */
451
+ UnauthorizedError: {
452
+ content: {
453
+ "application/json": external$4["swagger.yml"]["components"]["schemas"]["Error"];
454
+ };
455
+ };
456
+ /** Permission was denied */
457
+ ForbiddenError: {
458
+ content: {
459
+ "application/json": external$4["swagger.yml"]["components"]["schemas"]["Error"];
460
+ };
461
+ };
462
+ /** Too many requests in allowed time period */
463
+ RateLimitError: unknown;
464
+ /** Execution error occurred */
465
+ InternalServerError: unknown;
466
+ };
467
+ };
468
+ operations: {};
469
+ };
470
+ "uniform-context-types.swagger.yml": {
471
+ paths: {};
472
+ components: {
473
+ schemas: {
474
+ EnrichmentCategory: {
475
+ /** @description The maximum visitor score allowed for enrichment keys in this category */
476
+ cap: number;
477
+ };
478
+ PreviewSignal: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["Signal"] & {
479
+ /** @description Friendly name of the signal */
480
+ name: string;
481
+ /** @description Description of the signal */
482
+ description?: string;
483
+ };
484
+ Signal: {
485
+ /** @description The signal strength per activation (each time its criteria are true, this score is added) */
486
+ str: number;
487
+ /** @description The maximum visitor score allowed for this signal */
488
+ cap: number;
489
+ /**
490
+ * @description How long the signal's score should persist
491
+ * 's' = current session (expires after a period of inactivity)
492
+ * 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
493
+ * 't' = transient (score tracks the current state of the criteria every time scores are updated)
494
+ *
495
+ * @enum {string}
496
+ */
497
+ dur: "s" | "p" | "t";
498
+ crit: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
499
+ };
500
+ RootSignalCriteriaGroup: {
501
+ /**
502
+ * @description Criteria type (Group of other criteria)
503
+ * @enum {string}
504
+ */
505
+ type: "G";
506
+ /**
507
+ * @description The logical operator to apply to the criteria groups
508
+ * & = AND
509
+ * | = OR
510
+ *
511
+ * Default is `&` if unspecified.
512
+ *
513
+ * @default &
514
+ * @enum {string}
515
+ */
516
+ op?: "&" | "|";
517
+ /** @description The criteria clauses that make up this grouping of criteria */
518
+ clauses: (external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
519
+ };
520
+ SignalCriteriaGroup: {
521
+ /**
522
+ * @description Criteria type (Group of other criteria)
523
+ * @enum {string}
524
+ */
525
+ type: "G";
526
+ /**
527
+ * @description The logical operator to apply to the criteria groups
528
+ * & = AND
529
+ * | = OR
530
+ *
531
+ * Default is `&` if unspecified.
532
+ *
533
+ * @enum {string}
534
+ */
535
+ op?: "&" | "|";
536
+ /** @description The criteria clauses that make up this grouping of criteria */
537
+ clauses: (external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
538
+ };
539
+ SignalCriteria: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["CookieCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["QueryStringCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["QuirkCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["EventCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["CurrentPageCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["PageViewCountCriteria"];
540
+ /** @description Matches a URL query string parameter value */
541
+ QueryStringCriteria: {
542
+ /** @enum {string} */
543
+ type: "QS";
544
+ /** @description The name of the query string parameter to match */
545
+ queryName: string;
546
+ /** @description The value to match the query string parameter against */
547
+ match: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
548
+ };
549
+ /** @description Matches a web cookie value */
550
+ CookieCriteria: {
551
+ /** @enum {string} */
552
+ type: "CK";
553
+ /** @description The name of the cookie to match */
554
+ cookieName: string;
555
+ /** @description The value to match the cookie against */
556
+ match: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
557
+ };
558
+ /** @description Matches a visitor quirk key and value */
559
+ QuirkCriteria: {
560
+ /** @enum {string} */
561
+ type: "QK";
562
+ /** @description The name of the quirk key to match */
563
+ key: string;
564
+ /** @description The quirk value to match against */
565
+ match: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
566
+ };
567
+ /** @description Matches an analytics event name being fired */
568
+ EventCriteria: {
569
+ /** @enum {string} */
570
+ type: "EVT";
571
+ /** @description How to match the event name */
572
+ event: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
573
+ };
574
+ /**
575
+ * @description Matches the current page's absolute path (i.e. /path/to/page.html)
576
+ * Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
577
+ */
578
+ CurrentPageCriteria: {
579
+ /** @enum {string} */
580
+ type: "PV";
581
+ /** @description The page/route path to match as a page that has been visited */
582
+ path: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
583
+ };
584
+ PageViewCountCriteria: {
585
+ /** @enum {string} */
586
+ type: "PVC";
587
+ /** @description The expression to match the page view count against */
588
+ match: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["NumberMatch"];
589
+ };
590
+ /** @description Describes a match expression on a string */
591
+ StringMatch: {
592
+ /** @description The right hand side of the match expression */
593
+ rhs: string;
594
+ /**
595
+ * @description The match operator
596
+ * '=' = exact match
597
+ * '~' = contains match
598
+ * '//' = regular expression match
599
+ *
600
+ * Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
601
+ *
602
+ * @enum {string}
603
+ */
604
+ op: "=" | "~" | "//" | "!=" | "!~" | "!//";
605
+ /** @description The case sensitivity of the match. Defaults to false if unspecified. */
606
+ cs?: boolean;
607
+ } | {
608
+ /**
609
+ * @description The type of match to perform
610
+ * '*' = exists with any value
611
+ * '!*' = does not exist
612
+ *
613
+ * @enum {string}
614
+ */
615
+ op: "*" | "!*";
616
+ };
617
+ /** @description Describes a match expression on a number */
618
+ NumberMatch: {
619
+ /** @description The right hand side of the match expression */
620
+ rhs: number;
621
+ /**
622
+ * @description The type of match to perform
623
+ * '=' = exact match
624
+ * '!=' = not an exact match
625
+ * '<' = less than match expression
626
+ * '>' = greater than match expression
627
+ *
628
+ * @enum {string}
629
+ */
630
+ op: "=" | "<" | ">" | "!=";
631
+ };
632
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
633
+ AggregateDimension: {
634
+ /** @description Input dimensions to the aggregate dimension */
635
+ inputs: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
636
+ };
637
+ /** @description Defines an input dimension to an aggregate dimension */
638
+ AggregateDimensionInput: {
639
+ /**
640
+ * @description Dimension name to reference as an input.
641
+ * For enrichment inputs, use CATEGORY_KEY as the dimension.
642
+ * Enrichments, signals, and other aggregate dimensions may be referenced.
643
+ *
644
+ * Note that creating a cycle of aggregate dimensions is allowed, however
645
+ * the final score will _ignore_ the cycled aggregate dimension in the result.
646
+ * This can be used to create mutually exclusive aggregates.
647
+ */
648
+ dim: string;
649
+ /**
650
+ * @description The sign of the input dimension controls how it affects the aggregate dimension's final score.
651
+ *
652
+ * '+' = add to the final score
653
+ * '-' = subtract from the final score
654
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
655
+ *
656
+ * Default if unspecified: '+'
657
+ *
658
+ * @default +
659
+ * @enum {string}
660
+ */
661
+ sign?: "+" | "-" | "c";
662
+ };
663
+ Test: {
664
+ /** @description Winning variation ID - if set, the test will not run and this variation is shown to all visitors (the test is closed) */
665
+ wv?: string;
666
+ };
667
+ };
668
+ };
669
+ operations: {};
670
+ };
671
+ }
672
+
673
+ /**
674
+ * This file was auto-generated by openapi-typescript.
675
+ * Do not make direct changes to the file.
676
+ */
677
+ interface paths$3 {
678
+ "/api/v2/dimension": {
679
+ get: {
680
+ parameters: {
681
+ query: {
682
+ /** The project to fetch dimensions for */
683
+ projectId: string;
684
+ };
685
+ };
686
+ responses: {
687
+ /** OK */
688
+ 200: {
689
+ content: {
690
+ "application/json": {
691
+ dimensions: components$4["schemas"]["DimensionDefinition"][];
692
+ };
693
+ };
694
+ };
695
+ 400: external$3["swagger.yml"]["components"]["responses"]["BadRequestError"];
696
+ 401: external$3["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
697
+ 403: external$3["swagger.yml"]["components"]["responses"]["ForbiddenError"];
698
+ 429: external$3["swagger.yml"]["components"]["responses"]["RateLimitError"];
699
+ 500: external$3["swagger.yml"]["components"]["responses"]["InternalServerError"];
700
+ };
701
+ };
702
+ };
703
+ }
704
+ interface components$4 {
705
+ schemas: {
706
+ DimensionDefinition: {
707
+ /** @description The dimension name (score key) */
708
+ dim: string;
709
+ /**
710
+ * @description The dimension type
711
+ * AGG: Aggregation (intent or audience)
712
+ * ENR: Enrichment
713
+ * SIG: Signal
714
+ *
715
+ * @enum {string}
716
+ */
717
+ category: "AGG" | "ENR" | "SIG";
718
+ /**
719
+ * @description Subtype of the dimension
720
+ * AGG:0: Audience
721
+ * AGG:1: Intent
722
+ * ENR: Enrichment Category name
723
+ * SIG: null
724
+ */
725
+ subcategory?: string;
726
+ /** @description The dimension's name (without category) */
727
+ name: string;
728
+ /** @description The minimum score possible for the dimension */
729
+ min: number;
730
+ /** @description The maximum score possible for the dimension */
731
+ cap: number;
732
+ };
733
+ };
734
+ }
735
+ interface external$3 {
736
+ "swagger.yml": {
737
+ paths: {};
738
+ components: {
739
+ schemas: {
740
+ Error: {
741
+ /** @description Error message(s) that occurred while processing the request */
742
+ errorMessage?: string[] | string;
743
+ };
744
+ };
745
+ responses: {
746
+ /** Request input validation failed */
747
+ BadRequestError: {
748
+ content: {
749
+ "application/json": external$3["swagger.yml"]["components"]["schemas"]["Error"];
750
+ };
751
+ };
752
+ /** API key or token was not valid */
753
+ UnauthorizedError: {
754
+ content: {
755
+ "application/json": external$3["swagger.yml"]["components"]["schemas"]["Error"];
756
+ };
757
+ };
758
+ /** Permission was denied */
759
+ ForbiddenError: {
760
+ content: {
761
+ "application/json": external$3["swagger.yml"]["components"]["schemas"]["Error"];
762
+ };
763
+ };
764
+ /** Too many requests in allowed time period */
765
+ RateLimitError: unknown;
766
+ /** Execution error occurred */
767
+ InternalServerError: unknown;
768
+ };
769
+ };
770
+ operations: {};
771
+ };
772
+ }
773
+
774
+ /**
775
+ * This file was auto-generated by openapi-typescript.
776
+ * Do not make direct changes to the file.
777
+ */
778
+ interface paths$2 {
779
+ "/api/v2/quirk": {
780
+ /** Gets quirk definitions for a project */
781
+ get: {
782
+ parameters: {
783
+ query: {
784
+ /** The project to fetch quirk definitions for */
785
+ projectId: string;
786
+ /** Limit the results to a specific quirk ID */
787
+ quirkId?: string;
788
+ /** Include quirks that are defined by integrations */
789
+ withIntegrations?: boolean;
790
+ };
791
+ };
792
+ responses: {
793
+ /** OK */
794
+ 200: {
795
+ content: {
796
+ "application/json": {
797
+ quirks: components$3["schemas"]["Quirk"][];
798
+ };
799
+ };
800
+ };
801
+ 400: external$2["swagger.yml"]["components"]["responses"]["BadRequestError"];
802
+ 401: external$2["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
803
+ 403: external$2["swagger.yml"]["components"]["responses"]["ForbiddenError"];
804
+ 429: external$2["swagger.yml"]["components"]["responses"]["RateLimitError"];
805
+ 500: external$2["swagger.yml"]["components"]["responses"]["InternalServerError"];
806
+ };
807
+ };
808
+ put: {
809
+ responses: {
810
+ /** OK */
811
+ 204: never;
812
+ 400: external$2["swagger.yml"]["components"]["responses"]["BadRequestError"];
813
+ 401: external$2["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
814
+ 403: external$2["swagger.yml"]["components"]["responses"]["ForbiddenError"];
815
+ 429: external$2["swagger.yml"]["components"]["responses"]["RateLimitError"];
816
+ 500: external$2["swagger.yml"]["components"]["responses"]["InternalServerError"];
817
+ };
818
+ requestBody: {
819
+ content: {
820
+ "application/json": {
821
+ quirk: components$3["schemas"]["Quirk"];
822
+ /** Format: uuid */
823
+ projectId: string;
824
+ };
825
+ };
826
+ };
827
+ };
828
+ delete: {
829
+ responses: {
830
+ /** OK */
831
+ 204: never;
832
+ 400: external$2["swagger.yml"]["components"]["responses"]["BadRequestError"];
833
+ 401: external$2["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
834
+ 403: external$2["swagger.yml"]["components"]["responses"]["ForbiddenError"];
835
+ 429: external$2["swagger.yml"]["components"]["responses"]["RateLimitError"];
836
+ 500: external$2["swagger.yml"]["components"]["responses"]["InternalServerError"];
837
+ };
838
+ requestBody: {
839
+ content: {
840
+ "application/json": {
841
+ quirkId: string;
842
+ /** Format: uuid */
843
+ projectId: string;
844
+ };
845
+ };
846
+ };
847
+ };
848
+ };
849
+ }
850
+ interface components$3 {
851
+ schemas: {
852
+ Quirk: {
853
+ id: string;
854
+ name: string;
855
+ description?: string | null;
856
+ options?: components$3["schemas"]["QuirkOptions"][];
857
+ source?: components$3["schemas"]["QuirkSource"];
858
+ };
859
+ QuirkOptions: {
860
+ name: string;
861
+ value: string;
862
+ };
863
+ /** @description The source of this quirk. When not defined, it is user specified. */
864
+ QuirkSource: {
865
+ name: string;
866
+ id: string;
867
+ };
868
+ };
869
+ }
870
+ interface external$2 {
871
+ "swagger.yml": {
872
+ paths: {};
873
+ components: {
874
+ schemas: {
875
+ Error: {
876
+ /** @description Error message(s) that occurred while processing the request */
877
+ errorMessage?: string[] | string;
878
+ };
879
+ };
880
+ responses: {
881
+ /** Request input validation failed */
882
+ BadRequestError: {
883
+ content: {
884
+ "application/json": external$2["swagger.yml"]["components"]["schemas"]["Error"];
885
+ };
886
+ };
887
+ /** API key or token was not valid */
888
+ UnauthorizedError: {
889
+ content: {
890
+ "application/json": external$2["swagger.yml"]["components"]["schemas"]["Error"];
891
+ };
892
+ };
893
+ /** Permission was denied */
894
+ ForbiddenError: {
895
+ content: {
896
+ "application/json": external$2["swagger.yml"]["components"]["schemas"]["Error"];
897
+ };
898
+ };
899
+ /** Too many requests in allowed time period */
900
+ RateLimitError: unknown;
901
+ /** Execution error occurred */
902
+ InternalServerError: unknown;
903
+ };
904
+ };
905
+ operations: {};
906
+ };
907
+ }
908
+
909
+ /**
910
+ * This file was auto-generated by openapi-typescript.
911
+ * Do not make direct changes to the file.
912
+ */
913
+ interface paths$1 {
914
+ "/api/v2/test": {
915
+ /** Gets A/B test definitions for a project */
916
+ get: {
917
+ parameters: {
918
+ query: {
919
+ /** The project to fetch tests for */
920
+ projectId: string;
921
+ /** Limit the results to a specific test public ID */
922
+ testId?: string;
923
+ };
924
+ };
925
+ responses: {
926
+ /** OK */
927
+ 200: {
928
+ content: {
929
+ "application/json": {
930
+ tests: components$2["schemas"]["Test"][];
931
+ };
932
+ };
933
+ };
934
+ 400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
935
+ 401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
936
+ 403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
937
+ 429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
938
+ 500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
939
+ };
940
+ };
941
+ put: {
942
+ responses: {
943
+ /** OK */
944
+ 204: never;
945
+ 400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
946
+ 401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
947
+ 403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
948
+ 429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
949
+ 500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
950
+ };
951
+ requestBody: {
952
+ content: {
953
+ "application/json": {
954
+ test: components$2["schemas"]["Test"];
955
+ /** Format: uuid */
956
+ projectId: string;
957
+ };
958
+ };
959
+ };
960
+ };
961
+ delete: {
962
+ responses: {
963
+ /** OK */
964
+ 204: never;
965
+ 400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
966
+ 401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
967
+ 403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
968
+ 429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
969
+ 500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
970
+ };
971
+ requestBody: {
972
+ content: {
973
+ "application/json": {
974
+ testId: string;
975
+ /** Format: uuid */
976
+ projectId: string;
977
+ };
978
+ };
979
+ };
980
+ };
981
+ };
982
+ }
983
+ interface components$2 {
984
+ schemas: {
985
+ Test: {
986
+ id: string;
987
+ name: string;
988
+ winning_variant_id?: string;
989
+ default_variant_id?: string;
990
+ /** @default false */
991
+ closed?: boolean;
992
+ };
993
+ };
994
+ }
995
+ interface external$1 {
996
+ "swagger.yml": {
997
+ paths: {};
998
+ components: {
999
+ schemas: {
1000
+ Error: {
1001
+ /** @description Error message(s) that occurred while processing the request */
1002
+ errorMessage?: string[] | string;
1003
+ };
1004
+ };
1005
+ responses: {
1006
+ /** Request input validation failed */
1007
+ BadRequestError: {
1008
+ content: {
1009
+ "application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
1010
+ };
1011
+ };
1012
+ /** API key or token was not valid */
1013
+ UnauthorizedError: {
1014
+ content: {
1015
+ "application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
1016
+ };
1017
+ };
1018
+ /** Permission was denied */
1019
+ ForbiddenError: {
1020
+ content: {
1021
+ "application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
1022
+ };
1023
+ };
1024
+ /** Too many requests in allowed time period */
1025
+ RateLimitError: unknown;
1026
+ /** Execution error occurred */
1027
+ InternalServerError: unknown;
1028
+ };
1029
+ };
1030
+ operations: {};
1031
+ };
1032
+ }
1033
+
1034
+ /**
1035
+ * This file was auto-generated by openapi-typescript.
1036
+ * Do not make direct changes to the file.
1037
+ */
1038
+ interface paths {
1039
+ "/api/v2/signal": {
1040
+ get: {
1041
+ parameters: {
1042
+ query: {
1043
+ /** The project to fetch signals for */
1044
+ projectId: string;
1045
+ /** Limit the results to a specific signal ID */
1046
+ signalId?: string;
1047
+ };
1048
+ };
1049
+ responses: {
1050
+ /** OK */
1051
+ 200: {
1052
+ content: {
1053
+ "application/json": {
1054
+ signals: components$1["schemas"]["SignalWithId"][];
1055
+ };
1056
+ };
1057
+ };
1058
+ 400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
1059
+ 401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
1060
+ 403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
1061
+ 429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
1062
+ 500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
1063
+ };
1064
+ };
1065
+ put: {
1066
+ responses: {
1067
+ /** OK */
1068
+ 204: never;
1069
+ 400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
1070
+ 401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
1071
+ 403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
1072
+ 429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
1073
+ 500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
1074
+ };
1075
+ requestBody: {
1076
+ content: {
1077
+ "application/json": {
1078
+ signal: components$1["schemas"]["SignalWithId"];
1079
+ /** Format: uuid */
1080
+ projectId: string;
1081
+ };
1082
+ };
1083
+ };
1084
+ };
1085
+ delete: {
1086
+ responses: {
1087
+ /** OK */
1088
+ 204: never;
1089
+ 400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
1090
+ 401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
1091
+ 403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
1092
+ 429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
1093
+ 500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
1094
+ };
1095
+ requestBody: {
1096
+ content: {
1097
+ "application/json": {
1098
+ signalId: string;
1099
+ /** Format: uuid */
1100
+ projectId: string;
1101
+ };
1102
+ };
1103
+ };
1104
+ };
1105
+ };
1106
+ }
1107
+ interface components$1 {
1108
+ schemas: {
1109
+ SignalWithId: {
1110
+ id: string;
1111
+ } & external["uniform-context-types.swagger.yml"]["components"]["schemas"]["PreviewSignal"];
1112
+ };
1113
+ }
1114
+ interface external {
1115
+ "swagger.yml": {
1116
+ paths: {};
1117
+ components: {
1118
+ schemas: {
1119
+ Error: {
1120
+ /** @description Error message(s) that occurred while processing the request */
1121
+ errorMessage?: string[] | string;
1122
+ };
1123
+ };
1124
+ responses: {
1125
+ /** Request input validation failed */
1126
+ BadRequestError: {
1127
+ content: {
1128
+ "application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
1129
+ };
1130
+ };
1131
+ /** API key or token was not valid */
1132
+ UnauthorizedError: {
1133
+ content: {
1134
+ "application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
1135
+ };
1136
+ };
1137
+ /** Permission was denied */
1138
+ ForbiddenError: {
1139
+ content: {
1140
+ "application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
1141
+ };
1142
+ };
1143
+ /** Too many requests in allowed time period */
1144
+ RateLimitError: unknown;
1145
+ /** Execution error occurred */
1146
+ InternalServerError: unknown;
1147
+ };
1148
+ };
1149
+ operations: {};
1150
+ };
1151
+ "uniform-context-types.swagger.yml": {
1152
+ paths: {};
1153
+ components: {
1154
+ schemas: {
1155
+ EnrichmentCategory: {
1156
+ /** @description The maximum visitor score allowed for enrichment keys in this category */
1157
+ cap: number;
1158
+ };
1159
+ PreviewSignal: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["Signal"] & {
1160
+ /** @description Friendly name of the signal */
1161
+ name: string;
1162
+ /** @description Description of the signal */
1163
+ description?: string;
1164
+ };
1165
+ Signal: {
1166
+ /** @description The signal strength per activation (each time its criteria are true, this score is added) */
1167
+ str: number;
1168
+ /** @description The maximum visitor score allowed for this signal */
1169
+ cap: number;
1170
+ /**
1171
+ * @description How long the signal's score should persist
1172
+ * 's' = current session (expires after a period of inactivity)
1173
+ * 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
1174
+ * 't' = transient (score tracks the current state of the criteria every time scores are updated)
1175
+ *
1176
+ * @enum {string}
1177
+ */
1178
+ dur: "s" | "p" | "t";
1179
+ crit: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
1180
+ };
1181
+ RootSignalCriteriaGroup: {
1182
+ /**
1183
+ * @description Criteria type (Group of other criteria)
1184
+ * @enum {string}
1185
+ */
1186
+ type: "G";
1187
+ /**
1188
+ * @description The logical operator to apply to the criteria groups
1189
+ * & = AND
1190
+ * | = OR
1191
+ *
1192
+ * Default is `&` if unspecified.
1193
+ *
1194
+ * @default &
1195
+ * @enum {string}
1196
+ */
1197
+ op?: "&" | "|";
1198
+ /** @description The criteria clauses that make up this grouping of criteria */
1199
+ clauses: (external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
1200
+ };
1201
+ SignalCriteriaGroup: {
1202
+ /**
1203
+ * @description Criteria type (Group of other criteria)
1204
+ * @enum {string}
1205
+ */
1206
+ type: "G";
1207
+ /**
1208
+ * @description The logical operator to apply to the criteria groups
1209
+ * & = AND
1210
+ * | = OR
1211
+ *
1212
+ * Default is `&` if unspecified.
1213
+ *
1214
+ * @enum {string}
1215
+ */
1216
+ op?: "&" | "|";
1217
+ /** @description The criteria clauses that make up this grouping of criteria */
1218
+ clauses: (external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
1219
+ };
1220
+ SignalCriteria: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["CookieCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["QueryStringCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["QuirkCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["EventCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["CurrentPageCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["PageViewCountCriteria"];
1221
+ /** @description Matches a URL query string parameter value */
1222
+ QueryStringCriteria: {
1223
+ /** @enum {string} */
1224
+ type: "QS";
1225
+ /** @description The name of the query string parameter to match */
1226
+ queryName: string;
1227
+ /** @description The value to match the query string parameter against */
1228
+ match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
1229
+ };
1230
+ /** @description Matches a web cookie value */
1231
+ CookieCriteria: {
1232
+ /** @enum {string} */
1233
+ type: "CK";
1234
+ /** @description The name of the cookie to match */
1235
+ cookieName: string;
1236
+ /** @description The value to match the cookie against */
1237
+ match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
1238
+ };
1239
+ /** @description Matches a visitor quirk key and value */
1240
+ QuirkCriteria: {
1241
+ /** @enum {string} */
1242
+ type: "QK";
1243
+ /** @description The name of the quirk key to match */
1244
+ key: string;
1245
+ /** @description The quirk value to match against */
1246
+ match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
1247
+ };
1248
+ /** @description Matches an analytics event name being fired */
1249
+ EventCriteria: {
1250
+ /** @enum {string} */
1251
+ type: "EVT";
1252
+ /** @description How to match the event name */
1253
+ event: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
1254
+ };
1255
+ /**
1256
+ * @description Matches the current page's absolute path (i.e. /path/to/page.html)
1257
+ * Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
1258
+ */
1259
+ CurrentPageCriteria: {
1260
+ /** @enum {string} */
1261
+ type: "PV";
1262
+ /** @description The page/route path to match as a page that has been visited */
1263
+ path: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
1264
+ };
1265
+ PageViewCountCriteria: {
1266
+ /** @enum {string} */
1267
+ type: "PVC";
1268
+ /** @description The expression to match the page view count against */
1269
+ match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["NumberMatch"];
1270
+ };
1271
+ /** @description Describes a match expression on a string */
1272
+ StringMatch: {
1273
+ /** @description The right hand side of the match expression */
1274
+ rhs: string;
1275
+ /**
1276
+ * @description The match operator
1277
+ * '=' = exact match
1278
+ * '~' = contains match
1279
+ * '//' = regular expression match
1280
+ *
1281
+ * Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
1282
+ *
1283
+ * @enum {string}
1284
+ */
1285
+ op: "=" | "~" | "//" | "!=" | "!~" | "!//";
1286
+ /** @description The case sensitivity of the match. Defaults to false if unspecified. */
1287
+ cs?: boolean;
1288
+ } | {
1289
+ /**
1290
+ * @description The type of match to perform
1291
+ * '*' = exists with any value
1292
+ * '!*' = does not exist
1293
+ *
1294
+ * @enum {string}
1295
+ */
1296
+ op: "*" | "!*";
1297
+ };
1298
+ /** @description Describes a match expression on a number */
1299
+ NumberMatch: {
1300
+ /** @description The right hand side of the match expression */
1301
+ rhs: number;
1302
+ /**
1303
+ * @description The type of match to perform
1304
+ * '=' = exact match
1305
+ * '!=' = not an exact match
1306
+ * '<' = less than match expression
1307
+ * '>' = greater than match expression
1308
+ *
1309
+ * @enum {string}
1310
+ */
1311
+ op: "=" | "<" | ">" | "!=";
1312
+ };
1313
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
1314
+ AggregateDimension: {
1315
+ /** @description Input dimensions to the aggregate dimension */
1316
+ inputs: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
1317
+ };
1318
+ /** @description Defines an input dimension to an aggregate dimension */
1319
+ AggregateDimensionInput: {
1320
+ /**
1321
+ * @description Dimension name to reference as an input.
1322
+ * For enrichment inputs, use CATEGORY_KEY as the dimension.
1323
+ * Enrichments, signals, and other aggregate dimensions may be referenced.
1324
+ *
1325
+ * Note that creating a cycle of aggregate dimensions is allowed, however
1326
+ * the final score will _ignore_ the cycled aggregate dimension in the result.
1327
+ * This can be used to create mutually exclusive aggregates.
1328
+ */
1329
+ dim: string;
1330
+ /**
1331
+ * @description The sign of the input dimension controls how it affects the aggregate dimension's final score.
1332
+ *
1333
+ * '+' = add to the final score
1334
+ * '-' = subtract from the final score
1335
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
1336
+ *
1337
+ * Default if unspecified: '+'
1338
+ *
1339
+ * @default +
1340
+ * @enum {string}
1341
+ */
1342
+ sign?: "+" | "-" | "c";
1343
+ };
1344
+ Test: {
1345
+ /** @description Winning variation ID - if set, the test will not run and this variation is shown to all visitors (the test is closed) */
1346
+ wv?: string;
1347
+ };
1348
+ };
1349
+ };
1350
+ operations: {};
1351
+ };
1352
+ }
1353
+
1354
+ interface components {
1355
+ schemas: {
1356
+ EnrichmentCategory: {
1357
+ /** @description The maximum visitor score allowed for enrichment keys in this category */
1358
+ cap: number;
1359
+ };
1360
+ PreviewSignal: components["schemas"]["Signal"] & {
1361
+ /** @description Friendly name of the signal */
1362
+ name: string;
1363
+ /** @description Description of the signal */
1364
+ description?: string;
1365
+ };
1366
+ Signal: {
1367
+ /** @description The signal strength per activation (each time its criteria are true, this score is added) */
1368
+ str: number;
1369
+ /** @description The maximum visitor score allowed for this signal */
1370
+ cap: number;
1371
+ /**
1372
+ * @description How long the signal's score should persist
1373
+ * 's' = current session (expires after a period of inactivity)
1374
+ * 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
1375
+ * 't' = transient (score tracks the current state of the criteria every time scores are updated)
1376
+ *
1377
+ * @enum {string}
1378
+ */
1379
+ dur: "s" | "p" | "t";
1380
+ crit: components["schemas"]["RootSignalCriteriaGroup"];
1381
+ };
1382
+ RootSignalCriteriaGroup: {
1383
+ /**
1384
+ * @description Criteria type (Group of other criteria)
1385
+ * @enum {string}
1386
+ */
1387
+ type: "G";
1388
+ /**
1389
+ * @description The logical operator to apply to the criteria groups
1390
+ * & = AND
1391
+ * | = OR
1392
+ *
1393
+ * Default is `&` if unspecified.
1394
+ *
1395
+ * @default &
1396
+ * @enum {string}
1397
+ */
1398
+ op?: "&" | "|";
1399
+ /** @description The criteria clauses that make up this grouping of criteria */
1400
+ clauses: (components["schemas"]["SignalCriteriaGroup"] | components["schemas"]["SignalCriteria"])[];
1401
+ };
1402
+ SignalCriteriaGroup: {
1403
+ /**
1404
+ * @description Criteria type (Group of other criteria)
1405
+ * @enum {string}
1406
+ */
1407
+ type: "G";
1408
+ /**
1409
+ * @description The logical operator to apply to the criteria groups
1410
+ * & = AND
1411
+ * | = OR
1412
+ *
1413
+ * Default is `&` if unspecified.
1414
+ *
1415
+ * @enum {string}
1416
+ */
1417
+ op?: "&" | "|";
1418
+ /** @description The criteria clauses that make up this grouping of criteria */
1419
+ clauses: (components["schemas"]["SignalCriteriaGroup"] | components["schemas"]["SignalCriteria"])[];
1420
+ };
1421
+ SignalCriteria: components["schemas"]["CookieCriteria"] | components["schemas"]["QueryStringCriteria"] | components["schemas"]["QuirkCriteria"] | components["schemas"]["EventCriteria"] | components["schemas"]["CurrentPageCriteria"] | components["schemas"]["PageViewCountCriteria"];
1422
+ /** @description Matches a URL query string parameter value */
1423
+ QueryStringCriteria: {
1424
+ /** @enum {string} */
1425
+ type: "QS";
1426
+ /** @description The name of the query string parameter to match */
1427
+ queryName: string;
1428
+ /** @description The value to match the query string parameter against */
1429
+ match: components["schemas"]["StringMatch"];
1430
+ };
1431
+ /** @description Matches a web cookie value */
1432
+ CookieCriteria: {
1433
+ /** @enum {string} */
1434
+ type: "CK";
1435
+ /** @description The name of the cookie to match */
1436
+ cookieName: string;
1437
+ /** @description The value to match the cookie against */
1438
+ match: components["schemas"]["StringMatch"];
1439
+ };
1440
+ /** @description Matches a visitor quirk key and value */
1441
+ QuirkCriteria: {
1442
+ /** @enum {string} */
1443
+ type: "QK";
1444
+ /** @description The name of the quirk key to match */
1445
+ key: string;
1446
+ /** @description The quirk value to match against */
1447
+ match: components["schemas"]["StringMatch"];
1448
+ };
1449
+ /** @description Matches an analytics event name being fired */
1450
+ EventCriteria: {
1451
+ /** @enum {string} */
1452
+ type: "EVT";
1453
+ /** @description How to match the event name */
1454
+ event: components["schemas"]["StringMatch"];
1455
+ };
1456
+ /**
1457
+ * @description Matches the current page's absolute path (i.e. /path/to/page.html)
1458
+ * Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
1459
+ */
1460
+ CurrentPageCriteria: {
1461
+ /** @enum {string} */
1462
+ type: "PV";
1463
+ /** @description The page/route path to match as a page that has been visited */
1464
+ path: components["schemas"]["StringMatch"];
1465
+ };
1466
+ PageViewCountCriteria: {
1467
+ /** @enum {string} */
1468
+ type: "PVC";
1469
+ /** @description The expression to match the page view count against */
1470
+ match: components["schemas"]["NumberMatch"];
1471
+ };
1472
+ /** @description Describes a match expression on a string */
1473
+ StringMatch: {
1474
+ /** @description The right hand side of the match expression */
1475
+ rhs: string;
1476
+ /**
1477
+ * @description The match operator
1478
+ * '=' = exact match
1479
+ * '~' = contains match
1480
+ * '//' = regular expression match
1481
+ *
1482
+ * Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
1483
+ *
1484
+ * @enum {string}
1485
+ */
1486
+ op: "=" | "~" | "//" | "!=" | "!~" | "!//";
1487
+ /** @description The case sensitivity of the match. Defaults to false if unspecified. */
1488
+ cs?: boolean;
1489
+ } | {
1490
+ /**
1491
+ * @description The type of match to perform
1492
+ * '*' = exists with any value
1493
+ * '!*' = does not exist
1494
+ *
1495
+ * @enum {string}
1496
+ */
1497
+ op: "*" | "!*";
1498
+ };
1499
+ /** @description Describes a match expression on a number */
1500
+ NumberMatch: {
1501
+ /** @description The right hand side of the match expression */
1502
+ rhs: number;
1503
+ /**
1504
+ * @description The type of match to perform
1505
+ * '=' = exact match
1506
+ * '!=' = not an exact match
1507
+ * '<' = less than match expression
1508
+ * '>' = greater than match expression
1509
+ *
1510
+ * @enum {string}
1511
+ */
1512
+ op: "=" | "<" | ">" | "!=";
1513
+ };
1514
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
1515
+ AggregateDimension: {
1516
+ /** @description Input dimensions to the aggregate dimension */
1517
+ inputs: components["schemas"]["AggregateDimensionInput"][];
1518
+ };
1519
+ /** @description Defines an input dimension to an aggregate dimension */
1520
+ AggregateDimensionInput: {
1521
+ /**
1522
+ * @description Dimension name to reference as an input.
1523
+ * For enrichment inputs, use CATEGORY_KEY as the dimension.
1524
+ * Enrichments, signals, and other aggregate dimensions may be referenced.
1525
+ *
1526
+ * Note that creating a cycle of aggregate dimensions is allowed, however
1527
+ * the final score will _ignore_ the cycled aggregate dimension in the result.
1528
+ * This can be used to create mutually exclusive aggregates.
1529
+ */
1530
+ dim: string;
1531
+ /**
1532
+ * @description The sign of the input dimension controls how it affects the aggregate dimension's final score.
1533
+ *
1534
+ * '+' = add to the final score
1535
+ * '-' = subtract from the final score
1536
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
1537
+ *
1538
+ * Default if unspecified: '+'
1539
+ *
1540
+ * @default +
1541
+ * @enum {string}
1542
+ */
1543
+ sign?: "+" | "-" | "c";
1544
+ };
1545
+ Test: {
1546
+ /** @description Winning variation ID - if set, the test will not run and this variation is shown to all visitors (the test is closed) */
1547
+ wv?: string;
1548
+ };
1549
+ };
1550
+ }
1551
+
1552
+ declare type EnrichmentGet = paths$6['/api/v1/enrichments']['get'];
1553
+ declare type EnrichmentGetParameters = EnrichmentGet['parameters']['query'];
1554
+ declare type EnrichmentGetResponse = EnrichmentGet['responses']['200']['content']['application/json'];
1555
+ declare type EnrichmentCategory = components$6['schemas']['EnrichmentCategory'];
1556
+ declare type EnrichmentCategoryWithValues = components$6['schemas']['EnrichmentCategoryWithValues'];
1557
+ declare type EnrichmentValue = components$6['schemas']['EnrichmentValue'];
1558
+ declare type EnrichmentPut = paths$6['/api/v1/enrichments']['put'];
1559
+ declare type EnrichmentPutParameters = EnrichmentPut['requestBody']['content']['application/json'];
1560
+ declare type EnrichmentDelete = paths$6['/api/v1/enrichments']['delete'];
1561
+ declare type EnrichmentDeleteParameters = EnrichmentDelete['requestBody']['content']['application/json'];
1562
+ declare type EnrichmentValuePut = paths$5['/api/v1/enrichment-values']['put'];
1563
+ declare type EnrichmentValuePutParameters = EnrichmentValuePut['requestBody']['content']['application/json'];
1564
+ declare type EnrichmentValueDelete = paths$5['/api/v1/enrichment-values']['delete'];
1565
+ declare type EnrichmentValueDeleteParameters = EnrichmentValueDelete['requestBody']['content']['application/json'];
1566
+ declare type ManifestGet = paths$7['/api/v2/manifest']['get'];
1567
+ declare type ManifestGetParameters = ManifestGet['parameters']['query'];
1568
+ declare type ManifestGetResponse = ManifestGet['responses']['200']['content']['application/json'];
1569
+ declare type AggregateGet = paths$4['/api/v2/aggregate']['get'];
1570
+ declare type AggregateGetParameters = AggregateGet['parameters']['query'];
1571
+ declare type AggregateGetResponse = AggregateGet['responses']['200']['content']['application/json'];
1572
+ declare type Aggregate = components$5['schemas']['AggregateData'];
1573
+ declare type AggregatePut = paths$4['/api/v2/aggregate']['put'];
1574
+ declare type AggregatePutParameters = AggregatePut['requestBody']['content']['application/json'];
1575
+ declare type AggregateDelete = paths$4['/api/v2/aggregate']['delete'];
1576
+ declare type AggregateDeleteParameters = AggregateDelete['requestBody']['content']['application/json'];
1577
+ declare type DimensionGet = paths$3['/api/v2/dimension']['get'];
1578
+ declare type DimensionGetParameters = DimensionGet['parameters']['query'];
1579
+ declare type DimensionGetResponse = DimensionGet['responses']['200']['content']['application/json'];
1580
+ declare type DimensionDefinition = components$4['schemas']['DimensionDefinition'];
1581
+ declare type QuirkGet = paths$2['/api/v2/quirk']['get'];
1582
+ declare type QuirkGetParameters = QuirkGet['parameters']['query'];
1583
+ declare type QuirkGetResponse = QuirkGet['responses']['200']['content']['application/json'];
1584
+ declare type Quirk = components$3['schemas']['Quirk'];
1585
+ declare type QuirkPut = paths$2['/api/v2/quirk']['put'];
1586
+ declare type QuirkPutParameters = QuirkPut['requestBody']['content']['application/json'];
1587
+ declare type QuirkDelete = paths$2['/api/v2/quirk']['delete'];
1588
+ declare type QuirkDeleteParameters = QuirkDelete['requestBody']['content']['application/json'];
1589
+ declare type TestGet = paths$1['/api/v2/test']['get'];
1590
+ declare type TestGetParameters = TestGet['parameters']['query'];
1591
+ declare type TestGetResponse = TestGet['responses']['200']['content']['application/json'];
1592
+ declare type Test = components$2['schemas']['Test'];
1593
+ declare type TestPut = paths$1['/api/v2/test']['put'];
1594
+ declare type TestPutParameters = TestPut['requestBody']['content']['application/json'];
1595
+ declare type TestDelete = paths$1['/api/v2/test']['delete'];
1596
+ declare type TestDeleteParameters = TestDelete['requestBody']['content']['application/json'];
1597
+ declare type SignalGet = paths['/api/v2/signal']['get'];
1598
+ declare type SignalGetParameters = SignalGet['parameters']['query'];
1599
+ declare type SignalGetResponse = SignalGet['responses']['200']['content']['application/json'];
1600
+ declare type SignalWithId = components$1['schemas']['SignalWithId'];
1601
+ declare type RootSignalCriteriaGroup = components['schemas']['RootSignalCriteriaGroup'];
1602
+ declare type CookieCriteria = components['schemas']['CookieCriteria'];
1603
+ declare type QueryStringCriteria = components['schemas']['QueryStringCriteria'];
1604
+ declare type QuirkCriteria = components['schemas']['QuirkCriteria'];
1605
+ declare type EventCriteria = components['schemas']['EventCriteria'];
1606
+ declare type CurrentPageCriteria = components['schemas']['CurrentPageCriteria'];
1607
+ declare type PageViewCountCriteria = components['schemas']['PageViewCountCriteria'];
1608
+ declare type SignalPut = paths['/api/v2/signal']['put'];
1609
+ declare type SignalPutParameters = SignalPut['requestBody']['content']['application/json'];
1610
+ declare type SignalDelete = paths['/api/v2/signal']['delete'];
1611
+ declare type SignalDeleteParameters = SignalDelete['requestBody']['content']['application/json'];
1612
+ declare type ContextDefinitions = {
1613
+ aggregates?: Array<Aggregate>;
1614
+ quirks?: Array<Quirk>;
1615
+ signals?: Array<SignalWithId>;
1616
+ enrichments?: Array<EnrichmentCategoryWithValues>;
1617
+ tests?: Array<Test>;
1618
+ };
1619
+
1620
+ export { AggregateGetParameters as A, SignalWithId as B, ContextDefinitions as C, DimensionGetParameters as D, EnrichmentGetParameters as E, CookieCriteria as F, QueryStringCriteria as G, QuirkCriteria as H, EventCriteria as I, CurrentPageCriteria as J, ManifestGetParameters as M, PageViewCountCriteria as P, QuirkGetParameters as Q, RootSignalCriteriaGroup as R, SignalGetParameters as S, TestGetParameters as T, AggregateGetResponse as a, AggregatePutParameters as b, AggregateDeleteParameters as c, DimensionGetResponse as d, EnrichmentGetResponse as e, EnrichmentPutParameters as f, EnrichmentDeleteParameters as g, EnrichmentValuePutParameters as h, EnrichmentValueDeleteParameters as i, ManifestGetResponse as j, QuirkGetResponse as k, QuirkPutParameters as l, QuirkDeleteParameters as m, SignalGetResponse as n, SignalPutParameters as o, SignalDeleteParameters as p, TestGetResponse as q, TestPutParameters as r, TestDeleteParameters as s, DimensionDefinition as t, EnrichmentCategory as u, EnrichmentCategoryWithValues as v, EnrichmentValue as w, Aggregate as x, Quirk as y, Test as z };