@azure/msal-common 14.14.2 → 14.16.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 (586) hide show
  1. package/browser/README.md +1 -0
  2. package/browser/package.json +5 -0
  3. package/dist/account/AccountInfo.d.ts +1 -1
  4. package/dist/account/AccountInfo.d.ts.map +1 -1
  5. package/dist/account/AccountInfo.mjs +1 -1
  6. package/dist/account/AuthToken.d.ts +1 -1
  7. package/dist/account/AuthToken.d.ts.map +1 -1
  8. package/dist/account/AuthToken.mjs +1 -1
  9. package/dist/account/CcsCredential.mjs +1 -1
  10. package/dist/account/ClientInfo.mjs +1 -1
  11. package/dist/account/TokenClaims.mjs +1 -1
  12. package/dist/authority/Authority.d.ts +12 -12
  13. package/dist/authority/Authority.d.ts.map +1 -1
  14. package/dist/authority/Authority.mjs +1 -1
  15. package/dist/authority/AuthorityFactory.d.ts +6 -6
  16. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  17. package/dist/authority/AuthorityFactory.mjs +1 -1
  18. package/dist/authority/AuthorityMetadata.d.ts +6 -6
  19. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  20. package/dist/authority/AuthorityMetadata.mjs +1 -1
  21. package/dist/authority/AuthorityOptions.d.ts +4 -4
  22. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  23. package/dist/authority/AuthorityOptions.mjs +1 -1
  24. package/dist/authority/AuthorityType.mjs +1 -1
  25. package/dist/authority/AzureRegionConfiguration.d.ts +1 -1
  26. package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -1
  27. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  28. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +1 -1
  29. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -1
  30. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  31. package/dist/authority/OIDCOptions.d.ts +1 -1
  32. package/dist/authority/OIDCOptions.d.ts.map +1 -1
  33. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  34. package/dist/authority/ProtocolMode.mjs +1 -1
  35. package/dist/authority/RegionDiscovery.d.ts +5 -5
  36. package/dist/authority/RegionDiscovery.d.ts.map +1 -1
  37. package/dist/authority/RegionDiscovery.mjs +1 -1
  38. package/dist/authority/RegionDiscoveryMetadata.d.ts +1 -1
  39. package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -1
  40. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +6 -6
  41. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -1
  42. package/dist/cache/CacheManager.d.ts +18 -23
  43. package/dist/cache/CacheManager.d.ts.map +1 -1
  44. package/dist/cache/CacheManager.mjs +1 -4
  45. package/dist/cache/CacheManager.mjs.map +1 -1
  46. package/dist/cache/entities/AccessTokenEntity.d.ts +2 -2
  47. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  48. package/dist/cache/entities/AccountEntity.d.ts +6 -6
  49. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  50. package/dist/cache/entities/AccountEntity.mjs +1 -1
  51. package/dist/cache/entities/CacheRecord.d.ts +5 -5
  52. package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
  53. package/dist/cache/entities/CredentialEntity.d.ts +1 -1
  54. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  55. package/dist/cache/entities/IdTokenEntity.d.ts +1 -1
  56. package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
  57. package/dist/cache/entities/RefreshTokenEntity.d.ts +1 -1
  58. package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
  59. package/dist/cache/interface/ICacheManager.d.ts +12 -12
  60. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  61. package/dist/cache/interface/ICachePlugin.d.ts +1 -1
  62. package/dist/cache/interface/ICachePlugin.d.ts.map +1 -1
  63. package/dist/cache/persistence/TokenCacheContext.d.ts +1 -1
  64. package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
  65. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  66. package/dist/cache/utils/CacheHelpers.d.ts +9 -9
  67. package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
  68. package/dist/cache/utils/CacheHelpers.mjs +1 -1
  69. package/dist/cache/utils/CacheTypes.d.ts +11 -11
  70. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  71. package/dist/client/AuthorizationCodeClient.d.ts +10 -9
  72. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  73. package/dist/client/AuthorizationCodeClient.mjs +35 -16
  74. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  75. package/dist/client/BaseClient.d.ts +21 -14
  76. package/dist/client/BaseClient.d.ts.map +1 -1
  77. package/dist/client/BaseClient.mjs +62 -10
  78. package/dist/client/BaseClient.mjs.map +1 -1
  79. package/dist/client/RefreshTokenClient.d.ts +6 -6
  80. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  81. package/dist/client/RefreshTokenClient.mjs +10 -4
  82. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  83. package/dist/client/SilentFlowClient.d.ts +6 -6
  84. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  85. package/dist/client/SilentFlowClient.mjs +1 -1
  86. package/dist/config/ClientConfiguration.d.ts +15 -11
  87. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  88. package/dist/config/ClientConfiguration.mjs +2 -1
  89. package/dist/config/ClientConfiguration.mjs.map +1 -1
  90. package/dist/constants/AADServerParamKeys.d.ts +2 -0
  91. package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
  92. package/dist/constants/AADServerParamKeys.mjs +5 -3
  93. package/dist/constants/AADServerParamKeys.mjs.map +1 -1
  94. package/dist/crypto/ICrypto.d.ts +2 -2
  95. package/dist/crypto/ICrypto.d.ts.map +1 -1
  96. package/dist/crypto/ICrypto.mjs +1 -1
  97. package/dist/crypto/JoseHeader.d.ts +1 -1
  98. package/dist/crypto/JoseHeader.d.ts.map +1 -1
  99. package/dist/crypto/JoseHeader.mjs +1 -1
  100. package/dist/crypto/PopTokenGenerator.d.ts +3 -3
  101. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  102. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  103. package/dist/crypto/SignedHttpRequest.d.ts +1 -1
  104. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  105. package/dist/error/AuthError.d.ts +1 -1
  106. package/dist/error/AuthError.d.ts.map +1 -1
  107. package/dist/error/AuthError.mjs +1 -1
  108. package/dist/error/AuthErrorCodes.mjs +1 -1
  109. package/dist/error/CacheError.d.ts +1 -1
  110. package/dist/error/CacheError.d.ts.map +1 -1
  111. package/dist/error/CacheError.mjs +1 -1
  112. package/dist/error/CacheErrorCodes.mjs +1 -1
  113. package/dist/error/ClientAuthError.d.ts +2 -2
  114. package/dist/error/ClientAuthError.d.ts.map +1 -1
  115. package/dist/error/ClientAuthError.mjs +1 -1
  116. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  117. package/dist/error/ClientConfigurationError.d.ts +2 -2
  118. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  119. package/dist/error/ClientConfigurationError.mjs +1 -1
  120. package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  121. package/dist/error/InteractionRequiredAuthError.d.ts +2 -2
  122. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  123. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  124. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  125. package/dist/error/JoseHeaderError.d.ts +2 -2
  126. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  127. package/dist/error/JoseHeaderError.mjs +1 -1
  128. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  129. package/dist/error/NetworkError.d.ts +19 -0
  130. package/dist/error/NetworkError.d.ts.map +1 -0
  131. package/dist/error/NetworkError.mjs +34 -0
  132. package/dist/error/NetworkError.mjs.map +1 -0
  133. package/dist/error/ServerError.d.ts +1 -1
  134. package/dist/error/ServerError.d.ts.map +1 -1
  135. package/dist/error/ServerError.mjs +1 -1
  136. package/dist/exports-browser-only.d.ts +10 -0
  137. package/dist/exports-browser-only.d.ts.map +1 -0
  138. package/dist/exports-common.d.ts +81 -0
  139. package/dist/exports-common.d.ts.map +1 -0
  140. package/dist/exports-node-only.d.ts +18 -0
  141. package/dist/exports-node-only.d.ts.map +1 -0
  142. package/dist/index-browser.d.ts +7 -0
  143. package/dist/index-browser.d.ts.map +1 -0
  144. package/dist/index-browser.mjs +67 -0
  145. package/dist/index-browser.mjs.map +1 -0
  146. package/dist/index-node.d.ts +7 -0
  147. package/dist/index-node.d.ts.map +1 -0
  148. package/dist/index-node.mjs +66 -0
  149. package/dist/index-node.mjs.map +1 -0
  150. package/dist/index.d.ts +7 -103
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.mjs +31 -31
  153. package/dist/logger/Logger.d.ts +1 -1
  154. package/dist/logger/Logger.d.ts.map +1 -1
  155. package/dist/logger/Logger.mjs +1 -1
  156. package/dist/network/INetworkModule.d.ts +1 -1
  157. package/dist/network/INetworkModule.d.ts.map +1 -1
  158. package/dist/network/INetworkModule.mjs +1 -1
  159. package/dist/network/NetworkResponse.d.ts +6 -0
  160. package/dist/network/NetworkResponse.d.ts.map +1 -0
  161. package/dist/network/RequestThumbprint.d.ts +2 -2
  162. package/dist/network/RequestThumbprint.d.ts.map +1 -1
  163. package/dist/network/ThrottlingUtils.d.ts +5 -5
  164. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  165. package/dist/network/ThrottlingUtils.mjs +1 -1
  166. package/dist/packageMetadata.d.ts +1 -1
  167. package/dist/packageMetadata.mjs +2 -2
  168. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  169. package/dist/request/BaseAuthRequest.d.ts +7 -5
  170. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  171. package/dist/request/CommonAuthorizationCodeRequest.d.ts +3 -3
  172. package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
  173. package/dist/request/CommonAuthorizationUrlRequest.d.ts +4 -4
  174. package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  175. package/dist/request/CommonClientCredentialRequest.d.ts +3 -3
  176. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  177. package/dist/request/CommonDeviceCodeRequest.d.ts +3 -3
  178. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  179. package/dist/request/CommonEndSessionRequest.d.ts +2 -2
  180. package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
  181. package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -1
  182. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  183. package/dist/request/CommonRefreshTokenRequest.d.ts +3 -3
  184. package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
  185. package/dist/request/CommonSilentFlowRequest.d.ts +3 -3
  186. package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
  187. package/dist/request/CommonUsernamePasswordRequest.d.ts +1 -1
  188. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  189. package/dist/request/NativeRequest.d.ts +1 -1
  190. package/dist/request/NativeRequest.d.ts.map +1 -1
  191. package/dist/request/RequestParameterBuilder.d.ts +13 -6
  192. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  193. package/dist/request/RequestParameterBuilder.mjs +26 -3
  194. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  195. package/dist/request/RequestValidator.mjs +1 -1
  196. package/dist/request/ScopeSet.mjs +1 -1
  197. package/dist/response/AuthenticationResult.d.ts +1 -1
  198. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  199. package/dist/response/ExternalTokenResponse.d.ts +1 -1
  200. package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
  201. package/dist/response/ResponseHandler.d.ts +16 -16
  202. package/dist/response/ResponseHandler.d.ts.map +1 -1
  203. package/dist/response/ResponseHandler.mjs +1 -1
  204. package/dist/response/ServerAuthorizationTokenResponse.d.ts +1 -1
  205. package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
  206. package/dist/telemetry/performance/IPerformanceClient.d.ts +2 -2
  207. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  208. package/dist/telemetry/performance/PerformanceClient.d.ts +5 -5
  209. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  210. package/dist/telemetry/performance/PerformanceClient.mjs +29 -10
  211. package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
  212. package/dist/telemetry/performance/PerformanceEvent.d.ts +9 -0
  213. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  214. package/dist/telemetry/performance/PerformanceEvent.mjs +6 -1
  215. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  216. package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -3
  217. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  218. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  219. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  220. package/dist/telemetry/server/ServerTelemetryManager.d.ts +5 -5
  221. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  222. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  223. package/dist/url/UrlString.d.ts +1 -1
  224. package/dist/url/UrlString.d.ts.map +1 -1
  225. package/dist/url/UrlString.mjs +1 -1
  226. package/dist/utils/ClientAssertionUtils.d.ts +1 -1
  227. package/dist/utils/ClientAssertionUtils.d.ts.map +1 -1
  228. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  229. package/dist/utils/Constants.d.ts +1 -0
  230. package/dist/utils/Constants.d.ts.map +1 -1
  231. package/dist/utils/Constants.mjs +2 -1
  232. package/dist/utils/Constants.mjs.map +1 -1
  233. package/dist/utils/FunctionWrappers.d.ts +2 -2
  234. package/dist/utils/FunctionWrappers.d.ts.map +1 -1
  235. package/dist/utils/FunctionWrappers.mjs +1 -1
  236. package/dist/utils/ProtocolUtils.d.ts +1 -1
  237. package/dist/utils/ProtocolUtils.d.ts.map +1 -1
  238. package/dist/utils/ProtocolUtils.mjs +1 -1
  239. package/dist/utils/StringUtils.mjs +1 -1
  240. package/dist/utils/TimeUtils.mjs +1 -1
  241. package/dist/utils/UrlUtils.d.ts +1 -1
  242. package/dist/utils/UrlUtils.d.ts.map +1 -1
  243. package/dist/utils/UrlUtils.mjs +1 -1
  244. package/lib/index-browser.cjs +858 -0
  245. package/lib/index-browser.cjs.map +1 -0
  246. package/{dist/index.cjs → lib/index-node-C9XsExml.js} +352 -990
  247. package/lib/index-node-C9XsExml.js.map +1 -0
  248. package/lib/index-node.cjs +104 -0
  249. package/lib/index-node.cjs.map +1 -0
  250. package/lib/index.cjs +112 -0
  251. package/lib/index.cjs.map +1 -0
  252. package/lib/package.json +1 -0
  253. package/lib/types/account/AccountInfo.d.ts +67 -0
  254. package/lib/types/account/AccountInfo.d.ts.map +1 -0
  255. package/lib/types/account/AuthToken.d.ts +18 -0
  256. package/lib/types/account/AuthToken.d.ts.map +1 -0
  257. package/lib/types/account/CcsCredential.d.ts +10 -0
  258. package/lib/types/account/CcsCredential.d.ts.map +1 -0
  259. package/lib/types/account/ClientCredentials.d.ts +20 -0
  260. package/lib/types/account/ClientCredentials.d.ts.map +1 -0
  261. package/lib/types/account/ClientInfo.d.ts +19 -0
  262. package/lib/types/account/ClientInfo.d.ts.map +1 -0
  263. package/lib/types/account/TokenClaims.d.ts +84 -0
  264. package/lib/types/account/TokenClaims.d.ts.map +1 -0
  265. package/lib/types/authority/Authority.d.ts +255 -0
  266. package/lib/types/authority/Authority.d.ts.map +1 -0
  267. package/lib/types/authority/AuthorityFactory.d.ts +19 -0
  268. package/lib/types/authority/AuthorityFactory.d.ts.map +1 -0
  269. package/lib/types/authority/AuthorityMetadata.d.ts +44 -0
  270. package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -0
  271. package/lib/types/authority/AuthorityOptions.d.ts +28 -0
  272. package/lib/types/authority/AuthorityOptions.d.ts.map +1 -0
  273. package/lib/types/authority/AuthorityType.d.ts +11 -0
  274. package/lib/types/authority/AuthorityType.d.ts.map +1 -0
  275. package/lib/types/authority/AzureRegion.d.ts +2 -0
  276. package/lib/types/authority/AzureRegion.d.ts.map +1 -0
  277. package/lib/types/authority/AzureRegionConfiguration.d.ts +6 -0
  278. package/lib/types/authority/AzureRegionConfiguration.d.ts.map +1 -0
  279. package/lib/types/authority/CloudDiscoveryMetadata.d.ts +6 -0
  280. package/lib/types/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
  281. package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
  282. package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
  283. package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
  284. package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
  285. package/lib/types/authority/ImdsOptions.d.ts +6 -0
  286. package/lib/types/authority/ImdsOptions.d.ts.map +1 -0
  287. package/lib/types/authority/OIDCOptions.d.ts +9 -0
  288. package/lib/types/authority/OIDCOptions.d.ts.map +1 -0
  289. package/lib/types/authority/OpenIdConfigResponse.d.ts +12 -0
  290. package/lib/types/authority/OpenIdConfigResponse.d.ts.map +1 -0
  291. package/lib/types/authority/ProtocolMode.d.ts +9 -0
  292. package/lib/types/authority/ProtocolMode.d.ts.map +1 -0
  293. package/lib/types/authority/RegionDiscovery.d.ts +33 -0
  294. package/lib/types/authority/RegionDiscovery.d.ts.map +1 -0
  295. package/lib/types/authority/RegionDiscoveryMetadata.d.ts +7 -0
  296. package/lib/types/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
  297. package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
  298. package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
  299. package/lib/types/cache/CacheManager.d.ts +493 -0
  300. package/lib/types/cache/CacheManager.d.ts.map +1 -0
  301. package/lib/types/cache/entities/AccessTokenEntity.d.ts +26 -0
  302. package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -0
  303. package/lib/types/cache/entities/AccountEntity.d.ts +107 -0
  304. package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -0
  305. package/lib/types/cache/entities/AppMetadataEntity.d.ts +12 -0
  306. package/lib/types/cache/entities/AppMetadataEntity.d.ts.map +1 -0
  307. package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts +16 -0
  308. package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
  309. package/lib/types/cache/entities/CacheRecord.d.ts +14 -0
  310. package/lib/types/cache/entities/CacheRecord.d.ts.map +1 -0
  311. package/lib/types/cache/entities/CredentialEntity.d.ts +31 -0
  312. package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -0
  313. package/lib/types/cache/entities/IdTokenEntity.d.ts +9 -0
  314. package/lib/types/cache/entities/IdTokenEntity.d.ts.map +1 -0
  315. package/lib/types/cache/entities/RefreshTokenEntity.d.ts +8 -0
  316. package/lib/types/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
  317. package/lib/types/cache/entities/ServerTelemetryEntity.d.ts +7 -0
  318. package/lib/types/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
  319. package/lib/types/cache/entities/ThrottlingEntity.d.ts +8 -0
  320. package/lib/types/cache/entities/ThrottlingEntity.d.ts.map +1 -0
  321. package/lib/types/cache/interface/ICacheManager.d.ts +167 -0
  322. package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -0
  323. package/lib/types/cache/interface/ICachePlugin.d.ts +6 -0
  324. package/lib/types/cache/interface/ICachePlugin.d.ts.map +1 -0
  325. package/lib/types/cache/interface/ISerializableTokenCache.d.ts +5 -0
  326. package/lib/types/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
  327. package/lib/types/cache/persistence/TokenCacheContext.d.ts +24 -0
  328. package/lib/types/cache/persistence/TokenCacheContext.d.ts.map +1 -0
  329. package/lib/types/cache/utils/CacheHelpers.d.ts +95 -0
  330. package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -0
  331. package/lib/types/cache/utils/CacheTypes.d.ts +70 -0
  332. package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -0
  333. package/lib/types/client/AuthorizationCodeClient.d.ts +76 -0
  334. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -0
  335. package/lib/types/client/BaseClient.d.ts +59 -0
  336. package/lib/types/client/BaseClient.d.ts.map +1 -0
  337. package/lib/types/client/RefreshTokenClient.d.ts +36 -0
  338. package/lib/types/client/RefreshTokenClient.d.ts.map +1 -0
  339. package/lib/types/client/SilentFlowClient.d.ts +28 -0
  340. package/lib/types/client/SilentFlowClient.d.ts.map +1 -0
  341. package/lib/types/config/AppTokenProvider.d.ts +39 -0
  342. package/lib/types/config/AppTokenProvider.d.ts.map +1 -0
  343. package/lib/types/config/ClientConfiguration.d.ts +155 -0
  344. package/lib/types/config/ClientConfiguration.d.ts.map +1 -0
  345. package/lib/types/constants/AADServerParamKeys.d.ts +56 -0
  346. package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -0
  347. package/lib/types/crypto/ICrypto.d.ts +69 -0
  348. package/lib/types/crypto/ICrypto.d.ts.map +1 -0
  349. package/lib/types/crypto/IGuidGenerator.d.ts +5 -0
  350. package/lib/types/crypto/IGuidGenerator.d.ts.map +1 -0
  351. package/lib/types/crypto/JoseHeader.d.ts +23 -0
  352. package/lib/types/crypto/JoseHeader.d.ts.map +1 -0
  353. package/lib/types/crypto/PopTokenGenerator.d.ts +60 -0
  354. package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -0
  355. package/lib/types/crypto/SignedHttpRequest.d.ts +16 -0
  356. package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
  357. package/lib/types/error/AuthError.d.ts +45 -0
  358. package/lib/types/error/AuthError.d.ts.map +1 -0
  359. package/lib/types/error/AuthErrorCodes.d.ts +6 -0
  360. package/lib/types/error/AuthErrorCodes.d.ts.map +1 -0
  361. package/lib/types/error/CacheError.d.ts +21 -0
  362. package/lib/types/error/CacheError.d.ts.map +1 -0
  363. package/lib/types/error/CacheErrorCodes.d.ts +3 -0
  364. package/lib/types/error/CacheErrorCodes.d.ts.map +1 -0
  365. package/lib/types/error/ClientAuthError.d.ts +238 -0
  366. package/lib/types/error/ClientAuthError.d.ts.map +1 -0
  367. package/lib/types/error/ClientAuthErrorCodes.d.ts +45 -0
  368. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
  369. package/lib/types/error/ClientConfigurationError.d.ts +129 -0
  370. package/lib/types/error/ClientConfigurationError.d.ts.map +1 -0
  371. package/lib/types/error/ClientConfigurationErrorCodes.d.ts +23 -0
  372. package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -0
  373. package/lib/types/error/InteractionRequiredAuthError.d.ts +66 -0
  374. package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -0
  375. package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts +8 -0
  376. package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -0
  377. package/lib/types/error/JoseHeaderError.d.ts +16 -0
  378. package/lib/types/error/JoseHeaderError.d.ts.map +1 -0
  379. package/lib/types/error/JoseHeaderErrorCodes.d.ts +3 -0
  380. package/lib/types/error/JoseHeaderErrorCodes.d.ts.map +1 -0
  381. package/lib/types/error/NetworkError.d.ts +19 -0
  382. package/lib/types/error/NetworkError.d.ts.map +1 -0
  383. package/lib/types/error/ServerError.d.ts +16 -0
  384. package/lib/types/error/ServerError.d.ts.map +1 -0
  385. package/lib/types/exports-browser-only.d.ts +10 -0
  386. package/lib/types/exports-browser-only.d.ts.map +1 -0
  387. package/lib/types/exports-common.d.ts +81 -0
  388. package/lib/types/exports-common.d.ts.map +1 -0
  389. package/lib/types/exports-node-only.d.ts +18 -0
  390. package/lib/types/exports-node-only.d.ts.map +1 -0
  391. package/lib/types/index-browser.d.ts +7 -0
  392. package/lib/types/index-browser.d.ts.map +1 -0
  393. package/lib/types/index-node.d.ts +7 -0
  394. package/lib/types/index-node.d.ts.map +1 -0
  395. package/lib/types/index.d.ts +12 -0
  396. package/lib/types/index.d.ts.map +1 -0
  397. package/lib/types/logger/Logger.d.ts +96 -0
  398. package/lib/types/logger/Logger.d.ts.map +1 -0
  399. package/lib/types/network/INetworkModule.d.ts +30 -0
  400. package/lib/types/network/INetworkModule.d.ts.map +1 -0
  401. package/lib/types/network/NetworkResponse.d.ts +6 -0
  402. package/lib/types/network/NetworkResponse.d.ts.map +1 -0
  403. package/lib/types/network/RequestThumbprint.d.ts +19 -0
  404. package/lib/types/network/RequestThumbprint.d.ts.map +1 -0
  405. package/lib/types/network/ThrottlingUtils.d.ts +43 -0
  406. package/lib/types/network/ThrottlingUtils.d.ts.map +1 -0
  407. package/lib/types/packageMetadata.d.ts +3 -0
  408. package/lib/types/packageMetadata.d.ts.map +1 -0
  409. package/lib/types/request/AuthenticationHeaderParser.d.ts +20 -0
  410. package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -0
  411. package/lib/types/request/BaseAuthRequest.d.ts +50 -0
  412. package/lib/types/request/BaseAuthRequest.d.ts.map +1 -0
  413. package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +28 -0
  414. package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
  415. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +51 -0
  416. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
  417. package/lib/types/request/CommonClientCredentialRequest.d.ts +18 -0
  418. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
  419. package/lib/types/request/CommonDeviceCodeRequest.d.ts +22 -0
  420. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  421. package/lib/types/request/CommonEndSessionRequest.d.ts +22 -0
  422. package/lib/types/request/CommonEndSessionRequest.d.ts.map +1 -0
  423. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +14 -0
  424. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  425. package/lib/types/request/CommonRefreshTokenRequest.d.ts +23 -0
  426. package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -0
  427. package/lib/types/request/CommonSilentFlowRequest.d.ts +28 -0
  428. package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -0
  429. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +18 -0
  430. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  431. package/lib/types/request/NativeRequest.d.ts +20 -0
  432. package/lib/types/request/NativeRequest.d.ts.map +1 -0
  433. package/lib/types/request/NativeSignOutRequest.d.ts +6 -0
  434. package/lib/types/request/NativeSignOutRequest.d.ts.map +1 -0
  435. package/lib/types/request/RequestParameterBuilder.d.ts +225 -0
  436. package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -0
  437. package/lib/types/request/RequestValidator.d.ts +28 -0
  438. package/lib/types/request/RequestValidator.d.ts.map +1 -0
  439. package/lib/types/request/ScopeSet.d.ts +89 -0
  440. package/lib/types/request/ScopeSet.d.ts.map +1 -0
  441. package/lib/types/request/StoreInCache.d.ts +9 -0
  442. package/lib/types/request/StoreInCache.d.ts.map +1 -0
  443. package/lib/types/response/AuthenticationResult.d.ts +42 -0
  444. package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
  445. package/lib/types/response/AuthorizationCodePayload.d.ts +14 -0
  446. package/lib/types/response/AuthorizationCodePayload.d.ts.map +1 -0
  447. package/lib/types/response/DeviceCodeResponse.d.ts +26 -0
  448. package/lib/types/response/DeviceCodeResponse.d.ts.map +1 -0
  449. package/lib/types/response/ExternalTokenResponse.d.ts +16 -0
  450. package/lib/types/response/ExternalTokenResponse.d.ts.map +1 -0
  451. package/lib/types/response/IMDSBadResponse.d.ts +5 -0
  452. package/lib/types/response/IMDSBadResponse.d.ts.map +1 -0
  453. package/lib/types/response/ResponseHandler.d.ts +70 -0
  454. package/lib/types/response/ResponseHandler.d.ts.map +1 -0
  455. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +27 -0
  456. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
  457. package/lib/types/response/ServerAuthorizationTokenResponse.d.ts +48 -0
  458. package/lib/types/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
  459. package/lib/types/telemetry/performance/IPerformanceClient.d.ts +58 -0
  460. package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
  461. package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
  462. package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
  463. package/lib/types/telemetry/performance/PerformanceClient.d.ts +243 -0
  464. package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -0
  465. package/lib/types/telemetry/performance/PerformanceEvent.d.ts +521 -0
  466. package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
  467. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +25 -0
  468. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
  469. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +79 -0
  470. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
  471. package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
  472. package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
  473. package/lib/types/url/IUri.d.ts +13 -0
  474. package/lib/types/url/IUri.d.ts.map +1 -0
  475. package/lib/types/url/UrlString.d.ts +49 -0
  476. package/lib/types/url/UrlString.d.ts.map +1 -0
  477. package/lib/types/utils/ClientAssertionUtils.d.ts +3 -0
  478. package/lib/types/utils/ClientAssertionUtils.d.ts.map +1 -0
  479. package/lib/types/utils/Constants.d.ts +311 -0
  480. package/lib/types/utils/Constants.d.ts.map +1 -0
  481. package/lib/types/utils/FunctionWrappers.d.ts +28 -0
  482. package/lib/types/utils/FunctionWrappers.d.ts.map +1 -0
  483. package/lib/types/utils/MsalTypes.d.ts +7 -0
  484. package/lib/types/utils/MsalTypes.d.ts.map +1 -0
  485. package/lib/types/utils/ProtocolUtils.d.ts +43 -0
  486. package/lib/types/utils/ProtocolUtils.d.ts.map +1 -0
  487. package/lib/types/utils/StringUtils.d.ts +41 -0
  488. package/lib/types/utils/StringUtils.d.ts.map +1 -0
  489. package/lib/types/utils/TimeUtils.d.ts +26 -0
  490. package/lib/types/utils/TimeUtils.d.ts.map +1 -0
  491. package/lib/types/utils/UrlUtils.d.ts +11 -0
  492. package/lib/types/utils/UrlUtils.d.ts.map +1 -0
  493. package/node/README.md +1 -0
  494. package/node/package.json +5 -0
  495. package/package.json +38 -11
  496. package/src/account/AccountInfo.ts +1 -1
  497. package/src/account/AuthToken.ts +2 -2
  498. package/src/account/ClientInfo.ts +2 -2
  499. package/src/authority/Authority.ts +26 -26
  500. package/src/authority/AuthorityFactory.ts +9 -9
  501. package/src/authority/AuthorityMetadata.ts +7 -7
  502. package/src/authority/AuthorityOptions.ts +4 -4
  503. package/src/authority/AzureRegionConfiguration.ts +1 -1
  504. package/src/authority/CloudInstanceDiscoveryResponse.ts +1 -1
  505. package/src/authority/OIDCOptions.ts +1 -1
  506. package/src/authority/RegionDiscovery.ts +10 -10
  507. package/src/authority/RegionDiscoveryMetadata.ts +1 -1
  508. package/src/broker/nativeBroker/INativeBrokerPlugin.ts +5 -5
  509. package/src/cache/CacheManager.ts +28 -36
  510. package/src/cache/entities/AccessTokenEntity.ts +2 -2
  511. package/src/cache/entities/AccountEntity.ts +10 -10
  512. package/src/cache/entities/CacheRecord.ts +5 -5
  513. package/src/cache/entities/CredentialEntity.ts +1 -1
  514. package/src/cache/entities/IdTokenEntity.ts +1 -1
  515. package/src/cache/entities/RefreshTokenEntity.ts +1 -1
  516. package/src/cache/interface/ICacheManager.ts +12 -12
  517. package/src/cache/interface/ICachePlugin.ts +1 -1
  518. package/src/cache/persistence/TokenCacheContext.ts +1 -1
  519. package/src/cache/utils/CacheHelpers.ts +13 -13
  520. package/src/cache/utils/CacheTypes.ts +11 -11
  521. package/src/client/AuthorizationCodeClient.ts +86 -52
  522. package/src/client/BaseClient.ts +121 -39
  523. package/src/client/RefreshTokenClient.ts +42 -33
  524. package/src/client/SilentFlowClient.ts +17 -17
  525. package/src/config/ClientConfiguration.ts +20 -15
  526. package/src/constants/AADServerParamKeys.ts +2 -0
  527. package/src/crypto/ICrypto.ts +3 -3
  528. package/src/crypto/JoseHeader.ts +2 -2
  529. package/src/crypto/PopTokenGenerator.ts +7 -7
  530. package/src/crypto/SignedHttpRequest.ts +1 -1
  531. package/src/error/AuthError.ts +2 -2
  532. package/src/error/CacheError.ts +1 -1
  533. package/src/error/ClientAuthError.ts +2 -2
  534. package/src/error/ClientConfigurationError.ts +2 -2
  535. package/src/error/InteractionRequiredAuthError.ts +3 -3
  536. package/src/error/JoseHeaderError.ts +2 -2
  537. package/src/error/NetworkError.ts +44 -0
  538. package/src/error/ServerError.ts +1 -1
  539. package/src/exports-browser-only.ts +29 -0
  540. package/src/exports-common.ts +189 -0
  541. package/src/exports-node-only.ts +35 -0
  542. package/src/index-browser.ts +11 -0
  543. package/src/index-node.ts +11 -0
  544. package/src/index.ts +7 -250
  545. package/src/logger/Logger.ts +2 -2
  546. package/src/network/INetworkModule.ts +2 -2
  547. package/src/network/NetworkResponse.ts +10 -0
  548. package/src/network/RequestThumbprint.ts +2 -2
  549. package/src/network/ThrottlingUtils.ts +8 -8
  550. package/src/packageMetadata.ts +1 -1
  551. package/src/request/AuthenticationHeaderParser.ts +2 -2
  552. package/src/request/BaseAuthRequest.ts +7 -5
  553. package/src/request/CommonAuthorizationCodeRequest.ts +3 -3
  554. package/src/request/CommonAuthorizationUrlRequest.ts +4 -4
  555. package/src/request/CommonClientCredentialRequest.ts +3 -3
  556. package/src/request/CommonDeviceCodeRequest.ts +3 -3
  557. package/src/request/CommonEndSessionRequest.ts +2 -2
  558. package/src/request/CommonOnBehalfOfRequest.ts +1 -1
  559. package/src/request/CommonRefreshTokenRequest.ts +3 -3
  560. package/src/request/CommonSilentFlowRequest.ts +3 -3
  561. package/src/request/CommonUsernamePasswordRequest.ts +1 -1
  562. package/src/request/NativeRequest.ts +1 -1
  563. package/src/request/RequestParameterBuilder.ts +60 -10
  564. package/src/request/RequestValidator.ts +2 -2
  565. package/src/request/ScopeSet.ts +4 -4
  566. package/src/response/AuthenticationResult.ts +1 -1
  567. package/src/response/ExternalTokenResponse.ts +1 -1
  568. package/src/response/ResponseHandler.ts +31 -31
  569. package/src/response/ServerAuthorizationTokenResponse.ts +1 -1
  570. package/src/telemetry/performance/IPerformanceClient.ts +2 -2
  571. package/src/telemetry/performance/PerformanceClient.ts +52 -22
  572. package/src/telemetry/performance/PerformanceEvent.ts +15 -0
  573. package/src/telemetry/performance/StubPerformanceClient.ts +6 -3
  574. package/src/telemetry/server/ServerTelemetryManager.ts +6 -6
  575. package/src/url/UrlString.ts +5 -5
  576. package/src/utils/ClientAssertionUtils.ts +1 -1
  577. package/src/utils/Constants.ts +1 -0
  578. package/src/utils/FunctionWrappers.ts +2 -2
  579. package/src/utils/ProtocolUtils.ts +3 -3
  580. package/src/utils/UrlUtils.ts +2 -2
  581. package/dist/index.cjs.map +0 -1
  582. package/dist/network/NetworkManager.d.ts +0 -34
  583. package/dist/network/NetworkManager.d.ts.map +0 -1
  584. package/dist/network/NetworkManager.mjs +0 -44
  585. package/dist/network/NetworkManager.mjs.map +0 -1
  586. package/src/network/NetworkManager.ts +0 -76
@@ -0,0 +1,521 @@
1
+ /**
2
+ * Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
3
+ *
4
+ * @export
5
+ * @enum {number}
6
+ */
7
+ export declare const PerformanceEvents: {
8
+ /**
9
+ * acquireTokenByCode API (msal-browser and msal-node).
10
+ * Used to acquire tokens by trading an authorization code against the token endpoint.
11
+ */
12
+ readonly AcquireTokenByCode: "acquireTokenByCode";
13
+ /**
14
+ * acquireTokenByRefreshToken API (msal-browser and msal-node).
15
+ * Used to renew an access token using a refresh token against the token endpoint.
16
+ */
17
+ readonly AcquireTokenByRefreshToken: "acquireTokenByRefreshToken";
18
+ /**
19
+ * acquireTokenSilent API (msal-browser and msal-node).
20
+ * Used to silently acquire a new access token (from the cache or the network).
21
+ */
22
+ readonly AcquireTokenSilent: "acquireTokenSilent";
23
+ /**
24
+ * acquireTokenSilentAsync (msal-browser).
25
+ * Internal API for acquireTokenSilent.
26
+ */
27
+ readonly AcquireTokenSilentAsync: "acquireTokenSilentAsync";
28
+ /**
29
+ * acquireTokenPopup (msal-browser).
30
+ * Used to acquire a new access token interactively through pop ups
31
+ */
32
+ readonly AcquireTokenPopup: "acquireTokenPopup";
33
+ /**
34
+ * acquireTokenPreRedirect (msal-browser).
35
+ * First part of the redirect flow.
36
+ * Used to acquire a new access token interactively through redirects.
37
+ */
38
+ readonly AcquireTokenPreRedirect: "acquireTokenPreRedirect";
39
+ /**
40
+ * acquireTokenRedirect (msal-browser).
41
+ * Second part of the redirect flow.
42
+ * Used to acquire a new access token interactively through redirects.
43
+ */
44
+ readonly AcquireTokenRedirect: "acquireTokenRedirect";
45
+ /**
46
+ * getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
47
+ * Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
48
+ */
49
+ readonly CryptoOptsGetPublicKeyThumbprint: "cryptoOptsGetPublicKeyThumbprint";
50
+ /**
51
+ * signJwt API in CryptoOpts class (msal-browser).
52
+ * Used to signed a pop token.
53
+ */
54
+ readonly CryptoOptsSignJwt: "cryptoOptsSignJwt";
55
+ /**
56
+ * acquireToken API in the SilentCacheClient class (msal-browser).
57
+ * Used to read access tokens from the cache.
58
+ */
59
+ readonly SilentCacheClientAcquireToken: "silentCacheClientAcquireToken";
60
+ /**
61
+ * acquireToken API in the SilentIframeClient class (msal-browser).
62
+ * Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe.
63
+ */
64
+ readonly SilentIframeClientAcquireToken: "silentIframeClientAcquireToken";
65
+ readonly AwaitConcurrentIframe: "awaitConcurrentIframe";
66
+ /**
67
+ * acquireToken API in SilentRereshClient (msal-browser).
68
+ * Used to acquire a new set of tokens from the token endpoint using a refresh token.
69
+ */
70
+ readonly SilentRefreshClientAcquireToken: "silentRefreshClientAcquireToken";
71
+ /**
72
+ * ssoSilent API (msal-browser).
73
+ * Used to silently acquire an authorization code and set of tokens using a hidden iframe.
74
+ */
75
+ readonly SsoSilent: "ssoSilent";
76
+ /**
77
+ * getDiscoveredAuthority API in StandardInteractionClient class (msal-browser).
78
+ * Used to load authority metadata for a request.
79
+ */
80
+ readonly StandardInteractionClientGetDiscoveredAuthority: "standardInteractionClientGetDiscoveredAuthority";
81
+ /**
82
+ * acquireToken APIs in msal-browser.
83
+ * Used to make an /authorize endpoint call with native brokering enabled.
84
+ */
85
+ readonly FetchAccountIdWithNativeBroker: "fetchAccountIdWithNativeBroker";
86
+ /**
87
+ * acquireToken API in NativeInteractionClient class (msal-browser).
88
+ * Used to acquire a token from Native component when native brokering is enabled.
89
+ */
90
+ readonly NativeInteractionClientAcquireToken: "nativeInteractionClientAcquireToken";
91
+ /**
92
+ * Time spent creating default headers for requests to token endpoint
93
+ */
94
+ readonly BaseClientCreateTokenRequestHeaders: "baseClientCreateTokenRequestHeaders";
95
+ /**
96
+ * Time spent sending/waiting for the response of a request to the token endpoint
97
+ */
98
+ readonly NetworkClientSendPostRequestAsync: "networkClientSendPostRequestAsync";
99
+ readonly RefreshTokenClientExecutePostToTokenEndpoint: "refreshTokenClientExecutePostToTokenEndpoint";
100
+ readonly AuthorizationCodeClientExecutePostToTokenEndpoint: "authorizationCodeClientExecutePostToTokenEndpoint";
101
+ /**
102
+ * Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
103
+ */
104
+ readonly BrokerHandhshake: "brokerHandshake";
105
+ /**
106
+ * acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
107
+ */
108
+ readonly AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker";
109
+ /**
110
+ * Time taken for token acquisition by broker
111
+ */
112
+ readonly AcquireTokenByBroker: "acquireTokenByBroker";
113
+ /**
114
+ * Time spent on the network for refresh token acquisition
115
+ */
116
+ readonly RefreshTokenClientExecuteTokenRequest: "refreshTokenClientExecuteTokenRequest";
117
+ /**
118
+ * Time taken for acquiring refresh token , records RT size
119
+ */
120
+ readonly RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken";
121
+ /**
122
+ * Time taken for acquiring cached refresh token
123
+ */
124
+ readonly RefreshTokenClientAcquireTokenWithCachedRefreshToken: "refreshTokenClientAcquireTokenWithCachedRefreshToken";
125
+ /**
126
+ * acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
127
+ */
128
+ readonly RefreshTokenClientAcquireTokenByRefreshToken: "refreshTokenClientAcquireTokenByRefreshToken";
129
+ /**
130
+ * Helper function to create token request body in RefreshTokenClient (msal-common).
131
+ */
132
+ readonly RefreshTokenClientCreateTokenRequestBody: "refreshTokenClientCreateTokenRequestBody";
133
+ /**
134
+ * acquireTokenFromCache (msal-browser).
135
+ * Internal API for acquiring token from cache
136
+ */
137
+ readonly AcquireTokenFromCache: "acquireTokenFromCache";
138
+ readonly SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken";
139
+ readonly SilentFlowClientGenerateResultFromCacheRecord: "silentFlowClientGenerateResultFromCacheRecord";
140
+ /**
141
+ * acquireTokenBySilentIframe (msal-browser).
142
+ * Internal API for acquiring token by silent Iframe
143
+ */
144
+ readonly AcquireTokenBySilentIframe: "acquireTokenBySilentIframe";
145
+ /**
146
+ * Internal API for initializing base request in BaseInteractionClient (msal-browser)
147
+ */
148
+ readonly InitializeBaseRequest: "initializeBaseRequest";
149
+ /**
150
+ * Internal API for initializing silent request in SilentCacheClient (msal-browser)
151
+ */
152
+ readonly InitializeSilentRequest: "initializeSilentRequest";
153
+ readonly InitializeClientApplication: "initializeClientApplication";
154
+ /**
155
+ * Helper function in SilentIframeClient class (msal-browser).
156
+ */
157
+ readonly SilentIframeClientTokenHelper: "silentIframeClientTokenHelper";
158
+ /**
159
+ * SilentHandler
160
+ */
161
+ readonly SilentHandlerInitiateAuthRequest: "silentHandlerInitiateAuthRequest";
162
+ readonly SilentHandlerMonitorIframeForHash: "silentHandlerMonitorIframeForHash";
163
+ readonly SilentHandlerLoadFrame: "silentHandlerLoadFrame";
164
+ readonly SilentHandlerLoadFrameSync: "silentHandlerLoadFrameSync";
165
+ /**
166
+ * Helper functions in StandardInteractionClient class (msal-browser)
167
+ */
168
+ readonly StandardInteractionClientCreateAuthCodeClient: "standardInteractionClientCreateAuthCodeClient";
169
+ readonly StandardInteractionClientGetClientConfiguration: "standardInteractionClientGetClientConfiguration";
170
+ readonly StandardInteractionClientInitializeAuthorizationRequest: "standardInteractionClientInitializeAuthorizationRequest";
171
+ readonly StandardInteractionClientInitializeAuthorizationCodeRequest: "standardInteractionClientInitializeAuthorizationCodeRequest";
172
+ /**
173
+ * getAuthCodeUrl API (msal-browser and msal-node).
174
+ */
175
+ readonly GetAuthCodeUrl: "getAuthCodeUrl";
176
+ /**
177
+ * Functions from InteractionHandler (msal-browser)
178
+ */
179
+ readonly HandleCodeResponseFromServer: "handleCodeResponseFromServer";
180
+ readonly HandleCodeResponse: "handleCodeResponse";
181
+ readonly UpdateTokenEndpointAuthority: "updateTokenEndpointAuthority";
182
+ /**
183
+ * APIs in Authorization Code Client (msal-common)
184
+ */
185
+ readonly AuthClientAcquireToken: "authClientAcquireToken";
186
+ readonly AuthClientExecuteTokenRequest: "authClientExecuteTokenRequest";
187
+ readonly AuthClientCreateTokenRequestBody: "authClientCreateTokenRequestBody";
188
+ readonly AuthClientCreateQueryString: "authClientCreateQueryString";
189
+ /**
190
+ * Generate functions in PopTokenGenerator (msal-common)
191
+ */
192
+ readonly PopTokenGenerateCnf: "popTokenGenerateCnf";
193
+ readonly PopTokenGenerateKid: "popTokenGenerateKid";
194
+ /**
195
+ * handleServerTokenResponse API in ResponseHandler (msal-common)
196
+ */
197
+ readonly HandleServerTokenResponse: "handleServerTokenResponse";
198
+ readonly DeserializeResponse: "deserializeResponse";
199
+ /**
200
+ * Authority functions
201
+ */
202
+ readonly AuthorityFactoryCreateDiscoveredInstance: "authorityFactoryCreateDiscoveredInstance";
203
+ readonly AuthorityResolveEndpointsAsync: "authorityResolveEndpointsAsync";
204
+ readonly AuthorityResolveEndpointsFromLocalSources: "authorityResolveEndpointsFromLocalSources";
205
+ readonly AuthorityGetCloudDiscoveryMetadataFromNetwork: "authorityGetCloudDiscoveryMetadataFromNetwork";
206
+ readonly AuthorityUpdateCloudDiscoveryMetadata: "authorityUpdateCloudDiscoveryMetadata";
207
+ readonly AuthorityGetEndpointMetadataFromNetwork: "authorityGetEndpointMetadataFromNetwork";
208
+ readonly AuthorityUpdateEndpointMetadata: "authorityUpdateEndpointMetadata";
209
+ readonly AuthorityUpdateMetadataWithRegionalInformation: "authorityUpdateMetadataWithRegionalInformation";
210
+ /**
211
+ * Region Discovery functions
212
+ */
213
+ readonly RegionDiscoveryDetectRegion: "regionDiscoveryDetectRegion";
214
+ readonly RegionDiscoveryGetRegionFromIMDS: "regionDiscoveryGetRegionFromIMDS";
215
+ readonly RegionDiscoveryGetCurrentVersion: "regionDiscoveryGetCurrentVersion";
216
+ readonly AcquireTokenByCodeAsync: "acquireTokenByCodeAsync";
217
+ readonly GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork";
218
+ readonly GetCloudDiscoveryMetadataFromNetworkMeasurement: "getCloudDiscoveryMetadataFromNetworkMeasurement";
219
+ readonly HandleRedirectPromiseMeasurement: "handleRedirectPromise";
220
+ readonly HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise";
221
+ readonly UpdateCloudDiscoveryMetadataMeasurement: "updateCloudDiscoveryMetadataMeasurement";
222
+ readonly UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken";
223
+ readonly NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake";
224
+ readonly NativeGenerateAuthResult: "nativeGenerateAuthResult";
225
+ readonly RemoveHiddenIframe: "removeHiddenIframe";
226
+ /**
227
+ * Cache operations
228
+ */
229
+ readonly ClearTokensAndKeysWithClaims: "clearTokensAndKeysWithClaims";
230
+ readonly CacheManagerGetRefreshToken: "cacheManagerGetRefreshToken";
231
+ /**
232
+ * Crypto Operations
233
+ */
234
+ readonly GeneratePkceCodes: "generatePkceCodes";
235
+ readonly GenerateCodeVerifier: "generateCodeVerifier";
236
+ readonly GenerateCodeChallengeFromVerifier: "generateCodeChallengeFromVerifier";
237
+ readonly Sha256Digest: "sha256Digest";
238
+ readonly GetRandomValues: "getRandomValues";
239
+ };
240
+ export type PerformanceEvents = (typeof PerformanceEvents)[keyof typeof PerformanceEvents];
241
+ export declare const PerformanceEventAbbreviations: ReadonlyMap<string, string>;
242
+ /**
243
+ * State of the performance event.
244
+ *
245
+ * @export
246
+ * @enum {number}
247
+ */
248
+ export declare const PerformanceEventStatus: {
249
+ readonly NotStarted: 0;
250
+ readonly InProgress: 1;
251
+ readonly Completed: 2;
252
+ };
253
+ export type PerformanceEventStatus = (typeof PerformanceEventStatus)[keyof typeof PerformanceEventStatus];
254
+ export type SubMeasurement = {
255
+ name: string;
256
+ startTimeMs: number;
257
+ };
258
+ /**
259
+ * Performance measurement taken by the library, including metadata about the request and application.
260
+ *
261
+ * @export
262
+ * @typedef {PerformanceEvent}
263
+ */
264
+ export type PerformanceEvent = {
265
+ /**
266
+ * Unique id for the event
267
+ *
268
+ * @type {string}
269
+ */
270
+ eventId: string;
271
+ /**
272
+ * State of the perforance measure.
273
+ *
274
+ * @type {PerformanceEventStatus}
275
+ */
276
+ status: PerformanceEventStatus;
277
+ /**
278
+ * Login authority used for the request
279
+ *
280
+ * @type {string}
281
+ */
282
+ authority: string;
283
+ /**
284
+ * Client id for the application
285
+ *
286
+ * @type {string}
287
+ */
288
+ clientId: string;
289
+ /**
290
+ * Correlation ID used for the request
291
+ *
292
+ * @type {string}
293
+ */
294
+ correlationId: string;
295
+ /**
296
+ * End-to-end duration in milliseconds.
297
+ * @date 3/22/2022 - 3:40:05 PM
298
+ *
299
+ * @type {number}
300
+ */
301
+ durationMs?: number;
302
+ /**
303
+ * Visibility of the page when the event completed.
304
+ * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API
305
+ *
306
+ * @type {?(string | null)}
307
+ */
308
+ endPageVisibility?: string | null;
309
+ /**
310
+ * Whether the result was retrieved from the cache.
311
+ *
312
+ * @type {(boolean | null)}
313
+ */
314
+ fromCache?: boolean | null;
315
+ /**
316
+ * Event name (usually in the form of classNameFunctionName)
317
+ *
318
+ * @type {string}
319
+ */
320
+ name: string;
321
+ /**
322
+ * Visibility of the page when the event completed.
323
+ * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API
324
+ *
325
+ * @type {?(string | null)}
326
+ */
327
+ startPageVisibility?: string | null;
328
+ /**
329
+ * Unix millisecond timestamp when the event was initiated.
330
+ *
331
+ * @type {number}
332
+ */
333
+ startTimeMs: number;
334
+ /**
335
+ * Whether or the operation completed successfully.
336
+ *
337
+ * @type {(boolean | null)}
338
+ */
339
+ success?: boolean | null;
340
+ /**
341
+ * Add specific error code in case of failure
342
+ *
343
+ * @type {string}
344
+ */
345
+ errorCode?: string;
346
+ /**
347
+ * Add specific sub error code in case of failure
348
+ *
349
+ * @type {string}
350
+ */
351
+ subErrorCode?: string;
352
+ /**
353
+ * Server error number
354
+ */
355
+ serverErrorNo?: string;
356
+ /**
357
+ * Name of the library used for the operation.
358
+ *
359
+ * @type {string}
360
+ */
361
+ libraryName: string;
362
+ /**
363
+ * Version of the library used for the operation.
364
+ *
365
+ * @type {string}
366
+ */
367
+ libraryVersion: string;
368
+ /**
369
+ * Whether the response is from a native component (e.g., WAM)
370
+ *
371
+ * @type {?boolean}
372
+ */
373
+ isNativeBroker?: boolean;
374
+ /**
375
+ * Request ID returned from the response
376
+ *
377
+ * @type {?string}
378
+ */
379
+ requestId?: string;
380
+ /**
381
+ * Cache lookup policy
382
+ *
383
+ * @type {?number}
384
+ */
385
+ cacheLookupPolicy?: number | undefined;
386
+ /**
387
+ * Cache Outcome
388
+ * @type {?number}
389
+ */
390
+ cacheOutcome?: number;
391
+ /**
392
+ * Amount of time spent in the JS queue in milliseconds.
393
+ *
394
+ * @type {?number}
395
+ */
396
+ queuedTimeMs?: number;
397
+ /**
398
+ * Sub-measurements for internal use. To be deleted before flushing.
399
+ */
400
+ incompleteSubMeasurements?: Map<string, SubMeasurement>;
401
+ visibilityChangeCount?: number;
402
+ incompleteSubsCount?: number;
403
+ /**
404
+ * CorrelationId of the in progress iframe request that was awaited
405
+ */
406
+ awaitIframeCorrelationId?: string;
407
+ /**
408
+ * Amount of times queued in the JS event queue.
409
+ *
410
+ * @type {?number}
411
+ */
412
+ queuedCount?: number;
413
+ /**
414
+ * Amount of manually completed queue events.
415
+ *
416
+ * @type {?number}
417
+ */
418
+ queuedManuallyCompletedCount?: number;
419
+ /**
420
+ * Size of the id token
421
+ *
422
+ * @type {number}
423
+ */
424
+ idTokenSize?: number;
425
+ /**
426
+ *
427
+ * Size of the access token
428
+ *
429
+ * @type {number}
430
+ */
431
+ accessTokenSize?: number;
432
+ /**
433
+ *
434
+ * Size of the refresh token
435
+ *
436
+ * @type {number}
437
+ */
438
+ refreshTokenSize?: number | undefined;
439
+ /**
440
+ * Application name as specified by the app.
441
+ *
442
+ * @type {?string}
443
+ */
444
+ appName?: string;
445
+ /**
446
+ * Application version as specified by the app.
447
+ *
448
+ * @type {?string}
449
+ */
450
+ appVersion?: string;
451
+ /**
452
+ * The following are fields that may be emitted in native broker scenarios
453
+ */
454
+ extensionId?: string;
455
+ extensionVersion?: string;
456
+ matsBrokerVersion?: string;
457
+ matsAccountJoinOnStart?: string;
458
+ matsAccountJoinOnEnd?: string;
459
+ matsDeviceJoin?: string;
460
+ matsPromptBehavior?: string;
461
+ matsApiErrorCode?: number;
462
+ matsUiVisible?: boolean;
463
+ matsSilentCode?: number;
464
+ matsSilentBiSubCode?: number;
465
+ matsSilentMessage?: string;
466
+ matsSilentStatus?: number;
467
+ matsHttpStatus?: number;
468
+ matsHttpEventCount?: number;
469
+ /**
470
+ * Http POST metadata
471
+ */
472
+ httpVerToken?: string;
473
+ httpStatus?: number;
474
+ contentTypeHeader?: string;
475
+ contentLengthHeader?: string;
476
+ /**
477
+ * Native broker fields
478
+ */
479
+ allowNativeBroker?: boolean;
480
+ extensionInstalled?: boolean;
481
+ extensionHandshakeTimeoutMs?: number;
482
+ extensionHandshakeTimedOut?: boolean;
483
+ /**
484
+ * Nested App Auth Fields
485
+ */
486
+ nestedAppAuthRequest?: boolean;
487
+ /**
488
+ * Multiple matched access/id/refresh tokens in the cache
489
+ */
490
+ multiMatchedAT?: number;
491
+ multiMatchedID?: number;
492
+ multiMatchedRT?: number;
493
+ errorName?: string;
494
+ errorStack?: string[];
495
+ context?: string;
496
+ cacheRtCount?: number;
497
+ cacheIdCount?: number;
498
+ cacheAtCount?: number;
499
+ scenarioId?: string;
500
+ accountType?: "AAD" | "MSA" | "B2C";
501
+ /**
502
+ * Server error that triggers a request retry
503
+ *
504
+ * @type {string}
505
+ */
506
+ retryError?: string;
507
+ embeddedClientId?: string;
508
+ embeddedRedirectUri?: string;
509
+ };
510
+ export type PerformanceEventContext = {
511
+ dur?: number;
512
+ err?: string;
513
+ subErr?: string;
514
+ fail?: number;
515
+ };
516
+ export type PerformanceEventStackedContext = PerformanceEventContext & {
517
+ name?: string;
518
+ childErr?: string;
519
+ };
520
+ export declare const IntFields: ReadonlySet<string>;
521
+ //# sourceMappingURL=PerformanceEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerformanceEvent.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/PerformanceEvent.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAC1B;;;OAGG;;IAGH;;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asurement } from "./IPerformanceMeasurement.js";
3
+ import { PerformanceEvent } from "./PerformanceEvent.js";
4
+ export declare class StubPerformanceMeasurement implements IPerformanceMeasurement {
5
+ startMeasurement(): void;
6
+ endMeasurement(): void;
7
+ flushMeasurement(): number | null;
8
+ }
9
+ export declare class StubPerformanceClient implements IPerformanceClient {
10
+ generateId(): string;
11
+ startMeasurement(measureName: string, correlationId?: string | undefined): InProgressPerformanceEvent;
12
+ startPerformanceMeasurement(): IPerformanceMeasurement;
13
+ calculateQueuedTime(): number;
14
+ addQueueMeasurement(): void;
15
+ setPreQueueTime(): void;
16
+ endMeasurement(): PerformanceEvent | null;
17
+ discardMeasurements(): void;
18
+ removePerformanceCallback(): boolean;
19
+ addPerformanceCallback(): string;
20
+ emitEvents(): void;
21
+ addFields(): void;
22
+ incrementFields(): void;
23
+ cacheEventByCorrelationId(): void;
24
+ }
25
+ //# sourceMappingURL=StubPerformanceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StubPerformanceClient.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/StubPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,0BAA0B,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,gBAAgB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,0BAA2B,YAAW,uBAAuB;IACtE,gBAAgB,IAAI,IAAI;IAGxB,cAAc,IAAI,IAAI;IAGtB,gBAAgB,IAAI,MAAM,GAAG,IAAI;CAGpC;AAED,qBAAa,qBAAsB,YAAW,kBAAkB;IAC5D,UAAU,IAAI,MAAM;IAIpB,gBAAgB,CACZ,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,GACnC,0BAA0B;IAqB7B,2BAA2B,IAAI,uBAAuB;IAGtD,mBAAmB,IAAI,MAAM;IAI7B,mBAAmB,IAAI,IAAI;IAI3B,eAAe,IAAI,IAAI;IAIvB,cAAc,IAAI,gBAAgB,GAAG,IAAI;IAIzC,mBAAmB,IAAI,IAAI;IAI3B,yBAAyB,IAAI,OAAO;IAIpC,sBAAsB,IAAI,MAAM;IAIhC,UAAU,IAAI,IAAI;IAIlB,SAAS,IAAI,IAAI;IAIjB,eAAe,IAAI,IAAI;IAIvB,yBAAyB,IAAI,IAAI;CAGpC"}
@@ -0,0 +1,79 @@
1
+ import { CacheOutcome } from "../../utils/Constants.js";
2
+ import { CacheManager } from "../../cache/CacheManager.js";
3
+ import { ServerTelemetryRequest } from "./ServerTelemetryRequest.js";
4
+ import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity.js";
5
+ import { RegionDiscoveryMetadata } from "../../authority/RegionDiscoveryMetadata.js";
6
+ type SkuParams = {
7
+ libraryName?: string;
8
+ libraryVersion?: string;
9
+ extensionName?: string;
10
+ extensionVersion?: string;
11
+ skus?: string;
12
+ };
13
+ /** @internal */
14
+ export declare class ServerTelemetryManager {
15
+ private cacheManager;
16
+ private apiId;
17
+ private correlationId;
18
+ private telemetryCacheKey;
19
+ private wrapperSKU;
20
+ private wrapperVer;
21
+ private regionUsed;
22
+ private regionSource;
23
+ private regionOutcome;
24
+ private cacheOutcome;
25
+ constructor(telemetryRequest: ServerTelemetryRequest, cacheManager: CacheManager);
26
+ /**
27
+ * API to add MSER Telemetry to request
28
+ */
29
+ generateCurrentRequestHeaderValue(): string;
30
+ /**
31
+ * API to add MSER Telemetry for the last failed request
32
+ */
33
+ generateLastRequestHeaderValue(): string;
34
+ /**
35
+ * API to cache token failures for MSER data capture
36
+ * @param error
37
+ */
38
+ cacheFailedRequest(error: unknown): void;
39
+ /**
40
+ * Update server telemetry cache entry by incrementing cache hit counter
41
+ */
42
+ incrementCacheHits(): number;
43
+ /**
44
+ * Get the server telemetry entity from cache or initialize a new one
45
+ */
46
+ getLastRequests(): ServerTelemetryEntity;
47
+ /**
48
+ * Remove server telemetry cache entry
49
+ */
50
+ clearTelemetryCache(): void;
51
+ /**
52
+ * Returns the maximum number of errors that can be flushed to the server in the next network request
53
+ * @param serverTelemetryEntity
54
+ */
55
+ static maxErrorsToSend(serverTelemetryEntity: ServerTelemetryEntity): number;
56
+ /**
57
+ * Get the region discovery fields
58
+ *
59
+ * @returns string
60
+ */
61
+ getRegionDiscoveryFields(): string;
62
+ /**
63
+ * Update the region discovery metadata
64
+ *
65
+ * @param regionDiscoveryMetadata
66
+ * @returns void
67
+ */
68
+ updateRegionDiscoveryMetadata(regionDiscoveryMetadata: RegionDiscoveryMetadata): void;
69
+ /**
70
+ * Set cache outcome
71
+ */
72
+ setCacheOutcome(cacheOutcome: CacheOutcome): void;
73
+ setNativeBrokerErrorCode(errorCode: string): void;
74
+ getNativeBrokerErrorCode(): string | undefined;
75
+ clearNativeBrokerErrorCode(): void;
76
+ static makeExtraSkuString(params: SkuParams): string;
77
+ }
78
+ export {};
79
+ //# sourceMappingURL=ServerTelemetryManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerTelemetryManager.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/server/ServerTelemetryManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,YAAY,EAIf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAKrF,KAAK,SAAS,GAAG;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;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apperSKU?: string;
7
+ wrapperVer?: string;
8
+ };
9
+ //# sourceMappingURL=ServerTelemetryRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerTelemetryRequest.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/server/ServerTelemetryRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Interface which describes URI components.
3
+ */
4
+ export interface IUri {
5
+ Protocol: string;
6
+ HostNameAndPort: string;
7
+ AbsolutePath: string;
8
+ Search: string;
9
+ Hash: string;
10
+ PathSegments: string[];
11
+ QueryString: string;
12
+ }
13
+ //# sourceMappingURL=IUri.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IUri.d.ts","sourceRoot":"","sources":["../../../src/url/IUri.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACvB"}