@aws-sdk/client-bedrock-agentcore 3.934.0 → 3.935.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.
@@ -1,16 +1,31 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
1
  import {
3
2
  DocumentType as __DocumentType,
4
3
  StreamingBlobTypes,
5
4
  } from "@smithy/types";
6
- import { BedrockAgentCoreServiceException as __BaseException } from "./BedrockAgentCoreServiceException";
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- constructor(
11
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
12
- );
13
- }
5
+ import {
6
+ AutomationStreamStatus,
7
+ BrowserSessionStatus,
8
+ CodeInterpreterSessionStatus,
9
+ ContentBlockType,
10
+ MemoryRecordStatus,
11
+ Oauth2FlowType,
12
+ OperatorType,
13
+ ProgrammingLanguage,
14
+ ResourceContentType,
15
+ Role,
16
+ SessionStatus,
17
+ TaskStatus,
18
+ ToolName,
19
+ } from "./enums";
20
+ import {
21
+ AccessDeniedException,
22
+ ConflictException,
23
+ InternalServerException,
24
+ ResourceNotFoundException,
25
+ ServiceQuotaExceededException,
26
+ ThrottlingException,
27
+ ValidationException,
28
+ } from "./errors";
14
29
  export interface ActorSummary {
15
30
  actorId: string | undefined;
16
31
  }
@@ -24,61 +39,10 @@ export interface GetAgentCardResponse {
24
39
  agentCard: __DocumentType | undefined;
25
40
  statusCode?: number | undefined;
26
41
  }
27
- export declare class InternalServerException extends __BaseException {
28
- readonly name: "InternalServerException";
29
- readonly $fault: "server";
30
- constructor(
31
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
32
- );
33
- }
34
- export declare class ResourceNotFoundException extends __BaseException {
35
- readonly name: "ResourceNotFoundException";
36
- readonly $fault: "client";
37
- constructor(
38
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
39
- );
40
- }
41
- export declare class RuntimeClientError extends __BaseException {
42
- readonly name: "RuntimeClientError";
43
- readonly $fault: "client";
44
- constructor(opts: __ExceptionOptionType<RuntimeClientError, __BaseException>);
45
- }
46
- export declare class ServiceQuotaExceededException extends __BaseException {
47
- readonly name: "ServiceQuotaExceededException";
48
- readonly $fault: "client";
49
- constructor(
50
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
51
- );
52
- }
53
- export declare class ThrottlingException extends __BaseException {
54
- readonly name: "ThrottlingException";
55
- readonly $fault: "client";
56
- constructor(
57
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
58
- );
59
- }
60
42
  export interface ValidationExceptionField {
61
43
  name: string | undefined;
62
44
  message: string | undefined;
63
45
  }
64
- export declare const ValidationExceptionReason: {
65
- readonly CANNOT_PARSE: "CannotParse";
66
- readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
67
- readonly IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException";
68
- readonly RESOURCE_CONFLICT: "ResourceConflict";
69
- readonly ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession";
70
- };
71
- export type ValidationExceptionReason =
72
- (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
73
- export declare class ValidationException extends __BaseException {
74
- readonly name: "ValidationException";
75
- readonly $fault: "client";
76
- reason: ValidationExceptionReason | undefined;
77
- fieldList?: ValidationExceptionField[] | undefined;
78
- constructor(
79
- opts: __ExceptionOptionType<ValidationException, __BaseException>
80
- );
81
- }
82
46
  export interface InvokeAgentRuntimeRequest {
83
47
  contentType?: string | undefined;
84
48
  accept?: string | undefined;
@@ -107,11 +71,6 @@ export interface InvokeAgentRuntimeResponse {
107
71
  response?: StreamingBlobTypes | undefined;
108
72
  statusCode?: number | undefined;
109
73
  }
110
- export declare class ConflictException extends __BaseException {
111
- readonly name: "ConflictException";
112
- readonly $fault: "client";
113
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
114
- }
115
74
  export interface StopRuntimeSessionRequest {
116
75
  runtimeSessionId: string | undefined;
117
76
  agentRuntimeArn: string | undefined;
@@ -122,29 +81,10 @@ export interface StopRuntimeSessionResponse {
122
81
  runtimeSessionId?: string | undefined;
123
82
  statusCode?: number | undefined;
124
83
  }
125
- export declare class UnauthorizedException extends __BaseException {
126
- readonly name: "UnauthorizedException";
127
- readonly $fault: "client";
128
- constructor(
129
- opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
130
- );
131
- }
132
84
  export interface GetBrowserSessionRequest {
133
85
  browserIdentifier: string | undefined;
134
86
  sessionId: string | undefined;
135
87
  }
136
- export declare const BrowserSessionStatus: {
137
- readonly READY: "READY";
138
- readonly TERMINATED: "TERMINATED";
139
- };
140
- export type BrowserSessionStatus =
141
- (typeof BrowserSessionStatus)[keyof typeof BrowserSessionStatus];
142
- export declare const AutomationStreamStatus: {
143
- readonly DISABLED: "DISABLED";
144
- readonly ENABLED: "ENABLED";
145
- };
146
- export type AutomationStreamStatus =
147
- (typeof AutomationStreamStatus)[keyof typeof AutomationStreamStatus];
148
88
  export interface AutomationStream {
149
89
  streamEndpoint: string | undefined;
150
90
  streamStatus: AutomationStreamStatus | undefined;
@@ -253,12 +193,6 @@ export interface GetCodeInterpreterSessionRequest {
253
193
  codeInterpreterIdentifier: string | undefined;
254
194
  sessionId: string | undefined;
255
195
  }
256
- export declare const CodeInterpreterSessionStatus: {
257
- readonly READY: "READY";
258
- readonly TERMINATED: "TERMINATED";
259
- };
260
- export type CodeInterpreterSessionStatus =
261
- (typeof CodeInterpreterSessionStatus)[keyof typeof CodeInterpreterSessionStatus];
262
196
  export interface GetCodeInterpreterSessionResponse {
263
197
  codeInterpreterIdentifier: string | undefined;
264
198
  sessionId: string | undefined;
@@ -348,12 +282,6 @@ export interface GetResourceApiKeyRequest {
348
282
  export interface GetResourceApiKeyResponse {
349
283
  apiKey: string | undefined;
350
284
  }
351
- export declare const Oauth2FlowType: {
352
- readonly M2M: "M2M";
353
- readonly USER_FEDERATION: "USER_FEDERATION";
354
- };
355
- export type Oauth2FlowType =
356
- (typeof Oauth2FlowType)[keyof typeof Oauth2FlowType];
357
285
  export interface GetResourceOauth2TokenRequest {
358
286
  workloadIdentityToken: string | undefined;
359
287
  resourceCredentialProviderName: string | undefined;
@@ -365,11 +293,6 @@ export interface GetResourceOauth2TokenRequest {
365
293
  customParameters?: Record<string, string> | undefined;
366
294
  customState?: string | undefined;
367
295
  }
368
- export declare const SessionStatus: {
369
- readonly FAILED: "FAILED";
370
- readonly IN_PROGRESS: "IN_PROGRESS";
371
- };
372
- export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
373
296
  export interface GetResourceOauth2TokenResponse {
374
297
  authorizationUrl?: string | undefined;
375
298
  accessToken?: string | undefined;
@@ -401,13 +324,6 @@ export interface InputContentBlock {
401
324
  text?: string | undefined;
402
325
  blob?: Uint8Array | undefined;
403
326
  }
404
- export declare const ProgrammingLanguage: {
405
- readonly JAVASCRIPT: "javascript";
406
- readonly PYTHON: "python";
407
- readonly TYPESCRIPT: "typescript";
408
- };
409
- export type ProgrammingLanguage =
410
- (typeof ProgrammingLanguage)[keyof typeof ProgrammingLanguage];
411
327
  export interface ToolArguments {
412
328
  code?: string | undefined;
413
329
  language?: ProgrammingLanguage | undefined;
@@ -419,18 +335,6 @@ export interface ToolArguments {
419
335
  directoryPath?: string | undefined;
420
336
  taskId?: string | undefined;
421
337
  }
422
- export declare const ToolName: {
423
- readonly EXECUTE_CODE: "executeCode";
424
- readonly EXECUTE_COMMAND: "executeCommand";
425
- readonly GET_TASK: "getTask";
426
- readonly LIST_FILES: "listFiles";
427
- readonly READ_FILES: "readFiles";
428
- readonly REMOVE_FILES: "removeFiles";
429
- readonly START_COMMAND_EXECUTION: "startCommandExecution";
430
- readonly STOP_TASK: "stopTask";
431
- readonly WRITE_FILES: "writeFiles";
432
- };
433
- export type ToolName = (typeof ToolName)[keyof typeof ToolName];
434
338
  export interface InvokeCodeInterpreterRequest {
435
339
  codeInterpreterIdentifier: string | undefined;
436
340
  sessionId?: string | undefined;
@@ -439,12 +343,6 @@ export interface InvokeCodeInterpreterRequest {
439
343
  name: ToolName | undefined;
440
344
  arguments?: ToolArguments | undefined;
441
345
  }
442
- export declare const ResourceContentType: {
443
- readonly BLOB: "blob";
444
- readonly TEXT: "text";
445
- };
446
- export type ResourceContentType =
447
- (typeof ResourceContentType)[keyof typeof ResourceContentType];
448
346
  export interface ResourceContent {
449
347
  type: ResourceContentType | undefined;
450
348
  uri?: string | undefined;
@@ -452,14 +350,6 @@ export interface ResourceContent {
452
350
  text?: string | undefined;
453
351
  blob?: Uint8Array | undefined;
454
352
  }
455
- export declare const ContentBlockType: {
456
- readonly EMBEDDED_RESOURCE: "resource";
457
- readonly IMAGE: "image";
458
- readonly RESOURCE_LINK: "resource_link";
459
- readonly TEXT: "text";
460
- };
461
- export type ContentBlockType =
462
- (typeof ContentBlockType)[keyof typeof ContentBlockType];
463
353
  export interface ContentBlock {
464
354
  type: ContentBlockType | undefined;
465
355
  text?: string | undefined;
@@ -471,14 +361,6 @@ export interface ContentBlock {
471
361
  size?: number | undefined;
472
362
  resource?: ResourceContent | undefined;
473
363
  }
474
- export declare const TaskStatus: {
475
- readonly CANCELED: "canceled";
476
- readonly COMPLETED: "completed";
477
- readonly FAILED: "failed";
478
- readonly SUBMITTED: "submitted";
479
- readonly WORKING: "working";
480
- };
481
- export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
482
364
  export interface ToolResultStructuredContent {
483
365
  taskId?: string | undefined;
484
366
  taskStatus?: TaskStatus | undefined;
@@ -647,12 +529,6 @@ export interface BatchCreateMemoryRecordsInput {
647
529
  records: MemoryRecordCreateInput[] | undefined;
648
530
  clientToken?: string | undefined;
649
531
  }
650
- export declare const MemoryRecordStatus: {
651
- readonly FAILED: "FAILED";
652
- readonly SUCCEEDED: "SUCCEEDED";
653
- };
654
- export type MemoryRecordStatus =
655
- (typeof MemoryRecordStatus)[keyof typeof MemoryRecordStatus];
656
532
  export interface MemoryRecordOutput {
657
533
  memoryRecordId: string | undefined;
658
534
  status: MemoryRecordStatus | undefined;
@@ -664,16 +540,6 @@ export interface BatchCreateMemoryRecordsOutput {
664
540
  successfulRecords: MemoryRecordOutput[] | undefined;
665
541
  failedRecords: MemoryRecordOutput[] | undefined;
666
542
  }
667
- export declare class ServiceException extends __BaseException {
668
- readonly name: "ServiceException";
669
- readonly $fault: "server";
670
- constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
671
- }
672
- export declare class ThrottledException extends __BaseException {
673
- readonly name: "ThrottledException";
674
- readonly $fault: "client";
675
- constructor(opts: __ExceptionOptionType<ThrottledException, __BaseException>);
676
- }
677
543
  export interface MemoryRecordDeleteInput {
678
544
  memoryRecordId: string | undefined;
679
545
  }
@@ -736,13 +602,6 @@ export declare namespace Content {
736
602
  _: (name: string, value: any) => T;
737
603
  }
738
604
  }
739
- export declare const Role: {
740
- readonly ASSISTANT: "ASSISTANT";
741
- readonly OTHER: "OTHER";
742
- readonly TOOL: "TOOL";
743
- readonly USER: "USER";
744
- };
745
- export type Role = (typeof Role)[keyof typeof Role];
746
605
  export interface Conversational {
747
606
  content: Content | undefined;
748
607
  role: Role | undefined;
@@ -796,13 +655,6 @@ export interface Event {
796
655
  export interface CreateEventOutput {
797
656
  event: Event | undefined;
798
657
  }
799
- export declare class InvalidInputException extends __BaseException {
800
- readonly name: "InvalidInputException";
801
- readonly $fault: "client";
802
- constructor(
803
- opts: __ExceptionOptionType<InvalidInputException, __BaseException>
804
- );
805
- }
806
658
  export interface DeleteEventInput {
807
659
  memoryId: string | undefined;
808
660
  sessionId: string | undefined;
@@ -872,12 +724,6 @@ export declare namespace LeftExpression {
872
724
  _: (name: string, value: any) => T;
873
725
  }
874
726
  }
875
- export declare const OperatorType: {
876
- readonly EQUALS_TO: "EQUALS_TO";
877
- readonly EXISTS: "EXISTS";
878
- readonly NOT_EXISTS: "NOT_EXISTS";
879
- };
880
- export type OperatorType = (typeof OperatorType)[keyof typeof OperatorType];
881
727
  export type RightExpression =
882
728
  | RightExpression.MetadataValueMember
883
729
  | RightExpression.$UnknownMember;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agentcore",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agentcore",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/eventstream-serde-browser": "^4.2.5",
37
37
  "@smithy/eventstream-serde-config-resolver": "^4.3.5",
38
38
  "@smithy/eventstream-serde-node": "^4.2.5",
@@ -40,21 +40,21 @@
40
40
  "@smithy/hash-node": "^4.2.5",
41
41
  "@smithy/invalid-dependency": "^4.2.5",
42
42
  "@smithy/middleware-content-length": "^4.2.5",
43
- "@smithy/middleware-endpoint": "^4.3.9",
44
- "@smithy/middleware-retry": "^4.4.9",
45
- "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-endpoint": "^4.3.12",
44
+ "@smithy/middleware-retry": "^4.4.12",
45
+ "@smithy/middleware-serde": "^4.2.6",
46
46
  "@smithy/middleware-stack": "^4.2.5",
47
47
  "@smithy/node-config-provider": "^4.3.5",
48
48
  "@smithy/node-http-handler": "^4.4.5",
49
49
  "@smithy/protocol-http": "^5.3.5",
50
- "@smithy/smithy-client": "^4.9.5",
50
+ "@smithy/smithy-client": "^4.9.8",
51
51
  "@smithy/types": "^4.9.0",
52
52
  "@smithy/url-parser": "^4.2.5",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.8",
57
- "@smithy/util-defaults-mode-node": "^4.2.11",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
57
+ "@smithy/util-defaults-mode-node": "^4.2.14",
58
58
  "@smithy/util-endpoints": "^3.2.5",
59
59
  "@smithy/util-middleware": "^4.2.5",
60
60
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";