@aws-sdk/client-connectparticipant 3.1076.0 → 3.1078.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 (53) hide show
  1. package/dist-cjs/index.js +22 -115
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CancelParticipantAuthenticationCommand.js +2 -14
  4. package/dist-es/commands/CompleteAttachmentUploadCommand.js +2 -14
  5. package/dist-es/commands/CreateParticipantConnectionCommand.js +2 -14
  6. package/dist-es/commands/DescribeViewCommand.js +2 -14
  7. package/dist-es/commands/DisconnectParticipantCommand.js +2 -14
  8. package/dist-es/commands/GetAttachmentCommand.js +2 -14
  9. package/dist-es/commands/GetAuthenticationUrlCommand.js +2 -14
  10. package/dist-es/commands/GetTranscriptCommand.js +2 -14
  11. package/dist-es/commands/SendEventCommand.js +2 -14
  12. package/dist-es/commands/SendMessageCommand.js +2 -14
  13. package/dist-es/commands/StartAttachmentUploadCommand.js +2 -14
  14. package/dist-es/index.js +1 -0
  15. package/dist-es/runtimeConfig.browser.js +0 -2
  16. package/dist-es/runtimeConfig.js +1 -2
  17. package/dist-es/runtimeConfig.native.js +0 -2
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-types/commandBuilder.d.ts +18 -0
  20. package/dist-types/commands/CancelParticipantAuthenticationCommand.d.ts +3 -8
  21. package/dist-types/commands/CompleteAttachmentUploadCommand.d.ts +3 -8
  22. package/dist-types/commands/CreateParticipantConnectionCommand.d.ts +3 -8
  23. package/dist-types/commands/DescribeViewCommand.d.ts +3 -8
  24. package/dist-types/commands/DisconnectParticipantCommand.d.ts +3 -8
  25. package/dist-types/commands/GetAttachmentCommand.d.ts +3 -8
  26. package/dist-types/commands/GetAuthenticationUrlCommand.d.ts +3 -8
  27. package/dist-types/commands/GetTranscriptCommand.d.ts +3 -8
  28. package/dist-types/commands/SendEventCommand.d.ts +3 -8
  29. package/dist-types/commands/SendMessageCommand.d.ts +3 -8
  30. package/dist-types/commands/StartAttachmentUploadCommand.d.ts +3 -8
  31. package/dist-types/index.d.ts +1 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  33. package/dist-types/runtimeConfig.d.ts +1 -1
  34. package/dist-types/runtimeConfig.native.d.ts +1 -1
  35. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  36. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  37. package/dist-types/ts3.4/commands/CancelParticipantAuthenticationCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/CompleteAttachmentUploadCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/CreateParticipantConnectionCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/DescribeViewCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/DisconnectParticipantCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/GetAttachmentCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetAuthenticationUrlCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/GetTranscriptCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/SendEventCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/StartAttachmentUploadCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/index.d.ts +1 -0
  49. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  50. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  53. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultConnectParticipantHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -699,6 +701,7 @@ const getRuntimeConfig$1 = (config) => {
699
701
  serviceTarget: "AmazonConnectParticipantServiceLambda",
700
702
  },
701
703
  serviceId: config?.serviceId ?? "ConnectParticipant",
704
+ sha256: config?.sha256 ?? Sha256,
702
705
  urlParser: config?.urlParser ?? parseUrl,
703
706
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
704
707
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -732,7 +735,6 @@ const getRuntimeConfig = (config) => {
732
735
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
733
736
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
734
737
  }, config),
735
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
736
738
  streamCollector: config?.streamCollector ?? streamCollector,
737
739
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
738
740
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -821,136 +823,41 @@ class ConnectParticipantClient extends Client {
821
823
  }
822
824
  }
823
825
 
824
- class CancelParticipantAuthenticationCommand extends Command
825
- .classBuilder()
826
- .ep(commonParams)
827
- .m(function (Command, cs, config, o) {
828
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
829
- })
830
- .s("AmazonConnectParticipantServiceLambda", "CancelParticipantAuthentication", {})
831
- .n("ConnectParticipantClient", "CancelParticipantAuthenticationCommand")
832
- .sc(CancelParticipantAuthentication$)
833
- .build() {
826
+ const command = makeBuilder(commonParams, "AmazonConnectParticipantServiceLambda", "ConnectParticipantClient", getEndpointPlugin);
827
+ const _ep0 = {};
828
+ const _mw0 = (Command, cs, config, o) => [];
829
+
830
+ class CancelParticipantAuthenticationCommand extends command(_ep0, _mw0, "CancelParticipantAuthentication", CancelParticipantAuthentication$) {
834
831
  }
835
832
 
836
- class CompleteAttachmentUploadCommand extends Command
837
- .classBuilder()
838
- .ep(commonParams)
839
- .m(function (Command, cs, config, o) {
840
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
841
- })
842
- .s("AmazonConnectParticipantServiceLambda", "CompleteAttachmentUpload", {})
843
- .n("ConnectParticipantClient", "CompleteAttachmentUploadCommand")
844
- .sc(CompleteAttachmentUpload$)
845
- .build() {
833
+ class CompleteAttachmentUploadCommand extends command(_ep0, _mw0, "CompleteAttachmentUpload", CompleteAttachmentUpload$) {
846
834
  }
847
835
 
848
- class CreateParticipantConnectionCommand extends Command
849
- .classBuilder()
850
- .ep(commonParams)
851
- .m(function (Command, cs, config, o) {
852
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
853
- })
854
- .s("AmazonConnectParticipantServiceLambda", "CreateParticipantConnection", {})
855
- .n("ConnectParticipantClient", "CreateParticipantConnectionCommand")
856
- .sc(CreateParticipantConnection$)
857
- .build() {
836
+ class CreateParticipantConnectionCommand extends command(_ep0, _mw0, "CreateParticipantConnection", CreateParticipantConnection$) {
858
837
  }
859
838
 
860
- class DescribeViewCommand extends Command
861
- .classBuilder()
862
- .ep(commonParams)
863
- .m(function (Command, cs, config, o) {
864
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
865
- })
866
- .s("AmazonConnectParticipantServiceLambda", "DescribeView", {})
867
- .n("ConnectParticipantClient", "DescribeViewCommand")
868
- .sc(DescribeView$)
869
- .build() {
839
+ class DescribeViewCommand extends command(_ep0, _mw0, "DescribeView", DescribeView$) {
870
840
  }
871
841
 
872
- class DisconnectParticipantCommand extends Command
873
- .classBuilder()
874
- .ep(commonParams)
875
- .m(function (Command, cs, config, o) {
876
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
877
- })
878
- .s("AmazonConnectParticipantServiceLambda", "DisconnectParticipant", {})
879
- .n("ConnectParticipantClient", "DisconnectParticipantCommand")
880
- .sc(DisconnectParticipant$)
881
- .build() {
842
+ class DisconnectParticipantCommand extends command(_ep0, _mw0, "DisconnectParticipant", DisconnectParticipant$) {
882
843
  }
883
844
 
884
- class GetAttachmentCommand extends Command
885
- .classBuilder()
886
- .ep(commonParams)
887
- .m(function (Command, cs, config, o) {
888
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
889
- })
890
- .s("AmazonConnectParticipantServiceLambda", "GetAttachment", {})
891
- .n("ConnectParticipantClient", "GetAttachmentCommand")
892
- .sc(GetAttachment$)
893
- .build() {
845
+ class GetAttachmentCommand extends command(_ep0, _mw0, "GetAttachment", GetAttachment$) {
894
846
  }
895
847
 
896
- class GetAuthenticationUrlCommand extends Command
897
- .classBuilder()
898
- .ep(commonParams)
899
- .m(function (Command, cs, config, o) {
900
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
901
- })
902
- .s("AmazonConnectParticipantServiceLambda", "GetAuthenticationUrl", {})
903
- .n("ConnectParticipantClient", "GetAuthenticationUrlCommand")
904
- .sc(GetAuthenticationUrl$)
905
- .build() {
848
+ class GetAuthenticationUrlCommand extends command(_ep0, _mw0, "GetAuthenticationUrl", GetAuthenticationUrl$) {
906
849
  }
907
850
 
908
- class GetTranscriptCommand extends Command
909
- .classBuilder()
910
- .ep(commonParams)
911
- .m(function (Command, cs, config, o) {
912
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
913
- })
914
- .s("AmazonConnectParticipantServiceLambda", "GetTranscript", {})
915
- .n("ConnectParticipantClient", "GetTranscriptCommand")
916
- .sc(GetTranscript$)
917
- .build() {
851
+ class GetTranscriptCommand extends command(_ep0, _mw0, "GetTranscript", GetTranscript$) {
918
852
  }
919
853
 
920
- class SendEventCommand extends Command
921
- .classBuilder()
922
- .ep(commonParams)
923
- .m(function (Command, cs, config, o) {
924
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
925
- })
926
- .s("AmazonConnectParticipantServiceLambda", "SendEvent", {})
927
- .n("ConnectParticipantClient", "SendEventCommand")
928
- .sc(SendEvent$)
929
- .build() {
854
+ class SendEventCommand extends command(_ep0, _mw0, "SendEvent", SendEvent$) {
930
855
  }
931
856
 
932
- class SendMessageCommand extends Command
933
- .classBuilder()
934
- .ep(commonParams)
935
- .m(function (Command, cs, config, o) {
936
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
937
- })
938
- .s("AmazonConnectParticipantServiceLambda", "SendMessage", {})
939
- .n("ConnectParticipantClient", "SendMessageCommand")
940
- .sc(SendMessage$)
941
- .build() {
857
+ class SendMessageCommand extends command(_ep0, _mw0, "SendMessage", SendMessage$) {
942
858
  }
943
859
 
944
- class StartAttachmentUploadCommand extends Command
945
- .classBuilder()
946
- .ep(commonParams)
947
- .m(function (Command, cs, config, o) {
948
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
949
- })
950
- .s("AmazonConnectParticipantServiceLambda", "StartAttachmentUpload", {})
951
- .n("ConnectParticipantClient", "StartAttachmentUploadCommand")
952
- .sc(StartAttachmentUpload$)
953
- .build() {
860
+ class StartAttachmentUploadCommand extends command(_ep0, _mw0, "StartAttachmentUpload", StartAttachmentUpload$) {
954
861
  }
955
862
 
956
863
  const paginateGetTranscript = createPaginator(ConnectParticipantClient, GetTranscriptCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AmazonConnectParticipantServiceLambda", "ConnectParticipantClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CancelParticipantAuthentication$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CancelParticipantAuthenticationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "CancelParticipantAuthentication", {})
13
- .n("ConnectParticipantClient", "CancelParticipantAuthenticationCommand")
14
- .sc(CancelParticipantAuthentication$)
15
- .build() {
3
+ export class CancelParticipantAuthenticationCommand extends command(_ep0, _mw0, "CancelParticipantAuthentication", CancelParticipantAuthentication$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CompleteAttachmentUpload$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CompleteAttachmentUploadCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "CompleteAttachmentUpload", {})
13
- .n("ConnectParticipantClient", "CompleteAttachmentUploadCommand")
14
- .sc(CompleteAttachmentUpload$)
15
- .build() {
3
+ export class CompleteAttachmentUploadCommand extends command(_ep0, _mw0, "CompleteAttachmentUpload", CompleteAttachmentUpload$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateParticipantConnection$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateParticipantConnectionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "CreateParticipantConnection", {})
13
- .n("ConnectParticipantClient", "CreateParticipantConnectionCommand")
14
- .sc(CreateParticipantConnection$)
15
- .build() {
3
+ export class CreateParticipantConnectionCommand extends command(_ep0, _mw0, "CreateParticipantConnection", CreateParticipantConnection$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeView$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeViewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "DescribeView", {})
13
- .n("ConnectParticipantClient", "DescribeViewCommand")
14
- .sc(DescribeView$)
15
- .build() {
3
+ export class DescribeViewCommand extends command(_ep0, _mw0, "DescribeView", DescribeView$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DisconnectParticipant$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisconnectParticipantCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "DisconnectParticipant", {})
13
- .n("ConnectParticipantClient", "DisconnectParticipantCommand")
14
- .sc(DisconnectParticipant$)
15
- .build() {
3
+ export class DisconnectParticipantCommand extends command(_ep0, _mw0, "DisconnectParticipant", DisconnectParticipant$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetAttachment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAttachmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "GetAttachment", {})
13
- .n("ConnectParticipantClient", "GetAttachmentCommand")
14
- .sc(GetAttachment$)
15
- .build() {
3
+ export class GetAttachmentCommand extends command(_ep0, _mw0, "GetAttachment", GetAttachment$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetAuthenticationUrl$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAuthenticationUrlCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "GetAuthenticationUrl", {})
13
- .n("ConnectParticipantClient", "GetAuthenticationUrlCommand")
14
- .sc(GetAuthenticationUrl$)
15
- .build() {
3
+ export class GetAuthenticationUrlCommand extends command(_ep0, _mw0, "GetAuthenticationUrl", GetAuthenticationUrl$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetTranscript$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetTranscriptCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "GetTranscript", {})
13
- .n("ConnectParticipantClient", "GetTranscriptCommand")
14
- .sc(GetTranscript$)
15
- .build() {
3
+ export class GetTranscriptCommand extends command(_ep0, _mw0, "GetTranscript", GetTranscript$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { SendEvent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SendEventCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "SendEvent", {})
13
- .n("ConnectParticipantClient", "SendEventCommand")
14
- .sc(SendEvent$)
15
- .build() {
3
+ export class SendEventCommand extends command(_ep0, _mw0, "SendEvent", SendEvent$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { SendMessage$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SendMessageCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "SendMessage", {})
13
- .n("ConnectParticipantClient", "SendMessageCommand")
14
- .sc(SendMessage$)
15
- .build() {
3
+ export class SendMessageCommand extends command(_ep0, _mw0, "SendMessage", SendMessage$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StartAttachmentUpload$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartAttachmentUploadCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonConnectParticipantServiceLambda", "StartAttachmentUpload", {})
13
- .n("ConnectParticipantClient", "StartAttachmentUploadCommand")
14
- .sc(StartAttachmentUpload$)
15
- .build() {
3
+ export class StartAttachmentUploadCommand extends command(_ep0, _mw0, "StartAttachmentUpload", StartAttachmentUpload$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./ConnectParticipantClient";
2
2
  export * from "./ConnectParticipant";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -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: "AmazonConnectParticipantServiceLambda",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "ConnectParticipant",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./ConnectParticipantClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectParticipantClient";
4
2
  import type { CancelParticipantAuthenticationRequest, CancelParticipantAuthenticationResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CancelParticipantAuthenticationCommandInput extends CancelParti
22
19
  export interface CancelParticipantAuthenticationCommandOutput extends CancelParticipantAuthenticationResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CancelParticipantAuthenticationCommand_base: {
25
- new (input: CancelParticipantAuthenticationCommandInput): import("@smithy/core/client").CommandImpl<CancelParticipantAuthenticationCommandInput, CancelParticipantAuthenticationCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CancelParticipantAuthenticationCommandInput): import("@smithy/core/client").CommandImpl<CancelParticipantAuthenticationCommandInput, CancelParticipantAuthenticationCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CancelParticipantAuthenticationCommandInput): import("@smithy/core/client").CommandImpl<CancelParticipantAuthenticationCommandInput, CancelParticipantAuthenticationCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelParticipantAuthenticationCommandInput): import("@smithy/core/client").CommandImpl<CancelParticipantAuthenticationCommandInput, CancelParticipantAuthenticationCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Cancels the authentication session. The opted out branch of the Authenticate Customer
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectParticipantClient";
4
2
  import type { CompleteAttachmentUploadRequest, CompleteAttachmentUploadResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CompleteAttachmentUploadCommandInput extends CompleteAttachment
22
19
  export interface CompleteAttachmentUploadCommandOutput extends CompleteAttachmentUploadResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CompleteAttachmentUploadCommand_base: {
25
- new (input: CompleteAttachmentUploadCommandInput): import("@smithy/core/client").CommandImpl<CompleteAttachmentUploadCommandInput, CompleteAttachmentUploadCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CompleteAttachmentUploadCommandInput): import("@smithy/core/client").CommandImpl<CompleteAttachmentUploadCommandInput, CompleteAttachmentUploadCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CompleteAttachmentUploadCommandInput): import("@smithy/core/client").CommandImpl<CompleteAttachmentUploadCommandInput, CompleteAttachmentUploadCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CompleteAttachmentUploadCommandInput): import("@smithy/core/client").CommandImpl<CompleteAttachmentUploadCommandInput, CompleteAttachmentUploadCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Allows you to confirm that the attachment has been uploaded using the pre-signed URL
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectParticipantClient";
4
2
  import type { CreateParticipantConnectionRequest, CreateParticipantConnectionResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateParticipantConnectionCommandInput extends CreateParticipa
22
19
  export interface CreateParticipantConnectionCommandOutput extends CreateParticipantConnectionResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateParticipantConnectionCommand_base: {
25
- new (input: CreateParticipantConnectionCommandInput): import("@smithy/core/client").CommandImpl<CreateParticipantConnectionCommandInput, CreateParticipantConnectionCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateParticipantConnectionCommandInput): import("@smithy/core/client").CommandImpl<CreateParticipantConnectionCommandInput, CreateParticipantConnectionCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateParticipantConnectionCommandInput): import("@smithy/core/client").CommandImpl<CreateParticipantConnectionCommandInput, CreateParticipantConnectionCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateParticipantConnectionCommandInput): import("@smithy/core/client").CommandImpl<CreateParticipantConnectionCommandInput, CreateParticipantConnectionCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates the participant's connection. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectParticipantClient";
4
2
  import type { DescribeViewRequest, DescribeViewResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DescribeViewCommandInput extends DescribeViewRequest {
22
19
  export interface DescribeViewCommandOutput extends DescribeViewResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeViewCommand_base: {
25
- new (input: DescribeViewCommandInput): import("@smithy/core/client").CommandImpl<DescribeViewCommandInput, DescribeViewCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeViewCommandInput): import("@smithy/core/client").CommandImpl<DescribeViewCommandInput, DescribeViewCommandOutput, ConnectParticipantClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeViewCommandInput): import("@smithy/core/client").CommandImpl<DescribeViewCommandInput, DescribeViewCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeViewCommandInput): import("@smithy/core/client").CommandImpl<DescribeViewCommandInput, DescribeViewCommandOutput, import("..").ConnectParticipantClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Retrieves the view for the specified view token.</p>