@aws-sdk/client-bedrock-agent 3.928.0 → 3.930.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 (99) hide show
  1. package/dist-cjs/index.js +4469 -5016
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/BedrockAgentClient.js +2 -0
  4. package/dist-es/commands/AssociateAgentCollaboratorCommand.js +3 -10
  5. package/dist-es/commands/AssociateAgentKnowledgeBaseCommand.js +3 -9
  6. package/dist-es/commands/CreateAgentActionGroupCommand.js +3 -10
  7. package/dist-es/commands/CreateAgentAliasCommand.js +3 -9
  8. package/dist-es/commands/CreateAgentCommand.js +3 -10
  9. package/dist-es/commands/CreateDataSourceCommand.js +3 -10
  10. package/dist-es/commands/CreateFlowAliasCommand.js +3 -9
  11. package/dist-es/commands/CreateFlowCommand.js +3 -10
  12. package/dist-es/commands/CreateFlowVersionCommand.js +3 -10
  13. package/dist-es/commands/CreateKnowledgeBaseCommand.js +3 -10
  14. package/dist-es/commands/CreatePromptCommand.js +3 -10
  15. package/dist-es/commands/CreatePromptVersionCommand.js +3 -10
  16. package/dist-es/commands/DeleteAgentActionGroupCommand.js +3 -9
  17. package/dist-es/commands/DeleteAgentAliasCommand.js +3 -9
  18. package/dist-es/commands/DeleteAgentCommand.js +3 -9
  19. package/dist-es/commands/DeleteAgentVersionCommand.js +3 -9
  20. package/dist-es/commands/DeleteDataSourceCommand.js +3 -9
  21. package/dist-es/commands/DeleteFlowAliasCommand.js +3 -9
  22. package/dist-es/commands/DeleteFlowCommand.js +3 -9
  23. package/dist-es/commands/DeleteFlowVersionCommand.js +3 -9
  24. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +3 -9
  25. package/dist-es/commands/DeleteKnowledgeBaseDocumentsCommand.js +3 -9
  26. package/dist-es/commands/DeletePromptCommand.js +3 -9
  27. package/dist-es/commands/DisassociateAgentCollaboratorCommand.js +3 -9
  28. package/dist-es/commands/DisassociateAgentKnowledgeBaseCommand.js +3 -9
  29. package/dist-es/commands/GetAgentActionGroupCommand.js +3 -10
  30. package/dist-es/commands/GetAgentAliasCommand.js +3 -9
  31. package/dist-es/commands/GetAgentCollaboratorCommand.js +3 -10
  32. package/dist-es/commands/GetAgentCommand.js +3 -10
  33. package/dist-es/commands/GetAgentKnowledgeBaseCommand.js +3 -9
  34. package/dist-es/commands/GetAgentVersionCommand.js +3 -10
  35. package/dist-es/commands/GetDataSourceCommand.js +3 -10
  36. package/dist-es/commands/GetFlowAliasCommand.js +3 -9
  37. package/dist-es/commands/GetFlowCommand.js +3 -10
  38. package/dist-es/commands/GetFlowVersionCommand.js +3 -10
  39. package/dist-es/commands/GetIngestionJobCommand.js +3 -9
  40. package/dist-es/commands/GetKnowledgeBaseCommand.js +3 -10
  41. package/dist-es/commands/GetKnowledgeBaseDocumentsCommand.js +3 -9
  42. package/dist-es/commands/GetPromptCommand.js +3 -10
  43. package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +3 -10
  44. package/dist-es/commands/ListAgentActionGroupsCommand.js +3 -9
  45. package/dist-es/commands/ListAgentAliasesCommand.js +3 -9
  46. package/dist-es/commands/ListAgentCollaboratorsCommand.js +3 -10
  47. package/dist-es/commands/ListAgentKnowledgeBasesCommand.js +3 -9
  48. package/dist-es/commands/ListAgentVersionsCommand.js +3 -9
  49. package/dist-es/commands/ListAgentsCommand.js +3 -9
  50. package/dist-es/commands/ListDataSourcesCommand.js +3 -9
  51. package/dist-es/commands/ListFlowAliasesCommand.js +3 -9
  52. package/dist-es/commands/ListFlowVersionsCommand.js +3 -9
  53. package/dist-es/commands/ListFlowsCommand.js +3 -9
  54. package/dist-es/commands/ListIngestionJobsCommand.js +3 -9
  55. package/dist-es/commands/ListKnowledgeBaseDocumentsCommand.js +3 -9
  56. package/dist-es/commands/ListKnowledgeBasesCommand.js +3 -9
  57. package/dist-es/commands/ListPromptsCommand.js +3 -9
  58. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  59. package/dist-es/commands/PrepareAgentCommand.js +3 -9
  60. package/dist-es/commands/PrepareFlowCommand.js +3 -9
  61. package/dist-es/commands/StartIngestionJobCommand.js +3 -9
  62. package/dist-es/commands/StopIngestionJobCommand.js +3 -9
  63. package/dist-es/commands/TagResourceCommand.js +3 -9
  64. package/dist-es/commands/UntagResourceCommand.js +3 -9
  65. package/dist-es/commands/UpdateAgentActionGroupCommand.js +3 -10
  66. package/dist-es/commands/UpdateAgentAliasCommand.js +3 -9
  67. package/dist-es/commands/UpdateAgentCollaboratorCommand.js +3 -10
  68. package/dist-es/commands/UpdateAgentCommand.js +3 -10
  69. package/dist-es/commands/UpdateAgentKnowledgeBaseCommand.js +3 -9
  70. package/dist-es/commands/UpdateDataSourceCommand.js +3 -10
  71. package/dist-es/commands/UpdateFlowAliasCommand.js +3 -9
  72. package/dist-es/commands/UpdateFlowCommand.js +3 -10
  73. package/dist-es/commands/UpdateKnowledgeBaseCommand.js +3 -10
  74. package/dist-es/commands/UpdatePromptCommand.js +3 -10
  75. package/dist-es/commands/ValidateFlowDefinitionCommand.js +3 -10
  76. package/dist-es/models/models_0.js +0 -675
  77. package/dist-es/models/models_1.js +0 -323
  78. package/dist-es/runtimeConfig.shared.js +2 -0
  79. package/dist-es/schemas/schemas_0.js +4319 -0
  80. package/dist-types/BedrockAgentClient.d.ts +10 -1
  81. package/dist-types/models/models_0.d.ts +68 -293
  82. package/dist-types/models/models_1.d.ts +8 -198
  83. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  84. package/dist-types/runtimeConfig.d.ts +1 -0
  85. package/dist-types/runtimeConfig.native.d.ts +1 -0
  86. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  87. package/dist-types/schemas/schemas_0.d.ts +550 -0
  88. package/dist-types/ts3.4/BedrockAgentClient.d.ts +4 -0
  89. package/dist-types/ts3.4/models/models_0.d.ts +0 -231
  90. package/dist-types/ts3.4/models/models_1.d.ts +0 -147
  91. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  92. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  93. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  94. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  95. package/dist-types/ts3.4/schemas/schemas_0.d.ts +557 -0
  96. package/package.json +33 -34
  97. package/dist-es/protocols/Aws_restJson1.js +0 -3385
  98. package/dist-types/protocols/Aws_restJson1.d.ts +0 -650
  99. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -869
@@ -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>
@@ -3758,199 +3764,3 @@ export interface ValidateFlowDefinitionRequest {
3758
3764
  */
3759
3765
  definition: FlowDefinition | undefined;
3760
3766
  }
3761
- /**
3762
- * @internal
3763
- */
3764
- export declare const ByteContentDocFilterSensitiveLog: (obj: ByteContentDoc) => any;
3765
- /**
3766
- * @internal
3767
- */
3768
- export declare const TextContentDocFilterSensitiveLog: (obj: TextContentDoc) => any;
3769
- /**
3770
- * @internal
3771
- */
3772
- export declare const InlineContentFilterSensitiveLog: (obj: InlineContent) => any;
3773
- /**
3774
- * @internal
3775
- */
3776
- export declare const CustomContentFilterSensitiveLog: (obj: CustomContent) => any;
3777
- /**
3778
- * @internal
3779
- */
3780
- export declare const DocumentContentFilterSensitiveLog: (obj: DocumentContent) => any;
3781
- /**
3782
- * @internal
3783
- */
3784
- export declare const MetadataAttributeValueFilterSensitiveLog: (obj: MetadataAttributeValue) => any;
3785
- /**
3786
- * @internal
3787
- */
3788
- export declare const MetadataAttributeFilterSensitiveLog: (obj: MetadataAttribute) => any;
3789
- /**
3790
- * @internal
3791
- */
3792
- export declare const DocumentMetadataFilterSensitiveLog: (obj: DocumentMetadata) => any;
3793
- /**
3794
- * @internal
3795
- */
3796
- export declare const KnowledgeBaseDocumentFilterSensitiveLog: (obj: KnowledgeBaseDocument) => any;
3797
- /**
3798
- * @internal
3799
- */
3800
- export declare const IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog: (obj: IngestKnowledgeBaseDocumentsRequest) => any;
3801
- /**
3802
- * @internal
3803
- */
3804
- export declare const QueryGenerationContextFilterSensitiveLog: (obj: QueryGenerationContext) => any;
3805
- /**
3806
- * @internal
3807
- */
3808
- export declare const QueryGenerationConfigurationFilterSensitiveLog: (obj: QueryGenerationConfiguration) => any;
3809
- /**
3810
- * @internal
3811
- */
3812
- export declare const RedshiftConfigurationFilterSensitiveLog: (obj: RedshiftConfiguration) => any;
3813
- /**
3814
- * @internal
3815
- */
3816
- export declare const SqlKnowledgeBaseConfigurationFilterSensitiveLog: (obj: SqlKnowledgeBaseConfiguration) => any;
3817
- /**
3818
- * @internal
3819
- */
3820
- export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (obj: KnowledgeBaseConfiguration) => any;
3821
- /**
3822
- * @internal
3823
- */
3824
- export declare const NeptuneAnalyticsConfigurationFilterSensitiveLog: (obj: NeptuneAnalyticsConfiguration) => any;
3825
- /**
3826
- * @internal
3827
- */
3828
- export declare const OpenSearchManagedClusterConfigurationFilterSensitiveLog: (obj: OpenSearchManagedClusterConfiguration) => any;
3829
- /**
3830
- * @internal
3831
- */
3832
- export declare const S3VectorsConfigurationFilterSensitiveLog: (obj: S3VectorsConfiguration) => any;
3833
- /**
3834
- * @internal
3835
- */
3836
- export declare const StorageConfigurationFilterSensitiveLog: (obj: StorageConfiguration) => any;
3837
- /**
3838
- * @internal
3839
- */
3840
- export declare const CreateKnowledgeBaseRequestFilterSensitiveLog: (obj: CreateKnowledgeBaseRequest) => any;
3841
- /**
3842
- * @internal
3843
- */
3844
- export declare const KnowledgeBaseFilterSensitiveLog: (obj: KnowledgeBase) => any;
3845
- /**
3846
- * @internal
3847
- */
3848
- export declare const CreateKnowledgeBaseResponseFilterSensitiveLog: (obj: CreateKnowledgeBaseResponse) => any;
3849
- /**
3850
- * @internal
3851
- */
3852
- export declare const GetKnowledgeBaseResponseFilterSensitiveLog: (obj: GetKnowledgeBaseResponse) => any;
3853
- /**
3854
- * @internal
3855
- */
3856
- export declare const UpdateKnowledgeBaseRequestFilterSensitiveLog: (obj: UpdateKnowledgeBaseRequest) => any;
3857
- /**
3858
- * @internal
3859
- */
3860
- export declare const UpdateKnowledgeBaseResponseFilterSensitiveLog: (obj: UpdateKnowledgeBaseResponse) => any;
3861
- /**
3862
- * @internal
3863
- */
3864
- export declare const PromptAgentResourceFilterSensitiveLog: (obj: PromptAgentResource) => any;
3865
- /**
3866
- * @internal
3867
- */
3868
- export declare const PromptGenAiResourceFilterSensitiveLog: (obj: PromptGenAiResource) => any;
3869
- /**
3870
- * @internal
3871
- */
3872
- export declare const PromptMetadataEntryFilterSensitiveLog: (obj: PromptMetadataEntry) => any;
3873
- /**
3874
- * @internal
3875
- */
3876
- export declare const PromptVariantFilterSensitiveLog: (obj: PromptVariant) => any;
3877
- /**
3878
- * @internal
3879
- */
3880
- export declare const CreatePromptRequestFilterSensitiveLog: (obj: CreatePromptRequest) => any;
3881
- /**
3882
- * @internal
3883
- */
3884
- export declare const CreatePromptResponseFilterSensitiveLog: (obj: CreatePromptResponse) => any;
3885
- /**
3886
- * @internal
3887
- */
3888
- export declare const CreatePromptVersionResponseFilterSensitiveLog: (obj: CreatePromptVersionResponse) => any;
3889
- /**
3890
- * @internal
3891
- */
3892
- export declare const GetPromptResponseFilterSensitiveLog: (obj: GetPromptResponse) => any;
3893
- /**
3894
- * @internal
3895
- */
3896
- export declare const UpdatePromptRequestFilterSensitiveLog: (obj: UpdatePromptRequest) => any;
3897
- /**
3898
- * @internal
3899
- */
3900
- export declare const UpdatePromptResponseFilterSensitiveLog: (obj: UpdatePromptResponse) => any;
3901
- /**
3902
- * @internal
3903
- */
3904
- export declare const ValidateFlowDefinitionResponseFilterSensitiveLog: (obj: ValidateFlowDefinitionResponse) => any;
3905
- /**
3906
- * @internal
3907
- */
3908
- export declare const GetAgentVersionResponseFilterSensitiveLog: (obj: GetAgentVersionResponse) => any;
3909
- /**
3910
- * @internal
3911
- */
3912
- export declare const FlowDefinitionFilterSensitiveLog: (obj: FlowDefinition) => any;
3913
- /**
3914
- * @internal
3915
- */
3916
- export declare const FlowNodeFilterSensitiveLog: (obj: FlowNode) => any;
3917
- /**
3918
- * @internal
3919
- */
3920
- export declare const FlowNodeConfigurationFilterSensitiveLog: (obj: FlowNodeConfiguration) => any;
3921
- /**
3922
- * @internal
3923
- */
3924
- export declare const LoopFlowNodeConfigurationFilterSensitiveLog: (obj: LoopFlowNodeConfiguration) => any;
3925
- /**
3926
- * @internal
3927
- */
3928
- export declare const CreateFlowRequestFilterSensitiveLog: (obj: CreateFlowRequest) => any;
3929
- /**
3930
- * @internal
3931
- */
3932
- export declare const CreateFlowResponseFilterSensitiveLog: (obj: CreateFlowResponse) => any;
3933
- /**
3934
- * @internal
3935
- */
3936
- export declare const CreateFlowVersionResponseFilterSensitiveLog: (obj: CreateFlowVersionResponse) => any;
3937
- /**
3938
- * @internal
3939
- */
3940
- export declare const GetFlowResponseFilterSensitiveLog: (obj: GetFlowResponse) => any;
3941
- /**
3942
- * @internal
3943
- */
3944
- export declare const GetFlowVersionResponseFilterSensitiveLog: (obj: GetFlowVersionResponse) => any;
3945
- /**
3946
- * @internal
3947
- */
3948
- export declare const UpdateFlowRequestFilterSensitiveLog: (obj: UpdateFlowRequest) => any;
3949
- /**
3950
- * @internal
3951
- */
3952
- export declare const UpdateFlowResponseFilterSensitiveLog: (obj: UpdateFlowResponse) => any;
3953
- /**
3954
- * @internal
3955
- */
3956
- export declare const ValidateFlowDefinitionRequestFilterSensitiveLog: (obj: ValidateFlowDefinitionRequest) => any;
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentClientConfig) => {
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentClientConfig) => {
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentClientConfig) => {
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentClientConfig) => {
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockAgentHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;