@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,459 @@
|
|
|
1
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
BatchGetEventErrorCode,
|
|
4
|
+
BlobContentType,
|
|
5
|
+
MemorySortField,
|
|
6
|
+
MemoryStrategyType,
|
|
7
|
+
MemoryType,
|
|
8
|
+
MessageRole,
|
|
9
|
+
MetadataMode,
|
|
10
|
+
SortOrder,
|
|
11
|
+
SpaceStatus,
|
|
12
|
+
} from "./enums";
|
|
13
|
+
export interface BatchGetEventInput {
|
|
14
|
+
spaceId: string | undefined;
|
|
15
|
+
actorId?: string | undefined;
|
|
16
|
+
sessionId?: string | undefined;
|
|
17
|
+
eventIds: string[] | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface BatchGetEventError {
|
|
20
|
+
eventId: string | undefined;
|
|
21
|
+
errorCode: BatchGetEventErrorCode | undefined;
|
|
22
|
+
message: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface S3Location {
|
|
25
|
+
uri: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export type BlobSource = BlobSource.S3LocationMember | BlobSource.$UnknownMember;
|
|
28
|
+
export declare namespace BlobSource {
|
|
29
|
+
interface S3LocationMember {
|
|
30
|
+
s3Location: S3Location;
|
|
31
|
+
$unknown?: never;
|
|
32
|
+
}
|
|
33
|
+
interface $UnknownMember {
|
|
34
|
+
s3Location?: never;
|
|
35
|
+
$unknown: [string, any];
|
|
36
|
+
}
|
|
37
|
+
interface Visitor<T> {
|
|
38
|
+
s3Location: (value: S3Location) => T;
|
|
39
|
+
_: (name: string, value: any) => T;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export interface BlobPayload {
|
|
43
|
+
contentType: BlobContentType | undefined;
|
|
44
|
+
source: BlobSource | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface MessageContent {
|
|
47
|
+
text: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface Message {
|
|
50
|
+
role: MessageRole | undefined;
|
|
51
|
+
content: MessageContent | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface UnifiedConversationalObject {
|
|
54
|
+
messages: Message[] | undefined;
|
|
55
|
+
}
|
|
56
|
+
export type UnifiedConversationalSource =
|
|
57
|
+
| UnifiedConversationalSource.ObjectMember
|
|
58
|
+
| UnifiedConversationalSource.$UnknownMember;
|
|
59
|
+
export declare namespace UnifiedConversationalSource {
|
|
60
|
+
interface ObjectMember {
|
|
61
|
+
object: UnifiedConversationalObject;
|
|
62
|
+
$unknown?: never;
|
|
63
|
+
}
|
|
64
|
+
interface $UnknownMember {
|
|
65
|
+
object?: never;
|
|
66
|
+
$unknown: [string, any];
|
|
67
|
+
}
|
|
68
|
+
interface Visitor<T> {
|
|
69
|
+
object: (value: UnifiedConversationalObject) => T;
|
|
70
|
+
_: (name: string, value: any) => T;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export interface UnifiedConversational {
|
|
74
|
+
source: UnifiedConversationalSource | undefined;
|
|
75
|
+
}
|
|
76
|
+
export type ConversationalPayload =
|
|
77
|
+
| ConversationalPayload.UnifiedMember
|
|
78
|
+
| ConversationalPayload.$UnknownMember;
|
|
79
|
+
export declare namespace ConversationalPayload {
|
|
80
|
+
interface UnifiedMember {
|
|
81
|
+
unified: UnifiedConversational;
|
|
82
|
+
$unknown?: never;
|
|
83
|
+
}
|
|
84
|
+
interface $UnknownMember {
|
|
85
|
+
unified?: never;
|
|
86
|
+
$unknown: [string, any];
|
|
87
|
+
}
|
|
88
|
+
interface Visitor<T> {
|
|
89
|
+
unified: (value: UnifiedConversational) => T;
|
|
90
|
+
_: (name: string, value: any) => T;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export type StructuredDataSource =
|
|
94
|
+
| StructuredDataSource.JsonMember
|
|
95
|
+
| StructuredDataSource.$UnknownMember;
|
|
96
|
+
export declare namespace StructuredDataSource {
|
|
97
|
+
interface JsonMember {
|
|
98
|
+
json: __DocumentType;
|
|
99
|
+
$unknown?: never;
|
|
100
|
+
}
|
|
101
|
+
interface $UnknownMember {
|
|
102
|
+
json?: never;
|
|
103
|
+
$unknown: [string, any];
|
|
104
|
+
}
|
|
105
|
+
interface Visitor<T> {
|
|
106
|
+
json: (value: __DocumentType) => T;
|
|
107
|
+
_: (name: string, value: any) => T;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export interface StructuredDataPayload {
|
|
111
|
+
source: StructuredDataSource | undefined;
|
|
112
|
+
}
|
|
113
|
+
export type EventPayload =
|
|
114
|
+
| EventPayload.BlobMember
|
|
115
|
+
| EventPayload.ConversationalMember
|
|
116
|
+
| EventPayload.StructuredDataMember
|
|
117
|
+
| EventPayload.$UnknownMember;
|
|
118
|
+
export declare namespace EventPayload {
|
|
119
|
+
interface ConversationalMember {
|
|
120
|
+
conversational: ConversationalPayload;
|
|
121
|
+
structuredData?: never;
|
|
122
|
+
blob?: never;
|
|
123
|
+
$unknown?: never;
|
|
124
|
+
}
|
|
125
|
+
interface StructuredDataMember {
|
|
126
|
+
conversational?: never;
|
|
127
|
+
structuredData: StructuredDataPayload;
|
|
128
|
+
blob?: never;
|
|
129
|
+
$unknown?: never;
|
|
130
|
+
}
|
|
131
|
+
interface BlobMember {
|
|
132
|
+
conversational?: never;
|
|
133
|
+
structuredData?: never;
|
|
134
|
+
blob: BlobPayload;
|
|
135
|
+
$unknown?: never;
|
|
136
|
+
}
|
|
137
|
+
interface $UnknownMember {
|
|
138
|
+
conversational?: never;
|
|
139
|
+
structuredData?: never;
|
|
140
|
+
blob?: never;
|
|
141
|
+
$unknown: [string, any];
|
|
142
|
+
}
|
|
143
|
+
interface Visitor<T> {
|
|
144
|
+
conversational: (value: ConversationalPayload) => T;
|
|
145
|
+
structuredData: (value: StructuredDataPayload) => T;
|
|
146
|
+
blob: (value: BlobPayload) => T;
|
|
147
|
+
_: (name: string, value: any) => T;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export interface Event {
|
|
151
|
+
eventId: string | undefined;
|
|
152
|
+
spaceId: string | undefined;
|
|
153
|
+
actorId: string | undefined;
|
|
154
|
+
sessionId: string | undefined;
|
|
155
|
+
payload: EventPayload | undefined;
|
|
156
|
+
metadata?: Record<string, string> | undefined;
|
|
157
|
+
eventTimestamp: Date | undefined;
|
|
158
|
+
}
|
|
159
|
+
export interface BatchGetEventOutput {
|
|
160
|
+
events: Event[] | undefined;
|
|
161
|
+
errors: BatchGetEventError[] | undefined;
|
|
162
|
+
}
|
|
163
|
+
export interface ValidationExceptionField {
|
|
164
|
+
name: string | undefined;
|
|
165
|
+
message: string | undefined;
|
|
166
|
+
}
|
|
167
|
+
export interface CreateEventInput {
|
|
168
|
+
spaceId: string | undefined;
|
|
169
|
+
actorId: string | undefined;
|
|
170
|
+
sessionId?: string | undefined;
|
|
171
|
+
eventTimestamp?: Date | undefined;
|
|
172
|
+
payload: EventPayload | undefined;
|
|
173
|
+
metadata?: Record<string, string> | undefined;
|
|
174
|
+
clientToken?: string | undefined;
|
|
175
|
+
infer?: boolean | undefined;
|
|
176
|
+
}
|
|
177
|
+
export interface EventDetail {
|
|
178
|
+
eventId: string | undefined;
|
|
179
|
+
spaceId: string | undefined;
|
|
180
|
+
actorId: string | undefined;
|
|
181
|
+
sessionId: string | undefined;
|
|
182
|
+
eventTimestamp: Date | undefined;
|
|
183
|
+
}
|
|
184
|
+
export interface CreateEventOutput {
|
|
185
|
+
event: EventDetail | undefined;
|
|
186
|
+
}
|
|
187
|
+
export interface CreateMemoryInput {
|
|
188
|
+
spaceId: string | undefined;
|
|
189
|
+
name: string | undefined;
|
|
190
|
+
content: string | undefined;
|
|
191
|
+
actorId: string | undefined;
|
|
192
|
+
sessionId?: string | undefined;
|
|
193
|
+
metadata?: Record<string, string> | undefined;
|
|
194
|
+
clientToken?: string | undefined;
|
|
195
|
+
}
|
|
196
|
+
export interface CreateMemoryDetail {
|
|
197
|
+
memoryId: string | undefined;
|
|
198
|
+
spaceId: string | undefined;
|
|
199
|
+
name: string | undefined;
|
|
200
|
+
actorId: string | undefined;
|
|
201
|
+
sessionId: string | undefined;
|
|
202
|
+
}
|
|
203
|
+
export interface CreateMemoryOutput {
|
|
204
|
+
memory: CreateMemoryDetail | undefined;
|
|
205
|
+
}
|
|
206
|
+
export interface EncryptionConfiguration {
|
|
207
|
+
kmsKeyArn?: string | undefined;
|
|
208
|
+
}
|
|
209
|
+
export interface MemoryStrategyConfiguration {
|
|
210
|
+
extractionPrompt?: string | undefined;
|
|
211
|
+
extractEveryNMessages?: number | undefined;
|
|
212
|
+
extractEveryNTokens?: number | undefined;
|
|
213
|
+
idleTimeoutSeconds?: number | undefined;
|
|
214
|
+
extractionSeedTopK?: number | undefined;
|
|
215
|
+
extractionSeedRecentN?: number | undefined;
|
|
216
|
+
consolidationEnabled?: boolean | undefined;
|
|
217
|
+
}
|
|
218
|
+
export interface MemoryStrategy {
|
|
219
|
+
type: MemoryStrategyType | undefined;
|
|
220
|
+
name?: string | undefined;
|
|
221
|
+
description?: string | undefined;
|
|
222
|
+
configuration?: MemoryStrategyConfiguration | undefined;
|
|
223
|
+
}
|
|
224
|
+
export interface Tag {
|
|
225
|
+
key: string | undefined;
|
|
226
|
+
value: string | undefined;
|
|
227
|
+
}
|
|
228
|
+
export interface CreateSpaceRequest {
|
|
229
|
+
name: string | undefined;
|
|
230
|
+
memoryStrategies?: MemoryStrategy[] | undefined;
|
|
231
|
+
eventExpiryDays?: number | undefined;
|
|
232
|
+
memoryExpiryDays?: number | undefined;
|
|
233
|
+
extractionModelId?: string | undefined;
|
|
234
|
+
encryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
235
|
+
tags?: Tag[] | undefined;
|
|
236
|
+
clientToken?: string | undefined;
|
|
237
|
+
}
|
|
238
|
+
export interface CreateSpaceResponse {
|
|
239
|
+
spaceId: string | undefined;
|
|
240
|
+
arn: string | undefined;
|
|
241
|
+
name: string | undefined;
|
|
242
|
+
status: SpaceStatus | undefined;
|
|
243
|
+
createdAt: Date | undefined;
|
|
244
|
+
}
|
|
245
|
+
export interface DeleteEventInput {
|
|
246
|
+
spaceId: string | undefined;
|
|
247
|
+
eventId: string | undefined;
|
|
248
|
+
actorId?: string | undefined;
|
|
249
|
+
sessionId?: string | undefined;
|
|
250
|
+
}
|
|
251
|
+
export interface DeleteEventOutput {
|
|
252
|
+
eventId: string | undefined;
|
|
253
|
+
}
|
|
254
|
+
export interface DeleteMemoryInput {
|
|
255
|
+
spaceId: string | undefined;
|
|
256
|
+
memoryId: string | undefined;
|
|
257
|
+
actorId?: string | undefined;
|
|
258
|
+
strategyName?: string | undefined;
|
|
259
|
+
}
|
|
260
|
+
export interface DeleteMemoryOutput {
|
|
261
|
+
memoryId: string | undefined;
|
|
262
|
+
}
|
|
263
|
+
export interface DeleteSpaceRequest {
|
|
264
|
+
spaceId: string | undefined;
|
|
265
|
+
}
|
|
266
|
+
export interface DeleteSpaceResponse {
|
|
267
|
+
spaceId: string | undefined;
|
|
268
|
+
status: SpaceStatus | undefined;
|
|
269
|
+
}
|
|
270
|
+
export interface SystemMetadata {
|
|
271
|
+
actorId?: string | undefined;
|
|
272
|
+
sessionId?: string | undefined;
|
|
273
|
+
createdAt?: Date | undefined;
|
|
274
|
+
updatedAt?: Date | undefined;
|
|
275
|
+
}
|
|
276
|
+
export interface EventSearchSummary {
|
|
277
|
+
eventId: string | undefined;
|
|
278
|
+
score?: number | undefined;
|
|
279
|
+
systemMetadata?: SystemMetadata | undefined;
|
|
280
|
+
metadata?: Record<string, string> | undefined;
|
|
281
|
+
matchedContent?: string | undefined;
|
|
282
|
+
}
|
|
283
|
+
export interface EventSummary {
|
|
284
|
+
eventId: string | undefined;
|
|
285
|
+
metadata?: Record<string, string> | undefined;
|
|
286
|
+
eventTimestamp: Date | undefined;
|
|
287
|
+
}
|
|
288
|
+
export interface GetEventInput {
|
|
289
|
+
spaceId: string | undefined;
|
|
290
|
+
eventId: string | undefined;
|
|
291
|
+
actorId?: string | undefined;
|
|
292
|
+
sessionId?: string | undefined;
|
|
293
|
+
}
|
|
294
|
+
export interface GetEventOutput {
|
|
295
|
+
event: Event | undefined;
|
|
296
|
+
}
|
|
297
|
+
export interface GetMemoryInput {
|
|
298
|
+
spaceId: string | undefined;
|
|
299
|
+
memoryId: string | undefined;
|
|
300
|
+
actorId?: string | undefined;
|
|
301
|
+
strategyName?: string | undefined;
|
|
302
|
+
}
|
|
303
|
+
export interface Memory {
|
|
304
|
+
memoryId: string | undefined;
|
|
305
|
+
memoryType: MemoryType | undefined;
|
|
306
|
+
strategyName?: string | undefined;
|
|
307
|
+
content: string | undefined;
|
|
308
|
+
systemMetadata: SystemMetadata | undefined;
|
|
309
|
+
metadata?: Record<string, string> | undefined;
|
|
310
|
+
}
|
|
311
|
+
export interface GetMemoryOutput {
|
|
312
|
+
memory: Memory | undefined;
|
|
313
|
+
}
|
|
314
|
+
export interface GetSpaceRequest {
|
|
315
|
+
spaceId: string | undefined;
|
|
316
|
+
}
|
|
317
|
+
export interface GetSpaceResponse {
|
|
318
|
+
spaceId: string | undefined;
|
|
319
|
+
arn: string | undefined;
|
|
320
|
+
name: string | undefined;
|
|
321
|
+
status: SpaceStatus | undefined;
|
|
322
|
+
statusReason?: string | undefined;
|
|
323
|
+
createdAt: Date | undefined;
|
|
324
|
+
memoryStrategies?: MemoryStrategy[] | undefined;
|
|
325
|
+
eventExpiryDays?: number | undefined;
|
|
326
|
+
memoryExpiryDays?: number | undefined;
|
|
327
|
+
extractionModelId?: string | undefined;
|
|
328
|
+
encryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
329
|
+
}
|
|
330
|
+
export interface ListEventsInput {
|
|
331
|
+
spaceId: string | undefined;
|
|
332
|
+
actorId: string | undefined;
|
|
333
|
+
sessionId: string | undefined;
|
|
334
|
+
eventTimestampBefore?: Date | undefined;
|
|
335
|
+
eventTimestampAfter?: Date | undefined;
|
|
336
|
+
sortOrder?: SortOrder | undefined;
|
|
337
|
+
metadataFilters?: Record<string, string> | undefined;
|
|
338
|
+
maxResults?: number | undefined;
|
|
339
|
+
nextToken?: string | undefined;
|
|
340
|
+
}
|
|
341
|
+
export interface ListEventsOutput {
|
|
342
|
+
events: EventSummary[] | undefined;
|
|
343
|
+
nextToken?: string | undefined;
|
|
344
|
+
}
|
|
345
|
+
export interface StrategySelector {
|
|
346
|
+
memoryType: MemoryType | undefined;
|
|
347
|
+
memoryStrategyNames?: string[] | undefined;
|
|
348
|
+
}
|
|
349
|
+
export interface ListMemoriesInput {
|
|
350
|
+
spaceId: string | undefined;
|
|
351
|
+
memoryStrategies?: StrategySelector[] | undefined;
|
|
352
|
+
actorIds?: string[] | undefined;
|
|
353
|
+
sessionIds?: string[] | undefined;
|
|
354
|
+
sortBy?: MemorySortField | undefined;
|
|
355
|
+
sortOrder?: SortOrder | undefined;
|
|
356
|
+
maxResults?: number | undefined;
|
|
357
|
+
nextToken?: string | undefined;
|
|
358
|
+
}
|
|
359
|
+
export interface MemoryListSummary {
|
|
360
|
+
memoryId: string | undefined;
|
|
361
|
+
memoryType: MemoryType | undefined;
|
|
362
|
+
strategyName?: string | undefined;
|
|
363
|
+
systemMetadata: SystemMetadata | undefined;
|
|
364
|
+
metadata?: Record<string, string> | undefined;
|
|
365
|
+
}
|
|
366
|
+
export interface ListMemoriesOutput {
|
|
367
|
+
memories: MemoryListSummary[] | undefined;
|
|
368
|
+
nextToken?: string | undefined;
|
|
369
|
+
}
|
|
370
|
+
export interface ListSpacesRequest {
|
|
371
|
+
maxResults?: number | undefined;
|
|
372
|
+
nextToken?: string | undefined;
|
|
373
|
+
}
|
|
374
|
+
export interface SpaceSummary {
|
|
375
|
+
spaceId: string | undefined;
|
|
376
|
+
arn: string | undefined;
|
|
377
|
+
name: string | undefined;
|
|
378
|
+
status: SpaceStatus | undefined;
|
|
379
|
+
createdAt: Date | undefined;
|
|
380
|
+
}
|
|
381
|
+
export interface ListSpacesResponse {
|
|
382
|
+
spaces: SpaceSummary[] | undefined;
|
|
383
|
+
nextToken?: string | undefined;
|
|
384
|
+
}
|
|
385
|
+
export interface ListTagsForResourceRequest {
|
|
386
|
+
resourceArn: string | undefined;
|
|
387
|
+
}
|
|
388
|
+
export interface ListTagsForResourceResponse {
|
|
389
|
+
tags?: Tag[] | undefined;
|
|
390
|
+
}
|
|
391
|
+
export interface MemorySearchSummary {
|
|
392
|
+
memoryId: string | undefined;
|
|
393
|
+
memoryType?: MemoryType | undefined;
|
|
394
|
+
strategyName?: string | undefined;
|
|
395
|
+
content?: string | undefined;
|
|
396
|
+
score?: number | undefined;
|
|
397
|
+
systemMetadata?: SystemMetadata | undefined;
|
|
398
|
+
metadata?: Record<string, string> | undefined;
|
|
399
|
+
sourceEventIds?: string[] | undefined;
|
|
400
|
+
}
|
|
401
|
+
export interface SearchEventsInput {
|
|
402
|
+
spaceId: string | undefined;
|
|
403
|
+
actorId: string | undefined;
|
|
404
|
+
sessionIds?: string[] | undefined;
|
|
405
|
+
query: __DocumentType | undefined;
|
|
406
|
+
sort?: __DocumentType | undefined;
|
|
407
|
+
maxResults?: number | undefined;
|
|
408
|
+
nextToken?: string | undefined;
|
|
409
|
+
}
|
|
410
|
+
export interface SearchEventsOutput {
|
|
411
|
+
events: EventSearchSummary[] | undefined;
|
|
412
|
+
nextToken?: string | undefined;
|
|
413
|
+
}
|
|
414
|
+
export interface SearchMemoriesInput {
|
|
415
|
+
spaceId: string | undefined;
|
|
416
|
+
memoryStrategies?: StrategySelector[] | undefined;
|
|
417
|
+
actorId: string | undefined;
|
|
418
|
+
query: __DocumentType | undefined;
|
|
419
|
+
sort?: __DocumentType | undefined;
|
|
420
|
+
maxResults?: number | undefined;
|
|
421
|
+
nextToken?: string | undefined;
|
|
422
|
+
}
|
|
423
|
+
export interface SearchMemoriesOutput {
|
|
424
|
+
memories: MemorySearchSummary[] | undefined;
|
|
425
|
+
nextToken?: string | undefined;
|
|
426
|
+
}
|
|
427
|
+
export interface UpdateMemoryInput {
|
|
428
|
+
spaceId: string | undefined;
|
|
429
|
+
memoryId: string | undefined;
|
|
430
|
+
content?: string | undefined;
|
|
431
|
+
metadata?: Record<string, string> | undefined;
|
|
432
|
+
metadataMode?: MetadataMode | undefined;
|
|
433
|
+
actorId?: string | undefined;
|
|
434
|
+
strategyName?: string | undefined;
|
|
435
|
+
}
|
|
436
|
+
export interface UpdateMemoryOutput {
|
|
437
|
+
memory: Memory | undefined;
|
|
438
|
+
}
|
|
439
|
+
export interface UpdateSpaceRequest {
|
|
440
|
+
spaceId: string | undefined;
|
|
441
|
+
memoryStrategies?: MemoryStrategy[] | undefined;
|
|
442
|
+
eventExpiryDays?: number | undefined;
|
|
443
|
+
memoryExpiryDays?: number | undefined;
|
|
444
|
+
extractionModelId?: string | undefined;
|
|
445
|
+
}
|
|
446
|
+
export interface UpdateSpaceResponse {
|
|
447
|
+
spaceId: string | undefined;
|
|
448
|
+
status: SpaceStatus | undefined;
|
|
449
|
+
}
|
|
450
|
+
export interface TagResourceRequest {
|
|
451
|
+
resourceArn: string | undefined;
|
|
452
|
+
tags: Tag[] | undefined;
|
|
453
|
+
}
|
|
454
|
+
export interface TagResourceResponse {}
|
|
455
|
+
export interface UntagResourceRequest {
|
|
456
|
+
resourceArn: string | undefined;
|
|
457
|
+
tagKeys: string[] | undefined;
|
|
458
|
+
}
|
|
459
|
+
export interface UntagResourceResponse {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListEventsCommandInput, ListEventsCommandOutput } from "../commands/ListEventsCommand";
|
|
3
|
+
import { OpenSearchMemoryPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare const paginateListEvents: (
|
|
5
|
+
config: OpenSearchMemoryPaginationConfiguration,
|
|
6
|
+
input: ListEventsCommandInput,
|
|
7
|
+
...rest: any[]
|
|
8
|
+
) => Paginator<ListEventsCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListMemoriesCommandInput,
|
|
4
|
+
ListMemoriesCommandOutput,
|
|
5
|
+
} from "../commands/ListMemoriesCommand";
|
|
6
|
+
import { OpenSearchMemoryPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListMemories: (
|
|
8
|
+
config: OpenSearchMemoryPaginationConfiguration,
|
|
9
|
+
input: ListMemoriesCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListMemoriesCommandOutput>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListSpacesCommandInput, ListSpacesCommandOutput } from "../commands/ListSpacesCommand";
|
|
3
|
+
import { OpenSearchMemoryPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare const paginateListSpaces: (
|
|
5
|
+
config: OpenSearchMemoryPaginationConfiguration,
|
|
6
|
+
input: ListSpacesCommandInput,
|
|
7
|
+
...rest: any[]
|
|
8
|
+
) => Paginator<ListSpacesCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
SearchEventsCommandInput,
|
|
4
|
+
SearchEventsCommandOutput,
|
|
5
|
+
} from "../commands/SearchEventsCommand";
|
|
6
|
+
import { OpenSearchMemoryPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateSearchEvents: (
|
|
8
|
+
config: OpenSearchMemoryPaginationConfiguration,
|
|
9
|
+
input: SearchEventsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<SearchEventsCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
SearchMemoriesCommandInput,
|
|
4
|
+
SearchMemoriesCommandOutput,
|
|
5
|
+
} from "../commands/SearchMemoriesCommand";
|
|
6
|
+
import { OpenSearchMemoryPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateSearchMemories: (
|
|
8
|
+
config: OpenSearchMemoryPaginationConfiguration,
|
|
9
|
+
input: SearchMemoriesCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<SearchMemoriesCommandOutput>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { OpenSearchMemoryClientConfig } from "./OpenSearchMemoryClient";
|
|
3
|
+
export declare const getRuntimeConfig: (config: OpenSearchMemoryClientConfig) => {
|
|
4
|
+
cacheMiddleware?: boolean;
|
|
5
|
+
endpoint?:
|
|
6
|
+
| ((
|
|
7
|
+
| string
|
|
8
|
+
| import("@smithy/types").Endpoint
|
|
9
|
+
| import("@smithy/types").EndpointV2
|
|
10
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
11
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
12
|
+
) &
|
|
13
|
+
(
|
|
14
|
+
| string
|
|
15
|
+
| import("@smithy/types").Endpoint
|
|
16
|
+
| import("@smithy/types").EndpointV2
|
|
17
|
+
| import("@smithy/types").Provider<string>
|
|
18
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
19
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
20
|
+
))
|
|
21
|
+
| undefined;
|
|
22
|
+
tls?: boolean;
|
|
23
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
24
|
+
serviceConfiguredEndpoint?: never;
|
|
25
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
26
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
27
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
28
|
+
credentials?:
|
|
29
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
30
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
31
|
+
signer?:
|
|
32
|
+
| import("@smithy/types").RequestSigner
|
|
33
|
+
| ((
|
|
34
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
35
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
36
|
+
signingEscapePath?: boolean;
|
|
37
|
+
systemClockOffset?: number;
|
|
38
|
+
signingRegion?: string;
|
|
39
|
+
signerConstructor?: new (
|
|
40
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
41
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
42
|
+
) => import("@smithy/types").RequestSigner;
|
|
43
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
44
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
|
+
apiVersion: string;
|
|
46
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
47
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
48
|
+
disableHostPrefix: boolean;
|
|
49
|
+
endpointProvider: (
|
|
50
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
51
|
+
context?: {
|
|
52
|
+
logger?: import("@smithy/types").Logger;
|
|
53
|
+
},
|
|
54
|
+
) => import("@smithy/types").EndpointV2;
|
|
55
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
56
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").OpenSearchMemoryHttpAuthSchemeProvider;
|
|
57
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
58
|
+
logger: import("@smithy/types").Logger;
|
|
59
|
+
protocol:
|
|
60
|
+
| import("@smithy/types").$ClientProtocol<any, any>
|
|
61
|
+
| import("@smithy/types").$ClientProtocolCtor<any, any>
|
|
62
|
+
| typeof import("@aws-sdk/core/protocols").AwsJson1_0Protocol;
|
|
63
|
+
protocolSettings: {
|
|
64
|
+
[setting: string]: unknown;
|
|
65
|
+
defaultNamespace?: string;
|
|
66
|
+
};
|
|
67
|
+
serviceId: string;
|
|
68
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
69
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
70
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
71
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
72
|
+
profile?: string;
|
|
73
|
+
runtime: string;
|
|
74
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
75
|
+
import("@smithy/core/client").ResolvedDefaultsMode
|
|
76
|
+
>;
|
|
77
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
78
|
+
credentialDefaultProvider:
|
|
79
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
80
|
+
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
81
|
+
defaultUserAgentProvider: (
|
|
82
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
83
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
84
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
85
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
86
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
87
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
88
|
+
streamCollector: (
|
|
89
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
90
|
+
) => Promise<Uint8Array>;
|
|
91
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
92
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
93
|
+
};
|