@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.
Files changed (51) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Wisdom.js +130 -137
  3. package/dist-es/WisdomClient.js +22 -28
  4. package/dist-es/commands/CreateAssistantAssociationCommand.js +21 -28
  5. package/dist-es/commands/CreateAssistantCommand.js +21 -28
  6. package/dist-es/commands/CreateContentCommand.js +21 -28
  7. package/dist-es/commands/CreateKnowledgeBaseCommand.js +21 -28
  8. package/dist-es/commands/CreateSessionCommand.js +21 -28
  9. package/dist-es/commands/DeleteAssistantAssociationCommand.js +21 -28
  10. package/dist-es/commands/DeleteAssistantCommand.js +21 -28
  11. package/dist-es/commands/DeleteContentCommand.js +21 -28
  12. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +21 -28
  13. package/dist-es/commands/GetAssistantAssociationCommand.js +21 -28
  14. package/dist-es/commands/GetAssistantCommand.js +21 -28
  15. package/dist-es/commands/GetContentCommand.js +21 -28
  16. package/dist-es/commands/GetContentSummaryCommand.js +21 -28
  17. package/dist-es/commands/GetKnowledgeBaseCommand.js +21 -28
  18. package/dist-es/commands/GetRecommendationsCommand.js +21 -28
  19. package/dist-es/commands/GetSessionCommand.js +21 -28
  20. package/dist-es/commands/ListAssistantAssociationsCommand.js +21 -28
  21. package/dist-es/commands/ListAssistantsCommand.js +21 -28
  22. package/dist-es/commands/ListContentsCommand.js +21 -28
  23. package/dist-es/commands/ListKnowledgeBasesCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +21 -28
  26. package/dist-es/commands/PutFeedbackCommand.js +21 -28
  27. package/dist-es/commands/QueryAssistantCommand.js +21 -28
  28. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +21 -28
  29. package/dist-es/commands/SearchContentCommand.js +21 -28
  30. package/dist-es/commands/SearchSessionsCommand.js +21 -28
  31. package/dist-es/commands/StartContentUploadCommand.js +21 -28
  32. package/dist-es/commands/TagResourceCommand.js +21 -28
  33. package/dist-es/commands/UntagResourceCommand.js +21 -28
  34. package/dist-es/commands/UpdateContentCommand.js +21 -28
  35. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +21 -28
  36. package/dist-es/endpoints.js +8 -8
  37. package/dist-es/models/WisdomServiceException.js +5 -10
  38. package/dist-es/models/models_0.js +409 -207
  39. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -68
  40. package/dist-es/pagination/ListAssistantsPaginator.js +25 -68
  41. package/dist-es/pagination/ListContentsPaginator.js +25 -68
  42. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -68
  43. package/dist-es/pagination/QueryAssistantPaginator.js +25 -68
  44. package/dist-es/pagination/SearchContentPaginator.js +25 -68
  45. package/dist-es/pagination/SearchSessionsPaginator.js +25 -68
  46. package/dist-es/protocols/Aws_restJson1.js +2164 -3086
  47. package/dist-es/runtimeConfig.browser.js +26 -12
  48. package/dist-es/runtimeConfig.js +30 -12
  49. package/dist-es/runtimeConfig.native.js +8 -5
  50. package/dist-es/runtimeConfig.shared.js +8 -11
  51. 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
- 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);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.createAssistantAssociation = function (args, optionsOrCb, cb) {
55
- var command = new CreateAssistantAssociationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.createContent = function (args, optionsOrCb, cb) {
69
- var command = new CreateContentCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.createKnowledgeBase = function (args, optionsOrCb, cb) {
83
- var command = new CreateKnowledgeBaseCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.createSession = function (args, optionsOrCb, cb) {
97
- var command = new CreateSessionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.deleteAssistant = function (args, optionsOrCb, cb) {
111
- var command = new DeleteAssistantCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.deleteAssistantAssociation = function (args, optionsOrCb, cb) {
125
- var command = new DeleteAssistantAssociationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.deleteContent = function (args, optionsOrCb, cb) {
139
- var command = new DeleteContentCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.deleteKnowledgeBase = function (args, optionsOrCb, cb) {
153
- var command = new DeleteKnowledgeBaseCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.getAssistant = function (args, optionsOrCb, cb) {
167
- var command = new GetAssistantCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.getAssistantAssociation = function (args, optionsOrCb, cb) {
181
- var command = new GetAssistantAssociationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.getContent = function (args, optionsOrCb, cb) {
195
- var command = new GetContentCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.getContentSummary = function (args, optionsOrCb, cb) {
209
- var command = new GetContentSummaryCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.getKnowledgeBase = function (args, optionsOrCb, cb) {
223
- var command = new GetKnowledgeBaseCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.getRecommendations = function (args, optionsOrCb, cb) {
237
- var command = new GetRecommendationsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.getSession = function (args, optionsOrCb, cb) {
251
- var command = new GetSessionCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.listAssistantAssociations = function (args, optionsOrCb, cb) {
265
- var command = new ListAssistantAssociationsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.listAssistants = function (args, optionsOrCb, cb) {
279
- var command = new ListAssistantsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.listContents = function (args, optionsOrCb, cb) {
293
- var command = new ListContentsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.listKnowledgeBases = function (args, optionsOrCb, cb) {
307
- var command = new ListKnowledgeBasesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
321
- var command = new ListTagsForResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.notifyRecommendationsReceived = function (args, optionsOrCb, cb) {
335
- var command = new NotifyRecommendationsReceivedCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.putFeedback = function (args, optionsOrCb, cb) {
349
- var command = new PutFeedbackCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.queryAssistant = function (args, optionsOrCb, cb) {
363
- var command = new QueryAssistantCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.removeKnowledgeBaseTemplateUri = function (args, optionsOrCb, cb) {
377
- var command = new RemoveKnowledgeBaseTemplateUriCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.searchContent = function (args, optionsOrCb, cb) {
391
- var command = new SearchContentCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.searchSessions = function (args, optionsOrCb, cb) {
405
- var command = new SearchSessionsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.startContentUpload = function (args, optionsOrCb, cb) {
419
- var command = new StartContentUploadCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.tagResource = function (args, optionsOrCb, cb) {
433
- var command = new TagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.untagResource = function (args, optionsOrCb, cb) {
447
- var command = new UntagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.updateContent = function (args, optionsOrCb, cb) {
461
- var command = new UpdateContentCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- Wisdom.prototype.updateKnowledgeBaseTemplateUri = function (args, optionsOrCb, cb) {
475
- var command = new UpdateKnowledgeBaseTemplateUriCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- return Wisdom;
489
- }(WisdomClient));
490
- export { Wisdom };
482
+ }
483
+ }