@aws-sdk/client-connect 3.863.0 → 3.865.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 (74) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +110 -27
  3. package/dist-es/Connect.js +2 -0
  4. package/dist-es/commands/GetContactMetricsCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_1.js +11 -0
  7. package/dist-es/models/models_2.js +0 -25
  8. package/dist-es/models/models_3.js +25 -0
  9. package/dist-es/protocols/Aws_restJson1.js +51 -0
  10. package/dist-types/Connect.d.ts +7 -0
  11. package/dist-types/ConnectClient.d.ts +3 -2
  12. package/dist-types/commands/AssociateQueueQuickConnectsCommand.d.ts +1 -2
  13. package/dist-types/commands/CreateAgentStatusCommand.d.ts +1 -2
  14. package/dist-types/commands/CreateHoursOfOperationCommand.d.ts +1 -2
  15. package/dist-types/commands/CreateHoursOfOperationOverrideCommand.d.ts +1 -1
  16. package/dist-types/commands/CreateUserCommand.d.ts +3 -3
  17. package/dist-types/commands/CreateViewCommand.d.ts +4 -1
  18. package/dist-types/commands/CreateViewVersionCommand.d.ts +4 -1
  19. package/dist-types/commands/DeleteHoursOfOperationCommand.d.ts +1 -2
  20. package/dist-types/commands/DeleteHoursOfOperationOverrideCommand.d.ts +1 -1
  21. package/dist-types/commands/DeletePredefinedAttributeCommand.d.ts +4 -1
  22. package/dist-types/commands/DeleteQueueCommand.d.ts +4 -1
  23. package/dist-types/commands/DeleteRoutingProfileCommand.d.ts +4 -1
  24. package/dist-types/commands/DeleteSecurityProfileCommand.d.ts +4 -1
  25. package/dist-types/commands/DeleteTrafficDistributionGroupCommand.d.ts +4 -1
  26. package/dist-types/commands/DeleteUserHierarchyGroupCommand.d.ts +4 -1
  27. package/dist-types/commands/DeleteViewCommand.d.ts +4 -1
  28. package/dist-types/commands/DeleteViewVersionCommand.d.ts +4 -1
  29. package/dist-types/commands/DeleteVocabularyCommand.d.ts +4 -1
  30. package/dist-types/commands/DescribeAgentStatusCommand.d.ts +1 -2
  31. package/dist-types/commands/DescribeHoursOfOperationCommand.d.ts +1 -2
  32. package/dist-types/commands/DescribeQueueCommand.d.ts +1 -2
  33. package/dist-types/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -2
  34. package/dist-types/commands/GetContactMetricsCommand.d.ts +117 -0
  35. package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +37 -0
  36. package/dist-types/commands/GetMetricDataV2Command.d.ts +37 -0
  37. package/dist-types/commands/ListAgentStatusesCommand.d.ts +1 -2
  38. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +2 -1
  39. package/dist-types/commands/ListLambdaFunctionsCommand.d.ts +1 -1
  40. package/dist-types/commands/ListLexBotsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListPhoneNumbersCommand.d.ts +1 -2
  42. package/dist-types/commands/ListQueueQuickConnectsCommand.d.ts +1 -2
  43. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +4 -1
  44. package/dist-types/commands/UpdateAgentStatusCommand.d.ts +1 -2
  45. package/dist-types/commands/UpdateHoursOfOperationCommand.d.ts +1 -2
  46. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +4 -1
  47. package/dist-types/commands/UpdatePhoneNumberMetadataCommand.d.ts +4 -1
  48. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -2
  49. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -2
  50. package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -2
  51. package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -2
  52. package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -2
  53. package/dist-types/commands/UpdateUserHierarchyStructureCommand.d.ts +4 -1
  54. package/dist-types/commands/UpdateViewContentCommand.d.ts +4 -1
  55. package/dist-types/commands/UpdateViewMetadataCommand.d.ts +4 -1
  56. package/dist-types/commands/index.d.ts +1 -0
  57. package/dist-types/models/models_0.d.ts +6 -7
  58. package/dist-types/models/models_1.d.ts +517 -150
  59. package/dist-types/models/models_2.d.ts +130 -144
  60. package/dist-types/models/models_3.d.ts +143 -6
  61. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  62. package/dist-types/ts3.4/Connect.d.ts +17 -0
  63. package/dist-types/ts3.4/ConnectClient.d.ts +6 -0
  64. package/dist-types/ts3.4/commands/GetContactMetricsCommand.d.ts +51 -0
  65. package/dist-types/ts3.4/commands/ListIntegrationAssociationsCommand.d.ts +2 -4
  66. package/dist-types/ts3.4/commands/ListLambdaFunctionsCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/ListLexBotsCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/ListPhoneNumbersCommand.d.ts +4 -2
  69. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  70. package/dist-types/ts3.4/models/models_1.d.ts +40 -31
  71. package/dist-types/ts3.4/models/models_2.d.ts +33 -67
  72. package/dist-types/ts3.4/models/models_3.d.ts +68 -1
  73. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  74. package/package.json +5 -5
@@ -1262,6 +1262,46 @@ export interface GetContactAttributesRequest {
1262
1262
  export interface GetContactAttributesResponse {
1263
1263
  Attributes?: Record<string, string> | undefined;
1264
1264
  }
1265
+ export declare const ContactMetricName: {
1266
+ readonly POSITION_IN_QUEUE: "POSITION_IN_QUEUE";
1267
+ };
1268
+ export type ContactMetricName =
1269
+ (typeof ContactMetricName)[keyof typeof ContactMetricName];
1270
+ export interface ContactMetricInfo {
1271
+ Name: ContactMetricName | undefined;
1272
+ }
1273
+ export interface GetContactMetricsRequest {
1274
+ InstanceId: string | undefined;
1275
+ ContactId: string | undefined;
1276
+ Metrics: ContactMetricInfo[] | undefined;
1277
+ }
1278
+ export type ContactMetricValue =
1279
+ | ContactMetricValue.NumberMember
1280
+ | ContactMetricValue.$UnknownMember;
1281
+ export declare namespace ContactMetricValue {
1282
+ interface NumberMember {
1283
+ Number: number;
1284
+ $unknown?: never;
1285
+ }
1286
+ interface $UnknownMember {
1287
+ Number?: never;
1288
+ $unknown: [string, any];
1289
+ }
1290
+ interface Visitor<T> {
1291
+ Number: (value: number) => T;
1292
+ _: (name: string, value: any) => T;
1293
+ }
1294
+ const visit: <T>(value: ContactMetricValue, visitor: Visitor<T>) => T;
1295
+ }
1296
+ export interface ContactMetricResult {
1297
+ Name: ContactMetricName | undefined;
1298
+ Value: ContactMetricValue | undefined;
1299
+ }
1300
+ export interface GetContactMetricsResponse {
1301
+ MetricResults?: ContactMetricResult[] | undefined;
1302
+ Id?: string | undefined;
1303
+ Arn?: string | undefined;
1304
+ }
1265
1305
  export declare const CurrentMetricName: {
1266
1306
  readonly AGENTS_AFTER_CONTACT_WORK: "AGENTS_AFTER_CONTACT_WORK";
1267
1307
  readonly AGENTS_AVAILABLE: "AGENTS_AVAILABLE";
@@ -2098,37 +2138,6 @@ export interface IntegrationAssociationSummary {
2098
2138
  SourceApplicationName?: string | undefined;
2099
2139
  SourceType?: SourceType | undefined;
2100
2140
  }
2101
- export interface ListIntegrationAssociationsResponse {
2102
- IntegrationAssociationSummaryList?:
2103
- | IntegrationAssociationSummary[]
2104
- | undefined;
2105
- NextToken?: string | undefined;
2106
- }
2107
- export interface ListLambdaFunctionsRequest {
2108
- InstanceId: string | undefined;
2109
- NextToken?: string | undefined;
2110
- MaxResults?: number | undefined;
2111
- }
2112
- export interface ListLambdaFunctionsResponse {
2113
- LambdaFunctions?: string[] | undefined;
2114
- NextToken?: string | undefined;
2115
- }
2116
- export interface ListLexBotsRequest {
2117
- InstanceId: string | undefined;
2118
- NextToken?: string | undefined;
2119
- MaxResults?: number | undefined;
2120
- }
2121
- export interface ListLexBotsResponse {
2122
- LexBots?: LexBot[] | undefined;
2123
- NextToken?: string | undefined;
2124
- }
2125
- export interface ListPhoneNumbersRequest {
2126
- InstanceId: string | undefined;
2127
- PhoneNumberTypes?: PhoneNumberType[] | undefined;
2128
- PhoneNumberCountryCodes?: PhoneNumberCountryCode[] | undefined;
2129
- NextToken?: string | undefined;
2130
- MaxResults?: number | undefined;
2131
- }
2132
2141
  export declare const DescribeEmailAddressResponseFilterSensitiveLog: (
2133
2142
  obj: DescribeEmailAddressResponse
2134
2143
  ) => any;
@@ -18,6 +18,7 @@ import {
18
18
  HoursOfOperationOverrideConfig,
19
19
  InstanceStorageConfig,
20
20
  InstanceStorageResourceType,
21
+ LexBot,
21
22
  MonitorCapability,
22
23
  ParticipantRole,
23
24
  QuickConnectType,
@@ -48,6 +49,7 @@ import {
48
49
  HoursOfOperation,
49
50
  HoursOfOperationOverride,
50
51
  InstanceAttributeType,
52
+ IntegrationAssociationSummary,
51
53
  PhoneNumberCountryCode,
52
54
  PhoneNumberType,
53
55
  PredefinedAttribute,
@@ -58,6 +60,37 @@ import {
58
60
  SortOrder,
59
61
  TrafficDistributionGroupStatus,
60
62
  } from "./models_1";
63
+ export interface ListIntegrationAssociationsResponse {
64
+ IntegrationAssociationSummaryList?:
65
+ | IntegrationAssociationSummary[]
66
+ | undefined;
67
+ NextToken?: string | undefined;
68
+ }
69
+ export interface ListLambdaFunctionsRequest {
70
+ InstanceId: string | undefined;
71
+ NextToken?: string | undefined;
72
+ MaxResults?: number | undefined;
73
+ }
74
+ export interface ListLambdaFunctionsResponse {
75
+ LambdaFunctions?: string[] | undefined;
76
+ NextToken?: string | undefined;
77
+ }
78
+ export interface ListLexBotsRequest {
79
+ InstanceId: string | undefined;
80
+ NextToken?: string | undefined;
81
+ MaxResults?: number | undefined;
82
+ }
83
+ export interface ListLexBotsResponse {
84
+ LexBots?: LexBot[] | undefined;
85
+ NextToken?: string | undefined;
86
+ }
87
+ export interface ListPhoneNumbersRequest {
88
+ InstanceId: string | undefined;
89
+ PhoneNumberTypes?: PhoneNumberType[] | undefined;
90
+ PhoneNumberCountryCodes?: PhoneNumberCountryCode[] | undefined;
91
+ NextToken?: string | undefined;
92
+ MaxResults?: number | undefined;
93
+ }
61
94
  export interface PhoneNumberSummary {
62
95
  Id?: string | undefined;
63
96
  Arn?: string | undefined;
@@ -1705,73 +1738,6 @@ export declare const TimerEligibleParticipantRoles: {
1705
1738
  };
1706
1739
  export type TimerEligibleParticipantRoles =
1707
1740
  (typeof TimerEligibleParticipantRoles)[keyof typeof TimerEligibleParticipantRoles];
1708
- export declare const ParticipantTimerType: {
1709
- readonly DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER";
1710
- readonly IDLE: "IDLE";
1711
- };
1712
- export type ParticipantTimerType =
1713
- (typeof ParticipantTimerType)[keyof typeof ParticipantTimerType];
1714
- export declare const ParticipantTimerAction: {
1715
- readonly Unset: "Unset";
1716
- };
1717
- export type ParticipantTimerAction =
1718
- (typeof ParticipantTimerAction)[keyof typeof ParticipantTimerAction];
1719
- export type ParticipantTimerValue =
1720
- | ParticipantTimerValue.ParticipantTimerActionMember
1721
- | ParticipantTimerValue.ParticipantTimerDurationInMinutesMember
1722
- | ParticipantTimerValue.$UnknownMember;
1723
- export declare namespace ParticipantTimerValue {
1724
- interface ParticipantTimerActionMember {
1725
- ParticipantTimerAction: ParticipantTimerAction;
1726
- ParticipantTimerDurationInMinutes?: never;
1727
- $unknown?: never;
1728
- }
1729
- interface ParticipantTimerDurationInMinutesMember {
1730
- ParticipantTimerAction?: never;
1731
- ParticipantTimerDurationInMinutes: number;
1732
- $unknown?: never;
1733
- }
1734
- interface $UnknownMember {
1735
- ParticipantTimerAction?: never;
1736
- ParticipantTimerDurationInMinutes?: never;
1737
- $unknown: [string, any];
1738
- }
1739
- interface Visitor<T> {
1740
- ParticipantTimerAction: (value: ParticipantTimerAction) => T;
1741
- ParticipantTimerDurationInMinutes: (value: number) => T;
1742
- _: (name: string, value: any) => T;
1743
- }
1744
- const visit: <T>(value: ParticipantTimerValue, visitor: Visitor<T>) => T;
1745
- }
1746
- export interface ParticipantTimerConfiguration {
1747
- ParticipantRole: TimerEligibleParticipantRoles | undefined;
1748
- TimerType: ParticipantTimerType | undefined;
1749
- TimerValue: ParticipantTimerValue | undefined;
1750
- }
1751
- export interface ChatParticipantRoleConfig {
1752
- ParticipantTimerConfigList: ParticipantTimerConfiguration[] | undefined;
1753
- }
1754
- export type UpdateParticipantRoleConfigChannelInfo =
1755
- | UpdateParticipantRoleConfigChannelInfo.ChatMember
1756
- | UpdateParticipantRoleConfigChannelInfo.$UnknownMember;
1757
- export declare namespace UpdateParticipantRoleConfigChannelInfo {
1758
- interface ChatMember {
1759
- Chat: ChatParticipantRoleConfig;
1760
- $unknown?: never;
1761
- }
1762
- interface $UnknownMember {
1763
- Chat?: never;
1764
- $unknown: [string, any];
1765
- }
1766
- interface Visitor<T> {
1767
- Chat: (value: ChatParticipantRoleConfig) => T;
1768
- _: (name: string, value: any) => T;
1769
- }
1770
- const visit: <T>(
1771
- value: UpdateParticipantRoleConfigChannelInfo,
1772
- visitor: Visitor<T>
1773
- ) => T;
1774
- }
1775
1741
  export declare const ViewSummaryFilterSensitiveLog: (obj: ViewSummary) => any;
1776
1742
  export declare const ListViewsResponseFilterSensitiveLog: (
1777
1743
  obj: ListViewsResponse
@@ -84,10 +84,77 @@ import {
84
84
  RoutingProfileSearchFilter,
85
85
  SearchableQueueType,
86
86
  SecurityProfilesSearchFilter,
87
- UpdateParticipantRoleConfigChannelInfo,
87
+ TimerEligibleParticipantRoles,
88
88
  UserHierarchyGroupSearchFilter,
89
89
  UserSearchFilter,
90
90
  } from "./models_2";
91
+ export declare const ParticipantTimerType: {
92
+ readonly DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER";
93
+ readonly IDLE: "IDLE";
94
+ };
95
+ export type ParticipantTimerType =
96
+ (typeof ParticipantTimerType)[keyof typeof ParticipantTimerType];
97
+ export declare const ParticipantTimerAction: {
98
+ readonly Unset: "Unset";
99
+ };
100
+ export type ParticipantTimerAction =
101
+ (typeof ParticipantTimerAction)[keyof typeof ParticipantTimerAction];
102
+ export type ParticipantTimerValue =
103
+ | ParticipantTimerValue.ParticipantTimerActionMember
104
+ | ParticipantTimerValue.ParticipantTimerDurationInMinutesMember
105
+ | ParticipantTimerValue.$UnknownMember;
106
+ export declare namespace ParticipantTimerValue {
107
+ interface ParticipantTimerActionMember {
108
+ ParticipantTimerAction: ParticipantTimerAction;
109
+ ParticipantTimerDurationInMinutes?: never;
110
+ $unknown?: never;
111
+ }
112
+ interface ParticipantTimerDurationInMinutesMember {
113
+ ParticipantTimerAction?: never;
114
+ ParticipantTimerDurationInMinutes: number;
115
+ $unknown?: never;
116
+ }
117
+ interface $UnknownMember {
118
+ ParticipantTimerAction?: never;
119
+ ParticipantTimerDurationInMinutes?: never;
120
+ $unknown: [string, any];
121
+ }
122
+ interface Visitor<T> {
123
+ ParticipantTimerAction: (value: ParticipantTimerAction) => T;
124
+ ParticipantTimerDurationInMinutes: (value: number) => T;
125
+ _: (name: string, value: any) => T;
126
+ }
127
+ const visit: <T>(value: ParticipantTimerValue, visitor: Visitor<T>) => T;
128
+ }
129
+ export interface ParticipantTimerConfiguration {
130
+ ParticipantRole: TimerEligibleParticipantRoles | undefined;
131
+ TimerType: ParticipantTimerType | undefined;
132
+ TimerValue: ParticipantTimerValue | undefined;
133
+ }
134
+ export interface ChatParticipantRoleConfig {
135
+ ParticipantTimerConfigList: ParticipantTimerConfiguration[] | undefined;
136
+ }
137
+ export type UpdateParticipantRoleConfigChannelInfo =
138
+ | UpdateParticipantRoleConfigChannelInfo.ChatMember
139
+ | UpdateParticipantRoleConfigChannelInfo.$UnknownMember;
140
+ export declare namespace UpdateParticipantRoleConfigChannelInfo {
141
+ interface ChatMember {
142
+ Chat: ChatParticipantRoleConfig;
143
+ $unknown?: never;
144
+ }
145
+ interface $UnknownMember {
146
+ Chat?: never;
147
+ $unknown: [string, any];
148
+ }
149
+ interface Visitor<T> {
150
+ Chat: (value: ChatParticipantRoleConfig) => T;
151
+ _: (name: string, value: any) => T;
152
+ }
153
+ const visit: <T>(
154
+ value: UpdateParticipantRoleConfigChannelInfo,
155
+ visitor: Visitor<T>
156
+ ) => T;
157
+ }
91
158
  export interface UpdateParticipantRoleConfigRequest {
92
159
  InstanceId: string | undefined;
93
160
  ContactId: string | undefined;
@@ -491,6 +491,10 @@ import {
491
491
  GetContactAttributesCommandInput,
492
492
  GetContactAttributesCommandOutput,
493
493
  } from "../commands/GetContactAttributesCommand";
494
+ import {
495
+ GetContactMetricsCommandInput,
496
+ GetContactMetricsCommandOutput,
497
+ } from "../commands/GetContactMetricsCommand";
494
498
  import {
495
499
  GetCurrentMetricDataCommandInput,
496
500
  GetCurrentMetricDataCommandOutput,
@@ -1619,6 +1623,10 @@ export declare const se_GetContactAttributesCommand: (
1619
1623
  input: GetContactAttributesCommandInput,
1620
1624
  context: __SerdeContext
1621
1625
  ) => Promise<__HttpRequest>;
1626
+ export declare const se_GetContactMetricsCommand: (
1627
+ input: GetContactMetricsCommandInput,
1628
+ context: __SerdeContext
1629
+ ) => Promise<__HttpRequest>;
1622
1630
  export declare const se_GetCurrentMetricDataCommand: (
1623
1631
  input: GetCurrentMetricDataCommandInput,
1624
1632
  context: __SerdeContext
@@ -2747,6 +2755,10 @@ export declare const de_GetContactAttributesCommand: (
2747
2755
  output: __HttpResponse,
2748
2756
  context: __SerdeContext
2749
2757
  ) => Promise<GetContactAttributesCommandOutput>;
2758
+ export declare const de_GetContactMetricsCommand: (
2759
+ output: __HttpResponse,
2760
+ context: __SerdeContext
2761
+ ) => Promise<GetContactMetricsCommandOutput>;
2750
2762
  export declare const de_GetCurrentMetricDataCommand: (
2751
2763
  output: __HttpResponse,
2752
2764
  context: __SerdeContext
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.863.0",
4
+ "version": "3.865.0",
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,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.863.0",
24
- "@aws-sdk/credential-provider-node": "3.863.0",
23
+ "@aws-sdk/core": "3.864.0",
24
+ "@aws-sdk/credential-provider-node": "3.864.0",
25
25
  "@aws-sdk/middleware-host-header": "3.862.0",
26
26
  "@aws-sdk/middleware-logger": "3.862.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.862.0",
28
- "@aws-sdk/middleware-user-agent": "3.863.0",
28
+ "@aws-sdk/middleware-user-agent": "3.864.0",
29
29
  "@aws-sdk/region-config-resolver": "3.862.0",
30
30
  "@aws-sdk/types": "3.862.0",
31
31
  "@aws-sdk/util-endpoints": "3.862.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.862.0",
33
- "@aws-sdk/util-user-agent-node": "3.863.0",
33
+ "@aws-sdk/util-user-agent-node": "3.864.0",
34
34
  "@smithy/config-resolver": "^4.1.5",
35
35
  "@smithy/core": "^3.8.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.1",