@uniformdev/context 19.195.0 → 19.195.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api.d.mts +1101 -1067
- package/dist/api/api.d.ts +1101 -1067
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +3 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/dist/{types-o4ZU_qKY.d.mts → types-WXZBuJXL.d.mts} +298 -279
- package/dist/{types-o4ZU_qKY.d.ts → types-WXZBuJXL.d.ts} +298 -279
- package/package.json +2 -2
@@ -372,50 +372,79 @@ declare class ManifestInstance {
|
|
372
372
|
getDimensionByKey(scoreKey: string): EnrichmentCategory | Signal | undefined;
|
373
373
|
}
|
374
374
|
|
375
|
-
/**
|
376
|
-
* This file was auto-generated by openapi-typescript.
|
377
|
-
* Do not make direct changes to the file.
|
378
|
-
*/
|
379
375
|
interface paths {
|
380
376
|
"/api/v2/manifest": {
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
377
|
+
parameters: {
|
378
|
+
query?: never;
|
379
|
+
header?: never;
|
380
|
+
path?: never;
|
381
|
+
cookie?: never;
|
382
|
+
};
|
383
|
+
/** @description Fetches the Intent Manifest for a given project.
|
384
|
+
* If no manifest has ever been published, and an API key is used that has preview manifest permissions then the current preview manifest will be returned (in delivery format).
|
385
|
+
* */
|
385
386
|
get: {
|
386
387
|
parameters: {
|
387
388
|
query: {
|
388
389
|
preview?: boolean;
|
389
390
|
projectId: string;
|
390
391
|
};
|
392
|
+
header?: never;
|
393
|
+
path?: never;
|
394
|
+
cookie?: never;
|
391
395
|
};
|
396
|
+
requestBody?: never;
|
392
397
|
responses: {
|
393
|
-
/** OK */
|
398
|
+
/** @description OK */
|
394
399
|
200: {
|
400
|
+
headers: {
|
401
|
+
[name: string]: unknown;
|
402
|
+
};
|
395
403
|
content: {
|
396
404
|
"application/json": components["schemas"]["ManifestV2"];
|
397
405
|
};
|
398
406
|
};
|
399
|
-
400:
|
400
|
-
401:
|
401
|
-
403:
|
402
|
-
/** No manifest has ever been published, and the API key does not have preview permissions */
|
407
|
+
400: components["responses"]["BadRequestError"];
|
408
|
+
401: components["responses"]["UnauthorizedError"];
|
409
|
+
403: components["responses"]["ForbiddenError"];
|
410
|
+
/** @description No manifest has ever been published, and the API key does not have preview permissions */
|
403
411
|
404: {
|
412
|
+
headers: {
|
413
|
+
[name: string]: unknown;
|
414
|
+
};
|
404
415
|
content: {
|
405
416
|
"text/plain": string;
|
406
417
|
};
|
407
418
|
};
|
408
|
-
429:
|
409
|
-
500:
|
419
|
+
429: components["responses"]["RateLimitError"];
|
420
|
+
500: components["responses"]["InternalServerError"];
|
410
421
|
};
|
411
422
|
};
|
412
|
-
|
423
|
+
put?: never;
|
424
|
+
post?: never;
|
425
|
+
delete?: never;
|
426
|
+
/** @description Handles preflight requests. This endpoint allows CORS. */
|
413
427
|
options: {
|
428
|
+
parameters: {
|
429
|
+
query?: never;
|
430
|
+
header?: never;
|
431
|
+
path?: never;
|
432
|
+
cookie?: never;
|
433
|
+
};
|
434
|
+
requestBody?: never;
|
414
435
|
responses: {
|
415
|
-
/** OK */
|
416
|
-
204:
|
436
|
+
/** @description OK */
|
437
|
+
204: {
|
438
|
+
headers: {
|
439
|
+
[name: string]: unknown;
|
440
|
+
};
|
441
|
+
content?: never;
|
442
|
+
};
|
417
443
|
};
|
418
444
|
};
|
445
|
+
head?: never;
|
446
|
+
patch?: never;
|
447
|
+
trace?: never;
|
419
448
|
};
|
420
449
|
}
|
421
450
|
interface components {
|
@@ -434,294 +463,284 @@ interface components {
|
|
434
463
|
pz?: components["schemas"]["PersonalizationManifest"];
|
435
464
|
/** @description A/B test settings */
|
436
465
|
test?: {
|
437
|
-
[key: string]:
|
466
|
+
[key: string]: components["schemas"]["Test"];
|
438
467
|
};
|
439
468
|
};
|
440
469
|
};
|
441
470
|
PersonalizationManifest: {
|
442
471
|
/** @description Map of all signals defined for personalization criteria */
|
443
472
|
sig?: {
|
444
|
-
[key: string]:
|
473
|
+
[key: string]: components["schemas"]["Signal"];
|
445
474
|
};
|
446
475
|
/** @description Map of all enrichment categories defined for personalization criteria */
|
447
476
|
enr?: {
|
448
|
-
[key: string]:
|
477
|
+
[key: string]: components["schemas"]["EnrichmentCategory"];
|
449
478
|
};
|
450
479
|
/** @description Map of all aggregate dimensions (intents or audiences) defined for personalization criteria */
|
451
480
|
agg?: {
|
452
|
-
[key: string]:
|
481
|
+
[key: string]: components["schemas"]["AggregateDimension"];
|
453
482
|
};
|
454
483
|
/** @description Percentage of visitors that will be used as a personalization control group (not shown any personalization) */
|
455
484
|
control?: number;
|
456
485
|
};
|
486
|
+
SignalCriteriaGroup: {
|
487
|
+
/**
|
488
|
+
* @description Criteria type (Group of other criteria)
|
489
|
+
* @enum {string}
|
490
|
+
*/
|
491
|
+
type: "G";
|
492
|
+
/**
|
493
|
+
* @description The logical operator to apply to the criteria groups
|
494
|
+
* & = AND
|
495
|
+
* | = OR
|
496
|
+
*
|
497
|
+
* Default is `&` if unspecified
|
498
|
+
*
|
499
|
+
* @enum {string}
|
500
|
+
*/
|
501
|
+
op?: "&" | "|";
|
502
|
+
/** @description The criteria clauses that make up this grouping of criteria */
|
503
|
+
clauses: (components["schemas"]["SignalCriteriaGroup"] | components["schemas"]["SignalCriteria"])[];
|
504
|
+
};
|
505
|
+
/** @description Describes a match expression on a string */
|
506
|
+
StringMatch: {
|
507
|
+
/** @description The right-hand side of the match expression */
|
508
|
+
rhs: string;
|
509
|
+
/**
|
510
|
+
* @description The match operator
|
511
|
+
* '=' = exact match
|
512
|
+
* '~' = contains match
|
513
|
+
* '//' = regular expression match
|
514
|
+
*
|
515
|
+
* Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
|
516
|
+
*
|
517
|
+
* @enum {string}
|
518
|
+
*/
|
519
|
+
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
520
|
+
/** @description The case sensitivity of the match. Defaults to false if unspecified */
|
521
|
+
cs?: boolean;
|
522
|
+
} | {
|
523
|
+
/**
|
524
|
+
* @description The type of match to perform
|
525
|
+
* '*' = exists with any value
|
526
|
+
* '!*' = does not exist
|
527
|
+
*
|
528
|
+
* @enum {string}
|
529
|
+
*/
|
530
|
+
op: "*" | "!*";
|
531
|
+
};
|
532
|
+
/** @description Matches a web cookie value */
|
533
|
+
CookieCriteria: {
|
534
|
+
/** @enum {string} */
|
535
|
+
type: "CK";
|
536
|
+
/** @description The name of the cookie to match */
|
537
|
+
cookieName: string;
|
538
|
+
/** @description The value to match the cookie against */
|
539
|
+
match: components["schemas"]["StringMatch"];
|
540
|
+
};
|
541
|
+
/** @description Matches a URL query string parameter value */
|
542
|
+
QueryStringCriteria: {
|
543
|
+
/** @enum {string} */
|
544
|
+
type: "QS";
|
545
|
+
/** @description The name of the query string parameter to match */
|
546
|
+
queryName: string;
|
547
|
+
/** @description The value to match the query string parameter against */
|
548
|
+
match: components["schemas"]["StringMatch"];
|
549
|
+
};
|
550
|
+
/** @description Matches a visitor quirk key and value */
|
551
|
+
QuirkCriteria: {
|
552
|
+
/** @enum {string} */
|
553
|
+
type: "QK";
|
554
|
+
/** @description The name of the quirk key to match */
|
555
|
+
key: string;
|
556
|
+
/** @description The quirk value to match against */
|
557
|
+
match: components["schemas"]["StringMatch"];
|
558
|
+
};
|
559
|
+
/** @description Matches an analytics event name being fired */
|
560
|
+
EventCriteria: {
|
561
|
+
/** @enum {string} */
|
562
|
+
type: "EVT";
|
563
|
+
/** @description How to match the event name */
|
564
|
+
event: components["schemas"]["StringMatch"];
|
565
|
+
};
|
566
|
+
/** @description Matches the current page's absolute path (i.e. /path/to/page.html)
|
567
|
+
* Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
|
568
|
+
* */
|
569
|
+
CurrentPageCriteria: {
|
570
|
+
/** @enum {string} */
|
571
|
+
type: "PV";
|
572
|
+
/** @description The page/route path to match as a page that has been visited */
|
573
|
+
path: components["schemas"]["StringMatch"];
|
574
|
+
};
|
575
|
+
/** @description Describes a match expression on a number */
|
576
|
+
NumberMatch: {
|
577
|
+
/** @description The right-hand side of the match expression */
|
578
|
+
rhs: number;
|
579
|
+
/**
|
580
|
+
* @description The type of match to perform
|
581
|
+
* '=' = exact match
|
582
|
+
* '!=' = not an exact match
|
583
|
+
* '<' = less than match expression
|
584
|
+
* '>' = greater than match expression
|
585
|
+
*
|
586
|
+
* @enum {string}
|
587
|
+
*/
|
588
|
+
op: "=" | "<" | ">" | "!=";
|
589
|
+
};
|
590
|
+
PageViewCountCriteria: {
|
591
|
+
/** @enum {string} */
|
592
|
+
type: "PVC";
|
593
|
+
/** @description The expression to match the page view count against */
|
594
|
+
match: components["schemas"]["NumberMatch"];
|
595
|
+
};
|
596
|
+
SignalCriteria: components["schemas"]["CookieCriteria"] | components["schemas"]["QueryStringCriteria"] | components["schemas"]["QuirkCriteria"] | components["schemas"]["EventCriteria"] | components["schemas"]["CurrentPageCriteria"] | components["schemas"]["PageViewCountCriteria"];
|
597
|
+
RootSignalCriteriaGroup: {
|
598
|
+
/**
|
599
|
+
* @description Criteria type (Group of other criteria)
|
600
|
+
* @enum {string}
|
601
|
+
*/
|
602
|
+
type: "G";
|
603
|
+
/**
|
604
|
+
* @description The logical operator to apply to the criteria groups
|
605
|
+
* & = AND
|
606
|
+
* | = OR
|
607
|
+
*
|
608
|
+
* Default is `&` if unspecified
|
609
|
+
*
|
610
|
+
* @default &
|
611
|
+
* @enum {string}
|
612
|
+
*/
|
613
|
+
op?: "&" | "|";
|
614
|
+
/** @description The criteria clauses that make up this grouping of criteria */
|
615
|
+
clauses: (components["schemas"]["SignalCriteriaGroup"] | components["schemas"]["SignalCriteria"])[];
|
616
|
+
};
|
617
|
+
Conversion: {
|
618
|
+
/**
|
619
|
+
* @description The frequency of the conversion event
|
620
|
+
* @enum {string}
|
621
|
+
*/
|
622
|
+
freq: "O";
|
623
|
+
};
|
624
|
+
Signal: {
|
625
|
+
/** @description The signal strength per activation (each time its criteria are true, this score is added) */
|
626
|
+
str: number;
|
627
|
+
/** @description The maximum visitor score allowed for this signal */
|
628
|
+
cap: number;
|
629
|
+
/**
|
630
|
+
* @description How long the signal's score should persist
|
631
|
+
* 's' = current session (expires after a period of inactivity)
|
632
|
+
* 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
|
633
|
+
* 't' = transient (score tracks the current state of the criteria every time scores are updated)
|
634
|
+
*
|
635
|
+
* @enum {string}
|
636
|
+
*/
|
637
|
+
dur: "s" | "p" | "t";
|
638
|
+
crit: components["schemas"]["RootSignalCriteriaGroup"];
|
639
|
+
conversion?: components["schemas"]["Conversion"] | null;
|
640
|
+
};
|
641
|
+
EnrichmentCategory: {
|
642
|
+
/** @description The maximum visitor score allowed for enrichment keys in this category */
|
643
|
+
cap: number;
|
644
|
+
};
|
645
|
+
/** @description Defines an input dimension to an aggregate dimension */
|
646
|
+
AggregateDimensionInput: {
|
647
|
+
/** @description Dimension name to reference as an input.
|
648
|
+
* For enrichment inputs, use CATEGORY_KEY as the dimension.
|
649
|
+
* Enrichments, signals, and other aggregate dimensions may be referenced.
|
650
|
+
*
|
651
|
+
* Note that creating a cycle of aggregate dimensions is allowed, however
|
652
|
+
* the final score will _ignore_ the cycled aggregate dimension in the result.
|
653
|
+
* This can be used to create mutually exclusive aggregates
|
654
|
+
* */
|
655
|
+
dim: string;
|
656
|
+
/**
|
657
|
+
* @description The sign of the input dimension controls how it affects the aggregate dimension's final score.
|
658
|
+
*
|
659
|
+
* '+' = add to the final score
|
660
|
+
* '-' = subtract from the final score
|
661
|
+
* 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
|
662
|
+
*
|
663
|
+
* Default if unspecified: '+'
|
664
|
+
*
|
665
|
+
* @default +
|
666
|
+
* @enum {string}
|
667
|
+
*/
|
668
|
+
sign?: "+" | "-" | "c";
|
669
|
+
};
|
670
|
+
/** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
|
671
|
+
AggregateDimension: {
|
672
|
+
/** @description Input dimensions to the aggregate dimension */
|
673
|
+
inputs: components["schemas"]["AggregateDimensionInput"][];
|
674
|
+
};
|
675
|
+
Test: {
|
676
|
+
/** @description Winning variation ID - if set, the test will not run and this variation is shown to all visitors (the test is closed) */
|
677
|
+
wv?: string;
|
678
|
+
};
|
679
|
+
Error: {
|
680
|
+
/** @description Error message(s) that occurred while processing the request */
|
681
|
+
errorMessage?: string[] | string;
|
682
|
+
};
|
457
683
|
};
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
schemas: {
|
464
|
-
Error: {
|
465
|
-
/** @description Error message(s) that occurred while processing the request */
|
466
|
-
errorMessage?: string[] | string;
|
467
|
-
};
|
684
|
+
responses: {
|
685
|
+
/** @description Request input validation failed */
|
686
|
+
BadRequestError: {
|
687
|
+
headers: {
|
688
|
+
[name: string]: unknown;
|
468
689
|
};
|
469
|
-
|
470
|
-
|
471
|
-
BadRequestError: {
|
472
|
-
content: {
|
473
|
-
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
474
|
-
};
|
475
|
-
};
|
476
|
-
/** API key or token was not valid */
|
477
|
-
UnauthorizedError: {
|
478
|
-
content: {
|
479
|
-
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
480
|
-
};
|
481
|
-
};
|
482
|
-
/** Permission was denied */
|
483
|
-
ForbiddenError: {
|
484
|
-
content: {
|
485
|
-
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
486
|
-
};
|
487
|
-
};
|
488
|
-
/** Resource not found */
|
489
|
-
NotFoundError: {
|
490
|
-
content: {
|
491
|
-
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
|
492
|
-
};
|
493
|
-
};
|
494
|
-
/** Too many requests in allowed time period */
|
495
|
-
RateLimitError: unknown;
|
496
|
-
/** Execution error occurred */
|
497
|
-
InternalServerError: unknown;
|
690
|
+
content: {
|
691
|
+
"application/json": components["schemas"]["Error"];
|
498
692
|
};
|
499
693
|
};
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
dur: "s" | "p" | "t";
|
530
|
-
crit: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
|
531
|
-
conversion?: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["Conversion"] | null;
|
532
|
-
};
|
533
|
-
RootSignalCriteriaGroup: {
|
534
|
-
/**
|
535
|
-
* @description Criteria type (Group of other criteria)
|
536
|
-
* @enum {string}
|
537
|
-
*/
|
538
|
-
type: "G";
|
539
|
-
/**
|
540
|
-
* @description The logical operator to apply to the criteria groups
|
541
|
-
* & = AND
|
542
|
-
* | = OR
|
543
|
-
*
|
544
|
-
* Default is `&` if unspecified
|
545
|
-
*
|
546
|
-
* @default &
|
547
|
-
* @enum {string}
|
548
|
-
*/
|
549
|
-
op?: "&" | "|";
|
550
|
-
/** @description The criteria clauses that make up this grouping of criteria */
|
551
|
-
clauses: (external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
|
552
|
-
};
|
553
|
-
Conversion: {
|
554
|
-
/**
|
555
|
-
* @description The frequency of the conversion event
|
556
|
-
* @enum {string}
|
557
|
-
*/
|
558
|
-
freq: "O";
|
559
|
-
};
|
560
|
-
SignalCriteriaGroup: {
|
561
|
-
/**
|
562
|
-
* @description Criteria type (Group of other criteria)
|
563
|
-
* @enum {string}
|
564
|
-
*/
|
565
|
-
type: "G";
|
566
|
-
/**
|
567
|
-
* @description The logical operator to apply to the criteria groups
|
568
|
-
* & = AND
|
569
|
-
* | = OR
|
570
|
-
*
|
571
|
-
* Default is `&` if unspecified
|
572
|
-
*
|
573
|
-
* @enum {string}
|
574
|
-
*/
|
575
|
-
op?: "&" | "|";
|
576
|
-
/** @description The criteria clauses that make up this grouping of criteria */
|
577
|
-
clauses: (external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
|
578
|
-
};
|
579
|
-
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"];
|
580
|
-
/** @description Matches a URL query string parameter value */
|
581
|
-
QueryStringCriteria: {
|
582
|
-
/** @enum {string} */
|
583
|
-
type: "QS";
|
584
|
-
/** @description The name of the query string parameter to match */
|
585
|
-
queryName: string;
|
586
|
-
/** @description The value to match the query string parameter against */
|
587
|
-
match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
588
|
-
};
|
589
|
-
/** @description Matches a web cookie value */
|
590
|
-
CookieCriteria: {
|
591
|
-
/** @enum {string} */
|
592
|
-
type: "CK";
|
593
|
-
/** @description The name of the cookie to match */
|
594
|
-
cookieName: string;
|
595
|
-
/** @description The value to match the cookie against */
|
596
|
-
match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
597
|
-
};
|
598
|
-
/** @description Matches a visitor quirk key and value */
|
599
|
-
QuirkCriteria: {
|
600
|
-
/** @enum {string} */
|
601
|
-
type: "QK";
|
602
|
-
/** @description The name of the quirk key to match */
|
603
|
-
key: string;
|
604
|
-
/** @description The quirk value to match against */
|
605
|
-
match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
606
|
-
};
|
607
|
-
/** @description Matches an analytics event name being fired */
|
608
|
-
EventCriteria: {
|
609
|
-
/** @enum {string} */
|
610
|
-
type: "EVT";
|
611
|
-
/** @description How to match the event name */
|
612
|
-
event: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
613
|
-
};
|
614
|
-
/**
|
615
|
-
* @description Matches the current page's absolute path (i.e. /path/to/page.html)
|
616
|
-
* Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
|
617
|
-
*/
|
618
|
-
CurrentPageCriteria: {
|
619
|
-
/** @enum {string} */
|
620
|
-
type: "PV";
|
621
|
-
/** @description The page/route path to match as a page that has been visited */
|
622
|
-
path: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
623
|
-
};
|
624
|
-
PageViewCountCriteria: {
|
625
|
-
/** @enum {string} */
|
626
|
-
type: "PVC";
|
627
|
-
/** @description The expression to match the page view count against */
|
628
|
-
match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["NumberMatch"];
|
629
|
-
};
|
630
|
-
/** @description Describes a match expression on a string */
|
631
|
-
StringMatch: {
|
632
|
-
/** @description The right-hand side of the match expression */
|
633
|
-
rhs: string;
|
634
|
-
/**
|
635
|
-
* @description The match operator
|
636
|
-
* '=' = exact match
|
637
|
-
* '~' = contains match
|
638
|
-
* '//' = regular expression match
|
639
|
-
*
|
640
|
-
* Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
|
641
|
-
*
|
642
|
-
* @enum {string}
|
643
|
-
*/
|
644
|
-
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
645
|
-
/** @description The case sensitivity of the match. Defaults to false if unspecified */
|
646
|
-
cs?: boolean;
|
647
|
-
} | {
|
648
|
-
/**
|
649
|
-
* @description The type of match to perform
|
650
|
-
* '*' = exists with any value
|
651
|
-
* '!*' = does not exist
|
652
|
-
*
|
653
|
-
* @enum {string}
|
654
|
-
*/
|
655
|
-
op: "*" | "!*";
|
656
|
-
};
|
657
|
-
/** @description Describes a match expression on a number */
|
658
|
-
NumberMatch: {
|
659
|
-
/** @description The right-hand side of the match expression */
|
660
|
-
rhs: number;
|
661
|
-
/**
|
662
|
-
* @description The type of match to perform
|
663
|
-
* '=' = exact match
|
664
|
-
* '!=' = not an exact match
|
665
|
-
* '<' = less than match expression
|
666
|
-
* '>' = greater than match expression
|
667
|
-
*
|
668
|
-
* @enum {string}
|
669
|
-
*/
|
670
|
-
op: "=" | "<" | ">" | "!=";
|
671
|
-
};
|
672
|
-
/** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
|
673
|
-
AggregateDimension: {
|
674
|
-
/** @description Input dimensions to the aggregate dimension */
|
675
|
-
inputs: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
|
676
|
-
};
|
677
|
-
/** @description Defines an input dimension to an aggregate dimension */
|
678
|
-
AggregateDimensionInput: {
|
679
|
-
/**
|
680
|
-
* @description Dimension name to reference as an input.
|
681
|
-
* For enrichment inputs, use CATEGORY_KEY as the dimension.
|
682
|
-
* Enrichments, signals, and other aggregate dimensions may be referenced.
|
683
|
-
*
|
684
|
-
* Note that creating a cycle of aggregate dimensions is allowed, however
|
685
|
-
* the final score will _ignore_ the cycled aggregate dimension in the result.
|
686
|
-
* This can be used to create mutually exclusive aggregates
|
687
|
-
*/
|
688
|
-
dim: string;
|
689
|
-
/**
|
690
|
-
* @description The sign of the input dimension controls how it affects the aggregate dimension's final score.
|
691
|
-
*
|
692
|
-
* '+' = add to the final score
|
693
|
-
* '-' = subtract from the final score
|
694
|
-
* 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
|
695
|
-
*
|
696
|
-
* Default if unspecified: '+'
|
697
|
-
*
|
698
|
-
* @default +
|
699
|
-
* @enum {string}
|
700
|
-
*/
|
701
|
-
sign?: "+" | "-" | "c";
|
702
|
-
};
|
703
|
-
Test: {
|
704
|
-
/** @description Winning variation ID - if set, the test will not run and this variation is shown to all visitors (the test is closed) */
|
705
|
-
wv?: string;
|
706
|
-
};
|
694
|
+
/** @description API key or token was not valid */
|
695
|
+
UnauthorizedError: {
|
696
|
+
headers: {
|
697
|
+
[name: string]: unknown;
|
698
|
+
};
|
699
|
+
content: {
|
700
|
+
"application/json": components["schemas"]["Error"];
|
701
|
+
};
|
702
|
+
};
|
703
|
+
/** @description Permission was denied */
|
704
|
+
ForbiddenError: {
|
705
|
+
headers: {
|
706
|
+
[name: string]: unknown;
|
707
|
+
};
|
708
|
+
content: {
|
709
|
+
"application/json": components["schemas"]["Error"];
|
710
|
+
};
|
711
|
+
};
|
712
|
+
/** @description Too many requests in allowed time period */
|
713
|
+
RateLimitError: {
|
714
|
+
headers: {
|
715
|
+
[name: string]: unknown;
|
716
|
+
};
|
717
|
+
content?: never;
|
718
|
+
};
|
719
|
+
/** @description Execution error occurred */
|
720
|
+
InternalServerError: {
|
721
|
+
headers: {
|
722
|
+
[name: string]: unknown;
|
707
723
|
};
|
724
|
+
content?: never;
|
708
725
|
};
|
709
|
-
operations: {};
|
710
726
|
};
|
727
|
+
parameters: never;
|
728
|
+
requestBodies: never;
|
729
|
+
headers: never;
|
730
|
+
pathItems: never;
|
711
731
|
}
|
712
732
|
|
713
|
-
type SharedTypes = external['uniform-context-types.swagger.yml']['components']['schemas'];
|
714
733
|
type ManifestV2 = components['schemas']['ManifestV2'];
|
715
734
|
type PersonalizationManifest = components['schemas']['PersonalizationManifest'];
|
716
|
-
type Signal =
|
717
|
-
type SignalCriteriaGroup =
|
718
|
-
type SignalCriteria =
|
719
|
-
type EnrichmentCategory =
|
720
|
-
type StringMatch =
|
721
|
-
type NumberMatch =
|
722
|
-
type TestDefinition =
|
723
|
-
type AggregateDimension =
|
724
|
-
type AggregateDimensionInput =
|
735
|
+
type Signal = components['schemas']['Signal'];
|
736
|
+
type SignalCriteriaGroup = components['schemas']['SignalCriteriaGroup'];
|
737
|
+
type SignalCriteria = components['schemas']['SignalCriteria'];
|
738
|
+
type EnrichmentCategory = components['schemas']['EnrichmentCategory'];
|
739
|
+
type StringMatch = components['schemas']['StringMatch'];
|
740
|
+
type NumberMatch = components['schemas']['NumberMatch'];
|
741
|
+
type TestDefinition = components['schemas']['Test'];
|
742
|
+
type AggregateDimension = components['schemas']['AggregateDimension'];
|
743
|
+
type AggregateDimensionInput = components['schemas']['AggregateDimensionInput'];
|
725
744
|
|
726
745
|
declare class GroupCriteriaEvaluator {
|
727
746
|
#private;
|