@aws-sdk/client-bedrock-agent 3.929.0 → 3.931.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/dist-cjs/index.js CHANGED
@@ -132,16 +132,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends BedrockAgentSe
132
132
  const CustomControlMethod = {
133
133
  RETURN_CONTROL: "RETURN_CONTROL",
134
134
  };
135
- exports.ActionGroupExecutor = void 0;
136
- (function (ActionGroupExecutor) {
137
- ActionGroupExecutor.visit = (value, visitor) => {
138
- if (value.lambda !== undefined)
139
- return visitor.lambda(value.lambda);
140
- if (value.customControl !== undefined)
141
- return visitor.customControl(value.customControl);
142
- return visitor._(value.$unknown[0], value.$unknown[1]);
143
- };
144
- })(exports.ActionGroupExecutor || (exports.ActionGroupExecutor = {}));
145
135
  let ConflictException$1 = class ConflictException extends BedrockAgentServiceException$1 {
146
136
  name = "ConflictException";
147
137
  $fault = "client";
@@ -158,16 +148,6 @@ const ActionGroupState = {
158
148
  DISABLED: "DISABLED",
159
149
  ENABLED: "ENABLED",
160
150
  };
161
- exports.APISchema = void 0;
162
- (function (APISchema) {
163
- APISchema.visit = (value, visitor) => {
164
- if (value.s3 !== undefined)
165
- return visitor.s3(value.s3);
166
- if (value.payload !== undefined)
167
- return visitor.payload(value.payload);
168
- return visitor._(value.$unknown[0], value.$unknown[1]);
169
- };
170
- })(exports.APISchema || (exports.APISchema = {}));
171
151
  const Type = {
172
152
  ARRAY: "array",
173
153
  BOOLEAN: "boolean",
@@ -179,14 +159,6 @@ const RequireConfirmation = {
179
159
  DISABLED: "DISABLED",
180
160
  ENABLED: "ENABLED",
181
161
  };
182
- exports.FunctionSchema = void 0;
183
- (function (FunctionSchema) {
184
- FunctionSchema.visit = (value, visitor) => {
185
- if (value.functions !== undefined)
186
- return visitor.functions(value.functions);
187
- return visitor._(value.$unknown[0], value.$unknown[1]);
188
- };
189
- })(exports.FunctionSchema || (exports.FunctionSchema = {}));
190
162
  const ActionGroupSignature = {
191
163
  AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
192
164
  AMAZON_USERINPUT: "AMAZON.UserInput",
@@ -271,14 +243,6 @@ const AgentStatus = {
271
243
  UPDATING: "UPDATING",
272
244
  VERSIONING: "VERSIONING",
273
245
  };
274
- exports.OrchestrationExecutor = void 0;
275
- (function (OrchestrationExecutor) {
276
- OrchestrationExecutor.visit = (value, visitor) => {
277
- if (value.lambda !== undefined)
278
- return visitor.lambda(value.lambda);
279
- return visitor._(value.$unknown[0], value.$unknown[1]);
280
- };
281
- })(exports.OrchestrationExecutor || (exports.OrchestrationExecutor = {}));
282
246
  const MemoryType = {
283
247
  SESSION_SUMMARY: "SESSION_SUMMARY",
284
248
  };
@@ -385,16 +349,6 @@ const DataSourceStatus = {
385
349
  DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
386
350
  DELETING: "DELETING",
387
351
  };
388
- exports.FlowConnectionConfiguration = void 0;
389
- (function (FlowConnectionConfiguration) {
390
- FlowConnectionConfiguration.visit = (value, visitor) => {
391
- if (value.data !== undefined)
392
- return visitor.data(value.data);
393
- if (value.conditional !== undefined)
394
- return visitor.conditional(value.conditional);
395
- return visitor._(value.$unknown[0], value.$unknown[1]);
396
- };
397
- })(exports.FlowConnectionConfiguration || (exports.FlowConnectionConfiguration = {}));
398
352
  const FlowConnectionType = {
399
353
  CONDITIONAL: "Conditional",
400
354
  DATA: "Data",
@@ -402,14 +356,6 @@ const FlowConnectionType = {
402
356
  const SupportedLanguages = {
403
357
  PYTHON_3: "Python_3",
404
358
  };
405
- exports.PromptInferenceConfiguration = void 0;
406
- (function (PromptInferenceConfiguration) {
407
- PromptInferenceConfiguration.visit = (value, visitor) => {
408
- if (value.text !== undefined)
409
- return visitor.text(value.text);
410
- return visitor._(value.$unknown[0], value.$unknown[1]);
411
- };
412
- })(exports.PromptInferenceConfiguration || (exports.PromptInferenceConfiguration = {}));
413
359
  const PerformanceConfigLatency = {
414
360
  OPTIMIZED: "optimized",
415
361
  STANDARD: "standard",
@@ -418,116 +364,20 @@ const RerankingMetadataSelectionMode = {
418
364
  ALL: "ALL",
419
365
  SELECTIVE: "SELECTIVE",
420
366
  };
421
- exports.RerankingMetadataSelectiveModeConfiguration = void 0;
422
- (function (RerankingMetadataSelectiveModeConfiguration) {
423
- RerankingMetadataSelectiveModeConfiguration.visit = (value, visitor) => {
424
- if (value.fieldsToInclude !== undefined)
425
- return visitor.fieldsToInclude(value.fieldsToInclude);
426
- if (value.fieldsToExclude !== undefined)
427
- return visitor.fieldsToExclude(value.fieldsToExclude);
428
- return visitor._(value.$unknown[0], value.$unknown[1]);
429
- };
430
- })(exports.RerankingMetadataSelectiveModeConfiguration || (exports.RerankingMetadataSelectiveModeConfiguration = {}));
431
367
  const VectorSearchRerankingConfigurationType = {
432
368
  BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
433
369
  };
434
370
  const CachePointType = {
435
371
  DEFAULT: "default",
436
372
  };
437
- exports.ContentBlock = void 0;
438
- (function (ContentBlock) {
439
- ContentBlock.visit = (value, visitor) => {
440
- if (value.text !== undefined)
441
- return visitor.text(value.text);
442
- if (value.cachePoint !== undefined)
443
- return visitor.cachePoint(value.cachePoint);
444
- return visitor._(value.$unknown[0], value.$unknown[1]);
445
- };
446
- })(exports.ContentBlock || (exports.ContentBlock = {}));
447
373
  const ConversationRole = {
448
374
  ASSISTANT: "assistant",
449
375
  USER: "user",
450
376
  };
451
- exports.SystemContentBlock = void 0;
452
- (function (SystemContentBlock) {
453
- SystemContentBlock.visit = (value, visitor) => {
454
- if (value.text !== undefined)
455
- return visitor.text(value.text);
456
- if (value.cachePoint !== undefined)
457
- return visitor.cachePoint(value.cachePoint);
458
- return visitor._(value.$unknown[0], value.$unknown[1]);
459
- };
460
- })(exports.SystemContentBlock || (exports.SystemContentBlock = {}));
461
- exports.ToolChoice = void 0;
462
- (function (ToolChoice) {
463
- ToolChoice.visit = (value, visitor) => {
464
- if (value.auto !== undefined)
465
- return visitor.auto(value.auto);
466
- if (value.any !== undefined)
467
- return visitor.any(value.any);
468
- if (value.tool !== undefined)
469
- return visitor.tool(value.tool);
470
- return visitor._(value.$unknown[0], value.$unknown[1]);
471
- };
472
- })(exports.ToolChoice || (exports.ToolChoice = {}));
473
- exports.ToolInputSchema = void 0;
474
- (function (ToolInputSchema) {
475
- ToolInputSchema.visit = (value, visitor) => {
476
- if (value.json !== undefined)
477
- return visitor.json(value.json);
478
- return visitor._(value.$unknown[0], value.$unknown[1]);
479
- };
480
- })(exports.ToolInputSchema || (exports.ToolInputSchema = {}));
481
- exports.Tool = void 0;
482
- (function (Tool) {
483
- Tool.visit = (value, visitor) => {
484
- if (value.toolSpec !== undefined)
485
- return visitor.toolSpec(value.toolSpec);
486
- if (value.cachePoint !== undefined)
487
- return visitor.cachePoint(value.cachePoint);
488
- return visitor._(value.$unknown[0], value.$unknown[1]);
489
- };
490
- })(exports.Tool || (exports.Tool = {}));
491
- exports.PromptTemplateConfiguration = void 0;
492
- (function (PromptTemplateConfiguration) {
493
- PromptTemplateConfiguration.visit = (value, visitor) => {
494
- if (value.text !== undefined)
495
- return visitor.text(value.text);
496
- if (value.chat !== undefined)
497
- return visitor.chat(value.chat);
498
- return visitor._(value.$unknown[0], value.$unknown[1]);
499
- };
500
- })(exports.PromptTemplateConfiguration || (exports.PromptTemplateConfiguration = {}));
501
377
  const PromptTemplateType = {
502
378
  CHAT: "CHAT",
503
379
  TEXT: "TEXT",
504
380
  };
505
- exports.PromptFlowNodeSourceConfiguration = void 0;
506
- (function (PromptFlowNodeSourceConfiguration) {
507
- PromptFlowNodeSourceConfiguration.visit = (value, visitor) => {
508
- if (value.resource !== undefined)
509
- return visitor.resource(value.resource);
510
- if (value.inline !== undefined)
511
- return visitor.inline(value.inline);
512
- return visitor._(value.$unknown[0], value.$unknown[1]);
513
- };
514
- })(exports.PromptFlowNodeSourceConfiguration || (exports.PromptFlowNodeSourceConfiguration = {}));
515
- exports.RetrievalFlowNodeServiceConfiguration = void 0;
516
- (function (RetrievalFlowNodeServiceConfiguration) {
517
- RetrievalFlowNodeServiceConfiguration.visit = (value, visitor) => {
518
- if (value.s3 !== undefined)
519
- return visitor.s3(value.s3);
520
- return visitor._(value.$unknown[0], value.$unknown[1]);
521
- };
522
- })(exports.RetrievalFlowNodeServiceConfiguration || (exports.RetrievalFlowNodeServiceConfiguration = {}));
523
- exports.StorageFlowNodeServiceConfiguration = void 0;
524
- (function (StorageFlowNodeServiceConfiguration) {
525
- StorageFlowNodeServiceConfiguration.visit = (value, visitor) => {
526
- if (value.s3 !== undefined)
527
- return visitor.s3(value.s3);
528
- return visitor._(value.$unknown[0], value.$unknown[1]);
529
- };
530
- })(exports.StorageFlowNodeServiceConfiguration || (exports.StorageFlowNodeServiceConfiguration = {}));
531
381
  const FlowNodeInputCategory = {
532
382
  EXIT_LOOP: "ExitLoop",
533
383
  LOOP_CONDITION: "LoopCondition",
@@ -574,78 +424,6 @@ const IncompatibleLoopNodeType = {
574
424
  INPUT: "Input",
575
425
  ITERATOR: "Iterator",
576
426
  };
577
- exports.FlowValidationDetails = void 0;
578
- (function (FlowValidationDetails) {
579
- FlowValidationDetails.visit = (value, visitor) => {
580
- if (value.cyclicConnection !== undefined)
581
- return visitor.cyclicConnection(value.cyclicConnection);
582
- if (value.duplicateConnections !== undefined)
583
- return visitor.duplicateConnections(value.duplicateConnections);
584
- if (value.duplicateConditionExpression !== undefined)
585
- return visitor.duplicateConditionExpression(value.duplicateConditionExpression);
586
- if (value.unreachableNode !== undefined)
587
- return visitor.unreachableNode(value.unreachableNode);
588
- if (value.unknownConnectionSource !== undefined)
589
- return visitor.unknownConnectionSource(value.unknownConnectionSource);
590
- if (value.unknownConnectionSourceOutput !== undefined)
591
- return visitor.unknownConnectionSourceOutput(value.unknownConnectionSourceOutput);
592
- if (value.unknownConnectionTarget !== undefined)
593
- return visitor.unknownConnectionTarget(value.unknownConnectionTarget);
594
- if (value.unknownConnectionTargetInput !== undefined)
595
- return visitor.unknownConnectionTargetInput(value.unknownConnectionTargetInput);
596
- if (value.unknownConnectionCondition !== undefined)
597
- return visitor.unknownConnectionCondition(value.unknownConnectionCondition);
598
- if (value.malformedConditionExpression !== undefined)
599
- return visitor.malformedConditionExpression(value.malformedConditionExpression);
600
- if (value.malformedNodeInputExpression !== undefined)
601
- return visitor.malformedNodeInputExpression(value.malformedNodeInputExpression);
602
- if (value.mismatchedNodeInputType !== undefined)
603
- return visitor.mismatchedNodeInputType(value.mismatchedNodeInputType);
604
- if (value.mismatchedNodeOutputType !== undefined)
605
- return visitor.mismatchedNodeOutputType(value.mismatchedNodeOutputType);
606
- if (value.incompatibleConnectionDataType !== undefined)
607
- return visitor.incompatibleConnectionDataType(value.incompatibleConnectionDataType);
608
- if (value.missingConnectionConfiguration !== undefined)
609
- return visitor.missingConnectionConfiguration(value.missingConnectionConfiguration);
610
- if (value.missingDefaultCondition !== undefined)
611
- return visitor.missingDefaultCondition(value.missingDefaultCondition);
612
- if (value.missingEndingNodes !== undefined)
613
- return visitor.missingEndingNodes(value.missingEndingNodes);
614
- if (value.missingNodeConfiguration !== undefined)
615
- return visitor.missingNodeConfiguration(value.missingNodeConfiguration);
616
- if (value.missingNodeInput !== undefined)
617
- return visitor.missingNodeInput(value.missingNodeInput);
618
- if (value.missingNodeOutput !== undefined)
619
- return visitor.missingNodeOutput(value.missingNodeOutput);
620
- if (value.missingStartingNodes !== undefined)
621
- return visitor.missingStartingNodes(value.missingStartingNodes);
622
- if (value.multipleNodeInputConnections !== undefined)
623
- return visitor.multipleNodeInputConnections(value.multipleNodeInputConnections);
624
- if (value.unfulfilledNodeInput !== undefined)
625
- return visitor.unfulfilledNodeInput(value.unfulfilledNodeInput);
626
- if (value.unsatisfiedConnectionConditions !== undefined)
627
- return visitor.unsatisfiedConnectionConditions(value.unsatisfiedConnectionConditions);
628
- if (value.unspecified !== undefined)
629
- return visitor.unspecified(value.unspecified);
630
- if (value.unknownNodeInput !== undefined)
631
- return visitor.unknownNodeInput(value.unknownNodeInput);
632
- if (value.unknownNodeOutput !== undefined)
633
- return visitor.unknownNodeOutput(value.unknownNodeOutput);
634
- if (value.missingLoopInputNode !== undefined)
635
- return visitor.missingLoopInputNode(value.missingLoopInputNode);
636
- if (value.missingLoopControllerNode !== undefined)
637
- return visitor.missingLoopControllerNode(value.missingLoopControllerNode);
638
- if (value.multipleLoopInputNodes !== undefined)
639
- return visitor.multipleLoopInputNodes(value.multipleLoopInputNodes);
640
- if (value.multipleLoopControllerNodes !== undefined)
641
- return visitor.multipleLoopControllerNodes(value.multipleLoopControllerNodes);
642
- if (value.loopIncompatibleNodeType !== undefined)
643
- return visitor.loopIncompatibleNodeType(value.loopIncompatibleNodeType);
644
- if (value.invalidLoopBoundary !== undefined)
645
- return visitor.invalidLoopBoundary(value.invalidLoopBoundary);
646
- return visitor._(value.$unknown[0], value.$unknown[1]);
647
- };
648
- })(exports.FlowValidationDetails || (exports.FlowValidationDetails = {}));
649
427
  const FlowValidationSeverity = {
650
428
  ERROR: "Error",
651
429
  WARNING: "Warning",
@@ -798,52 +576,6 @@ const KnowledgeBaseStatus = {
798
576
  FAILED: "FAILED",
799
577
  UPDATING: "UPDATING",
800
578
  };
801
- exports.PromptGenAiResource = void 0;
802
- (function (PromptGenAiResource) {
803
- PromptGenAiResource.visit = (value, visitor) => {
804
- if (value.agent !== undefined)
805
- return visitor.agent(value.agent);
806
- return visitor._(value.$unknown[0], value.$unknown[1]);
807
- };
808
- })(exports.PromptGenAiResource || (exports.PromptGenAiResource = {}));
809
- exports.FlowNodeConfiguration = void 0;
810
- (function (FlowNodeConfiguration) {
811
- FlowNodeConfiguration.visit = (value, visitor) => {
812
- if (value.input !== undefined)
813
- return visitor.input(value.input);
814
- if (value.output !== undefined)
815
- return visitor.output(value.output);
816
- if (value.knowledgeBase !== undefined)
817
- return visitor.knowledgeBase(value.knowledgeBase);
818
- if (value.condition !== undefined)
819
- return visitor.condition(value.condition);
820
- if (value.lex !== undefined)
821
- return visitor.lex(value.lex);
822
- if (value.prompt !== undefined)
823
- return visitor.prompt(value.prompt);
824
- if (value.lambdaFunction !== undefined)
825
- return visitor.lambdaFunction(value.lambdaFunction);
826
- if (value.storage !== undefined)
827
- return visitor.storage(value.storage);
828
- if (value.agent !== undefined)
829
- return visitor.agent(value.agent);
830
- if (value.retrieval !== undefined)
831
- return visitor.retrieval(value.retrieval);
832
- if (value.iterator !== undefined)
833
- return visitor.iterator(value.iterator);
834
- if (value.collector !== undefined)
835
- return visitor.collector(value.collector);
836
- if (value.inlineCode !== undefined)
837
- return visitor.inlineCode(value.inlineCode);
838
- if (value.loop !== undefined)
839
- return visitor.loop(value.loop);
840
- if (value.loopInput !== undefined)
841
- return visitor.loopInput(value.loopInput);
842
- if (value.loopController !== undefined)
843
- return visitor.loopController(value.loopController);
844
- return visitor._(value.$unknown[0], value.$unknown[1]);
845
- };
846
- })(exports.FlowNodeConfiguration || (exports.FlowNodeConfiguration = {}));
847
579
 
848
580
  const _A = "Agent";
849
581
  const _AA = "AgentAlias";
@@ -14,16 +14,6 @@ export class AccessDeniedException extends __BaseException {
14
14
  export const CustomControlMethod = {
15
15
  RETURN_CONTROL: "RETURN_CONTROL",
16
16
  };
17
- export var ActionGroupExecutor;
18
- (function (ActionGroupExecutor) {
19
- ActionGroupExecutor.visit = (value, visitor) => {
20
- if (value.lambda !== undefined)
21
- return visitor.lambda(value.lambda);
22
- if (value.customControl !== undefined)
23
- return visitor.customControl(value.customControl);
24
- return visitor._(value.$unknown[0], value.$unknown[1]);
25
- };
26
- })(ActionGroupExecutor || (ActionGroupExecutor = {}));
27
17
  export class ConflictException extends __BaseException {
28
18
  name = "ConflictException";
29
19
  $fault = "client";
@@ -40,16 +30,6 @@ export const ActionGroupState = {
40
30
  DISABLED: "DISABLED",
41
31
  ENABLED: "ENABLED",
42
32
  };
43
- export var APISchema;
44
- (function (APISchema) {
45
- APISchema.visit = (value, visitor) => {
46
- if (value.s3 !== undefined)
47
- return visitor.s3(value.s3);
48
- if (value.payload !== undefined)
49
- return visitor.payload(value.payload);
50
- return visitor._(value.$unknown[0], value.$unknown[1]);
51
- };
52
- })(APISchema || (APISchema = {}));
53
33
  export const Type = {
54
34
  ARRAY: "array",
55
35
  BOOLEAN: "boolean",
@@ -61,14 +41,6 @@ export const RequireConfirmation = {
61
41
  DISABLED: "DISABLED",
62
42
  ENABLED: "ENABLED",
63
43
  };
64
- export var FunctionSchema;
65
- (function (FunctionSchema) {
66
- FunctionSchema.visit = (value, visitor) => {
67
- if (value.functions !== undefined)
68
- return visitor.functions(value.functions);
69
- return visitor._(value.$unknown[0], value.$unknown[1]);
70
- };
71
- })(FunctionSchema || (FunctionSchema = {}));
72
44
  export const ActionGroupSignature = {
73
45
  AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
74
46
  AMAZON_USERINPUT: "AMAZON.UserInput",
@@ -153,14 +125,6 @@ export const AgentStatus = {
153
125
  UPDATING: "UPDATING",
154
126
  VERSIONING: "VERSIONING",
155
127
  };
156
- export var OrchestrationExecutor;
157
- (function (OrchestrationExecutor) {
158
- OrchestrationExecutor.visit = (value, visitor) => {
159
- if (value.lambda !== undefined)
160
- return visitor.lambda(value.lambda);
161
- return visitor._(value.$unknown[0], value.$unknown[1]);
162
- };
163
- })(OrchestrationExecutor || (OrchestrationExecutor = {}));
164
128
  export const MemoryType = {
165
129
  SESSION_SUMMARY: "SESSION_SUMMARY",
166
130
  };
@@ -267,16 +231,6 @@ export const DataSourceStatus = {
267
231
  DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
268
232
  DELETING: "DELETING",
269
233
  };
270
- export var FlowConnectionConfiguration;
271
- (function (FlowConnectionConfiguration) {
272
- FlowConnectionConfiguration.visit = (value, visitor) => {
273
- if (value.data !== undefined)
274
- return visitor.data(value.data);
275
- if (value.conditional !== undefined)
276
- return visitor.conditional(value.conditional);
277
- return visitor._(value.$unknown[0], value.$unknown[1]);
278
- };
279
- })(FlowConnectionConfiguration || (FlowConnectionConfiguration = {}));
280
234
  export const FlowConnectionType = {
281
235
  CONDITIONAL: "Conditional",
282
236
  DATA: "Data",
@@ -284,14 +238,6 @@ export const FlowConnectionType = {
284
238
  export const SupportedLanguages = {
285
239
  PYTHON_3: "Python_3",
286
240
  };
287
- export var PromptInferenceConfiguration;
288
- (function (PromptInferenceConfiguration) {
289
- PromptInferenceConfiguration.visit = (value, visitor) => {
290
- if (value.text !== undefined)
291
- return visitor.text(value.text);
292
- return visitor._(value.$unknown[0], value.$unknown[1]);
293
- };
294
- })(PromptInferenceConfiguration || (PromptInferenceConfiguration = {}));
295
241
  export const PerformanceConfigLatency = {
296
242
  OPTIMIZED: "optimized",
297
243
  STANDARD: "standard",
@@ -300,116 +246,20 @@ export const RerankingMetadataSelectionMode = {
300
246
  ALL: "ALL",
301
247
  SELECTIVE: "SELECTIVE",
302
248
  };
303
- export var RerankingMetadataSelectiveModeConfiguration;
304
- (function (RerankingMetadataSelectiveModeConfiguration) {
305
- RerankingMetadataSelectiveModeConfiguration.visit = (value, visitor) => {
306
- if (value.fieldsToInclude !== undefined)
307
- return visitor.fieldsToInclude(value.fieldsToInclude);
308
- if (value.fieldsToExclude !== undefined)
309
- return visitor.fieldsToExclude(value.fieldsToExclude);
310
- return visitor._(value.$unknown[0], value.$unknown[1]);
311
- };
312
- })(RerankingMetadataSelectiveModeConfiguration || (RerankingMetadataSelectiveModeConfiguration = {}));
313
249
  export const VectorSearchRerankingConfigurationType = {
314
250
  BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
315
251
  };
316
252
  export const CachePointType = {
317
253
  DEFAULT: "default",
318
254
  };
319
- export var ContentBlock;
320
- (function (ContentBlock) {
321
- ContentBlock.visit = (value, visitor) => {
322
- if (value.text !== undefined)
323
- return visitor.text(value.text);
324
- if (value.cachePoint !== undefined)
325
- return visitor.cachePoint(value.cachePoint);
326
- return visitor._(value.$unknown[0], value.$unknown[1]);
327
- };
328
- })(ContentBlock || (ContentBlock = {}));
329
255
  export const ConversationRole = {
330
256
  ASSISTANT: "assistant",
331
257
  USER: "user",
332
258
  };
333
- export var SystemContentBlock;
334
- (function (SystemContentBlock) {
335
- SystemContentBlock.visit = (value, visitor) => {
336
- if (value.text !== undefined)
337
- return visitor.text(value.text);
338
- if (value.cachePoint !== undefined)
339
- return visitor.cachePoint(value.cachePoint);
340
- return visitor._(value.$unknown[0], value.$unknown[1]);
341
- };
342
- })(SystemContentBlock || (SystemContentBlock = {}));
343
- export var ToolChoice;
344
- (function (ToolChoice) {
345
- ToolChoice.visit = (value, visitor) => {
346
- if (value.auto !== undefined)
347
- return visitor.auto(value.auto);
348
- if (value.any !== undefined)
349
- return visitor.any(value.any);
350
- if (value.tool !== undefined)
351
- return visitor.tool(value.tool);
352
- return visitor._(value.$unknown[0], value.$unknown[1]);
353
- };
354
- })(ToolChoice || (ToolChoice = {}));
355
- export var ToolInputSchema;
356
- (function (ToolInputSchema) {
357
- ToolInputSchema.visit = (value, visitor) => {
358
- if (value.json !== undefined)
359
- return visitor.json(value.json);
360
- return visitor._(value.$unknown[0], value.$unknown[1]);
361
- };
362
- })(ToolInputSchema || (ToolInputSchema = {}));
363
- export var Tool;
364
- (function (Tool) {
365
- Tool.visit = (value, visitor) => {
366
- if (value.toolSpec !== undefined)
367
- return visitor.toolSpec(value.toolSpec);
368
- if (value.cachePoint !== undefined)
369
- return visitor.cachePoint(value.cachePoint);
370
- return visitor._(value.$unknown[0], value.$unknown[1]);
371
- };
372
- })(Tool || (Tool = {}));
373
- export var PromptTemplateConfiguration;
374
- (function (PromptTemplateConfiguration) {
375
- PromptTemplateConfiguration.visit = (value, visitor) => {
376
- if (value.text !== undefined)
377
- return visitor.text(value.text);
378
- if (value.chat !== undefined)
379
- return visitor.chat(value.chat);
380
- return visitor._(value.$unknown[0], value.$unknown[1]);
381
- };
382
- })(PromptTemplateConfiguration || (PromptTemplateConfiguration = {}));
383
259
  export const PromptTemplateType = {
384
260
  CHAT: "CHAT",
385
261
  TEXT: "TEXT",
386
262
  };
387
- export var PromptFlowNodeSourceConfiguration;
388
- (function (PromptFlowNodeSourceConfiguration) {
389
- PromptFlowNodeSourceConfiguration.visit = (value, visitor) => {
390
- if (value.resource !== undefined)
391
- return visitor.resource(value.resource);
392
- if (value.inline !== undefined)
393
- return visitor.inline(value.inline);
394
- return visitor._(value.$unknown[0], value.$unknown[1]);
395
- };
396
- })(PromptFlowNodeSourceConfiguration || (PromptFlowNodeSourceConfiguration = {}));
397
- export var RetrievalFlowNodeServiceConfiguration;
398
- (function (RetrievalFlowNodeServiceConfiguration) {
399
- RetrievalFlowNodeServiceConfiguration.visit = (value, visitor) => {
400
- if (value.s3 !== undefined)
401
- return visitor.s3(value.s3);
402
- return visitor._(value.$unknown[0], value.$unknown[1]);
403
- };
404
- })(RetrievalFlowNodeServiceConfiguration || (RetrievalFlowNodeServiceConfiguration = {}));
405
- export var StorageFlowNodeServiceConfiguration;
406
- (function (StorageFlowNodeServiceConfiguration) {
407
- StorageFlowNodeServiceConfiguration.visit = (value, visitor) => {
408
- if (value.s3 !== undefined)
409
- return visitor.s3(value.s3);
410
- return visitor._(value.$unknown[0], value.$unknown[1]);
411
- };
412
- })(StorageFlowNodeServiceConfiguration || (StorageFlowNodeServiceConfiguration = {}));
413
263
  export const FlowNodeInputCategory = {
414
264
  EXIT_LOOP: "ExitLoop",
415
265
  LOOP_CONDITION: "LoopCondition",
@@ -456,78 +306,6 @@ export const IncompatibleLoopNodeType = {
456
306
  INPUT: "Input",
457
307
  ITERATOR: "Iterator",
458
308
  };
459
- export var FlowValidationDetails;
460
- (function (FlowValidationDetails) {
461
- FlowValidationDetails.visit = (value, visitor) => {
462
- if (value.cyclicConnection !== undefined)
463
- return visitor.cyclicConnection(value.cyclicConnection);
464
- if (value.duplicateConnections !== undefined)
465
- return visitor.duplicateConnections(value.duplicateConnections);
466
- if (value.duplicateConditionExpression !== undefined)
467
- return visitor.duplicateConditionExpression(value.duplicateConditionExpression);
468
- if (value.unreachableNode !== undefined)
469
- return visitor.unreachableNode(value.unreachableNode);
470
- if (value.unknownConnectionSource !== undefined)
471
- return visitor.unknownConnectionSource(value.unknownConnectionSource);
472
- if (value.unknownConnectionSourceOutput !== undefined)
473
- return visitor.unknownConnectionSourceOutput(value.unknownConnectionSourceOutput);
474
- if (value.unknownConnectionTarget !== undefined)
475
- return visitor.unknownConnectionTarget(value.unknownConnectionTarget);
476
- if (value.unknownConnectionTargetInput !== undefined)
477
- return visitor.unknownConnectionTargetInput(value.unknownConnectionTargetInput);
478
- if (value.unknownConnectionCondition !== undefined)
479
- return visitor.unknownConnectionCondition(value.unknownConnectionCondition);
480
- if (value.malformedConditionExpression !== undefined)
481
- return visitor.malformedConditionExpression(value.malformedConditionExpression);
482
- if (value.malformedNodeInputExpression !== undefined)
483
- return visitor.malformedNodeInputExpression(value.malformedNodeInputExpression);
484
- if (value.mismatchedNodeInputType !== undefined)
485
- return visitor.mismatchedNodeInputType(value.mismatchedNodeInputType);
486
- if (value.mismatchedNodeOutputType !== undefined)
487
- return visitor.mismatchedNodeOutputType(value.mismatchedNodeOutputType);
488
- if (value.incompatibleConnectionDataType !== undefined)
489
- return visitor.incompatibleConnectionDataType(value.incompatibleConnectionDataType);
490
- if (value.missingConnectionConfiguration !== undefined)
491
- return visitor.missingConnectionConfiguration(value.missingConnectionConfiguration);
492
- if (value.missingDefaultCondition !== undefined)
493
- return visitor.missingDefaultCondition(value.missingDefaultCondition);
494
- if (value.missingEndingNodes !== undefined)
495
- return visitor.missingEndingNodes(value.missingEndingNodes);
496
- if (value.missingNodeConfiguration !== undefined)
497
- return visitor.missingNodeConfiguration(value.missingNodeConfiguration);
498
- if (value.missingNodeInput !== undefined)
499
- return visitor.missingNodeInput(value.missingNodeInput);
500
- if (value.missingNodeOutput !== undefined)
501
- return visitor.missingNodeOutput(value.missingNodeOutput);
502
- if (value.missingStartingNodes !== undefined)
503
- return visitor.missingStartingNodes(value.missingStartingNodes);
504
- if (value.multipleNodeInputConnections !== undefined)
505
- return visitor.multipleNodeInputConnections(value.multipleNodeInputConnections);
506
- if (value.unfulfilledNodeInput !== undefined)
507
- return visitor.unfulfilledNodeInput(value.unfulfilledNodeInput);
508
- if (value.unsatisfiedConnectionConditions !== undefined)
509
- return visitor.unsatisfiedConnectionConditions(value.unsatisfiedConnectionConditions);
510
- if (value.unspecified !== undefined)
511
- return visitor.unspecified(value.unspecified);
512
- if (value.unknownNodeInput !== undefined)
513
- return visitor.unknownNodeInput(value.unknownNodeInput);
514
- if (value.unknownNodeOutput !== undefined)
515
- return visitor.unknownNodeOutput(value.unknownNodeOutput);
516
- if (value.missingLoopInputNode !== undefined)
517
- return visitor.missingLoopInputNode(value.missingLoopInputNode);
518
- if (value.missingLoopControllerNode !== undefined)
519
- return visitor.missingLoopControllerNode(value.missingLoopControllerNode);
520
- if (value.multipleLoopInputNodes !== undefined)
521
- return visitor.multipleLoopInputNodes(value.multipleLoopInputNodes);
522
- if (value.multipleLoopControllerNodes !== undefined)
523
- return visitor.multipleLoopControllerNodes(value.multipleLoopControllerNodes);
524
- if (value.loopIncompatibleNodeType !== undefined)
525
- return visitor.loopIncompatibleNodeType(value.loopIncompatibleNodeType);
526
- if (value.invalidLoopBoundary !== undefined)
527
- return visitor.invalidLoopBoundary(value.invalidLoopBoundary);
528
- return visitor._(value.$unknown[0], value.$unknown[1]);
529
- };
530
- })(FlowValidationDetails || (FlowValidationDetails = {}));
531
309
  export const FlowValidationSeverity = {
532
310
  ERROR: "Error",
533
311
  WARNING: "Warning",
@@ -110,49 +110,3 @@ export const KnowledgeBaseStatus = {
110
110
  FAILED: "FAILED",
111
111
  UPDATING: "UPDATING",
112
112
  };
113
- export var PromptGenAiResource;
114
- (function (PromptGenAiResource) {
115
- PromptGenAiResource.visit = (value, visitor) => {
116
- if (value.agent !== undefined)
117
- return visitor.agent(value.agent);
118
- return visitor._(value.$unknown[0], value.$unknown[1]);
119
- };
120
- })(PromptGenAiResource || (PromptGenAiResource = {}));
121
- export var FlowNodeConfiguration;
122
- (function (FlowNodeConfiguration) {
123
- FlowNodeConfiguration.visit = (value, visitor) => {
124
- if (value.input !== undefined)
125
- return visitor.input(value.input);
126
- if (value.output !== undefined)
127
- return visitor.output(value.output);
128
- if (value.knowledgeBase !== undefined)
129
- return visitor.knowledgeBase(value.knowledgeBase);
130
- if (value.condition !== undefined)
131
- return visitor.condition(value.condition);
132
- if (value.lex !== undefined)
133
- return visitor.lex(value.lex);
134
- if (value.prompt !== undefined)
135
- return visitor.prompt(value.prompt);
136
- if (value.lambdaFunction !== undefined)
137
- return visitor.lambdaFunction(value.lambdaFunction);
138
- if (value.storage !== undefined)
139
- return visitor.storage(value.storage);
140
- if (value.agent !== undefined)
141
- return visitor.agent(value.agent);
142
- if (value.retrieval !== undefined)
143
- return visitor.retrieval(value.retrieval);
144
- if (value.iterator !== undefined)
145
- return visitor.iterator(value.iterator);
146
- if (value.collector !== undefined)
147
- return visitor.collector(value.collector);
148
- if (value.inlineCode !== undefined)
149
- return visitor.inlineCode(value.inlineCode);
150
- if (value.loop !== undefined)
151
- return visitor.loop(value.loop);
152
- if (value.loopInput !== undefined)
153
- return visitor.loopInput(value.loopInput);
154
- if (value.loopController !== undefined)
155
- return visitor.loopController(value.loopController);
156
- return visitor._(value.$unknown[0], value.$unknown[1]);
157
- };
158
- })(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
@@ -59,12 +59,15 @@ export declare namespace ActionGroupExecutor {
59
59
  customControl?: never;
60
60
  $unknown: [string, any];
61
61
  }
62
+ /**
63
+ * @deprecated unused in schema-serde mode.
64
+ *
65
+ */
62
66
  interface Visitor<T> {
63
67
  lambda: (value: string) => T;
64
68
  customControl: (value: CustomControlMethod) => T;
65
69
  _: (name: string, value: any) => T;
66
70
  }
67
- const visit: <T>(value: ActionGroupExecutor, visitor: Visitor<T>) => T;
68
71
  }
69
72
  /**
70
73
  * <p>There was a conflict performing an operation.</p>
@@ -141,12 +144,15 @@ export declare namespace APISchema {
141
144
  payload?: never;
142
145
  $unknown: [string, any];
143
146
  }
147
+ /**
148
+ * @deprecated unused in schema-serde mode.
149
+ *
150
+ */
144
151
  interface Visitor<T> {
145
152
  s3: (value: S3Identifier) => T;
146
153
  payload: (value: string) => T;
147
154
  _: (name: string, value: any) => T;
148
155
  }
149
- const visit: <T>(value: APISchema, visitor: Visitor<T>) => T;
150
156
  }
151
157
  /**
152
158
  * @public
@@ -246,11 +252,14 @@ export declare namespace FunctionSchema {
246
252
  functions?: never;
247
253
  $unknown: [string, any];
248
254
  }
255
+ /**
256
+ * @deprecated unused in schema-serde mode.
257
+ *
258
+ */
249
259
  interface Visitor<T> {
250
260
  functions: (value: Function[]) => T;
251
261
  _: (name: string, value: any) => T;
252
262
  }
253
- const visit: <T>(value: FunctionSchema, visitor: Visitor<T>) => T;
254
263
  }
255
264
  /**
256
265
  * @public
@@ -750,11 +759,14 @@ export declare namespace OrchestrationExecutor {
750
759
  lambda?: never;
751
760
  $unknown: [string, any];
752
761
  }
762
+ /**
763
+ * @deprecated unused in schema-serde mode.
764
+ *
765
+ */
753
766
  interface Visitor<T> {
754
767
  lambda: (value: string) => T;
755
768
  _: (name: string, value: any) => T;
756
769
  }
757
- const visit: <T>(value: OrchestrationExecutor, visitor: Visitor<T>) => T;
758
770
  }
759
771
  /**
760
772
  * <p> Details of custom orchestration. </p>
@@ -3593,12 +3605,15 @@ export declare namespace FlowConnectionConfiguration {
3593
3605
  conditional?: never;
3594
3606
  $unknown: [string, any];
3595
3607
  }
3608
+ /**
3609
+ * @deprecated unused in schema-serde mode.
3610
+ *
3611
+ */
3596
3612
  interface Visitor<T> {
3597
3613
  data: (value: FlowDataConnectionConfiguration) => T;
3598
3614
  conditional: (value: FlowConditionalConnectionConfiguration) => T;
3599
3615
  _: (name: string, value: any) => T;
3600
3616
  }
3601
- const visit: <T>(value: FlowConnectionConfiguration, visitor: Visitor<T>) => T;
3602
3617
  }
3603
3618
  /**
3604
3619
  * @public
@@ -3765,11 +3780,14 @@ export declare namespace PromptInferenceConfiguration {
3765
3780
  text?: never;
3766
3781
  $unknown: [string, any];
3767
3782
  }
3783
+ /**
3784
+ * @deprecated unused in schema-serde mode.
3785
+ *
3786
+ */
3768
3787
  interface Visitor<T> {
3769
3788
  text: (value: PromptModelInferenceConfiguration) => T;
3770
3789
  _: (name: string, value: any) => T;
3771
3790
  }
3772
- const visit: <T>(value: PromptInferenceConfiguration, visitor: Visitor<T>) => T;
3773
3791
  }
3774
3792
  /**
3775
3793
  * @public
@@ -3889,12 +3907,15 @@ export declare namespace RerankingMetadataSelectiveModeConfiguration {
3889
3907
  fieldsToExclude?: never;
3890
3908
  $unknown: [string, any];
3891
3909
  }
3910
+ /**
3911
+ * @deprecated unused in schema-serde mode.
3912
+ *
3913
+ */
3892
3914
  interface Visitor<T> {
3893
3915
  fieldsToInclude: (value: FieldForReranking[]) => T;
3894
3916
  fieldsToExclude: (value: FieldForReranking[]) => T;
3895
3917
  _: (name: string, value: any) => T;
3896
3918
  }
3897
- const visit: <T>(value: RerankingMetadataSelectiveModeConfiguration, visitor: Visitor<T>) => T;
3898
3919
  }
3899
3920
  /**
3900
3921
  * <p>Specifies how metadata fields should be handled during the reranking process.</p>
@@ -4145,12 +4166,15 @@ export declare namespace ContentBlock {
4145
4166
  cachePoint?: never;
4146
4167
  $unknown: [string, any];
4147
4168
  }
4169
+ /**
4170
+ * @deprecated unused in schema-serde mode.
4171
+ *
4172
+ */
4148
4173
  interface Visitor<T> {
4149
4174
  text: (value: string) => T;
4150
4175
  cachePoint: (value: CachePointBlock) => T;
4151
4176
  _: (name: string, value: any) => T;
4152
4177
  }
4153
- const visit: <T>(value: ContentBlock, visitor: Visitor<T>) => T;
4154
4178
  }
4155
4179
  /**
4156
4180
  * @public
@@ -4215,12 +4239,15 @@ export declare namespace SystemContentBlock {
4215
4239
  cachePoint?: never;
4216
4240
  $unknown: [string, any];
4217
4241
  }
4242
+ /**
4243
+ * @deprecated unused in schema-serde mode.
4244
+ *
4245
+ */
4218
4246
  interface Visitor<T> {
4219
4247
  text: (value: string) => T;
4220
4248
  cachePoint: (value: CachePointBlock) => T;
4221
4249
  _: (name: string, value: any) => T;
4222
4250
  }
4223
- const visit: <T>(value: SystemContentBlock, visitor: Visitor<T>) => T;
4224
4251
  }
4225
4252
  /**
4226
4253
  * <p>Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html">Use a tool to complete an Amazon Bedrock model response</a>.</p>
@@ -4293,13 +4320,16 @@ export declare namespace ToolChoice {
4293
4320
  tool?: never;
4294
4321
  $unknown: [string, any];
4295
4322
  }
4323
+ /**
4324
+ * @deprecated unused in schema-serde mode.
4325
+ *
4326
+ */
4296
4327
  interface Visitor<T> {
4297
4328
  auto: (value: AutoToolChoice) => T;
4298
4329
  any: (value: AnyToolChoice) => T;
4299
4330
  tool: (value: SpecificToolChoice) => T;
4300
4331
  _: (name: string, value: any) => T;
4301
4332
  }
4302
- const visit: <T>(value: ToolChoice, visitor: Visitor<T>) => T;
4303
4333
  }
4304
4334
  /**
4305
4335
  * <p>The input schema for the tool. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html">Use a tool to complete an Amazon Bedrock model response</a>.</p>
@@ -4325,11 +4355,14 @@ export declare namespace ToolInputSchema {
4325
4355
  json?: never;
4326
4356
  $unknown: [string, any];
4327
4357
  }
4358
+ /**
4359
+ * @deprecated unused in schema-serde mode.
4360
+ *
4361
+ */
4328
4362
  interface Visitor<T> {
4329
4363
  json: (value: __DocumentType) => T;
4330
4364
  _: (name: string, value: any) => T;
4331
4365
  }
4332
- const visit: <T>(value: ToolInputSchema, visitor: Visitor<T>) => T;
4333
4366
  }
4334
4367
  /**
4335
4368
  * <p>Contains a specification for a tool. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html">Use a tool to complete an Amazon Bedrock model response</a>.</p>
@@ -4387,12 +4420,15 @@ export declare namespace Tool {
4387
4420
  cachePoint?: never;
4388
4421
  $unknown: [string, any];
4389
4422
  }
4423
+ /**
4424
+ * @deprecated unused in schema-serde mode.
4425
+ *
4426
+ */
4390
4427
  interface Visitor<T> {
4391
4428
  toolSpec: (value: ToolSpecification) => T;
4392
4429
  cachePoint: (value: CachePointBlock) => T;
4393
4430
  _: (name: string, value: any) => T;
4394
4431
  }
4395
- const visit: <T>(value: Tool, visitor: Visitor<T>) => T;
4396
4432
  }
4397
4433
  /**
4398
4434
  * <p>Configuration information for the tools that the model can use when generating a response. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html">Use a tool to complete an Amazon Bedrock model response</a>.</p>
@@ -4492,12 +4528,15 @@ export declare namespace PromptTemplateConfiguration {
4492
4528
  chat?: never;
4493
4529
  $unknown: [string, any];
4494
4530
  }
4531
+ /**
4532
+ * @deprecated unused in schema-serde mode.
4533
+ *
4534
+ */
4495
4535
  interface Visitor<T> {
4496
4536
  text: (value: TextPromptTemplateConfiguration) => T;
4497
4537
  chat: (value: ChatPromptTemplateConfiguration) => T;
4498
4538
  _: (name: string, value: any) => T;
4499
4539
  }
4500
- const visit: <T>(value: PromptTemplateConfiguration, visitor: Visitor<T>) => T;
4501
4540
  }
4502
4541
  /**
4503
4542
  * @public
@@ -4588,12 +4627,15 @@ export declare namespace PromptFlowNodeSourceConfiguration {
4588
4627
  inline?: never;
4589
4628
  $unknown: [string, any];
4590
4629
  }
4630
+ /**
4631
+ * @deprecated unused in schema-serde mode.
4632
+ *
4633
+ */
4591
4634
  interface Visitor<T> {
4592
4635
  resource: (value: PromptFlowNodeResourceConfiguration) => T;
4593
4636
  inline: (value: PromptFlowNodeInlineConfiguration) => T;
4594
4637
  _: (name: string, value: any) => T;
4595
4638
  }
4596
- const visit: <T>(value: PromptFlowNodeSourceConfiguration, visitor: Visitor<T>) => T;
4597
4639
  }
4598
4640
  /**
4599
4641
  * <p>Contains configurations for a prompt node in the flow. You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html">Node types in a flow</a> in the Amazon Bedrock User Guide.</p>
@@ -4646,11 +4688,14 @@ export declare namespace RetrievalFlowNodeServiceConfiguration {
4646
4688
  s3?: never;
4647
4689
  $unknown: [string, any];
4648
4690
  }
4691
+ /**
4692
+ * @deprecated unused in schema-serde mode.
4693
+ *
4694
+ */
4649
4695
  interface Visitor<T> {
4650
4696
  s3: (value: RetrievalFlowNodeS3Configuration) => T;
4651
4697
  _: (name: string, value: any) => T;
4652
4698
  }
4653
- const visit: <T>(value: RetrievalFlowNodeServiceConfiguration, visitor: Visitor<T>) => T;
4654
4699
  }
4655
4700
  /**
4656
4701
  * <p>Contains configurations for a Retrieval node in a flow. This node retrieves data from the Amazon S3 location that you specify and returns it as the output.</p>
@@ -4698,11 +4743,14 @@ export declare namespace StorageFlowNodeServiceConfiguration {
4698
4743
  s3?: never;
4699
4744
  $unknown: [string, any];
4700
4745
  }
4746
+ /**
4747
+ * @deprecated unused in schema-serde mode.
4748
+ *
4749
+ */
4701
4750
  interface Visitor<T> {
4702
4751
  s3: (value: StorageFlowNodeS3Configuration) => T;
4703
4752
  _: (name: string, value: any) => T;
4704
4753
  }
4705
- const visit: <T>(value: StorageFlowNodeServiceConfiguration, visitor: Visitor<T>) => T;
4706
4754
  }
4707
4755
  /**
4708
4756
  * <p>Contains configurations for a Storage node in a flow. This node stores the input in an Amazon S3 location that you specify.</p>
@@ -7221,6 +7269,10 @@ export declare namespace FlowValidationDetails {
7221
7269
  invalidLoopBoundary?: never;
7222
7270
  $unknown: [string, any];
7223
7271
  }
7272
+ /**
7273
+ * @deprecated unused in schema-serde mode.
7274
+ *
7275
+ */
7224
7276
  interface Visitor<T> {
7225
7277
  cyclicConnection: (value: CyclicConnectionFlowValidationDetails) => T;
7226
7278
  duplicateConnections: (value: DuplicateConnectionsFlowValidationDetails) => T;
@@ -7257,7 +7309,6 @@ export declare namespace FlowValidationDetails {
7257
7309
  invalidLoopBoundary: (value: InvalidLoopBoundaryFlowValidationDetails) => T;
7258
7310
  _: (name: string, value: any) => T;
7259
7311
  }
7260
- const visit: <T>(value: FlowValidationDetails, visitor: Visitor<T>) => T;
7261
7312
  }
7262
7313
  /**
7263
7314
  * @public
@@ -2221,11 +2221,14 @@ export declare namespace PromptGenAiResource {
2221
2221
  agent?: never;
2222
2222
  $unknown: [string, any];
2223
2223
  }
2224
+ /**
2225
+ * @deprecated unused in schema-serde mode.
2226
+ *
2227
+ */
2224
2228
  interface Visitor<T> {
2225
2229
  agent: (value: PromptAgentResource) => T;
2226
2230
  _: (name: string, value: any) => T;
2227
2231
  }
2228
- const visit: <T>(value: PromptGenAiResource, visitor: Visitor<T>) => T;
2229
2232
  }
2230
2233
  /**
2231
2234
  * <p>Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html">Create a prompt using Prompt management</a>.</p>
@@ -3346,6 +3349,10 @@ export declare namespace FlowNodeConfiguration {
3346
3349
  loopController?: never;
3347
3350
  $unknown: [string, any];
3348
3351
  }
3352
+ /**
3353
+ * @deprecated unused in schema-serde mode.
3354
+ *
3355
+ */
3349
3356
  interface Visitor<T> {
3350
3357
  input: (value: InputFlowNodeConfiguration) => T;
3351
3358
  output: (value: OutputFlowNodeConfiguration) => T;
@@ -3365,7 +3372,6 @@ export declare namespace FlowNodeConfiguration {
3365
3372
  loopController: (value: LoopControllerFlowNodeConfiguration) => T;
3366
3373
  _: (name: string, value: any) => T;
3367
3374
  }
3368
- const visit: <T>(value: FlowNodeConfiguration, visitor: Visitor<T>) => T;
3369
3375
  }
3370
3376
  /**
3371
3377
  * <p>Contains configurations for the nodes of a DoWhile loop in your flow.</p> <p>A DoWhile loop is made up of the following nodes:</p> <ul> <li> <p> <code>Loop</code> - The container node that holds the loop's flow definition. This node encompasses the entire loop structure.</p> </li> <li> <p> <code>LoopInput</code> - The entry point node for the loop. This node receives inputs from nodes outside the loop and from previous loop iterations.</p> </li> <li> <p>Body nodes - The processing nodes that execute within each loop iteration. These can be nodes for handling data in your flow, such as a prompt or Lambda function nodes. Some node types aren't supported inside a DoWhile loop body. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_LoopIncompatibleNodeTypeFlowValidationDetails.html">LoopIncompatibleNodeTypeFlowValidationDetails</a>.</p> </li> <li> <p> <code>LoopController</code> - The node that evaluates whether the loop should continue or exit based on a condition.</p> </li> </ul> <p>These nodes work together to create a loop that runs at least once and continues until a specified condition is met or a maximum number of iterations is reached.</p>
@@ -38,7 +38,6 @@ export declare namespace ActionGroupExecutor {
38
38
  customControl: (value: CustomControlMethod) => T;
39
39
  _: (name: string, value: any) => T;
40
40
  }
41
- const visit: <T>(value: ActionGroupExecutor, visitor: Visitor<T>) => T;
42
41
  }
43
42
  export declare class ConflictException extends __BaseException {
44
43
  readonly name: "ConflictException";
@@ -80,7 +79,6 @@ export declare namespace APISchema {
80
79
  payload: (value: string) => T;
81
80
  _: (name: string, value: any) => T;
82
81
  }
83
- const visit: <T>(value: APISchema, visitor: Visitor<T>) => T;
84
82
  }
85
83
  export declare const Type: {
86
84
  readonly ARRAY: "array";
@@ -123,7 +121,6 @@ export declare namespace FunctionSchema {
123
121
  functions: (value: Function[]) => T;
124
122
  _: (name: string, value: any) => T;
125
123
  }
126
- const visit: <T>(value: FunctionSchema, visitor: Visitor<T>) => T;
127
124
  }
128
125
  export declare const ActionGroupSignature: {
129
126
  readonly AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter";
@@ -288,7 +285,6 @@ export declare namespace OrchestrationExecutor {
288
285
  lambda: (value: string) => T;
289
286
  _: (name: string, value: any) => T;
290
287
  }
291
- const visit: <T>(value: OrchestrationExecutor, visitor: Visitor<T>) => T;
292
288
  }
293
289
  export interface CustomOrchestration {
294
290
  executor?: OrchestrationExecutor | undefined;
@@ -1074,10 +1070,6 @@ export declare namespace FlowConnectionConfiguration {
1074
1070
  conditional: (value: FlowConditionalConnectionConfiguration) => T;
1075
1071
  _: (name: string, value: any) => T;
1076
1072
  }
1077
- const visit: <T>(
1078
- value: FlowConnectionConfiguration,
1079
- visitor: Visitor<T>
1080
- ) => T;
1081
1073
  }
1082
1074
  export declare const FlowConnectionType: {
1083
1075
  readonly CONDITIONAL: "Conditional";
@@ -1133,10 +1125,6 @@ export declare namespace PromptInferenceConfiguration {
1133
1125
  text: (value: PromptModelInferenceConfiguration) => T;
1134
1126
  _: (name: string, value: any) => T;
1135
1127
  }
1136
- const visit: <T>(
1137
- value: PromptInferenceConfiguration,
1138
- visitor: Visitor<T>
1139
- ) => T;
1140
1128
  }
1141
1129
  export declare const PerformanceConfigLatency: {
1142
1130
  readonly OPTIMIZED: "optimized";
@@ -1190,10 +1178,6 @@ export declare namespace RerankingMetadataSelectiveModeConfiguration {
1190
1178
  fieldsToExclude: (value: FieldForReranking[]) => T;
1191
1179
  _: (name: string, value: any) => T;
1192
1180
  }
1193
- const visit: <T>(
1194
- value: RerankingMetadataSelectiveModeConfiguration,
1195
- visitor: Visitor<T>
1196
- ) => T;
1197
1181
  }
1198
1182
  export interface MetadataConfigurationForReranking {
1199
1183
  selectionMode: RerankingMetadataSelectionMode | undefined;
@@ -1284,7 +1268,6 @@ export declare namespace ContentBlock {
1284
1268
  cachePoint: (value: CachePointBlock) => T;
1285
1269
  _: (name: string, value: any) => T;
1286
1270
  }
1287
- const visit: <T>(value: ContentBlock, visitor: Visitor<T>) => T;
1288
1271
  }
1289
1272
  export declare const ConversationRole: {
1290
1273
  readonly ASSISTANT: "assistant";
@@ -1321,7 +1304,6 @@ export declare namespace SystemContentBlock {
1321
1304
  cachePoint: (value: CachePointBlock) => T;
1322
1305
  _: (name: string, value: any) => T;
1323
1306
  }
1324
- const visit: <T>(value: SystemContentBlock, visitor: Visitor<T>) => T;
1325
1307
  }
1326
1308
  export interface AnyToolChoice {}
1327
1309
  export interface AutoToolChoice {}
@@ -1364,7 +1346,6 @@ export declare namespace ToolChoice {
1364
1346
  tool: (value: SpecificToolChoice) => T;
1365
1347
  _: (name: string, value: any) => T;
1366
1348
  }
1367
- const visit: <T>(value: ToolChoice, visitor: Visitor<T>) => T;
1368
1349
  }
1369
1350
  export type ToolInputSchema =
1370
1351
  | ToolInputSchema.JsonMember
@@ -1382,7 +1363,6 @@ export declare namespace ToolInputSchema {
1382
1363
  json: (value: __DocumentType) => T;
1383
1364
  _: (name: string, value: any) => T;
1384
1365
  }
1385
- const visit: <T>(value: ToolInputSchema, visitor: Visitor<T>) => T;
1386
1366
  }
1387
1367
  export interface ToolSpecification {
1388
1368
  name: string | undefined;
@@ -1414,7 +1394,6 @@ export declare namespace Tool {
1414
1394
  cachePoint: (value: CachePointBlock) => T;
1415
1395
  _: (name: string, value: any) => T;
1416
1396
  }
1417
- const visit: <T>(value: Tool, visitor: Visitor<T>) => T;
1418
1397
  }
1419
1398
  export interface ToolConfiguration {
1420
1399
  tools: Tool[] | undefined;
@@ -1456,10 +1435,6 @@ export declare namespace PromptTemplateConfiguration {
1456
1435
  chat: (value: ChatPromptTemplateConfiguration) => T;
1457
1436
  _: (name: string, value: any) => T;
1458
1437
  }
1459
- const visit: <T>(
1460
- value: PromptTemplateConfiguration,
1461
- visitor: Visitor<T>
1462
- ) => T;
1463
1438
  }
1464
1439
  export declare const PromptTemplateType: {
1465
1440
  readonly CHAT: "CHAT";
@@ -1502,10 +1477,6 @@ export declare namespace PromptFlowNodeSourceConfiguration {
1502
1477
  inline: (value: PromptFlowNodeInlineConfiguration) => T;
1503
1478
  _: (name: string, value: any) => T;
1504
1479
  }
1505
- const visit: <T>(
1506
- value: PromptFlowNodeSourceConfiguration,
1507
- visitor: Visitor<T>
1508
- ) => T;
1509
1480
  }
1510
1481
  export interface PromptFlowNodeConfiguration {
1511
1482
  sourceConfiguration: PromptFlowNodeSourceConfiguration | undefined;
@@ -1530,10 +1501,6 @@ export declare namespace RetrievalFlowNodeServiceConfiguration {
1530
1501
  s3: (value: RetrievalFlowNodeS3Configuration) => T;
1531
1502
  _: (name: string, value: any) => T;
1532
1503
  }
1533
- const visit: <T>(
1534
- value: RetrievalFlowNodeServiceConfiguration,
1535
- visitor: Visitor<T>
1536
- ) => T;
1537
1504
  }
1538
1505
  export interface RetrievalFlowNodeConfiguration {
1539
1506
  serviceConfiguration: RetrievalFlowNodeServiceConfiguration | undefined;
@@ -1557,10 +1524,6 @@ export declare namespace StorageFlowNodeServiceConfiguration {
1557
1524
  s3: (value: StorageFlowNodeS3Configuration) => T;
1558
1525
  _: (name: string, value: any) => T;
1559
1526
  }
1560
- const visit: <T>(
1561
- value: StorageFlowNodeServiceConfiguration,
1562
- visitor: Visitor<T>
1563
- ) => T;
1564
1527
  }
1565
1528
  export interface StorageFlowNodeConfiguration {
1566
1529
  serviceConfiguration: StorageFlowNodeServiceConfiguration | undefined;
@@ -3221,7 +3184,6 @@ export declare namespace FlowValidationDetails {
3221
3184
  invalidLoopBoundary: (value: InvalidLoopBoundaryFlowValidationDetails) => T;
3222
3185
  _: (name: string, value: any) => T;
3223
3186
  }
3224
- const visit: <T>(value: FlowValidationDetails, visitor: Visitor<T>) => T;
3225
3187
  }
3226
3188
  export declare const FlowValidationSeverity: {
3227
3189
  readonly ERROR: "Error";
@@ -685,7 +685,6 @@ export declare namespace PromptGenAiResource {
685
685
  agent: (value: PromptAgentResource) => T;
686
686
  _: (name: string, value: any) => T;
687
687
  }
688
- const visit: <T>(value: PromptGenAiResource, visitor: Visitor<T>) => T;
689
688
  }
690
689
  export interface PromptMetadataEntry {
691
690
  key: string | undefined;
@@ -1219,7 +1218,6 @@ export declare namespace FlowNodeConfiguration {
1219
1218
  loopController: (value: LoopControllerFlowNodeConfiguration) => T;
1220
1219
  _: (name: string, value: any) => T;
1221
1220
  }
1222
- const visit: <T>(value: FlowNodeConfiguration, visitor: Visitor<T>) => T;
1223
1221
  }
1224
1222
  export interface LoopFlowNodeConfiguration {
1225
1223
  definition: FlowDefinition | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
4
- "version": "3.929.0",
4
+ "version": "3.931.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.929.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/fetch-http-handler": "^5.3.5",
37
- "@smithy/hash-node": "^4.2.4",
38
- "@smithy/invalid-dependency": "^4.2.4",
39
- "@smithy/middleware-content-length": "^4.2.4",
40
- "@smithy/middleware-endpoint": "^4.3.6",
41
- "@smithy/middleware-retry": "^4.4.6",
42
- "@smithy/middleware-serde": "^4.2.4",
43
- "@smithy/middleware-stack": "^4.2.4",
44
- "@smithy/node-config-provider": "^4.3.4",
45
- "@smithy/node-http-handler": "^4.4.4",
46
- "@smithy/protocol-http": "^5.3.4",
47
- "@smithy/smithy-client": "^4.9.2",
48
- "@smithy/types": "^4.8.1",
49
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.931.0",
24
+ "@aws-sdk/credential-provider-node": "3.931.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.931.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.931.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/fetch-http-handler": "^5.3.6",
37
+ "@smithy/hash-node": "^4.2.5",
38
+ "@smithy/invalid-dependency": "^4.2.5",
39
+ "@smithy/middleware-content-length": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.9",
41
+ "@smithy/middleware-retry": "^4.4.9",
42
+ "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-stack": "^4.2.5",
44
+ "@smithy/node-config-provider": "^4.3.5",
45
+ "@smithy/node-http-handler": "^4.4.5",
46
+ "@smithy/protocol-http": "^5.3.5",
47
+ "@smithy/smithy-client": "^4.9.5",
48
+ "@smithy/types": "^4.9.0",
49
+ "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.8",
55
- "@smithy/util-endpoints": "^3.2.4",
56
- "@smithy/util-middleware": "^4.2.4",
57
- "@smithy/util-retry": "^4.2.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
54
+ "@smithy/util-defaults-mode-node": "^4.2.11",
55
+ "@smithy/util-endpoints": "^3.2.5",
56
+ "@smithy/util-middleware": "^4.2.5",
57
+ "@smithy/util-retry": "^4.2.5",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
59
  "tslib": "^2.6.2"
60
60
  },