@tracelog/lib 2.2.0 → 2.2.1-rc.82.7

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.
@@ -62,6 +62,21 @@ type MetadataNestedObject = Record<string, MetadataNestedValue>;
62
62
  * ```
63
63
  */
64
64
  type MetadataType = MetadataPrimitive | string[] | MetadataNestedObject | MetadataNestedObject[];
65
+ /**
66
+ * Result returned by tracelog.init()
67
+ *
68
+ * Contains the session identifier generated during initialization.
69
+ * The sessionId is empty string in edge cases (SSR, disabled, race condition).
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * const { sessionId } = await tracelog.init();
74
+ * console.log('Session started:', sessionId);
75
+ * ```
76
+ */
77
+ interface InitResult {
78
+ sessionId: string;
79
+ }
65
80
 
66
81
  /**
67
82
  * Element configuration for viewport tracking with optional identifiers
@@ -2287,7 +2302,7 @@ type CustomHeadersProvider = () => Record<string, string>;
2287
2302
  */
2288
2303
  interface TraceLogTestBridge {
2289
2304
  readonly initialized: boolean;
2290
- init(config?: Config): Promise<void>;
2305
+ init(config?: Config): Promise<InitResult>;
2291
2306
  destroy(force?: boolean): void;
2292
2307
  sendCustomEvent(name: string, data?: Record<string, unknown> | Record<string, unknown>[]): void;
2293
2308
  event(name: string, metadata?: Record<string, unknown> | Record<string, unknown>[]): void;
@@ -2425,7 +2440,6 @@ declare const MAX_CUSTOM_EVENT_STRING_SIZE: number;
2425
2440
  declare const MAX_CUSTOM_EVENT_KEYS = 10;
2426
2441
  declare const MAX_CUSTOM_EVENT_ARRAY_SIZE = 10;
2427
2442
  declare const MAX_NESTED_OBJECT_KEYS = 20;
2428
- declare const MAX_METADATA_NESTING_DEPTH = 1;
2429
2443
  declare const MAX_STRING_LENGTH = 1000;
2430
2444
  declare const MAX_STRING_LENGTH_IN_ARRAY = 500;
2431
2445
  declare const MAX_ARRAY_LENGTH = 100;
@@ -2475,7 +2489,7 @@ declare const DEFAULT_WEB_VITALS_MODE: WebVitalsMode;
2475
2489
  declare const getWebVitalsThresholds: (mode?: WebVitalsMode) => Record<WebVitalType, number>;
2476
2490
 
2477
2491
  declare const tracelog: {
2478
- init: (config?: Config) => Promise<void>;
2492
+ init: (config?: Config) => Promise<InitResult>;
2479
2493
  event: (name: string, metadata?: Record<string, MetadataType> | Record<string, MetadataType>[]) => void;
2480
2494
  on: <K extends keyof EmitterMap>(event: K, callback: EmitterCallback<EmitterMap[K]>) => void;
2481
2495
  off: <K extends keyof EmitterMap>(event: K, callback: EmitterCallback<EmitterMap[K]>) => void;
@@ -2484,10 +2498,11 @@ declare const tracelog: {
2484
2498
  setCustomHeaders: (provider: CustomHeadersProvider) => void;
2485
2499
  removeCustomHeaders: () => void;
2486
2500
  isInitialized: () => boolean;
2501
+ getSessionId: () => string | null;
2487
2502
  destroy: () => void;
2488
2503
  setQaMode: (enabled: boolean) => void;
2489
2504
  updateGlobalMetadata: (metadata: Record<string, MetadataType>) => void;
2490
2505
  mergeGlobalMetadata: (metadata: Record<string, MetadataType>) => void;
2491
2506
  };
2492
2507
 
2493
- export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_METADATA_NESTING_DEPTH, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
2508
+ export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, type InitResult, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
@@ -62,6 +62,21 @@ type MetadataNestedObject = Record<string, MetadataNestedValue>;
62
62
  * ```
63
63
  */
64
64
  type MetadataType = MetadataPrimitive | string[] | MetadataNestedObject | MetadataNestedObject[];
65
+ /**
66
+ * Result returned by tracelog.init()
67
+ *
68
+ * Contains the session identifier generated during initialization.
69
+ * The sessionId is empty string in edge cases (SSR, disabled, race condition).
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * const { sessionId } = await tracelog.init();
74
+ * console.log('Session started:', sessionId);
75
+ * ```
76
+ */
77
+ interface InitResult {
78
+ sessionId: string;
79
+ }
65
80
 
66
81
  /**
67
82
  * Element configuration for viewport tracking with optional identifiers
@@ -2287,7 +2302,7 @@ type CustomHeadersProvider = () => Record<string, string>;
2287
2302
  */
2288
2303
  interface TraceLogTestBridge {
2289
2304
  readonly initialized: boolean;
2290
- init(config?: Config): Promise<void>;
2305
+ init(config?: Config): Promise<InitResult>;
2291
2306
  destroy(force?: boolean): void;
2292
2307
  sendCustomEvent(name: string, data?: Record<string, unknown> | Record<string, unknown>[]): void;
2293
2308
  event(name: string, metadata?: Record<string, unknown> | Record<string, unknown>[]): void;
@@ -2425,7 +2440,6 @@ declare const MAX_CUSTOM_EVENT_STRING_SIZE: number;
2425
2440
  declare const MAX_CUSTOM_EVENT_KEYS = 10;
2426
2441
  declare const MAX_CUSTOM_EVENT_ARRAY_SIZE = 10;
2427
2442
  declare const MAX_NESTED_OBJECT_KEYS = 20;
2428
- declare const MAX_METADATA_NESTING_DEPTH = 1;
2429
2443
  declare const MAX_STRING_LENGTH = 1000;
2430
2444
  declare const MAX_STRING_LENGTH_IN_ARRAY = 500;
2431
2445
  declare const MAX_ARRAY_LENGTH = 100;
@@ -2475,7 +2489,7 @@ declare const DEFAULT_WEB_VITALS_MODE: WebVitalsMode;
2475
2489
  declare const getWebVitalsThresholds: (mode?: WebVitalsMode) => Record<WebVitalType, number>;
2476
2490
 
2477
2491
  declare const tracelog: {
2478
- init: (config?: Config) => Promise<void>;
2492
+ init: (config?: Config) => Promise<InitResult>;
2479
2493
  event: (name: string, metadata?: Record<string, MetadataType> | Record<string, MetadataType>[]) => void;
2480
2494
  on: <K extends keyof EmitterMap>(event: K, callback: EmitterCallback<EmitterMap[K]>) => void;
2481
2495
  off: <K extends keyof EmitterMap>(event: K, callback: EmitterCallback<EmitterMap[K]>) => void;
@@ -2484,10 +2498,11 @@ declare const tracelog: {
2484
2498
  setCustomHeaders: (provider: CustomHeadersProvider) => void;
2485
2499
  removeCustomHeaders: () => void;
2486
2500
  isInitialized: () => boolean;
2501
+ getSessionId: () => string | null;
2487
2502
  destroy: () => void;
2488
2503
  setQaMode: (enabled: boolean) => void;
2489
2504
  updateGlobalMetadata: (metadata: Record<string, MetadataType>) => void;
2490
2505
  mergeGlobalMetadata: (metadata: Record<string, MetadataType>) => void;
2491
2506
  };
2492
2507
 
2493
- export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_METADATA_NESTING_DEPTH, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
2508
+ export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, type InitResult, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
@@ -39,12 +39,11 @@ var MAX_CUSTOM_EVENT_STRING_SIZE = 8 * 1024;
39
39
  var MAX_CUSTOM_EVENT_KEYS = 10;
40
40
  var MAX_CUSTOM_EVENT_ARRAY_SIZE = 10;
41
41
  var MAX_NESTED_OBJECT_KEYS = 20;
42
- var MAX_METADATA_NESTING_DEPTH = 1;
43
42
  var MAX_TEXT_LENGTH = 255;
44
43
  var MAX_STRING_LENGTH = 1e3;
45
44
  var MAX_STRING_LENGTH_IN_ARRAY = 500;
46
45
  var MAX_ARRAY_LENGTH = 100;
47
- var MAX_OBJECT_DEPTH = 3;
46
+ var MAX_OBJECT_DEPTH = 10;
48
47
  var PRECISION_TWO_DECIMALS = 2;
49
48
  var MAX_BEACON_PAYLOAD_SIZE = 64 * 1024;
50
49
  var MAX_FINGERPRINTS = 1500;
@@ -556,7 +555,7 @@ var LONG_TASK_THROTTLE_MS = 1e3;
556
555
  var MAX_NAVIGATION_HISTORY = 50;
557
556
 
558
557
  // package.json
559
- var version = "2.1.2";
558
+ var version = "2.2.1";
560
559
 
561
560
  // src/constants/version.constants.ts
562
561
  var LIB_VERSION = version;
@@ -847,14 +846,10 @@ var sanitizeString = (value) => {
847
846
  }
848
847
  });
849
848
  }
850
- sanitized = sanitized.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#x27;").replaceAll("/", "&#x2F;");
851
849
  const result = sanitized.trim();
852
850
  return result;
853
851
  };
854
852
  var sanitizeValue = (value, depth = 0) => {
855
- if (depth > MAX_OBJECT_DEPTH) {
856
- return null;
857
- }
858
853
  if (value === null || value === void 0) {
859
854
  return null;
860
855
  }
@@ -870,6 +865,9 @@ var sanitizeValue = (value, depth = 0) => {
870
865
  if (typeof value === "boolean") {
871
866
  return value;
872
867
  }
868
+ if (depth > MAX_OBJECT_DEPTH) {
869
+ return null;
870
+ }
873
871
  if (Array.isArray(value)) {
874
872
  const limitedArray = value.slice(0, MAX_ARRAY_LENGTH);
875
873
  const sanitizedArray = limitedArray.map((item) => sanitizeValue(item, depth + 1)).filter((item) => item !== null);
@@ -1128,69 +1126,34 @@ var validateAndNormalizeConfig = (config) => {
1128
1126
  };
1129
1127
 
1130
1128
  // src/utils/validations/type-guards.utils.ts
1131
- var isValidArrayItem = (item) => {
1132
- if (typeof item === "string") {
1129
+ var isSerializable = (value, seen = /* @__PURE__ */ new Set()) => {
1130
+ if (value === null || value === void 0) {
1133
1131
  return true;
1134
1132
  }
1135
- if (typeof item === "object" && item !== null && !Array.isArray(item)) {
1136
- const entries = Object.entries(item);
1137
- if (entries.length > MAX_NESTED_OBJECT_KEYS) {
1138
- return false;
1139
- }
1140
- for (const [, value] of entries) {
1141
- if (value === null || value === void 0) {
1142
- continue;
1143
- }
1144
- const type = typeof value;
1145
- if (type !== "string" && type !== "number" && type !== "boolean") {
1146
- return false;
1147
- }
1148
- }
1133
+ const type = typeof value;
1134
+ if (type === "string" || type === "number" || type === "boolean") {
1149
1135
  return true;
1150
1136
  }
1151
- return false;
1152
- };
1153
- var isOnlyPrimitiveFields = (object, depth = 0) => {
1154
- if (typeof object !== "object" || object === null) {
1137
+ if (type === "function" || type === "symbol" || type === "bigint") {
1155
1138
  return false;
1156
1139
  }
1157
- if (depth > MAX_METADATA_NESTING_DEPTH) {
1140
+ if (seen.has(value)) {
1158
1141
  return false;
1159
1142
  }
1160
- for (const value of Object.values(object)) {
1161
- if (value === null || value === void 0) {
1162
- continue;
1163
- }
1164
- const type = typeof value;
1165
- if (type === "string" || type === "number" || type === "boolean") {
1166
- continue;
1167
- }
1168
- if (Array.isArray(value)) {
1169
- if (value.length === 0) {
1170
- continue;
1171
- }
1172
- const firstItem = value[0];
1173
- const isStringArray = typeof firstItem === "string";
1174
- if (isStringArray) {
1175
- if (!value.every((item) => typeof item === "string")) {
1176
- return false;
1177
- }
1178
- } else {
1179
- if (!value.every((item) => isValidArrayItem(item))) {
1180
- return false;
1181
- }
1182
- }
1183
- continue;
1184
- }
1185
- if (type === "object" && depth === 0) {
1186
- if (!isOnlyPrimitiveFields(value, depth + 1)) {
1187
- return false;
1188
- }
1189
- continue;
1190
- }
1143
+ seen.add(value);
1144
+ if (Array.isArray(value)) {
1145
+ return value.every((item) => isSerializable(item, seen));
1146
+ }
1147
+ if (type === "object") {
1148
+ return Object.values(value).every((v) => isSerializable(v, seen));
1149
+ }
1150
+ return false;
1151
+ };
1152
+ var isOnlyPrimitiveFields = (object) => {
1153
+ if (typeof object !== "object" || object === null) {
1191
1154
  return false;
1192
1155
  }
1193
- return true;
1156
+ return isSerializable(object);
1194
1157
  };
1195
1158
 
1196
1159
  // src/utils/validations/metadata-validations.utils.ts
@@ -6156,7 +6119,7 @@ var App = class extends StateManager {
6156
6119
  */
6157
6120
  async init(config = {}) {
6158
6121
  if (this.isInitialized) {
6159
- return;
6122
+ return { sessionId: this.get("sessionId") ?? "" };
6160
6123
  }
6161
6124
  this.managers.storage = new StorageManager();
6162
6125
  try {
@@ -6174,6 +6137,7 @@ var App = class extends StateManager {
6174
6137
  log("warn", "Failed to recover persisted events", { error });
6175
6138
  });
6176
6139
  this.isInitialized = true;
6140
+ return { sessionId: this.get("sessionId") ?? "" };
6177
6141
  } catch (error) {
6178
6142
  this.destroy(true);
6179
6143
  const errorMessage = error instanceof Error ? error.message : String(error);
@@ -6333,6 +6297,15 @@ var App = class extends StateManager {
6333
6297
  getEventManager() {
6334
6298
  return this.managers.event;
6335
6299
  }
6300
+ /**
6301
+ * Returns the current session ID.
6302
+ *
6303
+ * @returns The session ID string, or null if not yet initialized
6304
+ * @internal Used by api.getSessionId()
6305
+ */
6306
+ getSessionId() {
6307
+ return this.get("sessionId");
6308
+ }
6336
6309
  /**
6337
6310
  * Validates metadata object structure and values.
6338
6311
  *
@@ -6445,17 +6418,17 @@ var isInitializing = false;
6445
6418
  var isDestroying = false;
6446
6419
  var init = async (config) => {
6447
6420
  if (typeof window === "undefined" || typeof document === "undefined") {
6448
- return;
6421
+ return { sessionId: "" };
6449
6422
  }
6450
6423
  isDestroying = false;
6451
6424
  if (window.__traceLogDisabled === true) {
6452
- return;
6425
+ return { sessionId: "" };
6453
6426
  }
6454
6427
  if (app) {
6455
- return;
6428
+ return { sessionId: app.getSessionId() ?? "" };
6456
6429
  }
6457
6430
  if (isInitializing) {
6458
- return;
6431
+ return { sessionId: "" };
6459
6432
  }
6460
6433
  isInitializing = true;
6461
6434
  try {
@@ -6484,8 +6457,9 @@ var init = async (config) => {
6484
6457
  reject(new Error(`[TraceLog] Initialization timeout after ${INITIALIZATION_TIMEOUT_MS}ms`));
6485
6458
  }, INITIALIZATION_TIMEOUT_MS);
6486
6459
  });
6487
- await Promise.race([initPromise, timeoutPromise]);
6460
+ const result = await Promise.race([initPromise, timeoutPromise]);
6488
6461
  app = instance;
6462
+ return result;
6489
6463
  } catch (error) {
6490
6464
  try {
6491
6465
  instance.destroy(true);
@@ -6611,6 +6585,15 @@ var isInitialized = () => {
6611
6585
  }
6612
6586
  return app !== null;
6613
6587
  };
6588
+ var getSessionId = () => {
6589
+ if (typeof window === "undefined" || typeof document === "undefined") {
6590
+ return null;
6591
+ }
6592
+ if (!app) {
6593
+ return null;
6594
+ }
6595
+ return app.getSessionId();
6596
+ };
6614
6597
  var destroy = () => {
6615
6598
  if (typeof window === "undefined" || typeof document === "undefined") {
6616
6599
  return;
@@ -6684,12 +6667,13 @@ var tracelog = {
6684
6667
  setCustomHeaders,
6685
6668
  removeCustomHeaders,
6686
6669
  isInitialized,
6670
+ getSessionId,
6687
6671
  destroy,
6688
6672
  setQaMode: setQaMode2,
6689
6673
  updateGlobalMetadata,
6690
6674
  mergeGlobalMetadata
6691
6675
  };
6692
6676
 
6693
- export { AppConfigValidationError, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, DeviceType, EmitterEvent, ErrorType, EventType, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_METADATA_NESTING_DEPTH, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, Mode, PII_PATTERNS, PermanentError, SamplingRateValidationError, ScrollDirection, SessionTimeoutValidationError, SpecialApiUrl, TraceLogValidationError, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
6677
+ export { AppConfigValidationError, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, DeviceType, EmitterEvent, ErrorType, EventType, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, Mode, PII_PATTERNS, PermanentError, SamplingRateValidationError, ScrollDirection, SessionTimeoutValidationError, SpecialApiUrl, TraceLogValidationError, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
6694
6678
  //# sourceMappingURL=public-api.js.map
6695
6679
  //# sourceMappingURL=public-api.js.map