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