@aws-sdk/client-chime-sdk-messaging 3.28.0 → 3.32.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/CHANGELOG.md +35 -0
- package/ChimeSDKMessaging.ts +2 -1
- package/ChimeSDKMessagingClient.ts +2 -1
- package/README.md +2 -1
- package/dist/cjs/ChimeSDKMessaging.js +2 -1
- package/dist/cjs/ChimeSDKMessaging.js.map +1 -1
- package/dist/cjs/ChimeSDKMessagingClient.js +2 -1
- package/dist/cjs/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +40 -40
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/ChimeSDKMessaging.js +2 -1
- package/dist/es/ChimeSDKMessaging.js.map +1 -1
- package/dist/es/ChimeSDKMessagingClient.js +2 -1
- package/dist/es/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +166 -116
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ChimeSDKMessagingClient.d.ts +2 -1
- package/dist/types/ts3.4/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ts3.4/ChimeSDKMessagingClient.d.ts +2 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +44 -40
|
@@ -34,7 +34,8 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
|
34
34
|
* <p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send
|
|
35
35
|
* and receive messages in custom messaging applications. These APIs depend on the frameworks
|
|
36
36
|
* provided by the Amazon Chime SDK Identity APIs. For more information about the messaging
|
|
37
|
-
* APIs, see
|
|
37
|
+
* APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging">Amazon Chime SDK messaging</a>
|
|
38
|
+
* </p>
|
|
38
39
|
*/
|
|
39
40
|
export declare class ChimeSDKMessaging extends ChimeSDKMessagingClient {
|
|
40
41
|
/**
|
|
@@ -147,7 +147,8 @@ export interface ChimeSDKMessagingClientResolvedConfig extends ChimeSDKMessaging
|
|
|
147
147
|
* <p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send
|
|
148
148
|
* and receive messages in custom messaging applications. These APIs depend on the frameworks
|
|
149
149
|
* provided by the Amazon Chime SDK Identity APIs. For more information about the messaging
|
|
150
|
-
* APIs, see
|
|
150
|
+
* APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging">Amazon Chime SDK messaging</a>
|
|
151
|
+
* </p>
|
|
151
152
|
*/
|
|
152
153
|
export declare class ChimeSDKMessagingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ChimeSDKMessagingClientResolvedConfig> {
|
|
153
154
|
/**
|
|
@@ -34,7 +34,8 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
|
34
34
|
* <p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send
|
|
35
35
|
* and receive messages in custom messaging applications. These APIs depend on the frameworks
|
|
36
36
|
* provided by the Amazon Chime SDK Identity APIs. For more information about the messaging
|
|
37
|
-
* APIs, see
|
|
37
|
+
* APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging">Amazon Chime SDK messaging</a>
|
|
38
|
+
* </p>
|
|
38
39
|
*/
|
|
39
40
|
export declare class ChimeSDKMessaging extends ChimeSDKMessagingClient {
|
|
40
41
|
/**
|
|
@@ -147,7 +147,8 @@ export interface ChimeSDKMessagingClientResolvedConfig extends ChimeSDKMessaging
|
|
|
147
147
|
* <p>The Amazon Chime SDK Messaging APIs in this section allow software developers to send
|
|
148
148
|
* and receive messages in custom messaging applications. These APIs depend on the frameworks
|
|
149
149
|
* provided by the Amazon Chime SDK Identity APIs. For more information about the messaging
|
|
150
|
-
* APIs, see
|
|
150
|
+
* APIs, see <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging">Amazon Chime SDK messaging</a>
|
|
151
|
+
* </p>
|
|
151
152
|
*/
|
|
152
153
|
export declare class ChimeSDKMessagingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ChimeSDKMessagingClientResolvedConfig> {
|
|
153
154
|
/**
|
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.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.1.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.1.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0",
|
|
59
59
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
62
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
63
63
|
"@types/node": "^12.7.5",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rimraf": "^3.0.0",
|
|
68
68
|
"ts-jest": "^26.4.1",
|
|
69
69
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.3.
|
|
70
|
+
"typescript": "~4.3.5"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=10.0.0"
|
|
@@ -117,8 +117,12 @@ import {
|
|
|
117
117
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
118
118
|
import {
|
|
119
119
|
expectBoolean as __expectBoolean,
|
|
120
|
+
expectNonNull as __expectNonNull,
|
|
121
|
+
expectNumber as __expectNumber,
|
|
122
|
+
expectObject as __expectObject,
|
|
120
123
|
expectString as __expectString,
|
|
121
124
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
125
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
122
126
|
} from "@aws-sdk/smithy-client";
|
|
123
127
|
import {
|
|
124
128
|
Endpoint as __Endpoint,
|
|
@@ -1232,7 +1236,7 @@ export const deserializeAws_restJson1BatchCreateChannelMembershipCommand = async
|
|
|
1232
1236
|
BatchChannelMemberships: undefined,
|
|
1233
1237
|
Errors: undefined,
|
|
1234
1238
|
};
|
|
1235
|
-
const data: any = await parseBody(output.body, context);
|
|
1239
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1236
1240
|
if (data.BatchChannelMemberships !== undefined && data.BatchChannelMemberships !== null) {
|
|
1237
1241
|
contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(
|
|
1238
1242
|
data.BatchChannelMemberships,
|
|
@@ -1333,7 +1337,7 @@ export const deserializeAws_restJson1CreateChannelCommand = async (
|
|
|
1333
1337
|
$metadata: deserializeMetadata(output),
|
|
1334
1338
|
ChannelArn: undefined,
|
|
1335
1339
|
};
|
|
1336
|
-
const data: any = await parseBody(output.body, context);
|
|
1340
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1337
1341
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1338
1342
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1339
1343
|
}
|
|
@@ -1445,7 +1449,7 @@ export const deserializeAws_restJson1CreateChannelBanCommand = async (
|
|
|
1445
1449
|
ChannelArn: undefined,
|
|
1446
1450
|
Member: undefined,
|
|
1447
1451
|
};
|
|
1448
|
-
const data: any = await parseBody(output.body, context);
|
|
1452
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1449
1453
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1450
1454
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1451
1455
|
}
|
|
@@ -1560,7 +1564,7 @@ export const deserializeAws_restJson1CreateChannelMembershipCommand = async (
|
|
|
1560
1564
|
ChannelArn: undefined,
|
|
1561
1565
|
Member: undefined,
|
|
1562
1566
|
};
|
|
1563
|
-
const data: any = await parseBody(output.body, context);
|
|
1567
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1564
1568
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1565
1569
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1566
1570
|
}
|
|
@@ -1675,7 +1679,7 @@ export const deserializeAws_restJson1CreateChannelModeratorCommand = async (
|
|
|
1675
1679
|
ChannelArn: undefined,
|
|
1676
1680
|
ChannelModerator: undefined,
|
|
1677
1681
|
};
|
|
1678
|
-
const data: any = await parseBody(output.body, context);
|
|
1682
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1679
1683
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1680
1684
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1681
1685
|
}
|
|
@@ -2252,7 +2256,7 @@ export const deserializeAws_restJson1DescribeChannelCommand = async (
|
|
|
2252
2256
|
$metadata: deserializeMetadata(output),
|
|
2253
2257
|
Channel: undefined,
|
|
2254
2258
|
};
|
|
2255
|
-
const data: any = await parseBody(output.body, context);
|
|
2259
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2256
2260
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2257
2261
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
2258
2262
|
}
|
|
@@ -2347,7 +2351,7 @@ export const deserializeAws_restJson1DescribeChannelBanCommand = async (
|
|
|
2347
2351
|
$metadata: deserializeMetadata(output),
|
|
2348
2352
|
ChannelBan: undefined,
|
|
2349
2353
|
};
|
|
2350
|
-
const data: any = await parseBody(output.body, context);
|
|
2354
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2351
2355
|
if (data.ChannelBan !== undefined && data.ChannelBan !== null) {
|
|
2352
2356
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
2353
2357
|
}
|
|
@@ -2450,7 +2454,7 @@ export const deserializeAws_restJson1DescribeChannelMembershipCommand = async (
|
|
|
2450
2454
|
$metadata: deserializeMetadata(output),
|
|
2451
2455
|
ChannelMembership: undefined,
|
|
2452
2456
|
};
|
|
2453
|
-
const data: any = await parseBody(output.body, context);
|
|
2457
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2454
2458
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2455
2459
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
2456
2460
|
}
|
|
@@ -2553,7 +2557,7 @@ export const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUser
|
|
|
2553
2557
|
$metadata: deserializeMetadata(output),
|
|
2554
2558
|
ChannelMembership: undefined,
|
|
2555
2559
|
};
|
|
2556
|
-
const data: any = await parseBody(output.body, context);
|
|
2560
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2557
2561
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2558
2562
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(
|
|
2559
2563
|
data.ChannelMembership,
|
|
@@ -2651,7 +2655,7 @@ export const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCo
|
|
|
2651
2655
|
$metadata: deserializeMetadata(output),
|
|
2652
2656
|
Channel: undefined,
|
|
2653
2657
|
};
|
|
2654
|
-
const data: any = await parseBody(output.body, context);
|
|
2658
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2655
2659
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2656
2660
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
2657
2661
|
}
|
|
@@ -2746,7 +2750,7 @@ export const deserializeAws_restJson1DescribeChannelModeratorCommand = async (
|
|
|
2746
2750
|
$metadata: deserializeMetadata(output),
|
|
2747
2751
|
ChannelModerator: undefined,
|
|
2748
2752
|
};
|
|
2749
|
-
const data: any = await parseBody(output.body, context);
|
|
2753
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2750
2754
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
2751
2755
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
2752
2756
|
}
|
|
@@ -2849,7 +2853,7 @@ export const deserializeAws_restJson1GetChannelMessageCommand = async (
|
|
|
2849
2853
|
$metadata: deserializeMetadata(output),
|
|
2850
2854
|
ChannelMessage: undefined,
|
|
2851
2855
|
};
|
|
2852
|
-
const data: any = await parseBody(output.body, context);
|
|
2856
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2853
2857
|
if (data.ChannelMessage !== undefined && data.ChannelMessage !== null) {
|
|
2854
2858
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
2855
2859
|
}
|
|
@@ -2952,7 +2956,7 @@ export const deserializeAws_restJson1GetMessagingSessionEndpointCommand = async
|
|
|
2952
2956
|
$metadata: deserializeMetadata(output),
|
|
2953
2957
|
Endpoint: undefined,
|
|
2954
2958
|
};
|
|
2955
|
-
const data: any = await parseBody(output.body, context);
|
|
2959
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2956
2960
|
if (data.Endpoint !== undefined && data.Endpoint !== null) {
|
|
2957
2961
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
2958
2962
|
}
|
|
@@ -3041,7 +3045,7 @@ export const deserializeAws_restJson1ListChannelBansCommand = async (
|
|
|
3041
3045
|
ChannelBans: undefined,
|
|
3042
3046
|
NextToken: undefined,
|
|
3043
3047
|
};
|
|
3044
|
-
const data: any = await parseBody(output.body, context);
|
|
3048
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3045
3049
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3046
3050
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3047
3051
|
}
|
|
@@ -3144,7 +3148,7 @@ export const deserializeAws_restJson1ListChannelMembershipsCommand = async (
|
|
|
3144
3148
|
ChannelMemberships: undefined,
|
|
3145
3149
|
NextToken: undefined,
|
|
3146
3150
|
};
|
|
3147
|
-
const data: any = await parseBody(output.body, context);
|
|
3151
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3148
3152
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3149
3153
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3150
3154
|
}
|
|
@@ -3249,7 +3253,7 @@ export const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCom
|
|
|
3249
3253
|
ChannelMemberships: undefined,
|
|
3250
3254
|
NextToken: undefined,
|
|
3251
3255
|
};
|
|
3252
|
-
const data: any = await parseBody(output.body, context);
|
|
3256
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3253
3257
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
3254
3258
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(
|
|
3255
3259
|
data.ChannelMemberships,
|
|
@@ -3352,7 +3356,7 @@ export const deserializeAws_restJson1ListChannelMessagesCommand = async (
|
|
|
3352
3356
|
ChannelMessages: undefined,
|
|
3353
3357
|
NextToken: undefined,
|
|
3354
3358
|
};
|
|
3355
|
-
const data: any = await parseBody(output.body, context);
|
|
3359
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3356
3360
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3357
3361
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3358
3362
|
}
|
|
@@ -3455,7 +3459,7 @@ export const deserializeAws_restJson1ListChannelModeratorsCommand = async (
|
|
|
3455
3459
|
ChannelModerators: undefined,
|
|
3456
3460
|
NextToken: undefined,
|
|
3457
3461
|
};
|
|
3458
|
-
const data: any = await parseBody(output.body, context);
|
|
3462
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3459
3463
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3460
3464
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3461
3465
|
}
|
|
@@ -3557,7 +3561,7 @@ export const deserializeAws_restJson1ListChannelsCommand = async (
|
|
|
3557
3561
|
Channels: undefined,
|
|
3558
3562
|
NextToken: undefined,
|
|
3559
3563
|
};
|
|
3560
|
-
const data: any = await parseBody(output.body, context);
|
|
3564
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3561
3565
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3562
3566
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
3563
3567
|
}
|
|
@@ -3656,7 +3660,7 @@ export const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserComma
|
|
|
3656
3660
|
Channels: undefined,
|
|
3657
3661
|
NextToken: undefined,
|
|
3658
3662
|
};
|
|
3659
|
-
const data: any = await parseBody(output.body, context);
|
|
3663
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3660
3664
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3661
3665
|
contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
3662
3666
|
}
|
|
@@ -3755,7 +3759,7 @@ export const deserializeAws_restJson1RedactChannelMessageCommand = async (
|
|
|
3755
3759
|
ChannelArn: undefined,
|
|
3756
3760
|
MessageId: undefined,
|
|
3757
3761
|
};
|
|
3758
|
-
const data: any = await parseBody(output.body, context);
|
|
3762
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3759
3763
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3760
3764
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3761
3765
|
}
|
|
@@ -3854,7 +3858,7 @@ export const deserializeAws_restJson1SendChannelMessageCommand = async (
|
|
|
3854
3858
|
ChannelArn: undefined,
|
|
3855
3859
|
MessageId: undefined,
|
|
3856
3860
|
};
|
|
3857
|
-
const data: any = await parseBody(output.body, context);
|
|
3861
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3858
3862
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3859
3863
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3860
3864
|
}
|
|
@@ -3960,7 +3964,7 @@ export const deserializeAws_restJson1UpdateChannelCommand = async (
|
|
|
3960
3964
|
$metadata: deserializeMetadata(output),
|
|
3961
3965
|
ChannelArn: undefined,
|
|
3962
3966
|
};
|
|
3963
|
-
const data: any = await parseBody(output.body, context);
|
|
3967
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3964
3968
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3965
3969
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3966
3970
|
}
|
|
@@ -4064,7 +4068,7 @@ export const deserializeAws_restJson1UpdateChannelMessageCommand = async (
|
|
|
4064
4068
|
ChannelArn: undefined,
|
|
4065
4069
|
MessageId: undefined,
|
|
4066
4070
|
};
|
|
4067
|
-
const data: any = await parseBody(output.body, context);
|
|
4071
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4068
4072
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
4069
4073
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4070
4074
|
}
|
|
@@ -4170,7 +4174,7 @@ export const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (
|
|
|
4170
4174
|
$metadata: deserializeMetadata(output),
|
|
4171
4175
|
ChannelArn: undefined,
|
|
4172
4176
|
};
|
|
4173
|
-
const data: any = await parseBody(output.body, context);
|
|
4177
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4174
4178
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
4175
4179
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4176
4180
|
}
|
|
@@ -4487,7 +4491,7 @@ const deserializeAws_restJson1AppInstanceUserMembershipSummary = (
|
|
|
4487
4491
|
return {
|
|
4488
4492
|
ReadMarkerTimestamp:
|
|
4489
4493
|
output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
|
|
4490
|
-
?
|
|
4494
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
|
|
4491
4495
|
: undefined,
|
|
4492
4496
|
Type: __expectString(output.Type),
|
|
4493
4497
|
} as any;
|
|
@@ -4545,15 +4549,15 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext):
|
|
|
4545
4549
|
: undefined,
|
|
4546
4550
|
CreatedTimestamp:
|
|
4547
4551
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4548
|
-
?
|
|
4552
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4549
4553
|
: undefined,
|
|
4550
4554
|
LastMessageTimestamp:
|
|
4551
4555
|
output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4552
|
-
?
|
|
4556
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
4553
4557
|
: undefined,
|
|
4554
4558
|
LastUpdatedTimestamp:
|
|
4555
4559
|
output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4556
|
-
?
|
|
4560
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4557
4561
|
: undefined,
|
|
4558
4562
|
Metadata: __expectString(output.Metadata),
|
|
4559
4563
|
Mode: __expectString(output.Mode),
|
|
@@ -4571,7 +4575,7 @@ const deserializeAws_restJson1ChannelBan = (output: any, context: __SerdeContext
|
|
|
4571
4575
|
: undefined,
|
|
4572
4576
|
CreatedTimestamp:
|
|
4573
4577
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4574
|
-
?
|
|
4578
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4575
4579
|
: undefined,
|
|
4576
4580
|
Member:
|
|
4577
4581
|
output.Member !== undefined && output.Member !== null
|
|
@@ -4605,7 +4609,7 @@ const deserializeAws_restJson1ChannelMembership = (output: any, context: __Serde
|
|
|
4605
4609
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4606
4610
|
CreatedTimestamp:
|
|
4607
4611
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4608
|
-
?
|
|
4612
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4609
4613
|
: undefined,
|
|
4610
4614
|
InvitedBy:
|
|
4611
4615
|
output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
@@ -4613,7 +4617,7 @@ const deserializeAws_restJson1ChannelMembership = (output: any, context: __Serde
|
|
|
4613
4617
|
: undefined,
|
|
4614
4618
|
LastUpdatedTimestamp:
|
|
4615
4619
|
output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4616
|
-
?
|
|
4620
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4617
4621
|
: undefined,
|
|
4618
4622
|
Member:
|
|
4619
4623
|
output.Member !== undefined && output.Member !== null
|
|
@@ -4685,15 +4689,15 @@ const deserializeAws_restJson1ChannelMessage = (output: any, context: __SerdeCon
|
|
|
4685
4689
|
Content: __expectString(output.Content),
|
|
4686
4690
|
CreatedTimestamp:
|
|
4687
4691
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4688
|
-
?
|
|
4692
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4689
4693
|
: undefined,
|
|
4690
4694
|
LastEditedTimestamp:
|
|
4691
4695
|
output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4692
|
-
?
|
|
4696
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
4693
4697
|
: undefined,
|
|
4694
4698
|
LastUpdatedTimestamp:
|
|
4695
4699
|
output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4696
|
-
?
|
|
4700
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4697
4701
|
: undefined,
|
|
4698
4702
|
MessageId: __expectString(output.MessageId),
|
|
4699
4703
|
Metadata: __expectString(output.Metadata),
|
|
@@ -4712,15 +4716,15 @@ const deserializeAws_restJson1ChannelMessageSummary = (output: any, context: __S
|
|
|
4712
4716
|
Content: __expectString(output.Content),
|
|
4713
4717
|
CreatedTimestamp:
|
|
4714
4718
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4715
|
-
?
|
|
4719
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4716
4720
|
: undefined,
|
|
4717
4721
|
LastEditedTimestamp:
|
|
4718
4722
|
output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4719
|
-
?
|
|
4723
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
4720
4724
|
: undefined,
|
|
4721
4725
|
LastUpdatedTimestamp:
|
|
4722
4726
|
output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4723
|
-
?
|
|
4727
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4724
4728
|
: undefined,
|
|
4725
4729
|
MessageId: __expectString(output.MessageId),
|
|
4726
4730
|
Metadata: __expectString(output.Metadata),
|
|
@@ -4782,7 +4786,7 @@ const deserializeAws_restJson1ChannelModerator = (output: any, context: __SerdeC
|
|
|
4782
4786
|
: undefined,
|
|
4783
4787
|
CreatedTimestamp:
|
|
4784
4788
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4785
|
-
?
|
|
4789
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4786
4790
|
: undefined,
|
|
4787
4791
|
Moderator:
|
|
4788
4792
|
output.Moderator !== undefined && output.Moderator !== null
|
|
@@ -4822,7 +4826,7 @@ const deserializeAws_restJson1ChannelSummary = (output: any, context: __SerdeCon
|
|
|
4822
4826
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4823
4827
|
LastMessageTimestamp:
|
|
4824
4828
|
output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4825
|
-
?
|
|
4829
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
4826
4830
|
: undefined,
|
|
4827
4831
|
Metadata: __expectString(output.Metadata),
|
|
4828
4832
|
Mode: __expectString(output.Mode),
|