@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.
@@ -232,7 +232,7 @@ export const se_ClaimPhoneNumberCommand = async (input, context) => {
232
232
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/claim";
233
233
  let body;
234
234
  body = JSON.stringify(take(input, {
235
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
235
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
236
236
  PhoneNumber: [],
237
237
  PhoneNumberDescription: [],
238
238
  Tags: (_) => _json(_),
@@ -307,7 +307,7 @@ export const se_CreateContactFlowModuleCommand = async (input, context) => {
307
307
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
308
308
  let body;
309
309
  body = JSON.stringify(take(input, {
310
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
310
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
311
311
  Content: [],
312
312
  Description: [],
313
313
  Name: [],
@@ -487,7 +487,7 @@ export const se_CreateRuleCommand = async (input, context) => {
487
487
  let body;
488
488
  body = JSON.stringify(take(input, {
489
489
  Actions: (_) => _json(_),
490
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
490
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
491
491
  Function: [],
492
492
  Name: [],
493
493
  PublishStatus: [],
@@ -538,7 +538,7 @@ export const se_CreateTaskTemplateCommand = async (input, context) => {
538
538
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
539
539
  let body;
540
540
  body = JSON.stringify(take(input, {
541
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
541
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
542
542
  Constraints: (_) => _json(_),
543
543
  ContactFlowId: [],
544
544
  Defaults: (_) => _json(_),
@@ -565,7 +565,7 @@ export const se_CreateTrafficDistributionGroupCommand = async (input, context) =
565
565
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-group";
566
566
  let body;
567
567
  body = JSON.stringify(take(input, {
568
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
568
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
569
569
  Description: [],
570
570
  InstanceId: [],
571
571
  Name: [],
@@ -666,7 +666,7 @@ export const se_CreateVocabularyCommand = async (input, context) => {
666
666
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
667
667
  let body;
668
668
  body = JSON.stringify(take(input, {
669
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
669
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
670
670
  Content: [],
671
671
  LanguageCode: [],
672
672
  Tags: (_) => _json(_),
@@ -2377,7 +2377,7 @@ export const se_MonitorContactCommand = async (input, context) => {
2377
2377
  let body;
2378
2378
  body = JSON.stringify(take(input, {
2379
2379
  AllowedMonitorCapabilities: (_) => _json(_),
2380
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
2380
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2381
2381
  ContactId: [],
2382
2382
  InstanceId: [],
2383
2383
  UserId: [],
@@ -2443,7 +2443,7 @@ export const se_ReplicateInstanceCommand = async (input, context) => {
2443
2443
  resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2444
2444
  let body;
2445
2445
  body = JSON.stringify(take(input, {
2446
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
2446
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2447
2447
  ReplicaAlias: [],
2448
2448
  ReplicaRegion: [],
2449
2449
  }));
@@ -2635,7 +2635,7 @@ export const se_StartChatContactCommand = async (input, context) => {
2635
2635
  body = JSON.stringify(take(input, {
2636
2636
  Attributes: (_) => _json(_),
2637
2637
  ChatDurationInMinutes: [],
2638
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
2638
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2639
2639
  ContactFlowId: [],
2640
2640
  InitialMessage: (_) => _json(_),
2641
2641
  InstanceId: [],
@@ -2686,7 +2686,7 @@ export const se_StartContactStreamingCommand = async (input, context) => {
2686
2686
  let body;
2687
2687
  body = JSON.stringify(take(input, {
2688
2688
  ChatStreamingConfiguration: (_) => _json(_),
2689
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
2689
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2690
2690
  ContactId: [],
2691
2691
  InstanceId: [],
2692
2692
  }));
@@ -2711,7 +2711,7 @@ export const se_StartOutboundVoiceContactCommand = async (input, context) => {
2711
2711
  AnswerMachineDetectionConfig: (_) => _json(_),
2712
2712
  Attributes: (_) => _json(_),
2713
2713
  CampaignId: [],
2714
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
2714
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2715
2715
  ContactFlowId: [],
2716
2716
  DestinationPhoneNumber: [],
2717
2717
  InstanceId: [],
@@ -2738,7 +2738,7 @@ export const se_StartTaskContactCommand = async (input, context) => {
2738
2738
  let body;
2739
2739
  body = JSON.stringify(take(input, {
2740
2740
  Attributes: (_) => _json(_),
2741
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
2741
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2742
2742
  ContactFlowId: [],
2743
2743
  Description: [],
2744
2744
  InstanceId: [],
@@ -2876,7 +2876,7 @@ export const se_TransferContactCommand = async (input, context) => {
2876
2876
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/transfer";
2877
2877
  let body;
2878
2878
  body = JSON.stringify(take(input, {
2879
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
2879
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2880
2880
  ContactFlowId: [],
2881
2881
  ContactId: [],
2882
2882
  InstanceId: [],
@@ -3239,7 +3239,7 @@ export const se_UpdatePhoneNumberCommand = async (input, context) => {
3239
3239
  resolvedPath = __resolvedPath(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
3240
3240
  let body;
3241
3241
  body = JSON.stringify(take(input, {
3242
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
3242
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
3243
3243
  TargetArn: [],
3244
3244
  }));
3245
3245
  return new __HttpRequest({