@aws-amplify/core 6.0.1-console-preview.7049e04.0 → 6.0.1-console-preview.5f040a2.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/internals/aws-clients/pinpoint/package.json +4 -4
- package/lib/Platform/types.d.ts +28 -4
- package/lib/Platform/types.js +26 -35
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/clients/middleware/signing/signer/signatureV4/index.d.ts +1 -0
- package/lib/clients/middleware/signing/signer/signatureV4/index.js +1 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.d.ts +0 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.js +4 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.native.d.ts +1 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.native.js +6 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -3
- package/lib/providers/pinpoint/apis/updateEndpoint.js +2 -2
- package/lib/providers/pinpoint/utils/PinpointEventBuffer.js +2 -2
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/globalHelpers/index.native.d.ts +2 -3
- package/lib/utils/globalHelpers/index.native.js +3 -3
- package/lib-esm/Platform/types.d.ts +28 -4
- package/lib-esm/Platform/types.js +26 -35
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.d.ts +1 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.js +1 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.d.ts +0 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.js +4 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.native.d.ts +1 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.native.js +4 -0
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +1 -1
- package/lib-esm/providers/pinpoint/apis/updateEndpoint.js +1 -1
- package/lib-esm/providers/pinpoint/utils/PinpointEventBuffer.js +1 -1
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/utils/globalHelpers/index.native.d.ts +2 -3
- package/lib-esm/utils/globalHelpers/index.native.js +2 -2
- package/package.json +3 -3
- package/src/Platform/types.ts +26 -35
- package/src/Platform/version.ts +1 -1
- package/src/clients/middleware/signing/signer/signatureV4/index.ts +2 -0
- package/src/clients/middleware/signing/signer/signatureV4/polyfills/index.native.ts +5 -0
- package/src/clients/middleware/signing/signer/signatureV4/polyfills/index.ts +4 -0
- package/src/index.ts +1 -1
- package/src/providers/pinpoint/apis/updateEndpoint.ts +1 -1
- package/src/providers/pinpoint/utils/PinpointEventBuffer.ts +1 -1
- package/src/utils/globalHelpers/index.native.ts +2 -2
- package/lib/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -4
- package/lib/clients/middleware/signing/signer/signatureV4/index.native.js +0 -16
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -4
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.js +0 -9
- package/src/clients/middleware/signing/signer/signatureV4/index.native.ts +0 -12
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/base.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/base.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/index.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/index.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/types.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/types.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/base.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/base.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/index.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/index.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/types.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/types.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.js +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/base.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/index.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/types.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.ts +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { encode, decode } from 'base-64';
|
|
2
1
|
export declare const getCrypto: () => Crypto;
|
|
3
|
-
export declare const getBtoa: () => typeof encode;
|
|
4
|
-
export declare const getAtob: () => typeof decode;
|
|
2
|
+
export declare const getBtoa: () => typeof import("base-64").encode;
|
|
3
|
+
export declare const getAtob: () => typeof import("base-64").decode;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.getAtob = exports.getBtoa = exports.getCrypto = void 0;
|
|
6
6
|
var react_native_1 = require("@aws-amplify/react-native");
|
|
7
|
-
var base_64_1 = require("base-64");
|
|
8
7
|
var errors_1 = require("../../errors");
|
|
9
8
|
(0, react_native_1.loadGetRandomValues)();
|
|
9
|
+
var _a = (0, react_native_1.loadBase64)(), encode = _a.encode, decode = _a.decode;
|
|
10
10
|
var getCrypto = function () {
|
|
11
11
|
if (typeof crypto !== 'undefined' &&
|
|
12
12
|
typeof crypto.getRandomValues === 'function') {
|
|
@@ -19,10 +19,10 @@ var getCrypto = function () {
|
|
|
19
19
|
};
|
|
20
20
|
exports.getCrypto = getCrypto;
|
|
21
21
|
var getBtoa = function () {
|
|
22
|
-
return
|
|
22
|
+
return encode;
|
|
23
23
|
};
|
|
24
24
|
exports.getBtoa = getBtoa;
|
|
25
25
|
var getAtob = function () {
|
|
26
|
-
return
|
|
26
|
+
return decode;
|
|
27
27
|
};
|
|
28
28
|
exports.getAtob = getAtob;
|
|
@@ -43,7 +43,30 @@ export declare enum ApiAction {
|
|
|
43
43
|
Head = "7"
|
|
44
44
|
}
|
|
45
45
|
export declare enum AuthAction {
|
|
46
|
-
|
|
46
|
+
SignUp = "1",
|
|
47
|
+
ConfirmSignUp = "2",
|
|
48
|
+
ResendSignUpCode = "3",
|
|
49
|
+
SignIn = "4",
|
|
50
|
+
FetchMFAPreference = "6",
|
|
51
|
+
UpdateMFAPreference = "7",
|
|
52
|
+
SetUpTOTP = "10",
|
|
53
|
+
VerifyTOTPSetup = "11",
|
|
54
|
+
ConfirmSignIn = "12",
|
|
55
|
+
DeleteUserAttributes = "15",
|
|
56
|
+
DeleteUser = "16",
|
|
57
|
+
UpdateUserAttributes = "17",
|
|
58
|
+
FetchUserAttributes = "18",
|
|
59
|
+
ConfirmUserAttribute = "22",
|
|
60
|
+
SignOut = "26",
|
|
61
|
+
UpdatePassword = "27",
|
|
62
|
+
ResetPassword = "28",
|
|
63
|
+
ConfirmResetPassword = "29",
|
|
64
|
+
FederatedSignIn = "30",
|
|
65
|
+
RememberDevice = "32",
|
|
66
|
+
ForgetDevice = "33",
|
|
67
|
+
FetchDevices = "34",
|
|
68
|
+
SendUserAttributeVerificationCode = "35",
|
|
69
|
+
SignInWithRedirect = "36"
|
|
47
70
|
}
|
|
48
71
|
export declare enum DataStoreAction {
|
|
49
72
|
Subscribe = "1",
|
|
@@ -71,12 +94,13 @@ export declare enum PushNotificationAction {
|
|
|
71
94
|
None = "0"
|
|
72
95
|
}
|
|
73
96
|
export declare enum StorageAction {
|
|
74
|
-
|
|
75
|
-
|
|
97
|
+
UploadData = "1",
|
|
98
|
+
DownloadData = "2",
|
|
76
99
|
List = "3",
|
|
77
100
|
Copy = "4",
|
|
78
101
|
Remove = "5",
|
|
79
|
-
GetProperties = "6"
|
|
102
|
+
GetProperties = "6",
|
|
103
|
+
GetUrl = "7"
|
|
80
104
|
}
|
|
81
105
|
type ActionMap = {
|
|
82
106
|
[Category.Auth]: AuthAction;
|
|
@@ -53,40 +53,30 @@ export var ApiAction;
|
|
|
53
53
|
})(ApiAction || (ApiAction = {}));
|
|
54
54
|
export var AuthAction;
|
|
55
55
|
(function (AuthAction) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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',
|
|
56
|
+
AuthAction["SignUp"] = "1";
|
|
57
|
+
AuthAction["ConfirmSignUp"] = "2";
|
|
58
|
+
AuthAction["ResendSignUpCode"] = "3";
|
|
59
|
+
AuthAction["SignIn"] = "4";
|
|
60
|
+
AuthAction["FetchMFAPreference"] = "6";
|
|
61
|
+
AuthAction["UpdateMFAPreference"] = "7";
|
|
62
|
+
AuthAction["SetUpTOTP"] = "10";
|
|
63
|
+
AuthAction["VerifyTOTPSetup"] = "11";
|
|
64
|
+
AuthAction["ConfirmSignIn"] = "12";
|
|
65
|
+
AuthAction["DeleteUserAttributes"] = "15";
|
|
66
|
+
AuthAction["DeleteUser"] = "16";
|
|
67
|
+
AuthAction["UpdateUserAttributes"] = "17";
|
|
68
|
+
AuthAction["FetchUserAttributes"] = "18";
|
|
69
|
+
AuthAction["ConfirmUserAttribute"] = "22";
|
|
70
|
+
AuthAction["SignOut"] = "26";
|
|
71
|
+
AuthAction["UpdatePassword"] = "27";
|
|
72
|
+
AuthAction["ResetPassword"] = "28";
|
|
73
|
+
AuthAction["ConfirmResetPassword"] = "29";
|
|
85
74
|
AuthAction["FederatedSignIn"] = "30";
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
75
|
+
AuthAction["RememberDevice"] = "32";
|
|
76
|
+
AuthAction["ForgetDevice"] = "33";
|
|
77
|
+
AuthAction["FetchDevices"] = "34";
|
|
78
|
+
AuthAction["SendUserAttributeVerificationCode"] = "35";
|
|
79
|
+
AuthAction["SignInWithRedirect"] = "36";
|
|
90
80
|
})(AuthAction || (AuthAction = {}));
|
|
91
81
|
export var DataStoreAction;
|
|
92
82
|
(function (DataStoreAction) {
|
|
@@ -122,10 +112,11 @@ export var PushNotificationAction;
|
|
|
122
112
|
})(PushNotificationAction || (PushNotificationAction = {}));
|
|
123
113
|
export var StorageAction;
|
|
124
114
|
(function (StorageAction) {
|
|
125
|
-
StorageAction["
|
|
126
|
-
StorageAction["
|
|
115
|
+
StorageAction["UploadData"] = "1";
|
|
116
|
+
StorageAction["DownloadData"] = "2";
|
|
127
117
|
StorageAction["List"] = "3";
|
|
128
118
|
StorageAction["Copy"] = "4";
|
|
129
119
|
StorageAction["Remove"] = "5";
|
|
130
120
|
StorageAction["GetProperties"] = "6";
|
|
121
|
+
StorageAction["GetUrl"] = "7";
|
|
131
122
|
})(StorageAction || (StorageAction = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0.1-console-preview.
|
|
1
|
+
export declare const version = "6.0.1-console-preview.5f040a2.0+5f040a2";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export var version = '6.0.1-console-preview.
|
|
2
|
+
export var version = '6.0.1-console-preview.5f040a2.0+5f040a2';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { HubCapsule, HubCallback, HubPayload } from './Hub/types';
|
|
|
3
3
|
export { TokenProvider, AuthTokens, FetchAuthSessionOptions, AWSCredentialsAndIdentityIdProvider, AWSCredentialsAndIdentityId, Identity, OAuthConfig, CognitoUserPoolConfig, } from './singleton/Auth/types';
|
|
4
4
|
export { AuthConfig, AuthUserPoolConfig, AuthUserPoolAndIdentityPoolConfig, StorageAccessLevel, StorageConfig, GetCredentialsOptions, ResourcesConfig, LibraryOptions, AnalyticsConfig, GeoConfig, } from './singleton/types';
|
|
5
5
|
export { Amplify, fetchAuthSession, AmplifyClass as AmplifyClassV6, clearCredentials, } from './singleton';
|
|
6
|
-
export { getCredentialsForIdentity, getId, GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, } from './
|
|
6
|
+
export { getCredentialsForIdentity, getId, GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, } from './awsClients/cognitoIdentity';
|
|
7
7
|
export { UserProfile } from './types';
|
|
8
8
|
export { CookieStorage, defaultStorage, sessionStorage, sharedInMemoryStorage, } from './storage';
|
|
9
9
|
export { KeyValueStorageInterface } from './types';
|
package/lib-esm/index.js
CHANGED
|
@@ -7,7 +7,7 @@ This file maps top-level exports from `@aws-amplify/core`. These are intended to
|
|
|
7
7
|
export { Hub } from './Hub';
|
|
8
8
|
export { Amplify, fetchAuthSession, AmplifyClass as AmplifyClassV6, clearCredentials, } from './singleton';
|
|
9
9
|
// AWSClients exports
|
|
10
|
-
export { getCredentialsForIdentity, getId, } from './
|
|
10
|
+
export { getCredentialsForIdentity, getId, } from './awsClients/cognitoIdentity';
|
|
11
11
|
// Storage helpers
|
|
12
12
|
export { CookieStorage, defaultStorage, sessionStorage, sharedInMemoryStorage, } from './storage';
|
|
13
13
|
// Cache exports
|
|
@@ -49,7 +49,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
49
|
};
|
|
50
50
|
import { v4 as uuidv4 } from 'uuid';
|
|
51
51
|
import { ClientDevice } from '../../../ClientDevice';
|
|
52
|
-
import { updateEndpoint as clientUpdateEndpoint, } from '../../../
|
|
52
|
+
import { updateEndpoint as clientUpdateEndpoint, } from '../../../awsClients/pinpoint';
|
|
53
53
|
import { cacheEndpointId, getEndpointId } from '../utils';
|
|
54
54
|
/**
|
|
55
55
|
* @internal
|
|
@@ -73,7 +73,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
73
73
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
74
74
|
};
|
|
75
75
|
import { ConsoleLogger as Logger } from '../../../Logger';
|
|
76
|
-
import { putEvents, } from '../../../
|
|
76
|
+
import { putEvents, } from '../../../awsClients/pinpoint';
|
|
77
77
|
import { isAppInForeground } from './isAppInForeground';
|
|
78
78
|
var logger = new Logger('PinpointEventBuffer');
|
|
79
79
|
var RETRYABLE_CODES = [429, 500];
|