@aws-sdk/client-chime-sdk-messaging 3.316.0 → 3.320.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.
@@ -153,7 +153,7 @@ const se_CreateChannelFlowCommand = async (input, context) => {
153
153
  let body;
154
154
  body = JSON.stringify((0, smithy_client_1.take)(input, {
155
155
  AppInstanceArn: [],
156
- ClientRequestToken: [],
156
+ ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
157
157
  Name: [],
158
158
  Processors: (_) => (0, smithy_client_1._json)(_),
159
159
  Tags: (_) => (0, smithy_client_1._json)(_),
@@ -224,9 +224,6 @@ const se_DeleteChannelCommand = async (input, context) => {
224
224
  });
225
225
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
226
226
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
227
- const query = (0, smithy_client_1.map)({
228
- "sub-channel-id": [, input.SubChannelId],
229
- });
230
227
  let body;
231
228
  return new protocol_http_1.HttpRequest({
232
229
  protocol,
@@ -235,7 +232,6 @@ const se_DeleteChannelCommand = async (input, context) => {
235
232
  method: "DELETE",
236
233
  headers,
237
234
  path: resolvedPath,
238
- query,
239
235
  body,
240
236
  });
241
237
  };
@@ -1209,15 +1205,11 @@ exports.se_UpdateChannelMessageCommand = se_UpdateChannelMessageCommand;
1209
1205
  const se_UpdateChannelReadMarkerCommand = async (input, context) => {
1210
1206
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1211
1207
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1212
- "content-type": "application/json",
1213
1208
  "x-amz-chime-bearer": input.ChimeBearer,
1214
1209
  });
1215
1210
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker";
1216
1211
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
1217
1212
  let body;
1218
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1219
- SubChannelId: [],
1220
- }));
1221
1213
  return new protocol_http_1.HttpRequest({
1222
1214
  protocol,
1223
1215
  hostname,
@@ -1692,6 +1684,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
1692
1684
  case "BadRequestException":
1693
1685
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1694
1686
  throw await de_BadRequestExceptionRes(parsedOutput, context);
1687
+ case "ConflictException":
1688
+ case "com.amazonaws.chimesdkmessaging#ConflictException":
1689
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1695
1690
  case "ForbiddenException":
1696
1691
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1697
1692
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
@@ -1965,6 +1960,9 @@ const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, con
1965
1960
  };
1966
1961
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1967
1962
  switch (errorCode) {
1963
+ case "BadRequestException":
1964
+ case "com.amazonaws.chimesdkmessaging#BadRequestException":
1965
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1968
1966
  case "ForbiddenException":
1969
1967
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1970
1968
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
@@ -3780,7 +3778,6 @@ const de_UpdateChannelReadMarkerCommand = async (output, context) => {
3780
3778
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3781
3779
  const doc = (0, smithy_client_1.take)(data, {
3782
3780
  ChannelArn: smithy_client_1.expectString,
3783
- SubChannelId: smithy_client_1.expectString,
3784
3781
  });
3785
3782
  Object.assign(contents, doc);
3786
3783
  return contents;
@@ -143,7 +143,7 @@ export const se_CreateChannelFlowCommand = async (input, context) => {
143
143
  let body;
144
144
  body = JSON.stringify(take(input, {
145
145
  AppInstanceArn: [],
146
- ClientRequestToken: [],
146
+ ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
147
147
  Name: [],
148
148
  Processors: (_) => _json(_),
149
149
  Tags: (_) => _json(_),
@@ -211,9 +211,6 @@ export const se_DeleteChannelCommand = async (input, context) => {
211
211
  });
212
212
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
213
213
  resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
214
- const query = map({
215
- "sub-channel-id": [, input.SubChannelId],
216
- });
217
214
  let body;
218
215
  return new __HttpRequest({
219
216
  protocol,
@@ -222,7 +219,6 @@ export const se_DeleteChannelCommand = async (input, context) => {
222
219
  method: "DELETE",
223
220
  headers,
224
221
  path: resolvedPath,
225
- query,
226
222
  body,
227
223
  });
228
224
  };
@@ -1154,15 +1150,11 @@ export const se_UpdateChannelMessageCommand = async (input, context) => {
1154
1150
  export const se_UpdateChannelReadMarkerCommand = async (input, context) => {
1155
1151
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1156
1152
  const headers = map({}, isSerializableHeaderValue, {
1157
- "content-type": "application/json",
1158
1153
  "x-amz-chime-bearer": input.ChimeBearer,
1159
1154
  });
1160
1155
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker";
1161
1156
  resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
1162
1157
  let body;
1163
- body = JSON.stringify(take(input, {
1164
- SubChannelId: [],
1165
- }));
1166
1158
  return new __HttpRequest({
1167
1159
  protocol,
1168
1160
  hostname,
@@ -1627,6 +1619,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
1627
1619
  case "BadRequestException":
1628
1620
  case "com.amazonaws.chimesdkmessaging#BadRequestException":
1629
1621
  throw await de_BadRequestExceptionRes(parsedOutput, context);
1622
+ case "ConflictException":
1623
+ case "com.amazonaws.chimesdkmessaging#ConflictException":
1624
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1630
1625
  case "ForbiddenException":
1631
1626
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1632
1627
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
@@ -1894,6 +1889,9 @@ const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, con
1894
1889
  };
1895
1890
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1896
1891
  switch (errorCode) {
1892
+ case "BadRequestException":
1893
+ case "com.amazonaws.chimesdkmessaging#BadRequestException":
1894
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1897
1895
  case "ForbiddenException":
1898
1896
  case "com.amazonaws.chimesdkmessaging#ForbiddenException":
1899
1897
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
@@ -3674,7 +3672,6 @@ export const de_UpdateChannelReadMarkerCommand = async (output, context) => {
3674
3672
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3675
3673
  const doc = take(data, {
3676
3674
  ChannelArn: __expectString,
3677
- SubChannelId: __expectString,
3678
3675
  });
3679
3676
  Object.assign(contents, doc);
3680
3677
  return contents;
@@ -35,7 +35,6 @@ export interface DeleteChannelCommandOutput extends __MetadataBearer {
35
35
  * const input = { // DeleteChannelRequest
36
36
  * ChannelArn: "STRING_VALUE", // required
37
37
  * ChimeBearer: "STRING_VALUE", // required
38
- * SubChannelId: "STRING_VALUE",
39
38
  * };
40
39
  * const command = new DeleteChannelCommand(input);
41
40
  * const response = await client.send(command);
@@ -50,6 +49,10 @@ export interface DeleteChannelCommandOutput extends __MetadataBearer {
50
49
  * @throws {@link BadRequestException} (client fault)
51
50
  * <p>The input parameters don't match the service's restrictions.</p>
52
51
  *
52
+ * @throws {@link ConflictException} (client fault)
53
+ * <p>The request could not be processed because of conflict in the current state of the
54
+ * resource.</p>
55
+ *
53
56
  * @throws {@link ForbiddenException} (client fault)
54
57
  * <p>The client is permanently forbidden from making the request.</p>
55
58
  *
@@ -40,6 +40,9 @@ export interface DeleteMessagingStreamingConfigurationsCommandOutput extends __M
40
40
  * @see {@link DeleteMessagingStreamingConfigurationsCommandOutput} for command's `response` shape.
41
41
  * @see {@link ChimeSDKMessagingClientResolvedConfig | config} for ChimeSDKMessagingClient's `config` shape.
42
42
  *
43
+ * @throws {@link BadRequestException} (client fault)
44
+ * <p>The input parameters don't match the service's restrictions.</p>
45
+ *
43
46
  * @throws {@link ForbiddenException} (client fault)
44
47
  * <p>The client is permanently forbidden from making the request.</p>
45
48
  *
@@ -34,7 +34,6 @@ export interface UpdateChannelReadMarkerCommandOutput extends UpdateChannelReadM
34
34
  * const input = { // UpdateChannelReadMarkerRequest
35
35
  * ChannelArn: "STRING_VALUE", // required
36
36
  * ChimeBearer: "STRING_VALUE", // required
37
- * SubChannelId: "STRING_VALUE",
38
37
  * };
39
38
  * const command = new UpdateChannelReadMarkerCommand(input);
40
39
  * const response = await client.send(command);
@@ -1192,7 +1192,7 @@ export interface CreateChannelFlowRequest {
1192
1192
  /**
1193
1193
  * <p>The client token for the request. An Idempotency token.</p>
1194
1194
  */
1195
- ClientRequestToken: string | undefined;
1195
+ ClientRequestToken?: string;
1196
1196
  }
1197
1197
  /**
1198
1198
  * @public
@@ -1297,10 +1297,6 @@ export interface DeleteChannelRequest {
1297
1297
  * that makes the API call.</p>
1298
1298
  */
1299
1299
  ChimeBearer: string | undefined;
1300
- /**
1301
- * <p>The ID of the SubChannel in the request.</p>
1302
- */
1303
- SubChannelId?: string;
1304
1300
  }
1305
1301
  /**
1306
1302
  * @public
@@ -2671,10 +2667,6 @@ export interface UpdateChannelReadMarkerRequest {
2671
2667
  * that makes the API call.</p>
2672
2668
  */
2673
2669
  ChimeBearer: string | undefined;
2674
- /**
2675
- * <p>The ID of the SubChannel in the request.</p>
2676
- */
2677
- SubChannelId?: string;
2678
2670
  }
2679
2671
  /**
2680
2672
  * @public
@@ -2684,10 +2676,6 @@ export interface UpdateChannelReadMarkerResponse {
2684
2676
  * <p>The ARN of the channel.</p>
2685
2677
  */
2686
2678
  ChannelArn?: string;
2687
- /**
2688
- * <p>The ID of the SubChannel in the response.</p>
2689
- */
2690
- SubChannelId?: string;
2691
2679
  }
2692
2680
  /**
2693
2681
  * @internal
@@ -402,7 +402,7 @@ export interface CreateChannelFlowRequest {
402
402
  Processors: Processor[] | undefined;
403
403
  Name: string | undefined;
404
404
  Tags?: Tag[];
405
- ClientRequestToken: string | undefined;
405
+ ClientRequestToken?: string;
406
406
  }
407
407
  export interface CreateChannelFlowResponse {
408
408
  ChannelFlowArn?: string;
@@ -431,7 +431,6 @@ export interface CreateChannelModeratorResponse {
431
431
  export interface DeleteChannelRequest {
432
432
  ChannelArn: string | undefined;
433
433
  ChimeBearer: string | undefined;
434
- SubChannelId?: string;
435
434
  }
436
435
  export interface DeleteChannelBanRequest {
437
436
  ChannelArn: string | undefined;
@@ -824,11 +823,9 @@ export interface UpdateChannelMessageResponse {
824
823
  export interface UpdateChannelReadMarkerRequest {
825
824
  ChannelArn: string | undefined;
826
825
  ChimeBearer: string | undefined;
827
- SubChannelId?: string;
828
826
  }
829
827
  export interface UpdateChannelReadMarkerResponse {
830
828
  ChannelArn?: string;
831
- SubChannelId?: string;
832
829
  }
833
830
  export declare const IdentityFilterSensitiveLog: (obj: Identity) => any;
834
831
  export declare const BatchChannelMembershipsFilterSensitiveLog: (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-chime-sdk-messaging",
3
3
  "description": "AWS SDK for JavaScript Chime Sdk Messaging Client for Node.js, Browser and React Native",
4
- "version": "3.316.0",
4
+ "version": "3.320.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.316.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.316.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.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",
@@ -36,7 +36,7 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
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",
@@ -48,7 +48,7 @@
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
50
  "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",