@aws-sdk/client-connectparticipant 3.474.0 → 3.477.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.
|
@@ -1,127 +1,92 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_StartAttachmentUploadCommand = exports.de_SendMessageCommand = exports.de_SendEventCommand = exports.de_GetTranscriptCommand = exports.de_GetAttachmentCommand = exports.de_DisconnectParticipantCommand = exports.de_DescribeViewCommand = exports.de_CreateParticipantConnectionCommand = exports.de_CompleteAttachmentUploadCommand = exports.se_StartAttachmentUploadCommand = exports.se_SendMessageCommand = exports.se_SendEventCommand = exports.se_GetTranscriptCommand = exports.se_GetAttachmentCommand = exports.se_DisconnectParticipantCommand = exports.se_DescribeViewCommand = exports.se_CreateParticipantConnectionCommand = exports.se_CompleteAttachmentUploadCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const ConnectParticipantServiceException_1 = require("../models/ConnectParticipantServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CompleteAttachmentUploadCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
12
12
|
"content-type": "application/json",
|
|
13
|
-
|
|
13
|
+
[_xab]: input[_CT],
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
b.bp("/participant/complete-attachment-upload");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
AttachmentIds: (_) => (0, smithy_client_1._json)(_),
|
|
19
19
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
20
20
|
}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hostname,
|
|
24
|
-
port,
|
|
25
|
-
method: "POST",
|
|
26
|
-
headers,
|
|
27
|
-
path: resolvedPath,
|
|
28
|
-
body,
|
|
29
|
-
});
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
30
23
|
};
|
|
31
24
|
exports.se_CompleteAttachmentUploadCommand = se_CompleteAttachmentUploadCommand;
|
|
32
25
|
const se_CreateParticipantConnectionCommand = async (input, context) => {
|
|
33
|
-
const
|
|
26
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
34
27
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
35
28
|
"content-type": "application/json",
|
|
36
|
-
|
|
29
|
+
[_xab]: input[_PT],
|
|
37
30
|
});
|
|
38
|
-
|
|
31
|
+
b.bp("/participant/connection");
|
|
39
32
|
let body;
|
|
40
33
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
34
|
ConnectParticipant: [],
|
|
42
35
|
Type: (_) => (0, smithy_client_1._json)(_),
|
|
43
36
|
}));
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
hostname,
|
|
47
|
-
port,
|
|
48
|
-
method: "POST",
|
|
49
|
-
headers,
|
|
50
|
-
path: resolvedPath,
|
|
51
|
-
body,
|
|
52
|
-
});
|
|
37
|
+
b.m("POST").h(headers).b(body);
|
|
38
|
+
return b.build();
|
|
53
39
|
};
|
|
54
40
|
exports.se_CreateParticipantConnectionCommand = se_CreateParticipantConnectionCommand;
|
|
55
41
|
const se_DescribeViewCommand = async (input, context) => {
|
|
56
|
-
const
|
|
42
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
57
43
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
58
|
-
|
|
44
|
+
[_xab]: input[_CT],
|
|
59
45
|
});
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
b.bp("/participant/views/{ViewToken}");
|
|
47
|
+
b.p("ViewToken", () => input.ViewToken, "{ViewToken}", false);
|
|
62
48
|
let body;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
hostname,
|
|
66
|
-
port,
|
|
67
|
-
method: "GET",
|
|
68
|
-
headers,
|
|
69
|
-
path: resolvedPath,
|
|
70
|
-
body,
|
|
71
|
-
});
|
|
49
|
+
b.m("GET").h(headers).b(body);
|
|
50
|
+
return b.build();
|
|
72
51
|
};
|
|
73
52
|
exports.se_DescribeViewCommand = se_DescribeViewCommand;
|
|
74
53
|
const se_DisconnectParticipantCommand = async (input, context) => {
|
|
75
|
-
const
|
|
54
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
76
55
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
77
56
|
"content-type": "application/json",
|
|
78
|
-
|
|
57
|
+
[_xab]: input[_CT],
|
|
79
58
|
});
|
|
80
|
-
|
|
59
|
+
b.bp("/participant/disconnect");
|
|
81
60
|
let body;
|
|
82
61
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
83
62
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
84
63
|
}));
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
hostname,
|
|
88
|
-
port,
|
|
89
|
-
method: "POST",
|
|
90
|
-
headers,
|
|
91
|
-
path: resolvedPath,
|
|
92
|
-
body,
|
|
93
|
-
});
|
|
64
|
+
b.m("POST").h(headers).b(body);
|
|
65
|
+
return b.build();
|
|
94
66
|
};
|
|
95
67
|
exports.se_DisconnectParticipantCommand = se_DisconnectParticipantCommand;
|
|
96
68
|
const se_GetAttachmentCommand = async (input, context) => {
|
|
97
|
-
const
|
|
69
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
98
70
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
99
71
|
"content-type": "application/json",
|
|
100
|
-
|
|
72
|
+
[_xab]: input[_CT],
|
|
101
73
|
});
|
|
102
|
-
|
|
74
|
+
b.bp("/participant/attachment");
|
|
103
75
|
let body;
|
|
104
76
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
77
|
AttachmentId: [],
|
|
106
78
|
}));
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hostname,
|
|
110
|
-
port,
|
|
111
|
-
method: "POST",
|
|
112
|
-
headers,
|
|
113
|
-
path: resolvedPath,
|
|
114
|
-
body,
|
|
115
|
-
});
|
|
79
|
+
b.m("POST").h(headers).b(body);
|
|
80
|
+
return b.build();
|
|
116
81
|
};
|
|
117
82
|
exports.se_GetAttachmentCommand = se_GetAttachmentCommand;
|
|
118
83
|
const se_GetTranscriptCommand = async (input, context) => {
|
|
119
|
-
const
|
|
84
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
120
85
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
121
86
|
"content-type": "application/json",
|
|
122
|
-
|
|
87
|
+
[_xab]: input[_CT],
|
|
123
88
|
});
|
|
124
|
-
|
|
89
|
+
b.bp("/participant/transcript");
|
|
125
90
|
let body;
|
|
126
91
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
127
92
|
ContactId: [],
|
|
@@ -131,72 +96,51 @@ const se_GetTranscriptCommand = async (input, context) => {
|
|
|
131
96
|
SortOrder: [],
|
|
132
97
|
StartPosition: (_) => (0, smithy_client_1._json)(_),
|
|
133
98
|
}));
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "POST",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
99
|
+
b.m("POST").h(headers).b(body);
|
|
100
|
+
return b.build();
|
|
143
101
|
};
|
|
144
102
|
exports.se_GetTranscriptCommand = se_GetTranscriptCommand;
|
|
145
103
|
const se_SendEventCommand = async (input, context) => {
|
|
146
|
-
const
|
|
104
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
147
105
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
148
106
|
"content-type": "application/json",
|
|
149
|
-
|
|
107
|
+
[_xab]: input[_CT],
|
|
150
108
|
});
|
|
151
|
-
|
|
109
|
+
b.bp("/participant/event");
|
|
152
110
|
let body;
|
|
153
111
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
154
112
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
155
113
|
Content: [],
|
|
156
114
|
ContentType: [],
|
|
157
115
|
}));
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
hostname,
|
|
161
|
-
port,
|
|
162
|
-
method: "POST",
|
|
163
|
-
headers,
|
|
164
|
-
path: resolvedPath,
|
|
165
|
-
body,
|
|
166
|
-
});
|
|
116
|
+
b.m("POST").h(headers).b(body);
|
|
117
|
+
return b.build();
|
|
167
118
|
};
|
|
168
119
|
exports.se_SendEventCommand = se_SendEventCommand;
|
|
169
120
|
const se_SendMessageCommand = async (input, context) => {
|
|
170
|
-
const
|
|
121
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
171
122
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
172
123
|
"content-type": "application/json",
|
|
173
|
-
|
|
124
|
+
[_xab]: input[_CT],
|
|
174
125
|
});
|
|
175
|
-
|
|
126
|
+
b.bp("/participant/message");
|
|
176
127
|
let body;
|
|
177
128
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
178
129
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
179
130
|
Content: [],
|
|
180
131
|
ContentType: [],
|
|
181
132
|
}));
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
hostname,
|
|
185
|
-
port,
|
|
186
|
-
method: "POST",
|
|
187
|
-
headers,
|
|
188
|
-
path: resolvedPath,
|
|
189
|
-
body,
|
|
190
|
-
});
|
|
133
|
+
b.m("POST").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
191
135
|
};
|
|
192
136
|
exports.se_SendMessageCommand = se_SendMessageCommand;
|
|
193
137
|
const se_StartAttachmentUploadCommand = async (input, context) => {
|
|
194
|
-
const
|
|
138
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
195
139
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
196
140
|
"content-type": "application/json",
|
|
197
|
-
|
|
141
|
+
[_xab]: input[_CT],
|
|
198
142
|
});
|
|
199
|
-
|
|
143
|
+
b.bp("/participant/start-attachment-upload");
|
|
200
144
|
let body;
|
|
201
145
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
202
146
|
AttachmentName: [],
|
|
@@ -204,15 +148,8 @@ const se_StartAttachmentUploadCommand = async (input, context) => {
|
|
|
204
148
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
205
149
|
ContentType: [],
|
|
206
150
|
}));
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
hostname,
|
|
210
|
-
port,
|
|
211
|
-
method: "POST",
|
|
212
|
-
headers,
|
|
213
|
-
path: resolvedPath,
|
|
214
|
-
body,
|
|
215
|
-
});
|
|
151
|
+
b.m("POST").h(headers).b(body);
|
|
152
|
+
return b.build();
|
|
216
153
|
};
|
|
217
154
|
exports.se_StartAttachmentUploadCommand = se_StartAttachmentUploadCommand;
|
|
218
155
|
const de_CompleteAttachmentUploadCommand = async (output, context) => {
|
|
@@ -719,6 +656,9 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
719
656
|
value !== "" &&
|
|
720
657
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
721
658
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
659
|
+
const _CT = "ConnectionToken";
|
|
660
|
+
const _PT = "ParticipantToken";
|
|
661
|
+
const _xab = "x-amz-bearer";
|
|
722
662
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
723
663
|
if (encoded.length) {
|
|
724
664
|
return JSON.parse(encoded);
|
|
@@ -1,119 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConnectParticipantServiceException as __BaseException } from "../models/ConnectParticipantServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_CompleteAttachmentUploadCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = map({}, isSerializableHeaderValue, {
|
|
9
9
|
"content-type": "application/json",
|
|
10
|
-
|
|
10
|
+
[_xab]: input[_CT],
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
b.bp("/participant/complete-attachment-upload");
|
|
13
13
|
let body;
|
|
14
14
|
body = JSON.stringify(take(input, {
|
|
15
15
|
AttachmentIds: (_) => _json(_),
|
|
16
16
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
17
|
}));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostname,
|
|
21
|
-
port,
|
|
22
|
-
method: "POST",
|
|
23
|
-
headers,
|
|
24
|
-
path: resolvedPath,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
27
20
|
};
|
|
28
21
|
export const se_CreateParticipantConnectionCommand = async (input, context) => {
|
|
29
|
-
const
|
|
22
|
+
const b = rb(input, context);
|
|
30
23
|
const headers = map({}, isSerializableHeaderValue, {
|
|
31
24
|
"content-type": "application/json",
|
|
32
|
-
|
|
25
|
+
[_xab]: input[_PT],
|
|
33
26
|
});
|
|
34
|
-
|
|
27
|
+
b.bp("/participant/connection");
|
|
35
28
|
let body;
|
|
36
29
|
body = JSON.stringify(take(input, {
|
|
37
30
|
ConnectParticipant: [],
|
|
38
31
|
Type: (_) => _json(_),
|
|
39
32
|
}));
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
hostname,
|
|
43
|
-
port,
|
|
44
|
-
method: "POST",
|
|
45
|
-
headers,
|
|
46
|
-
path: resolvedPath,
|
|
47
|
-
body,
|
|
48
|
-
});
|
|
33
|
+
b.m("POST").h(headers).b(body);
|
|
34
|
+
return b.build();
|
|
49
35
|
};
|
|
50
36
|
export const se_DescribeViewCommand = async (input, context) => {
|
|
51
|
-
const
|
|
37
|
+
const b = rb(input, context);
|
|
52
38
|
const headers = map({}, isSerializableHeaderValue, {
|
|
53
|
-
|
|
39
|
+
[_xab]: input[_CT],
|
|
54
40
|
});
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
b.bp("/participant/views/{ViewToken}");
|
|
42
|
+
b.p("ViewToken", () => input.ViewToken, "{ViewToken}", false);
|
|
57
43
|
let body;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
hostname,
|
|
61
|
-
port,
|
|
62
|
-
method: "GET",
|
|
63
|
-
headers,
|
|
64
|
-
path: resolvedPath,
|
|
65
|
-
body,
|
|
66
|
-
});
|
|
44
|
+
b.m("GET").h(headers).b(body);
|
|
45
|
+
return b.build();
|
|
67
46
|
};
|
|
68
47
|
export const se_DisconnectParticipantCommand = async (input, context) => {
|
|
69
|
-
const
|
|
48
|
+
const b = rb(input, context);
|
|
70
49
|
const headers = map({}, isSerializableHeaderValue, {
|
|
71
50
|
"content-type": "application/json",
|
|
72
|
-
|
|
51
|
+
[_xab]: input[_CT],
|
|
73
52
|
});
|
|
74
|
-
|
|
53
|
+
b.bp("/participant/disconnect");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(take(input, {
|
|
77
56
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
78
57
|
}));
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
hostname,
|
|
82
|
-
port,
|
|
83
|
-
method: "POST",
|
|
84
|
-
headers,
|
|
85
|
-
path: resolvedPath,
|
|
86
|
-
body,
|
|
87
|
-
});
|
|
58
|
+
b.m("POST").h(headers).b(body);
|
|
59
|
+
return b.build();
|
|
88
60
|
};
|
|
89
61
|
export const se_GetAttachmentCommand = async (input, context) => {
|
|
90
|
-
const
|
|
62
|
+
const b = rb(input, context);
|
|
91
63
|
const headers = map({}, isSerializableHeaderValue, {
|
|
92
64
|
"content-type": "application/json",
|
|
93
|
-
|
|
65
|
+
[_xab]: input[_CT],
|
|
94
66
|
});
|
|
95
|
-
|
|
67
|
+
b.bp("/participant/attachment");
|
|
96
68
|
let body;
|
|
97
69
|
body = JSON.stringify(take(input, {
|
|
98
70
|
AttachmentId: [],
|
|
99
71
|
}));
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
hostname,
|
|
103
|
-
port,
|
|
104
|
-
method: "POST",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
body,
|
|
108
|
-
});
|
|
72
|
+
b.m("POST").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
109
74
|
};
|
|
110
75
|
export const se_GetTranscriptCommand = async (input, context) => {
|
|
111
|
-
const
|
|
76
|
+
const b = rb(input, context);
|
|
112
77
|
const headers = map({}, isSerializableHeaderValue, {
|
|
113
78
|
"content-type": "application/json",
|
|
114
|
-
|
|
79
|
+
[_xab]: input[_CT],
|
|
115
80
|
});
|
|
116
|
-
|
|
81
|
+
b.bp("/participant/transcript");
|
|
117
82
|
let body;
|
|
118
83
|
body = JSON.stringify(take(input, {
|
|
119
84
|
ContactId: [],
|
|
@@ -123,69 +88,48 @@ export const se_GetTranscriptCommand = async (input, context) => {
|
|
|
123
88
|
SortOrder: [],
|
|
124
89
|
StartPosition: (_) => _json(_),
|
|
125
90
|
}));
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hostname,
|
|
129
|
-
port,
|
|
130
|
-
method: "POST",
|
|
131
|
-
headers,
|
|
132
|
-
path: resolvedPath,
|
|
133
|
-
body,
|
|
134
|
-
});
|
|
91
|
+
b.m("POST").h(headers).b(body);
|
|
92
|
+
return b.build();
|
|
135
93
|
};
|
|
136
94
|
export const se_SendEventCommand = async (input, context) => {
|
|
137
|
-
const
|
|
95
|
+
const b = rb(input, context);
|
|
138
96
|
const headers = map({}, isSerializableHeaderValue, {
|
|
139
97
|
"content-type": "application/json",
|
|
140
|
-
|
|
98
|
+
[_xab]: input[_CT],
|
|
141
99
|
});
|
|
142
|
-
|
|
100
|
+
b.bp("/participant/event");
|
|
143
101
|
let body;
|
|
144
102
|
body = JSON.stringify(take(input, {
|
|
145
103
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
146
104
|
Content: [],
|
|
147
105
|
ContentType: [],
|
|
148
106
|
}));
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
hostname,
|
|
152
|
-
port,
|
|
153
|
-
method: "POST",
|
|
154
|
-
headers,
|
|
155
|
-
path: resolvedPath,
|
|
156
|
-
body,
|
|
157
|
-
});
|
|
107
|
+
b.m("POST").h(headers).b(body);
|
|
108
|
+
return b.build();
|
|
158
109
|
};
|
|
159
110
|
export const se_SendMessageCommand = async (input, context) => {
|
|
160
|
-
const
|
|
111
|
+
const b = rb(input, context);
|
|
161
112
|
const headers = map({}, isSerializableHeaderValue, {
|
|
162
113
|
"content-type": "application/json",
|
|
163
|
-
|
|
114
|
+
[_xab]: input[_CT],
|
|
164
115
|
});
|
|
165
|
-
|
|
116
|
+
b.bp("/participant/message");
|
|
166
117
|
let body;
|
|
167
118
|
body = JSON.stringify(take(input, {
|
|
168
119
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
169
120
|
Content: [],
|
|
170
121
|
ContentType: [],
|
|
171
122
|
}));
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
hostname,
|
|
175
|
-
port,
|
|
176
|
-
method: "POST",
|
|
177
|
-
headers,
|
|
178
|
-
path: resolvedPath,
|
|
179
|
-
body,
|
|
180
|
-
});
|
|
123
|
+
b.m("POST").h(headers).b(body);
|
|
124
|
+
return b.build();
|
|
181
125
|
};
|
|
182
126
|
export const se_StartAttachmentUploadCommand = async (input, context) => {
|
|
183
|
-
const
|
|
127
|
+
const b = rb(input, context);
|
|
184
128
|
const headers = map({}, isSerializableHeaderValue, {
|
|
185
129
|
"content-type": "application/json",
|
|
186
|
-
|
|
130
|
+
[_xab]: input[_CT],
|
|
187
131
|
});
|
|
188
|
-
|
|
132
|
+
b.bp("/participant/start-attachment-upload");
|
|
189
133
|
let body;
|
|
190
134
|
body = JSON.stringify(take(input, {
|
|
191
135
|
AttachmentName: [],
|
|
@@ -193,15 +137,8 @@ export const se_StartAttachmentUploadCommand = async (input, context) => {
|
|
|
193
137
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
194
138
|
ContentType: [],
|
|
195
139
|
}));
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
hostname,
|
|
199
|
-
port,
|
|
200
|
-
method: "POST",
|
|
201
|
-
headers,
|
|
202
|
-
path: resolvedPath,
|
|
203
|
-
body,
|
|
204
|
-
});
|
|
140
|
+
b.m("POST").h(headers).b(body);
|
|
141
|
+
return b.build();
|
|
205
142
|
};
|
|
206
143
|
export const de_CompleteAttachmentUploadCommand = async (output, context) => {
|
|
207
144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -698,6 +635,9 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
698
635
|
value !== "" &&
|
|
699
636
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
700
637
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
638
|
+
const _CT = "ConnectionToken";
|
|
639
|
+
const _PT = "ParticipantToken";
|
|
640
|
+
const _xab = "x-amz-bearer";
|
|
701
641
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
702
642
|
if (encoded.length) {
|
|
703
643
|
return JSON.parse(encoded);
|
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.477.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|