@aws-sdk/client-connect 3.1076.0 → 3.1077.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.
- package/README.md +14 -0
- package/dist-cjs/index.js +199 -53
- package/dist-es/Connect.js +4 -0
- package/dist-es/commands/CreateAttachedFileCommand.js +16 -0
- package/dist-es/commands/StartContactConversationalAnalyticsJobCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +25 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +128 -50
- package/dist-types/Connect.d.ts +14 -0
- package/dist-types/ConnectClient.d.ts +4 -2
- package/dist-types/commands/BatchGetAttachedFileMetadataCommand.d.ts +1 -1
- package/dist-types/commands/CreateAttachedFileCommand.d.ts +115 -0
- package/dist-types/commands/CreateEvaluationFormCommand.d.ts +1 -1
- package/dist-types/commands/GetAttachedFileCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricDataCommand.d.ts +2 -1
- package/dist-types/commands/SearchEmailAddressesCommand.d.ts +1 -2
- package/dist-types/commands/StartAttachedFileUploadCommand.d.ts +1 -1
- package/dist-types/commands/StartChatContactCommand.d.ts +2 -1
- package/dist-types/commands/StartContactConversationalAnalyticsJobCommand.d.ts +135 -0
- package/dist-types/commands/StartEmailContactCommand.d.ts +2 -1
- package/dist-types/commands/StartOutboundChatContactCommand.d.ts +2 -1
- package/dist-types/commands/StartTaskContactCommand.d.ts +2 -1
- package/dist-types/commands/UpdateContactCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +65 -0
- package/dist-types/models/models_0.d.ts +75 -94
- package/dist-types/models/models_1.d.ts +95 -33
- package/dist-types/models/models_2.d.ts +34 -60
- package/dist-types/models/models_3.d.ts +218 -728
- package/dist-types/models/models_4.d.ts +728 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +12 -0
- package/dist-types/ts3.4/Connect.d.ts +40 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/CreateAttachedFileCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateEvaluationFormCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SearchEmailAddressesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/StartChatContactCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartContactConversationalAnalyticsJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/StartEmailContactCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartOutboundChatContactCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartTaskContactCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +30 -0
- package/dist-types/ts3.4/models/models_0.d.ts +14 -21
- package/dist-types/ts3.4/models/models_1.d.ts +22 -9
- package/dist-types/ts3.4/models/models_2.d.ts +9 -15
- package/dist-types/ts3.4/models/models_3.d.ts +56 -145
- package/dist-types/ts3.4/models/models_4.d.ts +155 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/package.json +6 -8
package/dist-es/Connect.js
CHANGED
|
@@ -32,6 +32,7 @@ import { BatchUpdateDataTableValueCommand, } from "./commands/BatchUpdateDataTab
|
|
|
32
32
|
import { ClaimPhoneNumberCommand, } from "./commands/ClaimPhoneNumberCommand";
|
|
33
33
|
import { CompleteAttachedFileUploadCommand, } from "./commands/CompleteAttachedFileUploadCommand";
|
|
34
34
|
import { CreateAgentStatusCommand, } from "./commands/CreateAgentStatusCommand";
|
|
35
|
+
import { CreateAttachedFileCommand, } from "./commands/CreateAttachedFileCommand";
|
|
35
36
|
import { CreateContactCommand, } from "./commands/CreateContactCommand";
|
|
36
37
|
import { CreateContactFlowCommand, } from "./commands/CreateContactFlowCommand";
|
|
37
38
|
import { CreateContactFlowModuleAliasCommand, } from "./commands/CreateContactFlowModuleAliasCommand";
|
|
@@ -282,6 +283,7 @@ import { SendChatIntegrationEventCommand, } from "./commands/SendChatIntegration
|
|
|
282
283
|
import { SendOutboundEmailCommand, } from "./commands/SendOutboundEmailCommand";
|
|
283
284
|
import { StartAttachedFileUploadCommand, } from "./commands/StartAttachedFileUploadCommand";
|
|
284
285
|
import { StartChatContactCommand, } from "./commands/StartChatContactCommand";
|
|
286
|
+
import { StartContactConversationalAnalyticsJobCommand, } from "./commands/StartContactConversationalAnalyticsJobCommand";
|
|
285
287
|
import { StartContactEvaluationCommand, } from "./commands/StartContactEvaluationCommand";
|
|
286
288
|
import { StartContactMediaProcessingCommand, } from "./commands/StartContactMediaProcessingCommand";
|
|
287
289
|
import { StartContactRecordingCommand, } from "./commands/StartContactRecordingCommand";
|
|
@@ -492,6 +494,7 @@ const commands = {
|
|
|
492
494
|
ClaimPhoneNumberCommand,
|
|
493
495
|
CompleteAttachedFileUploadCommand,
|
|
494
496
|
CreateAgentStatusCommand,
|
|
497
|
+
CreateAttachedFileCommand,
|
|
495
498
|
CreateContactCommand,
|
|
496
499
|
CreateContactFlowCommand,
|
|
497
500
|
CreateContactFlowModuleCommand,
|
|
@@ -742,6 +745,7 @@ const commands = {
|
|
|
742
745
|
SendOutboundEmailCommand,
|
|
743
746
|
StartAttachedFileUploadCommand,
|
|
744
747
|
StartChatContactCommand,
|
|
748
|
+
StartContactConversationalAnalyticsJobCommand,
|
|
745
749
|
StartContactEvaluationCommand,
|
|
746
750
|
StartContactMediaProcessingCommand,
|
|
747
751
|
StartContactRecordingCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateAttachedFile$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateAttachedFileCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonConnectService", "CreateAttachedFile", {})
|
|
13
|
+
.n("ConnectClient", "CreateAttachedFileCommand")
|
|
14
|
+
.sc(CreateAttachedFile$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { StartContactConversationalAnalyticsJob$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class StartContactConversationalAnalyticsJobCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonConnectService", "StartContactConversationalAnalyticsJob", {})
|
|
13
|
+
.n("ConnectClient", "StartContactConversationalAnalyticsJobCommand")
|
|
14
|
+
.sc(StartContactConversationalAnalyticsJob$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./BatchUpdateDataTableValueCommand";
|
|
|
31
31
|
export * from "./ClaimPhoneNumberCommand";
|
|
32
32
|
export * from "./CompleteAttachedFileUploadCommand";
|
|
33
33
|
export * from "./CreateAgentStatusCommand";
|
|
34
|
+
export * from "./CreateAttachedFileCommand";
|
|
34
35
|
export * from "./CreateContactCommand";
|
|
35
36
|
export * from "./CreateContactFlowCommand";
|
|
36
37
|
export * from "./CreateContactFlowModuleAliasCommand";
|
|
@@ -281,6 +282,7 @@ export * from "./SendChatIntegrationEventCommand";
|
|
|
281
282
|
export * from "./SendOutboundEmailCommand";
|
|
282
283
|
export * from "./StartAttachedFileUploadCommand";
|
|
283
284
|
export * from "./StartChatContactCommand";
|
|
285
|
+
export * from "./StartContactConversationalAnalyticsJobCommand";
|
|
284
286
|
export * from "./StartContactEvaluationCommand";
|
|
285
287
|
export * from "./StartContactMediaProcessingCommand";
|
|
286
288
|
export * from "./StartContactRecordingCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -185,6 +185,7 @@ export const FileUseCaseType = {
|
|
|
185
185
|
EMAIL_MESSAGE_PLAIN_TEXT: "EMAIL_MESSAGE_PLAIN_TEXT",
|
|
186
186
|
EMAIL_MESSAGE_PLAIN_TEXT_REDACTED: "EMAIL_MESSAGE_PLAIN_TEXT_REDACTED",
|
|
187
187
|
EMAIL_MESSAGE_REDACTED: "EMAIL_MESSAGE_REDACTED",
|
|
188
|
+
VOICE_RECORDING: "VOICE_RECORDING",
|
|
188
189
|
};
|
|
189
190
|
export const ListFlowAssociationResourceType = {
|
|
190
191
|
ANALYTICS_CONNECTOR: "ANALYTICS_CONNECTOR",
|
|
@@ -1268,6 +1269,30 @@ export const ResponseMode = {
|
|
|
1268
1269
|
COMPLETE: "COMPLETE",
|
|
1269
1270
|
INCREMENTAL: "INCREMENTAL",
|
|
1270
1271
|
};
|
|
1272
|
+
export const Behavior = {
|
|
1273
|
+
Disable: "Disable",
|
|
1274
|
+
Enable: "Enable",
|
|
1275
|
+
};
|
|
1276
|
+
export const MaskMode = {
|
|
1277
|
+
EntityType: "EntityType",
|
|
1278
|
+
PII: "PII",
|
|
1279
|
+
};
|
|
1280
|
+
export const Policy = {
|
|
1281
|
+
None: "None",
|
|
1282
|
+
RedactedAndOriginal: "RedactedAndOriginal",
|
|
1283
|
+
RedactedOnly: "RedactedOnly",
|
|
1284
|
+
};
|
|
1285
|
+
export const SummaryMode = {
|
|
1286
|
+
AutomatedInteraction: "AutomatedInteraction",
|
|
1287
|
+
ContactChain: "ContactChain",
|
|
1288
|
+
PostContact: "PostContact",
|
|
1289
|
+
};
|
|
1290
|
+
export const AnalyticsMode = {
|
|
1291
|
+
AutomatedInteraction: "AutomatedInteraction",
|
|
1292
|
+
ContactLens: "ContactLens",
|
|
1293
|
+
PostContact: "PostContact",
|
|
1294
|
+
RealTime: "RealTime",
|
|
1295
|
+
};
|
|
1271
1296
|
export const ContactMediaProcessingFailureMode = {
|
|
1272
1297
|
DELIVER_UNPROCESSED_MESSAGE: "DELIVER_UNPROCESSED_MESSAGE",
|
|
1273
1298
|
DO_NOT_DELIVER_UNPROCESSED_MESSAGE: "DO_NOT_DELIVER_UNPROCESSED_MESSAGE",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "AmazonConnectService",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "Connect",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|