@uniformdev/context 17.5.1-alpha.105 → 17.5.1-alpha.130

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,58 +1,6 @@
1
1
  import * as mitt from 'mitt';
2
2
  import { c as components, e as external } from './v2-manifest.swagger-200ca5ee.js';
3
3
 
4
- declare type StorageCommand<TID extends string = string, TData = unknown> = {
5
- type: TID;
6
- data: TData;
7
- };
8
- /** Commands that can be issued to alter the storage of Uniform Context data */
9
- declare type StorageCommands = ModifyScoreCommand | ModifySessionScoreCommand | SetConsentCommand | SetQuirkCommand | SetTestCommand | IdentifyCommand | SetControlGroupCommand;
10
- /**
11
- * Changes the visitor's permanent score for a given dimension
12
- */
13
- declare type ModifyScoreCommand = StorageCommand<'modscore', {
14
- dimension: string;
15
- delta: number;
16
- }>;
17
- /**
18
- * Changes the visitor's session (time-based) score for a given dimension
19
- */
20
- declare type ModifySessionScoreCommand = StorageCommand<'modscoreS', {
21
- dimension: string;
22
- delta: number;
23
- }>;
24
- /**
25
- * Changes the visitor's storage consent setting.
26
- * Setting consent to false will trigger deletion of any stored data for the visitor.
27
- * Scores are still collected in-memory when consent is false; just not persisted.
28
- */
29
- declare type SetConsentCommand = StorageCommand<'consent', boolean>;
30
- /** Sets a permanent quirk key and value for the visitor */
31
- declare type SetQuirkCommand = StorageCommand<'setquirk', {
32
- key: string;
33
- value: string;
34
- }>;
35
- /** Sets a specific variant as being this visitor's variant on an A/B test */
36
- declare type SetTestCommand = StorageCommand<'settest', {
37
- test: string;
38
- variant: string;
39
- }>;
40
- /**
41
- * Identifies the visitor as being a specific unique identifier.
42
- * NOTE: this only has an effect when using an external cross-device transition storage system.
43
- * NOTE: you cannot read the identified visitor ID back from the storage system once it is set.
44
- */
45
- declare type IdentifyCommand = StorageCommand<'identify', {
46
- identity: string;
47
- }>;
48
- /**
49
- * Sets whether the current visitor is in the personalization control group
50
- * (Will not be exposed to personalization or gather classification data; WILL see A/B tests)
51
- * In most cases this should not be sent as the membership is computed automatically for visitors;
52
- * this command is intended mostly for diagnostics and testing purposes.
53
- */
54
- declare type SetControlGroupCommand = StorageCommand<'setcontrol', boolean>;
55
-
56
4
  declare type Quirks = {
57
5
  [key: string]: string;
58
6
  };
@@ -127,6 +75,58 @@ declare type ContextStateUpdate = {
127
75
  scores: ScoreVector;
128
76
  };
129
77
 
78
+ declare type StorageCommand<TID extends string = string, TData = unknown> = {
79
+ type: TID;
80
+ data: TData;
81
+ };
82
+ /** Commands that can be issued to alter the storage of Uniform Context data */
83
+ declare type StorageCommands = ModifyScoreCommand | ModifySessionScoreCommand | SetConsentCommand | SetQuirkCommand | SetTestCommand | IdentifyCommand | SetControlGroupCommand;
84
+ /**
85
+ * Changes the visitor's permanent score for a given dimension
86
+ */
87
+ declare type ModifyScoreCommand = StorageCommand<'modscore', {
88
+ dimension: string;
89
+ delta: number;
90
+ }>;
91
+ /**
92
+ * Changes the visitor's session (time-based) score for a given dimension
93
+ */
94
+ declare type ModifySessionScoreCommand = StorageCommand<'modscoreS', {
95
+ dimension: string;
96
+ delta: number;
97
+ }>;
98
+ /**
99
+ * Changes the visitor's storage consent setting.
100
+ * Setting consent to false will trigger deletion of any stored data for the visitor.
101
+ * Scores are still collected in-memory when consent is false; just not persisted.
102
+ */
103
+ declare type SetConsentCommand = StorageCommand<'consent', boolean>;
104
+ /** Sets a permanent quirk key and value for the visitor */
105
+ declare type SetQuirkCommand = StorageCommand<'setquirk', {
106
+ key: string;
107
+ value: string;
108
+ }>;
109
+ /** Sets a specific variant as being this visitor's variant on an A/B test */
110
+ declare type SetTestCommand = StorageCommand<'settest', {
111
+ test: string;
112
+ variant: string;
113
+ }>;
114
+ /**
115
+ * Identifies the visitor as being a specific unique identifier.
116
+ * NOTE: this only has an effect when using an external cross-device transition storage system.
117
+ * NOTE: you cannot read the identified visitor ID back from the storage system once it is set.
118
+ */
119
+ declare type IdentifyCommand = StorageCommand<'identify', {
120
+ identity: string;
121
+ }>;
122
+ /**
123
+ * Sets whether the current visitor is in the personalization control group
124
+ * (Will not be exposed to personalization or gather classification data; WILL see A/B tests)
125
+ * In most cases this should not be sent as the membership is computed automatically for visitors;
126
+ * this command is intended mostly for diagnostics and testing purposes.
127
+ */
128
+ declare type SetControlGroupCommand = StorageCommand<'setcontrol', boolean>;
129
+
130
130
  declare type TransitionDataStoreOptions = {
131
131
  initialData?: Partial<VisitorData>;
132
132
  };
@@ -203,6 +203,123 @@ declare abstract class TransitionDataStore {
203
203
  getClientTransitionState(): ServerToClientTransitionState | undefined;
204
204
  }
205
205
 
206
+ declare type DecayOptions = {
207
+ now: number;
208
+ lastUpd: number | undefined;
209
+ scores: ScoreVector;
210
+ sessionScores: ScoreVector;
211
+ onLogMessage?: (message: LogMessage) => void;
212
+ };
213
+ /**
214
+ * Computes decay of visitor scores over time.
215
+ * NOTE: it is expected that this function mutates the incoming score vectors,
216
+ * if it needs to apply score decay. The data store ensures immutability already.
217
+ *
218
+ * @returns true if any decay was applied, false otherwise
219
+ */
220
+ declare type DecayFunction = (options: DecayOptions) => boolean;
221
+
222
+ declare type VisitorDataStoreOptions = {
223
+ /** Transition storage used to transfer server or edge side execution state to the client. Unused for client side only. */
224
+ transitionStore?: TransitionDataStore;
225
+ /** Duration of a 'visit' measured by this number of milliseconds without performing any updates */
226
+ visitLifespan?: number;
227
+ /** Personalization manifest data. If set, the data store will automatically apply score caps in the manifest data. */
228
+ manifest?: ManifestInstance;
229
+ /** Allows decaying of scores over time based on time between visits. Default: no decay */
230
+ decay?: DecayFunction;
231
+ /**
232
+ * Sets the default value of storage consent for new unknown visitors.
233
+ * If storage consent is not given, only in-memory data will be stored which is lost when the browser leaves the page.
234
+ * @default false - consent is not given for new visitors until they explicitly give it with an update command
235
+ */
236
+ defaultConsent?: boolean;
237
+ /**
238
+ * Function called when server-to-client transfer state is loaded and contains server-side computed scores.
239
+ * These scores are used as a temporary shim for the current scores on the client side, until score computation
240
+ * is completed the first time (which occurs when the current url is fed into the Context).
241
+ *
242
+ * Because the feed of the URL may be marginally delayed (for example in React it's in an effect so it's a second render),
243
+ * one render might be done with _no_ scores unless we dropped the server scores in temporarily, resulting in a flash of unpersonalized content.
244
+ */
245
+ onServerTransitionReceived?: (state: ServerToClientTransitionState) => void;
246
+ /** Called when a log message is emitted from the data store */
247
+ onLogMessage?: (message: LogMessage) => void;
248
+ };
249
+ declare type VisitorDataStoreEvents = {
250
+ /**
251
+ * Fired when the stored data is updated.
252
+ * This is fired for any update, whether from integrated or transition storage.
253
+ * The event is NOT fired if an update does not result in any score changes.
254
+ */
255
+ scoresUpdated: Pick<VisitorData, 'scores' | 'sessionScores'>;
256
+ /**
257
+ * Fired when stored quirks are updated.
258
+ * This is fired for any update, whether from integrated or transition storage.
259
+ * The event is NOT fired if an update does not result in any quirk changes.
260
+ */
261
+ quirksUpdated: Pick<VisitorData, 'quirks'>;
262
+ /**
263
+ * Fired when test variant selection is updated.
264
+ */
265
+ testsUpdated: Pick<VisitorData, 'tests'>;
266
+ /**
267
+ * Fired when storage consent is changed
268
+ */
269
+ consentUpdated: Pick<VisitorData, 'consent'>;
270
+ /**
271
+ * Fired when visitor control group membership is changed
272
+ */
273
+ controlGroupUpdated: Pick<VisitorData, 'controlGroup'>;
274
+ };
275
+ declare class VisitorDataStore {
276
+ #private;
277
+ constructor(options: VisitorDataStoreOptions);
278
+ /** Gets the current visitor data. This property is always up to date. */
279
+ get data(): VisitorData;
280
+ get decayEnabled(): boolean;
281
+ get options(): VisitorDataStoreOptions;
282
+ /**
283
+ * Subscribe to events from storage
284
+ */
285
+ readonly events: {
286
+ on: {
287
+ <Key extends keyof VisitorDataStoreEvents>(type: Key, handler: mitt.Handler<VisitorDataStoreEvents[Key]>): void;
288
+ (type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
289
+ };
290
+ off: {
291
+ <Key_1 extends keyof VisitorDataStoreEvents>(type: Key_1, handler?: mitt.Handler<VisitorDataStoreEvents[Key_1]> | undefined): void;
292
+ (type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
293
+ };
294
+ };
295
+ /** Push data update command(s) into the visitor data */
296
+ updateData(commands: StorageCommands[]): Promise<void>;
297
+ /**
298
+ * Deletes visitor data (forgetting them)
299
+ * In most cases you should use forget() on the Context instead of this function, which also clears the Context state.
300
+ * @param fromAllDevices for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
301
+ */
302
+ delete(fromAllDevices: boolean): Promise<void>;
303
+ }
304
+
305
+ declare class ManifestInstance {
306
+ #private;
307
+ readonly data: ManifestV2;
308
+ constructor({ manifest, evaluator, onLogMessage, }: {
309
+ manifest: ManifestV2;
310
+ evaluator?: GroupCriteriaEvaluator;
311
+ onLogMessage?: (message: LogMessage) => void;
312
+ });
313
+ rollForControlGroup(): boolean;
314
+ getTest(name: string): TestDefinition | undefined;
315
+ computeSignals(update: ContextStateUpdate): StorageCommands[];
316
+ /**
317
+ * Computes aggregated scores based on other dimensions
318
+ */
319
+ computeAggregateDimensions(primitiveScores: ScoreVector): ScoreVector;
320
+ getDimensionByKey(scoreKey: string): EnrichmentCategory | Signal | undefined;
321
+ }
322
+
206
323
  declare type SharedTypes = external['uniform-context-types.swagger.yml']['components']['schemas'];
207
324
  declare type ManifestV2 = components['schemas']['ManifestV2'];
208
325
  declare type PersonalizationManifest = components['schemas']['PersonalizationManifest'];
@@ -216,6 +333,12 @@ declare type TestDefinition = SharedTypes['Test'];
216
333
  declare type AggregateDimension = SharedTypes['AggregateDimension'];
217
334
  declare type AggregateDimensionInput = SharedTypes['AggregateDimensionInput'];
218
335
 
336
+ declare class GroupCriteriaEvaluator {
337
+ #private;
338
+ constructor(criteriaEvaluators: Record<string, CriteriaEvaluator>);
339
+ evaluate(update: ContextStateUpdate, crit: SignalCriteriaGroup, commands: StorageCommands[], signal: SignalData, onLogMessage?: (message: LogMessage) => void): CriteriaEvaluatorResult;
340
+ }
341
+
219
342
  /**
220
343
  * The result of evaluating a signal criteria.
221
344
  */
@@ -257,12 +380,6 @@ declare type CriteriaEvaluator = ((parameters: CriteriaEvaluatorParameters) => C
257
380
  alwaysExecute?: boolean;
258
381
  };
259
382
 
260
- declare class GroupCriteriaEvaluator {
261
- #private;
262
- constructor(criteriaEvaluators: Record<string, CriteriaEvaluator>);
263
- evaluate(update: ContextStateUpdate, crit: SignalCriteriaGroup, commands: StorageCommands[], signal: SignalData, onLogMessage?: (message: LogMessage) => void): CriteriaEvaluatorResult;
264
- }
265
-
266
383
  /** Defines all error codes and their parameter(s) */
267
384
  declare type LogMessages = {
268
385
  /** Context constructed */
@@ -368,122 +485,56 @@ declare type LogMessageSingle<TID extends keyof LogMessages = keyof LogMessages>
368
485
  declare type LogMessageGroup<TID extends keyof LogMessages = keyof LogMessages> = [severity: Severity, id: TID, group: 'GROUP', ...args: Parameters<LogMessages[TID]>] | [severity: Severity, id: TID, group: 'ENDGROUP'];
369
486
  declare type LogDrain = (message: LogMessage) => void;
370
487
 
371
- declare type DecayOptions = {
372
- now: number;
373
- lastUpd: number | undefined;
374
- scores: ScoreVector;
375
- sessionScores: ScoreVector;
376
- onLogMessage?: (message: LogMessage) => void;
377
- };
378
- /**
379
- * Computes decay of visitor scores over time.
380
- * NOTE: it is expected that this function mutates the incoming score vectors,
381
- * if it needs to apply score decay. The data store ensures immutability already.
382
- *
383
- * @returns true if any decay was applied, false otherwise
384
- */
385
- declare type DecayFunction = (options: DecayOptions) => boolean;
386
-
387
- declare type VisitorDataStoreOptions = {
388
- /** Transition storage used to transfer server or edge side execution state to the client. Unused for client side only. */
389
- transitionStore?: TransitionDataStore;
390
- /** Duration of a 'visit' measured by this number of milliseconds without performing any updates */
391
- visitLifespan?: number;
392
- /** Personalization manifest data. If set, the data store will automatically apply score caps in the manifest data. */
393
- manifest?: ManifestInstance;
394
- /** Allows decaying of scores over time based on time between visits. Default: no decay */
395
- decay?: DecayFunction;
396
- /**
397
- * Sets the default value of storage consent for new unknown visitors.
398
- * If storage consent is not given, only in-memory data will be stored which is lost when the browser leaves the page.
399
- * @default false - consent is not given for new visitors until they explicitly give it with an update command
400
- */
401
- defaultConsent?: boolean;
488
+ declare type VariantMatchCriteria = {
402
489
  /**
403
- * Function called when server-to-client transfer state is loaded and contains server-side computed scores.
404
- * These scores are used as a temporary shim for the current scores on the client side, until score computation
405
- * is completed the first time (which occurs when the current url is fed into the Context).
490
+ * Operation for match criteria
406
491
  *
407
- * Because the feed of the URL may be marginally delayed (for example in React it's in an effect so it's a second render),
408
- * one render might be done with _no_ scores unless we dropped the server scores in temporarily, resulting in a flash of unpersonalized content.
492
+ * @defaultValue `&`
409
493
  */
410
- onServerTransitionReceived?: (state: ServerToClientTransitionState) => void;
411
- /** Called when a log message is emitted from the data store */
412
- onLogMessage?: (message: LogMessage) => void;
413
- };
414
- declare type VisitorDataStoreEvents = {
494
+ op?: '&' | '|';
495
+ crit: DimensionMatch[];
415
496
  /**
416
- * Fired when the stored data is updated.
417
- * This is fired for any update, whether from integrated or transition storage.
418
- * The event is NOT fired if an update does not result in any score changes.
497
+ * Name of the variant for analytics tracking.
419
498
  */
420
- scoresUpdated: Pick<VisitorData, 'scores' | 'sessionScores'>;
499
+ name?: string;
500
+ };
501
+ declare type DimensionMatch = {
421
502
  /**
422
- * Fired when stored quirks are updated.
423
- * This is fired for any update, whether from integrated or transition storage.
424
- * The event is NOT fired if an update does not result in any quirk changes.
503
+ * Left hand side of the match expression (name of dimension in score vector)
504
+ * NOTE: if the dimension is not present in the score vector, it will be treated as if it has a value of 0
425
505
  */
426
- quirksUpdated: Pick<VisitorData, 'quirks'>;
506
+ l: string;
427
507
  /**
428
- * Fired when test variant selection is updated.
508
+ * Operator of the match expression
509
+ * Whole-vector (RHS only) operators - these do not require a `r` or `rDim` set:
510
+ * +: `l` is the strongest dimension in the score vector
511
+ * -: `l` is the weakest dimension in the score vector. This does not match if the dimension has no score at all.
512
+ *
513
+ * Comparison operators:
514
+ * >: `l` is greater than the right hand side expression
515
+ * >= : `l` is greater than or equal to the right hand side expression
516
+ * <: `l` is less than the right hand side expression
517
+ * <= : `l` is less than or equal to the right hand side expression
518
+ * =: `l` is equal to the right hand side expression
519
+ * !=: `l` is not equal to the right hand side expression
429
520
  */
430
- testsUpdated: Pick<VisitorData, 'tests'>;
521
+ op: '+' | '-' | '>' | '>=' | '<' | '<=' | '=' | '!=';
431
522
  /**
432
- * Fired when storage consent is changed
523
+ * Right hand side of the match expression (not required for op = + or - which have no right side)
524
+ * This value is treated as a constant value, if it is present. If it's a string, it is parsed to an integer.
525
+ * To reference another score dimension as the RHS, use the `rDim` property instead.
526
+ * `r` and `rDim` are mutually exclusive; if both are specified, then `rDim` wins.
433
527
  */
434
- consentUpdated: Pick<VisitorData, 'consent'>;
528
+ r?: number | string;
435
529
  /**
436
- * Fired when visitor control group membership is changed
530
+ * Right hand side of the match expression (not required for op = + or - which have no right side)
531
+ * This value is treated as a reference to another score dimension, if it is present in the score vector.
532
+ * If the referenced dimension is NOT present in the score vector, the match will always be false.
533
+ * To reference a constant value instead as the RHS, use the `r` property instead.
534
+ * `r` and `rDim` are mutually exclusive; if both are specified, then `rDim` wins.
437
535
  */
438
- controlGroupUpdated: Pick<VisitorData, 'controlGroup'>;
536
+ rDim?: string;
439
537
  };
440
- declare class VisitorDataStore {
441
- #private;
442
- constructor(options: VisitorDataStoreOptions);
443
- /** Gets the current visitor data. This property is always up to date. */
444
- get data(): VisitorData;
445
- get decayEnabled(): boolean;
446
- get options(): VisitorDataStoreOptions;
447
- /**
448
- * Subscribe to events from storage
449
- */
450
- readonly events: {
451
- on: {
452
- <Key extends keyof VisitorDataStoreEvents>(type: Key, handler: mitt.Handler<VisitorDataStoreEvents[Key]>): void;
453
- (type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
454
- };
455
- off: {
456
- <Key_1 extends keyof VisitorDataStoreEvents>(type: Key_1, handler?: mitt.Handler<VisitorDataStoreEvents[Key_1]> | undefined): void;
457
- (type: "*", handler: mitt.WildcardHandler<VisitorDataStoreEvents>): void;
458
- };
459
- };
460
- /** Push data update command(s) into the visitor data */
461
- updateData(commands: StorageCommands[]): Promise<void>;
462
- /**
463
- * Deletes visitor data (forgetting them)
464
- * In most cases you should use forget() on the Context instead of this function, which also clears the Context state.
465
- * @param fromAllDevices for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
466
- */
467
- delete(fromAllDevices: boolean): Promise<void>;
468
- }
469
-
470
- declare class ManifestInstance {
471
- #private;
472
- readonly data: ManifestV2;
473
- constructor({ manifest, evaluator, onLogMessage, }: {
474
- manifest: ManifestV2;
475
- evaluator?: GroupCriteriaEvaluator;
476
- onLogMessage?: (message: LogMessage) => void;
477
- });
478
- rollForControlGroup(): boolean;
479
- getTest(name: string): TestDefinition | undefined;
480
- computeSignals(update: ContextStateUpdate): StorageCommands[];
481
- /**
482
- * Computes aggregated scores based on other dimensions
483
- */
484
- computeAggregateDimensions(primitiveScores: ScoreVector): ScoreVector;
485
- getDimensionByKey(scoreKey: string): EnrichmentCategory | Signal | undefined;
486
- }
487
538
 
488
539
  /** Content that is tagged for adding enrichment score when triggered by behavior (i.e. being shown that content) */
489
540
  declare type BehaviorTag = {
@@ -538,57 +589,6 @@ declare function personalizeVariations<TVariant extends PersonalizedVariant>({ n
538
589
  context: Context;
539
590
  }): PersonalizedResult<TVariant>;
540
591
 
541
- declare type VariantMatchCriteria = {
542
- /**
543
- * Operation for match criteria
544
- *
545
- * @defaultValue `&`
546
- */
547
- op?: '&' | '|';
548
- crit: DimensionMatch[];
549
- /**
550
- * Name of the variant for analytics tracking.
551
- */
552
- name?: string;
553
- };
554
- declare type DimensionMatch = {
555
- /**
556
- * Left hand side of the match expression (name of dimension in score vector)
557
- * NOTE: if the dimension is not present in the score vector, it will be treated as if it has a value of 0
558
- */
559
- l: string;
560
- /**
561
- * Operator of the match expression
562
- * Whole-vector (RHS only) operators - these do not require a `r` or `rDim` set:
563
- * +: `l` is the strongest dimension in the score vector
564
- * -: `l` is the weakest dimension in the score vector. This does not match if the dimension has no score at all.
565
- *
566
- * Comparison operators:
567
- * >: `l` is greater than the right hand side expression
568
- * >= : `l` is greater than or equal to the right hand side expression
569
- * <: `l` is less than the right hand side expression
570
- * <= : `l` is less than or equal to the right hand side expression
571
- * =: `l` is equal to the right hand side expression
572
- * !=: `l` is not equal to the right hand side expression
573
- */
574
- op: '+' | '-' | '>' | '>=' | '<' | '<=' | '=' | '!=';
575
- /**
576
- * Right hand side of the match expression (not required for op = + or - which have no right side)
577
- * This value is treated as a constant value, if it is present. If it's a string, it is parsed to an integer.
578
- * To reference another score dimension as the RHS, use the `rDim` property instead.
579
- * `r` and `rDim` are mutually exclusive; if both are specified, then `rDim` wins.
580
- */
581
- r?: number | string;
582
- /**
583
- * Right hand side of the match expression (not required for op = + or - which have no right side)
584
- * This value is treated as a reference to another score dimension, if it is present in the score vector.
585
- * If the referenced dimension is NOT present in the score vector, the match will always be false.
586
- * To reference a constant value instead as the RHS, use the `r` property instead.
587
- * `r` and `rDim` are mutually exclusive; if both are specified, then `rDim` wins.
588
- */
589
- rDim?: string;
590
- };
591
-
592
592
  declare type TestOptions<TVariant extends TestVariant> = {
593
593
  /** The name of the test that is being run, must be included in the manifest. */
594
594
  name: string;
@@ -794,4 +794,4 @@ declare global {
794
794
  }
795
795
  }
796
796
 
797
- export { ContextEvents as $, AggregateDimension as A, SetTestCommand as B, ContextPlugin as C, DecayFunction as D, EnrichmentCategory as E, SetControlGroupCommand as F, GroupCriteriaEvaluator as G, DecayOptions as H, IdentifyCommand as I, VisitorDataStoreOptions as J, VisitorDataStoreEvents as K, LogDrain as L, ManifestInstance as M, NumberMatch as N, OutputSeverity as O, PersonalizationManifest as P, Quirks as Q, VisitorDataStore as R, StorageCommands as S, TransitionDataStore as T, ServerToClientTransitionState as U, VisitorData as V, SERVER_STATE_ID as W, TransitionDataStoreEvents as X, ContextOptions as Y, PersonalizationEvent as Z, TestEvent as _, TransitionDataStoreOptions as a, Context as a0, LogMessages as a1, Severity as a2, MessageCategory as a3, MessageFunc as a4, LogMessageSingle as a5, LogMessageGroup as a6, testVariations as a7, TestOptions as a8, PersonalizeOptions as a9, personalizeVariations as aa, DimensionMatch as ab, BehaviorTag as ac, PersonalizedVariant as ad, PersonalizedResult as ae, TestVariant as af, TestResult as ag, DevToolsUiVersion as ah, DevToolsState as ai, DevToolsActions as aj, DevToolsEvent as ak, DevToolsEvents as al, DevToolsLogEvent as am, DevToolsDataEvent as an, DevToolsHelloEvent as ao, DevToolsUpdateEvent as ap, DevToolsRawCommandsEvent as aq, DevToolsForgetEvent as ar, CriteriaEvaluator as b, StringMatch as c, ScoreVector as d, VariantMatchCriteria as e, LogMessage as f, ManifestV2 as g, Signal as h, SignalCriteriaGroup as i, SignalCriteria as j, TestDefinition as k, AggregateDimensionInput as l, CriteriaEvaluatorResult as m, CriteriaEvaluatorParameters as n, SignalData as o, Tests as p, EnrichmentData as q, EventData as r, emptyVisitorData as s, ContextState as t, ContextStateUpdate as u, StorageCommand as v, ModifyScoreCommand as w, ModifySessionScoreCommand as x, SetConsentCommand as y, SetQuirkCommand as z };
797
+ export { PersonalizeOptions as $, AggregateDimension as A, ManifestInstance as B, ContextPlugin as C, DecayFunction as D, CriteriaEvaluatorResult as E, CriteriaEvaluatorParameters as F, GroupCriteriaEvaluator as G, SignalData as H, ManifestV2 as I, PersonalizationManifest as J, Signal as K, LogDrain as L, MessageCategory as M, SignalCriteriaGroup as N, OutputSeverity as O, PersonalizationEvent as P, SignalCriteria as Q, EnrichmentCategory as R, ScoreVector as S, TransitionDataStore as T, NumberMatch as U, VisitorData as V, TestDefinition as W, AggregateDimensionInput as X, TestOptions as Y, testVariations as Z, DimensionMatch as _, StorageCommands as a, personalizeVariations as a0, BehaviorTag as a1, PersonalizedVariant as a2, PersonalizedResult as a3, TestVariant as a4, TestResult as a5, StorageCommand as a6, ModifyScoreCommand as a7, ModifySessionScoreCommand as a8, SetConsentCommand as a9, SetQuirkCommand as aa, SetTestCommand as ab, IdentifyCommand as ac, SetControlGroupCommand as ad, ServerToClientTransitionState as ae, SERVER_STATE_ID as af, TransitionDataStoreEvents as ag, DecayOptions as ah, VisitorDataStoreOptions as ai, VisitorDataStoreEvents as aj, VisitorDataStore as ak, Quirks as al, Tests as am, EnrichmentData as an, EventData as ao, emptyVisitorData as ap, ContextState as aq, ContextStateUpdate as ar, TransitionDataStoreOptions as b, CriteriaEvaluator as c, StringMatch as d, VariantMatchCriteria as e, LogMessage as f, ContextOptions as g, TestEvent as h, ContextEvents as i, Context as j, DevToolsUiVersion as k, DevToolsState as l, DevToolsActions as m, DevToolsEvent as n, DevToolsEvents as o, DevToolsLogEvent as p, DevToolsDataEvent as q, DevToolsHelloEvent as r, DevToolsUpdateEvent as s, DevToolsRawCommandsEvent as t, DevToolsForgetEvent as u, LogMessages as v, Severity as w, MessageFunc as x, LogMessageSingle as y, LogMessageGroup as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context",
3
- "version": "17.5.1-alpha.105+9b3f152e7",
3
+ "version": "17.5.1-alpha.130+3fac779b1",
4
4
  "description": "Uniform Context core package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -59,7 +59,7 @@
59
59
  "devDependencies": {
60
60
  "@types/js-cookie": "3.0.2",
61
61
  "@types/yargs": "17.0.14",
62
- "@uniformdev/cli": "^17.5.1-alpha.105+9b3f152e7",
62
+ "@uniformdev/cli": "^17.5.1-alpha.130+3fac779b1",
63
63
  "benny": "3.7.1",
64
64
  "yargs": "17.6.2"
65
65
  },
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "9b3f152e7455f37fd8609004bab4ded4a9a88bc7"
79
+ "gitHead": "3fac779b1b42a1afeb05156cb51768a98573438f"
80
80
  }