@aws-sdk/client-wisdom 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Wisdom.js +137 -130
- package/dist-es/WisdomClient.js +28 -22
- package/dist-es/commands/CreateAssistantAssociationCommand.js +28 -21
- package/dist-es/commands/CreateAssistantCommand.js +28 -21
- package/dist-es/commands/CreateContentCommand.js +28 -21
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +28 -21
- package/dist-es/commands/CreateSessionCommand.js +28 -21
- package/dist-es/commands/DeleteAssistantAssociationCommand.js +28 -21
- package/dist-es/commands/DeleteAssistantCommand.js +28 -21
- package/dist-es/commands/DeleteContentCommand.js +28 -21
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +28 -21
- package/dist-es/commands/GetAssistantAssociationCommand.js +28 -21
- package/dist-es/commands/GetAssistantCommand.js +28 -21
- package/dist-es/commands/GetContentCommand.js +28 -21
- package/dist-es/commands/GetContentSummaryCommand.js +28 -21
- package/dist-es/commands/GetKnowledgeBaseCommand.js +28 -21
- package/dist-es/commands/GetRecommendationsCommand.js +28 -21
- package/dist-es/commands/GetSessionCommand.js +28 -21
- package/dist-es/commands/ListAssistantAssociationsCommand.js +28 -21
- package/dist-es/commands/ListAssistantsCommand.js +28 -21
- package/dist-es/commands/ListContentsCommand.js +28 -21
- package/dist-es/commands/ListKnowledgeBasesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +28 -21
- package/dist-es/commands/PutFeedbackCommand.js +28 -21
- package/dist-es/commands/QueryAssistantCommand.js +28 -21
- package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +28 -21
- package/dist-es/commands/SearchContentCommand.js +28 -21
- package/dist-es/commands/SearchSessionsCommand.js +28 -21
- package/dist-es/commands/StartContentUploadCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateContentCommand.js +28 -21
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/WisdomServiceException.js +10 -5
- package/dist-es/models/models_0.js +207 -409
- package/dist-es/pagination/ListAssistantAssociationsPaginator.js +68 -25
- package/dist-es/pagination/ListAssistantsPaginator.js +68 -25
- package/dist-es/pagination/ListContentsPaginator.js +68 -25
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js +68 -25
- package/dist-es/pagination/QueryAssistantPaginator.js +68 -25
- package/dist-es/pagination/SearchContentPaginator.js +68 -25
- package/dist-es/pagination/SearchSessionsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +3086 -2164
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-wisdom
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-wisdom
|
|
@@ -2658,10 +2658,10 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2658
2658
|
}, {});
|
|
2659
2659
|
};
|
|
2660
2660
|
const deserializeMetadata = (output) => {
|
|
2661
|
-
var _a;
|
|
2661
|
+
var _a, _b;
|
|
2662
2662
|
return ({
|
|
2663
2663
|
httpStatusCode: output.statusCode,
|
|
2664
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
2664
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2665
2665
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2666
2666
|
cfId: output.headers["x-amz-cf-id"],
|
|
2667
2667
|
});
|
package/dist-es/Wisdom.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CreateAssistantAssociationCommand, } from "./commands/CreateAssistantAssociationCommand";
|
|
2
3
|
import { CreateAssistantCommand, } from "./commands/CreateAssistantCommand";
|
|
3
4
|
import { CreateContentCommand, } from "./commands/CreateContentCommand";
|
|
@@ -31,453 +32,459 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
31
32
|
import { UpdateContentCommand, } from "./commands/UpdateContentCommand";
|
|
32
33
|
import { UpdateKnowledgeBaseTemplateUriCommand, } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
|
|
33
34
|
import { WisdomClient } from "./WisdomClient";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
var Wisdom = (function (_super) {
|
|
36
|
+
__extends(Wisdom, _super);
|
|
37
|
+
function Wisdom() {
|
|
38
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
+
}
|
|
40
|
+
Wisdom.prototype.createAssistant = function (args, optionsOrCb, cb) {
|
|
41
|
+
var command = new CreateAssistantCommand(args);
|
|
37
42
|
if (typeof optionsOrCb === "function") {
|
|
38
43
|
this.send(command, optionsOrCb);
|
|
39
44
|
}
|
|
40
45
|
else if (typeof cb === "function") {
|
|
41
46
|
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(
|
|
47
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
43
48
|
this.send(command, optionsOrCb || {}, cb);
|
|
44
49
|
}
|
|
45
50
|
else {
|
|
46
51
|
return this.send(command, optionsOrCb);
|
|
47
52
|
}
|
|
48
|
-
}
|
|
49
|
-
createAssistantAssociation(args, optionsOrCb, cb) {
|
|
50
|
-
|
|
53
|
+
};
|
|
54
|
+
Wisdom.prototype.createAssistantAssociation = function (args, optionsOrCb, cb) {
|
|
55
|
+
var command = new CreateAssistantAssociationCommand(args);
|
|
51
56
|
if (typeof optionsOrCb === "function") {
|
|
52
57
|
this.send(command, optionsOrCb);
|
|
53
58
|
}
|
|
54
59
|
else if (typeof cb === "function") {
|
|
55
60
|
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(
|
|
61
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
57
62
|
this.send(command, optionsOrCb || {}, cb);
|
|
58
63
|
}
|
|
59
64
|
else {
|
|
60
65
|
return this.send(command, optionsOrCb);
|
|
61
66
|
}
|
|
62
|
-
}
|
|
63
|
-
createContent(args, optionsOrCb, cb) {
|
|
64
|
-
|
|
67
|
+
};
|
|
68
|
+
Wisdom.prototype.createContent = function (args, optionsOrCb, cb) {
|
|
69
|
+
var command = new CreateContentCommand(args);
|
|
65
70
|
if (typeof optionsOrCb === "function") {
|
|
66
71
|
this.send(command, optionsOrCb);
|
|
67
72
|
}
|
|
68
73
|
else if (typeof cb === "function") {
|
|
69
74
|
if (typeof optionsOrCb !== "object")
|
|
70
|
-
throw new Error(
|
|
75
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
71
76
|
this.send(command, optionsOrCb || {}, cb);
|
|
72
77
|
}
|
|
73
78
|
else {
|
|
74
79
|
return this.send(command, optionsOrCb);
|
|
75
80
|
}
|
|
76
|
-
}
|
|
77
|
-
createKnowledgeBase(args, optionsOrCb, cb) {
|
|
78
|
-
|
|
81
|
+
};
|
|
82
|
+
Wisdom.prototype.createKnowledgeBase = function (args, optionsOrCb, cb) {
|
|
83
|
+
var command = new CreateKnowledgeBaseCommand(args);
|
|
79
84
|
if (typeof optionsOrCb === "function") {
|
|
80
85
|
this.send(command, optionsOrCb);
|
|
81
86
|
}
|
|
82
87
|
else if (typeof cb === "function") {
|
|
83
88
|
if (typeof optionsOrCb !== "object")
|
|
84
|
-
throw new Error(
|
|
89
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
85
90
|
this.send(command, optionsOrCb || {}, cb);
|
|
86
91
|
}
|
|
87
92
|
else {
|
|
88
93
|
return this.send(command, optionsOrCb);
|
|
89
94
|
}
|
|
90
|
-
}
|
|
91
|
-
createSession(args, optionsOrCb, cb) {
|
|
92
|
-
|
|
95
|
+
};
|
|
96
|
+
Wisdom.prototype.createSession = function (args, optionsOrCb, cb) {
|
|
97
|
+
var command = new CreateSessionCommand(args);
|
|
93
98
|
if (typeof optionsOrCb === "function") {
|
|
94
99
|
this.send(command, optionsOrCb);
|
|
95
100
|
}
|
|
96
101
|
else if (typeof cb === "function") {
|
|
97
102
|
if (typeof optionsOrCb !== "object")
|
|
98
|
-
throw new Error(
|
|
103
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
99
104
|
this.send(command, optionsOrCb || {}, cb);
|
|
100
105
|
}
|
|
101
106
|
else {
|
|
102
107
|
return this.send(command, optionsOrCb);
|
|
103
108
|
}
|
|
104
|
-
}
|
|
105
|
-
deleteAssistant(args, optionsOrCb, cb) {
|
|
106
|
-
|
|
109
|
+
};
|
|
110
|
+
Wisdom.prototype.deleteAssistant = function (args, optionsOrCb, cb) {
|
|
111
|
+
var command = new DeleteAssistantCommand(args);
|
|
107
112
|
if (typeof optionsOrCb === "function") {
|
|
108
113
|
this.send(command, optionsOrCb);
|
|
109
114
|
}
|
|
110
115
|
else if (typeof cb === "function") {
|
|
111
116
|
if (typeof optionsOrCb !== "object")
|
|
112
|
-
throw new Error(
|
|
117
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
113
118
|
this.send(command, optionsOrCb || {}, cb);
|
|
114
119
|
}
|
|
115
120
|
else {
|
|
116
121
|
return this.send(command, optionsOrCb);
|
|
117
122
|
}
|
|
118
|
-
}
|
|
119
|
-
deleteAssistantAssociation(args, optionsOrCb, cb) {
|
|
120
|
-
|
|
123
|
+
};
|
|
124
|
+
Wisdom.prototype.deleteAssistantAssociation = function (args, optionsOrCb, cb) {
|
|
125
|
+
var command = new DeleteAssistantAssociationCommand(args);
|
|
121
126
|
if (typeof optionsOrCb === "function") {
|
|
122
127
|
this.send(command, optionsOrCb);
|
|
123
128
|
}
|
|
124
129
|
else if (typeof cb === "function") {
|
|
125
130
|
if (typeof optionsOrCb !== "object")
|
|
126
|
-
throw new Error(
|
|
131
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
127
132
|
this.send(command, optionsOrCb || {}, cb);
|
|
128
133
|
}
|
|
129
134
|
else {
|
|
130
135
|
return this.send(command, optionsOrCb);
|
|
131
136
|
}
|
|
132
|
-
}
|
|
133
|
-
deleteContent(args, optionsOrCb, cb) {
|
|
134
|
-
|
|
137
|
+
};
|
|
138
|
+
Wisdom.prototype.deleteContent = function (args, optionsOrCb, cb) {
|
|
139
|
+
var command = new DeleteContentCommand(args);
|
|
135
140
|
if (typeof optionsOrCb === "function") {
|
|
136
141
|
this.send(command, optionsOrCb);
|
|
137
142
|
}
|
|
138
143
|
else if (typeof cb === "function") {
|
|
139
144
|
if (typeof optionsOrCb !== "object")
|
|
140
|
-
throw new Error(
|
|
145
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
141
146
|
this.send(command, optionsOrCb || {}, cb);
|
|
142
147
|
}
|
|
143
148
|
else {
|
|
144
149
|
return this.send(command, optionsOrCb);
|
|
145
150
|
}
|
|
146
|
-
}
|
|
147
|
-
deleteKnowledgeBase(args, optionsOrCb, cb) {
|
|
148
|
-
|
|
151
|
+
};
|
|
152
|
+
Wisdom.prototype.deleteKnowledgeBase = function (args, optionsOrCb, cb) {
|
|
153
|
+
var command = new DeleteKnowledgeBaseCommand(args);
|
|
149
154
|
if (typeof optionsOrCb === "function") {
|
|
150
155
|
this.send(command, optionsOrCb);
|
|
151
156
|
}
|
|
152
157
|
else if (typeof cb === "function") {
|
|
153
158
|
if (typeof optionsOrCb !== "object")
|
|
154
|
-
throw new Error(
|
|
159
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
155
160
|
this.send(command, optionsOrCb || {}, cb);
|
|
156
161
|
}
|
|
157
162
|
else {
|
|
158
163
|
return this.send(command, optionsOrCb);
|
|
159
164
|
}
|
|
160
|
-
}
|
|
161
|
-
getAssistant(args, optionsOrCb, cb) {
|
|
162
|
-
|
|
165
|
+
};
|
|
166
|
+
Wisdom.prototype.getAssistant = function (args, optionsOrCb, cb) {
|
|
167
|
+
var command = new GetAssistantCommand(args);
|
|
163
168
|
if (typeof optionsOrCb === "function") {
|
|
164
169
|
this.send(command, optionsOrCb);
|
|
165
170
|
}
|
|
166
171
|
else if (typeof cb === "function") {
|
|
167
172
|
if (typeof optionsOrCb !== "object")
|
|
168
|
-
throw new Error(
|
|
173
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
169
174
|
this.send(command, optionsOrCb || {}, cb);
|
|
170
175
|
}
|
|
171
176
|
else {
|
|
172
177
|
return this.send(command, optionsOrCb);
|
|
173
178
|
}
|
|
174
|
-
}
|
|
175
|
-
getAssistantAssociation(args, optionsOrCb, cb) {
|
|
176
|
-
|
|
179
|
+
};
|
|
180
|
+
Wisdom.prototype.getAssistantAssociation = function (args, optionsOrCb, cb) {
|
|
181
|
+
var command = new GetAssistantAssociationCommand(args);
|
|
177
182
|
if (typeof optionsOrCb === "function") {
|
|
178
183
|
this.send(command, optionsOrCb);
|
|
179
184
|
}
|
|
180
185
|
else if (typeof cb === "function") {
|
|
181
186
|
if (typeof optionsOrCb !== "object")
|
|
182
|
-
throw new Error(
|
|
187
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
183
188
|
this.send(command, optionsOrCb || {}, cb);
|
|
184
189
|
}
|
|
185
190
|
else {
|
|
186
191
|
return this.send(command, optionsOrCb);
|
|
187
192
|
}
|
|
188
|
-
}
|
|
189
|
-
getContent(args, optionsOrCb, cb) {
|
|
190
|
-
|
|
193
|
+
};
|
|
194
|
+
Wisdom.prototype.getContent = function (args, optionsOrCb, cb) {
|
|
195
|
+
var command = new GetContentCommand(args);
|
|
191
196
|
if (typeof optionsOrCb === "function") {
|
|
192
197
|
this.send(command, optionsOrCb);
|
|
193
198
|
}
|
|
194
199
|
else if (typeof cb === "function") {
|
|
195
200
|
if (typeof optionsOrCb !== "object")
|
|
196
|
-
throw new Error(
|
|
201
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
197
202
|
this.send(command, optionsOrCb || {}, cb);
|
|
198
203
|
}
|
|
199
204
|
else {
|
|
200
205
|
return this.send(command, optionsOrCb);
|
|
201
206
|
}
|
|
202
|
-
}
|
|
203
|
-
getContentSummary(args, optionsOrCb, cb) {
|
|
204
|
-
|
|
207
|
+
};
|
|
208
|
+
Wisdom.prototype.getContentSummary = function (args, optionsOrCb, cb) {
|
|
209
|
+
var command = new GetContentSummaryCommand(args);
|
|
205
210
|
if (typeof optionsOrCb === "function") {
|
|
206
211
|
this.send(command, optionsOrCb);
|
|
207
212
|
}
|
|
208
213
|
else if (typeof cb === "function") {
|
|
209
214
|
if (typeof optionsOrCb !== "object")
|
|
210
|
-
throw new Error(
|
|
215
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
211
216
|
this.send(command, optionsOrCb || {}, cb);
|
|
212
217
|
}
|
|
213
218
|
else {
|
|
214
219
|
return this.send(command, optionsOrCb);
|
|
215
220
|
}
|
|
216
|
-
}
|
|
217
|
-
getKnowledgeBase(args, optionsOrCb, cb) {
|
|
218
|
-
|
|
221
|
+
};
|
|
222
|
+
Wisdom.prototype.getKnowledgeBase = function (args, optionsOrCb, cb) {
|
|
223
|
+
var command = new GetKnowledgeBaseCommand(args);
|
|
219
224
|
if (typeof optionsOrCb === "function") {
|
|
220
225
|
this.send(command, optionsOrCb);
|
|
221
226
|
}
|
|
222
227
|
else if (typeof cb === "function") {
|
|
223
228
|
if (typeof optionsOrCb !== "object")
|
|
224
|
-
throw new Error(
|
|
229
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
225
230
|
this.send(command, optionsOrCb || {}, cb);
|
|
226
231
|
}
|
|
227
232
|
else {
|
|
228
233
|
return this.send(command, optionsOrCb);
|
|
229
234
|
}
|
|
230
|
-
}
|
|
231
|
-
getRecommendations(args, optionsOrCb, cb) {
|
|
232
|
-
|
|
235
|
+
};
|
|
236
|
+
Wisdom.prototype.getRecommendations = function (args, optionsOrCb, cb) {
|
|
237
|
+
var command = new GetRecommendationsCommand(args);
|
|
233
238
|
if (typeof optionsOrCb === "function") {
|
|
234
239
|
this.send(command, optionsOrCb);
|
|
235
240
|
}
|
|
236
241
|
else if (typeof cb === "function") {
|
|
237
242
|
if (typeof optionsOrCb !== "object")
|
|
238
|
-
throw new Error(
|
|
243
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
239
244
|
this.send(command, optionsOrCb || {}, cb);
|
|
240
245
|
}
|
|
241
246
|
else {
|
|
242
247
|
return this.send(command, optionsOrCb);
|
|
243
248
|
}
|
|
244
|
-
}
|
|
245
|
-
getSession(args, optionsOrCb, cb) {
|
|
246
|
-
|
|
249
|
+
};
|
|
250
|
+
Wisdom.prototype.getSession = function (args, optionsOrCb, cb) {
|
|
251
|
+
var command = new GetSessionCommand(args);
|
|
247
252
|
if (typeof optionsOrCb === "function") {
|
|
248
253
|
this.send(command, optionsOrCb);
|
|
249
254
|
}
|
|
250
255
|
else if (typeof cb === "function") {
|
|
251
256
|
if (typeof optionsOrCb !== "object")
|
|
252
|
-
throw new Error(
|
|
257
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
253
258
|
this.send(command, optionsOrCb || {}, cb);
|
|
254
259
|
}
|
|
255
260
|
else {
|
|
256
261
|
return this.send(command, optionsOrCb);
|
|
257
262
|
}
|
|
258
|
-
}
|
|
259
|
-
listAssistantAssociations(args, optionsOrCb, cb) {
|
|
260
|
-
|
|
263
|
+
};
|
|
264
|
+
Wisdom.prototype.listAssistantAssociations = function (args, optionsOrCb, cb) {
|
|
265
|
+
var command = new ListAssistantAssociationsCommand(args);
|
|
261
266
|
if (typeof optionsOrCb === "function") {
|
|
262
267
|
this.send(command, optionsOrCb);
|
|
263
268
|
}
|
|
264
269
|
else if (typeof cb === "function") {
|
|
265
270
|
if (typeof optionsOrCb !== "object")
|
|
266
|
-
throw new Error(
|
|
271
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
267
272
|
this.send(command, optionsOrCb || {}, cb);
|
|
268
273
|
}
|
|
269
274
|
else {
|
|
270
275
|
return this.send(command, optionsOrCb);
|
|
271
276
|
}
|
|
272
|
-
}
|
|
273
|
-
listAssistants(args, optionsOrCb, cb) {
|
|
274
|
-
|
|
277
|
+
};
|
|
278
|
+
Wisdom.prototype.listAssistants = function (args, optionsOrCb, cb) {
|
|
279
|
+
var command = new ListAssistantsCommand(args);
|
|
275
280
|
if (typeof optionsOrCb === "function") {
|
|
276
281
|
this.send(command, optionsOrCb);
|
|
277
282
|
}
|
|
278
283
|
else if (typeof cb === "function") {
|
|
279
284
|
if (typeof optionsOrCb !== "object")
|
|
280
|
-
throw new Error(
|
|
285
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
281
286
|
this.send(command, optionsOrCb || {}, cb);
|
|
282
287
|
}
|
|
283
288
|
else {
|
|
284
289
|
return this.send(command, optionsOrCb);
|
|
285
290
|
}
|
|
286
|
-
}
|
|
287
|
-
listContents(args, optionsOrCb, cb) {
|
|
288
|
-
|
|
291
|
+
};
|
|
292
|
+
Wisdom.prototype.listContents = function (args, optionsOrCb, cb) {
|
|
293
|
+
var command = new ListContentsCommand(args);
|
|
289
294
|
if (typeof optionsOrCb === "function") {
|
|
290
295
|
this.send(command, optionsOrCb);
|
|
291
296
|
}
|
|
292
297
|
else if (typeof cb === "function") {
|
|
293
298
|
if (typeof optionsOrCb !== "object")
|
|
294
|
-
throw new Error(
|
|
299
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
295
300
|
this.send(command, optionsOrCb || {}, cb);
|
|
296
301
|
}
|
|
297
302
|
else {
|
|
298
303
|
return this.send(command, optionsOrCb);
|
|
299
304
|
}
|
|
300
|
-
}
|
|
301
|
-
listKnowledgeBases(args, optionsOrCb, cb) {
|
|
302
|
-
|
|
305
|
+
};
|
|
306
|
+
Wisdom.prototype.listKnowledgeBases = function (args, optionsOrCb, cb) {
|
|
307
|
+
var command = new ListKnowledgeBasesCommand(args);
|
|
303
308
|
if (typeof optionsOrCb === "function") {
|
|
304
309
|
this.send(command, optionsOrCb);
|
|
305
310
|
}
|
|
306
311
|
else if (typeof cb === "function") {
|
|
307
312
|
if (typeof optionsOrCb !== "object")
|
|
308
|
-
throw new Error(
|
|
313
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
309
314
|
this.send(command, optionsOrCb || {}, cb);
|
|
310
315
|
}
|
|
311
316
|
else {
|
|
312
317
|
return this.send(command, optionsOrCb);
|
|
313
318
|
}
|
|
314
|
-
}
|
|
315
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
316
|
-
|
|
319
|
+
};
|
|
320
|
+
Wisdom.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
321
|
+
var command = new ListTagsForResourceCommand(args);
|
|
317
322
|
if (typeof optionsOrCb === "function") {
|
|
318
323
|
this.send(command, optionsOrCb);
|
|
319
324
|
}
|
|
320
325
|
else if (typeof cb === "function") {
|
|
321
326
|
if (typeof optionsOrCb !== "object")
|
|
322
|
-
throw new Error(
|
|
327
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
323
328
|
this.send(command, optionsOrCb || {}, cb);
|
|
324
329
|
}
|
|
325
330
|
else {
|
|
326
331
|
return this.send(command, optionsOrCb);
|
|
327
332
|
}
|
|
328
|
-
}
|
|
329
|
-
notifyRecommendationsReceived(args, optionsOrCb, cb) {
|
|
330
|
-
|
|
333
|
+
};
|
|
334
|
+
Wisdom.prototype.notifyRecommendationsReceived = function (args, optionsOrCb, cb) {
|
|
335
|
+
var command = new NotifyRecommendationsReceivedCommand(args);
|
|
331
336
|
if (typeof optionsOrCb === "function") {
|
|
332
337
|
this.send(command, optionsOrCb);
|
|
333
338
|
}
|
|
334
339
|
else if (typeof cb === "function") {
|
|
335
340
|
if (typeof optionsOrCb !== "object")
|
|
336
|
-
throw new Error(
|
|
341
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
337
342
|
this.send(command, optionsOrCb || {}, cb);
|
|
338
343
|
}
|
|
339
344
|
else {
|
|
340
345
|
return this.send(command, optionsOrCb);
|
|
341
346
|
}
|
|
342
|
-
}
|
|
343
|
-
putFeedback(args, optionsOrCb, cb) {
|
|
344
|
-
|
|
347
|
+
};
|
|
348
|
+
Wisdom.prototype.putFeedback = function (args, optionsOrCb, cb) {
|
|
349
|
+
var command = new PutFeedbackCommand(args);
|
|
345
350
|
if (typeof optionsOrCb === "function") {
|
|
346
351
|
this.send(command, optionsOrCb);
|
|
347
352
|
}
|
|
348
353
|
else if (typeof cb === "function") {
|
|
349
354
|
if (typeof optionsOrCb !== "object")
|
|
350
|
-
throw new Error(
|
|
355
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
351
356
|
this.send(command, optionsOrCb || {}, cb);
|
|
352
357
|
}
|
|
353
358
|
else {
|
|
354
359
|
return this.send(command, optionsOrCb);
|
|
355
360
|
}
|
|
356
|
-
}
|
|
357
|
-
queryAssistant(args, optionsOrCb, cb) {
|
|
358
|
-
|
|
361
|
+
};
|
|
362
|
+
Wisdom.prototype.queryAssistant = function (args, optionsOrCb, cb) {
|
|
363
|
+
var command = new QueryAssistantCommand(args);
|
|
359
364
|
if (typeof optionsOrCb === "function") {
|
|
360
365
|
this.send(command, optionsOrCb);
|
|
361
366
|
}
|
|
362
367
|
else if (typeof cb === "function") {
|
|
363
368
|
if (typeof optionsOrCb !== "object")
|
|
364
|
-
throw new Error(
|
|
369
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
365
370
|
this.send(command, optionsOrCb || {}, cb);
|
|
366
371
|
}
|
|
367
372
|
else {
|
|
368
373
|
return this.send(command, optionsOrCb);
|
|
369
374
|
}
|
|
370
|
-
}
|
|
371
|
-
removeKnowledgeBaseTemplateUri(args, optionsOrCb, cb) {
|
|
372
|
-
|
|
375
|
+
};
|
|
376
|
+
Wisdom.prototype.removeKnowledgeBaseTemplateUri = function (args, optionsOrCb, cb) {
|
|
377
|
+
var command = new RemoveKnowledgeBaseTemplateUriCommand(args);
|
|
373
378
|
if (typeof optionsOrCb === "function") {
|
|
374
379
|
this.send(command, optionsOrCb);
|
|
375
380
|
}
|
|
376
381
|
else if (typeof cb === "function") {
|
|
377
382
|
if (typeof optionsOrCb !== "object")
|
|
378
|
-
throw new Error(
|
|
383
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
379
384
|
this.send(command, optionsOrCb || {}, cb);
|
|
380
385
|
}
|
|
381
386
|
else {
|
|
382
387
|
return this.send(command, optionsOrCb);
|
|
383
388
|
}
|
|
384
|
-
}
|
|
385
|
-
searchContent(args, optionsOrCb, cb) {
|
|
386
|
-
|
|
389
|
+
};
|
|
390
|
+
Wisdom.prototype.searchContent = function (args, optionsOrCb, cb) {
|
|
391
|
+
var command = new SearchContentCommand(args);
|
|
387
392
|
if (typeof optionsOrCb === "function") {
|
|
388
393
|
this.send(command, optionsOrCb);
|
|
389
394
|
}
|
|
390
395
|
else if (typeof cb === "function") {
|
|
391
396
|
if (typeof optionsOrCb !== "object")
|
|
392
|
-
throw new Error(
|
|
397
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
393
398
|
this.send(command, optionsOrCb || {}, cb);
|
|
394
399
|
}
|
|
395
400
|
else {
|
|
396
401
|
return this.send(command, optionsOrCb);
|
|
397
402
|
}
|
|
398
|
-
}
|
|
399
|
-
searchSessions(args, optionsOrCb, cb) {
|
|
400
|
-
|
|
403
|
+
};
|
|
404
|
+
Wisdom.prototype.searchSessions = function (args, optionsOrCb, cb) {
|
|
405
|
+
var command = new SearchSessionsCommand(args);
|
|
401
406
|
if (typeof optionsOrCb === "function") {
|
|
402
407
|
this.send(command, optionsOrCb);
|
|
403
408
|
}
|
|
404
409
|
else if (typeof cb === "function") {
|
|
405
410
|
if (typeof optionsOrCb !== "object")
|
|
406
|
-
throw new Error(
|
|
411
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
407
412
|
this.send(command, optionsOrCb || {}, cb);
|
|
408
413
|
}
|
|
409
414
|
else {
|
|
410
415
|
return this.send(command, optionsOrCb);
|
|
411
416
|
}
|
|
412
|
-
}
|
|
413
|
-
startContentUpload(args, optionsOrCb, cb) {
|
|
414
|
-
|
|
417
|
+
};
|
|
418
|
+
Wisdom.prototype.startContentUpload = function (args, optionsOrCb, cb) {
|
|
419
|
+
var command = new StartContentUploadCommand(args);
|
|
415
420
|
if (typeof optionsOrCb === "function") {
|
|
416
421
|
this.send(command, optionsOrCb);
|
|
417
422
|
}
|
|
418
423
|
else if (typeof cb === "function") {
|
|
419
424
|
if (typeof optionsOrCb !== "object")
|
|
420
|
-
throw new Error(
|
|
425
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
421
426
|
this.send(command, optionsOrCb || {}, cb);
|
|
422
427
|
}
|
|
423
428
|
else {
|
|
424
429
|
return this.send(command, optionsOrCb);
|
|
425
430
|
}
|
|
426
|
-
}
|
|
427
|
-
tagResource(args, optionsOrCb, cb) {
|
|
428
|
-
|
|
431
|
+
};
|
|
432
|
+
Wisdom.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
433
|
+
var command = new TagResourceCommand(args);
|
|
429
434
|
if (typeof optionsOrCb === "function") {
|
|
430
435
|
this.send(command, optionsOrCb);
|
|
431
436
|
}
|
|
432
437
|
else if (typeof cb === "function") {
|
|
433
438
|
if (typeof optionsOrCb !== "object")
|
|
434
|
-
throw new Error(
|
|
439
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
435
440
|
this.send(command, optionsOrCb || {}, cb);
|
|
436
441
|
}
|
|
437
442
|
else {
|
|
438
443
|
return this.send(command, optionsOrCb);
|
|
439
444
|
}
|
|
440
|
-
}
|
|
441
|
-
untagResource(args, optionsOrCb, cb) {
|
|
442
|
-
|
|
445
|
+
};
|
|
446
|
+
Wisdom.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
447
|
+
var command = new UntagResourceCommand(args);
|
|
443
448
|
if (typeof optionsOrCb === "function") {
|
|
444
449
|
this.send(command, optionsOrCb);
|
|
445
450
|
}
|
|
446
451
|
else if (typeof cb === "function") {
|
|
447
452
|
if (typeof optionsOrCb !== "object")
|
|
448
|
-
throw new Error(
|
|
453
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
449
454
|
this.send(command, optionsOrCb || {}, cb);
|
|
450
455
|
}
|
|
451
456
|
else {
|
|
452
457
|
return this.send(command, optionsOrCb);
|
|
453
458
|
}
|
|
454
|
-
}
|
|
455
|
-
updateContent(args, optionsOrCb, cb) {
|
|
456
|
-
|
|
459
|
+
};
|
|
460
|
+
Wisdom.prototype.updateContent = function (args, optionsOrCb, cb) {
|
|
461
|
+
var command = new UpdateContentCommand(args);
|
|
457
462
|
if (typeof optionsOrCb === "function") {
|
|
458
463
|
this.send(command, optionsOrCb);
|
|
459
464
|
}
|
|
460
465
|
else if (typeof cb === "function") {
|
|
461
466
|
if (typeof optionsOrCb !== "object")
|
|
462
|
-
throw new Error(
|
|
467
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
463
468
|
this.send(command, optionsOrCb || {}, cb);
|
|
464
469
|
}
|
|
465
470
|
else {
|
|
466
471
|
return this.send(command, optionsOrCb);
|
|
467
472
|
}
|
|
468
|
-
}
|
|
469
|
-
updateKnowledgeBaseTemplateUri(args, optionsOrCb, cb) {
|
|
470
|
-
|
|
473
|
+
};
|
|
474
|
+
Wisdom.prototype.updateKnowledgeBaseTemplateUri = function (args, optionsOrCb, cb) {
|
|
475
|
+
var command = new UpdateKnowledgeBaseTemplateUriCommand(args);
|
|
471
476
|
if (typeof optionsOrCb === "function") {
|
|
472
477
|
this.send(command, optionsOrCb);
|
|
473
478
|
}
|
|
474
479
|
else if (typeof cb === "function") {
|
|
475
480
|
if (typeof optionsOrCb !== "object")
|
|
476
|
-
throw new Error(
|
|
481
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
477
482
|
this.send(command, optionsOrCb || {}, cb);
|
|
478
483
|
}
|
|
479
484
|
else {
|
|
480
485
|
return this.send(command, optionsOrCb);
|
|
481
486
|
}
|
|
482
|
-
}
|
|
483
|
-
|
|
487
|
+
};
|
|
488
|
+
return Wisdom;
|
|
489
|
+
}(WisdomClient));
|
|
490
|
+
export { Wisdom };
|