@walkeros/core 0.0.8 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2,8 +2,6 @@
2
2
  * Core collector configuration interface
3
3
  */
4
4
  interface Config$4 {
5
- /** Run in dry mode without executing events */
6
- dryRun: boolean;
7
5
  /** Whether to run collector automatically */
8
6
  run?: boolean;
9
7
  /** Initial consent state */
@@ -18,6 +16,8 @@ interface Config$4 {
18
16
  globalsStatic: Properties;
19
17
  /** Static session data even on a new run */
20
18
  sessionStatic: Partial<SessionData>;
19
+ /** Source configurations */
20
+ sources?: InitSources;
21
21
  /** Destination configurations */
22
22
  destinations?: InitDestinations;
23
23
  /** Initial custom properties */
@@ -43,20 +43,14 @@ interface SessionData extends Properties {
43
43
  runs?: number;
44
44
  }
45
45
  interface Sources {
46
- [id: string]: CollectorSource;
46
+ [id: string]: Instance;
47
47
  }
48
48
  interface Destinations$1 {
49
49
  [id: string]: Instance$1;
50
50
  }
51
- interface CollectorSource {
52
- type: string;
53
- mapping?: unknown;
54
- settings?: Record<string, unknown>;
55
- elb?: AnyFunction;
56
- }
57
51
  type CommandType = 'action' | 'config' | 'consent' | 'context' | 'destination' | 'elb' | 'globals' | 'hook' | 'init' | 'link' | 'run' | 'user' | 'walker' | string;
58
52
  interface Instance$2 {
59
- push: Fn$2;
53
+ push: Fn$1;
60
54
  allowed: boolean;
61
55
  config: Config$4;
62
56
  consent: Consent;
@@ -76,12 +70,11 @@ interface Instance$2 {
76
70
  version: string;
77
71
  }
78
72
 
79
- type collector_CollectorSource = CollectorSource;
80
73
  type collector_CommandType = CommandType;
81
74
  type collector_SessionData = SessionData;
82
75
  type collector_Sources = Sources;
83
76
  declare namespace collector {
84
- export type { collector_CollectorSource as CollectorSource, collector_CommandType as CommandType, Config$4 as Config, Destinations$1 as Destinations, InitConfig$1 as InitConfig, Instance$2 as Instance, collector_SessionData as SessionData, collector_Sources as Sources };
77
+ export type { collector_CommandType as CommandType, Config$4 as Config, Destinations$1 as Destinations, InitConfig$1 as InitConfig, Instance$2 as Instance, collector_SessionData as SessionData, collector_Sources as Sources };
85
78
  }
86
79
 
87
80
  interface Contract$1 {
@@ -141,24 +134,24 @@ interface Instance$1<Settings = unknown, Mapping = unknown> {
141
134
  queue?: Events;
142
135
  dlq?: DLQ;
143
136
  type?: string;
137
+ env?: Environment$1;
144
138
  init?: InitFn<Settings, Mapping>;
145
139
  push: PushFn<Settings, Mapping>;
146
140
  pushBatch?: PushBatchFn<Settings, Mapping>;
141
+ on?(event: Types, context?: unknown): void | Promise<void>;
147
142
  }
148
143
  interface Config$3<Settings = unknown, Mapping = unknown> {
149
144
  consent?: Consent;
150
145
  settings?: Settings;
151
146
  data?: Value | Values;
152
- dryRun?: boolean;
147
+ env?: Environment$1;
153
148
  id?: string;
154
149
  init?: boolean;
155
150
  loadScript?: boolean;
156
151
  mapping?: Rules<Rule<Mapping>>;
157
- on?: Config$2;
158
152
  policy?: Policy;
159
153
  queue?: boolean;
160
154
  verbose?: boolean;
161
- wrapper?: Config;
162
155
  onError?: Error;
163
156
  onLog?: Log;
164
157
  }
@@ -166,12 +159,13 @@ type PartialConfig<Settings = unknown, Mapping = unknown> = Config$3<Partial<Set
166
159
  interface Policy {
167
160
  [key: string]: Value;
168
161
  }
169
- type Init$1 = Partial<Omit<Instance$1, 'push'>> & Pick<Instance$1, 'push'>;
170
- type InitDestination<Settings = unknown, Mapping = unknown> = Omit<Instance$1<Settings, Mapping>, 'config'> & {
171
- config?: Config$3<Settings, Mapping>;
162
+ type Init$1<Settings = unknown, Mapping = unknown> = {
163
+ code: Instance$1<Settings, Mapping>;
164
+ config?: Partial<Config$3<Settings, Mapping>>;
165
+ env?: Partial<Environment$1>;
172
166
  };
173
167
  interface InitDestinations {
174
- [key: string]: InitDestination<any, any>;
168
+ [key: string]: Init$1<any, any>;
175
169
  }
176
170
  interface Destinations {
177
171
  [key: string]: Instance$1;
@@ -180,7 +174,7 @@ interface Context$1<Settings = unknown, Mapping = unknown> {
180
174
  collector: Instance$2;
181
175
  config: Config$3<Settings, Mapping>;
182
176
  data?: Data$1;
183
- wrap: Wrap;
177
+ env: Environment$1;
184
178
  }
185
179
  interface PushContext<Settings = unknown, Mapping = unknown> extends Context$1<Settings, Mapping> {
186
180
  mapping?: Rule<Mapping>;
@@ -217,11 +211,24 @@ type Result$1 = {
217
211
  queued: Array<Ref>;
218
212
  failed: Array<Ref>;
219
213
  };
214
+ /**
215
+ * Base environment requirements interface for walkerOS destinations
216
+ *
217
+ * This defines the core interface that destinations can use to declare
218
+ * their runtime environment requirements. Platform-specific extensions
219
+ * should extend this interface.
220
+ */
221
+ interface Environment$1 {
222
+ /**
223
+ * Generic global properties that destinations may require
224
+ * Platform-specific implementations can extend this interface
225
+ */
226
+ [key: string]: unknown;
227
+ }
220
228
 
221
229
  type destination_Batch<Mapping> = Batch<Mapping>;
222
230
  type destination_DLQ = DLQ;
223
231
  type destination_Destinations = Destinations;
224
- type destination_InitDestination<Settings = unknown, Mapping = unknown> = InitDestination<Settings, Mapping>;
225
232
  type destination_InitDestinations = InitDestinations;
226
233
  type destination_InitFn<Settings, Mapping> = InitFn<Settings, Mapping>;
227
234
  type destination_PartialConfig<Settings = unknown, Mapping = unknown> = PartialConfig<Settings, Mapping>;
@@ -235,7 +242,7 @@ type destination_PushEvents<Mapping = unknown> = PushEvents<Mapping>;
235
242
  type destination_PushFn<Settings, Mapping> = PushFn<Settings, Mapping>;
236
243
  type destination_Ref = Ref;
237
244
  declare namespace destination {
238
- export type { destination_Batch as Batch, Config$3 as Config, Context$1 as Context, destination_DLQ as DLQ, Data$1 as Data, destination_Destinations as Destinations, Init$1 as Init, destination_InitDestination as InitDestination, destination_InitDestinations as InitDestinations, destination_InitFn as InitFn, Instance$1 as Instance, destination_PartialConfig as PartialConfig, destination_Policy as Policy, destination_Push as Push, destination_PushBatchContext as PushBatchContext, destination_PushBatchFn as PushBatchFn, destination_PushContext as PushContext, destination_PushEvent as PushEvent, destination_PushEvents as PushEvents, destination_PushFn as PushFn, destination_Ref as Ref, Result$1 as Result };
245
+ export type { destination_Batch as Batch, Config$3 as Config, Context$1 as Context, destination_DLQ as DLQ, Data$1 as Data, destination_Destinations as Destinations, Environment$1 as Environment, Init$1 as Init, destination_InitDestinations as InitDestinations, destination_InitFn as InitFn, Instance$1 as Instance, destination_PartialConfig as PartialConfig, destination_Policy as Policy, destination_Push as Push, destination_PushBatchContext as PushBatchContext, destination_PushBatchFn as PushBatchFn, destination_PushContext as PushContext, destination_PushEvent as PushEvent, destination_PushEvents as PushEvents, destination_PushFn as PushFn, destination_Ref as Ref, Result$1 as Result };
239
246
  }
240
247
 
241
248
  interface EventFn<R = Promise<PushResult>> {
@@ -243,7 +250,7 @@ interface EventFn<R = Promise<PushResult>> {
243
250
  (event: string): R;
244
251
  (event: string, data: Properties): R;
245
252
  }
246
- interface Fn$2<R = Promise<PushResult>, Config = unknown> extends EventFn<R>, WalkerCommands<R, Config> {
253
+ interface Fn$1<R = Promise<PushResult>, Config = unknown> extends EventFn<R>, WalkerCommands<R, Config> {
247
254
  }
248
255
  interface WalkerCommands<R = Promise<PushResult>, Config = unknown> {
249
256
  (event: 'walker config', config: Partial<Config>): R;
@@ -277,7 +284,22 @@ type elb_PushResult = PushResult;
277
284
  type elb_RegisterDestination<Destination, Config> = RegisterDestination<Destination, Config>;
278
285
  type elb_WalkerCommands<R = Promise<PushResult>, Config = unknown> = WalkerCommands<R, Config>;
279
286
  declare namespace elb {
280
- export type { Event$1 as Event, elb_EventFn as EventFn, Fn$2 as Fn, elb_Layer as Layer, elb_PushData as PushData, elb_PushResult as PushResult, elb_RegisterDestination as RegisterDestination, elb_WalkerCommands as WalkerCommands };
287
+ export type { Event$1 as Event, elb_EventFn as EventFn, Fn$1 as Fn, elb_Layer as Layer, elb_PushData as PushData, elb_PushResult as PushResult, elb_RegisterDestination as RegisterDestination, elb_WalkerCommands as WalkerCommands };
288
+ }
289
+
290
+ /**
291
+ * Flow configuration interface for dynamic walkerOS setup
292
+ * Used by bundlers and other tools to configure walkerOS dynamically
293
+ */
294
+ interface Config$2 {
295
+ /** Collector configuration - uses existing Collector.Config from core */
296
+ collector: Config$4;
297
+ /** NPM packages required for this configuration */
298
+ packages: Record<string, string>;
299
+ }
300
+
301
+ declare namespace flow {
302
+ export type { Config$2 as Config };
281
303
  }
282
304
 
283
305
  type Error = (error: unknown, state?: unknown) => void;
@@ -330,7 +352,7 @@ type ValueType = string | ValueConfig;
330
352
  interface ValueConfig {
331
353
  condition?: Condition;
332
354
  consent?: Consent;
333
- fn?: Fn$1;
355
+ fn?: Fn;
334
356
  key?: string;
335
357
  loop?: Loop;
336
358
  map?: Map;
@@ -339,7 +361,7 @@ interface ValueConfig {
339
361
  value?: PropertyType;
340
362
  }
341
363
  type Condition = (value: DeepPartialEvent | unknown, mapping?: Value, collector?: Instance$2) => PromiseOrValue<boolean>;
342
- type Fn$1 = (value: DeepPartialEvent | unknown, mapping: Value, options: Options$1) => PromiseOrValue<Property | unknown>;
364
+ type Fn = (value: DeepPartialEvent | unknown, mapping: Value, options: Options$1) => PromiseOrValue<Property | unknown>;
343
365
  type Loop = [Value, Value];
344
366
  type Map = {
345
367
  [key: string]: Value;
@@ -353,6 +375,7 @@ type Validate = (value?: unknown) => PromiseOrValue<boolean>;
353
375
 
354
376
  type mapping_Condition = Condition;
355
377
  type mapping_Data = Data;
378
+ type mapping_Fn = Fn;
356
379
  type mapping_Loop = Loop;
357
380
  type mapping_Map = Map;
358
381
  type mapping_Result = Result;
@@ -364,16 +387,16 @@ type mapping_ValueConfig = ValueConfig;
364
387
  type mapping_ValueType = ValueType;
365
388
  type mapping_Values = Values;
366
389
  declare namespace mapping {
367
- export type { mapping_Condition as Condition, mapping_Data as Data, Fn$1 as Fn, mapping_Loop as Loop, mapping_Map as Map, Options$1 as Options, mapping_Result as Result, mapping_Rule as Rule, mapping_Rules as Rules, mapping_Validate as Validate, mapping_Value as Value, mapping_ValueConfig as ValueConfig, mapping_ValueType as ValueType, mapping_Values as Values };
390
+ export type { mapping_Condition as Condition, mapping_Data as Data, mapping_Fn as Fn, mapping_Loop as Loop, mapping_Map as Map, Options$1 as Options, mapping_Result as Result, mapping_Rule as Rule, mapping_Rules as Rules, mapping_Validate as Validate, mapping_Value as Value, mapping_ValueConfig as ValueConfig, mapping_ValueType as ValueType, mapping_Values as Values };
368
391
  }
369
392
 
370
- type Config$2 = {
393
+ type Config$1 = {
371
394
  consent?: Array<ConsentConfig>;
372
395
  ready?: Array<ReadyConfig>;
373
396
  run?: Array<RunConfig>;
374
397
  session?: Array<SessionConfig>;
375
398
  };
376
- type Types = keyof Config$2;
399
+ type Types = keyof Config$1;
377
400
  type Options = ConsentConfig | ReadyConfig | RunConfig | SessionConfig;
378
401
  interface ConsentConfig {
379
402
  [key: string]: ConsentFn;
@@ -405,7 +428,7 @@ type on_SessionConfig = SessionConfig;
405
428
  type on_SessionFn = SessionFn;
406
429
  type on_Types = Types;
407
430
  declare namespace on {
408
- export type { Config$2 as Config, on_ConsentConfig as ConsentConfig, on_ConsentFn as ConsentFn, on_OnConfig as OnConfig, on_Options as Options, on_ReadyConfig as ReadyConfig, on_ReadyFn as ReadyFn, on_RunConfig as RunConfig, on_RunFn as RunFn, on_SessionConfig as SessionConfig, on_SessionFn as SessionFn, on_Types as Types };
431
+ export type { Config$1 as Config, on_ConsentConfig as ConsentConfig, on_ConsentFn as ConsentFn, on_OnConfig as OnConfig, on_Options as Options, on_ReadyConfig as ReadyConfig, on_ReadyFn as ReadyFn, on_RunConfig as RunConfig, on_RunFn as RunFn, on_SessionConfig as SessionConfig, on_SessionFn as SessionFn, on_Types as Types };
409
432
  }
410
433
 
411
434
  interface Context {
@@ -454,34 +477,73 @@ declare namespace schema {
454
477
  export type { schema_Contract as Contract, schema_Contracts as Contracts, Properties$1 as Properties, Property$1 as Property };
455
478
  }
456
479
 
457
- interface Config$1 {
458
- type: string;
480
+ interface Config {
459
481
  id?: string;
460
482
  disabled?: boolean;
461
483
  settings: AnyObject;
462
484
  onError?: AnyFunction;
463
485
  }
464
- type InitConfig = Partial<Config$1>;
465
- interface Init<T extends Config$1 = Config$1, E = AnyFunction> {
466
- (collector: Instance$2, config: T): CreateSource<T, E> | Promise<CreateSource<T, E>>;
467
- }
468
- interface CreateSource<T extends Config$1 = Config$1, E = AnyFunction> {
469
- source?: Instance<T>;
470
- elb?: E;
486
+ type InitConfig = Partial<Config>;
487
+ /**
488
+ * Environment interface for dependency injection into sources.
489
+ *
490
+ * Sources receive all their dependencies through this environment object,
491
+ * making them platform-agnostic and easily testable.
492
+ */
493
+ interface Environment {
494
+ elb: Fn$1;
495
+ [key: string]: unknown;
471
496
  }
472
- interface Instance<T extends Config$1 = Config$1> {
497
+ /**
498
+ * Source instance returned by Source.Init function.
499
+ *
500
+ * Sources are stateless and contain no collector references.
501
+ * All communication with collector happens via env.elb function.
502
+ */
503
+ interface Instance<T extends Config = Config> {
473
504
  type: string;
474
505
  config: T;
475
- collector: Instance$2;
506
+ push: Fn$1;
476
507
  destroy?(): void | Promise<void>;
508
+ on?(event: Types, context?: unknown): void | Promise<void>;
509
+ }
510
+ /**
511
+ * Source initialization function signature.
512
+ *
513
+ * Sources are functions that receive configuration and environment dependencies
514
+ * and return a stateless instance.
515
+ *
516
+ * @param config - Source configuration (settings, type, etc.)
517
+ * @param env - Environment with elb function and platform APIs (defaults to {})
518
+ * @returns Source instance or promise of instance
519
+ */
520
+ type Init<T extends Config = Config> = (config: Partial<T>, env?: Environment) => Instance<T> | Promise<Instance<T>>;
521
+ /**
522
+ * Source configuration interface for collector initialization.
523
+ * Similar to destinations, this defines the structure for source definitions.
524
+ */
525
+ type InitSource<T extends Config = Config> = {
526
+ code: Init<T>;
527
+ config?: T;
528
+ env?: Partial<Environment>;
529
+ };
530
+ /**
531
+ * Sources configuration for collector.
532
+ * Maps source IDs to their initialization configurations.
533
+ */
534
+ interface InitSources {
535
+ [sourceId: string]: InitSource<any>;
477
536
  }
478
537
 
479
- type source_CreateSource<T extends Config$1 = Config$1, E = AnyFunction> = CreateSource<T, E>;
480
- type source_Init<T extends Config$1 = Config$1, E = AnyFunction> = Init<T, E>;
538
+ type source_Config = Config;
539
+ type source_Environment = Environment;
540
+ type source_Init<T extends Config = Config> = Init<T>;
481
541
  type source_InitConfig = InitConfig;
482
- type source_Instance<T extends Config$1 = Config$1> = Instance<T>;
542
+ type source_InitSource<T extends Config = Config> = InitSource<T>;
543
+ type source_InitSources = InitSources;
544
+ type source_Instance<T extends Config = Config> = Instance<T>;
483
545
  declare namespace source {
484
- export type { Config$1 as Config, source_CreateSource as CreateSource, source_Init as Init, source_InitConfig as InitConfig, source_Instance as Instance };
546
+ export type { source_Config as Config, source_Environment as Environment, source_Init as Init, source_InitConfig as InitConfig, source_InitSource as InitSource, source_InitSources as InitSources, source_Instance as Instance };
485
547
  }
486
548
 
487
549
  type AnyObject<T = unknown> = Record<string, T>;
@@ -490,7 +552,7 @@ type AnyFunction = (...args: unknown[]) => unknown;
490
552
  type SingleOrArray<T> = T | Array<T>;
491
553
  declare global {
492
554
  namespace WalkerOS {
493
- interface Elb extends Fn$2 {
555
+ interface Elb extends Fn$1 {
494
556
  }
495
557
  }
496
558
  }
@@ -498,7 +560,7 @@ type Events = Array<Event>;
498
560
  type PartialEvent = Partial<Event>;
499
561
  type DeepPartialEvent = DeepPartial<Event>;
500
562
  interface Event {
501
- event: string;
563
+ name: string;
502
564
  data: Properties;
503
565
  context: OrderedProperties;
504
566
  globals: Properties;
@@ -566,7 +628,7 @@ interface OrderedProperties {
566
628
  }
567
629
  type Entities = Array<Entity>;
568
630
  interface Entity {
569
- type: string;
631
+ entity: string;
570
632
  data: Properties;
571
633
  nested: Entities;
572
634
  context: OrderedProperties;
@@ -605,26 +667,6 @@ declare namespace walkeros {
605
667
  export type { walkeros_ActionHandler as ActionHandler, walkeros_AnyFunction as AnyFunction, walkeros_AnyObject as AnyObject, walkeros_Consent as Consent, walkeros_ConsentHandler as ConsentHandler, walkeros_DeepPartial as DeepPartial, walkeros_DeepPartialEvent as DeepPartialEvent, walkeros_Elb as Elb, walkeros_Entities as Entities, walkeros_Entity as Entity, walkeros_Event as Event, walkeros_Events as Events, walkeros_OrderedProperties as OrderedProperties, walkeros_PartialEvent as PartialEvent, walkeros_PromiseOrValue as PromiseOrValue, walkeros_Properties as Properties, walkeros_Property as Property, walkeros_PropertyType as PropertyType, walkeros_SingleOrArray as SingleOrArray, walkeros_Source as Source, walkeros_SourceType as SourceType, walkeros_User as User, walkeros_Version as Version };
606
668
  }
607
669
 
608
- interface Fn {
609
- name: string;
610
- type?: string;
611
- }
612
- type OnCall = (context: Fn, args: unknown[]) => void;
613
- interface Config {
614
- dryRun?: boolean;
615
- mockReturn?: unknown;
616
- onCall?: OnCall;
617
- }
618
- type Wrap = <T>(name: string, originalFn: T) => T;
619
-
620
- type wrapper_Config = Config;
621
- type wrapper_Fn = Fn;
622
- type wrapper_OnCall = OnCall;
623
- type wrapper_Wrap = Wrap;
624
- declare namespace wrapper {
625
- export type { wrapper_Config as Config, wrapper_Fn as Fn, wrapper_OnCall as OnCall, wrapper_Wrap as Wrap };
626
- }
627
-
628
670
  type StorageType = 'local' | 'session' | 'cookie';
629
671
  declare const Const: {
630
672
  readonly Utils: {
@@ -747,39 +789,6 @@ declare function getGrantedConsent(required: Consent | undefined, state?: Consen
747
789
  */
748
790
  declare function createDestination<Settings = unknown, Mapping = unknown>(baseDestination: Instance$1<Settings, Mapping>, config: Partial<Config$3<Settings, Mapping>>): Instance$1<Settings, Mapping>;
749
791
 
750
- /**
751
- * Creates a new source function by merging a base source with additional configuration.
752
- *
753
- * This utility enables elegant source configuration while avoiding config side-effects
754
- * that could occur when reusing source functions across multiple collector instances.
755
- *
756
- * @template T - The source config type extending Source.Config
757
- * @template E - The source elb function type
758
- * @param source - The base source function to extend
759
- * @param config - Additional configuration to merge with the source's config
760
- * @returns A new source function with merged configuration
761
- *
762
- * @example
763
- * ```typescript
764
- * import { createSource } from '@walkeros/core';
765
- * import { sourceBrowser } from '@walkeros/web-source-browser';
766
- *
767
- * const configuredSource = createSource(sourceBrowser, {
768
- * settings: {
769
- * scope: document.body,
770
- * session: true
771
- * }
772
- * });
773
- *
774
- * const { elb } = await createCollector({
775
- * sources: {
776
- * browser: configuredSource
777
- * }
778
- * });
779
- * ```
780
- */
781
- declare function createSource<T extends Config$1, E = unknown>(source: Init<T, E>, config: Partial<T>): Init<T, E>;
782
-
783
792
  /**
784
793
  * Creates a complete event with default values.
785
794
  * Used for testing and debugging.
@@ -1110,13 +1119,4 @@ declare function validateEvent(obj: unknown, customContracts?: Contracts): Event
1110
1119
  */
1111
1120
  declare function validateProperty(obj: AnyObject, key: string, value: unknown, schema: Property$1): Property | never;
1112
1121
 
1113
- /**
1114
- * Creates a wrapper function that can be used to wrap other functions.
1115
- *
1116
- * @param type The type of the wrapper.
1117
- * @param config The configuration for the wrapper.
1118
- * @returns A wrapper function.
1119
- */
1120
- declare function createWrapper(type?: string, { dryRun, mockReturn, onCall }?: Config): Wrap;
1121
-
1122
- export { collector as Collector, Const, data as Data, destination as Destination, elb as Elb, handler as Handler, hooks as Hooks, mapping as Mapping, type MarketingParameters, on as On, request as Request, schema as Schema, type SendDataValue, type SendHeaders, type SendResponse, source as Source, type StorageType, walkeros as WalkerOS, wrapper as Wrapper, anonymizeIP, assign, castToProperty, castValue, clone, createDestination, createEvent, createSource, createWrapper, debounce, filterValues, getBrowser, getBrowserVersion, getByPath, getDeviceType, getEvent, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingValue, getMarketingParameters, getOS, getOSVersion, isArguments, isArray, isBoolean, isCommand, isDefined, isElementOrDocument, isFunction, isNumber, isObject, isPropertyType, isSameType, isString, onLog, parseUserAgent, requestToData, requestToParameter, setByPath, throttle, throwError, transformData, trim, tryCatch, tryCatchAsync, useHooks, validateEvent, validateProperty };
1122
+ export { collector as Collector, Const, data as Data, destination as Destination, elb as Elb, flow as Flow, handler as Handler, hooks as Hooks, mapping as Mapping, type MarketingParameters, on as On, request as Request, schema as Schema, type SendDataValue, type SendHeaders, type SendResponse, source as Source, type StorageType, walkeros as WalkerOS, anonymizeIP, assign, castToProperty, castValue, clone, createDestination, createEvent, debounce, filterValues, getBrowser, getBrowserVersion, getByPath, getDeviceType, getEvent, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingValue, getMarketingParameters, getOS, getOSVersion, isArguments, isArray, isBoolean, isCommand, isDefined, isElementOrDocument, isFunction, isNumber, isObject, isPropertyType, isSameType, isString, onLog, parseUserAgent, requestToData, requestToParameter, setByPath, throttle, throwError, transformData, trim, tryCatch, tryCatchAsync, useHooks, validateEvent, validateProperty };