@azure/msal-node 2.2.0-alpha.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/cache/ITokenCache.d.ts +15 -15
  2. package/dist/cache/NodeStorage.cjs +401 -401
  3. package/dist/cache/NodeStorage.d.ts +182 -182
  4. package/dist/cache/NodeStorage.mjs +401 -401
  5. package/dist/cache/TokenCache.cjs +265 -265
  6. package/dist/cache/TokenCache.d.ts +90 -90
  7. package/dist/cache/TokenCache.mjs +265 -265
  8. package/dist/cache/distributed/DistributedCachePlugin.cjs +26 -26
  9. package/dist/cache/distributed/DistributedCachePlugin.d.ts +10 -10
  10. package/dist/cache/distributed/DistributedCachePlugin.mjs +26 -26
  11. package/dist/cache/distributed/ICacheClient.d.ts +17 -17
  12. package/dist/cache/distributed/IPartitionManager.d.ts +28 -28
  13. package/dist/cache/serializer/Deserializer.cjs +173 -173
  14. package/dist/cache/serializer/Deserializer.d.ts +42 -42
  15. package/dist/cache/serializer/Deserializer.mjs +173 -173
  16. package/dist/cache/serializer/Serializer.cjs +134 -134
  17. package/dist/cache/serializer/Serializer.d.ts +39 -39
  18. package/dist/cache/serializer/Serializer.mjs +134 -134
  19. package/dist/cache/serializer/SerializerTypes.d.ts +101 -101
  20. package/dist/client/ClientApplication.cjs +333 -333
  21. package/dist/client/ClientApplication.d.ts +142 -142
  22. package/dist/client/ClientApplication.mjs +333 -333
  23. package/dist/client/ClientAssertion.cjs +116 -116
  24. package/dist/client/ClientAssertion.d.ts +46 -46
  25. package/dist/client/ClientAssertion.mjs +116 -116
  26. package/dist/client/ClientCredentialClient.cjs +189 -189
  27. package/dist/client/ClientCredentialClient.d.ts +33 -33
  28. package/dist/client/ClientCredentialClient.mjs +189 -189
  29. package/dist/client/ConfidentialClientApplication.cjs +163 -163
  30. package/dist/client/ConfidentialClientApplication.d.ts +58 -58
  31. package/dist/client/ConfidentialClientApplication.mjs +163 -163
  32. package/dist/client/DeviceCodeClient.cjs +207 -207
  33. package/dist/client/DeviceCodeClient.d.ts +53 -53
  34. package/dist/client/DeviceCodeClient.mjs +207 -207
  35. package/dist/client/IConfidentialClientApplication.d.ts +39 -39
  36. package/dist/client/IPublicClientApplication.d.ts +42 -42
  37. package/dist/client/OnBehalfOfClient.cjs +202 -202
  38. package/dist/client/OnBehalfOfClient.d.ts +47 -47
  39. package/dist/client/OnBehalfOfClient.mjs +202 -202
  40. package/dist/client/PublicClientApplication.cjs +229 -229
  41. package/dist/client/PublicClientApplication.d.ts +71 -71
  42. package/dist/client/PublicClientApplication.mjs +229 -229
  43. package/dist/client/UsernamePasswordClient.cjs +95 -95
  44. package/dist/client/UsernamePasswordClient.d.ts +25 -25
  45. package/dist/client/UsernamePasswordClient.mjs +95 -95
  46. package/dist/config/Configuration.cjs +72 -72
  47. package/dist/config/Configuration.d.ts +107 -107
  48. package/dist/config/Configuration.mjs +72 -72
  49. package/dist/crypto/CryptoProvider.cjs +75 -75
  50. package/dist/crypto/CryptoProvider.d.ts +52 -52
  51. package/dist/crypto/CryptoProvider.mjs +75 -75
  52. package/dist/crypto/GuidGenerator.cjs +22 -22
  53. package/dist/crypto/GuidGenerator.d.ts +14 -14
  54. package/dist/crypto/GuidGenerator.mjs +22 -22
  55. package/dist/crypto/HashUtils.cjs +13 -13
  56. package/dist/crypto/HashUtils.d.ts +8 -8
  57. package/dist/crypto/HashUtils.mjs +13 -13
  58. package/dist/crypto/PkceGenerator.cjs +49 -49
  59. package/dist/crypto/PkceGenerator.d.ts +22 -22
  60. package/dist/crypto/PkceGenerator.mjs +49 -49
  61. package/dist/error/NodeAuthError.cjs +85 -85
  62. package/dist/error/NodeAuthError.d.ts +65 -65
  63. package/dist/error/NodeAuthError.mjs +85 -85
  64. package/dist/index.cjs +1 -1
  65. package/dist/index.d.ts +42 -42
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.mjs +1 -1
  68. package/dist/internals.cjs +8 -8
  69. package/dist/internals.d.ts +6 -6
  70. package/dist/internals.mjs +8 -8
  71. package/dist/network/HttpClient.cjs +276 -276
  72. package/dist/network/HttpClient.d.ts +25 -25
  73. package/dist/network/HttpClient.mjs +276 -276
  74. package/dist/network/ILoopbackClient.d.ts +10 -10
  75. package/dist/network/LoopbackClient.cjs +76 -75
  76. package/dist/network/LoopbackClient.cjs.map +1 -1
  77. package/dist/network/LoopbackClient.d.ts +21 -21
  78. package/dist/network/LoopbackClient.d.ts.map +1 -1
  79. package/dist/network/LoopbackClient.mjs +76 -75
  80. package/dist/network/LoopbackClient.mjs.map +1 -1
  81. package/dist/packageMetadata.cjs +4 -4
  82. package/dist/packageMetadata.d.ts +2 -2
  83. package/dist/packageMetadata.mjs +4 -4
  84. package/dist/request/AuthorizationCodeRequest.d.ts +21 -21
  85. package/dist/request/AuthorizationUrlRequest.d.ts +33 -33
  86. package/dist/request/ClientCredentialRequest.d.ts +14 -14
  87. package/dist/request/DeviceCodeRequest.d.ts +15 -15
  88. package/dist/request/InteractiveRequest.d.ts +22 -22
  89. package/dist/request/OnBehalfOfRequest.d.ts +14 -14
  90. package/dist/request/RefreshTokenRequest.d.ts +17 -17
  91. package/dist/request/SignOutRequest.d.ts +5 -5
  92. package/dist/request/SilentFlowRequest.d.ts +16 -16
  93. package/dist/request/UsernamePasswordRequest.d.ts +19 -19
  94. package/dist/utils/Constants.cjs +80 -80
  95. package/dist/utils/Constants.d.ts +86 -86
  96. package/dist/utils/Constants.mjs +80 -80
  97. package/dist/utils/EncodingUtils.cjs +44 -44
  98. package/dist/utils/EncodingUtils.d.ts +26 -26
  99. package/dist/utils/EncodingUtils.mjs +44 -44
  100. package/dist/utils/NetworkUtils.cjs +38 -38
  101. package/dist/utils/NetworkUtils.d.ts +5 -5
  102. package/dist/utils/NetworkUtils.mjs +38 -38
  103. package/package.json +2 -2
  104. package/src/index.ts +1 -0
  105. package/src/network/LoopbackClient.ts +1 -0
  106. package/src/packageMetadata.ts +1 -1
@@ -1,40 +1,40 @@
1
- import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common";
2
- import { InMemoryCache, JsonCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
3
- export declare class Serializer {
4
- /**
5
- * serialize the JSON blob
6
- * @param data
7
- */
8
- static serializeJSONBlob(data: JsonCache): string;
9
- /**
10
- * Serialize Accounts
11
- * @param accCache
12
- */
13
- static serializeAccounts(accCache: AccountCache): Record<string, SerializedAccountEntity>;
14
- /**
15
- * Serialize IdTokens
16
- * @param idTCache
17
- */
18
- static serializeIdTokens(idTCache: IdTokenCache): Record<string, SerializedIdTokenEntity>;
19
- /**
20
- * Serializes AccessTokens
21
- * @param atCache
22
- */
23
- static serializeAccessTokens(atCache: AccessTokenCache): Record<string, SerializedAccessTokenEntity>;
24
- /**
25
- * Serialize refreshTokens
26
- * @param rtCache
27
- */
28
- static serializeRefreshTokens(rtCache: RefreshTokenCache): Record<string, SerializedRefreshTokenEntity>;
29
- /**
30
- * Serialize amdtCache
31
- * @param amdtCache
32
- */
33
- static serializeAppMetadata(amdtCache: AppMetadataCache): Record<string, SerializedAppMetadataEntity>;
34
- /**
35
- * Serialize the cache
36
- * @param jsonContent
37
- */
38
- static serializeAllCache(inMemCache: InMemoryCache): JsonCache;
39
- }
1
+ import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common";
2
+ import { InMemoryCache, JsonCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
3
+ export declare class Serializer {
4
+ /**
5
+ * serialize the JSON blob
6
+ * @param data
7
+ */
8
+ static serializeJSONBlob(data: JsonCache): string;
9
+ /**
10
+ * Serialize Accounts
11
+ * @param accCache
12
+ */
13
+ static serializeAccounts(accCache: AccountCache): Record<string, SerializedAccountEntity>;
14
+ /**
15
+ * Serialize IdTokens
16
+ * @param idTCache
17
+ */
18
+ static serializeIdTokens(idTCache: IdTokenCache): Record<string, SerializedIdTokenEntity>;
19
+ /**
20
+ * Serializes AccessTokens
21
+ * @param atCache
22
+ */
23
+ static serializeAccessTokens(atCache: AccessTokenCache): Record<string, SerializedAccessTokenEntity>;
24
+ /**
25
+ * Serialize refreshTokens
26
+ * @param rtCache
27
+ */
28
+ static serializeRefreshTokens(rtCache: RefreshTokenCache): Record<string, SerializedRefreshTokenEntity>;
29
+ /**
30
+ * Serialize amdtCache
31
+ * @param amdtCache
32
+ */
33
+ static serializeAppMetadata(amdtCache: AppMetadataCache): Record<string, SerializedAppMetadataEntity>;
34
+ /**
35
+ * Serialize the cache
36
+ * @param jsonContent
37
+ */
38
+ static serializeAllCache(inMemCache: InMemoryCache): JsonCache;
39
+ }
40
40
  //# sourceMappingURL=Serializer.d.ts.map
@@ -1,138 +1,138 @@
1
- /*! @azure/msal-node v2.2.0-alpha.0 2023-09-20 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
- /*
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Licensed under the MIT License.
6
- */
7
- class Serializer {
8
- /**
9
- * serialize the JSON blob
10
- * @param data
11
- */
12
- static serializeJSONBlob(data) {
13
- return JSON.stringify(data);
14
- }
15
- /**
16
- * Serialize Accounts
17
- * @param accCache
18
- */
19
- static serializeAccounts(accCache) {
20
- const accounts = {};
21
- Object.keys(accCache).map(function (key) {
22
- const accountEntity = accCache[key];
23
- accounts[key] = {
24
- home_account_id: accountEntity.homeAccountId,
25
- environment: accountEntity.environment,
26
- realm: accountEntity.realm,
27
- local_account_id: accountEntity.localAccountId,
28
- username: accountEntity.username,
29
- authority_type: accountEntity.authorityType,
30
- name: accountEntity.name,
31
- client_info: accountEntity.clientInfo,
32
- last_modification_time: accountEntity.lastModificationTime,
33
- last_modification_app: accountEntity.lastModificationApp,
34
- };
35
- });
36
- return accounts;
37
- }
38
- /**
39
- * Serialize IdTokens
40
- * @param idTCache
41
- */
42
- static serializeIdTokens(idTCache) {
43
- const idTokens = {};
44
- Object.keys(idTCache).map(function (key) {
45
- const idTEntity = idTCache[key];
46
- idTokens[key] = {
47
- home_account_id: idTEntity.homeAccountId,
48
- environment: idTEntity.environment,
49
- credential_type: idTEntity.credentialType,
50
- client_id: idTEntity.clientId,
51
- secret: idTEntity.secret,
52
- realm: idTEntity.realm,
53
- };
54
- });
55
- return idTokens;
56
- }
57
- /**
58
- * Serializes AccessTokens
59
- * @param atCache
60
- */
61
- static serializeAccessTokens(atCache) {
62
- const accessTokens = {};
63
- Object.keys(atCache).map(function (key) {
64
- const atEntity = atCache[key];
65
- accessTokens[key] = {
66
- home_account_id: atEntity.homeAccountId,
67
- environment: atEntity.environment,
68
- credential_type: atEntity.credentialType,
69
- client_id: atEntity.clientId,
70
- secret: atEntity.secret,
71
- realm: atEntity.realm,
72
- target: atEntity.target,
73
- cached_at: atEntity.cachedAt,
74
- expires_on: atEntity.expiresOn,
75
- extended_expires_on: atEntity.extendedExpiresOn,
76
- refresh_on: atEntity.refreshOn,
77
- key_id: atEntity.keyId,
78
- token_type: atEntity.tokenType,
79
- requestedClaims: atEntity.requestedClaims,
80
- requestedClaimsHash: atEntity.requestedClaimsHash,
81
- userAssertionHash: atEntity.userAssertionHash,
82
- };
83
- });
84
- return accessTokens;
85
- }
86
- /**
87
- * Serialize refreshTokens
88
- * @param rtCache
89
- */
90
- static serializeRefreshTokens(rtCache) {
91
- const refreshTokens = {};
92
- Object.keys(rtCache).map(function (key) {
93
- const rtEntity = rtCache[key];
94
- refreshTokens[key] = {
95
- home_account_id: rtEntity.homeAccountId,
96
- environment: rtEntity.environment,
97
- credential_type: rtEntity.credentialType,
98
- client_id: rtEntity.clientId,
99
- secret: rtEntity.secret,
100
- family_id: rtEntity.familyId,
101
- target: rtEntity.target,
102
- realm: rtEntity.realm,
103
- };
104
- });
105
- return refreshTokens;
106
- }
107
- /**
108
- * Serialize amdtCache
109
- * @param amdtCache
110
- */
111
- static serializeAppMetadata(amdtCache) {
112
- const appMetadata = {};
113
- Object.keys(amdtCache).map(function (key) {
114
- const amdtEntity = amdtCache[key];
115
- appMetadata[key] = {
116
- client_id: amdtEntity.clientId,
117
- environment: amdtEntity.environment,
118
- family_id: amdtEntity.familyId,
119
- };
120
- });
121
- return appMetadata;
122
- }
123
- /**
124
- * Serialize the cache
125
- * @param jsonContent
126
- */
127
- static serializeAllCache(inMemCache) {
128
- return {
129
- Account: this.serializeAccounts(inMemCache.accounts),
130
- IdToken: this.serializeIdTokens(inMemCache.idTokens),
131
- AccessToken: this.serializeAccessTokens(inMemCache.accessTokens),
132
- RefreshToken: this.serializeRefreshTokens(inMemCache.refreshTokens),
133
- AppMetadata: this.serializeAppMetadata(inMemCache.appMetadata),
134
- };
135
- }
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ class Serializer {
8
+ /**
9
+ * serialize the JSON blob
10
+ * @param data
11
+ */
12
+ static serializeJSONBlob(data) {
13
+ return JSON.stringify(data);
14
+ }
15
+ /**
16
+ * Serialize Accounts
17
+ * @param accCache
18
+ */
19
+ static serializeAccounts(accCache) {
20
+ const accounts = {};
21
+ Object.keys(accCache).map(function (key) {
22
+ const accountEntity = accCache[key];
23
+ accounts[key] = {
24
+ home_account_id: accountEntity.homeAccountId,
25
+ environment: accountEntity.environment,
26
+ realm: accountEntity.realm,
27
+ local_account_id: accountEntity.localAccountId,
28
+ username: accountEntity.username,
29
+ authority_type: accountEntity.authorityType,
30
+ name: accountEntity.name,
31
+ client_info: accountEntity.clientInfo,
32
+ last_modification_time: accountEntity.lastModificationTime,
33
+ last_modification_app: accountEntity.lastModificationApp,
34
+ };
35
+ });
36
+ return accounts;
37
+ }
38
+ /**
39
+ * Serialize IdTokens
40
+ * @param idTCache
41
+ */
42
+ static serializeIdTokens(idTCache) {
43
+ const idTokens = {};
44
+ Object.keys(idTCache).map(function (key) {
45
+ const idTEntity = idTCache[key];
46
+ idTokens[key] = {
47
+ home_account_id: idTEntity.homeAccountId,
48
+ environment: idTEntity.environment,
49
+ credential_type: idTEntity.credentialType,
50
+ client_id: idTEntity.clientId,
51
+ secret: idTEntity.secret,
52
+ realm: idTEntity.realm,
53
+ };
54
+ });
55
+ return idTokens;
56
+ }
57
+ /**
58
+ * Serializes AccessTokens
59
+ * @param atCache
60
+ */
61
+ static serializeAccessTokens(atCache) {
62
+ const accessTokens = {};
63
+ Object.keys(atCache).map(function (key) {
64
+ const atEntity = atCache[key];
65
+ accessTokens[key] = {
66
+ home_account_id: atEntity.homeAccountId,
67
+ environment: atEntity.environment,
68
+ credential_type: atEntity.credentialType,
69
+ client_id: atEntity.clientId,
70
+ secret: atEntity.secret,
71
+ realm: atEntity.realm,
72
+ target: atEntity.target,
73
+ cached_at: atEntity.cachedAt,
74
+ expires_on: atEntity.expiresOn,
75
+ extended_expires_on: atEntity.extendedExpiresOn,
76
+ refresh_on: atEntity.refreshOn,
77
+ key_id: atEntity.keyId,
78
+ token_type: atEntity.tokenType,
79
+ requestedClaims: atEntity.requestedClaims,
80
+ requestedClaimsHash: atEntity.requestedClaimsHash,
81
+ userAssertionHash: atEntity.userAssertionHash,
82
+ };
83
+ });
84
+ return accessTokens;
85
+ }
86
+ /**
87
+ * Serialize refreshTokens
88
+ * @param rtCache
89
+ */
90
+ static serializeRefreshTokens(rtCache) {
91
+ const refreshTokens = {};
92
+ Object.keys(rtCache).map(function (key) {
93
+ const rtEntity = rtCache[key];
94
+ refreshTokens[key] = {
95
+ home_account_id: rtEntity.homeAccountId,
96
+ environment: rtEntity.environment,
97
+ credential_type: rtEntity.credentialType,
98
+ client_id: rtEntity.clientId,
99
+ secret: rtEntity.secret,
100
+ family_id: rtEntity.familyId,
101
+ target: rtEntity.target,
102
+ realm: rtEntity.realm,
103
+ };
104
+ });
105
+ return refreshTokens;
106
+ }
107
+ /**
108
+ * Serialize amdtCache
109
+ * @param amdtCache
110
+ */
111
+ static serializeAppMetadata(amdtCache) {
112
+ const appMetadata = {};
113
+ Object.keys(amdtCache).map(function (key) {
114
+ const amdtEntity = amdtCache[key];
115
+ appMetadata[key] = {
116
+ client_id: amdtEntity.clientId,
117
+ environment: amdtEntity.environment,
118
+ family_id: amdtEntity.familyId,
119
+ };
120
+ });
121
+ return appMetadata;
122
+ }
123
+ /**
124
+ * Serialize the cache
125
+ * @param jsonContent
126
+ */
127
+ static serializeAllCache(inMemCache) {
128
+ return {
129
+ Account: this.serializeAccounts(inMemCache.accounts),
130
+ IdToken: this.serializeIdTokens(inMemCache.idTokens),
131
+ AccessToken: this.serializeAccessTokens(inMemCache.accessTokens),
132
+ RefreshToken: this.serializeRefreshTokens(inMemCache.refreshTokens),
133
+ AppMetadata: this.serializeAppMetadata(inMemCache.appMetadata),
134
+ };
135
+ }
136
136
  }
137
137
 
138
138
  export { Serializer };
@@ -1,102 +1,102 @@
1
- import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache, ValidCacheType } from "@azure/msal-common";
2
- /**
3
- * Key value store for in-memory cache
4
- * @public
5
- */
6
- export type CacheKVStore = Record<string, ValidCacheType>;
7
- /**
8
- * Cache format read from the cache blob provided to the configuration during app instantiation
9
- * @public
10
- */
11
- export type JsonCache = {
12
- Account: Record<string, SerializedAccountEntity>;
13
- IdToken: Record<string, SerializedIdTokenEntity>;
14
- AccessToken: Record<string, SerializedAccessTokenEntity>;
15
- RefreshToken: Record<string, SerializedRefreshTokenEntity>;
16
- AppMetadata: Record<string, SerializedAppMetadataEntity>;
17
- };
18
- /**
19
- * Intermittent type to handle in-memory data objects with defined types
20
- * @public
21
- */
22
- export type InMemoryCache = {
23
- accounts: AccountCache;
24
- idTokens: IdTokenCache;
25
- accessTokens: AccessTokenCache;
26
- refreshTokens: RefreshTokenCache;
27
- appMetadata: AppMetadataCache;
28
- };
29
- /**
30
- * Account type
31
- * @public
32
- */
33
- export type SerializedAccountEntity = {
34
- home_account_id: string;
35
- environment: string;
36
- realm: string;
37
- local_account_id: string;
38
- username: string;
39
- authority_type: string;
40
- name?: string;
41
- client_info?: string;
42
- last_modification_time?: string;
43
- last_modification_app?: string;
44
- };
45
- /**
46
- * Idtoken credential type
47
- * @public
48
- */
49
- export type SerializedIdTokenEntity = {
50
- home_account_id: string;
51
- environment: string;
52
- credential_type: string;
53
- client_id: string;
54
- secret: string;
55
- realm: string;
56
- };
57
- /**
58
- * Access token credential type
59
- * @public
60
- */
61
- export type SerializedAccessTokenEntity = {
62
- home_account_id: string;
63
- environment: string;
64
- credential_type: string;
65
- client_id: string;
66
- secret: string;
67
- realm: string;
68
- target: string;
69
- cached_at: string;
70
- expires_on: string;
71
- extended_expires_on?: string;
72
- refresh_on?: string;
73
- key_id?: string;
74
- token_type?: string;
75
- requestedClaims?: string;
76
- requestedClaimsHash?: string;
77
- userAssertionHash?: string;
78
- };
79
- /**
80
- * Refresh token credential type
81
- * @public
82
- */
83
- export type SerializedRefreshTokenEntity = {
84
- home_account_id: string;
85
- environment: string;
86
- credential_type: string;
87
- client_id: string;
88
- secret: string;
89
- family_id?: string;
90
- target?: string;
91
- realm?: string;
92
- };
93
- /**
94
- * AppMetadata type
95
- * @public
96
- */
97
- export type SerializedAppMetadataEntity = {
98
- client_id: string;
99
- environment: string;
100
- family_id?: string;
101
- };
1
+ import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache, ValidCacheType } from "@azure/msal-common";
2
+ /**
3
+ * Key value store for in-memory cache
4
+ * @public
5
+ */
6
+ export type CacheKVStore = Record<string, ValidCacheType>;
7
+ /**
8
+ * Cache format read from the cache blob provided to the configuration during app instantiation
9
+ * @public
10
+ */
11
+ export type JsonCache = {
12
+ Account: Record<string, SerializedAccountEntity>;
13
+ IdToken: Record<string, SerializedIdTokenEntity>;
14
+ AccessToken: Record<string, SerializedAccessTokenEntity>;
15
+ RefreshToken: Record<string, SerializedRefreshTokenEntity>;
16
+ AppMetadata: Record<string, SerializedAppMetadataEntity>;
17
+ };
18
+ /**
19
+ * Intermittent type to handle in-memory data objects with defined types
20
+ * @public
21
+ */
22
+ export type InMemoryCache = {
23
+ accounts: AccountCache;
24
+ idTokens: IdTokenCache;
25
+ accessTokens: AccessTokenCache;
26
+ refreshTokens: RefreshTokenCache;
27
+ appMetadata: AppMetadataCache;
28
+ };
29
+ /**
30
+ * Account type
31
+ * @public
32
+ */
33
+ export type SerializedAccountEntity = {
34
+ home_account_id: string;
35
+ environment: string;
36
+ realm: string;
37
+ local_account_id: string;
38
+ username: string;
39
+ authority_type: string;
40
+ name?: string;
41
+ client_info?: string;
42
+ last_modification_time?: string;
43
+ last_modification_app?: string;
44
+ };
45
+ /**
46
+ * Idtoken credential type
47
+ * @public
48
+ */
49
+ export type SerializedIdTokenEntity = {
50
+ home_account_id: string;
51
+ environment: string;
52
+ credential_type: string;
53
+ client_id: string;
54
+ secret: string;
55
+ realm: string;
56
+ };
57
+ /**
58
+ * Access token credential type
59
+ * @public
60
+ */
61
+ export type SerializedAccessTokenEntity = {
62
+ home_account_id: string;
63
+ environment: string;
64
+ credential_type: string;
65
+ client_id: string;
66
+ secret: string;
67
+ realm: string;
68
+ target: string;
69
+ cached_at: string;
70
+ expires_on: string;
71
+ extended_expires_on?: string;
72
+ refresh_on?: string;
73
+ key_id?: string;
74
+ token_type?: string;
75
+ requestedClaims?: string;
76
+ requestedClaimsHash?: string;
77
+ userAssertionHash?: string;
78
+ };
79
+ /**
80
+ * Refresh token credential type
81
+ * @public
82
+ */
83
+ export type SerializedRefreshTokenEntity = {
84
+ home_account_id: string;
85
+ environment: string;
86
+ credential_type: string;
87
+ client_id: string;
88
+ secret: string;
89
+ family_id?: string;
90
+ target?: string;
91
+ realm?: string;
92
+ };
93
+ /**
94
+ * AppMetadata type
95
+ * @public
96
+ */
97
+ export type SerializedAppMetadataEntity = {
98
+ client_id: string;
99
+ environment: string;
100
+ family_id?: string;
101
+ };
102
102
  //# sourceMappingURL=SerializerTypes.d.ts.map