@datadog/mobile-react-native-openfeature 3.1.0

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.
Files changed (261) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +117 -0
  3. package/lib/commonjs/index.js +13 -0
  4. package/lib/commonjs/index.js.map +1 -0
  5. package/lib/commonjs/provider.js +106 -0
  6. package/lib/commonjs/provider.js.map +1 -0
  7. package/lib/module/index.js +9 -0
  8. package/lib/module/index.js.map +1 -0
  9. package/lib/module/provider.js +99 -0
  10. package/lib/module/provider.js.map +1 -0
  11. package/lib/typescript/core/src/DdAttributes.d.ts +20 -0
  12. package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
  13. package/lib/typescript/core/src/DdSdkReactNative.d.ts +122 -0
  14. package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -0
  15. package/lib/typescript/core/src/InternalLog.d.ts +13 -0
  16. package/lib/typescript/core/src/InternalLog.d.ts.map +1 -0
  17. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
  18. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
  19. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
  20. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
  21. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
  22. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
  23. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
  24. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
  25. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
  26. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
  27. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
  28. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
  29. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
  30. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
  31. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
  32. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
  33. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
  34. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
  35. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
  36. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
  37. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
  38. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
  39. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
  40. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
  41. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
  42. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
  43. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
  44. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
  45. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
  46. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
  47. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
  48. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
  49. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
  50. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
  51. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
  52. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
  53. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
  54. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
  55. package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
  56. package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
  57. package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
  58. package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
  59. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
  60. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
  61. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts +49 -0
  62. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
  63. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts +10 -0
  64. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
  65. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts +9 -0
  66. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
  67. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
  68. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
  69. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
  70. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
  71. package/lib/typescript/core/src/config/types/index.d.ts +10 -0
  72. package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
  73. package/lib/typescript/core/src/flags/DdFlags.d.ts +3 -0
  74. package/lib/typescript/core/src/flags/DdFlags.d.ts.map +1 -0
  75. package/lib/typescript/core/src/flags/FlagsClient.d.ts +114 -0
  76. package/lib/typescript/core/src/flags/FlagsClient.d.ts.map +1 -0
  77. package/lib/typescript/core/src/flags/internal.d.ts +14 -0
  78. package/lib/typescript/core/src/flags/internal.d.ts.map +1 -0
  79. package/lib/typescript/core/src/flags/types.d.ts +202 -0
  80. package/lib/typescript/core/src/flags/types.d.ts.map +1 -0
  81. package/lib/typescript/core/src/index.d.ts +41 -0
  82. package/lib/typescript/core/src/index.d.ts.map +1 -0
  83. package/lib/typescript/core/src/logs/DdLogs.d.ts +24 -0
  84. package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -0
  85. package/lib/typescript/core/src/logs/eventMapper.d.ts +13 -0
  86. package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -0
  87. package/lib/typescript/core/src/logs/types.d.ts +74 -0
  88. package/lib/typescript/core/src/logs/types.d.ts.map +1 -0
  89. package/lib/typescript/core/src/metro/debugIdResolver.d.ts +3 -0
  90. package/lib/typescript/core/src/metro/debugIdResolver.d.ts.map +1 -0
  91. package/lib/typescript/core/src/nativeModulesTypes.d.ts +86 -0
  92. package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -0
  93. package/lib/typescript/core/src/rum/DdRum.d.ts +59 -0
  94. package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -0
  95. package/lib/typescript/core/src/rum/constants.d.ts +2 -0
  96. package/lib/typescript/core/src/rum/constants.d.ts.map +1 -0
  97. package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts +22 -0
  98. package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts.map +1 -0
  99. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +24 -0
  100. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -0
  101. package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts +25 -0
  102. package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts.map +1 -0
  103. package/lib/typescript/core/src/rum/helper.d.ts +10 -0
  104. package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
  105. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts +17 -0
  106. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -0
  107. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +38 -0
  108. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -0
  109. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts +25 -0
  110. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map +1 -0
  111. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +29 -0
  112. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -0
  113. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts +4 -0
  114. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map +1 -0
  115. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts +5 -0
  116. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts.map +1 -0
  117. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts +8 -0
  118. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts.map +1 -0
  119. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts +9 -0
  120. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts.map +1 -0
  121. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts +2 -0
  122. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map +1 -0
  123. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +23 -0
  124. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -0
  125. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +46 -0
  126. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -0
  127. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts +24 -0
  128. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts.map +1 -0
  129. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +121 -0
  130. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -0
  131. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +14 -0
  132. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -0
  133. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
  134. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
  135. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +11 -0
  136. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -0
  137. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
  138. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
  139. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts +9 -0
  140. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts.map +1 -0
  141. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
  142. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
  143. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts +4 -0
  144. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts.map +1 -0
  145. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts +4 -0
  146. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts.map +1 -0
  147. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts +9 -0
  148. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts.map +1 -0
  149. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts +7 -0
  150. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts.map +1 -0
  151. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts +18 -0
  152. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts.map +1 -0
  153. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts +7 -0
  154. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts.map +1 -0
  155. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +22 -0
  156. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -0
  157. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts +6 -0
  158. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -0
  159. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts +3 -0
  160. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts.map +1 -0
  161. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts +14 -0
  162. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts.map +1 -0
  163. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +28 -0
  164. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -0
  165. package/lib/typescript/core/src/rum/types.d.ts +218 -0
  166. package/lib/typescript/core/src/rum/types.d.ts.map +1 -0
  167. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
  168. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
  169. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
  170. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
  171. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
  172. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
  173. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
  174. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
  175. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts +15 -0
  176. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
  177. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
  178. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
  179. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
  180. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
  181. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
  182. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
  183. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +17 -0
  184. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -0
  185. package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts +4 -0
  186. package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts.map +1 -0
  187. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts +11 -0
  188. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts.map +1 -0
  189. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts +10 -0
  190. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts.map +1 -0
  191. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts +7 -0
  192. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts.map +1 -0
  193. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts +12 -0
  194. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts.map +1 -0
  195. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts +14 -0
  196. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts.map +1 -0
  197. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts +6 -0
  198. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts.map +1 -0
  199. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts +18 -0
  200. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts.map +1 -0
  201. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts +8 -0
  202. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts.map +1 -0
  203. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts +21 -0
  204. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts.map +1 -0
  205. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts +8 -0
  206. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts.map +1 -0
  207. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts +4 -0
  208. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts.map +1 -0
  209. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +29 -0
  210. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -0
  211. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
  212. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
  213. package/lib/typescript/core/src/sdk/DdSdk.d.ts +3 -0
  214. package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -0
  215. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
  216. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
  217. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +27 -0
  218. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -0
  219. package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts +11 -0
  220. package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts.map +1 -0
  221. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +13 -0
  222. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -0
  223. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +14 -0
  224. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -0
  225. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +7 -0
  226. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -0
  227. package/lib/typescript/core/src/specs/NativeDdFlags.d.ts +15 -0
  228. package/lib/typescript/core/src/specs/NativeDdFlags.d.ts.map +1 -0
  229. package/lib/typescript/core/src/specs/NativeDdLogs.d.ts +70 -0
  230. package/lib/typescript/core/src/specs/NativeDdLogs.d.ts.map +1 -0
  231. package/lib/typescript/core/src/specs/NativeDdRum.d.ts +149 -0
  232. package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -0
  233. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +105 -0
  234. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -0
  235. package/lib/typescript/core/src/specs/NativeDdTrace.d.ts +24 -0
  236. package/lib/typescript/core/src/specs/NativeDdTrace.d.ts.map +1 -0
  237. package/lib/typescript/core/src/trace/DdTrace.d.ts +3 -0
  238. package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -0
  239. package/lib/typescript/core/src/types.d.ts +130 -0
  240. package/lib/typescript/core/src/types.d.ts.map +1 -0
  241. package/lib/typescript/core/src/utils/Timer.d.ts +22 -0
  242. package/lib/typescript/core/src/utils/Timer.d.ts.map +1 -0
  243. package/lib/typescript/core/src/utils/jsUtils.d.ts +2 -0
  244. package/lib/typescript/core/src/utils/jsUtils.d.ts.map +1 -0
  245. package/lib/typescript/core/src/utils/longTasksUtils.d.ts +7 -0
  246. package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -0
  247. package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
  248. package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
  249. package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts +8 -0
  250. package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts.map +1 -0
  251. package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts +19 -0
  252. package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts.map +1 -0
  253. package/lib/typescript/core/src/version.d.ts +2 -0
  254. package/lib/typescript/core/src/version.d.ts.map +1 -0
  255. package/lib/typescript/react-native-openfeature/src/index.d.ts +5 -0
  256. package/lib/typescript/react-native-openfeature/src/index.d.ts.map +1 -0
  257. package/lib/typescript/react-native-openfeature/src/provider.d.ts +27 -0
  258. package/lib/typescript/react-native-openfeature/src/provider.d.ts.map +1 -0
  259. package/package.json +87 -0
  260. package/src/index.ts +11 -0
  261. package/src/provider.ts +180 -0
@@ -0,0 +1,9 @@
1
+ import type { RUMResource } from '../../interfaces/RumResource';
2
+ type ResourceMapper = (resource: RUMResource) => RUMResource | null;
3
+ export declare class ResourceReporter {
4
+ private mappers;
5
+ constructor(resourceMappers: ResourceMapper[]);
6
+ reportResource: (resource: RUMResource) => void;
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=ResourceReporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceReporter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAIhE,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC;AAEpE,qBAAa,gBAAgB;IACzB,OAAO,CAAC,OAAO,CAAmB;gBAEtB,eAAe,EAAE,cAAc,EAAE;IAI7C,cAAc,aAAc,WAAW,UAWrC;CACL"}
@@ -0,0 +1,7 @@
1
+ import type { RUMResource } from '../../interfaces/RumResource';
2
+ /**
3
+ * Filters RN symbolicate calls and Expo logs calls that happen only in dev.
4
+ * @param resource RUMResource
5
+ */
6
+ export declare const filterDevResource: (resource: RUMResource) => RUMResource | null;
7
+ //# sourceMappingURL=internalDevResourceBlocklist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internalDevResourceBlocklist.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AA2BhE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAChB,WAAW,KACtB,WAAW,GAAG,IAShB,CAAC"}
@@ -0,0 +1,18 @@
1
+ interface Timing {
2
+ /**
3
+ * Time relative (absolute in case of iOS) to some point, in ns.
4
+ */
5
+ startTime: number;
6
+ /**
7
+ * Duration in ns.
8
+ */
9
+ duration: number;
10
+ }
11
+ interface ResourceTimings {
12
+ firstByte: Timing;
13
+ download: Timing;
14
+ fetch: Timing;
15
+ }
16
+ export declare function createTimings(startTime: number, responseStartTime: number, responseEndTime: number): ResourceTimings;
17
+ export {};
18
+ //# sourceMappingURL=resourceTiming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceTiming.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.ts"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,eAAe;IAIrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,aAAa,CACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,GACxB,eAAe,CAejB"}
@@ -0,0 +1,7 @@
1
+ import type { Hostname } from '../../distributedTracing/firstPartyHosts';
2
+ /**
3
+ * Returns the host from an URL.
4
+ * @returns the host (without the port) or null if could not cast the URL as host
5
+ */
6
+ export declare const URLHostParser: (url: string) => Hostname | null;
7
+ //# sourceMappingURL=URLHostParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"URLHostParser.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAKzE;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,QAAQ,GAAG,IAYtD,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { RequestProxyOptions } from '../interfaces/RequestProxy';
2
+ import { RequestProxy } from '../interfaces/RequestProxy';
3
+ import { ResourceReporter } from './DatadogRumResource/ResourceReporter';
4
+ interface XHRProxyProviders {
5
+ xhrType: typeof XMLHttpRequest;
6
+ resourceReporter: ResourceReporter;
7
+ }
8
+ /**
9
+ * Proxies XMLHttpRequest to track resources.
10
+ */
11
+ export declare class XHRProxy extends RequestProxy {
12
+ private providers;
13
+ private static originalXhrOpen;
14
+ private static originalXhrSend;
15
+ private static originalXhrSetRequestHeader;
16
+ constructor(providers: XHRProxyProviders);
17
+ static createWithResourceReporter(): XHRProxy;
18
+ onTrackingStart: (context: RequestProxyOptions) => void;
19
+ onTrackingStop: () => void;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=XHRProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XHRProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AA0BzE,UAAU,iBAAiB;IACvB,OAAO,EAAE,OAAO,cAAc,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,YAAY;IACtC,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAuC;IACrE,OAAO,CAAC,MAAM,CAAC,eAAe,CAAuC;IACrE,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAmD;gBAEjF,SAAS,EAAE,iBAAiB;IAKxC,MAAM,CAAC,0BAA0B;IAOjC,eAAe,YAAa,mBAAmB,UAK7C;IAEF,cAAc,aAKZ;CACL"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Transform a Set of baggage entries (strings like "key=value;prop1=foo;prop2")
3
+ * into a compliant baggage header value per W3C Baggage spec.
4
+ */
5
+ export declare function formatBaggageHeader(entries: Set<string>): string | null;
6
+ //# sourceMappingURL=baggageHeaderUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baggageHeaderUtils.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.ts"],"names":[],"mappings":"AA4BA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,IAAI,CA0GvE"}
@@ -0,0 +1,3 @@
1
+ export declare const RESOURCE_SIZE_ERROR_MESSAGE = "Couldn't get resource size, because an error occurred: ";
2
+ export declare function calculateResponseSize(xhr: XMLHttpRequest): number;
3
+ //# sourceMappingURL=responseSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responseSize.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,2BAA2B,4DACqB,CAAC;AAqB9D,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAkDjE"}
@@ -0,0 +1,14 @@
1
+ import type { PropagatorType } from '../../../../types';
2
+ export interface RequestProxyOptions {
3
+ tracingSamplingRate: number;
4
+ firstPartyHostsRegexMap: RegexMap;
5
+ }
6
+ export type RegexMap = {
7
+ regex: RegExp;
8
+ propagatorType: PropagatorType;
9
+ }[];
10
+ export declare abstract class RequestProxy {
11
+ abstract onTrackingStart: (context: RequestProxyOptions) => void;
12
+ abstract onTrackingStop: () => void;
13
+ }
14
+ //# sourceMappingURL=RequestProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,QAAQ,CAAC;CACrC;AAED,MAAM,MAAM,QAAQ,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,cAAc,CAAC;CAClC,EAAE,CAAC;AAEJ,8BAAsB,YAAY;IAC9B,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACjE,QAAQ,CAAC,cAAc,EAAE,MAAM,IAAI,CAAC;CACvC"}
@@ -0,0 +1,28 @@
1
+ import type { ResourceKind } from '../../../../types';
2
+ import type { DdRumResourceTracingAttributes } from '../../distributedTracing/distributedTracingAttributes';
3
+ export interface RUMResource {
4
+ key: string;
5
+ request: {
6
+ method: string;
7
+ url: string;
8
+ kind: ResourceKind;
9
+ };
10
+ tracingAttributes: DdRumResourceTracingAttributes;
11
+ graphqlAttributes?: DdRumResourceGraphqlAttributes;
12
+ response: {
13
+ statusCode: number;
14
+ size: number;
15
+ };
16
+ timings: {
17
+ startTime: number;
18
+ stopTime: number;
19
+ responseStartTime?: number;
20
+ };
21
+ resourceContext?: XMLHttpRequest;
22
+ }
23
+ export type DdRumResourceGraphqlAttributes = {
24
+ operationType?: string;
25
+ operationName?: string;
26
+ variables?: string;
27
+ };
28
+ //# sourceMappingURL=RumResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RumResource.d.ts","sourceRoot":"","sources":["../../../../../../../../../../core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAC;AAE5G,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,YAAY,CAAC;KACtB,CAAC;IACF,iBAAiB,EAAE,8BAA8B,CAAC;IAClD,iBAAiB,CAAC,EAAE,8BAA8B,CAAC;IACnD,QAAQ,EAAE;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,eAAe,CAAC,EAAE,cAAc,CAAC;CACpC;AAED,MAAM,MAAM,8BAA8B,GAAG;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,218 @@
1
+ import type { Attributes } from '../sdk/AttributesSingleton/types';
2
+ import type { ErrorSource, FeatureOperationFailure } from '../types';
3
+ import type { DatadogTracingContext } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingContext';
4
+ import type { DatadogTracingIdentifier } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier';
5
+ /**
6
+ * The entry point to use Datadog's RUM feature.
7
+ */
8
+ export type DdRumType = {
9
+ /**
10
+ * Start tracking a RUM View.
11
+ * @param key: The view unique key identifier.
12
+ * @param name: The view name.
13
+ * @param context: The additional context to send.
14
+ * @param timestampMs: The timestamp when the view started (in milliseconds). If not provided, current timestamp will be used.
15
+ */
16
+ startView(key: string, name: string, context?: object, timestampMs?: number): Promise<void>;
17
+ /**
18
+ * Stop tracking a RUM View.
19
+ * @param key: The view unique key identifier.
20
+ * @param context: The additional context to send.
21
+ * @param timestampMs: The timestamp when the view stopped (in milliseconds). If not provided, current timestamp will be used.
22
+ */
23
+ stopView(key: string, context?: object, timestampMs?: number): Promise<void>;
24
+ /**
25
+ * Start tracking a RUM Action.
26
+ * @param type: The action type (tap, scroll, swipe, back, custom).
27
+ * @param name: The action name.
28
+ * @param context: The additional context to send.
29
+ * @param timestampMs: The timestamp when the action started (in milliseconds). If not provided, current timestamp will be used.
30
+ */
31
+ startAction(type: RumActionType, name: string, context?: object, timestampMs?: number): Promise<void>;
32
+ /**
33
+ * Stop tracking the ongoing RUM Action.
34
+ * @param type: The action type (tap, scroll, swipe, back, custom).
35
+ * @param name: The action name.
36
+ * @param context: The additional context to send.
37
+ * @param timestampMs: The timestamp when the action stopped (in milliseconds). If not provided, current timestamp will be used.
38
+ */
39
+ stopAction(type: RumActionType, name: string, context?: object, timestampMs?: number): Promise<void>;
40
+ /**
41
+ * Stop tracking the ongoing RUM Action.
42
+ *
43
+ * Warning: using this function signature can lead to inconsistent behaviors on iOS and Android when multiple actions are started in parallel.
44
+ *
45
+ * @deprecated add the `type` and `name` of the action as first two arguments.
46
+ * @param context: The additional context to send.
47
+ * @param timestampMs: The timestamp when the action stopped (in milliseconds). If not provided, current timestamp will be used.
48
+ */
49
+ stopAction(context?: object, timestampMs?: number): Promise<void>;
50
+ /**
51
+ * Add a RUM Action.
52
+ * @param type: The action type (tap, scroll, swipe, back, custom).
53
+ * @param name: The action name.
54
+ * @param context: The additional context to send.
55
+ * @param timestampMs: The timestamp when the action occurred (in milliseconds). If not provided, current timestamp will be used.
56
+ */
57
+ addAction(type: RumActionType, name: string, context?: object, timestampMs?: number): Promise<void>;
58
+ /**
59
+ * Start tracking a RUM Resource.
60
+ * @param key: The resource unique key identifier.
61
+ * @param method: The resource method (GET, POST, …).
62
+ * @param url: The resource url.
63
+ * @param context: The additional context to send.
64
+ * @param timestampMs: The timestamp when the resource started (in milliseconds). If not provided, current timestamp will be used.
65
+ */
66
+ startResource(key: string, method: string, url: string, context?: object, timestampMs?: number): Promise<void>;
67
+ /**
68
+ * Stop tracking a RUM Resource.
69
+ * @param key: The resource unique key identifier.
70
+ * @param statusCode: The resource status code.
71
+ * @param kind: The resource's kind (xhr, document, image, css, font, …).
72
+ * @param size: The resource size in bytes. If size is unknown, use -1.
73
+ * @param context: The additional context to send.
74
+ * @param timestampMs: The timestamp when the resource stopped (in milliseconds). If not provided, current timestamp will be used.
75
+ */
76
+ stopResource(key: string, statusCode: number, kind: ResourceKind, size?: number, context?: object, timestampMs?: number): Promise<void>;
77
+ /**
78
+ * Add a RUM Error.
79
+ * @param message: The error message.
80
+ * @param source: The error source (network, source, console, webview, custom).
81
+ * @param stacktrace: The error stacktrace.
82
+ * @param context: The additional context to send.
83
+ * @param timestampMs: The timestamp when the error occurred (in milliseconds). If not provided, current timestamp will be used.
84
+ */
85
+ addError(message: string, source: ErrorSource, stacktrace: string, context?: object, timestampMs?: number): Promise<void>;
86
+ /**
87
+ * Adds a specific timing in the active View. The timing duration will be computed as the difference between the time the View was started and the time this function was called.
88
+ * @param name: The name of the new custom timing attribute. Timings can be nested up to 8 levels deep. Names using more than 8 levels will be sanitized by SDK.
89
+ */
90
+ addTiming(name: string): Promise<void>;
91
+ /**
92
+ * Adds a custom attribute to the active RUM View. It will be propagated to all future RUM events associated with the active View.
93
+ * @param key: key for this view attribute.
94
+ * @param value: value for this attribute.
95
+ */
96
+ addViewAttribute(key: string, value: unknown): Promise<void>;
97
+ /**
98
+ * Removes an attribute from the active RUM View.
99
+ * @param key: key for the attribute to be removed from the view.
100
+ */
101
+ removeViewAttribute(key: string): Promise<void>;
102
+ /**
103
+ * Adds multiple attributes to the active RUM View. They will be propagated to all future RUM events associated with the active View.
104
+ * @param attributes: key/value object containing all attributes to be added to the view.
105
+ */
106
+ addViewAttributes(attributes: Attributes): Promise<void>;
107
+ /**
108
+ * Removes multiple attributes from the active RUM View.
109
+ * @param keys: keys for the attributes to be removed from the view.
110
+ */
111
+ removeViewAttributes(keys: string[]): Promise<void>;
112
+ /**
113
+ * Adds the loading time of the view to the active view.
114
+ * It is calculated as the difference between the current time and the start time of the view.
115
+ * @param overwrite: If true, overwrites the previously calculated view loading time.
116
+ */
117
+ addViewLoadingTime(overwrite: boolean): Promise<void>;
118
+ /**
119
+ * Stops the current RUM Session.
120
+ */
121
+ stopSession(): Promise<void>;
122
+ /**
123
+ * Returns current session ID, or undefined if unavailable.
124
+ */
125
+ getCurrentSessionId(): Promise<string | undefined>;
126
+ /**
127
+ * Gets the tracing context for the given url, tracingSamplingRate and firstPartyHosts.
128
+ * The returned {@link DatadogTracingContext} can be used to retrieve the tracing headers
129
+ * to append to your network request, and the attributes to add to your RUM Resource.
130
+ *
131
+ * See also `DdRum.getTracingContextForPropagators(...)` if you do not intend to use `firstPartyHosts`.
132
+ *
133
+ * @param url The request URL.
134
+ * @param tracingSamplingRate Percentage of tracing integrations for network calls between your app and your backend. Range `0`-`100`.
135
+ * @param firstPartyHosts List of your backends hosts with propagator types.
136
+ */
137
+ getTracingContext(url: string, tracingSamplingRate: number, firstPartyHosts: FirstPartyHost[]): DatadogTracingContext;
138
+ /**
139
+ * Gets the tracing context for the given list of propagator types and tracing sampling rate.
140
+ *
141
+ * The returned {@link DatadogTracingContext} can be used to retrieve the tracing headers
142
+ * to append to your network request, and the attributes to add to your RUM Resource.
143
+ * @param propagators The list of propagators of type {@link PropagatorType}
144
+ * @param tracingSamplingRate Percentage of tracing integrations for network calls between your app and your backend. Range `0`-`100`.
145
+ */
146
+ getTracingContextForPropagators(propagators: PropagatorType[], tracingSamplingRate: number): DatadogTracingContext;
147
+ /**
148
+ * Generates a unique 128bit Trace ID.
149
+ */
150
+ generateTraceId(): DatadogTracingIdentifier;
151
+ /**
152
+ * Generates a unique 128bit Span ID.
153
+ */
154
+ generateSpanId(): DatadogTracingIdentifier;
155
+ /**
156
+ * Starts a Feature Operation, representing a high-level logical flow within your application (e.g., `login_flow`).
157
+ * @param name - The name of the feature operation (for example, `"login_flow"`).
158
+ * @param operationKey - An optional key to uniquely identify a specific instance of this operation when multiple are running concurrently.
159
+ * @param attributes - Custom attributes to attach to this operation.
160
+ */
161
+ startFeatureOperation(name: string, operationKey: string | null, attributes: object): Promise<void>;
162
+ /**
163
+ * Marks a Feature Operation as successfully completed.
164
+ * Should be called when a previously started operation (via `startFeatureOperation`) finishes without error.
165
+ * @param name - The name of the feature operation (for example, `"login_flow"`).
166
+ * @param operationKey - The key for the operation instance to complete, if it was specified when starting it.
167
+ * @param attributes - Custom attributes to attach to this operation’s completion event.
168
+ */
169
+ succeedFeatureOperation(name: string, operationKey: string | null, attributes: object): Promise<void>;
170
+ /**
171
+ * Marks a Feature Operation as failed.
172
+ * Should be called when a previously started operation (via `startFeatureOperation`) ends with an error.
173
+ * @param name - The name of the feature operation (for example, `"login_flow"`).
174
+ * @param operationKey - The key for the operation instance to fail, if it was specified when starting it.
175
+ * @param reason - The reason for the failure.
176
+ * @param attributes - Custom attributes to attach to this operation’s failure event.
177
+ */
178
+ failFeatureOperation(name: string, operationKey: string | null, reason: FeatureOperationFailure, attributes: object): Promise<void>;
179
+ };
180
+ /**
181
+ * Describe the type of a RUM Action.
182
+ */
183
+ export declare enum RumActionType {
184
+ /** User tapped on a widget. */
185
+ TAP = "TAP",
186
+ /** User scrolled a view. */
187
+ SCROLL = "SCROLL",
188
+ /** User swiped on a view. */
189
+ SWIPE = "SWIPE",
190
+ /** User pressed hardware back button (Android only). */
191
+ BACK = "BACK",
192
+ /** A custom action. */
193
+ CUSTOM = "CUSTOM"
194
+ }
195
+ export type ResourceKind = 'image' | 'xhr' | 'beacon' | 'css' | 'document' | 'fetch' | 'font' | 'js' | 'media' | 'other' | 'native';
196
+ /**
197
+ * Type of instrumentation on the host.
198
+ * - DATADOG: Datadog’s propagator (`x-datadog-*`)
199
+ * - TRACECONTEXT: W3C Trace Context (`traceparent`)
200
+ * - B3: B3 single header (`b3`)
201
+ * - B3MULTI: B3 multiple headers (`X-B3-*`)
202
+ */
203
+ export declare enum PropagatorType {
204
+ DATADOG = "datadog",
205
+ TRACECONTEXT = "tracecontext",
206
+ B3 = "b3",
207
+ B3MULTI = "b3multi"
208
+ }
209
+ export declare enum ActionSource {
210
+ MANUAL = "MANUAL",
211
+ LEGACY = "LEGACY",
212
+ BABEL = "BABEL"
213
+ }
214
+ export type FirstPartyHost = {
215
+ match: string;
216
+ propagatorTypes: PropagatorType[];
217
+ };
218
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,15 @@
1
+ import type { AccountInfo } from './types';
2
+ declare class AccountInfoProvider {
3
+ private accountInfo;
4
+ setAccountInfo: (accountInfo: AccountInfo) => void;
5
+ addAccountExtraInfo: (extraInfo: AccountInfo['extraInfo']) => void;
6
+ getAccountInfo: () => AccountInfo | undefined;
7
+ clearAccountInfo: () => void;
8
+ }
9
+ export declare class AccountInfoSingleton {
10
+ private static accountInfoProvider;
11
+ static getInstance: () => AccountInfoProvider;
12
+ static reset: () => void;
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=AccountInfoSingleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountInfoSingleton.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,cAAM,mBAAmB;IACrB,OAAO,CAAC,WAAW,CAAsC;IAEzD,cAAc,gBAAiB,WAAW,UAGxC;IAEF,mBAAmB,cAAe,WAAW,CAAC,WAAW,CAAC,UASxD;IAEF,cAAc,QAAO,WAAW,GAAG,SAAS,CAE1C;IAEF,gBAAgB,aAEd;CACL;AAED,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAA6B;IAE/D,MAAM,CAAC,WAAW,QAAO,mBAAmB,CAE1C;IAEF,MAAM,CAAC,KAAK,aAEV;CACL"}
@@ -0,0 +1,6 @@
1
+ export type AccountInfo = {
2
+ readonly id: string;
3
+ readonly name?: string;
4
+ extraInfo?: Record<string, unknown>;
5
+ };
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AccountInfoSingleton/types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Encodable } from './types';
2
+ /**
3
+ * Encodes arbitrary input into a flat dictionary of attributes.
4
+ * - Objects are flattened using dot syntax. Max depth handling is done on the native layer by the
5
+ * Android and iOS SDKs.
6
+ * - We assume the input does not always conform to Record<string, Encodable> and we:
7
+ * - Fallback to { context: givenValue } if a primitive is passed
8
+ * - Apply built-in and consumer encoders to all values
9
+ * - Drop values of unsupported types
10
+ * - Internal SDK attributes (starting with '_dd.') are preserved as-is without flattening
11
+ */
12
+ export declare function encodeAttributes(input: unknown): Record<string, Encodable>;
13
+ //# sourceMappingURL=attributesEncoding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributesEncoding.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesEncoding/attributesEncoding.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CA+B1E"}
@@ -0,0 +1,33 @@
1
+ import type { AttributeEncoder } from './types';
2
+ /** Primitives: keep them explicit so the full pipeline is used uniformly. */
3
+ export declare const stringEncoder: AttributeEncoder<string>;
4
+ export declare const numberEncoder: AttributeEncoder<number>;
5
+ export declare const booleanEncoder: AttributeEncoder<boolean>;
6
+ export declare const nullishEncoder: AttributeEncoder<null | undefined>;
7
+ /**
8
+ * Array encoder:
9
+ * - Sanitizes each item through the encoder pipeline.
10
+ * - Returns the sanitized array (it may later be flattened by the visitor if it still contains objects).
11
+ */
12
+ export declare const arrayEncoder: AttributeEncoder<unknown[]>;
13
+ /**
14
+ * Default Datadog Date Encoder.
15
+ * This does not make assumptions on format; uses String(date).
16
+ */
17
+ export declare const dateEncoder: AttributeEncoder<Date>;
18
+ /**
19
+ * Extended Error Encoder.
20
+ * Serializes name, message, stack, and cause (ES2022+) for Error objects.
21
+ * If the error has other enumerable properties, they are included and sanitized.
22
+ */
23
+ export declare const errorEncoder: AttributeEncoder<any>;
24
+ /**
25
+ * Map encoder:
26
+ * - Converts Map into an array of entries.
27
+ * - Each entry is { key: string, keyType: string, value: Encodable }.
28
+ * - Keys are stringified with type info to reduce collision risk.
29
+ * - Entries with un-stringifiable keys are dropped (with a warning).
30
+ */
31
+ export declare const mapEncoder: AttributeEncoder<Map<unknown, unknown>>;
32
+ export declare const builtInEncoders: (AttributeEncoder<string> | AttributeEncoder<number> | AttributeEncoder<boolean> | AttributeEncoder<null | undefined> | AttributeEncoder<unknown[]> | AttributeEncoder<Date> | AttributeEncoder<Map<unknown, unknown>>)[];
33
+ //# sourceMappingURL=defaultEncoders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultEncoders.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesEncoding/defaultEncoders.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAG3D,6EAA6E;AAC7E,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,MAAM,CAGlD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,MAAM,CAGlD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,OAAO,CAGpD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,IAAI,GAAG,SAAS,CAG7D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,gBAAgB,CAAC,OAAO,EAAE,CAMpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,gBAAgB,CAAC,IAAI,CAG9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,gBAAgB,CAAC,GAAG,CA+B9C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAuD9D,CAAC;AAEF,eAAO,MAAM,eAAe,2NAS3B,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const ERROR_EMPTY_STACKTRACE = "";
2
+ export declare const ERROR_EMPTY_MESSAGE = "Unknown Error";
3
+ export declare const ERROR_DEFAULT_NAME = "Error";
4
+ /**
5
+ * Will extract the stack from the error, taking the first key found among:
6
+ * `stacktrace`, `stack`, `componentStack` (component tree for component errors,
7
+ * which contains only native components names in production).
8
+ *
9
+ * In last resort and if `sourceURL`, `line` and `column` are present, it will
10
+ * generate a stack from this information.
11
+ */
12
+ export declare const getErrorStackTrace: (error: any | undefined) => string;
13
+ export declare const getErrorMessage: (error: any | undefined) => string;
14
+ export declare const getErrorName: (error: unknown) => string;
15
+ //# sourceMappingURL=errorUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorUtils.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesEncoding/errorUtils.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,UAAW,GAAG,GAAG,SAAS,KAAG,MA2B3D,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,GAAG,GAAG,SAAS,KAAG,MAwCxD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,OAAO,KAAG,MAY7C,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { AttributeEncoder, Encodable } from './types';
2
+ export interface EncodeContext {
3
+ numOfAttributes: number;
4
+ limitReachedWarned?: boolean;
5
+ }
6
+ /**
7
+ * Recursive in-place encoder: flattens values into `out` dictionary.
8
+ * Never applies "context", that's only for the root.
9
+ */
10
+ export declare function encodeAttributesInPlace(input: unknown, out: Record<string, Encodable>, path: string[], encoders: AttributeEncoder<any>[], context?: EncodeContext): void;
11
+ /**
12
+ * Sanitize unknown input to be JSON-serializable using encoders.
13
+ * This does not flatten—it's a pure sanitization pass (used by some encoders).
14
+ */
15
+ export declare function sanitizeForJson(value: unknown, encoders: AttributeEncoder<any>[], context?: EncodeContext): Encodable;
16
+ export declare function applyEncoders(value: unknown, encoders: AttributeEncoder<any>[]): Encodable;
17
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesEncoding/helpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAK3D,MAAM,WAAW,aAAa;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACnC,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC9B,IAAI,EAAE,MAAM,EAAE,EACd,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,EACjC,OAAO,GAAE,aAAsC,GAChD,IAAI,CA0EN;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC3B,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,EACjC,OAAO,GAAE,aAAsC,GAChD,SAAS,CAkBX;AAED,wBAAgB,aAAa,CACzB,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,GAClC,SAAS,CAaX"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * A value that can safely be encoded as a Datadog Attribute.
3
+ */
4
+ export type Encodable = string | number | boolean | null | undefined | Encodable[] | {
5
+ [key: string]: Encodable;
6
+ };
7
+ export type AttributeKey = string;
8
+ export type AttributeValue = Encodable;
9
+ export type EncodableAttributes = Record<AttributeKey, AttributeValue>;
10
+ export type Attributes = Record<AttributeKey, any>;
11
+ /**
12
+ * Encoders define how to handle special object types (Date, Error, Map, etc.).
13
+ * Each encoder is:
14
+ * - check: decides if the value can be handled by this encoder.
15
+ * - encode: converts the value into an Encodable.
16
+ */
17
+ export interface AttributeEncoder<T> {
18
+ check: (value: unknown) => boolean;
19
+ encode: (value: T) => Encodable;
20
+ }
21
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesEncoding/types.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,SAAS,GACf,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,GACT,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC;AACvC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAC/B,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IACnC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC;CACnC"}
@@ -0,0 +1,7 @@
1
+ export declare function warn(text: string): void;
2
+ export declare function isPlainObject(v: unknown): v is Record<string, unknown>;
3
+ /**
4
+ * Utility: format a path array into dot/bracket notation (for logs).
5
+ */
6
+ export declare function formatPathForLog(path: (string | number)[]): string;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesEncoding/utils.ts"],"names":[],"mappings":"AASA,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,QAEhC;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEtE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM,CAUlE"}
@@ -0,0 +1,17 @@
1
+ import type { Attributes } from './types';
2
+ declare class AttributesProvider {
3
+ private attributes;
4
+ addAttribute: (key: string, value: unknown) => void;
5
+ removeAttribute: (key: string) => void;
6
+ addAttributes: (attributes: Attributes) => void;
7
+ removeAttributes: (keys: string[]) => void;
8
+ getAttribute: (key: string) => unknown | undefined;
9
+ getAttributes: () => Attributes;
10
+ }
11
+ export declare class AttributesSingleton {
12
+ private static attributesProvider;
13
+ static getInstance: () => AttributesProvider;
14
+ static reset: () => void;
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=AttributesSingleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributesSingleton.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesSingleton/AttributesSingleton.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,cAAM,kBAAkB;IACpB,OAAO,CAAC,UAAU,CAAkB;IAEpC,YAAY,QAAS,MAAM,SAAS,OAAO,UAIzC;IAEF,eAAe,QAAS,MAAM,UAI5B;IAEF,aAAa,eAAgB,UAAU,UAKrC;IAEF,gBAAgB,SAAU,MAAM,EAAE,UAMhC;IAEF,YAAY,QAAS,MAAM,KAAG,OAAO,GAAG,SAAS,CAE/C;IAEF,aAAa,QAAO,UAAU,CAE5B;CACL;AAED,qBAAa,mBAAmB;IAC5B,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAA4B;IAE7D,MAAM,CAAC,WAAW,QAAO,kBAAkB,CAEzC;IAEF,MAAM,CAAC,KAAK,aAEV;CACL"}
@@ -0,0 +1,4 @@
1
+ export type Attributes = {
2
+ readonly [key: string]: unknown;
3
+ };
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/AttributesSingleton/types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG;IACrB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { DatadogEventEmitterCallback, DatadogEventEmitter } from './DatadogEventEmitter';
2
+ export declare class DatadogBatchedBridgeEventEmitter implements DatadogEventEmitter {
3
+ private listeners;
4
+ private errorHandler;
5
+ constructor(errorHandler: (err: any) => void);
6
+ initialize(): boolean;
7
+ addListener(eventName: string, callback: DatadogEventEmitterCallback): void;
8
+ removeAllListeners(eventName: string): void;
9
+ __datadogOnMessageReceived(eventName: string, data: any): void;
10
+ }
11
+ //# sourceMappingURL=DatadogBatchedBridgeEventEmitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogBatchedBridgeEventEmitter.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,2BAA2B,EAC3B,mBAAmB,EACtB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,gCAAiC,YAAW,mBAAmB;IACxE,OAAO,CAAC,SAAS,CAA8C;IAC/D,OAAO,CAAC,YAAY,CAAqB;gBAE7B,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI;IAK5C,UAAU,IAAI,OAAO;IAiBrB,WAAW,CACP,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,2BAA2B,GACtC,IAAI;IAIP,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAK3C,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI;CAejE"}