@aws-sdk/client-bedrock-agent-runtime 3.948.0 → 3.953.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist-cjs/index.js +1155 -804
  2. package/dist-cjs/runtimeConfig.shared.js +6 -1
  3. package/dist-es/commands/CreateInvocationCommand.js +2 -2
  4. package/dist-es/commands/CreateSessionCommand.js +2 -2
  5. package/dist-es/commands/DeleteAgentMemoryCommand.js +2 -2
  6. package/dist-es/commands/DeleteSessionCommand.js +2 -2
  7. package/dist-es/commands/EndSessionCommand.js +2 -2
  8. package/dist-es/commands/GenerateQueryCommand.js +2 -2
  9. package/dist-es/commands/GetAgentMemoryCommand.js +2 -2
  10. package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +2 -2
  11. package/dist-es/commands/GetFlowExecutionCommand.js +2 -2
  12. package/dist-es/commands/GetInvocationStepCommand.js +2 -2
  13. package/dist-es/commands/GetSessionCommand.js +2 -2
  14. package/dist-es/commands/InvokeAgentCommand.js +2 -2
  15. package/dist-es/commands/InvokeFlowCommand.js +2 -2
  16. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -2
  17. package/dist-es/commands/ListFlowExecutionEventsCommand.js +2 -2
  18. package/dist-es/commands/ListFlowExecutionsCommand.js +2 -2
  19. package/dist-es/commands/ListInvocationStepsCommand.js +2 -2
  20. package/dist-es/commands/ListInvocationsCommand.js +2 -2
  21. package/dist-es/commands/ListSessionsCommand.js +2 -2
  22. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  23. package/dist-es/commands/OptimizePromptCommand.js +2 -2
  24. package/dist-es/commands/PutInvocationStepCommand.js +2 -2
  25. package/dist-es/commands/RerankCommand.js +2 -2
  26. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -2
  27. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -2
  28. package/dist-es/commands/RetrieveCommand.js +2 -2
  29. package/dist-es/commands/StartFlowExecutionCommand.js +2 -2
  30. package/dist-es/commands/StopFlowExecutionCommand.js +2 -2
  31. package/dist-es/commands/TagResourceCommand.js +2 -2
  32. package/dist-es/commands/UntagResourceCommand.js +2 -2
  33. package/dist-es/commands/UpdateSessionCommand.js +2 -2
  34. package/dist-es/index.js +1 -0
  35. package/dist-es/runtimeConfig.shared.js +6 -1
  36. package/dist-es/schemas/schemas_0.js +791 -783
  37. package/dist-types/BedrockAgentRuntimeClient.d.ts +1 -10
  38. package/dist-types/index.d.ts +1 -0
  39. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  40. package/dist-types/runtimeConfig.d.ts +6 -2
  41. package/dist-types/runtimeConfig.native.d.ts +6 -2
  42. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  43. package/dist-types/schemas/schemas_0.d.ts +344 -447
  44. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +0 -4
  45. package/dist-types/ts3.4/index.d.ts +1 -0
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  50. package/dist-types/ts3.4/schemas/schemas_0.d.ts +343 -449
  51. package/package.json +37 -37
@@ -6,7 +6,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
6
6
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
7
7
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
8
8
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
9
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
10
10
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
11
  import { CreateInvocationCommandInput, CreateInvocationCommandOutput } from "./commands/CreateInvocationCommand";
12
12
  import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
@@ -173,15 +173,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
173
173
  * Optional extensions
174
174
  */
175
175
  extensions?: RuntimeExtension[];
176
- /**
177
- * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
178
- * may be overridden. A default will always be set by the client.
179
- * Available options depend on the service's supported protocols and will not be validated by
180
- * the client.
181
- * @alpha
182
- *
183
- */
184
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
185
176
  /**
186
177
  * The function that provides necessary utilities for generating and parsing event stream
187
178
  */
@@ -9,6 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { BedrockAgentRuntimeExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
+ export * from "./schemas/schemas_0";
12
13
  export * from "./pagination";
13
14
  export * from "./models/enums";
14
15
  export * from "./models/errors";
@@ -18,8 +18,13 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
18
18
  streamCollector: import("@smithy/types").StreamCollector;
19
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
- apiVersion: string;
22
21
  cacheMiddleware?: boolean | undefined;
22
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
23
+ protocolSettings: {
24
+ defaultNamespace?: string;
25
+ [setting: string]: unknown;
26
+ };
27
+ apiVersion: string;
23
28
  urlParser: import("@smithy/types").UrlParser;
24
29
  base64Decoder: import("@smithy/types").Decoder;
25
30
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -30,7 +35,6 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
30
35
  profile?: string;
31
36
  logger: import("@smithy/types").Logger;
32
37
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
38
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
39
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
36
40
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -20,8 +20,13 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
23
- apiVersion: string;
24
23
  cacheMiddleware?: boolean | undefined;
24
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
25
+ protocolSettings: {
26
+ defaultNamespace?: string;
27
+ [setting: string]: unknown;
28
+ };
29
+ apiVersion: string;
25
30
  urlParser: import("@smithy/types").UrlParser;
26
31
  base64Decoder: import("@smithy/types").Decoder;
27
32
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -32,7 +37,6 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
32
37
  profile?: string;
33
38
  logger: import("@smithy/types").Logger;
34
39
  extensions: import("./runtimeExtensions").RuntimeExtension[];
35
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
36
40
  customUserAgent?: string | import("@smithy/types").UserAgent;
37
41
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
38
42
  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;
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
- apiVersion: string;
10
9
  cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
11
16
  urlParser: import("@smithy/types").UrlParser;
12
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -27,7 +32,6 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
27
32
  retryMode: string | import("@smithy/types").Provider<string>;
28
33
  logger: import("@smithy/types").Logger;
29
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
31
35
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
32
36
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
33
37
  customUserAgent?: string | import("@smithy/types").UserAgent;
@@ -1,3 +1,4 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
1
2
  import type { BedrockAgentRuntimeClientConfig } from "./BedrockAgentRuntimeClient";
2
3
  /**
3
4
  * @internal
@@ -14,7 +15,11 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
14
15
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockAgentRuntimeHttpAuthSchemeProvider;
15
16
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
17
  logger: import("@smithy/types").Logger;
17
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
18
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
19
+ protocolSettings: {
20
+ [setting: string]: unknown;
21
+ defaultNamespace?: string;
22
+ };
18
23
  serviceId: string;
19
24
  urlParser: import("@smithy/types").UrlParser;
20
25
  utf8Decoder: import("@smithy/types").Decoder;