@aws-sdk/client-connect 3.319.0 → 3.321.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.
Files changed (113) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/Connect.js +28 -0
  3. package/dist-cjs/commands/ActivateEvaluationFormCommand.js +45 -0
  4. package/dist-cjs/commands/CreateEvaluationFormCommand.js +45 -0
  5. package/dist-cjs/commands/DeactivateEvaluationFormCommand.js +45 -0
  6. package/dist-cjs/commands/DeleteContactEvaluationCommand.js +45 -0
  7. package/dist-cjs/commands/DeleteEvaluationFormCommand.js +45 -0
  8. package/dist-cjs/commands/DescribeContactEvaluationCommand.js +45 -0
  9. package/dist-cjs/commands/DescribeEvaluationFormCommand.js +45 -0
  10. package/dist-cjs/commands/GetFederationTokenCommand.js +2 -2
  11. package/dist-cjs/commands/ListContactEvaluationsCommand.js +45 -0
  12. package/dist-cjs/commands/ListEvaluationFormVersionsCommand.js +45 -0
  13. package/dist-cjs/commands/ListEvaluationFormsCommand.js +45 -0
  14. package/dist-cjs/commands/StartContactEvaluationCommand.js +45 -0
  15. package/dist-cjs/commands/SubmitContactEvaluationCommand.js +45 -0
  16. package/dist-cjs/commands/UpdateContactEvaluationCommand.js +45 -0
  17. package/dist-cjs/commands/UpdateEvaluationFormCommand.js +45 -0
  18. package/dist-cjs/commands/index.js +14 -0
  19. package/dist-cjs/models/models_0.js +142 -125
  20. package/dist-cjs/models/models_1.js +71 -1
  21. package/dist-cjs/pagination/ListContactEvaluationsPaginator.js +28 -0
  22. package/dist-cjs/pagination/ListEvaluationFormVersionsPaginator.js +29 -0
  23. package/dist-cjs/pagination/ListEvaluationFormsPaginator.js +29 -0
  24. package/dist-cjs/pagination/index.js +3 -0
  25. package/dist-cjs/protocols/Aws_restJson1.js +1272 -41
  26. package/dist-es/Connect.js +28 -0
  27. package/dist-es/commands/ActivateEvaluationFormCommand.js +41 -0
  28. package/dist-es/commands/CreateEvaluationFormCommand.js +41 -0
  29. package/dist-es/commands/DeactivateEvaluationFormCommand.js +41 -0
  30. package/dist-es/commands/DeleteContactEvaluationCommand.js +41 -0
  31. package/dist-es/commands/DeleteEvaluationFormCommand.js +41 -0
  32. package/dist-es/commands/DescribeContactEvaluationCommand.js +41 -0
  33. package/dist-es/commands/DescribeEvaluationFormCommand.js +41 -0
  34. package/dist-es/commands/GetFederationTokenCommand.js +1 -1
  35. package/dist-es/commands/ListContactEvaluationsCommand.js +41 -0
  36. package/dist-es/commands/ListEvaluationFormVersionsCommand.js +41 -0
  37. package/dist-es/commands/ListEvaluationFormsCommand.js +41 -0
  38. package/dist-es/commands/StartContactEvaluationCommand.js +41 -0
  39. package/dist-es/commands/SubmitContactEvaluationCommand.js +41 -0
  40. package/dist-es/commands/UpdateContactEvaluationCommand.js +41 -0
  41. package/dist-es/commands/UpdateEvaluationFormCommand.js +41 -0
  42. package/dist-es/commands/index.js +14 -0
  43. package/dist-es/models/models_0.js +136 -116
  44. package/dist-es/models/models_1.js +67 -0
  45. package/dist-es/pagination/ListContactEvaluationsPaginator.js +24 -0
  46. package/dist-es/pagination/ListEvaluationFormVersionsPaginator.js +25 -0
  47. package/dist-es/pagination/ListEvaluationFormsPaginator.js +25 -0
  48. package/dist-es/pagination/index.js +3 -0
  49. package/dist-es/protocols/Aws_restJson1.js +1235 -33
  50. package/dist-types/Connect.d.ts +98 -0
  51. package/dist-types/ConnectClient.d.ts +16 -2
  52. package/dist-types/commands/ActivateEvaluationFormCommand.d.ts +81 -0
  53. package/dist-types/commands/CreateEvaluationFormCommand.d.ts +213 -0
  54. package/dist-types/commands/CreateParticipantCommand.d.ts +1 -1
  55. package/dist-types/commands/DeactivateEvaluationFormCommand.d.ts +81 -0
  56. package/dist-types/commands/DeleteContactEvaluationCommand.d.ts +79 -0
  57. package/dist-types/commands/DeleteEvaluationFormCommand.d.ts +89 -0
  58. package/dist-types/commands/DescribeContactEvaluationCommand.d.ts +77 -0
  59. package/dist-types/commands/DescribeEvaluationFormCommand.d.ts +79 -0
  60. package/dist-types/commands/GetCurrentUserDataCommand.d.ts +1 -1
  61. package/dist-types/commands/GetFederationTokenCommand.d.ts +1 -1
  62. package/dist-types/commands/GetMetricDataCommand.d.ts +1 -1
  63. package/dist-types/commands/GetMetricDataV2Command.d.ts +1 -1
  64. package/dist-types/commands/GetTaskTemplateCommand.d.ts +1 -1
  65. package/dist-types/commands/GetTrafficDistributionCommand.d.ts +1 -1
  66. package/dist-types/commands/ListAgentStatusesCommand.d.ts +1 -2
  67. package/dist-types/commands/ListContactEvaluationsCommand.d.ts +77 -0
  68. package/dist-types/commands/ListEvaluationFormVersionsCommand.d.ts +78 -0
  69. package/dist-types/commands/ListEvaluationFormsCommand.d.ts +77 -0
  70. package/dist-types/commands/StartContactEvaluationCommand.d.ts +91 -0
  71. package/dist-types/commands/SubmitContactEvaluationCommand.d.ts +98 -0
  72. package/dist-types/commands/UpdateContactEvaluationCommand.d.ts +96 -0
  73. package/dist-types/commands/UpdateEvaluationFormCommand.d.ts +215 -0
  74. package/dist-types/commands/index.d.ts +14 -0
  75. package/dist-types/models/models_0.d.ts +859 -1281
  76. package/dist-types/models/models_1.d.ts +1758 -3
  77. package/dist-types/pagination/ListContactEvaluationsPaginator.d.ts +7 -0
  78. package/dist-types/pagination/ListEvaluationFormVersionsPaginator.d.ts +7 -0
  79. package/dist-types/pagination/ListEvaluationFormsPaginator.d.ts +7 -0
  80. package/dist-types/pagination/index.d.ts +3 -0
  81. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  82. package/dist-types/ts3.4/Connect.d.ts +238 -0
  83. package/dist-types/ts3.4/ConnectClient.d.ts +84 -0
  84. package/dist-types/ts3.4/commands/ActivateEvaluationFormCommand.d.ts +41 -0
  85. package/dist-types/ts3.4/commands/CreateEvaluationFormCommand.d.ts +39 -0
  86. package/dist-types/ts3.4/commands/DeactivateEvaluationFormCommand.d.ts +41 -0
  87. package/dist-types/ts3.4/commands/DeleteContactEvaluationCommand.d.ts +37 -0
  88. package/dist-types/ts3.4/commands/DeleteEvaluationFormCommand.d.ts +36 -0
  89. package/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +39 -0
  90. package/dist-types/ts3.4/commands/DescribeEvaluationFormCommand.d.ts +39 -0
  91. package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/GetTaskTemplateCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/GetTrafficDistributionCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/ListAgentStatusesCommand.d.ts +4 -2
  98. package/dist-types/ts3.4/commands/ListContactEvaluationsCommand.d.ts +41 -0
  99. package/dist-types/ts3.4/commands/ListEvaluationFormVersionsCommand.d.ts +41 -0
  100. package/dist-types/ts3.4/commands/ListEvaluationFormsCommand.d.ts +38 -0
  101. package/dist-types/ts3.4/commands/StartContactEvaluationCommand.d.ts +41 -0
  102. package/dist-types/ts3.4/commands/SubmitContactEvaluationCommand.d.ts +41 -0
  103. package/dist-types/ts3.4/commands/UpdateContactEvaluationCommand.d.ts +41 -0
  104. package/dist-types/ts3.4/commands/UpdateEvaluationFormCommand.d.ts +41 -0
  105. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  106. package/dist-types/ts3.4/models/models_0.d.ts +328 -262
  107. package/dist-types/ts3.4/models/models_1.d.ts +425 -1
  108. package/dist-types/ts3.4/pagination/ListContactEvaluationsPaginator.d.ts +11 -0
  109. package/dist-types/ts3.4/pagination/ListEvaluationFormVersionsPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/ListEvaluationFormsPaginator.d.ts +11 -0
  111. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  112. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  113. package/package.json +4 -4
@@ -18,6 +18,56 @@ export type ActionType = (typeof ActionType)[keyof typeof ActionType];
18
18
  export interface ActionSummary {
19
19
  ActionType: ActionType | string | undefined;
20
20
  }
21
+ export interface ActivateEvaluationFormRequest {
22
+ InstanceId: string | undefined;
23
+ EvaluationFormId: string | undefined;
24
+ EvaluationFormVersion: number | undefined;
25
+ }
26
+ export interface ActivateEvaluationFormResponse {
27
+ EvaluationFormId: string | undefined;
28
+ EvaluationFormArn: string | undefined;
29
+ EvaluationFormVersion: number | undefined;
30
+ }
31
+ export declare class InternalServiceException extends __BaseException {
32
+ readonly name: "InternalServiceException";
33
+ readonly $fault: "server";
34
+ Message?: string;
35
+ constructor(
36
+ opts: __ExceptionOptionType<InternalServiceException, __BaseException>
37
+ );
38
+ }
39
+ export declare class InvalidParameterException extends __BaseException {
40
+ readonly name: "InvalidParameterException";
41
+ readonly $fault: "client";
42
+ Message?: string;
43
+ constructor(
44
+ opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
45
+ );
46
+ }
47
+ export declare class ResourceConflictException extends __BaseException {
48
+ readonly name: "ResourceConflictException";
49
+ readonly $fault: "client";
50
+ Message?: string;
51
+ constructor(
52
+ opts: __ExceptionOptionType<ResourceConflictException, __BaseException>
53
+ );
54
+ }
55
+ export declare class ResourceNotFoundException extends __BaseException {
56
+ readonly name: "ResourceNotFoundException";
57
+ readonly $fault: "client";
58
+ Message?: string;
59
+ constructor(
60
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
61
+ );
62
+ }
63
+ export declare class ThrottlingException extends __BaseException {
64
+ readonly name: "ThrottlingException";
65
+ readonly $fault: "client";
66
+ Message?: string;
67
+ constructor(
68
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
69
+ );
70
+ }
21
71
  export declare const ContactState: {
22
72
  readonly CONNECTED: "CONNECTED";
23
73
  readonly CONNECTED_ONHOLD: "CONNECTED_ONHOLD";
@@ -109,22 +159,6 @@ export interface AssociateApprovedOriginRequest {
109
159
  InstanceId: string | undefined;
110
160
  Origin: string | undefined;
111
161
  }
112
- export declare class InternalServiceException extends __BaseException {
113
- readonly name: "InternalServiceException";
114
- readonly $fault: "server";
115
- Message?: string;
116
- constructor(
117
- opts: __ExceptionOptionType<InternalServiceException, __BaseException>
118
- );
119
- }
120
- export declare class InvalidParameterException extends __BaseException {
121
- readonly name: "InvalidParameterException";
122
- readonly $fault: "client";
123
- Message?: string;
124
- constructor(
125
- opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
126
- );
127
- }
128
162
  export declare class InvalidRequestException extends __BaseException {
129
163
  readonly name: "InvalidRequestException";
130
164
  readonly $fault: "client";
@@ -133,22 +167,6 @@ export declare class InvalidRequestException extends __BaseException {
133
167
  opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
134
168
  );
135
169
  }
136
- export declare class ResourceConflictException extends __BaseException {
137
- readonly name: "ResourceConflictException";
138
- readonly $fault: "client";
139
- Message?: string;
140
- constructor(
141
- opts: __ExceptionOptionType<ResourceConflictException, __BaseException>
142
- );
143
- }
144
- export declare class ResourceNotFoundException extends __BaseException {
145
- readonly name: "ResourceNotFoundException";
146
- readonly $fault: "client";
147
- Message?: string;
148
- constructor(
149
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
150
- );
151
- }
152
170
  export declare class ServiceQuotaExceededException extends __BaseException {
153
171
  readonly name: "ServiceQuotaExceededException";
154
172
  readonly $fault: "client";
@@ -157,14 +175,6 @@ export declare class ServiceQuotaExceededException extends __BaseException {
157
175
  opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
158
176
  );
159
177
  }
160
- export declare class ThrottlingException extends __BaseException {
161
- readonly name: "ThrottlingException";
162
- readonly $fault: "client";
163
- Message?: string;
164
- constructor(
165
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
166
- );
167
- }
168
178
  export interface LexBot {
169
179
  Name: string | undefined;
170
180
  LexRegion: string | undefined;
@@ -416,6 +426,176 @@ export declare class InvalidContactFlowModuleException extends __BaseException {
416
426
  >
417
427
  );
418
428
  }
429
+ export declare const EvaluationFormQuestionType: {
430
+ readonly NUMERIC: "NUMERIC";
431
+ readonly SINGLESELECT: "SINGLESELECT";
432
+ readonly TEXT: "TEXT";
433
+ };
434
+ export type EvaluationFormQuestionType =
435
+ (typeof EvaluationFormQuestionType)[keyof typeof EvaluationFormQuestionType];
436
+ export declare const NumericQuestionPropertyAutomationLabel: {
437
+ readonly AGENT_INTERACTION_DURATION: "AGENT_INTERACTION_DURATION";
438
+ readonly CONTACT_DURATION: "CONTACT_DURATION";
439
+ readonly CUSTOMER_HOLD_TIME: "CUSTOMER_HOLD_TIME";
440
+ readonly NON_TALK_TIME: "NON_TALK_TIME";
441
+ readonly NON_TALK_TIME_PERCENTAGE: "NON_TALK_TIME_PERCENTAGE";
442
+ readonly NUMBER_OF_INTERRUPTIONS: "NUMBER_OF_INTERRUPTIONS";
443
+ readonly OVERALL_AGENT_SENTIMENT_SCORE: "OVERALL_AGENT_SENTIMENT_SCORE";
444
+ readonly OVERALL_CUSTOMER_SENTIMENT_SCORE: "OVERALL_CUSTOMER_SENTIMENT_SCORE";
445
+ };
446
+ export type NumericQuestionPropertyAutomationLabel =
447
+ (typeof NumericQuestionPropertyAutomationLabel)[keyof typeof NumericQuestionPropertyAutomationLabel];
448
+ export interface NumericQuestionPropertyValueAutomation {
449
+ Label: NumericQuestionPropertyAutomationLabel | string | undefined;
450
+ }
451
+ export type EvaluationFormNumericQuestionAutomation =
452
+ | EvaluationFormNumericQuestionAutomation.PropertyValueMember
453
+ | EvaluationFormNumericQuestionAutomation.$UnknownMember;
454
+ export declare namespace EvaluationFormNumericQuestionAutomation {
455
+ interface PropertyValueMember {
456
+ PropertyValue: NumericQuestionPropertyValueAutomation;
457
+ $unknown?: never;
458
+ }
459
+ interface $UnknownMember {
460
+ PropertyValue?: never;
461
+ $unknown: [string, any];
462
+ }
463
+ interface Visitor<T> {
464
+ PropertyValue: (value: NumericQuestionPropertyValueAutomation) => T;
465
+ _: (name: string, value: any) => T;
466
+ }
467
+ const visit: <T>(
468
+ value: EvaluationFormNumericQuestionAutomation,
469
+ visitor: Visitor<T>
470
+ ) => T;
471
+ }
472
+ export interface EvaluationFormNumericQuestionOption {
473
+ MinValue: number | undefined;
474
+ MaxValue: number | undefined;
475
+ Score?: number;
476
+ AutomaticFail?: boolean;
477
+ }
478
+ export interface EvaluationFormNumericQuestionProperties {
479
+ MinValue: number | undefined;
480
+ MaxValue: number | undefined;
481
+ Options?: EvaluationFormNumericQuestionOption[];
482
+ Automation?: EvaluationFormNumericQuestionAutomation;
483
+ }
484
+ export declare const SingleSelectQuestionRuleCategoryAutomationCondition: {
485
+ readonly NOT_PRESENT: "NOT_PRESENT";
486
+ readonly PRESENT: "PRESENT";
487
+ };
488
+ export type SingleSelectQuestionRuleCategoryAutomationCondition =
489
+ (typeof SingleSelectQuestionRuleCategoryAutomationCondition)[keyof typeof SingleSelectQuestionRuleCategoryAutomationCondition];
490
+ export interface SingleSelectQuestionRuleCategoryAutomation {
491
+ Category: string | undefined;
492
+ Condition:
493
+ | SingleSelectQuestionRuleCategoryAutomationCondition
494
+ | string
495
+ | undefined;
496
+ OptionRefId: string | undefined;
497
+ }
498
+ export type EvaluationFormSingleSelectQuestionAutomationOption =
499
+ | EvaluationFormSingleSelectQuestionAutomationOption.RuleCategoryMember
500
+ | EvaluationFormSingleSelectQuestionAutomationOption.$UnknownMember;
501
+ export declare namespace EvaluationFormSingleSelectQuestionAutomationOption {
502
+ interface RuleCategoryMember {
503
+ RuleCategory: SingleSelectQuestionRuleCategoryAutomation;
504
+ $unknown?: never;
505
+ }
506
+ interface $UnknownMember {
507
+ RuleCategory?: never;
508
+ $unknown: [string, any];
509
+ }
510
+ interface Visitor<T> {
511
+ RuleCategory: (value: SingleSelectQuestionRuleCategoryAutomation) => T;
512
+ _: (name: string, value: any) => T;
513
+ }
514
+ const visit: <T>(
515
+ value: EvaluationFormSingleSelectQuestionAutomationOption,
516
+ visitor: Visitor<T>
517
+ ) => T;
518
+ }
519
+ export interface EvaluationFormSingleSelectQuestionAutomation {
520
+ Options: EvaluationFormSingleSelectQuestionAutomationOption[] | undefined;
521
+ DefaultOptionRefId?: string;
522
+ }
523
+ export declare const EvaluationFormSingleSelectQuestionDisplayMode: {
524
+ readonly DROPDOWN: "DROPDOWN";
525
+ readonly RADIO: "RADIO";
526
+ };
527
+ export type EvaluationFormSingleSelectQuestionDisplayMode =
528
+ (typeof EvaluationFormSingleSelectQuestionDisplayMode)[keyof typeof EvaluationFormSingleSelectQuestionDisplayMode];
529
+ export interface EvaluationFormSingleSelectQuestionOption {
530
+ RefId: string | undefined;
531
+ Text: string | undefined;
532
+ Score?: number;
533
+ AutomaticFail?: boolean;
534
+ }
535
+ export interface EvaluationFormSingleSelectQuestionProperties {
536
+ Options: EvaluationFormSingleSelectQuestionOption[] | undefined;
537
+ DisplayAs?: EvaluationFormSingleSelectQuestionDisplayMode | string;
538
+ Automation?: EvaluationFormSingleSelectQuestionAutomation;
539
+ }
540
+ export type EvaluationFormQuestionTypeProperties =
541
+ | EvaluationFormQuestionTypeProperties.NumericMember
542
+ | EvaluationFormQuestionTypeProperties.SingleSelectMember
543
+ | EvaluationFormQuestionTypeProperties.$UnknownMember;
544
+ export declare namespace EvaluationFormQuestionTypeProperties {
545
+ interface NumericMember {
546
+ Numeric: EvaluationFormNumericQuestionProperties;
547
+ SingleSelect?: never;
548
+ $unknown?: never;
549
+ }
550
+ interface SingleSelectMember {
551
+ Numeric?: never;
552
+ SingleSelect: EvaluationFormSingleSelectQuestionProperties;
553
+ $unknown?: never;
554
+ }
555
+ interface $UnknownMember {
556
+ Numeric?: never;
557
+ SingleSelect?: never;
558
+ $unknown: [string, any];
559
+ }
560
+ interface Visitor<T> {
561
+ Numeric: (value: EvaluationFormNumericQuestionProperties) => T;
562
+ SingleSelect: (value: EvaluationFormSingleSelectQuestionProperties) => T;
563
+ _: (name: string, value: any) => T;
564
+ }
565
+ const visit: <T>(
566
+ value: EvaluationFormQuestionTypeProperties,
567
+ visitor: Visitor<T>
568
+ ) => T;
569
+ }
570
+ export interface EvaluationFormQuestion {
571
+ Title: string | undefined;
572
+ Instructions?: string;
573
+ RefId: string | undefined;
574
+ NotApplicableEnabled?: boolean;
575
+ QuestionType: EvaluationFormQuestionType | string | undefined;
576
+ QuestionTypeProperties?: EvaluationFormQuestionTypeProperties;
577
+ Weight?: number;
578
+ }
579
+ export declare const EvaluationFormScoringMode: {
580
+ readonly QUESTION_ONLY: "QUESTION_ONLY";
581
+ readonly SECTION_ONLY: "SECTION_ONLY";
582
+ };
583
+ export type EvaluationFormScoringMode =
584
+ (typeof EvaluationFormScoringMode)[keyof typeof EvaluationFormScoringMode];
585
+ export declare const EvaluationFormScoringStatus: {
586
+ readonly DISABLED: "DISABLED";
587
+ readonly ENABLED: "ENABLED";
588
+ };
589
+ export type EvaluationFormScoringStatus =
590
+ (typeof EvaluationFormScoringStatus)[keyof typeof EvaluationFormScoringStatus];
591
+ export interface EvaluationFormScoringStrategy {
592
+ Mode: EvaluationFormScoringMode | string | undefined;
593
+ Status: EvaluationFormScoringStatus | string | undefined;
594
+ }
595
+ export interface CreateEvaluationFormResponse {
596
+ EvaluationFormId: string | undefined;
597
+ EvaluationFormArn: string | undefined;
598
+ }
419
599
  export declare const HoursOfOperationDays: {
420
600
  readonly FRIDAY: "FRIDAY";
421
601
  readonly MONDAY: "MONDAY";
@@ -887,6 +1067,20 @@ export interface CreateVocabularyResponse {
887
1067
  VocabularyId: string | undefined;
888
1068
  State: VocabularyState | string | undefined;
889
1069
  }
1070
+ export interface DeactivateEvaluationFormRequest {
1071
+ InstanceId: string | undefined;
1072
+ EvaluationFormId: string | undefined;
1073
+ EvaluationFormVersion: number | undefined;
1074
+ }
1075
+ export interface DeactivateEvaluationFormResponse {
1076
+ EvaluationFormId: string | undefined;
1077
+ EvaluationFormArn: string | undefined;
1078
+ EvaluationFormVersion: number | undefined;
1079
+ }
1080
+ export interface DeleteContactEvaluationRequest {
1081
+ InstanceId: string | undefined;
1082
+ EvaluationId: string | undefined;
1083
+ }
890
1084
  export interface DeleteContactFlowRequest {
891
1085
  InstanceId: string | undefined;
892
1086
  ContactFlowId: string | undefined;
@@ -897,6 +1091,11 @@ export interface DeleteContactFlowModuleRequest {
897
1091
  ContactFlowModuleId: string | undefined;
898
1092
  }
899
1093
  export interface DeleteContactFlowModuleResponse {}
1094
+ export interface DeleteEvaluationFormRequest {
1095
+ InstanceId: string | undefined;
1096
+ EvaluationFormId: string | undefined;
1097
+ EvaluationFormVersion?: number;
1098
+ }
900
1099
  export interface DeleteHoursOfOperationRequest {
901
1100
  InstanceId: string | undefined;
902
1101
  HoursOfOperationId: string | undefined;
@@ -1010,6 +1209,84 @@ export interface Contact {
1010
1209
  export interface DescribeContactResponse {
1011
1210
  Contact?: Contact;
1012
1211
  }
1212
+ export interface DescribeContactEvaluationRequest {
1213
+ InstanceId: string | undefined;
1214
+ EvaluationId: string | undefined;
1215
+ }
1216
+ export type EvaluationAnswerData =
1217
+ | EvaluationAnswerData.NotApplicableMember
1218
+ | EvaluationAnswerData.NumericValueMember
1219
+ | EvaluationAnswerData.StringValueMember
1220
+ | EvaluationAnswerData.$UnknownMember;
1221
+ export declare namespace EvaluationAnswerData {
1222
+ interface StringValueMember {
1223
+ StringValue: string;
1224
+ NumericValue?: never;
1225
+ NotApplicable?: never;
1226
+ $unknown?: never;
1227
+ }
1228
+ interface NumericValueMember {
1229
+ StringValue?: never;
1230
+ NumericValue: number;
1231
+ NotApplicable?: never;
1232
+ $unknown?: never;
1233
+ }
1234
+ interface NotApplicableMember {
1235
+ StringValue?: never;
1236
+ NumericValue?: never;
1237
+ NotApplicable: boolean;
1238
+ $unknown?: never;
1239
+ }
1240
+ interface $UnknownMember {
1241
+ StringValue?: never;
1242
+ NumericValue?: never;
1243
+ NotApplicable?: never;
1244
+ $unknown: [string, any];
1245
+ }
1246
+ interface Visitor<T> {
1247
+ StringValue: (value: string) => T;
1248
+ NumericValue: (value: number) => T;
1249
+ NotApplicable: (value: boolean) => T;
1250
+ _: (name: string, value: any) => T;
1251
+ }
1252
+ const visit: <T>(value: EvaluationAnswerData, visitor: Visitor<T>) => T;
1253
+ }
1254
+ export interface EvaluationAnswerOutput {
1255
+ Value?: EvaluationAnswerData;
1256
+ SystemSuggestedValue?: EvaluationAnswerData;
1257
+ }
1258
+ export interface EvaluationScore {
1259
+ Percentage?: number;
1260
+ NotApplicable?: boolean;
1261
+ AutomaticFail?: boolean;
1262
+ }
1263
+ export interface EvaluationMetadata {
1264
+ ContactId: string | undefined;
1265
+ EvaluatorArn: string | undefined;
1266
+ ContactAgentId?: string;
1267
+ Score?: EvaluationScore;
1268
+ }
1269
+ export interface EvaluationNote {
1270
+ Value?: string;
1271
+ }
1272
+ export declare const EvaluationStatus: {
1273
+ readonly DRAFT: "DRAFT";
1274
+ readonly SUBMITTED: "SUBMITTED";
1275
+ };
1276
+ export type EvaluationStatus =
1277
+ (typeof EvaluationStatus)[keyof typeof EvaluationStatus];
1278
+ export interface Evaluation {
1279
+ EvaluationId: string | undefined;
1280
+ EvaluationArn: string | undefined;
1281
+ Metadata: EvaluationMetadata | undefined;
1282
+ Answers: Record<string, EvaluationAnswerOutput> | undefined;
1283
+ Notes: Record<string, EvaluationNote> | undefined;
1284
+ Status: EvaluationStatus | string | undefined;
1285
+ Scores?: Record<string, EvaluationScore>;
1286
+ CreatedTime: Date | undefined;
1287
+ LastModifiedTime: Date | undefined;
1288
+ Tags?: Record<string, string>;
1289
+ }
1013
1290
  export declare class ContactFlowNotPublishedException extends __BaseException {
1014
1291
  readonly name: "ContactFlowNotPublishedException";
1015
1292
  readonly $fault: "client";
@@ -1073,6 +1350,17 @@ export interface ContactFlowModule {
1073
1350
  export interface DescribeContactFlowModuleResponse {
1074
1351
  ContactFlowModule?: ContactFlowModule;
1075
1352
  }
1353
+ export interface DescribeEvaluationFormRequest {
1354
+ InstanceId: string | undefined;
1355
+ EvaluationFormId: string | undefined;
1356
+ EvaluationFormVersion?: number;
1357
+ }
1358
+ export declare const EvaluationFormVersionStatus: {
1359
+ readonly ACTIVE: "ACTIVE";
1360
+ readonly DRAFT: "DRAFT";
1361
+ };
1362
+ export type EvaluationFormVersionStatus =
1363
+ (typeof EvaluationFormVersionStatus)[keyof typeof EvaluationFormVersionStatus];
1076
1364
  export interface DescribeHoursOfOperationRequest {
1077
1365
  InstanceId: string | undefined;
1078
1366
  HoursOfOperationId: string | undefined;
@@ -1762,224 +2050,6 @@ export interface GetCurrentMetricDataResponse {
1762
2050
  export interface ContactFilter {
1763
2051
  ContactStates?: (ContactState | string)[];
1764
2052
  }
1765
- export interface UserDataFilters {
1766
- Queues?: string[];
1767
- ContactFilter?: ContactFilter;
1768
- RoutingProfiles?: string[];
1769
- Agents?: string[];
1770
- UserHierarchyGroups?: string[];
1771
- }
1772
- export interface GetCurrentUserDataRequest {
1773
- InstanceId: string | undefined;
1774
- Filters: UserDataFilters | undefined;
1775
- NextToken?: string;
1776
- MaxResults?: number;
1777
- }
1778
- export interface HierarchyGroupSummaryReference {
1779
- Id?: string;
1780
- Arn?: string;
1781
- }
1782
- export interface HierarchyPathReference {
1783
- LevelOne?: HierarchyGroupSummaryReference;
1784
- LevelTwo?: HierarchyGroupSummaryReference;
1785
- LevelThree?: HierarchyGroupSummaryReference;
1786
- LevelFour?: HierarchyGroupSummaryReference;
1787
- LevelFive?: HierarchyGroupSummaryReference;
1788
- }
1789
- export interface UserReference {
1790
- Id?: string;
1791
- Arn?: string;
1792
- }
1793
- export interface UserData {
1794
- User?: UserReference;
1795
- RoutingProfile?: RoutingProfileReference;
1796
- HierarchyPath?: HierarchyPathReference;
1797
- Status?: AgentStatusReference;
1798
- AvailableSlotsByChannel?: Record<string, number>;
1799
- MaxSlotsByChannel?: Record<string, number>;
1800
- ActiveSlotsByChannel?: Record<string, number>;
1801
- Contacts?: AgentContactReference[];
1802
- NextStatus?: string;
1803
- }
1804
- export interface GetCurrentUserDataResponse {
1805
- NextToken?: string;
1806
- UserDataList?: UserData[];
1807
- ApproximateTotalCount?: number;
1808
- }
1809
- export interface GetFederationTokenRequest {
1810
- InstanceId: string | undefined;
1811
- }
1812
- export interface Credentials {
1813
- AccessToken?: string;
1814
- AccessTokenExpiration?: Date;
1815
- RefreshToken?: string;
1816
- RefreshTokenExpiration?: Date;
1817
- }
1818
- export interface GetFederationTokenResponse {
1819
- Credentials?: Credentials;
1820
- SignInUrl?: string;
1821
- UserArn?: string;
1822
- UserId?: string;
1823
- }
1824
- export declare class UserNotFoundException extends __BaseException {
1825
- readonly name: "UserNotFoundException";
1826
- readonly $fault: "client";
1827
- Message?: string;
1828
- constructor(
1829
- opts: __ExceptionOptionType<UserNotFoundException, __BaseException>
1830
- );
1831
- }
1832
- export declare const HistoricalMetricName: {
1833
- readonly ABANDON_TIME: "ABANDON_TIME";
1834
- readonly AFTER_CONTACT_WORK_TIME: "AFTER_CONTACT_WORK_TIME";
1835
- readonly API_CONTACTS_HANDLED: "API_CONTACTS_HANDLED";
1836
- readonly CALLBACK_CONTACTS_HANDLED: "CALLBACK_CONTACTS_HANDLED";
1837
- readonly CONTACTS_ABANDONED: "CONTACTS_ABANDONED";
1838
- readonly CONTACTS_AGENT_HUNG_UP_FIRST: "CONTACTS_AGENT_HUNG_UP_FIRST";
1839
- readonly CONTACTS_CONSULTED: "CONTACTS_CONSULTED";
1840
- readonly CONTACTS_HANDLED: "CONTACTS_HANDLED";
1841
- readonly CONTACTS_HANDLED_INCOMING: "CONTACTS_HANDLED_INCOMING";
1842
- readonly CONTACTS_HANDLED_OUTBOUND: "CONTACTS_HANDLED_OUTBOUND";
1843
- readonly CONTACTS_HOLD_ABANDONS: "CONTACTS_HOLD_ABANDONS";
1844
- readonly CONTACTS_MISSED: "CONTACTS_MISSED";
1845
- readonly CONTACTS_QUEUED: "CONTACTS_QUEUED";
1846
- readonly CONTACTS_TRANSFERRED_IN: "CONTACTS_TRANSFERRED_IN";
1847
- readonly CONTACTS_TRANSFERRED_IN_FROM_QUEUE: "CONTACTS_TRANSFERRED_IN_FROM_QUEUE";
1848
- readonly CONTACTS_TRANSFERRED_OUT: "CONTACTS_TRANSFERRED_OUT";
1849
- readonly CONTACTS_TRANSFERRED_OUT_FROM_QUEUE: "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE";
1850
- readonly HANDLE_TIME: "HANDLE_TIME";
1851
- readonly HOLD_TIME: "HOLD_TIME";
1852
- readonly INTERACTION_AND_HOLD_TIME: "INTERACTION_AND_HOLD_TIME";
1853
- readonly INTERACTION_TIME: "INTERACTION_TIME";
1854
- readonly OCCUPANCY: "OCCUPANCY";
1855
- readonly QUEUED_TIME: "QUEUED_TIME";
1856
- readonly QUEUE_ANSWER_TIME: "QUEUE_ANSWER_TIME";
1857
- readonly SERVICE_LEVEL: "SERVICE_LEVEL";
1858
- };
1859
- export type HistoricalMetricName =
1860
- (typeof HistoricalMetricName)[keyof typeof HistoricalMetricName];
1861
- export declare const Statistic: {
1862
- readonly AVG: "AVG";
1863
- readonly MAX: "MAX";
1864
- readonly SUM: "SUM";
1865
- };
1866
- export type Statistic = (typeof Statistic)[keyof typeof Statistic];
1867
- export declare const Comparison: {
1868
- readonly LT: "LT";
1869
- };
1870
- export type Comparison = (typeof Comparison)[keyof typeof Comparison];
1871
- export interface Threshold {
1872
- Comparison?: Comparison | string;
1873
- ThresholdValue?: number;
1874
- }
1875
- export interface HistoricalMetric {
1876
- Name?: HistoricalMetricName | string;
1877
- Threshold?: Threshold;
1878
- Statistic?: Statistic | string;
1879
- Unit?: Unit | string;
1880
- }
1881
- export interface GetMetricDataRequest {
1882
- InstanceId: string | undefined;
1883
- StartTime: Date | undefined;
1884
- EndTime: Date | undefined;
1885
- Filters: Filters | undefined;
1886
- Groupings?: (Grouping | string)[];
1887
- HistoricalMetrics: HistoricalMetric[] | undefined;
1888
- NextToken?: string;
1889
- MaxResults?: number;
1890
- }
1891
- export interface HistoricalMetricData {
1892
- Metric?: HistoricalMetric;
1893
- Value?: number;
1894
- }
1895
- export interface HistoricalMetricResult {
1896
- Dimensions?: Dimensions;
1897
- Collections?: HistoricalMetricData[];
1898
- }
1899
- export interface GetMetricDataResponse {
1900
- NextToken?: string;
1901
- MetricResults?: HistoricalMetricResult[];
1902
- }
1903
- export interface FilterV2 {
1904
- FilterKey?: string;
1905
- FilterValues?: string[];
1906
- }
1907
- export interface MetricFilterV2 {
1908
- MetricFilterKey?: string;
1909
- MetricFilterValues?: string[];
1910
- }
1911
- export interface ThresholdV2 {
1912
- Comparison?: string;
1913
- ThresholdValue?: number;
1914
- }
1915
- export interface MetricV2 {
1916
- Name?: string;
1917
- Threshold?: ThresholdV2[];
1918
- MetricFilters?: MetricFilterV2[];
1919
- }
1920
- export interface GetMetricDataV2Request {
1921
- ResourceArn: string | undefined;
1922
- StartTime: Date | undefined;
1923
- EndTime: Date | undefined;
1924
- Filters: FilterV2[] | undefined;
1925
- Groupings?: string[];
1926
- Metrics: MetricV2[] | undefined;
1927
- NextToken?: string;
1928
- MaxResults?: number;
1929
- }
1930
- export interface MetricDataV2 {
1931
- Metric?: MetricV2;
1932
- Value?: number;
1933
- }
1934
- export interface MetricResultV2 {
1935
- Dimensions?: Record<string, string>;
1936
- Collections?: MetricDataV2[];
1937
- }
1938
- export interface GetMetricDataV2Response {
1939
- NextToken?: string;
1940
- MetricResults?: MetricResultV2[];
1941
- }
1942
- export interface GetTaskTemplateRequest {
1943
- InstanceId: string | undefined;
1944
- TaskTemplateId: string | undefined;
1945
- SnapshotVersion?: string;
1946
- }
1947
- export interface GetTaskTemplateResponse {
1948
- InstanceId?: string;
1949
- Id: string | undefined;
1950
- Arn: string | undefined;
1951
- Name: string | undefined;
1952
- Description?: string;
1953
- ContactFlowId?: string;
1954
- Constraints?: TaskTemplateConstraints;
1955
- Defaults?: TaskTemplateDefaults;
1956
- Fields?: TaskTemplateField[];
1957
- Status?: TaskTemplateStatus | string;
1958
- LastModifiedTime?: Date;
1959
- CreatedTime?: Date;
1960
- Tags?: Record<string, string>;
1961
- }
1962
- export interface GetTrafficDistributionRequest {
1963
- Id: string | undefined;
1964
- }
1965
- export interface Distribution {
1966
- Region: string | undefined;
1967
- Percentage: number | undefined;
1968
- }
1969
- export interface TelephonyConfig {
1970
- Distributions: Distribution[] | undefined;
1971
- }
1972
- export interface GetTrafficDistributionResponse {
1973
- TelephonyConfig?: TelephonyConfig;
1974
- Id?: string;
1975
- Arn?: string;
1976
- }
1977
- export interface ListAgentStatusRequest {
1978
- InstanceId: string | undefined;
1979
- NextToken?: string;
1980
- MaxResults?: number;
1981
- AgentStatusTypes?: (AgentStatusType | string)[];
1982
- }
1983
2053
  export declare const CreateInstanceRequestFilterSensitiveLog: (
1984
2054
  obj: CreateInstanceRequest
1985
2055
  ) => any;
@@ -1987,7 +2057,3 @@ export declare const InstanceFilterSensitiveLog: (obj: Instance) => any;
1987
2057
  export declare const DescribeInstanceResponseFilterSensitiveLog: (
1988
2058
  obj: DescribeInstanceResponse
1989
2059
  ) => any;
1990
- export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
1991
- export declare const GetFederationTokenResponseFilterSensitiveLog: (
1992
- obj: GetFederationTokenResponse
1993
- ) => any;