@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.
Files changed (215) hide show
  1. package/dist/cjs/BackgroundProcessManager/types.js +5 -1
  2. package/dist/cjs/BackgroundProcessManager/types.js.map +1 -1
  3. package/dist/cjs/Cache/constants.js +3 -3
  4. package/dist/cjs/Cache/constants.js.map +1 -1
  5. package/dist/cjs/Cache/utils/cacheHelpers.js +4 -4
  6. package/dist/cjs/Cache/utils/cacheHelpers.js.map +1 -1
  7. package/dist/cjs/Cache/utils/errorHelpers.js +1 -1
  8. package/dist/cjs/Cache/utils/errorHelpers.js.map +1 -1
  9. package/dist/cjs/I18n/errorHelpers.js +1 -1
  10. package/dist/cjs/I18n/errorHelpers.js.map +1 -1
  11. package/dist/cjs/Logger/types.js +2 -1
  12. package/dist/cjs/Logger/types.js.map +1 -1
  13. package/dist/cjs/Platform/detectFramework.js +2 -2
  14. package/dist/cjs/Platform/detectFramework.js.map +1 -1
  15. package/dist/cjs/Platform/detection/Angular.js +2 -3
  16. package/dist/cjs/Platform/detection/Angular.js.map +1 -1
  17. package/dist/cjs/Platform/detection/Expo.js +1 -2
  18. package/dist/cjs/Platform/detection/Expo.js.map +1 -1
  19. package/dist/cjs/Platform/detection/Next.js +2 -3
  20. package/dist/cjs/Platform/detection/Next.js.map +1 -1
  21. package/dist/cjs/Platform/detection/Nuxt.js +2 -3
  22. package/dist/cjs/Platform/detection/Nuxt.js.map +1 -1
  23. package/dist/cjs/Platform/detection/React.js +2 -3
  24. package/dist/cjs/Platform/detection/React.js.map +1 -1
  25. package/dist/cjs/Platform/detection/ReactNative.js +1 -2
  26. package/dist/cjs/Platform/detection/ReactNative.js.map +1 -1
  27. package/dist/cjs/Platform/detection/Svelte.js +2 -3
  28. package/dist/cjs/Platform/detection/Svelte.js.map +1 -1
  29. package/dist/cjs/Platform/detection/Vue.js +2 -3
  30. package/dist/cjs/Platform/detection/Vue.js.map +1 -1
  31. package/dist/cjs/Platform/detection/Web.js +1 -2
  32. package/dist/cjs/Platform/detection/Web.js.map +1 -1
  33. package/dist/cjs/Platform/detection/index.js +1 -2
  34. package/dist/cjs/Platform/detection/index.js.map +1 -1
  35. package/dist/cjs/Platform/types.js +28 -14
  36. package/dist/cjs/Platform/types.js.map +1 -1
  37. package/dist/cjs/Platform/version.js +1 -1
  38. package/dist/cjs/Platform/version.js.map +1 -1
  39. package/dist/cjs/ServiceWorker/errorHelpers.js +1 -1
  40. package/dist/cjs/ServiceWorker/errorHelpers.js.map +1 -1
  41. package/dist/cjs/awsClients/pinpoint/errorHelpers.js +1 -1
  42. package/dist/cjs/awsClients/pinpoint/errorHelpers.js.map +1 -1
  43. package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js +15 -0
  44. package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js.map +1 -0
  45. package/dist/cjs/foundation/factories/middleware/index.js +9 -0
  46. package/dist/cjs/foundation/factories/middleware/index.js.map +1 -0
  47. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js +14 -0
  48. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js.map +1 -0
  49. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js +18 -0
  50. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js.map +1 -0
  51. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js +37 -0
  52. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js.map +1 -0
  53. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js +32 -0
  54. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js.map +1 -0
  55. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js +17 -0
  56. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js.map +1 -0
  57. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js +9 -0
  58. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js.map +1 -0
  59. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js +13 -0
  60. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js.map +1 -0
  61. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js +24 -0
  62. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js.map +1 -0
  63. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js +9 -0
  64. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js.map +1 -0
  65. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js +9 -0
  66. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js.map +1 -0
  67. package/dist/cjs/{awsClients/cognitoIdentity/types.js → foundation/factories/serviceClients/cognitoIdentity/types/sdk.js} +1 -1
  68. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/sdk.js.map +1 -0
  69. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js +6 -0
  70. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js.map +1 -0
  71. package/dist/cjs/index.js +6 -5
  72. package/dist/cjs/index.js.map +1 -1
  73. package/dist/cjs/parseAmplifyOutputs.js +3 -4
  74. package/dist/cjs/parseAmplifyOutputs.js.map +1 -1
  75. package/dist/cjs/providers/pinpoint/types/errors.js +2 -1
  76. package/dist/cjs/providers/pinpoint/types/errors.js.map +1 -1
  77. package/dist/cjs/singleton/API/types.js +5 -1
  78. package/dist/cjs/singleton/API/types.js.map +1 -1
  79. package/dist/cjs/singleton/Auth/index.js +12 -0
  80. package/dist/cjs/singleton/Auth/index.js.map +1 -1
  81. package/dist/cjs/singleton/Auth/utils/errorHelpers.js +1 -1
  82. package/dist/cjs/singleton/Auth/utils/errorHelpers.js.map +1 -1
  83. package/dist/cjs/singleton/Auth/utils/index.js +4 -5
  84. package/dist/cjs/singleton/Auth/utils/index.js.map +1 -1
  85. package/dist/cjs/singleton/apis/clearCredentials.js +1 -2
  86. package/dist/cjs/singleton/apis/clearCredentials.js.map +1 -1
  87. package/dist/cjs/types/errors.js +2 -1
  88. package/dist/cjs/types/errors.js.map +1 -1
  89. package/dist/cjs/utils/convert/base64/bytesToString.js +1 -2
  90. package/dist/cjs/utils/convert/base64/bytesToString.js.map +1 -1
  91. package/dist/cjs/utils/cryptoSecureRandomInt.js +1 -2
  92. package/dist/cjs/utils/cryptoSecureRandomInt.js.map +1 -1
  93. package/dist/cjs/utils/getClientInfo/getClientInfo.js +1 -2
  94. package/dist/cjs/utils/getClientInfo/getClientInfo.js.map +1 -1
  95. package/dist/cjs/utils/isTokenExpired.js +1 -2
  96. package/dist/cjs/utils/isTokenExpired.js.map +1 -1
  97. package/dist/cjs/utils/retry/jitteredBackoff.js +1 -2
  98. package/dist/cjs/utils/retry/jitteredBackoff.js.map +1 -1
  99. package/dist/cjs/utils/retry/retry.js +1 -2
  100. package/dist/cjs/utils/retry/retry.js.map +1 -1
  101. package/dist/cjs/utils/urlSafeDecode.js +1 -2
  102. package/dist/cjs/utils/urlSafeDecode.js.map +1 -1
  103. package/dist/cjs/utils/urlSafeEncode.js +1 -2
  104. package/dist/cjs/utils/urlSafeEncode.js.map +1 -1
  105. package/dist/esm/Cache/constants.mjs +3 -3
  106. package/dist/esm/Cache/constants.mjs.map +1 -1
  107. package/dist/esm/Platform/version.d.ts +1 -1
  108. package/dist/esm/Platform/version.mjs +1 -1
  109. package/dist/esm/Platform/version.mjs.map +1 -1
  110. package/dist/esm/awsClients/pinpoint/base.d.ts +1 -1
  111. package/dist/esm/awsClients/pinpoint/getInAppMessages.d.ts +2 -2
  112. package/dist/esm/awsClients/pinpoint/putEvents.d.ts +2 -2
  113. package/dist/esm/awsClients/pinpoint/updateEndpoint.d.ts +2 -2
  114. package/dist/esm/clients/internal/composeServiceApi.d.ts +4 -1
  115. package/dist/esm/clients/internal/composeTransferHandler.d.ts +1 -1
  116. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getCanonicalHeaders.d.ts +1 -1
  117. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getHashedPayload.d.ts +1 -1
  118. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getSignedHeaders.d.ts +1 -1
  119. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.d.ts +5 -0
  120. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs +12 -0
  121. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs.map +1 -0
  122. package/dist/esm/foundation/factories/middleware/index.d.ts +1 -0
  123. package/dist/esm/foundation/factories/middleware/index.mjs +2 -0
  124. package/dist/esm/{awsClients/cognitoIdentity → foundation/factories/middleware}/index.mjs.map +1 -1
  125. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.d.ts +4 -0
  126. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs +27 -0
  127. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs.map +1 -0
  128. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.d.ts +10 -0
  129. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs +34 -0
  130. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs.map +1 -0
  131. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.d.ts +14 -0
  132. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs +50 -0
  133. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs.map +1 -0
  134. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.d.ts +14 -0
  135. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs +45 -0
  136. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs.map +1 -0
  137. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.d.ts +8 -0
  138. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs +31 -0
  139. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs.map +1 -0
  140. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.d.ts +1 -0
  141. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs +2 -0
  142. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs.map +1 -0
  143. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.d.ts +4 -0
  144. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs +4 -0
  145. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs.map +1 -0
  146. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.d.ts +3 -0
  147. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs +20 -0
  148. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs.map +1 -0
  149. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.d.ts +1 -0
  150. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs +2 -0
  151. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs.map +1 -0
  152. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.d.ts +3 -0
  153. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs +2 -0
  154. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs.map +1 -0
  155. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs +2 -0
  156. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs.map +1 -0
  157. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.d.ts +6 -0
  158. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs +2 -0
  159. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs.map +1 -0
  160. package/dist/esm/index.d.ts +1 -1
  161. package/dist/esm/index.mjs +3 -2
  162. package/dist/esm/index.mjs.map +1 -1
  163. package/dist/esm/singleton/Auth/index.mjs +13 -0
  164. package/dist/esm/singleton/Auth/index.mjs.map +1 -1
  165. package/dist/esm/singleton/Auth/types.d.ts +8 -0
  166. package/dist/esm/utils/amplifyUrl/index.d.ts +4 -3
  167. package/dist/esm/utils/amplifyUrl/index.native.d.ts +4 -3
  168. package/dist/esm/utils/queuedStorage/createQueuedStorage.native.d.ts +1 -1
  169. package/internals/aws-clients/cognitoIdentity/package.json +4 -4
  170. package/package.json +9 -10
  171. package/src/Platform/version.ts +1 -1
  172. package/src/foundation/factories/middleware/createDisableCacheMiddleware.ts +18 -0
  173. package/src/foundation/factories/middleware/index.ts +4 -0
  174. package/src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts +15 -0
  175. package/src/foundation/factories/serviceClients/cognitoIdentity/constants.ts +20 -0
  176. package/src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.ts +62 -0
  177. package/src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.ts +48 -0
  178. package/src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.ts +23 -0
  179. package/src/foundation/factories/serviceClients/cognitoIdentity/handler/index.ts +4 -0
  180. package/src/foundation/factories/serviceClients/cognitoIdentity/index.ts +12 -0
  181. package/src/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.ts +29 -0
  182. package/src/foundation/factories/serviceClients/cognitoIdentity/serde/index.ts +4 -0
  183. package/src/foundation/factories/serviceClients/cognitoIdentity/types/index.ts +9 -0
  184. package/src/{awsClients/cognitoIdentity/types.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.ts} +0 -2
  185. package/src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.ts +8 -0
  186. package/src/index.ts +5 -4
  187. package/src/singleton/Auth/index.ts +19 -0
  188. package/src/singleton/Auth/types.ts +8 -0
  189. package/dist/cjs/awsClients/cognitoIdentity/base.js +0 -69
  190. package/dist/cjs/awsClients/cognitoIdentity/base.js.map +0 -1
  191. package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js +0 -41
  192. package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js.map +0 -1
  193. package/dist/cjs/awsClients/cognitoIdentity/getId.js +0 -32
  194. package/dist/cjs/awsClients/cognitoIdentity/getId.js.map +0 -1
  195. package/dist/cjs/awsClients/cognitoIdentity/index.js +0 -11
  196. package/dist/cjs/awsClients/cognitoIdentity/index.js.map +0 -1
  197. package/dist/cjs/awsClients/cognitoIdentity/types.js.map +0 -1
  198. package/dist/esm/awsClients/cognitoIdentity/base.d.ts +0 -29
  199. package/dist/esm/awsClients/cognitoIdentity/base.mjs +0 -83
  200. package/dist/esm/awsClients/cognitoIdentity/base.mjs.map +0 -1
  201. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.d.ts +0 -18
  202. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs +0 -56
  203. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs.map +0 -1
  204. package/dist/esm/awsClients/cognitoIdentity/getId.d.ts +0 -18
  205. package/dist/esm/awsClients/cognitoIdentity/getId.mjs +0 -47
  206. package/dist/esm/awsClients/cognitoIdentity/getId.mjs.map +0 -1
  207. package/dist/esm/awsClients/cognitoIdentity/index.d.ts +0 -2
  208. package/dist/esm/awsClients/cognitoIdentity/index.mjs +0 -3
  209. package/dist/esm/awsClients/cognitoIdentity/types.mjs +0 -2
  210. package/dist/esm/awsClients/cognitoIdentity/types.mjs.map +0 -1
  211. package/src/awsClients/cognitoIdentity/base.ts +0 -101
  212. package/src/awsClients/cognitoIdentity/getCredentialsForIdentity.ts +0 -77
  213. package/src/awsClients/cognitoIdentity/getId.ts +0 -61
  214. package/src/awsClients/cognitoIdentity/index.ts +0 -9
  215. /package/dist/esm/{awsClients/cognitoIdentity/types.d.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.d.ts} +0 -0
@@ -1,5 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ import { ConsoleLogger } from '../../Logger';
4
+
3
5
  import {
4
6
  AuthConfig,
5
7
  AuthSession,
@@ -9,6 +11,7 @@ import {
9
11
  LibraryAuthOptions,
10
12
  } from './types';
11
13
 
14
+ const logger = new ConsoleLogger('Auth');
12
15
  export class AuthClass {
13
16
  private authConfig?: AuthConfig;
14
17
  private authOptions?: LibraryAuthOptions;
@@ -29,6 +32,19 @@ export class AuthClass {
29
32
  ): void {
30
33
  this.authConfig = authResourcesConfig;
31
34
  this.authOptions = authOptions;
35
+
36
+ if (authResourcesConfig && authResourcesConfig.Cognito?.userPoolEndpoint) {
37
+ logger.warn(getCustomEndpointWarningMessage('Amazon Cognito User Pool'));
38
+ }
39
+
40
+ if (
41
+ authResourcesConfig &&
42
+ authResourcesConfig.Cognito?.identityPoolEndpoint
43
+ ) {
44
+ logger.warn(
45
+ getCustomEndpointWarningMessage('Amazon Cognito Identity Pool'),
46
+ );
47
+ }
32
48
  }
33
49
 
34
50
  /**
@@ -94,3 +110,6 @@ export class AuthClass {
94
110
  );
95
111
  }
96
112
  }
113
+
114
+ const getCustomEndpointWarningMessage = (target: string): string =>
115
+ `You are using a custom Amazon ${target} endpoint, ensure the endpoint is correct.`;
@@ -135,12 +135,17 @@ export interface AuthIdentityPoolConfig {
135
135
 
136
136
  export interface CognitoIdentityPoolConfig {
137
137
  identityPoolId: string;
138
+ /**
139
+ * Use this field to specify a custom endpoint for the Amazon Cognito identity pool. Ensure this endpoint is correct and valid.
140
+ */
141
+ identityPoolEndpoint?: string;
138
142
  allowGuestAccess?: boolean;
139
143
  }
140
144
 
141
145
  export interface AuthUserPoolConfig {
142
146
  Cognito: CognitoUserPoolConfig & {
143
147
  identityPoolId?: never;
148
+ identityPoolEndpoint?: never;
144
149
  allowGuestAccess?: never;
145
150
  };
146
151
  }
@@ -150,6 +155,9 @@ export type CognitoUserPoolConfigMfaStatus = 'on' | 'off' | 'optional';
150
155
  export interface CognitoUserPoolConfig {
151
156
  userPoolClientId: string;
152
157
  userPoolId: string;
158
+ /**
159
+ * Use this field to specify a custom endpoint for the Amazon Cognito user pool. Ensure this endpoint is correct and valid.
160
+ */
153
161
  userPoolEndpoint?: string;
154
162
  signUpVerificationMethod?: 'code' | 'link';
155
163
  loginWith?: {
@@ -1,69 +0,0 @@
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.getSharedHeaders = exports.defaultConfig = exports.cognitoIdentityTransferHandler = void 0;
7
- const clients_1 = require("../../clients");
8
- const composeTransferHandler_1 = require("../../clients/internal/composeTransferHandler");
9
- const retry_1 = require("../../clients/middleware/retry");
10
- const Platform_1 = require("../../Platform");
11
- const detectFramework_1 = require("../../Platform/detectFramework");
12
- const amplifyUrl_1 = require("../../utils/amplifyUrl");
13
- /**
14
- * The service name used to sign requests if the API requires authentication.
15
- */
16
- const SERVICE_NAME = 'cognito-identity';
17
- /**
18
- * The endpoint resolver function that returns the endpoint URL for a given region.
19
- */
20
- const endpointResolver = ({ region }) => ({
21
- url: new amplifyUrl_1.AmplifyUrl(`https://cognito-identity.${region}.${(0, clients_1.getDnsSuffix)(region)}`),
22
- });
23
- /**
24
- * A Cognito Identity-specific middleware that disables caching for all requests.
25
- */
26
- const disableCacheMiddlewareFactory = () => next => async function disableCacheMiddleware(request) {
27
- request.headers['cache-control'] = 'no-store';
28
- return next(request);
29
- };
30
- /**
31
- * A Cognito Identity-specific transfer handler that does NOT sign requests, and
32
- * disables caching.
33
- *
34
- * @internal
35
- */
36
- exports.cognitoIdentityTransferHandler = (0, composeTransferHandler_1.composeTransferHandler)(clients_1.unauthenticatedHandler, [disableCacheMiddlewareFactory]);
37
- /**
38
- * @internal
39
- */
40
- exports.defaultConfig = {
41
- service: SERVICE_NAME,
42
- endpointResolver,
43
- retryDecider: (0, retry_1.getRetryDecider)(clients_1.parseJsonError),
44
- computeDelay: retry_1.jitteredBackoff,
45
- userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),
46
- cache: 'no-store',
47
- };
48
- (0, detectFramework_1.observeFrameworkChanges)(() => {
49
- exports.defaultConfig.userAgentValue = (0, Platform_1.getAmplifyUserAgent)();
50
- });
51
- /**
52
- * @internal
53
- */
54
- const getSharedHeaders = (operation) => ({
55
- 'content-type': 'application/x-amz-json-1.1',
56
- 'x-amz-target': `AWSCognitoIdentityService.${operation}`,
57
- });
58
- exports.getSharedHeaders = getSharedHeaders;
59
- /**
60
- * @internal
61
- */
62
- const buildHttpRpcRequest = ({ url }, headers, body) => ({
63
- headers,
64
- url,
65
- body,
66
- method: 'POST',
67
- });
68
- exports.buildHttpRpcRequest = buildHttpRpcRequest;
69
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../src/awsClients/cognitoIdentity/base.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.getSharedHeaders = exports.defaultConfig = exports.cognitoIdentityTransferHandler = void 0;\nconst clients_1 = require(\"../../clients\");\nconst composeTransferHandler_1 = require(\"../../clients/internal/composeTransferHandler\");\nconst retry_1 = require(\"../../clients/middleware/retry\");\nconst Platform_1 = require(\"../../Platform\");\nconst detectFramework_1 = require(\"../../Platform/detectFramework\");\nconst amplifyUrl_1 = require(\"../../utils/amplifyUrl\");\n/**\n * The service name used to sign requests if the API requires authentication.\n */\nconst SERVICE_NAME = 'cognito-identity';\n/**\n * The endpoint resolver function that returns the endpoint URL for a given region.\n */\nconst endpointResolver = ({ region }) => ({\n url: new amplifyUrl_1.AmplifyUrl(`https://cognito-identity.${region}.${(0, clients_1.getDnsSuffix)(region)}`),\n});\n/**\n * A Cognito Identity-specific middleware that disables caching for all requests.\n */\nconst disableCacheMiddlewareFactory = () => next => async function disableCacheMiddleware(request) {\n request.headers['cache-control'] = 'no-store';\n return next(request);\n};\n/**\n * A Cognito Identity-specific transfer handler that does NOT sign requests, and\n * disables caching.\n *\n * @internal\n */\nexports.cognitoIdentityTransferHandler = (0, composeTransferHandler_1.composeTransferHandler)(clients_1.unauthenticatedHandler, [disableCacheMiddlewareFactory]);\n/**\n * @internal\n */\nexports.defaultConfig = {\n service: SERVICE_NAME,\n endpointResolver,\n retryDecider: (0, retry_1.getRetryDecider)(clients_1.parseJsonError),\n computeDelay: retry_1.jitteredBackoff,\n userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),\n cache: 'no-store',\n};\n(0, detectFramework_1.observeFrameworkChanges)(() => {\n exports.defaultConfig.userAgentValue = (0, Platform_1.getAmplifyUserAgent)();\n});\n/**\n * @internal\n */\nconst getSharedHeaders = (operation) => ({\n 'content-type': 'application/x-amz-json-1.1',\n 'x-amz-target': `AWSCognitoIdentityService.${operation}`,\n});\nexports.getSharedHeaders = getSharedHeaders;\n/**\n * @internal\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;AAC7D,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,8BAA8B,GAAG,MAAM;AAChI,MAAM,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC;AAC1C,MAAM,wBAAwB,GAAG,OAAO,CAAC,+CAA+C,CAAC;AACzF,MAAM,OAAO,GAAG,OAAO,CAAC,gCAAgC,CAAC;AACzD,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAC5C,MAAM,iBAAiB,GAAG,OAAO,CAAC,gCAAgC,CAAC;AACnE,MAAM,YAAY,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACtD;AACA;AACA;AACA,MAAM,YAAY,GAAG,kBAAkB;AACvC;AACA;AACA;AACA,MAAM,gBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM;AAC1C,IAAI,GAAG,EAAE,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC,EAAE,IAAI,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AACjH,CAAC,CAAC;AACF;AACA;AACA;AACA,MAAM,6BAA6B,GAAG,MAAM,IAAI,IAAI,eAAe,sBAAsB,CAAC,OAAO,EAAE;AACnG,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;AACjD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC;AACxB,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,CAAC,8BAA8B,GAAG,IAAI,wBAAwB,CAAC,sBAAsB,EAAE,SAAS,CAAC,sBAAsB,EAAE,CAAC,6BAA6B,CAAC,CAAC;AAChK;AACA;AACA;AACA,OAAO,CAAC,aAAa,GAAG;AACxB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,gBAAgB;AACpB,IAAI,YAAY,EAAE,IAAI,OAAO,CAAC,eAAe,EAAE,SAAS,CAAC,cAAc,CAAC;AACxE,IAAI,YAAY,EAAE,OAAO,CAAC,eAAe;AACzC,IAAI,cAAc,EAAE,IAAI,UAAU,CAAC,mBAAmB,GAAG;AACzD,IAAI,KAAK,EAAE,UAAU;AACrB,CAAC;AACD,IAAI,iBAAiB,CAAC,uBAAuB,EAAE,MAAM;AACrD,IAAI,OAAO,CAAC,aAAa,CAAC,cAAc,GAAG,IAAI,UAAU,CAAC,mBAAmB,GAAG;AAChF,CAAC,CAAC;AACF;AACA;AACA;AACA,MAAM,gBAAgB,GAAG,CAAC,SAAS,MAAM;AACzC,IAAI,cAAc,EAAE,4BAA4B;AAChD,IAAI,cAAc,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAC;AAC5D,CAAC,CAAC;AACF,OAAO,CAAC,gBAAgB,GAAG,gBAAgB;AAC3C;AACA;AACA;AACA,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;AACF,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -1,41 +0,0 @@
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.getCredentialsForIdentity = void 0;
7
- const clients_1 = require("../../clients");
8
- const internal_1 = require("../../clients/internal");
9
- const base_1 = require("./base");
10
- const getCredentialsForIdentitySerializer = (input, endpoint) => {
11
- const headers = (0, base_1.getSharedHeaders)('GetCredentialsForIdentity');
12
- const body = JSON.stringify(input);
13
- return (0, base_1.buildHttpRpcRequest)(endpoint, headers, body);
14
- };
15
- const getCredentialsForIdentityDeserializer = async (response) => {
16
- if (response.statusCode >= 300) {
17
- const error = await (0, clients_1.parseJsonError)(response);
18
- throw error;
19
- }
20
- else {
21
- const body = await (0, clients_1.parseJsonBody)(response);
22
- return {
23
- IdentityId: body.IdentityId,
24
- Credentials: deserializeCredentials(body.Credentials),
25
- $metadata: (0, clients_1.parseMetadata)(response),
26
- };
27
- }
28
- };
29
- const deserializeCredentials = ({ AccessKeyId, SecretKey, SessionToken, Expiration, } = {}) => {
30
- return {
31
- AccessKeyId,
32
- SecretKey,
33
- SessionToken,
34
- Expiration: Expiration && new Date(Expiration * 1000),
35
- };
36
- };
37
- /**
38
- * @internal
39
- */
40
- exports.getCredentialsForIdentity = (0, internal_1.composeServiceApi)(base_1.cognitoIdentityTransferHandler, getCredentialsForIdentitySerializer, getCredentialsForIdentityDeserializer, base_1.defaultConfig);
41
- //# sourceMappingURL=getCredentialsForIdentity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCredentialsForIdentity.js","sources":["../../../../src/awsClients/cognitoIdentity/getCredentialsForIdentity.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.getCredentialsForIdentity = void 0;\nconst clients_1 = require(\"../../clients\");\nconst internal_1 = require(\"../../clients/internal\");\nconst base_1 = require(\"./base\");\nconst getCredentialsForIdentitySerializer = (input, endpoint) => {\n const headers = (0, base_1.getSharedHeaders)('GetCredentialsForIdentity');\n const body = JSON.stringify(input);\n return (0, base_1.buildHttpRpcRequest)(endpoint, headers, body);\n};\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 = ({ AccessKeyId, SecretKey, SessionToken, Expiration, } = {}) => {\n return {\n AccessKeyId,\n SecretKey,\n SessionToken,\n Expiration: Expiration && new Date(Expiration * 1000),\n };\n};\n/**\n * @internal\n */\nexports.getCredentialsForIdentity = (0, internal_1.composeServiceApi)(base_1.cognitoIdentityTransferHandler, getCredentialsForIdentitySerializer, getCredentialsForIdentityDeserializer, base_1.defaultConfig);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,yBAAyB,GAAG,MAAM;AAC1C,MAAM,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC;AAC1C,MAAM,UAAU,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACpD,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;AAChC,MAAM,mCAAmC,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK;AACjE,IAAI,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;AAC7E,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;AACtC,IAAI,OAAO,IAAI,MAAM,CAAC,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC;AACnE,CAAC;AACD,MAAM,qCAAqC,GAAG,OAAO,QAAQ,KAAK;AAClE,IAAI,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;AACpC,QAAQ,MAAM,KAAK,GAAG,MAAM,IAAI,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC;AACnE,QAAQ,MAAM,KAAK;AACnB;AACA,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AACjE,QAAQ,OAAO;AACf,YAAY,UAAU,EAAE,IAAI,CAAC,UAAU;AACvC,YAAY,WAAW,EAAE,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC;AACjE,YAAY,SAAS,EAAE,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC7D,SAAS;AACT;AACA,CAAC;AACD,MAAM,sBAAsB,GAAG,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,GAAG,GAAG,EAAE,KAAK;AAC/F,IAAI,OAAO;AACX,QAAQ,WAAW;AACnB,QAAQ,SAAS;AACjB,QAAQ,YAAY;AACpB,QAAQ,UAAU,EAAE,UAAU,IAAI,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;AAC7D,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA,OAAO,CAAC,yBAAyB,GAAG,IAAI,UAAU,CAAC,iBAAiB,EAAE,MAAM,CAAC,8BAA8B,EAAE,mCAAmC,EAAE,qCAAqC,EAAE,MAAM,CAAC,aAAa,CAAC;;"}
@@ -1,32 +0,0 @@
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.getId = void 0;
7
- const clients_1 = require("../../clients");
8
- const internal_1 = require("../../clients/internal");
9
- const base_1 = require("./base");
10
- const getIdSerializer = (input, endpoint) => {
11
- const headers = (0, base_1.getSharedHeaders)('GetId');
12
- const body = JSON.stringify(input);
13
- return (0, base_1.buildHttpRpcRequest)(endpoint, headers, body);
14
- };
15
- const getIdDeserializer = async (response) => {
16
- if (response.statusCode >= 300) {
17
- const error = await (0, clients_1.parseJsonError)(response);
18
- throw error;
19
- }
20
- else {
21
- const body = await (0, clients_1.parseJsonBody)(response);
22
- return {
23
- IdentityId: body.IdentityId,
24
- $metadata: (0, clients_1.parseMetadata)(response),
25
- };
26
- }
27
- };
28
- /**
29
- * @internal
30
- */
31
- exports.getId = (0, internal_1.composeServiceApi)(base_1.cognitoIdentityTransferHandler, getIdSerializer, getIdDeserializer, base_1.defaultConfig);
32
- //# sourceMappingURL=getId.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getId.js","sources":["../../../../src/awsClients/cognitoIdentity/getId.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.getId = void 0;\nconst clients_1 = require(\"../../clients\");\nconst internal_1 = require(\"../../clients/internal\");\nconst base_1 = require(\"./base\");\nconst getIdSerializer = (input, endpoint) => {\n const headers = (0, base_1.getSharedHeaders)('GetId');\n const body = JSON.stringify(input);\n return (0, base_1.buildHttpRpcRequest)(endpoint, headers, body);\n};\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/**\n * @internal\n */\nexports.getId = (0, internal_1.composeServiceApi)(base_1.cognitoIdentityTransferHandler, getIdSerializer, getIdDeserializer, base_1.defaultConfig);\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,MAAM;AACtB,MAAM,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC;AAC1C,MAAM,UAAU,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACpD,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;AAChC,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK;AAC7C,IAAI,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC;AACzD,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;AACtC,IAAI,OAAO,IAAI,MAAM,CAAC,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC;AACnE,CAAC;AACD,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;AACnE,QAAQ,MAAM,KAAK;AACnB;AACA,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AACjE,QAAQ,OAAO;AACf,YAAY,UAAU,EAAE,IAAI,CAAC,UAAU;AACvC,YAAY,SAAS,EAAE,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC7D,SAAS;AACT;AACA,CAAC;AACD;AACA;AACA;AACA,OAAO,CAAC,KAAK,GAAG,IAAI,UAAU,CAAC,iBAAiB,EAAE,MAAM,CAAC,8BAA8B,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,CAAC,aAAa,CAAC;;"}
@@ -1,11 +0,0 @@
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.getCredentialsForIdentity = exports.getId = void 0;
7
- var getId_1 = require("./getId");
8
- Object.defineProperty(exports, "getId", { enumerable: true, get: function () { return getId_1.getId; } });
9
- var getCredentialsForIdentity_1 = require("./getCredentialsForIdentity");
10
- Object.defineProperty(exports, "getCredentialsForIdentity", { enumerable: true, get: function () { return getCredentialsForIdentity_1.getCredentialsForIdentity; } });
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/awsClients/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.getCredentialsForIdentity = exports.getId = void 0;\nvar getId_1 = require(\"./getId\");\nObject.defineProperty(exports, \"getId\", { enumerable: true, get: function () { return getId_1.getId; } });\nvar getCredentialsForIdentity_1 = require(\"./getCredentialsForIdentity\");\nObject.defineProperty(exports, \"getCredentialsForIdentity\", { enumerable: true, get: function () { return getCredentialsForIdentity_1.getCredentialsForIdentity; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,KAAK,GAAG,MAAM;AAC1D,IAAI,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC;AAChC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;AACzG,IAAI,2BAA2B,GAAG,OAAO,CAAC,6BAA6B,CAAC;AACxE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,2BAA2B,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sources":["../../../../src/awsClients/cognitoIdentity/types.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;;"}
@@ -1,29 +0,0 @@
1
- import { Endpoint, EndpointResolverOptions, Headers, 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>;
9
- /**
10
- * @internal
11
- */
12
- export declare const defaultConfig: {
13
- service: string;
14
- endpointResolver: ({ region }: EndpointResolverOptions) => {
15
- url: URL;
16
- };
17
- retryDecider: (response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>;
18
- computeDelay: (attempt: number) => number;
19
- userAgentValue: string;
20
- cache: string;
21
- };
22
- /**
23
- * @internal
24
- */
25
- export declare const getSharedHeaders: (operation: string) => Headers;
26
- /**
27
- * @internal
28
- */
29
- export declare const buildHttpRpcRequest: ({ url }: Endpoint, headers: Headers, body: any) => HttpRequest;
@@ -1,83 +0,0 @@
1
- import { getDnsSuffix } from '../../clients/endpoints/getDnsSuffix.mjs';
2
- import '../../types/errors.mjs';
3
- import '../../errors/errorHelpers.mjs';
4
- import { unauthenticatedHandler } from '../../clients/handlers/aws/unauthenticated.mjs';
5
- import { jitteredBackoff } from '../../clients/middleware/retry/jitteredBackoff.mjs';
6
- import { getRetryDecider } from '../../clients/middleware/retry/defaultRetryDecider.mjs';
7
- import '../../utils/getClientInfo/getClientInfo.mjs';
8
- import '../../utils/retry/retry.mjs';
9
- import '../../parseAWSExports.mjs';
10
- import 'uuid';
11
- import { AmplifyUrl } from '../../utils/amplifyUrl/index.mjs';
12
- import '../../singleton/Auth/utils/errorHelpers.mjs';
13
- import '@aws-crypto/sha256-js';
14
- import '@smithy/util-hex-encoding';
15
- import { getAmplifyUserAgent } from '../../Platform/index.mjs';
16
- import '../../Platform/types.mjs';
17
- import '../../BackgroundProcessManager/types.mjs';
18
- import '../../Reachability/Reachability.mjs';
19
- import '../../Hub/index.mjs';
20
- import '../../utils/sessionListener/index.mjs';
21
- import { composeTransferHandler } from '../../clients/internal/composeTransferHandler.mjs';
22
- import { parseJsonError } from '../../clients/serde/json.mjs';
23
- import { observeFrameworkChanges } from '../../Platform/detectFramework.mjs';
24
-
25
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
26
- // SPDX-License-Identifier: Apache-2.0
27
- /**
28
- * The service name used to sign requests if the API requires authentication.
29
- */
30
- const SERVICE_NAME = 'cognito-identity';
31
- /**
32
- * The endpoint resolver function that returns the endpoint URL for a given region.
33
- */
34
- const endpointResolver = ({ region }) => ({
35
- url: new AmplifyUrl(`https://cognito-identity.${region}.${getDnsSuffix(region)}`),
36
- });
37
- /**
38
- * A Cognito Identity-specific middleware that disables caching for all requests.
39
- */
40
- const disableCacheMiddlewareFactory = () => next => async function disableCacheMiddleware(request) {
41
- request.headers['cache-control'] = 'no-store';
42
- return next(request);
43
- };
44
- /**
45
- * A Cognito Identity-specific transfer handler that does NOT sign requests, and
46
- * disables caching.
47
- *
48
- * @internal
49
- */
50
- const cognitoIdentityTransferHandler = composeTransferHandler(unauthenticatedHandler, [disableCacheMiddlewareFactory]);
51
- /**
52
- * @internal
53
- */
54
- const defaultConfig = {
55
- service: SERVICE_NAME,
56
- endpointResolver,
57
- retryDecider: getRetryDecider(parseJsonError),
58
- computeDelay: jitteredBackoff,
59
- userAgentValue: getAmplifyUserAgent(),
60
- cache: 'no-store',
61
- };
62
- observeFrameworkChanges(() => {
63
- defaultConfig.userAgentValue = getAmplifyUserAgent();
64
- });
65
- /**
66
- * @internal
67
- */
68
- const getSharedHeaders = (operation) => ({
69
- 'content-type': 'application/x-amz-json-1.1',
70
- 'x-amz-target': `AWSCognitoIdentityService.${operation}`,
71
- });
72
- /**
73
- * @internal
74
- */
75
- const buildHttpRpcRequest = ({ url }, headers, body) => ({
76
- headers,
77
- url,
78
- body,
79
- method: 'POST',
80
- });
81
-
82
- export { buildHttpRpcRequest, cognitoIdentityTransferHandler, defaultConfig, getSharedHeaders };
83
- //# sourceMappingURL=base.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.mjs","sources":["../../../../src/awsClients/cognitoIdentity/base.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getDnsSuffix, parseJsonError, unauthenticatedHandler, } from '../../clients';\nimport { composeTransferHandler } from '../../clients/internal/composeTransferHandler';\nimport { getRetryDecider, jitteredBackoff, } from '../../clients/middleware/retry';\nimport { getAmplifyUserAgent } from '../../Platform';\nimport { observeFrameworkChanges } from '../../Platform/detectFramework';\nimport { AmplifyUrl } from '../../utils/amplifyUrl';\n/**\n * The service name used to sign requests if the API requires authentication.\n */\nconst SERVICE_NAME = 'cognito-identity';\n/**\n * The endpoint resolver function that returns the endpoint URL for a given region.\n */\nconst endpointResolver = ({ region }) => ({\n url: new AmplifyUrl(`https://cognito-identity.${region}.${getDnsSuffix(region)}`),\n});\n/**\n * A Cognito Identity-specific middleware that disables caching for all requests.\n */\nconst disableCacheMiddlewareFactory = () => next => async function disableCacheMiddleware(request) {\n request.headers['cache-control'] = 'no-store';\n return next(request);\n};\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, [disableCacheMiddlewareFactory]);\n/**\n * @internal\n */\nexport const defaultConfig = {\n service: SERVICE_NAME,\n endpointResolver,\n retryDecider: getRetryDecider(parseJsonError),\n computeDelay: jitteredBackoff,\n userAgentValue: getAmplifyUserAgent(),\n cache: 'no-store',\n};\nobserveFrameworkChanges(() => {\n defaultConfig.userAgentValue = getAmplifyUserAgent();\n});\n/**\n * @internal\n */\nexport const getSharedHeaders = (operation) => ({\n 'content-type': 'application/x-amz-json-1.1',\n 'x-amz-target': `AWSCognitoIdentityService.${operation}`,\n});\n/**\n * @internal\n */\nexport const buildHttpRpcRequest = ({ url }, headers, body) => ({\n headers,\n url,\n body,\n method: 'POST',\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAOA;AACA;AACA;AACA,MAAM,YAAY,GAAG,kBAAkB;AACvC;AACA;AACA;AACA,MAAM,gBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM;AAC1C,IAAI,GAAG,EAAE,IAAI,UAAU,CAAC,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC,CAAC;AACF;AACA;AACA;AACA,MAAM,6BAA6B,GAAG,MAAM,IAAI,IAAI,eAAe,sBAAsB,CAAC,OAAO,EAAE;AACnG,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;AACjD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC;AACxB,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,8BAA8B,GAAG,sBAAsB,CAAC,sBAAsB,EAAE,CAAC,6BAA6B,CAAC;AAC5H;AACA;AACA;AACY,MAAC,aAAa,GAAG;AAC7B,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,gBAAgB;AACpB,IAAI,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;AACjD,IAAI,YAAY,EAAE,eAAe;AACjC,IAAI,cAAc,EAAE,mBAAmB,EAAE;AACzC,IAAI,KAAK,EAAE,UAAU;AACrB;AACA,uBAAuB,CAAC,MAAM;AAC9B,IAAI,aAAa,CAAC,cAAc,GAAG,mBAAmB,EAAE;AACxD,CAAC,CAAC;AACF;AACA;AACA;AACY,MAAC,gBAAgB,GAAG,CAAC,SAAS,MAAM;AAChD,IAAI,cAAc,EAAE,4BAA4B;AAChD,IAAI,cAAc,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAC;AAC5D,CAAC;AACD;AACA;AACA;AACY,MAAC,mBAAmB,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,MAAM;AAChE,IAAI,OAAO;AACX,IAAI,GAAG;AACP,IAAI,IAAI;AACR,IAAI,MAAM,EAAE,MAAM;AAClB,CAAC;;;;"}
@@ -1,18 +0,0 @@
1
- import { Endpoint, HttpResponse } from '../../clients';
2
- import type { GetCredentialsForIdentityCommandInput as GetCredentialsForIdentityInput, GetCredentialsForIdentityCommandOutput as GetCredentialsForIdentityOutput } from './types';
3
- export type { GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput };
4
- /**
5
- * @internal
6
- */
7
- export declare const getCredentialsForIdentity: (config: {
8
- service?: string | undefined;
9
- endpointResolver?: (((options: import("../../clients").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients").EndpointResolverOptions) => {
10
- url: URL;
11
- })) | undefined;
12
- retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients").MiddlewareContext | undefined) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
13
- computeDelay?: ((attempt: number) => number) | undefined;
14
- userAgentValue?: string | undefined;
15
- cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
16
- } & {
17
- [x: string]: unknown;
18
- }, input: import("./types").GetCredentialsForIdentityInput) => Promise<GetCredentialsForIdentityOutput>;
@@ -1,56 +0,0 @@
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 '../../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 { defaultConfig, cognitoIdentityTransferHandler, buildHttpRpcRequest, getSharedHeaders } from './base.mjs';
20
-
21
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
- // SPDX-License-Identifier: Apache-2.0
23
- const getCredentialsForIdentitySerializer = (input, endpoint) => {
24
- const headers = getSharedHeaders('GetCredentialsForIdentity');
25
- const body = JSON.stringify(input);
26
- return buildHttpRpcRequest(endpoint, headers, body);
27
- };
28
- const getCredentialsForIdentityDeserializer = async (response) => {
29
- if (response.statusCode >= 300) {
30
- const error = await parseJsonError(response);
31
- throw error;
32
- }
33
- else {
34
- const body = await parseJsonBody(response);
35
- return {
36
- IdentityId: body.IdentityId,
37
- Credentials: deserializeCredentials(body.Credentials),
38
- $metadata: parseMetadata(response),
39
- };
40
- }
41
- };
42
- const deserializeCredentials = ({ AccessKeyId, SecretKey, SessionToken, Expiration, } = {}) => {
43
- return {
44
- AccessKeyId,
45
- SecretKey,
46
- SessionToken,
47
- Expiration: Expiration && new Date(Expiration * 1000),
48
- };
49
- };
50
- /**
51
- * @internal
52
- */
53
- const getCredentialsForIdentity = composeServiceApi(cognitoIdentityTransferHandler, getCredentialsForIdentitySerializer, getCredentialsForIdentityDeserializer, defaultConfig);
54
-
55
- export { getCredentialsForIdentity };
56
- //# sourceMappingURL=getCredentialsForIdentity.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCredentialsForIdentity.mjs","sources":["../../../../src/awsClients/cognitoIdentity/getCredentialsForIdentity.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 { buildHttpRpcRequest, cognitoIdentityTransferHandler, defaultConfig, getSharedHeaders, } from './base';\nconst getCredentialsForIdentitySerializer = (input, endpoint) => {\n const headers = getSharedHeaders('GetCredentialsForIdentity');\n const body = JSON.stringify(input);\n return buildHttpRpcRequest(endpoint, headers, body);\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 = ({ AccessKeyId, SecretKey, SessionToken, Expiration, } = {}) => {\n return {\n AccessKeyId,\n SecretKey,\n SessionToken,\n Expiration: Expiration && new Date(Expiration * 1000),\n };\n};\n/**\n * @internal\n */\nexport const getCredentialsForIdentity = composeServiceApi(cognitoIdentityTransferHandler, getCredentialsForIdentitySerializer, getCredentialsForIdentityDeserializer, defaultConfig);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAIA,MAAM,mCAAmC,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK;AACjE,IAAI,MAAM,OAAO,GAAG,gBAAgB,CAAC,2BAA2B,CAAC;AACjE,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;AACtC,IAAI,OAAO,mBAAmB,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC;AACvD,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,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,GAAG,GAAG,EAAE,KAAK;AAC/F,IAAI,OAAO;AACX,QAAQ,WAAW;AACnB,QAAQ,SAAS;AACjB,QAAQ,YAAY;AACpB,QAAQ,UAAU,EAAE,UAAU,IAAI,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;AAC7D,KAAK;AACL,CAAC;AACD;AACA;AACA;AACY,MAAC,yBAAyB,GAAG,iBAAiB,CAAC,8BAA8B,EAAE,mCAAmC,EAAE,qCAAqC,EAAE,aAAa;;;;"}
@@ -1,18 +0,0 @@
1
- import { Endpoint, HttpResponse } from '../../clients';
2
- import { GetIdCommandInput as GetIdInput, GetIdCommandOutput as GetIdOutput } from './types';
3
- export type { GetIdInput, GetIdOutput };
4
- /**
5
- * @internal
6
- */
7
- export declare const getId: (config: {
8
- service?: string | undefined;
9
- endpointResolver?: (((options: import("../../clients").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients").EndpointResolverOptions) => {
10
- url: URL;
11
- })) | undefined;
12
- retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients").MiddlewareContext | undefined) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
13
- computeDelay?: ((attempt: number) => number) | undefined;
14
- userAgentValue?: string | undefined;
15
- cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
16
- } & {
17
- [x: string]: unknown;
18
- }, input: import("./types").GetIdInput) => Promise<GetIdOutput>;
@@ -1,47 +0,0 @@
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 '../../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 { defaultConfig, cognitoIdentityTransferHandler, buildHttpRpcRequest, getSharedHeaders } from './base.mjs';
20
-
21
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
- // SPDX-License-Identifier: Apache-2.0
23
- const getIdSerializer = (input, endpoint) => {
24
- const headers = getSharedHeaders('GetId');
25
- const body = JSON.stringify(input);
26
- return buildHttpRpcRequest(endpoint, headers, body);
27
- };
28
- const getIdDeserializer = async (response) => {
29
- if (response.statusCode >= 300) {
30
- const error = await parseJsonError(response);
31
- throw error;
32
- }
33
- else {
34
- const body = await parseJsonBody(response);
35
- return {
36
- IdentityId: body.IdentityId,
37
- $metadata: parseMetadata(response),
38
- };
39
- }
40
- };
41
- /**
42
- * @internal
43
- */
44
- const getId = composeServiceApi(cognitoIdentityTransferHandler, getIdSerializer, getIdDeserializer, defaultConfig);
45
-
46
- export { getId };
47
- //# sourceMappingURL=getId.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getId.mjs","sources":["../../../../src/awsClients/cognitoIdentity/getId.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 { buildHttpRpcRequest, cognitoIdentityTransferHandler, defaultConfig, getSharedHeaders, } from './base';\nconst getIdSerializer = (input, endpoint) => {\n const headers = getSharedHeaders('GetId');\n const body = JSON.stringify(input);\n return buildHttpRpcRequest(endpoint, headers, body);\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/**\n * @internal\n */\nexport const getId = composeServiceApi(cognitoIdentityTransferHandler, getIdSerializer, getIdDeserializer, defaultConfig);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAIA,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK;AAC7C,IAAI,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC;AAC7C,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;AACtC,IAAI,OAAO,mBAAmB,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC;AACvD,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;AACD;AACA;AACA;AACY,MAAC,KAAK,GAAG,iBAAiB,CAAC,8BAA8B,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa;;;;"}
@@ -1,2 +0,0 @@
1
- export { getId, GetIdInput, GetIdOutput } from './getId';
2
- export { getCredentialsForIdentity, GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, } from './getCredentialsForIdentity';
@@ -1,3 +0,0 @@
1
- export { getId } from './getId.mjs';
2
- export { getCredentialsForIdentity } from './getCredentialsForIdentity.mjs';
3
- //# sourceMappingURL=index.mjs.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}