@aws-sdk/client-chime-sdk-identity 3.297.0 → 3.298.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/README.md +48 -0
- package/dist-cjs/ChimeSDKIdentity.js +90 -0
- package/dist-cjs/commands/CreateAppInstanceAdminCommand.js +1 -1
- package/dist-cjs/commands/CreateAppInstanceBotCommand.js +46 -0
- package/dist-cjs/commands/CreateAppInstanceCommand.js +1 -1
- package/dist-cjs/commands/CreateAppInstanceUserCommand.js +1 -1
- package/dist-cjs/commands/DeleteAppInstanceAdminCommand.js +2 -3
- package/dist-cjs/commands/DeleteAppInstanceBotCommand.js +45 -0
- package/dist-cjs/commands/DeleteAppInstanceCommand.js +2 -3
- package/dist-cjs/commands/DeleteAppInstanceUserCommand.js +2 -3
- package/dist-cjs/commands/DeregisterAppInstanceUserEndpointCommand.js +1 -1
- package/dist-cjs/commands/DescribeAppInstanceAdminCommand.js +1 -1
- package/dist-cjs/commands/DescribeAppInstanceBotCommand.js +46 -0
- package/dist-cjs/commands/DescribeAppInstanceCommand.js +1 -1
- package/dist-cjs/commands/DescribeAppInstanceUserCommand.js +1 -1
- package/dist-cjs/commands/GetAppInstanceRetentionSettingsCommand.js +2 -3
- package/dist-cjs/commands/ListAppInstanceBotsCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -1
- package/dist-cjs/commands/PutAppInstanceRetentionSettingsCommand.js +2 -3
- package/dist-cjs/commands/PutAppInstanceUserExpirationSettingsCommand.js +45 -0
- package/dist-cjs/commands/TagResourceCommand.js +1 -1
- package/dist-cjs/commands/UntagResourceCommand.js +1 -1
- package/dist-cjs/commands/UpdateAppInstanceBotCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppInstanceCommand.js +1 -1
- package/dist-cjs/commands/UpdateAppInstanceUserCommand.js +1 -1
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +62 -77
- package/dist-cjs/pagination/ListAppInstanceBotsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +552 -1
- package/dist-es/ChimeSDKIdentity.js +90 -0
- package/dist-es/commands/CreateAppInstanceAdminCommand.js +2 -2
- package/dist-es/commands/CreateAppInstanceBotCommand.js +42 -0
- package/dist-es/commands/CreateAppInstanceCommand.js +2 -2
- package/dist-es/commands/CreateAppInstanceUserCommand.js +2 -2
- package/dist-es/commands/DeleteAppInstanceAdminCommand.js +2 -3
- package/dist-es/commands/DeleteAppInstanceBotCommand.js +41 -0
- package/dist-es/commands/DeleteAppInstanceCommand.js +2 -3
- package/dist-es/commands/DeleteAppInstanceUserCommand.js +2 -3
- package/dist-es/commands/DeregisterAppInstanceUserEndpointCommand.js +1 -1
- package/dist-es/commands/DescribeAppInstanceAdminCommand.js +2 -2
- package/dist-es/commands/DescribeAppInstanceBotCommand.js +42 -0
- package/dist-es/commands/DescribeAppInstanceCommand.js +2 -2
- package/dist-es/commands/DescribeAppInstanceUserCommand.js +2 -2
- package/dist-es/commands/GetAppInstanceRetentionSettingsCommand.js +2 -3
- package/dist-es/commands/ListAppInstanceBotsCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/PutAppInstanceRetentionSettingsCommand.js +2 -3
- package/dist-es/commands/PutAppInstanceUserExpirationSettingsCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -1
- package/dist-es/commands/UpdateAppInstanceBotCommand.js +42 -0
- package/dist-es/commands/UpdateAppInstanceCommand.js +2 -2
- package/dist-es/commands/UpdateAppInstanceUserCommand.js +2 -2
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +51 -55
- package/dist-es/pagination/ListAppInstanceBotsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +539 -1
- package/dist-types/ChimeSDKIdentity.d.ts +61 -6
- package/dist-types/ChimeSDKIdentityClient.d.ts +8 -2
- package/dist-types/commands/CreateAppInstanceAdminCommand.d.ts +4 -5
- package/dist-types/commands/CreateAppInstanceBotCommand.d.ts +86 -0
- package/dist-types/commands/DeleteAppInstanceAdminCommand.d.ts +2 -1
- package/dist-types/commands/DeleteAppInstanceBotCommand.d.ts +85 -0
- package/dist-types/commands/DescribeAppInstanceBotCommand.d.ts +81 -0
- package/dist-types/commands/ListAppInstanceBotsCommand.d.ts +81 -0
- package/dist-types/commands/PutAppInstanceUserExpirationSettingsCommand.d.ts +88 -0
- package/dist-types/commands/UpdateAppInstanceBotCommand.d.ts +85 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +302 -66
- package/dist-types/pagination/ListAppInstanceBotsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/ChimeSDKIdentity.d.ts +108 -0
- package/dist-types/ts3.4/ChimeSDKIdentityClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateAppInstanceBotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAppInstanceBotCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DescribeAppInstanceBotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListAppInstanceBotsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutAppInstanceUserExpirationSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateAppInstanceBotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +106 -55
- package/dist-types/ts3.4/pagination/ListAppInstanceBotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +4 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_restJson1ListAppInstanceUsersCommand = exports.deserializeAws_restJson1ListAppInstanceUserEndpointsCommand = exports.deserializeAws_restJson1ListAppInstancesCommand = exports.deserializeAws_restJson1ListAppInstanceBotsCommand = exports.deserializeAws_restJson1ListAppInstanceAdminsCommand = exports.deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = exports.deserializeAws_restJson1DescribeAppInstanceUserEndpointCommand = exports.deserializeAws_restJson1DescribeAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeAppInstanceBotCommand = exports.deserializeAws_restJson1DescribeAppInstanceAdminCommand = exports.deserializeAws_restJson1DescribeAppInstanceCommand = exports.deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = exports.deserializeAws_restJson1DeleteAppInstanceUserCommand = exports.deserializeAws_restJson1DeleteAppInstanceBotCommand = exports.deserializeAws_restJson1DeleteAppInstanceAdminCommand = exports.deserializeAws_restJson1DeleteAppInstanceCommand = exports.deserializeAws_restJson1CreateAppInstanceUserCommand = exports.deserializeAws_restJson1CreateAppInstanceBotCommand = exports.deserializeAws_restJson1CreateAppInstanceAdminCommand = exports.deserializeAws_restJson1CreateAppInstanceCommand = exports.serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = exports.serializeAws_restJson1UpdateAppInstanceUserCommand = exports.serializeAws_restJson1UpdateAppInstanceBotCommand = exports.serializeAws_restJson1UpdateAppInstanceCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = exports.serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = exports.serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListAppInstanceUsersCommand = exports.serializeAws_restJson1ListAppInstanceUserEndpointsCommand = exports.serializeAws_restJson1ListAppInstancesCommand = exports.serializeAws_restJson1ListAppInstanceBotsCommand = exports.serializeAws_restJson1ListAppInstanceAdminsCommand = exports.serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = exports.serializeAws_restJson1DescribeAppInstanceUserEndpointCommand = exports.serializeAws_restJson1DescribeAppInstanceUserCommand = exports.serializeAws_restJson1DescribeAppInstanceBotCommand = exports.serializeAws_restJson1DescribeAppInstanceAdminCommand = exports.serializeAws_restJson1DescribeAppInstanceCommand = exports.serializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = exports.serializeAws_restJson1DeleteAppInstanceUserCommand = exports.serializeAws_restJson1DeleteAppInstanceBotCommand = exports.serializeAws_restJson1DeleteAppInstanceAdminCommand = exports.serializeAws_restJson1DeleteAppInstanceCommand = exports.serializeAws_restJson1CreateAppInstanceUserCommand = exports.serializeAws_restJson1CreateAppInstanceBotCommand = exports.serializeAws_restJson1CreateAppInstanceAdminCommand = exports.serializeAws_restJson1CreateAppInstanceCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateAppInstanceUserEndpointCommand = exports.deserializeAws_restJson1UpdateAppInstanceUserCommand = exports.deserializeAws_restJson1UpdateAppInstanceBotCommand = exports.deserializeAws_restJson1UpdateAppInstanceCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = exports.deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = exports.deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
@@ -52,6 +53,34 @@ const serializeAws_restJson1CreateAppInstanceAdminCommand = async (input, contex
|
|
|
52
53
|
});
|
|
53
54
|
};
|
|
54
55
|
exports.serializeAws_restJson1CreateAppInstanceAdminCommand = serializeAws_restJson1CreateAppInstanceAdminCommand;
|
|
56
|
+
const serializeAws_restJson1CreateAppInstanceBotCommand = async (input, context) => {
|
|
57
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
58
|
+
const headers = {
|
|
59
|
+
"content-type": "application/json",
|
|
60
|
+
};
|
|
61
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots";
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify({
|
|
64
|
+
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
65
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
66
|
+
...(input.Configuration != null && {
|
|
67
|
+
Configuration: serializeAws_restJson1Configuration(input.Configuration, context),
|
|
68
|
+
}),
|
|
69
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
70
|
+
...(input.Name != null && { Name: input.Name }),
|
|
71
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
72
|
+
});
|
|
73
|
+
return new protocol_http_1.HttpRequest({
|
|
74
|
+
protocol,
|
|
75
|
+
hostname,
|
|
76
|
+
port,
|
|
77
|
+
method: "POST",
|
|
78
|
+
headers,
|
|
79
|
+
path: resolvedPath,
|
|
80
|
+
body,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
exports.serializeAws_restJson1CreateAppInstanceBotCommand = serializeAws_restJson1CreateAppInstanceBotCommand;
|
|
55
84
|
const serializeAws_restJson1CreateAppInstanceUserCommand = async (input, context) => {
|
|
56
85
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
86
|
const headers = {
|
|
@@ -63,6 +92,9 @@ const serializeAws_restJson1CreateAppInstanceUserCommand = async (input, context
|
|
|
63
92
|
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
64
93
|
...(input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId }),
|
|
65
94
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
95
|
+
...(input.ExpirationSettings != null && {
|
|
96
|
+
ExpirationSettings: serializeAws_restJson1ExpirationSettings(input.ExpirationSettings, context),
|
|
97
|
+
}),
|
|
66
98
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
67
99
|
...(input.Name != null && { Name: input.Name }),
|
|
68
100
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
@@ -114,6 +146,23 @@ const serializeAws_restJson1DeleteAppInstanceAdminCommand = async (input, contex
|
|
|
114
146
|
});
|
|
115
147
|
};
|
|
116
148
|
exports.serializeAws_restJson1DeleteAppInstanceAdminCommand = serializeAws_restJson1DeleteAppInstanceAdminCommand;
|
|
149
|
+
const serializeAws_restJson1DeleteAppInstanceBotCommand = async (input, context) => {
|
|
150
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
151
|
+
const headers = {};
|
|
152
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
153
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
154
|
+
let body;
|
|
155
|
+
return new protocol_http_1.HttpRequest({
|
|
156
|
+
protocol,
|
|
157
|
+
hostname,
|
|
158
|
+
port,
|
|
159
|
+
method: "DELETE",
|
|
160
|
+
headers,
|
|
161
|
+
path: resolvedPath,
|
|
162
|
+
body,
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
exports.serializeAws_restJson1DeleteAppInstanceBotCommand = serializeAws_restJson1DeleteAppInstanceBotCommand;
|
|
117
166
|
const serializeAws_restJson1DeleteAppInstanceUserCommand = async (input, context) => {
|
|
118
167
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
119
168
|
const headers = {};
|
|
@@ -186,6 +235,23 @@ const serializeAws_restJson1DescribeAppInstanceAdminCommand = async (input, cont
|
|
|
186
235
|
});
|
|
187
236
|
};
|
|
188
237
|
exports.serializeAws_restJson1DescribeAppInstanceAdminCommand = serializeAws_restJson1DescribeAppInstanceAdminCommand;
|
|
238
|
+
const serializeAws_restJson1DescribeAppInstanceBotCommand = async (input, context) => {
|
|
239
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
240
|
+
const headers = {};
|
|
241
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
242
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
243
|
+
let body;
|
|
244
|
+
return new protocol_http_1.HttpRequest({
|
|
245
|
+
protocol,
|
|
246
|
+
hostname,
|
|
247
|
+
port,
|
|
248
|
+
method: "GET",
|
|
249
|
+
headers,
|
|
250
|
+
path: resolvedPath,
|
|
251
|
+
body,
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
exports.serializeAws_restJson1DescribeAppInstanceBotCommand = serializeAws_restJson1DescribeAppInstanceBotCommand;
|
|
189
255
|
const serializeAws_restJson1DescribeAppInstanceUserCommand = async (input, context) => {
|
|
190
256
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
191
257
|
const headers = {};
|
|
@@ -262,6 +328,28 @@ const serializeAws_restJson1ListAppInstanceAdminsCommand = async (input, context
|
|
|
262
328
|
});
|
|
263
329
|
};
|
|
264
330
|
exports.serializeAws_restJson1ListAppInstanceAdminsCommand = serializeAws_restJson1ListAppInstanceAdminsCommand;
|
|
331
|
+
const serializeAws_restJson1ListAppInstanceBotsCommand = async (input, context) => {
|
|
332
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
|
+
const headers = {};
|
|
334
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots";
|
|
335
|
+
const query = map({
|
|
336
|
+
"app-instance-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceArn, `AppInstanceArn`)],
|
|
337
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
338
|
+
"next-token": [, input.NextToken],
|
|
339
|
+
});
|
|
340
|
+
let body;
|
|
341
|
+
return new protocol_http_1.HttpRequest({
|
|
342
|
+
protocol,
|
|
343
|
+
hostname,
|
|
344
|
+
port,
|
|
345
|
+
method: "GET",
|
|
346
|
+
headers,
|
|
347
|
+
path: resolvedPath,
|
|
348
|
+
query,
|
|
349
|
+
body,
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
exports.serializeAws_restJson1ListAppInstanceBotsCommand = serializeAws_restJson1ListAppInstanceBotsCommand;
|
|
265
353
|
const serializeAws_restJson1ListAppInstancesCommand = async (input, context) => {
|
|
266
354
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
355
|
const headers = {};
|
|
@@ -373,6 +461,31 @@ const serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = async (inpu
|
|
|
373
461
|
});
|
|
374
462
|
};
|
|
375
463
|
exports.serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = serializeAws_restJson1PutAppInstanceRetentionSettingsCommand;
|
|
464
|
+
const serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = async (input, context) => {
|
|
465
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
|
+
const headers = {
|
|
467
|
+
"content-type": "application/json",
|
|
468
|
+
};
|
|
469
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
470
|
+
"/app-instance-users/{AppInstanceUserArn}/expiration-settings";
|
|
471
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
472
|
+
let body;
|
|
473
|
+
body = JSON.stringify({
|
|
474
|
+
...(input.ExpirationSettings != null && {
|
|
475
|
+
ExpirationSettings: serializeAws_restJson1ExpirationSettings(input.ExpirationSettings, context),
|
|
476
|
+
}),
|
|
477
|
+
});
|
|
478
|
+
return new protocol_http_1.HttpRequest({
|
|
479
|
+
protocol,
|
|
480
|
+
hostname,
|
|
481
|
+
port,
|
|
482
|
+
method: "PUT",
|
|
483
|
+
headers,
|
|
484
|
+
path: resolvedPath,
|
|
485
|
+
body,
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
exports.serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand;
|
|
376
489
|
const serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
377
490
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
491
|
const headers = {
|
|
@@ -478,6 +591,29 @@ const serializeAws_restJson1UpdateAppInstanceCommand = async (input, context) =>
|
|
|
478
591
|
});
|
|
479
592
|
};
|
|
480
593
|
exports.serializeAws_restJson1UpdateAppInstanceCommand = serializeAws_restJson1UpdateAppInstanceCommand;
|
|
594
|
+
const serializeAws_restJson1UpdateAppInstanceBotCommand = async (input, context) => {
|
|
595
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
|
+
const headers = {
|
|
597
|
+
"content-type": "application/json",
|
|
598
|
+
};
|
|
599
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
600
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
601
|
+
let body;
|
|
602
|
+
body = JSON.stringify({
|
|
603
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
604
|
+
...(input.Name != null && { Name: input.Name }),
|
|
605
|
+
});
|
|
606
|
+
return new protocol_http_1.HttpRequest({
|
|
607
|
+
protocol,
|
|
608
|
+
hostname,
|
|
609
|
+
port,
|
|
610
|
+
method: "PUT",
|
|
611
|
+
headers,
|
|
612
|
+
path: resolvedPath,
|
|
613
|
+
body,
|
|
614
|
+
});
|
|
615
|
+
};
|
|
616
|
+
exports.serializeAws_restJson1UpdateAppInstanceBotCommand = serializeAws_restJson1UpdateAppInstanceBotCommand;
|
|
481
617
|
const serializeAws_restJson1UpdateAppInstanceUserCommand = async (input, context) => {
|
|
482
618
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
483
619
|
const headers = {
|
|
@@ -639,6 +775,61 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
639
775
|
});
|
|
640
776
|
}
|
|
641
777
|
};
|
|
778
|
+
const deserializeAws_restJson1CreateAppInstanceBotCommand = async (output, context) => {
|
|
779
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
780
|
+
return deserializeAws_restJson1CreateAppInstanceBotCommandError(output, context);
|
|
781
|
+
}
|
|
782
|
+
const contents = map({
|
|
783
|
+
$metadata: deserializeMetadata(output),
|
|
784
|
+
});
|
|
785
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
786
|
+
if (data.AppInstanceBotArn != null) {
|
|
787
|
+
contents.AppInstanceBotArn = (0, smithy_client_1.expectString)(data.AppInstanceBotArn);
|
|
788
|
+
}
|
|
789
|
+
return contents;
|
|
790
|
+
};
|
|
791
|
+
exports.deserializeAws_restJson1CreateAppInstanceBotCommand = deserializeAws_restJson1CreateAppInstanceBotCommand;
|
|
792
|
+
const deserializeAws_restJson1CreateAppInstanceBotCommandError = async (output, context) => {
|
|
793
|
+
const parsedOutput = {
|
|
794
|
+
...output,
|
|
795
|
+
body: await parseErrorBody(output.body, context),
|
|
796
|
+
};
|
|
797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
+
switch (errorCode) {
|
|
799
|
+
case "BadRequestException":
|
|
800
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
801
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
802
|
+
case "ConflictException":
|
|
803
|
+
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
804
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
805
|
+
case "ForbiddenException":
|
|
806
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
807
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
808
|
+
case "ResourceLimitExceededException":
|
|
809
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
810
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
811
|
+
case "ServiceFailureException":
|
|
812
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
813
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
814
|
+
case "ServiceUnavailableException":
|
|
815
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
816
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
817
|
+
case "ThrottledClientException":
|
|
818
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
819
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "UnauthorizedClientException":
|
|
821
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
822
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
823
|
+
default:
|
|
824
|
+
const parsedBody = parsedOutput.body;
|
|
825
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
826
|
+
output,
|
|
827
|
+
parsedBody,
|
|
828
|
+
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
829
|
+
errorCode,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
};
|
|
642
833
|
const deserializeAws_restJson1CreateAppInstanceUserCommand = async (output, context) => {
|
|
643
834
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
644
835
|
return deserializeAws_restJson1CreateAppInstanceUserCommandError(output, context);
|
|
@@ -795,6 +986,58 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
795
986
|
});
|
|
796
987
|
}
|
|
797
988
|
};
|
|
989
|
+
const deserializeAws_restJson1DeleteAppInstanceBotCommand = async (output, context) => {
|
|
990
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
991
|
+
return deserializeAws_restJson1DeleteAppInstanceBotCommandError(output, context);
|
|
992
|
+
}
|
|
993
|
+
const contents = map({
|
|
994
|
+
$metadata: deserializeMetadata(output),
|
|
995
|
+
});
|
|
996
|
+
await collectBody(output.body, context);
|
|
997
|
+
return contents;
|
|
998
|
+
};
|
|
999
|
+
exports.deserializeAws_restJson1DeleteAppInstanceBotCommand = deserializeAws_restJson1DeleteAppInstanceBotCommand;
|
|
1000
|
+
const deserializeAws_restJson1DeleteAppInstanceBotCommandError = async (output, context) => {
|
|
1001
|
+
const parsedOutput = {
|
|
1002
|
+
...output,
|
|
1003
|
+
body: await parseErrorBody(output.body, context),
|
|
1004
|
+
};
|
|
1005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
+
switch (errorCode) {
|
|
1007
|
+
case "BadRequestException":
|
|
1008
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1009
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1010
|
+
case "ConflictException":
|
|
1011
|
+
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1012
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1013
|
+
case "ForbiddenException":
|
|
1014
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1015
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1016
|
+
case "ResourceLimitExceededException":
|
|
1017
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1018
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1019
|
+
case "ServiceFailureException":
|
|
1020
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1021
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1022
|
+
case "ServiceUnavailableException":
|
|
1023
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1024
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1025
|
+
case "ThrottledClientException":
|
|
1026
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1027
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1028
|
+
case "UnauthorizedClientException":
|
|
1029
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1030
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1031
|
+
default:
|
|
1032
|
+
const parsedBody = parsedOutput.body;
|
|
1033
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1034
|
+
output,
|
|
1035
|
+
parsedBody,
|
|
1036
|
+
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1037
|
+
errorCode,
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
};
|
|
798
1041
|
const deserializeAws_restJson1DeleteAppInstanceUserCommand = async (output, context) => {
|
|
799
1042
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
800
1043
|
return deserializeAws_restJson1DeleteAppInstanceUserCommandError(output, context);
|
|
@@ -991,6 +1234,58 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
991
1234
|
});
|
|
992
1235
|
}
|
|
993
1236
|
};
|
|
1237
|
+
const deserializeAws_restJson1DescribeAppInstanceBotCommand = async (output, context) => {
|
|
1238
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1239
|
+
return deserializeAws_restJson1DescribeAppInstanceBotCommandError(output, context);
|
|
1240
|
+
}
|
|
1241
|
+
const contents = map({
|
|
1242
|
+
$metadata: deserializeMetadata(output),
|
|
1243
|
+
});
|
|
1244
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1245
|
+
if (data.AppInstanceBot != null) {
|
|
1246
|
+
contents.AppInstanceBot = deserializeAws_restJson1AppInstanceBot(data.AppInstanceBot, context);
|
|
1247
|
+
}
|
|
1248
|
+
return contents;
|
|
1249
|
+
};
|
|
1250
|
+
exports.deserializeAws_restJson1DescribeAppInstanceBotCommand = deserializeAws_restJson1DescribeAppInstanceBotCommand;
|
|
1251
|
+
const deserializeAws_restJson1DescribeAppInstanceBotCommandError = async (output, context) => {
|
|
1252
|
+
const parsedOutput = {
|
|
1253
|
+
...output,
|
|
1254
|
+
body: await parseErrorBody(output.body, context),
|
|
1255
|
+
};
|
|
1256
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
+
switch (errorCode) {
|
|
1258
|
+
case "BadRequestException":
|
|
1259
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1260
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1261
|
+
case "ForbiddenException":
|
|
1262
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1263
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1264
|
+
case "NotFoundException":
|
|
1265
|
+
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
1266
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1267
|
+
case "ServiceFailureException":
|
|
1268
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1269
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1270
|
+
case "ServiceUnavailableException":
|
|
1271
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1272
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1273
|
+
case "ThrottledClientException":
|
|
1274
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1275
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1276
|
+
case "UnauthorizedClientException":
|
|
1277
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1278
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1279
|
+
default:
|
|
1280
|
+
const parsedBody = parsedOutput.body;
|
|
1281
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1282
|
+
output,
|
|
1283
|
+
parsedBody,
|
|
1284
|
+
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1285
|
+
errorCode,
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
994
1289
|
const deserializeAws_restJson1DescribeAppInstanceUserCommand = async (output, context) => {
|
|
995
1290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
1291
|
return deserializeAws_restJson1DescribeAppInstanceUserCommandError(output, context);
|
|
@@ -1199,6 +1494,64 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
1199
1494
|
});
|
|
1200
1495
|
}
|
|
1201
1496
|
};
|
|
1497
|
+
const deserializeAws_restJson1ListAppInstanceBotsCommand = async (output, context) => {
|
|
1498
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
|
+
return deserializeAws_restJson1ListAppInstanceBotsCommandError(output, context);
|
|
1500
|
+
}
|
|
1501
|
+
const contents = map({
|
|
1502
|
+
$metadata: deserializeMetadata(output),
|
|
1503
|
+
});
|
|
1504
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1505
|
+
if (data.AppInstanceArn != null) {
|
|
1506
|
+
contents.AppInstanceArn = (0, smithy_client_1.expectString)(data.AppInstanceArn);
|
|
1507
|
+
}
|
|
1508
|
+
if (data.AppInstanceBots != null) {
|
|
1509
|
+
contents.AppInstanceBots = deserializeAws_restJson1AppInstanceBotList(data.AppInstanceBots, context);
|
|
1510
|
+
}
|
|
1511
|
+
if (data.NextToken != null) {
|
|
1512
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1513
|
+
}
|
|
1514
|
+
return contents;
|
|
1515
|
+
};
|
|
1516
|
+
exports.deserializeAws_restJson1ListAppInstanceBotsCommand = deserializeAws_restJson1ListAppInstanceBotsCommand;
|
|
1517
|
+
const deserializeAws_restJson1ListAppInstanceBotsCommandError = async (output, context) => {
|
|
1518
|
+
const parsedOutput = {
|
|
1519
|
+
...output,
|
|
1520
|
+
body: await parseErrorBody(output.body, context),
|
|
1521
|
+
};
|
|
1522
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
|
+
switch (errorCode) {
|
|
1524
|
+
case "BadRequestException":
|
|
1525
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1526
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1527
|
+
case "ForbiddenException":
|
|
1528
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1529
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1530
|
+
case "ResourceLimitExceededException":
|
|
1531
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1532
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1533
|
+
case "ServiceFailureException":
|
|
1534
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1535
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1536
|
+
case "ServiceUnavailableException":
|
|
1537
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1538
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1539
|
+
case "ThrottledClientException":
|
|
1540
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1541
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1542
|
+
case "UnauthorizedClientException":
|
|
1543
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1544
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1545
|
+
default:
|
|
1546
|
+
const parsedBody = parsedOutput.body;
|
|
1547
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1548
|
+
output,
|
|
1549
|
+
parsedBody,
|
|
1550
|
+
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1551
|
+
errorCode,
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
};
|
|
1202
1555
|
const deserializeAws_restJson1ListAppInstancesCommand = async (output, context) => {
|
|
1203
1556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1204
1557
|
return deserializeAws_restJson1ListAppInstancesCommandError(output, context);
|
|
@@ -1459,6 +1812,61 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1459
1812
|
});
|
|
1460
1813
|
}
|
|
1461
1814
|
};
|
|
1815
|
+
const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = async (output, context) => {
|
|
1816
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1817
|
+
return deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommandError(output, context);
|
|
1818
|
+
}
|
|
1819
|
+
const contents = map({
|
|
1820
|
+
$metadata: deserializeMetadata(output),
|
|
1821
|
+
});
|
|
1822
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1823
|
+
if (data.AppInstanceUserArn != null) {
|
|
1824
|
+
contents.AppInstanceUserArn = (0, smithy_client_1.expectString)(data.AppInstanceUserArn);
|
|
1825
|
+
}
|
|
1826
|
+
if (data.ExpirationSettings != null) {
|
|
1827
|
+
contents.ExpirationSettings = deserializeAws_restJson1ExpirationSettings(data.ExpirationSettings, context);
|
|
1828
|
+
}
|
|
1829
|
+
return contents;
|
|
1830
|
+
};
|
|
1831
|
+
exports.deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand;
|
|
1832
|
+
const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommandError = async (output, context) => {
|
|
1833
|
+
const parsedOutput = {
|
|
1834
|
+
...output,
|
|
1835
|
+
body: await parseErrorBody(output.body, context),
|
|
1836
|
+
};
|
|
1837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
+
switch (errorCode) {
|
|
1839
|
+
case "BadRequestException":
|
|
1840
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1841
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1842
|
+
case "ConflictException":
|
|
1843
|
+
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1844
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1845
|
+
case "ForbiddenException":
|
|
1846
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1847
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1848
|
+
case "ServiceFailureException":
|
|
1849
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1850
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1851
|
+
case "ServiceUnavailableException":
|
|
1852
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1853
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1854
|
+
case "ThrottledClientException":
|
|
1855
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1856
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1857
|
+
case "UnauthorizedClientException":
|
|
1858
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1859
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1860
|
+
default:
|
|
1861
|
+
const parsedBody = parsedOutput.body;
|
|
1862
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1863
|
+
output,
|
|
1864
|
+
parsedBody,
|
|
1865
|
+
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1866
|
+
errorCode,
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
};
|
|
1462
1870
|
const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1463
1871
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1464
1872
|
return deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError(output, context);
|
|
@@ -1664,6 +2072,61 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
1664
2072
|
});
|
|
1665
2073
|
}
|
|
1666
2074
|
};
|
|
2075
|
+
const deserializeAws_restJson1UpdateAppInstanceBotCommand = async (output, context) => {
|
|
2076
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2077
|
+
return deserializeAws_restJson1UpdateAppInstanceBotCommandError(output, context);
|
|
2078
|
+
}
|
|
2079
|
+
const contents = map({
|
|
2080
|
+
$metadata: deserializeMetadata(output),
|
|
2081
|
+
});
|
|
2082
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2083
|
+
if (data.AppInstanceBotArn != null) {
|
|
2084
|
+
contents.AppInstanceBotArn = (0, smithy_client_1.expectString)(data.AppInstanceBotArn);
|
|
2085
|
+
}
|
|
2086
|
+
return contents;
|
|
2087
|
+
};
|
|
2088
|
+
exports.deserializeAws_restJson1UpdateAppInstanceBotCommand = deserializeAws_restJson1UpdateAppInstanceBotCommand;
|
|
2089
|
+
const deserializeAws_restJson1UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
2090
|
+
const parsedOutput = {
|
|
2091
|
+
...output,
|
|
2092
|
+
body: await parseErrorBody(output.body, context),
|
|
2093
|
+
};
|
|
2094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2095
|
+
switch (errorCode) {
|
|
2096
|
+
case "BadRequestException":
|
|
2097
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2098
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2099
|
+
case "ConflictException":
|
|
2100
|
+
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2101
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2102
|
+
case "ForbiddenException":
|
|
2103
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2104
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2105
|
+
case "ResourceLimitExceededException":
|
|
2106
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2107
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2108
|
+
case "ServiceFailureException":
|
|
2109
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2110
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
2111
|
+
case "ServiceUnavailableException":
|
|
2112
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2113
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2114
|
+
case "ThrottledClientException":
|
|
2115
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2116
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
2117
|
+
case "UnauthorizedClientException":
|
|
2118
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2119
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2120
|
+
default:
|
|
2121
|
+
const parsedBody = parsedOutput.body;
|
|
2122
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2123
|
+
output,
|
|
2124
|
+
parsedBody,
|
|
2125
|
+
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
2126
|
+
errorCode,
|
|
2127
|
+
});
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
1667
2130
|
const deserializeAws_restJson1UpdateAppInstanceUserCommand = async (output, context) => {
|
|
1668
2131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1669
2132
|
return deserializeAws_restJson1UpdateAppInstanceUserCommandError(output, context);
|
|
@@ -1820,6 +2283,21 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
1820
2283
|
});
|
|
1821
2284
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1822
2285
|
};
|
|
2286
|
+
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2287
|
+
const contents = map({});
|
|
2288
|
+
const data = parsedOutput.body;
|
|
2289
|
+
if (data.Code != null) {
|
|
2290
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
2291
|
+
}
|
|
2292
|
+
if (data.Message != null) {
|
|
2293
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2294
|
+
}
|
|
2295
|
+
const exception = new models_0_1.NotFoundException({
|
|
2296
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2297
|
+
...contents,
|
|
2298
|
+
});
|
|
2299
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2300
|
+
};
|
|
1823
2301
|
const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1824
2302
|
const contents = map({});
|
|
1825
2303
|
const data = parsedOutput.body;
|
|
@@ -1907,12 +2385,31 @@ const serializeAws_restJson1ChannelRetentionSettings = (input, context) => {
|
|
|
1907
2385
|
...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
|
|
1908
2386
|
};
|
|
1909
2387
|
};
|
|
2388
|
+
const serializeAws_restJson1Configuration = (input, context) => {
|
|
2389
|
+
return {
|
|
2390
|
+
...(input.Lex != null && { Lex: serializeAws_restJson1LexConfiguration(input.Lex, context) }),
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
1910
2393
|
const serializeAws_restJson1EndpointAttributes = (input, context) => {
|
|
1911
2394
|
return {
|
|
1912
2395
|
...(input.DeviceToken != null && { DeviceToken: input.DeviceToken }),
|
|
1913
2396
|
...(input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
1914
2397
|
};
|
|
1915
2398
|
};
|
|
2399
|
+
const serializeAws_restJson1ExpirationSettings = (input, context) => {
|
|
2400
|
+
return {
|
|
2401
|
+
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
2402
|
+
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
const serializeAws_restJson1LexConfiguration = (input, context) => {
|
|
2406
|
+
return {
|
|
2407
|
+
...(input.LexBotAliasArn != null && { LexBotAliasArn: input.LexBotAliasArn }),
|
|
2408
|
+
...(input.LocaleId != null && { LocaleId: input.LocaleId }),
|
|
2409
|
+
...(input.RespondsTo != null && { RespondsTo: input.RespondsTo }),
|
|
2410
|
+
...(input.WelcomeIntent != null && { WelcomeIntent: input.WelcomeIntent }),
|
|
2411
|
+
};
|
|
2412
|
+
};
|
|
1916
2413
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
1917
2414
|
return {
|
|
1918
2415
|
...(input.Key != null && { Key: input.Key }),
|
|
@@ -1971,6 +2468,38 @@ const deserializeAws_restJson1AppInstanceAdminSummary = (output, context) => {
|
|
|
1971
2468
|
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
1972
2469
|
};
|
|
1973
2470
|
};
|
|
2471
|
+
const deserializeAws_restJson1AppInstanceBot = (output, context) => {
|
|
2472
|
+
return {
|
|
2473
|
+
AppInstanceBotArn: (0, smithy_client_1.expectString)(output.AppInstanceBotArn),
|
|
2474
|
+
Configuration: output.Configuration != null ? deserializeAws_restJson1Configuration(output.Configuration, context) : undefined,
|
|
2475
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2476
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2477
|
+
: undefined,
|
|
2478
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2479
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2480
|
+
: undefined,
|
|
2481
|
+
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2482
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2485
|
+
const deserializeAws_restJson1AppInstanceBotList = (output, context) => {
|
|
2486
|
+
const retVal = (output || [])
|
|
2487
|
+
.filter((e) => e != null)
|
|
2488
|
+
.map((entry) => {
|
|
2489
|
+
if (entry === null) {
|
|
2490
|
+
return null;
|
|
2491
|
+
}
|
|
2492
|
+
return deserializeAws_restJson1AppInstanceBotSummary(entry, context);
|
|
2493
|
+
});
|
|
2494
|
+
return retVal;
|
|
2495
|
+
};
|
|
2496
|
+
const deserializeAws_restJson1AppInstanceBotSummary = (output, context) => {
|
|
2497
|
+
return {
|
|
2498
|
+
AppInstanceBotArn: (0, smithy_client_1.expectString)(output.AppInstanceBotArn),
|
|
2499
|
+
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2500
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2501
|
+
};
|
|
2502
|
+
};
|
|
1974
2503
|
const deserializeAws_restJson1AppInstanceList = (output, context) => {
|
|
1975
2504
|
const retVal = (output || [])
|
|
1976
2505
|
.filter((e) => e != null)
|
|
@@ -2002,6 +2531,9 @@ const deserializeAws_restJson1AppInstanceUser = (output, context) => {
|
|
|
2002
2531
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2003
2532
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2004
2533
|
: undefined,
|
|
2534
|
+
ExpirationSettings: output.ExpirationSettings != null
|
|
2535
|
+
? deserializeAws_restJson1ExpirationSettings(output.ExpirationSettings, context)
|
|
2536
|
+
: undefined,
|
|
2005
2537
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2006
2538
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2007
2539
|
: undefined,
|
|
@@ -2073,6 +2605,11 @@ const deserializeAws_restJson1ChannelRetentionSettings = (output, context) => {
|
|
|
2073
2605
|
RetentionDays: (0, smithy_client_1.expectInt32)(output.RetentionDays),
|
|
2074
2606
|
};
|
|
2075
2607
|
};
|
|
2608
|
+
const deserializeAws_restJson1Configuration = (output, context) => {
|
|
2609
|
+
return {
|
|
2610
|
+
Lex: output.Lex != null ? deserializeAws_restJson1LexConfiguration(output.Lex, context) : undefined,
|
|
2611
|
+
};
|
|
2612
|
+
};
|
|
2076
2613
|
const deserializeAws_restJson1EndpointAttributes = (output, context) => {
|
|
2077
2614
|
return {
|
|
2078
2615
|
DeviceToken: (0, smithy_client_1.expectString)(output.DeviceToken),
|
|
@@ -2085,12 +2622,26 @@ const deserializeAws_restJson1EndpointState = (output, context) => {
|
|
|
2085
2622
|
StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
|
|
2086
2623
|
};
|
|
2087
2624
|
};
|
|
2625
|
+
const deserializeAws_restJson1ExpirationSettings = (output, context) => {
|
|
2626
|
+
return {
|
|
2627
|
+
ExpirationCriterion: (0, smithy_client_1.expectString)(output.ExpirationCriterion),
|
|
2628
|
+
ExpirationDays: (0, smithy_client_1.expectInt32)(output.ExpirationDays),
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2088
2631
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
2089
2632
|
return {
|
|
2090
2633
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2091
2634
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2092
2635
|
};
|
|
2093
2636
|
};
|
|
2637
|
+
const deserializeAws_restJson1LexConfiguration = (output, context) => {
|
|
2638
|
+
return {
|
|
2639
|
+
LexBotAliasArn: (0, smithy_client_1.expectString)(output.LexBotAliasArn),
|
|
2640
|
+
LocaleId: (0, smithy_client_1.expectString)(output.LocaleId),
|
|
2641
|
+
RespondsTo: (0, smithy_client_1.expectString)(output.RespondsTo),
|
|
2642
|
+
WelcomeIntent: (0, smithy_client_1.expectString)(output.WelcomeIntent),
|
|
2643
|
+
};
|
|
2644
|
+
};
|
|
2094
2645
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
2095
2646
|
return {
|
|
2096
2647
|
Key: (0, smithy_client_1.expectString)(output.Key),
|