@aws-sdk/client-opensearchmemory 0.0.0-stage → 3.1170.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/LICENSE +201 -0
- package/README.md +320 -2
- package/dist-cjs/index.js +1550 -0
- package/dist-es/OpenSearchMemory.js +65 -0
- package/dist-es/OpenSearchMemoryClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +9 -0
- package/dist-es/commands/BatchGetEventCommand.js +4 -0
- package/dist-es/commands/CreateEventCommand.js +4 -0
- package/dist-es/commands/CreateMemoryCommand.js +4 -0
- package/dist-es/commands/CreateSpaceCommand.js +4 -0
- package/dist-es/commands/DeleteEventCommand.js +4 -0
- package/dist-es/commands/DeleteMemoryCommand.js +4 -0
- package/dist-es/commands/DeleteSpaceCommand.js +4 -0
- package/dist-es/commands/GetEventCommand.js +4 -0
- package/dist-es/commands/GetMemoryCommand.js +4 -0
- package/dist-es/commands/GetSpaceCommand.js +4 -0
- package/dist-es/commands/ListEventsCommand.js +4 -0
- package/dist-es/commands/ListMemoriesCommand.js +4 -0
- package/dist-es/commands/ListSpacesCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/SearchEventsCommand.js +4 -0
- package/dist-es/commands/SearchMemoriesCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateMemoryCommand.js +4 -0
- package/dist-es/commands/UpdateSpaceCommand.js +4 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +33 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +11 -0
- package/dist-es/models/OpenSearchMemoryServiceException.js +9 -0
- package/dist-es/models/enums.js +61 -0
- package/dist-es/models/errors.js +114 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEventsPaginator.js +4 -0
- package/dist-es/pagination/ListMemoriesPaginator.js +4 -0
- package/dist-es/pagination/ListSpacesPaginator.js +4 -0
- package/dist-es/pagination/SearchEventsPaginator.js +4 -0
- package/dist-es/pagination/SearchMemoriesPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +720 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForSpaceActive.js +79 -0
- package/dist-es/waiters/waitForSpaceDeleted.js +52 -0
- package/dist-types/OpenSearchMemory.d.ts +206 -0
- package/dist-types/OpenSearchMemoryClient.d.ts +207 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +22 -0
- package/dist-types/commands/BatchGetEventCommand.d.ts +140 -0
- package/dist-types/commands/CreateEventCommand.d.ts +134 -0
- package/dist-types/commands/CreateMemoryCommand.d.ts +103 -0
- package/dist-types/commands/CreateSpaceCommand.d.ts +122 -0
- package/dist-types/commands/DeleteEventCommand.d.ts +89 -0
- package/dist-types/commands/DeleteMemoryCommand.d.ts +89 -0
- package/dist-types/commands/DeleteSpaceCommand.d.ts +90 -0
- package/dist-types/commands/GetEventCommand.d.ts +129 -0
- package/dist-types/commands/GetMemoryCommand.d.ts +103 -0
- package/dist-types/commands/GetSpaceCommand.d.ts +113 -0
- package/dist-types/commands/ListEventsCommand.d.ts +105 -0
- package/dist-types/commands/ListMemoriesCommand.d.ts +120 -0
- package/dist-types/commands/ListSpacesCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
- package/dist-types/commands/SearchEventsCommand.d.ts +110 -0
- package/dist-types/commands/SearchMemoriesCommand.d.ts +120 -0
- package/dist-types/commands/TagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateMemoryCommand.d.ts +111 -0
- package/dist-types/commands/UpdateSpaceCommand.d.ts +112 -0
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +19 -0
- package/dist-types/models/OpenSearchMemoryServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +258 -0
- package/dist-types/models/errors.d.ts +144 -0
- package/dist-types/models/models_0.d.ts +1629 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMemoriesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSpacesPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchMemoriesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +105 -0
- package/dist-types/ts3.4/OpenSearchMemory.d.ts +371 -0
- package/dist-types/ts3.4/OpenSearchMemoryClient.d.ts +190 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchGetEventCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateMemoryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateSpaceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteMemoryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteSpaceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetEventCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetMemoryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSpaceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListMemoriesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListSpacesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SearchEventsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SearchMemoriesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateMemoryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateSpaceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +46 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +14 -0
- package/dist-types/ts3.4/models/OpenSearchMemoryServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +73 -0
- package/dist-types/ts3.4/models/errors.d.ts +59 -0
- package/dist-types/ts3.4/models/models_0.d.ts +459 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListMemoriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/SearchEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchMemoriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +105 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForSpaceActive.d.ts +12 -0
- package/dist-types/ts3.4/waiters/waitForSpaceDeleted.d.ts +13 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForSpaceActive.d.ts +15 -0
- package/dist-types/waiters/waitForSpaceDeleted.d.ts +16 -0
- package/package.json +67 -4
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const BatchGetEventErrorCode: {
|
|
6
|
+
/**
|
|
7
|
+
* <p>You don't have permission to use the space's customer managed AWS KMS key to decrypt the event. To fix it, give the caller <code>kms:Decrypt</code> permission on the key, and then retry the event. Corresponds to <code>AccessDeniedException</code>.</p>
|
|
8
|
+
*/
|
|
9
|
+
readonly ACCESS_DENIED: "ACCESS_DENIED";
|
|
10
|
+
/**
|
|
11
|
+
* <p>The service couldn't read the event. Retry it. Corresponds to <code>InternalServerException</code>.</p>
|
|
12
|
+
*/
|
|
13
|
+
readonly INTERNAL_SERVER: "INTERNAL_SERVER";
|
|
14
|
+
/**
|
|
15
|
+
* <p>No such event: it doesn't exist, was deleted, or belongs to another actor or session than the one you supplied. Corresponds to <code>ResourceNotFoundException</code>.</p>
|
|
16
|
+
*/
|
|
17
|
+
readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
18
|
+
/**
|
|
19
|
+
* <p>AWS KMS throttled the use of the space's customer managed AWS KMS key to decrypt the event. Retry the event with backoff. Corresponds to <code>ThrottlingException</code>.</p>
|
|
20
|
+
*/
|
|
21
|
+
readonly THROTTLING: "THROTTLING";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export type BatchGetEventErrorCode = (typeof BatchGetEventErrorCode)[keyof typeof BatchGetEventErrorCode];
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* @enum
|
|
30
|
+
*/
|
|
31
|
+
export declare const BlobContentType: {
|
|
32
|
+
readonly JPEG: "image/jpeg";
|
|
33
|
+
/**
|
|
34
|
+
* <p>A PDF document (<code>application/pdf</code>).</p>
|
|
35
|
+
*/
|
|
36
|
+
readonly PDF: "application/pdf";
|
|
37
|
+
readonly PNG: "image/png";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export type BlobContentType = (typeof BlobContentType)[keyof typeof BlobContentType];
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @enum
|
|
46
|
+
*/
|
|
47
|
+
export declare const MessageRole: {
|
|
48
|
+
/**
|
|
49
|
+
* <p>The agent or model.</p>
|
|
50
|
+
*/
|
|
51
|
+
readonly ASSISTANT: "ASSISTANT";
|
|
52
|
+
/**
|
|
53
|
+
* <p>System instructions.</p>
|
|
54
|
+
*/
|
|
55
|
+
readonly SYSTEM: "SYSTEM";
|
|
56
|
+
/**
|
|
57
|
+
* <p>The end user.</p>
|
|
58
|
+
*/
|
|
59
|
+
readonly USER: "USER";
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export type MessageRole = (typeof MessageRole)[keyof typeof MessageRole];
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
* @enum
|
|
68
|
+
*/
|
|
69
|
+
export declare const ValidationExceptionReason: {
|
|
70
|
+
/**
|
|
71
|
+
* <p>The query uses a query type that isn't supported.</p>
|
|
72
|
+
*/
|
|
73
|
+
readonly DISALLOWED_QUERY_TYPE: "disallowedQueryType";
|
|
74
|
+
/**
|
|
75
|
+
* <p>The field can't be used with this query type.</p>
|
|
76
|
+
*/
|
|
77
|
+
readonly FIELD_INDEX_MISMATCH: "fieldIndexMismatch";
|
|
78
|
+
/**
|
|
79
|
+
* <p>A field failed validation.</p>
|
|
80
|
+
*/
|
|
81
|
+
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
82
|
+
/**
|
|
83
|
+
* <p>The pagination token is invalid or past the paging limit.</p>
|
|
84
|
+
*/
|
|
85
|
+
readonly INVALID_NEXT_TOKEN: "invalidNextToken";
|
|
86
|
+
/**
|
|
87
|
+
* <p>The query or sort can't be parsed.</p>
|
|
88
|
+
*/
|
|
89
|
+
readonly MALFORMED_QUERY_BODY: "malformedQueryBody";
|
|
90
|
+
/**
|
|
91
|
+
* <p>The query or sort uses a field that can't be used there, such as an actor or session field.</p>
|
|
92
|
+
*/
|
|
93
|
+
readonly NON_FILTERABLE_FIELD: "nonFilterableField";
|
|
94
|
+
/**
|
|
95
|
+
* <p>Another validation failure, such as an unusable customer managed AWS KMS key.</p>
|
|
96
|
+
*/
|
|
97
|
+
readonly OTHER: "other";
|
|
98
|
+
/**
|
|
99
|
+
* <p>The query exceeds a size or count limit: <code>query</code> and <code>sort</code> together are larger than 64 KB, the query has more than 32 clauses, a value list has more than 100 values, <code>function_score</code> has more than 3 decay functions, the query uses more than one distinct neural <code>query_text</code>, or the response is too large.</p>
|
|
100
|
+
*/
|
|
101
|
+
readonly QUERY_BODY_TOO_LARGE: "queryBodyTooLarge";
|
|
102
|
+
/**
|
|
103
|
+
* <p>A <code>bool</code> query nests more than 5 levels deep, or OpenSearch rejects the query for having too many clauses.</p>
|
|
104
|
+
*/
|
|
105
|
+
readonly QUERY_NESTING_TOO_DEEP: "queryNestingTooDeep";
|
|
106
|
+
/**
|
|
107
|
+
* <p>Reserved. The service doesn't currently return this reason.</p>
|
|
108
|
+
*/
|
|
109
|
+
readonly UNBOUNDED_PATTERN: "unboundedPattern";
|
|
110
|
+
/**
|
|
111
|
+
* <p>The query uses a field that doesn't exist.</p>
|
|
112
|
+
*/
|
|
113
|
+
readonly UNKNOWN_FIELD: "unknownField";
|
|
114
|
+
/**
|
|
115
|
+
* <p>Reserved. The service doesn't currently return this reason.</p>
|
|
116
|
+
*/
|
|
117
|
+
readonly UNSUPPORTED_FIELD: "unsupportedField";
|
|
118
|
+
/**
|
|
119
|
+
* <p>The request uses a parameter that isn't supported.</p>
|
|
120
|
+
*/
|
|
121
|
+
readonly UNSUPPORTED_PARAMETER: "unsupportedParameter";
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
* @enum
|
|
130
|
+
*/
|
|
131
|
+
export declare const MemoryStrategyType: {
|
|
132
|
+
/**
|
|
133
|
+
* <p>Memories extracted with the instructions in the strategy's <code>extractionPrompt</code>.</p> <p>Requires <code>extractionPrompt</code>.</p>
|
|
134
|
+
*/
|
|
135
|
+
readonly CUSTOM: "CUSTOM";
|
|
136
|
+
/**
|
|
137
|
+
* <p>Facts extracted from conversations.</p>
|
|
138
|
+
*/
|
|
139
|
+
readonly SEMANTIC: "SEMANTIC";
|
|
140
|
+
/**
|
|
141
|
+
* <p>Summaries of conversations.</p>
|
|
142
|
+
*/
|
|
143
|
+
readonly SUMMARY: "SUMMARY";
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export type MemoryStrategyType = (typeof MemoryStrategyType)[keyof typeof MemoryStrategyType];
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
* @enum
|
|
152
|
+
*/
|
|
153
|
+
export declare const SpaceStatus: {
|
|
154
|
+
/**
|
|
155
|
+
* <p>The space is ready to use.</p>
|
|
156
|
+
*/
|
|
157
|
+
readonly ACTIVE: "ACTIVE";
|
|
158
|
+
/**
|
|
159
|
+
* <p>The space is being created.</p>
|
|
160
|
+
*/
|
|
161
|
+
readonly CREATING: "CREATING";
|
|
162
|
+
/**
|
|
163
|
+
* <p>Not returned: after a space is deleted, <code>GetSpace</code> returns <code>ResourceNotFoundException</code>.</p>
|
|
164
|
+
*/
|
|
165
|
+
readonly DELETED: "DELETED";
|
|
166
|
+
/**
|
|
167
|
+
* <p>The space is being deleted.</p>
|
|
168
|
+
*/
|
|
169
|
+
readonly DELETING: "DELETING";
|
|
170
|
+
/**
|
|
171
|
+
* <p>Creating, updating, or deleting the space failed. <code>statusReason</code> says why. If creating or updating the space failed, you can delete it. If an update failed, you can also update it again. If deleting it failed, contact AWS Support.</p>
|
|
172
|
+
*/
|
|
173
|
+
readonly FAILED: "FAILED";
|
|
174
|
+
/**
|
|
175
|
+
* <p>A change to the space is being applied.</p>
|
|
176
|
+
*/
|
|
177
|
+
readonly UPDATING: "UPDATING";
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
export type SpaceStatus = (typeof SpaceStatus)[keyof typeof SpaceStatus];
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
* @enum
|
|
186
|
+
*/
|
|
187
|
+
export declare const MemoryType: {
|
|
188
|
+
/**
|
|
189
|
+
* <p>Memories extracted with a custom strategy's instructions.</p>
|
|
190
|
+
*/
|
|
191
|
+
readonly CUSTOM: "CUSTOM";
|
|
192
|
+
/**
|
|
193
|
+
* <p>Facts extracted from conversations.</p>
|
|
194
|
+
*/
|
|
195
|
+
readonly SEMANTIC: "SEMANTIC";
|
|
196
|
+
/**
|
|
197
|
+
* <p>Summaries of conversations.</p>
|
|
198
|
+
*/
|
|
199
|
+
readonly SUMMARY: "SUMMARY";
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
export type MemoryType = (typeof MemoryType)[keyof typeof MemoryType];
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
* @enum
|
|
208
|
+
*/
|
|
209
|
+
export declare const SortOrder: {
|
|
210
|
+
/**
|
|
211
|
+
* <p>Oldest first.</p>
|
|
212
|
+
*/
|
|
213
|
+
readonly ASC: "ASC";
|
|
214
|
+
/**
|
|
215
|
+
* <p>Most recent first.</p>
|
|
216
|
+
*/
|
|
217
|
+
readonly DESC: "DESC";
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
223
|
+
/**
|
|
224
|
+
* @public
|
|
225
|
+
* @enum
|
|
226
|
+
*/
|
|
227
|
+
export declare const MemorySortField: {
|
|
228
|
+
/**
|
|
229
|
+
* <p>Sort by <code>systemMetadata.createdAt</code>.</p>
|
|
230
|
+
*/
|
|
231
|
+
readonly CREATED_AT: "CREATED_AT";
|
|
232
|
+
/**
|
|
233
|
+
* <p>Sort by <code>systemMetadata.updatedAt</code>.</p>
|
|
234
|
+
*/
|
|
235
|
+
readonly UPDATED_AT: "UPDATED_AT";
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export type MemorySortField = (typeof MemorySortField)[keyof typeof MemorySortField];
|
|
241
|
+
/**
|
|
242
|
+
* @public
|
|
243
|
+
* @enum
|
|
244
|
+
*/
|
|
245
|
+
export declare const MetadataMode: {
|
|
246
|
+
/**
|
|
247
|
+
* <p>Merges the supplied entries into the stored metadata. Keys that you don't supply keep their values. An entry whose value is the empty string removes that key.</p>
|
|
248
|
+
*/
|
|
249
|
+
readonly MERGE: "MERGE";
|
|
250
|
+
/**
|
|
251
|
+
* <p>Replace the stored metadata with exactly the entries supplied, removing any key not present. The default.</p>
|
|
252
|
+
*/
|
|
253
|
+
readonly REPLACE: "REPLACE";
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* @public
|
|
257
|
+
*/
|
|
258
|
+
export type MetadataMode = (typeof MetadataMode)[keyof typeof MetadataMode];
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
+
import type { ValidationExceptionReason } from "./enums";
|
|
3
|
+
import type { ValidationExceptionField } from "./models_0";
|
|
4
|
+
import { OpenSearchMemoryServiceException as __BaseException } from "./OpenSearchMemoryServiceException";
|
|
5
|
+
/**
|
|
6
|
+
* <p>You don't have sufficient access to perform this operation. To use this operation, you must have AWS Identity and Access Management (IAM) permissions for the operation, and on the resource it acts on. If the space uses a customer managed AWS Key Management Service (AWS KMS) key, you must also have permission to use the key.</p>
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
10
|
+
static readonly shapeId: string;
|
|
11
|
+
readonly name: "AccessDeniedException";
|
|
12
|
+
readonly $fault: "client";
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* <p>The service couldn't process the request because of an internal error. Retry the request.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export declare class InternalServerException extends __BaseException {
|
|
23
|
+
static readonly shapeId: string;
|
|
24
|
+
readonly name: "InternalServerException";
|
|
25
|
+
readonly $fault: "server";
|
|
26
|
+
$retryable: {};
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* <p>The specified resource doesn't exist. Check the IDs in the request.</p>
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
37
|
+
static readonly shapeId: string;
|
|
38
|
+
readonly name: "ResourceNotFoundException";
|
|
39
|
+
readonly $fault: "client";
|
|
40
|
+
/**
|
|
41
|
+
* <p>The ID of the resource that wasn't found.</p>
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
resourceId?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* <p>The type of the resource that wasn't found.</p>
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
resourceType?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* <p>The service throttled the request. Retry the request with exponential backoff.</p>
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export declare class ThrottlingException extends __BaseException {
|
|
60
|
+
static readonly shapeId: string;
|
|
61
|
+
readonly name: "ThrottlingException";
|
|
62
|
+
readonly $fault: "client";
|
|
63
|
+
$retryable: {
|
|
64
|
+
throttling: boolean;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* <p>The number of seconds to wait before you retry the request.</p>
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
retryAfterSeconds?: number | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* <p>The request isn't valid. The <code>reason</code>, <code>message</code>, and <code>fieldList</code> members describe the problem. Fix the request, and then try again.</p>
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class ValidationException extends __BaseException {
|
|
81
|
+
static readonly shapeId: string;
|
|
82
|
+
readonly name: "ValidationException";
|
|
83
|
+
readonly $fault: "client";
|
|
84
|
+
/**
|
|
85
|
+
* <p>The reason that the request failed validation.</p>
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
reason?: ValidationExceptionReason | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* <p>The fields that failed validation, if any.</p>
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
fieldList?: ValidationExceptionField[] | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* <p>The request conflicts with the current state of the resource. For example, the space is being created, updated, or deleted, a space with the same name already exists, or you reused a client token with different parameters. Wait for the space to finish being created, updated, or deleted, or use a different name or client token, and then retry.</p>
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class ConflictException extends __BaseException {
|
|
104
|
+
static readonly shapeId: string;
|
|
105
|
+
readonly name: "ConflictException";
|
|
106
|
+
readonly $fault: "client";
|
|
107
|
+
/**
|
|
108
|
+
* <p>The ID of the resource that caused the conflict.</p>
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
resourceId?: string | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* <p>The type of the resource that caused the conflict.</p>
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
resourceType?: string | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* <p>The request would exceed a quota, such as the number of spaces in your account or the number of strategies in a space.</p>
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
127
|
+
static readonly shapeId: string;
|
|
128
|
+
readonly name: "ServiceQuotaExceededException";
|
|
129
|
+
readonly $fault: "client";
|
|
130
|
+
/**
|
|
131
|
+
* <p>The Service Quotas code of the quota that the request would exceed. Not currently returned.</p>
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
quotaCode?: string | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* <p>The Service Quotas code of the service. Not currently returned.</p>
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
serviceCode?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
144
|
+
}
|