@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
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const ValidationExceptionReason: {
|
|
6
|
+
readonly CANNOT_PARSE: "CannotParse";
|
|
7
|
+
readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
|
|
8
|
+
readonly IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException";
|
|
9
|
+
readonly RESOURCE_CONFLICT: "ResourceConflict";
|
|
10
|
+
readonly ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
* @enum
|
|
19
|
+
*/
|
|
20
|
+
export declare const BrowserSessionStatus: {
|
|
21
|
+
readonly READY: "READY";
|
|
22
|
+
readonly TERMINATED: "TERMINATED";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type BrowserSessionStatus = (typeof BrowserSessionStatus)[keyof typeof BrowserSessionStatus];
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
* @enum
|
|
31
|
+
*/
|
|
32
|
+
export declare const AutomationStreamStatus: {
|
|
33
|
+
readonly DISABLED: "DISABLED";
|
|
34
|
+
readonly ENABLED: "ENABLED";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type AutomationStreamStatus = (typeof AutomationStreamStatus)[keyof typeof AutomationStreamStatus];
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @enum
|
|
43
|
+
*/
|
|
44
|
+
export declare const CodeInterpreterSessionStatus: {
|
|
45
|
+
readonly READY: "READY";
|
|
46
|
+
readonly TERMINATED: "TERMINATED";
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export type CodeInterpreterSessionStatus = (typeof CodeInterpreterSessionStatus)[keyof typeof CodeInterpreterSessionStatus];
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
* @enum
|
|
55
|
+
*/
|
|
56
|
+
export declare const Oauth2FlowType: {
|
|
57
|
+
readonly M2M: "M2M";
|
|
58
|
+
readonly USER_FEDERATION: "USER_FEDERATION";
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export type Oauth2FlowType = (typeof Oauth2FlowType)[keyof typeof Oauth2FlowType];
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
* @enum
|
|
67
|
+
*/
|
|
68
|
+
export declare const SessionStatus: {
|
|
69
|
+
readonly FAILED: "FAILED";
|
|
70
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
* @enum
|
|
79
|
+
*/
|
|
80
|
+
export declare const ProgrammingLanguage: {
|
|
81
|
+
readonly JAVASCRIPT: "javascript";
|
|
82
|
+
readonly PYTHON: "python";
|
|
83
|
+
readonly TYPESCRIPT: "typescript";
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export type ProgrammingLanguage = (typeof ProgrammingLanguage)[keyof typeof ProgrammingLanguage];
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
* @enum
|
|
92
|
+
*/
|
|
93
|
+
export declare const ToolName: {
|
|
94
|
+
readonly EXECUTE_CODE: "executeCode";
|
|
95
|
+
readonly EXECUTE_COMMAND: "executeCommand";
|
|
96
|
+
readonly GET_TASK: "getTask";
|
|
97
|
+
readonly LIST_FILES: "listFiles";
|
|
98
|
+
readonly READ_FILES: "readFiles";
|
|
99
|
+
readonly REMOVE_FILES: "removeFiles";
|
|
100
|
+
readonly START_COMMAND_EXECUTION: "startCommandExecution";
|
|
101
|
+
readonly STOP_TASK: "stopTask";
|
|
102
|
+
readonly WRITE_FILES: "writeFiles";
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
export type ToolName = (typeof ToolName)[keyof typeof ToolName];
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
* @enum
|
|
111
|
+
*/
|
|
112
|
+
export declare const ResourceContentType: {
|
|
113
|
+
readonly BLOB: "blob";
|
|
114
|
+
readonly TEXT: "text";
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
export type ResourceContentType = (typeof ResourceContentType)[keyof typeof ResourceContentType];
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
* @enum
|
|
123
|
+
*/
|
|
124
|
+
export declare const ContentBlockType: {
|
|
125
|
+
readonly EMBEDDED_RESOURCE: "resource";
|
|
126
|
+
readonly IMAGE: "image";
|
|
127
|
+
readonly RESOURCE_LINK: "resource_link";
|
|
128
|
+
readonly TEXT: "text";
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export type ContentBlockType = (typeof ContentBlockType)[keyof typeof ContentBlockType];
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
* @enum
|
|
137
|
+
*/
|
|
138
|
+
export declare const TaskStatus: {
|
|
139
|
+
readonly CANCELED: "canceled";
|
|
140
|
+
readonly COMPLETED: "completed";
|
|
141
|
+
readonly FAILED: "failed";
|
|
142
|
+
readonly SUBMITTED: "submitted";
|
|
143
|
+
readonly WORKING: "working";
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
* @enum
|
|
152
|
+
*/
|
|
153
|
+
export declare const MemoryRecordStatus: {
|
|
154
|
+
readonly FAILED: "FAILED";
|
|
155
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
export type MemoryRecordStatus = (typeof MemoryRecordStatus)[keyof typeof MemoryRecordStatus];
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
* @enum
|
|
164
|
+
*/
|
|
165
|
+
export declare const Role: {
|
|
166
|
+
readonly ASSISTANT: "ASSISTANT";
|
|
167
|
+
readonly OTHER: "OTHER";
|
|
168
|
+
readonly TOOL: "TOOL";
|
|
169
|
+
readonly USER: "USER";
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* @public
|
|
173
|
+
*/
|
|
174
|
+
export type Role = (typeof Role)[keyof typeof Role];
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
* @enum
|
|
178
|
+
*/
|
|
179
|
+
export declare const OperatorType: {
|
|
180
|
+
readonly EQUALS_TO: "EQUALS_TO";
|
|
181
|
+
readonly EXISTS: "EXISTS";
|
|
182
|
+
readonly NOT_EXISTS: "NOT_EXISTS";
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
export type OperatorType = (typeof OperatorType)[keyof typeof OperatorType];
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { BedrockAgentCoreServiceException as __BaseException } from "./BedrockAgentCoreServiceException";
|
|
3
|
+
import { ValidationExceptionReason } from "./enums";
|
|
4
|
+
import { ValidationExceptionField } from "./models_0";
|
|
5
|
+
/**
|
|
6
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
10
|
+
readonly name: "AccessDeniedException";
|
|
11
|
+
readonly $fault: "client";
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare class InternalServerException extends __BaseException {
|
|
22
|
+
readonly name: "InternalServerException";
|
|
23
|
+
readonly $fault: "server";
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
34
|
+
readonly name: "ResourceNotFoundException";
|
|
35
|
+
readonly $fault: "client";
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* <p>The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.</p>
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export declare class RuntimeClientError extends __BaseException {
|
|
46
|
+
readonly name: "RuntimeClientError";
|
|
47
|
+
readonly $fault: "client";
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
constructor(opts: __ExceptionOptionType<RuntimeClientError, __BaseException>);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
58
|
+
readonly name: "ServiceQuotaExceededException";
|
|
59
|
+
readonly $fault: "client";
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export declare class ThrottlingException extends __BaseException {
|
|
70
|
+
readonly name: "ThrottlingException";
|
|
71
|
+
readonly $fault: "client";
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class ValidationException extends __BaseException {
|
|
82
|
+
readonly name: "ValidationException";
|
|
83
|
+
readonly $fault: "client";
|
|
84
|
+
reason: ValidationExceptionReason | undefined;
|
|
85
|
+
fieldList?: ValidationExceptionField[] | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class ConflictException extends __BaseException {
|
|
96
|
+
readonly name: "ConflictException";
|
|
97
|
+
readonly $fault: "client";
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
export declare class UnauthorizedException extends __BaseException {
|
|
108
|
+
readonly name: "UnauthorizedException";
|
|
109
|
+
readonly $fault: "client";
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* <p>The service encountered an internal error. Try your request again later.</p>
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
export declare class ServiceException extends __BaseException {
|
|
120
|
+
readonly name: "ServiceException";
|
|
121
|
+
readonly $fault: "server";
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* <p>The request was denied due to request throttling. Reduce the frequency of requests and try again.</p>
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
export declare class ThrottledException extends __BaseException {
|
|
132
|
+
readonly name: "ThrottledException";
|
|
133
|
+
readonly $fault: "client";
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
constructor(opts: __ExceptionOptionType<ThrottledException, __BaseException>);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* <p>The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.</p>
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
export declare class InvalidInputException extends __BaseException {
|
|
144
|
+
readonly name: "InvalidInputException";
|
|
145
|
+
readonly $fault: "client";
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
150
|
+
}
|