@aws-sdk/client-bedrock-runtime 3.1087.0 → 3.1088.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 (30) hide show
  1. package/dist-cjs/index.js +1 -1
  2. package/dist-types/ts3.4/BedrockRuntime.d.ts +38 -58
  3. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +11 -36
  4. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +5 -12
  5. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +11 -15
  6. package/dist-types/ts3.4/commandBuilder.d.ts +8 -14
  7. package/dist-types/ts3.4/commands/ApplyGuardrailCommand.d.ts +4 -9
  8. package/dist-types/ts3.4/commands/ConverseCommand.d.ts +7 -5
  9. package/dist-types/ts3.4/commands/ConverseStreamCommand.d.ts +4 -9
  10. package/dist-types/ts3.4/commands/CountTokensCommand.d.ts +3 -5
  11. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +4 -9
  12. package/dist-types/ts3.4/commands/InvokeGuardrailChecksCommand.d.ts +5 -10
  13. package/dist-types/ts3.4/commands/InvokeModelCommand.d.ts +4 -9
  14. package/dist-types/ts3.4/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +4 -6
  15. package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +5 -10
  16. package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +3 -8
  17. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +4 -9
  18. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  19. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +1 -1
  20. package/dist-types/ts3.4/extensionConfiguration.d.ts +2 -1
  21. package/dist-types/ts3.4/models/enums.d.ts +15 -30
  22. package/dist-types/ts3.4/models/errors.d.ts +11 -33
  23. package/dist-types/ts3.4/models/models_0.d.ts +9 -27
  24. package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
  25. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +13 -34
  26. package/dist-types/ts3.4/runtimeConfig.d.ts +13 -27
  27. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -37
  28. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +5 -13
  29. package/dist-types/ts3.4/runtimeExtensions.d.ts +1 -1
  30. package/package.json +43 -43
@@ -13,10 +13,10 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
13
13
  credentialDefaultProvider:
14
14
  | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
15
15
  | ((
16
- init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
16
+ init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
17
17
  ) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
18
18
  defaultUserAgentProvider: (
19
- config?: import("@aws-sdk/core/client").PreviouslyResolved
19
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
20
20
  ) => Promise<import("@smithy/types").UserAgent>;
21
21
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
22
22
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
@@ -26,36 +26,26 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
26
26
  | {
27
27
  schemeId: string;
28
28
  identityProvider: (
29
- ipc: IdentityProviderConfig
29
+ ipc: IdentityProviderConfig,
30
30
  ) =>
31
- | import("@smithy/types").IdentityProvider<
32
- import("@smithy/types").Identity
33
- >
31
+ | import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>
34
32
  | undefined;
35
33
  signer: AwsSdkSigV4Signer;
36
34
  }
37
35
  | {
38
36
  schemeId: string;
39
37
  identityProvider: (
40
- ipc: IdentityProviderConfig
41
- ) => import("@smithy/types").IdentityProvider<
42
- import("@smithy/types").Identity
43
- >;
38
+ ipc: IdentityProviderConfig,
39
+ ) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>;
44
40
  signer: HttpBearerAuthSigner;
45
41
  }
46
42
  )[];
47
43
  maxAttempts: number | import("@smithy/types").Provider<number>;
48
44
  region: string | import("@smithy/types").Provider<string>;
49
- requestHandler:
50
- | RequestHandler
51
- | import("@smithy/core/protocols").HttpHandler<any>;
45
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
52
46
  retryMode: string | import("@smithy/types").Provider<string>;
53
47
  streamCollector: (
54
- stream:
55
- | import("stream").Readable
56
- | import("stream/web").ReadableStream
57
- | ReadableStream
58
- | Blob
48
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
59
49
  ) => Promise<Uint8Array>;
60
50
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
61
51
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -82,9 +72,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
82
72
  logger: import("@smithy/types").Logger;
83
73
  extensions: import("./runtimeExtensions").RuntimeExtension[];
84
74
  customUserAgent?: string | import("@smithy/types").UserAgent;
85
- retryStrategy?:
86
- | import("@smithy/types").RetryStrategy
87
- | import("@smithy/types").RetryStrategyV2;
75
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
88
76
  endpoint?:
89
77
  | ((
90
78
  | string
@@ -106,27 +94,25 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
106
94
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
107
95
  context?: {
108
96
  logger?: import("@smithy/types").Logger;
109
- }
97
+ },
110
98
  ) => import("@smithy/types").EndpointV2;
111
99
  tls?: boolean;
112
100
  serviceConfiguredEndpoint?: never;
113
101
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
114
- token?:
115
- | import("@smithy/types").TokenIdentity
116
- | import("@smithy/types").TokenIdentityProvider;
102
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
117
103
  credentials?:
118
104
  | import("@smithy/types").AwsCredentialIdentity
119
105
  | import("@smithy/types").AwsCredentialIdentityProvider;
120
106
  signer?:
121
107
  | import("@smithy/types").RequestSigner
122
108
  | ((
123
- authScheme?: import("@smithy/types").AuthScheme
109
+ authScheme?: import("@smithy/types").AuthScheme,
124
110
  ) => Promise<import("@smithy/types").RequestSigner>);
125
111
  signingEscapePath?: boolean;
126
112
  systemClockOffset?: number;
127
113
  signingRegion?: string;
128
114
  signerConstructor?: new (
129
115
  options: import("@smithy/signature-v4").SignatureV4Init &
130
- import("@smithy/signature-v4").SignatureV4CryptoInit
116
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
131
117
  ) => import("@smithy/types").RequestSigner;
132
118
  };
@@ -34,11 +34,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
34
34
  urlParser: import("@smithy/types").UrlParser;
35
35
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
36
36
  streamCollector: (
37
- stream:
38
- | import("stream").Readable
39
- | import("stream/web").ReadableStream
40
- | ReadableStream
41
- | Blob
37
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
42
38
  ) => Promise<Uint8Array>;
43
39
  base64Decoder: import("@smithy/types").Decoder;
44
40
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -53,13 +49,11 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
53
49
  region: string | import("@smithy/types").Provider<any>;
54
50
  profile?: string;
55
51
  defaultUserAgentProvider: (
56
- config?: import("@aws-sdk/core/client").PreviouslyResolved
52
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
57
53
  ) => Promise<import("@smithy/types").UserAgent>;
58
54
  credentialDefaultProvider:
59
55
  | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
60
- | ((
61
- _: unknown
62
- ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
56
+ | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
63
57
  maxAttempts: number | import("@smithy/types").Provider<number>;
64
58
  retryMode: string | import("@smithy/types").Provider<string>;
65
59
  logger: import("@smithy/types").Logger;
@@ -67,17 +61,10 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
67
61
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
68
62
  defaultsMode:
69
63
  | import("@smithy/core/client").DefaultsMode
70
- | import("@smithy/types").Provider<
71
- import("@smithy/core/client").DefaultsMode
72
- >;
64
+ | import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
73
65
  customUserAgent?: string | import("@smithy/types").UserAgent;
74
- userAgentAppId?:
75
- | string
76
- | undefined
77
- | import("@smithy/types").Provider<string | undefined>;
78
- retryStrategy?:
79
- | import("@smithy/types").RetryStrategy
80
- | import("@smithy/types").RetryStrategyV2;
66
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
67
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
81
68
  endpoint?:
82
69
  | ((
83
70
  | string
@@ -99,7 +86,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
99
86
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
100
87
  context?: {
101
88
  logger?: import("@smithy/types").Logger;
102
- }
89
+ },
103
90
  ) => import("@smithy/types").EndpointV2;
104
91
  tls?: boolean;
105
92
  serviceConfiguredEndpoint?: never;
@@ -108,43 +95,33 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
108
95
  | {
109
96
  schemeId: string;
110
97
  identityProvider: (
111
- ipc: import("@smithy/types").IdentityProviderConfig
112
- ) =>
113
- | import("@smithy/types").IdentityProvider<
114
- import("@smithy/types").Identity
115
- >
116
- | undefined;
98
+ ipc: import("@smithy/types").IdentityProviderConfig,
99
+ ) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
117
100
  signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
118
101
  }
119
102
  | {
120
103
  schemeId: string;
121
104
  identityProvider: (
122
- ipc: import("@smithy/types").IdentityProviderConfig
123
- ) =>
124
- | import("@smithy/types").IdentityProvider<
125
- import("@smithy/types").Identity
126
- >
127
- | undefined;
105
+ ipc: import("@smithy/types").IdentityProviderConfig,
106
+ ) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
128
107
  signer: import("@smithy/core").HttpBearerAuthSigner;
129
108
  }
130
109
  )[];
131
110
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
132
- token?:
133
- | import("@smithy/types").TokenIdentity
134
- | import("@smithy/types").TokenIdentityProvider;
111
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
135
112
  credentials?:
136
113
  | import("@smithy/types").AwsCredentialIdentity
137
114
  | import("@smithy/types").AwsCredentialIdentityProvider;
138
115
  signer?:
139
116
  | import("@smithy/types").RequestSigner
140
117
  | ((
141
- authScheme?: import("@smithy/types").AuthScheme
118
+ authScheme?: import("@smithy/types").AuthScheme,
142
119
  ) => Promise<import("@smithy/types").RequestSigner>);
143
120
  signingEscapePath?: boolean;
144
121
  systemClockOffset?: number;
145
122
  signingRegion?: string;
146
123
  signerConstructor?: new (
147
124
  options: import("@smithy/signature-v4").SignatureV4Init &
148
- import("@smithy/signature-v4").SignatureV4CryptoInit
125
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
149
126
  ) => import("@smithy/types").RequestSigner;
150
127
  };
@@ -12,7 +12,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
12
12
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
13
13
  context?: {
14
14
  logger?: import("@smithy/types").Logger;
15
- }
15
+ },
16
16
  ) => import("@smithy/types").EndpointV2;
17
17
  extensions: import("./runtimeExtensions").RuntimeExtension[];
18
18
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
@@ -20,23 +20,15 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
20
20
  | {
21
21
  schemeId: string;
22
22
  identityProvider: (
23
- ipc: IdentityProviderConfig
24
- ) =>
25
- | import("@smithy/types").IdentityProvider<
26
- import("@smithy/types").Identity
27
- >
28
- | undefined;
23
+ ipc: IdentityProviderConfig,
24
+ ) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
29
25
  signer: AwsSdkSigV4Signer;
30
26
  }
31
27
  | {
32
28
  schemeId: string;
33
29
  identityProvider: (
34
- ipc: IdentityProviderConfig
35
- ) =>
36
- | import("@smithy/types").IdentityProvider<
37
- import("@smithy/types").Identity
38
- >
39
- | undefined;
30
+ ipc: IdentityProviderConfig,
31
+ ) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
40
32
  signer: HttpBearerAuthSigner;
41
33
  }
42
34
  )[];
@@ -7,5 +7,5 @@ export interface RuntimeExtensionsConfig {
7
7
  }
8
8
  export declare const resolveRuntimeExtensions: (
9
9
  runtimeConfig: any,
10
- extensions: RuntimeExtension[]
10
+ extensions: RuntimeExtension[],
11
11
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,38 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-runtime",
3
+ "version": "3.1088.0",
3
4
  "description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.1087.0",
5
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime",
6
+ "license": "Apache-2.0",
7
+ "author": {
8
+ "name": "AWS SDK for JavaScript Team",
9
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
14
+ "directory": "clients/client-bedrock-runtime"
15
+ },
16
+ "files": [
17
+ "dist-*/**"
18
+ ],
19
+ "sideEffects": false,
20
+ "main": "./dist-cjs/index.js",
21
+ "module": "./dist-es/index.js",
22
+ "browser": {
23
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
24
+ },
25
+ "types": "./dist-types/index.d.ts",
26
+ "typesVersions": {
27
+ "<4.5": {
28
+ "dist-types/*": [
29
+ "dist-types/ts3.4/*"
30
+ ]
31
+ }
32
+ },
33
+ "react-native": {
34
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
35
+ },
5
36
  "scripts": {
6
37
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
38
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -22,26 +53,22 @@
22
53
  "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.e2e.mts",
23
54
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
24
55
  },
25
- "main": "./dist-cjs/index.js",
26
- "types": "./dist-types/index.d.ts",
27
- "module": "./dist-es/index.js",
28
- "sideEffects": false,
29
56
  "dependencies": {
30
- "@aws-sdk/core": "^3.975.2",
31
- "@aws-sdk/credential-provider-node": "^3.972.68",
32
- "@aws-sdk/eventstream-handler-node": "^3.972.27",
33
- "@aws-sdk/middleware-eventstream": "^3.972.23",
34
- "@aws-sdk/middleware-websocket": "^3.972.40",
35
- "@aws-sdk/token-providers": "3.1087.0",
36
- "@aws-sdk/types": "^3.974.1",
37
- "@smithy/core": "^3.29.3",
38
- "@smithy/fetch-http-handler": "^5.6.5",
39
- "@smithy/node-http-handler": "^4.9.5",
57
+ "@aws-sdk/core": "^3.975.3",
58
+ "@aws-sdk/credential-provider-node": "^3.972.69",
59
+ "@aws-sdk/eventstream-handler-node": "^3.972.28",
60
+ "@aws-sdk/middleware-eventstream": "^3.972.24",
61
+ "@aws-sdk/middleware-websocket": "^3.972.41",
62
+ "@aws-sdk/token-providers": "3.1088.0",
63
+ "@aws-sdk/types": "^3.974.2",
64
+ "@smithy/core": "^3.29.4",
65
+ "@smithy/fetch-http-handler": "^5.6.6",
66
+ "@smithy/node-http-handler": "^4.9.6",
40
67
  "@smithy/types": "^4.16.1",
41
68
  "tslib": "^2.6.2"
42
69
  },
43
70
  "devDependencies": {
44
- "@smithy/snapshot-testing": "^2.2.8",
71
+ "@smithy/snapshot-testing": "^2.2.9",
45
72
  "@tsconfig/node20": "20.1.8",
46
73
  "@types/node": "^20.14.8",
47
74
  "concurrently": "7.0.0",
@@ -52,32 +79,5 @@
52
79
  },
53
80
  "engines": {
54
81
  "node": ">=20.0.0"
55
- },
56
- "typesVersions": {
57
- "<4.5": {
58
- "dist-types/*": [
59
- "dist-types/ts3.4/*"
60
- ]
61
- }
62
- },
63
- "files": [
64
- "dist-*/**"
65
- ],
66
- "author": {
67
- "name": "AWS SDK for JavaScript Team",
68
- "url": "https://aws.amazon.com/sdk-for-javascript/"
69
- },
70
- "license": "Apache-2.0",
71
- "browser": {
72
- "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
73
- },
74
- "react-native": {
75
- "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
76
- },
77
- "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime",
78
- "repository": {
79
- "type": "git",
80
- "url": "https://github.com/aws/aws-sdk-js-v3.git",
81
- "directory": "clients/client-bedrock-runtime"
82
82
  }
83
83
  }