@aws-amplify/core 6.4.7-local-stack.0aa9031.0 → 6.4.7-next-15.7992a88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Platform/version.js +1 -1
- package/dist/cjs/Platform/version.js.map +1 -1
- package/dist/cjs/awsClients/cognitoIdentity/base.js +69 -0
- package/dist/cjs/awsClients/cognitoIdentity/base.js.map +1 -0
- package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js +41 -0
- package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js.map +1 -0
- package/dist/cjs/awsClients/cognitoIdentity/getId.js +32 -0
- package/dist/cjs/awsClients/cognitoIdentity/getId.js.map +1 -0
- package/dist/cjs/awsClients/cognitoIdentity/index.js +11 -0
- package/dist/cjs/awsClients/cognitoIdentity/index.js.map +1 -0
- package/dist/cjs/{foundation/factories/serviceClients/cognitoIdentity/types/sdk.js → awsClients/cognitoIdentity/types.js} +1 -1
- package/dist/cjs/awsClients/cognitoIdentity/types.js.map +1 -0
- package/dist/cjs/index.js +5 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/Platform/version.d.ts +1 -1
- package/dist/esm/Platform/version.mjs +1 -1
- package/dist/esm/Platform/version.mjs.map +1 -1
- package/dist/esm/awsClients/cognitoIdentity/base.d.ts +29 -0
- package/dist/esm/awsClients/cognitoIdentity/base.mjs +73 -0
- package/dist/esm/awsClients/cognitoIdentity/base.mjs.map +1 -0
- package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.d.ts +18 -0
- package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs +47 -0
- package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs.map +1 -0
- package/dist/esm/awsClients/cognitoIdentity/getId.d.ts +18 -0
- package/dist/esm/awsClients/cognitoIdentity/getId.mjs +38 -0
- package/dist/esm/awsClients/cognitoIdentity/getId.mjs.map +1 -0
- package/dist/esm/awsClients/cognitoIdentity/index.d.ts +2 -0
- package/dist/esm/awsClients/cognitoIdentity/index.mjs +3 -0
- package/dist/esm/{foundation/factories/middleware → awsClients/cognitoIdentity}/index.mjs.map +1 -1
- package/dist/esm/awsClients/cognitoIdentity/types.mjs +2 -0
- package/dist/esm/awsClients/cognitoIdentity/types.mjs.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.mjs +2 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/singleton/Auth/types.d.ts +0 -2
- package/package.json +3 -3
- package/src/Platform/version.ts +1 -1
- package/src/awsClients/cognitoIdentity/base.ts +101 -0
- package/src/awsClients/cognitoIdentity/getCredentialsForIdentity.ts +77 -0
- package/src/awsClients/cognitoIdentity/getId.ts +61 -0
- package/src/awsClients/cognitoIdentity/index.ts +9 -0
- package/src/{foundation/factories/serviceClients/cognitoIdentity/types/sdk.ts → awsClients/cognitoIdentity/types.ts} +2 -0
- package/src/index.ts +6 -5
- package/src/singleton/Auth/types.ts +0 -2
- package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js +0 -15
- package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js.map +0 -1
- package/dist/cjs/foundation/factories/middleware/index.js +0 -9
- package/dist/cjs/foundation/factories/middleware/index.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js +0 -14
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js +0 -18
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js +0 -37
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js +0 -32
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js +0 -17
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js +0 -9
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js +0 -13
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js +0 -24
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js +0 -9
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js +0 -9
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/sdk.js.map +0 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js +0 -6
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js.map +0 -1
- package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.d.ts +0 -5
- package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs +0 -12
- package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs.map +0 -1
- package/dist/esm/foundation/factories/middleware/index.d.ts +0 -1
- package/dist/esm/foundation/factories/middleware/index.mjs +0 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.d.ts +0 -4
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs +0 -27
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.d.ts +0 -10
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs +0 -23
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.d.ts +0 -14
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs +0 -42
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.d.ts +0 -14
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs +0 -37
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.d.ts +0 -8
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs +0 -22
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.d.ts +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs +0 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.d.ts +0 -3
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs +0 -4
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.d.ts +0 -3
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs +0 -20
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.d.ts +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs +0 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.d.ts +0 -3
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs +0 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs +0 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs.map +0 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.d.ts +0 -6
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs +0 -2
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs.map +0 -1
- package/src/foundation/factories/middleware/createDisableCacheMiddleware.ts +0 -18
- package/src/foundation/factories/middleware/index.ts +0 -4
- package/src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts +0 -15
- package/src/foundation/factories/serviceClients/cognitoIdentity/constants.ts +0 -20
- package/src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.ts +0 -62
- package/src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.ts +0 -48
- package/src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.ts +0 -23
- package/src/foundation/factories/serviceClients/cognitoIdentity/handler/index.ts +0 -4
- package/src/foundation/factories/serviceClients/cognitoIdentity/index.ts +0 -6
- package/src/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.ts +0 -29
- package/src/foundation/factories/serviceClients/cognitoIdentity/serde/index.ts +0 -4
- package/src/foundation/factories/serviceClients/cognitoIdentity/types/index.ts +0 -9
- package/src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.ts +0 -8
- /package/dist/esm/{foundation/factories/serviceClients/cognitoIdentity/types/sdk.d.ts → awsClients/cognitoIdentity/types.d.ts} +0 -0
|
@@ -80,13 +80,11 @@ export interface AuthIdentityPoolConfig {
|
|
|
80
80
|
}
|
|
81
81
|
export interface CognitoIdentityPoolConfig {
|
|
82
82
|
identityPoolId: string;
|
|
83
|
-
identityPoolEndpoint?: string;
|
|
84
83
|
allowGuestAccess?: boolean;
|
|
85
84
|
}
|
|
86
85
|
export interface AuthUserPoolConfig {
|
|
87
86
|
Cognito: CognitoUserPoolConfig & {
|
|
88
87
|
identityPoolId?: never;
|
|
89
|
-
identityPoolEndpoint?: never;
|
|
90
88
|
allowGuestAccess?: never;
|
|
91
89
|
};
|
|
92
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/core",
|
|
3
|
-
"version": "6.4.7-
|
|
3
|
+
"version": "6.4.7-next-15.7992a88.0+7992a88",
|
|
4
4
|
"description": "Core category of aws-amplify",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"uuid": "^9.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@aws-amplify/react-native": "1.1.7-
|
|
63
|
+
"@aws-amplify/react-native": "1.1.7-next-15.7992a88.0+7992a88",
|
|
64
64
|
"@types/js-cookie": "3.0.2",
|
|
65
65
|
"genversion": "^2.2.0",
|
|
66
66
|
"typescript": "5.0.2"
|
|
@@ -192,5 +192,5 @@
|
|
|
192
192
|
]
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
"gitHead": "
|
|
195
|
+
"gitHead": "7992a886d96b76abf37560b7296ea75d4ea9ef29"
|
|
196
196
|
}
|
package/src/Platform/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '6.6.7-
|
|
2
|
+
export const version = '6.6.7-next-15.7992a88.0+7992a88';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
Endpoint,
|
|
6
|
+
EndpointResolverOptions,
|
|
7
|
+
Headers,
|
|
8
|
+
HttpRequest,
|
|
9
|
+
HttpResponse,
|
|
10
|
+
Middleware,
|
|
11
|
+
getDnsSuffix,
|
|
12
|
+
parseJsonError,
|
|
13
|
+
unauthenticatedHandler,
|
|
14
|
+
} from '../../clients';
|
|
15
|
+
import { composeTransferHandler } from '../../clients/internal/composeTransferHandler';
|
|
16
|
+
import {
|
|
17
|
+
getRetryDecider,
|
|
18
|
+
jitteredBackoff,
|
|
19
|
+
} from '../../clients/middleware/retry';
|
|
20
|
+
import { getAmplifyUserAgent } from '../../Platform';
|
|
21
|
+
import { observeFrameworkChanges } from '../../Platform/detectFramework';
|
|
22
|
+
import { AmplifyUrl } from '../../utils/amplifyUrl';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The service name used to sign requests if the API requires authentication.
|
|
26
|
+
*/
|
|
27
|
+
const SERVICE_NAME = 'cognito-identity';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The endpoint resolver function that returns the endpoint URL for a given region.
|
|
31
|
+
*/
|
|
32
|
+
const endpointResolver = ({ region }: EndpointResolverOptions) => ({
|
|
33
|
+
url: new AmplifyUrl(
|
|
34
|
+
`https://cognito-identity.${region}.${getDnsSuffix(region)}`,
|
|
35
|
+
),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A Cognito Identity-specific middleware that disables caching for all requests.
|
|
40
|
+
*/
|
|
41
|
+
const disableCacheMiddlewareFactory: Middleware<
|
|
42
|
+
HttpRequest,
|
|
43
|
+
HttpResponse,
|
|
44
|
+
Record<string, unknown>
|
|
45
|
+
> = () => next =>
|
|
46
|
+
async function disableCacheMiddleware(request) {
|
|
47
|
+
request.headers['cache-control'] = 'no-store';
|
|
48
|
+
|
|
49
|
+
return next(request);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* A Cognito Identity-specific transfer handler that does NOT sign requests, and
|
|
54
|
+
* disables caching.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export const cognitoIdentityTransferHandler = composeTransferHandler<
|
|
59
|
+
[Parameters<typeof disableCacheMiddlewareFactory>[0]],
|
|
60
|
+
HttpRequest,
|
|
61
|
+
HttpResponse,
|
|
62
|
+
typeof unauthenticatedHandler
|
|
63
|
+
>(unauthenticatedHandler, [disableCacheMiddlewareFactory]);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export const defaultConfig = {
|
|
69
|
+
service: SERVICE_NAME,
|
|
70
|
+
endpointResolver,
|
|
71
|
+
retryDecider: getRetryDecider(parseJsonError),
|
|
72
|
+
computeDelay: jitteredBackoff,
|
|
73
|
+
userAgentValue: getAmplifyUserAgent(),
|
|
74
|
+
cache: 'no-store',
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
observeFrameworkChanges(() => {
|
|
78
|
+
defaultConfig.userAgentValue = getAmplifyUserAgent();
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
export const getSharedHeaders = (operation: string): Headers => ({
|
|
85
|
+
'content-type': 'application/x-amz-json-1.1',
|
|
86
|
+
'x-amz-target': `AWSCognitoIdentityService.${operation}`,
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
export const buildHttpRpcRequest = (
|
|
93
|
+
{ url }: Endpoint,
|
|
94
|
+
headers: Headers,
|
|
95
|
+
body: any,
|
|
96
|
+
): HttpRequest => ({
|
|
97
|
+
headers,
|
|
98
|
+
url,
|
|
99
|
+
body,
|
|
100
|
+
method: 'POST',
|
|
101
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
Endpoint,
|
|
6
|
+
HttpRequest,
|
|
7
|
+
HttpResponse,
|
|
8
|
+
parseJsonBody,
|
|
9
|
+
parseJsonError,
|
|
10
|
+
parseMetadata,
|
|
11
|
+
} from '../../clients';
|
|
12
|
+
import { composeServiceApi } from '../../clients/internal';
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
buildHttpRpcRequest,
|
|
16
|
+
cognitoIdentityTransferHandler,
|
|
17
|
+
defaultConfig,
|
|
18
|
+
getSharedHeaders,
|
|
19
|
+
} from './base';
|
|
20
|
+
import type {
|
|
21
|
+
Credentials,
|
|
22
|
+
GetCredentialsForIdentityCommandInput as GetCredentialsForIdentityInput,
|
|
23
|
+
GetCredentialsForIdentityCommandOutput as GetCredentialsForIdentityOutput,
|
|
24
|
+
} from './types';
|
|
25
|
+
|
|
26
|
+
export type { GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput };
|
|
27
|
+
|
|
28
|
+
const getCredentialsForIdentitySerializer = (
|
|
29
|
+
input: GetCredentialsForIdentityInput,
|
|
30
|
+
endpoint: Endpoint,
|
|
31
|
+
): HttpRequest => {
|
|
32
|
+
const headers = getSharedHeaders('GetCredentialsForIdentity');
|
|
33
|
+
const body = JSON.stringify(input);
|
|
34
|
+
|
|
35
|
+
return buildHttpRpcRequest(endpoint, headers, body);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const getCredentialsForIdentityDeserializer = async (
|
|
39
|
+
response: HttpResponse,
|
|
40
|
+
): Promise<GetCredentialsForIdentityOutput> => {
|
|
41
|
+
if (response.statusCode >= 300) {
|
|
42
|
+
const error = await parseJsonError(response);
|
|
43
|
+
throw error;
|
|
44
|
+
} else {
|
|
45
|
+
const body = await parseJsonBody(response);
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
IdentityId: body.IdentityId,
|
|
49
|
+
Credentials: deserializeCredentials(body.Credentials),
|
|
50
|
+
$metadata: parseMetadata(response),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const deserializeCredentials = ({
|
|
56
|
+
AccessKeyId,
|
|
57
|
+
SecretKey,
|
|
58
|
+
SessionToken,
|
|
59
|
+
Expiration,
|
|
60
|
+
}: Credentials = {}): Credentials => {
|
|
61
|
+
return {
|
|
62
|
+
AccessKeyId,
|
|
63
|
+
SecretKey,
|
|
64
|
+
SessionToken,
|
|
65
|
+
Expiration: Expiration && new Date((Expiration as any) * 1000),
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
export const getCredentialsForIdentity = composeServiceApi(
|
|
73
|
+
cognitoIdentityTransferHandler,
|
|
74
|
+
getCredentialsForIdentitySerializer,
|
|
75
|
+
getCredentialsForIdentityDeserializer,
|
|
76
|
+
defaultConfig,
|
|
77
|
+
);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
Endpoint,
|
|
6
|
+
HttpRequest,
|
|
7
|
+
HttpResponse,
|
|
8
|
+
parseJsonBody,
|
|
9
|
+
parseJsonError,
|
|
10
|
+
parseMetadata,
|
|
11
|
+
} from '../../clients';
|
|
12
|
+
import { composeServiceApi } from '../../clients/internal';
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
buildHttpRpcRequest,
|
|
16
|
+
cognitoIdentityTransferHandler,
|
|
17
|
+
defaultConfig,
|
|
18
|
+
getSharedHeaders,
|
|
19
|
+
} from './base';
|
|
20
|
+
import {
|
|
21
|
+
GetIdCommandInput as GetIdInput,
|
|
22
|
+
GetIdCommandOutput as GetIdOutput,
|
|
23
|
+
} from './types';
|
|
24
|
+
|
|
25
|
+
export type { GetIdInput, GetIdOutput };
|
|
26
|
+
|
|
27
|
+
const getIdSerializer = (
|
|
28
|
+
input: GetIdInput,
|
|
29
|
+
endpoint: Endpoint,
|
|
30
|
+
): HttpRequest => {
|
|
31
|
+
const headers = getSharedHeaders('GetId');
|
|
32
|
+
const body = JSON.stringify(input);
|
|
33
|
+
|
|
34
|
+
return buildHttpRpcRequest(endpoint, headers, body);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const getIdDeserializer = async (
|
|
38
|
+
response: HttpResponse,
|
|
39
|
+
): Promise<GetIdOutput> => {
|
|
40
|
+
if (response.statusCode >= 300) {
|
|
41
|
+
const error = await parseJsonError(response);
|
|
42
|
+
throw error;
|
|
43
|
+
} else {
|
|
44
|
+
const body = await parseJsonBody(response);
|
|
45
|
+
|
|
46
|
+
return {
|
|
47
|
+
IdentityId: body.IdentityId,
|
|
48
|
+
$metadata: parseMetadata(response),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
export const getId = composeServiceApi(
|
|
57
|
+
cognitoIdentityTransferHandler,
|
|
58
|
+
getIdSerializer,
|
|
59
|
+
getIdDeserializer,
|
|
60
|
+
defaultConfig,
|
|
61
|
+
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
export { getId, GetIdInput, GetIdOutput } from './getId';
|
|
5
|
+
export {
|
|
6
|
+
getCredentialsForIdentity,
|
|
7
|
+
GetCredentialsForIdentityInput,
|
|
8
|
+
GetCredentialsForIdentityOutput,
|
|
9
|
+
} from './getCredentialsForIdentity';
|
package/src/index.ts
CHANGED
|
@@ -43,12 +43,13 @@ export {
|
|
|
43
43
|
clearCredentials,
|
|
44
44
|
} from './singleton';
|
|
45
45
|
|
|
46
|
-
//
|
|
46
|
+
// AWSClients exports
|
|
47
47
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
getCredentialsForIdentity,
|
|
49
|
+
getId,
|
|
50
|
+
GetCredentialsForIdentityInput,
|
|
51
|
+
GetCredentialsForIdentityOutput,
|
|
52
|
+
} from './awsClients/cognitoIdentity';
|
|
52
53
|
|
|
53
54
|
// Amplify-wide constructs
|
|
54
55
|
export { UserProfile } from './types';
|
|
@@ -135,14 +135,12 @@ export interface AuthIdentityPoolConfig {
|
|
|
135
135
|
|
|
136
136
|
export interface CognitoIdentityPoolConfig {
|
|
137
137
|
identityPoolId: string;
|
|
138
|
-
identityPoolEndpoint?: string;
|
|
139
138
|
allowGuestAccess?: boolean;
|
|
140
139
|
}
|
|
141
140
|
|
|
142
141
|
export interface AuthUserPoolConfig {
|
|
143
142
|
Cognito: CognitoUserPoolConfig & {
|
|
144
143
|
identityPoolId?: never;
|
|
145
|
-
identityPoolEndpoint?: never;
|
|
146
144
|
allowGuestAccess?: never;
|
|
147
145
|
};
|
|
148
146
|
}
|
|
@@ -1,15 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,9 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,14 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,18 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,37 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACnC,MAAM,qCAAqC,GAAG,CAAC,MAAM,KAAK,IAAI,UAAU,CAAC,iBAAiB,EAAE,SAAS,CAAC,8BAA8B,EAAE,IAAI,OAAO,CAAC,sBAAsB,EAAE,2BAA2B,CAAC,EAAE,qCAAqC,EAAE;AAC/O,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,qCAAqC,GAAG,qCAAqC,CAAC;AACtF,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,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,WAAW,EAAE,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC;AACjE,YAAY,SAAS,EAAE,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC7D,SAAS,CAAC;AACV,KAAK;AACL,CAAC,CAAC;AACF,MAAM,sBAAsB,GAAG,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM;AAClE,IAAI,GAAG,IAAI;AACX,IAAI,UAAU,EAAE,UAAU,IAAI,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;AACzD,CAAC,CAAC;;"}
|
|
@@ -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.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
|
package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,17 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,9 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,13 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js
DELETED
|
@@ -1,24 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,9 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1,9 +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
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
tslib_1.__exportStar(require("./sdk"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./serviceClient"), exports);
|
|
9
|
-
//# sourceMappingURL=index.js.map
|