@uniformdev/context 19.158.0 → 19.159.1-alpha.16

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 { aC as paths$7, N as ManifestV2 } from '../types-ZjAbVh_D.mjs';
1
+ import { aC as paths$7, N as ManifestV2 } from '../types-KWnn2ElZ.mjs';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
@@ -87,7 +87,7 @@ interface components$6 {
87
87
  * & = AND
88
88
  * | = OR
89
89
  *
90
- * Default is `&` if unspecified.
90
+ * Default is `&` if unspecified
91
91
  *
92
92
  * @default &
93
93
  * @enum {string}
@@ -114,7 +114,7 @@ interface components$6 {
114
114
  * & = AND
115
115
  * | = OR
116
116
  *
117
- * Default is `&` if unspecified.
117
+ * Default is `&` if unspecified
118
118
  *
119
119
  * @enum {string}
120
120
  */
@@ -175,7 +175,7 @@ interface components$6 {
175
175
  };
176
176
  /** @description Describes a match expression on a string */
177
177
  StringMatch: {
178
- /** @description The right hand side of the match expression */
178
+ /** @description The right-hand side of the match expression */
179
179
  rhs: string;
180
180
  /**
181
181
  * @description The match operator
@@ -188,7 +188,7 @@ interface components$6 {
188
188
  * @enum {string}
189
189
  */
190
190
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
191
- /** @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 */
192
192
  cs?: boolean;
193
193
  } | {
194
194
  /**
@@ -202,7 +202,7 @@ interface components$6 {
202
202
  };
203
203
  /** @description Describes a match expression on a number */
204
204
  NumberMatch: {
205
- /** @description The right hand side of the match expression */
205
+ /** @description The right-hand side of the match expression */
206
206
  rhs: number;
207
207
  /**
208
208
  * @description The type of match to perform
@@ -215,7 +215,7 @@ interface components$6 {
215
215
  */
216
216
  op: "=" | "<" | ">" | "!=";
217
217
  };
218
- /** @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 */
219
219
  AggregateDimension: {
220
220
  /** @description Input dimensions to the aggregate dimension */
221
221
  inputs: components$6["schemas"]["AggregateDimensionInput"][];
@@ -229,7 +229,7 @@ interface components$6 {
229
229
  *
230
230
  * Note that creating a cycle of aggregate dimensions is allowed, however
231
231
  * the final score will _ignore_ the cycled aggregate dimension in the result.
232
- * This can be used to create mutually exclusive aggregates.
232
+ * This can be used to create mutually exclusive aggregates
233
233
  */
234
234
  dim: string;
235
235
  /**
@@ -237,7 +237,7 @@ interface components$6 {
237
237
  *
238
238
  * '+' = add to the final score
239
239
  * '-' = subtract from the final score
240
- * '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)
241
241
  *
242
242
  * Default if unspecified: '+'
243
243
  *
@@ -808,7 +808,7 @@ interface external$4 {
808
808
  * & = AND
809
809
  * | = OR
810
810
  *
811
- * Default is `&` if unspecified.
811
+ * Default is `&` if unspecified
812
812
  *
813
813
  * @default &
814
814
  * @enum {string}
@@ -835,7 +835,7 @@ interface external$4 {
835
835
  * & = AND
836
836
  * | = OR
837
837
  *
838
- * Default is `&` if unspecified.
838
+ * Default is `&` if unspecified
839
839
  *
840
840
  * @enum {string}
841
841
  */
@@ -896,7 +896,7 @@ interface external$4 {
896
896
  };
897
897
  /** @description Describes a match expression on a string */
898
898
  StringMatch: {
899
- /** @description The right hand side of the match expression */
899
+ /** @description The right-hand side of the match expression */
900
900
  rhs: string;
901
901
  /**
902
902
  * @description The match operator
@@ -909,7 +909,7 @@ interface external$4 {
909
909
  * @enum {string}
910
910
  */
911
911
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
912
- /** @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 */
913
913
  cs?: boolean;
914
914
  } | {
915
915
  /**
@@ -923,7 +923,7 @@ interface external$4 {
923
923
  };
924
924
  /** @description Describes a match expression on a number */
925
925
  NumberMatch: {
926
- /** @description The right hand side of the match expression */
926
+ /** @description The right-hand side of the match expression */
927
927
  rhs: number;
928
928
  /**
929
929
  * @description The type of match to perform
@@ -936,7 +936,7 @@ interface external$4 {
936
936
  */
937
937
  op: "=" | "<" | ">" | "!=";
938
938
  };
939
- /** @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 */
940
940
  AggregateDimension: {
941
941
  /** @description Input dimensions to the aggregate dimension */
942
942
  inputs: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -950,7 +950,7 @@ interface external$4 {
950
950
  *
951
951
  * Note that creating a cycle of aggregate dimensions is allowed, however
952
952
  * the final score will _ignore_ the cycled aggregate dimension in the result.
953
- * This can be used to create mutually exclusive aggregates.
953
+ * This can be used to create mutually exclusive aggregates
954
954
  */
955
955
  dim: string;
956
956
  /**
@@ -958,7 +958,7 @@ interface external$4 {
958
958
  *
959
959
  * '+' = add to the final score
960
960
  * '-' = subtract from the final score
961
- * '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)
962
962
  *
963
963
  * Default if unspecified: '+'
964
964
  *
@@ -1411,7 +1411,7 @@ interface external$1 {
1411
1411
  * & = AND
1412
1412
  * | = OR
1413
1413
  *
1414
- * Default is `&` if unspecified.
1414
+ * Default is `&` if unspecified
1415
1415
  *
1416
1416
  * @default &
1417
1417
  * @enum {string}
@@ -1438,7 +1438,7 @@ interface external$1 {
1438
1438
  * & = AND
1439
1439
  * | = OR
1440
1440
  *
1441
- * Default is `&` if unspecified.
1441
+ * Default is `&` if unspecified
1442
1442
  *
1443
1443
  * @enum {string}
1444
1444
  */
@@ -1499,7 +1499,7 @@ interface external$1 {
1499
1499
  };
1500
1500
  /** @description Describes a match expression on a string */
1501
1501
  StringMatch: {
1502
- /** @description The right hand side of the match expression */
1502
+ /** @description The right-hand side of the match expression */
1503
1503
  rhs: string;
1504
1504
  /**
1505
1505
  * @description The match operator
@@ -1512,7 +1512,7 @@ interface external$1 {
1512
1512
  * @enum {string}
1513
1513
  */
1514
1514
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
1515
- /** @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 */
1516
1516
  cs?: boolean;
1517
1517
  } | {
1518
1518
  /**
@@ -1526,7 +1526,7 @@ interface external$1 {
1526
1526
  };
1527
1527
  /** @description Describes a match expression on a number */
1528
1528
  NumberMatch: {
1529
- /** @description The right hand side of the match expression */
1529
+ /** @description The right-hand side of the match expression */
1530
1530
  rhs: number;
1531
1531
  /**
1532
1532
  * @description The type of match to perform
@@ -1539,7 +1539,7 @@ interface external$1 {
1539
1539
  */
1540
1540
  op: "=" | "<" | ">" | "!=";
1541
1541
  };
1542
- /** @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 */
1543
1543
  AggregateDimension: {
1544
1544
  /** @description Input dimensions to the aggregate dimension */
1545
1545
  inputs: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -1553,7 +1553,7 @@ interface external$1 {
1553
1553
  *
1554
1554
  * Note that creating a cycle of aggregate dimensions is allowed, however
1555
1555
  * the final score will _ignore_ the cycled aggregate dimension in the result.
1556
- * This can be used to create mutually exclusive aggregates.
1556
+ * This can be used to create mutually exclusive aggregates
1557
1557
  */
1558
1558
  dim: string;
1559
1559
  /**
@@ -1561,7 +1561,7 @@ interface external$1 {
1561
1561
  *
1562
1562
  * '+' = add to the final score
1563
1563
  * '-' = subtract from the final score
1564
- * '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)
1565
1565
  *
1566
1566
  * Default if unspecified: '+'
1567
1567
  *
package/dist/api/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { aC as paths$7, N as ManifestV2 } from '../types-ZjAbVh_D.js';
1
+ import { aC as paths$7, N as ManifestV2 } from '../types-KWnn2ElZ.js';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
@@ -87,7 +87,7 @@ interface components$6 {
87
87
  * & = AND
88
88
  * | = OR
89
89
  *
90
- * Default is `&` if unspecified.
90
+ * Default is `&` if unspecified
91
91
  *
92
92
  * @default &
93
93
  * @enum {string}
@@ -114,7 +114,7 @@ interface components$6 {
114
114
  * & = AND
115
115
  * | = OR
116
116
  *
117
- * Default is `&` if unspecified.
117
+ * Default is `&` if unspecified
118
118
  *
119
119
  * @enum {string}
120
120
  */
@@ -175,7 +175,7 @@ interface components$6 {
175
175
  };
176
176
  /** @description Describes a match expression on a string */
177
177
  StringMatch: {
178
- /** @description The right hand side of the match expression */
178
+ /** @description The right-hand side of the match expression */
179
179
  rhs: string;
180
180
  /**
181
181
  * @description The match operator
@@ -188,7 +188,7 @@ interface components$6 {
188
188
  * @enum {string}
189
189
  */
190
190
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
191
- /** @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 */
192
192
  cs?: boolean;
193
193
  } | {
194
194
  /**
@@ -202,7 +202,7 @@ interface components$6 {
202
202
  };
203
203
  /** @description Describes a match expression on a number */
204
204
  NumberMatch: {
205
- /** @description The right hand side of the match expression */
205
+ /** @description The right-hand side of the match expression */
206
206
  rhs: number;
207
207
  /**
208
208
  * @description The type of match to perform
@@ -215,7 +215,7 @@ interface components$6 {
215
215
  */
216
216
  op: "=" | "<" | ">" | "!=";
217
217
  };
218
- /** @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 */
219
219
  AggregateDimension: {
220
220
  /** @description Input dimensions to the aggregate dimension */
221
221
  inputs: components$6["schemas"]["AggregateDimensionInput"][];
@@ -229,7 +229,7 @@ interface components$6 {
229
229
  *
230
230
  * Note that creating a cycle of aggregate dimensions is allowed, however
231
231
  * the final score will _ignore_ the cycled aggregate dimension in the result.
232
- * This can be used to create mutually exclusive aggregates.
232
+ * This can be used to create mutually exclusive aggregates
233
233
  */
234
234
  dim: string;
235
235
  /**
@@ -237,7 +237,7 @@ interface components$6 {
237
237
  *
238
238
  * '+' = add to the final score
239
239
  * '-' = subtract from the final score
240
- * '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)
241
241
  *
242
242
  * Default if unspecified: '+'
243
243
  *
@@ -808,7 +808,7 @@ interface external$4 {
808
808
  * & = AND
809
809
  * | = OR
810
810
  *
811
- * Default is `&` if unspecified.
811
+ * Default is `&` if unspecified
812
812
  *
813
813
  * @default &
814
814
  * @enum {string}
@@ -835,7 +835,7 @@ interface external$4 {
835
835
  * & = AND
836
836
  * | = OR
837
837
  *
838
- * Default is `&` if unspecified.
838
+ * Default is `&` if unspecified
839
839
  *
840
840
  * @enum {string}
841
841
  */
@@ -896,7 +896,7 @@ interface external$4 {
896
896
  };
897
897
  /** @description Describes a match expression on a string */
898
898
  StringMatch: {
899
- /** @description The right hand side of the match expression */
899
+ /** @description The right-hand side of the match expression */
900
900
  rhs: string;
901
901
  /**
902
902
  * @description The match operator
@@ -909,7 +909,7 @@ interface external$4 {
909
909
  * @enum {string}
910
910
  */
911
911
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
912
- /** @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 */
913
913
  cs?: boolean;
914
914
  } | {
915
915
  /**
@@ -923,7 +923,7 @@ interface external$4 {
923
923
  };
924
924
  /** @description Describes a match expression on a number */
925
925
  NumberMatch: {
926
- /** @description The right hand side of the match expression */
926
+ /** @description The right-hand side of the match expression */
927
927
  rhs: number;
928
928
  /**
929
929
  * @description The type of match to perform
@@ -936,7 +936,7 @@ interface external$4 {
936
936
  */
937
937
  op: "=" | "<" | ">" | "!=";
938
938
  };
939
- /** @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 */
940
940
  AggregateDimension: {
941
941
  /** @description Input dimensions to the aggregate dimension */
942
942
  inputs: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -950,7 +950,7 @@ interface external$4 {
950
950
  *
951
951
  * Note that creating a cycle of aggregate dimensions is allowed, however
952
952
  * the final score will _ignore_ the cycled aggregate dimension in the result.
953
- * This can be used to create mutually exclusive aggregates.
953
+ * This can be used to create mutually exclusive aggregates
954
954
  */
955
955
  dim: string;
956
956
  /**
@@ -958,7 +958,7 @@ interface external$4 {
958
958
  *
959
959
  * '+' = add to the final score
960
960
  * '-' = subtract from the final score
961
- * '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)
962
962
  *
963
963
  * Default if unspecified: '+'
964
964
  *
@@ -1411,7 +1411,7 @@ interface external$1 {
1411
1411
  * & = AND
1412
1412
  * | = OR
1413
1413
  *
1414
- * Default is `&` if unspecified.
1414
+ * Default is `&` if unspecified
1415
1415
  *
1416
1416
  * @default &
1417
1417
  * @enum {string}
@@ -1438,7 +1438,7 @@ interface external$1 {
1438
1438
  * & = AND
1439
1439
  * | = OR
1440
1440
  *
1441
- * Default is `&` if unspecified.
1441
+ * Default is `&` if unspecified
1442
1442
  *
1443
1443
  * @enum {string}
1444
1444
  */
@@ -1499,7 +1499,7 @@ interface external$1 {
1499
1499
  };
1500
1500
  /** @description Describes a match expression on a string */
1501
1501
  StringMatch: {
1502
- /** @description The right hand side of the match expression */
1502
+ /** @description The right-hand side of the match expression */
1503
1503
  rhs: string;
1504
1504
  /**
1505
1505
  * @description The match operator
@@ -1512,7 +1512,7 @@ interface external$1 {
1512
1512
  * @enum {string}
1513
1513
  */
1514
1514
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
1515
- /** @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 */
1516
1516
  cs?: boolean;
1517
1517
  } | {
1518
1518
  /**
@@ -1526,7 +1526,7 @@ interface external$1 {
1526
1526
  };
1527
1527
  /** @description Describes a match expression on a number */
1528
1528
  NumberMatch: {
1529
- /** @description The right hand side of the match expression */
1529
+ /** @description The right-hand side of the match expression */
1530
1530
  rhs: number;
1531
1531
  /**
1532
1532
  * @description The type of match to perform
@@ -1539,7 +1539,7 @@ interface external$1 {
1539
1539
  */
1540
1540
  op: "=" | "<" | ">" | "!=";
1541
1541
  };
1542
- /** @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 */
1543
1543
  AggregateDimension: {
1544
1544
  /** @description Input dimensions to the aggregate dimension */
1545
1545
  inputs: external$1["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -1553,7 +1553,7 @@ interface external$1 {
1553
1553
  *
1554
1554
  * Note that creating a cycle of aggregate dimensions is allowed, however
1555
1555
  * the final score will _ignore_ the cycled aggregate dimension in the result.
1556
- * This can be used to create mutually exclusive aggregates.
1556
+ * This can be used to create mutually exclusive aggregates
1557
1557
  */
1558
1558
  dim: string;
1559
1559
  /**
@@ -1561,7 +1561,7 @@ interface external$1 {
1561
1561
  *
1562
1562
  * '+' = add to the final score
1563
1563
  * '-' = subtract from the final score
1564
- * '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)
1565
1565
  *
1566
1566
  * Default if unspecified: '+'
1567
1567
  *
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-ZjAbVh_D.mjs';
2
- export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-ZjAbVh_D.mjs';
1
+ import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-KWnn2ElZ.mjs';
2
+ export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-KWnn2ElZ.mjs';
3
3
  import Cookies from 'js-cookie';
4
4
  import 'mitt';
5
5
 
@@ -156,8 +156,13 @@ type EdgeTestComponentOptions = {
156
156
  declare const EdgeNodeTagName = "nesitag";
157
157
 
158
158
  type InsightsEndpoint = {
159
+ type: 'api';
159
160
  host: string;
160
161
  apiKey: string;
162
+ } | {
163
+ type: 'proxy';
164
+ path: string;
165
+ apiKey?: string;
161
166
  };
162
167
  type EnableUniformInsightsOptions = {
163
168
  endpoint: InsightsEndpoint;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-ZjAbVh_D.js';
2
- export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-ZjAbVh_D.js';
1
+ import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-KWnn2ElZ.js';
2
+ export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, az as ContextState, aA as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, an as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, au as EnrichmentData, ax as EventData, aB as GoalStateUpdate, at as Goals, H as GroupCriteriaEvaluator, ag as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, ab as ModifyScoreCommand, ac as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, av as PersonalizeControlVariant, a2 as PersonalizeOptions, aw as PersonalizeVariants, a6 as PersonalizedResult, a5 as PersonalizedVariant, ar as Quirks, al as SERVER_STATE_ID, ak as ServerToClientTransitionState, ad as SetConsentCommand, ah as SetControlGroupCommand, aa as SetGoalCommand, ai as SetPersonalizeVariantControlCommand, ae as SetQuirkCommand, af as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, as as Tests, am as TransitionDataStoreEvents, aq as VisitorDataStore, ap as VisitorDataStoreEvents, ao as VisitorDataStoreOptions, aj as areCommandsEqual, ay as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-KWnn2ElZ.js';
3
3
  import Cookies from 'js-cookie';
4
4
  import 'mitt';
5
5
 
@@ -156,8 +156,13 @@ type EdgeTestComponentOptions = {
156
156
  declare const EdgeNodeTagName = "nesitag";
157
157
 
158
158
  type InsightsEndpoint = {
159
+ type: 'api';
159
160
  host: string;
160
161
  apiKey: string;
162
+ } | {
163
+ type: 'proxy';
164
+ path: string;
165
+ apiKey?: string;
161
166
  };
162
167
  type EnableUniformInsightsOptions = {
163
168
  endpoint: InsightsEndpoint;
package/dist/index.esm.js CHANGED
@@ -2070,10 +2070,16 @@ var getBasePayload = () => {
2070
2070
  };
2071
2071
  };
2072
2072
  var createInsightsClient = ({ endpoint }) => {
2073
- const url = new URL(endpoint.host);
2074
- url.pathname = "/v0/events";
2075
- url.searchParams.set("name", "analytics_events");
2076
- const endpointUrl = url.toString();
2073
+ let endpointUrl;
2074
+ const apiKey = endpoint.apiKey;
2075
+ if (endpoint.type === "api") {
2076
+ const url = new URL(endpoint.host);
2077
+ url.pathname = "/v0/events";
2078
+ url.searchParams.set("name", "analytics_events");
2079
+ endpointUrl = url.toString();
2080
+ } else {
2081
+ endpointUrl = endpoint.path;
2082
+ }
2077
2083
  const sendMessage = async (message) => {
2078
2084
  if (typeof window.__UNIFORM_CONTEXTUAL_EDITING__ !== "undefined") {
2079
2085
  return;
@@ -2082,12 +2088,15 @@ var createInsightsClient = ({ endpoint }) => {
2082
2088
  ...message,
2083
2089
  payload: JSON.stringify(message.payload)
2084
2090
  };
2091
+ const headers = {
2092
+ "Content-Type": "application/json"
2093
+ };
2094
+ if (apiKey) {
2095
+ headers.Authorization = `Bearer ${apiKey}`;
2096
+ }
2085
2097
  const response = await fetch(endpointUrl, {
2086
2098
  method: "POST",
2087
- headers: {
2088
- "Content-Type": "application/json",
2089
- Authorization: `Bearer ${endpoint.apiKey}`
2090
- },
2099
+ headers,
2091
2100
  body: JSON.stringify(converted)
2092
2101
  });
2093
2102
  const json = await response.json();
package/dist/index.js CHANGED
@@ -2142,10 +2142,16 @@ var getBasePayload = () => {
2142
2142
  };
2143
2143
  };
2144
2144
  var createInsightsClient = ({ endpoint }) => {
2145
- const url = new URL(endpoint.host);
2146
- url.pathname = "/v0/events";
2147
- url.searchParams.set("name", "analytics_events");
2148
- const endpointUrl = url.toString();
2145
+ let endpointUrl;
2146
+ const apiKey = endpoint.apiKey;
2147
+ if (endpoint.type === "api") {
2148
+ const url = new URL(endpoint.host);
2149
+ url.pathname = "/v0/events";
2150
+ url.searchParams.set("name", "analytics_events");
2151
+ endpointUrl = url.toString();
2152
+ } else {
2153
+ endpointUrl = endpoint.path;
2154
+ }
2149
2155
  const sendMessage = async (message) => {
2150
2156
  if (typeof window.__UNIFORM_CONTEXTUAL_EDITING__ !== "undefined") {
2151
2157
  return;
@@ -2154,12 +2160,15 @@ var createInsightsClient = ({ endpoint }) => {
2154
2160
  ...message,
2155
2161
  payload: JSON.stringify(message.payload)
2156
2162
  };
2163
+ const headers = {
2164
+ "Content-Type": "application/json"
2165
+ };
2166
+ if (apiKey) {
2167
+ headers.Authorization = `Bearer ${apiKey}`;
2168
+ }
2157
2169
  const response = await fetch(endpointUrl, {
2158
2170
  method: "POST",
2159
- headers: {
2160
- "Content-Type": "application/json",
2161
- Authorization: `Bearer ${endpoint.apiKey}`
2162
- },
2171
+ headers,
2163
2172
  body: JSON.stringify(converted)
2164
2173
  });
2165
2174
  const json = await response.json();
package/dist/index.mjs CHANGED
@@ -2070,10 +2070,16 @@ var getBasePayload = () => {
2070
2070
  };
2071
2071
  };
2072
2072
  var createInsightsClient = ({ endpoint }) => {
2073
- const url = new URL(endpoint.host);
2074
- url.pathname = "/v0/events";
2075
- url.searchParams.set("name", "analytics_events");
2076
- const endpointUrl = url.toString();
2073
+ let endpointUrl;
2074
+ const apiKey = endpoint.apiKey;
2075
+ if (endpoint.type === "api") {
2076
+ const url = new URL(endpoint.host);
2077
+ url.pathname = "/v0/events";
2078
+ url.searchParams.set("name", "analytics_events");
2079
+ endpointUrl = url.toString();
2080
+ } else {
2081
+ endpointUrl = endpoint.path;
2082
+ }
2077
2083
  const sendMessage = async (message) => {
2078
2084
  if (typeof window.__UNIFORM_CONTEXTUAL_EDITING__ !== "undefined") {
2079
2085
  return;
@@ -2082,12 +2088,15 @@ var createInsightsClient = ({ endpoint }) => {
2082
2088
  ...message,
2083
2089
  payload: JSON.stringify(message.payload)
2084
2090
  };
2091
+ const headers = {
2092
+ "Content-Type": "application/json"
2093
+ };
2094
+ if (apiKey) {
2095
+ headers.Authorization = `Bearer ${apiKey}`;
2096
+ }
2085
2097
  const response = await fetch(endpointUrl, {
2086
2098
  method: "POST",
2087
- headers: {
2088
- "Content-Type": "application/json",
2089
- Authorization: `Bearer ${endpoint.apiKey}`
2090
- },
2099
+ headers,
2091
2100
  body: JSON.stringify(converted)
2092
2101
  });
2093
2102
  const json = await response.json();
@@ -533,7 +533,7 @@ interface external {
533
533
  * & = AND
534
534
  * | = OR
535
535
  *
536
- * Default is `&` if unspecified.
536
+ * Default is `&` if unspecified
537
537
  *
538
538
  * @default &
539
539
  * @enum {string}
@@ -560,7 +560,7 @@ interface external {
560
560
  * & = AND
561
561
  * | = OR
562
562
  *
563
- * Default is `&` if unspecified.
563
+ * Default is `&` if unspecified
564
564
  *
565
565
  * @enum {string}
566
566
  */
@@ -621,7 +621,7 @@ interface external {
621
621
  };
622
622
  /** @description Describes a match expression on a string */
623
623
  StringMatch: {
624
- /** @description The right hand side of the match expression */
624
+ /** @description The right-hand side of the match expression */
625
625
  rhs: string;
626
626
  /**
627
627
  * @description The match operator
@@ -634,7 +634,7 @@ interface external {
634
634
  * @enum {string}
635
635
  */
636
636
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
637
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
637
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
638
638
  cs?: boolean;
639
639
  } | {
640
640
  /**
@@ -648,7 +648,7 @@ interface external {
648
648
  };
649
649
  /** @description Describes a match expression on a number */
650
650
  NumberMatch: {
651
- /** @description The right hand side of the match expression */
651
+ /** @description The right-hand side of the match expression */
652
652
  rhs: number;
653
653
  /**
654
654
  * @description The type of match to perform
@@ -661,7 +661,7 @@ interface external {
661
661
  */
662
662
  op: "=" | "<" | ">" | "!=";
663
663
  };
664
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
664
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
665
665
  AggregateDimension: {
666
666
  /** @description Input dimensions to the aggregate dimension */
667
667
  inputs: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -675,7 +675,7 @@ interface external {
675
675
  *
676
676
  * Note that creating a cycle of aggregate dimensions is allowed, however
677
677
  * the final score will _ignore_ the cycled aggregate dimension in the result.
678
- * This can be used to create mutually exclusive aggregates.
678
+ * This can be used to create mutually exclusive aggregates
679
679
  */
680
680
  dim: string;
681
681
  /**
@@ -683,7 +683,7 @@ interface external {
683
683
  *
684
684
  * '+' = add to the final score
685
685
  * '-' = subtract from the final score
686
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
686
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
687
687
  *
688
688
  * Default if unspecified: '+'
689
689
  *
@@ -533,7 +533,7 @@ interface external {
533
533
  * & = AND
534
534
  * | = OR
535
535
  *
536
- * Default is `&` if unspecified.
536
+ * Default is `&` if unspecified
537
537
  *
538
538
  * @default &
539
539
  * @enum {string}
@@ -560,7 +560,7 @@ interface external {
560
560
  * & = AND
561
561
  * | = OR
562
562
  *
563
- * Default is `&` if unspecified.
563
+ * Default is `&` if unspecified
564
564
  *
565
565
  * @enum {string}
566
566
  */
@@ -621,7 +621,7 @@ interface external {
621
621
  };
622
622
  /** @description Describes a match expression on a string */
623
623
  StringMatch: {
624
- /** @description The right hand side of the match expression */
624
+ /** @description The right-hand side of the match expression */
625
625
  rhs: string;
626
626
  /**
627
627
  * @description The match operator
@@ -634,7 +634,7 @@ interface external {
634
634
  * @enum {string}
635
635
  */
636
636
  op: "=" | "~" | "//" | "!=" | "!~" | "!//";
637
- /** @description The case sensitivity of the match. Defaults to false if unspecified. */
637
+ /** @description The case sensitivity of the match. Defaults to false if unspecified */
638
638
  cs?: boolean;
639
639
  } | {
640
640
  /**
@@ -648,7 +648,7 @@ interface external {
648
648
  };
649
649
  /** @description Describes a match expression on a number */
650
650
  NumberMatch: {
651
- /** @description The right hand side of the match expression */
651
+ /** @description The right-hand side of the match expression */
652
652
  rhs: number;
653
653
  /**
654
654
  * @description The type of match to perform
@@ -661,7 +661,7 @@ interface external {
661
661
  */
662
662
  op: "=" | "<" | ">" | "!=";
663
663
  };
664
- /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience. */
664
+ /** @description Defines an aggregate dimension that is a grouping of other dimensions' scores; an intent or audience */
665
665
  AggregateDimension: {
666
666
  /** @description Input dimensions to the aggregate dimension */
667
667
  inputs: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
@@ -675,7 +675,7 @@ interface external {
675
675
  *
676
676
  * Note that creating a cycle of aggregate dimensions is allowed, however
677
677
  * the final score will _ignore_ the cycled aggregate dimension in the result.
678
- * This can be used to create mutually exclusive aggregates.
678
+ * This can be used to create mutually exclusive aggregates
679
679
  */
680
680
  dim: string;
681
681
  /**
@@ -683,7 +683,7 @@ interface external {
683
683
  *
684
684
  * '+' = add to the final score
685
685
  * '-' = subtract from the final score
686
- * 'c' = clear the final score (if the input dimension has any score at all, this aggreate will have no score regardless of other inputs)
686
+ * 'c' = clear the final score (if the input dimension has any score at all, this aggregate will have no score regardless of other inputs)
687
687
  *
688
688
  * Default if unspecified: '+'
689
689
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context",
3
- "version": "19.158.0",
3
+ "version": "19.159.1-alpha.16+112313047e",
4
4
  "description": "Uniform Context core package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "f0be15ed3518c8d3d02e320d9b9a2f5175d30d1b"
71
+ "gitHead": "112313047e98c7a1c0045ea1c5d01a4c74b29871"
72
72
  }