@aws-sdk/client-connect 3.315.0 → 3.316.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.
@@ -251,7 +251,7 @@ const se_ClaimPhoneNumberCommand = async (input, context) => {
251
251
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/claim";
252
252
  let body;
253
253
  body = JSON.stringify((0, smithy_client_1.take)(input, {
254
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
254
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
255
255
  PhoneNumber: [],
256
256
  PhoneNumberDescription: [],
257
257
  Tags: (_) => (0, smithy_client_1._json)(_),
@@ -329,7 +329,7 @@ const se_CreateContactFlowModuleCommand = async (input, context) => {
329
329
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
330
330
  let body;
331
331
  body = JSON.stringify((0, smithy_client_1.take)(input, {
332
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
332
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
333
333
  Content: [],
334
334
  Description: [],
335
335
  Name: [],
@@ -516,7 +516,7 @@ const se_CreateRuleCommand = async (input, context) => {
516
516
  let body;
517
517
  body = JSON.stringify((0, smithy_client_1.take)(input, {
518
518
  Actions: (_) => (0, smithy_client_1._json)(_),
519
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
519
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
520
520
  Function: [],
521
521
  Name: [],
522
522
  PublishStatus: [],
@@ -569,7 +569,7 @@ const se_CreateTaskTemplateCommand = async (input, context) => {
569
569
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
570
570
  let body;
571
571
  body = JSON.stringify((0, smithy_client_1.take)(input, {
572
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
572
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
573
573
  Constraints: (_) => (0, smithy_client_1._json)(_),
574
574
  ContactFlowId: [],
575
575
  Defaults: (_) => (0, smithy_client_1._json)(_),
@@ -597,7 +597,7 @@ const se_CreateTrafficDistributionGroupCommand = async (input, context) => {
597
597
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-group";
598
598
  let body;
599
599
  body = JSON.stringify((0, smithy_client_1.take)(input, {
600
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
600
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
601
601
  Description: [],
602
602
  InstanceId: [],
603
603
  Name: [],
@@ -702,7 +702,7 @@ const se_CreateVocabularyCommand = async (input, context) => {
702
702
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
703
703
  let body;
704
704
  body = JSON.stringify((0, smithy_client_1.take)(input, {
705
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
705
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
706
706
  Content: [],
707
707
  LanguageCode: [],
708
708
  Tags: (_) => (0, smithy_client_1._json)(_),
@@ -2497,7 +2497,7 @@ const se_MonitorContactCommand = async (input, context) => {
2497
2497
  let body;
2498
2498
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2499
2499
  AllowedMonitorCapabilities: (_) => (0, smithy_client_1._json)(_),
2500
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
2500
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2501
2501
  ContactId: [],
2502
2502
  InstanceId: [],
2503
2503
  UserId: [],
@@ -2566,7 +2566,7 @@ const se_ReplicateInstanceCommand = async (input, context) => {
2566
2566
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2567
2567
  let body;
2568
2568
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2569
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
2569
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2570
2570
  ReplicaAlias: [],
2571
2571
  ReplicaRegion: [],
2572
2572
  }));
@@ -2766,7 +2766,7 @@ const se_StartChatContactCommand = async (input, context) => {
2766
2766
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2767
2767
  Attributes: (_) => (0, smithy_client_1._json)(_),
2768
2768
  ChatDurationInMinutes: [],
2769
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
2769
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2770
2770
  ContactFlowId: [],
2771
2771
  InitialMessage: (_) => (0, smithy_client_1._json)(_),
2772
2772
  InstanceId: [],
@@ -2819,7 +2819,7 @@ const se_StartContactStreamingCommand = async (input, context) => {
2819
2819
  let body;
2820
2820
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2821
2821
  ChatStreamingConfiguration: (_) => (0, smithy_client_1._json)(_),
2822
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
2822
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2823
2823
  ContactId: [],
2824
2824
  InstanceId: [],
2825
2825
  }));
@@ -2845,7 +2845,7 @@ const se_StartOutboundVoiceContactCommand = async (input, context) => {
2845
2845
  AnswerMachineDetectionConfig: (_) => (0, smithy_client_1._json)(_),
2846
2846
  Attributes: (_) => (0, smithy_client_1._json)(_),
2847
2847
  CampaignId: [],
2848
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
2848
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2849
2849
  ContactFlowId: [],
2850
2850
  DestinationPhoneNumber: [],
2851
2851
  InstanceId: [],
@@ -2873,7 +2873,7 @@ const se_StartTaskContactCommand = async (input, context) => {
2873
2873
  let body;
2874
2874
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2875
2875
  Attributes: (_) => (0, smithy_client_1._json)(_),
2876
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
2876
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2877
2877
  ContactFlowId: [],
2878
2878
  Description: [],
2879
2879
  InstanceId: [],
@@ -3017,7 +3017,7 @@ const se_TransferContactCommand = async (input, context) => {
3017
3017
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/transfer";
3018
3018
  let body;
3019
3019
  body = JSON.stringify((0, smithy_client_1.take)(input, {
3020
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
3020
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3021
3021
  ContactFlowId: [],
3022
3022
  ContactId: [],
3023
3023
  InstanceId: [],
@@ -3395,7 +3395,7 @@ const se_UpdatePhoneNumberCommand = async (input, context) => {
3395
3395
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
3396
3396
  let body;
3397
3397
  body = JSON.stringify((0, smithy_client_1.take)(input, {
3398
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
3398
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3399
3399
  TargetArn: [],
3400
3400
  }));
3401
3401
  return new protocol_http_1.HttpRequest({