@aws-amplify/core 6.4.7-local-stack.0aa9031.0 → 6.4.7-unstable.847fb51.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/cjs/parseAmplifyOutputs.js +21 -0
- package/dist/cjs/parseAmplifyOutputs.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/parseAmplifyOutputs.mjs +21 -0
- package/dist/esm/parseAmplifyOutputs.mjs.map +1 -1
- package/dist/esm/singleton/API/types.d.ts +34 -1
- package/dist/esm/singleton/AmplifyOutputs/types.d.ts +10 -0
- 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/parseAmplifyOutputs.ts +32 -1
- package/src/singleton/API/types.ts +38 -1
- package/src/singleton/AmplifyOutputs/types.ts +12 -0
- 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
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/* eslint-disable camelcase */
|
|
6
6
|
|
|
7
7
|
/* Does not like exhaustive checks */
|
|
8
|
-
/* eslint-disable no-case-declarations */
|
|
9
8
|
|
|
10
9
|
import {
|
|
11
10
|
APIConfig,
|
|
11
|
+
APIEventsConfig,
|
|
12
12
|
APIGraphQLConfig,
|
|
13
13
|
GraphQLAuthMode,
|
|
14
14
|
ModelIntrospectionSchema,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
AmplifyOutputs,
|
|
23
23
|
AmplifyOutputsAnalyticsProperties,
|
|
24
24
|
AmplifyOutputsAuthProperties,
|
|
25
|
+
AmplifyOutputsCustomProperties,
|
|
25
26
|
AmplifyOutputsDataProperties,
|
|
26
27
|
AmplifyOutputsGeoProperties,
|
|
27
28
|
AmplifyOutputsNotificationsProperties,
|
|
@@ -223,6 +224,28 @@ function parseData(
|
|
|
223
224
|
};
|
|
224
225
|
}
|
|
225
226
|
|
|
227
|
+
function parseCustom(
|
|
228
|
+
amplifyOutputsCustomProperties?: AmplifyOutputsCustomProperties,
|
|
229
|
+
) {
|
|
230
|
+
if (!amplifyOutputsCustomProperties?.events) {
|
|
231
|
+
return undefined;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const { url, aws_region, api_key, default_authorization_type } =
|
|
235
|
+
amplifyOutputsCustomProperties.events;
|
|
236
|
+
|
|
237
|
+
const Events: APIEventsConfig = {
|
|
238
|
+
endpoint: url,
|
|
239
|
+
defaultAuthMode: getGraphQLAuthMode(default_authorization_type),
|
|
240
|
+
region: aws_region,
|
|
241
|
+
apiKey: api_key,
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
Events,
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
|
|
226
249
|
function parseNotifications(
|
|
227
250
|
amplifyOutputsNotificationsProperties?: AmplifyOutputsNotificationsProperties,
|
|
228
251
|
): NotificationsConfig | undefined {
|
|
@@ -290,6 +313,14 @@ export function parseAmplifyOutputs(
|
|
|
290
313
|
resourcesConfig.API = parseData(amplifyOutputs.data);
|
|
291
314
|
}
|
|
292
315
|
|
|
316
|
+
if (amplifyOutputs.custom) {
|
|
317
|
+
const customConfig = parseCustom(amplifyOutputs.custom);
|
|
318
|
+
|
|
319
|
+
if (customConfig && 'Events' in customConfig) {
|
|
320
|
+
resourcesConfig.API = { ...resourcesConfig.API, ...customConfig };
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
293
324
|
if (amplifyOutputs.notifications) {
|
|
294
325
|
resourcesConfig.Notifications = parseNotifications(
|
|
295
326
|
amplifyOutputs.notifications,
|
|
@@ -47,6 +47,37 @@ export interface APIGraphQLConfig {
|
|
|
47
47
|
modelIntrospection?: ModelIntrospectionSchema;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* @experimental
|
|
52
|
+
*/
|
|
53
|
+
export interface APIEventsConfig {
|
|
54
|
+
/**
|
|
55
|
+
* Required GraphQL endpoint, must be a valid URL string.
|
|
56
|
+
*/
|
|
57
|
+
endpoint: string;
|
|
58
|
+
/**
|
|
59
|
+
* Optional region string used to sign the request. Required only if the auth mode is 'iam'.
|
|
60
|
+
*/
|
|
61
|
+
region?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Optional API key string. Required only if the auth mode is 'apiKey'.
|
|
64
|
+
*/
|
|
65
|
+
apiKey?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Custom domain endpoint for GraphQL API.
|
|
68
|
+
*/
|
|
69
|
+
customEndpoint?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Optional region string used to sign the request to `customEndpoint`. Effective only if `customEndpoint` is
|
|
72
|
+
* specified, and the auth mode is 'iam'.
|
|
73
|
+
*/
|
|
74
|
+
customEndpointRegion?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Default auth mode for all the API calls to given service.
|
|
77
|
+
*/
|
|
78
|
+
defaultAuthMode: GraphQLAuthMode;
|
|
79
|
+
}
|
|
80
|
+
|
|
50
81
|
export interface APIRestConfig {
|
|
51
82
|
/**
|
|
52
83
|
* Required REST endpoint, must be a valid URL string.
|
|
@@ -75,7 +106,13 @@ export interface GraphQLProviderConfig {
|
|
|
75
106
|
GraphQL: APIGraphQLConfig;
|
|
76
107
|
}
|
|
77
108
|
|
|
78
|
-
export
|
|
109
|
+
export interface EventsProviderConfig {
|
|
110
|
+
Events: APIEventsConfig;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type APIConfig = AtLeastOne<
|
|
114
|
+
RESTProviderConfig & GraphQLProviderConfig & EventsProviderConfig
|
|
115
|
+
>;
|
|
79
116
|
|
|
80
117
|
export type GraphQLAuthMode =
|
|
81
118
|
| 'apiKey'
|
|
@@ -94,6 +94,17 @@ export interface AmplifyOutputsDataProperties {
|
|
|
94
94
|
conflict_resolution_mode?: string;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
export interface AmplifyOutputsCustomProperties {
|
|
98
|
+
// @experimental
|
|
99
|
+
events?: {
|
|
100
|
+
url: string;
|
|
101
|
+
aws_region: string;
|
|
102
|
+
default_authorization_type: string;
|
|
103
|
+
api_key?: string;
|
|
104
|
+
};
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
}
|
|
107
|
+
|
|
97
108
|
export interface AmplifyOutputsNotificationsProperties {
|
|
98
109
|
aws_region: string;
|
|
99
110
|
amazon_pinpoint_app_id: string;
|
|
@@ -107,5 +118,6 @@ export interface AmplifyOutputs {
|
|
|
107
118
|
analytics?: AmplifyOutputsAnalyticsProperties;
|
|
108
119
|
geo?: AmplifyOutputsGeoProperties;
|
|
109
120
|
data?: AmplifyOutputsDataProperties;
|
|
121
|
+
custom?: AmplifyOutputsCustomProperties;
|
|
110
122
|
notifications?: AmplifyOutputsNotificationsProperties;
|
|
111
123
|
}
|
|
@@ -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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./sdk\"), exports);\ntslib_1.__exportStar(require(\"./serviceClient\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAChD,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/sdk.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceClient.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HttpRequest, HttpResponse, Middleware } from '../../../clients';
|
|
2
|
-
/**
|
|
3
|
-
* A Cognito Identity-specific middleware that disables caching for all requests.
|
|
4
|
-
*/
|
|
5
|
-
export declare const createDisableCacheMiddleware: Middleware<HttpRequest, HttpResponse, Record<string, unknown>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
/**
|
|
4
|
-
* A Cognito Identity-specific middleware that disables caching for all requests.
|
|
5
|
-
*/
|
|
6
|
-
const createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {
|
|
7
|
-
request.headers['cache-control'] = 'no-store';
|
|
8
|
-
return next(request);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { createDisableCacheMiddleware };
|
|
12
|
-
//# sourceMappingURL=createDisableCacheMiddleware.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createDisableCacheMiddleware.mjs","sources":["../../../../../src/foundation/factories/middleware/createDisableCacheMiddleware.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * A Cognito Identity-specific middleware that disables caching for all requests.\n */\nexport const createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {\n request.headers['cache-control'] = 'no-store';\n return next(request);\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,4BAA4B,GAAG,MAAM,IAAI,IAAI,eAAe,sBAAsB,CAAC,OAAO,EAAE;AACzG,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC;AAClD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;AACzB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createDisableCacheMiddleware } from './createDisableCacheMiddleware';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { getDnsSuffix } from '../../../../clients/endpoints/getDnsSuffix.mjs';
|
|
2
|
-
import '../../../../types/errors.mjs';
|
|
3
|
-
import '../../../../errors/errorHelpers.mjs';
|
|
4
|
-
import '../../../../utils/getClientInfo/getClientInfo.mjs';
|
|
5
|
-
import '../../../../utils/retry/retry.mjs';
|
|
6
|
-
import '@aws-crypto/sha256-js';
|
|
7
|
-
import '@smithy/util-hex-encoding';
|
|
8
|
-
import { AmplifyUrl } from '../../../../utils/amplifyUrl/index.mjs';
|
|
9
|
-
import '../../../../parseAWSExports.mjs';
|
|
10
|
-
import 'uuid';
|
|
11
|
-
import '../../../../singleton/Auth/utils/errorHelpers.mjs';
|
|
12
|
-
import '../../../../Platform/index.mjs';
|
|
13
|
-
import '../../../../Platform/types.mjs';
|
|
14
|
-
import '../../../../BackgroundProcessManager/types.mjs';
|
|
15
|
-
import '../../../../Reachability/Reachability.mjs';
|
|
16
|
-
import '../../../../Hub/index.mjs';
|
|
17
|
-
import '../../../../utils/sessionListener/index.mjs';
|
|
18
|
-
import { COGNITO_IDENTITY_SERVICE_NAME } from './constants.mjs';
|
|
19
|
-
|
|
20
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
21
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
22
|
-
const cognitoIdentityPoolEndpointResolver = ({ region, }) => ({
|
|
23
|
-
url: new AmplifyUrl(`https://${COGNITO_IDENTITY_SERVICE_NAME}.${region}.${getDnsSuffix(region)}`),
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export { cognitoIdentityPoolEndpointResolver };
|
|
27
|
-
//# sourceMappingURL=cognitoIdentityPoolEndpointResolver.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cognitoIdentityPoolEndpointResolver.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getDnsSuffix } from '../../../../clients';\nimport { AmplifyUrl } from '../../../../libraryUtils';\nimport { COGNITO_IDENTITY_SERVICE_NAME } from './constants';\nexport const cognitoIdentityPoolEndpointResolver = ({ region, }) => ({\n url: new AmplifyUrl(`https://${COGNITO_IDENTITY_SERVICE_NAME}.${region}.${getDnsSuffix(region)}`),\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AACA;AAIY,MAAC,mCAAmC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM;AACrE,IAAI,GAAG,EAAE,IAAI,UAAU,CAAC,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The service name used to sign requests if the API requires authentication.
|
|
3
|
-
*/
|
|
4
|
-
export declare const COGNITO_IDENTITY_SERVICE_NAME = "cognito-identity";
|
|
5
|
-
export declare const DEFAULT_SERVICE_CLIENT_API_CONFIG: {
|
|
6
|
-
service: string;
|
|
7
|
-
retryDecider: (response?: import("../../../../clients").HttpResponse | undefined, error?: unknown) => Promise<boolean>;
|
|
8
|
-
computeDelay: (attempt: number) => number;
|
|
9
|
-
cache: string;
|
|
10
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '../../../../types/errors.mjs';
|
|
2
|
-
import '../../../../errors/errorHelpers.mjs';
|
|
3
|
-
import { jitteredBackoff } from '../../../../clients/middleware/retry/jitteredBackoff.mjs';
|
|
4
|
-
import { getRetryDecider } from '../../../../clients/middleware/retry/defaultRetryDecider.mjs';
|
|
5
|
-
import '@aws-crypto/sha256-js';
|
|
6
|
-
import '@smithy/util-hex-encoding';
|
|
7
|
-
import { parseJsonError } from '../../../../clients/serde/json.mjs';
|
|
8
|
-
|
|
9
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
10
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
-
/**
|
|
12
|
-
* The service name used to sign requests if the API requires authentication.
|
|
13
|
-
*/
|
|
14
|
-
const COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';
|
|
15
|
-
const DEFAULT_SERVICE_CLIENT_API_CONFIG = {
|
|
16
|
-
service: COGNITO_IDENTITY_SERVICE_NAME,
|
|
17
|
-
retryDecider: getRetryDecider(parseJsonError),
|
|
18
|
-
computeDelay: jitteredBackoff,
|
|
19
|
-
cache: 'no-store',
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { COGNITO_IDENTITY_SERVICE_NAME, DEFAULT_SERVICE_CLIENT_API_CONFIG };
|
|
23
|
-
//# sourceMappingURL=constants.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/constants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getRetryDecider, jitteredBackoff, parseJsonError, } from '../../../../clients';\n/**\n * The service name used to sign requests if the API requires authentication.\n */\nexport const COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';\nexport const DEFAULT_SERVICE_CLIENT_API_CONFIG = {\n service: COGNITO_IDENTITY_SERVICE_NAME,\n retryDecider: getRetryDecider(parseJsonError),\n computeDelay: jitteredBackoff,\n cache: 'no-store',\n};\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACY,MAAC,6BAA6B,GAAG,mBAAmB;AACpD,MAAC,iCAAiC,GAAG;AACjD,IAAI,OAAO,EAAE,6BAA6B;AAC1C,IAAI,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;AACjD,IAAI,YAAY,EAAE,eAAe;AACjC,IAAI,KAAK,EAAE,UAAU;AACrB;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpResponse } from '../../../../clients';
|
|
2
|
-
import { GetCredentialsForIdentityCommandOutput, GetCredentialsForIdentityInput, ServiceClientFactoryInput } from './types';
|
|
3
|
-
export declare const createGetCredentialsForIdentityClient: (config: ServiceClientFactoryInput) => (config: {
|
|
4
|
-
userAgentValue?: string | undefined;
|
|
5
|
-
endpointResolver?: (((options: import("../../../../clients").EndpointResolverOptions, input?: any) => import("../../../../clients").Endpoint) & ((options: import("../../../../clients").EndpointResolverOptions) => {
|
|
6
|
-
url: URL;
|
|
7
|
-
})) | undefined;
|
|
8
|
-
service?: string | undefined;
|
|
9
|
-
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown) => Promise<boolean>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<boolean>)) | undefined;
|
|
10
|
-
computeDelay?: ((attempt: number) => number) | undefined;
|
|
11
|
-
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
[x: string]: unknown;
|
|
14
|
-
}, input: GetCredentialsForIdentityInput) => Promise<GetCredentialsForIdentityCommandOutput>;
|