@aws-sdk/client-connectparticipant 3.315.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/ConnectParticipant.js +12 -112
- package/dist-cjs/protocols/Aws_restJson1.js +5 -5
- package/dist-es/ConnectParticipant.js +12 -112
- package/dist-es/protocols/Aws_restJson1.js +5 -5
- package/dist-types/ConnectParticipant.d.ts +23 -117
- package/dist-types/ts3.4/ConnectParticipant.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConnectParticipant = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CompleteAttachmentUploadCommand_1 = require("./commands/CompleteAttachmentUploadCommand");
|
|
5
6
|
const CreateParticipantConnectionCommand_1 = require("./commands/CreateParticipantConnectionCommand");
|
|
6
7
|
const DisconnectParticipantCommand_1 = require("./commands/DisconnectParticipantCommand");
|
|
@@ -10,118 +11,17 @@ const SendEventCommand_1 = require("./commands/SendEventCommand");
|
|
|
10
11
|
const SendMessageCommand_1 = require("./commands/SendMessageCommand");
|
|
11
12
|
const StartAttachmentUploadCommand_1 = require("./commands/StartAttachmentUploadCommand");
|
|
12
13
|
const ConnectParticipantClient_1 = require("./ConnectParticipantClient");
|
|
14
|
+
const commands = {
|
|
15
|
+
CompleteAttachmentUploadCommand: CompleteAttachmentUploadCommand_1.CompleteAttachmentUploadCommand,
|
|
16
|
+
CreateParticipantConnectionCommand: CreateParticipantConnectionCommand_1.CreateParticipantConnectionCommand,
|
|
17
|
+
DisconnectParticipantCommand: DisconnectParticipantCommand_1.DisconnectParticipantCommand,
|
|
18
|
+
GetAttachmentCommand: GetAttachmentCommand_1.GetAttachmentCommand,
|
|
19
|
+
GetTranscriptCommand: GetTranscriptCommand_1.GetTranscriptCommand,
|
|
20
|
+
SendEventCommand: SendEventCommand_1.SendEventCommand,
|
|
21
|
+
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
22
|
+
StartAttachmentUploadCommand: StartAttachmentUploadCommand_1.StartAttachmentUploadCommand,
|
|
23
|
+
};
|
|
13
24
|
class ConnectParticipant extends ConnectParticipantClient_1.ConnectParticipantClient {
|
|
14
|
-
completeAttachmentUpload(args, optionsOrCb, cb) {
|
|
15
|
-
const command = new CompleteAttachmentUploadCommand_1.CompleteAttachmentUploadCommand(args);
|
|
16
|
-
if (typeof optionsOrCb === "function") {
|
|
17
|
-
this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof cb === "function") {
|
|
20
|
-
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
createParticipantConnection(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new CreateParticipantConnectionCommand_1.CreateParticipantConnectionCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
disconnectParticipant(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new DisconnectParticipantCommand_1.DisconnectParticipantCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
getAttachment(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new GetAttachmentCommand_1.GetAttachmentCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
getTranscript(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new GetTranscriptCommand_1.GetTranscriptCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
sendEvent(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new SendEventCommand_1.SendEventCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
sendMessage(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new SendMessageCommand_1.SendMessageCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
startAttachmentUpload(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new StartAttachmentUploadCommand_1.StartAttachmentUploadCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
25
|
}
|
|
127
26
|
exports.ConnectParticipant = ConnectParticipant;
|
|
27
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ConnectParticipant);
|
|
@@ -16,7 +16,7 @@ const se_CompleteAttachmentUploadCommand = async (input, context) => {
|
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
AttachmentIds: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
19
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
20
20
|
}));
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -61,7 +61,7 @@ const se_DisconnectParticipantCommand = async (input, context) => {
|
|
|
61
61
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/disconnect";
|
|
62
62
|
let body;
|
|
63
63
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
64
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
65
65
|
}));
|
|
66
66
|
return new protocol_http_1.HttpRequest({
|
|
67
67
|
protocol,
|
|
@@ -132,7 +132,7 @@ const se_SendEventCommand = async (input, context) => {
|
|
|
132
132
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/event";
|
|
133
133
|
let body;
|
|
134
134
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
135
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
135
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
136
136
|
Content: [],
|
|
137
137
|
ContentType: [],
|
|
138
138
|
}));
|
|
@@ -156,7 +156,7 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
156
156
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/message";
|
|
157
157
|
let body;
|
|
158
158
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
159
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
159
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
160
160
|
Content: [],
|
|
161
161
|
ContentType: [],
|
|
162
162
|
}));
|
|
@@ -182,7 +182,7 @@ const se_StartAttachmentUploadCommand = async (input, context) => {
|
|
|
182
182
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
183
183
|
AttachmentName: [],
|
|
184
184
|
AttachmentSizeInBytes: [],
|
|
185
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
185
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
186
186
|
ContentType: [],
|
|
187
187
|
}));
|
|
188
188
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CompleteAttachmentUploadCommand, } from "./commands/CompleteAttachmentUploadCommand";
|
|
2
3
|
import { CreateParticipantConnectionCommand, } from "./commands/CreateParticipantConnectionCommand";
|
|
3
4
|
import { DisconnectParticipantCommand, } from "./commands/DisconnectParticipantCommand";
|
|
@@ -7,117 +8,16 @@ import { SendEventCommand } from "./commands/SendEventCommand";
|
|
|
7
8
|
import { SendMessageCommand } from "./commands/SendMessageCommand";
|
|
8
9
|
import { StartAttachmentUploadCommand, } from "./commands/StartAttachmentUploadCommand";
|
|
9
10
|
import { ConnectParticipantClient } from "./ConnectParticipantClient";
|
|
11
|
+
const commands = {
|
|
12
|
+
CompleteAttachmentUploadCommand,
|
|
13
|
+
CreateParticipantConnectionCommand,
|
|
14
|
+
DisconnectParticipantCommand,
|
|
15
|
+
GetAttachmentCommand,
|
|
16
|
+
GetTranscriptCommand,
|
|
17
|
+
SendEventCommand,
|
|
18
|
+
SendMessageCommand,
|
|
19
|
+
StartAttachmentUploadCommand,
|
|
20
|
+
};
|
|
10
21
|
export class ConnectParticipant extends ConnectParticipantClient {
|
|
11
|
-
completeAttachmentUpload(args, optionsOrCb, cb) {
|
|
12
|
-
const command = new CompleteAttachmentUploadCommand(args);
|
|
13
|
-
if (typeof optionsOrCb === "function") {
|
|
14
|
-
this.send(command, optionsOrCb);
|
|
15
|
-
}
|
|
16
|
-
else if (typeof cb === "function") {
|
|
17
|
-
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
createParticipantConnection(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new CreateParticipantConnectionCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
disconnectParticipant(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new DisconnectParticipantCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
getAttachment(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new GetAttachmentCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
getTranscript(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new GetTranscriptCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
sendEvent(args, optionsOrCb, cb) {
|
|
82
|
-
const command = new SendEventCommand(args);
|
|
83
|
-
if (typeof optionsOrCb === "function") {
|
|
84
|
-
this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
else if (typeof cb === "function") {
|
|
87
|
-
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
sendMessage(args, optionsOrCb, cb) {
|
|
96
|
-
const command = new SendMessageCommand(args);
|
|
97
|
-
if (typeof optionsOrCb === "function") {
|
|
98
|
-
this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
else if (typeof cb === "function") {
|
|
101
|
-
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
return this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
startAttachmentUpload(args, optionsOrCb, cb) {
|
|
110
|
-
const command = new StartAttachmentUploadCommand(args);
|
|
111
|
-
if (typeof optionsOrCb === "function") {
|
|
112
|
-
this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
else if (typeof cb === "function") {
|
|
115
|
-
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
return this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
22
|
}
|
|
23
|
+
createAggregatedClient(commands, ConnectParticipant);
|
|
@@ -13,7 +13,7 @@ export const se_CompleteAttachmentUploadCommand = async (input, context) => {
|
|
|
13
13
|
let body;
|
|
14
14
|
body = JSON.stringify(take(input, {
|
|
15
15
|
AttachmentIds: (_) => _json(_),
|
|
16
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
16
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
17
|
}));
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
@@ -56,7 +56,7 @@ export const se_DisconnectParticipantCommand = async (input, context) => {
|
|
|
56
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/disconnect";
|
|
57
57
|
let body;
|
|
58
58
|
body = JSON.stringify(take(input, {
|
|
59
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
59
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
60
60
|
}));
|
|
61
61
|
return new __HttpRequest({
|
|
62
62
|
protocol,
|
|
@@ -124,7 +124,7 @@ export const se_SendEventCommand = async (input, context) => {
|
|
|
124
124
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/event";
|
|
125
125
|
let body;
|
|
126
126
|
body = JSON.stringify(take(input, {
|
|
127
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
127
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
128
128
|
Content: [],
|
|
129
129
|
ContentType: [],
|
|
130
130
|
}));
|
|
@@ -147,7 +147,7 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
147
147
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/message";
|
|
148
148
|
let body;
|
|
149
149
|
body = JSON.stringify(take(input, {
|
|
150
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
150
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
151
151
|
Content: [],
|
|
152
152
|
ContentType: [],
|
|
153
153
|
}));
|
|
@@ -172,7 +172,7 @@ export const se_StartAttachmentUploadCommand = async (input, context) => {
|
|
|
172
172
|
body = JSON.stringify(take(input, {
|
|
173
173
|
AttachmentName: [],
|
|
174
174
|
AttachmentSizeInBytes: [],
|
|
175
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
175
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
176
176
|
ContentType: [],
|
|
177
177
|
}));
|
|
178
178
|
return new __HttpRequest({
|
|
@@ -8,161 +8,67 @@ import { SendEventCommandInput, SendEventCommandOutput } from "./commands/SendEv
|
|
|
8
8
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
9
9
|
import { StartAttachmentUploadCommandInput, StartAttachmentUploadCommandOutput } from "./commands/StartAttachmentUploadCommand";
|
|
10
10
|
import { ConnectParticipantClient } from "./ConnectParticipantClient";
|
|
11
|
-
|
|
12
|
-
* @public
|
|
13
|
-
* <p>Amazon Connect is an easy-to-use omnichannel cloud contact center service that
|
|
14
|
-
* enables companies of any size to deliver superior customer service at a lower cost.
|
|
15
|
-
* Amazon Connect communications capabilities make it easy for companies to deliver
|
|
16
|
-
* personalized interactions across communication channels, including chat. </p>
|
|
17
|
-
* <p>Use the Amazon Connect Participant Service to manage participants (for example,
|
|
18
|
-
* agents, customers, and managers listening in), and to send messages and events within a
|
|
19
|
-
* chat contact. The APIs in the service enable the following: sending chat messages,
|
|
20
|
-
* attachment sharing, managing a participant's connection state and message events, and
|
|
21
|
-
* retrieving chat transcripts.</p>
|
|
22
|
-
*/
|
|
23
|
-
export declare class ConnectParticipant extends ConnectParticipantClient {
|
|
11
|
+
export interface ConnectParticipant {
|
|
24
12
|
/**
|
|
25
|
-
* @
|
|
26
|
-
* <p>Allows you to confirm that the attachment has been uploaded using the pre-signed URL
|
|
27
|
-
* provided in StartAttachmentUpload API. </p>
|
|
28
|
-
* <note>
|
|
29
|
-
* <p>
|
|
30
|
-
* <code>ConnectionToken</code> is used for invoking this API instead of
|
|
31
|
-
* <code>ParticipantToken</code>.</p>
|
|
32
|
-
* </note>
|
|
33
|
-
* <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
|
|
34
|
-
* authentication</a>.</p>
|
|
13
|
+
* @see {@link CompleteAttachmentUploadCommand}
|
|
35
14
|
*/
|
|
36
15
|
completeAttachmentUpload(args: CompleteAttachmentUploadCommandInput, options?: __HttpHandlerOptions): Promise<CompleteAttachmentUploadCommandOutput>;
|
|
37
16
|
completeAttachmentUpload(args: CompleteAttachmentUploadCommandInput, cb: (err: any, data?: CompleteAttachmentUploadCommandOutput) => void): void;
|
|
38
17
|
completeAttachmentUpload(args: CompleteAttachmentUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteAttachmentUploadCommandOutput) => void): void;
|
|
39
18
|
/**
|
|
40
|
-
* @
|
|
41
|
-
* <p>Creates the participant's connection. </p>
|
|
42
|
-
* <note>
|
|
43
|
-
* <p>
|
|
44
|
-
* <code>ParticipantToken</code> is used for invoking this API instead of
|
|
45
|
-
* <code>ConnectionToken</code>.</p>
|
|
46
|
-
* </note>
|
|
47
|
-
* <p>The participant token is valid for the lifetime of the participant – until they are
|
|
48
|
-
* part of a contact.</p>
|
|
49
|
-
* <p>The response URL for <code>WEBSOCKET</code> Type has a connect expiry timeout of 100s.
|
|
50
|
-
* Clients must manually connect to the returned websocket URL and subscribe to the desired
|
|
51
|
-
* topic. </p>
|
|
52
|
-
* <p>For chat, you need to publish the following on the established websocket
|
|
53
|
-
* connection:</p>
|
|
54
|
-
* <p>
|
|
55
|
-
* <code>\{"topic":"aws/subscribe","content":\{"topics":["aws/chat"]\}\}</code>
|
|
56
|
-
* </p>
|
|
57
|
-
* <p>Upon websocket URL expiry, as specified in the response ConnectionExpiry parameter,
|
|
58
|
-
* clients need to call this API again to obtain a new websocket URL and perform the same
|
|
59
|
-
* steps as before.</p>
|
|
60
|
-
* <p>
|
|
61
|
-
* <b>Message streaming support</b>: This API can also be used
|
|
62
|
-
* together with the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_StartContactStreaming.html">StartContactStreaming</a> API to create a participant connection for chat
|
|
63
|
-
* contacts that are not using a websocket. For more information about message streaming,
|
|
64
|
-
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-message-streaming.html">Enable real-time chat
|
|
65
|
-
* message streaming</a> in the <i>Amazon Connect Administrator
|
|
66
|
-
* Guide</i>.</p>
|
|
67
|
-
* <p>
|
|
68
|
-
* <b>Feature specifications</b>: For information about feature
|
|
69
|
-
* specifications, such as the allowed number of open websocket connections per
|
|
70
|
-
* participant, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits">Feature specifications</a> in the <i>Amazon Connect Administrator
|
|
71
|
-
* Guide</i>. </p>
|
|
72
|
-
* <note>
|
|
73
|
-
* <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
|
|
74
|
-
* authentication</a>.</p>
|
|
75
|
-
* </note>
|
|
19
|
+
* @see {@link CreateParticipantConnectionCommand}
|
|
76
20
|
*/
|
|
77
21
|
createParticipantConnection(args: CreateParticipantConnectionCommandInput, options?: __HttpHandlerOptions): Promise<CreateParticipantConnectionCommandOutput>;
|
|
78
22
|
createParticipantConnection(args: CreateParticipantConnectionCommandInput, cb: (err: any, data?: CreateParticipantConnectionCommandOutput) => void): void;
|
|
79
23
|
createParticipantConnection(args: CreateParticipantConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateParticipantConnectionCommandOutput) => void): void;
|
|
80
24
|
/**
|
|
81
|
-
* @
|
|
82
|
-
* <p>Disconnects a participant. </p>
|
|
83
|
-
* <note>
|
|
84
|
-
* <p>
|
|
85
|
-
* <code>ConnectionToken</code> is used for invoking this API instead of
|
|
86
|
-
* <code>ParticipantToken</code>.</p>
|
|
87
|
-
* </note>
|
|
88
|
-
* <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
|
|
89
|
-
* authentication</a>.</p>
|
|
25
|
+
* @see {@link DisconnectParticipantCommand}
|
|
90
26
|
*/
|
|
91
27
|
disconnectParticipant(args: DisconnectParticipantCommandInput, options?: __HttpHandlerOptions): Promise<DisconnectParticipantCommandOutput>;
|
|
92
28
|
disconnectParticipant(args: DisconnectParticipantCommandInput, cb: (err: any, data?: DisconnectParticipantCommandOutput) => void): void;
|
|
93
29
|
disconnectParticipant(args: DisconnectParticipantCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisconnectParticipantCommandOutput) => void): void;
|
|
94
30
|
/**
|
|
95
|
-
* @
|
|
96
|
-
* <p>Provides a pre-signed URL for download of a completed attachment. This is an
|
|
97
|
-
* asynchronous API for use with active contacts.</p>
|
|
98
|
-
* <note>
|
|
99
|
-
* <p>
|
|
100
|
-
* <code>ConnectionToken</code> is used for invoking this API instead of
|
|
101
|
-
* <code>ParticipantToken</code>.</p>
|
|
102
|
-
* </note>
|
|
103
|
-
* <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
|
|
104
|
-
* authentication</a>.</p>
|
|
31
|
+
* @see {@link GetAttachmentCommand}
|
|
105
32
|
*/
|
|
106
33
|
getAttachment(args: GetAttachmentCommandInput, options?: __HttpHandlerOptions): Promise<GetAttachmentCommandOutput>;
|
|
107
34
|
getAttachment(args: GetAttachmentCommandInput, cb: (err: any, data?: GetAttachmentCommandOutput) => void): void;
|
|
108
35
|
getAttachment(args: GetAttachmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAttachmentCommandOutput) => void): void;
|
|
109
36
|
/**
|
|
110
|
-
* @
|
|
111
|
-
* <p>Retrieves a transcript of the session, including details about any attachments. For
|
|
112
|
-
* information about accessing past chat contact transcripts for a persistent chat, see
|
|
113
|
-
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html">Enable persistent chat</a>. </p>
|
|
114
|
-
* <note>
|
|
115
|
-
* <p>
|
|
116
|
-
* <code>ConnectionToken</code> is used for invoking this API instead of
|
|
117
|
-
* <code>ParticipantToken</code>.</p>
|
|
118
|
-
* </note>
|
|
119
|
-
* <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
|
|
120
|
-
* authentication</a>.</p>
|
|
37
|
+
* @see {@link GetTranscriptCommand}
|
|
121
38
|
*/
|
|
122
39
|
getTranscript(args: GetTranscriptCommandInput, options?: __HttpHandlerOptions): Promise<GetTranscriptCommandOutput>;
|
|
123
40
|
getTranscript(args: GetTranscriptCommandInput, cb: (err: any, data?: GetTranscriptCommandOutput) => void): void;
|
|
124
41
|
getTranscript(args: GetTranscriptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTranscriptCommandOutput) => void): void;
|
|
125
42
|
/**
|
|
126
|
-
* @
|
|
127
|
-
* <p>Sends an event. </p>
|
|
128
|
-
* <note>
|
|
129
|
-
* <p>
|
|
130
|
-
* <code>ConnectionToken</code> is used for invoking this API instead of
|
|
131
|
-
* <code>ParticipantToken</code>.</p>
|
|
132
|
-
* </note>
|
|
133
|
-
* <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
|
|
134
|
-
* authentication</a>.</p>
|
|
43
|
+
* @see {@link SendEventCommand}
|
|
135
44
|
*/
|
|
136
45
|
sendEvent(args: SendEventCommandInput, options?: __HttpHandlerOptions): Promise<SendEventCommandOutput>;
|
|
137
46
|
sendEvent(args: SendEventCommandInput, cb: (err: any, data?: SendEventCommandOutput) => void): void;
|
|
138
47
|
sendEvent(args: SendEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendEventCommandOutput) => void): void;
|
|
139
48
|
/**
|
|
140
|
-
* @
|
|
141
|
-
* <p>Sends a message.</p>
|
|
142
|
-
* <note>
|
|
143
|
-
* <p>
|
|
144
|
-
* <code>ConnectionToken</code> is used for invoking this API instead of
|
|
145
|
-
* <code>ParticipantToken</code>.</p>
|
|
146
|
-
* </note>
|
|
147
|
-
* <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
|
|
148
|
-
* authentication</a>.</p>
|
|
49
|
+
* @see {@link SendMessageCommand}
|
|
149
50
|
*/
|
|
150
51
|
sendMessage(args: SendMessageCommandInput, options?: __HttpHandlerOptions): Promise<SendMessageCommandOutput>;
|
|
151
52
|
sendMessage(args: SendMessageCommandInput, cb: (err: any, data?: SendMessageCommandOutput) => void): void;
|
|
152
53
|
sendMessage(args: SendMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendMessageCommandOutput) => void): void;
|
|
153
54
|
/**
|
|
154
|
-
* @
|
|
155
|
-
* <p>Provides a pre-signed Amazon S3 URL in response for uploading the file directly to
|
|
156
|
-
* S3.</p>
|
|
157
|
-
* <note>
|
|
158
|
-
* <p>
|
|
159
|
-
* <code>ConnectionToken</code> is used for invoking this API instead of
|
|
160
|
-
* <code>ParticipantToken</code>.</p>
|
|
161
|
-
* </note>
|
|
162
|
-
* <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
|
|
163
|
-
* authentication</a>.</p>
|
|
55
|
+
* @see {@link StartAttachmentUploadCommand}
|
|
164
56
|
*/
|
|
165
57
|
startAttachmentUpload(args: StartAttachmentUploadCommandInput, options?: __HttpHandlerOptions): Promise<StartAttachmentUploadCommandOutput>;
|
|
166
58
|
startAttachmentUpload(args: StartAttachmentUploadCommandInput, cb: (err: any, data?: StartAttachmentUploadCommandOutput) => void): void;
|
|
167
59
|
startAttachmentUpload(args: StartAttachmentUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAttachmentUploadCommandOutput) => void): void;
|
|
168
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
* <p>Amazon Connect is an easy-to-use omnichannel cloud contact center service that
|
|
64
|
+
* enables companies of any size to deliver superior customer service at a lower cost.
|
|
65
|
+
* Amazon Connect communications capabilities make it easy for companies to deliver
|
|
66
|
+
* personalized interactions across communication channels, including chat. </p>
|
|
67
|
+
* <p>Use the Amazon Connect Participant Service to manage participants (for example,
|
|
68
|
+
* agents, customers, and managers listening in), and to send messages and events within a
|
|
69
|
+
* chat contact. The APIs in the service enable the following: sending chat messages,
|
|
70
|
+
* attachment sharing, managing a participant's connection state and message events, and
|
|
71
|
+
* retrieving chat transcripts.</p>
|
|
72
|
+
*/
|
|
73
|
+
export declare class ConnectParticipant extends ConnectParticipantClient implements ConnectParticipant {
|
|
74
|
+
}
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
StartAttachmentUploadCommandOutput,
|
|
33
33
|
} from "./commands/StartAttachmentUploadCommand";
|
|
34
34
|
import { ConnectParticipantClient } from "./ConnectParticipantClient";
|
|
35
|
-
export
|
|
35
|
+
export interface ConnectParticipant {
|
|
36
36
|
completeAttachmentUpload(
|
|
37
37
|
args: CompleteAttachmentUploadCommandInput,
|
|
38
38
|
options?: __HttpHandlerOptions
|
|
@@ -138,3 +138,6 @@ export declare class ConnectParticipant extends ConnectParticipantClient {
|
|
|
138
138
|
cb: (err: any, data?: StartAttachmentUploadCommandOutput) => void
|
|
139
139
|
): void;
|
|
140
140
|
}
|
|
141
|
+
export declare class ConnectParticipant
|
|
142
|
+
extends ConnectParticipantClient
|
|
143
|
+
implements ConnectParticipant {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-connectparticipant",
|
|
3
3
|
"description": "AWS SDK for JavaScript Connectparticipant Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|