@aws-sdk/client-connect 3.1075.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.
Files changed (74) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +13382 -15
  3. package/dist-es/Connect.js +4 -0
  4. package/dist-es/commands/CreateAttachedFileCommand.js +16 -0
  5. package/dist-es/commands/StartContactConversationalAnalyticsJobCommand.js +16 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +25 -0
  8. package/dist-es/runtimeConfig.browser.js +0 -2
  9. package/dist-es/runtimeConfig.js +1 -2
  10. package/dist-es/runtimeConfig.native.js +0 -2
  11. package/dist-es/runtimeConfig.shared.js +2 -0
  12. package/dist-es/schemas/schemas_0.js +128 -50
  13. package/dist-types/Connect.d.ts +14 -0
  14. package/dist-types/ConnectClient.d.ts +4 -2
  15. package/dist-types/commands/BatchGetAttachedFileMetadataCommand.d.ts +1 -1
  16. package/dist-types/commands/CreateAttachedFileCommand.d.ts +115 -0
  17. package/dist-types/commands/CreateEvaluationFormCommand.d.ts +1 -1
  18. package/dist-types/commands/GetAttachedFileCommand.d.ts +1 -1
  19. package/dist-types/commands/GetMetricDataCommand.d.ts +2 -1
  20. package/dist-types/commands/SearchEmailAddressesCommand.d.ts +1 -2
  21. package/dist-types/commands/StartAttachedFileUploadCommand.d.ts +1 -1
  22. package/dist-types/commands/StartChatContactCommand.d.ts +2 -1
  23. package/dist-types/commands/StartContactConversationalAnalyticsJobCommand.d.ts +135 -0
  24. package/dist-types/commands/StartEmailContactCommand.d.ts +2 -1
  25. package/dist-types/commands/StartOutboundChatContactCommand.d.ts +2 -1
  26. package/dist-types/commands/StartTaskContactCommand.d.ts +2 -1
  27. package/dist-types/commands/UpdateContactCommand.d.ts +2 -1
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/enums.d.ts +65 -0
  30. package/dist-types/models/models_0.d.ts +75 -94
  31. package/dist-types/models/models_1.d.ts +95 -33
  32. package/dist-types/models/models_2.d.ts +34 -60
  33. package/dist-types/models/models_3.d.ts +218 -728
  34. package/dist-types/models/models_4.d.ts +728 -3
  35. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  36. package/dist-types/runtimeConfig.d.ts +2 -2
  37. package/dist-types/runtimeConfig.native.d.ts +2 -2
  38. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  39. package/dist-types/schemas/schemas_0.d.ts +12 -0
  40. package/dist-types/ts3.4/Connect.d.ts +40 -0
  41. package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
  42. package/dist-types/ts3.4/commands/CreateAttachedFileCommand.d.ts +53 -0
  43. package/dist-types/ts3.4/commands/CreateEvaluationFormCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +2 -4
  45. package/dist-types/ts3.4/commands/SearchEmailAddressesCommand.d.ts +4 -2
  46. package/dist-types/ts3.4/commands/StartChatContactCommand.d.ts +2 -4
  47. package/dist-types/ts3.4/commands/StartContactConversationalAnalyticsJobCommand.d.ts +53 -0
  48. package/dist-types/ts3.4/commands/StartEmailContactCommand.d.ts +2 -4
  49. package/dist-types/ts3.4/commands/StartOutboundChatContactCommand.d.ts +2 -4
  50. package/dist-types/ts3.4/commands/StartTaskContactCommand.d.ts +2 -4
  51. package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +2 -4
  52. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  53. package/dist-types/ts3.4/models/enums.d.ts +30 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +14 -21
  55. package/dist-types/ts3.4/models/models_1.d.ts +22 -9
  56. package/dist-types/ts3.4/models/models_2.d.ts +9 -15
  57. package/dist-types/ts3.4/models/models_3.d.ts +56 -145
  58. package/dist-types/ts3.4/models/models_4.d.ts +155 -3
  59. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
  60. package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
  61. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
  62. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  63. package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
  64. package/package.json +8 -10
  65. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  66. package/dist-cjs/endpoint/bdd.js +0 -49
  67. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  68. package/dist-cjs/models/ConnectServiceException.js +0 -8
  69. package/dist-cjs/models/errors.js +0 -403
  70. package/dist-cjs/runtimeConfig.browser.js +0 -32
  71. package/dist-cjs/runtimeConfig.js +0 -45
  72. package/dist-cjs/runtimeConfig.native.js +0 -12
  73. package/dist-cjs/runtimeConfig.shared.js +0 -38
  74. package/dist-cjs/schemas/schemas_0.js +0 -12323
@@ -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";
@@ -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)),
@@ -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, Hash } from "@smithy/core/serde";
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,