@aws-sdk/client-bedrock-agentcore 3.1021.0 → 3.1023.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.
- package/dist-cjs/index.js +4 -0
- package/dist-cjs/schemas/schemas_0.js +12 -4
- package/dist-es/models/enums.js +3 -0
- package/dist-es/schemas/schemas_0.js +9 -2
- package/dist-types/commands/ListSessionsCommand.d.ts +3 -0
- package/dist-types/models/enums.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +17 -1
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -721,6 +721,9 @@ const OperatorType = {
|
|
|
721
721
|
const ExtractionJobStatus = {
|
|
722
722
|
FAILED: "FAILED",
|
|
723
723
|
};
|
|
724
|
+
const EventFilterCondition = {
|
|
725
|
+
HAS_EVENTS: "HAS_EVENTS",
|
|
726
|
+
};
|
|
724
727
|
|
|
725
728
|
exports.$Command = smithyClient.Command;
|
|
726
729
|
exports.__Client = smithyClient.Client;
|
|
@@ -741,6 +744,7 @@ exports.CreateEventCommand = CreateEventCommand;
|
|
|
741
744
|
exports.DeleteEventCommand = DeleteEventCommand;
|
|
742
745
|
exports.DeleteMemoryRecordCommand = DeleteMemoryRecordCommand;
|
|
743
746
|
exports.EvaluateCommand = EvaluateCommand;
|
|
747
|
+
exports.EventFilterCondition = EventFilterCondition;
|
|
744
748
|
exports.ExtractionJobStatus = ExtractionJobStatus;
|
|
745
749
|
exports.GetAgentCardCommand = GetAgentCardCommand;
|
|
746
750
|
exports.GetBrowserSessionCommand = GetBrowserSessionCommand;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EvaluateRequest$ = exports.DeleteMemoryRecordOutput$ = exports.DeleteMemoryRecordInput$ = exports.DeleteEventOutput$ = exports.DeleteEventInput$ = exports.CreateEventOutput$ = exports.CreateEventInput$ = exports.Conversational$ = exports.ContentStopEvent$ = exports.ContentStartEvent$ = exports.ContentDeltaEvent$ = exports.ContentBlock$ = exports.CompleteResourceTokenAuthResponse$ = exports.CompleteResourceTokenAuthRequest$ = exports.CodeInterpreterSessionSummary$ = exports.CodeInterpreterResult$ = exports.Certificate$ = exports.BrowserSessionSummary$ = exports.BrowserSessionStream$ = exports.BrowserProfileConfiguration$ = exports.BrowserExtension$ = exports.BrowserEnterprisePolicy$ = exports.BranchFilter$ = exports.Branch$ = exports.BatchUpdateMemoryRecordsOutput$ = exports.BatchUpdateMemoryRecordsInput$ = exports.BatchDeleteMemoryRecordsOutput$ = exports.BatchDeleteMemoryRecordsInput$ = exports.BatchCreateMemoryRecordsOutput$ = exports.BatchCreateMemoryRecordsInput$ = exports.BasicAuth$ = exports.AutomationStreamUpdate$ = exports.AutomationStream$ = exports.ActorSummary$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ThrottledException$ = exports.ServiceQuotaExceededException$ = exports.ServiceException$ = exports.RuntimeClientError$ = exports.RetryableConflictException$ = exports.ResourceNotFoundException$ = exports.InvalidInputException$ = exports.InternalServerException$ = exports.DuplicateIdException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.BedrockAgentCoreServiceException$ = void 0;
|
|
4
4
|
exports.ListMemoryRecordsInput$ = exports.ListMemoryExtractionJobsOutput$ = exports.ListMemoryExtractionJobsInput$ = exports.ListEventsOutput$ = exports.ListEventsInput$ = exports.ListCodeInterpreterSessionsResponse$ = exports.ListCodeInterpreterSessionsRequest$ = exports.ListBrowserSessionsResponse$ = exports.ListBrowserSessionsRequest$ = exports.ListActorsOutput$ = exports.ListActorsInput$ = exports.InvokeCodeInterpreterResponse$ = exports.InvokeCodeInterpreterRequest$ = exports.InvokeAgentRuntimeResponse$ = exports.InvokeAgentRuntimeRequest$ = exports.InvokeAgentRuntimeCommandResponse$ = exports.InvokeAgentRuntimeCommandRequestBody$ = exports.InvokeAgentRuntimeCommandRequest$ = exports.InputContentBlock$ = exports.GetWorkloadAccessTokenResponse$ = exports.GetWorkloadAccessTokenRequest$ = exports.GetWorkloadAccessTokenForUserIdResponse$ = exports.GetWorkloadAccessTokenForUserIdRequest$ = exports.GetWorkloadAccessTokenForJWTResponse$ = exports.GetWorkloadAccessTokenForJWTRequest$ = exports.GetResourceOauth2TokenResponse$ = exports.GetResourceOauth2TokenRequest$ = exports.GetResourceApiKeyResponse$ = exports.GetResourceApiKeyRequest$ = exports.GetMemoryRecordOutput$ = exports.GetMemoryRecordInput$ = exports.GetEventOutput$ = exports.GetEventInput$ = exports.GetCodeInterpreterSessionResponse$ = exports.GetCodeInterpreterSessionRequest$ = exports.GetBrowserSessionResponse$ = exports.GetBrowserSessionRequest$ = exports.GetAgentCardResponse$ = exports.GetAgentCardRequest$ = exports.FilterInput$ = exports.ExtractionJobMetadata$ = exports.ExtractionJobFilterInput$ = exports.ExtractionJob$ = exports.ExternalProxy$ = exports.EventMetadataFilterExpression$ = exports.Event$ = exports.EvaluationResultContent$ = exports.EvaluationReferenceInput$ = exports.EvaluationExpectedTrajectory$ = exports.EvaluateResponse$ = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
5
|
+
exports.EvaluationContent$ = exports.Context$ = exports.Content$ = exports.CodeInterpreterStreamOutput$ = exports.CertificateLocation$ = exports.ViewPort$ = exports.ValidationExceptionField$ = exports.UpdateBrowserStreamResponse$ = exports.UpdateBrowserStreamRequest$ = exports.ToolResultStructuredContent$ = exports.ToolArguments$ = exports.TokenUsage$ = exports.StopRuntimeSessionResponse$ = exports.StopRuntimeSessionRequest$ = exports.StopCodeInterpreterSessionResponse$ = exports.StopCodeInterpreterSessionRequest$ = exports.StopBrowserSessionResponse$ = exports.StopBrowserSessionRequest$ = exports.StartMemoryExtractionJobOutput$ = exports.StartMemoryExtractionJobInput$ = exports.StartCodeInterpreterSessionResponse$ = exports.StartCodeInterpreterSessionRequest$ = exports.StartBrowserSessionResponse$ = exports.StartBrowserSessionRequest$ = exports.SpanContext$ = exports.SessionSummary$ = exports.SessionFilter$ = exports.SecretsManagerLocation$ = exports.SearchCriteria$ = exports.SaveBrowserSessionProfileResponse$ = exports.SaveBrowserSessionProfileRequest$ = exports.S3Location$ = exports.RetrieveMemoryRecordsOutput$ = exports.RetrieveMemoryRecordsInput$ = exports.ResponseChunk$ = exports.ResourceContent$ = exports.ProxyConfiguration$ = exports.ProxyBypass$ = exports.MessageMetadata$ = exports.MemoryRecordUpdateInput$ = exports.MemoryRecordSummary$ = exports.MemoryRecordOutput$ = exports.MemoryRecordDeleteInput$ = exports.MemoryRecordCreateInput$ = exports.MemoryRecord$ = exports.MemoryMetadataFilterExpression$ = exports.LiveViewStream$ = exports.ListSessionsOutput$ = exports.ListSessionsInput$ = exports.ListMemoryRecordsOutput$ = void 0;
|
|
6
|
+
exports.StopRuntimeSession$ = exports.StopCodeInterpreterSession$ = exports.StopBrowserSession$ = exports.StartMemoryExtractionJob$ = exports.StartCodeInterpreterSession$ = exports.StartBrowserSession$ = exports.SaveBrowserSessionProfile$ = exports.RetrieveMemoryRecords$ = exports.ListSessions$ = exports.ListMemoryRecords$ = exports.ListMemoryExtractionJobs$ = exports.ListEvents$ = exports.ListCodeInterpreterSessions$ = exports.ListBrowserSessions$ = exports.ListActors$ = exports.InvokeCodeInterpreter$ = exports.InvokeAgentRuntimeCommand$ = exports.InvokeAgentRuntime$ = exports.GetWorkloadAccessTokenForUserId$ = exports.GetWorkloadAccessTokenForJWT$ = exports.GetWorkloadAccessToken$ = exports.GetResourceOauth2Token$ = exports.GetResourceApiKey$ = exports.GetMemoryRecord$ = exports.GetEvent$ = exports.GetCodeInterpreterSession$ = exports.GetBrowserSession$ = exports.GetAgentCard$ = exports.Evaluate$ = exports.DeleteMemoryRecord$ = exports.DeleteEvent$ = exports.CreateEvent$ = exports.CompleteResourceTokenAuth$ = exports.BatchUpdateMemoryRecords$ = exports.BatchDeleteMemoryRecords$ = exports.BatchCreateMemoryRecords$ = exports.UserIdentifier$ = exports.StreamUpdate$ = exports.RightExpression$ = exports.ResourceLocation$ = exports.ProxyCredentials$ = exports.Proxy$ = exports.PayloadType$ = exports.MetadataValue$ = exports.MemoryContent$ = exports.LeftExpression$ = exports.InvokeAgentRuntimeCommandStreamOutput$ = exports.ExtractionJobMessages$ = exports.EvaluationTarget$ = exports.EvaluationInput$ = void 0;
|
|
7
|
+
exports.UpdateBrowserStream$ = void 0;
|
|
7
8
|
const _A = "Accept";
|
|
8
9
|
const _ADE = "AccessDeniedException";
|
|
9
10
|
const _AKT = "ApiKeyType";
|
|
@@ -216,6 +217,7 @@ const _SCISRtop = "StopCodeInterpreterSessionResponse";
|
|
|
216
217
|
const _SCISt = "StopCodeInterpreterSession";
|
|
217
218
|
const _SCp = "SpanContext";
|
|
218
219
|
const _SE = "ServiceException";
|
|
220
|
+
const _SF = "SessionFilter";
|
|
219
221
|
const _SL = "S3Location";
|
|
220
222
|
const _SMEJ = "StartMemoryExtractionJob";
|
|
221
223
|
const _SMEJI = "StartMemoryExtractionJobInput";
|
|
@@ -299,6 +301,7 @@ const _e = "error";
|
|
|
299
301
|
const _eA = "evaluatorArn";
|
|
300
302
|
const _eC = "exitCode";
|
|
301
303
|
const _eCr = "errorCode";
|
|
304
|
+
const _eF = "eventFilter";
|
|
302
305
|
const _eI = "eventId";
|
|
303
306
|
const _eIv = "evaluatorId";
|
|
304
307
|
const _eIva = "evaluationInput";
|
|
@@ -998,8 +1001,8 @@ exports.ListMemoryRecordsOutput$ = [3, n0, _LMRO,
|
|
|
998
1001
|
];
|
|
999
1002
|
exports.ListSessionsInput$ = [3, n0, _LSI,
|
|
1000
1003
|
0,
|
|
1001
|
-
[_mI, _aI, _mRa, _nT],
|
|
1002
|
-
[[0, 1], [0, 1], 1, 0], 2
|
|
1004
|
+
[_mI, _aI, _mRa, _nT, _f],
|
|
1005
|
+
[[0, 1], [0, 1], 1, 0, () => exports.SessionFilter$], 2
|
|
1003
1006
|
];
|
|
1004
1007
|
exports.ListSessionsOutput$ = [3, n0, _LSO,
|
|
1005
1008
|
0,
|
|
@@ -1106,6 +1109,11 @@ exports.SecretsManagerLocation$ = [3, n0, _SML,
|
|
|
1106
1109
|
[_sA],
|
|
1107
1110
|
[0], 1
|
|
1108
1111
|
];
|
|
1112
|
+
exports.SessionFilter$ = [3, n0, _SF,
|
|
1113
|
+
0,
|
|
1114
|
+
[_eF],
|
|
1115
|
+
[0]
|
|
1116
|
+
];
|
|
1109
1117
|
exports.SessionSummary$ = [3, n0, _SSe,
|
|
1110
1118
|
0,
|
|
1111
1119
|
[_sI, _aI, _cA],
|
package/dist-es/models/enums.js
CHANGED
|
@@ -210,6 +210,7 @@ const _SCISRtop = "StopCodeInterpreterSessionResponse";
|
|
|
210
210
|
const _SCISt = "StopCodeInterpreterSession";
|
|
211
211
|
const _SCp = "SpanContext";
|
|
212
212
|
const _SE = "ServiceException";
|
|
213
|
+
const _SF = "SessionFilter";
|
|
213
214
|
const _SL = "S3Location";
|
|
214
215
|
const _SMEJ = "StartMemoryExtractionJob";
|
|
215
216
|
const _SMEJI = "StartMemoryExtractionJobInput";
|
|
@@ -293,6 +294,7 @@ const _e = "error";
|
|
|
293
294
|
const _eA = "evaluatorArn";
|
|
294
295
|
const _eC = "exitCode";
|
|
295
296
|
const _eCr = "errorCode";
|
|
297
|
+
const _eF = "eventFilter";
|
|
296
298
|
const _eI = "eventId";
|
|
297
299
|
const _eIv = "evaluatorId";
|
|
298
300
|
const _eIva = "evaluationInput";
|
|
@@ -992,8 +994,8 @@ export var ListMemoryRecordsOutput$ = [3, n0, _LMRO,
|
|
|
992
994
|
];
|
|
993
995
|
export var ListSessionsInput$ = [3, n0, _LSI,
|
|
994
996
|
0,
|
|
995
|
-
[_mI, _aI, _mRa, _nT],
|
|
996
|
-
[[0, 1], [0, 1], 1, 0], 2
|
|
997
|
+
[_mI, _aI, _mRa, _nT, _f],
|
|
998
|
+
[[0, 1], [0, 1], 1, 0, () => SessionFilter$], 2
|
|
997
999
|
];
|
|
998
1000
|
export var ListSessionsOutput$ = [3, n0, _LSO,
|
|
999
1001
|
0,
|
|
@@ -1100,6 +1102,11 @@ export var SecretsManagerLocation$ = [3, n0, _SML,
|
|
|
1100
1102
|
[_sA],
|
|
1101
1103
|
[0], 1
|
|
1102
1104
|
];
|
|
1105
|
+
export var SessionFilter$ = [3, n0, _SF,
|
|
1106
|
+
0,
|
|
1107
|
+
[_eF],
|
|
1108
|
+
[0]
|
|
1109
|
+
];
|
|
1103
1110
|
export var SessionSummary$ = [3, n0, _SSe,
|
|
1104
1111
|
0,
|
|
1105
1112
|
[_sI, _aI, _cA],
|
|
@@ -41,6 +41,9 @@ declare const ListSessionsCommand_base: {
|
|
|
41
41
|
* actorId: "STRING_VALUE", // required
|
|
42
42
|
* maxResults: Number("int"),
|
|
43
43
|
* nextToken: "STRING_VALUE",
|
|
44
|
+
* filter: { // SessionFilter
|
|
45
|
+
* eventFilter: "HAS_EVENTS",
|
|
46
|
+
* },
|
|
44
47
|
* };
|
|
45
48
|
* const command = new ListSessionsCommand(input);
|
|
46
49
|
* const response = await client.send(command);
|
|
@@ -233,3 +233,14 @@ export declare const ExtractionJobStatus: {
|
|
|
233
233
|
* @public
|
|
234
234
|
*/
|
|
235
235
|
export type ExtractionJobStatus = (typeof ExtractionJobStatus)[keyof typeof ExtractionJobStatus];
|
|
236
|
+
/**
|
|
237
|
+
* @public
|
|
238
|
+
* @enum
|
|
239
|
+
*/
|
|
240
|
+
export declare const EventFilterCondition: {
|
|
241
|
+
readonly HAS_EVENTS: "HAS_EVENTS";
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
export type EventFilterCondition = (typeof EventFilterCondition)[keyof typeof EventFilterCondition];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { AutomationStreamStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, ExtractionJobStatus, LanguageRuntime, MemoryRecordStatus, Oauth2FlowType, OperatorType, ProgrammingLanguage, ResourceContentType, Role, SessionStatus, TaskStatus, ToolName } from "./enums";
|
|
2
|
+
import type { AutomationStreamStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, EventFilterCondition, ExtractionJobStatus, LanguageRuntime, MemoryRecordStatus, Oauth2FlowType, OperatorType, ProgrammingLanguage, ResourceContentType, Role, SessionStatus, TaskStatus, ToolName } from "./enums";
|
|
3
3
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, RuntimeClientError, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
|
|
4
4
|
/**
|
|
5
5
|
* <p>Contains summary information about an actor in an AgentCore Memory resource.</p>
|
|
@@ -3683,6 +3683,17 @@ export interface ListMemoryRecordsOutput {
|
|
|
3683
3683
|
*/
|
|
3684
3684
|
nextToken?: string | undefined;
|
|
3685
3685
|
}
|
|
3686
|
+
/**
|
|
3687
|
+
* <p>Contains filter criteria for listing sessions.</p>
|
|
3688
|
+
* @public
|
|
3689
|
+
*/
|
|
3690
|
+
export interface SessionFilter {
|
|
3691
|
+
/**
|
|
3692
|
+
* <p>The event filter condition to apply. Use this to filter sessions based on event presence.</p>
|
|
3693
|
+
* @public
|
|
3694
|
+
*/
|
|
3695
|
+
eventFilter?: EventFilterCondition | undefined;
|
|
3696
|
+
}
|
|
3686
3697
|
/**
|
|
3687
3698
|
* @public
|
|
3688
3699
|
*/
|
|
@@ -3707,6 +3718,11 @@ export interface ListSessionsInput {
|
|
|
3707
3718
|
* @public
|
|
3708
3719
|
*/
|
|
3709
3720
|
nextToken?: string | undefined;
|
|
3721
|
+
/**
|
|
3722
|
+
* <p>Filter criteria to apply when listing sessions.</p>
|
|
3723
|
+
* @public
|
|
3724
|
+
*/
|
|
3725
|
+
filter?: SessionFilter | undefined;
|
|
3710
3726
|
}
|
|
3711
3727
|
/**
|
|
3712
3728
|
* <p>Contains summary information about a session in an AgentCore Memory resource.</p>
|
|
@@ -128,6 +128,7 @@ export declare var SaveBrowserSessionProfileRequest$: StaticStructureSchema;
|
|
|
128
128
|
export declare var SaveBrowserSessionProfileResponse$: StaticStructureSchema;
|
|
129
129
|
export declare var SearchCriteria$: StaticStructureSchema;
|
|
130
130
|
export declare var SecretsManagerLocation$: StaticStructureSchema;
|
|
131
|
+
export declare var SessionFilter$: StaticStructureSchema;
|
|
131
132
|
export declare var SessionSummary$: StaticStructureSchema;
|
|
132
133
|
export declare var SpanContext$: StaticStructureSchema;
|
|
133
134
|
export declare var StartBrowserSessionRequest$: StaticStructureSchema;
|
|
@@ -120,3 +120,8 @@ export declare const ExtractionJobStatus: {
|
|
|
120
120
|
};
|
|
121
121
|
export type ExtractionJobStatus =
|
|
122
122
|
(typeof ExtractionJobStatus)[keyof typeof ExtractionJobStatus];
|
|
123
|
+
export declare const EventFilterCondition: {
|
|
124
|
+
readonly HAS_EVENTS: "HAS_EVENTS";
|
|
125
|
+
};
|
|
126
|
+
export type EventFilterCondition =
|
|
127
|
+
(typeof EventFilterCondition)[keyof typeof EventFilterCondition];
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
CodeInterpreterSessionStatus,
|
|
10
10
|
CommandExecutionStatus,
|
|
11
11
|
ContentBlockType,
|
|
12
|
+
EventFilterCondition,
|
|
12
13
|
ExtractionJobStatus,
|
|
13
14
|
LanguageRuntime,
|
|
14
15
|
MemoryRecordStatus,
|
|
@@ -1244,11 +1245,15 @@ export interface ListMemoryRecordsOutput {
|
|
|
1244
1245
|
memoryRecordSummaries: MemoryRecordSummary[] | undefined;
|
|
1245
1246
|
nextToken?: string | undefined;
|
|
1246
1247
|
}
|
|
1248
|
+
export interface SessionFilter {
|
|
1249
|
+
eventFilter?: EventFilterCondition | undefined;
|
|
1250
|
+
}
|
|
1247
1251
|
export interface ListSessionsInput {
|
|
1248
1252
|
memoryId: string | undefined;
|
|
1249
1253
|
actorId: string | undefined;
|
|
1250
1254
|
maxResults?: number | undefined;
|
|
1251
1255
|
nextToken?: string | undefined;
|
|
1256
|
+
filter?: SessionFilter | undefined;
|
|
1252
1257
|
}
|
|
1253
1258
|
export interface SessionSummary {
|
|
1254
1259
|
sessionId: string | undefined;
|
|
@@ -128,6 +128,7 @@ export declare var SaveBrowserSessionProfileRequest$: StaticStructureSchema;
|
|
|
128
128
|
export declare var SaveBrowserSessionProfileResponse$: StaticStructureSchema;
|
|
129
129
|
export declare var SearchCriteria$: StaticStructureSchema;
|
|
130
130
|
export declare var SecretsManagerLocation$: StaticStructureSchema;
|
|
131
|
+
export declare var SessionFilter$: StaticStructureSchema;
|
|
131
132
|
export declare var SessionSummary$: StaticStructureSchema;
|
|
132
133
|
export declare var SpanContext$: StaticStructureSchema;
|
|
133
134
|
export declare var StartBrowserSessionRequest$: StaticStructureSchema;
|
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.
|
|
4
|
+
"version": "3.1023.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agentcore",
|