Commit iniziale
This commit is contained in:
167
node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts
generated
vendored
Normal file
167
node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts
generated
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
import { AccountFilter } from "../utils/CacheTypes.js";
|
||||
import { CacheRecord } from "../entities/CacheRecord.js";
|
||||
import { AccountEntity } from "../entities/AccountEntity.js";
|
||||
import { AccountInfo } from "../../account/AccountInfo.js";
|
||||
import { AppMetadataEntity } from "../entities/AppMetadataEntity.js";
|
||||
import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js";
|
||||
import { ThrottlingEntity } from "../entities/ThrottlingEntity.js";
|
||||
import { IdTokenEntity } from "../entities/IdTokenEntity.js";
|
||||
import { AccessTokenEntity } from "../entities/AccessTokenEntity.js";
|
||||
import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js";
|
||||
import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js";
|
||||
import { StoreInCache } from "../../request/StoreInCache.js";
|
||||
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, correlationId: string): Promise<void>;
|
||||
/**
|
||||
* Returns true if the given key matches our account key schema. Also matches homeAccountId and/or tenantId if provided
|
||||
* @param key
|
||||
* @param homeAccountId
|
||||
* @param tenantId
|
||||
* @returns
|
||||
*/
|
||||
isAccountKey(key: string, homeAccountId?: string, tenantId?: string): boolean;
|
||||
/**
|
||||
* 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, correlationId: string): Promise<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, correlationId: string): Promise<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, correlationId: string): Promise<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, correlationId: string, storeInCache?: StoreInCache): Promise<void>;
|
||||
/**
|
||||
* retrieve accounts matching all provided filters; if no filter is set, get all accounts
|
||||
* @param homeAccountId
|
||||
* @param environment
|
||||
* @param realm
|
||||
*/
|
||||
getAccountsFilteredBy(filter: AccountFilter): AccountEntity[];
|
||||
/**
|
||||
* Get AccountInfo object based on provided filters
|
||||
* @param filter
|
||||
*/
|
||||
getAccountInfoFilteredBy(filter: AccountFilter): AccountInfo | null;
|
||||
/**
|
||||
* Removes all accounts and related tokens from cache.
|
||||
*/
|
||||
removeAllAccounts(): Promise<void>;
|
||||
/**
|
||||
* returns a boolean if the given account is removed
|
||||
* @param account
|
||||
*/
|
||||
removeAccount(accountKey: string): Promise<void>;
|
||||
/**
|
||||
* returns a boolean if the given account is removed
|
||||
* @param account
|
||||
*/
|
||||
removeAccountContext(account: AccountEntity): Promise<void>;
|
||||
/**
|
||||
* @param key
|
||||
*/
|
||||
removeIdToken(key: string): void;
|
||||
/**
|
||||
* @param key
|
||||
*/
|
||||
removeAccessToken(key: string): Promise<void>;
|
||||
/**
|
||||
* @param key
|
||||
*/
|
||||
removeRefreshToken(key: string): void;
|
||||
}
|
||||
//# 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,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC1B;;;OAGG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC;IAErD;;;OAGG;IACH,UAAU,CAAC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,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G,IAAI,CAAC;CACzC"}
|
||||
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.js";
|
||||
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,qCAAqC,CAAC;AAExE,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