@aws-sdk/client-bedrock-agentcore 3.1164.0 → 3.1166.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.
@@ -11,6 +11,7 @@ export declare var RetryableConflictException$: StaticErrorSchema;
11
11
  export declare var RuntimeClientError$: StaticErrorSchema;
12
12
  export declare var ServiceException$: StaticErrorSchema;
13
13
  export declare var ServiceQuotaExceededException$: StaticErrorSchema;
14
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
14
15
  export declare var SubscriptionRequiredException$: StaticErrorSchema;
15
16
  export declare var ThrottledException$: StaticErrorSchema;
16
17
  export declare var ThrottlingException$: StaticErrorSchema;
@@ -99,6 +100,7 @@ export declare var DeletePaymentSessionResponse$: StaticStructureSchema;
99
100
  export declare var DeleteRecommendationRequest$: StaticStructureSchema;
100
101
  export declare var DeleteRecommendationResponse$: StaticStructureSchema;
101
102
  export declare var Descriptors$: StaticStructureSchema;
103
+ export declare var DomainFilter$: StaticStructureSchema;
102
104
  export declare var EfsConfiguration$: StaticStructureSchema;
103
105
  export declare var EmbeddedCryptoWallet$: StaticStructureSchema;
104
106
  export declare var EvaluateRequest$: StaticStructureSchema;
@@ -213,6 +215,8 @@ export declare var InvokeCodeInterpreterRequest$: StaticStructureSchema;
213
215
  export declare var InvokeCodeInterpreterResponse$: StaticStructureSchema;
214
216
  export declare var InvokeHarnessRequest$: StaticStructureSchema;
215
217
  export declare var InvokeHarnessResponse$: StaticStructureSchema;
218
+ export declare var InvokeWebSearchInput$: StaticStructureSchema;
219
+ export declare var InvokeWebSearchOutput$: StaticStructureSchema;
216
220
  export declare var KeyPressArguments$: StaticStructureSchema;
217
221
  export declare var KeyPressResult$: StaticStructureSchema;
218
222
  export declare var KeyShortcutArguments$: StaticStructureSchema;
@@ -280,6 +284,7 @@ export declare var ProcessPaymentRequest$: StaticStructureSchema;
280
284
  export declare var ProcessPaymentResponse$: StaticStructureSchema;
281
285
  export declare var ProxyBypass$: StaticStructureSchema;
282
286
  export declare var ProxyConfiguration$: StaticStructureSchema;
287
+ export declare var PublishedDateFilter$: StaticStructureSchema;
283
288
  export declare var RecommendationEvaluationConfig$: StaticStructureSchema;
284
289
  export declare var RecommendationEvaluatorReference$: StaticStructureSchema;
285
290
  export declare var RecommendationResultConfigurationBundle$: StaticStructureSchema;
@@ -359,6 +364,8 @@ export declare var Variant$: StaticStructureSchema;
359
364
  export declare var VariantConfiguration$: StaticStructureSchema;
360
365
  export declare var VariantResult$: StaticStructureSchema;
361
366
  export declare var ViewPort$: StaticStructureSchema;
367
+ export declare var WebSearchFilters$: StaticStructureSchema;
368
+ export declare var WebSearchResult$: StaticStructureSchema;
362
369
  export declare var ABTestEvaluationConfig$: StaticUnionSchema;
363
370
  export declare var AgentTracesConfig$: StaticUnionSchema;
364
371
  export declare var BrowserAction$: StaticUnionSchema;
@@ -460,6 +467,7 @@ export declare var InvokeAgentRuntimeCommand$: StaticOperationSchema;
460
467
  export declare var InvokeBrowser$: StaticOperationSchema;
461
468
  export declare var InvokeCodeInterpreter$: StaticOperationSchema;
462
469
  export declare var InvokeHarness$: StaticOperationSchema;
470
+ export declare var InvokeWebSearch$: StaticOperationSchema;
463
471
  export declare var ListABTests$: StaticOperationSchema;
464
472
  export declare var ListActors$: StaticOperationSchema;
465
473
  export declare var ListBatchEvaluations$: StaticOperationSchema;
@@ -147,6 +147,10 @@ import {
147
147
  InvokeHarnessCommandInput,
148
148
  InvokeHarnessCommandOutput,
149
149
  } from "./commands/InvokeHarnessCommand";
150
+ import {
151
+ InvokeWebSearchCommandInput,
152
+ InvokeWebSearchCommandOutput,
153
+ } from "./commands/InvokeWebSearchCommand";
150
154
  import { ListABTestsCommandInput, ListABTestsCommandOutput } from "./commands/ListABTestsCommand";
151
155
  import { ListActorsCommandInput, ListActorsCommandOutput } from "./commands/ListActorsCommand";
152
156
  import {
@@ -764,6 +768,19 @@ export interface BedrockAgentCore {
764
768
  options: BedrockAgentCoreRequestOptions,
765
769
  cb: (err: any, data?: InvokeHarnessCommandOutput) => void,
766
770
  ): void;
771
+ invokeWebSearch(
772
+ args: InvokeWebSearchCommandInput,
773
+ options?: BedrockAgentCoreRequestOptions,
774
+ ): Promise<InvokeWebSearchCommandOutput>;
775
+ invokeWebSearch(
776
+ args: InvokeWebSearchCommandInput,
777
+ cb: (err: any, data?: InvokeWebSearchCommandOutput) => void,
778
+ ): void;
779
+ invokeWebSearch(
780
+ args: InvokeWebSearchCommandInput,
781
+ options: BedrockAgentCoreRequestOptions,
782
+ cb: (err: any, data?: InvokeWebSearchCommandOutput) => void,
783
+ ): void;
767
784
  listABTests(): Promise<ListABTestsCommandOutput>;
768
785
  listABTests(
769
786
  args: ListABTestsCommandInput,
@@ -181,6 +181,10 @@ import {
181
181
  InvokeHarnessCommandInput,
182
182
  InvokeHarnessCommandOutput,
183
183
  } from "./commands/InvokeHarnessCommand";
184
+ import {
185
+ InvokeWebSearchCommandInput,
186
+ InvokeWebSearchCommandOutput,
187
+ } from "./commands/InvokeWebSearchCommand";
184
188
  import { ListABTestsCommandInput, ListABTestsCommandOutput } from "./commands/ListABTestsCommand";
185
189
  import { ListActorsCommandInput, ListActorsCommandOutput } from "./commands/ListActorsCommand";
186
190
  import {
@@ -328,6 +332,7 @@ export type ServiceInputTypes =
328
332
  | InvokeBrowserCommandInput
329
333
  | InvokeCodeInterpreterCommandInput
330
334
  | InvokeHarnessCommandInput
335
+ | InvokeWebSearchCommandInput
331
336
  | ListABTestsCommandInput
332
337
  | ListActorsCommandInput
333
338
  | ListBatchEvaluationsCommandInput
@@ -396,6 +401,7 @@ export type ServiceOutputTypes =
396
401
  | InvokeBrowserCommandOutput
397
402
  | InvokeCodeInterpreterCommandOutput
398
403
  | InvokeHarnessCommandOutput
404
+ | InvokeWebSearchCommandOutput
399
405
  | ListABTestsCommandOutput
400
406
  | ListActorsCommandOutput
401
407
  | ListBatchEvaluationsCommandOutput
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { InvokeWebSearchInput, InvokeWebSearchOutput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface InvokeWebSearchCommandInput extends InvokeWebSearchInput {}
5
+ export interface InvokeWebSearchCommandOutput extends InvokeWebSearchOutput, __MetadataBearer {}
6
+ declare const InvokeWebSearchCommand_base: {
7
+ new (
8
+ input: InvokeWebSearchCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ InvokeWebSearchCommandInput,
11
+ InvokeWebSearchCommandOutput,
12
+ import("..").BedrockAgentCoreClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: InvokeWebSearchCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ InvokeWebSearchCommandInput,
20
+ InvokeWebSearchCommandOutput,
21
+ import("..").BedrockAgentCoreClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class InvokeWebSearchCommand extends InvokeWebSearchCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: InvokeWebSearchInput;
31
+ output: InvokeWebSearchOutput;
32
+ };
33
+ sdk: {
34
+ input: InvokeWebSearchCommandInput;
35
+ output: InvokeWebSearchCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -38,6 +38,7 @@ export * from "./InvokeAgentRuntimeCommandCommand";
38
38
  export * from "./InvokeBrowserCommand";
39
39
  export * from "./InvokeCodeInterpreterCommand";
40
40
  export * from "./InvokeHarnessCommand";
41
+ export * from "./InvokeWebSearchCommand";
41
42
  export * from "./ListABTestsCommand";
42
43
  export * from "./ListActorsCommand";
43
44
  export * from "./ListBatchEvaluationsCommand";
@@ -71,6 +71,14 @@ export declare class DuplicateIdException extends __BaseException {
71
71
  readonly $fault: "client";
72
72
  constructor(opts: __ExceptionOptionType<DuplicateIdException, __BaseException>);
73
73
  }
74
+ export declare class ServiceUnavailableException extends __BaseException {
75
+ static readonly shapeId: string;
76
+ readonly name: "ServiceUnavailableException";
77
+ readonly $fault: "server";
78
+ $retryable: {};
79
+ retryAfterSeconds?: number | undefined;
80
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
81
+ }
74
82
  export declare class ServiceException extends __BaseException {
75
83
  static readonly shapeId: string;
76
84
  readonly name: "ServiceException";
@@ -36,7 +36,6 @@ import {
36
36
  RecordExpiryAction,
37
37
  ResourceContentType,
38
38
  ResultDestination,
39
- Role,
40
39
  ScreenshotFormat,
41
40
  SessionStatus,
42
41
  TaskStatus,
@@ -3089,6 +3088,33 @@ export declare namespace InvokeHarnessStreamOutput {
3089
3088
  export interface InvokeHarnessResponse {
3090
3089
  stream: AsyncIterable<InvokeHarnessStreamOutput> | undefined;
3091
3090
  }
3091
+ export interface DomainFilter {
3092
+ include?: string[] | undefined;
3093
+ exclude?: string[] | undefined;
3094
+ }
3095
+ export interface PublishedDateFilter {
3096
+ publishedAfter?: Date | undefined;
3097
+ publishedBefore?: Date | undefined;
3098
+ }
3099
+ export interface WebSearchFilters {
3100
+ domainFilter?: DomainFilter | undefined;
3101
+ publishedDateFilter?: PublishedDateFilter | undefined;
3102
+ }
3103
+ export interface InvokeWebSearchInput {
3104
+ webSearchId: string | undefined;
3105
+ searchQuery: string | undefined;
3106
+ maxResults?: number | undefined;
3107
+ filters?: WebSearchFilters | undefined;
3108
+ }
3109
+ export interface WebSearchResult {
3110
+ title?: string | undefined;
3111
+ url?: string | undefined;
3112
+ text: string | undefined;
3113
+ publishedAt?: Date | undefined;
3114
+ }
3115
+ export interface InvokeWebSearchOutput {
3116
+ results: WebSearchResult[] | undefined;
3117
+ }
3092
3118
  export type RecordExpirySpecification =
3093
3119
  | RecordExpirySpecification.ActionMember
3094
3120
  | RecordExpirySpecification.RecordExpiryDurationDaysMember
@@ -3239,80 +3265,3 @@ export interface Branch {
3239
3265
  rootEventId?: string | undefined;
3240
3266
  name: string | undefined;
3241
3267
  }
3242
- export interface ExtractionConfig {
3243
- namespaceVariables?: Record<string, string> | undefined;
3244
- }
3245
- export type MetadataValue = MetadataValue.StringValueMember | MetadataValue.$UnknownMember;
3246
- export declare namespace MetadataValue {
3247
- interface StringValueMember {
3248
- stringValue: string;
3249
- $unknown?: never;
3250
- }
3251
- interface $UnknownMember {
3252
- stringValue?: never;
3253
- $unknown: [string, any];
3254
- }
3255
- interface Visitor<T> {
3256
- stringValue: (value: string) => T;
3257
- _: (name: string, value: any) => T;
3258
- }
3259
- }
3260
- export type Content = Content.TextMember | Content.$UnknownMember;
3261
- export declare namespace Content {
3262
- interface TextMember {
3263
- text: string;
3264
- $unknown?: never;
3265
- }
3266
- interface $UnknownMember {
3267
- text?: never;
3268
- $unknown: [string, any];
3269
- }
3270
- interface Visitor<T> {
3271
- text: (value: string) => T;
3272
- _: (name: string, value: any) => T;
3273
- }
3274
- }
3275
- export interface Conversational {
3276
- content: Content | undefined;
3277
- role: Role | undefined;
3278
- }
3279
- export interface MemoryJsonData {
3280
- content: __DocumentType | undefined;
3281
- }
3282
- export type PayloadType =
3283
- | PayloadType.BlobMember
3284
- | PayloadType.ConversationalMember
3285
- | PayloadType.JsonMember
3286
- | PayloadType.$UnknownMember;
3287
- export declare namespace PayloadType {
3288
- interface ConversationalMember {
3289
- conversational: Conversational;
3290
- blob?: never;
3291
- json?: never;
3292
- $unknown?: never;
3293
- }
3294
- interface BlobMember {
3295
- conversational?: never;
3296
- blob: __DocumentType;
3297
- json?: never;
3298
- $unknown?: never;
3299
- }
3300
- interface JsonMember {
3301
- conversational?: never;
3302
- blob?: never;
3303
- json: MemoryJsonData;
3304
- $unknown?: never;
3305
- }
3306
- interface $UnknownMember {
3307
- conversational?: never;
3308
- blob?: never;
3309
- json?: never;
3310
- $unknown: [string, any];
3311
- }
3312
- interface Visitor<T> {
3313
- conversational: (value: Conversational) => T;
3314
- blob: (value: __DocumentType) => T;
3315
- json: (value: MemoryJsonData) => T;
3316
- _: (name: string, value: any) => T;
3317
- }
3318
- }
@@ -16,20 +16,93 @@ import {
16
16
  PaymentStatus,
17
17
  PaymentType,
18
18
  RegistryRecordStatus,
19
+ Role,
19
20
  } from "./enums";
20
21
  import {
21
22
  A2aDescriptor,
22
23
  ActorSummary,
23
24
  AgentSkillsDescriptor,
24
25
  Branch,
25
- Conversational,
26
- ExtractionConfig,
27
26
  MemoryContent,
28
- MemoryJsonData,
29
27
  MemoryRecordMetadataValue,
30
- MetadataValue,
31
- PayloadType,
32
28
  } from "./models_0";
29
+ export interface ExtractionConfig {
30
+ namespaceVariables?: Record<string, string> | undefined;
31
+ }
32
+ export type MetadataValue = MetadataValue.StringValueMember | MetadataValue.$UnknownMember;
33
+ export declare namespace MetadataValue {
34
+ interface StringValueMember {
35
+ stringValue: string;
36
+ $unknown?: never;
37
+ }
38
+ interface $UnknownMember {
39
+ stringValue?: never;
40
+ $unknown: [string, any];
41
+ }
42
+ interface Visitor<T> {
43
+ stringValue: (value: string) => T;
44
+ _: (name: string, value: any) => T;
45
+ }
46
+ }
47
+ export type Content = Content.TextMember | Content.$UnknownMember;
48
+ export declare namespace Content {
49
+ interface TextMember {
50
+ text: string;
51
+ $unknown?: never;
52
+ }
53
+ interface $UnknownMember {
54
+ text?: never;
55
+ $unknown: [string, any];
56
+ }
57
+ interface Visitor<T> {
58
+ text: (value: string) => T;
59
+ _: (name: string, value: any) => T;
60
+ }
61
+ }
62
+ export interface Conversational {
63
+ content: Content | undefined;
64
+ role: Role | undefined;
65
+ }
66
+ export interface MemoryJsonData {
67
+ content: __DocumentType | undefined;
68
+ }
69
+ export type PayloadType =
70
+ | PayloadType.BlobMember
71
+ | PayloadType.ConversationalMember
72
+ | PayloadType.JsonMember
73
+ | PayloadType.$UnknownMember;
74
+ export declare namespace PayloadType {
75
+ interface ConversationalMember {
76
+ conversational: Conversational;
77
+ blob?: never;
78
+ json?: never;
79
+ $unknown?: never;
80
+ }
81
+ interface BlobMember {
82
+ conversational?: never;
83
+ blob: __DocumentType;
84
+ json?: never;
85
+ $unknown?: never;
86
+ }
87
+ interface JsonMember {
88
+ conversational?: never;
89
+ blob?: never;
90
+ json: MemoryJsonData;
91
+ $unknown?: never;
92
+ }
93
+ interface $UnknownMember {
94
+ conversational?: never;
95
+ blob?: never;
96
+ json?: never;
97
+ $unknown: [string, any];
98
+ }
99
+ interface Visitor<T> {
100
+ conversational: (value: Conversational) => T;
101
+ blob: (value: __DocumentType) => T;
102
+ json: (value: MemoryJsonData) => T;
103
+ _: (name: string, value: any) => T;
104
+ }
105
+ }
33
106
  export interface CreateEventInput {
34
107
  memoryId: string | undefined;
35
108
  actorId: string | undefined;
@@ -16,6 +16,7 @@ export declare var RetryableConflictException$: StaticErrorSchema;
16
16
  export declare var RuntimeClientError$: StaticErrorSchema;
17
17
  export declare var ServiceException$: StaticErrorSchema;
18
18
  export declare var ServiceQuotaExceededException$: StaticErrorSchema;
19
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
19
20
  export declare var SubscriptionRequiredException$: StaticErrorSchema;
20
21
  export declare var ThrottledException$: StaticErrorSchema;
21
22
  export declare var ThrottlingException$: StaticErrorSchema;
@@ -99,6 +100,7 @@ export declare var DeletePaymentSessionResponse$: StaticStructureSchema;
99
100
  export declare var DeleteRecommendationRequest$: StaticStructureSchema;
100
101
  export declare var DeleteRecommendationResponse$: StaticStructureSchema;
101
102
  export declare var Descriptors$: StaticStructureSchema;
103
+ export declare var DomainFilter$: StaticStructureSchema;
102
104
  export declare var EfsConfiguration$: StaticStructureSchema;
103
105
  export declare var EmbeddedCryptoWallet$: StaticStructureSchema;
104
106
  export declare var EvaluateRequest$: StaticStructureSchema;
@@ -213,6 +215,8 @@ export declare var InvokeCodeInterpreterRequest$: StaticStructureSchema;
213
215
  export declare var InvokeCodeInterpreterResponse$: StaticStructureSchema;
214
216
  export declare var InvokeHarnessRequest$: StaticStructureSchema;
215
217
  export declare var InvokeHarnessResponse$: StaticStructureSchema;
218
+ export declare var InvokeWebSearchInput$: StaticStructureSchema;
219
+ export declare var InvokeWebSearchOutput$: StaticStructureSchema;
216
220
  export declare var KeyPressArguments$: StaticStructureSchema;
217
221
  export declare var KeyPressResult$: StaticStructureSchema;
218
222
  export declare var KeyShortcutArguments$: StaticStructureSchema;
@@ -280,6 +284,7 @@ export declare var ProcessPaymentRequest$: StaticStructureSchema;
280
284
  export declare var ProcessPaymentResponse$: StaticStructureSchema;
281
285
  export declare var ProxyBypass$: StaticStructureSchema;
282
286
  export declare var ProxyConfiguration$: StaticStructureSchema;
287
+ export declare var PublishedDateFilter$: StaticStructureSchema;
283
288
  export declare var RecommendationEvaluationConfig$: StaticStructureSchema;
284
289
  export declare var RecommendationEvaluatorReference$: StaticStructureSchema;
285
290
  export declare var RecommendationResultConfigurationBundle$: StaticStructureSchema;
@@ -359,6 +364,8 @@ export declare var Variant$: StaticStructureSchema;
359
364
  export declare var VariantConfiguration$: StaticStructureSchema;
360
365
  export declare var VariantResult$: StaticStructureSchema;
361
366
  export declare var ViewPort$: StaticStructureSchema;
367
+ export declare var WebSearchFilters$: StaticStructureSchema;
368
+ export declare var WebSearchResult$: StaticStructureSchema;
362
369
  export declare var ABTestEvaluationConfig$: StaticUnionSchema;
363
370
  export declare var AgentTracesConfig$: StaticUnionSchema;
364
371
  export declare var BrowserAction$: StaticUnionSchema;
@@ -460,6 +467,7 @@ export declare var InvokeAgentRuntimeCommand$: StaticOperationSchema;
460
467
  export declare var InvokeBrowser$: StaticOperationSchema;
461
468
  export declare var InvokeCodeInterpreter$: StaticOperationSchema;
462
469
  export declare var InvokeHarness$: StaticOperationSchema;
470
+ export declare var InvokeWebSearch$: StaticOperationSchema;
463
471
  export declare var ListABTests$: StaticOperationSchema;
464
472
  export declare var ListActors$: StaticOperationSchema;
465
473
  export declare var ListBatchEvaluations$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agentcore",
3
- "version": "3.1164.0",
3
+ "version": "3.1166.0",
4
4
  "description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agentcore",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.980.1",
50
- "@aws-sdk/credential-provider-node": "^3.972.94",
51
- "@aws-sdk/types": "^3.975.0",
52
- "@smithy/core": "^3.38.0",
53
- "@smithy/fetch-http-handler": "^5.8.0",
54
- "@smithy/node-http-handler": "^4.14.0",
55
- "@smithy/types": "^4.19.0",
49
+ "@aws-sdk/core": "^3.981.0",
50
+ "@aws-sdk/credential-provider-node": "^3.972.96",
51
+ "@aws-sdk/types": "^3.975.1",
52
+ "@smithy/core": "^3.40.0",
53
+ "@smithy/fetch-http-handler": "^5.8.1",
54
+ "@smithy/node-http-handler": "^4.14.2",
55
+ "@smithy/types": "^4.20.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {