@aws-sdk/client-connect 3.450.0 → 3.451.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.
@@ -3569,6 +3569,7 @@ const se_StartChatContactCommand = async (input, context) => {
3569
3569
  ParticipantDetails: (_) => (0, smithy_client_1._json)(_),
3570
3570
  PersistentChat: (_) => (0, smithy_client_1._json)(_),
3571
3571
  RelatedContactId: [],
3572
+ SegmentAttributes: (_) => (0, smithy_client_1._json)(_),
3572
3573
  SupportedMessagingContentTypes: (_) => (0, smithy_client_1._json)(_),
3573
3574
  }));
3574
3575
  return new protocol_http_1.HttpRequest({
@@ -3401,6 +3401,7 @@ export const se_StartChatContactCommand = async (input, context) => {
3401
3401
  ParticipantDetails: (_) => _json(_),
3402
3402
  PersistentChat: (_) => _json(_),
3403
3403
  RelatedContactId: [],
3404
+ SegmentAttributes: (_) => _json(_),
3404
3405
  SupportedMessagingContentTypes: (_) => _json(_),
3405
3406
  }));
3406
3407
  return new __HttpRequest({
@@ -28,11 +28,10 @@ export interface BatchPutContactCommandOutput extends BatchPutContactResponse, _
28
28
  * role in your account and call this API.</p>
29
29
  * </note>
30
30
  * <p>Allows you to create a batch of contacts in Amazon Connect. The outbound campaigns
31
- * capability ingests dial requests via the <a href="https://docs.aws.amazon.com/connect-outbound/latest/APIReference/API_PutDialRequestBatch.html">PutDialRequestBatch</a>
32
- * API. It then uses BatchPutContact to create contacts corresponding to those
33
- * dial requests. If agents are available, the dial requests are dialed out, which results in a
34
- * voice call. The resulting voice call uses the same contactId that was created by BatchPutContact.
35
- * </p>
31
+ * capability ingests dial requests via the <a href="https://docs.aws.amazon.com/connect-outbound/latest/APIReference/API_PutDialRequestBatch.html">PutDialRequestBatch</a> API. It then uses BatchPutContact to create contacts corresponding
32
+ * to those dial requests. If agents are available, the dial requests are dialed out, which results
33
+ * in a voice call. The resulting voice call uses the same contactId that was created by
34
+ * BatchPutContact. </p>
36
35
  * @example
37
36
  * Use a bare-bones client and the command you need to make an API call.
38
37
  * ```javascript
@@ -23,10 +23,9 @@ export interface CreatePersistentContactAssociationCommandOutput extends CreateP
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Enables rehydration of chats for the lifespan of a contact. For more information about chat rehydration, see
27
- * <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html">Enable persistent chat</a> in the
28
- * <i>Amazon Connect Administrator Guide</i>.
29
- * </p>
26
+ * <p>Enables rehydration of chats for the lifespan of a contact. For more information about chat
27
+ * rehydration, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html">Enable persistent chat</a> in the
28
+ * <i>Amazon Connect Administrator Guide</i>. </p>
30
29
  * @example
31
30
  * Use a bare-bones client and the command you need to make an API call.
32
31
  * ```javascript
@@ -73,6 +73,11 @@ export interface StartChatContactCommandOutput extends StartChatContactResponse,
73
73
  * SourceContactId: "STRING_VALUE",
74
74
  * },
75
75
  * RelatedContactId: "STRING_VALUE",
76
+ * SegmentAttributes: { // SegmentAttributes
77
+ * "<keys>": { // SegmentAttributeValue
78
+ * ValueString: "STRING_VALUE",
79
+ * },
80
+ * },
76
81
  * };
77
82
  * const command = new StartChatContactCommand(input);
78
83
  * const response = await client.send(command);
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateContactFlowModuleContentRequest, UpdateContactFlowModuleContentResponse } from "../models/models_1";
5
+ import { UpdateContactFlowModuleContentRequest } from "../models/models_1";
6
+ import { UpdateContactFlowModuleContentResponse } from "../models/models_2";
6
7
  /**
7
8
  * @public
8
9
  */
@@ -2375,7 +2375,7 @@ export interface CreatePersistentContactAssociationRequest {
2375
2375
  /**
2376
2376
  * @public
2377
2377
  * <p>This is the contactId of the current contact that the
2378
- * <code>CreatePersistentContactAssociation</code> API is being called from.</p>
2378
+ * <code>CreatePersistentContactAssociation</code> API is being called from.</p>
2379
2379
  */
2380
2380
  InitialContactId: string | undefined;
2381
2381
  /**
@@ -2384,16 +2384,17 @@ export interface CreatePersistentContactAssociationRequest {
2384
2384
  * <ul>
2385
2385
  * <li>
2386
2386
  * <p>
2387
- * <code>ENTIRE_PAST_SESSION</code>: Rehydrates a chat from the most recently terminated past chat
2388
- * contact of the specified past ended chat session. To use this type, provide the
2389
- * <code>initialContactId</code> of the past ended chat session in the <code>sourceContactId</code> field. In
2390
- * this type, Amazon Connect determines what the most recent chat contact on the past ended
2391
- * chat session and uses it to start a persistent chat. </p>
2387
+ * <code>ENTIRE_PAST_SESSION</code>: Rehydrates a chat from the most recently terminated past
2388
+ * chat contact of the specified past ended chat session. To use this type, provide the
2389
+ * <code>initialContactId</code> of the past ended chat session in the
2390
+ * <code>sourceContactId</code> field. In this type, Amazon Connect determines what the most
2391
+ * recent chat contact on the past ended chat session and uses it to start a persistent chat.
2392
+ * </p>
2392
2393
  * </li>
2393
2394
  * <li>
2394
2395
  * <p>
2395
- * <code>FROM_SEGMENT</code>: Rehydrates a chat from the specified past chat contact provided in the
2396
- * <code>sourceContactId</code> field. </p>
2396
+ * <code>FROM_SEGMENT</code>: Rehydrates a chat from the specified past chat contact provided
2397
+ * in the <code>sourceContactId</code> field. </p>
2397
2398
  * </li>
2398
2399
  * </ul>
2399
2400
  * <p>The actual contactId used for rehydration is provided in the response of this API.</p>
@@ -6698,6 +6698,18 @@ export interface PersistentChat {
6698
6698
  */
6699
6699
  SourceContactId?: string;
6700
6700
  }
6701
+ /**
6702
+ * @public
6703
+ * <p>A value for a segment attribute. This is structured as a map where the key is
6704
+ * <code>valueString</code> and the value is a string.</p>
6705
+ */
6706
+ export interface SegmentAttributeValue {
6707
+ /**
6708
+ * @public
6709
+ * <p>The value of a segment attribute.</p>
6710
+ */
6711
+ ValueString?: string;
6712
+ }
6701
6713
  /**
6702
6714
  * @public
6703
6715
  */
@@ -6785,6 +6797,21 @@ export interface StartChatContactRequest {
6785
6797
  * </note>
6786
6798
  */
6787
6799
  RelatedContactId?: string;
6800
+ /**
6801
+ * @public
6802
+ * <p>A set of system defined key-value pairs stored on individual contact segments using an
6803
+ * attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in
6804
+ * flows.</p>
6805
+ * <p>Attribute keys can include only alphanumeric, -, and _.</p>
6806
+ * <p>This field can be used to show channel subtype, such as <code>connect:Guide</code>.</p>
6807
+ * <note>
6808
+ * <p>The types <code>application/vnd.amazonaws.connect.message.interactive</code> and
6809
+ * <code>application/vnd.amazonaws.connect.message.interactive.response</code> must be present in the
6810
+ * SupportedMessagingContentTypes field of this API in order to set <code>SegmentAttributes</code> as \{<code>
6811
+ * "connect:Subtype": \{"valueString" : "connect:Guide" \}\}</code>.</p>
6812
+ * </note>
6813
+ */
6814
+ SegmentAttributes?: Record<string, SegmentAttributeValue>;
6788
6815
  }
6789
6816
  /**
6790
6817
  * @public
@@ -7707,11 +7734,6 @@ export interface UpdateContactFlowModuleContentRequest {
7707
7734
  */
7708
7735
  Content: string | undefined;
7709
7736
  }
7710
- /**
7711
- * @public
7712
- */
7713
- export interface UpdateContactFlowModuleContentResponse {
7714
- }
7715
7737
  /**
7716
7738
  * @internal
7717
7739
  */
@@ -1,5 +1,10 @@
1
1
  import { AgentAvailabilityTimer, AgentConfig, Application, ContactFlowModuleState, Evaluation, EvaluationFormQuestion, EvaluationFormScoringStrategy, EvaluationFormVersionStatus, HoursOfOperationConfig, InstanceAttributeType, InstanceStorageConfig, InstanceStorageResourceType, MediaConcurrency, OutboundCallerConfig, QueueStatus, QuickConnectConfig, RoutingProfileQueueConfig, RuleAction, RulePublishStatus, TaskTemplateConstraints, TaskTemplateDefaults, TaskTemplateField, TaskTemplateStatus, UserIdentityInfo, UserPhoneConfig, View, ViewInputContent, ViewStatus } from "./models_0";
2
2
  import { HierarchyGroupCondition, HoursOfOperationSearchFilter, PromptSearchFilter, QueueSearchFilter, QuickConnectSearchFilter, RoutingProfileSearchFilter, SearchableQueueType, SecurityProfilesSearchFilter, SignInConfig, StringCondition, TelephonyConfig, UserSearchFilter } from "./models_1";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface UpdateContactFlowModuleContentResponse {
7
+ }
3
8
  /**
4
9
  * @public
5
10
  */
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../ConnectClient";
14
- import {
15
- UpdateContactFlowModuleContentRequest,
16
- UpdateContactFlowModuleContentResponse,
17
- } from "../models/models_1";
14
+ import { UpdateContactFlowModuleContentRequest } from "../models/models_1";
15
+ import { UpdateContactFlowModuleContentResponse } from "../models/models_2";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface UpdateContactFlowModuleContentCommandInput
20
18
  extends UpdateContactFlowModuleContentRequest {}
@@ -1514,6 +1514,9 @@ export interface PersistentChat {
1514
1514
  RehydrationType?: RehydrationType;
1515
1515
  SourceContactId?: string;
1516
1516
  }
1517
+ export interface SegmentAttributeValue {
1518
+ ValueString?: string;
1519
+ }
1517
1520
  export interface StartChatContactRequest {
1518
1521
  InstanceId: string | undefined;
1519
1522
  ContactFlowId: string | undefined;
@@ -1525,6 +1528,7 @@ export interface StartChatContactRequest {
1525
1528
  SupportedMessagingContentTypes?: string[];
1526
1529
  PersistentChat?: PersistentChat;
1527
1530
  RelatedContactId?: string;
1531
+ SegmentAttributes?: Record<string, SegmentAttributeValue>;
1528
1532
  }
1529
1533
  export interface StartChatContactResponse {
1530
1534
  ContactId?: string;
@@ -1751,7 +1755,6 @@ export interface UpdateContactFlowModuleContentRequest {
1751
1755
  ContactFlowModuleId: string | undefined;
1752
1756
  Content: string | undefined;
1753
1757
  }
1754
- export interface UpdateContactFlowModuleContentResponse {}
1755
1758
  export declare const DescribeViewResponseFilterSensitiveLog: (
1756
1759
  obj: DescribeViewResponse
1757
1760
  ) => any;
@@ -42,6 +42,7 @@ import {
42
42
  TelephonyConfig,
43
43
  UserSearchFilter,
44
44
  } from "./models_1";
45
+ export interface UpdateContactFlowModuleContentResponse {}
45
46
  export interface UpdateContactFlowModuleMetadataRequest {
46
47
  InstanceId: string | undefined;
47
48
  ContactFlowModuleId: string | undefined;
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.450.0",
4
+ "version": "3.451.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.450.0",
25
- "@aws-sdk/core": "3.445.0",
26
- "@aws-sdk/credential-provider-node": "3.450.0",
27
- "@aws-sdk/middleware-host-header": "3.449.0",
28
- "@aws-sdk/middleware-logger": "3.449.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.449.0",
30
- "@aws-sdk/middleware-signing": "3.449.0",
31
- "@aws-sdk/middleware-user-agent": "3.449.0",
32
- "@aws-sdk/region-config-resolver": "3.433.0",
33
- "@aws-sdk/types": "3.449.0",
34
- "@aws-sdk/util-endpoints": "3.449.0",
35
- "@aws-sdk/util-user-agent-browser": "3.449.0",
36
- "@aws-sdk/util-user-agent-node": "3.449.0",
37
- "@smithy/config-resolver": "^2.0.16",
38
- "@smithy/fetch-http-handler": "^2.2.4",
39
- "@smithy/hash-node": "^2.0.12",
40
- "@smithy/invalid-dependency": "^2.0.12",
41
- "@smithy/middleware-content-length": "^2.0.14",
42
- "@smithy/middleware-endpoint": "^2.1.3",
43
- "@smithy/middleware-retry": "^2.0.18",
44
- "@smithy/middleware-serde": "^2.0.12",
45
- "@smithy/middleware-stack": "^2.0.6",
46
- "@smithy/node-config-provider": "^2.1.3",
47
- "@smithy/node-http-handler": "^2.1.8",
48
- "@smithy/protocol-http": "^3.0.8",
49
- "@smithy/smithy-client": "^2.1.12",
50
- "@smithy/types": "^2.4.0",
51
- "@smithy/url-parser": "^2.0.12",
52
- "@smithy/util-base64": "^2.0.0",
24
+ "@aws-sdk/client-sts": "3.451.0",
25
+ "@aws-sdk/core": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.451.0",
27
+ "@aws-sdk/middleware-host-header": "3.451.0",
28
+ "@aws-sdk/middleware-logger": "3.451.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.451.0",
30
+ "@aws-sdk/middleware-signing": "3.451.0",
31
+ "@aws-sdk/middleware-user-agent": "3.451.0",
32
+ "@aws-sdk/region-config-resolver": "3.451.0",
33
+ "@aws-sdk/types": "3.451.0",
34
+ "@aws-sdk/util-endpoints": "3.451.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.451.0",
36
+ "@aws-sdk/util-user-agent-node": "3.451.0",
37
+ "@smithy/config-resolver": "^2.0.18",
38
+ "@smithy/fetch-http-handler": "^2.2.6",
39
+ "@smithy/hash-node": "^2.0.15",
40
+ "@smithy/invalid-dependency": "^2.0.13",
41
+ "@smithy/middleware-content-length": "^2.0.15",
42
+ "@smithy/middleware-endpoint": "^2.2.0",
43
+ "@smithy/middleware-retry": "^2.0.20",
44
+ "@smithy/middleware-serde": "^2.0.13",
45
+ "@smithy/middleware-stack": "^2.0.7",
46
+ "@smithy/node-config-provider": "^2.1.5",
47
+ "@smithy/node-http-handler": "^2.1.9",
48
+ "@smithy/protocol-http": "^3.0.9",
49
+ "@smithy/smithy-client": "^2.1.15",
50
+ "@smithy/types": "^2.5.0",
51
+ "@smithy/url-parser": "^2.0.13",
52
+ "@smithy/util-base64": "^2.0.1",
53
53
  "@smithy/util-body-length-browser": "^2.0.0",
54
54
  "@smithy/util-body-length-node": "^2.1.0",
55
- "@smithy/util-defaults-mode-browser": "^2.0.16",
56
- "@smithy/util-defaults-mode-node": "^2.0.21",
57
- "@smithy/util-endpoints": "^1.0.2",
58
- "@smithy/util-retry": "^2.0.5",
59
- "@smithy/util-utf8": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^2.0.19",
56
+ "@smithy/util-defaults-mode-node": "^2.0.25",
57
+ "@smithy/util-endpoints": "^1.0.4",
58
+ "@smithy/util-retry": "^2.0.6",
59
+ "@smithy/util-utf8": "^2.0.2",
60
60
  "tslib": "^2.5.0",
61
61
  "uuid": "^8.3.2"
62
62
  },