@aws-sdk/client-chime-sdk-identity 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +44 -63
- package/dist-es/protocols/Aws_restJson1.js +28 -47
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-chime-sdk-identity
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -16,10 +16,9 @@ const serializeAws_restJson1CreateAppInstanceCommand = async (input, context) =>
|
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
18
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
19
|
-
...(input.Metadata
|
|
20
|
-
...(input.Name
|
|
21
|
-
...(input.Tags
|
|
22
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
19
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
20
|
+
...(input.Name != null && { Name: input.Name }),
|
|
21
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
23
22
|
});
|
|
24
23
|
return new protocol_http_1.HttpRequest({
|
|
25
24
|
protocol,
|
|
@@ -50,8 +49,7 @@ const serializeAws_restJson1CreateAppInstanceAdminCommand = async (input, contex
|
|
|
50
49
|
}
|
|
51
50
|
let body;
|
|
52
51
|
body = JSON.stringify({
|
|
53
|
-
...(input.AppInstanceAdminArn
|
|
54
|
-
input.AppInstanceAdminArn !== null && { AppInstanceAdminArn: input.AppInstanceAdminArn }),
|
|
52
|
+
...(input.AppInstanceAdminArn != null && { AppInstanceAdminArn: input.AppInstanceAdminArn }),
|
|
55
53
|
});
|
|
56
54
|
return new protocol_http_1.HttpRequest({
|
|
57
55
|
protocol,
|
|
@@ -73,15 +71,12 @@ const serializeAws_restJson1CreateAppInstanceUserCommand = async (input, context
|
|
|
73
71
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users";
|
|
74
72
|
let body;
|
|
75
73
|
body = JSON.stringify({
|
|
76
|
-
...(input.AppInstanceArn
|
|
77
|
-
|
|
78
|
-
...(input.AppInstanceUserId !== undefined &&
|
|
79
|
-
input.AppInstanceUserId !== null && { AppInstanceUserId: input.AppInstanceUserId }),
|
|
74
|
+
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
75
|
+
...(input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId }),
|
|
80
76
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
81
|
-
...(input.Metadata
|
|
82
|
-
...(input.Name
|
|
83
|
-
...(input.Tags
|
|
84
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
77
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
78
|
+
...(input.Name != null && { Name: input.Name }),
|
|
79
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
85
80
|
});
|
|
86
81
|
return new protocol_http_1.HttpRequest({
|
|
87
82
|
protocol,
|
|
@@ -518,8 +513,7 @@ const serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = async (inpu
|
|
|
518
513
|
}
|
|
519
514
|
let body;
|
|
520
515
|
body = JSON.stringify({
|
|
521
|
-
...(input.AppInstanceRetentionSettings
|
|
522
|
-
input.AppInstanceRetentionSettings !== null && {
|
|
516
|
+
...(input.AppInstanceRetentionSettings != null && {
|
|
523
517
|
AppInstanceRetentionSettings: serializeAws_restJson1AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
524
518
|
}),
|
|
525
519
|
});
|
|
@@ -554,15 +548,14 @@ const serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (inpu
|
|
|
554
548
|
}
|
|
555
549
|
let body;
|
|
556
550
|
body = JSON.stringify({
|
|
557
|
-
...(input.AllowMessages
|
|
551
|
+
...(input.AllowMessages != null && { AllowMessages: input.AllowMessages }),
|
|
558
552
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
559
|
-
...(input.EndpointAttributes
|
|
560
|
-
input.EndpointAttributes !== null && {
|
|
553
|
+
...(input.EndpointAttributes != null && {
|
|
561
554
|
EndpointAttributes: serializeAws_restJson1EndpointAttributes(input.EndpointAttributes, context),
|
|
562
555
|
}),
|
|
563
|
-
...(input.Name
|
|
564
|
-
...(input.ResourceArn
|
|
565
|
-
...(input.Type
|
|
556
|
+
...(input.Name != null && { Name: input.Name }),
|
|
557
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
558
|
+
...(input.Type != null && { Type: input.Type }),
|
|
566
559
|
});
|
|
567
560
|
return new protocol_http_1.HttpRequest({
|
|
568
561
|
protocol,
|
|
@@ -586,9 +579,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
586
579
|
};
|
|
587
580
|
let body;
|
|
588
581
|
body = JSON.stringify({
|
|
589
|
-
...(input.ResourceARN
|
|
590
|
-
...(input.Tags
|
|
591
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
582
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
583
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
592
584
|
});
|
|
593
585
|
return new protocol_http_1.HttpRequest({
|
|
594
586
|
protocol,
|
|
@@ -613,9 +605,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
613
605
|
};
|
|
614
606
|
let body;
|
|
615
607
|
body = JSON.stringify({
|
|
616
|
-
...(input.ResourceARN
|
|
617
|
-
...(input.TagKeys
|
|
618
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
608
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
609
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
619
610
|
});
|
|
620
611
|
return new protocol_http_1.HttpRequest({
|
|
621
612
|
protocol,
|
|
@@ -647,8 +638,8 @@ const serializeAws_restJson1UpdateAppInstanceCommand = async (input, context) =>
|
|
|
647
638
|
}
|
|
648
639
|
let body;
|
|
649
640
|
body = JSON.stringify({
|
|
650
|
-
...(input.Metadata
|
|
651
|
-
...(input.Name
|
|
641
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
642
|
+
...(input.Name != null && { Name: input.Name }),
|
|
652
643
|
});
|
|
653
644
|
return new protocol_http_1.HttpRequest({
|
|
654
645
|
protocol,
|
|
@@ -679,8 +670,8 @@ const serializeAws_restJson1UpdateAppInstanceUserCommand = async (input, context
|
|
|
679
670
|
}
|
|
680
671
|
let body;
|
|
681
672
|
body = JSON.stringify({
|
|
682
|
-
...(input.Metadata
|
|
683
|
-
...(input.Name
|
|
673
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
674
|
+
...(input.Name != null && { Name: input.Name }),
|
|
684
675
|
});
|
|
685
676
|
return new protocol_http_1.HttpRequest({
|
|
686
677
|
protocol,
|
|
@@ -722,8 +713,8 @@ const serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = async (input,
|
|
|
722
713
|
}
|
|
723
714
|
let body;
|
|
724
715
|
body = JSON.stringify({
|
|
725
|
-
...(input.AllowMessages
|
|
726
|
-
...(input.Name
|
|
716
|
+
...(input.AllowMessages != null && { AllowMessages: input.AllowMessages }),
|
|
717
|
+
...(input.Name != null && { Name: input.Name }),
|
|
727
718
|
});
|
|
728
719
|
return new protocol_http_1.HttpRequest({
|
|
729
720
|
protocol,
|
|
@@ -2207,28 +2198,26 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
2207
2198
|
};
|
|
2208
2199
|
const serializeAws_restJson1AppInstanceRetentionSettings = (input, context) => {
|
|
2209
2200
|
return {
|
|
2210
|
-
...(input.ChannelRetentionSettings
|
|
2211
|
-
input.ChannelRetentionSettings !== null && {
|
|
2201
|
+
...(input.ChannelRetentionSettings != null && {
|
|
2212
2202
|
ChannelRetentionSettings: serializeAws_restJson1ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
2213
2203
|
}),
|
|
2214
2204
|
};
|
|
2215
2205
|
};
|
|
2216
2206
|
const serializeAws_restJson1ChannelRetentionSettings = (input, context) => {
|
|
2217
2207
|
return {
|
|
2218
|
-
...(input.RetentionDays
|
|
2208
|
+
...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
|
|
2219
2209
|
};
|
|
2220
2210
|
};
|
|
2221
2211
|
const serializeAws_restJson1EndpointAttributes = (input, context) => {
|
|
2222
2212
|
return {
|
|
2223
|
-
...(input.DeviceToken
|
|
2224
|
-
...(input.VoipDeviceToken
|
|
2225
|
-
input.VoipDeviceToken !== null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
2213
|
+
...(input.DeviceToken != null && { DeviceToken: input.DeviceToken }),
|
|
2214
|
+
...(input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
2226
2215
|
};
|
|
2227
2216
|
};
|
|
2228
2217
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
2229
2218
|
return {
|
|
2230
|
-
...(input.Key
|
|
2231
|
-
...(input.Value
|
|
2219
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2220
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2232
2221
|
};
|
|
2233
2222
|
};
|
|
2234
2223
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -2254,10 +2243,10 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
2254
2243
|
const deserializeAws_restJson1AppInstance = (output, context) => {
|
|
2255
2244
|
return {
|
|
2256
2245
|
AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
|
|
2257
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2246
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2258
2247
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2259
2248
|
: undefined,
|
|
2260
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
2249
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2261
2250
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2262
2251
|
: undefined,
|
|
2263
2252
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
@@ -2266,11 +2255,9 @@ const deserializeAws_restJson1AppInstance = (output, context) => {
|
|
|
2266
2255
|
};
|
|
2267
2256
|
const deserializeAws_restJson1AppInstanceAdmin = (output, context) => {
|
|
2268
2257
|
return {
|
|
2269
|
-
Admin: output.Admin
|
|
2270
|
-
? deserializeAws_restJson1Identity(output.Admin, context)
|
|
2271
|
-
: undefined,
|
|
2258
|
+
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
2272
2259
|
AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
|
|
2273
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2260
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2274
2261
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2275
2262
|
: undefined,
|
|
2276
2263
|
};
|
|
@@ -2288,9 +2275,7 @@ const deserializeAws_restJson1AppInstanceAdminList = (output, context) => {
|
|
|
2288
2275
|
};
|
|
2289
2276
|
const deserializeAws_restJson1AppInstanceAdminSummary = (output, context) => {
|
|
2290
2277
|
return {
|
|
2291
|
-
Admin: output.Admin
|
|
2292
|
-
? deserializeAws_restJson1Identity(output.Admin, context)
|
|
2293
|
-
: undefined,
|
|
2278
|
+
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
2294
2279
|
};
|
|
2295
2280
|
};
|
|
2296
2281
|
const deserializeAws_restJson1AppInstanceList = (output, context) => {
|
|
@@ -2306,7 +2291,7 @@ const deserializeAws_restJson1AppInstanceList = (output, context) => {
|
|
|
2306
2291
|
};
|
|
2307
2292
|
const deserializeAws_restJson1AppInstanceRetentionSettings = (output, context) => {
|
|
2308
2293
|
return {
|
|
2309
|
-
ChannelRetentionSettings: output.ChannelRetentionSettings
|
|
2294
|
+
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
2310
2295
|
? deserializeAws_restJson1ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
2311
2296
|
: undefined,
|
|
2312
2297
|
};
|
|
@@ -2321,10 +2306,10 @@ const deserializeAws_restJson1AppInstanceSummary = (output, context) => {
|
|
|
2321
2306
|
const deserializeAws_restJson1AppInstanceUser = (output, context) => {
|
|
2322
2307
|
return {
|
|
2323
2308
|
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2324
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2309
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2325
2310
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2326
2311
|
: undefined,
|
|
2327
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
2312
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2328
2313
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2329
2314
|
: undefined,
|
|
2330
2315
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
@@ -2335,17 +2320,15 @@ const deserializeAws_restJson1AppInstanceUserEndpoint = (output, context) => {
|
|
|
2335
2320
|
return {
|
|
2336
2321
|
AllowMessages: (0, smithy_client_1.expectString)(output.AllowMessages),
|
|
2337
2322
|
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2338
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2323
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2339
2324
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2340
2325
|
: undefined,
|
|
2341
|
-
EndpointAttributes: output.EndpointAttributes
|
|
2326
|
+
EndpointAttributes: output.EndpointAttributes != null
|
|
2342
2327
|
? deserializeAws_restJson1EndpointAttributes(output.EndpointAttributes, context)
|
|
2343
2328
|
: undefined,
|
|
2344
2329
|
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2345
|
-
EndpointState: output.EndpointState
|
|
2346
|
-
|
|
2347
|
-
: undefined,
|
|
2348
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
2330
|
+
EndpointState: output.EndpointState != null ? deserializeAws_restJson1EndpointState(output.EndpointState, context) : undefined,
|
|
2331
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2349
2332
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2350
2333
|
: undefined,
|
|
2351
2334
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -2358,9 +2341,7 @@ const deserializeAws_restJson1AppInstanceUserEndpointSummary = (output, context)
|
|
|
2358
2341
|
AllowMessages: (0, smithy_client_1.expectString)(output.AllowMessages),
|
|
2359
2342
|
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2360
2343
|
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2361
|
-
EndpointState: output.EndpointState
|
|
2362
|
-
? deserializeAws_restJson1EndpointState(output.EndpointState, context)
|
|
2363
|
-
: undefined,
|
|
2344
|
+
EndpointState: output.EndpointState != null ? deserializeAws_restJson1EndpointState(output.EndpointState, context) : undefined,
|
|
2364
2345
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2365
2346
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2366
2347
|
};
|
|
@@ -16,8 +16,7 @@ export var serializeAws_restJson1CreateAppInstanceCommand = function (input, con
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances";
|
|
19
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Metadata
|
|
20
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -51,8 +50,7 @@ export var serializeAws_restJson1CreateAppInstanceAdminCommand = function (input
|
|
|
51
50
|
else {
|
|
52
51
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
53
52
|
}
|
|
54
|
-
body = JSON.stringify(__assign({}, (input.AppInstanceAdminArn
|
|
55
|
-
input.AppInstanceAdminArn !== null && { AppInstanceAdminArn: input.AppInstanceAdminArn })));
|
|
53
|
+
body = JSON.stringify(__assign({}, (input.AppInstanceAdminArn != null && { AppInstanceAdminArn: input.AppInstanceAdminArn })));
|
|
56
54
|
return [2, new __HttpRequest({
|
|
57
55
|
protocol: protocol,
|
|
58
56
|
hostname: hostname,
|
|
@@ -77,10 +75,7 @@ export var serializeAws_restJson1CreateAppInstanceUserCommand = function (input,
|
|
|
77
75
|
"content-type": "application/json",
|
|
78
76
|
};
|
|
79
77
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users";
|
|
80
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !==
|
|
81
|
-
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), (input.AppInstanceUserId !== undefined &&
|
|
82
|
-
input.AppInstanceUserId !== null && { AppInstanceUserId: input.AppInstanceUserId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
83
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
78
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
84
79
|
return [2, new __HttpRequest({
|
|
85
80
|
protocol: protocol,
|
|
86
81
|
hostname: hostname,
|
|
@@ -575,8 +570,7 @@ export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = functi
|
|
|
575
570
|
else {
|
|
576
571
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
577
572
|
}
|
|
578
|
-
body = JSON.stringify(__assign({}, (input.AppInstanceRetentionSettings
|
|
579
|
-
input.AppInstanceRetentionSettings !== null && {
|
|
573
|
+
body = JSON.stringify(__assign({}, (input.AppInstanceRetentionSettings != null && {
|
|
580
574
|
AppInstanceRetentionSettings: serializeAws_restJson1AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
581
575
|
})));
|
|
582
576
|
return [2, new __HttpRequest({
|
|
@@ -614,10 +608,9 @@ export var serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = functi
|
|
|
614
608
|
else {
|
|
615
609
|
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
616
610
|
}
|
|
617
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowMessages
|
|
618
|
-
input.EndpointAttributes !== null && {
|
|
611
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowMessages != null && { AllowMessages: input.AllowMessages })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.EndpointAttributes != null && {
|
|
619
612
|
EndpointAttributes: serializeAws_restJson1EndpointAttributes(input.EndpointAttributes, context),
|
|
620
|
-
})), (input.Name
|
|
613
|
+
})), (input.Name != null && { Name: input.Name })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Type != null && { Type: input.Type })));
|
|
621
614
|
return [2, new __HttpRequest({
|
|
622
615
|
protocol: protocol,
|
|
623
616
|
hostname: hostname,
|
|
@@ -644,8 +637,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
644
637
|
query = {
|
|
645
638
|
operation: "tag-resource",
|
|
646
639
|
};
|
|
647
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN
|
|
648
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
640
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
649
641
|
return [2, new __HttpRequest({
|
|
650
642
|
protocol: protocol,
|
|
651
643
|
hostname: hostname,
|
|
@@ -673,8 +665,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
673
665
|
query = {
|
|
674
666
|
operation: "untag-resource",
|
|
675
667
|
};
|
|
676
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN
|
|
677
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
668
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
678
669
|
return [2, new __HttpRequest({
|
|
679
670
|
protocol: protocol,
|
|
680
671
|
hostname: hostname,
|
|
@@ -709,7 +700,7 @@ export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, con
|
|
|
709
700
|
else {
|
|
710
701
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
711
702
|
}
|
|
712
|
-
body = JSON.stringify(__assign(__assign({}, (input.Metadata
|
|
703
|
+
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
713
704
|
return [2, new __HttpRequest({
|
|
714
705
|
protocol: protocol,
|
|
715
706
|
hostname: hostname,
|
|
@@ -743,7 +734,7 @@ export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input,
|
|
|
743
734
|
else {
|
|
744
735
|
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
745
736
|
}
|
|
746
|
-
body = JSON.stringify(__assign(__assign({}, (input.Metadata
|
|
737
|
+
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
747
738
|
return [2, new __HttpRequest({
|
|
748
739
|
protocol: protocol,
|
|
749
740
|
hostname: hostname,
|
|
@@ -788,7 +779,7 @@ export var serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = function
|
|
|
788
779
|
else {
|
|
789
780
|
throw new Error("No value provided for input HTTP label: EndpointId.");
|
|
790
781
|
}
|
|
791
|
-
body = JSON.stringify(__assign(__assign({}, (input.AllowMessages
|
|
782
|
+
body = JSON.stringify(__assign(__assign({}, (input.AllowMessages != null && { AllowMessages: input.AllowMessages })), (input.Name != null && { Name: input.Name })));
|
|
792
783
|
return [2, new __HttpRequest({
|
|
793
784
|
protocol: protocol,
|
|
794
785
|
hostname: hostname,
|
|
@@ -2854,20 +2845,18 @@ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (pars
|
|
|
2854
2845
|
});
|
|
2855
2846
|
}); };
|
|
2856
2847
|
var serializeAws_restJson1AppInstanceRetentionSettings = function (input, context) {
|
|
2857
|
-
return __assign({}, (input.ChannelRetentionSettings
|
|
2858
|
-
input.ChannelRetentionSettings !== null && {
|
|
2848
|
+
return __assign({}, (input.ChannelRetentionSettings != null && {
|
|
2859
2849
|
ChannelRetentionSettings: serializeAws_restJson1ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
2860
2850
|
}));
|
|
2861
2851
|
};
|
|
2862
2852
|
var serializeAws_restJson1ChannelRetentionSettings = function (input, context) {
|
|
2863
|
-
return __assign({}, (input.RetentionDays
|
|
2853
|
+
return __assign({}, (input.RetentionDays != null && { RetentionDays: input.RetentionDays }));
|
|
2864
2854
|
};
|
|
2865
2855
|
var serializeAws_restJson1EndpointAttributes = function (input, context) {
|
|
2866
|
-
return __assign(__assign({}, (input.DeviceToken
|
|
2867
|
-
input.VoipDeviceToken !== null && { VoipDeviceToken: input.VoipDeviceToken }));
|
|
2856
|
+
return __assign(__assign({}, (input.DeviceToken != null && { DeviceToken: input.DeviceToken })), (input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }));
|
|
2868
2857
|
};
|
|
2869
2858
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
2870
|
-
return __assign(__assign({}, (input.Key
|
|
2859
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
2871
2860
|
};
|
|
2872
2861
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
2873
2862
|
return input
|
|
@@ -2892,10 +2881,10 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
2892
2881
|
var deserializeAws_restJson1AppInstance = function (output, context) {
|
|
2893
2882
|
return {
|
|
2894
2883
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
2895
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2884
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2896
2885
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2897
2886
|
: undefined,
|
|
2898
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
2887
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2899
2888
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2900
2889
|
: undefined,
|
|
2901
2890
|
Metadata: __expectString(output.Metadata),
|
|
@@ -2904,11 +2893,9 @@ var deserializeAws_restJson1AppInstance = function (output, context) {
|
|
|
2904
2893
|
};
|
|
2905
2894
|
var deserializeAws_restJson1AppInstanceAdmin = function (output, context) {
|
|
2906
2895
|
return {
|
|
2907
|
-
Admin: output.Admin
|
|
2908
|
-
? deserializeAws_restJson1Identity(output.Admin, context)
|
|
2909
|
-
: undefined,
|
|
2896
|
+
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
2910
2897
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
2911
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2898
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2912
2899
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2913
2900
|
: undefined,
|
|
2914
2901
|
};
|
|
@@ -2926,9 +2913,7 @@ var deserializeAws_restJson1AppInstanceAdminList = function (output, context) {
|
|
|
2926
2913
|
};
|
|
2927
2914
|
var deserializeAws_restJson1AppInstanceAdminSummary = function (output, context) {
|
|
2928
2915
|
return {
|
|
2929
|
-
Admin: output.Admin
|
|
2930
|
-
? deserializeAws_restJson1Identity(output.Admin, context)
|
|
2931
|
-
: undefined,
|
|
2916
|
+
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
2932
2917
|
};
|
|
2933
2918
|
};
|
|
2934
2919
|
var deserializeAws_restJson1AppInstanceList = function (output, context) {
|
|
@@ -2944,7 +2929,7 @@ var deserializeAws_restJson1AppInstanceList = function (output, context) {
|
|
|
2944
2929
|
};
|
|
2945
2930
|
var deserializeAws_restJson1AppInstanceRetentionSettings = function (output, context) {
|
|
2946
2931
|
return {
|
|
2947
|
-
ChannelRetentionSettings: output.ChannelRetentionSettings
|
|
2932
|
+
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
2948
2933
|
? deserializeAws_restJson1ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
2949
2934
|
: undefined,
|
|
2950
2935
|
};
|
|
@@ -2959,10 +2944,10 @@ var deserializeAws_restJson1AppInstanceSummary = function (output, context) {
|
|
|
2959
2944
|
var deserializeAws_restJson1AppInstanceUser = function (output, context) {
|
|
2960
2945
|
return {
|
|
2961
2946
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2962
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2947
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2963
2948
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2964
2949
|
: undefined,
|
|
2965
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
2950
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2966
2951
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2967
2952
|
: undefined,
|
|
2968
2953
|
Metadata: __expectString(output.Metadata),
|
|
@@ -2973,17 +2958,15 @@ var deserializeAws_restJson1AppInstanceUserEndpoint = function (output, context)
|
|
|
2973
2958
|
return {
|
|
2974
2959
|
AllowMessages: __expectString(output.AllowMessages),
|
|
2975
2960
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2976
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
2961
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2977
2962
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2978
2963
|
: undefined,
|
|
2979
|
-
EndpointAttributes: output.EndpointAttributes
|
|
2964
|
+
EndpointAttributes: output.EndpointAttributes != null
|
|
2980
2965
|
? deserializeAws_restJson1EndpointAttributes(output.EndpointAttributes, context)
|
|
2981
2966
|
: undefined,
|
|
2982
2967
|
EndpointId: __expectString(output.EndpointId),
|
|
2983
|
-
EndpointState: output.EndpointState
|
|
2984
|
-
|
|
2985
|
-
: undefined,
|
|
2986
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
2968
|
+
EndpointState: output.EndpointState != null ? deserializeAws_restJson1EndpointState(output.EndpointState, context) : undefined,
|
|
2969
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2987
2970
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2988
2971
|
: undefined,
|
|
2989
2972
|
Name: __expectString(output.Name),
|
|
@@ -2996,9 +2979,7 @@ var deserializeAws_restJson1AppInstanceUserEndpointSummary = function (output, c
|
|
|
2996
2979
|
AllowMessages: __expectString(output.AllowMessages),
|
|
2997
2980
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2998
2981
|
EndpointId: __expectString(output.EndpointId),
|
|
2999
|
-
EndpointState: output.EndpointState
|
|
3000
|
-
? deserializeAws_restJson1EndpointState(output.EndpointState, context)
|
|
3001
|
-
: undefined,
|
|
2982
|
+
EndpointState: output.EndpointState != null ? deserializeAws_restJson1EndpointState(output.EndpointState, context) : undefined,
|
|
3002
2983
|
Name: __expectString(output.Name),
|
|
3003
2984
|
Type: __expectString(output.Type),
|
|
3004
2985
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-chime-sdk-identity",
|
|
3
3
|
"description": "AWS SDK for JavaScript Chime Sdk Identity Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|