@aws-sdk/client-connect 3.914.0 → 3.916.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 (75) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +119 -14
  3. package/dist-es/Connect.js +4 -0
  4. package/dist-es/commands/AssociateEmailAddressAliasCommand.js +22 -0
  5. package/dist-es/commands/DisassociateEmailAddressAliasCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +22 -14
  8. package/dist-es/protocols/Aws_restJson1.js +57 -0
  9. package/dist-types/Connect.d.ts +14 -0
  10. package/dist-types/ConnectClient.d.ts +4 -2
  11. package/dist-types/commands/AssociateEmailAddressAliasCommand.d.ts +193 -0
  12. package/dist-types/commands/BatchPutContactCommand.d.ts +16 -1
  13. package/dist-types/commands/DeleteContactEvaluationCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteContactFlowCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteContactFlowModuleCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteContactFlowVersionCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteEmailAddressCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteEvaluationFormCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeAuthenticationProfileCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeContactCommand.d.ts +19 -1
  21. package/dist-types/commands/DescribeEmailAddressCommand.d.ts +5 -0
  22. package/dist-types/commands/DisassociateEmailAddressAliasCommand.d.ts +194 -0
  23. package/dist-types/commands/ImportPhoneNumberCommand.d.ts +1 -1
  24. package/dist-types/commands/ListAuthenticationProfilesCommand.d.ts +1 -1
  25. package/dist-types/commands/ListEvaluationFormVersionsCommand.d.ts +1 -1
  26. package/dist-types/commands/ListFlowAssociationsCommand.d.ts +1 -1
  27. package/dist-types/commands/ListHoursOfOperationOverridesCommand.d.ts +1 -1
  28. package/dist-types/commands/ListHoursOfOperationsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListInstanceAttributesCommand.d.ts +1 -1
  30. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  31. package/dist-types/commands/SearchEmailAddressesCommand.d.ts +5 -0
  32. package/dist-types/commands/StartChatContactCommand.d.ts +1 -1
  33. package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +15 -0
  34. package/dist-types/commands/StopContactCommand.d.ts +1 -1
  35. package/dist-types/commands/UpdateAuthenticationProfileCommand.d.ts +1 -1
  36. package/dist-types/commands/UpdateContactEvaluationCommand.d.ts +1 -1
  37. package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  38. package/dist-types/commands/UpdateContactFlowMetadataCommand.d.ts +1 -1
  39. package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +1 -1
  40. package/dist-types/commands/UpdateContactFlowModuleMetadataCommand.d.ts +1 -1
  41. package/dist-types/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  42. package/dist-types/commands/index.d.ts +2 -0
  43. package/dist-types/models/models_0.d.ts +163 -133
  44. package/dist-types/models/models_1.d.ts +165 -291
  45. package/dist-types/models/models_2.d.ts +305 -197
  46. package/dist-types/models/models_3.d.ts +205 -6
  47. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  48. package/dist-types/ts3.4/Connect.d.ts +34 -0
  49. package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
  50. package/dist-types/ts3.4/commands/AssociateEmailAddressAliasCommand.d.ts +51 -0
  51. package/dist-types/ts3.4/commands/DeleteContactEvaluationCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/DeleteContactFlowCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/DeleteContactFlowModuleCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/DeleteContactFlowVersionCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/DeleteEmailAddressCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/DeleteEvaluationFormCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/DisassociateEmailAddressAliasCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/ListEvaluationFormVersionsCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/ListFlowAssociationsCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/ListHoursOfOperationOverridesCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/ListHoursOfOperationsCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/ListInstanceAttributesCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/UpdateContactEvaluationCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/UpdateContactFlowMetadataCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateContactFlowModuleContentCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateContactFlowModuleMetadataCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +50 -38
  71. package/dist-types/ts3.4/models/models_1.d.ts +39 -70
  72. package/dist-types/ts3.4/models/models_2.d.ts +76 -47
  73. package/dist-types/ts3.4/models/models_3.d.ts +49 -0
  74. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  75. package/package.json +13 -13
@@ -350,6 +350,56 @@ export interface AgentContactReference {
350
350
  */
351
351
  Queue?: QueueReference | undefined;
352
352
  }
353
+ /**
354
+ * @public
355
+ * @enum
356
+ */
357
+ export declare const AllowedUserAction: {
358
+ readonly CALL: "CALL";
359
+ readonly DISCARD: "DISCARD";
360
+ };
361
+ /**
362
+ * @public
363
+ */
364
+ export type AllowedUserAction = (typeof AllowedUserAction)[keyof typeof AllowedUserAction];
365
+ /**
366
+ * <p>Countdown timer configuration after the agent accepted the contact.</p>
367
+ * @public
368
+ */
369
+ export interface PostAcceptTimeoutConfig {
370
+ /**
371
+ * <p>Duration in seconds for the countdown timer after the agent accepted the contact.</p>
372
+ * @public
373
+ */
374
+ DurationInSeconds: number | undefined;
375
+ }
376
+ /**
377
+ * <p>Information about agent-first preview mode outbound strategy configuration.</p>
378
+ * @public
379
+ */
380
+ export interface Preview {
381
+ /**
382
+ * <p>Countdown timer configuration after the agent accepted the preview outbound contact.</p>
383
+ * @public
384
+ */
385
+ PostAcceptTimeoutConfig: PostAcceptTimeoutConfig | undefined;
386
+ /**
387
+ * <p>The actions the agent can perform after accepting the preview outbound contact.</p>
388
+ * @public
389
+ */
390
+ AllowedUserActions: AllowedUserAction[] | undefined;
391
+ }
392
+ /**
393
+ * <p>Information about agent-first outbound strategy configuration.</p>
394
+ * @public
395
+ */
396
+ export interface AgentFirst {
397
+ /**
398
+ * <p>Information about preview configuration of agent first outbound strategy</p>
399
+ * @public
400
+ */
401
+ Preview?: Preview | undefined;
402
+ }
353
403
  /**
354
404
  * <p>Information about an agent hierarchy group.</p>
355
405
  * @public
@@ -534,6 +584,16 @@ export interface AgentInfo {
534
584
  * @public
535
585
  */
536
586
  Id?: string | undefined;
587
+ /**
588
+ * <p>The timestamp when the contact was accepted by the agent.</p>
589
+ * @public
590
+ */
591
+ AcceptedByAgentTimestamp?: Date | undefined;
592
+ /**
593
+ * <p>The timestamp when the agent finished previewing the contact.</p>
594
+ * @public
595
+ */
596
+ PreviewEndTimestamp?: Date | undefined;
537
597
  /**
538
598
  * <p>The timestamp when the contact was connected to the agent.</p>
539
599
  * @public
@@ -911,6 +971,17 @@ export interface AgentStatusSummary {
911
971
  */
912
972
  LastModifiedRegion?: string | undefined;
913
973
  }
974
+ /**
975
+ * <p>Configuration information of an email alias.</p>
976
+ * @public
977
+ */
978
+ export interface AliasConfiguration {
979
+ /**
980
+ * <p>The email address ID.</p>
981
+ * @public
982
+ */
983
+ EmailAddressId: string | undefined;
984
+ }
914
985
  /**
915
986
  * <p>Information about the capabilities enabled for participants of the contact.</p>
916
987
  * @public
@@ -1300,6 +1371,54 @@ export interface AssociateDefaultVocabularyRequest {
1300
1371
  */
1301
1372
  export interface AssociateDefaultVocabularyResponse {
1302
1373
  }
1374
+ /**
1375
+ * @public
1376
+ */
1377
+ export interface AssociateEmailAddressAliasRequest {
1378
+ /**
1379
+ * <p>The identifier of the email address.</p>
1380
+ * @public
1381
+ */
1382
+ EmailAddressId: string | undefined;
1383
+ /**
1384
+ * <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
1385
+ * @public
1386
+ */
1387
+ InstanceId: string | undefined;
1388
+ /**
1389
+ * <p>Configuration object that specifies which email address will serve as the alias. The
1390
+ * specified email address must already exist in the Amazon Connect instance and cannot already
1391
+ * be configured as an alias or have an alias of its own.</p>
1392
+ * @public
1393
+ */
1394
+ AliasConfiguration: AliasConfiguration | undefined;
1395
+ /**
1396
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
1397
+ * request. If not provided, the Amazon Web Services
1398
+ * SDK populates this field. For more information about idempotency, see
1399
+ * <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
1400
+ * @public
1401
+ */
1402
+ ClientToken?: string | undefined;
1403
+ }
1404
+ /**
1405
+ * @public
1406
+ */
1407
+ export interface AssociateEmailAddressAliasResponse {
1408
+ }
1409
+ /**
1410
+ * <p>An entity with the same name already exists.</p>
1411
+ * @public
1412
+ */
1413
+ export declare class IdempotencyException extends __BaseException {
1414
+ readonly name: "IdempotencyException";
1415
+ readonly $fault: "client";
1416
+ Message?: string | undefined;
1417
+ /**
1418
+ * @internal
1419
+ */
1420
+ constructor(opts: __ExceptionOptionType<IdempotencyException, __BaseException>);
1421
+ }
1303
1422
  /**
1304
1423
  * @public
1305
1424
  * @enum
@@ -2297,6 +2416,44 @@ export interface Endpoint {
2297
2416
  */
2298
2417
  Address?: string | undefined;
2299
2418
  }
2419
+ /**
2420
+ * <p>The config of the outbound strategy.</p>
2421
+ * @public
2422
+ */
2423
+ export interface OutboundStrategyConfig {
2424
+ /**
2425
+ * <p>The config of agent first outbound strategy.</p>
2426
+ * @public
2427
+ */
2428
+ AgentFirst?: AgentFirst | undefined;
2429
+ }
2430
+ /**
2431
+ * @public
2432
+ * @enum
2433
+ */
2434
+ export declare const OutboundStrategyType: {
2435
+ readonly AGENT_FIRST: "AGENT_FIRST";
2436
+ };
2437
+ /**
2438
+ * @public
2439
+ */
2440
+ export type OutboundStrategyType = (typeof OutboundStrategyType)[keyof typeof OutboundStrategyType];
2441
+ /**
2442
+ * <p>Information about the outbound strategy.</p>
2443
+ * @public
2444
+ */
2445
+ export interface OutboundStrategy {
2446
+ /**
2447
+ * <p>Type of the outbound strategy.</p>
2448
+ * @public
2449
+ */
2450
+ Type: OutboundStrategyType | undefined;
2451
+ /**
2452
+ * <p>Config of the outbound strategy.</p>
2453
+ * @public
2454
+ */
2455
+ Config?: OutboundStrategyConfig | undefined;
2456
+ }
2300
2457
  /**
2301
2458
  * <p>Request object with information to create a contact.</p>
2302
2459
  * @public
@@ -2334,6 +2491,11 @@ export interface ContactDataRequest {
2334
2491
  * @public
2335
2492
  */
2336
2493
  Campaign?: Campaign | undefined;
2494
+ /**
2495
+ * <p>Information about the outbound strategy.</p>
2496
+ * @public
2497
+ */
2498
+ OutboundStrategy?: OutboundStrategy | undefined;
2337
2499
  }
2338
2500
  /**
2339
2501
  * @public
@@ -2367,6 +2529,7 @@ export declare const FailureReasonCode: {
2367
2529
  readonly INTERNAL_ERROR: "INTERNAL_ERROR";
2368
2530
  readonly INVALID_ATTRIBUTE_KEY: "INVALID_ATTRIBUTE_KEY";
2369
2531
  readonly INVALID_CUSTOMER_ENDPOINT: "INVALID_CUSTOMER_ENDPOINT";
2532
+ readonly INVALID_OUTBOUND_STRATEGY: "INVALID_OUTBOUND_STRATEGY";
2370
2533
  readonly INVALID_QUEUE: "INVALID_QUEUE";
2371
2534
  readonly INVALID_SYSTEM_ENDPOINT: "INVALID_SYSTEM_ENDPOINT";
2372
2535
  readonly MISSING_CAMPAIGN: "MISSING_CAMPAIGN";
@@ -2432,19 +2595,6 @@ export interface BatchPutContactResponse {
2432
2595
  */
2433
2596
  FailedRequestList?: FailedRequest[] | undefined;
2434
2597
  }
2435
- /**
2436
- * <p>An entity with the same name already exists.</p>
2437
- * @public
2438
- */
2439
- export declare class IdempotencyException extends __BaseException {
2440
- readonly name: "IdempotencyException";
2441
- readonly $fault: "client";
2442
- Message?: string | undefined;
2443
- /**
2444
- * @internal
2445
- */
2446
- constructor(opts: __ExceptionOptionType<IdempotencyException, __BaseException>);
2447
- }
2448
2598
  /**
2449
2599
  * @public
2450
2600
  */
@@ -6296,126 +6446,6 @@ export interface DeleteAttachedFileRequest {
6296
6446
  */
6297
6447
  export interface DeleteAttachedFileResponse {
6298
6448
  }
6299
- /**
6300
- * @public
6301
- */
6302
- export interface DeleteContactEvaluationRequest {
6303
- /**
6304
- * <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
6305
- * @public
6306
- */
6307
- InstanceId: string | undefined;
6308
- /**
6309
- * <p>A unique identifier for the contact evaluation.</p>
6310
- * @public
6311
- */
6312
- EvaluationId: string | undefined;
6313
- }
6314
- /**
6315
- * @public
6316
- */
6317
- export interface DeleteContactFlowRequest {
6318
- /**
6319
- * <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
6320
- * @public
6321
- */
6322
- InstanceId: string | undefined;
6323
- /**
6324
- * <p>The identifier of the flow.</p>
6325
- * @public
6326
- */
6327
- ContactFlowId: string | undefined;
6328
- }
6329
- /**
6330
- * @public
6331
- */
6332
- export interface DeleteContactFlowResponse {
6333
- }
6334
- /**
6335
- * @public
6336
- */
6337
- export interface DeleteContactFlowModuleRequest {
6338
- /**
6339
- * <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
6340
- * @public
6341
- */
6342
- InstanceId: string | undefined;
6343
- /**
6344
- * <p>The identifier of the flow module.</p>
6345
- * @public
6346
- */
6347
- ContactFlowModuleId: string | undefined;
6348
- }
6349
- /**
6350
- * @public
6351
- */
6352
- export interface DeleteContactFlowModuleResponse {
6353
- }
6354
- /**
6355
- * @public
6356
- */
6357
- export interface DeleteContactFlowVersionRequest {
6358
- /**
6359
- * <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
6360
- * @public
6361
- */
6362
- InstanceId: string | undefined;
6363
- /**
6364
- * <p>The identifier of the flow.</p>
6365
- * @public
6366
- */
6367
- ContactFlowId: string | undefined;
6368
- /**
6369
- * <p>The identifier of the flow version.</p>
6370
- * @public
6371
- */
6372
- ContactFlowVersion: number | undefined;
6373
- }
6374
- /**
6375
- * @public
6376
- */
6377
- export interface DeleteContactFlowVersionResponse {
6378
- }
6379
- /**
6380
- * @public
6381
- */
6382
- export interface DeleteEmailAddressRequest {
6383
- /**
6384
- * <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
6385
- * @public
6386
- */
6387
- InstanceId: string | undefined;
6388
- /**
6389
- * <p>The identifier of the email address.</p>
6390
- * @public
6391
- */
6392
- EmailAddressId: string | undefined;
6393
- }
6394
- /**
6395
- * @public
6396
- */
6397
- export interface DeleteEmailAddressResponse {
6398
- }
6399
- /**
6400
- * @public
6401
- */
6402
- export interface DeleteEvaluationFormRequest {
6403
- /**
6404
- * <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
6405
- * @public
6406
- */
6407
- InstanceId: string | undefined;
6408
- /**
6409
- * <p>The unique identifier for the evaluation form.</p>
6410
- * @public
6411
- */
6412
- EvaluationFormId: string | undefined;
6413
- /**
6414
- * <p>The unique identifier for the evaluation form.</p>
6415
- * @public
6416
- */
6417
- EvaluationFormVersion?: number | undefined;
6418
- }
6419
6449
  /**
6420
6450
  * @internal
6421
6451
  */