@aws-sdk/client-bedrock-agent-runtime 3.461.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 (95) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +229 -0
  3. package/dist-cjs/BedrockAgentRuntime.js +17 -0
  4. package/dist-cjs/BedrockAgentRuntimeClient.js +45 -0
  5. package/dist-cjs/commands/InvokeAgentCommand.js +52 -0
  6. package/dist-cjs/commands/RetrieveAndGenerateCommand.js +52 -0
  7. package/dist-cjs/commands/RetrieveCommand.js +52 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  10. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  11. package/dist-cjs/endpoint/ruleset.js +7 -0
  12. package/dist-cjs/extensionConfiguration.js +2 -0
  13. package/dist-cjs/index.js +12 -0
  14. package/dist-cjs/models/BedrockAgentRuntimeServiceException.js +12 -0
  15. package/dist-cjs/models/index.js +4 -0
  16. package/dist-cjs/models/models_0.js +439 -0
  17. package/dist-cjs/pagination/Interfaces.js +2 -0
  18. package/dist-cjs/pagination/RetrievePaginator.js +28 -0
  19. package/dist-cjs/pagination/index.js +5 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +689 -0
  21. package/dist-cjs/runtimeConfig.browser.js +41 -0
  22. package/dist-cjs/runtimeConfig.js +52 -0
  23. package/dist-cjs/runtimeConfig.native.js +15 -0
  24. package/dist-cjs/runtimeConfig.shared.js +24 -0
  25. package/dist-cjs/runtimeExtensions.js +22 -0
  26. package/dist-es/BedrockAgentRuntime.js +13 -0
  27. package/dist-es/BedrockAgentRuntimeClient.js +41 -0
  28. package/dist-es/commands/InvokeAgentCommand.js +48 -0
  29. package/dist-es/commands/RetrieveAndGenerateCommand.js +48 -0
  30. package/dist-es/commands/RetrieveCommand.js +48 -0
  31. package/dist-es/commands/index.js +3 -0
  32. package/dist-es/endpoint/EndpointParameters.js +8 -0
  33. package/dist-es/endpoint/endpointResolver.js +8 -0
  34. package/dist-es/endpoint/ruleset.js +4 -0
  35. package/dist-es/extensionConfiguration.js +1 -0
  36. package/dist-es/index.js +7 -0
  37. package/dist-es/models/BedrockAgentRuntimeServiceException.js +8 -0
  38. package/dist-es/models/index.js +1 -0
  39. package/dist-es/models/models_0.js +396 -0
  40. package/dist-es/pagination/Interfaces.js +1 -0
  41. package/dist-es/pagination/RetrievePaginator.js +24 -0
  42. package/dist-es/pagination/index.js +2 -0
  43. package/dist-es/protocols/Aws_restJson1.js +680 -0
  44. package/dist-es/runtimeConfig.browser.js +36 -0
  45. package/dist-es/runtimeConfig.js +47 -0
  46. package/dist-es/runtimeConfig.native.js +11 -0
  47. package/dist-es/runtimeConfig.shared.js +20 -0
  48. package/dist-es/runtimeExtensions.js +18 -0
  49. package/dist-types/BedrockAgentRuntime.d.ts +31 -0
  50. package/dist-types/BedrockAgentRuntimeClient.d.ts +177 -0
  51. package/dist-types/commands/InvokeAgentCommand.d.ts +321 -0
  52. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +142 -0
  53. package/dist-types/commands/RetrieveCommand.d.ts +123 -0
  54. package/dist-types/commands/index.d.ts +3 -0
  55. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  56. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  57. package/dist-types/endpoint/ruleset.d.ts +2 -0
  58. package/dist-types/extensionConfiguration.d.ts +8 -0
  59. package/dist-types/index.d.ts +15 -0
  60. package/dist-types/models/BedrockAgentRuntimeServiceException.d.ts +13 -0
  61. package/dist-types/models/index.d.ts +1 -0
  62. package/dist-types/models/models_0.d.ts +1598 -0
  63. package/dist-types/pagination/Interfaces.d.ts +8 -0
  64. package/dist-types/pagination/RetrievePaginator.d.ts +7 -0
  65. package/dist-types/pagination/index.d.ts +2 -0
  66. package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
  67. package/dist-types/runtimeConfig.browser.d.ts +47 -0
  68. package/dist-types/runtimeConfig.d.ts +47 -0
  69. package/dist-types/runtimeConfig.native.d.ts +46 -0
  70. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  71. package/dist-types/runtimeExtensions.d.ts +17 -0
  72. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +58 -0
  73. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +147 -0
  74. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +35 -0
  75. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +39 -0
  76. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +35 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  78. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  79. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  80. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  81. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  82. package/dist-types/ts3.4/index.d.ts +10 -0
  83. package/dist-types/ts3.4/models/BedrockAgentRuntimeServiceException.d.ts +8 -0
  84. package/dist-types/ts3.4/models/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +737 -0
  86. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  87. package/dist-types/ts3.4/pagination/RetrievePaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  89. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -0
  90. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  91. package/dist-types/ts3.4/runtimeConfig.d.ts +100 -0
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +91 -0
  93. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  94. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  95. package/package.json +105 -0
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
3
+ export interface BedrockAgentRuntimePaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: BedrockAgentRuntimeClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ RetrieveCommandInput,
4
+ RetrieveCommandOutput,
5
+ } from "../commands/RetrieveCommand";
6
+ import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateRetrieve(
8
+ config: BedrockAgentRuntimePaginationConfiguration,
9
+ input: RetrieveCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<RetrieveCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./RetrievePaginator";
@@ -0,0 +1,44 @@
1
+ import {
2
+ HttpRequest as __HttpRequest,
3
+ HttpResponse as __HttpResponse,
4
+ } from "@smithy/protocol-http";
5
+ import {
6
+ EventStreamSerdeContext as __EventStreamSerdeContext,
7
+ SerdeContext as __SerdeContext,
8
+ } from "@smithy/types";
9
+ import {
10
+ InvokeAgentCommandInput,
11
+ InvokeAgentCommandOutput,
12
+ } from "../commands/InvokeAgentCommand";
13
+ import {
14
+ RetrieveAndGenerateCommandInput,
15
+ RetrieveAndGenerateCommandOutput,
16
+ } from "../commands/RetrieveAndGenerateCommand";
17
+ import {
18
+ RetrieveCommandInput,
19
+ RetrieveCommandOutput,
20
+ } from "../commands/RetrieveCommand";
21
+ export declare const se_InvokeAgentCommand: (
22
+ input: InvokeAgentCommandInput,
23
+ context: __SerdeContext
24
+ ) => Promise<__HttpRequest>;
25
+ export declare const se_RetrieveCommand: (
26
+ input: RetrieveCommandInput,
27
+ context: __SerdeContext
28
+ ) => Promise<__HttpRequest>;
29
+ export declare const se_RetrieveAndGenerateCommand: (
30
+ input: RetrieveAndGenerateCommandInput,
31
+ context: __SerdeContext
32
+ ) => Promise<__HttpRequest>;
33
+ export declare const de_InvokeAgentCommand: (
34
+ output: __HttpResponse,
35
+ context: __SerdeContext & __EventStreamSerdeContext
36
+ ) => Promise<InvokeAgentCommandOutput>;
37
+ export declare const de_RetrieveCommand: (
38
+ output: __HttpResponse,
39
+ context: __SerdeContext
40
+ ) => Promise<RetrieveCommandOutput>;
41
+ export declare const de_RetrieveAndGenerateCommand: (
42
+ output: __HttpResponse,
43
+ context: __SerdeContext
44
+ ) => Promise<RetrieveAndGenerateCommandOutput>;
@@ -0,0 +1,100 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { BedrockAgentRuntimeClientConfig } from "./BedrockAgentRuntimeClient";
3
+ export declare const getRuntimeConfig: (
4
+ config: BedrockAgentRuntimeClientConfig
5
+ ) => {
6
+ runtime: string;
7
+ defaultsMode: import("@smithy/types").Provider<
8
+ import("@smithy/smithy-client").ResolvedDefaultsMode
9
+ >;
10
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
+ credentialDefaultProvider: (
12
+ input: any
13
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
14
+ defaultUserAgentProvider: import("@smithy/types").Provider<
15
+ import("@smithy/types").UserAgent
16
+ >;
17
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
18
+ maxAttempts: number | import("@smithy/types").Provider<number>;
19
+ region: string | import("@smithy/types").Provider<any>;
20
+ requestHandler:
21
+ | (import("@smithy/types").RequestHandler<
22
+ any,
23
+ any,
24
+ import("@smithy/types").HttpHandlerOptions
25
+ > &
26
+ import("@smithy/types").RequestHandler<
27
+ import("@smithy/protocol-http").HttpRequest,
28
+ import("@smithy/protocol-http").HttpResponse,
29
+ import("@smithy/types").HttpHandlerOptions
30
+ > & {
31
+ updateHttpClientConfig(key: never, value: never): void;
32
+ httpHandlerConfigs(): {};
33
+ })
34
+ | RequestHandler;
35
+ retryMode: string | import("@smithy/types").Provider<string>;
36
+ sha256: import("@smithy/types").HashConstructor;
37
+ streamCollector: import("@smithy/types").StreamCollector;
38
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
39
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
40
+ apiVersion: string;
41
+ urlParser: import("@smithy/types").UrlParser;
42
+ base64Decoder: import("@smithy/types").Decoder;
43
+ base64Encoder: import("@smithy/types").Encoder;
44
+ utf8Decoder: import("@smithy/types").Decoder;
45
+ utf8Encoder: import("@smithy/types").Encoder;
46
+ disableHostPrefix: boolean;
47
+ serviceId: string;
48
+ logger: import("@smithy/types").Logger;
49
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
50
+ endpoint?:
51
+ | ((
52
+ | string
53
+ | import("@smithy/types").Endpoint
54
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
55
+ | import("@smithy/types").EndpointV2
56
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ ) &
58
+ (
59
+ | string
60
+ | import("@smithy/types").Provider<string>
61
+ | import("@smithy/types").Endpoint
62
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
63
+ | import("@smithy/types").EndpointV2
64
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
65
+ ))
66
+ | undefined;
67
+ endpointProvider: (
68
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
69
+ context?: {
70
+ logger?: import("@smithy/types").Logger | undefined;
71
+ }
72
+ ) => import("@smithy/types").EndpointV2;
73
+ tls?: boolean | undefined;
74
+ retryStrategy?:
75
+ | import("@smithy/types").RetryStrategy
76
+ | import("@smithy/types").RetryStrategyV2
77
+ | undefined;
78
+ credentials?:
79
+ | import("@smithy/types").AwsCredentialIdentity
80
+ | import("@smithy/types").Provider<
81
+ import("@smithy/types").AwsCredentialIdentity
82
+ >
83
+ | undefined;
84
+ signer?:
85
+ | import("@smithy/types").RequestSigner
86
+ | ((
87
+ authScheme?: import("@smithy/types").AuthScheme | undefined
88
+ ) => Promise<import("@smithy/types").RequestSigner>)
89
+ | undefined;
90
+ signingEscapePath?: boolean | undefined;
91
+ systemClockOffset?: number | undefined;
92
+ signingRegion?: string | undefined;
93
+ signerConstructor?:
94
+ | (new (
95
+ options: import("@smithy/signature-v4").SignatureV4Init &
96
+ import("@smithy/signature-v4").SignatureV4CryptoInit
97
+ ) => import("@smithy/types").RequestSigner)
98
+ | undefined;
99
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
100
+ };
@@ -0,0 +1,100 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { BedrockAgentRuntimeClientConfig } from "./BedrockAgentRuntimeClient";
3
+ export declare const getRuntimeConfig: (
4
+ config: BedrockAgentRuntimeClientConfig
5
+ ) => {
6
+ runtime: string;
7
+ defaultsMode: import("@smithy/types").Provider<
8
+ import("@smithy/smithy-client").ResolvedDefaultsMode
9
+ >;
10
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
+ credentialDefaultProvider: (
12
+ input: any
13
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
14
+ defaultUserAgentProvider: import("@smithy/types").Provider<
15
+ import("@smithy/types").UserAgent
16
+ >;
17
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
18
+ maxAttempts: number | import("@smithy/types").Provider<number>;
19
+ region: string | import("@smithy/types").Provider<string>;
20
+ requestHandler:
21
+ | (import("@smithy/types").RequestHandler<
22
+ any,
23
+ any,
24
+ import("@smithy/types").HttpHandlerOptions
25
+ > &
26
+ import("@smithy/types").RequestHandler<
27
+ import("@smithy/protocol-http").HttpRequest,
28
+ import("@smithy/protocol-http").HttpResponse,
29
+ import("@smithy/types").HttpHandlerOptions
30
+ > & {
31
+ updateHttpClientConfig(key: never, value: never): void;
32
+ httpHandlerConfigs(): {};
33
+ })
34
+ | RequestHandler;
35
+ retryMode: string | import("@smithy/types").Provider<string>;
36
+ sha256: import("@smithy/types").HashConstructor;
37
+ streamCollector: import("@smithy/types").StreamCollector;
38
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
39
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
40
+ apiVersion: string;
41
+ urlParser: import("@smithy/types").UrlParser;
42
+ base64Decoder: import("@smithy/types").Decoder;
43
+ base64Encoder: import("@smithy/types").Encoder;
44
+ utf8Decoder: import("@smithy/types").Decoder;
45
+ utf8Encoder: import("@smithy/types").Encoder;
46
+ disableHostPrefix: boolean;
47
+ serviceId: string;
48
+ logger: import("@smithy/types").Logger;
49
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
50
+ endpoint?:
51
+ | ((
52
+ | string
53
+ | import("@smithy/types").Endpoint
54
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
55
+ | import("@smithy/types").EndpointV2
56
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ ) &
58
+ (
59
+ | string
60
+ | import("@smithy/types").Provider<string>
61
+ | import("@smithy/types").Endpoint
62
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
63
+ | import("@smithy/types").EndpointV2
64
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
65
+ ))
66
+ | undefined;
67
+ endpointProvider: (
68
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
69
+ context?: {
70
+ logger?: import("@smithy/types").Logger | undefined;
71
+ }
72
+ ) => import("@smithy/types").EndpointV2;
73
+ tls?: boolean | undefined;
74
+ retryStrategy?:
75
+ | import("@smithy/types").RetryStrategy
76
+ | import("@smithy/types").RetryStrategyV2
77
+ | undefined;
78
+ credentials?:
79
+ | import("@smithy/types").AwsCredentialIdentity
80
+ | import("@smithy/types").Provider<
81
+ import("@smithy/types").AwsCredentialIdentity
82
+ >
83
+ | undefined;
84
+ signer?:
85
+ | import("@smithy/types").RequestSigner
86
+ | ((
87
+ authScheme?: import("@smithy/types").AuthScheme | undefined
88
+ ) => Promise<import("@smithy/types").RequestSigner>)
89
+ | undefined;
90
+ signingEscapePath?: boolean | undefined;
91
+ systemClockOffset?: number | undefined;
92
+ signingRegion?: string | undefined;
93
+ signerConstructor?:
94
+ | (new (
95
+ options: import("@smithy/signature-v4").SignatureV4Init &
96
+ import("@smithy/signature-v4").SignatureV4CryptoInit
97
+ ) => import("@smithy/types").RequestSigner)
98
+ | undefined;
99
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
100
+ };
@@ -0,0 +1,91 @@
1
+ import { BedrockAgentRuntimeClientConfig } from "./BedrockAgentRuntimeClient";
2
+ export declare const getRuntimeConfig: (
3
+ config: BedrockAgentRuntimeClientConfig
4
+ ) => {
5
+ runtime: string;
6
+ sha256: import("@smithy/types").HashConstructor;
7
+ requestHandler:
8
+ | (import("@smithy/types").RequestHandler<
9
+ any,
10
+ any,
11
+ import("@smithy/types").HttpHandlerOptions
12
+ > &
13
+ import("@smithy/types").RequestHandler<
14
+ import("@smithy/protocol-http").HttpRequest,
15
+ import("@smithy/protocol-http").HttpResponse,
16
+ import("@smithy/types").HttpHandlerOptions
17
+ > & {
18
+ updateHttpClientConfig(key: never, value: never): void;
19
+ httpHandlerConfigs(): {};
20
+ })
21
+ | import("@smithy/fetch-http-handler").FetchHttpHandler;
22
+ apiVersion: string;
23
+ urlParser: import("@smithy/types").UrlParser;
24
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
25
+ streamCollector: import("@smithy/types").StreamCollector;
26
+ base64Decoder: import("@smithy/types").Decoder;
27
+ base64Encoder: import("@smithy/types").Encoder;
28
+ utf8Decoder: import("@smithy/types").Decoder;
29
+ utf8Encoder: import("@smithy/types").Encoder;
30
+ disableHostPrefix: boolean;
31
+ serviceId: string;
32
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
33
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
34
+ region: string | import("@smithy/types").Provider<any>;
35
+ credentialDefaultProvider: (
36
+ input: any
37
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
38
+ defaultUserAgentProvider: import("@smithy/types").Provider<
39
+ import("@smithy/types").UserAgent
40
+ >;
41
+ maxAttempts: number | import("@smithy/types").Provider<number>;
42
+ retryMode: string | import("@smithy/types").Provider<string>;
43
+ logger: import("@smithy/types").Logger;
44
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
45
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
46
+ defaultsMode:
47
+ | import("@smithy/smithy-client").DefaultsMode
48
+ | import("@smithy/types").Provider<
49
+ import("@smithy/smithy-client").DefaultsMode
50
+ >;
51
+ endpoint?:
52
+ | string
53
+ | import("@smithy/types").Endpoint
54
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
55
+ | import("@smithy/types").EndpointV2
56
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ | undefined;
58
+ endpointProvider: (
59
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
60
+ context?: {
61
+ logger?: import("@smithy/types").Logger | undefined;
62
+ }
63
+ ) => import("@smithy/types").EndpointV2;
64
+ tls?: boolean | undefined;
65
+ retryStrategy?:
66
+ | import("@smithy/types").RetryStrategy
67
+ | import("@smithy/types").RetryStrategyV2
68
+ | undefined;
69
+ credentials?:
70
+ | import("@smithy/types").AwsCredentialIdentity
71
+ | import("@smithy/types").Provider<
72
+ import("@smithy/types").AwsCredentialIdentity
73
+ >
74
+ | undefined;
75
+ signer?:
76
+ | import("@smithy/types").RequestSigner
77
+ | ((
78
+ authScheme?: import("@smithy/types").AuthScheme | undefined
79
+ ) => Promise<import("@smithy/types").RequestSigner>)
80
+ | undefined;
81
+ signingEscapePath?: boolean | undefined;
82
+ systemClockOffset?: number | undefined;
83
+ signingRegion?: string | undefined;
84
+ signerConstructor?:
85
+ | (new (
86
+ options: import("@smithy/signature-v4").SignatureV4Init &
87
+ import("@smithy/signature-v4").SignatureV4CryptoInit
88
+ ) => import("@smithy/types").RequestSigner)
89
+ | undefined;
90
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
91
+ };
@@ -0,0 +1,21 @@
1
+ import { BedrockAgentRuntimeClientConfig } from "./BedrockAgentRuntimeClient";
2
+ export declare const getRuntimeConfig: (
3
+ config: BedrockAgentRuntimeClientConfig
4
+ ) => {
5
+ apiVersion: string;
6
+ base64Decoder: import("@smithy/types").Decoder;
7
+ base64Encoder: import("@smithy/types").Encoder;
8
+ disableHostPrefix: boolean;
9
+ endpointProvider: (
10
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
11
+ context?: {
12
+ logger?: import("@smithy/types").Logger | undefined;
13
+ }
14
+ ) => import("@smithy/types").EndpointV2;
15
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
16
+ logger: import("@smithy/types").Logger;
17
+ serviceId: string;
18
+ urlParser: import("@smithy/types").UrlParser;
19
+ utf8Decoder: import("@smithy/types").Decoder;
20
+ utf8Encoder: import("@smithy/types").Encoder;
21
+ };
@@ -0,0 +1,13 @@
1
+ import { BedrockAgentRuntimeExtensionConfiguration } from "./extensionConfiguration";
2
+ export interface RuntimeExtension {
3
+ configure(
4
+ extensionConfiguration: BedrockAgentRuntimeExtensionConfiguration
5
+ ): void;
6
+ }
7
+ export interface RuntimeExtensionsConfig {
8
+ extensions: RuntimeExtension[];
9
+ }
10
+ export declare const resolveRuntimeExtensions: (
11
+ runtimeConfig: any,
12
+ extensions: RuntimeExtension[]
13
+ ) => any;
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@aws-sdk/client-bedrock-agent-runtime",
3
+ "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
4
+ "version": "3.461.0",
5
+ "scripts": {
6
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
+ "build:es": "tsc -p tsconfig.es.json",
10
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
11
+ "build:types": "tsc -p tsconfig.types.json",
12
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "extract:docs": "api-extractor run --local",
15
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-agent-runtime"
16
+ },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
20
+ "sideEffects": false,
21
+ "dependencies": {
22
+ "@aws-crypto/sha256-browser": "3.0.0",
23
+ "@aws-crypto/sha256-js": "3.0.0",
24
+ "@aws-sdk/client-sts": "3.461.0",
25
+ "@aws-sdk/core": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.460.0",
27
+ "@aws-sdk/middleware-host-header": "3.460.0",
28
+ "@aws-sdk/middleware-logger": "3.460.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.460.0",
30
+ "@aws-sdk/middleware-signing": "3.461.0",
31
+ "@aws-sdk/middleware-user-agent": "3.460.0",
32
+ "@aws-sdk/region-config-resolver": "3.451.0",
33
+ "@aws-sdk/types": "3.460.0",
34
+ "@aws-sdk/util-endpoints": "3.460.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.460.0",
36
+ "@aws-sdk/util-user-agent-node": "3.460.0",
37
+ "@smithy/config-resolver": "^2.0.18",
38
+ "@smithy/eventstream-serde-browser": "^2.0.13",
39
+ "@smithy/eventstream-serde-config-resolver": "^2.0.13",
40
+ "@smithy/eventstream-serde-node": "^2.0.13",
41
+ "@smithy/fetch-http-handler": "^2.2.6",
42
+ "@smithy/hash-node": "^2.0.15",
43
+ "@smithy/invalid-dependency": "^2.0.13",
44
+ "@smithy/middleware-content-length": "^2.0.15",
45
+ "@smithy/middleware-endpoint": "^2.2.0",
46
+ "@smithy/middleware-retry": "^2.0.20",
47
+ "@smithy/middleware-serde": "^2.0.13",
48
+ "@smithy/middleware-stack": "^2.0.7",
49
+ "@smithy/node-config-provider": "^2.1.5",
50
+ "@smithy/node-http-handler": "^2.1.9",
51
+ "@smithy/protocol-http": "^3.0.9",
52
+ "@smithy/smithy-client": "^2.1.15",
53
+ "@smithy/types": "^2.5.0",
54
+ "@smithy/url-parser": "^2.0.13",
55
+ "@smithy/util-base64": "^2.0.1",
56
+ "@smithy/util-body-length-browser": "^2.0.0",
57
+ "@smithy/util-body-length-node": "^2.1.0",
58
+ "@smithy/util-defaults-mode-browser": "^2.0.19",
59
+ "@smithy/util-defaults-mode-node": "^2.0.25",
60
+ "@smithy/util-endpoints": "^1.0.4",
61
+ "@smithy/util-retry": "^2.0.6",
62
+ "@smithy/util-utf8": "^2.0.2",
63
+ "tslib": "^2.5.0"
64
+ },
65
+ "devDependencies": {
66
+ "@smithy/service-client-documentation-generator": "^2.0.0",
67
+ "@tsconfig/node14": "1.0.3",
68
+ "@types/node": "^14.14.31",
69
+ "concurrently": "7.0.0",
70
+ "downlevel-dts": "0.10.1",
71
+ "rimraf": "3.0.2",
72
+ "typedoc": "0.23.23",
73
+ "typescript": "~4.9.5"
74
+ },
75
+ "engines": {
76
+ "node": ">=14.0.0"
77
+ },
78
+ "typesVersions": {
79
+ "<4.0": {
80
+ "dist-types/*": [
81
+ "dist-types/ts3.4/*"
82
+ ]
83
+ }
84
+ },
85
+ "files": [
86
+ "dist-*/**"
87
+ ],
88
+ "author": {
89
+ "name": "AWS SDK for JavaScript Team",
90
+ "url": "https://aws.amazon.com/javascript/"
91
+ },
92
+ "license": "Apache-2.0",
93
+ "browser": {
94
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
95
+ },
96
+ "react-native": {
97
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
98
+ },
99
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agent-runtime",
100
+ "repository": {
101
+ "type": "git",
102
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
103
+ "directory": "clients/client-bedrock-agent-runtime"
104
+ }
105
+ }