@aws-sdk/client-connect 3.658.0 → 3.658.1

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/index.js CHANGED
@@ -4118,7 +4118,7 @@ var se_ListAgentStatusesCommand = /* @__PURE__ */ __name(async (input, context)
4118
4118
  const query = (0, import_smithy_client.map)({
4119
4119
  [_nT]: [, input[_NT]],
4120
4120
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
4121
- [_AST]: [() => input.AgentStatusTypes !== void 0, () => (input[_AST] || []).map((_entry) => _entry)]
4121
+ [_AST]: [() => input.AgentStatusTypes !== void 0, () => input[_AST] || []]
4122
4122
  });
4123
4123
  let body;
4124
4124
  b.m("GET").h(headers).q(query).b(body);
@@ -4211,7 +4211,7 @@ var se_ListContactFlowsCommand = /* @__PURE__ */ __name(async (input, context) =
4211
4211
  b.bp("/contact-flows-summary/{InstanceId}");
4212
4212
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
4213
4213
  const query = (0, import_smithy_client.map)({
4214
- [_cFT]: [() => input.ContactFlowTypes !== void 0, () => (input[_CFT] || []).map((_entry) => _entry)],
4214
+ [_cFT]: [() => input.ContactFlowTypes !== void 0, () => input[_CFT] || []],
4215
4215
  [_nT]: [, input[_NT]],
4216
4216
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
4217
4217
  });
@@ -4226,10 +4226,7 @@ var se_ListContactReferencesCommand = /* @__PURE__ */ __name(async (input, conte
4226
4226
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
4227
4227
  b.p("ContactId", () => input.ContactId, "{ContactId}", false);
4228
4228
  const query = (0, import_smithy_client.map)({
4229
- [_rTe]: [
4230
- (0, import_smithy_client.expectNonNull)(input.ReferenceTypes, `ReferenceTypes`) != null,
4231
- () => (input[_RTe] || []).map((_entry) => _entry)
4232
- ],
4229
+ [_rTe]: [(0, import_smithy_client.expectNonNull)(input.ReferenceTypes, `ReferenceTypes`) != null, () => input[_RTe] || []],
4233
4230
  [_nT]: [, input[_NT]]
4234
4231
  });
4235
4232
  let body;
@@ -4394,11 +4391,8 @@ var se_ListPhoneNumbersCommand = /* @__PURE__ */ __name(async (input, context) =
4394
4391
  b.bp("/phone-numbers-summary/{InstanceId}");
4395
4392
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
4396
4393
  const query = (0, import_smithy_client.map)({
4397
- [_pNT]: [() => input.PhoneNumberTypes !== void 0, () => (input[_PNT] || []).map((_entry) => _entry)],
4398
- [_pNCC]: [
4399
- () => input.PhoneNumberCountryCodes !== void 0,
4400
- () => (input[_PNCC] || []).map((_entry) => _entry)
4401
- ],
4394
+ [_pNT]: [() => input.PhoneNumberTypes !== void 0, () => input[_PNT] || []],
4395
+ [_pNCC]: [() => input.PhoneNumberCountryCodes !== void 0, () => input[_PNCC] || []],
4402
4396
  [_nT]: [, input[_NT]],
4403
4397
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
4404
4398
  });
@@ -4473,7 +4467,7 @@ var se_ListQueuesCommand = /* @__PURE__ */ __name(async (input, context) => {
4473
4467
  b.bp("/queues-summary/{InstanceId}");
4474
4468
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
4475
4469
  const query = (0, import_smithy_client.map)({
4476
- [_qT]: [() => input.QueueTypes !== void 0, () => (input[_QT] || []).map((_entry) => _entry)],
4470
+ [_qT]: [() => input.QueueTypes !== void 0, () => input[_QT] || []],
4477
4471
  [_nT]: [, input[_NT]],
4478
4472
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
4479
4473
  });
@@ -4489,7 +4483,7 @@ var se_ListQuickConnectsCommand = /* @__PURE__ */ __name(async (input, context)
4489
4483
  const query = (0, import_smithy_client.map)({
4490
4484
  [_nT]: [, input[_NT]],
4491
4485
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
4492
- [_QCT]: [() => input.QuickConnectTypes !== void 0, () => (input[_QCT] || []).map((_entry) => _entry)]
4486
+ [_QCT]: [() => input.QuickConnectTypes !== void 0, () => input[_QCT] || []]
4493
4487
  });
4494
4488
  let body;
4495
4489
  b.m("GET").h(headers).q(query).b(body);
@@ -5513,10 +5507,7 @@ var se_UntagContactCommand = /* @__PURE__ */ __name(async (input, context) => {
5513
5507
  b.p("ContactId", () => input.ContactId, "{ContactId}", false);
5514
5508
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
5515
5509
  const query = (0, import_smithy_client.map)({
5516
- [_TK]: [
5517
- (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
5518
- () => (input[_TK] || []).map((_entry) => _entry)
5519
- ]
5510
+ [_TK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
5520
5511
  });
5521
5512
  let body;
5522
5513
  b.m("DELETE").h(headers).q(query).b(body);
@@ -5528,10 +5519,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
5528
5519
  b.bp("/tags/{resourceArn}");
5529
5520
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
5530
5521
  const query = (0, import_smithy_client.map)({
5531
- [_tK]: [
5532
- (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
5533
- () => (input[_tK] || []).map((_entry) => _entry)
5534
- ]
5522
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
5535
5523
  });
5536
5524
  let body;
5537
5525
  b.m("DELETE").h(headers).q(query).b(body);
@@ -1639,7 +1639,7 @@ export const se_ListAgentStatusesCommand = async (input, context) => {
1639
1639
  const query = map({
1640
1640
  [_nT]: [, input[_NT]],
1641
1641
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1642
- [_AST]: [() => input.AgentStatusTypes !== void 0, () => (input[_AST] || []).map((_entry) => _entry)],
1642
+ [_AST]: [() => input.AgentStatusTypes !== void 0, () => input[_AST] || []],
1643
1643
  });
1644
1644
  let body;
1645
1645
  b.m("GET").h(headers).q(query).b(body);
@@ -1732,7 +1732,7 @@ export const se_ListContactFlowsCommand = async (input, context) => {
1732
1732
  b.bp("/contact-flows-summary/{InstanceId}");
1733
1733
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1734
1734
  const query = map({
1735
- [_cFT]: [() => input.ContactFlowTypes !== void 0, () => (input[_CFT] || []).map((_entry) => _entry)],
1735
+ [_cFT]: [() => input.ContactFlowTypes !== void 0, () => input[_CFT] || []],
1736
1736
  [_nT]: [, input[_NT]],
1737
1737
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1738
1738
  });
@@ -1747,10 +1747,7 @@ export const se_ListContactReferencesCommand = async (input, context) => {
1747
1747
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1748
1748
  b.p("ContactId", () => input.ContactId, "{ContactId}", false);
1749
1749
  const query = map({
1750
- [_rTe]: [
1751
- __expectNonNull(input.ReferenceTypes, `ReferenceTypes`) != null,
1752
- () => (input[_RTe] || []).map((_entry) => _entry),
1753
- ],
1750
+ [_rTe]: [__expectNonNull(input.ReferenceTypes, `ReferenceTypes`) != null, () => input[_RTe] || []],
1754
1751
  [_nT]: [, input[_NT]],
1755
1752
  });
1756
1753
  let body;
@@ -1913,11 +1910,8 @@ export const se_ListPhoneNumbersCommand = async (input, context) => {
1913
1910
  b.bp("/phone-numbers-summary/{InstanceId}");
1914
1911
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1915
1912
  const query = map({
1916
- [_pNT]: [() => input.PhoneNumberTypes !== void 0, () => (input[_PNT] || []).map((_entry) => _entry)],
1917
- [_pNCC]: [
1918
- () => input.PhoneNumberCountryCodes !== void 0,
1919
- () => (input[_PNCC] || []).map((_entry) => _entry),
1920
- ],
1913
+ [_pNT]: [() => input.PhoneNumberTypes !== void 0, () => input[_PNT] || []],
1914
+ [_pNCC]: [() => input.PhoneNumberCountryCodes !== void 0, () => input[_PNCC] || []],
1921
1915
  [_nT]: [, input[_NT]],
1922
1916
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1923
1917
  });
@@ -1990,7 +1984,7 @@ export const se_ListQueuesCommand = async (input, context) => {
1990
1984
  b.bp("/queues-summary/{InstanceId}");
1991
1985
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1992
1986
  const query = map({
1993
- [_qT]: [() => input.QueueTypes !== void 0, () => (input[_QT] || []).map((_entry) => _entry)],
1987
+ [_qT]: [() => input.QueueTypes !== void 0, () => input[_QT] || []],
1994
1988
  [_nT]: [, input[_NT]],
1995
1989
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1996
1990
  });
@@ -2006,7 +2000,7 @@ export const se_ListQuickConnectsCommand = async (input, context) => {
2006
2000
  const query = map({
2007
2001
  [_nT]: [, input[_NT]],
2008
2002
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
2009
- [_QCT]: [() => input.QuickConnectTypes !== void 0, () => (input[_QCT] || []).map((_entry) => _entry)],
2003
+ [_QCT]: [() => input.QuickConnectTypes !== void 0, () => input[_QCT] || []],
2010
2004
  });
2011
2005
  let body;
2012
2006
  b.m("GET").h(headers).q(query).b(body);
@@ -2950,10 +2944,7 @@ export const se_UntagContactCommand = async (input, context) => {
2950
2944
  b.p("ContactId", () => input.ContactId, "{ContactId}", false);
2951
2945
  b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
2952
2946
  const query = map({
2953
- [_TK]: [
2954
- __expectNonNull(input.TagKeys, `TagKeys`) != null,
2955
- () => (input[_TK] || []).map((_entry) => _entry),
2956
- ],
2947
+ [_TK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
2957
2948
  });
2958
2949
  let body;
2959
2950
  b.m("DELETE").h(headers).q(query).b(body);
@@ -2965,10 +2956,7 @@ export const se_UntagResourceCommand = async (input, context) => {
2965
2956
  b.bp("/tags/{resourceArn}");
2966
2957
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
2967
2958
  const query = map({
2968
- [_tK]: [
2969
- __expectNonNull(input.tagKeys, `tagKeys`) != null,
2970
- () => (input[_tK] || []).map((_entry) => _entry),
2971
- ],
2959
+ [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
2972
2960
  });
2973
2961
  let body;
2974
2962
  b.m("DELETE").h(headers).q(query).b(body);
@@ -9190,11 +9178,6 @@ const deserializeMetadata = (output) => ({
9190
9178
  cfId: output.headers["x-amz-cf-id"],
9191
9179
  });
9192
9180
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
9193
- const isSerializableHeaderValue = (value) => value !== undefined &&
9194
- value !== null &&
9195
- value !== "" &&
9196
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
9197
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
9198
9181
  const _ARA = "AssociatedResourceArn";
9199
9182
  const _AST = "AgentStatusTypes";
9200
9183
  const _BN = "BotName";
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.658.0",
4
+ "version": "3.658.1",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-connect",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
23
+ "@aws-sdk/client-sso-oidc": "3.658.1",
24
+ "@aws-sdk/client-sts": "3.658.1",
25
+ "@aws-sdk/core": "3.658.1",
26
+ "@aws-sdk/credential-provider-node": "3.658.1",
27
27
  "@aws-sdk/middleware-host-header": "3.654.0",
28
28
  "@aws-sdk/middleware-logger": "3.654.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.654.0",
@@ -34,26 +34,26 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.654.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.654.0",
36
36
  "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
38
- "@smithy/fetch-http-handler": "^3.2.7",
37
+ "@smithy/core": "^2.4.6",
38
+ "@smithy/fetch-http-handler": "^3.2.8",
39
39
  "@smithy/hash-node": "^3.0.6",
40
40
  "@smithy/invalid-dependency": "^3.0.6",
41
41
  "@smithy/middleware-content-length": "^3.0.8",
42
42
  "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.18",
43
+ "@smithy/middleware-retry": "^3.0.21",
44
44
  "@smithy/middleware-serde": "^3.0.6",
45
45
  "@smithy/middleware-stack": "^3.0.6",
46
46
  "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.2",
47
+ "@smithy/node-http-handler": "^3.2.3",
48
48
  "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.2",
49
+ "@smithy/smithy-client": "^3.3.5",
50
50
  "@smithy/types": "^3.4.2",
51
51
  "@smithy/url-parser": "^3.0.6",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.18",
56
- "@smithy/util-defaults-mode-node": "^3.0.18",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
56
+ "@smithy/util-defaults-mode-node": "^3.0.21",
57
57
  "@smithy/util-endpoints": "^2.1.2",
58
58
  "@smithy/util-middleware": "^3.0.6",
59
59
  "@smithy/util-retry": "^3.0.6",