@aws-sdk/client-bedrock-runtime 3.803.0 → 3.806.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 (29) hide show
  1. package/dist-cjs/runtimeConfig.js +6 -6
  2. package/dist-es/runtimeConfig.js +6 -6
  3. package/dist-types/commands/ApplyGuardrailCommand.d.ts +1 -1
  4. package/dist-types/commands/ConverseCommand.d.ts +1 -1
  5. package/dist-types/commands/ConverseStreamCommand.d.ts +1 -1
  6. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +1 -1
  7. package/dist-types/commands/InvokeModelCommand.d.ts +1 -1
  8. package/dist-types/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +1 -1
  9. package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +1 -1
  10. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +1 -1
  11. package/dist-types/endpoint/EndpointParameters.d.ts +1 -3
  12. package/dist-types/runtimeConfig.browser.d.ts +17 -17
  13. package/dist-types/runtimeConfig.d.ts +16 -16
  14. package/dist-types/runtimeConfig.native.d.ts +18 -18
  15. package/dist-types/runtimeConfig.shared.d.ts +3 -3
  16. package/dist-types/ts3.4/commands/ApplyGuardrailCommand.d.ts +1 -1
  17. package/dist-types/ts3.4/commands/ConverseCommand.d.ts +1 -1
  18. package/dist-types/ts3.4/commands/ConverseStreamCommand.d.ts +1 -1
  19. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +1 -1
  20. package/dist-types/ts3.4/commands/InvokeModelCommand.d.ts +1 -1
  21. package/dist-types/ts3.4/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +1 -1
  22. package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +1 -1
  23. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +1 -1
  24. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -4
  25. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +22 -32
  26. package/dist-types/ts3.4/runtimeConfig.d.ts +20 -29
  27. package/dist-types/ts3.4/runtimeConfig.native.d.ts +23 -33
  28. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  29. package/package.json +24 -24
@@ -25,13 +25,13 @@ const getRuntimeConfig = (config) => {
25
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
26
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
27
27
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
28
- const profileConfig = { profile: config?.profile };
28
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
29
29
  return {
30
30
  ...clientSharedValues,
31
31
  ...config,
32
32
  runtime: "node",
33
33
  defaultsMode,
34
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
34
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
37
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -40,7 +40,7 @@ const getRuntimeConfig = (config) => {
40
40
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
41
41
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
42
42
  region: config?.region ??
43
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
43
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
44
44
  requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
45
45
  retryMode: config?.retryMode ??
46
46
  (0, node_config_provider_1.loadConfig)({
@@ -49,9 +49,9 @@ const getRuntimeConfig = (config) => {
49
49
  }, config),
50
50
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
51
51
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
52
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
53
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
54
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
52
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
53
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
54
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
55
55
  };
56
56
  };
57
57
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -21,13 +21,13 @@ export const getRuntimeConfig = (config) => {
21
21
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
22
22
  const clientSharedValues = getSharedRuntimeConfig(config);
23
23
  awsCheckVersion(process.version);
24
- const profileConfig = { profile: config?.profile };
24
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
28
28
  runtime: "node",
29
29
  defaultsMode,
30
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
30
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
33
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -36,7 +36,7 @@ export const getRuntimeConfig = (config) => {
36
36
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
37
37
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
38
38
  region: config?.region ??
39
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
39
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
40
  requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
41
41
  retryMode: config?.retryMode ??
42
42
  loadNodeConfig({
@@ -45,8 +45,8 @@ export const getRuntimeConfig = (config) => {
45
45
  }, config),
46
46
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
47
47
  streamCollector: config?.streamCollector ?? streamCollector,
48
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
49
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
50
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
48
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
50
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
51
51
  };
52
52
  };
@@ -23,7 +23,7 @@ export interface ApplyGuardrailCommandOutput extends ApplyGuardrailResponse, __M
23
23
  }
24
24
  declare const ApplyGuardrailCommand_base: {
25
25
  new (input: ApplyGuardrailCommandInput): import("@smithy/smithy-client").CommandImpl<ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: ApplyGuardrailCommandInput): import("@smithy/smithy-client").CommandImpl<ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ApplyGuardrailCommandInput): import("@smithy/smithy-client").CommandImpl<ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -23,7 +23,7 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
23
23
  }
24
24
  declare const ConverseCommand_base: {
25
25
  new (input: ConverseCommandInput): import("@smithy/smithy-client").CommandImpl<ConverseCommandInput, ConverseCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: ConverseCommandInput): import("@smithy/smithy-client").CommandImpl<ConverseCommandInput, ConverseCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ConverseCommandInput): import("@smithy/smithy-client").CommandImpl<ConverseCommandInput, ConverseCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -23,7 +23,7 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
23
23
  }
24
24
  declare const ConverseStreamCommand_base: {
25
25
  new (input: ConverseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<ConverseStreamCommandInput, ConverseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: ConverseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<ConverseStreamCommandInput, ConverseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ConverseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<ConverseStreamCommandInput, ConverseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -23,7 +23,7 @@ export interface GetAsyncInvokeCommandOutput extends GetAsyncInvokeResponse, __M
23
23
  }
24
24
  declare const GetAsyncInvokeCommand_base: {
25
25
  new (input: GetAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<GetAsyncInvokeCommandInput, GetAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -36,7 +36,7 @@ export interface InvokeModelCommandOutput extends InvokeModelCommandOutputType,
36
36
  }
37
37
  declare const InvokeModelCommand_base: {
38
38
  new (input: InvokeModelCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
39
- new (__0_0: InvokeModelCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
39
+ new (input: InvokeModelCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
40
40
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
41
41
  };
42
42
  /**
@@ -23,7 +23,7 @@ export interface InvokeModelWithBidirectionalStreamCommandOutput extends InvokeM
23
23
  }
24
24
  declare const InvokeModelWithBidirectionalStreamCommand_base: {
25
25
  new (input: InvokeModelWithBidirectionalStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: InvokeModelWithBidirectionalStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: InvokeModelWithBidirectionalStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithBidirectionalStreamCommandInput, InvokeModelWithBidirectionalStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -29,7 +29,7 @@ export interface InvokeModelWithResponseStreamCommandOutput extends InvokeModelW
29
29
  }
30
30
  declare const InvokeModelWithResponseStreamCommand_base: {
31
31
  new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
32
- new (__0_0: InvokeModelWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
32
+ new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
33
33
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
34
34
  };
35
35
  /**
@@ -23,7 +23,7 @@ export interface StartAsyncInvokeCommandOutput extends StartAsyncInvokeResponse,
23
23
  }
24
24
  declare const StartAsyncInvokeCommand_base: {
25
25
  new (input: StartAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: StartAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StartAsyncInvokeCommandInput): import("@smithy/smithy-client").CommandImpl<StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -11,9 +11,7 @@ export interface ClientInputEndpointParameters {
11
11
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
12
  defaultSigningName: string;
13
13
  };
14
- export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
- defaultSigningName: string;
16
- };
14
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
17
15
  export declare const commonParams: {
18
16
  readonly UseFIPS: {
19
17
  readonly type: "builtInParams";
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
12
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
13
13
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
14
14
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -23,30 +23,30 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
23
23
  cacheMiddleware?: boolean | undefined;
24
24
  urlParser: import("@smithy/types").UrlParser;
25
25
  base64Decoder: import("@smithy/types").Decoder;
26
- base64Encoder: (_input: string | Uint8Array) => string;
26
+ base64Encoder: (_input: Uint8Array | string) => string;
27
27
  utf8Decoder: import("@smithy/types").Decoder;
28
- utf8Encoder: (input: string | Uint8Array) => string;
28
+ utf8Encoder: (input: Uint8Array | string) => string;
29
29
  disableHostPrefix: boolean;
30
30
  serviceId: string;
31
- profile?: string | undefined;
31
+ profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
35
- userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
36
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
+ customUserAgent?: string | import("@smithy/types").UserAgent;
35
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
36
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
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;
38
38
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
39
- logger?: import("@smithy/types").Logger | undefined;
39
+ logger?: import("@smithy/types").Logger;
40
40
  }) => import("@smithy/types").EndpointV2;
41
- tls?: boolean | undefined;
42
- serviceConfiguredEndpoint?: undefined;
43
- authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
41
+ tls?: boolean;
42
+ serviceConfiguredEndpoint?: never;
43
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
44
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
45
45
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
46
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
47
- signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
48
- signingEscapePath?: boolean | undefined;
49
- systemClockOffset?: number | undefined;
50
- signingRegion?: string | undefined;
51
- signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
46
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
47
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
48
+ signingEscapePath?: boolean;
49
+ systemClockOffset?: number;
50
+ signingRegion?: string;
51
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
52
52
  };
@@ -8,8 +8,8 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
12
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
12
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
13
13
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
14
14
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
15
15
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -25,28 +25,28 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
25
25
  cacheMiddleware?: boolean | undefined;
26
26
  urlParser: import("@smithy/types").UrlParser;
27
27
  base64Decoder: import("@smithy/types").Decoder;
28
- base64Encoder: (_input: string | Uint8Array) => string;
28
+ base64Encoder: (_input: Uint8Array | string) => string;
29
29
  utf8Decoder: import("@smithy/types").Decoder;
30
- utf8Encoder: (input: string | Uint8Array) => string;
30
+ utf8Encoder: (input: Uint8Array | string) => string;
31
31
  disableHostPrefix: boolean;
32
32
  serviceId: string;
33
- profile?: string | undefined;
33
+ profile?: string;
34
34
  logger: import("@smithy/types").Logger;
35
35
  extensions: import("./runtimeExtensions").RuntimeExtension[];
36
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
37
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
36
+ customUserAgent?: string | import("@smithy/types").UserAgent;
37
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
38
38
  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;
39
39
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
40
- logger?: import("@smithy/types").Logger | undefined;
40
+ logger?: import("@smithy/types").Logger;
41
41
  }) => import("@smithy/types").EndpointV2;
42
- tls?: boolean | undefined;
43
- serviceConfiguredEndpoint?: undefined;
42
+ tls?: boolean;
43
+ serviceConfiguredEndpoint?: never;
44
44
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
45
45
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
46
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
47
- signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
48
- signingEscapePath?: boolean | undefined;
49
- systemClockOffset?: number | undefined;
50
- signingRegion?: string | undefined;
51
- signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
46
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
47
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
48
+ signingEscapePath?: boolean;
49
+ systemClockOffset?: number;
50
+ signingRegion?: string;
51
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
52
52
  };
@@ -8,21 +8,21 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
8
8
  sha256: import("@smithy/types").HashConstructor;
9
9
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
10
  apiVersion: string;
11
- cacheMiddleware?: boolean | undefined;
11
+ cacheMiddleware?: boolean;
12
12
  urlParser: import("@smithy/types").UrlParser;
13
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
14
  streamCollector: import("@smithy/types").StreamCollector;
15
15
  base64Decoder: import("@smithy/types").Decoder;
16
- base64Encoder: (_input: string | Uint8Array) => string;
16
+ base64Encoder: (_input: Uint8Array | string) => string;
17
17
  utf8Decoder: import("@smithy/types").Decoder;
18
- utf8Encoder: (input: string | Uint8Array) => string;
18
+ utf8Encoder: (input: Uint8Array | string) => string;
19
19
  disableHostPrefix: boolean;
20
20
  serviceId: string;
21
21
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  region: string | import("@smithy/types").Provider<any>;
24
- profile?: string | undefined;
25
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
+ profile?: string;
25
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
26
26
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
27
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -30,22 +30,22 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
30
30
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
31
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
32
32
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
33
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
34
- userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
35
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
33
+ customUserAgent?: string | import("@smithy/types").UserAgent;
34
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
35
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
36
  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;
37
37
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
38
- logger?: import("@smithy/types").Logger | undefined;
38
+ logger?: import("@smithy/types").Logger;
39
39
  }) => import("@smithy/types").EndpointV2;
40
- tls?: boolean | undefined;
41
- serviceConfiguredEndpoint?: undefined;
42
- authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
40
+ tls?: boolean;
41
+ serviceConfiguredEndpoint?: never;
42
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
43
43
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
44
44
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
45
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
46
- signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
47
- signingEscapePath?: boolean | undefined;
48
- systemClockOffset?: number | undefined;
49
- signingRegion?: string | undefined;
50
- signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
46
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
47
+ signingEscapePath?: boolean;
48
+ systemClockOffset?: number;
49
+ signingRegion?: string;
50
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
51
51
  };
@@ -5,10 +5,10 @@ import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
5
5
  export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
6
6
  apiVersion: string;
7
7
  base64Decoder: import("@smithy/types").Decoder;
8
- base64Encoder: (_input: string | Uint8Array) => string;
8
+ base64Encoder: (_input: Uint8Array | string) => string;
9
9
  disableHostPrefix: boolean;
10
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
- logger?: import("@smithy/types").Logger | undefined;
11
+ logger?: import("@smithy/types").Logger;
12
12
  }) => import("@smithy/types").EndpointV2;
13
13
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
@@ -17,5 +17,5 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
17
17
  serviceId: string;
18
18
  urlParser: import("@smithy/types").UrlParser;
19
19
  utf8Decoder: import("@smithy/types").Decoder;
20
- utf8Encoder: (input: string | Uint8Array) => string;
20
+ utf8Encoder: (input: Uint8Array | string) => string;
21
21
  };
@@ -26,7 +26,7 @@ declare const ApplyGuardrailCommand_base: {
26
26
  ServiceOutputTypes
27
27
  >;
28
28
  new (
29
- __0_0: ApplyGuardrailCommandInput
29
+ input: ApplyGuardrailCommandInput
30
30
  ): import("@smithy/smithy-client").CommandImpl<
31
31
  ApplyGuardrailCommandInput,
32
32
  ApplyGuardrailCommandOutput,
@@ -23,7 +23,7 @@ declare const ConverseCommand_base: {
23
23
  ServiceOutputTypes
24
24
  >;
25
25
  new (
26
- __0_0: ConverseCommandInput
26
+ input: ConverseCommandInput
27
27
  ): import("@smithy/smithy-client").CommandImpl<
28
28
  ConverseCommandInput,
29
29
  ConverseCommandOutput,
@@ -26,7 +26,7 @@ declare const ConverseStreamCommand_base: {
26
26
  ServiceOutputTypes
27
27
  >;
28
28
  new (
29
- __0_0: ConverseStreamCommandInput
29
+ input: ConverseStreamCommandInput
30
30
  ): import("@smithy/smithy-client").CommandImpl<
31
31
  ConverseStreamCommandInput,
32
32
  ConverseStreamCommandOutput,
@@ -26,7 +26,7 @@ declare const GetAsyncInvokeCommand_base: {
26
26
  ServiceOutputTypes
27
27
  >;
28
28
  new (
29
- __0_0: GetAsyncInvokeCommandInput
29
+ input: GetAsyncInvokeCommandInput
30
30
  ): import("@smithy/smithy-client").CommandImpl<
31
31
  GetAsyncInvokeCommandInput,
32
32
  GetAsyncInvokeCommandOutput,
@@ -39,7 +39,7 @@ declare const InvokeModelCommand_base: {
39
39
  ServiceOutputTypes
40
40
  >;
41
41
  new (
42
- __0_0: InvokeModelCommandInput
42
+ input: InvokeModelCommandInput
43
43
  ): import("@smithy/smithy-client").CommandImpl<
44
44
  InvokeModelCommandInput,
45
45
  InvokeModelCommandOutput,
@@ -27,7 +27,7 @@ declare const InvokeModelWithBidirectionalStreamCommand_base: {
27
27
  ServiceOutputTypes
28
28
  >;
29
29
  new (
30
- __0_0: InvokeModelWithBidirectionalStreamCommandInput
30
+ input: InvokeModelWithBidirectionalStreamCommandInput
31
31
  ): import("@smithy/smithy-client").CommandImpl<
32
32
  InvokeModelWithBidirectionalStreamCommandInput,
33
33
  InvokeModelWithBidirectionalStreamCommandOutput,
@@ -36,7 +36,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
36
36
  ServiceOutputTypes
37
37
  >;
38
38
  new (
39
- __0_0: InvokeModelWithResponseStreamCommandInput
39
+ input: InvokeModelWithResponseStreamCommandInput
40
40
  ): import("@smithy/smithy-client").CommandImpl<
41
41
  InvokeModelWithResponseStreamCommandInput,
42
42
  InvokeModelWithResponseStreamCommandOutput,
@@ -26,7 +26,7 @@ declare const StartAsyncInvokeCommand_base: {
26
26
  ServiceOutputTypes
27
27
  >;
28
28
  new (
29
- __0_0: StartAsyncInvokeCommandInput
29
+ input: StartAsyncInvokeCommandInput
30
30
  ): import("@smithy/smithy-client").CommandImpl<
31
31
  StartAsyncInvokeCommandInput,
32
32
  StartAsyncInvokeCommandOutput,
@@ -21,10 +21,7 @@ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
21
21
  };
22
22
  export declare const resolveClientEndpointParameters: <T>(
23
23
  options: T & ClientInputEndpointParameters
24
- ) => T &
25
- ClientInputEndpointParameters & {
26
- defaultSigningName: string;
27
- };
24
+ ) => T & ClientResolvedEndpointParameters;
28
25
  export declare const commonParams: {
29
26
  readonly UseFIPS: {
30
27
  readonly type: "builtInParams";
@@ -12,9 +12,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
12
12
  _: unknown
13
13
  ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
14
14
  defaultUserAgentProvider: (
15
- config?:
16
- | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
17
- | undefined
15
+ config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
18
16
  ) => Promise<import("@smithy/types").UserAgent>;
19
17
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
20
18
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
@@ -32,23 +30,22 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
32
30
  cacheMiddleware?: boolean | undefined;
33
31
  urlParser: import("@smithy/types").UrlParser;
34
32
  base64Decoder: import("@smithy/types").Decoder;
35
- base64Encoder: (_input: string | Uint8Array) => string;
33
+ base64Encoder: (_input: Uint8Array | string) => string;
36
34
  utf8Decoder: import("@smithy/types").Decoder;
37
- utf8Encoder: (input: string | Uint8Array) => string;
35
+ utf8Encoder: (input: Uint8Array | string) => string;
38
36
  disableHostPrefix: boolean;
39
37
  serviceId: string;
40
- profile?: string | undefined;
38
+ profile?: string;
41
39
  logger: import("@smithy/types").Logger;
42
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
41
+ customUserAgent?: string | import("@smithy/types").UserAgent;
44
42
  userAgentAppId?:
45
43
  | string
46
- | import("@smithy/types").Provider<string | undefined>
47
- | undefined;
44
+ | undefined
45
+ | import("@smithy/types").Provider<string | undefined>;
48
46
  retryStrategy?:
49
47
  | import("@smithy/types").RetryStrategy
50
- | import("@smithy/types").RetryStrategyV2
51
- | undefined;
48
+ | import("@smithy/types").RetryStrategyV2;
52
49
  endpoint?:
53
50
  | ((
54
51
  | string
@@ -69,34 +66,27 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
69
66
  endpointProvider: (
70
67
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
71
68
  context?: {
72
- logger?: import("@smithy/types").Logger | undefined;
69
+ logger?: import("@smithy/types").Logger;
73
70
  }
74
71
  ) => import("@smithy/types").EndpointV2;
75
- tls?: boolean | undefined;
76
- serviceConfiguredEndpoint?: undefined;
77
- authSchemePreference?:
78
- | string[]
79
- | import("@smithy/types").Provider<string[]>
80
- | undefined;
72
+ tls?: boolean;
73
+ serviceConfiguredEndpoint?: never;
74
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
81
75
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
82
76
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
83
77
  credentials?:
84
78
  | import("@smithy/types").AwsCredentialIdentity
85
- | import("@smithy/types").AwsCredentialIdentityProvider
86
- | undefined;
79
+ | import("@smithy/types").AwsCredentialIdentityProvider;
87
80
  signer?:
88
81
  | import("@smithy/types").RequestSigner
89
82
  | ((
90
- authScheme?: import("@smithy/types").AuthScheme | undefined
91
- ) => Promise<import("@smithy/types").RequestSigner>)
92
- | undefined;
93
- signingEscapePath?: boolean | undefined;
94
- systemClockOffset?: number | undefined;
95
- signingRegion?: string | undefined;
96
- signerConstructor?:
97
- | (new (
98
- options: import("@smithy/signature-v4").SignatureV4Init &
99
- import("@smithy/signature-v4").SignatureV4CryptoInit
100
- ) => import("@smithy/types").RequestSigner)
101
- | undefined;
83
+ authScheme?: import("@smithy/types").AuthScheme
84
+ ) => Promise<import("@smithy/types").RequestSigner>);
85
+ signingEscapePath?: boolean;
86
+ systemClockOffset?: number;
87
+ signingRegion?: string;
88
+ signerConstructor?: new (
89
+ options: import("@smithy/signature-v4").SignatureV4Init &
90
+ import("@smithy/signature-v4").SignatureV4CryptoInit
91
+ ) => import("@smithy/types").RequestSigner;
102
92
  };
@@ -10,16 +10,12 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
10
10
  credentialDefaultProvider:
11
11
  | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
12
12
  | ((
13
- init?:
14
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
15
- | undefined
13
+ init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
16
14
  ) => import("@smithy/types").MemoizedProvider<
17
15
  import("@smithy/types").AwsCredentialIdentity
18
16
  >);
19
17
  defaultUserAgentProvider: (
20
- config?:
21
- | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
22
- | undefined
18
+ config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved
23
19
  ) => Promise<import("@smithy/types").UserAgent>;
24
20
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
25
21
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
@@ -38,19 +34,18 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
38
34
  cacheMiddleware?: boolean | undefined;
39
35
  urlParser: import("@smithy/types").UrlParser;
40
36
  base64Decoder: import("@smithy/types").Decoder;
41
- base64Encoder: (_input: string | Uint8Array) => string;
37
+ base64Encoder: (_input: Uint8Array | string) => string;
42
38
  utf8Decoder: import("@smithy/types").Decoder;
43
- utf8Encoder: (input: string | Uint8Array) => string;
39
+ utf8Encoder: (input: Uint8Array | string) => string;
44
40
  disableHostPrefix: boolean;
45
41
  serviceId: string;
46
- profile?: string | undefined;
42
+ profile?: string;
47
43
  logger: import("@smithy/types").Logger;
48
44
  extensions: import("./runtimeExtensions").RuntimeExtension[];
49
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent;
50
46
  retryStrategy?:
51
47
  | import("@smithy/types").RetryStrategy
52
- | import("@smithy/types").RetryStrategyV2
53
- | undefined;
48
+ | import("@smithy/types").RetryStrategyV2;
54
49
  endpoint?:
55
50
  | ((
56
51
  | string
@@ -71,30 +66,26 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
71
66
  endpointProvider: (
72
67
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
73
68
  context?: {
74
- logger?: import("@smithy/types").Logger | undefined;
69
+ logger?: import("@smithy/types").Logger;
75
70
  }
76
71
  ) => import("@smithy/types").EndpointV2;
77
- tls?: boolean | undefined;
78
- serviceConfiguredEndpoint?: undefined;
72
+ tls?: boolean;
73
+ serviceConfiguredEndpoint?: never;
79
74
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
80
75
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
81
76
  credentials?:
82
77
  | import("@smithy/types").AwsCredentialIdentity
83
- | import("@smithy/types").AwsCredentialIdentityProvider
84
- | undefined;
78
+ | import("@smithy/types").AwsCredentialIdentityProvider;
85
79
  signer?:
86
80
  | import("@smithy/types").RequestSigner
87
81
  | ((
88
- authScheme?: import("@smithy/types").AuthScheme | undefined
89
- ) => Promise<import("@smithy/types").RequestSigner>)
90
- | undefined;
91
- signingEscapePath?: boolean | undefined;
92
- systemClockOffset?: number | undefined;
93
- signingRegion?: string | undefined;
94
- signerConstructor?:
95
- | (new (
96
- options: import("@smithy/signature-v4").SignatureV4Init &
97
- import("@smithy/signature-v4").SignatureV4CryptoInit
98
- ) => import("@smithy/types").RequestSigner)
99
- | undefined;
82
+ authScheme?: import("@smithy/types").AuthScheme
83
+ ) => Promise<import("@smithy/types").RequestSigner>);
84
+ signingEscapePath?: boolean;
85
+ systemClockOffset?: number;
86
+ signingRegion?: string;
87
+ signerConstructor?: new (
88
+ options: import("@smithy/signature-v4").SignatureV4Init &
89
+ import("@smithy/signature-v4").SignatureV4CryptoInit
90
+ ) => import("@smithy/types").RequestSigner;
100
91
  };
@@ -10,24 +10,22 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
10
10
  | import("@smithy/protocol-http").HttpHandler<any>
11
11
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
12
  apiVersion: string;
13
- cacheMiddleware?: boolean | undefined;
13
+ cacheMiddleware?: boolean;
14
14
  urlParser: import("@smithy/types").UrlParser;
15
15
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
16
16
  streamCollector: import("@smithy/types").StreamCollector;
17
17
  base64Decoder: import("@smithy/types").Decoder;
18
- base64Encoder: (_input: string | Uint8Array) => string;
18
+ base64Encoder: (_input: Uint8Array | string) => string;
19
19
  utf8Decoder: import("@smithy/types").Decoder;
20
- utf8Encoder: (input: string | Uint8Array) => string;
20
+ utf8Encoder: (input: Uint8Array | string) => string;
21
21
  disableHostPrefix: boolean;
22
22
  serviceId: string;
23
23
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  region: string | import("@smithy/types").Provider<any>;
26
- profile?: string | undefined;
26
+ profile?: string;
27
27
  defaultUserAgentProvider: (
28
- config?:
29
- | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
30
- | undefined
28
+ config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
31
29
  ) => Promise<import("@smithy/types").UserAgent>;
32
30
  credentialDefaultProvider:
33
31
  | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
@@ -44,15 +42,14 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
44
42
  | import("@smithy/types").Provider<
45
43
  import("@smithy/smithy-client").DefaultsMode
46
44
  >;
47
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent;
48
46
  userAgentAppId?:
49
47
  | string
50
- | import("@smithy/types").Provider<string | undefined>
51
- | undefined;
48
+ | undefined
49
+ | import("@smithy/types").Provider<string | undefined>;
52
50
  retryStrategy?:
53
51
  | import("@smithy/types").RetryStrategy
54
- | import("@smithy/types").RetryStrategyV2
55
- | undefined;
52
+ | import("@smithy/types").RetryStrategyV2;
56
53
  endpoint?:
57
54
  | ((
58
55
  | string
@@ -73,34 +70,27 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
73
70
  endpointProvider: (
74
71
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
75
72
  context?: {
76
- logger?: import("@smithy/types").Logger | undefined;
73
+ logger?: import("@smithy/types").Logger;
77
74
  }
78
75
  ) => import("@smithy/types").EndpointV2;
79
- tls?: boolean | undefined;
80
- serviceConfiguredEndpoint?: undefined;
81
- authSchemePreference?:
82
- | string[]
83
- | import("@smithy/types").Provider<string[]>
84
- | undefined;
76
+ tls?: boolean;
77
+ serviceConfiguredEndpoint?: never;
78
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
85
79
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
86
80
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
87
81
  credentials?:
88
82
  | import("@smithy/types").AwsCredentialIdentity
89
- | import("@smithy/types").AwsCredentialIdentityProvider
90
- | undefined;
83
+ | import("@smithy/types").AwsCredentialIdentityProvider;
91
84
  signer?:
92
85
  | import("@smithy/types").RequestSigner
93
86
  | ((
94
- authScheme?: import("@smithy/types").AuthScheme | undefined
95
- ) => Promise<import("@smithy/types").RequestSigner>)
96
- | undefined;
97
- signingEscapePath?: boolean | undefined;
98
- systemClockOffset?: number | undefined;
99
- signingRegion?: string | undefined;
100
- signerConstructor?:
101
- | (new (
102
- options: import("@smithy/signature-v4").SignatureV4Init &
103
- import("@smithy/signature-v4").SignatureV4CryptoInit
104
- ) => import("@smithy/types").RequestSigner)
105
- | undefined;
87
+ authScheme?: import("@smithy/types").AuthScheme
88
+ ) => Promise<import("@smithy/types").RequestSigner>);
89
+ signingEscapePath?: boolean;
90
+ systemClockOffset?: number;
91
+ signingRegion?: string;
92
+ signerConstructor?: new (
93
+ options: import("@smithy/signature-v4").SignatureV4Init &
94
+ import("@smithy/signature-v4").SignatureV4CryptoInit
95
+ ) => import("@smithy/types").RequestSigner;
106
96
  };
@@ -2,12 +2,12 @@ import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
2
2
  export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
3
3
  apiVersion: string;
4
4
  base64Decoder: import("@smithy/types").Decoder;
5
- base64Encoder: (_input: string | Uint8Array) => string;
5
+ base64Encoder: (_input: Uint8Array | string) => string;
6
6
  disableHostPrefix: boolean;
7
7
  endpointProvider: (
8
8
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
9
9
  context?: {
10
- logger?: import("@smithy/types").Logger | undefined;
10
+ logger?: import("@smithy/types").Logger;
11
11
  }
12
12
  ) => import("@smithy/types").EndpointV2;
13
13
  extensions: import("./runtimeExtensions").RuntimeExtension[];
@@ -17,5 +17,5 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
17
17
  serviceId: string;
18
18
  urlParser: import("@smithy/types").UrlParser;
19
19
  utf8Decoder: import("@smithy/types").Decoder;
20
- utf8Encoder: (input: string | Uint8Array) => string;
20
+ utf8Encoder: (input: Uint8Array | string) => string;
21
21
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.803.0",
4
+ "version": "3.806.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-runtime",
@@ -20,21 +20,21 @@
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.799.0",
24
- "@aws-sdk/credential-provider-node": "3.803.0",
25
- "@aws-sdk/eventstream-handler-node": "3.775.0",
26
- "@aws-sdk/middleware-eventstream": "3.775.0",
27
- "@aws-sdk/middleware-host-header": "3.775.0",
28
- "@aws-sdk/middleware-logger": "3.775.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.775.0",
30
- "@aws-sdk/middleware-user-agent": "3.799.0",
31
- "@aws-sdk/region-config-resolver": "3.775.0",
32
- "@aws-sdk/types": "3.775.0",
33
- "@aws-sdk/util-endpoints": "3.787.0",
34
- "@aws-sdk/util-user-agent-browser": "3.775.0",
35
- "@aws-sdk/util-user-agent-node": "3.799.0",
36
- "@smithy/config-resolver": "^4.1.0",
37
- "@smithy/core": "^3.3.0",
23
+ "@aws-sdk/core": "3.806.0",
24
+ "@aws-sdk/credential-provider-node": "3.806.0",
25
+ "@aws-sdk/eventstream-handler-node": "3.804.0",
26
+ "@aws-sdk/middleware-eventstream": "3.804.0",
27
+ "@aws-sdk/middleware-host-header": "3.804.0",
28
+ "@aws-sdk/middleware-logger": "3.804.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.804.0",
30
+ "@aws-sdk/middleware-user-agent": "3.806.0",
31
+ "@aws-sdk/region-config-resolver": "3.806.0",
32
+ "@aws-sdk/types": "3.804.0",
33
+ "@aws-sdk/util-endpoints": "3.806.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.804.0",
35
+ "@aws-sdk/util-user-agent-node": "3.806.0",
36
+ "@smithy/config-resolver": "^4.1.1",
37
+ "@smithy/core": "^3.3.1",
38
38
  "@smithy/eventstream-serde-browser": "^4.0.2",
39
39
  "@smithy/eventstream-serde-config-resolver": "^4.1.0",
40
40
  "@smithy/eventstream-serde-node": "^4.0.2",
@@ -42,22 +42,22 @@
42
42
  "@smithy/hash-node": "^4.0.2",
43
43
  "@smithy/invalid-dependency": "^4.0.2",
44
44
  "@smithy/middleware-content-length": "^4.0.2",
45
- "@smithy/middleware-endpoint": "^4.1.1",
46
- "@smithy/middleware-retry": "^4.1.2",
45
+ "@smithy/middleware-endpoint": "^4.1.3",
46
+ "@smithy/middleware-retry": "^4.1.4",
47
47
  "@smithy/middleware-serde": "^4.0.3",
48
48
  "@smithy/middleware-stack": "^4.0.2",
49
- "@smithy/node-config-provider": "^4.0.2",
49
+ "@smithy/node-config-provider": "^4.1.0",
50
50
  "@smithy/node-http-handler": "^4.0.4",
51
51
  "@smithy/protocol-http": "^5.1.0",
52
- "@smithy/smithy-client": "^4.2.1",
52
+ "@smithy/smithy-client": "^4.2.3",
53
53
  "@smithy/types": "^4.2.0",
54
54
  "@smithy/url-parser": "^4.0.2",
55
55
  "@smithy/util-base64": "^4.0.0",
56
56
  "@smithy/util-body-length-browser": "^4.0.0",
57
57
  "@smithy/util-body-length-node": "^4.0.0",
58
- "@smithy/util-defaults-mode-browser": "^4.0.9",
59
- "@smithy/util-defaults-mode-node": "^4.0.9",
60
- "@smithy/util-endpoints": "^3.0.2",
58
+ "@smithy/util-defaults-mode-browser": "^4.0.11",
59
+ "@smithy/util-defaults-mode-node": "^4.0.11",
60
+ "@smithy/util-endpoints": "^3.0.3",
61
61
  "@smithy/util-middleware": "^4.0.2",
62
62
  "@smithy/util-retry": "^4.0.3",
63
63
  "@smithy/util-stream": "^4.2.0",
@@ -72,7 +72,7 @@
72
72
  "concurrently": "7.0.0",
73
73
  "downlevel-dts": "0.10.1",
74
74
  "rimraf": "3.0.2",
75
- "typescript": "~5.2.2"
75
+ "typescript": "~5.8.3"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=18.0.0"