@azure/msal-common 14.13.1 → 14.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/AccountInfo.d.ts +66 -66
- package/dist/account/AccountInfo.mjs +77 -77
- package/dist/account/AuthToken.d.ts +17 -17
- package/dist/account/AuthToken.mjs +58 -58
- package/dist/account/CcsCredential.d.ts +9 -9
- package/dist/account/CcsCredential.mjs +8 -8
- package/dist/account/ClientCredentials.d.ts +19 -19
- package/dist/account/ClientInfo.d.ts +18 -18
- package/dist/account/ClientInfo.mjs +37 -37
- package/dist/account/TokenClaims.d.ts +83 -83
- package/dist/account/TokenClaims.mjs +20 -20
- package/dist/authority/Authority.d.ts +254 -254
- package/dist/authority/Authority.mjs +836 -836
- package/dist/authority/AuthorityFactory.d.ts +18 -18
- package/dist/authority/AuthorityFactory.mjs +28 -28
- package/dist/authority/AuthorityMetadata.d.ts +43 -43
- package/dist/authority/AuthorityMetadata.mjs +137 -137
- package/dist/authority/AuthorityOptions.d.ts +27 -27
- package/dist/authority/AuthorityOptions.mjs +18 -18
- package/dist/authority/AuthorityType.d.ts +10 -10
- package/dist/authority/AuthorityType.mjs +13 -13
- package/dist/authority/AzureRegion.d.ts +1 -1
- package/dist/authority/AzureRegionConfiguration.d.ts +5 -5
- package/dist/authority/CloudDiscoveryMetadata.d.ts +5 -5
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +13 -13
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +8 -8
- package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +9 -9
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +8 -8
- package/dist/authority/ImdsOptions.d.ts +5 -5
- package/dist/authority/OIDCOptions.d.ts +8 -8
- package/dist/authority/OpenIdConfigResponse.d.ts +11 -11
- package/dist/authority/OpenIdConfigResponse.mjs +10 -10
- package/dist/authority/ProtocolMode.d.ts +8 -8
- package/dist/authority/ProtocolMode.mjs +11 -11
- package/dist/authority/RegionDiscovery.d.ts +32 -32
- package/dist/authority/RegionDiscovery.mjs +106 -106
- package/dist/authority/RegionDiscoveryMetadata.d.ts +6 -6
- package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +15 -15
- package/dist/cache/CacheManager.d.ts +497 -497
- package/dist/cache/CacheManager.mjs +1249 -1249
- package/dist/cache/entities/AccessTokenEntity.d.ts +25 -25
- package/dist/cache/entities/AccountEntity.d.ts +106 -106
- package/dist/cache/entities/AccountEntity.mjs +240 -240
- package/dist/cache/entities/AppMetadataEntity.d.ts +11 -11
- package/dist/cache/entities/AuthorityMetadataEntity.d.ts +15 -15
- package/dist/cache/entities/CacheRecord.d.ts +13 -13
- package/dist/cache/entities/CredentialEntity.d.ts +30 -30
- package/dist/cache/entities/IdTokenEntity.d.ts +8 -8
- package/dist/cache/entities/RefreshTokenEntity.d.ts +7 -7
- package/dist/cache/entities/ServerTelemetryEntity.d.ts +6 -5
- package/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -1
- package/dist/cache/entities/ThrottlingEntity.d.ts +7 -7
- package/dist/cache/interface/ICacheManager.d.ts +166 -166
- package/dist/cache/interface/ICachePlugin.d.ts +5 -5
- package/dist/cache/interface/ISerializableTokenCache.d.ts +4 -4
- package/dist/cache/persistence/TokenCacheContext.d.ts +23 -23
- package/dist/cache/persistence/TokenCacheContext.mjs +25 -25
- package/dist/cache/utils/CacheHelpers.d.ts +94 -94
- package/dist/cache/utils/CacheHelpers.mjs +324 -324
- package/dist/cache/utils/CacheTypes.d.ts +69 -69
- package/dist/client/AuthorizationCodeClient.d.ts +74 -74
- package/dist/client/AuthorizationCodeClient.mjs +420 -420
- package/dist/client/BaseClient.d.ts +51 -51
- package/dist/client/BaseClient.mjs +100 -100
- package/dist/client/RefreshTokenClient.d.ts +35 -35
- package/dist/client/RefreshTokenClient.mjs +211 -211
- package/dist/client/SilentFlowClient.d.ts +27 -27
- package/dist/client/SilentFlowClient.mjs +133 -133
- package/dist/config/AppTokenProvider.d.ts +38 -38
- package/dist/config/ClientConfiguration.d.ts +150 -150
- package/dist/config/ClientConfiguration.mjs +95 -95
- package/dist/constants/AADServerParamKeys.d.ts +53 -52
- package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
- package/dist/constants/AADServerParamKeys.mjs +59 -58
- package/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/dist/crypto/ICrypto.d.ts +68 -68
- package/dist/crypto/ICrypto.mjs +36 -36
- package/dist/crypto/IGuidGenerator.d.ts +4 -4
- package/dist/crypto/JoseHeader.d.ts +22 -22
- package/dist/crypto/JoseHeader.mjs +37 -37
- package/dist/crypto/PopTokenGenerator.d.ts +59 -59
- package/dist/crypto/PopTokenGenerator.mjs +81 -81
- package/dist/crypto/SignedHttpRequest.d.ts +15 -15
- package/dist/error/AuthError.d.ts +44 -44
- package/dist/error/AuthError.mjs +46 -46
- package/dist/error/AuthErrorCodes.d.ts +5 -5
- package/dist/error/AuthErrorCodes.mjs +9 -9
- package/dist/error/CacheError.d.ts +20 -20
- package/dist/error/CacheError.mjs +24 -24
- package/dist/error/CacheErrorCodes.d.ts +2 -2
- package/dist/error/CacheErrorCodes.mjs +6 -6
- package/dist/error/ClientAuthError.d.ts +237 -237
- package/dist/error/ClientAuthError.mjs +249 -249
- package/dist/error/ClientAuthErrorCodes.d.ts +44 -44
- package/dist/error/ClientAuthErrorCodes.mjs +48 -48
- package/dist/error/ClientConfigurationError.d.ts +128 -128
- package/dist/error/ClientConfigurationError.mjs +135 -135
- package/dist/error/ClientConfigurationErrorCodes.d.ts +22 -22
- package/dist/error/ClientConfigurationErrorCodes.mjs +26 -26
- package/dist/error/InteractionRequiredAuthError.d.ts +65 -65
- package/dist/error/InteractionRequiredAuthError.mjs +85 -85
- package/dist/error/InteractionRequiredAuthErrorCodes.d.ts +7 -7
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +13 -13
- package/dist/error/JoseHeaderError.d.ts +15 -15
- package/dist/error/JoseHeaderError.mjs +22 -22
- package/dist/error/JoseHeaderErrorCodes.d.ts +2 -2
- package/dist/error/JoseHeaderErrorCodes.mjs +6 -6
- package/dist/error/ServerError.d.ts +15 -15
- package/dist/error/ServerError.mjs +16 -16
- package/dist/index.cjs +8664 -8599
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +107 -107
- package/dist/index.mjs +1 -1
- package/dist/logger/Logger.d.ts +95 -95
- package/dist/logger/Logger.mjs +188 -188
- package/dist/network/INetworkModule.d.ts +29 -29
- package/dist/network/INetworkModule.mjs +12 -12
- package/dist/network/NetworkManager.d.ts +33 -33
- package/dist/network/NetworkManager.mjs +34 -34
- package/dist/network/RequestThumbprint.d.ts +18 -18
- package/dist/network/ThrottlingUtils.d.ts +42 -42
- package/dist/network/ThrottlingUtils.mjs +95 -95
- package/dist/packageMetadata.d.ts +2 -2
- package/dist/packageMetadata.mjs +4 -4
- package/dist/request/AuthenticationHeaderParser.d.ts +19 -19
- package/dist/request/AuthenticationHeaderParser.mjs +55 -55
- package/dist/request/BaseAuthRequest.d.ts +47 -47
- package/dist/request/CommonAuthorizationCodeRequest.d.ts +27 -27
- package/dist/request/CommonAuthorizationUrlRequest.d.ts +50 -50
- package/dist/request/CommonClientCredentialRequest.d.ts +17 -17
- package/dist/request/CommonDeviceCodeRequest.d.ts +21 -21
- package/dist/request/CommonEndSessionRequest.d.ts +21 -21
- package/dist/request/CommonOnBehalfOfRequest.d.ts +13 -13
- package/dist/request/CommonRefreshTokenRequest.d.ts +22 -22
- package/dist/request/CommonSilentFlowRequest.d.ts +27 -27
- package/dist/request/CommonUsernamePasswordRequest.d.ts +17 -17
- package/dist/request/NativeRequest.d.ts +19 -19
- package/dist/request/NativeSignOutRequest.d.ts +5 -5
- package/dist/request/RequestParameterBuilder.d.ts +217 -217
- package/dist/request/RequestParameterBuilder.mjs +382 -382
- package/dist/request/RequestValidator.d.ts +27 -27
- package/dist/request/RequestValidator.mjs +64 -64
- package/dist/request/ScopeSet.d.ts +88 -88
- package/dist/request/ScopeSet.mjs +197 -197
- package/dist/request/StoreInCache.d.ts +8 -8
- package/dist/response/AuthenticationResult.d.ts +41 -41
- package/dist/response/AuthorizationCodePayload.d.ts +13 -13
- package/dist/response/DeviceCodeResponse.d.ts +25 -25
- package/dist/response/ExternalTokenResponse.d.ts +15 -15
- package/dist/response/IMDSBadResponse.d.ts +4 -4
- package/dist/response/ResponseHandler.d.ts +69 -69
- package/dist/response/ResponseHandler.mjs +374 -374
- package/dist/response/ServerAuthorizationCodeResponse.d.ts +26 -26
- package/dist/response/ServerAuthorizationTokenResponse.d.ts +47 -47
- package/dist/telemetry/performance/IPerformanceClient.d.ts +57 -57
- package/dist/telemetry/performance/IPerformanceMeasurement.d.ts +5 -5
- package/dist/telemetry/performance/PerformanceClient.d.ts +242 -242
- package/dist/telemetry/performance/PerformanceClient.mjs +587 -587
- package/dist/telemetry/performance/PerformanceEvent.d.ts +515 -505
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +484 -480
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +24 -24
- package/dist/telemetry/performance/StubPerformanceClient.mjs +76 -76
- package/dist/telemetry/server/ServerTelemetryManager.d.ts +78 -66
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +260 -201
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/telemetry/server/ServerTelemetryRequest.d.ts +8 -8
- package/dist/url/IUri.d.ts +12 -12
- package/dist/url/UrlString.d.ts +48 -48
- package/dist/url/UrlString.mjs +161 -161
- package/dist/utils/ClientAssertionUtils.d.ts +2 -2
- package/dist/utils/ClientAssertionUtils.mjs +16 -16
- package/dist/utils/Constants.d.ts +309 -309
- package/dist/utils/Constants.mjs +322 -322
- package/dist/utils/FunctionWrappers.d.ts +27 -27
- package/dist/utils/FunctionWrappers.mjs +94 -94
- package/dist/utils/MsalTypes.d.ts +6 -6
- package/dist/utils/ProtocolUtils.d.ts +42 -42
- package/dist/utils/ProtocolUtils.mjs +69 -69
- package/dist/utils/StringUtils.d.ts +40 -40
- package/dist/utils/StringUtils.mjs +95 -95
- package/dist/utils/TimeUtils.d.ts +25 -25
- package/dist/utils/TimeUtils.mjs +43 -43
- package/dist/utils/UrlUtils.d.ts +10 -10
- package/dist/utils/UrlUtils.mjs +44 -44
- package/package.json +1 -1
- package/src/cache/entities/ServerTelemetryEntity.ts +1 -0
- package/src/constants/AADServerParamKeys.ts +1 -0
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/performance/PerformanceEvent.ts +12 -0
- package/src/telemetry/server/ServerTelemetryManager.ts +95 -1
|
@@ -1,506 +1,516 @@
|
|
|
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 RefreshTokenClientExecutePostToTokenEndpoint: "refreshTokenClientExecutePostToTokenEndpoint";
|
|
99
|
-
readonly AuthorizationCodeClientExecutePostToTokenEndpoint: "authorizationCodeClientExecutePostToTokenEndpoint";
|
|
100
|
-
/**
|
|
101
|
-
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
102
|
-
*/
|
|
103
|
-
readonly BrokerHandhshake: "brokerHandshake";
|
|
104
|
-
/**
|
|
105
|
-
* acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
|
|
106
|
-
*/
|
|
107
|
-
readonly AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker";
|
|
108
|
-
/**
|
|
109
|
-
* Time taken for token acquisition by broker
|
|
110
|
-
*/
|
|
111
|
-
readonly AcquireTokenByBroker: "acquireTokenByBroker";
|
|
112
|
-
/**
|
|
113
|
-
* Time spent on the network for refresh token acquisition
|
|
114
|
-
*/
|
|
115
|
-
readonly RefreshTokenClientExecuteTokenRequest: "refreshTokenClientExecuteTokenRequest";
|
|
116
|
-
/**
|
|
117
|
-
* Time taken for acquiring refresh token , records RT size
|
|
118
|
-
*/
|
|
119
|
-
readonly RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken";
|
|
120
|
-
/**
|
|
121
|
-
* Time taken for acquiring cached refresh token
|
|
122
|
-
*/
|
|
123
|
-
readonly RefreshTokenClientAcquireTokenWithCachedRefreshToken: "refreshTokenClientAcquireTokenWithCachedRefreshToken";
|
|
124
|
-
/**
|
|
125
|
-
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
|
|
126
|
-
*/
|
|
127
|
-
readonly RefreshTokenClientAcquireTokenByRefreshToken: "refreshTokenClientAcquireTokenByRefreshToken";
|
|
128
|
-
/**
|
|
129
|
-
* Helper function to create token request body in RefreshTokenClient (msal-common).
|
|
130
|
-
*/
|
|
131
|
-
readonly RefreshTokenClientCreateTokenRequestBody: "refreshTokenClientCreateTokenRequestBody";
|
|
132
|
-
/**
|
|
133
|
-
* acquireTokenFromCache (msal-browser).
|
|
134
|
-
* Internal API for acquiring token from cache
|
|
135
|
-
*/
|
|
136
|
-
readonly AcquireTokenFromCache: "acquireTokenFromCache";
|
|
137
|
-
readonly SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken";
|
|
138
|
-
readonly SilentFlowClientGenerateResultFromCacheRecord: "silentFlowClientGenerateResultFromCacheRecord";
|
|
139
|
-
/**
|
|
140
|
-
* acquireTokenBySilentIframe (msal-browser).
|
|
141
|
-
* Internal API for acquiring token by silent Iframe
|
|
142
|
-
*/
|
|
143
|
-
readonly AcquireTokenBySilentIframe: "acquireTokenBySilentIframe";
|
|
144
|
-
/**
|
|
145
|
-
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
|
|
146
|
-
*/
|
|
147
|
-
readonly InitializeBaseRequest: "initializeBaseRequest";
|
|
148
|
-
/**
|
|
149
|
-
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
|
|
150
|
-
*/
|
|
151
|
-
readonly InitializeSilentRequest: "initializeSilentRequest";
|
|
152
|
-
readonly InitializeClientApplication: "initializeClientApplication";
|
|
153
|
-
/**
|
|
154
|
-
* Helper function in
|
|
155
|
-
*/
|
|
156
|
-
readonly
|
|
157
|
-
/**
|
|
158
|
-
*
|
|
159
|
-
*/
|
|
160
|
-
readonly
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
readonly
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
readonly
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
*/
|
|
178
|
-
readonly
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
readonly
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
readonly
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
readonly
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
readonly
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
readonly
|
|
206
|
-
readonly
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
readonly
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
readonly
|
|
217
|
-
readonly
|
|
218
|
-
readonly
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
221
|
-
readonly
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
readonly
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
readonly
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
readonly
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
*
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
*
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
*
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
*
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
*
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
*
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
*
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
*
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
*
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
*
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
*
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
*
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
*
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
*
|
|
353
|
-
*/
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
*
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
*
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
*
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
*
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
*
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
*
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
*
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
*
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
*
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
*
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
*
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
*
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
*
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
*
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
*
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
*
|
|
452
|
-
*/
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
*
|
|
482
|
-
*/
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
};
|
|
505
|
-
export
|
|
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 RefreshTokenClientExecutePostToTokenEndpoint: "refreshTokenClientExecutePostToTokenEndpoint";
|
|
99
|
+
readonly AuthorizationCodeClientExecutePostToTokenEndpoint: "authorizationCodeClientExecutePostToTokenEndpoint";
|
|
100
|
+
/**
|
|
101
|
+
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
102
|
+
*/
|
|
103
|
+
readonly BrokerHandhshake: "brokerHandshake";
|
|
104
|
+
/**
|
|
105
|
+
* acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
|
|
106
|
+
*/
|
|
107
|
+
readonly AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker";
|
|
108
|
+
/**
|
|
109
|
+
* Time taken for token acquisition by broker
|
|
110
|
+
*/
|
|
111
|
+
readonly AcquireTokenByBroker: "acquireTokenByBroker";
|
|
112
|
+
/**
|
|
113
|
+
* Time spent on the network for refresh token acquisition
|
|
114
|
+
*/
|
|
115
|
+
readonly RefreshTokenClientExecuteTokenRequest: "refreshTokenClientExecuteTokenRequest";
|
|
116
|
+
/**
|
|
117
|
+
* Time taken for acquiring refresh token , records RT size
|
|
118
|
+
*/
|
|
119
|
+
readonly RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken";
|
|
120
|
+
/**
|
|
121
|
+
* Time taken for acquiring cached refresh token
|
|
122
|
+
*/
|
|
123
|
+
readonly RefreshTokenClientAcquireTokenWithCachedRefreshToken: "refreshTokenClientAcquireTokenWithCachedRefreshToken";
|
|
124
|
+
/**
|
|
125
|
+
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
|
|
126
|
+
*/
|
|
127
|
+
readonly RefreshTokenClientAcquireTokenByRefreshToken: "refreshTokenClientAcquireTokenByRefreshToken";
|
|
128
|
+
/**
|
|
129
|
+
* Helper function to create token request body in RefreshTokenClient (msal-common).
|
|
130
|
+
*/
|
|
131
|
+
readonly RefreshTokenClientCreateTokenRequestBody: "refreshTokenClientCreateTokenRequestBody";
|
|
132
|
+
/**
|
|
133
|
+
* acquireTokenFromCache (msal-browser).
|
|
134
|
+
* Internal API for acquiring token from cache
|
|
135
|
+
*/
|
|
136
|
+
readonly AcquireTokenFromCache: "acquireTokenFromCache";
|
|
137
|
+
readonly SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken";
|
|
138
|
+
readonly SilentFlowClientGenerateResultFromCacheRecord: "silentFlowClientGenerateResultFromCacheRecord";
|
|
139
|
+
/**
|
|
140
|
+
* acquireTokenBySilentIframe (msal-browser).
|
|
141
|
+
* Internal API for acquiring token by silent Iframe
|
|
142
|
+
*/
|
|
143
|
+
readonly AcquireTokenBySilentIframe: "acquireTokenBySilentIframe";
|
|
144
|
+
/**
|
|
145
|
+
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
|
|
146
|
+
*/
|
|
147
|
+
readonly InitializeBaseRequest: "initializeBaseRequest";
|
|
148
|
+
/**
|
|
149
|
+
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
|
|
150
|
+
*/
|
|
151
|
+
readonly InitializeSilentRequest: "initializeSilentRequest";
|
|
152
|
+
readonly InitializeClientApplication: "initializeClientApplication";
|
|
153
|
+
/**
|
|
154
|
+
* Helper function in PopupClient class (msal-browser).
|
|
155
|
+
*/
|
|
156
|
+
readonly PopupClientTokenHelper: "popupClientTokenHelper";
|
|
157
|
+
/**
|
|
158
|
+
* Helper function in SilentIframeClient class (msal-browser).
|
|
159
|
+
*/
|
|
160
|
+
readonly SilentIframeClientTokenHelper: "silentIframeClientTokenHelper";
|
|
161
|
+
/**
|
|
162
|
+
* SilentHandler
|
|
163
|
+
*/
|
|
164
|
+
readonly SilentHandlerInitiateAuthRequest: "silentHandlerInitiateAuthRequest";
|
|
165
|
+
readonly SilentHandlerMonitorIframeForHash: "silentHandlerMonitorIframeForHash";
|
|
166
|
+
readonly SilentHandlerLoadFrame: "silentHandlerLoadFrame";
|
|
167
|
+
readonly SilentHandlerLoadFrameSync: "silentHandlerLoadFrameSync";
|
|
168
|
+
/**
|
|
169
|
+
* Helper functions in StandardInteractionClient class (msal-browser)
|
|
170
|
+
*/
|
|
171
|
+
readonly StandardInteractionClientCreateAuthCodeClient: "standardInteractionClientCreateAuthCodeClient";
|
|
172
|
+
readonly StandardInteractionClientGetClientConfiguration: "standardInteractionClientGetClientConfiguration";
|
|
173
|
+
readonly StandardInteractionClientInitializeAuthorizationRequest: "standardInteractionClientInitializeAuthorizationRequest";
|
|
174
|
+
readonly StandardInteractionClientInitializeAuthorizationCodeRequest: "standardInteractionClientInitializeAuthorizationCodeRequest";
|
|
175
|
+
/**
|
|
176
|
+
* getAuthCodeUrl API (msal-browser and msal-node).
|
|
177
|
+
*/
|
|
178
|
+
readonly GetAuthCodeUrl: "getAuthCodeUrl";
|
|
179
|
+
/**
|
|
180
|
+
* Functions from InteractionHandler (msal-browser)
|
|
181
|
+
*/
|
|
182
|
+
readonly HandleCodeResponseFromServer: "handleCodeResponseFromServer";
|
|
183
|
+
readonly HandleCodeResponse: "handleCodeResponse";
|
|
184
|
+
readonly UpdateTokenEndpointAuthority: "updateTokenEndpointAuthority";
|
|
185
|
+
/**
|
|
186
|
+
* APIs in Authorization Code Client (msal-common)
|
|
187
|
+
*/
|
|
188
|
+
readonly AuthClientAcquireToken: "authClientAcquireToken";
|
|
189
|
+
readonly AuthClientExecuteTokenRequest: "authClientExecuteTokenRequest";
|
|
190
|
+
readonly AuthClientCreateTokenRequestBody: "authClientCreateTokenRequestBody";
|
|
191
|
+
readonly AuthClientCreateQueryString: "authClientCreateQueryString";
|
|
192
|
+
/**
|
|
193
|
+
* Generate functions in PopTokenGenerator (msal-common)
|
|
194
|
+
*/
|
|
195
|
+
readonly PopTokenGenerateCnf: "popTokenGenerateCnf";
|
|
196
|
+
readonly PopTokenGenerateKid: "popTokenGenerateKid";
|
|
197
|
+
/**
|
|
198
|
+
* handleServerTokenResponse API in ResponseHandler (msal-common)
|
|
199
|
+
*/
|
|
200
|
+
readonly HandleServerTokenResponse: "handleServerTokenResponse";
|
|
201
|
+
readonly DeserializeResponse: "deserializeResponse";
|
|
202
|
+
/**
|
|
203
|
+
* Authority functions
|
|
204
|
+
*/
|
|
205
|
+
readonly AuthorityFactoryCreateDiscoveredInstance: "authorityFactoryCreateDiscoveredInstance";
|
|
206
|
+
readonly AuthorityResolveEndpointsAsync: "authorityResolveEndpointsAsync";
|
|
207
|
+
readonly AuthorityResolveEndpointsFromLocalSources: "authorityResolveEndpointsFromLocalSources";
|
|
208
|
+
readonly AuthorityGetCloudDiscoveryMetadataFromNetwork: "authorityGetCloudDiscoveryMetadataFromNetwork";
|
|
209
|
+
readonly AuthorityUpdateCloudDiscoveryMetadata: "authorityUpdateCloudDiscoveryMetadata";
|
|
210
|
+
readonly AuthorityGetEndpointMetadataFromNetwork: "authorityGetEndpointMetadataFromNetwork";
|
|
211
|
+
readonly AuthorityUpdateEndpointMetadata: "authorityUpdateEndpointMetadata";
|
|
212
|
+
readonly AuthorityUpdateMetadataWithRegionalInformation: "authorityUpdateMetadataWithRegionalInformation";
|
|
213
|
+
/**
|
|
214
|
+
* Region Discovery functions
|
|
215
|
+
*/
|
|
216
|
+
readonly RegionDiscoveryDetectRegion: "regionDiscoveryDetectRegion";
|
|
217
|
+
readonly RegionDiscoveryGetRegionFromIMDS: "regionDiscoveryGetRegionFromIMDS";
|
|
218
|
+
readonly RegionDiscoveryGetCurrentVersion: "regionDiscoveryGetCurrentVersion";
|
|
219
|
+
readonly AcquireTokenByCodeAsync: "acquireTokenByCodeAsync";
|
|
220
|
+
readonly GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork";
|
|
221
|
+
readonly GetCloudDiscoveryMetadataFromNetworkMeasurement: "getCloudDiscoveryMetadataFromNetworkMeasurement";
|
|
222
|
+
readonly HandleRedirectPromiseMeasurement: "handleRedirectPromise";
|
|
223
|
+
readonly HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise";
|
|
224
|
+
readonly UpdateCloudDiscoveryMetadataMeasurement: "updateCloudDiscoveryMetadataMeasurement";
|
|
225
|
+
readonly UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken";
|
|
226
|
+
readonly NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake";
|
|
227
|
+
readonly NativeGenerateAuthResult: "nativeGenerateAuthResult";
|
|
228
|
+
readonly RemoveHiddenIframe: "removeHiddenIframe";
|
|
229
|
+
/**
|
|
230
|
+
* Cache operations
|
|
231
|
+
*/
|
|
232
|
+
readonly ClearTokensAndKeysWithClaims: "clearTokensAndKeysWithClaims";
|
|
233
|
+
readonly CacheManagerGetRefreshToken: "cacheManagerGetRefreshToken";
|
|
234
|
+
/**
|
|
235
|
+
* Crypto Operations
|
|
236
|
+
*/
|
|
237
|
+
readonly GeneratePkceCodes: "generatePkceCodes";
|
|
238
|
+
readonly GenerateCodeVerifier: "generateCodeVerifier";
|
|
239
|
+
readonly GenerateCodeChallengeFromVerifier: "generateCodeChallengeFromVerifier";
|
|
240
|
+
readonly Sha256Digest: "sha256Digest";
|
|
241
|
+
readonly GetRandomValues: "getRandomValues";
|
|
242
|
+
};
|
|
243
|
+
export type PerformanceEvents = (typeof PerformanceEvents)[keyof typeof PerformanceEvents];
|
|
244
|
+
export declare const PerformanceEventAbbreviations: ReadonlyMap<string, string>;
|
|
245
|
+
/**
|
|
246
|
+
* State of the performance event.
|
|
247
|
+
*
|
|
248
|
+
* @export
|
|
249
|
+
* @enum {number}
|
|
250
|
+
*/
|
|
251
|
+
export declare const PerformanceEventStatus: {
|
|
252
|
+
readonly NotStarted: 0;
|
|
253
|
+
readonly InProgress: 1;
|
|
254
|
+
readonly Completed: 2;
|
|
255
|
+
};
|
|
256
|
+
export type PerformanceEventStatus = (typeof PerformanceEventStatus)[keyof typeof PerformanceEventStatus];
|
|
257
|
+
export type SubMeasurement = {
|
|
258
|
+
name: string;
|
|
259
|
+
startTimeMs: number;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Performance measurement taken by the library, including metadata about the request and application.
|
|
263
|
+
*
|
|
264
|
+
* @export
|
|
265
|
+
* @typedef {PerformanceEvent}
|
|
266
|
+
*/
|
|
267
|
+
export type PerformanceEvent = {
|
|
268
|
+
/**
|
|
269
|
+
* Unique id for the event
|
|
270
|
+
*
|
|
271
|
+
* @type {string}
|
|
272
|
+
*/
|
|
273
|
+
eventId: string;
|
|
274
|
+
/**
|
|
275
|
+
* State of the perforance measure.
|
|
276
|
+
*
|
|
277
|
+
* @type {PerformanceEventStatus}
|
|
278
|
+
*/
|
|
279
|
+
status: PerformanceEventStatus;
|
|
280
|
+
/**
|
|
281
|
+
* Login authority used for the request
|
|
282
|
+
*
|
|
283
|
+
* @type {string}
|
|
284
|
+
*/
|
|
285
|
+
authority: string;
|
|
286
|
+
/**
|
|
287
|
+
* Client id for the application
|
|
288
|
+
*
|
|
289
|
+
* @type {string}
|
|
290
|
+
*/
|
|
291
|
+
clientId: string;
|
|
292
|
+
/**
|
|
293
|
+
* Correlation ID used for the request
|
|
294
|
+
*
|
|
295
|
+
* @type {string}
|
|
296
|
+
*/
|
|
297
|
+
correlationId: string;
|
|
298
|
+
/**
|
|
299
|
+
* End-to-end duration in milliseconds.
|
|
300
|
+
* @date 3/22/2022 - 3:40:05 PM
|
|
301
|
+
*
|
|
302
|
+
* @type {number}
|
|
303
|
+
*/
|
|
304
|
+
durationMs?: number;
|
|
305
|
+
/**
|
|
306
|
+
* Visibility of the page when the event completed.
|
|
307
|
+
* Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API
|
|
308
|
+
*
|
|
309
|
+
* @type {?(string | null)}
|
|
310
|
+
*/
|
|
311
|
+
endPageVisibility?: string | null;
|
|
312
|
+
/**
|
|
313
|
+
* Whether the result was retrieved from the cache.
|
|
314
|
+
*
|
|
315
|
+
* @type {(boolean | null)}
|
|
316
|
+
*/
|
|
317
|
+
fromCache?: boolean | null;
|
|
318
|
+
/**
|
|
319
|
+
* Event name (usually in the form of classNameFunctionName)
|
|
320
|
+
*
|
|
321
|
+
* @type {string}
|
|
322
|
+
*/
|
|
323
|
+
name: string;
|
|
324
|
+
/**
|
|
325
|
+
* Visibility of the page when the event completed.
|
|
326
|
+
* Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API
|
|
327
|
+
*
|
|
328
|
+
* @type {?(string | null)}
|
|
329
|
+
*/
|
|
330
|
+
startPageVisibility?: string | null;
|
|
331
|
+
/**
|
|
332
|
+
* Unix millisecond timestamp when the event was initiated.
|
|
333
|
+
*
|
|
334
|
+
* @type {number}
|
|
335
|
+
*/
|
|
336
|
+
startTimeMs: number;
|
|
337
|
+
/**
|
|
338
|
+
* Whether or the operation completed successfully.
|
|
339
|
+
*
|
|
340
|
+
* @type {(boolean | null)}
|
|
341
|
+
*/
|
|
342
|
+
success?: boolean | null;
|
|
343
|
+
/**
|
|
344
|
+
* Add specific error code in case of failure
|
|
345
|
+
*
|
|
346
|
+
* @type {string}
|
|
347
|
+
*/
|
|
348
|
+
errorCode?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Add specific sub error code in case of failure
|
|
351
|
+
*
|
|
352
|
+
* @type {string}
|
|
353
|
+
*/
|
|
354
|
+
subErrorCode?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Server error number
|
|
357
|
+
*/
|
|
358
|
+
serverErrorNo?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Name of the library used for the operation.
|
|
361
|
+
*
|
|
362
|
+
* @type {string}
|
|
363
|
+
*/
|
|
364
|
+
libraryName: string;
|
|
365
|
+
/**
|
|
366
|
+
* Version of the library used for the operation.
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
*/
|
|
370
|
+
libraryVersion: string;
|
|
371
|
+
/**
|
|
372
|
+
* Whether the response is from a native component (e.g., WAM)
|
|
373
|
+
*
|
|
374
|
+
* @type {?boolean}
|
|
375
|
+
*/
|
|
376
|
+
isNativeBroker?: boolean;
|
|
377
|
+
/**
|
|
378
|
+
* Request ID returned from the response
|
|
379
|
+
*
|
|
380
|
+
* @type {?string}
|
|
381
|
+
*/
|
|
382
|
+
requestId?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Cache lookup policy
|
|
385
|
+
*
|
|
386
|
+
* @type {?number}
|
|
387
|
+
*/
|
|
388
|
+
cacheLookupPolicy?: number | undefined;
|
|
389
|
+
/**
|
|
390
|
+
* Cache Outcome
|
|
391
|
+
* @type {?number}
|
|
392
|
+
*/
|
|
393
|
+
cacheOutcome?: number;
|
|
394
|
+
/**
|
|
395
|
+
* Amount of time spent in the JS queue in milliseconds.
|
|
396
|
+
*
|
|
397
|
+
* @type {?number}
|
|
398
|
+
*/
|
|
399
|
+
queuedTimeMs?: number;
|
|
400
|
+
/**
|
|
401
|
+
* Sub-measurements for internal use. To be deleted before flushing.
|
|
402
|
+
*/
|
|
403
|
+
incompleteSubMeasurements?: Map<string, SubMeasurement>;
|
|
404
|
+
visibilityChangeCount?: number;
|
|
405
|
+
incompleteSubsCount?: number;
|
|
406
|
+
/**
|
|
407
|
+
* CorrelationId of the in progress iframe request that was awaited
|
|
408
|
+
*/
|
|
409
|
+
awaitIframeCorrelationId?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Amount of times queued in the JS event queue.
|
|
412
|
+
*
|
|
413
|
+
* @type {?number}
|
|
414
|
+
*/
|
|
415
|
+
queuedCount?: number;
|
|
416
|
+
/**
|
|
417
|
+
* Amount of manually completed queue events.
|
|
418
|
+
*
|
|
419
|
+
* @type {?number}
|
|
420
|
+
*/
|
|
421
|
+
queuedManuallyCompletedCount?: number;
|
|
422
|
+
/**
|
|
423
|
+
* Size of the id token
|
|
424
|
+
*
|
|
425
|
+
* @type {number}
|
|
426
|
+
*/
|
|
427
|
+
idTokenSize?: number;
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* Size of the access token
|
|
431
|
+
*
|
|
432
|
+
* @type {number}
|
|
433
|
+
*/
|
|
434
|
+
accessTokenSize?: number;
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
* Size of the refresh token
|
|
438
|
+
*
|
|
439
|
+
* @type {number}
|
|
440
|
+
*/
|
|
441
|
+
refreshTokenSize?: number | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* Application name as specified by the app.
|
|
444
|
+
*
|
|
445
|
+
* @type {?string}
|
|
446
|
+
*/
|
|
447
|
+
appName?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Application version as specified by the app.
|
|
450
|
+
*
|
|
451
|
+
* @type {?string}
|
|
452
|
+
*/
|
|
453
|
+
appVersion?: string;
|
|
454
|
+
/**
|
|
455
|
+
* The following are fields that may be emitted in native broker scenarios
|
|
456
|
+
*/
|
|
457
|
+
extensionId?: string;
|
|
458
|
+
extensionVersion?: string;
|
|
459
|
+
matsBrokerVersion?: string;
|
|
460
|
+
matsAccountJoinOnStart?: string;
|
|
461
|
+
matsAccountJoinOnEnd?: string;
|
|
462
|
+
matsDeviceJoin?: string;
|
|
463
|
+
matsPromptBehavior?: string;
|
|
464
|
+
matsApiErrorCode?: number;
|
|
465
|
+
matsUiVisible?: boolean;
|
|
466
|
+
matsSilentCode?: number;
|
|
467
|
+
matsSilentBiSubCode?: number;
|
|
468
|
+
matsSilentMessage?: string;
|
|
469
|
+
matsSilentStatus?: number;
|
|
470
|
+
matsHttpStatus?: number;
|
|
471
|
+
matsHttpEventCount?: number;
|
|
472
|
+
httpVerToken?: string;
|
|
473
|
+
/**
|
|
474
|
+
* Native broker fields
|
|
475
|
+
*/
|
|
476
|
+
allowNativeBroker?: boolean;
|
|
477
|
+
extensionInstalled?: boolean;
|
|
478
|
+
extensionHandshakeTimeoutMs?: number;
|
|
479
|
+
extensionHandshakeTimedOut?: boolean;
|
|
480
|
+
/**
|
|
481
|
+
* Nested App Auth Fields
|
|
482
|
+
*/
|
|
483
|
+
nestedAppAuthRequest?: boolean;
|
|
484
|
+
/**
|
|
485
|
+
* Multiple matched access/id/refresh tokens in the cache
|
|
486
|
+
*/
|
|
487
|
+
multiMatchedAT?: number;
|
|
488
|
+
multiMatchedID?: number;
|
|
489
|
+
multiMatchedRT?: number;
|
|
490
|
+
errorName?: string;
|
|
491
|
+
errorStack?: string[];
|
|
492
|
+
context?: string;
|
|
493
|
+
cacheRtCount?: number;
|
|
494
|
+
cacheIdCount?: number;
|
|
495
|
+
cacheAtCount?: number;
|
|
496
|
+
scenarioId?: string;
|
|
497
|
+
accountType?: "AAD" | "MSA" | "B2C";
|
|
498
|
+
/**
|
|
499
|
+
* Server error that triggers a request retry
|
|
500
|
+
*
|
|
501
|
+
* @type {string}
|
|
502
|
+
*/
|
|
503
|
+
retryError?: string;
|
|
504
|
+
};
|
|
505
|
+
export type PerformanceEventContext = {
|
|
506
|
+
dur?: number;
|
|
507
|
+
err?: string;
|
|
508
|
+
subErr?: string;
|
|
509
|
+
fail?: number;
|
|
510
|
+
};
|
|
511
|
+
export type PerformanceEventStackedContext = PerformanceEventContext & {
|
|
512
|
+
name?: string;
|
|
513
|
+
childErr?: string;
|
|
514
|
+
};
|
|
515
|
+
export declare const IntFields: ReadonlySet<string>;
|
|
506
516
|
//# sourceMappingURL=PerformanceEvent.d.ts.map
|