modules inc
This commit is contained in:
157
node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts
generated
vendored
Normal file
157
node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts
generated
vendored
Normal file
@@ -0,0 +1,157 @@
|
||||
import { CredentialEntity } from "../entities/CredentialEntity";
|
||||
import { AccountCache, CredentialCache, AccountFilter, CredentialFilter } from "../utils/CacheTypes";
|
||||
import { CacheRecord } from "../entities/CacheRecord";
|
||||
import { AccountEntity } from "../entities/AccountEntity";
|
||||
import { AccountInfo } from "../../account/AccountInfo";
|
||||
import { AppMetadataEntity } from "../entities/AppMetadataEntity";
|
||||
import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity";
|
||||
import { ThrottlingEntity } from "../entities/ThrottlingEntity";
|
||||
import { IdTokenEntity } from "../entities/IdTokenEntity";
|
||||
import { AccessTokenEntity } from "../entities/AccessTokenEntity";
|
||||
import { RefreshTokenEntity } from "../entities/RefreshTokenEntity";
|
||||
import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity";
|
||||
export interface ICacheManager {
|
||||
/**
|
||||
* fetch the account entity from the platform cache
|
||||
* @param accountKey
|
||||
*/
|
||||
getAccount(accountKey: string): AccountEntity | null;
|
||||
/**
|
||||
* set account entity in the platform cache
|
||||
* @param account
|
||||
*/
|
||||
setAccount(account: AccountEntity): void;
|
||||
/**
|
||||
* fetch the idToken entity from the platform cache
|
||||
* @param idTokenKey
|
||||
*/
|
||||
getIdTokenCredential(idTokenKey: string): IdTokenEntity | null;
|
||||
/**
|
||||
* set idToken entity to the platform cache
|
||||
* @param idToken
|
||||
*/
|
||||
setIdTokenCredential(idToken: IdTokenEntity): void;
|
||||
/**
|
||||
* fetch the idToken entity from the platform cache
|
||||
* @param accessTokenKey
|
||||
*/
|
||||
getAccessTokenCredential(accessTokenKey: string): AccessTokenEntity | null;
|
||||
/**
|
||||
* set idToken entity to the platform cache
|
||||
* @param accessToken
|
||||
*/
|
||||
setAccessTokenCredential(accessToken: AccessTokenEntity): void;
|
||||
/**
|
||||
* fetch the idToken entity from the platform cache
|
||||
* @param refreshTokenKey
|
||||
*/
|
||||
getRefreshTokenCredential(refreshTokenKey: string): RefreshTokenEntity | null;
|
||||
/**
|
||||
* set idToken entity to the platform cache
|
||||
* @param refreshToken
|
||||
*/
|
||||
setRefreshTokenCredential(refreshToken: RefreshTokenEntity): void;
|
||||
/**
|
||||
* fetch appMetadata entity from the platform cache
|
||||
* @param appMetadataKey
|
||||
*/
|
||||
getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
|
||||
/**
|
||||
* set appMetadata entity to the platform cache
|
||||
* @param appMetadata
|
||||
*/
|
||||
setAppMetadata(appMetadata: AppMetadataEntity): void;
|
||||
/**
|
||||
* fetch server telemetry entity from the platform cache
|
||||
* @param serverTelemetryKey
|
||||
*/
|
||||
getServerTelemetry(serverTelemetryKey: string): ServerTelemetryEntity | null;
|
||||
/**
|
||||
* set server telemetry entity to the platform cache
|
||||
* @param serverTelemetryKey
|
||||
* @param serverTelemetry
|
||||
*/
|
||||
setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity): void;
|
||||
/**
|
||||
* fetch cloud discovery metadata entity from the platform cache
|
||||
* @param key
|
||||
*/
|
||||
getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
|
||||
/**
|
||||
* Get cache keys for authority metadata
|
||||
*/
|
||||
getAuthorityMetadataKeys(): Array<string>;
|
||||
/**
|
||||
* set cloud discovery metadata entity to the platform cache
|
||||
* @param key
|
||||
* @param value
|
||||
*/
|
||||
setAuthorityMetadata(key: string, value: AuthorityMetadataEntity): void;
|
||||
/**
|
||||
* Provide an alias to find a matching AuthorityMetadataEntity in cache
|
||||
* @param host
|
||||
*/
|
||||
getAuthorityMetadataByAlias(host: string): AuthorityMetadataEntity | null;
|
||||
/**
|
||||
* given an authority generates the cache key for authorityMetadata
|
||||
* @param authority
|
||||
*/
|
||||
generateAuthorityMetadataCacheKey(authority: string): string;
|
||||
/**
|
||||
* fetch throttling entity from the platform cache
|
||||
* @param throttlingCacheKey
|
||||
*/
|
||||
getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
|
||||
/**
|
||||
* set throttling entity to the platform cache
|
||||
* @param throttlingCacheKey
|
||||
* @param throttlingCache
|
||||
*/
|
||||
setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity): void;
|
||||
/**
|
||||
* Returns all accounts in cache
|
||||
*/
|
||||
getAllAccounts(): AccountInfo[];
|
||||
/**
|
||||
* saves a cache record
|
||||
* @param cacheRecord
|
||||
*/
|
||||
saveCacheRecord(cacheRecord: CacheRecord): void;
|
||||
/**
|
||||
* retrieve accounts matching all provided filters; if no filter is set, get all accounts
|
||||
* @param homeAccountId
|
||||
* @param environment
|
||||
* @param realm
|
||||
*/
|
||||
getAccountsFilteredBy(filter: AccountFilter): AccountCache;
|
||||
/**
|
||||
* retrieve credentials matching all provided filters; if no filter is set, get all credentials
|
||||
* @param homeAccountId
|
||||
* @param environment
|
||||
* @param credentialType
|
||||
* @param clientId
|
||||
* @param realm
|
||||
* @param target
|
||||
*/
|
||||
getCredentialsFilteredBy(filter: CredentialFilter): CredentialCache;
|
||||
/**
|
||||
* Removes all accounts and related tokens from cache.
|
||||
*/
|
||||
removeAllAccounts(): boolean;
|
||||
/**
|
||||
* returns a boolean if the given account is removed
|
||||
* @param account
|
||||
*/
|
||||
removeAccount(accountKey: string): boolean;
|
||||
/**
|
||||
* returns a boolean if the given account is removed
|
||||
* @param account
|
||||
*/
|
||||
removeAccountContext(account: AccountEntity): boolean;
|
||||
/**
|
||||
* returns a boolean if the given credential is removed
|
||||
* @param credential
|
||||
*/
|
||||
removeCredential(credential: CredentialEntity): boolean;
|
||||
}
|
||||
//# sourceMappingURL=ICacheManager.d.ts.map
|
1
node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ICacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EACH,YAAY,EACZ,eAAe,EACf,aAAa,EACb,gBAAgB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,MAAM,WAAW,aAAa;IAE1B;;;OAGG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC;IAErD;;;OAGG;IACH,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAEzC;;;OAGG;IACH,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC;IAE/D;;;OAGG;IACH,oBAAoB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAEnD;;;OAGG;IACH,wBAAwB,CAAC,cAAc,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAAC;IAE3E;;;OAGG;IACH,wBAAwB,CAAC,WAAW,E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AAC;IAEhD;;;;;OAKG;IACH,qBAAqB,CAAC,MAAM,EAAE,aAAa,GAAG,YAAY,CAAC;IAE3D;;;;;;;;OAQG;IACH,wBAAwB,CAAC,MAAM,EAAE,gBAAgB,GAAG,eAAe,CAAC;IAEpE;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC;IAE7B;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3C;;;OAGG;IACH,oBAAoB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC;IAEtD;;;OAGG;IACH,gBAAgB,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC;CAC3D"}
|
6
node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts
generated
vendored
Normal file
6
node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { TokenCacheContext } from "../persistence/TokenCacheContext";
|
||||
export interface ICachePlugin {
|
||||
beforeCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>;
|
||||
afterCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=ICachePlugin.d.ts.map
|
1
node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ICachePlugin.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICachePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,WAAW,YAAY;IACzB,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E"}
|
5
node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts
generated
vendored
Normal file
5
node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface ISerializableTokenCache {
|
||||
deserialize: (cache: string) => void;
|
||||
serialize: () => string;
|
||||
}
|
||||
//# sourceMappingURL=ISerializableTokenCache.d.ts.map
|
1
node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map
generated
vendored
Normal file
1
node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ISerializableTokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ISerializableTokenCache.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,MAAM,CAAC;CAC3B"}
|
Reference in New Issue
Block a user