@aws-sdk/client-connect 3.216.0 → 3.222.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.
@@ -1104,7 +1104,7 @@ const serializeAws_restJson1DescribeInstanceStorageConfigCommand = async (input,
1104
1104
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1105
1105
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
1106
1106
  const query = map({
1107
- resourceType: [, input.ResourceType],
1107
+ resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1108
1108
  });
1109
1109
  let body;
1110
1110
  return new protocol_http_1.HttpRequest({
@@ -1307,7 +1307,7 @@ const serializeAws_restJson1DisassociateApprovedOriginCommand = async (input, co
1307
1307
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin";
1308
1308
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1309
1309
  const query = map({
1310
- origin: [, input.Origin],
1310
+ origin: [, (0, smithy_client_1.expectNonNull)(input.Origin, `Origin`)],
1311
1311
  });
1312
1312
  let body;
1313
1313
  return new protocol_http_1.HttpRequest({
@@ -1353,7 +1353,7 @@ const serializeAws_restJson1DisassociateInstanceStorageConfigCommand = async (in
1353
1353
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1354
1354
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
1355
1355
  const query = map({
1356
- resourceType: [, input.ResourceType],
1356
+ resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1357
1357
  });
1358
1358
  let body;
1359
1359
  return new protocol_http_1.HttpRequest({
@@ -1374,7 +1374,7 @@ const serializeAws_restJson1DisassociateLambdaFunctionCommand = async (input, co
1374
1374
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function";
1375
1375
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1376
1376
  const query = map({
1377
- functionArn: [, input.FunctionArn],
1377
+ functionArn: [, (0, smithy_client_1.expectNonNull)(input.FunctionArn, `FunctionArn`)],
1378
1378
  });
1379
1379
  let body;
1380
1380
  return new protocol_http_1.HttpRequest({
@@ -1395,8 +1395,8 @@ const serializeAws_restJson1DisassociateLexBotCommand = async (input, context) =
1395
1395
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot";
1396
1396
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1397
1397
  const query = map({
1398
- botName: [, input.BotName],
1399
- lexRegion: [, input.LexRegion],
1398
+ botName: [, (0, smithy_client_1.expectNonNull)(input.BotName, `BotName`)],
1399
+ lexRegion: [, (0, smithy_client_1.expectNonNull)(input.LexRegion, `LexRegion`)],
1400
1400
  });
1401
1401
  let body;
1402
1402
  return new protocol_http_1.HttpRequest({
@@ -1418,7 +1418,7 @@ const serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = async (i
1418
1418
  "/phone-number/{PhoneNumberId}/contact-flow";
1419
1419
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
1420
1420
  const query = map({
1421
- instanceId: [, input.InstanceId],
1421
+ instanceId: [, (0, smithy_client_1.expectNonNull)(input.InstanceId, `InstanceId`)],
1422
1422
  });
1423
1423
  let body;
1424
1424
  return new protocol_http_1.HttpRequest({
@@ -1741,7 +1741,7 @@ const serializeAws_restJson1ListBotsCommand = async (input, context) => {
1741
1741
  const query = map({
1742
1742
  nextToken: [, input.NextToken],
1743
1743
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1744
- lexVersion: [, input.LexVersion],
1744
+ lexVersion: [, (0, smithy_client_1.expectNonNull)(input.LexVersion, `LexVersion`)],
1745
1745
  });
1746
1746
  let body;
1747
1747
  return new protocol_http_1.HttpRequest({
@@ -1815,7 +1815,7 @@ const serializeAws_restJson1ListContactReferencesCommand = async (input, context
1815
1815
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
1816
1816
  const query = map({
1817
1817
  referenceTypes: [
1818
- () => input.ReferenceTypes !== void 0,
1818
+ (0, smithy_client_1.expectNonNull)(input.ReferenceTypes, `ReferenceTypes`) != null,
1819
1819
  () => (input.ReferenceTypes || []).map((_entry) => _entry),
1820
1820
  ],
1821
1821
  nextToken: [, input.NextToken],
@@ -1928,7 +1928,7 @@ const serializeAws_restJson1ListInstanceStorageConfigsCommand = async (input, co
1928
1928
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-configs";
1929
1929
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1930
1930
  const query = map({
1931
- resourceType: [, input.ResourceType],
1931
+ resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1932
1932
  nextToken: [, input.NextToken],
1933
1933
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1934
1934
  });
@@ -2994,7 +2994,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
2994
2994
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2995
2995
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
2996
2996
  const query = map({
2997
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
2997
+ tagKeys: [
2998
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
2999
+ () => (input.tagKeys || []).map((_entry) => _entry),
3000
+ ],
2998
3001
  });
2999
3002
  let body;
3000
3003
  return new protocol_http_1.HttpRequest({
@@ -3294,7 +3297,7 @@ const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, c
3294
3297
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3295
3298
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
3296
3299
  const query = map({
3297
- resourceType: [, input.ResourceType],
3300
+ resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
3298
3301
  });
3299
3302
  let body;
3300
3303
  body = JSON.stringify({
@@ -1048,7 +1048,7 @@ export const serializeAws_restJson1DescribeInstanceStorageConfigCommand = async
1048
1048
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1049
1049
  resolvedPath = __resolvedPath(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
1050
1050
  const query = map({
1051
- resourceType: [, input.ResourceType],
1051
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1052
1052
  });
1053
1053
  let body;
1054
1054
  return new __HttpRequest({
@@ -1240,7 +1240,7 @@ export const serializeAws_restJson1DisassociateApprovedOriginCommand = async (in
1240
1240
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin";
1241
1241
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1242
1242
  const query = map({
1243
- origin: [, input.Origin],
1243
+ origin: [, __expectNonNull(input.Origin, `Origin`)],
1244
1244
  });
1245
1245
  let body;
1246
1246
  return new __HttpRequest({
@@ -1284,7 +1284,7 @@ export const serializeAws_restJson1DisassociateInstanceStorageConfigCommand = as
1284
1284
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1285
1285
  resolvedPath = __resolvedPath(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
1286
1286
  const query = map({
1287
- resourceType: [, input.ResourceType],
1287
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1288
1288
  });
1289
1289
  let body;
1290
1290
  return new __HttpRequest({
@@ -1304,7 +1304,7 @@ export const serializeAws_restJson1DisassociateLambdaFunctionCommand = async (in
1304
1304
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function";
1305
1305
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1306
1306
  const query = map({
1307
- functionArn: [, input.FunctionArn],
1307
+ functionArn: [, __expectNonNull(input.FunctionArn, `FunctionArn`)],
1308
1308
  });
1309
1309
  let body;
1310
1310
  return new __HttpRequest({
@@ -1324,8 +1324,8 @@ export const serializeAws_restJson1DisassociateLexBotCommand = async (input, con
1324
1324
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot";
1325
1325
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1326
1326
  const query = map({
1327
- botName: [, input.BotName],
1328
- lexRegion: [, input.LexRegion],
1327
+ botName: [, __expectNonNull(input.BotName, `BotName`)],
1328
+ lexRegion: [, __expectNonNull(input.LexRegion, `LexRegion`)],
1329
1329
  });
1330
1330
  let body;
1331
1331
  return new __HttpRequest({
@@ -1346,7 +1346,7 @@ export const serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = a
1346
1346
  "/phone-number/{PhoneNumberId}/contact-flow";
1347
1347
  resolvedPath = __resolvedPath(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
1348
1348
  const query = map({
1349
- instanceId: [, input.InstanceId],
1349
+ instanceId: [, __expectNonNull(input.InstanceId, `InstanceId`)],
1350
1350
  });
1351
1351
  let body;
1352
1352
  return new __HttpRequest({
@@ -1655,7 +1655,7 @@ export const serializeAws_restJson1ListBotsCommand = async (input, context) => {
1655
1655
  const query = map({
1656
1656
  nextToken: [, input.NextToken],
1657
1657
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1658
- lexVersion: [, input.LexVersion],
1658
+ lexVersion: [, __expectNonNull(input.LexVersion, `LexVersion`)],
1659
1659
  });
1660
1660
  let body;
1661
1661
  return new __HttpRequest({
@@ -1726,7 +1726,7 @@ export const serializeAws_restJson1ListContactReferencesCommand = async (input,
1726
1726
  resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
1727
1727
  const query = map({
1728
1728
  referenceTypes: [
1729
- () => input.ReferenceTypes !== void 0,
1729
+ __expectNonNull(input.ReferenceTypes, `ReferenceTypes`) != null,
1730
1730
  () => (input.ReferenceTypes || []).map((_entry) => _entry),
1731
1731
  ],
1732
1732
  nextToken: [, input.NextToken],
@@ -1834,7 +1834,7 @@ export const serializeAws_restJson1ListInstanceStorageConfigsCommand = async (in
1834
1834
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-configs";
1835
1835
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1836
1836
  const query = map({
1837
- resourceType: [, input.ResourceType],
1837
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1838
1838
  nextToken: [, input.NextToken],
1839
1839
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1840
1840
  });
@@ -2857,7 +2857,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
2857
2857
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2858
2858
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
2859
2859
  const query = map({
2860
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
2860
+ tagKeys: [
2861
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
2862
+ () => (input.tagKeys || []).map((_entry) => _entry),
2863
+ ],
2861
2864
  });
2862
2865
  let body;
2863
2866
  return new __HttpRequest({
@@ -3145,7 +3148,7 @@ export const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (i
3145
3148
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3146
3149
  resolvedPath = __resolvedPath(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
3147
3150
  const query = map({
3148
- resourceType: [, input.ResourceType],
3151
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
3149
3152
  });
3150
3153
  let body;
3151
3154
  body = JSON.stringify({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect",
3
3
  "description": "AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native",
4
- "version": "3.216.0",
4
+ "version": "3.222.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",
@@ -19,36 +19,37 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.216.0",
23
- "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.216.0",
25
- "@aws-sdk/fetch-http-handler": "3.215.0",
26
- "@aws-sdk/hash-node": "3.215.0",
27
- "@aws-sdk/invalid-dependency": "3.215.0",
28
- "@aws-sdk/middleware-content-length": "3.215.0",
29
- "@aws-sdk/middleware-endpoint": "3.215.0",
30
- "@aws-sdk/middleware-host-header": "3.215.0",
31
- "@aws-sdk/middleware-logger": "3.215.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.215.0",
33
- "@aws-sdk/middleware-retry": "3.215.0",
34
- "@aws-sdk/middleware-serde": "3.215.0",
35
- "@aws-sdk/middleware-signing": "3.215.0",
36
- "@aws-sdk/middleware-stack": "3.215.0",
37
- "@aws-sdk/middleware-user-agent": "3.215.0",
38
- "@aws-sdk/node-config-provider": "3.215.0",
39
- "@aws-sdk/node-http-handler": "3.215.0",
40
- "@aws-sdk/protocol-http": "3.215.0",
41
- "@aws-sdk/smithy-client": "3.215.0",
42
- "@aws-sdk/types": "3.215.0",
43
- "@aws-sdk/url-parser": "3.215.0",
22
+ "@aws-sdk/client-sts": "3.222.0",
23
+ "@aws-sdk/config-resolver": "3.222.0",
24
+ "@aws-sdk/credential-provider-node": "3.222.0",
25
+ "@aws-sdk/fetch-http-handler": "3.222.0",
26
+ "@aws-sdk/hash-node": "3.222.0",
27
+ "@aws-sdk/invalid-dependency": "3.222.0",
28
+ "@aws-sdk/middleware-content-length": "3.222.0",
29
+ "@aws-sdk/middleware-endpoint": "3.222.0",
30
+ "@aws-sdk/middleware-host-header": "3.222.0",
31
+ "@aws-sdk/middleware-logger": "3.222.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.222.0",
33
+ "@aws-sdk/middleware-retry": "3.222.0",
34
+ "@aws-sdk/middleware-serde": "3.222.0",
35
+ "@aws-sdk/middleware-signing": "3.222.0",
36
+ "@aws-sdk/middleware-stack": "3.222.0",
37
+ "@aws-sdk/middleware-user-agent": "3.222.0",
38
+ "@aws-sdk/node-config-provider": "3.222.0",
39
+ "@aws-sdk/node-http-handler": "3.222.0",
40
+ "@aws-sdk/protocol-http": "3.222.0",
41
+ "@aws-sdk/smithy-client": "3.222.0",
42
+ "@aws-sdk/types": "3.222.0",
43
+ "@aws-sdk/url-parser": "3.222.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.216.0",
50
- "@aws-sdk/util-user-agent-browser": "3.215.0",
51
- "@aws-sdk/util-user-agent-node": "3.215.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.222.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.222.0",
49
+ "@aws-sdk/util-endpoints": "3.222.0",
50
+ "@aws-sdk/util-retry": "3.222.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.222.0",
52
+ "@aws-sdk/util-user-agent-node": "3.222.0",
52
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
54
  "@aws-sdk/util-utf8-node": "3.208.0",
54
55
  "tslib": "^2.3.1",