@aws-amplify/core 6.11.4 → 6.11.5-local-stack.00864ae.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/dist/cjs/BackgroundProcessManager/types.js +5 -1
- package/dist/cjs/BackgroundProcessManager/types.js.map +1 -1
- package/dist/cjs/Cache/constants.js +3 -3
- package/dist/cjs/Cache/constants.js.map +1 -1
- package/dist/cjs/Cache/utils/cacheHelpers.js +4 -4
- package/dist/cjs/Cache/utils/cacheHelpers.js.map +1 -1
- package/dist/cjs/Cache/utils/errorHelpers.js +1 -1
- package/dist/cjs/Cache/utils/errorHelpers.js.map +1 -1
- package/dist/cjs/I18n/errorHelpers.js +1 -1
- package/dist/cjs/I18n/errorHelpers.js.map +1 -1
- package/dist/cjs/Logger/types.js +2 -1
- package/dist/cjs/Logger/types.js.map +1 -1
- package/dist/cjs/Platform/detectFramework.js +2 -2
- package/dist/cjs/Platform/detectFramework.js.map +1 -1
- package/dist/cjs/Platform/detection/Angular.js +2 -3
- package/dist/cjs/Platform/detection/Angular.js.map +1 -1
- package/dist/cjs/Platform/detection/Expo.js +1 -2
- package/dist/cjs/Platform/detection/Expo.js.map +1 -1
- package/dist/cjs/Platform/detection/Next.js +2 -3
- package/dist/cjs/Platform/detection/Next.js.map +1 -1
- package/dist/cjs/Platform/detection/Nuxt.js +2 -3
- package/dist/cjs/Platform/detection/Nuxt.js.map +1 -1
- package/dist/cjs/Platform/detection/React.js +2 -3
- package/dist/cjs/Platform/detection/React.js.map +1 -1
- package/dist/cjs/Platform/detection/ReactNative.js +1 -2
- package/dist/cjs/Platform/detection/ReactNative.js.map +1 -1
- package/dist/cjs/Platform/detection/Svelte.js +2 -3
- package/dist/cjs/Platform/detection/Svelte.js.map +1 -1
- package/dist/cjs/Platform/detection/Vue.js +2 -3
- package/dist/cjs/Platform/detection/Vue.js.map +1 -1
- package/dist/cjs/Platform/detection/Web.js +1 -2
- package/dist/cjs/Platform/detection/Web.js.map +1 -1
- package/dist/cjs/Platform/detection/index.js +1 -2
- package/dist/cjs/Platform/detection/index.js.map +1 -1
- package/dist/cjs/Platform/types.js +28 -14
- package/dist/cjs/Platform/types.js.map +1 -1
- package/dist/cjs/Platform/version.js +1 -1
- package/dist/cjs/Platform/version.js.map +1 -1
- package/dist/cjs/ServiceWorker/errorHelpers.js +1 -1
- package/dist/cjs/ServiceWorker/errorHelpers.js.map +1 -1
- package/dist/cjs/awsClients/pinpoint/errorHelpers.js +1 -1
- package/dist/cjs/awsClients/pinpoint/errorHelpers.js.map +1 -1
- package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js +15 -0
- package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js.map +1 -0
- package/dist/cjs/foundation/factories/middleware/index.js +9 -0
- package/dist/cjs/foundation/factories/middleware/index.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js +14 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js +18 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js +37 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js +32 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js +17 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js +9 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js +13 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js +24 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js +9 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js +9 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js.map +1 -0
- package/dist/cjs/{awsClients/cognitoIdentity/types.js → foundation/factories/serviceClients/cognitoIdentity/types/sdk.js} +1 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/sdk.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js +6 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js.map +1 -0
- package/dist/cjs/index.js +6 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/parseAmplifyOutputs.js +3 -4
- package/dist/cjs/parseAmplifyOutputs.js.map +1 -1
- package/dist/cjs/providers/pinpoint/types/errors.js +2 -1
- package/dist/cjs/providers/pinpoint/types/errors.js.map +1 -1
- package/dist/cjs/singleton/API/types.js +5 -1
- package/dist/cjs/singleton/API/types.js.map +1 -1
- package/dist/cjs/singleton/Auth/index.js +12 -0
- package/dist/cjs/singleton/Auth/index.js.map +1 -1
- package/dist/cjs/singleton/Auth/utils/errorHelpers.js +1 -1
- package/dist/cjs/singleton/Auth/utils/errorHelpers.js.map +1 -1
- package/dist/cjs/singleton/Auth/utils/index.js +4 -5
- package/dist/cjs/singleton/Auth/utils/index.js.map +1 -1
- package/dist/cjs/singleton/apis/clearCredentials.js +1 -2
- package/dist/cjs/singleton/apis/clearCredentials.js.map +1 -1
- package/dist/cjs/types/errors.js +2 -1
- package/dist/cjs/types/errors.js.map +1 -1
- package/dist/cjs/utils/convert/base64/bytesToString.js +1 -2
- package/dist/cjs/utils/convert/base64/bytesToString.js.map +1 -1
- package/dist/cjs/utils/cryptoSecureRandomInt.js +1 -2
- package/dist/cjs/utils/cryptoSecureRandomInt.js.map +1 -1
- package/dist/cjs/utils/getClientInfo/getClientInfo.js +1 -2
- package/dist/cjs/utils/getClientInfo/getClientInfo.js.map +1 -1
- package/dist/cjs/utils/isTokenExpired.js +1 -2
- package/dist/cjs/utils/isTokenExpired.js.map +1 -1
- package/dist/cjs/utils/retry/jitteredBackoff.js +1 -2
- package/dist/cjs/utils/retry/jitteredBackoff.js.map +1 -1
- package/dist/cjs/utils/retry/retry.js +1 -2
- package/dist/cjs/utils/retry/retry.js.map +1 -1
- package/dist/cjs/utils/urlSafeDecode.js +1 -2
- package/dist/cjs/utils/urlSafeDecode.js.map +1 -1
- package/dist/cjs/utils/urlSafeEncode.js +1 -2
- package/dist/cjs/utils/urlSafeEncode.js.map +1 -1
- package/dist/esm/Cache/constants.mjs +3 -3
- package/dist/esm/Cache/constants.mjs.map +1 -1
- package/dist/esm/Platform/version.d.ts +1 -1
- package/dist/esm/Platform/version.mjs +1 -1
- package/dist/esm/Platform/version.mjs.map +1 -1
- package/dist/esm/awsClients/pinpoint/base.d.ts +1 -1
- package/dist/esm/awsClients/pinpoint/getInAppMessages.d.ts +2 -2
- package/dist/esm/awsClients/pinpoint/putEvents.d.ts +2 -2
- package/dist/esm/awsClients/pinpoint/updateEndpoint.d.ts +2 -2
- package/dist/esm/clients/internal/composeServiceApi.d.ts +4 -1
- package/dist/esm/clients/internal/composeTransferHandler.d.ts +1 -1
- package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getCanonicalHeaders.d.ts +1 -1
- package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getHashedPayload.d.ts +1 -1
- package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getSignedHeaders.d.ts +1 -1
- package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.d.ts +5 -0
- package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs +12 -0
- package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs.map +1 -0
- package/dist/esm/foundation/factories/middleware/index.d.ts +1 -0
- package/dist/esm/foundation/factories/middleware/index.mjs +2 -0
- package/dist/esm/{awsClients/cognitoIdentity → foundation/factories/middleware}/index.mjs.map +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.d.ts +4 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs +27 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.d.ts +10 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs +34 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.d.ts +14 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs +50 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.d.ts +14 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs +45 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.d.ts +8 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs +31 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.d.ts +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs +2 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.d.ts +4 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs +4 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.d.ts +3 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs +20 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.d.ts +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs +2 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.d.ts +3 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs +2 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs +2 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.d.ts +6 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs +2 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.mjs +3 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/singleton/Auth/index.mjs +13 -0
- package/dist/esm/singleton/Auth/index.mjs.map +1 -1
- package/dist/esm/singleton/Auth/types.d.ts +8 -0
- package/dist/esm/utils/amplifyUrl/index.d.ts +4 -3
- package/dist/esm/utils/amplifyUrl/index.native.d.ts +4 -3
- package/dist/esm/utils/queuedStorage/createQueuedStorage.native.d.ts +1 -1
- package/internals/aws-clients/cognitoIdentity/package.json +4 -4
- package/package.json +9 -10
- package/src/Platform/version.ts +1 -1
- package/src/foundation/factories/middleware/createDisableCacheMiddleware.ts +18 -0
- package/src/foundation/factories/middleware/index.ts +4 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts +15 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/constants.ts +20 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.ts +62 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.ts +48 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.ts +23 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/handler/index.ts +4 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/index.ts +12 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.ts +29 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/serde/index.ts +4 -0
- package/src/foundation/factories/serviceClients/cognitoIdentity/types/index.ts +9 -0
- package/src/{awsClients/cognitoIdentity/types.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.ts} +0 -2
- package/src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.ts +8 -0
- package/src/index.ts +5 -4
- package/src/singleton/Auth/index.ts +19 -0
- package/src/singleton/Auth/types.ts +8 -0
- package/dist/cjs/awsClients/cognitoIdentity/base.js +0 -69
- package/dist/cjs/awsClients/cognitoIdentity/base.js.map +0 -1
- package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js +0 -41
- package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js.map +0 -1
- package/dist/cjs/awsClients/cognitoIdentity/getId.js +0 -32
- package/dist/cjs/awsClients/cognitoIdentity/getId.js.map +0 -1
- package/dist/cjs/awsClients/cognitoIdentity/index.js +0 -11
- package/dist/cjs/awsClients/cognitoIdentity/index.js.map +0 -1
- package/dist/cjs/awsClients/cognitoIdentity/types.js.map +0 -1
- package/dist/esm/awsClients/cognitoIdentity/base.d.ts +0 -29
- package/dist/esm/awsClients/cognitoIdentity/base.mjs +0 -83
- package/dist/esm/awsClients/cognitoIdentity/base.mjs.map +0 -1
- package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.d.ts +0 -18
- package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs +0 -56
- package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs.map +0 -1
- package/dist/esm/awsClients/cognitoIdentity/getId.d.ts +0 -18
- package/dist/esm/awsClients/cognitoIdentity/getId.mjs +0 -47
- package/dist/esm/awsClients/cognitoIdentity/getId.mjs.map +0 -1
- package/dist/esm/awsClients/cognitoIdentity/index.d.ts +0 -2
- package/dist/esm/awsClients/cognitoIdentity/index.mjs +0 -3
- package/dist/esm/awsClients/cognitoIdentity/types.mjs +0 -2
- package/dist/esm/awsClients/cognitoIdentity/types.mjs.map +0 -1
- package/src/awsClients/cognitoIdentity/base.ts +0 -101
- package/src/awsClients/cognitoIdentity/getCredentialsForIdentity.ts +0 -77
- package/src/awsClients/cognitoIdentity/getId.ts +0 -61
- package/src/awsClients/cognitoIdentity/index.ts +0 -9
- /package/dist/esm/{awsClients/cognitoIdentity/types.d.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.js","sources":["../../../../src/utils/retry/retry.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retry =
|
|
1
|
+
{"version":3,"file":"retry.js","sources":["../../../../src/utils/retry/retry.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retry = retry;\nconst ConsoleLogger_1 = require(\"../../Logger/ConsoleLogger\");\nconst isNonRetryableError_1 = require(\"./isNonRetryableError\");\nconst logger = new ConsoleLogger_1.ConsoleLogger('retryUtil');\n/**\n * @private\n * Internal use of Amplify only\n */\nasync function retry(functionToRetry, args, delayFn, onTerminate) {\n if (typeof functionToRetry !== 'function') {\n throw Error('functionToRetry must be a function');\n }\n // TODO(eslint): remove this linter suppression with refactoring.\n // eslint-disable-next-line no-async-promise-executor\n return new Promise(async (resolve, reject) => {\n let attempt = 0;\n let terminated = false;\n let timeout;\n let wakeUp = () => {\n // no-op\n }; // will be replaced with a resolver()\n // used after the loop if terminated while waiting for a timer.\n let lastError;\n onTerminate &&\n onTerminate.then(() => {\n // signal not to try anymore.\n terminated = true;\n // stop sleeping if we're sleeping.\n clearTimeout(timeout);\n wakeUp();\n });\n // TODO(eslint): remove this linter suppression with refactoring.\n // eslint-disable-next-line no-unmodified-loop-condition\n while (!terminated) {\n attempt++;\n logger.debug(`${functionToRetry.name} attempt #${attempt} with this vars: ${JSON.stringify(args)}`);\n try {\n resolve(await functionToRetry(...args));\n return;\n }\n catch (err) {\n lastError = err;\n logger.debug(`error on ${functionToRetry.name}`, err);\n if ((0, isNonRetryableError_1.isNonRetryableError)(err)) {\n logger.debug(`${functionToRetry.name} non retryable error`, err);\n reject(err);\n return;\n }\n const retryIn = delayFn(attempt, args, err);\n logger.debug(`${functionToRetry.name} retrying in ${retryIn} ms`);\n // we check `terminated` again here because it could have flipped\n // in the time it took `functionToRetry` to return.\n if (retryIn === false || terminated) {\n reject(err);\n return;\n }\n else {\n await new Promise(_resolve => {\n wakeUp = _resolve; // export wakeUp for onTerminate handling\n timeout = setTimeout(wakeUp, retryIn);\n });\n }\n }\n }\n // reached if terminated while waiting for a timer.\n reject(lastError);\n });\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,KAAK,GAAG,KAAK;AACrB,MAAM,eAAe,GAAG,OAAO,CAAC,4BAA4B,CAAC;AAC7D,MAAM,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;AAC9D,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,WAAW,CAAC;AAC7D;AACA;AACA;AACA;AACA,eAAe,KAAK,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE;AAClE,IAAI,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE;AAC/C,QAAQ,MAAM,KAAK,CAAC,oCAAoC,CAAC;AACzD;AACA;AACA;AACA,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,OAAO,EAAE,MAAM,KAAK;AAClD,QAAQ,IAAI,OAAO,GAAG,CAAC;AACvB,QAAQ,IAAI,UAAU,GAAG,KAAK;AAC9B,QAAQ,IAAI,OAAO;AACnB,QAAQ,IAAI,MAAM,GAAG,MAAM;AAC3B;AACA,SAAS,CAAC;AACV;AACA,QAAQ,IAAI,SAAS;AACrB,QAAQ,WAAW;AACnB,YAAY,WAAW,CAAC,IAAI,CAAC,MAAM;AACnC;AACA,gBAAgB,UAAU,GAAG,IAAI;AACjC;AACA,gBAAgB,YAAY,CAAC,OAAO,CAAC;AACrC,gBAAgB,MAAM,EAAE;AACxB,aAAa,CAAC;AACd;AACA;AACA,QAAQ,OAAO,CAAC,UAAU,EAAE;AAC5B,YAAY,OAAO,EAAE;AACrB,YAAY,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC/G,YAAY,IAAI;AAChB,gBAAgB,OAAO,CAAC,MAAM,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;AACvD,gBAAgB;AAChB;AACA,YAAY,OAAO,GAAG,EAAE;AACxB,gBAAgB,SAAS,GAAG,GAAG;AAC/B,gBAAgB,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC;AACrE,gBAAgB,IAAI,IAAI,qBAAqB,CAAC,mBAAmB,EAAE,GAAG,CAAC,EAAE;AACzE,oBAAoB,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,GAAG,CAAC;AACpF,oBAAoB,MAAM,CAAC,GAAG,CAAC;AAC/B,oBAAoB;AACpB;AACA,gBAAgB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC;AAC3D,gBAAgB,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;AACjF;AACA;AACA,gBAAgB,IAAI,OAAO,KAAK,KAAK,IAAI,UAAU,EAAE;AACrD,oBAAoB,MAAM,CAAC,GAAG,CAAC;AAC/B,oBAAoB;AACpB;AACA,qBAAqB;AACrB,oBAAoB,MAAM,IAAI,OAAO,CAAC,QAAQ,IAAI;AAClD,wBAAwB,MAAM,GAAG,QAAQ,CAAC;AAC1C,wBAAwB,OAAO,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC;AAC7D,qBAAqB,CAAC;AACtB;AACA;AACA;AACA;AACA,QAAQ,MAAM,CAAC,SAAS,CAAC;AACzB,KAAK,CAAC;AACN;;"}
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.urlSafeDecode =
|
|
6
|
+
exports.urlSafeDecode = urlSafeDecode;
|
|
7
7
|
function urlSafeDecode(hex) {
|
|
8
8
|
const matchArr = hex.match(/.{2}/g) || [];
|
|
9
9
|
return matchArr.map(char => String.fromCharCode(parseInt(char, 16))).join('');
|
|
10
10
|
}
|
|
11
|
-
exports.urlSafeDecode = urlSafeDecode;
|
|
12
11
|
//# sourceMappingURL=urlSafeDecode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlSafeDecode.js","sources":["../../../src/utils/urlSafeDecode.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.urlSafeDecode =
|
|
1
|
+
{"version":3,"file":"urlSafeDecode.js","sources":["../../../src/utils/urlSafeDecode.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.urlSafeDecode = urlSafeDecode;\nfunction urlSafeDecode(hex) {\n const matchArr = hex.match(/.{2}/g) || [];\n return matchArr.map(char => String.fromCharCode(parseInt(char, 16))).join('');\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,aAAa;AACrC,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,IAAI,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE;AAC7C,IAAI,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AACjF;;"}
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.urlSafeEncode =
|
|
6
|
+
exports.urlSafeEncode = urlSafeEncode;
|
|
7
7
|
function urlSafeEncode(str) {
|
|
8
8
|
return str
|
|
9
9
|
.split('')
|
|
10
10
|
.map(char => char.charCodeAt(0).toString(16).padStart(2, '0'))
|
|
11
11
|
.join('');
|
|
12
12
|
}
|
|
13
|
-
exports.urlSafeEncode = urlSafeEncode;
|
|
14
13
|
//# sourceMappingURL=urlSafeEncode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlSafeEncode.js","sources":["../../../src/utils/urlSafeEncode.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.urlSafeEncode =
|
|
1
|
+
{"version":3,"file":"urlSafeEncode.js","sources":["../../../src/utils/urlSafeEncode.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.urlSafeEncode = urlSafeEncode;\nfunction urlSafeEncode(str) {\n return str\n .split('')\n .map(char => char.charCodeAt(0).toString(16).padStart(2, '0'))\n .join('');\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,aAAa;AACrC,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,IAAI,OAAO;AACX,SAAS,KAAK,CAAC,EAAE;AACjB,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AACrE,SAAS,IAAI,CAAC,EAAE,CAAC;AACjB;;"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
const defaultConfig = {
|
|
7
7
|
keyPrefix: 'aws-amplify-cache',
|
|
8
|
-
capacityInBytes: 1048576,
|
|
9
|
-
itemMaxSize: 210000,
|
|
10
|
-
defaultTTL: 259200000,
|
|
8
|
+
capacityInBytes: 1048576, // 1MB
|
|
9
|
+
itemMaxSize: 210000, // about 200kb
|
|
10
|
+
defaultTTL: 259200000, // about 3 days
|
|
11
11
|
defaultPriority: 5,
|
|
12
12
|
warningThreshold: 0.8,
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../src/Cache/constants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Default cache config\n */\nexport const defaultConfig = {\n keyPrefix: 'aws-amplify-cache',\n capacityInBytes: 1048576
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../../../src/Cache/constants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Default cache config\n */\nexport const defaultConfig = {\n keyPrefix: 'aws-amplify-cache',\n capacityInBytes: 1048576, // 1MB\n itemMaxSize: 210000, // about 200kb\n defaultTTL: 259200000, // about 3 days\n defaultPriority: 5,\n warningThreshold: 0.8,\n};\nexport const currentSizeKey = 'CurSize';\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG;AAC7B,IAAI,SAAS,EAAE,mBAAmB;AAClC,IAAI,eAAe,EAAE,OAAO;AAC5B,IAAI,WAAW,EAAE,MAAM;AACvB,IAAI,UAAU,EAAE,SAAS;AACzB,IAAI,eAAe,EAAE,CAAC;AACtB,IAAI,gBAAgB,EAAE,GAAG;AACzB;AACY,MAAC,cAAc,GAAG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.14.
|
|
1
|
+
export declare const version = "6.14.5-local-stack.00864ae.0+00864ae";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.14.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.14.5-local-stack.00864ae.0+00864ae';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -7,7 +7,7 @@ export declare const defaultConfig: {
|
|
|
7
7
|
endpointResolver: ({ region }: EndpointResolverOptions) => {
|
|
8
8
|
url: URL;
|
|
9
9
|
};
|
|
10
|
-
retryDecider: (response?: import("../../clients/types").HttpResponse
|
|
10
|
+
retryDecider: (response?: import("../../clients/types").HttpResponse, error?: unknown) => Promise<import("../../clients/middleware/retry").RetryDeciderOutput>;
|
|
11
11
|
computeDelay: (attempt: number) => number;
|
|
12
12
|
userAgentValue: string;
|
|
13
13
|
};
|
|
@@ -9,7 +9,7 @@ export declare const getInAppMessages: (config: {
|
|
|
9
9
|
endpointResolver?: (((options: import("../../clients/types").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients/types").EndpointResolverOptions) => {
|
|
10
10
|
url: URL;
|
|
11
11
|
})) | undefined;
|
|
12
|
-
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext
|
|
12
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
|
|
13
13
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
} & {
|
|
@@ -18,7 +18,7 @@ export declare const getInAppMessages: (config: {
|
|
|
18
18
|
withCrossDomainCredentials?: boolean | undefined;
|
|
19
19
|
maxAttempts?: number | undefined;
|
|
20
20
|
region: string;
|
|
21
|
-
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions
|
|
21
|
+
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
22
22
|
uriEscapePath?: boolean | undefined;
|
|
23
23
|
userAgentHeader?: string | undefined;
|
|
24
24
|
}, input: import("./types").GetInAppMessagesRequest) => Promise<GetInAppMessagesOutput>;
|
|
@@ -9,7 +9,7 @@ export declare const putEvents: (config: {
|
|
|
9
9
|
endpointResolver?: (((options: import("../../clients/types").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients/types").EndpointResolverOptions) => {
|
|
10
10
|
url: URL;
|
|
11
11
|
})) | undefined;
|
|
12
|
-
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext
|
|
12
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
|
|
13
13
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
} & {
|
|
@@ -18,7 +18,7 @@ export declare const putEvents: (config: {
|
|
|
18
18
|
withCrossDomainCredentials?: boolean | undefined;
|
|
19
19
|
maxAttempts?: number | undefined;
|
|
20
20
|
region: string;
|
|
21
|
-
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions
|
|
21
|
+
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
22
22
|
uriEscapePath?: boolean | undefined;
|
|
23
23
|
userAgentHeader?: string | undefined;
|
|
24
24
|
}, input: import("./types").PutEventsRequest) => Promise<PutEventsOutput>;
|
|
@@ -9,7 +9,7 @@ export declare const updateEndpoint: (config: {
|
|
|
9
9
|
endpointResolver?: (((options: import("../../clients/types").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients/types").EndpointResolverOptions) => {
|
|
10
10
|
url: URL;
|
|
11
11
|
})) | undefined;
|
|
12
|
-
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext
|
|
12
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
|
|
13
13
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
} & {
|
|
@@ -18,7 +18,7 @@ export declare const updateEndpoint: (config: {
|
|
|
18
18
|
withCrossDomainCredentials?: boolean | undefined;
|
|
19
19
|
maxAttempts?: number | undefined;
|
|
20
20
|
region: string;
|
|
21
|
-
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions
|
|
21
|
+
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
22
22
|
uriEscapePath?: boolean | undefined;
|
|
23
23
|
userAgentHeader?: string | undefined;
|
|
24
24
|
}, input: import("./types").UpdateEndpointRequest) => Promise<UpdateEndpointOutput>;
|
|
@@ -37,7 +37,10 @@ import { HttpRequest, HttpResponse } from '../types/http';
|
|
|
37
37
|
*
|
|
38
38
|
* @internal
|
|
39
39
|
*/
|
|
40
|
-
export declare const composeServiceApi: <TransferHandlerOptions, Input, Output, DefaultConfig>(transferHandler: TransferHandler<HttpRequest, HttpResponse, TransferHandlerOptions>, serializer: (input: Input, endpoint: Endpoint) => Promise<HttpRequest> | HttpRequest, deserializer: (output: HttpResponse) => Promise<Output>, defaultConfig: Partial<DefaultConfig>) => (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions &
|
|
40
|
+
export declare const composeServiceApi: <TransferHandlerOptions, Input, Output, DefaultConfig>(transferHandler: TransferHandler<HttpRequest, HttpResponse, TransferHandlerOptions>, serializer: (input: Input, endpoint: Endpoint) => Promise<HttpRequest> | HttpRequest, deserializer: (output: HttpResponse) => Promise<Output>, defaultConfig: Partial<DefaultConfig>) => (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & // Required configs(e.g. endpointResolver, region) to serialize input shapes into requests
|
|
41
|
+
InferEndpointResolverOptionType<DefaultConfig> & // Required inputs for endpointResolver
|
|
42
|
+
Partial<DefaultConfig>, // Properties defined in default configs, we need to allow overwriting them when invoking the service API handler
|
|
43
|
+
DefaultConfig>, input: Input) => Promise<Output>;
|
|
41
44
|
/**
|
|
42
45
|
* Type helper to make a given key optional in a given type. For all the keys in the `InputDefaultsType`, if its value
|
|
43
46
|
* is assignable to the value of the same key in `InputType`, we will mark the key in `InputType` is optional. If
|
|
@@ -7,7 +7,7 @@ import { Middleware, Request as RequestBase, Response as ResponseBase, TransferH
|
|
|
7
7
|
* transfer handler's option type and the middleware's option type.
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
|
-
export declare const composeTransferHandler: <MiddlewareOptionsArr extends any[] = [],
|
|
10
|
+
export declare const composeTransferHandler: <MiddlewareOptionsArr extends any[] = [], Request extends RequestBase = RequestBase, Response extends ResponseBase = ResponseBase, CoreHandler extends TransferHandler<Request, Response, any> = TransferHandler<Request, Response, Record<string, unknown>>>(coreHandler: CoreHandler, middleware: OptionToMiddleware<Request, Response, MiddlewareOptionsArr>) => (request: Request, options: MergeNoConflictKeys<[...MiddlewareOptionsArr, InferOptionTypeFromTransferHandler<CoreHandler>]>) => Promise<Response>;
|
|
11
11
|
/**
|
|
12
12
|
* Type to convert a middleware option type to a middleware type with the given
|
|
13
13
|
* option type.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HttpRequest, HttpResponse, Middleware } from '../../../clients';
|
|
2
|
+
/**
|
|
3
|
+
* A Cognito Identity-specific middleware that disables caching for all requests.
|
|
4
|
+
*/
|
|
5
|
+
export declare const createDisableCacheMiddleware: Middleware<HttpRequest, HttpResponse, Record<string, unknown>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
/**
|
|
4
|
+
* A Cognito Identity-specific middleware that disables caching for all requests.
|
|
5
|
+
*/
|
|
6
|
+
const createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {
|
|
7
|
+
request.headers['cache-control'] = 'no-store';
|
|
8
|
+
return next(request);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { createDisableCacheMiddleware };
|
|
12
|
+
//# sourceMappingURL=createDisableCacheMiddleware.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDisableCacheMiddleware.mjs","sources":["../../../../../src/foundation/factories/middleware/createDisableCacheMiddleware.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * A Cognito Identity-specific middleware that disables caching for all requests.\n */\nexport const createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {\n request.headers['cache-control'] = 'no-store';\n return next(request);\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,4BAA4B,GAAG,MAAM,IAAI,IAAI,eAAe,sBAAsB,CAAC,OAAO,EAAE;AACzG,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;AACjD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC;AACxB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createDisableCacheMiddleware } from './createDisableCacheMiddleware';
|
package/dist/esm/{awsClients/cognitoIdentity → foundation/factories/middleware}/index.mjs.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getDnsSuffix } from '../../../../clients/endpoints/getDnsSuffix.mjs';
|
|
2
|
+
import '../../../../types/errors.mjs';
|
|
3
|
+
import '../../../../errors/errorHelpers.mjs';
|
|
4
|
+
import '../../../../utils/getClientInfo/getClientInfo.mjs';
|
|
5
|
+
import '../../../../utils/retry/retry.mjs';
|
|
6
|
+
import '../../../../parseAWSExports.mjs';
|
|
7
|
+
import 'uuid';
|
|
8
|
+
import { AmplifyUrl } from '../../../../utils/amplifyUrl/index.mjs';
|
|
9
|
+
import '../../../../singleton/Auth/utils/errorHelpers.mjs';
|
|
10
|
+
import '@aws-crypto/sha256-js';
|
|
11
|
+
import '@smithy/util-hex-encoding';
|
|
12
|
+
import '../../../../Platform/index.mjs';
|
|
13
|
+
import '../../../../Platform/types.mjs';
|
|
14
|
+
import '../../../../BackgroundProcessManager/types.mjs';
|
|
15
|
+
import '../../../../Reachability/Reachability.mjs';
|
|
16
|
+
import '../../../../Hub/index.mjs';
|
|
17
|
+
import '../../../../utils/sessionListener/index.mjs';
|
|
18
|
+
import { COGNITO_IDENTITY_SERVICE_NAME } from './constants.mjs';
|
|
19
|
+
|
|
20
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
21
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
22
|
+
const cognitoIdentityPoolEndpointResolver = ({ region, }) => ({
|
|
23
|
+
url: new AmplifyUrl(`https://${COGNITO_IDENTITY_SERVICE_NAME}.${region}.${getDnsSuffix(region)}`),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export { cognitoIdentityPoolEndpointResolver };
|
|
27
|
+
//# sourceMappingURL=cognitoIdentityPoolEndpointResolver.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cognitoIdentityPoolEndpointResolver.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getDnsSuffix } from '../../../../clients';\nimport { AmplifyUrl } from '../../../../libraryUtils';\nimport { COGNITO_IDENTITY_SERVICE_NAME } from './constants';\nexport const cognitoIdentityPoolEndpointResolver = ({ region, }) => ({\n url: new AmplifyUrl(`https://${COGNITO_IDENTITY_SERVICE_NAME}.${region}.${getDnsSuffix(region)}`),\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AACA;AAIY,MAAC,mCAAmC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM;AACrE,IAAI,GAAG,EAAE,IAAI,UAAU,CAAC,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The service name used to sign requests if the API requires authentication.
|
|
3
|
+
*/
|
|
4
|
+
export declare const COGNITO_IDENTITY_SERVICE_NAME = "cognito-identity";
|
|
5
|
+
export declare const DEFAULT_SERVICE_CLIENT_API_CONFIG: {
|
|
6
|
+
service: string;
|
|
7
|
+
retryDecider: (response?: import("../../../../clients").HttpResponse, error?: unknown) => Promise<import("../../../../clients").RetryDeciderOutput>;
|
|
8
|
+
computeDelay: (attempt: number) => number;
|
|
9
|
+
cache: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import '../../../../types/errors.mjs';
|
|
2
|
+
import '../../../../errors/errorHelpers.mjs';
|
|
3
|
+
import { jitteredBackoff } from '../../../../clients/middleware/retry/jitteredBackoff.mjs';
|
|
4
|
+
import { getRetryDecider } from '../../../../clients/middleware/retry/defaultRetryDecider.mjs';
|
|
5
|
+
import '../../../../utils/getClientInfo/getClientInfo.mjs';
|
|
6
|
+
import '../../../../utils/retry/retry.mjs';
|
|
7
|
+
import '../../../../parseAWSExports.mjs';
|
|
8
|
+
import 'uuid';
|
|
9
|
+
import '../../../../singleton/Auth/utils/errorHelpers.mjs';
|
|
10
|
+
import '@aws-crypto/sha256-js';
|
|
11
|
+
import '@smithy/util-hex-encoding';
|
|
12
|
+
import '../../../../Platform/index.mjs';
|
|
13
|
+
import '../../../../Platform/types.mjs';
|
|
14
|
+
import '../../../../BackgroundProcessManager/types.mjs';
|
|
15
|
+
import '../../../../Reachability/Reachability.mjs';
|
|
16
|
+
import '../../../../Hub/index.mjs';
|
|
17
|
+
import '../../../../utils/sessionListener/index.mjs';
|
|
18
|
+
import { parseJsonError } from '../../../../clients/serde/json.mjs';
|
|
19
|
+
|
|
20
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
21
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
22
|
+
/**
|
|
23
|
+
* The service name used to sign requests if the API requires authentication.
|
|
24
|
+
*/
|
|
25
|
+
const COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';
|
|
26
|
+
const DEFAULT_SERVICE_CLIENT_API_CONFIG = {
|
|
27
|
+
service: COGNITO_IDENTITY_SERVICE_NAME,
|
|
28
|
+
retryDecider: getRetryDecider(parseJsonError),
|
|
29
|
+
computeDelay: jitteredBackoff,
|
|
30
|
+
cache: 'no-store',
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { COGNITO_IDENTITY_SERVICE_NAME, DEFAULT_SERVICE_CLIENT_API_CONFIG };
|
|
34
|
+
//# sourceMappingURL=constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/constants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getRetryDecider, jitteredBackoff, parseJsonError, } from '../../../../clients';\n/**\n * The service name used to sign requests if the API requires authentication.\n */\nexport const COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';\nexport const DEFAULT_SERVICE_CLIENT_API_CONFIG = {\n service: COGNITO_IDENTITY_SERVICE_NAME,\n retryDecider: getRetryDecider(parseJsonError),\n computeDelay: jitteredBackoff,\n cache: 'no-store',\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACY,MAAC,6BAA6B,GAAG;AACjC,MAAC,iCAAiC,GAAG;AACjD,IAAI,OAAO,EAAE,6BAA6B;AAC1C,IAAI,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;AACjD,IAAI,YAAY,EAAE,eAAe;AACjC,IAAI,KAAK,EAAE,UAAU;AACrB;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpResponse } from '../../../../clients';
|
|
2
|
+
import { GetCredentialsForIdentityCommandOutput, GetCredentialsForIdentityInput, ServiceClientFactoryInput } from './types';
|
|
3
|
+
export declare const createGetCredentialsForIdentityClient: (config: ServiceClientFactoryInput) => (config: {
|
|
4
|
+
userAgentValue?: string | undefined;
|
|
5
|
+
endpointResolver?: (((options: import("../../../../clients").EndpointResolverOptions, input?: any) => import("../../../../clients").Endpoint) & ((options: import("../../../../clients").EndpointResolverOptions) => {
|
|
6
|
+
url: URL;
|
|
7
|
+
})) | undefined;
|
|
8
|
+
service?: string | undefined;
|
|
9
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../../../clients").MiddlewareContext) => Promise<import("../../../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../../../clients").RetryDeciderOutput>)) | undefined;
|
|
10
|
+
computeDelay?: ((attempt: number) => number) | undefined;
|
|
11
|
+
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
}, input: GetCredentialsForIdentityInput) => Promise<GetCredentialsForIdentityCommandOutput>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import '../../../../types/errors.mjs';
|
|
2
|
+
import '../../../../errors/errorHelpers.mjs';
|
|
3
|
+
import '../../../../utils/getClientInfo/getClientInfo.mjs';
|
|
4
|
+
import '../../../../utils/retry/retry.mjs';
|
|
5
|
+
import '../../../../parseAWSExports.mjs';
|
|
6
|
+
import 'uuid';
|
|
7
|
+
import '../../../../singleton/Auth/utils/errorHelpers.mjs';
|
|
8
|
+
import '@aws-crypto/sha256-js';
|
|
9
|
+
import '@smithy/util-hex-encoding';
|
|
10
|
+
import { getAmplifyUserAgent } from '../../../../Platform/index.mjs';
|
|
11
|
+
import '../../../../Platform/types.mjs';
|
|
12
|
+
import '../../../../BackgroundProcessManager/types.mjs';
|
|
13
|
+
import '../../../../Reachability/Reachability.mjs';
|
|
14
|
+
import '../../../../Hub/index.mjs';
|
|
15
|
+
import '../../../../utils/sessionListener/index.mjs';
|
|
16
|
+
import { parseMetadata } from '../../../../clients/serde/responseInfo.mjs';
|
|
17
|
+
import { parseJsonError, parseJsonBody } from '../../../../clients/serde/json.mjs';
|
|
18
|
+
import { composeServiceApi } from '../../../../clients/internal/composeServiceApi.mjs';
|
|
19
|
+
import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
|
|
20
|
+
import { cognitoIdentityTransferHandler } from './handler/cognitoIdentityTransferHandler.mjs';
|
|
21
|
+
import { createClientSerializer } from './serde/createClientSerializer.mjs';
|
|
22
|
+
|
|
23
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
24
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
25
|
+
const createGetCredentialsForIdentityClient = (config) => composeServiceApi(cognitoIdentityTransferHandler, createClientSerializer('GetCredentialsForIdentity'), getCredentialsForIdentityDeserializer, {
|
|
26
|
+
...DEFAULT_SERVICE_CLIENT_API_CONFIG,
|
|
27
|
+
...config,
|
|
28
|
+
userAgentValue: getAmplifyUserAgent(),
|
|
29
|
+
});
|
|
30
|
+
const getCredentialsForIdentityDeserializer = async (response) => {
|
|
31
|
+
if (response.statusCode >= 300) {
|
|
32
|
+
const error = await parseJsonError(response);
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
const body = await parseJsonBody(response);
|
|
37
|
+
return {
|
|
38
|
+
IdentityId: body.IdentityId,
|
|
39
|
+
Credentials: deserializeCredentials(body.Credentials),
|
|
40
|
+
$metadata: parseMetadata(response),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const deserializeCredentials = ({ Expiration, ...rest } = {}) => ({
|
|
45
|
+
...rest,
|
|
46
|
+
Expiration: Expiration && new Date(Expiration * 1000),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { createGetCredentialsForIdentityClient };
|
|
50
|
+
//# sourceMappingURL=createGetCredentialsForIdentityClient.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGetCredentialsForIdentityClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { parseJsonBody, parseJsonError, parseMetadata, } from '../../../../clients';\nimport { composeServiceApi } from '../../../../clients/internal';\nimport { getAmplifyUserAgent } from '../../../../Platform';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nimport { cognitoIdentityTransferHandler } from './handler';\nimport { createClientSerializer } from './serde';\nexport const createGetCredentialsForIdentityClient = (config) => composeServiceApi(cognitoIdentityTransferHandler, createClientSerializer('GetCredentialsForIdentity'), getCredentialsForIdentityDeserializer, {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n userAgentValue: getAmplifyUserAgent(),\n});\nconst getCredentialsForIdentityDeserializer = async (response) => {\n if (response.statusCode >= 300) {\n const error = await parseJsonError(response);\n throw error;\n }\n else {\n const body = await parseJsonBody(response);\n return {\n IdentityId: body.IdentityId,\n Credentials: deserializeCredentials(body.Credentials),\n $metadata: parseMetadata(response),\n };\n }\n};\nconst deserializeCredentials = ({ Expiration, ...rest } = {}) => ({\n ...rest,\n Expiration: Expiration && new Date(Expiration * 1000),\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAOY,MAAC,qCAAqC,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,EAAE,qCAAqC,EAAE;AAC/M,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,IAAI,cAAc,EAAE,mBAAmB,EAAE;AACzC,CAAC;AACD,MAAM,qCAAqC,GAAG,OAAO,QAAQ,KAAK;AAClE,IAAI,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;AACpC,QAAQ,MAAM,KAAK,GAAG,MAAM,cAAc,CAAC,QAAQ,CAAC;AACpD,QAAQ,MAAM,KAAK;AACnB;AACA,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC;AAClD,QAAQ,OAAO;AACf,YAAY,UAAU,EAAE,IAAI,CAAC,UAAU;AACvC,YAAY,WAAW,EAAE,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC;AACjE,YAAY,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC;AAC9C,SAAS;AACT;AACA,CAAC;AACD,MAAM,sBAAsB,GAAG,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM;AAClE,IAAI,GAAG,IAAI;AACX,IAAI,UAAU,EAAE,UAAU,IAAI,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;AACzD,CAAC,CAAC;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpResponse } from '../../../../clients';
|
|
2
|
+
import { GetIdCommandOutput, ServiceClientFactoryInput } from './types';
|
|
3
|
+
export declare const createGetIdClient: (config: ServiceClientFactoryInput) => (config: {
|
|
4
|
+
userAgentValue?: string | undefined;
|
|
5
|
+
endpointResolver?: (((options: import("../../../../clients").EndpointResolverOptions, input?: any) => import("../../../../clients").Endpoint) & ((options: import("../../../../clients").EndpointResolverOptions) => {
|
|
6
|
+
url: URL;
|
|
7
|
+
})) | undefined;
|
|
8
|
+
service?: string | undefined;
|
|
9
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../../../clients").MiddlewareContext) => Promise<import("../../../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../../../clients").RetryDeciderOutput>)) | undefined;
|
|
10
|
+
computeDelay?: ((attempt: number) => number) | undefined;
|
|
11
|
+
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
}, input: import("./types").GetIdInput) => Promise<GetIdCommandOutput>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import '../../../../types/errors.mjs';
|
|
2
|
+
import '../../../../errors/errorHelpers.mjs';
|
|
3
|
+
import '../../../../utils/getClientInfo/getClientInfo.mjs';
|
|
4
|
+
import '../../../../utils/retry/retry.mjs';
|
|
5
|
+
import '../../../../parseAWSExports.mjs';
|
|
6
|
+
import 'uuid';
|
|
7
|
+
import '../../../../singleton/Auth/utils/errorHelpers.mjs';
|
|
8
|
+
import '@aws-crypto/sha256-js';
|
|
9
|
+
import '@smithy/util-hex-encoding';
|
|
10
|
+
import { getAmplifyUserAgent } from '../../../../Platform/index.mjs';
|
|
11
|
+
import '../../../../Platform/types.mjs';
|
|
12
|
+
import '../../../../BackgroundProcessManager/types.mjs';
|
|
13
|
+
import '../../../../Reachability/Reachability.mjs';
|
|
14
|
+
import '../../../../Hub/index.mjs';
|
|
15
|
+
import '../../../../utils/sessionListener/index.mjs';
|
|
16
|
+
import { parseMetadata } from '../../../../clients/serde/responseInfo.mjs';
|
|
17
|
+
import { parseJsonError, parseJsonBody } from '../../../../clients/serde/json.mjs';
|
|
18
|
+
import { composeServiceApi } from '../../../../clients/internal/composeServiceApi.mjs';
|
|
19
|
+
import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
|
|
20
|
+
import { cognitoIdentityTransferHandler } from './handler/cognitoIdentityTransferHandler.mjs';
|
|
21
|
+
import { createClientSerializer } from './serde/createClientSerializer.mjs';
|
|
22
|
+
|
|
23
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
24
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
25
|
+
const createGetIdClient = (config) => composeServiceApi(cognitoIdentityTransferHandler, createClientSerializer('GetId'), getIdDeserializer, {
|
|
26
|
+
...DEFAULT_SERVICE_CLIENT_API_CONFIG,
|
|
27
|
+
...config,
|
|
28
|
+
userAgentValue: getAmplifyUserAgent(),
|
|
29
|
+
});
|
|
30
|
+
const getIdDeserializer = async (response) => {
|
|
31
|
+
if (response.statusCode >= 300) {
|
|
32
|
+
const error = await parseJsonError(response);
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
const body = await parseJsonBody(response);
|
|
37
|
+
return {
|
|
38
|
+
IdentityId: body.IdentityId,
|
|
39
|
+
$metadata: parseMetadata(response),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { createGetIdClient };
|
|
45
|
+
//# sourceMappingURL=createGetIdClient.mjs.map
|
package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGetIdClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { parseJsonBody, parseJsonError, parseMetadata, } from '../../../../clients';\nimport { composeServiceApi } from '../../../../clients/internal';\nimport { getAmplifyUserAgent } from '../../../../Platform';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nimport { cognitoIdentityTransferHandler } from './handler';\nimport { createClientSerializer } from './serde';\nexport const createGetIdClient = (config) => composeServiceApi(cognitoIdentityTransferHandler, createClientSerializer('GetId'), getIdDeserializer, {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n userAgentValue: getAmplifyUserAgent(),\n});\nconst getIdDeserializer = async (response) => {\n if (response.statusCode >= 300) {\n const error = await parseJsonError(response);\n throw error;\n }\n else {\n const body = await parseJsonBody(response);\n return {\n IdentityId: body.IdentityId,\n $metadata: parseMetadata(response),\n };\n }\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAOY,MAAC,iBAAiB,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,OAAO,CAAC,EAAE,iBAAiB,EAAE;AACnJ,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,IAAI,cAAc,EAAE,mBAAmB,EAAE;AACzC,CAAC;AACD,MAAM,iBAAiB,GAAG,OAAO,QAAQ,KAAK;AAC9C,IAAI,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;AACpC,QAAQ,MAAM,KAAK,GAAG,MAAM,cAAc,CAAC,QAAQ,CAAC;AACpD,QAAQ,MAAM,KAAK;AACnB;AACA,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC;AAClD,QAAQ,OAAO;AACf,YAAY,UAAU,EAAE,IAAI,CAAC,UAAU;AACvC,YAAY,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC;AAC9C,SAAS;AACT;AACA,CAAC;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpRequest, HttpResponse } from '../../../../../clients';
|
|
2
|
+
/**
|
|
3
|
+
* A Cognito Identity-specific transfer handler that does NOT sign requests, and
|
|
4
|
+
* disables caching.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const cognitoIdentityTransferHandler: (request: HttpRequest, options: Record<string, unknown> & import("../../../../../clients").UserAgentOptions & object & import("../../../../../clients").RetryOptions<HttpResponse> & import("../../../../../clients").AmzSdkRequestHeaderMiddlewareOptions & import("../../../../../clients").HttpTransferOptions) => Promise<HttpResponse>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import '../../../../../types/errors.mjs';
|
|
2
|
+
import '../../../../../errors/errorHelpers.mjs';
|
|
3
|
+
import { unauthenticatedHandler } from '../../../../../clients/handlers/aws/unauthenticated.mjs';
|
|
4
|
+
import '../../../../../utils/getClientInfo/getClientInfo.mjs';
|
|
5
|
+
import '../../../../../utils/retry/retry.mjs';
|
|
6
|
+
import '../../../../../parseAWSExports.mjs';
|
|
7
|
+
import 'uuid';
|
|
8
|
+
import '../../../../../singleton/Auth/utils/errorHelpers.mjs';
|
|
9
|
+
import '@aws-crypto/sha256-js';
|
|
10
|
+
import '@smithy/util-hex-encoding';
|
|
11
|
+
import '../../../../../Platform/index.mjs';
|
|
12
|
+
import '../../../../../Platform/types.mjs';
|
|
13
|
+
import '../../../../../BackgroundProcessManager/types.mjs';
|
|
14
|
+
import '../../../../../Reachability/Reachability.mjs';
|
|
15
|
+
import '../../../../../Hub/index.mjs';
|
|
16
|
+
import '../../../../../utils/sessionListener/index.mjs';
|
|
17
|
+
import { composeTransferHandler } from '../../../../../clients/internal/composeTransferHandler.mjs';
|
|
18
|
+
import { createDisableCacheMiddleware } from '../../../middleware/createDisableCacheMiddleware.mjs';
|
|
19
|
+
|
|
20
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
21
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
22
|
+
/**
|
|
23
|
+
* A Cognito Identity-specific transfer handler that does NOT sign requests, and
|
|
24
|
+
* disables caching.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
const cognitoIdentityTransferHandler = composeTransferHandler(unauthenticatedHandler, [createDisableCacheMiddleware]);
|
|
29
|
+
|
|
30
|
+
export { cognitoIdentityTransferHandler };
|
|
31
|
+
//# sourceMappingURL=cognitoIdentityTransferHandler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cognitoIdentityTransferHandler.mjs","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { unauthenticatedHandler, } from '../../../../../clients';\nimport { composeTransferHandler } from '../../../../../clients/internal';\nimport { createDisableCacheMiddleware } from '../../../middleware';\n/**\n * A Cognito Identity-specific transfer handler that does NOT sign requests, and\n * disables caching.\n *\n * @internal\n */\nexport const cognitoIdentityTransferHandler = composeTransferHandler(unauthenticatedHandler, [createDisableCacheMiddleware]);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,8BAA8B,GAAG,sBAAsB,CAAC,sBAAsB,EAAE,CAAC,4BAA4B,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cognitoIdentityTransferHandler } from './cognitoIdentityTransferHandler';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { createGetCredentialsForIdentityClient } from './createGetCredentialsForIdentityClient';
|
|
2
|
+
export { createGetIdClient } from './createGetIdClient';
|
|
3
|
+
export { cognitoIdentityPoolEndpointResolver } from './cognitoIdentityPoolEndpointResolver';
|
|
4
|
+
export { GetIdInput, GetIdOutput, GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, } from './types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { createGetCredentialsForIdentityClient } from './createGetCredentialsForIdentityClient.mjs';
|
|
2
|
+
export { createGetIdClient } from './createGetIdClient.mjs';
|
|
3
|
+
export { cognitoIdentityPoolEndpointResolver } from './cognitoIdentityPoolEndpointResolver.mjs';
|
|
4
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Endpoint, Headers, HttpRequest } from '../../../../../clients';
|
|
2
|
+
export declare const createClientSerializer: <Input>(operation: string) => (input: Input, endpoint: Endpoint) => HttpRequest;
|
|
3
|
+
export declare const buildHttpRpcRequest: ({ url }: Endpoint, headers: Headers, body: any) => HttpRequest;
|