@aws-sdk/client-connectparticipant 3.35.0 → 3.38.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 (136) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ConnectParticipant.js +0 -9
  3. package/dist-cjs/ConnectParticipantClient.js +0 -14
  4. package/dist-cjs/commands/CompleteAttachmentUploadCommand.js +0 -26
  5. package/dist-cjs/commands/CreateParticipantConnectionCommand.js +0 -47
  6. package/dist-cjs/commands/DisconnectParticipantCommand.js +0 -28
  7. package/dist-cjs/commands/GetAttachmentCommand.js +0 -26
  8. package/dist-cjs/commands/GetTranscriptCommand.js +0 -28
  9. package/dist-cjs/commands/SendEventCommand.js +0 -28
  10. package/dist-cjs/commands/SendMessageCommand.js +0 -30
  11. package/dist-cjs/commands/StartAttachmentUploadCommand.js +0 -26
  12. package/dist-cjs/commands/index.js +11 -0
  13. package/dist-cjs/endpoints.js +1 -2
  14. package/dist-cjs/index.js +4 -13
  15. package/dist-cjs/models/index.js +0 -1
  16. package/dist-cjs/models/models_0.js +0 -85
  17. package/dist-cjs/pagination/GetTranscriptPaginator.js +0 -11
  18. package/dist-cjs/pagination/Interfaces.js +0 -1
  19. package/dist-cjs/pagination/index.js +5 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  21. package/dist-cjs/runtimeConfig.browser.js +1 -6
  22. package/dist-cjs/runtimeConfig.js +2 -7
  23. package/dist-cjs/runtimeConfig.native.js +0 -4
  24. package/dist-cjs/runtimeConfig.shared.js +0 -4
  25. package/dist-es/ConnectParticipant.js +0 -1
  26. package/dist-es/ConnectParticipantClient.js +0 -1
  27. package/dist-es/commands/CompleteAttachmentUploadCommand.js +0 -1
  28. package/dist-es/commands/CreateParticipantConnectionCommand.js +0 -1
  29. package/dist-es/commands/DisconnectParticipantCommand.js +0 -1
  30. package/dist-es/commands/GetAttachmentCommand.js +0 -1
  31. package/dist-es/commands/GetTranscriptCommand.js +0 -1
  32. package/dist-es/commands/SendEventCommand.js +0 -1
  33. package/dist-es/commands/SendMessageCommand.js +0 -1
  34. package/dist-es/commands/StartAttachmentUploadCommand.js +0 -1
  35. package/dist-es/commands/index.js +8 -0
  36. package/dist-es/endpoints.js +1 -2
  37. package/dist-es/index.js +4 -13
  38. package/dist-es/models/index.js +0 -1
  39. package/dist-es/models/models_0.js +0 -1
  40. package/dist-es/pagination/GetTranscriptPaginator.js +0 -1
  41. package/dist-es/pagination/Interfaces.js +0 -1
  42. package/dist-es/pagination/index.js +2 -0
  43. package/dist-es/protocols/Aws_restJson1.js +0 -1
  44. package/dist-es/runtimeConfig.browser.js +1 -2
  45. package/dist-es/runtimeConfig.js +2 -3
  46. package/dist-es/runtimeConfig.native.js +0 -1
  47. package/dist-es/runtimeConfig.shared.js +0 -1
  48. package/dist-types/commands/index.d.ts +8 -0
  49. package/dist-types/index.d.ts +4 -12
  50. package/dist-types/pagination/index.d.ts +2 -0
  51. package/dist-types/ts3.4/ConnectParticipant.d.ts +9 -71
  52. package/dist-types/ts3.4/ConnectParticipantClient.d.ts +24 -94
  53. package/dist-types/ts3.4/commands/CompleteAttachmentUploadCommand.d.ts +2 -21
  54. package/dist-types/ts3.4/commands/CreateParticipantConnectionCommand.d.ts +2 -42
  55. package/dist-types/ts3.4/commands/DisconnectParticipantCommand.d.ts +2 -23
  56. package/dist-types/ts3.4/commands/GetAttachmentCommand.d.ts +2 -21
  57. package/dist-types/ts3.4/commands/GetTranscriptCommand.d.ts +2 -23
  58. package/dist-types/ts3.4/commands/SendEventCommand.d.ts +2 -23
  59. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +2 -25
  60. package/dist-types/ts3.4/commands/StartAttachmentUploadCommand.d.ts +2 -21
  61. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  62. package/dist-types/ts3.4/index.d.ts +4 -12
  63. package/dist-types/ts3.4/models/models_0.d.ts +105 -349
  64. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  68. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  69. package/package.json +33 -30
  70. package/dist-cjs/ConnectParticipant.js.map +0 -1
  71. package/dist-cjs/ConnectParticipantClient.js.map +0 -1
  72. package/dist-cjs/commands/CompleteAttachmentUploadCommand.js.map +0 -1
  73. package/dist-cjs/commands/CreateParticipantConnectionCommand.js.map +0 -1
  74. package/dist-cjs/commands/DisconnectParticipantCommand.js.map +0 -1
  75. package/dist-cjs/commands/GetAttachmentCommand.js.map +0 -1
  76. package/dist-cjs/commands/GetTranscriptCommand.js.map +0 -1
  77. package/dist-cjs/commands/SendEventCommand.js.map +0 -1
  78. package/dist-cjs/commands/SendMessageCommand.js.map +0 -1
  79. package/dist-cjs/commands/StartAttachmentUploadCommand.js.map +0 -1
  80. package/dist-cjs/endpoints.js.map +0 -1
  81. package/dist-cjs/index.js.map +0 -1
  82. package/dist-cjs/models/index.js.map +0 -1
  83. package/dist-cjs/models/models_0.js.map +0 -1
  84. package/dist-cjs/pagination/GetTranscriptPaginator.js.map +0 -1
  85. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  86. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  87. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  88. package/dist-cjs/runtimeConfig.js.map +0 -1
  89. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  90. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  91. package/dist-es/ConnectParticipant.js.map +0 -1
  92. package/dist-es/ConnectParticipantClient.js.map +0 -1
  93. package/dist-es/commands/CompleteAttachmentUploadCommand.js.map +0 -1
  94. package/dist-es/commands/CreateParticipantConnectionCommand.js.map +0 -1
  95. package/dist-es/commands/DisconnectParticipantCommand.js.map +0 -1
  96. package/dist-es/commands/GetAttachmentCommand.js.map +0 -1
  97. package/dist-es/commands/GetTranscriptCommand.js.map +0 -1
  98. package/dist-es/commands/SendEventCommand.js.map +0 -1
  99. package/dist-es/commands/SendMessageCommand.js.map +0 -1
  100. package/dist-es/commands/StartAttachmentUploadCommand.js.map +0 -1
  101. package/dist-es/endpoints.js.map +0 -1
  102. package/dist-es/index.js.map +0 -1
  103. package/dist-es/models/index.js.map +0 -1
  104. package/dist-es/models/models_0.js.map +0 -1
  105. package/dist-es/pagination/GetTranscriptPaginator.js.map +0 -1
  106. package/dist-es/pagination/Interfaces.js.map +0 -1
  107. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  108. package/dist-es/runtimeConfig.browser.js.map +0 -1
  109. package/dist-es/runtimeConfig.js.map +0 -1
  110. package/dist-es/runtimeConfig.native.js.map +0 -1
  111. package/dist-es/runtimeConfig.shared.js.map +0 -1
  112. package/jest.config.js +0 -4
  113. package/src/ConnectParticipant.ts +0 -328
  114. package/src/ConnectParticipantClient.ts +0 -284
  115. package/src/commands/CompleteAttachmentUploadCommand.ts +0 -100
  116. package/src/commands/CreateParticipantConnectionCommand.ts +0 -126
  117. package/src/commands/DisconnectParticipantCommand.ts +0 -102
  118. package/src/commands/GetAttachmentCommand.ts +0 -100
  119. package/src/commands/GetTranscriptCommand.ts +0 -102
  120. package/src/commands/SendEventCommand.ts +0 -102
  121. package/src/commands/SendMessageCommand.ts +0 -104
  122. package/src/commands/StartAttachmentUploadCommand.ts +0 -100
  123. package/src/endpoints.ts +0 -57
  124. package/src/index.ts +0 -13
  125. package/src/models/index.ts +0 -1
  126. package/src/models/models_0.ts +0 -768
  127. package/src/pagination/GetTranscriptPaginator.ts +0 -59
  128. package/src/pagination/Interfaces.ts +0 -8
  129. package/src/protocols/Aws_restJson1.ts +0 -1241
  130. package/src/runtimeConfig.browser.ts +0 -41
  131. package/src/runtimeConfig.native.ts +0 -17
  132. package/src/runtimeConfig.shared.ts +0 -17
  133. package/src/runtimeConfig.ts +0 -46
  134. package/tsconfig.es.json +0 -10
  135. package/tsconfig.json +0 -33
  136. package/tsconfig.types.json +0 -9
@@ -1,104 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ConnectParticipantClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ConnectParticipantClient";
19
- import { SendMessageRequest, SendMessageResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1SendMessageCommand,
22
- serializeAws_restJson1SendMessageCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface SendMessageCommandInput extends SendMessageRequest {}
26
- export interface SendMessageCommandOutput extends SendMessageResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Sends a message. Note that ConnectionToken is used for invoking this API instead of
30
- * ParticipantToken.</p>
31
- * <note>
32
- * <p>The Amazon Connect Participant Service APIs do not use <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4
33
- * authentication</a>.</p>
34
- * </note>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { ConnectParticipantClient, SendMessageCommand } from "@aws-sdk/client-connectparticipant"; // ES Modules import
39
- * // const { ConnectParticipantClient, SendMessageCommand } = require("@aws-sdk/client-connectparticipant"); // CommonJS import
40
- * const client = new ConnectParticipantClient(config);
41
- * const command = new SendMessageCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link SendMessageCommandInput} for command's `input` shape.
46
- * @see {@link SendMessageCommandOutput} for command's `response` shape.
47
- * @see {@link ConnectParticipantClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
- export class SendMessageCommand extends $Command<
51
- SendMessageCommandInput,
52
- SendMessageCommandOutput,
53
- ConnectParticipantClientResolvedConfig
54
- > {
55
- // Start section: command_properties
56
- // End section: command_properties
57
-
58
- constructor(readonly input: SendMessageCommandInput) {
59
- // Start section: command_constructor
60
- super();
61
- // End section: command_constructor
62
- }
63
-
64
- /**
65
- * @internal
66
- */
67
- resolveMiddleware(
68
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
69
- configuration: ConnectParticipantClientResolvedConfig,
70
- options?: __HttpHandlerOptions
71
- ): Handler<SendMessageCommandInput, SendMessageCommandOutput> {
72
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
73
-
74
- const stack = clientStack.concat(this.middlewareStack);
75
-
76
- const { logger } = configuration;
77
- const clientName = "ConnectParticipantClient";
78
- const commandName = "SendMessageCommand";
79
- const handlerExecutionContext: HandlerExecutionContext = {
80
- logger,
81
- clientName,
82
- commandName,
83
- inputFilterSensitiveLog: SendMessageRequest.filterSensitiveLog,
84
- outputFilterSensitiveLog: SendMessageResponse.filterSensitiveLog,
85
- };
86
- const { requestHandler } = configuration;
87
- return stack.resolve(
88
- (request: FinalizeHandlerArguments<any>) =>
89
- requestHandler.handle(request.request as __HttpRequest, options || {}),
90
- handlerExecutionContext
91
- );
92
- }
93
-
94
- private serialize(input: SendMessageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
95
- return serializeAws_restJson1SendMessageCommand(input, context);
96
- }
97
-
98
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SendMessageCommandOutput> {
99
- return deserializeAws_restJson1SendMessageCommand(output, context);
100
- }
101
-
102
- // Start section: command_body_extra
103
- // End section: command_body_extra
104
- }
@@ -1,100 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ConnectParticipantClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ConnectParticipantClient";
19
- import { StartAttachmentUploadRequest, StartAttachmentUploadResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1StartAttachmentUploadCommand,
22
- serializeAws_restJson1StartAttachmentUploadCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface StartAttachmentUploadCommandInput extends StartAttachmentUploadRequest {}
26
- export interface StartAttachmentUploadCommandOutput extends StartAttachmentUploadResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Provides a pre-signed Amazon S3 URL in response for uploading the file directly to
30
- * S3.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { ConnectParticipantClient, StartAttachmentUploadCommand } from "@aws-sdk/client-connectparticipant"; // ES Modules import
35
- * // const { ConnectParticipantClient, StartAttachmentUploadCommand } = require("@aws-sdk/client-connectparticipant"); // CommonJS import
36
- * const client = new ConnectParticipantClient(config);
37
- * const command = new StartAttachmentUploadCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link StartAttachmentUploadCommandInput} for command's `input` shape.
42
- * @see {@link StartAttachmentUploadCommandOutput} for command's `response` shape.
43
- * @see {@link ConnectParticipantClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class StartAttachmentUploadCommand extends $Command<
47
- StartAttachmentUploadCommandInput,
48
- StartAttachmentUploadCommandOutput,
49
- ConnectParticipantClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: StartAttachmentUploadCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: ConnectParticipantClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<StartAttachmentUploadCommandInput, StartAttachmentUploadCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "ConnectParticipantClient";
74
- const commandName = "StartAttachmentUploadCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: StartAttachmentUploadRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: StartAttachmentUploadResponse.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: StartAttachmentUploadCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_restJson1StartAttachmentUploadCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartAttachmentUploadCommandOutput> {
95
- return deserializeAws_restJson1StartAttachmentUploadCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "participant.connect.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "participant.connect.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "participant.connect.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "participant.connect.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "participant.connect.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "execute-api",
55
- regionHash,
56
- partitionHash,
57
- });
package/src/index.ts DELETED
@@ -1,13 +0,0 @@
1
- export * from "./ConnectParticipantClient";
2
- export * from "./ConnectParticipant";
3
- export * from "./commands/CompleteAttachmentUploadCommand";
4
- export * from "./commands/CreateParticipantConnectionCommand";
5
- export * from "./commands/DisconnectParticipantCommand";
6
- export * from "./commands/GetAttachmentCommand";
7
- export * from "./commands/GetTranscriptCommand";
8
- export * from "./pagination/GetTranscriptPaginator";
9
- export * from "./commands/SendEventCommand";
10
- export * from "./commands/SendMessageCommand";
11
- export * from "./commands/StartAttachmentUploadCommand";
12
- export * from "./pagination/Interfaces";
13
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";