@aws-sdk/client-wisdom 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Wisdom = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateAssistantAssociationCommand_1 = require("./commands/CreateAssistantAssociationCommand");
5
6
  const CreateAssistantCommand_1 = require("./commands/CreateAssistantCommand");
6
7
  const CreateContentCommand_1 = require("./commands/CreateContentCommand");
@@ -33,440 +34,40 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
33
34
  const UpdateContentCommand_1 = require("./commands/UpdateContentCommand");
34
35
  const UpdateKnowledgeBaseTemplateUriCommand_1 = require("./commands/UpdateKnowledgeBaseTemplateUriCommand");
35
36
  const WisdomClient_1 = require("./WisdomClient");
37
+ const commands = {
38
+ CreateAssistantCommand: CreateAssistantCommand_1.CreateAssistantCommand,
39
+ CreateAssistantAssociationCommand: CreateAssistantAssociationCommand_1.CreateAssistantAssociationCommand,
40
+ CreateContentCommand: CreateContentCommand_1.CreateContentCommand,
41
+ CreateKnowledgeBaseCommand: CreateKnowledgeBaseCommand_1.CreateKnowledgeBaseCommand,
42
+ CreateSessionCommand: CreateSessionCommand_1.CreateSessionCommand,
43
+ DeleteAssistantCommand: DeleteAssistantCommand_1.DeleteAssistantCommand,
44
+ DeleteAssistantAssociationCommand: DeleteAssistantAssociationCommand_1.DeleteAssistantAssociationCommand,
45
+ DeleteContentCommand: DeleteContentCommand_1.DeleteContentCommand,
46
+ DeleteKnowledgeBaseCommand: DeleteKnowledgeBaseCommand_1.DeleteKnowledgeBaseCommand,
47
+ GetAssistantCommand: GetAssistantCommand_1.GetAssistantCommand,
48
+ GetAssistantAssociationCommand: GetAssistantAssociationCommand_1.GetAssistantAssociationCommand,
49
+ GetContentCommand: GetContentCommand_1.GetContentCommand,
50
+ GetContentSummaryCommand: GetContentSummaryCommand_1.GetContentSummaryCommand,
51
+ GetKnowledgeBaseCommand: GetKnowledgeBaseCommand_1.GetKnowledgeBaseCommand,
52
+ GetRecommendationsCommand: GetRecommendationsCommand_1.GetRecommendationsCommand,
53
+ GetSessionCommand: GetSessionCommand_1.GetSessionCommand,
54
+ ListAssistantAssociationsCommand: ListAssistantAssociationsCommand_1.ListAssistantAssociationsCommand,
55
+ ListAssistantsCommand: ListAssistantsCommand_1.ListAssistantsCommand,
56
+ ListContentsCommand: ListContentsCommand_1.ListContentsCommand,
57
+ ListKnowledgeBasesCommand: ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand,
58
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
59
+ NotifyRecommendationsReceivedCommand: NotifyRecommendationsReceivedCommand_1.NotifyRecommendationsReceivedCommand,
60
+ QueryAssistantCommand: QueryAssistantCommand_1.QueryAssistantCommand,
61
+ RemoveKnowledgeBaseTemplateUriCommand: RemoveKnowledgeBaseTemplateUriCommand_1.RemoveKnowledgeBaseTemplateUriCommand,
62
+ SearchContentCommand: SearchContentCommand_1.SearchContentCommand,
63
+ SearchSessionsCommand: SearchSessionsCommand_1.SearchSessionsCommand,
64
+ StartContentUploadCommand: StartContentUploadCommand_1.StartContentUploadCommand,
65
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
66
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
67
+ UpdateContentCommand: UpdateContentCommand_1.UpdateContentCommand,
68
+ UpdateKnowledgeBaseTemplateUriCommand: UpdateKnowledgeBaseTemplateUriCommand_1.UpdateKnowledgeBaseTemplateUriCommand,
69
+ };
36
70
  class Wisdom extends WisdomClient_1.WisdomClient {
37
- createAssistant(args, optionsOrCb, cb) {
38
- const command = new CreateAssistantCommand_1.CreateAssistantCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
- createAssistantAssociation(args, optionsOrCb, cb) {
52
- const command = new CreateAssistantAssociationCommand_1.CreateAssistantAssociationCommand(args);
53
- if (typeof optionsOrCb === "function") {
54
- this.send(command, optionsOrCb);
55
- }
56
- else if (typeof cb === "function") {
57
- if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
- this.send(command, optionsOrCb || {}, cb);
60
- }
61
- else {
62
- return this.send(command, optionsOrCb);
63
- }
64
- }
65
- createContent(args, optionsOrCb, cb) {
66
- const command = new CreateContentCommand_1.CreateContentCommand(args);
67
- if (typeof optionsOrCb === "function") {
68
- this.send(command, optionsOrCb);
69
- }
70
- else if (typeof cb === "function") {
71
- if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- }
75
- else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
- createKnowledgeBase(args, optionsOrCb, cb) {
80
- const command = new CreateKnowledgeBaseCommand_1.CreateKnowledgeBaseCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- }
84
- else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
- this.send(command, optionsOrCb || {}, cb);
88
- }
89
- else {
90
- return this.send(command, optionsOrCb);
91
- }
92
- }
93
- createSession(args, optionsOrCb, cb) {
94
- const command = new CreateSessionCommand_1.CreateSessionCommand(args);
95
- if (typeof optionsOrCb === "function") {
96
- this.send(command, optionsOrCb);
97
- }
98
- else if (typeof cb === "function") {
99
- if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
- this.send(command, optionsOrCb || {}, cb);
102
- }
103
- else {
104
- return this.send(command, optionsOrCb);
105
- }
106
- }
107
- deleteAssistant(args, optionsOrCb, cb) {
108
- const command = new DeleteAssistantCommand_1.DeleteAssistantCommand(args);
109
- if (typeof optionsOrCb === "function") {
110
- this.send(command, optionsOrCb);
111
- }
112
- else if (typeof cb === "function") {
113
- if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
- this.send(command, optionsOrCb || {}, cb);
116
- }
117
- else {
118
- return this.send(command, optionsOrCb);
119
- }
120
- }
121
- deleteAssistantAssociation(args, optionsOrCb, cb) {
122
- const command = new DeleteAssistantAssociationCommand_1.DeleteAssistantAssociationCommand(args);
123
- if (typeof optionsOrCb === "function") {
124
- this.send(command, optionsOrCb);
125
- }
126
- else if (typeof cb === "function") {
127
- if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
- this.send(command, optionsOrCb || {}, cb);
130
- }
131
- else {
132
- return this.send(command, optionsOrCb);
133
- }
134
- }
135
- deleteContent(args, optionsOrCb, cb) {
136
- const command = new DeleteContentCommand_1.DeleteContentCommand(args);
137
- if (typeof optionsOrCb === "function") {
138
- this.send(command, optionsOrCb);
139
- }
140
- else if (typeof cb === "function") {
141
- if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
- this.send(command, optionsOrCb || {}, cb);
144
- }
145
- else {
146
- return this.send(command, optionsOrCb);
147
- }
148
- }
149
- deleteKnowledgeBase(args, optionsOrCb, cb) {
150
- const command = new DeleteKnowledgeBaseCommand_1.DeleteKnowledgeBaseCommand(args);
151
- if (typeof optionsOrCb === "function") {
152
- this.send(command, optionsOrCb);
153
- }
154
- else if (typeof cb === "function") {
155
- if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
- this.send(command, optionsOrCb || {}, cb);
158
- }
159
- else {
160
- return this.send(command, optionsOrCb);
161
- }
162
- }
163
- getAssistant(args, optionsOrCb, cb) {
164
- const command = new GetAssistantCommand_1.GetAssistantCommand(args);
165
- if (typeof optionsOrCb === "function") {
166
- this.send(command, optionsOrCb);
167
- }
168
- else if (typeof cb === "function") {
169
- if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
- this.send(command, optionsOrCb || {}, cb);
172
- }
173
- else {
174
- return this.send(command, optionsOrCb);
175
- }
176
- }
177
- getAssistantAssociation(args, optionsOrCb, cb) {
178
- const command = new GetAssistantAssociationCommand_1.GetAssistantAssociationCommand(args);
179
- if (typeof optionsOrCb === "function") {
180
- this.send(command, optionsOrCb);
181
- }
182
- else if (typeof cb === "function") {
183
- if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
- this.send(command, optionsOrCb || {}, cb);
186
- }
187
- else {
188
- return this.send(command, optionsOrCb);
189
- }
190
- }
191
- getContent(args, optionsOrCb, cb) {
192
- const command = new GetContentCommand_1.GetContentCommand(args);
193
- if (typeof optionsOrCb === "function") {
194
- this.send(command, optionsOrCb);
195
- }
196
- else if (typeof cb === "function") {
197
- if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
- this.send(command, optionsOrCb || {}, cb);
200
- }
201
- else {
202
- return this.send(command, optionsOrCb);
203
- }
204
- }
205
- getContentSummary(args, optionsOrCb, cb) {
206
- const command = new GetContentSummaryCommand_1.GetContentSummaryCommand(args);
207
- if (typeof optionsOrCb === "function") {
208
- this.send(command, optionsOrCb);
209
- }
210
- else if (typeof cb === "function") {
211
- if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
- this.send(command, optionsOrCb || {}, cb);
214
- }
215
- else {
216
- return this.send(command, optionsOrCb);
217
- }
218
- }
219
- getKnowledgeBase(args, optionsOrCb, cb) {
220
- const command = new GetKnowledgeBaseCommand_1.GetKnowledgeBaseCommand(args);
221
- if (typeof optionsOrCb === "function") {
222
- this.send(command, optionsOrCb);
223
- }
224
- else if (typeof cb === "function") {
225
- if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
- this.send(command, optionsOrCb || {}, cb);
228
- }
229
- else {
230
- return this.send(command, optionsOrCb);
231
- }
232
- }
233
- getRecommendations(args, optionsOrCb, cb) {
234
- const command = new GetRecommendationsCommand_1.GetRecommendationsCommand(args);
235
- if (typeof optionsOrCb === "function") {
236
- this.send(command, optionsOrCb);
237
- }
238
- else if (typeof cb === "function") {
239
- if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
- this.send(command, optionsOrCb || {}, cb);
242
- }
243
- else {
244
- return this.send(command, optionsOrCb);
245
- }
246
- }
247
- getSession(args, optionsOrCb, cb) {
248
- const command = new GetSessionCommand_1.GetSessionCommand(args);
249
- if (typeof optionsOrCb === "function") {
250
- this.send(command, optionsOrCb);
251
- }
252
- else if (typeof cb === "function") {
253
- if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
- this.send(command, optionsOrCb || {}, cb);
256
- }
257
- else {
258
- return this.send(command, optionsOrCb);
259
- }
260
- }
261
- listAssistantAssociations(args, optionsOrCb, cb) {
262
- const command = new ListAssistantAssociationsCommand_1.ListAssistantAssociationsCommand(args);
263
- if (typeof optionsOrCb === "function") {
264
- this.send(command, optionsOrCb);
265
- }
266
- else if (typeof cb === "function") {
267
- if (typeof optionsOrCb !== "object")
268
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
269
- this.send(command, optionsOrCb || {}, cb);
270
- }
271
- else {
272
- return this.send(command, optionsOrCb);
273
- }
274
- }
275
- listAssistants(args, optionsOrCb, cb) {
276
- const command = new ListAssistantsCommand_1.ListAssistantsCommand(args);
277
- if (typeof optionsOrCb === "function") {
278
- this.send(command, optionsOrCb);
279
- }
280
- else if (typeof cb === "function") {
281
- if (typeof optionsOrCb !== "object")
282
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
283
- this.send(command, optionsOrCb || {}, cb);
284
- }
285
- else {
286
- return this.send(command, optionsOrCb);
287
- }
288
- }
289
- listContents(args, optionsOrCb, cb) {
290
- const command = new ListContentsCommand_1.ListContentsCommand(args);
291
- if (typeof optionsOrCb === "function") {
292
- this.send(command, optionsOrCb);
293
- }
294
- else if (typeof cb === "function") {
295
- if (typeof optionsOrCb !== "object")
296
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
297
- this.send(command, optionsOrCb || {}, cb);
298
- }
299
- else {
300
- return this.send(command, optionsOrCb);
301
- }
302
- }
303
- listKnowledgeBases(args, optionsOrCb, cb) {
304
- const command = new ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand(args);
305
- if (typeof optionsOrCb === "function") {
306
- this.send(command, optionsOrCb);
307
- }
308
- else if (typeof cb === "function") {
309
- if (typeof optionsOrCb !== "object")
310
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
311
- this.send(command, optionsOrCb || {}, cb);
312
- }
313
- else {
314
- return this.send(command, optionsOrCb);
315
- }
316
- }
317
- listTagsForResource(args, optionsOrCb, cb) {
318
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
319
- if (typeof optionsOrCb === "function") {
320
- this.send(command, optionsOrCb);
321
- }
322
- else if (typeof cb === "function") {
323
- if (typeof optionsOrCb !== "object")
324
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
325
- this.send(command, optionsOrCb || {}, cb);
326
- }
327
- else {
328
- return this.send(command, optionsOrCb);
329
- }
330
- }
331
- notifyRecommendationsReceived(args, optionsOrCb, cb) {
332
- const command = new NotifyRecommendationsReceivedCommand_1.NotifyRecommendationsReceivedCommand(args);
333
- if (typeof optionsOrCb === "function") {
334
- this.send(command, optionsOrCb);
335
- }
336
- else if (typeof cb === "function") {
337
- if (typeof optionsOrCb !== "object")
338
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
339
- this.send(command, optionsOrCb || {}, cb);
340
- }
341
- else {
342
- return this.send(command, optionsOrCb);
343
- }
344
- }
345
- queryAssistant(args, optionsOrCb, cb) {
346
- const command = new QueryAssistantCommand_1.QueryAssistantCommand(args);
347
- if (typeof optionsOrCb === "function") {
348
- this.send(command, optionsOrCb);
349
- }
350
- else if (typeof cb === "function") {
351
- if (typeof optionsOrCb !== "object")
352
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
353
- this.send(command, optionsOrCb || {}, cb);
354
- }
355
- else {
356
- return this.send(command, optionsOrCb);
357
- }
358
- }
359
- removeKnowledgeBaseTemplateUri(args, optionsOrCb, cb) {
360
- const command = new RemoveKnowledgeBaseTemplateUriCommand_1.RemoveKnowledgeBaseTemplateUriCommand(args);
361
- if (typeof optionsOrCb === "function") {
362
- this.send(command, optionsOrCb);
363
- }
364
- else if (typeof cb === "function") {
365
- if (typeof optionsOrCb !== "object")
366
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
367
- this.send(command, optionsOrCb || {}, cb);
368
- }
369
- else {
370
- return this.send(command, optionsOrCb);
371
- }
372
- }
373
- searchContent(args, optionsOrCb, cb) {
374
- const command = new SearchContentCommand_1.SearchContentCommand(args);
375
- if (typeof optionsOrCb === "function") {
376
- this.send(command, optionsOrCb);
377
- }
378
- else if (typeof cb === "function") {
379
- if (typeof optionsOrCb !== "object")
380
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
381
- this.send(command, optionsOrCb || {}, cb);
382
- }
383
- else {
384
- return this.send(command, optionsOrCb);
385
- }
386
- }
387
- searchSessions(args, optionsOrCb, cb) {
388
- const command = new SearchSessionsCommand_1.SearchSessionsCommand(args);
389
- if (typeof optionsOrCb === "function") {
390
- this.send(command, optionsOrCb);
391
- }
392
- else if (typeof cb === "function") {
393
- if (typeof optionsOrCb !== "object")
394
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
395
- this.send(command, optionsOrCb || {}, cb);
396
- }
397
- else {
398
- return this.send(command, optionsOrCb);
399
- }
400
- }
401
- startContentUpload(args, optionsOrCb, cb) {
402
- const command = new StartContentUploadCommand_1.StartContentUploadCommand(args);
403
- if (typeof optionsOrCb === "function") {
404
- this.send(command, optionsOrCb);
405
- }
406
- else if (typeof cb === "function") {
407
- if (typeof optionsOrCb !== "object")
408
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
409
- this.send(command, optionsOrCb || {}, cb);
410
- }
411
- else {
412
- return this.send(command, optionsOrCb);
413
- }
414
- }
415
- tagResource(args, optionsOrCb, cb) {
416
- const command = new TagResourceCommand_1.TagResourceCommand(args);
417
- if (typeof optionsOrCb === "function") {
418
- this.send(command, optionsOrCb);
419
- }
420
- else if (typeof cb === "function") {
421
- if (typeof optionsOrCb !== "object")
422
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
423
- this.send(command, optionsOrCb || {}, cb);
424
- }
425
- else {
426
- return this.send(command, optionsOrCb);
427
- }
428
- }
429
- untagResource(args, optionsOrCb, cb) {
430
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
431
- if (typeof optionsOrCb === "function") {
432
- this.send(command, optionsOrCb);
433
- }
434
- else if (typeof cb === "function") {
435
- if (typeof optionsOrCb !== "object")
436
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
437
- this.send(command, optionsOrCb || {}, cb);
438
- }
439
- else {
440
- return this.send(command, optionsOrCb);
441
- }
442
- }
443
- updateContent(args, optionsOrCb, cb) {
444
- const command = new UpdateContentCommand_1.UpdateContentCommand(args);
445
- if (typeof optionsOrCb === "function") {
446
- this.send(command, optionsOrCb);
447
- }
448
- else if (typeof cb === "function") {
449
- if (typeof optionsOrCb !== "object")
450
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
451
- this.send(command, optionsOrCb || {}, cb);
452
- }
453
- else {
454
- return this.send(command, optionsOrCb);
455
- }
456
- }
457
- updateKnowledgeBaseTemplateUri(args, optionsOrCb, cb) {
458
- const command = new UpdateKnowledgeBaseTemplateUriCommand_1.UpdateKnowledgeBaseTemplateUriCommand(args);
459
- if (typeof optionsOrCb === "function") {
460
- this.send(command, optionsOrCb);
461
- }
462
- else if (typeof cb === "function") {
463
- if (typeof optionsOrCb !== "object")
464
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
465
- this.send(command, optionsOrCb || {}, cb);
466
- }
467
- else {
468
- return this.send(command, optionsOrCb);
469
- }
470
- }
471
71
  }
472
72
  exports.Wisdom = Wisdom;
73
+ (0, smithy_client_1.createAggregatedClient)(commands, Wisdom);
@@ -15,7 +15,7 @@ const se_CreateAssistantCommand = async (input, context) => {
15
15
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants";
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
18
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
19
19
  description: [],
20
20
  name: [],
21
21
  serverSideEncryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
@@ -44,7 +44,7 @@ const se_CreateAssistantAssociationCommand = async (input, context) => {
44
44
  body = JSON.stringify((0, smithy_client_1.take)(input, {
45
45
  association: (_) => (0, smithy_client_1._json)(_),
46
46
  associationType: [],
47
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
47
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
48
48
  tags: (_) => (0, smithy_client_1._json)(_),
49
49
  }));
50
50
  return new protocol_http_1.HttpRequest({
@@ -68,7 +68,7 @@ const se_CreateContentCommand = async (input, context) => {
68
68
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
69
69
  let body;
70
70
  body = JSON.stringify((0, smithy_client_1.take)(input, {
71
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
71
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
72
72
  metadata: (_) => (0, smithy_client_1._json)(_),
73
73
  name: [],
74
74
  overrideLinkOutUri: [],
@@ -95,7 +95,7 @@ const se_CreateKnowledgeBaseCommand = async (input, context) => {
95
95
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases";
96
96
  let body;
97
97
  body = JSON.stringify((0, smithy_client_1.take)(input, {
98
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
98
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
99
99
  description: [],
100
100
  knowledgeBaseType: [],
101
101
  name: [],
@@ -124,7 +124,7 @@ const se_CreateSessionCommand = async (input, context) => {
124
124
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assistantId", () => input.assistantId, "{assistantId}", false);
125
125
  let body;
126
126
  body = JSON.stringify((0, smithy_client_1.take)(input, {
127
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
127
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
128
128
  description: [],
129
129
  name: [],
130
130
  tags: (_) => (0, smithy_client_1._json)(_),