@uniformdev/context 19.135.0 → 19.135.1-alpha.11

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.
@@ -1,4 +1,4 @@
1
- import { ay as paths$7, N as ManifestV2 } from '../types-WtfxfDct.mjs';
1
+ import { aC as paths$7, N as ManifestV2 } from '../types-o4ZU_qKY.mjs';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
@@ -74,6 +74,7 @@ interface components$6 {
74
74
  */
75
75
  dur: "s" | "p" | "t";
76
76
  crit: components$6["schemas"]["RootSignalCriteriaGroup"];
77
+ conversion?: components$6["schemas"]["Conversion"] | null;
77
78
  };
78
79
  RootSignalCriteriaGroup: {
79
80
  /**
@@ -86,7 +87,7 @@ interface components$6 {
86
87
  * & = AND
87
88
  * | = OR
88
89
  *
89
- * Default is `&` if unspecified.
90
+ * Default is `&` if unspecified
90
91
  *
91
92
  * @default &
92
93
  * @enum {string}
@@ -95,6 +96,13 @@ interface components$6 {
95
96
  /** @description The criteria clauses that make up this grouping of criteria */
96
97
  clauses: (components$6["schemas"]["SignalCriteriaGroup"] | components$6["schemas"]["SignalCriteria"])[];
97
98
  };
99
+ Conversion: {
100
+ /**
101
+ * @description The frequency of the conversion event
102
+ * @enum {string}
103
+ */
104
+ freq: "O";
105
+ };
98
106
  SignalCriteriaGroup: {
99
107
  /**
100
108
  * @description Criteria type (Group of other criteria)
@@ -106,7 +114,7 @@ interface components$6 {
106
114
  * & = AND
107
115
  * | = OR
108
116
  *
109
- * Default is `&` if unspecified.
117
+ * Default is `&` if unspecified
110
118
  *
111
119
  * @enum {string}
112
120
  */
@@ -167,7 +175,7 @@ interface components$6 {
167
175
  };
168
176
  /** @description Describes a match expression on a string */
169
177
  StringMatch: {
170
- /** @description The right hand side of the match expression */
178
+ /** @description The right-hand side of the match expression */
171
179
  rhs: string;
172
180
  /**
173
181
  * @description The match operator
@@ -180,7 +188,7 @@ interface components$6 {
180
188
  * @enum {string}
181
189
  */
182
190
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
183
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
191
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
184
192
  cs?: boolean;
185
193
  } | {
186
194
  /**
@@ -194,7 +202,7 @@ interface components$6 {
194
202
  };
195
203
  /** @description Describes a match expression on a number */
196
204
  NumberMatch: {
197
- /** @description The right hand side of the match expression */
205
+ /** @description The right-hand side of the match expression */
198
206
  rhs: number;
199
207
  /**
200
208
  * @description The type of match to perform
@@ -207,7 +215,7 @@ interface components$6 {
207
215
  */
208
216
  op: "=" | "<" | ">" | "!=";
209
217
  };
210
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
218
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
211
219
  AggregateDimension: {
212
220
  /** @description Input dimensions to the aggregate dimension */
213
221
  inputs: components$6["schemas"]["AggregateDimensionInput"][];
@@ -221,7 +229,7 @@ interface components$6 {
221
229
  *
222
230
  * Note that creating a cycle of aggregate dimensions is allowed, however
223
231
  * the final score will _ignore_ the cycled aggregate dimension in the result.
224
- * This can be used to create mutually exclusive aggregates.
232
+ * This can be used to create mutually exclusive aggregates
225
233
  */
226
234
  dim: string;
227
235
  /**
@@ -229,7 +237,7 @@ interface components$6 {
229
237
  *
230
238
  * '+' = add to the final score
231
239
  * '-' = subtract from the final score
232
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
240
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
233
241
  *
234
242
  * Default if unspecified: '+'
235
243
  *
@@ -787,6 +795,7 @@ interface external$4 {
787
795
  */
788
796
  dur: "s" | "p" | "t";
789
797
  crit: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
798
+ conversion?: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["Conversion"] | null;
790
799
  };
791
800
  RootSignalCriteriaGroup: {
792
801
  /**
@@ -799,7 +808,7 @@ interface external$4 {
799
808
  * & = AND
800
809
  * | = OR
801
810
  *
802
- * Default is `&` if unspecified.
811
+ * Default is `&` if unspecified
803
812
  *
804
813
  * @default &
805
814
  * @enum {string}
@@ -808,6 +817,13 @@ interface external$4 {
808
817
  /** @description The criteria clauses that make up this grouping of criteria */
809
818
  clauses: (external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
810
819
  };
820
+ Conversion: {
821
+ /**
822
+ * @description The frequency of the conversion event
823
+ * @enum {string}
824
+ */
825
+ freq: "O";
826
+ };
811
827
  SignalCriteriaGroup: {
812
828
  /**
813
829
  * @description Criteria type (Group of other criteria)
@@ -819,7 +835,7 @@ interface external$4 {
819
835
  * & = AND
820
836
  * | = OR
821
837
  *
822
- * Default is `&` if unspecified.
838
+ * Default is `&` if unspecified
823
839
  *
824
840
  * @enum {string}
825
841
  */
@@ -880,7 +896,7 @@ interface external$4 {
880
896
  };
881
897
  /** @description Describes a match expression on a string */
882
898
  StringMatch: {
883
- /** @description The right hand side of the match expression */
899
+ /** @description The right-hand side of the match expression */
884
900
  rhs: string;
885
901
  /**
886
902
  * @description The match operator
@@ -893,7 +909,7 @@ interface external$4 {
893
909
  * @enum {string}
894
910
  */
895
911
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
896
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
912
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
897
913
  cs?: boolean;
898
914
  } | {
899
915
  /**
@@ -907,7 +923,7 @@ interface external$4 {
907
923
  };
908
924
  /** @description Describes a match expression on a number */
909
925
  NumberMatch: {
910
- /** @description The right hand side of the match expression */
926
+ /** @description The right-hand side of the match expression */
911
927
  rhs: number;
912
928
  /**
913
929
  * @description The type of match to perform
@@ -920,7 +936,7 @@ interface external$4 {
920
936
  */
921
937
  op: "=" | "<" | ">" | "!=";
922
938
  };
923
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
939
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
924
940
  AggregateDimension: {
925
941
  /** @description Input dimensions to the aggregate dimension */
926
942
  inputs: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -934,7 +950,7 @@ interface external$4 {
934
950
  *
935
951
  * Note that creating a cycle of aggregate dimensions is allowed, however
936
952
  * the final score will _ignore_ the cycled aggregate dimension in the result.
937
- * This can be used to create mutually exclusive aggregates.
953
+ * This can be used to create mutually exclusive aggregates
938
954
  */
939
955
  dim: string;
940
956
  /**
@@ -942,7 +958,7 @@ interface external$4 {
942
958
  *
943
959
  * '+' = add to the final score
944
960
  * '-' = subtract from the final score
945
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
961
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
946
962
  *
947
963
  * Default if unspecified: '+'
948
964
  *
@@ -1382,6 +1398,7 @@ interface external$1 {
1382
1398
  */
1383
1399
  dur: "s" | "p" | "t";
1384
1400
  crit: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
1401
+ conversion?: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["Conversion"] | null;
1385
1402
  };
1386
1403
  RootSignalCriteriaGroup: {
1387
1404
  /**
@@ -1394,7 +1411,7 @@ interface external$1 {
1394
1411
  * & = AND
1395
1412
  * | = OR
1396
1413
  *
1397
- * Default is `&` if unspecified.
1414
+ * Default is `&` if unspecified
1398
1415
  *
1399
1416
  * @default &
1400
1417
  * @enum {string}
@@ -1403,6 +1420,13 @@ interface external$1 {
1403
1420
  /** @description The criteria clauses that make up this grouping of criteria */
1404
1421
  clauses: (external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
1405
1422
  };
1423
+ Conversion: {
1424
+ /**
1425
+ * @description The frequency of the conversion event
1426
+ * @enum {string}
1427
+ */
1428
+ freq: "O";
1429
+ };
1406
1430
  SignalCriteriaGroup: {
1407
1431
  /**
1408
1432
  * @description Criteria type (Group of other criteria)
@@ -1414,7 +1438,7 @@ interface external$1 {
1414
1438
  * & = AND
1415
1439
  * | = OR
1416
1440
  *
1417
- * Default is `&` if unspecified.
1441
+ * Default is `&` if unspecified
1418
1442
  *
1419
1443
  * @enum {string}
1420
1444
  */
@@ -1475,7 +1499,7 @@ interface external$1 {
1475
1499
  };
1476
1500
  /** @description Describes a match expression on a string */
1477
1501
  StringMatch: {
1478
- /** @description The right hand side of the match expression */
1502
+ /** @description The right-hand side of the match expression */
1479
1503
  rhs: string;
1480
1504
  /**
1481
1505
  * @description The match operator
@@ -1488,7 +1512,7 @@ interface external$1 {
1488
1512
  * @enum {string}
1489
1513
  */
1490
1514
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
1491
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
1515
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
1492
1516
  cs?: boolean;
1493
1517
  } | {
1494
1518
  /**
@@ -1502,7 +1526,7 @@ interface external$1 {
1502
1526
  };
1503
1527
  /** @description Describes a match expression on a number */
1504
1528
  NumberMatch: {
1505
- /** @description The right hand side of the match expression */
1529
+ /** @description The right-hand side of the match expression */
1506
1530
  rhs: number;
1507
1531
  /**
1508
1532
  * @description The type of match to perform
@@ -1515,7 +1539,7 @@ interface external$1 {
1515
1539
  */
1516
1540
  op: "=" | "<" | ">" | "!=";
1517
1541
  };
1518
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
1542
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
1519
1543
  AggregateDimension: {
1520
1544
  /** @description Input dimensions to the aggregate dimension */
1521
1545
  inputs: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -1529,7 +1553,7 @@ interface external$1 {
1529
1553
  *
1530
1554
  * Note that creating a cycle of aggregate dimensions is allowed, however
1531
1555
  * the final score will _ignore_ the cycled aggregate dimension in the result.
1532
- * This can be used to create mutually exclusive aggregates.
1556
+ * This can be used to create mutually exclusive aggregates
1533
1557
  */
1534
1558
  dim: string;
1535
1559
  /**
@@ -1537,7 +1561,7 @@ interface external$1 {
1537
1561
  *
1538
1562
  * '+' = add to the final score
1539
1563
  * '-' = subtract from the final score
1540
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
1564
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
1541
1565
  *
1542
1566
  * Default if unspecified: '+'
1543
1567
  *
package/dist/api/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ay as paths$7, N as ManifestV2 } from '../types-WtfxfDct.js';
1
+ import { aC as paths$7, N as ManifestV2 } from '../types-o4ZU_qKY.js';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
@@ -74,6 +74,7 @@ interface components$6 {
74
74
  */
75
75
  dur: "s" | "p" | "t";
76
76
  crit: components$6["schemas"]["RootSignalCriteriaGroup"];
77
+ conversion?: components$6["schemas"]["Conversion"] | null;
77
78
  };
78
79
  RootSignalCriteriaGroup: {
79
80
  /**
@@ -86,7 +87,7 @@ interface components$6 {
86
87
  * & = AND
87
88
  * | = OR
88
89
  *
89
- * Default is `&` if unspecified.
90
+ * Default is `&` if unspecified
90
91
  *
91
92
  * @default &
92
93
  * @enum {string}
@@ -95,6 +96,13 @@ interface components$6 {
95
96
  /** @description The criteria clauses that make up this grouping of criteria */
96
97
  clauses: (components$6["schemas"]["SignalCriteriaGroup"] | components$6["schemas"]["SignalCriteria"])[];
97
98
  };
99
+ Conversion: {
100
+ /**
101
+ * @description The frequency of the conversion event
102
+ * @enum {string}
103
+ */
104
+ freq: "O";
105
+ };
98
106
  SignalCriteriaGroup: {
99
107
  /**
100
108
  * @description Criteria type (Group of other criteria)
@@ -106,7 +114,7 @@ interface components$6 {
106
114
  * & = AND
107
115
  * | = OR
108
116
  *
109
- * Default is `&` if unspecified.
117
+ * Default is `&` if unspecified
110
118
  *
111
119
  * @enum {string}
112
120
  */
@@ -167,7 +175,7 @@ interface components$6 {
167
175
  };
168
176
  /** @description Describes a match expression on a string */
169
177
  StringMatch: {
170
- /** @description The right hand side of the match expression */
178
+ /** @description The right-hand side of the match expression */
171
179
  rhs: string;
172
180
  /**
173
181
  * @description The match operator
@@ -180,7 +188,7 @@ interface components$6 {
180
188
  * @enum {string}
181
189
  */
182
190
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
183
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
191
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
184
192
  cs?: boolean;
185
193
  } | {
186
194
  /**
@@ -194,7 +202,7 @@ interface components$6 {
194
202
  };
195
203
  /** @description Describes a match expression on a number */
196
204
  NumberMatch: {
197
- /** @description The right hand side of the match expression */
205
+ /** @description The right-hand side of the match expression */
198
206
  rhs: number;
199
207
  /**
200
208
  * @description The type of match to perform
@@ -207,7 +215,7 @@ interface components$6 {
207
215
  */
208
216
  op: "=" | "<" | ">" | "!=";
209
217
  };
210
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
218
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
211
219
  AggregateDimension: {
212
220
  /** @description Input dimensions to the aggregate dimension */
213
221
  inputs: components$6["schemas"]["AggregateDimensionInput"][];
@@ -221,7 +229,7 @@ interface components$6 {
221
229
  *
222
230
  * Note that creating a cycle of aggregate dimensions is allowed, however
223
231
  * the final score will _ignore_ the cycled aggregate dimension in the result.
224
- * This can be used to create mutually exclusive aggregates.
232
+ * This can be used to create mutually exclusive aggregates
225
233
  */
226
234
  dim: string;
227
235
  /**
@@ -229,7 +237,7 @@ interface components$6 {
229
237
  *
230
238
  * '+' = add to the final score
231
239
  * '-' = subtract from the final score
232
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
240
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
233
241
  *
234
242
  * Default if unspecified: '+'
235
243
  *
@@ -787,6 +795,7 @@ interface external$4 {
787
795
  */
788
796
  dur: "s" | "p" | "t";
789
797
  crit: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
798
+ conversion?: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["Conversion"] | null;
790
799
  };
791
800
  RootSignalCriteriaGroup: {
792
801
  /**
@@ -799,7 +808,7 @@ interface external$4 {
799
808
  * & = AND
800
809
  * | = OR
801
810
  *
802
- * Default is `&` if unspecified.
811
+ * Default is `&` if unspecified
803
812
  *
804
813
  * @default &
805
814
  * @enum {string}
@@ -808,6 +817,13 @@ interface external$4 {
808
817
  /** @description The criteria clauses that make up this grouping of criteria */
809
818
  clauses: (external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
810
819
  };
820
+ Conversion: {
821
+ /**
822
+ * @description The frequency of the conversion event
823
+ * @enum {string}
824
+ */
825
+ freq: "O";
826
+ };
811
827
  SignalCriteriaGroup: {
812
828
  /**
813
829
  * @description Criteria type (Group of other criteria)
@@ -819,7 +835,7 @@ interface external$4 {
819
835
  * & = AND
820
836
  * | = OR
821
837
  *
822
- * Default is `&` if unspecified.
838
+ * Default is `&` if unspecified
823
839
  *
824
840
  * @enum {string}
825
841
  */
@@ -880,7 +896,7 @@ interface external$4 {
880
896
  };
881
897
  /** @description Describes a match expression on a string */
882
898
  StringMatch: {
883
- /** @description The right hand side of the match expression */
899
+ /** @description The right-hand side of the match expression */
884
900
  rhs: string;
885
901
  /**
886
902
  * @description The match operator
@@ -893,7 +909,7 @@ interface external$4 {
893
909
  * @enum {string}
894
910
  */
895
911
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
896
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
912
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
897
913
  cs?: boolean;
898
914
  } | {
899
915
  /**
@@ -907,7 +923,7 @@ interface external$4 {
907
923
  };
908
924
  /** @description Describes a match expression on a number */
909
925
  NumberMatch: {
910
- /** @description The right hand side of the match expression */
926
+ /** @description The right-hand side of the match expression */
911
927
  rhs: number;
912
928
  /**
913
929
  * @description The type of match to perform
@@ -920,7 +936,7 @@ interface external$4 {
920
936
  */
921
937
  op: "=" | "<" | ">" | "!=";
922
938
  };
923
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
939
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
924
940
  AggregateDimension: {
925
941
  /** @description Input dimensions to the aggregate dimension */
926
942
  inputs: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -934,7 +950,7 @@ interface external$4 {
934
950
  *
935
951
  * Note that creating a cycle of aggregate dimensions is allowed, however
936
952
  * the final score will _ignore_ the cycled aggregate dimension in the result.
937
- * This can be used to create mutually exclusive aggregates.
953
+ * This can be used to create mutually exclusive aggregates
938
954
  */
939
955
  dim: string;
940
956
  /**
@@ -942,7 +958,7 @@ interface external$4 {
942
958
  *
943
959
  * '+' = add to the final score
944
960
  * '-' = subtract from the final score
945
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
961
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
946
962
  *
947
963
  * Default if unspecified: '+'
948
964
  *
@@ -1382,6 +1398,7 @@ interface external$1 {
1382
1398
  */
1383
1399
  dur: "s" | "p" | "t";
1384
1400
  crit: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
1401
+ conversion?: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["Conversion"] | null;
1385
1402
  };
1386
1403
  RootSignalCriteriaGroup: {
1387
1404
  /**
@@ -1394,7 +1411,7 @@ interface external$1 {
1394
1411
  * & = AND
1395
1412
  * | = OR
1396
1413
  *
1397
- * Default is `&` if unspecified.
1414
+ * Default is `&` if unspecified
1398
1415
  *
1399
1416
  * @default &
1400
1417
  * @enum {string}
@@ -1403,6 +1420,13 @@ interface external$1 {
1403
1420
  /** @description The criteria clauses that make up this grouping of criteria */
1404
1421
  clauses: (external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
1405
1422
  };
1423
+ Conversion: {
1424
+ /**
1425
+ * @description The frequency of the conversion event
1426
+ * @enum {string}
1427
+ */
1428
+ freq: "O";
1429
+ };
1406
1430
  SignalCriteriaGroup: {
1407
1431
  /**
1408
1432
  * @description Criteria type (Group of other criteria)
@@ -1414,7 +1438,7 @@ interface external$1 {
1414
1438
  * & = AND
1415
1439
  * | = OR
1416
1440
  *
1417
- * Default is `&` if unspecified.
1441
+ * Default is `&` if unspecified
1418
1442
  *
1419
1443
  * @enum {string}
1420
1444
  */
@@ -1475,7 +1499,7 @@ interface external$1 {
1475
1499
  };
1476
1500
  /** @description Describes a match expression on a string */
1477
1501
  StringMatch: {
1478
- /** @description The right hand side of the match expression */
1502
+ /** @description The right-hand side of the match expression */
1479
1503
  rhs: string;
1480
1504
  /**
1481
1505
  * @description The match operator
@@ -1488,7 +1512,7 @@ interface external$1 {
1488
1512
  * @enum {string}
1489
1513
  */
1490
1514
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
1491
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
1515
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
1492
1516
  cs?: boolean;
1493
1517
  } | {
1494
1518
  /**
@@ -1502,7 +1526,7 @@ interface external$1 {
1502
1526
  };
1503
1527
  /** @description Describes a match expression on a number */
1504
1528
  NumberMatch: {
1505
- /** @description The right hand side of the match expression */
1529
+ /** @description The right-hand side of the match expression */
1506
1530
  rhs: number;
1507
1531
  /**
1508
1532
  * @description The type of match to perform
@@ -1515,7 +1539,7 @@ interface external$1 {
1515
1539
  */
1516
1540
  op: "=" | "<" | ">" | "!=";
1517
1541
  };
1518
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
1542
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
1519
1543
  AggregateDimension: {
1520
1544
  /** @description Input dimensions to the aggregate dimension */
1521
1545
  inputs: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -1529,7 +1553,7 @@ interface external$1 {
1529
1553
  *
1530
1554
  * Note that creating a cycle of aggregate dimensions is allowed, however
1531
1555
  * the final score will _ignore_ the cycled aggregate dimension in the result.
1532
- * This can be used to create mutually exclusive aggregates.
1556
+ * This can be used to create mutually exclusive aggregates
1533
1557
  */
1534
1558
  dim: string;
1535
1559
  /**
@@ -1537,7 +1561,7 @@ interface external$1 {
1537
1561
  *
1538
1562
  * '+' = add to the final score
1539
1563
  * '-' = subtract from the final score
1540
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
1564
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
1541
1565
  *
1542
1566
  * Default if unspecified: '+'
1543
1567
  *
package/dist/api/api.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __typeError = (msg) => {
9
+ throw TypeError(msg);
10
+ };
8
11
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
12
  var __export = (target, all) => {
10
13
  for (var name in all)
@@ -27,23 +30,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
30
  mod
28
31
  ));
29
32
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var __publicField = (obj, key, value) => {
31
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
32
- return value;
33
- };
34
- var __accessCheck = (obj, member, msg) => {
35
- if (!member.has(obj))
36
- throw TypeError("Cannot " + msg);
37
- };
38
- var __privateGet = (obj, member, getter) => {
39
- __accessCheck(obj, member, "read from private field");
40
- return getter ? getter.call(obj) : member.get(obj);
41
- };
42
- var __privateAdd = (obj, member, value) => {
43
- if (member.has(obj))
44
- throw TypeError("Cannot add the same private member more than once");
45
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
46
- };
33
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
34
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
35
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
36
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
47
37
 
48
38
  // src/api/api.ts
49
39
  var api_exports = {};
@@ -195,8 +185,7 @@ var ApiClient = class _ApiClient {
195
185
  return url;
196
186
  }
197
187
  ensureApiHost(apiHost) {
198
- if (!apiHost)
199
- return "https://uniform.app";
188
+ if (!apiHost) return "https://uniform.app";
200
189
  if (!(apiHost == null ? void 0 : apiHost.startsWith("http"))) {
201
190
  throw new Error('Your apiHost must start with "http"');
202
191
  }
package/dist/api/api.mjs CHANGED
@@ -1,22 +1,12 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
- var __accessCheck = (obj, member, msg) => {
8
- if (!member.has(obj))
9
- throw TypeError("Cannot " + msg);
10
- };
11
- var __privateGet = (obj, member, getter) => {
12
- __accessCheck(obj, member, "read from private field");
13
- return getter ? getter.call(obj) : member.get(obj);
14
- };
15
- var __privateAdd = (obj, member, value) => {
16
- if (member.has(obj))
17
- throw TypeError("Cannot add the same private member more than once");
18
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
2
+ var __typeError = (msg) => {
3
+ throw TypeError(msg);
19
4
  };
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
8
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
9
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
20
10
 
21
11
  // src/api/apiClientUtils.ts
22
12
  import pLimit from "p-limit";
@@ -130,8 +120,7 @@ var ApiClient = class _ApiClient {
130
120
  return url;
131
121
  }
132
122
  ensureApiHost(apiHost) {
133
- if (!apiHost)
134
- return "https://uniform.app";
123
+ if (!apiHost) return "https://uniform.app";
135
124
  if (!(apiHost == null ? void 0 : apiHost.startsWith("http"))) {
136
125
  throw new Error('Your apiHost must start with "http"');
137
126
  }