@aws-sdk/client-bedrock-agentcore 3.934.0 → 3.936.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 +76 -75
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +75 -0
- package/dist-es/models/errors.js +149 -0
- package/dist-es/models/models_0.js +1 -224
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +187 -0
- package/dist-types/models/errors.d.ts +150 -0
- package/dist-types/models/models_0.d.ts +2 -335
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +98 -0
- package/dist-types/ts3.4/models/errors.d.ts +82 -0
- package/dist-types/ts3.4/models/models_0.d.ts +24 -178
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -191,13 +191,6 @@ let ThrottlingException$1 = class ThrottlingException extends BedrockAgentCoreSe
|
|
|
191
191
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
const ValidationExceptionReason = {
|
|
195
|
-
CANNOT_PARSE: "CannotParse",
|
|
196
|
-
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
197
|
-
IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
|
|
198
|
-
RESOURCE_CONFLICT: "ResourceConflict",
|
|
199
|
-
ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
|
|
200
|
-
};
|
|
201
194
|
let ValidationException$1 = class ValidationException extends BedrockAgentCoreServiceException$1 {
|
|
202
195
|
name = "ValidationException";
|
|
203
196
|
$fault = "client";
|
|
@@ -238,63 +231,6 @@ let UnauthorizedException$1 = class UnauthorizedException extends BedrockAgentCo
|
|
|
238
231
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
239
232
|
}
|
|
240
233
|
};
|
|
241
|
-
const BrowserSessionStatus = {
|
|
242
|
-
READY: "READY",
|
|
243
|
-
TERMINATED: "TERMINATED",
|
|
244
|
-
};
|
|
245
|
-
const AutomationStreamStatus = {
|
|
246
|
-
DISABLED: "DISABLED",
|
|
247
|
-
ENABLED: "ENABLED",
|
|
248
|
-
};
|
|
249
|
-
const CodeInterpreterSessionStatus = {
|
|
250
|
-
READY: "READY",
|
|
251
|
-
TERMINATED: "TERMINATED",
|
|
252
|
-
};
|
|
253
|
-
const Oauth2FlowType = {
|
|
254
|
-
M2M: "M2M",
|
|
255
|
-
USER_FEDERATION: "USER_FEDERATION",
|
|
256
|
-
};
|
|
257
|
-
const SessionStatus = {
|
|
258
|
-
FAILED: "FAILED",
|
|
259
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
260
|
-
};
|
|
261
|
-
const ProgrammingLanguage = {
|
|
262
|
-
JAVASCRIPT: "javascript",
|
|
263
|
-
PYTHON: "python",
|
|
264
|
-
TYPESCRIPT: "typescript",
|
|
265
|
-
};
|
|
266
|
-
const ToolName = {
|
|
267
|
-
EXECUTE_CODE: "executeCode",
|
|
268
|
-
EXECUTE_COMMAND: "executeCommand",
|
|
269
|
-
GET_TASK: "getTask",
|
|
270
|
-
LIST_FILES: "listFiles",
|
|
271
|
-
READ_FILES: "readFiles",
|
|
272
|
-
REMOVE_FILES: "removeFiles",
|
|
273
|
-
START_COMMAND_EXECUTION: "startCommandExecution",
|
|
274
|
-
STOP_TASK: "stopTask",
|
|
275
|
-
WRITE_FILES: "writeFiles",
|
|
276
|
-
};
|
|
277
|
-
const ResourceContentType = {
|
|
278
|
-
BLOB: "blob",
|
|
279
|
-
TEXT: "text",
|
|
280
|
-
};
|
|
281
|
-
const ContentBlockType = {
|
|
282
|
-
EMBEDDED_RESOURCE: "resource",
|
|
283
|
-
IMAGE: "image",
|
|
284
|
-
RESOURCE_LINK: "resource_link",
|
|
285
|
-
TEXT: "text",
|
|
286
|
-
};
|
|
287
|
-
const TaskStatus = {
|
|
288
|
-
CANCELED: "canceled",
|
|
289
|
-
COMPLETED: "completed",
|
|
290
|
-
FAILED: "failed",
|
|
291
|
-
SUBMITTED: "submitted",
|
|
292
|
-
WORKING: "working",
|
|
293
|
-
};
|
|
294
|
-
const MemoryRecordStatus = {
|
|
295
|
-
FAILED: "FAILED",
|
|
296
|
-
SUCCEEDED: "SUCCEEDED",
|
|
297
|
-
};
|
|
298
234
|
let ServiceException$1 = class ServiceException extends BedrockAgentCoreServiceException$1 {
|
|
299
235
|
name = "ServiceException";
|
|
300
236
|
$fault = "server";
|
|
@@ -319,12 +255,6 @@ let ThrottledException$1 = class ThrottledException extends BedrockAgentCoreServ
|
|
|
319
255
|
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
320
256
|
}
|
|
321
257
|
};
|
|
322
|
-
const Role = {
|
|
323
|
-
ASSISTANT: "ASSISTANT",
|
|
324
|
-
OTHER: "OTHER",
|
|
325
|
-
TOOL: "TOOL",
|
|
326
|
-
USER: "USER",
|
|
327
|
-
};
|
|
328
258
|
let InvalidInputException$1 = class InvalidInputException extends BedrockAgentCoreServiceException$1 {
|
|
329
259
|
name = "InvalidInputException";
|
|
330
260
|
$fault = "client";
|
|
@@ -337,11 +267,6 @@ let InvalidInputException$1 = class InvalidInputException extends BedrockAgentCo
|
|
|
337
267
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
338
268
|
}
|
|
339
269
|
};
|
|
340
|
-
const OperatorType = {
|
|
341
|
-
EQUALS_TO: "EQUALS_TO",
|
|
342
|
-
EXISTS: "EXISTS",
|
|
343
|
-
NOT_EXISTS: "NOT_EXISTS",
|
|
344
|
-
};
|
|
345
270
|
|
|
346
271
|
const _A = "Accept";
|
|
347
272
|
const _ADE = "AccessDeniedException";
|
|
@@ -2529,6 +2454,82 @@ const paginateListSessions = core.createPaginator(BedrockAgentCoreClient, ListSe
|
|
|
2529
2454
|
|
|
2530
2455
|
const paginateRetrieveMemoryRecords = core.createPaginator(BedrockAgentCoreClient, RetrieveMemoryRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
2531
2456
|
|
|
2457
|
+
const ValidationExceptionReason = {
|
|
2458
|
+
CANNOT_PARSE: "CannotParse",
|
|
2459
|
+
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
2460
|
+
IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
|
|
2461
|
+
RESOURCE_CONFLICT: "ResourceConflict",
|
|
2462
|
+
ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
|
|
2463
|
+
};
|
|
2464
|
+
const BrowserSessionStatus = {
|
|
2465
|
+
READY: "READY",
|
|
2466
|
+
TERMINATED: "TERMINATED",
|
|
2467
|
+
};
|
|
2468
|
+
const AutomationStreamStatus = {
|
|
2469
|
+
DISABLED: "DISABLED",
|
|
2470
|
+
ENABLED: "ENABLED",
|
|
2471
|
+
};
|
|
2472
|
+
const CodeInterpreterSessionStatus = {
|
|
2473
|
+
READY: "READY",
|
|
2474
|
+
TERMINATED: "TERMINATED",
|
|
2475
|
+
};
|
|
2476
|
+
const Oauth2FlowType = {
|
|
2477
|
+
M2M: "M2M",
|
|
2478
|
+
USER_FEDERATION: "USER_FEDERATION",
|
|
2479
|
+
};
|
|
2480
|
+
const SessionStatus = {
|
|
2481
|
+
FAILED: "FAILED",
|
|
2482
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
2483
|
+
};
|
|
2484
|
+
const ProgrammingLanguage = {
|
|
2485
|
+
JAVASCRIPT: "javascript",
|
|
2486
|
+
PYTHON: "python",
|
|
2487
|
+
TYPESCRIPT: "typescript",
|
|
2488
|
+
};
|
|
2489
|
+
const ToolName = {
|
|
2490
|
+
EXECUTE_CODE: "executeCode",
|
|
2491
|
+
EXECUTE_COMMAND: "executeCommand",
|
|
2492
|
+
GET_TASK: "getTask",
|
|
2493
|
+
LIST_FILES: "listFiles",
|
|
2494
|
+
READ_FILES: "readFiles",
|
|
2495
|
+
REMOVE_FILES: "removeFiles",
|
|
2496
|
+
START_COMMAND_EXECUTION: "startCommandExecution",
|
|
2497
|
+
STOP_TASK: "stopTask",
|
|
2498
|
+
WRITE_FILES: "writeFiles",
|
|
2499
|
+
};
|
|
2500
|
+
const ResourceContentType = {
|
|
2501
|
+
BLOB: "blob",
|
|
2502
|
+
TEXT: "text",
|
|
2503
|
+
};
|
|
2504
|
+
const ContentBlockType = {
|
|
2505
|
+
EMBEDDED_RESOURCE: "resource",
|
|
2506
|
+
IMAGE: "image",
|
|
2507
|
+
RESOURCE_LINK: "resource_link",
|
|
2508
|
+
TEXT: "text",
|
|
2509
|
+
};
|
|
2510
|
+
const TaskStatus = {
|
|
2511
|
+
CANCELED: "canceled",
|
|
2512
|
+
COMPLETED: "completed",
|
|
2513
|
+
FAILED: "failed",
|
|
2514
|
+
SUBMITTED: "submitted",
|
|
2515
|
+
WORKING: "working",
|
|
2516
|
+
};
|
|
2517
|
+
const MemoryRecordStatus = {
|
|
2518
|
+
FAILED: "FAILED",
|
|
2519
|
+
SUCCEEDED: "SUCCEEDED",
|
|
2520
|
+
};
|
|
2521
|
+
const Role = {
|
|
2522
|
+
ASSISTANT: "ASSISTANT",
|
|
2523
|
+
OTHER: "OTHER",
|
|
2524
|
+
TOOL: "TOOL",
|
|
2525
|
+
USER: "USER",
|
|
2526
|
+
};
|
|
2527
|
+
const OperatorType = {
|
|
2528
|
+
EQUALS_TO: "EQUALS_TO",
|
|
2529
|
+
EXISTS: "EXISTS",
|
|
2530
|
+
NOT_EXISTS: "NOT_EXISTS",
|
|
2531
|
+
};
|
|
2532
|
+
|
|
2532
2533
|
Object.defineProperty(exports, "$Command", {
|
|
2533
2534
|
enumerable: true,
|
|
2534
2535
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./BedrockAgentCoreClient";
|
|
|
2
2
|
export * from "./BedrockAgentCore";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
-
export * from "./models";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
6
7
|
export { BedrockAgentCoreServiceException } from "./models/BedrockAgentCoreServiceException";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export const ValidationExceptionReason = {
|
|
2
|
+
CANNOT_PARSE: "CannotParse",
|
|
3
|
+
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
4
|
+
IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
|
|
5
|
+
RESOURCE_CONFLICT: "ResourceConflict",
|
|
6
|
+
ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
|
|
7
|
+
};
|
|
8
|
+
export const BrowserSessionStatus = {
|
|
9
|
+
READY: "READY",
|
|
10
|
+
TERMINATED: "TERMINATED",
|
|
11
|
+
};
|
|
12
|
+
export const AutomationStreamStatus = {
|
|
13
|
+
DISABLED: "DISABLED",
|
|
14
|
+
ENABLED: "ENABLED",
|
|
15
|
+
};
|
|
16
|
+
export const CodeInterpreterSessionStatus = {
|
|
17
|
+
READY: "READY",
|
|
18
|
+
TERMINATED: "TERMINATED",
|
|
19
|
+
};
|
|
20
|
+
export const Oauth2FlowType = {
|
|
21
|
+
M2M: "M2M",
|
|
22
|
+
USER_FEDERATION: "USER_FEDERATION",
|
|
23
|
+
};
|
|
24
|
+
export const SessionStatus = {
|
|
25
|
+
FAILED: "FAILED",
|
|
26
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
27
|
+
};
|
|
28
|
+
export const ProgrammingLanguage = {
|
|
29
|
+
JAVASCRIPT: "javascript",
|
|
30
|
+
PYTHON: "python",
|
|
31
|
+
TYPESCRIPT: "typescript",
|
|
32
|
+
};
|
|
33
|
+
export const ToolName = {
|
|
34
|
+
EXECUTE_CODE: "executeCode",
|
|
35
|
+
EXECUTE_COMMAND: "executeCommand",
|
|
36
|
+
GET_TASK: "getTask",
|
|
37
|
+
LIST_FILES: "listFiles",
|
|
38
|
+
READ_FILES: "readFiles",
|
|
39
|
+
REMOVE_FILES: "removeFiles",
|
|
40
|
+
START_COMMAND_EXECUTION: "startCommandExecution",
|
|
41
|
+
STOP_TASK: "stopTask",
|
|
42
|
+
WRITE_FILES: "writeFiles",
|
|
43
|
+
};
|
|
44
|
+
export const ResourceContentType = {
|
|
45
|
+
BLOB: "blob",
|
|
46
|
+
TEXT: "text",
|
|
47
|
+
};
|
|
48
|
+
export const ContentBlockType = {
|
|
49
|
+
EMBEDDED_RESOURCE: "resource",
|
|
50
|
+
IMAGE: "image",
|
|
51
|
+
RESOURCE_LINK: "resource_link",
|
|
52
|
+
TEXT: "text",
|
|
53
|
+
};
|
|
54
|
+
export const TaskStatus = {
|
|
55
|
+
CANCELED: "canceled",
|
|
56
|
+
COMPLETED: "completed",
|
|
57
|
+
FAILED: "failed",
|
|
58
|
+
SUBMITTED: "submitted",
|
|
59
|
+
WORKING: "working",
|
|
60
|
+
};
|
|
61
|
+
export const MemoryRecordStatus = {
|
|
62
|
+
FAILED: "FAILED",
|
|
63
|
+
SUCCEEDED: "SUCCEEDED",
|
|
64
|
+
};
|
|
65
|
+
export const Role = {
|
|
66
|
+
ASSISTANT: "ASSISTANT",
|
|
67
|
+
OTHER: "OTHER",
|
|
68
|
+
TOOL: "TOOL",
|
|
69
|
+
USER: "USER",
|
|
70
|
+
};
|
|
71
|
+
export const OperatorType = {
|
|
72
|
+
EQUALS_TO: "EQUALS_TO",
|
|
73
|
+
EXISTS: "EXISTS",
|
|
74
|
+
NOT_EXISTS: "NOT_EXISTS",
|
|
75
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { BedrockAgentCoreServiceException as __BaseException } from "./BedrockAgentCoreServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class InternalServerException extends __BaseException {
|
|
15
|
+
name = "InternalServerException";
|
|
16
|
+
$fault = "server";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "InternalServerException",
|
|
20
|
+
$fault: "server",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
27
|
+
name = "ResourceNotFoundException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ResourceNotFoundException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class RuntimeClientError extends __BaseException {
|
|
39
|
+
name = "RuntimeClientError";
|
|
40
|
+
$fault = "client";
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "RuntimeClientError",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, RuntimeClientError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
51
|
+
name = "ServiceQuotaExceededException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ServiceQuotaExceededException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export class ThrottlingException extends __BaseException {
|
|
63
|
+
name = "ThrottlingException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
super({
|
|
67
|
+
name: "ThrottlingException",
|
|
68
|
+
$fault: "client",
|
|
69
|
+
...opts,
|
|
70
|
+
});
|
|
71
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class ValidationException extends __BaseException {
|
|
75
|
+
name = "ValidationException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
reason;
|
|
78
|
+
fieldList;
|
|
79
|
+
constructor(opts) {
|
|
80
|
+
super({
|
|
81
|
+
name: "ValidationException",
|
|
82
|
+
$fault: "client",
|
|
83
|
+
...opts,
|
|
84
|
+
});
|
|
85
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
86
|
+
this.reason = opts.reason;
|
|
87
|
+
this.fieldList = opts.fieldList;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export class ConflictException extends __BaseException {
|
|
91
|
+
name = "ConflictException";
|
|
92
|
+
$fault = "client";
|
|
93
|
+
constructor(opts) {
|
|
94
|
+
super({
|
|
95
|
+
name: "ConflictException",
|
|
96
|
+
$fault: "client",
|
|
97
|
+
...opts,
|
|
98
|
+
});
|
|
99
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export class UnauthorizedException extends __BaseException {
|
|
103
|
+
name = "UnauthorizedException";
|
|
104
|
+
$fault = "client";
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "UnauthorizedException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export class ServiceException extends __BaseException {
|
|
115
|
+
name = "ServiceException";
|
|
116
|
+
$fault = "server";
|
|
117
|
+
constructor(opts) {
|
|
118
|
+
super({
|
|
119
|
+
name: "ServiceException",
|
|
120
|
+
$fault: "server",
|
|
121
|
+
...opts,
|
|
122
|
+
});
|
|
123
|
+
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export class ThrottledException extends __BaseException {
|
|
127
|
+
name = "ThrottledException";
|
|
128
|
+
$fault = "client";
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "ThrottledException",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export class InvalidInputException extends __BaseException {
|
|
139
|
+
name = "InvalidInputException";
|
|
140
|
+
$fault = "client";
|
|
141
|
+
constructor(opts) {
|
|
142
|
+
super({
|
|
143
|
+
name: "InvalidInputException",
|
|
144
|
+
$fault: "client",
|
|
145
|
+
...opts,
|
|
146
|
+
});
|
|
147
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -1,224 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class InternalServerException extends __BaseException {
|
|
15
|
-
name = "InternalServerException";
|
|
16
|
-
$fault = "server";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "InternalServerException",
|
|
20
|
-
$fault: "server",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
27
|
-
name = "ResourceNotFoundException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ResourceNotFoundException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export class RuntimeClientError extends __BaseException {
|
|
39
|
-
name = "RuntimeClientError";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "RuntimeClientError",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, RuntimeClientError.prototype);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
51
|
-
name = "ServiceQuotaExceededException";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "ServiceQuotaExceededException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
export class ThrottlingException extends __BaseException {
|
|
63
|
-
name = "ThrottlingException";
|
|
64
|
-
$fault = "client";
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super({
|
|
67
|
-
name: "ThrottlingException",
|
|
68
|
-
$fault: "client",
|
|
69
|
-
...opts,
|
|
70
|
-
});
|
|
71
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export const ValidationExceptionReason = {
|
|
75
|
-
CANNOT_PARSE: "CannotParse",
|
|
76
|
-
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
77
|
-
IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException",
|
|
78
|
-
RESOURCE_CONFLICT: "ResourceConflict",
|
|
79
|
-
ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
|
|
80
|
-
};
|
|
81
|
-
export class ValidationException extends __BaseException {
|
|
82
|
-
name = "ValidationException";
|
|
83
|
-
$fault = "client";
|
|
84
|
-
reason;
|
|
85
|
-
fieldList;
|
|
86
|
-
constructor(opts) {
|
|
87
|
-
super({
|
|
88
|
-
name: "ValidationException",
|
|
89
|
-
$fault: "client",
|
|
90
|
-
...opts,
|
|
91
|
-
});
|
|
92
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
93
|
-
this.reason = opts.reason;
|
|
94
|
-
this.fieldList = opts.fieldList;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
export class ConflictException extends __BaseException {
|
|
98
|
-
name = "ConflictException";
|
|
99
|
-
$fault = "client";
|
|
100
|
-
constructor(opts) {
|
|
101
|
-
super({
|
|
102
|
-
name: "ConflictException",
|
|
103
|
-
$fault: "client",
|
|
104
|
-
...opts,
|
|
105
|
-
});
|
|
106
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
export class UnauthorizedException extends __BaseException {
|
|
110
|
-
name = "UnauthorizedException";
|
|
111
|
-
$fault = "client";
|
|
112
|
-
constructor(opts) {
|
|
113
|
-
super({
|
|
114
|
-
name: "UnauthorizedException",
|
|
115
|
-
$fault: "client",
|
|
116
|
-
...opts,
|
|
117
|
-
});
|
|
118
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
export const BrowserSessionStatus = {
|
|
122
|
-
READY: "READY",
|
|
123
|
-
TERMINATED: "TERMINATED",
|
|
124
|
-
};
|
|
125
|
-
export const AutomationStreamStatus = {
|
|
126
|
-
DISABLED: "DISABLED",
|
|
127
|
-
ENABLED: "ENABLED",
|
|
128
|
-
};
|
|
129
|
-
export const CodeInterpreterSessionStatus = {
|
|
130
|
-
READY: "READY",
|
|
131
|
-
TERMINATED: "TERMINATED",
|
|
132
|
-
};
|
|
133
|
-
export const Oauth2FlowType = {
|
|
134
|
-
M2M: "M2M",
|
|
135
|
-
USER_FEDERATION: "USER_FEDERATION",
|
|
136
|
-
};
|
|
137
|
-
export const SessionStatus = {
|
|
138
|
-
FAILED: "FAILED",
|
|
139
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
140
|
-
};
|
|
141
|
-
export const ProgrammingLanguage = {
|
|
142
|
-
JAVASCRIPT: "javascript",
|
|
143
|
-
PYTHON: "python",
|
|
144
|
-
TYPESCRIPT: "typescript",
|
|
145
|
-
};
|
|
146
|
-
export const ToolName = {
|
|
147
|
-
EXECUTE_CODE: "executeCode",
|
|
148
|
-
EXECUTE_COMMAND: "executeCommand",
|
|
149
|
-
GET_TASK: "getTask",
|
|
150
|
-
LIST_FILES: "listFiles",
|
|
151
|
-
READ_FILES: "readFiles",
|
|
152
|
-
REMOVE_FILES: "removeFiles",
|
|
153
|
-
START_COMMAND_EXECUTION: "startCommandExecution",
|
|
154
|
-
STOP_TASK: "stopTask",
|
|
155
|
-
WRITE_FILES: "writeFiles",
|
|
156
|
-
};
|
|
157
|
-
export const ResourceContentType = {
|
|
158
|
-
BLOB: "blob",
|
|
159
|
-
TEXT: "text",
|
|
160
|
-
};
|
|
161
|
-
export const ContentBlockType = {
|
|
162
|
-
EMBEDDED_RESOURCE: "resource",
|
|
163
|
-
IMAGE: "image",
|
|
164
|
-
RESOURCE_LINK: "resource_link",
|
|
165
|
-
TEXT: "text",
|
|
166
|
-
};
|
|
167
|
-
export const TaskStatus = {
|
|
168
|
-
CANCELED: "canceled",
|
|
169
|
-
COMPLETED: "completed",
|
|
170
|
-
FAILED: "failed",
|
|
171
|
-
SUBMITTED: "submitted",
|
|
172
|
-
WORKING: "working",
|
|
173
|
-
};
|
|
174
|
-
export const MemoryRecordStatus = {
|
|
175
|
-
FAILED: "FAILED",
|
|
176
|
-
SUCCEEDED: "SUCCEEDED",
|
|
177
|
-
};
|
|
178
|
-
export class ServiceException extends __BaseException {
|
|
179
|
-
name = "ServiceException";
|
|
180
|
-
$fault = "server";
|
|
181
|
-
constructor(opts) {
|
|
182
|
-
super({
|
|
183
|
-
name: "ServiceException",
|
|
184
|
-
$fault: "server",
|
|
185
|
-
...opts,
|
|
186
|
-
});
|
|
187
|
-
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
export class ThrottledException extends __BaseException {
|
|
191
|
-
name = "ThrottledException";
|
|
192
|
-
$fault = "client";
|
|
193
|
-
constructor(opts) {
|
|
194
|
-
super({
|
|
195
|
-
name: "ThrottledException",
|
|
196
|
-
$fault: "client",
|
|
197
|
-
...opts,
|
|
198
|
-
});
|
|
199
|
-
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
export const Role = {
|
|
203
|
-
ASSISTANT: "ASSISTANT",
|
|
204
|
-
OTHER: "OTHER",
|
|
205
|
-
TOOL: "TOOL",
|
|
206
|
-
USER: "USER",
|
|
207
|
-
};
|
|
208
|
-
export class InvalidInputException extends __BaseException {
|
|
209
|
-
name = "InvalidInputException";
|
|
210
|
-
$fault = "client";
|
|
211
|
-
constructor(opts) {
|
|
212
|
-
super({
|
|
213
|
-
name: "InvalidInputException",
|
|
214
|
-
$fault: "client",
|
|
215
|
-
...opts,
|
|
216
|
-
});
|
|
217
|
-
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
export const OperatorType = {
|
|
221
|
-
EQUALS_TO: "EQUALS_TO",
|
|
222
|
-
EXISTS: "EXISTS",
|
|
223
|
-
NOT_EXISTS: "NOT_EXISTS",
|
|
224
|
-
};
|
|
1
|
+
export {};
|
|
@@ -332,7 +332,7 @@ const _xacisi = "x-amzn-code-interpreter-session-id";
|
|
|
332
332
|
const n0 = "com.amazonaws.bedrockagentcore";
|
|
333
333
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
334
334
|
import { BedrockAgentCoreServiceException as __BedrockAgentCoreServiceException } from "../models/BedrockAgentCoreServiceException";
|
|
335
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidInputException as __InvalidInputException, ResourceNotFoundException as __ResourceNotFoundException, RuntimeClientError as __RuntimeClientError, ServiceException as __ServiceException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottledException as __ThrottledException, ThrottlingException as __ThrottlingException, UnauthorizedException as __UnauthorizedException, ValidationException as __ValidationException, } from "../models/
|
|
335
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidInputException as __InvalidInputException, ResourceNotFoundException as __ResourceNotFoundException, RuntimeClientError as __RuntimeClientError, ServiceException as __ServiceException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottledException as __ThrottledException, ThrottlingException as __ThrottlingException, UnauthorizedException as __UnauthorizedException, ValidationException as __ValidationException, } from "../models/errors";
|
|
336
336
|
export var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
337
337
|
export var ApiKeyType = [0, n0, _AKT, 8, 0];
|
|
338
338
|
export var AuthorizationUrlType = [0, n0, _AUT, 8, 0];
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { BedrockAgentCoreExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
-
export * from "./models";
|
|
13
|
+
export * from "./models/enums";
|
|
14
|
+
export * from "./models/errors";
|
|
15
|
+
export type * from "./models/models_0";
|
|
14
16
|
export { BedrockAgentCoreServiceException } from "./models/BedrockAgentCoreServiceException";
|