@aws-sdk/client-chatbot 3.696.0 → 3.700.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 +71 -7
- package/dist-cjs/Chatbot.js +16 -0
- package/dist-cjs/commands/AssociateToConfigurationCommand.js +26 -0
- package/dist-cjs/commands/CreateCustomActionCommand.js +26 -0
- package/dist-cjs/commands/DeleteCustomActionCommand.js +26 -0
- package/dist-cjs/commands/DisassociateFromConfigurationCommand.js +26 -0
- package/dist-cjs/commands/GetCustomActionCommand.js +26 -0
- package/dist-cjs/commands/ListAssociationsCommand.js +26 -0
- package/dist-cjs/commands/ListCustomActionsCommand.js +26 -0
- package/dist-cjs/commands/UpdateCustomActionCommand.js +26 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +60 -42
- package/dist-cjs/pagination/ListAssociationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListCustomActionsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +260 -8
- package/dist-es/Chatbot.js +16 -0
- package/dist-es/commands/AssociateToConfigurationCommand.js +22 -0
- package/dist-es/commands/CreateCustomActionCommand.js +22 -0
- package/dist-es/commands/DeleteCustomActionCommand.js +22 -0
- package/dist-es/commands/DisassociateFromConfigurationCommand.js +22 -0
- package/dist-es/commands/GetCustomActionCommand.js +22 -0
- package/dist-es/commands/ListAssociationsCommand.js +22 -0
- package/dist-es/commands/ListCustomActionsCommand.js +22 -0
- package/dist-es/commands/UpdateCustomActionCommand.js +22 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +53 -37
- package/dist-es/pagination/ListAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListCustomActionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +243 -7
- package/dist-types/Chatbot.d.ts +57 -0
- package/dist-types/ChatbotClient.d.ts +10 -2
- package/dist-types/commands/AssociateToConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/CreateCustomActionCommand.d.ts +158 -0
- package/dist-types/commands/DeleteCustomActionCommand.d.ts +92 -0
- package/dist-types/commands/DisassociateFromConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/GetCustomActionCommand.d.ts +128 -0
- package/dist-types/commands/ListAssociationsCommand.d.ts +98 -0
- package/dist-types/commands/ListCustomActionsCommand.d.ts +100 -0
- package/dist-types/commands/UpdateCustomActionCommand.d.ts +122 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +385 -40
- package/dist-types/pagination/ListAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCustomActionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/Chatbot.d.ts +137 -0
- package/dist-types/ts3.4/ChatbotClient.d.ts +48 -0
- package/dist-types/ts3.4/commands/AssociateToConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCustomActionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCustomActionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateFromConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCustomActionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListCustomActionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCustomActionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +116 -22
- package/dist-types/ts3.4/pagination/ListAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCustomActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
- package/package.json +7 -5
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateCustomActionCommand, se_UpdateCustomActionCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateCustomActionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("WheatleyOrchestration_20171011", "UpdateCustomAction", {})
|
|
17
|
+
.n("ChatbotClient", "UpdateCustomActionCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateCustomActionCommand)
|
|
20
|
+
.de(de_UpdateCustomActionCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
export * from "./AssociateToConfigurationCommand";
|
|
1
2
|
export * from "./CreateChimeWebhookConfigurationCommand";
|
|
3
|
+
export * from "./CreateCustomActionCommand";
|
|
2
4
|
export * from "./CreateMicrosoftTeamsChannelConfigurationCommand";
|
|
3
5
|
export * from "./CreateSlackChannelConfigurationCommand";
|
|
4
6
|
export * from "./DeleteChimeWebhookConfigurationCommand";
|
|
7
|
+
export * from "./DeleteCustomActionCommand";
|
|
5
8
|
export * from "./DeleteMicrosoftTeamsChannelConfigurationCommand";
|
|
6
9
|
export * from "./DeleteMicrosoftTeamsConfiguredTeamCommand";
|
|
7
10
|
export * from "./DeleteMicrosoftTeamsUserIdentityCommand";
|
|
@@ -12,8 +15,12 @@ export * from "./DescribeChimeWebhookConfigurationsCommand";
|
|
|
12
15
|
export * from "./DescribeSlackChannelConfigurationsCommand";
|
|
13
16
|
export * from "./DescribeSlackUserIdentitiesCommand";
|
|
14
17
|
export * from "./DescribeSlackWorkspacesCommand";
|
|
18
|
+
export * from "./DisassociateFromConfigurationCommand";
|
|
15
19
|
export * from "./GetAccountPreferencesCommand";
|
|
20
|
+
export * from "./GetCustomActionCommand";
|
|
16
21
|
export * from "./GetMicrosoftTeamsChannelConfigurationCommand";
|
|
22
|
+
export * from "./ListAssociationsCommand";
|
|
23
|
+
export * from "./ListCustomActionsCommand";
|
|
17
24
|
export * from "./ListMicrosoftTeamsChannelConfigurationsCommand";
|
|
18
25
|
export * from "./ListMicrosoftTeamsConfiguredTeamsCommand";
|
|
19
26
|
export * from "./ListMicrosoftTeamsUserIdentitiesCommand";
|
|
@@ -22,5 +29,6 @@ export * from "./TagResourceCommand";
|
|
|
22
29
|
export * from "./UntagResourceCommand";
|
|
23
30
|
export * from "./UpdateAccountPreferencesCommand";
|
|
24
31
|
export * from "./UpdateChimeWebhookConfigurationCommand";
|
|
32
|
+
export * from "./UpdateCustomActionCommand";
|
|
25
33
|
export * from "./UpdateMicrosoftTeamsChannelConfigurationCommand";
|
|
26
34
|
export * from "./UpdateSlackChannelConfigurationCommand";
|
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { ChatbotServiceException as __BaseException } from "./ChatbotServiceException";
|
|
3
|
+
export class InternalServiceError extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "InternalServiceError",
|
|
7
|
+
$fault: "server",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "InternalServiceError";
|
|
11
|
+
this.$fault = "server";
|
|
12
|
+
Object.setPrototypeOf(this, InternalServiceError.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class InvalidRequestException extends __BaseException {
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "InvalidRequestException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
this.name = "InvalidRequestException";
|
|
24
|
+
this.$fault = "client";
|
|
25
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export class UnauthorizedException extends __BaseException {
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "UnauthorizedException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
this.name = "UnauthorizedException";
|
|
36
|
+
this.$fault = "client";
|
|
37
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
3
40
|
export class ConflictException extends __BaseException {
|
|
4
41
|
constructor(opts) {
|
|
5
42
|
super({
|
|
@@ -37,18 +74,6 @@ export class InvalidParameterException extends __BaseException {
|
|
|
37
74
|
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
38
75
|
}
|
|
39
76
|
}
|
|
40
|
-
export class InvalidRequestException extends __BaseException {
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "InvalidRequestException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
this.name = "InvalidRequestException";
|
|
48
|
-
this.$fault = "client";
|
|
49
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
77
|
export class LimitExceededException extends __BaseException {
|
|
53
78
|
constructor(opts) {
|
|
54
79
|
super({
|
|
@@ -61,6 +86,10 @@ export class LimitExceededException extends __BaseException {
|
|
|
61
86
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
62
87
|
}
|
|
63
88
|
}
|
|
89
|
+
export const CustomActionAttachmentCriteriaOperator = {
|
|
90
|
+
EQUALS: "EQUALS",
|
|
91
|
+
HAS_VALUE: "HAS_VALUE",
|
|
92
|
+
};
|
|
64
93
|
export class CreateTeamsChannelConfigurationException extends __BaseException {
|
|
65
94
|
constructor(opts) {
|
|
66
95
|
super({
|
|
@@ -87,29 +116,29 @@ export class CreateSlackChannelConfigurationException extends __BaseException {
|
|
|
87
116
|
this.Message = opts.Message;
|
|
88
117
|
}
|
|
89
118
|
}
|
|
90
|
-
export class
|
|
119
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
91
120
|
constructor(opts) {
|
|
92
121
|
super({
|
|
93
|
-
name: "
|
|
94
|
-
$fault: "
|
|
122
|
+
name: "ResourceNotFoundException",
|
|
123
|
+
$fault: "client",
|
|
95
124
|
...opts,
|
|
96
125
|
});
|
|
97
|
-
this.name = "
|
|
98
|
-
this.$fault = "
|
|
99
|
-
Object.setPrototypeOf(this,
|
|
126
|
+
this.name = "ResourceNotFoundException";
|
|
127
|
+
this.$fault = "client";
|
|
128
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
100
129
|
this.Message = opts.Message;
|
|
101
130
|
}
|
|
102
131
|
}
|
|
103
|
-
export class
|
|
132
|
+
export class DeleteChimeWebhookConfigurationException extends __BaseException {
|
|
104
133
|
constructor(opts) {
|
|
105
134
|
super({
|
|
106
|
-
name: "
|
|
107
|
-
$fault: "
|
|
135
|
+
name: "DeleteChimeWebhookConfigurationException",
|
|
136
|
+
$fault: "server",
|
|
108
137
|
...opts,
|
|
109
138
|
});
|
|
110
|
-
this.name = "
|
|
111
|
-
this.$fault = "
|
|
112
|
-
Object.setPrototypeOf(this,
|
|
139
|
+
this.name = "DeleteChimeWebhookConfigurationException";
|
|
140
|
+
this.$fault = "server";
|
|
141
|
+
Object.setPrototypeOf(this, DeleteChimeWebhookConfigurationException.prototype);
|
|
113
142
|
this.Message = opts.Message;
|
|
114
143
|
}
|
|
115
144
|
}
|
|
@@ -269,19 +298,6 @@ export class GetTeamsChannelConfigurationException extends __BaseException {
|
|
|
269
298
|
this.Message = opts.Message;
|
|
270
299
|
}
|
|
271
300
|
}
|
|
272
|
-
export class InternalServiceError extends __BaseException {
|
|
273
|
-
constructor(opts) {
|
|
274
|
-
super({
|
|
275
|
-
name: "InternalServiceError",
|
|
276
|
-
$fault: "server",
|
|
277
|
-
...opts,
|
|
278
|
-
});
|
|
279
|
-
this.name = "InternalServiceError";
|
|
280
|
-
this.$fault = "server";
|
|
281
|
-
Object.setPrototypeOf(this, InternalServiceError.prototype);
|
|
282
|
-
this.Message = opts.Message;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
301
|
export class ListTeamsChannelConfigurationsException extends __BaseException {
|
|
286
302
|
constructor(opts) {
|
|
287
303
|
super({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ChatbotClient } from "../ChatbotClient";
|
|
3
|
+
import { ListAssociationsCommand, } from "../commands/ListAssociationsCommand";
|
|
4
|
+
export const paginateListAssociations = createPaginator(ChatbotClient, ListAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ChatbotClient } from "../ChatbotClient";
|
|
3
|
+
import { ListCustomActionsCommand, } from "../commands/ListCustomActionsCommand";
|
|
4
|
+
export const paginateListCustomActions = createPaginator(ChatbotClient, ListCustomActionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -3,6 +3,8 @@ export * from "./DescribeSlackChannelConfigurationsPaginator";
|
|
|
3
3
|
export * from "./DescribeSlackUserIdentitiesPaginator";
|
|
4
4
|
export * from "./DescribeSlackWorkspacesPaginator";
|
|
5
5
|
export * from "./Interfaces";
|
|
6
|
+
export * from "./ListAssociationsPaginator";
|
|
7
|
+
export * from "./ListCustomActionsPaginator";
|
|
6
8
|
export * from "./ListMicrosoftTeamsChannelConfigurationsPaginator";
|
|
7
9
|
export * from "./ListMicrosoftTeamsConfiguredTeamsPaginator";
|
|
8
10
|
export * from "./ListMicrosoftTeamsUserIdentitiesPaginator";
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { ChatbotServiceException as __BaseException } from "../models/ChatbotServiceException";
|
|
5
|
-
import { ConflictException, CreateChimeWebhookConfigurationException, CreateSlackChannelConfigurationException, CreateTeamsChannelConfigurationException, DeleteChimeWebhookConfigurationException, DeleteMicrosoftTeamsUserIdentityException, DeleteSlackChannelConfigurationException, DeleteSlackUserIdentityException, DeleteSlackWorkspaceAuthorizationFault, DeleteTeamsChannelConfigurationException, DeleteTeamsConfiguredTeamException, DescribeChimeWebhookConfigurationsException, DescribeSlackChannelConfigurationsException, DescribeSlackUserIdentitiesException, DescribeSlackWorkspacesException, GetAccountPreferencesException, GetTeamsChannelConfigurationException, InternalServiceError, InvalidParameterException, InvalidRequestException, LimitExceededException, ListMicrosoftTeamsConfiguredTeamsException, ListMicrosoftTeamsUserIdentitiesException, ListTeamsChannelConfigurationsException, ResourceNotFoundException, ServiceUnavailableException, TooManyTagsException, UpdateAccountPreferencesException, UpdateChimeWebhookConfigurationException, UpdateSlackChannelConfigurationException, UpdateTeamsChannelConfigurationException, } from "../models/models_0";
|
|
6
|
+
import { ConflictException, CreateChimeWebhookConfigurationException, CreateSlackChannelConfigurationException, CreateTeamsChannelConfigurationException, DeleteChimeWebhookConfigurationException, DeleteMicrosoftTeamsUserIdentityException, DeleteSlackChannelConfigurationException, DeleteSlackUserIdentityException, DeleteSlackWorkspaceAuthorizationFault, DeleteTeamsChannelConfigurationException, DeleteTeamsConfiguredTeamException, DescribeChimeWebhookConfigurationsException, DescribeSlackChannelConfigurationsException, DescribeSlackUserIdentitiesException, DescribeSlackWorkspacesException, GetAccountPreferencesException, GetTeamsChannelConfigurationException, InternalServiceError, InvalidParameterException, InvalidRequestException, LimitExceededException, ListMicrosoftTeamsConfiguredTeamsException, ListMicrosoftTeamsUserIdentitiesException, ListTeamsChannelConfigurationsException, ResourceNotFoundException, ServiceUnavailableException, TooManyTagsException, UnauthorizedException, UpdateAccountPreferencesException, UpdateChimeWebhookConfigurationException, UpdateSlackChannelConfigurationException, UpdateTeamsChannelConfigurationException, } from "../models/models_0";
|
|
7
|
+
export const se_AssociateToConfigurationCommand = async (input, context) => {
|
|
8
|
+
const b = rb(input, context);
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/json",
|
|
11
|
+
};
|
|
12
|
+
b.bp("/associate-to-configuration");
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
ChatConfiguration: [],
|
|
16
|
+
Resource: [],
|
|
17
|
+
}));
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
20
|
+
};
|
|
6
21
|
export const se_CreateChimeWebhookConfigurationCommand = async (input, context) => {
|
|
7
22
|
const b = rb(input, context);
|
|
8
23
|
const headers = {
|
|
@@ -22,6 +37,24 @@ export const se_CreateChimeWebhookConfigurationCommand = async (input, context)
|
|
|
22
37
|
b.m("POST").h(headers).b(body);
|
|
23
38
|
return b.build();
|
|
24
39
|
};
|
|
40
|
+
export const se_CreateCustomActionCommand = async (input, context) => {
|
|
41
|
+
const b = rb(input, context);
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/json",
|
|
44
|
+
};
|
|
45
|
+
b.bp("/create-custom-action");
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(take(input, {
|
|
48
|
+
ActionName: [],
|
|
49
|
+
AliasName: [],
|
|
50
|
+
Attachments: (_) => _json(_),
|
|
51
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
52
|
+
Definition: (_) => _json(_),
|
|
53
|
+
Tags: (_) => _json(_),
|
|
54
|
+
}));
|
|
55
|
+
b.m("POST").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
57
|
+
};
|
|
25
58
|
export const se_CreateMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
26
59
|
const b = rb(input, context);
|
|
27
60
|
const headers = {
|
|
@@ -81,6 +114,19 @@ export const se_DeleteChimeWebhookConfigurationCommand = async (input, context)
|
|
|
81
114
|
b.m("POST").h(headers).b(body);
|
|
82
115
|
return b.build();
|
|
83
116
|
};
|
|
117
|
+
export const se_DeleteCustomActionCommand = async (input, context) => {
|
|
118
|
+
const b = rb(input, context);
|
|
119
|
+
const headers = {
|
|
120
|
+
"content-type": "application/json",
|
|
121
|
+
};
|
|
122
|
+
b.bp("/delete-custom-action");
|
|
123
|
+
let body;
|
|
124
|
+
body = JSON.stringify(take(input, {
|
|
125
|
+
CustomActionArn: [],
|
|
126
|
+
}));
|
|
127
|
+
b.m("POST").h(headers).b(body);
|
|
128
|
+
return b.build();
|
|
129
|
+
};
|
|
84
130
|
export const se_DeleteMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
85
131
|
const b = rb(input, context);
|
|
86
132
|
const headers = {
|
|
@@ -221,6 +267,20 @@ export const se_DescribeSlackWorkspacesCommand = async (input, context) => {
|
|
|
221
267
|
b.m("POST").h(headers).b(body);
|
|
222
268
|
return b.build();
|
|
223
269
|
};
|
|
270
|
+
export const se_DisassociateFromConfigurationCommand = async (input, context) => {
|
|
271
|
+
const b = rb(input, context);
|
|
272
|
+
const headers = {
|
|
273
|
+
"content-type": "application/json",
|
|
274
|
+
};
|
|
275
|
+
b.bp("/disassociate-from-configuration");
|
|
276
|
+
let body;
|
|
277
|
+
body = JSON.stringify(take(input, {
|
|
278
|
+
ChatConfiguration: [],
|
|
279
|
+
Resource: [],
|
|
280
|
+
}));
|
|
281
|
+
b.m("POST").h(headers).b(body);
|
|
282
|
+
return b.build();
|
|
283
|
+
};
|
|
224
284
|
export const se_GetAccountPreferencesCommand = async (input, context) => {
|
|
225
285
|
const b = rb(input, context);
|
|
226
286
|
const headers = {};
|
|
@@ -229,6 +289,19 @@ export const se_GetAccountPreferencesCommand = async (input, context) => {
|
|
|
229
289
|
b.m("POST").h(headers).b(body);
|
|
230
290
|
return b.build();
|
|
231
291
|
};
|
|
292
|
+
export const se_GetCustomActionCommand = async (input, context) => {
|
|
293
|
+
const b = rb(input, context);
|
|
294
|
+
const headers = {
|
|
295
|
+
"content-type": "application/json",
|
|
296
|
+
};
|
|
297
|
+
b.bp("/get-custom-action");
|
|
298
|
+
let body;
|
|
299
|
+
body = JSON.stringify(take(input, {
|
|
300
|
+
CustomActionArn: [],
|
|
301
|
+
}));
|
|
302
|
+
b.m("POST").h(headers).b(body);
|
|
303
|
+
return b.build();
|
|
304
|
+
};
|
|
232
305
|
export const se_GetMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
233
306
|
const b = rb(input, context);
|
|
234
307
|
const headers = {
|
|
@@ -242,6 +315,35 @@ export const se_GetMicrosoftTeamsChannelConfigurationCommand = async (input, con
|
|
|
242
315
|
b.m("POST").h(headers).b(body);
|
|
243
316
|
return b.build();
|
|
244
317
|
};
|
|
318
|
+
export const se_ListAssociationsCommand = async (input, context) => {
|
|
319
|
+
const b = rb(input, context);
|
|
320
|
+
const headers = {
|
|
321
|
+
"content-type": "application/json",
|
|
322
|
+
};
|
|
323
|
+
b.bp("/list-associations");
|
|
324
|
+
let body;
|
|
325
|
+
body = JSON.stringify(take(input, {
|
|
326
|
+
ChatConfiguration: [],
|
|
327
|
+
MaxResults: [],
|
|
328
|
+
NextToken: [],
|
|
329
|
+
}));
|
|
330
|
+
b.m("POST").h(headers).b(body);
|
|
331
|
+
return b.build();
|
|
332
|
+
};
|
|
333
|
+
export const se_ListCustomActionsCommand = async (input, context) => {
|
|
334
|
+
const b = rb(input, context);
|
|
335
|
+
const headers = {
|
|
336
|
+
"content-type": "application/json",
|
|
337
|
+
};
|
|
338
|
+
b.bp("/list-custom-actions");
|
|
339
|
+
let body;
|
|
340
|
+
body = JSON.stringify(take(input, {
|
|
341
|
+
MaxResults: [],
|
|
342
|
+
NextToken: [],
|
|
343
|
+
}));
|
|
344
|
+
b.m("POST").h(headers).b(body);
|
|
345
|
+
return b.build();
|
|
346
|
+
};
|
|
245
347
|
export const se_ListMicrosoftTeamsChannelConfigurationsCommand = async (input, context) => {
|
|
246
348
|
const b = rb(input, context);
|
|
247
349
|
const headers = {
|
|
@@ -359,6 +461,22 @@ export const se_UpdateChimeWebhookConfigurationCommand = async (input, context)
|
|
|
359
461
|
b.m("POST").h(headers).b(body);
|
|
360
462
|
return b.build();
|
|
361
463
|
};
|
|
464
|
+
export const se_UpdateCustomActionCommand = async (input, context) => {
|
|
465
|
+
const b = rb(input, context);
|
|
466
|
+
const headers = {
|
|
467
|
+
"content-type": "application/json",
|
|
468
|
+
};
|
|
469
|
+
b.bp("/update-custom-action");
|
|
470
|
+
let body;
|
|
471
|
+
body = JSON.stringify(take(input, {
|
|
472
|
+
AliasName: [],
|
|
473
|
+
Attachments: (_) => _json(_),
|
|
474
|
+
CustomActionArn: [],
|
|
475
|
+
Definition: (_) => _json(_),
|
|
476
|
+
}));
|
|
477
|
+
b.m("POST").h(headers).b(body);
|
|
478
|
+
return b.build();
|
|
479
|
+
};
|
|
362
480
|
export const se_UpdateMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
363
481
|
const b = rb(input, context);
|
|
364
482
|
const headers = {
|
|
@@ -399,6 +517,16 @@ export const se_UpdateSlackChannelConfigurationCommand = async (input, context)
|
|
|
399
517
|
b.m("POST").h(headers).b(body);
|
|
400
518
|
return b.build();
|
|
401
519
|
};
|
|
520
|
+
export const de_AssociateToConfigurationCommand = async (output, context) => {
|
|
521
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
522
|
+
return de_CommandError(output, context);
|
|
523
|
+
}
|
|
524
|
+
const contents = map({
|
|
525
|
+
$metadata: deserializeMetadata(output),
|
|
526
|
+
});
|
|
527
|
+
await collectBody(output.body, context);
|
|
528
|
+
return contents;
|
|
529
|
+
};
|
|
402
530
|
export const de_CreateChimeWebhookConfigurationCommand = async (output, context) => {
|
|
403
531
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
404
532
|
return de_CommandError(output, context);
|
|
@@ -413,6 +541,20 @@ export const de_CreateChimeWebhookConfigurationCommand = async (output, context)
|
|
|
413
541
|
Object.assign(contents, doc);
|
|
414
542
|
return contents;
|
|
415
543
|
};
|
|
544
|
+
export const de_CreateCustomActionCommand = async (output, context) => {
|
|
545
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
546
|
+
return de_CommandError(output, context);
|
|
547
|
+
}
|
|
548
|
+
const contents = map({
|
|
549
|
+
$metadata: deserializeMetadata(output),
|
|
550
|
+
});
|
|
551
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
552
|
+
const doc = take(data, {
|
|
553
|
+
CustomActionArn: __expectString,
|
|
554
|
+
});
|
|
555
|
+
Object.assign(contents, doc);
|
|
556
|
+
return contents;
|
|
557
|
+
};
|
|
416
558
|
export const de_CreateMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
417
559
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
418
560
|
return de_CommandError(output, context);
|
|
@@ -451,6 +593,16 @@ export const de_DeleteChimeWebhookConfigurationCommand = async (output, context)
|
|
|
451
593
|
await collectBody(output.body, context);
|
|
452
594
|
return contents;
|
|
453
595
|
};
|
|
596
|
+
export const de_DeleteCustomActionCommand = async (output, context) => {
|
|
597
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
598
|
+
return de_CommandError(output, context);
|
|
599
|
+
}
|
|
600
|
+
const contents = map({
|
|
601
|
+
$metadata: deserializeMetadata(output),
|
|
602
|
+
});
|
|
603
|
+
await collectBody(output.body, context);
|
|
604
|
+
return contents;
|
|
605
|
+
};
|
|
454
606
|
export const de_DeleteMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
455
607
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
456
608
|
return de_CommandError(output, context);
|
|
@@ -571,6 +723,16 @@ export const de_DescribeSlackWorkspacesCommand = async (output, context) => {
|
|
|
571
723
|
Object.assign(contents, doc);
|
|
572
724
|
return contents;
|
|
573
725
|
};
|
|
726
|
+
export const de_DisassociateFromConfigurationCommand = async (output, context) => {
|
|
727
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
728
|
+
return de_CommandError(output, context);
|
|
729
|
+
}
|
|
730
|
+
const contents = map({
|
|
731
|
+
$metadata: deserializeMetadata(output),
|
|
732
|
+
});
|
|
733
|
+
await collectBody(output.body, context);
|
|
734
|
+
return contents;
|
|
735
|
+
};
|
|
574
736
|
export const de_GetAccountPreferencesCommand = async (output, context) => {
|
|
575
737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
738
|
return de_CommandError(output, context);
|
|
@@ -585,6 +747,20 @@ export const de_GetAccountPreferencesCommand = async (output, context) => {
|
|
|
585
747
|
Object.assign(contents, doc);
|
|
586
748
|
return contents;
|
|
587
749
|
};
|
|
750
|
+
export const de_GetCustomActionCommand = async (output, context) => {
|
|
751
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
+
return de_CommandError(output, context);
|
|
753
|
+
}
|
|
754
|
+
const contents = map({
|
|
755
|
+
$metadata: deserializeMetadata(output),
|
|
756
|
+
});
|
|
757
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
758
|
+
const doc = take(data, {
|
|
759
|
+
CustomAction: _json,
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
762
|
+
return contents;
|
|
763
|
+
};
|
|
588
764
|
export const de_GetMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
589
765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
766
|
return de_CommandError(output, context);
|
|
@@ -599,6 +775,36 @@ export const de_GetMicrosoftTeamsChannelConfigurationCommand = async (output, co
|
|
|
599
775
|
Object.assign(contents, doc);
|
|
600
776
|
return contents;
|
|
601
777
|
};
|
|
778
|
+
export const de_ListAssociationsCommand = async (output, context) => {
|
|
779
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
+
return de_CommandError(output, context);
|
|
781
|
+
}
|
|
782
|
+
const contents = map({
|
|
783
|
+
$metadata: deserializeMetadata(output),
|
|
784
|
+
});
|
|
785
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
786
|
+
const doc = take(data, {
|
|
787
|
+
Associations: _json,
|
|
788
|
+
NextToken: __expectString,
|
|
789
|
+
});
|
|
790
|
+
Object.assign(contents, doc);
|
|
791
|
+
return contents;
|
|
792
|
+
};
|
|
793
|
+
export const de_ListCustomActionsCommand = async (output, context) => {
|
|
794
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
+
return de_CommandError(output, context);
|
|
796
|
+
}
|
|
797
|
+
const contents = map({
|
|
798
|
+
$metadata: deserializeMetadata(output),
|
|
799
|
+
});
|
|
800
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
801
|
+
const doc = take(data, {
|
|
802
|
+
CustomActions: _json,
|
|
803
|
+
NextToken: __expectString,
|
|
804
|
+
});
|
|
805
|
+
Object.assign(contents, doc);
|
|
806
|
+
return contents;
|
|
807
|
+
};
|
|
602
808
|
export const de_ListMicrosoftTeamsChannelConfigurationsCommand = async (output, context) => {
|
|
603
809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
810
|
return de_CommandError(output, context);
|
|
@@ -706,6 +912,20 @@ export const de_UpdateChimeWebhookConfigurationCommand = async (output, context)
|
|
|
706
912
|
Object.assign(contents, doc);
|
|
707
913
|
return contents;
|
|
708
914
|
};
|
|
915
|
+
export const de_UpdateCustomActionCommand = async (output, context) => {
|
|
916
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
|
+
return de_CommandError(output, context);
|
|
918
|
+
}
|
|
919
|
+
const contents = map({
|
|
920
|
+
$metadata: deserializeMetadata(output),
|
|
921
|
+
});
|
|
922
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
923
|
+
const doc = take(data, {
|
|
924
|
+
CustomActionArn: __expectString,
|
|
925
|
+
});
|
|
926
|
+
Object.assign(contents, doc);
|
|
927
|
+
return contents;
|
|
928
|
+
};
|
|
709
929
|
export const de_UpdateMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
710
930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
711
931
|
return de_CommandError(output, context);
|
|
@@ -741,6 +961,15 @@ const de_CommandError = async (output, context) => {
|
|
|
741
961
|
};
|
|
742
962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
963
|
switch (errorCode) {
|
|
964
|
+
case "InternalServiceError":
|
|
965
|
+
case "com.amazonaws.chatbot#InternalServiceError":
|
|
966
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
967
|
+
case "InvalidRequestException":
|
|
968
|
+
case "com.amazonaws.chatbot#InvalidRequestException":
|
|
969
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
970
|
+
case "UnauthorizedException":
|
|
971
|
+
case "com.amazonaws.chatbot#UnauthorizedException":
|
|
972
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
744
973
|
case "ConflictException":
|
|
745
974
|
case "com.amazonaws.chatbot#ConflictException":
|
|
746
975
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
@@ -750,9 +979,6 @@ const de_CommandError = async (output, context) => {
|
|
|
750
979
|
case "InvalidParameterException":
|
|
751
980
|
case "com.amazonaws.chatbot#InvalidParameterException":
|
|
752
981
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
753
|
-
case "InvalidRequestException":
|
|
754
|
-
case "com.amazonaws.chatbot#InvalidRequestException":
|
|
755
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
756
982
|
case "LimitExceededException":
|
|
757
983
|
case "com.amazonaws.chatbot#LimitExceededException":
|
|
758
984
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -813,9 +1039,6 @@ const de_CommandError = async (output, context) => {
|
|
|
813
1039
|
case "ListMicrosoftTeamsUserIdentitiesException":
|
|
814
1040
|
case "com.amazonaws.chatbot#ListMicrosoftTeamsUserIdentitiesException":
|
|
815
1041
|
throw await de_ListMicrosoftTeamsUserIdentitiesExceptionRes(parsedOutput, context);
|
|
816
|
-
case "InternalServiceError":
|
|
817
|
-
case "com.amazonaws.chatbot#InternalServiceError":
|
|
818
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
819
1042
|
case "ServiceUnavailableException":
|
|
820
1043
|
case "com.amazonaws.chatbot#ServiceUnavailableException":
|
|
821
1044
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1195,6 +1418,19 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1195
1418
|
});
|
|
1196
1419
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1197
1420
|
};
|
|
1421
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1422
|
+
const contents = map({});
|
|
1423
|
+
const data = parsedOutput.body;
|
|
1424
|
+
const doc = take(data, {
|
|
1425
|
+
message: __expectString,
|
|
1426
|
+
});
|
|
1427
|
+
Object.assign(contents, doc);
|
|
1428
|
+
const exception = new UnauthorizedException({
|
|
1429
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1430
|
+
...contents,
|
|
1431
|
+
});
|
|
1432
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1433
|
+
};
|
|
1198
1434
|
const de_UpdateAccountPreferencesExceptionRes = async (parsedOutput, context) => {
|
|
1199
1435
|
const contents = map({});
|
|
1200
1436
|
const data = parsedOutput.body;
|