@aws-sdk/client-connect 3.236.0 → 3.238.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.
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ ConnectClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ConnectClient";
14
+ import {
15
+ UpdateParticipantRoleConfigRequest,
16
+ UpdateParticipantRoleConfigResponse,
17
+ } from "../models/models_1";
18
+ export interface UpdateParticipantRoleConfigCommandInput
19
+ extends UpdateParticipantRoleConfigRequest {}
20
+ export interface UpdateParticipantRoleConfigCommandOutput
21
+ extends UpdateParticipantRoleConfigResponse,
22
+ __MetadataBearer {}
23
+ export declare class UpdateParticipantRoleConfigCommand extends $Command<
24
+ UpdateParticipantRoleConfigCommandInput,
25
+ UpdateParticipantRoleConfigCommandOutput,
26
+ ConnectClientResolvedConfig
27
+ > {
28
+ readonly input: UpdateParticipantRoleConfigCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: UpdateParticipantRoleConfigCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: ConnectClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ UpdateParticipantRoleConfigCommandInput,
37
+ UpdateParticipantRoleConfigCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -143,6 +143,7 @@ export * from "./UpdateContactScheduleCommand";
143
143
  export * from "./UpdateHoursOfOperationCommand";
144
144
  export * from "./UpdateInstanceAttributeCommand";
145
145
  export * from "./UpdateInstanceStorageConfigCommand";
146
+ export * from "./UpdateParticipantRoleConfigCommand";
146
147
  export * from "./UpdatePhoneNumberCommand";
147
148
  export * from "./UpdateQueueHoursOfOperationCommand";
148
149
  export * from "./UpdateQueueMaxContactsCommand";
@@ -80,6 +80,7 @@ export interface AgentStatus {
80
80
  export interface AgentStatusReference {
81
81
  StatusStartTimestamp?: Date;
82
82
  StatusArn?: string;
83
+ StatusName?: string;
83
84
  }
84
85
  export interface AgentStatusSummary {
85
86
  Id?: string;
@@ -1594,10 +1595,20 @@ export interface CurrentMetric {
1594
1595
  export interface Filters {
1595
1596
  Queues?: string[];
1596
1597
  Channels?: (Channel | string)[];
1598
+ RoutingProfiles?: string[];
1597
1599
  }
1598
1600
  export declare enum Grouping {
1599
1601
  CHANNEL = "CHANNEL",
1600
1602
  QUEUE = "QUEUE",
1603
+ ROUTING_PROFILE = "ROUTING_PROFILE",
1604
+ }
1605
+ export declare enum SortOrder {
1606
+ ASCENDING = "ASCENDING",
1607
+ DESCENDING = "DESCENDING",
1608
+ }
1609
+ export interface CurrentMetricSortCriteria {
1610
+ SortByMetric?: CurrentMetricName | string;
1611
+ SortOrder?: SortOrder | string;
1601
1612
  }
1602
1613
  export interface GetCurrentMetricDataRequest {
1603
1614
  InstanceId: string | undefined;
@@ -1606,14 +1617,20 @@ export interface GetCurrentMetricDataRequest {
1606
1617
  CurrentMetrics: CurrentMetric[] | undefined;
1607
1618
  NextToken?: string;
1608
1619
  MaxResults?: number;
1620
+ SortCriteria?: CurrentMetricSortCriteria[];
1609
1621
  }
1610
1622
  export interface CurrentMetricData {
1611
1623
  Metric?: CurrentMetric;
1612
1624
  Value?: number;
1613
1625
  }
1626
+ export interface RoutingProfileReference {
1627
+ Id?: string;
1628
+ Arn?: string;
1629
+ }
1614
1630
  export interface Dimensions {
1615
1631
  Queue?: QueueReference;
1616
1632
  Channel?: Channel | string;
1633
+ RoutingProfile?: RoutingProfileReference;
1617
1634
  }
1618
1635
  export interface CurrentMetricResult {
1619
1636
  Dimensions?: Dimensions;
@@ -1623,6 +1640,7 @@ export interface GetCurrentMetricDataResponse {
1623
1640
  NextToken?: string;
1624
1641
  MetricResults?: CurrentMetricResult[];
1625
1642
  DataSnapshotTime?: Date;
1643
+ ApproximateTotalCount?: number;
1626
1644
  }
1627
1645
  export interface ContactFilter {
1628
1646
  ContactStates?: (ContactState | string)[];
@@ -1630,6 +1648,9 @@ export interface ContactFilter {
1630
1648
  export interface UserDataFilters {
1631
1649
  Queues?: string[];
1632
1650
  ContactFilter?: ContactFilter;
1651
+ RoutingProfiles?: string[];
1652
+ Agents?: string[];
1653
+ UserHierarchyGroups?: string[];
1633
1654
  }
1634
1655
  export interface GetCurrentUserDataRequest {
1635
1656
  InstanceId: string | undefined;
@@ -1648,10 +1669,6 @@ export interface HierarchyPathReference {
1648
1669
  LevelFour?: HierarchyGroupSummaryReference;
1649
1670
  LevelFive?: HierarchyGroupSummaryReference;
1650
1671
  }
1651
- export interface RoutingProfileReference {
1652
- Id?: string;
1653
- Arn?: string;
1654
- }
1655
1672
  export interface UserReference {
1656
1673
  Id?: string;
1657
1674
  Arn?: string;
@@ -1665,10 +1682,12 @@ export interface UserData {
1665
1682
  MaxSlotsByChannel?: Record<string, number>;
1666
1683
  ActiveSlotsByChannel?: Record<string, number>;
1667
1684
  Contacts?: AgentContactReference[];
1685
+ NextStatus?: string;
1668
1686
  }
1669
1687
  export interface GetCurrentUserDataResponse {
1670
1688
  NextToken?: string;
1671
1689
  UserDataList?: UserData[];
1690
+ ApproximateTotalCount?: number;
1672
1691
  }
1673
1692
  export interface GetFederationTokenRequest {
1674
1693
  InstanceId: string | undefined;
@@ -1884,14 +1903,6 @@ export interface DateReference {
1884
1903
  Name?: string;
1885
1904
  Value?: string;
1886
1905
  }
1887
- export interface EmailReference {
1888
- Name?: string;
1889
- Value?: string;
1890
- }
1891
- export interface NumberReference {
1892
- Name?: string;
1893
- Value?: string;
1894
- }
1895
1906
  export declare const ActionSummaryFilterSensitiveLog: (
1896
1907
  obj: ActionSummary
1897
1908
  ) => any;
@@ -2420,12 +2431,18 @@ export declare const CurrentMetricFilterSensitiveLog: (
2420
2431
  obj: CurrentMetric
2421
2432
  ) => any;
2422
2433
  export declare const FiltersFilterSensitiveLog: (obj: Filters) => any;
2434
+ export declare const CurrentMetricSortCriteriaFilterSensitiveLog: (
2435
+ obj: CurrentMetricSortCriteria
2436
+ ) => any;
2423
2437
  export declare const GetCurrentMetricDataRequestFilterSensitiveLog: (
2424
2438
  obj: GetCurrentMetricDataRequest
2425
2439
  ) => any;
2426
2440
  export declare const CurrentMetricDataFilterSensitiveLog: (
2427
2441
  obj: CurrentMetricData
2428
2442
  ) => any;
2443
+ export declare const RoutingProfileReferenceFilterSensitiveLog: (
2444
+ obj: RoutingProfileReference
2445
+ ) => any;
2429
2446
  export declare const DimensionsFilterSensitiveLog: (obj: Dimensions) => any;
2430
2447
  export declare const CurrentMetricResultFilterSensitiveLog: (
2431
2448
  obj: CurrentMetricResult
@@ -2448,9 +2465,6 @@ export declare const HierarchyGroupSummaryReferenceFilterSensitiveLog: (
2448
2465
  export declare const HierarchyPathReferenceFilterSensitiveLog: (
2449
2466
  obj: HierarchyPathReference
2450
2467
  ) => any;
2451
- export declare const RoutingProfileReferenceFilterSensitiveLog: (
2452
- obj: RoutingProfileReference
2453
- ) => any;
2454
2468
  export declare const UserReferenceFilterSensitiveLog: (
2455
2469
  obj: UserReference
2456
2470
  ) => any;
@@ -2543,9 +2557,3 @@ export declare const AttachmentReferenceFilterSensitiveLog: (
2543
2557
  export declare const DateReferenceFilterSensitiveLog: (
2544
2558
  obj: DateReference
2545
2559
  ) => any;
2546
- export declare const EmailReferenceFilterSensitiveLog: (
2547
- obj: EmailReference
2548
- ) => any;
2549
- export declare const NumberReferenceFilterSensitiveLog: (
2550
- obj: NumberReference
2551
- ) => any;
@@ -10,7 +10,6 @@ import {
10
10
  ContactFlowState,
11
11
  DateReference,
12
12
  DirectoryType,
13
- EmailReference,
14
13
  EventSourceName,
15
14
  HierarchyGroupSummary,
16
15
  HoursOfOperationConfig,
@@ -22,7 +21,6 @@ import {
22
21
  LexBot,
23
22
  MediaConcurrency,
24
23
  MonitorCapability,
25
- NumberReference,
26
24
  OutboundCallerConfig,
27
25
  PhoneNumberCountryCode,
28
26
  PhoneNumberType,
@@ -48,6 +46,14 @@ import {
48
46
  VocabularyLanguageCode,
49
47
  VocabularyState,
50
48
  } from "./models_0";
49
+ export interface EmailReference {
50
+ Name?: string;
51
+ Value?: string;
52
+ }
53
+ export interface NumberReference {
54
+ Name?: string;
55
+ Value?: string;
56
+ }
51
57
  export interface StringReference {
52
58
  Name?: string;
53
59
  Value?: string;
@@ -917,6 +923,79 @@ export interface UpdateInstanceStorageConfigRequest {
917
923
  ResourceType: InstanceStorageResourceType | string | undefined;
918
924
  StorageConfig: InstanceStorageConfig | undefined;
919
925
  }
926
+ export declare enum TimerEligibleParticipantRoles {
927
+ AGENT = "AGENT",
928
+ CUSTOMER = "CUSTOMER",
929
+ }
930
+ export declare enum ParticipantTimerType {
931
+ DISCONNECT_NONCUSTOMER = "DISCONNECT_NONCUSTOMER",
932
+ IDLE = "IDLE",
933
+ }
934
+ export declare enum ParticipantTimerAction {
935
+ Unset = "Unset",
936
+ }
937
+ export declare type ParticipantTimerValue =
938
+ | ParticipantTimerValue.ParticipantTimerActionMember
939
+ | ParticipantTimerValue.ParticipantTimerDurationInMinutesMember
940
+ | ParticipantTimerValue.$UnknownMember;
941
+ export declare namespace ParticipantTimerValue {
942
+ interface ParticipantTimerActionMember {
943
+ ParticipantTimerAction: ParticipantTimerAction | string;
944
+ ParticipantTimerDurationInMinutes?: never;
945
+ $unknown?: never;
946
+ }
947
+ interface ParticipantTimerDurationInMinutesMember {
948
+ ParticipantTimerAction?: never;
949
+ ParticipantTimerDurationInMinutes: number;
950
+ $unknown?: never;
951
+ }
952
+ interface $UnknownMember {
953
+ ParticipantTimerAction?: never;
954
+ ParticipantTimerDurationInMinutes?: never;
955
+ $unknown: [string, any];
956
+ }
957
+ interface Visitor<T> {
958
+ ParticipantTimerAction: (value: ParticipantTimerAction | string) => T;
959
+ ParticipantTimerDurationInMinutes: (value: number) => T;
960
+ _: (name: string, value: any) => T;
961
+ }
962
+ const visit: <T>(value: ParticipantTimerValue, visitor: Visitor<T>) => T;
963
+ }
964
+ export interface ParticipantTimerConfiguration {
965
+ ParticipantRole: TimerEligibleParticipantRoles | string | undefined;
966
+ TimerType: ParticipantTimerType | string | undefined;
967
+ TimerValue: ParticipantTimerValue | undefined;
968
+ }
969
+ export interface ChatParticipantRoleConfig {
970
+ ParticipantTimerConfigList: ParticipantTimerConfiguration[] | undefined;
971
+ }
972
+ export declare type UpdateParticipantRoleConfigChannelInfo =
973
+ | UpdateParticipantRoleConfigChannelInfo.ChatMember
974
+ | UpdateParticipantRoleConfigChannelInfo.$UnknownMember;
975
+ export declare namespace UpdateParticipantRoleConfigChannelInfo {
976
+ interface ChatMember {
977
+ Chat: ChatParticipantRoleConfig;
978
+ $unknown?: never;
979
+ }
980
+ interface $UnknownMember {
981
+ Chat?: never;
982
+ $unknown: [string, any];
983
+ }
984
+ interface Visitor<T> {
985
+ Chat: (value: ChatParticipantRoleConfig) => T;
986
+ _: (name: string, value: any) => T;
987
+ }
988
+ const visit: <T>(
989
+ value: UpdateParticipantRoleConfigChannelInfo,
990
+ visitor: Visitor<T>
991
+ ) => T;
992
+ }
993
+ export interface UpdateParticipantRoleConfigRequest {
994
+ InstanceId: string | undefined;
995
+ ContactId: string | undefined;
996
+ ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
997
+ }
998
+ export interface UpdateParticipantRoleConfigResponse {}
920
999
  export interface UpdatePhoneNumberRequest {
921
1000
  PhoneNumberId: string | undefined;
922
1001
  TargetArn: string | undefined;
@@ -1124,6 +1203,12 @@ export interface SearchUsersRequest {
1124
1203
  SearchFilter?: UserSearchFilter;
1125
1204
  SearchCriteria?: UserSearchCriteria;
1126
1205
  }
1206
+ export declare const EmailReferenceFilterSensitiveLog: (
1207
+ obj: EmailReference
1208
+ ) => any;
1209
+ export declare const NumberReferenceFilterSensitiveLog: (
1210
+ obj: NumberReference
1211
+ ) => any;
1127
1212
  export declare const StringReferenceFilterSensitiveLog: (
1128
1213
  obj: StringReference
1129
1214
  ) => any;
@@ -1552,6 +1637,24 @@ export declare const UpdateInstanceAttributeRequestFilterSensitiveLog: (
1552
1637
  export declare const UpdateInstanceStorageConfigRequestFilterSensitiveLog: (
1553
1638
  obj: UpdateInstanceStorageConfigRequest
1554
1639
  ) => any;
1640
+ export declare const ParticipantTimerValueFilterSensitiveLog: (
1641
+ obj: ParticipantTimerValue
1642
+ ) => any;
1643
+ export declare const ParticipantTimerConfigurationFilterSensitiveLog: (
1644
+ obj: ParticipantTimerConfiguration
1645
+ ) => any;
1646
+ export declare const ChatParticipantRoleConfigFilterSensitiveLog: (
1647
+ obj: ChatParticipantRoleConfig
1648
+ ) => any;
1649
+ export declare const UpdateParticipantRoleConfigChannelInfoFilterSensitiveLog: (
1650
+ obj: UpdateParticipantRoleConfigChannelInfo
1651
+ ) => any;
1652
+ export declare const UpdateParticipantRoleConfigRequestFilterSensitiveLog: (
1653
+ obj: UpdateParticipantRoleConfigRequest
1654
+ ) => any;
1655
+ export declare const UpdateParticipantRoleConfigResponseFilterSensitiveLog: (
1656
+ obj: UpdateParticipantRoleConfigResponse
1657
+ ) => any;
1555
1658
  export declare const UpdatePhoneNumberRequestFilterSensitiveLog: (
1556
1659
  obj: UpdatePhoneNumberRequest
1557
1660
  ) => any;
@@ -583,6 +583,10 @@ import {
583
583
  UpdateInstanceStorageConfigCommandInput,
584
584
  UpdateInstanceStorageConfigCommandOutput,
585
585
  } from "../commands/UpdateInstanceStorageConfigCommand";
586
+ import {
587
+ UpdateParticipantRoleConfigCommandInput,
588
+ UpdateParticipantRoleConfigCommandOutput,
589
+ } from "../commands/UpdateParticipantRoleConfigCommand";
586
590
  import {
587
591
  UpdatePhoneNumberCommandInput,
588
592
  UpdatePhoneNumberCommandOutput,
@@ -1255,6 +1259,10 @@ export declare const serializeAws_restJson1UpdateInstanceStorageConfigCommand: (
1255
1259
  input: UpdateInstanceStorageConfigCommandInput,
1256
1260
  context: __SerdeContext
1257
1261
  ) => Promise<__HttpRequest>;
1262
+ export declare const serializeAws_restJson1UpdateParticipantRoleConfigCommand: (
1263
+ input: UpdateParticipantRoleConfigCommandInput,
1264
+ context: __SerdeContext
1265
+ ) => Promise<__HttpRequest>;
1258
1266
  export declare const serializeAws_restJson1UpdatePhoneNumberCommand: (
1259
1267
  input: UpdatePhoneNumberCommandInput,
1260
1268
  context: __SerdeContext
@@ -1927,6 +1935,10 @@ export declare const deserializeAws_restJson1UpdateInstanceStorageConfigCommand:
1927
1935
  output: __HttpResponse,
1928
1936
  context: __SerdeContext
1929
1937
  ) => Promise<UpdateInstanceStorageConfigCommandOutput>;
1938
+ export declare const deserializeAws_restJson1UpdateParticipantRoleConfigCommand: (
1939
+ output: __HttpResponse,
1940
+ context: __SerdeContext
1941
+ ) => Promise<UpdateParticipantRoleConfigCommandOutput>;
1930
1942
  export declare const deserializeAws_restJson1UpdatePhoneNumberCommand: (
1931
1943
  output: __HttpResponse,
1932
1944
  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.236.0",
4
+ "version": "3.238.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -10,7 +10,8 @@
10
10
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
11
11
  "build:types": "tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/connect.json --keepFiles)"
14
15
  },
15
16
  "main": "./dist-cjs/index.js",
16
17
  "types": "./dist-types/index.d.ts",
@@ -19,9 +20,9 @@
19
20
  "dependencies": {
20
21
  "@aws-crypto/sha256-browser": "2.0.0",
21
22
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.236.0",
23
+ "@aws-sdk/client-sts": "3.238.0",
23
24
  "@aws-sdk/config-resolver": "3.234.0",
24
- "@aws-sdk/credential-provider-node": "3.236.0",
25
+ "@aws-sdk/credential-provider-node": "3.238.0",
25
26
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
27
  "@aws-sdk/hash-node": "3.226.0",
27
28
  "@aws-sdk/invalid-dependency": "3.226.0",