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