@aws-amplify/core 6.0.1-console-preview.3b09ef9.0 → 6.0.1-ui-preview.1aa6ecb.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.
- package/lib/Hub/types/AuthTypes.d.ts +13 -7
- package/lib/Platform/index.d.ts +2 -2
- package/lib/Platform/index.js +2 -5
- package/lib/Platform/types.d.ts +4 -55
- package/lib/Platform/types.js +36 -48
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/libraryUtils.d.ts +1 -1
- package/lib/singleton/Auth/index.js +1 -1
- package/lib/singleton/Auth/types.d.ts +2 -2
- package/lib/singleton/types.d.ts +2 -2
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/Hub/types/AuthTypes.d.ts +13 -7
- package/lib-esm/Platform/index.d.ts +2 -2
- package/lib-esm/Platform/index.js +2 -5
- package/lib-esm/Platform/types.d.ts +4 -55
- package/lib-esm/Platform/types.js +36 -48
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/libraryUtils.d.ts +1 -1
- package/lib-esm/singleton/Auth/index.js +1 -1
- package/lib-esm/singleton/Auth/types.d.ts +2 -2
- package/lib-esm/singleton/types.d.ts +2 -2
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Cache/CHANGELOG.md +12 -0
- package/src/Hub/types/AuthTypes.ts +8 -6
- package/src/Platform/index.ts +3 -8
- package/src/Platform/types.ts +34 -56
- package/src/Platform/version.ts +1 -1
- package/src/index.ts +2 -2
- package/src/libraryUtils.ts +5 -1
- package/src/singleton/Auth/index.ts +1 -1
- package/src/singleton/Auth/types.ts +2 -2
- package/src/singleton/types.ts +5 -4
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
export var Framework;
|
|
2
4
|
(function (Framework) {
|
|
3
5
|
// < 100 - Web frameworks
|
|
@@ -51,44 +53,40 @@ export var ApiAction;
|
|
|
51
53
|
})(ApiAction || (ApiAction = {}));
|
|
52
54
|
export var AuthAction;
|
|
53
55
|
(function (AuthAction) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
56
|
+
// SignUp = '1',
|
|
57
|
+
// ConfirmSignUp = '2',
|
|
58
|
+
// ResendSignUp = '3',
|
|
59
|
+
// SignIn = '4',
|
|
60
|
+
// GetMFAOptions = '5',
|
|
61
|
+
// GetPreferredMFA = '6',
|
|
62
|
+
// SetPreferredMFA = '7',
|
|
63
|
+
// DisableSMS = '8',
|
|
64
|
+
// EnableSMS = '9',
|
|
65
|
+
// SetupTOTP = '10',
|
|
66
|
+
// VerifyTotpToken = '11',
|
|
67
|
+
// ConfirmSignIn = '12',
|
|
68
|
+
// CompleteNewPassword = '13',
|
|
69
|
+
// SendCustomChallengeAnswer = '14',
|
|
70
|
+
// DeleteUserAttributes = '15',
|
|
71
|
+
// DeleteUser = '16',
|
|
72
|
+
// UpdateUserAttributes = '17',
|
|
73
|
+
// UserAttributes = '18',
|
|
74
|
+
// CurrentUserPoolUser = '19',
|
|
75
|
+
// CurrentAuthenticatedUser = '20',
|
|
76
|
+
// CurrentSession = '21',
|
|
77
|
+
// VerifyUserAttribute = '22',
|
|
78
|
+
// VerifyUserAttributeSubmit = '23',
|
|
79
|
+
// VerifyCurrentUserAttribute = '24',
|
|
80
|
+
// VerifyCurrentUserAttributeSubmit = '25',
|
|
81
|
+
// SignOut = '26',
|
|
82
|
+
// ChangePassword = '27',
|
|
83
|
+
// ForgotPassword = '28',
|
|
84
|
+
// ForgotPasswordSubmit = '29',
|
|
83
85
|
AuthAction["FederatedSignIn"] = "30";
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
AuthAction["CurrentUserInfo"] = "35";
|
|
89
|
-
AuthAction["RememberDevice"] = "36";
|
|
90
|
-
AuthAction["ForgetDevice"] = "37";
|
|
91
|
-
AuthAction["FetchDevices"] = "38";
|
|
86
|
+
// CurrentUserInfo = '31',
|
|
87
|
+
// RememberDevice = '32',
|
|
88
|
+
// ForgetDevice = '33',
|
|
89
|
+
// FetchDevices = '34',
|
|
92
90
|
})(AuthAction || (AuthAction = {}));
|
|
93
91
|
export var DataStoreAction;
|
|
94
92
|
(function (DataStoreAction) {
|
|
@@ -97,20 +95,11 @@ export var DataStoreAction;
|
|
|
97
95
|
})(DataStoreAction || (DataStoreAction = {}));
|
|
98
96
|
export var GeoAction;
|
|
99
97
|
(function (GeoAction) {
|
|
100
|
-
GeoAction["
|
|
101
|
-
GeoAction["SearchForSuggestions"] = "2";
|
|
102
|
-
GeoAction["SearchByPlaceId"] = "3";
|
|
103
|
-
GeoAction["SearchByCoordinates"] = "4";
|
|
104
|
-
GeoAction["SaveGeofences"] = "5";
|
|
105
|
-
GeoAction["GetGeofence"] = "6";
|
|
106
|
-
GeoAction["ListGeofences"] = "7";
|
|
107
|
-
GeoAction["DeleteGeofences"] = "8";
|
|
98
|
+
GeoAction["None"] = "0";
|
|
108
99
|
})(GeoAction || (GeoAction = {}));
|
|
109
100
|
export var InAppMessagingAction;
|
|
110
101
|
(function (InAppMessagingAction) {
|
|
111
102
|
InAppMessagingAction["None"] = "0";
|
|
112
|
-
InAppMessagingAction["SyncMessages"] = "1";
|
|
113
|
-
InAppMessagingAction["IdentifyUser"] = "2";
|
|
114
103
|
})(InAppMessagingAction || (InAppMessagingAction = {}));
|
|
115
104
|
export var InteractionsAction;
|
|
116
105
|
(function (InteractionsAction) {
|
|
@@ -138,5 +127,4 @@ export var StorageAction;
|
|
|
138
127
|
StorageAction["Copy"] = "4";
|
|
139
128
|
StorageAction["Remove"] = "5";
|
|
140
129
|
StorageAction["GetProperties"] = "6";
|
|
141
|
-
StorageAction["Cancel"] = "7";
|
|
142
130
|
})(StorageAction || (StorageAction = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0.1-
|
|
1
|
+
export declare const version = "6.0.1-ui-preview.1aa6ecb.0+1aa6ecb";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export var version = '6.0.1-
|
|
2
|
+
export var version = '6.0.1-ui-preview.1aa6ecb.0+1aa6ecb';
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { AppState, AsyncStorage, Linking } from './RNComponents';
|
|
|
7
7
|
export { Credentials, CredentialsClass } from './Credentials';
|
|
8
8
|
export { ICredentials } from './types';
|
|
9
9
|
export { TokenProvider, AuthTokens, FetchAuthSessionOptions, AWSCredentialsAndIdentityIdProvider, AWSCredentialsAndIdentityId, Identity, OAuthConfig, CognitoUserPoolConfig, } from './singleton/Auth/types';
|
|
10
|
-
export { AuthConfig,
|
|
10
|
+
export { AuthConfig, AuthUserPoolConfig, AuthUserPoolAndIdentityPoolConfig, StorageAccessLevel, StorageConfig, GetCredentialsOptions, ResourcesConfig, LibraryOptions, AnalyticsConfig, } from './singleton/types';
|
|
11
11
|
export { Amplify, fetchAuthSession, AmplifyClass as AmplifyClassV6, clearCredentials, } from './singleton';
|
|
12
12
|
export { getCredentialsForIdentity, getId, GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, } from './AwsClients/CognitoIdentity';
|
|
13
13
|
export { UserProfile } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './Util/JS';
|
|
2
|
-
export { JWT, StrictUnion } from './singleton/Auth/types';
|
|
2
|
+
export { JWT, StrictUnion, CognitoIdentityPoolConfig, } from './singleton/Auth/types';
|
|
3
3
|
export { decodeJWT, assertTokenProviderConfig, assertIdentityPooIdConfig, assertOAuthConfig, } from './singleton/Auth/utils';
|
|
4
4
|
export { isTokenExpired } from './singleton/Auth';
|
|
5
5
|
export { Signer } from './Signer';
|
|
@@ -118,7 +118,7 @@ var AuthClass = /** @class */ (function () {
|
|
|
118
118
|
switch (_b.label) {
|
|
119
119
|
case 0:
|
|
120
120
|
if (!((_a = this.authOptions) === null || _a === void 0 ? void 0 : _a.credentialsProvider)) return [3 /*break*/, 2];
|
|
121
|
-
return [4 /*yield*/, this.authOptions.credentialsProvider.
|
|
121
|
+
return [4 /*yield*/, this.authOptions.credentialsProvider.clearCredentialsAndIdentityId()];
|
|
122
122
|
case 1: return [2 /*return*/, _b.sent()];
|
|
123
123
|
case 2: return [2 /*return*/];
|
|
124
124
|
}
|
|
@@ -35,8 +35,8 @@ export type Identity = {
|
|
|
35
35
|
type: 'guest' | 'primary';
|
|
36
36
|
};
|
|
37
37
|
export interface AWSCredentialsAndIdentityIdProvider {
|
|
38
|
-
getCredentialsAndIdentityId: (getCredentialsOptions: GetCredentialsOptions) => Promise<AWSCredentialsAndIdentityId>;
|
|
39
|
-
|
|
38
|
+
getCredentialsAndIdentityId: (getCredentialsOptions: GetCredentialsOptions) => Promise<AWSCredentialsAndIdentityId | undefined>;
|
|
39
|
+
clearCredentialsAndIdentityId: () => void;
|
|
40
40
|
}
|
|
41
41
|
export type TokenProvider = {
|
|
42
42
|
getTokens: ({ forceRefresh, }?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnalyticsConfig } from './Analytics/types';
|
|
2
|
-
import { AuthConfig, LibraryAuthOptions, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions } from './Auth/types';
|
|
2
|
+
import { AuthConfig, LibraryAuthOptions, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions, CognitoIdentityPoolConfig } from './Auth/types';
|
|
3
3
|
import { LibraryStorageOptions, StorageAccessLevel, StorageConfig } from './Storage/types';
|
|
4
4
|
export type ResourcesConfig = {
|
|
5
5
|
Analytics?: AnalyticsConfig;
|
|
@@ -11,4 +11,4 @@ export type LibraryOptions = {
|
|
|
11
11
|
Auth?: LibraryAuthOptions;
|
|
12
12
|
Storage?: LibraryStorageOptions;
|
|
13
13
|
};
|
|
14
|
-
export { AuthConfig, AuthUserPoolConfig
|
|
14
|
+
export { AuthConfig, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions, StorageAccessLevel, StorageConfig, AnalyticsConfig, CognitoIdentityPoolConfig, };
|