@aws-sdk/client-bedrock-agent-runtime 3.1110.0 → 3.1112.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 (52) hide show
  1. package/README.md +15 -1
  2. package/dist-cjs/index.js +302 -85
  3. package/dist-es/BedrockAgentRuntime.js +4 -0
  4. package/dist-es/commands/CheckIngestedDocumentAclCommand.js +4 -0
  5. package/dist-es/commands/GetIngestedDocumentAclCommand.js +4 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +26 -0
  8. package/dist-es/schemas/schemas_0.js +243 -84
  9. package/dist-types/BedrockAgentRuntime.d.ts +15 -1
  10. package/dist-types/BedrockAgentRuntimeClient.d.ts +5 -3
  11. package/dist-types/commands/AgenticRetrieveStreamCommand.d.ts +44 -2
  12. package/dist-types/commands/CheckIngestedDocumentAclCommand.d.ts +91 -0
  13. package/dist-types/commands/CreateInvocationCommand.d.ts +1 -1
  14. package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteSessionCommand.d.ts +1 -1
  16. package/dist-types/commands/EndSessionCommand.d.ts +1 -1
  17. package/dist-types/commands/GetIngestedDocumentAclCommand.d.ts +129 -0
  18. package/dist-types/commands/GetSessionCommand.d.ts +1 -1
  19. package/dist-types/commands/InvokeAgentCommand.d.ts +1 -1
  20. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +1 -2
  21. package/dist-types/commands/RetrieveCommand.d.ts +1 -2
  22. package/dist-types/commands/index.d.ts +2 -0
  23. package/dist-types/index.d.ts +1 -1
  24. package/dist-types/models/enums.d.ts +100 -0
  25. package/dist-types/models/models_0.d.ts +454 -607
  26. package/dist-types/models/models_1.d.ts +582 -6
  27. package/dist-types/runtimeConfig.browser.d.ts +39 -39
  28. package/dist-types/runtimeConfig.d.ts +36 -36
  29. package/dist-types/runtimeConfig.native.d.ts +38 -38
  30. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  31. package/dist-types/schemas/schemas_0.d.ts +19 -0
  32. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +34 -0
  33. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +12 -0
  34. package/dist-types/ts3.4/commands/CheckIngestedDocumentAclCommand.d.ts +42 -0
  35. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/GetIngestedDocumentAclCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +4 -2
  42. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +1 -2
  43. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  44. package/dist-types/ts3.4/models/enums.d.ts +34 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +155 -302
  46. package/dist-types/ts3.4/models/models_1.d.ts +320 -1
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +55 -57
  48. package/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  49. package/dist-types/ts3.4/runtimeConfig.native.d.ts +59 -61
  50. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  51. package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
  52. package/package.json +5 -5
@@ -1,18 +1,35 @@
1
+ import { DocumentType as __DocumentType } from "@smithy/types";
1
2
  import {
2
3
  AgentCollaboration,
4
+ GuadrailAction,
3
5
  ImageFormat,
6
+ InputImageFormat,
7
+ KnowledgeBaseQueryType,
4
8
  OrchestrationType,
5
9
  RerankingModelType,
6
10
  RetrieveAndGenerateType,
7
11
  SearchType,
8
12
  SessionStatus,
9
13
  } from "./enums";
14
+ import {
15
+ AccessDeniedException,
16
+ BadGatewayException,
17
+ ConflictException,
18
+ DependencyFailedException,
19
+ InternalServerException,
20
+ ResourceNotFoundException,
21
+ ServiceQuotaExceededException,
22
+ ThrottlingException,
23
+ ValidationException,
24
+ } from "./errors";
10
25
  import {
11
26
  AgentActionGroup,
12
27
  AgenticRetrieveConfiguration,
28
+ AgenticRetrieveMemoryConfiguration,
13
29
  AgenticRetrieveMessage,
14
30
  AgenticRetrievePolicyConfiguration,
15
31
  BedrockModelConfigurations,
32
+ CitationEvent,
16
33
  CollaboratorConfiguration,
17
34
  ConversationHistory,
18
35
  CustomOrchestration,
@@ -21,22 +38,323 @@ import {
21
38
  GenerationConfiguration,
22
39
  GuardrailConfiguration,
23
40
  GuardrailConfigurationWithArn,
41
+ GuardrailEvent,
24
42
  ImplicitFilterConfiguration,
25
43
  InlineBedrockModelConfigurations,
26
44
  InlineSessionState,
27
45
  InputFile,
28
46
  InvocationResultMember,
29
- KnowledgeBaseQuery,
30
47
  ManagedSearchRerankingConfiguration,
31
48
  OrchestrationConfiguration,
32
49
  PromptCreationConfigurations,
33
50
  PromptOverrideConfiguration,
51
+ RetrievalResultContent,
52
+ RetrievalResultLocation,
34
53
  RetrieveAndGenerateInput,
35
54
  RetrieveAndGenerateSessionConfiguration,
36
55
  StreamingConfigurations,
37
56
  UserContext,
38
57
  VectorSearchRerankingConfiguration,
39
58
  } from "./models_0";
59
+ export interface RetrieveAndGenerateOutputEvent {
60
+ text: string | undefined;
61
+ }
62
+ export type RetrieveAndGenerateStreamResponseOutput =
63
+ | RetrieveAndGenerateStreamResponseOutput.AccessDeniedExceptionMember
64
+ | RetrieveAndGenerateStreamResponseOutput.BadGatewayExceptionMember
65
+ | RetrieveAndGenerateStreamResponseOutput.CitationMember
66
+ | RetrieveAndGenerateStreamResponseOutput.ConflictExceptionMember
67
+ | RetrieveAndGenerateStreamResponseOutput.DependencyFailedExceptionMember
68
+ | RetrieveAndGenerateStreamResponseOutput.GuardrailMember
69
+ | RetrieveAndGenerateStreamResponseOutput.InternalServerExceptionMember
70
+ | RetrieveAndGenerateStreamResponseOutput.OutputMember
71
+ | RetrieveAndGenerateStreamResponseOutput.ResourceNotFoundExceptionMember
72
+ | RetrieveAndGenerateStreamResponseOutput.ServiceQuotaExceededExceptionMember
73
+ | RetrieveAndGenerateStreamResponseOutput.ThrottlingExceptionMember
74
+ | RetrieveAndGenerateStreamResponseOutput.ValidationExceptionMember
75
+ | RetrieveAndGenerateStreamResponseOutput.$UnknownMember;
76
+ export declare namespace RetrieveAndGenerateStreamResponseOutput {
77
+ interface OutputMember {
78
+ output: RetrieveAndGenerateOutputEvent;
79
+ citation?: never;
80
+ guardrail?: never;
81
+ internalServerException?: never;
82
+ validationException?: never;
83
+ resourceNotFoundException?: never;
84
+ serviceQuotaExceededException?: never;
85
+ throttlingException?: never;
86
+ accessDeniedException?: never;
87
+ conflictException?: never;
88
+ dependencyFailedException?: never;
89
+ badGatewayException?: never;
90
+ $unknown?: never;
91
+ }
92
+ interface CitationMember {
93
+ output?: never;
94
+ citation: CitationEvent;
95
+ guardrail?: never;
96
+ internalServerException?: never;
97
+ validationException?: never;
98
+ resourceNotFoundException?: never;
99
+ serviceQuotaExceededException?: never;
100
+ throttlingException?: never;
101
+ accessDeniedException?: never;
102
+ conflictException?: never;
103
+ dependencyFailedException?: never;
104
+ badGatewayException?: never;
105
+ $unknown?: never;
106
+ }
107
+ interface GuardrailMember {
108
+ output?: never;
109
+ citation?: never;
110
+ guardrail: GuardrailEvent;
111
+ internalServerException?: never;
112
+ validationException?: never;
113
+ resourceNotFoundException?: never;
114
+ serviceQuotaExceededException?: never;
115
+ throttlingException?: never;
116
+ accessDeniedException?: never;
117
+ conflictException?: never;
118
+ dependencyFailedException?: never;
119
+ badGatewayException?: never;
120
+ $unknown?: never;
121
+ }
122
+ interface InternalServerExceptionMember {
123
+ output?: never;
124
+ citation?: never;
125
+ guardrail?: never;
126
+ internalServerException: InternalServerException;
127
+ validationException?: never;
128
+ resourceNotFoundException?: never;
129
+ serviceQuotaExceededException?: never;
130
+ throttlingException?: never;
131
+ accessDeniedException?: never;
132
+ conflictException?: never;
133
+ dependencyFailedException?: never;
134
+ badGatewayException?: never;
135
+ $unknown?: never;
136
+ }
137
+ interface ValidationExceptionMember {
138
+ output?: never;
139
+ citation?: never;
140
+ guardrail?: never;
141
+ internalServerException?: never;
142
+ validationException: ValidationException;
143
+ resourceNotFoundException?: never;
144
+ serviceQuotaExceededException?: never;
145
+ throttlingException?: never;
146
+ accessDeniedException?: never;
147
+ conflictException?: never;
148
+ dependencyFailedException?: never;
149
+ badGatewayException?: never;
150
+ $unknown?: never;
151
+ }
152
+ interface ResourceNotFoundExceptionMember {
153
+ output?: never;
154
+ citation?: never;
155
+ guardrail?: never;
156
+ internalServerException?: never;
157
+ validationException?: never;
158
+ resourceNotFoundException: ResourceNotFoundException;
159
+ serviceQuotaExceededException?: never;
160
+ throttlingException?: never;
161
+ accessDeniedException?: never;
162
+ conflictException?: never;
163
+ dependencyFailedException?: never;
164
+ badGatewayException?: never;
165
+ $unknown?: never;
166
+ }
167
+ interface ServiceQuotaExceededExceptionMember {
168
+ output?: never;
169
+ citation?: never;
170
+ guardrail?: never;
171
+ internalServerException?: never;
172
+ validationException?: never;
173
+ resourceNotFoundException?: never;
174
+ serviceQuotaExceededException: ServiceQuotaExceededException;
175
+ throttlingException?: never;
176
+ accessDeniedException?: never;
177
+ conflictException?: never;
178
+ dependencyFailedException?: never;
179
+ badGatewayException?: never;
180
+ $unknown?: never;
181
+ }
182
+ interface ThrottlingExceptionMember {
183
+ output?: never;
184
+ citation?: never;
185
+ guardrail?: never;
186
+ internalServerException?: never;
187
+ validationException?: never;
188
+ resourceNotFoundException?: never;
189
+ serviceQuotaExceededException?: never;
190
+ throttlingException: ThrottlingException;
191
+ accessDeniedException?: never;
192
+ conflictException?: never;
193
+ dependencyFailedException?: never;
194
+ badGatewayException?: never;
195
+ $unknown?: never;
196
+ }
197
+ interface AccessDeniedExceptionMember {
198
+ output?: never;
199
+ citation?: never;
200
+ guardrail?: never;
201
+ internalServerException?: never;
202
+ validationException?: never;
203
+ resourceNotFoundException?: never;
204
+ serviceQuotaExceededException?: never;
205
+ throttlingException?: never;
206
+ accessDeniedException: AccessDeniedException;
207
+ conflictException?: never;
208
+ dependencyFailedException?: never;
209
+ badGatewayException?: never;
210
+ $unknown?: never;
211
+ }
212
+ interface ConflictExceptionMember {
213
+ output?: never;
214
+ citation?: never;
215
+ guardrail?: never;
216
+ internalServerException?: never;
217
+ validationException?: never;
218
+ resourceNotFoundException?: never;
219
+ serviceQuotaExceededException?: never;
220
+ throttlingException?: never;
221
+ accessDeniedException?: never;
222
+ conflictException: ConflictException;
223
+ dependencyFailedException?: never;
224
+ badGatewayException?: never;
225
+ $unknown?: never;
226
+ }
227
+ interface DependencyFailedExceptionMember {
228
+ output?: never;
229
+ citation?: never;
230
+ guardrail?: never;
231
+ internalServerException?: never;
232
+ validationException?: never;
233
+ resourceNotFoundException?: never;
234
+ serviceQuotaExceededException?: never;
235
+ throttlingException?: never;
236
+ accessDeniedException?: never;
237
+ conflictException?: never;
238
+ dependencyFailedException: DependencyFailedException;
239
+ badGatewayException?: never;
240
+ $unknown?: never;
241
+ }
242
+ interface BadGatewayExceptionMember {
243
+ output?: never;
244
+ citation?: never;
245
+ guardrail?: never;
246
+ internalServerException?: never;
247
+ validationException?: never;
248
+ resourceNotFoundException?: never;
249
+ serviceQuotaExceededException?: never;
250
+ throttlingException?: never;
251
+ accessDeniedException?: never;
252
+ conflictException?: never;
253
+ dependencyFailedException?: never;
254
+ badGatewayException: BadGatewayException;
255
+ $unknown?: never;
256
+ }
257
+ interface $UnknownMember {
258
+ output?: never;
259
+ citation?: never;
260
+ guardrail?: never;
261
+ internalServerException?: never;
262
+ validationException?: never;
263
+ resourceNotFoundException?: never;
264
+ serviceQuotaExceededException?: never;
265
+ throttlingException?: never;
266
+ accessDeniedException?: never;
267
+ conflictException?: never;
268
+ dependencyFailedException?: never;
269
+ badGatewayException?: never;
270
+ $unknown: [string, any];
271
+ }
272
+ interface Visitor<T> {
273
+ output: (value: RetrieveAndGenerateOutputEvent) => T;
274
+ citation: (value: CitationEvent) => T;
275
+ guardrail: (value: GuardrailEvent) => T;
276
+ internalServerException: (value: InternalServerException) => T;
277
+ validationException: (value: ValidationException) => T;
278
+ resourceNotFoundException: (value: ResourceNotFoundException) => T;
279
+ serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
280
+ throttlingException: (value: ThrottlingException) => T;
281
+ accessDeniedException: (value: AccessDeniedException) => T;
282
+ conflictException: (value: ConflictException) => T;
283
+ dependencyFailedException: (value: DependencyFailedException) => T;
284
+ badGatewayException: (value: BadGatewayException) => T;
285
+ _: (name: string, value: any) => T;
286
+ }
287
+ }
288
+ export interface RetrieveAndGenerateStreamResponse {
289
+ stream: AsyncIterable<RetrieveAndGenerateStreamResponseOutput> | undefined;
290
+ sessionId: string | undefined;
291
+ }
292
+ export interface InputImage {
293
+ format: InputImageFormat | undefined;
294
+ inlineContent: Uint8Array | undefined;
295
+ }
296
+ export interface KnowledgeBaseQuery {
297
+ type?: KnowledgeBaseQueryType | undefined;
298
+ text?: string | undefined;
299
+ image?: InputImage | undefined;
300
+ }
301
+ export interface KnowledgeBaseRetrievalResult {
302
+ content: RetrievalResultContent | undefined;
303
+ location?: RetrievalResultLocation | undefined;
304
+ score?: number | undefined;
305
+ metadata?: Record<string, __DocumentType> | undefined;
306
+ documentId?: string | undefined;
307
+ }
308
+ export interface RetrieveResponse {
309
+ retrievalResults: KnowledgeBaseRetrievalResult[] | undefined;
310
+ guardrailAction?: GuadrailAction | undefined;
311
+ nextToken?: string | undefined;
312
+ }
313
+ export interface CreateSessionRequest {
314
+ sessionMetadata?: Record<string, string> | undefined;
315
+ encryptionKeyArn?: string | undefined;
316
+ tags?: Record<string, string> | undefined;
317
+ }
318
+ export interface CreateSessionResponse {
319
+ sessionId: string | undefined;
320
+ sessionArn: string | undefined;
321
+ sessionStatus: SessionStatus | undefined;
322
+ createdAt: Date | undefined;
323
+ }
324
+ export interface DeleteSessionRequest {
325
+ sessionIdentifier: string | undefined;
326
+ }
327
+ export interface DeleteSessionResponse {}
328
+ export interface EndSessionRequest {
329
+ sessionIdentifier: string | undefined;
330
+ }
331
+ export interface EndSessionResponse {
332
+ sessionId: string | undefined;
333
+ sessionArn: string | undefined;
334
+ sessionStatus: SessionStatus | undefined;
335
+ }
336
+ export interface GetSessionRequest {
337
+ sessionIdentifier: string | undefined;
338
+ }
339
+ export interface GetSessionResponse {
340
+ sessionId: string | undefined;
341
+ sessionArn: string | undefined;
342
+ sessionStatus: SessionStatus | undefined;
343
+ createdAt: Date | undefined;
344
+ lastUpdatedAt: Date | undefined;
345
+ sessionMetadata?: Record<string, string> | undefined;
346
+ encryptionKeyArn?: string | undefined;
347
+ }
348
+ export interface CreateInvocationRequest {
349
+ invocationId?: string | undefined;
350
+ description?: string | undefined;
351
+ sessionIdentifier: string | undefined;
352
+ }
353
+ export interface CreateInvocationResponse {
354
+ sessionId: string | undefined;
355
+ invocationId: string | undefined;
356
+ createdAt: Date | undefined;
357
+ }
40
358
  export interface ListInvocationsRequest {
41
359
  nextToken?: string | undefined;
42
360
  maxResults?: number | undefined;
@@ -516,6 +834,7 @@ export interface AgenticRetrieveStreamRequest {
516
834
  policyConfiguration?: AgenticRetrievePolicyConfiguration | undefined;
517
835
  nextToken?: string | undefined;
518
836
  userContext?: UserContext | undefined;
837
+ memoryConfiguration?: AgenticRetrieveMemoryConfiguration | undefined;
519
838
  generateResponse?: boolean | undefined;
520
839
  }
521
840
  export interface KnowledgeBaseRetrievalConfiguration {
@@ -1,82 +1,30 @@
1
1
  import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
2
  import { BedrockAgentRuntimeClientConfig } from "./BedrockAgentRuntimeClient";
3
3
  export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig) => {
4
- runtime: string;
5
- defaultsMode: import("@smithy/types").Provider<
6
- import("@smithy/core/client").ResolvedDefaultsMode
7
- >;
8
- bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider:
10
- | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
- | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
- defaultUserAgentProvider: (
13
- config?: import("@aws-sdk/core/client").PreviouslyResolved,
14
- ) => Promise<import("@smithy/types").UserAgent>;
15
- eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
16
- maxAttempts: number | import("@smithy/types").Provider<number>;
17
- region: string | import("@smithy/types").Provider<any>;
18
- requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
19
- retryMode: string | import("@smithy/types").Provider<string>;
20
- streamCollector: (
21
- stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
22
- ) => Promise<Uint8Array>;
23
- useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
24
- (boolean | import("@smithy/types").Provider<boolean | undefined>);
25
- useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
26
- (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
- cacheMiddleware?: boolean | undefined;
28
- protocol:
29
- | import("@smithy/types").ClientProtocol<any, any>
30
- | import("@smithy/types").ClientProtocolCtor<any, any>
31
- | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
32
- protocolSettings: {
33
- defaultNamespace?: string;
34
- [setting: string]: unknown;
35
- };
36
- apiVersion: string;
37
- sha256: import("@smithy/types").HashConstructor;
38
- urlParser: import("@smithy/types").UrlParser;
39
- base64Decoder: import("@smithy/types").Decoder;
40
- base64Encoder: (_input: Uint8Array | string) => string;
41
- utf8Decoder: import("@smithy/types").Decoder;
42
- utf8Encoder: (input: Uint8Array | string) => string;
43
- disableHostPrefix: boolean;
44
- serviceId: string;
45
- profile?: string;
46
- logger: import("@smithy/types").Logger;
47
- extensions: import("./runtimeExtensions").RuntimeExtension[];
4
+ cacheMiddleware?: boolean;
48
5
  customUserAgent?: string | import("@smithy/types").UserAgent;
49
6
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
50
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
51
7
  endpoint?:
52
8
  | ((
53
9
  | string
54
10
  | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
11
  | import("@smithy/types").EndpointV2
12
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
57
13
  | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
58
14
  ) &
59
15
  (
60
16
  | string
61
- | import("@smithy/types").Provider<string>
62
17
  | import("@smithy/types").Endpoint
63
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
64
18
  | import("@smithy/types").EndpointV2
19
+ | import("@smithy/types").Provider<string>
20
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
65
21
  | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
66
22
  ))
67
23
  | undefined;
68
- endpointProvider: (
69
- endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
70
- context?: {
71
- logger?: import("@smithy/types").Logger;
72
- },
73
- ) => import("@smithy/types").EndpointV2;
74
24
  tls?: boolean;
75
25
  ignoreConfiguredEndpointUrls?: boolean;
76
26
  serviceConfiguredEndpoint?: never;
77
- authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
78
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
79
- httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockAgentRuntimeHttpAuthSchemeProvider;
27
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
80
28
  credentials?:
81
29
  | import("@smithy/types").AwsCredentialIdentity
82
30
  | import("@smithy/types").AwsCredentialIdentityProvider;
@@ -93,4 +41,54 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
93
41
  import("@smithy/signature-v4").SignatureV4CryptoInit,
94
42
  ) => import("@smithy/types").RequestSigner;
95
43
  disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
44
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
+ apiVersion: string;
46
+ base64Decoder: import("@smithy/types").Decoder;
47
+ base64Encoder: (_input: Uint8Array | string) => string;
48
+ disableHostPrefix: boolean;
49
+ endpointProvider: (
50
+ params: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@smithy/types").Logger;
53
+ },
54
+ ) => import("@smithy/types").EndpointV2;
55
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
56
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockAgentRuntimeHttpAuthSchemeProvider;
57
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
58
+ logger: import("@smithy/types").Logger;
59
+ protocol:
60
+ | import("@smithy/types").$ClientProtocol<any, any>
61
+ | import("@smithy/types").$ClientProtocolCtor<any, any>
62
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
63
+ protocolSettings: {
64
+ [setting: string]: unknown;
65
+ defaultNamespace?: string;
66
+ };
67
+ serviceId: string;
68
+ sha256: import("@smithy/types").HashConstructor;
69
+ urlParser: import("@smithy/types").UrlParser;
70
+ utf8Decoder: import("@smithy/types").Decoder;
71
+ utf8Encoder: (input: Uint8Array | string) => string;
72
+ profile?: string;
73
+ runtime: string;
74
+ defaultsMode: import("@smithy/types").Provider<
75
+ import("@smithy/core/client").ResolvedDefaultsMode
76
+ >;
77
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
78
+ credentialDefaultProvider:
79
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
80
+ | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
81
+ defaultUserAgentProvider: (
82
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
83
+ ) => Promise<import("@smithy/types").UserAgent>;
84
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
85
+ maxAttempts: number | import("@smithy/types").Provider<number>;
86
+ region: string | import("@smithy/types").Provider<any>;
87
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
88
+ retryMode: string | import("@smithy/types").Provider<string>;
89
+ streamCollector: (
90
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
91
+ ) => Promise<Uint8Array>;
92
+ useDualstackEndpoint: boolean | (() => Promise<boolean>);
93
+ useFipsEndpoint: boolean | (() => Promise<boolean>);
96
94
  };
@@ -1,82 +1,29 @@
1
1
  import { NodeHttp2Handler as RequestHandler } from "@smithy/node-http-handler";
2
2
  import { BedrockAgentRuntimeClientConfig } from "./BedrockAgentRuntimeClient";
3
3
  export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig) => {
4
- runtime: string;
5
- defaultsMode: import("@smithy/types").Provider<
6
- import("@smithy/core/client").ResolvedDefaultsMode
7
- >;
8
- authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
9
- bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider:
11
- | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
12
- | ((
13
- init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
14
- ) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
15
- defaultUserAgentProvider: (
16
- config?: import("@aws-sdk/core/client").PreviouslyResolved,
17
- ) => Promise<import("@smithy/types").UserAgent>;
18
- eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
19
- maxAttempts: number | import("@smithy/types").Provider<number>;
20
- region: string | import("@smithy/types").Provider<string>;
21
- requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
22
- retryMode: string | import("@smithy/types").Provider<string>;
23
- streamCollector: (
24
- stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
25
- ) => Promise<Uint8Array>;
26
- useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
- useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
- userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
29
- cacheMiddleware?: boolean | undefined;
30
- protocol:
31
- | import("@smithy/types").ClientProtocol<any, any>
32
- | import("@smithy/types").ClientProtocolCtor<any, any>
33
- | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
34
- protocolSettings: {
35
- defaultNamespace?: string;
36
- [setting: string]: unknown;
37
- };
38
- apiVersion: string;
39
- sha256: import("@smithy/types").HashConstructor;
40
- urlParser: import("@smithy/types").UrlParser;
41
- base64Decoder: import("@smithy/types").Decoder;
42
- base64Encoder: (_input: Uint8Array | string) => string;
43
- utf8Decoder: import("@smithy/types").Decoder;
44
- utf8Encoder: (input: Uint8Array | string) => string;
45
- disableHostPrefix: boolean;
46
- serviceId: string;
47
- profile?: string;
48
- logger: import("@smithy/types").Logger;
49
- extensions: import("./runtimeExtensions").RuntimeExtension[];
4
+ cacheMiddleware?: boolean;
50
5
  customUserAgent?: string | import("@smithy/types").UserAgent;
51
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
52
6
  endpoint?:
53
7
  | ((
54
8
  | string
55
9
  | import("@smithy/types").Endpoint
56
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
57
10
  | import("@smithy/types").EndpointV2
11
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
58
12
  | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
59
13
  ) &
60
14
  (
61
15
  | string
62
- | import("@smithy/types").Provider<string>
63
16
  | import("@smithy/types").Endpoint
64
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
65
17
  | import("@smithy/types").EndpointV2
18
+ | import("@smithy/types").Provider<string>
19
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
66
20
  | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
67
21
  ))
68
22
  | undefined;
69
- endpointProvider: (
70
- endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
71
- context?: {
72
- logger?: import("@smithy/types").Logger;
73
- },
74
- ) => import("@smithy/types").EndpointV2;
75
23
  tls?: boolean;
76
24
  ignoreConfiguredEndpointUrls?: boolean;
77
25
  serviceConfiguredEndpoint?: never;
78
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
79
- httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockAgentRuntimeHttpAuthSchemeProvider;
26
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
80
27
  credentials?:
81
28
  | import("@smithy/types").AwsCredentialIdentity
82
29
  | import("@smithy/types").AwsCredentialIdentityProvider;
@@ -93,4 +40,57 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
93
40
  import("@smithy/signature-v4").SignatureV4CryptoInit,
94
41
  ) => import("@smithy/types").RequestSigner;
95
42
  disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
43
+ apiVersion: string;
44
+ base64Decoder: import("@smithy/types").Decoder;
45
+ base64Encoder: (_input: Uint8Array | string) => string;
46
+ disableHostPrefix: boolean;
47
+ endpointProvider: (
48
+ params: import("./endpoint/EndpointParameters").EndpointParameters,
49
+ context?: {
50
+ logger?: import("@smithy/types").Logger;
51
+ },
52
+ ) => import("@smithy/types").EndpointV2;
53
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
54
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockAgentRuntimeHttpAuthSchemeProvider;
55
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
56
+ logger: import("@smithy/types").Logger;
57
+ protocol:
58
+ | import("@smithy/types").$ClientProtocol<any, any>
59
+ | import("@smithy/types").$ClientProtocolCtor<any, any>
60
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
61
+ protocolSettings: {
62
+ [setting: string]: unknown;
63
+ defaultNamespace?: string;
64
+ };
65
+ serviceId: string;
66
+ sha256: import("@smithy/types").HashConstructor;
67
+ urlParser: import("@smithy/types").UrlParser;
68
+ utf8Decoder: import("@smithy/types").Decoder;
69
+ utf8Encoder: (input: Uint8Array | string) => string;
70
+ runtime: string;
71
+ defaultsMode: import("@smithy/types").Provider<
72
+ import("@smithy/core/client").ResolvedDefaultsMode
73
+ >;
74
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
75
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
76
+ credentialDefaultProvider:
77
+ | ((
78
+ init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
79
+ ) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
80
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
81
+ defaultUserAgentProvider: (
82
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
83
+ ) => Promise<import("@smithy/types").UserAgent>;
84
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
85
+ maxAttempts: number | import("@smithy/types").Provider<number>;
86
+ region: string | import("@smithy/types").Provider<string>;
87
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
88
+ retryMode: string | import("@smithy/types").Provider<string>;
89
+ streamCollector: (
90
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
91
+ ) => Promise<Uint8Array>;
92
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
93
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
94
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
95
+ profile?: string;
96
96
  };