@aws-amplify/core 6.0.1-console-preview.d807e55.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.
Files changed (110) hide show
  1. package/internals/aws-clients/pinpoint/package.json +4 -4
  2. package/lib/Platform/types.d.ts +28 -4
  3. package/lib/Platform/types.js +26 -35
  4. package/lib/Platform/version.d.ts +1 -1
  5. package/lib/Platform/version.js +1 -1
  6. package/lib/clients/middleware/signing/signer/signatureV4/index.d.ts +1 -0
  7. package/lib/clients/middleware/signing/signer/signatureV4/index.js +1 -0
  8. package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.d.ts +0 -0
  9. package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.js +4 -0
  10. package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.native.d.ts +1 -0
  11. package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.native.js +6 -0
  12. package/lib/index.d.ts +1 -1
  13. package/lib/index.js +3 -3
  14. package/lib/providers/pinpoint/apis/updateEndpoint.js +2 -2
  15. package/lib/providers/pinpoint/utils/PinpointEventBuffer.js +2 -2
  16. package/lib/tsconfig.tsbuildinfo +1 -1
  17. package/lib/utils/globalHelpers/index.native.d.ts +2 -3
  18. package/lib/utils/globalHelpers/index.native.js +3 -3
  19. package/lib-esm/Platform/types.d.ts +28 -4
  20. package/lib-esm/Platform/types.js +26 -35
  21. package/lib-esm/Platform/version.d.ts +1 -1
  22. package/lib-esm/Platform/version.js +1 -1
  23. package/lib-esm/clients/middleware/signing/signer/signatureV4/index.d.ts +1 -0
  24. package/lib-esm/clients/middleware/signing/signer/signatureV4/index.js +1 -0
  25. package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.d.ts +0 -0
  26. package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.js +4 -0
  27. package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.native.d.ts +1 -0
  28. package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.native.js +4 -0
  29. package/lib-esm/index.d.ts +1 -1
  30. package/lib-esm/index.js +1 -1
  31. package/lib-esm/providers/pinpoint/apis/updateEndpoint.js +1 -1
  32. package/lib-esm/providers/pinpoint/utils/PinpointEventBuffer.js +1 -1
  33. package/lib-esm/tsconfig.tsbuildinfo +1 -1
  34. package/lib-esm/utils/globalHelpers/index.native.d.ts +2 -3
  35. package/lib-esm/utils/globalHelpers/index.native.js +2 -2
  36. package/package.json +3 -3
  37. package/src/Platform/types.ts +26 -35
  38. package/src/Platform/version.ts +1 -1
  39. package/src/clients/middleware/signing/signer/signatureV4/index.ts +2 -0
  40. package/src/clients/middleware/signing/signer/signatureV4/polyfills/index.native.ts +5 -0
  41. package/src/clients/middleware/signing/signer/signatureV4/polyfills/index.ts +4 -0
  42. package/src/index.ts +1 -1
  43. package/src/providers/pinpoint/apis/updateEndpoint.ts +1 -1
  44. package/src/providers/pinpoint/utils/PinpointEventBuffer.ts +1 -1
  45. package/src/utils/globalHelpers/index.native.ts +2 -2
  46. package/lib/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -4
  47. package/lib/clients/middleware/signing/signer/signatureV4/index.native.js +0 -16
  48. package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -4
  49. package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.js +0 -9
  50. package/src/clients/middleware/signing/signer/signatureV4/index.native.ts +0 -12
  51. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.d.ts +0 -0
  52. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.js +0 -0
  53. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.d.ts +0 -0
  54. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.js +0 -0
  55. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.d.ts +0 -0
  56. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.js +0 -0
  57. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.d.ts +0 -0
  58. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.js +0 -0
  59. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.d.ts +0 -0
  60. /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.js +0 -0
  61. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/base.d.ts +0 -0
  62. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/base.js +0 -0
  63. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.d.ts +0 -0
  64. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.js +0 -0
  65. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.d.ts +0 -0
  66. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.js +0 -0
  67. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/index.d.ts +0 -0
  68. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/index.js +0 -0
  69. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.d.ts +0 -0
  70. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.js +0 -0
  71. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/types.d.ts +0 -0
  72. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/types.js +0 -0
  73. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.d.ts +0 -0
  74. /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.js +0 -0
  75. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.d.ts +0 -0
  76. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.js +0 -0
  77. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.d.ts +0 -0
  78. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.js +0 -0
  79. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.d.ts +0 -0
  80. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.js +0 -0
  81. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.d.ts +0 -0
  82. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.js +0 -0
  83. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.d.ts +0 -0
  84. /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.js +0 -0
  85. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/base.d.ts +0 -0
  86. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/base.js +0 -0
  87. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.d.ts +0 -0
  88. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.js +0 -0
  89. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.d.ts +0 -0
  90. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.js +0 -0
  91. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/index.d.ts +0 -0
  92. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/index.js +0 -0
  93. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.d.ts +0 -0
  94. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.js +0 -0
  95. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/types.d.ts +0 -0
  96. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/types.js +0 -0
  97. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.d.ts +0 -0
  98. /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.js +0 -0
  99. /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.ts +0 -0
  100. /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.ts +0 -0
  101. /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.ts +0 -0
  102. /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.ts +0 -0
  103. /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.ts +0 -0
  104. /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/base.ts +0 -0
  105. /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.ts +0 -0
  106. /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.ts +0 -0
  107. /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/index.ts +0 -0
  108. /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.ts +0 -0
  109. /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/types.ts +0 -0
  110. /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;
@@ -1,9 +1,9 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { loadGetRandomValues } from '@aws-amplify/react-native';
4
- import { encode, decode } from 'base-64';
3
+ import { loadGetRandomValues, loadBase64 } from '@aws-amplify/react-native';
5
4
  import { AmplifyError } from '../../errors';
6
5
  loadGetRandomValues();
6
+ var _a = loadBase64(), encode = _a.encode, decode = _a.decode;
7
7
  export var getCrypto = function () {
8
8
  if (typeof crypto !== 'undefined' &&
9
9
  typeof crypto.getRandomValues === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "6.0.1-console-preview.d807e55.0+d807e55",
3
+ "version": "6.0.1-console-preview.5f040a2.0+5f040a2",
4
4
  "description": "Core category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -68,7 +68,7 @@
68
68
  "uuid": "^9.0.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@aws-amplify/react-native": "1.0.1-console-preview.d807e55.0+d807e55",
71
+ "@aws-amplify/react-native": "1.0.1-console-preview.5f040a2.0+5f040a2",
72
72
  "@types/js-cookie": "^2.2.7",
73
73
  "@types/uuid": "^9.0.0",
74
74
  "find": "^0.2.7",
@@ -179,5 +179,5 @@
179
179
  "lib-esm"
180
180
  ]
181
181
  },
182
- "gitHead": "d807e554bd4c36e287ab3b4a229260fc9b851d40"
182
+ "gitHead": "5f040a29ecebf29374ae9b58abc661f45143ac4f"
183
183
  }
@@ -53,40 +53,30 @@ export enum ApiAction {
53
53
  Head = '7',
54
54
  }
55
55
  export enum AuthAction {
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',
56
+ SignUp = '1',
57
+ ConfirmSignUp = '2',
58
+ ResendSignUpCode = '3',
59
+ SignIn = '4',
60
+ FetchMFAPreference = '6',
61
+ UpdateMFAPreference = '7',
62
+ SetUpTOTP = '10',
63
+ VerifyTOTPSetup = '11',
64
+ ConfirmSignIn = '12',
65
+ DeleteUserAttributes = '15',
66
+ DeleteUser = '16',
67
+ UpdateUserAttributes = '17',
68
+ FetchUserAttributes = '18',
69
+ ConfirmUserAttribute = '22',
70
+ SignOut = '26',
71
+ UpdatePassword = '27',
72
+ ResetPassword = '28',
73
+ ConfirmResetPassword = '29',
85
74
  FederatedSignIn = '30',
86
- // CurrentUserInfo = '31',
87
- // RememberDevice = '32',
88
- // ForgetDevice = '33',
89
- // FetchDevices = '34',
75
+ RememberDevice = '32',
76
+ ForgetDevice = '33',
77
+ FetchDevices = '34',
78
+ SendUserAttributeVerificationCode = '35',
79
+ SignInWithRedirect = '36',
90
80
  }
91
81
  export enum DataStoreAction {
92
82
  Subscribe = '1',
@@ -114,12 +104,13 @@ export enum PushNotificationAction {
114
104
  None = '0',
115
105
  }
116
106
  export enum StorageAction {
117
- Put = '1',
118
- Get = '2',
107
+ UploadData = '1',
108
+ DownloadData = '2',
119
109
  List = '3',
120
110
  Copy = '4',
121
111
  Remove = '5',
122
112
  GetProperties = '6',
113
+ GetUrl = '7'
123
114
  }
124
115
 
125
116
  type ActionMap = {
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '6.0.1-console-preview.d807e55.0+d807e55';
2
+ export const version = '6.0.1-console-preview.5f040a2.0+5f040a2';
@@ -1,6 +1,8 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ import './polyfills';
5
+
4
6
  // TODO: V6 replace Signer
5
7
  export { signRequest } from './signRequest';
6
8
  export { presignUrl } from './presignUrl';
@@ -0,0 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { loadUrlPolyfill } from '@aws-amplify/react-native';
4
+
5
+ loadUrlPolyfill();
@@ -0,0 +1,4 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // noop - polyfills not required on platform
package/src/index.ts CHANGED
@@ -44,7 +44,7 @@ export {
44
44
  getId,
45
45
  GetCredentialsForIdentityInput,
46
46
  GetCredentialsForIdentityOutput,
47
- } from './AwsClients/CognitoIdentity';
47
+ } from './awsClients/cognitoIdentity';
48
48
 
49
49
  // Amplify-wide constructs
50
50
  export { UserProfile } from './types';
@@ -6,7 +6,7 @@ import { ClientDevice } from '../../../ClientDevice';
6
6
  import {
7
7
  updateEndpoint as clientUpdateEndpoint,
8
8
  UpdateEndpointInput,
9
- } from '../../../AwsClients/Pinpoint';
9
+ } from '../../../awsClients/pinpoint';
10
10
  import { PinpointUpdateEndpointInput } from '../types';
11
11
  import { cacheEndpointId, getEndpointId } from '../utils';
12
12
 
@@ -7,7 +7,7 @@ import {
7
7
  putEvents,
8
8
  PutEventsInput,
9
9
  PutEventsOutput,
10
- } from '../../../AwsClients/Pinpoint';
10
+ } from '../../../awsClients/pinpoint';
11
11
  import {
12
12
  EventBufferConfig,
13
13
  BufferedEvent,
@@ -1,11 +1,11 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { loadGetRandomValues } from '@aws-amplify/react-native';
5
- import { encode, decode } from 'base-64';
4
+ import { loadGetRandomValues, loadBase64 } from '@aws-amplify/react-native';
6
5
  import { AmplifyError } from '../../errors';
7
6
 
8
7
  loadGetRandomValues();
8
+ const { encode, decode } = loadBase64();
9
9
 
10
10
  export const getCrypto = () => {
11
11
  if (
@@ -1,4 +0,0 @@
1
- export { signRequest } from './signRequest';
2
- export { presignUrl } from './presignUrl';
3
- export { TOKEN_QUERY_PARAM } from './constants';
4
- export { getHashedPayload } from './utils/getHashedPayload';
@@ -1,16 +0,0 @@
1
- "use strict";
2
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- // SPDX-License-Identifier: Apache-2.0
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getHashedPayload = exports.TOKEN_QUERY_PARAM = exports.presignUrl = exports.signRequest = void 0;
6
- var react_native_1 = require("@aws-amplify/react-native");
7
- (0, react_native_1.loadUrlPolyfill)();
8
- // TODO: V6 replace Signer
9
- var signRequest_1 = require("./signRequest");
10
- Object.defineProperty(exports, "signRequest", { enumerable: true, get: function () { return signRequest_1.signRequest; } });
11
- var presignUrl_1 = require("./presignUrl");
12
- Object.defineProperty(exports, "presignUrl", { enumerable: true, get: function () { return presignUrl_1.presignUrl; } });
13
- var constants_1 = require("./constants");
14
- Object.defineProperty(exports, "TOKEN_QUERY_PARAM", { enumerable: true, get: function () { return constants_1.TOKEN_QUERY_PARAM; } });
15
- var getHashedPayload_1 = require("./utils/getHashedPayload");
16
- Object.defineProperty(exports, "getHashedPayload", { enumerable: true, get: function () { return getHashedPayload_1.getHashedPayload; } });
@@ -1,4 +0,0 @@
1
- export { signRequest } from './signRequest';
2
- export { presignUrl } from './presignUrl';
3
- export { TOKEN_QUERY_PARAM } from './constants';
4
- export { getHashedPayload } from './utils/getHashedPayload';
@@ -1,9 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- import { loadUrlPolyfill } from '@aws-amplify/react-native';
4
- loadUrlPolyfill();
5
- // TODO: V6 replace Signer
6
- export { signRequest } from './signRequest';
7
- export { presignUrl } from './presignUrl';
8
- export { TOKEN_QUERY_PARAM } from './constants';
9
- export { getHashedPayload } from './utils/getHashedPayload';
@@ -1,12 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { loadUrlPolyfill } from '@aws-amplify/react-native';
5
-
6
- loadUrlPolyfill();
7
-
8
- // TODO: V6 replace Signer
9
- export { signRequest } from './signRequest';
10
- export { presignUrl } from './presignUrl';
11
- export { TOKEN_QUERY_PARAM } from './constants';
12
- export { getHashedPayload } from './utils/getHashedPayload';