/* eslint-disable */ /** * DO NOT MODIFY IT BY HAND. Run `yarn json-schemas:sync` instead. */ /** * Schema of all properties of a RUM event */ export type RumEvent = | RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumVitalEvent /** * Schema of all properties of an Action event */ export type RumActionEvent = CommonProperties & ViewContainerSchema & { /** * RUM event type */ readonly type: 'action' /** * Action properties */ readonly action: { /** * Type of the action */ readonly type: 'custom' | 'click' | 'tap' | 'scroll' | 'swipe' | 'application_start' | 'back' /** * UUID of the action */ readonly id?: string /** * Duration in ns to the action is considered loaded */ readonly loading_time?: number /** * Action target properties */ readonly target?: { /** * Target name */ name: string [k: string]: unknown } /** * Action frustration properties */ readonly frustration?: { /** * Action frustration types */ readonly type: ('rage_click' | 'dead_click' | 'error_click' | 'rage_tap' | 'error_tap')[] [k: string]: unknown } /** * Properties of the errors of the action */ readonly error?: { /** * Number of errors that occurred on the action */ readonly count: number [k: string]: unknown } /** * Properties of the crashes of the action */ readonly crash?: { /** * Number of crashes that occurred on the action */ readonly count: number [k: string]: unknown } /** * Properties of the long tasks of the action */ readonly long_task?: { /** * Number of long tasks that occurred on the action */ readonly count: number [k: string]: unknown } /** * Properties of the resources of the action */ readonly resource?: { /** * Number of resources that occurred on the action */ readonly count: number [k: string]: unknown } [k: string]: unknown } /** * View properties */ readonly view: { /** * Is the action starting in the foreground (focus in browser) */ readonly in_foreground?: boolean [k: string]: unknown } /** * Internal properties */ _oo?: { /** * Action properties */ readonly action?: { /** * Action position properties */ readonly position?: { /** * X coordinate relative to the target element of the action (in pixels) */ readonly x: number /** * Y coordinate relative to the target element of the action (in pixels) */ readonly y: number [k: string]: unknown } /** * Target properties */ target?: { /** * CSS selector path of the target element */ readonly selector?: string /** * Width of the target element (in pixels) */ readonly width?: number /** * Height of the target element (in pixels) */ readonly height?: number [k: string]: unknown } /** * The strategy of how the auto click action name is computed */ name_source?: | 'custom_attribute' | 'mask_placeholder' | 'standard_attribute' | 'text_content' | 'mask_disallowed' | 'blank' [k: string]: unknown } [k: string]: unknown } [k: string]: unknown } /** * Schema of all properties of an Transition event */ export type RumTransitionEvent = CommonProperties & { /** * RUM event type */ readonly type: 'transition' view: { [k: string]: unknown } /** * Stream properties */ readonly stream: { /** * UUID of the stream */ readonly id: string [k: string]: unknown } /** * Transition properties */ readonly transition: { /** * Type of the transition */ readonly type: string /** * UUID of the transition */ readonly id?: string /** * The player's current timestamp in milliseconds */ readonly timestamp?: number /** * Buffer starvation duration, the amount of time spent rebuffering in milliseconds */ readonly buffer_starvation_duration?: number /** * Media start delay, the amount of time spent loading before playing in milliseconds */ readonly media_start_delay?: number /** * Error code, as reported by the player */ readonly error_code?: number /** * Duration of the event in milliseconds */ readonly duration?: number [k: string]: unknown } [k: string]: unknown } /** * Schema of all properties of an Error event */ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewContainerSchema & { /** * RUM event type */ readonly type: 'error' /** * Error properties */ readonly error: { /** * UUID of the error */ readonly id?: string /** * Error message */ message: string /** * Source of the error */ readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report' /** * Stacktrace of the error */ stack?: string /** * Causes of the error */ causes?: { /** * Error message */ message: string /** * The type of the error */ readonly type?: string /** * Stacktrace of the error */ stack?: string /** * Source of the error */ readonly source: 'network' | 'source' | 'console' | 'logger' | 'agent' | 'webview' | 'custom' | 'report' [k: string]: unknown }[] /** * Whether this error crashed the host application */ readonly is_crash?: boolean /** * Fingerprint used for Error Tracking custom grouping */ fingerprint?: string /** * The type of the error */ readonly type?: string /** * The specific category of the error. It provides a high-level grouping for different types of errors. */ readonly category?: 'ANR' | 'App Hang' | 'Exception' | 'Watchdog Termination' | 'Memory Warning' | 'Network' /** * Whether the error has been handled manually in the source code or not */ readonly handling?: 'handled' | 'unhandled' /** * Handling call stack */ readonly handling_stack?: string /** * Source type of the error (the language or platform impacting the error stacktrace format) */ readonly source_type?: | 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' /** * Resource properties of the error */ readonly resource?: { /** * HTTP method of the resource */ readonly method: 'POST' | 'GET' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'TRACE' | 'OPTIONS' | 'CONNECT' /** * HTTP Status code of the resource */ readonly status_code: number /** * URL of the resource */ url: string /** * The provider for this resource */ readonly provider?: { /** * The domain name of the provider */ readonly domain?: string /** * The user friendly name of the provider */ readonly name?: string /** * The type of provider */ readonly type?: | 'ad' | 'advertising' | 'analytics' | 'cdn' | 'content' | 'customer-success' | 'first party' | 'hosting' | 'marketing' | 'other' | 'social' | 'tag-manager' | 'utility' | 'video' [k: string]: unknown } [k: string]: unknown } /** * Description of each thread in the process when error happened. */ threads?: { /** * Name of the thread (e.g. 'Thread 0'). */ readonly name: string /** * Tells if the thread crashed. */ readonly crashed: boolean /** * Unsymbolicated stack trace of the given thread. */ readonly stack: string /** * Platform-specific state of the thread when its state was captured (CPU registers dump for iOS, thread state enum for Android, etc.). */ readonly state?: string [k: string]: unknown }[] /** * Description of each binary image (native libraries; for Android: .so files) loaded or referenced by the process/application. */ readonly binary_images?: { /** * Build UUID that uniquely identifies the binary image. */ readonly uuid: string /** * Name of the library. */ readonly name: string /** * Determines if it's a system or user library. */ readonly is_system: boolean /** * Library's load address (hexadecimal). */ readonly load_address?: string /** * Max value from the library address range (hexadecimal). */ readonly max_address?: string /** * CPU architecture from the library. */ readonly arch?: string [k: string]: unknown }[] /** * A boolean value saying if any of the stack traces was truncated due to minification. */ readonly was_truncated?: boolean /** * Platform-specific metadata of the error event. */ readonly meta?: { /** * The CPU architecture of the process that crashed. */ readonly code_type?: string /** * Parent process information. */ readonly parent_process?: string /** * A client-generated 16-byte UUID of the incident. */ readonly incident_identifier?: string /** * The name of the crashed process. */ readonly process?: string /** * The name of the corresponding BSD termination signal. (in case of iOS crash) */ readonly exception_type?: string /** * CPU specific information about the exception encoded into 64-bit hexadecimal number preceded by the signal code. */ readonly exception_codes?: string /** * The location of the executable. */ readonly path?: string [k: string]: unknown } /** * Content Security Violation properties */ readonly csp?: { /** * In the context of CSP errors, indicates how the violated policy is configured to be treated by the user agent. */ readonly disposition?: 'enforce' | 'report' [k: string]: unknown } /** * Time since application start when error happened (in milliseconds) */ readonly time_since_app_start?: number [k: string]: unknown } /** * Properties of App Hang and ANR errors */ readonly freeze?: { /** * Duration of the main thread freeze (in ns) */ readonly duration: number [k: string]: unknown } /** * View properties */ readonly view: { /** * Is the error starting in the foreground (focus in browser) */ readonly in_foreground?: boolean [k: string]: unknown } /** * Feature flags properties */ readonly feature_flags?: { [k: string]: unknown } [k: string]: unknown } /** * Schema of all properties of a Long Task event */ export type RumLongTaskEvent = CommonProperties & ActionChildProperties & ViewContainerSchema & { /** * RUM event type */ readonly type: 'long_task' view: { [k: string]: unknown } /** * Long Task properties */ readonly long_task: { /** * UUID of the long task or long animation frame */ readonly id?: string /** * Start time of the long animation frame */ readonly start_time?: number /** * Type of the event: long task or long animation frame */ readonly entry_type?: 'long-task' | 'long-animation-frame' /** * Duration in ns of the long task or long animation frame */ readonly duration: number /** * Duration in ns for which the animation frame was being blocked */ readonly blocking_duration?: number /** * Time difference (in ns) between the timeOrigin and the start time of the rendering cycle, which includes requestAnimationFrame callbacks, style and layout calculation, resize observer and intersection observer callbacks */ readonly render_start?: number /** * Time difference (in ns) between the timeOrigin and the start time of the time period spent in style and layout calculations */ readonly style_and_layout_start?: number /** * Time difference (in ns) between the timeOrigin and the start time of of the first UI event (mouse/keyboard and so on) to be handled during the course of this frame */ readonly first_ui_event_timestamp?: number /** * Whether this long task is considered a frozen frame */ readonly is_frozen_frame?: boolean /** * A list of long scripts that were executed over the course of the long frame */ readonly scripts?: { /** * Duration in ns between startTime and when the subsequent microtask queue has finished processing */ readonly duration?: number /** * Duration in ns of the total time spent in 'pausing' synchronous operations (alert, synchronous XHR) */ readonly pause_duration?: number /** * Duration in ns of the the total time spent processing forced layout and style inside this function */ readonly forced_style_and_layout_duration?: number /** * Time the entry function was invoked */ readonly start_time?: number /** * Time after compilation */ readonly execution_start?: number /** * The script resource name where available (or empty if not found) */ source_url?: string /** * The script function name where available (or empty if not found) */ readonly source_function_name?: string /** * The script character position where available (or -1 if not found) */ readonly source_char_position?: number /** * Information about the invoker of the script */ invoker?: string /** * Type of the invoker of the script */ readonly invoker_type?: | 'user-callback' | 'event-listener' | 'resolve-promise' | 'reject-promise' | 'classic-script' | 'module-script' /** * The container (the top-level document, or an