@aws-amplify/core 6.4.6-unstable.bf58ebc.0 → 6.4.7-local-stack.0aa9031.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 (125) hide show
  1. package/dist/cjs/Platform/version.js +1 -1
  2. package/dist/cjs/Platform/version.js.map +1 -1
  3. package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js +15 -0
  4. package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js.map +1 -0
  5. package/dist/cjs/foundation/factories/middleware/index.js +9 -0
  6. package/dist/cjs/foundation/factories/middleware/index.js.map +1 -0
  7. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js +14 -0
  8. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js.map +1 -0
  9. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js +18 -0
  10. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js.map +1 -0
  11. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js +37 -0
  12. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js.map +1 -0
  13. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js +32 -0
  14. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js.map +1 -0
  15. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js +17 -0
  16. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js.map +1 -0
  17. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js +9 -0
  18. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js.map +1 -0
  19. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js +13 -0
  20. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js.map +1 -0
  21. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js +24 -0
  22. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js.map +1 -0
  23. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js +9 -0
  24. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js.map +1 -0
  25. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js +9 -0
  26. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js.map +1 -0
  27. package/dist/cjs/{awsClients/cognitoIdentity/types.js → foundation/factories/serviceClients/cognitoIdentity/types/sdk.js} +1 -1
  28. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/sdk.js.map +1 -0
  29. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js +6 -0
  30. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js.map +1 -0
  31. package/dist/cjs/index.js +6 -5
  32. package/dist/cjs/index.js.map +1 -1
  33. package/dist/esm/Platform/version.d.ts +1 -1
  34. package/dist/esm/Platform/version.mjs +1 -1
  35. package/dist/esm/Platform/version.mjs.map +1 -1
  36. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.d.ts +5 -0
  37. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs +12 -0
  38. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs.map +1 -0
  39. package/dist/esm/foundation/factories/middleware/index.d.ts +1 -0
  40. package/dist/esm/foundation/factories/middleware/index.mjs +2 -0
  41. package/dist/esm/{awsClients/cognitoIdentity → foundation/factories/middleware}/index.mjs.map +1 -1
  42. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.d.ts +4 -0
  43. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs +27 -0
  44. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs.map +1 -0
  45. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.d.ts +10 -0
  46. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs +23 -0
  47. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs.map +1 -0
  48. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.d.ts +14 -0
  49. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs +42 -0
  50. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs.map +1 -0
  51. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.d.ts +14 -0
  52. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs +37 -0
  53. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs.map +1 -0
  54. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.d.ts +8 -0
  55. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs +22 -0
  56. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs.map +1 -0
  57. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.d.ts +1 -0
  58. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs +2 -0
  59. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs.map +1 -0
  60. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.d.ts +3 -0
  61. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs +4 -0
  62. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs.map +1 -0
  63. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.d.ts +3 -0
  64. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs +20 -0
  65. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs.map +1 -0
  66. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.d.ts +1 -0
  67. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs +2 -0
  68. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs.map +1 -0
  69. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.d.ts +3 -0
  70. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs +2 -0
  71. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs.map +1 -0
  72. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs +2 -0
  73. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs.map +1 -0
  74. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.d.ts +6 -0
  75. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs +2 -0
  76. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs.map +1 -0
  77. package/dist/esm/index.d.ts +1 -1
  78. package/dist/esm/index.mjs +3 -2
  79. package/dist/esm/index.mjs.map +1 -1
  80. package/dist/esm/singleton/Auth/types.d.ts +2 -0
  81. package/package.json +3 -3
  82. package/src/Platform/version.ts +1 -1
  83. package/src/foundation/factories/middleware/createDisableCacheMiddleware.ts +18 -0
  84. package/src/foundation/factories/middleware/index.ts +4 -0
  85. package/src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts +15 -0
  86. package/src/foundation/factories/serviceClients/cognitoIdentity/constants.ts +20 -0
  87. package/src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.ts +62 -0
  88. package/src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.ts +48 -0
  89. package/src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.ts +23 -0
  90. package/src/foundation/factories/serviceClients/cognitoIdentity/handler/index.ts +4 -0
  91. package/src/foundation/factories/serviceClients/cognitoIdentity/index.ts +6 -0
  92. package/src/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.ts +29 -0
  93. package/src/foundation/factories/serviceClients/cognitoIdentity/serde/index.ts +4 -0
  94. package/src/foundation/factories/serviceClients/cognitoIdentity/types/index.ts +9 -0
  95. package/src/{awsClients/cognitoIdentity/types.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.ts} +0 -2
  96. package/src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.ts +8 -0
  97. package/src/index.ts +5 -6
  98. package/src/singleton/Auth/types.ts +2 -0
  99. package/dist/cjs/awsClients/cognitoIdentity/base.js +0 -69
  100. package/dist/cjs/awsClients/cognitoIdentity/base.js.map +0 -1
  101. package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js +0 -41
  102. package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js.map +0 -1
  103. package/dist/cjs/awsClients/cognitoIdentity/getId.js +0 -32
  104. package/dist/cjs/awsClients/cognitoIdentity/getId.js.map +0 -1
  105. package/dist/cjs/awsClients/cognitoIdentity/index.js +0 -11
  106. package/dist/cjs/awsClients/cognitoIdentity/index.js.map +0 -1
  107. package/dist/cjs/awsClients/cognitoIdentity/types.js.map +0 -1
  108. package/dist/esm/awsClients/cognitoIdentity/base.d.ts +0 -29
  109. package/dist/esm/awsClients/cognitoIdentity/base.mjs +0 -73
  110. package/dist/esm/awsClients/cognitoIdentity/base.mjs.map +0 -1
  111. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.d.ts +0 -18
  112. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs +0 -47
  113. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs.map +0 -1
  114. package/dist/esm/awsClients/cognitoIdentity/getId.d.ts +0 -18
  115. package/dist/esm/awsClients/cognitoIdentity/getId.mjs +0 -38
  116. package/dist/esm/awsClients/cognitoIdentity/getId.mjs.map +0 -1
  117. package/dist/esm/awsClients/cognitoIdentity/index.d.ts +0 -2
  118. package/dist/esm/awsClients/cognitoIdentity/index.mjs +0 -3
  119. package/dist/esm/awsClients/cognitoIdentity/types.mjs +0 -2
  120. package/dist/esm/awsClients/cognitoIdentity/types.mjs.map +0 -1
  121. package/src/awsClients/cognitoIdentity/base.ts +0 -101
  122. package/src/awsClients/cognitoIdentity/getCredentialsForIdentity.ts +0 -77
  123. package/src/awsClients/cognitoIdentity/getId.ts +0 -61
  124. package/src/awsClients/cognitoIdentity/index.ts +0 -9
  125. /package/dist/esm/{awsClients/cognitoIdentity/types.d.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.d.ts} +0 -0
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.version = void 0;
5
5
  // generated by genversion
6
- exports.version = '6.6.6-unstable.bf58ebc.0+bf58ebc';
6
+ exports.version = '6.6.7-local-stack.0aa9031.0+0aa9031';
7
7
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.6.6-unstable.bf58ebc.0+bf58ebc';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,kCAAkC;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.6.7-local-stack.0aa9031.0+0aa9031';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,qCAAqC;;"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createDisableCacheMiddleware = void 0;
7
+ /**
8
+ * A Cognito Identity-specific middleware that disables caching for all requests.
9
+ */
10
+ const createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {
11
+ request.headers['cache-control'] = 'no-store';
12
+ return next(request);
13
+ };
14
+ exports.createDisableCacheMiddleware = createDisableCacheMiddleware;
15
+ //# sourceMappingURL=createDisableCacheMiddleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDisableCacheMiddleware.js","sources":["../../../../../src/foundation/factories/middleware/createDisableCacheMiddleware.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.createDisableCacheMiddleware = void 0;\n/**\n * A Cognito Identity-specific middleware that disables caching for all requests.\n */\nconst createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {\n request.headers['cache-control'] = 'no-store';\n return next(request);\n};\nexports.createDisableCacheMiddleware = createDisableCacheMiddleware;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,4BAA4B,GAAG,KAAK,CAAC,CAAC;AAC9C;AACA;AACA;AACA,MAAM,4BAA4B,GAAG,MAAM,IAAI,IAAI,eAAe,sBAAsB,CAAC,OAAO,EAAE;AAClG,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC;AAClD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC,CAAC;AACF,OAAO,CAAC,4BAA4B,GAAG,4BAA4B;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createDisableCacheMiddleware = void 0;
7
+ var createDisableCacheMiddleware_1 = require("./createDisableCacheMiddleware");
8
+ Object.defineProperty(exports, "createDisableCacheMiddleware", { enumerable: true, get: function () { return createDisableCacheMiddleware_1.createDisableCacheMiddleware; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/foundation/factories/middleware/index.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.createDisableCacheMiddleware = void 0;\nvar createDisableCacheMiddleware_1 = require(\"./createDisableCacheMiddleware\");\nObject.defineProperty(exports, \"createDisableCacheMiddleware\", { enumerable: true, get: function () { return createDisableCacheMiddleware_1.createDisableCacheMiddleware; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,4BAA4B,GAAG,KAAK,CAAC,CAAC;AAC9C,IAAI,8BAA8B,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAC/E,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,8BAA8B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,8BAA8B,CAAC,4BAA4B,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityPoolEndpointResolver = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ const libraryUtils_1 = require("../../../../libraryUtils");
9
+ const constants_1 = require("./constants");
10
+ const cognitoIdentityPoolEndpointResolver = ({ region, }) => ({
11
+ url: new libraryUtils_1.AmplifyUrl(`https://${constants_1.COGNITO_IDENTITY_SERVICE_NAME}.${region}.${(0, clients_1.getDnsSuffix)(region)}`),
12
+ });
13
+ exports.cognitoIdentityPoolEndpointResolver = cognitoIdentityPoolEndpointResolver;
14
+ //# sourceMappingURL=cognitoIdentityPoolEndpointResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cognitoIdentityPoolEndpointResolver.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.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.cognitoIdentityPoolEndpointResolver = void 0;\nconst clients_1 = require(\"../../../../clients\");\nconst libraryUtils_1 = require(\"../../../../libraryUtils\");\nconst constants_1 = require(\"./constants\");\nconst cognitoIdentityPoolEndpointResolver = ({ region, }) => ({\n url: new libraryUtils_1.AmplifyUrl(`https://${constants_1.COGNITO_IDENTITY_SERVICE_NAME}.${region}.${(0, clients_1.getDnsSuffix)(region)}`),\n});\nexports.cognitoIdentityPoolEndpointResolver = cognitoIdentityPoolEndpointResolver;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mCAAmC,GAAG,KAAK,CAAC,CAAC;AACrD,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACjD,MAAM,cAAc,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAC3D,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,mCAAmC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM;AAC9D,IAAI,GAAG,EAAE,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,6BAA6B,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,IAAI,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AAC/I,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,mCAAmC,GAAG,mCAAmC;;"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DEFAULT_SERVICE_CLIENT_API_CONFIG = exports.COGNITO_IDENTITY_SERVICE_NAME = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ /**
9
+ * The service name used to sign requests if the API requires authentication.
10
+ */
11
+ exports.COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';
12
+ exports.DEFAULT_SERVICE_CLIENT_API_CONFIG = {
13
+ service: exports.COGNITO_IDENTITY_SERVICE_NAME,
14
+ retryDecider: (0, clients_1.getRetryDecider)(clients_1.parseJsonError),
15
+ computeDelay: clients_1.jitteredBackoff,
16
+ cache: 'no-store',
17
+ };
18
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/constants.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.DEFAULT_SERVICE_CLIENT_API_CONFIG = exports.COGNITO_IDENTITY_SERVICE_NAME = void 0;\nconst clients_1 = require(\"../../../../clients\");\n/**\n * The service name used to sign requests if the API requires authentication.\n */\nexports.COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';\nexports.DEFAULT_SERVICE_CLIENT_API_CONFIG = {\n service: exports.COGNITO_IDENTITY_SERVICE_NAME,\n retryDecider: (0, clients_1.getRetryDecider)(clients_1.parseJsonError),\n computeDelay: clients_1.jitteredBackoff,\n cache: 'no-store',\n};\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,6BAA6B,GAAG,KAAK,CAAC,CAAC;AAC3F,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACjD;AACA;AACA;AACA,OAAO,CAAC,6BAA6B,GAAG,kBAAkB,CAAC;AAC3D,OAAO,CAAC,iCAAiC,GAAG;AAC5C,IAAI,OAAO,EAAE,OAAO,CAAC,6BAA6B;AAClD,IAAI,YAAY,EAAE,IAAI,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,cAAc,CAAC;AAC1E,IAAI,YAAY,EAAE,SAAS,CAAC,eAAe;AAC3C,IAAI,KAAK,EAAE,UAAU;AACrB,CAAC;;"}
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createGetCredentialsForIdentityClient = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ const internal_1 = require("../../../../clients/internal");
9
+ const Platform_1 = require("../../../../Platform");
10
+ const constants_1 = require("./constants");
11
+ const handler_1 = require("./handler");
12
+ const serde_1 = require("./serde");
13
+ const createGetCredentialsForIdentityClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetCredentialsForIdentity'), getCredentialsForIdentityDeserializer, {
14
+ ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,
15
+ ...config,
16
+ userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),
17
+ });
18
+ exports.createGetCredentialsForIdentityClient = createGetCredentialsForIdentityClient;
19
+ const getCredentialsForIdentityDeserializer = async (response) => {
20
+ if (response.statusCode >= 300) {
21
+ const error = await (0, clients_1.parseJsonError)(response);
22
+ throw error;
23
+ }
24
+ else {
25
+ const body = await (0, clients_1.parseJsonBody)(response);
26
+ return {
27
+ IdentityId: body.IdentityId,
28
+ Credentials: deserializeCredentials(body.Credentials),
29
+ $metadata: (0, clients_1.parseMetadata)(response),
30
+ };
31
+ }
32
+ };
33
+ const deserializeCredentials = ({ Expiration, ...rest } = {}) => ({
34
+ ...rest,
35
+ Expiration: Expiration && new Date(Expiration * 1000),
36
+ });
37
+ //# sourceMappingURL=createGetCredentialsForIdentityClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createGetCredentialsForIdentityClient.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.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.createGetCredentialsForIdentityClient = void 0;\nconst clients_1 = require(\"../../../../clients\");\nconst internal_1 = require(\"../../../../clients/internal\");\nconst Platform_1 = require(\"../../../../Platform\");\nconst constants_1 = require(\"./constants\");\nconst handler_1 = require(\"./handler\");\nconst serde_1 = require(\"./serde\");\nconst createGetCredentialsForIdentityClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetCredentialsForIdentity'), getCredentialsForIdentityDeserializer, {\n ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),\n});\nexports.createGetCredentialsForIdentityClient = createGetCredentialsForIdentityClient;\nconst getCredentialsForIdentityDeserializer = async (response) => {\n if (response.statusCode >= 300) {\n const error = await (0, clients_1.parseJsonError)(response);\n throw error;\n }\n else {\n const body = await (0, clients_1.parseJsonBody)(response);\n return {\n IdentityId: body.IdentityId,\n Credentials: deserializeCredentials(body.Credentials),\n $metadata: (0, clients_1.parseMetadata)(response),\n };\n }\n};\nconst deserializeCredentials = ({ Expiration, ...rest } = {}) => ({\n ...rest,\n Expiration: Expiration && new Date(Expiration * 1000),\n});\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qCAAqC,GAAG,KAAK,CAAC,CAAC;AACvD,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACjD,MAAM,UAAU,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC3D,MAAM,UAAU,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACnD,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACvC,MAAM,OAAO,GA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iliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createGetIdClient = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ const internal_1 = require("../../../../clients/internal");
9
+ const Platform_1 = require("../../../../Platform");
10
+ const constants_1 = require("./constants");
11
+ const handler_1 = require("./handler");
12
+ const serde_1 = require("./serde");
13
+ const createGetIdClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetId'), getIdDeserializer, {
14
+ ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,
15
+ ...config,
16
+ userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),
17
+ });
18
+ exports.createGetIdClient = createGetIdClient;
19
+ const getIdDeserializer = async (response) => {
20
+ if (response.statusCode >= 300) {
21
+ const error = await (0, clients_1.parseJsonError)(response);
22
+ throw error;
23
+ }
24
+ else {
25
+ const body = await (0, clients_1.parseJsonBody)(response);
26
+ return {
27
+ IdentityId: body.IdentityId,
28
+ $metadata: (0, clients_1.parseMetadata)(response),
29
+ };
30
+ }
31
+ };
32
+ //# sourceMappingURL=createGetIdClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createGetIdClient.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.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.createGetIdClient = void 0;\nconst clients_1 = require(\"../../../../clients\");\nconst internal_1 = require(\"../../../../clients/internal\");\nconst Platform_1 = require(\"../../../../Platform\");\nconst constants_1 = require(\"./constants\");\nconst handler_1 = require(\"./handler\");\nconst serde_1 = require(\"./serde\");\nconst createGetIdClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetId'), getIdDeserializer, {\n ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),\n});\nexports.createGetIdClient = createGetIdClient;\nconst getIdDeserializer = async (response) => {\n if (response.statusCode >= 300) {\n const error = await (0, clients_1.parseJsonError)(response);\n throw error;\n }\n else {\n const body = await (0, clients_1.parseJsonBody)(response);\n return {\n IdentityId: body.IdentityId,\n $metadata: (0, clients_1.parseMetadata)(response),\n };\n }\n};\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACjD,MAAM,UAAU,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC3D,MAAM,UAAU,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACnD,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACvC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACnC,MAAM,iBAAiB,GAAG,CAAC,MAAM,KAAK,IAAI,UAAU,CAAC,iBAAiB,EAAE,SAAS,CAAC,8BAA8B,EAAE,IAAI,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,iBAAiB,EAAE;AACnL,IAAI,GAAG,WAAW,CAAC,iCAAiC;AACpD,IAAI,GAAG,MAAM;AACb,IAAI,cAAc,EAAE,IAAI,UAAU,CAAC,mBAAmB,GAAG;AACzD,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AAC9C,MAAM,iBAAiB,GAAG,OAAO,QAAQ,KAAK;AAC9C,IAAI,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;AACpC,QAAQ,MAAM,KAAK,GAAG,MAAM,IAAI,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AACpE,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK;AACL,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;AAClE,QAAQ,OAAO;AACf,YAAY,UAAU,EAAE,IAAI,CAAC,UAAU;AACvC,YAAY,SAAS,EAAE,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC7D,SAAS,CAAC;AACV,KAAK;AACL,CAAC;;"}
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityTransferHandler = void 0;
7
+ const clients_1 = require("../../../../../clients");
8
+ const internal_1 = require("../../../../../clients/internal");
9
+ const middleware_1 = require("../../../middleware");
10
+ /**
11
+ * A Cognito Identity-specific transfer handler that does NOT sign requests, and
12
+ * disables caching.
13
+ *
14
+ * @internal
15
+ */
16
+ exports.cognitoIdentityTransferHandler = (0, internal_1.composeTransferHandler)(clients_1.unauthenticatedHandler, [middleware_1.createDisableCacheMiddleware]);
17
+ //# sourceMappingURL=cognitoIdentityTransferHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cognitoIdentityTransferHandler.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.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.cognitoIdentityTransferHandler = void 0;\nconst clients_1 = require(\"../../../../../clients\");\nconst internal_1 = require(\"../../../../../clients/internal\");\nconst middleware_1 = require(\"../../../middleware\");\n/**\n * A Cognito Identity-specific transfer handler that does NOT sign requests, and\n * disables caching.\n *\n * @internal\n */\nexports.cognitoIdentityTransferHandler = (0, internal_1.composeTransferHandler)(clients_1.unauthenticatedHandler, [middleware_1.createDisableCacheMiddleware]);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,8BAA8B,GAAG,KAAK,CAAC,CAAC;AAChD,MAAM,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AACpD,MAAM,UAAU,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,CAAC,8BAA8B,GAAG,IAAI,UAAU,CAAC,sBAAsB,EAAE,SAAS,CAAC,sBAAsB,EAAE,CAAC,YAAY,CAAC,4BAA4B,CAAC,CAAC;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityTransferHandler = void 0;
7
+ var cognitoIdentityTransferHandler_1 = require("./cognitoIdentityTransferHandler");
8
+ Object.defineProperty(exports, "cognitoIdentityTransferHandler", { enumerable: true, get: function () { return cognitoIdentityTransferHandler_1.cognitoIdentityTransferHandler; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/handler/index.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.cognitoIdentityTransferHandler = void 0;\nvar cognitoIdentityTransferHandler_1 = require(\"./cognitoIdentityTransferHandler\");\nObject.defineProperty(exports, \"cognitoIdentityTransferHandler\", { enumerable: true, get: function () { return cognitoIdentityTransferHandler_1.cognitoIdentityTransferHandler; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,8BAA8B,GAAG,KAAK,CAAC,CAAC;AAChD,IAAI,gCAAgC,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AACnF,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gCAAgC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,gCAAgC,CAAC,8BAA8B,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityPoolEndpointResolver = exports.createGetIdClient = exports.createGetCredentialsForIdentityClient = void 0;
7
+ var createGetCredentialsForIdentityClient_1 = require("./createGetCredentialsForIdentityClient");
8
+ Object.defineProperty(exports, "createGetCredentialsForIdentityClient", { enumerable: true, get: function () { return createGetCredentialsForIdentityClient_1.createGetCredentialsForIdentityClient; } });
9
+ var createGetIdClient_1 = require("./createGetIdClient");
10
+ Object.defineProperty(exports, "createGetIdClient", { enumerable: true, get: function () { return createGetIdClient_1.createGetIdClient; } });
11
+ var cognitoIdentityPoolEndpointResolver_1 = require("./cognitoIdentityPoolEndpointResolver");
12
+ Object.defineProperty(exports, "cognitoIdentityPoolEndpointResolver", { enumerable: true, get: function () { return cognitoIdentityPoolEndpointResolver_1.cognitoIdentityPoolEndpointResolver; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/index.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.cognitoIdentityPoolEndpointResolver = exports.createGetIdClient = exports.createGetCredentialsForIdentityClient = void 0;\nvar createGetCredentialsForIdentityClient_1 = require(\"./createGetCredentialsForIdentityClient\");\nObject.defineProperty(exports, \"createGetCredentialsForIdentityClient\", { enumerable: true, get: function () { return createGetCredentialsForIdentityClient_1.createGetCredentialsForIdentityClient; } });\nvar createGetIdClient_1 = require(\"./createGetIdClient\");\nObject.defineProperty(exports, \"createGetIdClient\", { enumerable: true, get: function () { return createGetIdClient_1.createGetIdClient; } });\nvar cognitoIdentityPoolEndpointResolver_1 = require(\"./cognitoIdentityPoolEndpointResolver\");\nObject.defineProperty(exports, \"cognitoIdentityPoolEndpointResolver\", { enumerable: true, get: function () { return cognitoIdentityPoolEndpointResolver_1.cognitoIdentityPoolEndpointResolver; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mCAAmC,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,qCAAqC,GAAG,KAAK,CAAC,CAAC;AACjI,IAAI,uCAAuC,GAAG,OAAO,CAAC,yCAAyC,CAAC,CAAC;AACjG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uCAAuC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,uCAAuC,CAAC,qCAAqC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC1M,IAAI,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACzD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC9I,IAAI,qCAAqC,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAC;AAC7F,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qCAAqC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,qCAAqC,CAAC,mCAAmC,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.buildHttpRpcRequest = exports.createClientSerializer = void 0;
7
+ const createClientSerializer = (operation) => (input, endpoint) => {
8
+ const headers = getSharedHeaders(operation);
9
+ const body = JSON.stringify(input);
10
+ return (0, exports.buildHttpRpcRequest)(endpoint, headers, body);
11
+ };
12
+ exports.createClientSerializer = createClientSerializer;
13
+ const getSharedHeaders = (operation) => ({
14
+ 'content-type': 'application/x-amz-json-1.1',
15
+ 'x-amz-target': `AWSCognitoIdentityService.${operation}`,
16
+ });
17
+ const buildHttpRpcRequest = ({ url }, headers, body) => ({
18
+ headers,
19
+ url,
20
+ body,
21
+ method: 'POST',
22
+ });
23
+ exports.buildHttpRpcRequest = buildHttpRpcRequest;
24
+ //# sourceMappingURL=createClientSerializer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createClientSerializer.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.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.buildHttpRpcRequest = exports.createClientSerializer = void 0;\nconst createClientSerializer = (operation) => (input, endpoint) => {\n const headers = getSharedHeaders(operation);\n const body = JSON.stringify(input);\n return (0, exports.buildHttpRpcRequest)(endpoint, headers, body);\n};\nexports.createClientSerializer = createClientSerializer;\nconst getSharedHeaders = (operation) => ({\n 'content-type': 'application/x-amz-json-1.1',\n 'x-amz-target': `AWSCognitoIdentityService.${operation}`,\n});\nconst buildHttpRpcRequest = ({ url }, headers, body) => ({\n headers,\n url,\n body,\n method: 'POST',\n});\nexports.buildHttpRpcRequest = buildHttpRpcRequest;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,sBAAsB,GAAG,KAAK,CAAC,CAAC;AACtE,MAAM,sBAAsB,GAAG,CAAC,SAAS,KAAK,CAAC,KAAK,EAAE,QAAQ,KAAK;AACnE,IAAI,MAAM,OAAO,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAChD,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACvC,IAAI,OAAO,IAAI,OAAO,CAAC,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC,CAAC;AACF,OAAO,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;AACxD,MAAM,gBAAgB,GAAG,CAAC,SAAS,MAAM;AACzC,IAAI,cAAc,EAAE,4BAA4B;AAChD,IAAI,cAAc,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC;AACH,MAAM,mBAAmB,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,MAAM;AACzD,IAAI,OAAO;AACX,IAAI,GAAG;AACP,IAAI,IAAI;AACR,IAAI,MAAM,EAAE,MAAM;AAClB,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createClientSerializer = void 0;
7
+ var createClientSerializer_1 = require("./createClientSerializer");
8
+ Object.defineProperty(exports, "createClientSerializer", { enumerable: true, get: function () { return createClientSerializer_1.createClientSerializer; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/serde/index.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.createClientSerializer = void 0;\nvar createClientSerializer_1 = require(\"./createClientSerializer\");\nObject.defineProperty(exports, \"createClientSerializer\", { enumerable: true, get: function () { return createClientSerializer_1.createClientSerializer; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,sBAAsB,GAAG,KAAK,CAAC,CAAC;AACxC,IAAI,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACnE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,wBAAwB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,wBAAwB,CAAC,sBAAsB,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ tslib_1.__exportStar(require("./sdk"), exports);
8
+ tslib_1.__exportStar(require("./serviceClient"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./sdk\"), exports);\ntslib_1.__exportStar(require(\"./serviceClient\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAChD,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -3,4 +3,4 @@
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
- //# sourceMappingURL=types.js.map
6
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/sdk.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 });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=serviceClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceClient.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.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 });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
package/dist/cjs/index.js CHANGED
@@ -3,7 +3,7 @@
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.ServiceWorker = exports.ConsoleLogger = exports.I18n = exports.Cache = exports.sharedInMemoryStorage = exports.sessionStorage = exports.defaultStorage = exports.CookieStorage = exports.getId = exports.getCredentialsForIdentity = exports.clearCredentials = exports.AmplifyClassV6 = exports.fetchAuthSession = exports.Amplify = exports.decodeJWT = exports.Hub = void 0;
6
+ exports.ServiceWorker = exports.ConsoleLogger = exports.I18n = exports.Cache = exports.sharedInMemoryStorage = exports.sessionStorage = exports.defaultStorage = exports.CookieStorage = exports.cognitoIdentityPoolEndpointResolver = exports.createGetIdClient = exports.createGetCredentialsForIdentityClient = exports.clearCredentials = exports.AmplifyClassV6 = exports.fetchAuthSession = exports.Amplify = exports.decodeJWT = exports.Hub = void 0;
7
7
  /*
8
8
  This file maps top-level exports from `@aws-amplify/core`. These are intended to be potentially customer-facing exports.
9
9
  */
@@ -17,10 +17,11 @@ Object.defineProperty(exports, "Amplify", { enumerable: true, get: function () {
17
17
  Object.defineProperty(exports, "fetchAuthSession", { enumerable: true, get: function () { return singleton_1.fetchAuthSession; } });
18
18
  Object.defineProperty(exports, "AmplifyClassV6", { enumerable: true, get: function () { return singleton_1.AmplifyClass; } });
19
19
  Object.defineProperty(exports, "clearCredentials", { enumerable: true, get: function () { return singleton_1.clearCredentials; } });
20
- // AWSClients exports
21
- var cognitoIdentity_1 = require("./awsClients/cognitoIdentity");
22
- Object.defineProperty(exports, "getCredentialsForIdentity", { enumerable: true, get: function () { return cognitoIdentity_1.getCredentialsForIdentity; } });
23
- Object.defineProperty(exports, "getId", { enumerable: true, get: function () { return cognitoIdentity_1.getId; } });
20
+ // Cognito Identity service client factories
21
+ var cognitoIdentity_1 = require("./foundation/factories/serviceClients/cognitoIdentity");
22
+ Object.defineProperty(exports, "createGetCredentialsForIdentityClient", { enumerable: true, get: function () { return cognitoIdentity_1.createGetCredentialsForIdentityClient; } });
23
+ Object.defineProperty(exports, "createGetIdClient", { enumerable: true, get: function () { return cognitoIdentity_1.createGetIdClient; } });
24
+ Object.defineProperty(exports, "cognitoIdentityPoolEndpointResolver", { enumerable: true, get: function () { return cognitoIdentity_1.cognitoIdentityPoolEndpointResolver; } });
24
25
  // Storage helpers
25
26
  var storage_1 = require("./storage");
26
27
  Object.defineProperty(exports, "CookieStorage", { enumerable: true, get: function () { return storage_1.CookieStorage; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.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.ServiceWorker = exports.ConsoleLogger = exports.I18n = exports.Cache = exports.sharedInMemoryStorage = exports.sessionStorage = exports.defaultStorage = exports.CookieStorage = exports.getId = exports.getCredentialsForIdentity = exports.clearCredentials = exports.AmplifyClassV6 = exports.fetchAuthSession = exports.Amplify = exports.decodeJWT = exports.Hub = void 0;\n/*\nThis file maps top-level exports from `@aws-amplify/core`. These are intended to be potentially customer-facing exports.\n*/\n// Hub exports\nvar Hub_1 = require(\"./Hub\");\nObject.defineProperty(exports, \"Hub\", { enumerable: true, get: function () { return Hub_1.Hub; } });\nvar utils_1 = require(\"./singleton/Auth/utils\");\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_1.decodeJWT; } });\nvar singleton_1 = require(\"./singleton\");\nObject.defineProperty(exports, \"Amplify\", { enumerable: true, get: function () { return singleton_1.Amplify; } });\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return singleton_1.fetchAuthSession; } });\nObject.defineProperty(exports, \"AmplifyClassV6\", { enumerable: true, get: function () { return singleton_1.AmplifyClass; } });\nObject.defineProperty(exports, \"clearCredentials\", { enumerable: true, get: function () { return singleton_1.clearCredentials; } });\n// AWSClients exports\nvar cognitoIdentity_1 = require(\"./awsClients/cognitoIdentity\");\nObject.defineProperty(exports, \"getCredentialsForIdentity\", { enumerable: true, get: function () { return cognitoIdentity_1.getCredentialsForIdentity; } });\nObject.defineProperty(exports, \"getId\", { enumerable: true, get: function () { return cognitoIdentity_1.getId; } });\n// Storage helpers\nvar storage_1 = require(\"./storage\");\nObject.defineProperty(exports, \"CookieStorage\", { enumerable: true, get: function () { return storage_1.CookieStorage; } });\nObject.defineProperty(exports, \"defaultStorage\", { enumerable: true, get: function () { return storage_1.defaultStorage; } });\nObject.defineProperty(exports, \"sessionStorage\", { enumerable: true, get: function () { return storage_1.sessionStorage; } });\nObject.defineProperty(exports, \"sharedInMemoryStorage\", { enumerable: true, get: function () { return storage_1.sharedInMemoryStorage; } });\n// Cache exports\nvar Cache_1 = require(\"./Cache\");\nObject.defineProperty(exports, \"Cache\", { enumerable: true, get: function () { return Cache_1.Cache; } });\n// Internationalization utilities\nvar I18n_1 = require(\"./I18n\");\nObject.defineProperty(exports, \"I18n\", { enumerable: true, get: function () { return I18n_1.I18n; } });\n// Logging utilities\nvar Logger_1 = require(\"./Logger\");\nObject.defineProperty(exports, \"ConsoleLogger\", { enumerable: true, get: function () { return Logger_1.ConsoleLogger; } });\n// Service worker\nvar ServiceWorker_1 = require(\"./ServiceWorker\");\nObject.defineProperty(exports, \"ServiceWorker\", { enumerable: true, get: function () { return ServiceWorker_1.ServiceWorker; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;AACvX;AACA;AACA;AACA;AACA,IAAI,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC7B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACpG,IAAI,OAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAChD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Q,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACnC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3H;AACA,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/index.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.ServiceWorker = exports.ConsoleLogger = exports.I18n = exports.Cache = exports.sharedInMemoryStorage = exports.sessionStorage = exports.defaultStorage = exports.CookieStorage = exports.cognitoIdentityPoolEndpointResolver = exports.createGetIdClient = exports.createGetCredentialsForIdentityClient = exports.clearCredentials = exports.AmplifyClassV6 = exports.fetchAuthSession = exports.Amplify = exports.decodeJWT = exports.Hub = void 0;\n/*\nThis file maps top-level exports from `@aws-amplify/core`. These are intended to be potentially customer-facing exports.\n*/\n// Hub exports\nvar Hub_1 = require(\"./Hub\");\nObject.defineProperty(exports, \"Hub\", { enumerable: true, get: function () { return Hub_1.Hub; } });\nvar utils_1 = require(\"./singleton/Auth/utils\");\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_1.decodeJWT; } });\nvar singleton_1 = require(\"./singleton\");\nObject.defineProperty(exports, \"Amplify\", { enumerable: true, get: function () { return singleton_1.Amplify; } });\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return singleton_1.fetchAuthSession; } });\nObject.defineProperty(exports, \"AmplifyClassV6\", { enumerable: true, get: function () { return singleton_1.AmplifyClass; } });\nObject.defineProperty(exports, \"clearCredentials\", { enumerable: true, get: function () { return singleton_1.clearCredentials; } });\n// Cognito Identity service client factories\nvar cognitoIdentity_1 = require(\"./foundation/factories/serviceClients/cognitoIdentity\");\nObject.defineProperty(exports, \"createGetCredentialsForIdentityClient\", { enumerable: true, get: function () { return cognitoIdentity_1.createGetCredentialsForIdentityClient; } });\nObject.defineProperty(exports, \"createGetIdClient\", { enumerable: true, get: function () { return cognitoIdentity_1.createGetIdClient; } });\nObject.defineProperty(exports, \"cognitoIdentityPoolEndpointResolver\", { enumerable: true, get: function () { return cognitoIdentity_1.cognitoIdentityPoolEndpointResolver; } });\n// Storage helpers\nvar storage_1 = require(\"./storage\");\nObject.defineProperty(exports, \"CookieStorage\", { enumerable: true, get: function () { return storage_1.CookieStorage; } });\nObject.defineProperty(exports, \"defaultStorage\", { enumerable: true, get: function () { return storage_1.defaultStorage; } });\nObject.defineProperty(exports, \"sessionStorage\", { enumerable: true, get: function () { return storage_1.sessionStorage; } });\nObject.defineProperty(exports, \"sharedInMemoryStorage\", { enumerable: true, get: function () { return storage_1.sharedInMemoryStorage; } });\n// Cache exports\nvar Cache_1 = require(\"./Cache\");\nObject.defineProperty(exports, \"Cache\", { enumerable: true, get: function () { return Cache_1.Cache; } });\n// Internationalization utilities\nvar I18n_1 = require(\"./I18n\");\nObject.defineProperty(exports, \"I18n\", { enumerable: true, get: function () { return I18n_1.I18n; } });\n// Logging utilities\nvar Logger_1 = require(\"./Logger\");\nObject.defineProperty(exports, \"ConsoleLogger\", { enumerable: true, get: function () { return Logger_1.ConsoleLogger; } });\n// Service worker\nvar ServiceWorker_1 = require(\"./ServiceWorker\");\nObject.defineProperty(exports, \"ServiceWorker\", { enumerable: true, get: function () { return ServiceWorker_1.ServiceWorker; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YA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C,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- export declare const version = "6.6.6-unstable.bf58ebc.0+bf58ebc";
1
+ export declare const version = "6.6.7-local-stack.0aa9031.0+0aa9031";
@@ -1,5 +1,5 @@
1
1
  // generated by genversion
2
- const version = '6.6.6-unstable.bf58ebc.0+bf58ebc';
2
+ const version = '6.6.7-local-stack.0aa9031.0+0aa9031';
3
3
 
4
4
  export { version };
5
5
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.6.6-unstable.bf58ebc.0+bf58ebc';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.6.7-local-stack.0aa9031.0+0aa9031';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
@@ -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,CAAC;AAClD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;AACzB;;;;"}
@@ -0,0 +1 @@
1
+ export { createDisableCacheMiddleware } from './createDisableCacheMiddleware';
@@ -0,0 +1,2 @@
1
+ export { createDisableCacheMiddleware } from './createDisableCacheMiddleware.mjs';
2
+ //# sourceMappingURL=index.mjs.map
@@ -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,4 @@
1
+ import { EndpointResolverOptions } from '../../../../clients';
2
+ export declare const cognitoIdentityPoolEndpointResolver: ({ region, }: EndpointResolverOptions) => {
3
+ url: URL;
4
+ };
@@ -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 '@aws-crypto/sha256-js';
7
+ import '@smithy/util-hex-encoding';
8
+ import { AmplifyUrl } from '../../../../utils/amplifyUrl/index.mjs';
9
+ import '../../../../parseAWSExports.mjs';
10
+ import 'uuid';
11
+ import '../../../../singleton/Auth/utils/errorHelpers.mjs';
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 | undefined, error?: unknown) => Promise<boolean>;
8
+ computeDelay: (attempt: number) => number;
9
+ cache: string;
10
+ };
@@ -0,0 +1,23 @@
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 '@aws-crypto/sha256-js';
6
+ import '@smithy/util-hex-encoding';
7
+ import { parseJsonError } from '../../../../clients/serde/json.mjs';
8
+
9
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
10
+ // SPDX-License-Identifier: Apache-2.0
11
+ /**
12
+ * The service name used to sign requests if the API requires authentication.
13
+ */
14
+ const COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';
15
+ const DEFAULT_SERVICE_CLIENT_API_CONFIG = {
16
+ service: COGNITO_IDENTITY_SERVICE_NAME,
17
+ retryDecider: getRetryDecider(parseJsonError),
18
+ computeDelay: jitteredBackoff,
19
+ cache: 'no-store',
20
+ };
21
+
22
+ export { COGNITO_IDENTITY_SERVICE_NAME, DEFAULT_SERVICE_CLIENT_API_CONFIG };
23
+ //# 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,mBAAmB;AACpD,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) => Promise<boolean>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<boolean>)) | 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>;