@azure/msal-node 1.0.0-beta.2 → 1.0.0-beta.6
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/CHANGELOG.json +144 -0
- package/README.md +1 -1
- package/changelog.md +43 -1
- package/dist/cache/ITokenCache.d.ts +16 -0
- package/dist/cache/ITokenCache.d.ts.map +1 -0
- package/dist/cache/{Storage.d.ts → NodeStorage.d.ts} +55 -31
- package/dist/cache/NodeStorage.d.ts.map +1 -0
- package/dist/cache/TokenCache.d.ts +30 -13
- package/dist/cache/TokenCache.d.ts.map +1 -0
- package/dist/cache/serializer/Deserializer.d.ts +1 -0
- package/dist/cache/serializer/Deserializer.d.ts.map +1 -0
- package/dist/cache/serializer/Serializer.d.ts +1 -0
- package/dist/cache/serializer/Serializer.d.ts.map +1 -0
- package/dist/cache/serializer/SerializerTypes.d.ts +33 -0
- package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -0
- package/dist/client/ClientApplication.d.ts +36 -7
- package/dist/client/ClientApplication.d.ts.map +1 -0
- package/dist/client/ClientAssertion.d.ts +25 -1
- package/dist/client/ClientAssertion.d.ts.map +1 -0
- package/dist/client/ConfidentialClientApplication.d.ts +11 -5
- package/dist/client/ConfidentialClientApplication.d.ts.map +1 -0
- package/dist/client/IConfidentialClientApplication.d.ts +33 -0
- package/dist/client/IConfidentialClientApplication.d.ts.map +1 -0
- package/dist/client/IPublicClientApplication.d.ts +33 -0
- package/dist/client/IPublicClientApplication.d.ts.map +1 -0
- package/dist/client/PublicClientApplication.d.ts +8 -5
- package/dist/client/PublicClientApplication.d.ts.map +1 -0
- package/dist/config/Configuration.d.ts +10 -3
- package/dist/config/Configuration.d.ts.map +1 -0
- package/dist/crypto/CryptoProvider.d.ts +10 -2
- package/dist/crypto/CryptoProvider.d.ts.map +1 -0
- package/dist/crypto/GuidGenerator.d.ts +1 -0
- package/dist/crypto/GuidGenerator.d.ts.map +1 -0
- package/dist/crypto/PkceGenerator.d.ts +1 -0
- package/dist/crypto/PkceGenerator.d.ts.map +1 -0
- package/dist/index.d.ts +15 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/msal-node.cjs.development.js +274 -205
- package/dist/msal-node.cjs.development.js.map +1 -1
- package/dist/msal-node.cjs.production.min.js +1 -1
- package/dist/msal-node.cjs.production.min.js.map +1 -1
- package/dist/msal-node.esm.js +273 -204
- package/dist/msal-node.esm.js.map +1 -1
- package/dist/network/HttpClient.d.ts +1 -1
- package/dist/network/HttpClient.d.ts.map +1 -0
- package/dist/packageMetadata.d.ts +3 -0
- package/dist/packageMetadata.d.ts.map +1 -0
- package/dist/request/AuthorizationCodeRequest.d.ts +3 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/dist/request/AuthorizationUrlRequest.d.ts +3 -1
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -0
- package/dist/request/ClientCredentialRequest.d.ts +3 -1
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -0
- package/dist/request/DeviceCodeRequest.d.ts +3 -1
- package/dist/request/DeviceCodeRequest.d.ts.map +1 -0
- package/dist/request/OnBehalfOfRequest.d.ts +3 -1
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -0
- package/dist/request/RefreshTokenRequest.d.ts +3 -1
- package/dist/request/RefreshTokenRequest.d.ts.map +1 -0
- package/dist/request/SilentFlowRequest.d.ts +3 -1
- package/dist/request/SilentFlowRequest.d.ts.map +1 -0
- package/dist/request/UsernamePasswordRequest.d.ts +3 -1
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -0
- package/dist/utils/Constants.d.ts +1 -0
- package/dist/utils/Constants.d.ts.map +1 -0
- package/dist/utils/EncodingUtils.d.ts +1 -0
- package/dist/utils/EncodingUtils.d.ts.map +1 -0
- package/dist/utils/NetworkUtils.d.ts +1 -0
- package/dist/utils/NetworkUtils.d.ts.map +1 -0
- package/package.json +8 -12
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
import { ClientConfiguration, AuthenticationResult, BaseAuthRequest, Logger, ServerTelemetryManager } from "@azure/msal-common";
|
|
2
2
|
import { Configuration } from "../config/Configuration";
|
|
3
|
-
import {
|
|
3
|
+
import { NodeStorage } from "../cache/NodeStorage";
|
|
4
4
|
import { TokenCache } from "../cache/TokenCache";
|
|
5
5
|
import { ClientAssertion } from "./ClientAssertion";
|
|
6
6
|
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest";
|
|
7
7
|
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
8
8
|
import { RefreshTokenRequest } from "../request/RefreshTokenRequest";
|
|
9
9
|
import { SilentFlowRequest } from "../request/SilentFlowRequest";
|
|
10
|
+
/**
|
|
11
|
+
* Base abstract class for all ClientApplications - public and confidential
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
10
14
|
export declare abstract class ClientApplication {
|
|
11
|
-
private _authority;
|
|
12
15
|
private readonly cryptoProvider;
|
|
13
|
-
protected storage: Storage;
|
|
14
16
|
private tokenCache;
|
|
17
|
+
/**
|
|
18
|
+
* Platform storage object
|
|
19
|
+
*/
|
|
20
|
+
protected storage: NodeStorage;
|
|
21
|
+
/**
|
|
22
|
+
* Logger object to log the application flow
|
|
23
|
+
*/
|
|
15
24
|
protected logger: Logger;
|
|
25
|
+
/**
|
|
26
|
+
* Platform configuration initialized by the application
|
|
27
|
+
*/
|
|
16
28
|
protected config: Configuration;
|
|
29
|
+
/**
|
|
30
|
+
* Client assertion passed by the user for confidential client flows
|
|
31
|
+
*/
|
|
17
32
|
protected clientAssertion: ClientAssertion;
|
|
33
|
+
/**
|
|
34
|
+
* Client secret passed by the user for confidential client flows
|
|
35
|
+
*/
|
|
18
36
|
protected clientSecret: string;
|
|
19
37
|
/**
|
|
20
38
|
* Constructor for the ClientApplication
|
|
@@ -66,22 +84,33 @@ export declare abstract class ClientApplication {
|
|
|
66
84
|
getLogger(): Logger;
|
|
67
85
|
/**
|
|
68
86
|
* Replaces the default logger set in configurations with new Logger with new configurations
|
|
69
|
-
* @param logger Logger instance
|
|
87
|
+
* @param logger - Logger instance
|
|
70
88
|
*/
|
|
71
89
|
setLogger(logger: Logger): void;
|
|
90
|
+
/**
|
|
91
|
+
* Builds the common configuration to be passed to the common component based on the platform configurarion
|
|
92
|
+
* @param authority - user passed authority in configuration
|
|
93
|
+
* @param serverTelemetryManager - initializes servertelemetry if passed
|
|
94
|
+
*/
|
|
72
95
|
protected buildOauthClientConfiguration(authority: string, serverTelemetryManager?: ServerTelemetryManager): Promise<ClientConfiguration>;
|
|
73
96
|
private getClientAssertion;
|
|
74
97
|
/**
|
|
75
98
|
* Generates a request with the default scopes & generates a correlationId.
|
|
76
|
-
* @param authRequest
|
|
99
|
+
* @param authRequest - BaseAuthRequest for initialization
|
|
77
100
|
*/
|
|
78
101
|
protected initializeBaseRequest(authRequest: Partial<BaseAuthRequest>): BaseAuthRequest;
|
|
102
|
+
/**
|
|
103
|
+
* Initializes the server telemetry payload
|
|
104
|
+
* @param apiId - Id for a specific request
|
|
105
|
+
* @param correlationId - GUID
|
|
106
|
+
* @param forceRefresh - boolean to indicate network call
|
|
107
|
+
*/
|
|
79
108
|
protected initializeServerTelemetryManager(apiId: number, correlationId: string, forceRefresh?: boolean): ServerTelemetryManager;
|
|
80
109
|
/**
|
|
81
110
|
* Create authority instance. If authority not passed in request, default to authority set on the application
|
|
82
111
|
* object. If no authority set in application object, then default to common authority.
|
|
83
|
-
* @param authorityString
|
|
112
|
+
* @param authorityString - authority from user configuration
|
|
84
113
|
*/
|
|
85
114
|
private createAuthority;
|
|
86
|
-
private get authority();
|
|
87
115
|
}
|
|
116
|
+
//# sourceMappingURL=ClientApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientApplication.d.ts","sourceRoot":"","sources":["../src/client/ClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EAEnB,oBAAoB,EAGpB,eAAe,EAEf,MAAM,EACN,sBA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AAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAuB1F;;OAEG;IACH,aAAa,IAAI,UAAU;IAK3B;;OAEG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B;;;;OAIG;cACa,6BAA6B,CAAC,SAAS,EAAE,MAAM,EAAE,sBAAsB,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqC/I,OAAO,CAAC,kBAAkB;IAO1B;;;OAGG;IACH,SAAS,CAAC,qBAAqB,CAAC,WAAW,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe;IAWvF;;;;;OAKG;IACH,SAAS,CAAC,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,sBAAsB;IAWhI;;;;OAIG;YACW,eAAe;CAUhC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CryptoProvider } from "../crypto/CryptoProvider";
|
|
2
2
|
/**
|
|
3
3
|
* Client assertion of type jwt-bearer used in confidential client flows
|
|
4
|
+
* @public
|
|
4
5
|
*/
|
|
5
6
|
export declare class ClientAssertion {
|
|
6
7
|
private jwt;
|
|
@@ -10,14 +11,37 @@ export declare class ClientAssertion {
|
|
|
10
11
|
private issuer;
|
|
11
12
|
private jwtAudience;
|
|
12
13
|
private publicCertificate;
|
|
14
|
+
/**
|
|
15
|
+
* Initialize the ClientAssertion class from the clientAssertion passed by the user
|
|
16
|
+
* @param assertion - refer https://tools.ietf.org/html/rfc7521
|
|
17
|
+
*/
|
|
13
18
|
static fromAssertion(assertion: string): ClientAssertion;
|
|
19
|
+
/**
|
|
20
|
+
* Initialize the ClientAssertion class from the certificate passed by the user
|
|
21
|
+
* @param thumbprint - identifier of a certificate
|
|
22
|
+
* @param privateKey - secret key
|
|
23
|
+
* @param publicCertificate - electronic document provided to prove the ownership of the public key
|
|
24
|
+
*/
|
|
14
25
|
static fromCertificate(thumbprint: string, privateKey: string, publicCertificate?: string): ClientAssertion;
|
|
26
|
+
/**
|
|
27
|
+
* Update JWT for certificate based clientAssertion, if passed by the user, uses it as is
|
|
28
|
+
* @param cryptoProvider - library's crypto helper
|
|
29
|
+
* @param issuer - iss claim
|
|
30
|
+
* @param jwtAudience - aud claim
|
|
31
|
+
*/
|
|
15
32
|
getJwt(cryptoProvider: CryptoProvider, issuer: string, jwtAudience: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* JWT format and required claims specified: https://tools.ietf.org/html/rfc7523#section-3
|
|
35
|
+
*/
|
|
16
36
|
private createJwt;
|
|
37
|
+
/**
|
|
38
|
+
* Utility API to check expiration
|
|
39
|
+
*/
|
|
17
40
|
private isExpired;
|
|
18
41
|
/**
|
|
19
42
|
* Extracts the raw certs from a given certificate string and returns them in an array.
|
|
20
|
-
* @param publicCertificate
|
|
43
|
+
* @param publicCertificate - electronic document provided to prove the ownership of the public key
|
|
21
44
|
*/
|
|
22
45
|
static parseCertificate(publicCertificate: string): Array<string>;
|
|
23
46
|
}
|
|
47
|
+
//# sourceMappingURL=ClientAssertion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientAssertion.d.ts","sourceRoot":"","sources":["../src/client/ClientAssertion.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI1D;;;GAGG;AACH,qBAAa,eAAe;IAExB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,iBAAiB,CAAgB;IAEzC;;;OAGG;WACW,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe;IAM/D;;;;;OAKG;WACW,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,eAAe;IAUlH;;;;;OAKG;IACI,MAAM,CAAC,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAsBjF;;OAEG;IACH,OAAO,CAAC,SAAS;IA+BjB;;OAEG;IACH,OAAO,CAAC,SAAS;IAIjB;;;OAGG;WACW,gBAAgB,CAAC,iBAAiB,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;CAmB3E"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { ClientApplication } from "./ClientApplication";
|
|
2
2
|
import { Configuration } from "../config/Configuration";
|
|
3
3
|
import { AuthenticationResult } from "@azure/msal-common";
|
|
4
|
+
import { IConfidentialClientApplication } from "./IConfidentialClientApplication";
|
|
4
5
|
import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest";
|
|
5
6
|
import { ClientCredentialRequest } from "../request/ClientCredentialRequest";
|
|
6
|
-
|
|
7
|
+
/**
|
|
8
|
+
* This class is to be used to acquire tokens for confidential client applications (webApp, webAPI). Confidential client applications
|
|
9
|
+
* will configure application secrets, client certificates/assertions as applicable
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare class ConfidentialClientApplication extends ClientApplication implements IConfidentialClientApplication {
|
|
7
13
|
/**
|
|
8
|
-
* @constructor
|
|
9
14
|
* Constructor for the ConfidentialClientApplication
|
|
10
15
|
*
|
|
11
16
|
* Required attributes in the Configuration object are:
|
|
@@ -13,16 +18,16 @@ export declare class ConfidentialClientApplication extends ClientApplication {
|
|
|
13
18
|
* - authority: the authority URL for your application.
|
|
14
19
|
* - client credential: Must set either client secret, certificate, or assertion for confidential clients. You can obtain a client secret from the application registration portal.
|
|
15
20
|
*
|
|
16
|
-
* In Azure AD, authority is a URL indicating of the form https://login.microsoftonline.com
|
|
21
|
+
* In Azure AD, authority is a URL indicating of the form https://login.microsoftonline.com/\{Enter_the_Tenant_Info_Here\}.
|
|
17
22
|
* If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
|
|
18
23
|
* If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
|
|
19
24
|
* If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
|
|
20
25
|
* To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
|
|
21
26
|
*
|
|
22
|
-
* In Azure B2C, authority is of the form https
|
|
27
|
+
* In Azure B2C, authority is of the form https://\{instance\}/tfp/\{tenant\}/\{policyName\}/
|
|
23
28
|
* Full B2C functionality will be available in this library in future versions.
|
|
24
29
|
*
|
|
25
|
-
* @param
|
|
30
|
+
* @param Configuration - configuration object for the MSAL ConfidentialClientApplication instance
|
|
26
31
|
*/
|
|
27
32
|
constructor(configuration: Configuration);
|
|
28
33
|
/**
|
|
@@ -43,3 +48,4 @@ export declare class ConfidentialClientApplication extends ClientApplication {
|
|
|
43
48
|
acquireTokenOnBehalfOf(request: OnBehalfOfRequest): Promise<AuthenticationResult | null>;
|
|
44
49
|
private setClientCredential;
|
|
45
50
|
}
|
|
51
|
+
//# sourceMappingURL=ConfidentialClientApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfidentialClientApplication.d.ts","sourceRoot":"","sources":["../src/client/ConfidentialClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAKH,oBAAoB,EAEH,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE7E;;;;GAIG;AACH,qBAAa,6BAA8B,SAAQ,iBAAkB,YAAW,8BAA8B;IAE1G;;;;;;;;;;;;;;;;;;OAkBG;gBACS,aAAa,EAAE,aAAa;IAKxC;;OAEG;IACU,8BAA8B,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAqBnH;;;;;;;;;;OAUG;IACU,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAcrG,OAAO,CAAC,mBAAmB;CA+B9B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AuthenticationResult, Logger } from "@azure/msal-common";
|
|
2
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
3
|
+
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest";
|
|
4
|
+
import { ClientCredentialRequest } from "../request/ClientCredentialRequest";
|
|
5
|
+
import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest";
|
|
6
|
+
import { RefreshTokenRequest } from "../request/RefreshTokenRequest";
|
|
7
|
+
import { SilentFlowRequest } from "../request/SilentFlowRequest";
|
|
8
|
+
import { TokenCache } from "../cache/TokenCache";
|
|
9
|
+
/**
|
|
10
|
+
* Interface for the ConfidentialClientApplication class defining the public API signatures
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export interface IConfidentialClientApplication {
|
|
14
|
+
/** Creates the URL of the authorization request */
|
|
15
|
+
getAuthCodeUrl(request: AuthorizationUrlRequest): Promise<string>;
|
|
16
|
+
/** Acquires a token by exchanging the authorization code received from the first step of OAuth 2.0 Authorization Code Flow */
|
|
17
|
+
acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult | null>;
|
|
18
|
+
/** Acquires a token silently when a user specifies the account the token is requested for */
|
|
19
|
+
acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult | null>;
|
|
20
|
+
/** Acquires a token by exchanging the refresh token provided for a new set of tokens */
|
|
21
|
+
acquireTokenByRefreshToken(request: RefreshTokenRequest): Promise<AuthenticationResult | null>;
|
|
22
|
+
/** Acquires tokens from the authority for the application (not for an end user) */
|
|
23
|
+
acquireTokenByClientCredential(request: ClientCredentialRequest): Promise<AuthenticationResult | null>;
|
|
24
|
+
/** Acquires tokens from the authority for the application */
|
|
25
|
+
acquireTokenOnBehalfOf(request: OnBehalfOfRequest): Promise<AuthenticationResult | null>;
|
|
26
|
+
/** Gets the token cache for the application */
|
|
27
|
+
getTokenCache(): TokenCache;
|
|
28
|
+
/** Returns the logger instance */
|
|
29
|
+
getLogger(): Logger;
|
|
30
|
+
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
31
|
+
setLogger(logger: Logger): void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=IConfidentialClientApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IConfidentialClientApplication.d.ts","sourceRoot":"","sources":["../src/client/IConfidentialClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAE3C,mDAAmD;IACnD,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElE,+HAA+H;IAC/H,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAE5F,8FAA8F;IAC9F,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAErF,wFAAwF;IACxF,0BAA0B,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAE/F,mFAAmF;IACnF,8BAA8B,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAEvG,6DAA6D;IAC7D,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAEzF,+CAA+C;IAC/C,aAAa,IAAI,UAAU,CAAC;IAE5B,kCAAkC;IAClC,SAAS,IAAI,MAAM,CAAC;IAEpB,gGAAgG;IAChG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AuthenticationResult, Logger } from "@azure/msal-common";
|
|
2
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
3
|
+
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest";
|
|
4
|
+
import { DeviceCodeRequest } from "../request/DeviceCodeRequest";
|
|
5
|
+
import { RefreshTokenRequest } from "../request/RefreshTokenRequest";
|
|
6
|
+
import { SilentFlowRequest } from "../request/SilentFlowRequest";
|
|
7
|
+
import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest";
|
|
8
|
+
import { TokenCache } from "../cache/TokenCache";
|
|
9
|
+
/**
|
|
10
|
+
* Interface for the PublicClientApplication class defining the public API signatures
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export interface IPublicClientApplication {
|
|
14
|
+
/** Creates the URL of the authorization request */
|
|
15
|
+
getAuthCodeUrl(request: AuthorizationUrlRequest): Promise<string>;
|
|
16
|
+
/** Acquires a token by exchanging the authorization code received from the first step of OAuth 2.0 Authorization Code Flow */
|
|
17
|
+
acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult | null>;
|
|
18
|
+
/** Acquires a token silently when a user specifies the account the token is requested for */
|
|
19
|
+
acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult | null>;
|
|
20
|
+
/** Acquires a token by exchanging the refresh token provided for a new set of tokens */
|
|
21
|
+
acquireTokenByRefreshToken(request: RefreshTokenRequest): Promise<AuthenticationResult | null>;
|
|
22
|
+
/** Acquires a token from the authority using OAuth2.0 device code flow */
|
|
23
|
+
acquireTokenByDeviceCode(request: DeviceCodeRequest): Promise<AuthenticationResult | null>;
|
|
24
|
+
/** Acquires tokens with password grant by exchanging client applications username and password for credentials */
|
|
25
|
+
acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;
|
|
26
|
+
/** Gets the token cache for the application */
|
|
27
|
+
getTokenCache(): TokenCache;
|
|
28
|
+
/** Returns the logger instance */
|
|
29
|
+
getLogger(): Logger;
|
|
30
|
+
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
31
|
+
setLogger(logger: Logger): void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=IPublicClientApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPublicClientApplication.d.ts","sourceRoot":"","sources":["../src/client/IPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,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-common";
|
|
2
2
|
import { Configuration } from "../config/Configuration";
|
|
3
3
|
import { ClientApplication } from "./ClientApplication";
|
|
4
|
+
import { IPublicClientApplication } from "./IPublicClientApplication";
|
|
4
5
|
import { DeviceCodeRequest } from "../request/DeviceCodeRequest";
|
|
5
6
|
import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest";
|
|
6
7
|
/**
|
|
7
8
|
* This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
|
|
8
9
|
* are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user.
|
|
10
|
+
* @public
|
|
9
11
|
*/
|
|
10
|
-
export declare class PublicClientApplication extends ClientApplication {
|
|
12
|
+
export declare class PublicClientApplication extends ClientApplication implements IPublicClientApplication {
|
|
11
13
|
/**
|
|
12
14
|
* Important attributes in the Configuration object for auth are:
|
|
13
15
|
* - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal.
|
|
14
16
|
* - authority: the authority URL for your application.
|
|
15
17
|
*
|
|
16
|
-
* AAD authorities are of the form https://login.microsoftonline.com
|
|
18
|
+
* AAD authorities are of the form https://login.microsoftonline.com/\{Enter_the_Tenant_Info_Here\}.
|
|
17
19
|
* - If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
|
|
18
20
|
* - If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
|
|
19
21
|
* - If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
|
|
20
22
|
* - To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
|
|
21
23
|
*
|
|
22
|
-
* Azure B2C authorities are of the form https
|
|
24
|
+
* Azure B2C authorities are of the form https://\{instance\}/\{tenant\}/\{policy\}. Each policy is considered
|
|
23
25
|
* its own authority. You will have to set the all of the knownAuthorities at the time of the client application
|
|
24
26
|
* construction.
|
|
25
27
|
*
|
|
26
|
-
* ADFS authorities are of the form https
|
|
28
|
+
* ADFS authorities are of the form https://\{instance\}/adfs.
|
|
27
29
|
*/
|
|
28
30
|
constructor(configuration: Configuration);
|
|
29
31
|
/**
|
|
@@ -44,7 +46,8 @@ export declare class PublicClientApplication extends ClientApplication {
|
|
|
44
46
|
* Microsoft's documentation and recommendations are at:
|
|
45
47
|
* https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#usernamepassword
|
|
46
48
|
*
|
|
47
|
-
* @param request
|
|
49
|
+
* @param request - UsenamePasswordRequest
|
|
48
50
|
*/
|
|
49
51
|
acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;
|
|
50
52
|
}
|
|
53
|
+
//# sourceMappingURL=PublicClientApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,oBAAoB,EAIvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE7E;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,iBAAkB,YAAW,wBAAwB;IAC9F;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAIxC;;;;;;;;OAQG;IACU,wBAAwB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAqBvG;;;;;;;;;OASG;IACG,8BAA8B,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;CAoB/G"}
|
|
@@ -7,6 +7,7 @@ import { LoggerOptions, INetworkModule, ProtocolMode, ICachePlugin } from "@azur
|
|
|
7
7
|
* - clientAssertion - Assertion string that the application uses when requesting a token. Only used in confidential client applications. Assertion should be of type urn:ietf:params:oauth:client-assertion-type:jwt-bearer.
|
|
8
8
|
* - clientCertificate - Certificate that the application uses when requesting a token. Only used in confidential client applications. Requires hex encoded X.509 SHA-1 thumbprint of the certificiate, and the PEM encoded private key (string should contain -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- )
|
|
9
9
|
* - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
|
|
10
|
+
* @public
|
|
10
11
|
*/
|
|
11
12
|
export declare type NodeAuthOptions = {
|
|
12
13
|
clientId: string;
|
|
@@ -20,6 +21,7 @@ export declare type NodeAuthOptions = {
|
|
|
20
21
|
};
|
|
21
22
|
knownAuthorities?: Array<string>;
|
|
22
23
|
cloudDiscoveryMetadata?: string;
|
|
24
|
+
authorityMetadata?: string;
|
|
23
25
|
clientCapabilities?: [];
|
|
24
26
|
protocolMode?: ProtocolMode;
|
|
25
27
|
};
|
|
@@ -27,6 +29,7 @@ export declare type NodeAuthOptions = {
|
|
|
27
29
|
* Use this to configure the below cache configuration options:
|
|
28
30
|
*
|
|
29
31
|
* - cachePlugin - Plugin for reading and writing token cache to disk.
|
|
32
|
+
* @public
|
|
30
33
|
*/
|
|
31
34
|
export declare type CacheOptions = {
|
|
32
35
|
cachePlugin?: ICachePlugin;
|
|
@@ -36,6 +39,7 @@ export declare type CacheOptions = {
|
|
|
36
39
|
*
|
|
37
40
|
* - logger - Used to initialize the Logger object; TODO: Expand on logger details or link to the documentation on logger
|
|
38
41
|
* - networkClient - Http client used for all http get and post calls. Defaults to using MSAL's default http client.
|
|
42
|
+
* @public
|
|
39
43
|
*/
|
|
40
44
|
export declare type NodeSystemOptions = {
|
|
41
45
|
loggerOptions?: LoggerOptions;
|
|
@@ -47,6 +51,7 @@ export declare type NodeSystemOptions = {
|
|
|
47
51
|
* - auth: this is where you configure auth elements like clientID, authority used for authenticating against the Microsoft Identity Platform
|
|
48
52
|
* - cache: this is where you configure cache location
|
|
49
53
|
* - system: this is where you can configure the network client, logger
|
|
54
|
+
* @public
|
|
50
55
|
*/
|
|
51
56
|
export declare type Configuration = {
|
|
52
57
|
auth: NodeAuthOptions;
|
|
@@ -56,10 +61,12 @@ export declare type Configuration = {
|
|
|
56
61
|
/**
|
|
57
62
|
* Sets the default options when not explicitly configured from app developer
|
|
58
63
|
*
|
|
59
|
-
* @param auth
|
|
60
|
-
* @param cache
|
|
61
|
-
* @param system
|
|
64
|
+
* @param auth - Authentication options
|
|
65
|
+
* @param cache - Cache options
|
|
66
|
+
* @param system - System options
|
|
62
67
|
*
|
|
63
68
|
* @returns Configuration
|
|
69
|
+
* @public
|
|
64
70
|
*/
|
|
65
71
|
export declare function buildAppConfiguration({ auth, cache, system, }: Configuration): Configuration;
|
|
72
|
+
//# sourceMappingURL=Configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../src/config/Configuration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,YAAY,EACf,MAAM,oBAAoB,CAAC;AAG5B;;;;;;;;;GASG;AACH,oBAAY,eAAe,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAC,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,CAAC,EAAE,MAAM,CAAA;KACf,CAAC;IACF,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF;;;;;GAKG;AACH,oBAAY,YAAY,GAAG;IACvB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,oBAAY,iBAAiB,GAAG;IAC5B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF;;;;;;;GAOG;AACH,oBAAY,aAAa,GAAG;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AAkCF;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,KAAK,EACL,MAAM,GACT,EAAE,aAAa,GAAG,aAAa,CAM/B"}
|
|
@@ -2,6 +2,7 @@ import { ICrypto, PkceCodes } from "@azure/msal-common";
|
|
|
2
2
|
/**
|
|
3
3
|
* This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
|
4
4
|
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
|
5
|
+
* @public
|
|
5
6
|
*/
|
|
6
7
|
export declare class CryptoProvider implements ICrypto {
|
|
7
8
|
private pkceGenerator;
|
|
@@ -13,18 +14,25 @@ export declare class CryptoProvider implements ICrypto {
|
|
|
13
14
|
createNewGuid(): string;
|
|
14
15
|
/**
|
|
15
16
|
* Encodes input string to base64.
|
|
16
|
-
* @param input
|
|
17
|
+
* @param input - string to be encoded
|
|
17
18
|
*/
|
|
18
19
|
base64Encode(input: string): string;
|
|
19
20
|
/**
|
|
20
21
|
* Decodes input string from base64.
|
|
21
|
-
* @param input
|
|
22
|
+
* @param input - string to be decoded
|
|
22
23
|
*/
|
|
23
24
|
base64Decode(input: string): string;
|
|
24
25
|
/**
|
|
25
26
|
* Generates PKCE codes used in Authorization Code Flow.
|
|
26
27
|
*/
|
|
27
28
|
generatePkceCodes(): Promise<PkceCodes>;
|
|
29
|
+
/**
|
|
30
|
+
* Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
|
|
31
|
+
*/
|
|
28
32
|
getPublicKeyThumbprint(): Promise<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
|
|
35
|
+
*/
|
|
29
36
|
signJwt(): Promise<string>;
|
|
30
37
|
}
|
|
38
|
+
//# sourceMappingURL=CryptoProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CryptoProvider.d.ts","sourceRoot":"","sources":["../src/crypto/CryptoProvider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKxD;;;;GAIG;AACH,qBAAa,cAAe,YAAW,OAAO;IAC1C,OAAO,CAAC,aAAa,CAAgB;;IAOrC;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAIvC;;OAEG;IACH,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CAG7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidGenerator.d.ts","sourceRoot":"","sources":["../src/crypto/GuidGenerator.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAAC,YAAY,IAAI,MAAM;IAI7B;;;OAGG;IACH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM;CAI7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PkceGenerator.d.ts","sourceRoot":"","sources":["../src/crypto/PkceGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAK/C;;GAEG;AACH,qBAAa,aAAa;IACtB;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAM7C;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;;OAGG;IACH,OAAO,CAAC,iCAAiC;IAOzC;;;OAGG;IACH,OAAO,CAAC,MAAM;IAOd;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAQ3B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module @azure/msal-node
|
|
4
|
+
*/
|
|
5
|
+
export { IPublicClientApplication } from "./client/IPublicClientApplication";
|
|
6
|
+
export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication";
|
|
7
|
+
export { ITokenCache } from "./cache/ITokenCache";
|
|
1
8
|
export { PublicClientApplication } from "./client/PublicClientApplication";
|
|
2
9
|
export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication";
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { Deserializer } from "./cache/serializer/Deserializer";
|
|
10
|
+
export { ClientApplication } from "./client/ClientApplication";
|
|
11
|
+
export { Configuration, buildAppConfiguration, NodeAuthOptions, NodeSystemOptions, CacheOptions } from "./config/Configuration";
|
|
12
|
+
export { ClientAssertion } from "./client/ClientAssertion";
|
|
7
13
|
export { TokenCache } from "./cache/TokenCache";
|
|
14
|
+
export { NodeStorage } from "./cache/NodeStorage";
|
|
15
|
+
export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity } from "./cache/serializer/SerializerTypes";
|
|
8
16
|
export { CryptoProvider } from "./crypto/CryptoProvider";
|
|
9
17
|
export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest";
|
|
10
18
|
export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest";
|
|
11
19
|
export type { ClientCredentialRequest } from "./request/ClientCredentialRequest";
|
|
12
20
|
export type { DeviceCodeRequest } from "./request/DeviceCodeRequest";
|
|
13
21
|
export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest";
|
|
22
|
+
export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest";
|
|
14
23
|
export type { RefreshTokenRequest } from "./request/RefreshTokenRequest";
|
|
15
24
|
export type { SilentFlowRequest } from "./request/SilentFlowRequest";
|
|
16
|
-
export { PromptValue, ResponseMode, AuthenticationResult, AccountInfo, AuthError, AuthErrorMessage, InteractionRequiredAuthError, ServerError, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache } from "@azure/msal-common";
|
|
25
|
+
export { PromptValue, ResponseMode, AuthenticationResult, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, InteractionRequiredAuthError, ServerError, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache } from "@azure/msal-common";
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;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