@aws-sdk/client-connectparticipant 3.477.0 → 3.481.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 (45) hide show
  1. package/dist-cjs/commands/CompleteAttachmentUploadCommand.js +18 -41
  2. package/dist-cjs/commands/CreateParticipantConnectionCommand.js +18 -41
  3. package/dist-cjs/commands/DescribeViewCommand.js +18 -41
  4. package/dist-cjs/commands/DisconnectParticipantCommand.js +18 -41
  5. package/dist-cjs/commands/GetAttachmentCommand.js +18 -41
  6. package/dist-cjs/commands/GetTranscriptCommand.js +18 -41
  7. package/dist-cjs/commands/SendEventCommand.js +18 -41
  8. package/dist-cjs/commands/SendMessageCommand.js +18 -41
  9. package/dist-cjs/commands/StartAttachmentUploadCommand.js +18 -41
  10. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  11. package/dist-cjs/pagination/GetTranscriptPaginator.js +2 -24
  12. package/dist-es/commands/CompleteAttachmentUploadCommand.js +18 -41
  13. package/dist-es/commands/CreateParticipantConnectionCommand.js +18 -41
  14. package/dist-es/commands/DescribeViewCommand.js +18 -41
  15. package/dist-es/commands/DisconnectParticipantCommand.js +18 -41
  16. package/dist-es/commands/GetAttachmentCommand.js +18 -41
  17. package/dist-es/commands/GetTranscriptCommand.js +18 -41
  18. package/dist-es/commands/SendEventCommand.js +18 -41
  19. package/dist-es/commands/SendMessageCommand.js +18 -41
  20. package/dist-es/commands/StartAttachmentUploadCommand.js +18 -41
  21. package/dist-es/endpoint/EndpointParameters.js +6 -0
  22. package/dist-es/pagination/GetTranscriptPaginator.js +2 -23
  23. package/dist-types/commands/CompleteAttachmentUploadCommand.d.ts +6 -21
  24. package/dist-types/commands/CreateParticipantConnectionCommand.d.ts +6 -21
  25. package/dist-types/commands/DescribeViewCommand.d.ts +6 -21
  26. package/dist-types/commands/DisconnectParticipantCommand.d.ts +6 -21
  27. package/dist-types/commands/GetAttachmentCommand.d.ts +6 -21
  28. package/dist-types/commands/GetTranscriptCommand.d.ts +6 -21
  29. package/dist-types/commands/SendEventCommand.d.ts +6 -21
  30. package/dist-types/commands/SendMessageCommand.d.ts +6 -21
  31. package/dist-types/commands/StartAttachmentUploadCommand.d.ts +6 -21
  32. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  33. package/dist-types/pagination/GetTranscriptPaginator.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/CompleteAttachmentUploadCommand.d.ts +12 -24
  35. package/dist-types/ts3.4/commands/CreateParticipantConnectionCommand.d.ts +12 -24
  36. package/dist-types/ts3.4/commands/DescribeViewCommand.d.ts +14 -23
  37. package/dist-types/ts3.4/commands/DisconnectParticipantCommand.d.ts +12 -24
  38. package/dist-types/ts3.4/commands/GetAttachmentCommand.d.ts +14 -23
  39. package/dist-types/ts3.4/commands/GetTranscriptCommand.d.ts +14 -23
  40. package/dist-types/ts3.4/commands/SendEventCommand.d.ts +14 -23
  41. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +14 -23
  42. package/dist-types/ts3.4/commands/StartAttachmentUploadCommand.d.ts +12 -24
  43. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  44. package/dist-types/ts3.4/pagination/GetTranscriptPaginator.d.ts +3 -3
  45. package/package.json +11 -11
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetTranscript = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetTranscriptCommand_1 = require("../commands/GetTranscriptCommand");
5
6
  const ConnectParticipantClient_1 = require("../ConnectParticipantClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetTranscriptCommand_1.GetTranscriptCommand(input), ...args);
8
- };
9
- async function* paginateGetTranscript(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ConnectParticipantClient_1.ConnectParticipantClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ConnectParticipant | ConnectParticipantClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetTranscript = paginateGetTranscript;
7
+ exports.paginateGetTranscript = (0, core_1.createPaginator)(ConnectParticipantClient_1.ConnectParticipantClient, GetTranscriptCommand_1.GetTranscriptCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CompleteAttachmentUploadCommand, se_CompleteAttachmentUploadCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CompleteAttachmentUploadCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CompleteAttachmentUploadCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "CompleteAttachmentUploadCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "CompleteAttachmentUpload",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CompleteAttachmentUploadCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CompleteAttachmentUploadCommand(output, context);
46
- }
7
+ export class CompleteAttachmentUploadCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "CompleteAttachmentUpload", {})
19
+ .n("ConnectParticipantClient", "CompleteAttachmentUploadCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CompleteAttachmentUploadCommand)
22
+ .de(de_CompleteAttachmentUploadCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateParticipantConnectionCommand, se_CreateParticipantConnectionCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateParticipantConnectionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateParticipantConnectionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "CreateParticipantConnectionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "CreateParticipantConnection",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateParticipantConnectionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateParticipantConnectionCommand(output, context);
46
- }
7
+ export class CreateParticipantConnectionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "CreateParticipantConnection", {})
19
+ .n("ConnectParticipantClient", "CreateParticipantConnectionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateParticipantConnectionCommand)
22
+ .de(de_CreateParticipantConnectionCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { DescribeViewResponseFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_DescribeViewCommand, se_DescribeViewCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class DescribeViewCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeViewCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "ConnectParticipantClient";
27
- const commandName = "DescribeViewCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: DescribeViewResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonConnectParticipantServiceLambda",
36
- operation: "DescribeView",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_DescribeViewCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_DescribeViewCommand(output, context);
47
- }
8
+ export class DescribeViewCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonConnectParticipantServiceLambda", "DescribeView", {})
20
+ .n("ConnectParticipantClient", "DescribeViewCommand")
21
+ .f(void 0, DescribeViewResponseFilterSensitiveLog)
22
+ .ser(se_DescribeViewCommand)
23
+ .de(de_DescribeViewCommand)
24
+ .build() {
48
25
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DisconnectParticipantCommand, se_DisconnectParticipantCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DisconnectParticipantCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DisconnectParticipantCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "DisconnectParticipantCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "DisconnectParticipant",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DisconnectParticipantCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DisconnectParticipantCommand(output, context);
46
- }
7
+ export class DisconnectParticipantCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "DisconnectParticipant", {})
19
+ .n("ConnectParticipantClient", "DisconnectParticipantCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DisconnectParticipantCommand)
22
+ .de(de_DisconnectParticipantCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetAttachmentCommand, se_GetAttachmentCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetAttachmentCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetAttachmentCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "GetAttachmentCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "GetAttachment",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetAttachmentCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetAttachmentCommand(output, context);
46
- }
7
+ export class GetAttachmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "GetAttachment", {})
19
+ .n("ConnectParticipantClient", "GetAttachmentCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAttachmentCommand)
22
+ .de(de_GetAttachmentCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetTranscriptCommand, se_GetTranscriptCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetTranscriptCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetTranscriptCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "GetTranscriptCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "GetTranscript",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetTranscriptCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetTranscriptCommand(output, context);
46
- }
7
+ export class GetTranscriptCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "GetTranscript", {})
19
+ .n("ConnectParticipantClient", "GetTranscriptCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetTranscriptCommand)
22
+ .de(de_GetTranscriptCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_SendEventCommand, se_SendEventCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class SendEventCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SendEventCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "SendEventCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "SendEvent",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SendEventCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SendEventCommand(output, context);
46
- }
7
+ export class SendEventCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "SendEvent", {})
19
+ .n("ConnectParticipantClient", "SendEventCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SendEventCommand)
22
+ .de(de_SendEventCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_SendMessageCommand, se_SendMessageCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class SendMessageCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SendMessageCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "SendMessageCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "SendMessage",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SendMessageCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SendMessageCommand(output, context);
46
- }
7
+ export class SendMessageCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "SendMessage", {})
19
+ .n("ConnectParticipantClient", "SendMessageCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SendMessageCommand)
22
+ .de(de_SendMessageCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartAttachmentUploadCommand, se_StartAttachmentUploadCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StartAttachmentUploadCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartAttachmentUploadCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ConnectParticipantClient";
26
- const commandName = "StartAttachmentUploadCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonConnectParticipantServiceLambda",
35
- operation: "StartAttachmentUpload",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartAttachmentUploadCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartAttachmentUploadCommand(output, context);
46
- }
7
+ export class StartAttachmentUploadCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectParticipantServiceLambda", "StartAttachmentUpload", {})
19
+ .n("ConnectParticipantClient", "StartAttachmentUploadCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartAttachmentUploadCommand)
22
+ .de(de_StartAttachmentUploadCommand)
23
+ .build() {
47
24
  }