@aws-sdk/client-cognito-sync 3.54.0 → 3.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/CognitoSyncClient.js +13 -13
  3. package/dist-cjs/commands/BulkPublishCommand.js +3 -3
  4. package/dist-cjs/commands/DeleteDatasetCommand.js +3 -3
  5. package/dist-cjs/commands/DescribeDatasetCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeIdentityPoolUsageCommand.js +3 -3
  7. package/dist-cjs/commands/DescribeIdentityUsageCommand.js +3 -3
  8. package/dist-cjs/commands/GetBulkPublishDetailsCommand.js +3 -3
  9. package/dist-cjs/commands/GetCognitoEventsCommand.js +3 -3
  10. package/dist-cjs/commands/GetIdentityPoolConfigurationCommand.js +3 -3
  11. package/dist-cjs/commands/ListDatasetsCommand.js +3 -3
  12. package/dist-cjs/commands/ListIdentityPoolUsageCommand.js +3 -3
  13. package/dist-cjs/commands/ListRecordsCommand.js +3 -3
  14. package/dist-cjs/commands/RegisterDeviceCommand.js +3 -3
  15. package/dist-cjs/commands/SetCognitoEventsCommand.js +3 -3
  16. package/dist-cjs/commands/SetIdentityPoolConfigurationCommand.js +3 -3
  17. package/dist-cjs/commands/SubscribeToDatasetCommand.js +3 -3
  18. package/dist-cjs/commands/UnsubscribeFromDatasetCommand.js +3 -3
  19. package/dist-cjs/commands/UpdateRecordsCommand.js +3 -3
  20. package/dist-cjs/endpoints.js +1 -1
  21. package/dist-cjs/protocols/Aws_restJson1.js +140 -140
  22. package/dist-cjs/runtimeConfig.browser.js +4 -4
  23. package/dist-cjs/runtimeConfig.js +9 -9
  24. package/dist-cjs/runtimeConfig.native.js +1 -1
  25. package/dist-es/CognitoSync.js +17 -17
  26. package/dist-es/protocols/Aws_restJson1.js +17 -17
  27. package/dist-types/runtimeConfig.native.d.ts +2 -2
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  29. package/package.json +34 -34
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
@@ -29,7 +29,7 @@ var CognitoSync = (function (_super) {
29
29
  }
30
30
  else if (typeof cb === "function") {
31
31
  if (typeof optionsOrCb !== "object")
32
- throw new Error("Expect http options but get " + typeof optionsOrCb);
32
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
33
33
  this.send(command, optionsOrCb || {}, cb);
34
34
  }
35
35
  else {
@@ -43,7 +43,7 @@ var CognitoSync = (function (_super) {
43
43
  }
44
44
  else if (typeof cb === "function") {
45
45
  if (typeof optionsOrCb !== "object")
46
- throw new Error("Expect http options but get " + typeof optionsOrCb);
46
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
47
  this.send(command, optionsOrCb || {}, cb);
48
48
  }
49
49
  else {
@@ -57,7 +57,7 @@ var CognitoSync = (function (_super) {
57
57
  }
58
58
  else if (typeof cb === "function") {
59
59
  if (typeof optionsOrCb !== "object")
60
- throw new Error("Expect http options but get " + typeof optionsOrCb);
60
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
61
61
  this.send(command, optionsOrCb || {}, cb);
62
62
  }
63
63
  else {
@@ -71,7 +71,7 @@ var CognitoSync = (function (_super) {
71
71
  }
72
72
  else if (typeof cb === "function") {
73
73
  if (typeof optionsOrCb !== "object")
74
- throw new Error("Expect http options but get " + typeof optionsOrCb);
74
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
75
75
  this.send(command, optionsOrCb || {}, cb);
76
76
  }
77
77
  else {
@@ -85,7 +85,7 @@ var CognitoSync = (function (_super) {
85
85
  }
86
86
  else if (typeof cb === "function") {
87
87
  if (typeof optionsOrCb !== "object")
88
- throw new Error("Expect http options but get " + typeof optionsOrCb);
88
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
89
89
  this.send(command, optionsOrCb || {}, cb);
90
90
  }
91
91
  else {
@@ -99,7 +99,7 @@ var CognitoSync = (function (_super) {
99
99
  }
100
100
  else if (typeof cb === "function") {
101
101
  if (typeof optionsOrCb !== "object")
102
- throw new Error("Expect http options but get " + typeof optionsOrCb);
102
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
103
103
  this.send(command, optionsOrCb || {}, cb);
104
104
  }
105
105
  else {
@@ -113,7 +113,7 @@ var CognitoSync = (function (_super) {
113
113
  }
114
114
  else if (typeof cb === "function") {
115
115
  if (typeof optionsOrCb !== "object")
116
- throw new Error("Expect http options but get " + typeof optionsOrCb);
116
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
117
117
  this.send(command, optionsOrCb || {}, cb);
118
118
  }
119
119
  else {
@@ -127,7 +127,7 @@ var CognitoSync = (function (_super) {
127
127
  }
128
128
  else if (typeof cb === "function") {
129
129
  if (typeof optionsOrCb !== "object")
130
- throw new Error("Expect http options but get " + typeof optionsOrCb);
130
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
131
131
  this.send(command, optionsOrCb || {}, cb);
132
132
  }
133
133
  else {
@@ -141,7 +141,7 @@ var CognitoSync = (function (_super) {
141
141
  }
142
142
  else if (typeof cb === "function") {
143
143
  if (typeof optionsOrCb !== "object")
144
- throw new Error("Expect http options but get " + typeof optionsOrCb);
144
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
145
145
  this.send(command, optionsOrCb || {}, cb);
146
146
  }
147
147
  else {
@@ -155,7 +155,7 @@ var CognitoSync = (function (_super) {
155
155
  }
156
156
  else if (typeof cb === "function") {
157
157
  if (typeof optionsOrCb !== "object")
158
- throw new Error("Expect http options but get " + typeof optionsOrCb);
158
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
159
159
  this.send(command, optionsOrCb || {}, cb);
160
160
  }
161
161
  else {
@@ -169,7 +169,7 @@ var CognitoSync = (function (_super) {
169
169
  }
170
170
  else if (typeof cb === "function") {
171
171
  if (typeof optionsOrCb !== "object")
172
- throw new Error("Expect http options but get " + typeof optionsOrCb);
172
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
173
173
  this.send(command, optionsOrCb || {}, cb);
174
174
  }
175
175
  else {
@@ -183,7 +183,7 @@ var CognitoSync = (function (_super) {
183
183
  }
184
184
  else if (typeof cb === "function") {
185
185
  if (typeof optionsOrCb !== "object")
186
- throw new Error("Expect http options but get " + typeof optionsOrCb);
186
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
187
187
  this.send(command, optionsOrCb || {}, cb);
188
188
  }
189
189
  else {
@@ -197,7 +197,7 @@ var CognitoSync = (function (_super) {
197
197
  }
198
198
  else if (typeof cb === "function") {
199
199
  if (typeof optionsOrCb !== "object")
200
- throw new Error("Expect http options but get " + typeof optionsOrCb);
200
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
201
201
  this.send(command, optionsOrCb || {}, cb);
202
202
  }
203
203
  else {
@@ -211,7 +211,7 @@ var CognitoSync = (function (_super) {
211
211
  }
212
212
  else if (typeof cb === "function") {
213
213
  if (typeof optionsOrCb !== "object")
214
- throw new Error("Expect http options but get " + typeof optionsOrCb);
214
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
215
215
  this.send(command, optionsOrCb || {}, cb);
216
216
  }
217
217
  else {
@@ -225,7 +225,7 @@ var CognitoSync = (function (_super) {
225
225
  }
226
226
  else if (typeof cb === "function") {
227
227
  if (typeof optionsOrCb !== "object")
228
- throw new Error("Expect http options but get " + typeof optionsOrCb);
228
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
229
229
  this.send(command, optionsOrCb || {}, cb);
230
230
  }
231
231
  else {
@@ -239,7 +239,7 @@ var CognitoSync = (function (_super) {
239
239
  }
240
240
  else if (typeof cb === "function") {
241
241
  if (typeof optionsOrCb !== "object")
242
- throw new Error("Expect http options but get " + typeof optionsOrCb);
242
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
243
243
  this.send(command, optionsOrCb || {}, cb);
244
244
  }
245
245
  else {
@@ -253,7 +253,7 @@ var CognitoSync = (function (_super) {
253
253
  }
254
254
  else if (typeof cb === "function") {
255
255
  if (typeof optionsOrCb !== "object")
256
- throw new Error("Expect http options but get " + typeof optionsOrCb);
256
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
257
257
  this.send(command, optionsOrCb || {}, cb);
258
258
  }
259
259
  else {
@@ -11,7 +11,7 @@ export var serializeAws_restJson1BulkPublishCommand = function (input, context)
11
11
  case 1:
12
12
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
13
13
  headers = {};
14
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
14
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
15
15
  "/identitypools/{IdentityPoolId}/bulkpublish";
16
16
  if (input.IdentityPoolId !== undefined) {
17
17
  labelValue = input.IdentityPoolId;
@@ -43,7 +43,7 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
43
43
  case 1:
44
44
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
45
45
  headers = {};
46
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
46
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
47
47
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}";
48
48
  if (input.IdentityPoolId !== undefined) {
49
49
  labelValue = input.IdentityPoolId;
@@ -95,7 +95,7 @@ export var serializeAws_restJson1DescribeDatasetCommand = function (input, conte
95
95
  case 1:
96
96
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
97
97
  headers = {};
98
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
98
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
99
99
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}";
100
100
  if (input.IdentityPoolId !== undefined) {
101
101
  labelValue = input.IdentityPoolId;
@@ -147,7 +147,7 @@ export var serializeAws_restJson1DescribeIdentityPoolUsageCommand = function (in
147
147
  case 1:
148
148
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
149
149
  headers = {};
150
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools/{IdentityPoolId}";
150
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools/{IdentityPoolId}";
151
151
  if (input.IdentityPoolId !== undefined) {
152
152
  labelValue = input.IdentityPoolId;
153
153
  if (labelValue.length <= 0) {
@@ -178,7 +178,7 @@ export var serializeAws_restJson1DescribeIdentityUsageCommand = function (input,
178
178
  case 1:
179
179
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
180
180
  headers = {};
181
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
181
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
182
182
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}";
183
183
  if (input.IdentityPoolId !== undefined) {
184
184
  labelValue = input.IdentityPoolId;
@@ -220,7 +220,7 @@ export var serializeAws_restJson1GetBulkPublishDetailsCommand = function (input,
220
220
  case 1:
221
221
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
222
222
  headers = {};
223
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
223
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
224
224
  "/identitypools/{IdentityPoolId}/getBulkPublishDetails";
225
225
  if (input.IdentityPoolId !== undefined) {
226
226
  labelValue = input.IdentityPoolId;
@@ -252,7 +252,7 @@ export var serializeAws_restJson1GetCognitoEventsCommand = function (input, cont
252
252
  case 1:
253
253
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
254
254
  headers = {};
255
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools/{IdentityPoolId}/events";
255
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools/{IdentityPoolId}/events";
256
256
  if (input.IdentityPoolId !== undefined) {
257
257
  labelValue = input.IdentityPoolId;
258
258
  if (labelValue.length <= 0) {
@@ -283,7 +283,7 @@ export var serializeAws_restJson1GetIdentityPoolConfigurationCommand = function
283
283
  case 1:
284
284
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
285
285
  headers = {};
286
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
286
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
287
287
  "/identitypools/{IdentityPoolId}/configuration";
288
288
  if (input.IdentityPoolId !== undefined) {
289
289
  labelValue = input.IdentityPoolId;
@@ -315,7 +315,7 @@ export var serializeAws_restJson1ListDatasetsCommand = function (input, context)
315
315
  case 1:
316
316
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
317
317
  headers = {};
318
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
318
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
319
319
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets";
320
320
  if (input.IdentityPoolId !== undefined) {
321
321
  labelValue = input.IdentityPoolId;
@@ -359,7 +359,7 @@ export var serializeAws_restJson1ListIdentityPoolUsageCommand = function (input,
359
359
  case 1:
360
360
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
361
361
  headers = {};
362
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools";
362
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools";
363
363
  query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
364
364
  return [2, new __HttpRequest({
365
365
  protocol: protocol,
@@ -382,7 +382,7 @@ export var serializeAws_restJson1ListRecordsCommand = function (input, context)
382
382
  case 1:
383
383
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
384
384
  headers = {};
385
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
385
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
386
386
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records";
387
387
  if (input.IdentityPoolId !== undefined) {
388
388
  labelValue = input.IdentityPoolId;
@@ -438,7 +438,7 @@ export var serializeAws_restJson1RegisterDeviceCommand = function (input, contex
438
438
  headers = {
439
439
  "content-type": "application/json",
440
440
  };
441
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
441
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
442
442
  "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device";
443
443
  if (input.IdentityPoolId !== undefined) {
444
444
  labelValue = input.IdentityPoolId;
@@ -483,7 +483,7 @@ export var serializeAws_restJson1SetCognitoEventsCommand = function (input, cont
483
483
  headers = {
484
484
  "content-type": "application/json",
485
485
  };
486
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools/{IdentityPoolId}/events";
486
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools/{IdentityPoolId}/events";
487
487
  if (input.IdentityPoolId !== undefined) {
488
488
  labelValue = input.IdentityPoolId;
489
489
  if (labelValue.length <= 0) {
@@ -518,7 +518,7 @@ export var serializeAws_restJson1SetIdentityPoolConfigurationCommand = function
518
518
  headers = {
519
519
  "content-type": "application/json",
520
520
  };
521
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
521
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
522
522
  "/identitypools/{IdentityPoolId}/configuration";
523
523
  if (input.IdentityPoolId !== undefined) {
524
524
  labelValue = input.IdentityPoolId;
@@ -555,7 +555,7 @@ export var serializeAws_restJson1SubscribeToDatasetCommand = function (input, co
555
555
  case 1:
556
556
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
557
557
  headers = {};
558
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
558
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
559
559
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}";
560
560
  if (input.IdentityPoolId !== undefined) {
561
561
  labelValue = input.IdentityPoolId;
@@ -617,7 +617,7 @@ export var serializeAws_restJson1UnsubscribeFromDatasetCommand = function (input
617
617
  case 1:
618
618
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
619
619
  headers = {};
620
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
620
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
621
621
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}";
622
622
  if (input.IdentityPoolId !== undefined) {
623
623
  labelValue = input.IdentityPoolId;
@@ -679,7 +679,7 @@ export var serializeAws_restJson1UpdateRecordsCommand = function (input, context
679
679
  case 1:
680
680
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
681
681
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ClientContext) && { "x-amz-client-context": input.ClientContext }));
682
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
682
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
683
683
  "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}";
684
684
  if (input.IdentityPoolId !== undefined) {
685
685
  labelValue = input.IdentityPoolId;
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-sync",
3
3
  "description": "AWS SDK for JavaScript Cognito Sync Client for Node.js, Browser and React Native",
4
- "version": "3.54.0",
4
+ "version": "3.56.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,47 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.54.0",
22
- "@aws-sdk/config-resolver": "3.54.0",
23
- "@aws-sdk/credential-provider-node": "3.54.0",
24
- "@aws-sdk/fetch-http-handler": "3.54.0",
25
- "@aws-sdk/hash-node": "3.54.0",
26
- "@aws-sdk/invalid-dependency": "3.54.0",
27
- "@aws-sdk/middleware-content-length": "3.54.0",
28
- "@aws-sdk/middleware-host-header": "3.54.0",
29
- "@aws-sdk/middleware-logger": "3.54.0",
30
- "@aws-sdk/middleware-retry": "3.54.0",
31
- "@aws-sdk/middleware-serde": "3.54.0",
32
- "@aws-sdk/middleware-signing": "3.54.0",
33
- "@aws-sdk/middleware-stack": "3.54.0",
34
- "@aws-sdk/middleware-user-agent": "3.54.0",
35
- "@aws-sdk/node-config-provider": "3.54.0",
36
- "@aws-sdk/node-http-handler": "3.54.0",
37
- "@aws-sdk/protocol-http": "3.54.0",
38
- "@aws-sdk/smithy-client": "3.54.0",
39
- "@aws-sdk/types": "3.54.0",
40
- "@aws-sdk/url-parser": "3.54.0",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
- "@aws-sdk/util-user-agent-browser": "3.54.0",
48
- "@aws-sdk/util-user-agent-node": "3.54.0",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.56.0",
22
+ "@aws-sdk/config-resolver": "3.56.0",
23
+ "@aws-sdk/credential-provider-node": "3.56.0",
24
+ "@aws-sdk/fetch-http-handler": "3.55.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.55.0",
28
+ "@aws-sdk/middleware-host-header": "3.55.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.56.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.56.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.56.0",
36
+ "@aws-sdk/node-http-handler": "3.55.0",
37
+ "@aws-sdk/protocol-http": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.55.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.56.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.56.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"