@aws-sdk/client-chime-sdk-messaging 3.476.0 → 3.478.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/pagination/ListChannelBansPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelFlowsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelMembershipsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelMessagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelModeratorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSubChannelsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchChannelsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +377 -752
- package/dist-es/pagination/ListChannelBansPaginator.js +2 -23
- package/dist-es/pagination/ListChannelFlowsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +2 -23
- package/dist-es/pagination/ListChannelMembershipsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelMessagesPaginator.js +2 -23
- package/dist-es/pagination/ListChannelModeratorsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +2 -23
- package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +2 -23
- package/dist-es/pagination/ListChannelsPaginator.js +2 -23
- package/dist-es/pagination/ListSubChannelsPaginator.js +2 -23
- package/dist-es/pagination/SearchChannelsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +378 -753
- package/dist-types/pagination/ListChannelBansPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelFlowsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelMembershipsForAppInstanceUserPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelMembershipsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelMessagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelModeratorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsAssociatedWithChannelFlowPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsModeratedByAppInstanceUserPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubChannelsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchChannelsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListChannelBansPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelFlowsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelMembershipsForAppInstanceUserPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelMembershipsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelMessagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelModeratorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsAssociatedWithChannelFlowPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsModeratedByAppInstanceUserPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubChannelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchChannelsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -3,44 +3,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_UpdateChannelMessageCommand = exports.se_UpdateChannelFlowCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendChannelMessageCommand = exports.se_SearchChannelsCommand = exports.se_RedactChannelMessageCommand = exports.se_PutMessagingStreamingConfigurationsCommand = exports.se_PutChannelMembershipPreferencesCommand = exports.se_PutChannelExpirationSettingsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubChannelsCommand = exports.se_ListChannelsModeratedByAppInstanceUserCommand = exports.se_ListChannelsAssociatedWithChannelFlowCommand = exports.se_ListChannelsCommand = exports.se_ListChannelModeratorsCommand = exports.se_ListChannelMessagesCommand = exports.se_ListChannelMembershipsForAppInstanceUserCommand = exports.se_ListChannelMembershipsCommand = exports.se_ListChannelFlowsCommand = exports.se_ListChannelBansCommand = exports.se_GetMessagingStreamingConfigurationsCommand = exports.se_GetMessagingSessionEndpointCommand = exports.se_GetChannelMessageStatusCommand = exports.se_GetChannelMessageCommand = exports.se_GetChannelMembershipPreferencesCommand = exports.se_DisassociateChannelFlowCommand = exports.se_DescribeChannelModeratorCommand = exports.se_DescribeChannelModeratedByAppInstanceUserCommand = exports.se_DescribeChannelMembershipForAppInstanceUserCommand = exports.se_DescribeChannelMembershipCommand = exports.se_DescribeChannelFlowCommand = exports.se_DescribeChannelBanCommand = exports.se_DescribeChannelCommand = exports.se_DeleteMessagingStreamingConfigurationsCommand = exports.se_DeleteChannelModeratorCommand = exports.se_DeleteChannelMessageCommand = exports.se_DeleteChannelMembershipCommand = exports.se_DeleteChannelFlowCommand = exports.se_DeleteChannelBanCommand = exports.se_DeleteChannelCommand = exports.se_CreateChannelModeratorCommand = exports.se_CreateChannelMembershipCommand = exports.se_CreateChannelFlowCommand = exports.se_CreateChannelBanCommand = exports.se_CreateChannelCommand = exports.se_ChannelFlowCallbackCommand = exports.se_BatchCreateChannelMembershipCommand = exports.se_AssociateChannelFlowCommand = void 0;
|
|
4
4
|
exports.de_UpdateChannelFlowCommand = exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendChannelMessageCommand = exports.de_SearchChannelsCommand = exports.de_RedactChannelMessageCommand = exports.de_PutMessagingStreamingConfigurationsCommand = exports.de_PutChannelMembershipPreferencesCommand = exports.de_PutChannelExpirationSettingsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubChannelsCommand = exports.de_ListChannelsModeratedByAppInstanceUserCommand = exports.de_ListChannelsAssociatedWithChannelFlowCommand = exports.de_ListChannelsCommand = exports.de_ListChannelModeratorsCommand = exports.de_ListChannelMessagesCommand = exports.de_ListChannelMembershipsForAppInstanceUserCommand = exports.de_ListChannelMembershipsCommand = exports.de_ListChannelFlowsCommand = exports.de_ListChannelBansCommand = exports.de_GetMessagingStreamingConfigurationsCommand = exports.de_GetMessagingSessionEndpointCommand = exports.de_GetChannelMessageStatusCommand = exports.de_GetChannelMessageCommand = exports.de_GetChannelMembershipPreferencesCommand = exports.de_DisassociateChannelFlowCommand = exports.de_DescribeChannelModeratorCommand = exports.de_DescribeChannelModeratedByAppInstanceUserCommand = exports.de_DescribeChannelMembershipForAppInstanceUserCommand = exports.de_DescribeChannelMembershipCommand = exports.de_DescribeChannelFlowCommand = exports.de_DescribeChannelBanCommand = exports.de_DescribeChannelCommand = exports.de_DeleteMessagingStreamingConfigurationsCommand = exports.de_DeleteChannelModeratorCommand = exports.de_DeleteChannelMessageCommand = exports.de_DeleteChannelMembershipCommand = exports.de_DeleteChannelFlowCommand = exports.de_DeleteChannelBanCommand = exports.de_DeleteChannelCommand = exports.de_CreateChannelModeratorCommand = exports.de_CreateChannelMembershipCommand = exports.de_CreateChannelFlowCommand = exports.de_CreateChannelBanCommand = exports.de_CreateChannelCommand = exports.de_ChannelFlowCallbackCommand = exports.de_BatchCreateChannelMembershipCommand = exports.de_AssociateChannelFlowCommand = exports.se_UpdateChannelReadMarkerCommand = void 0;
|
|
5
5
|
exports.de_UpdateChannelReadMarkerCommand = exports.de_UpdateChannelMessageCommand = void 0;
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const ChimeSDKMessagingServiceException_1 = require("../models/ChimeSDKMessagingServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const se_AssociateChannelFlowCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
13
13
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
14
14
|
"content-type": "application/json",
|
|
15
|
-
|
|
15
|
+
[_xacb]: input[_CB],
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
b.bp("/channels/{ChannelArn}/channel-flow");
|
|
18
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
19
19
|
let body;
|
|
20
20
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
21
21
|
ChannelFlowArn: [],
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "PUT",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("PUT").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
exports.se_AssociateChannelFlowCommand = se_AssociateChannelFlowCommand;
|
|
34
27
|
const se_BatchCreateChannelMembershipCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
36
29
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
37
30
|
"content-type": "application/json",
|
|
38
|
-
|
|
31
|
+
[_xacb]: input[_CB],
|
|
39
32
|
});
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
b.bp("/channels/{ChannelArn}/memberships");
|
|
34
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
42
35
|
const query = (0, smithy_client_1.map)({
|
|
43
|
-
|
|
36
|
+
[_o]: [, "batch-create"],
|
|
44
37
|
});
|
|
45
38
|
let body;
|
|
46
39
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -48,27 +41,19 @@ const se_BatchCreateChannelMembershipCommand = async (input, context) => {
|
|
|
48
41
|
SubChannelId: [],
|
|
49
42
|
Type: [],
|
|
50
43
|
}));
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
hostname,
|
|
54
|
-
port,
|
|
55
|
-
method: "POST",
|
|
56
|
-
headers,
|
|
57
|
-
path: resolvedPath,
|
|
58
|
-
query,
|
|
59
|
-
body,
|
|
60
|
-
});
|
|
44
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
45
|
+
return b.build();
|
|
61
46
|
};
|
|
62
47
|
exports.se_BatchCreateChannelMembershipCommand = se_BatchCreateChannelMembershipCommand;
|
|
63
48
|
const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
64
|
-
const
|
|
49
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
65
50
|
const headers = {
|
|
66
51
|
"content-type": "application/json",
|
|
67
52
|
};
|
|
68
|
-
|
|
69
|
-
|
|
53
|
+
b.bp("/channels/{ChannelArn}");
|
|
54
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
70
55
|
const query = (0, smithy_client_1.map)({
|
|
71
|
-
|
|
56
|
+
[_o]: [, "channel-flow-callback"],
|
|
72
57
|
});
|
|
73
58
|
let body;
|
|
74
59
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -76,25 +61,17 @@ const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
|
76
61
|
ChannelMessage: (_) => (0, smithy_client_1._json)(_),
|
|
77
62
|
DeleteResource: [],
|
|
78
63
|
}));
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
hostname,
|
|
82
|
-
port,
|
|
83
|
-
method: "POST",
|
|
84
|
-
headers,
|
|
85
|
-
path: resolvedPath,
|
|
86
|
-
query,
|
|
87
|
-
body,
|
|
88
|
-
});
|
|
64
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
65
|
+
return b.build();
|
|
89
66
|
};
|
|
90
67
|
exports.se_ChannelFlowCallbackCommand = se_ChannelFlowCallbackCommand;
|
|
91
68
|
const se_CreateChannelCommand = async (input, context) => {
|
|
92
|
-
const
|
|
69
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
93
70
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
94
71
|
"content-type": "application/json",
|
|
95
|
-
|
|
72
|
+
[_xacb]: input[_CB],
|
|
96
73
|
});
|
|
97
|
-
|
|
74
|
+
b.bp("/channels");
|
|
98
75
|
let body;
|
|
99
76
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
100
77
|
AppInstanceArn: [],
|
|
@@ -110,46 +87,32 @@ const se_CreateChannelCommand = async (input, context) => {
|
|
|
110
87
|
Privacy: [],
|
|
111
88
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
112
89
|
}));
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
hostname,
|
|
116
|
-
port,
|
|
117
|
-
method: "POST",
|
|
118
|
-
headers,
|
|
119
|
-
path: resolvedPath,
|
|
120
|
-
body,
|
|
121
|
-
});
|
|
90
|
+
b.m("POST").h(headers).b(body);
|
|
91
|
+
return b.build();
|
|
122
92
|
};
|
|
123
93
|
exports.se_CreateChannelCommand = se_CreateChannelCommand;
|
|
124
94
|
const se_CreateChannelBanCommand = async (input, context) => {
|
|
125
|
-
const
|
|
95
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
126
96
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
127
97
|
"content-type": "application/json",
|
|
128
|
-
|
|
98
|
+
[_xacb]: input[_CB],
|
|
129
99
|
});
|
|
130
|
-
|
|
131
|
-
|
|
100
|
+
b.bp("/channels/{ChannelArn}/bans");
|
|
101
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
132
102
|
let body;
|
|
133
103
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
134
104
|
MemberArn: [],
|
|
135
105
|
}));
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
hostname,
|
|
139
|
-
port,
|
|
140
|
-
method: "POST",
|
|
141
|
-
headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
body,
|
|
144
|
-
});
|
|
106
|
+
b.m("POST").h(headers).b(body);
|
|
107
|
+
return b.build();
|
|
145
108
|
};
|
|
146
109
|
exports.se_CreateChannelBanCommand = se_CreateChannelBanCommand;
|
|
147
110
|
const se_CreateChannelFlowCommand = async (input, context) => {
|
|
148
|
-
const
|
|
111
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
112
|
const headers = {
|
|
150
113
|
"content-type": "application/json",
|
|
151
114
|
};
|
|
152
|
-
|
|
115
|
+
b.bp("/channel-flows");
|
|
153
116
|
let body;
|
|
154
117
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
155
118
|
AppInstanceArn: [],
|
|
@@ -158,899 +121,585 @@ const se_CreateChannelFlowCommand = async (input, context) => {
|
|
|
158
121
|
Processors: (_) => (0, smithy_client_1._json)(_),
|
|
159
122
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
160
123
|
}));
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
hostname,
|
|
164
|
-
port,
|
|
165
|
-
method: "POST",
|
|
166
|
-
headers,
|
|
167
|
-
path: resolvedPath,
|
|
168
|
-
body,
|
|
169
|
-
});
|
|
124
|
+
b.m("POST").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
170
126
|
};
|
|
171
127
|
exports.se_CreateChannelFlowCommand = se_CreateChannelFlowCommand;
|
|
172
128
|
const se_CreateChannelMembershipCommand = async (input, context) => {
|
|
173
|
-
const
|
|
129
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
174
130
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
175
131
|
"content-type": "application/json",
|
|
176
|
-
|
|
132
|
+
[_xacb]: input[_CB],
|
|
177
133
|
});
|
|
178
|
-
|
|
179
|
-
|
|
134
|
+
b.bp("/channels/{ChannelArn}/memberships");
|
|
135
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
180
136
|
let body;
|
|
181
137
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
182
138
|
MemberArn: [],
|
|
183
139
|
SubChannelId: [],
|
|
184
140
|
Type: [],
|
|
185
141
|
}));
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
hostname,
|
|
189
|
-
port,
|
|
190
|
-
method: "POST",
|
|
191
|
-
headers,
|
|
192
|
-
path: resolvedPath,
|
|
193
|
-
body,
|
|
194
|
-
});
|
|
142
|
+
b.m("POST").h(headers).b(body);
|
|
143
|
+
return b.build();
|
|
195
144
|
};
|
|
196
145
|
exports.se_CreateChannelMembershipCommand = se_CreateChannelMembershipCommand;
|
|
197
146
|
const se_CreateChannelModeratorCommand = async (input, context) => {
|
|
198
|
-
const
|
|
147
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
199
148
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
200
149
|
"content-type": "application/json",
|
|
201
|
-
|
|
150
|
+
[_xacb]: input[_CB],
|
|
202
151
|
});
|
|
203
|
-
|
|
204
|
-
|
|
152
|
+
b.bp("/channels/{ChannelArn}/moderators");
|
|
153
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
205
154
|
let body;
|
|
206
155
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
207
156
|
ChannelModeratorArn: [],
|
|
208
157
|
}));
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
hostname,
|
|
212
|
-
port,
|
|
213
|
-
method: "POST",
|
|
214
|
-
headers,
|
|
215
|
-
path: resolvedPath,
|
|
216
|
-
body,
|
|
217
|
-
});
|
|
158
|
+
b.m("POST").h(headers).b(body);
|
|
159
|
+
return b.build();
|
|
218
160
|
};
|
|
219
161
|
exports.se_CreateChannelModeratorCommand = se_CreateChannelModeratorCommand;
|
|
220
162
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
221
|
-
const
|
|
163
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
222
164
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
223
|
-
|
|
165
|
+
[_xacb]: input[_CB],
|
|
224
166
|
});
|
|
225
|
-
|
|
226
|
-
|
|
167
|
+
b.bp("/channels/{ChannelArn}");
|
|
168
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
227
169
|
let body;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
hostname,
|
|
231
|
-
port,
|
|
232
|
-
method: "DELETE",
|
|
233
|
-
headers,
|
|
234
|
-
path: resolvedPath,
|
|
235
|
-
body,
|
|
236
|
-
});
|
|
170
|
+
b.m("DELETE").h(headers).b(body);
|
|
171
|
+
return b.build();
|
|
237
172
|
};
|
|
238
173
|
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
239
174
|
const se_DeleteChannelBanCommand = async (input, context) => {
|
|
240
|
-
const
|
|
175
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
241
176
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
242
|
-
|
|
177
|
+
[_xacb]: input[_CB],
|
|
243
178
|
});
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
179
|
+
b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
|
|
180
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
181
|
+
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
247
182
|
let body;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
hostname,
|
|
251
|
-
port,
|
|
252
|
-
method: "DELETE",
|
|
253
|
-
headers,
|
|
254
|
-
path: resolvedPath,
|
|
255
|
-
body,
|
|
256
|
-
});
|
|
183
|
+
b.m("DELETE").h(headers).b(body);
|
|
184
|
+
return b.build();
|
|
257
185
|
};
|
|
258
186
|
exports.se_DeleteChannelBanCommand = se_DeleteChannelBanCommand;
|
|
259
187
|
const se_DeleteChannelFlowCommand = async (input, context) => {
|
|
260
|
-
const
|
|
188
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
261
189
|
const headers = {};
|
|
262
|
-
|
|
263
|
-
|
|
190
|
+
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
191
|
+
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
264
192
|
let body;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
hostname,
|
|
268
|
-
port,
|
|
269
|
-
method: "DELETE",
|
|
270
|
-
headers,
|
|
271
|
-
path: resolvedPath,
|
|
272
|
-
body,
|
|
273
|
-
});
|
|
193
|
+
b.m("DELETE").h(headers).b(body);
|
|
194
|
+
return b.build();
|
|
274
195
|
};
|
|
275
196
|
exports.se_DeleteChannelFlowCommand = se_DeleteChannelFlowCommand;
|
|
276
197
|
const se_DeleteChannelMembershipCommand = async (input, context) => {
|
|
277
|
-
const
|
|
198
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
278
199
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
279
|
-
|
|
200
|
+
[_xacb]: input[_CB],
|
|
280
201
|
});
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
202
|
+
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
|
|
203
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
204
|
+
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
285
205
|
const query = (0, smithy_client_1.map)({
|
|
286
|
-
|
|
206
|
+
[_sci]: [, input[_SCI]],
|
|
287
207
|
});
|
|
288
208
|
let body;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
hostname,
|
|
292
|
-
port,
|
|
293
|
-
method: "DELETE",
|
|
294
|
-
headers,
|
|
295
|
-
path: resolvedPath,
|
|
296
|
-
query,
|
|
297
|
-
body,
|
|
298
|
-
});
|
|
209
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
210
|
+
return b.build();
|
|
299
211
|
};
|
|
300
212
|
exports.se_DeleteChannelMembershipCommand = se_DeleteChannelMembershipCommand;
|
|
301
213
|
const se_DeleteChannelMessageCommand = async (input, context) => {
|
|
302
|
-
const
|
|
214
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
303
215
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
304
|
-
|
|
216
|
+
[_xacb]: input[_CB],
|
|
305
217
|
});
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
218
|
+
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
219
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
220
|
+
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
310
221
|
const query = (0, smithy_client_1.map)({
|
|
311
|
-
|
|
222
|
+
[_sci]: [, input[_SCI]],
|
|
312
223
|
});
|
|
313
224
|
let body;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
hostname,
|
|
317
|
-
port,
|
|
318
|
-
method: "DELETE",
|
|
319
|
-
headers,
|
|
320
|
-
path: resolvedPath,
|
|
321
|
-
query,
|
|
322
|
-
body,
|
|
323
|
-
});
|
|
225
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
226
|
+
return b.build();
|
|
324
227
|
};
|
|
325
228
|
exports.se_DeleteChannelMessageCommand = se_DeleteChannelMessageCommand;
|
|
326
229
|
const se_DeleteChannelModeratorCommand = async (input, context) => {
|
|
327
|
-
const
|
|
230
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
328
231
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
329
|
-
|
|
232
|
+
[_xacb]: input[_CB],
|
|
330
233
|
});
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
234
|
+
b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
|
|
235
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
236
|
+
b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
335
237
|
let body;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
hostname,
|
|
339
|
-
port,
|
|
340
|
-
method: "DELETE",
|
|
341
|
-
headers,
|
|
342
|
-
path: resolvedPath,
|
|
343
|
-
body,
|
|
344
|
-
});
|
|
238
|
+
b.m("DELETE").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
345
240
|
};
|
|
346
241
|
exports.se_DeleteChannelModeratorCommand = se_DeleteChannelModeratorCommand;
|
|
347
242
|
const se_DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
348
|
-
const
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
349
244
|
const headers = {};
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
245
|
+
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
246
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
353
247
|
let body;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
hostname,
|
|
357
|
-
port,
|
|
358
|
-
method: "DELETE",
|
|
359
|
-
headers,
|
|
360
|
-
path: resolvedPath,
|
|
361
|
-
body,
|
|
362
|
-
});
|
|
248
|
+
b.m("DELETE").h(headers).b(body);
|
|
249
|
+
return b.build();
|
|
363
250
|
};
|
|
364
251
|
exports.se_DeleteMessagingStreamingConfigurationsCommand = se_DeleteMessagingStreamingConfigurationsCommand;
|
|
365
252
|
const se_DescribeChannelCommand = async (input, context) => {
|
|
366
|
-
const
|
|
253
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
367
254
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
368
|
-
|
|
255
|
+
[_xacb]: input[_CB],
|
|
369
256
|
});
|
|
370
|
-
|
|
371
|
-
|
|
257
|
+
b.bp("/channels/{ChannelArn}");
|
|
258
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
372
259
|
let body;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
hostname,
|
|
376
|
-
port,
|
|
377
|
-
method: "GET",
|
|
378
|
-
headers,
|
|
379
|
-
path: resolvedPath,
|
|
380
|
-
body,
|
|
381
|
-
});
|
|
260
|
+
b.m("GET").h(headers).b(body);
|
|
261
|
+
return b.build();
|
|
382
262
|
};
|
|
383
263
|
exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
|
|
384
264
|
const se_DescribeChannelBanCommand = async (input, context) => {
|
|
385
|
-
const
|
|
265
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
386
266
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
387
|
-
|
|
267
|
+
[_xacb]: input[_CB],
|
|
388
268
|
});
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
269
|
+
b.bp("/channels/{ChannelArn}/bans/{MemberArn}");
|
|
270
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
271
|
+
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
392
272
|
let body;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
hostname,
|
|
396
|
-
port,
|
|
397
|
-
method: "GET",
|
|
398
|
-
headers,
|
|
399
|
-
path: resolvedPath,
|
|
400
|
-
body,
|
|
401
|
-
});
|
|
273
|
+
b.m("GET").h(headers).b(body);
|
|
274
|
+
return b.build();
|
|
402
275
|
};
|
|
403
276
|
exports.se_DescribeChannelBanCommand = se_DescribeChannelBanCommand;
|
|
404
277
|
const se_DescribeChannelFlowCommand = async (input, context) => {
|
|
405
|
-
const
|
|
278
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
406
279
|
const headers = {};
|
|
407
|
-
|
|
408
|
-
|
|
280
|
+
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
281
|
+
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
409
282
|
let body;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
hostname,
|
|
413
|
-
port,
|
|
414
|
-
method: "GET",
|
|
415
|
-
headers,
|
|
416
|
-
path: resolvedPath,
|
|
417
|
-
body,
|
|
418
|
-
});
|
|
283
|
+
b.m("GET").h(headers).b(body);
|
|
284
|
+
return b.build();
|
|
419
285
|
};
|
|
420
286
|
exports.se_DescribeChannelFlowCommand = se_DescribeChannelFlowCommand;
|
|
421
287
|
const se_DescribeChannelMembershipCommand = async (input, context) => {
|
|
422
|
-
const
|
|
288
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
423
289
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
424
|
-
|
|
290
|
+
[_xacb]: input[_CB],
|
|
425
291
|
});
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
292
|
+
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}");
|
|
293
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
294
|
+
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
430
295
|
const query = (0, smithy_client_1.map)({
|
|
431
|
-
|
|
296
|
+
[_sci]: [, input[_SCI]],
|
|
432
297
|
});
|
|
433
298
|
let body;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
hostname,
|
|
437
|
-
port,
|
|
438
|
-
method: "GET",
|
|
439
|
-
headers,
|
|
440
|
-
path: resolvedPath,
|
|
441
|
-
query,
|
|
442
|
-
body,
|
|
443
|
-
});
|
|
299
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
300
|
+
return b.build();
|
|
444
301
|
};
|
|
445
302
|
exports.se_DescribeChannelMembershipCommand = se_DescribeChannelMembershipCommand;
|
|
446
303
|
const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
|
|
447
|
-
const
|
|
304
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
448
305
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
449
|
-
|
|
306
|
+
[_xacb]: input[_CB],
|
|
450
307
|
});
|
|
451
|
-
|
|
452
|
-
|
|
308
|
+
b.bp("/channels/{ChannelArn}");
|
|
309
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
453
310
|
const query = (0, smithy_client_1.map)({
|
|
454
|
-
|
|
455
|
-
|
|
311
|
+
[_s]: [, "app-instance-user-membership"],
|
|
312
|
+
[_aiua]: [, (0, smithy_client_1.expectNonNull)(input[_AIUA], `AppInstanceUserArn`)],
|
|
456
313
|
});
|
|
457
314
|
let body;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
hostname,
|
|
461
|
-
port,
|
|
462
|
-
method: "GET",
|
|
463
|
-
headers,
|
|
464
|
-
path: resolvedPath,
|
|
465
|
-
query,
|
|
466
|
-
body,
|
|
467
|
-
});
|
|
315
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
316
|
+
return b.build();
|
|
468
317
|
};
|
|
469
318
|
exports.se_DescribeChannelMembershipForAppInstanceUserCommand = se_DescribeChannelMembershipForAppInstanceUserCommand;
|
|
470
319
|
const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
471
|
-
const
|
|
320
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
472
321
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
473
|
-
|
|
322
|
+
[_xacb]: input[_CB],
|
|
474
323
|
});
|
|
475
|
-
|
|
476
|
-
|
|
324
|
+
b.bp("/channels/{ChannelArn}");
|
|
325
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
477
326
|
const query = (0, smithy_client_1.map)({
|
|
478
|
-
|
|
479
|
-
|
|
327
|
+
[_s]: [, "app-instance-user-moderated-channel"],
|
|
328
|
+
[_aiua]: [, (0, smithy_client_1.expectNonNull)(input[_AIUA], `AppInstanceUserArn`)],
|
|
480
329
|
});
|
|
481
330
|
let body;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
hostname,
|
|
485
|
-
port,
|
|
486
|
-
method: "GET",
|
|
487
|
-
headers,
|
|
488
|
-
path: resolvedPath,
|
|
489
|
-
query,
|
|
490
|
-
body,
|
|
491
|
-
});
|
|
331
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
332
|
+
return b.build();
|
|
492
333
|
};
|
|
493
334
|
exports.se_DescribeChannelModeratedByAppInstanceUserCommand = se_DescribeChannelModeratedByAppInstanceUserCommand;
|
|
494
335
|
const se_DescribeChannelModeratorCommand = async (input, context) => {
|
|
495
|
-
const
|
|
336
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
496
337
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
497
|
-
|
|
338
|
+
[_xacb]: input[_CB],
|
|
498
339
|
});
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
340
|
+
b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}");
|
|
341
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
342
|
+
b.p("ChannelModeratorArn", () => input.ChannelModeratorArn, "{ChannelModeratorArn}", false);
|
|
503
343
|
let body;
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
hostname,
|
|
507
|
-
port,
|
|
508
|
-
method: "GET",
|
|
509
|
-
headers,
|
|
510
|
-
path: resolvedPath,
|
|
511
|
-
body,
|
|
512
|
-
});
|
|
344
|
+
b.m("GET").h(headers).b(body);
|
|
345
|
+
return b.build();
|
|
513
346
|
};
|
|
514
347
|
exports.se_DescribeChannelModeratorCommand = se_DescribeChannelModeratorCommand;
|
|
515
348
|
const se_DisassociateChannelFlowCommand = async (input, context) => {
|
|
516
|
-
const
|
|
349
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
517
350
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
518
|
-
|
|
351
|
+
[_xacb]: input[_CB],
|
|
519
352
|
});
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
353
|
+
b.bp("/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}");
|
|
354
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
355
|
+
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
524
356
|
let body;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
hostname,
|
|
528
|
-
port,
|
|
529
|
-
method: "DELETE",
|
|
530
|
-
headers,
|
|
531
|
-
path: resolvedPath,
|
|
532
|
-
body,
|
|
533
|
-
});
|
|
357
|
+
b.m("DELETE").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
534
359
|
};
|
|
535
360
|
exports.se_DisassociateChannelFlowCommand = se_DisassociateChannelFlowCommand;
|
|
536
361
|
const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
|
|
537
|
-
const
|
|
362
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
538
363
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
539
|
-
|
|
364
|
+
[_xacb]: input[_CB],
|
|
540
365
|
});
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
366
|
+
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
|
|
367
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
368
|
+
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
545
369
|
let body;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
hostname,
|
|
549
|
-
port,
|
|
550
|
-
method: "GET",
|
|
551
|
-
headers,
|
|
552
|
-
path: resolvedPath,
|
|
553
|
-
body,
|
|
554
|
-
});
|
|
370
|
+
b.m("GET").h(headers).b(body);
|
|
371
|
+
return b.build();
|
|
555
372
|
};
|
|
556
373
|
exports.se_GetChannelMembershipPreferencesCommand = se_GetChannelMembershipPreferencesCommand;
|
|
557
374
|
const se_GetChannelMessageCommand = async (input, context) => {
|
|
558
|
-
const
|
|
375
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
559
376
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
560
|
-
|
|
377
|
+
[_xacb]: input[_CB],
|
|
561
378
|
});
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
379
|
+
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
380
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
381
|
+
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
566
382
|
const query = (0, smithy_client_1.map)({
|
|
567
|
-
|
|
383
|
+
[_sci]: [, input[_SCI]],
|
|
568
384
|
});
|
|
569
385
|
let body;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
hostname,
|
|
573
|
-
port,
|
|
574
|
-
method: "GET",
|
|
575
|
-
headers,
|
|
576
|
-
path: resolvedPath,
|
|
577
|
-
query,
|
|
578
|
-
body,
|
|
579
|
-
});
|
|
386
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
387
|
+
return b.build();
|
|
580
388
|
};
|
|
581
389
|
exports.se_GetChannelMessageCommand = se_GetChannelMessageCommand;
|
|
582
390
|
const se_GetChannelMessageStatusCommand = async (input, context) => {
|
|
583
|
-
const
|
|
391
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
584
392
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
585
|
-
|
|
393
|
+
[_xacb]: input[_CB],
|
|
586
394
|
});
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
395
|
+
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
396
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
397
|
+
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
591
398
|
const query = (0, smithy_client_1.map)({
|
|
592
|
-
|
|
593
|
-
|
|
399
|
+
[_s]: [, "message-status"],
|
|
400
|
+
[_sci]: [, input[_SCI]],
|
|
594
401
|
});
|
|
595
402
|
let body;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
hostname,
|
|
599
|
-
port,
|
|
600
|
-
method: "GET",
|
|
601
|
-
headers,
|
|
602
|
-
path: resolvedPath,
|
|
603
|
-
query,
|
|
604
|
-
body,
|
|
605
|
-
});
|
|
403
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
404
|
+
return b.build();
|
|
606
405
|
};
|
|
607
406
|
exports.se_GetChannelMessageStatusCommand = se_GetChannelMessageStatusCommand;
|
|
608
407
|
const se_GetMessagingSessionEndpointCommand = async (input, context) => {
|
|
609
|
-
const
|
|
408
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
610
409
|
const headers = {
|
|
611
410
|
"content-type": "application/json",
|
|
612
411
|
};
|
|
613
|
-
|
|
412
|
+
b.bp("/endpoints/messaging-session");
|
|
614
413
|
let body;
|
|
615
414
|
body = "";
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
hostname,
|
|
619
|
-
port,
|
|
620
|
-
method: "GET",
|
|
621
|
-
headers,
|
|
622
|
-
path: resolvedPath,
|
|
623
|
-
body,
|
|
624
|
-
});
|
|
415
|
+
b.m("GET").h(headers).b(body);
|
|
416
|
+
return b.build();
|
|
625
417
|
};
|
|
626
418
|
exports.se_GetMessagingSessionEndpointCommand = se_GetMessagingSessionEndpointCommand;
|
|
627
419
|
const se_GetMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
628
|
-
const
|
|
420
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
629
421
|
const headers = {};
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
422
|
+
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
423
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
633
424
|
let body;
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
hostname,
|
|
637
|
-
port,
|
|
638
|
-
method: "GET",
|
|
639
|
-
headers,
|
|
640
|
-
path: resolvedPath,
|
|
641
|
-
body,
|
|
642
|
-
});
|
|
425
|
+
b.m("GET").h(headers).b(body);
|
|
426
|
+
return b.build();
|
|
643
427
|
};
|
|
644
428
|
exports.se_GetMessagingStreamingConfigurationsCommand = se_GetMessagingStreamingConfigurationsCommand;
|
|
645
429
|
const se_ListChannelBansCommand = async (input, context) => {
|
|
646
|
-
const
|
|
430
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
647
431
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
648
|
-
|
|
432
|
+
[_xacb]: input[_CB],
|
|
649
433
|
});
|
|
650
|
-
|
|
651
|
-
|
|
434
|
+
b.bp("/channels/{ChannelArn}/bans");
|
|
435
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
652
436
|
const query = (0, smithy_client_1.map)({
|
|
653
|
-
|
|
654
|
-
|
|
437
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
438
|
+
[_nt]: [, input[_NT]],
|
|
655
439
|
});
|
|
656
440
|
let body;
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
hostname,
|
|
660
|
-
port,
|
|
661
|
-
method: "GET",
|
|
662
|
-
headers,
|
|
663
|
-
path: resolvedPath,
|
|
664
|
-
query,
|
|
665
|
-
body,
|
|
666
|
-
});
|
|
441
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
442
|
+
return b.build();
|
|
667
443
|
};
|
|
668
444
|
exports.se_ListChannelBansCommand = se_ListChannelBansCommand;
|
|
669
445
|
const se_ListChannelFlowsCommand = async (input, context) => {
|
|
670
|
-
const
|
|
446
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
671
447
|
const headers = {};
|
|
672
|
-
|
|
448
|
+
b.bp("/channel-flows");
|
|
673
449
|
const query = (0, smithy_client_1.map)({
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
450
|
+
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
451
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
452
|
+
[_nt]: [, input[_NT]],
|
|
677
453
|
});
|
|
678
454
|
let body;
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
hostname,
|
|
682
|
-
port,
|
|
683
|
-
method: "GET",
|
|
684
|
-
headers,
|
|
685
|
-
path: resolvedPath,
|
|
686
|
-
query,
|
|
687
|
-
body,
|
|
688
|
-
});
|
|
455
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
456
|
+
return b.build();
|
|
689
457
|
};
|
|
690
458
|
exports.se_ListChannelFlowsCommand = se_ListChannelFlowsCommand;
|
|
691
459
|
const se_ListChannelMembershipsCommand = async (input, context) => {
|
|
692
|
-
const
|
|
460
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
693
461
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
694
|
-
|
|
462
|
+
[_xacb]: input[_CB],
|
|
695
463
|
});
|
|
696
|
-
|
|
697
|
-
|
|
464
|
+
b.bp("/channels/{ChannelArn}/memberships");
|
|
465
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
698
466
|
const query = (0, smithy_client_1.map)({
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
467
|
+
[_t]: [, input[_T]],
|
|
468
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
469
|
+
[_nt]: [, input[_NT]],
|
|
470
|
+
[_sci]: [, input[_SCI]],
|
|
703
471
|
});
|
|
704
472
|
let body;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
hostname,
|
|
708
|
-
port,
|
|
709
|
-
method: "GET",
|
|
710
|
-
headers,
|
|
711
|
-
path: resolvedPath,
|
|
712
|
-
query,
|
|
713
|
-
body,
|
|
714
|
-
});
|
|
473
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
474
|
+
return b.build();
|
|
715
475
|
};
|
|
716
476
|
exports.se_ListChannelMembershipsCommand = se_ListChannelMembershipsCommand;
|
|
717
477
|
const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
|
|
718
|
-
const
|
|
478
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
719
479
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
720
|
-
|
|
480
|
+
[_xacb]: input[_CB],
|
|
721
481
|
});
|
|
722
|
-
|
|
482
|
+
b.bp("/channels");
|
|
723
483
|
const query = (0, smithy_client_1.map)({
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
484
|
+
[_s]: [, "app-instance-user-memberships"],
|
|
485
|
+
[_aiua]: [, input[_AIUA]],
|
|
486
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
487
|
+
[_nt]: [, input[_NT]],
|
|
728
488
|
});
|
|
729
489
|
let body;
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
hostname,
|
|
733
|
-
port,
|
|
734
|
-
method: "GET",
|
|
735
|
-
headers,
|
|
736
|
-
path: resolvedPath,
|
|
737
|
-
query,
|
|
738
|
-
body,
|
|
739
|
-
});
|
|
490
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
491
|
+
return b.build();
|
|
740
492
|
};
|
|
741
493
|
exports.se_ListChannelMembershipsForAppInstanceUserCommand = se_ListChannelMembershipsForAppInstanceUserCommand;
|
|
742
494
|
const se_ListChannelMessagesCommand = async (input, context) => {
|
|
743
|
-
const
|
|
495
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
744
496
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
745
|
-
|
|
497
|
+
[_xacb]: input[_CB],
|
|
746
498
|
});
|
|
747
|
-
|
|
748
|
-
|
|
499
|
+
b.bp("/channels/{ChannelArn}/messages");
|
|
500
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
749
501
|
const query = (0, smithy_client_1.map)({
|
|
750
|
-
|
|
751
|
-
"
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
],
|
|
755
|
-
|
|
756
|
-
() => input.NotAfter !== void 0,
|
|
757
|
-
() => (input.NotAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
758
|
-
],
|
|
759
|
-
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
760
|
-
"next-token": [, input.NextToken],
|
|
761
|
-
"sub-channel-id": [, input.SubChannelId],
|
|
502
|
+
[_so]: [, input[_SO]],
|
|
503
|
+
[_nb]: [() => input.NotBefore !== void 0, () => (input[_NB].toISOString().split(".")[0] + "Z").toString()],
|
|
504
|
+
[_na]: [() => input.NotAfter !== void 0, () => (input[_NA].toISOString().split(".")[0] + "Z").toString()],
|
|
505
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
506
|
+
[_nt]: [, input[_NT]],
|
|
507
|
+
[_sci]: [, input[_SCI]],
|
|
762
508
|
});
|
|
763
509
|
let body;
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
hostname,
|
|
767
|
-
port,
|
|
768
|
-
method: "GET",
|
|
769
|
-
headers,
|
|
770
|
-
path: resolvedPath,
|
|
771
|
-
query,
|
|
772
|
-
body,
|
|
773
|
-
});
|
|
510
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
511
|
+
return b.build();
|
|
774
512
|
};
|
|
775
513
|
exports.se_ListChannelMessagesCommand = se_ListChannelMessagesCommand;
|
|
776
514
|
const se_ListChannelModeratorsCommand = async (input, context) => {
|
|
777
|
-
const
|
|
515
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
778
516
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
779
|
-
|
|
517
|
+
[_xacb]: input[_CB],
|
|
780
518
|
});
|
|
781
|
-
|
|
782
|
-
|
|
519
|
+
b.bp("/channels/{ChannelArn}/moderators");
|
|
520
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
783
521
|
const query = (0, smithy_client_1.map)({
|
|
784
|
-
|
|
785
|
-
|
|
522
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
523
|
+
[_nt]: [, input[_NT]],
|
|
786
524
|
});
|
|
787
525
|
let body;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
hostname,
|
|
791
|
-
port,
|
|
792
|
-
method: "GET",
|
|
793
|
-
headers,
|
|
794
|
-
path: resolvedPath,
|
|
795
|
-
query,
|
|
796
|
-
body,
|
|
797
|
-
});
|
|
526
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
527
|
+
return b.build();
|
|
798
528
|
};
|
|
799
529
|
exports.se_ListChannelModeratorsCommand = se_ListChannelModeratorsCommand;
|
|
800
530
|
const se_ListChannelsCommand = async (input, context) => {
|
|
801
|
-
const
|
|
531
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
802
532
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
803
|
-
|
|
533
|
+
[_xacb]: input[_CB],
|
|
804
534
|
});
|
|
805
|
-
|
|
535
|
+
b.bp("/channels");
|
|
806
536
|
const query = (0, smithy_client_1.map)({
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
537
|
+
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
538
|
+
[_p]: [, input[_P]],
|
|
539
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
540
|
+
[_nt]: [, input[_NT]],
|
|
811
541
|
});
|
|
812
542
|
let body;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
hostname,
|
|
816
|
-
port,
|
|
817
|
-
method: "GET",
|
|
818
|
-
headers,
|
|
819
|
-
path: resolvedPath,
|
|
820
|
-
query,
|
|
821
|
-
body,
|
|
822
|
-
});
|
|
543
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
544
|
+
return b.build();
|
|
823
545
|
};
|
|
824
546
|
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
825
547
|
const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) => {
|
|
826
|
-
const
|
|
548
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
827
549
|
const headers = {};
|
|
828
|
-
|
|
550
|
+
b.bp("/channels");
|
|
829
551
|
const query = (0, smithy_client_1.map)({
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
552
|
+
[_s]: [, "channel-flow-associations"],
|
|
553
|
+
[_cfa]: [, (0, smithy_client_1.expectNonNull)(input[_CFA], `ChannelFlowArn`)],
|
|
554
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
555
|
+
[_nt]: [, input[_NT]],
|
|
834
556
|
});
|
|
835
557
|
let body;
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
hostname,
|
|
839
|
-
port,
|
|
840
|
-
method: "GET",
|
|
841
|
-
headers,
|
|
842
|
-
path: resolvedPath,
|
|
843
|
-
query,
|
|
844
|
-
body,
|
|
845
|
-
});
|
|
558
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
559
|
+
return b.build();
|
|
846
560
|
};
|
|
847
561
|
exports.se_ListChannelsAssociatedWithChannelFlowCommand = se_ListChannelsAssociatedWithChannelFlowCommand;
|
|
848
562
|
const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
849
|
-
const
|
|
563
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
850
564
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
851
|
-
|
|
565
|
+
[_xacb]: input[_CB],
|
|
852
566
|
});
|
|
853
|
-
|
|
567
|
+
b.bp("/channels");
|
|
854
568
|
const query = (0, smithy_client_1.map)({
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
569
|
+
[_s]: [, "app-instance-user-moderated-channels"],
|
|
570
|
+
[_aiua]: [, input[_AIUA]],
|
|
571
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
572
|
+
[_nt]: [, input[_NT]],
|
|
859
573
|
});
|
|
860
574
|
let body;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
hostname,
|
|
864
|
-
port,
|
|
865
|
-
method: "GET",
|
|
866
|
-
headers,
|
|
867
|
-
path: resolvedPath,
|
|
868
|
-
query,
|
|
869
|
-
body,
|
|
870
|
-
});
|
|
575
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
576
|
+
return b.build();
|
|
871
577
|
};
|
|
872
578
|
exports.se_ListChannelsModeratedByAppInstanceUserCommand = se_ListChannelsModeratedByAppInstanceUserCommand;
|
|
873
579
|
const se_ListSubChannelsCommand = async (input, context) => {
|
|
874
|
-
const
|
|
580
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
875
581
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
876
|
-
|
|
582
|
+
[_xacb]: input[_CB],
|
|
877
583
|
});
|
|
878
|
-
|
|
879
|
-
|
|
584
|
+
b.bp("/channels/{ChannelArn}/subchannels");
|
|
585
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
880
586
|
const query = (0, smithy_client_1.map)({
|
|
881
|
-
|
|
882
|
-
|
|
587
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
588
|
+
[_nt]: [, input[_NT]],
|
|
883
589
|
});
|
|
884
590
|
let body;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
hostname,
|
|
888
|
-
port,
|
|
889
|
-
method: "GET",
|
|
890
|
-
headers,
|
|
891
|
-
path: resolvedPath,
|
|
892
|
-
query,
|
|
893
|
-
body,
|
|
894
|
-
});
|
|
591
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
592
|
+
return b.build();
|
|
895
593
|
};
|
|
896
594
|
exports.se_ListSubChannelsCommand = se_ListSubChannelsCommand;
|
|
897
595
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
898
|
-
const
|
|
596
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
899
597
|
const headers = {};
|
|
900
|
-
|
|
598
|
+
b.bp("/tags");
|
|
901
599
|
const query = (0, smithy_client_1.map)({
|
|
902
|
-
|
|
600
|
+
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
|
|
903
601
|
});
|
|
904
602
|
let body;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
hostname,
|
|
908
|
-
port,
|
|
909
|
-
method: "GET",
|
|
910
|
-
headers,
|
|
911
|
-
path: resolvedPath,
|
|
912
|
-
query,
|
|
913
|
-
body,
|
|
914
|
-
});
|
|
603
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
604
|
+
return b.build();
|
|
915
605
|
};
|
|
916
606
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
917
607
|
const se_PutChannelExpirationSettingsCommand = async (input, context) => {
|
|
918
|
-
const
|
|
608
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
919
609
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
920
610
|
"content-type": "application/json",
|
|
921
|
-
|
|
611
|
+
[_xacb]: input[_CB],
|
|
922
612
|
});
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
613
|
+
b.bp("/channels/{ChannelArn}/expiration-settings");
|
|
614
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
926
615
|
let body;
|
|
927
616
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
928
617
|
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
929
618
|
}));
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
hostname,
|
|
933
|
-
port,
|
|
934
|
-
method: "PUT",
|
|
935
|
-
headers,
|
|
936
|
-
path: resolvedPath,
|
|
937
|
-
body,
|
|
938
|
-
});
|
|
619
|
+
b.m("PUT").h(headers).b(body);
|
|
620
|
+
return b.build();
|
|
939
621
|
};
|
|
940
622
|
exports.se_PutChannelExpirationSettingsCommand = se_PutChannelExpirationSettingsCommand;
|
|
941
623
|
const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
|
|
942
|
-
const
|
|
624
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
943
625
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
944
626
|
"content-type": "application/json",
|
|
945
|
-
|
|
627
|
+
[_xacb]: input[_CB],
|
|
946
628
|
});
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
629
|
+
b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences");
|
|
630
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
631
|
+
b.p("MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
951
632
|
let body;
|
|
952
633
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
953
634
|
Preferences: (_) => (0, smithy_client_1._json)(_),
|
|
954
635
|
}));
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
hostname,
|
|
958
|
-
port,
|
|
959
|
-
method: "PUT",
|
|
960
|
-
headers,
|
|
961
|
-
path: resolvedPath,
|
|
962
|
-
body,
|
|
963
|
-
});
|
|
636
|
+
b.m("PUT").h(headers).b(body);
|
|
637
|
+
return b.build();
|
|
964
638
|
};
|
|
965
639
|
exports.se_PutChannelMembershipPreferencesCommand = se_PutChannelMembershipPreferencesCommand;
|
|
966
640
|
const se_PutMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
967
|
-
const
|
|
641
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
968
642
|
const headers = {
|
|
969
643
|
"content-type": "application/json",
|
|
970
644
|
};
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
645
|
+
b.bp("/app-instances/{AppInstanceArn}/streaming-configurations");
|
|
646
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
974
647
|
let body;
|
|
975
648
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
976
649
|
StreamingConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
977
650
|
}));
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
hostname,
|
|
981
|
-
port,
|
|
982
|
-
method: "PUT",
|
|
983
|
-
headers,
|
|
984
|
-
path: resolvedPath,
|
|
985
|
-
body,
|
|
986
|
-
});
|
|
651
|
+
b.m("PUT").h(headers).b(body);
|
|
652
|
+
return b.build();
|
|
987
653
|
};
|
|
988
654
|
exports.se_PutMessagingStreamingConfigurationsCommand = se_PutMessagingStreamingConfigurationsCommand;
|
|
989
655
|
const se_RedactChannelMessageCommand = async (input, context) => {
|
|
990
|
-
const
|
|
656
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
991
657
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
992
658
|
"content-type": "application/json",
|
|
993
|
-
|
|
659
|
+
[_xacb]: input[_CB],
|
|
994
660
|
});
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
661
|
+
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
662
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
663
|
+
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
999
664
|
const query = (0, smithy_client_1.map)({
|
|
1000
|
-
|
|
665
|
+
[_o]: [, "redact"],
|
|
1001
666
|
});
|
|
1002
667
|
let body;
|
|
1003
668
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1004
669
|
SubChannelId: [],
|
|
1005
670
|
}));
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
hostname,
|
|
1009
|
-
port,
|
|
1010
|
-
method: "POST",
|
|
1011
|
-
headers,
|
|
1012
|
-
path: resolvedPath,
|
|
1013
|
-
query,
|
|
1014
|
-
body,
|
|
1015
|
-
});
|
|
671
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
672
|
+
return b.build();
|
|
1016
673
|
};
|
|
1017
674
|
exports.se_RedactChannelMessageCommand = se_RedactChannelMessageCommand;
|
|
1018
675
|
const se_SearchChannelsCommand = async (input, context) => {
|
|
1019
|
-
const
|
|
676
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1020
677
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1021
678
|
"content-type": "application/json",
|
|
1022
|
-
|
|
679
|
+
[_xacb]: input[_CB],
|
|
1023
680
|
});
|
|
1024
|
-
|
|
681
|
+
b.bp("/channels");
|
|
1025
682
|
const query = (0, smithy_client_1.map)({
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
683
|
+
[_o]: [, "search"],
|
|
684
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
685
|
+
[_nt]: [, input[_NT]],
|
|
1029
686
|
});
|
|
1030
687
|
let body;
|
|
1031
688
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1032
689
|
Fields: (_) => (0, smithy_client_1._json)(_),
|
|
1033
690
|
}));
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
hostname,
|
|
1037
|
-
port,
|
|
1038
|
-
method: "POST",
|
|
1039
|
-
headers,
|
|
1040
|
-
path: resolvedPath,
|
|
1041
|
-
query,
|
|
1042
|
-
body,
|
|
1043
|
-
});
|
|
691
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
692
|
+
return b.build();
|
|
1044
693
|
};
|
|
1045
694
|
exports.se_SearchChannelsCommand = se_SearchChannelsCommand;
|
|
1046
695
|
const se_SendChannelMessageCommand = async (input, context) => {
|
|
1047
|
-
const
|
|
696
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1048
697
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1049
698
|
"content-type": "application/json",
|
|
1050
|
-
|
|
699
|
+
[_xacb]: input[_CB],
|
|
1051
700
|
});
|
|
1052
|
-
|
|
1053
|
-
|
|
701
|
+
b.bp("/channels/{ChannelArn}/messages");
|
|
702
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1054
703
|
let body;
|
|
1055
704
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1056
705
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -1064,127 +713,89 @@ const se_SendChannelMessageCommand = async (input, context) => {
|
|
|
1064
713
|
Target: (_) => (0, smithy_client_1._json)(_),
|
|
1065
714
|
Type: [],
|
|
1066
715
|
}));
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
hostname,
|
|
1070
|
-
port,
|
|
1071
|
-
method: "POST",
|
|
1072
|
-
headers,
|
|
1073
|
-
path: resolvedPath,
|
|
1074
|
-
body,
|
|
1075
|
-
});
|
|
716
|
+
b.m("POST").h(headers).b(body);
|
|
717
|
+
return b.build();
|
|
1076
718
|
};
|
|
1077
719
|
exports.se_SendChannelMessageCommand = se_SendChannelMessageCommand;
|
|
1078
720
|
const se_TagResourceCommand = async (input, context) => {
|
|
1079
|
-
const
|
|
721
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1080
722
|
const headers = {
|
|
1081
723
|
"content-type": "application/json",
|
|
1082
724
|
};
|
|
1083
|
-
|
|
725
|
+
b.bp("/tags");
|
|
1084
726
|
const query = (0, smithy_client_1.map)({
|
|
1085
|
-
|
|
727
|
+
[_o]: [, "tag-resource"],
|
|
1086
728
|
});
|
|
1087
729
|
let body;
|
|
1088
730
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1089
731
|
ResourceARN: [],
|
|
1090
732
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
1091
733
|
}));
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
hostname,
|
|
1095
|
-
port,
|
|
1096
|
-
method: "POST",
|
|
1097
|
-
headers,
|
|
1098
|
-
path: resolvedPath,
|
|
1099
|
-
query,
|
|
1100
|
-
body,
|
|
1101
|
-
});
|
|
734
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
735
|
+
return b.build();
|
|
1102
736
|
};
|
|
1103
737
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1104
738
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1105
|
-
const
|
|
739
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1106
740
|
const headers = {
|
|
1107
741
|
"content-type": "application/json",
|
|
1108
742
|
};
|
|
1109
|
-
|
|
743
|
+
b.bp("/tags");
|
|
1110
744
|
const query = (0, smithy_client_1.map)({
|
|
1111
|
-
|
|
745
|
+
[_o]: [, "untag-resource"],
|
|
1112
746
|
});
|
|
1113
747
|
let body;
|
|
1114
748
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1115
749
|
ResourceARN: [],
|
|
1116
750
|
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
1117
751
|
}));
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
hostname,
|
|
1121
|
-
port,
|
|
1122
|
-
method: "POST",
|
|
1123
|
-
headers,
|
|
1124
|
-
path: resolvedPath,
|
|
1125
|
-
query,
|
|
1126
|
-
body,
|
|
1127
|
-
});
|
|
752
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
753
|
+
return b.build();
|
|
1128
754
|
};
|
|
1129
755
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1130
756
|
const se_UpdateChannelCommand = async (input, context) => {
|
|
1131
|
-
const
|
|
757
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1132
758
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1133
759
|
"content-type": "application/json",
|
|
1134
|
-
|
|
760
|
+
[_xacb]: input[_CB],
|
|
1135
761
|
});
|
|
1136
|
-
|
|
1137
|
-
|
|
762
|
+
b.bp("/channels/{ChannelArn}");
|
|
763
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1138
764
|
let body;
|
|
1139
765
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1140
766
|
Metadata: [],
|
|
1141
767
|
Mode: [],
|
|
1142
768
|
Name: [],
|
|
1143
769
|
}));
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
hostname,
|
|
1147
|
-
port,
|
|
1148
|
-
method: "PUT",
|
|
1149
|
-
headers,
|
|
1150
|
-
path: resolvedPath,
|
|
1151
|
-
body,
|
|
1152
|
-
});
|
|
770
|
+
b.m("PUT").h(headers).b(body);
|
|
771
|
+
return b.build();
|
|
1153
772
|
};
|
|
1154
773
|
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
1155
774
|
const se_UpdateChannelFlowCommand = async (input, context) => {
|
|
1156
|
-
const
|
|
775
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1157
776
|
const headers = {
|
|
1158
777
|
"content-type": "application/json",
|
|
1159
778
|
};
|
|
1160
|
-
|
|
1161
|
-
|
|
779
|
+
b.bp("/channel-flows/{ChannelFlowArn}");
|
|
780
|
+
b.p("ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
1162
781
|
let body;
|
|
1163
782
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1164
783
|
Name: [],
|
|
1165
784
|
Processors: (_) => (0, smithy_client_1._json)(_),
|
|
1166
785
|
}));
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
hostname,
|
|
1170
|
-
port,
|
|
1171
|
-
method: "PUT",
|
|
1172
|
-
headers,
|
|
1173
|
-
path: resolvedPath,
|
|
1174
|
-
body,
|
|
1175
|
-
});
|
|
786
|
+
b.m("PUT").h(headers).b(body);
|
|
787
|
+
return b.build();
|
|
1176
788
|
};
|
|
1177
789
|
exports.se_UpdateChannelFlowCommand = se_UpdateChannelFlowCommand;
|
|
1178
790
|
const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
1179
|
-
const
|
|
791
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1180
792
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1181
793
|
"content-type": "application/json",
|
|
1182
|
-
|
|
794
|
+
[_xacb]: input[_CB],
|
|
1183
795
|
});
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
796
|
+
b.bp("/channels/{ChannelArn}/messages/{MessageId}");
|
|
797
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
798
|
+
b.p("MessageId", () => input.MessageId, "{MessageId}", false);
|
|
1188
799
|
let body;
|
|
1189
800
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1190
801
|
Content: [],
|
|
@@ -1192,34 +803,20 @@ const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
|
1192
803
|
Metadata: [],
|
|
1193
804
|
SubChannelId: [],
|
|
1194
805
|
}));
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
hostname,
|
|
1198
|
-
port,
|
|
1199
|
-
method: "PUT",
|
|
1200
|
-
headers,
|
|
1201
|
-
path: resolvedPath,
|
|
1202
|
-
body,
|
|
1203
|
-
});
|
|
806
|
+
b.m("PUT").h(headers).b(body);
|
|
807
|
+
return b.build();
|
|
1204
808
|
};
|
|
1205
809
|
exports.se_UpdateChannelMessageCommand = se_UpdateChannelMessageCommand;
|
|
1206
810
|
const se_UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
1207
|
-
const
|
|
811
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1208
812
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1209
|
-
|
|
813
|
+
[_xacb]: input[_CB],
|
|
1210
814
|
});
|
|
1211
|
-
|
|
1212
|
-
|
|
815
|
+
b.bp("/channels/{ChannelArn}/readMarker");
|
|
816
|
+
b.p("ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1213
817
|
let body;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
hostname,
|
|
1217
|
-
port,
|
|
1218
|
-
method: "PUT",
|
|
1219
|
-
headers,
|
|
1220
|
-
path: resolvedPath,
|
|
1221
|
-
body,
|
|
1222
|
-
});
|
|
818
|
+
b.m("PUT").h(headers).b(body);
|
|
819
|
+
return b.build();
|
|
1223
820
|
};
|
|
1224
821
|
exports.se_UpdateChannelReadMarkerCommand = se_UpdateChannelReadMarkerCommand;
|
|
1225
822
|
const de_AssociateChannelFlowCommand = async (output, context) => {
|
|
@@ -4109,6 +3706,34 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
4109
3706
|
value !== "" &&
|
|
4110
3707
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4111
3708
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3709
|
+
const _AIA = "AppInstanceArn";
|
|
3710
|
+
const _AIUA = "AppInstanceUserArn";
|
|
3711
|
+
const _CB = "ChimeBearer";
|
|
3712
|
+
const _CFA = "ChannelFlowArn";
|
|
3713
|
+
const _MR = "MaxResults";
|
|
3714
|
+
const _NA = "NotAfter";
|
|
3715
|
+
const _NB = "NotBefore";
|
|
3716
|
+
const _NT = "NextToken";
|
|
3717
|
+
const _P = "Privacy";
|
|
3718
|
+
const _RARN = "ResourceARN";
|
|
3719
|
+
const _SCI = "SubChannelId";
|
|
3720
|
+
const _SO = "SortOrder";
|
|
3721
|
+
const _T = "Type";
|
|
3722
|
+
const _a = "arn";
|
|
3723
|
+
const _aia = "app-instance-arn";
|
|
3724
|
+
const _aiua = "app-instance-user-arn";
|
|
3725
|
+
const _cfa = "channel-flow-arn";
|
|
3726
|
+
const _mr = "max-results";
|
|
3727
|
+
const _na = "not-after";
|
|
3728
|
+
const _nb = "not-before";
|
|
3729
|
+
const _nt = "next-token";
|
|
3730
|
+
const _o = "operation";
|
|
3731
|
+
const _p = "privacy";
|
|
3732
|
+
const _s = "scope";
|
|
3733
|
+
const _sci = "sub-channel-id";
|
|
3734
|
+
const _so = "sort-order";
|
|
3735
|
+
const _t = "type";
|
|
3736
|
+
const _xacb = "x-amz-chime-bearer";
|
|
4112
3737
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4113
3738
|
if (encoded.length) {
|
|
4114
3739
|
return JSON.parse(encoded);
|