@aws-sdk/client-opensearchmemory 0.0.0-stage → 3.1171.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.
Files changed (157) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +320 -2
  3. package/dist-cjs/index.js +1550 -0
  4. package/dist-es/OpenSearchMemory.js +65 -0
  5. package/dist-es/OpenSearchMemoryClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +9 -0
  9. package/dist-es/commands/BatchGetEventCommand.js +4 -0
  10. package/dist-es/commands/CreateEventCommand.js +4 -0
  11. package/dist-es/commands/CreateMemoryCommand.js +4 -0
  12. package/dist-es/commands/CreateSpaceCommand.js +4 -0
  13. package/dist-es/commands/DeleteEventCommand.js +4 -0
  14. package/dist-es/commands/DeleteMemoryCommand.js +4 -0
  15. package/dist-es/commands/DeleteSpaceCommand.js +4 -0
  16. package/dist-es/commands/GetEventCommand.js +4 -0
  17. package/dist-es/commands/GetMemoryCommand.js +4 -0
  18. package/dist-es/commands/GetSpaceCommand.js +4 -0
  19. package/dist-es/commands/ListEventsCommand.js +4 -0
  20. package/dist-es/commands/ListMemoriesCommand.js +4 -0
  21. package/dist-es/commands/ListSpacesCommand.js +4 -0
  22. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  23. package/dist-es/commands/SearchEventsCommand.js +4 -0
  24. package/dist-es/commands/SearchMemoriesCommand.js +4 -0
  25. package/dist-es/commands/TagResourceCommand.js +4 -0
  26. package/dist-es/commands/UntagResourceCommand.js +4 -0
  27. package/dist-es/commands/UpdateMemoryCommand.js +4 -0
  28. package/dist-es/commands/UpdateSpaceCommand.js +4 -0
  29. package/dist-es/commands/index.js +20 -0
  30. package/dist-es/endpoint/EndpointParameters.js +11 -0
  31. package/dist-es/endpoint/bdd.js +33 -0
  32. package/dist-es/endpoint/endpointResolver.js +14 -0
  33. package/dist-es/extensionConfiguration.js +1 -0
  34. package/dist-es/index.js +11 -0
  35. package/dist-es/models/OpenSearchMemoryServiceException.js +9 -0
  36. package/dist-es/models/enums.js +61 -0
  37. package/dist-es/models/errors.js +114 -0
  38. package/dist-es/models/models_0.js +1 -0
  39. package/dist-es/pagination/Interfaces.js +1 -0
  40. package/dist-es/pagination/ListEventsPaginator.js +4 -0
  41. package/dist-es/pagination/ListMemoriesPaginator.js +4 -0
  42. package/dist-es/pagination/ListSpacesPaginator.js +4 -0
  43. package/dist-es/pagination/SearchEventsPaginator.js +4 -0
  44. package/dist-es/pagination/SearchMemoriesPaginator.js +4 -0
  45. package/dist-es/pagination/index.js +6 -0
  46. package/dist-es/runtimeConfig.browser.js +29 -0
  47. package/dist-es/runtimeConfig.js +44 -0
  48. package/dist-es/runtimeConfig.native.js +9 -0
  49. package/dist-es/runtimeConfig.shared.js +40 -0
  50. package/dist-es/runtimeExtensions.js +9 -0
  51. package/dist-es/schemas/schemas_0.js +720 -0
  52. package/dist-es/waiters/index.js +2 -0
  53. package/dist-es/waiters/waitForSpaceActive.js +79 -0
  54. package/dist-es/waiters/waitForSpaceDeleted.js +52 -0
  55. package/dist-types/OpenSearchMemory.d.ts +206 -0
  56. package/dist-types/OpenSearchMemoryClient.d.ts +207 -0
  57. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  58. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  59. package/dist-types/commandBuilder.d.ts +22 -0
  60. package/dist-types/commands/BatchGetEventCommand.d.ts +140 -0
  61. package/dist-types/commands/CreateEventCommand.d.ts +134 -0
  62. package/dist-types/commands/CreateMemoryCommand.d.ts +103 -0
  63. package/dist-types/commands/CreateSpaceCommand.d.ts +122 -0
  64. package/dist-types/commands/DeleteEventCommand.d.ts +89 -0
  65. package/dist-types/commands/DeleteMemoryCommand.d.ts +89 -0
  66. package/dist-types/commands/DeleteSpaceCommand.d.ts +90 -0
  67. package/dist-types/commands/GetEventCommand.d.ts +129 -0
  68. package/dist-types/commands/GetMemoryCommand.d.ts +103 -0
  69. package/dist-types/commands/GetSpaceCommand.d.ts +113 -0
  70. package/dist-types/commands/ListEventsCommand.d.ts +105 -0
  71. package/dist-types/commands/ListMemoriesCommand.d.ts +120 -0
  72. package/dist-types/commands/ListSpacesCommand.d.ts +93 -0
  73. package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
  74. package/dist-types/commands/SearchEventsCommand.d.ts +110 -0
  75. package/dist-types/commands/SearchMemoriesCommand.d.ts +120 -0
  76. package/dist-types/commands/TagResourceCommand.d.ts +90 -0
  77. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  78. package/dist-types/commands/UpdateMemoryCommand.d.ts +111 -0
  79. package/dist-types/commands/UpdateSpaceCommand.d.ts +112 -0
  80. package/dist-types/commands/index.d.ts +20 -0
  81. package/dist-types/endpoint/EndpointParameters.d.ts +45 -0
  82. package/dist-types/endpoint/bdd.d.ts +2 -0
  83. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  84. package/dist-types/extensionConfiguration.d.ts +9 -0
  85. package/dist-types/index.d.ts +19 -0
  86. package/dist-types/models/OpenSearchMemoryServiceException.d.ts +15 -0
  87. package/dist-types/models/enums.d.ts +258 -0
  88. package/dist-types/models/errors.d.ts +144 -0
  89. package/dist-types/models/models_0.d.ts +1629 -0
  90. package/dist-types/pagination/Interfaces.d.ts +8 -0
  91. package/dist-types/pagination/ListEventsPaginator.d.ts +7 -0
  92. package/dist-types/pagination/ListMemoriesPaginator.d.ts +7 -0
  93. package/dist-types/pagination/ListSpacesPaginator.d.ts +7 -0
  94. package/dist-types/pagination/SearchEventsPaginator.d.ts +7 -0
  95. package/dist-types/pagination/SearchMemoriesPaginator.d.ts +7 -0
  96. package/dist-types/pagination/index.d.ts +6 -0
  97. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  98. package/dist-types/runtimeConfig.d.ts +58 -0
  99. package/dist-types/runtimeConfig.native.d.ts +56 -0
  100. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  101. package/dist-types/runtimeExtensions.d.ts +17 -0
  102. package/dist-types/schemas/schemas_0.d.ts +105 -0
  103. package/dist-types/ts3.4/OpenSearchMemory.d.ts +371 -0
  104. package/dist-types/ts3.4/OpenSearchMemoryClient.d.ts +190 -0
  105. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  106. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  107. package/dist-types/ts3.4/commandBuilder.d.ts +41 -0
  108. package/dist-types/ts3.4/commands/BatchGetEventCommand.d.ts +38 -0
  109. package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +38 -0
  110. package/dist-types/ts3.4/commands/CreateMemoryCommand.d.ts +38 -0
  111. package/dist-types/ts3.4/commands/CreateSpaceCommand.d.ts +38 -0
  112. package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +38 -0
  113. package/dist-types/ts3.4/commands/DeleteMemoryCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/DeleteSpaceCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/GetEventCommand.d.ts +38 -0
  116. package/dist-types/ts3.4/commands/GetMemoryCommand.d.ts +38 -0
  117. package/dist-types/ts3.4/commands/GetSpaceCommand.d.ts +38 -0
  118. package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +38 -0
  119. package/dist-types/ts3.4/commands/ListMemoriesCommand.d.ts +38 -0
  120. package/dist-types/ts3.4/commands/ListSpacesCommand.d.ts +38 -0
  121. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  122. package/dist-types/ts3.4/commands/SearchEventsCommand.d.ts +38 -0
  123. package/dist-types/ts3.4/commands/SearchMemoriesCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  125. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  126. package/dist-types/ts3.4/commands/UpdateMemoryCommand.d.ts +38 -0
  127. package/dist-types/ts3.4/commands/UpdateSpaceCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  129. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +46 -0
  130. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  131. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  132. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  133. package/dist-types/ts3.4/index.d.ts +14 -0
  134. package/dist-types/ts3.4/models/OpenSearchMemoryServiceException.d.ts +10 -0
  135. package/dist-types/ts3.4/models/enums.d.ts +73 -0
  136. package/dist-types/ts3.4/models/errors.d.ts +59 -0
  137. package/dist-types/ts3.4/models/models_0.d.ts +459 -0
  138. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  139. package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +8 -0
  140. package/dist-types/ts3.4/pagination/ListMemoriesPaginator.d.ts +11 -0
  141. package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +8 -0
  142. package/dist-types/ts3.4/pagination/SearchEventsPaginator.d.ts +11 -0
  143. package/dist-types/ts3.4/pagination/SearchMemoriesPaginator.d.ts +11 -0
  144. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  145. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  146. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  147. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  148. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  149. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  150. package/dist-types/ts3.4/schemas/schemas_0.d.ts +105 -0
  151. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  152. package/dist-types/ts3.4/waiters/waitForSpaceActive.d.ts +12 -0
  153. package/dist-types/ts3.4/waiters/waitForSpaceDeleted.d.ts +13 -0
  154. package/dist-types/waiters/index.d.ts +2 -0
  155. package/dist-types/waiters/waitForSpaceActive.d.ts +15 -0
  156. package/dist-types/waiters/waitForSpaceDeleted.d.ts +16 -0
  157. package/package.json +67 -4
@@ -0,0 +1,1550 @@
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
6
+ exports.__Client = Client;
7
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
13
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
15
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
16
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
18
+
19
+ const defaultOpenSearchMemoryHttpAuthSchemeParametersProvider = async (config, context, input) => {
20
+ return {
21
+ operation: getSmithyContext(context).operation,
22
+ region: await normalizeProvider(config.region)() || (() => {
23
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
24
+ })(),
25
+ };
26
+ };
27
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
28
+ return {
29
+ schemeId: "aws.auth#sigv4",
30
+ signingProperties: {
31
+ name: "osm",
32
+ region: authParameters.region,
33
+ },
34
+ propertiesExtractor: (config, context) => ({
35
+ signingProperties: {
36
+ config,
37
+ context,
38
+ },
39
+ }),
40
+ };
41
+ }
42
+ const defaultOpenSearchMemoryHttpAuthSchemeProvider = (authParameters) => {
43
+ const options = [];
44
+ switch (authParameters.operation) {
45
+ default: {
46
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
47
+ }
48
+ }
49
+ return options;
50
+ };
51
+ const resolveHttpAuthSchemeConfig = (config) => {
52
+ const config_0 = resolveAwsSdkSigV4Config(config);
53
+ return Object.assign(config_0, {
54
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
55
+ });
56
+ };
57
+
58
+ const resolveClientEndpointParameters = (options) => {
59
+ return Object.assign(options, {
60
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
61
+ defaultSigningName: "osm",
62
+ });
63
+ };
64
+ const commonParams = {
65
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
66
+ Endpoint: { type: "builtInParams", name: "endpoint" },
67
+ Region: { type: "builtInParams", name: "region" },
68
+ };
69
+
70
+ var version = "3.1170.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const a = -1, b = "isSet", c = "isValidHostLabel", d = { "ref": "SpaceId" };
75
+ const _data = {
76
+ conditions: [
77
+ [b, [{ ref: "Endpoint" }]],
78
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]],
79
+ [c, [{ ref: "Region" }, true]],
80
+ [b, [d]],
81
+ [c, [d, false]]
82
+ ],
83
+ results: [
84
+ [a],
85
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
86
+ ["{Endpoint}", {}],
87
+ [a, "Invalid Configuration: FIPS is not supported with OpenSearch Memory."],
88
+ [a, "Invalid Configuration: Region must be a valid host label"],
89
+ ["https://{SpaceId}.osm.{Region}.on.aws", {}],
90
+ [a, "Invalid SpaceId: must be a valid host label"],
91
+ ["https://osm.{Region}.api.aws", {}]
92
+ ]
93
+ };
94
+ const root = 2;
95
+ const r = 100_000_000;
96
+ const nodes = new Int32Array([
97
+ -1, 1, -1,
98
+ 0, 7, 3,
99
+ 1, r + 3, 4,
100
+ 2, 5, r + 4,
101
+ 3, 6, r + 7,
102
+ 4, r + 5, r + 6,
103
+ 1, r + 1, r + 2,
104
+ ]);
105
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
106
+
107
+ const cache = new EndpointCache({
108
+ size: 50,
109
+ params: ["Endpoint", "Region", "SpaceId", "UseFIPS"],
110
+ });
111
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
112
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
113
+ endpointParams: endpointParams,
114
+ logger: context.logger,
115
+ }));
116
+ };
117
+ customEndpointFunctions.aws = awsEndpointFunctions;
118
+
119
+ class OpenSearchMemoryServiceException extends ServiceException {
120
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.opensearchmemory#OpenSearchMemoryServiceException";
121
+ constructor(options) {
122
+ super(options);
123
+ Object.setPrototypeOf(this, OpenSearchMemoryServiceException.prototype);
124
+ }
125
+ }
126
+
127
+ class AccessDeniedException extends OpenSearchMemoryServiceException {
128
+ static shapeId = "com.amazonaws.opensearchmemory#AccessDeniedException";
129
+ name = "AccessDeniedException";
130
+ $fault = "client";
131
+ constructor(opts) {
132
+ super({
133
+ name: "AccessDeniedException",
134
+ $fault: "client",
135
+ ...opts,
136
+ });
137
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
138
+ }
139
+ }
140
+ class InternalServerException extends OpenSearchMemoryServiceException {
141
+ static shapeId = "com.amazonaws.opensearchmemory#InternalServerException";
142
+ name = "InternalServerException";
143
+ $fault = "server";
144
+ $retryable = {};
145
+ constructor(opts) {
146
+ super({
147
+ name: "InternalServerException",
148
+ $fault: "server",
149
+ ...opts,
150
+ });
151
+ Object.setPrototypeOf(this, InternalServerException.prototype);
152
+ }
153
+ }
154
+ class ResourceNotFoundException extends OpenSearchMemoryServiceException {
155
+ static shapeId = "com.amazonaws.opensearchmemory#ResourceNotFoundException";
156
+ name = "ResourceNotFoundException";
157
+ $fault = "client";
158
+ resourceId;
159
+ resourceType;
160
+ constructor(opts) {
161
+ super({
162
+ name: "ResourceNotFoundException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
167
+ this.resourceId = opts.resourceId;
168
+ this.resourceType = opts.resourceType;
169
+ }
170
+ }
171
+ class ThrottlingException extends OpenSearchMemoryServiceException {
172
+ static shapeId = "com.amazonaws.opensearchmemory#ThrottlingException";
173
+ name = "ThrottlingException";
174
+ $fault = "client";
175
+ $retryable = {
176
+ throttling: true,
177
+ };
178
+ retryAfterSeconds;
179
+ constructor(opts) {
180
+ super({
181
+ name: "ThrottlingException",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
186
+ this.retryAfterSeconds = opts.retryAfterSeconds;
187
+ }
188
+ }
189
+ class ValidationException extends OpenSearchMemoryServiceException {
190
+ static shapeId = "com.amazonaws.opensearchmemory#ValidationException";
191
+ name = "ValidationException";
192
+ $fault = "client";
193
+ reason;
194
+ fieldList;
195
+ constructor(opts) {
196
+ super({
197
+ name: "ValidationException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, ValidationException.prototype);
202
+ this.reason = opts.reason;
203
+ this.fieldList = opts.fieldList;
204
+ }
205
+ }
206
+ class ConflictException extends OpenSearchMemoryServiceException {
207
+ static shapeId = "com.amazonaws.opensearchmemory#ConflictException";
208
+ name = "ConflictException";
209
+ $fault = "client";
210
+ resourceId;
211
+ resourceType;
212
+ constructor(opts) {
213
+ super({
214
+ name: "ConflictException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ Object.setPrototypeOf(this, ConflictException.prototype);
219
+ this.resourceId = opts.resourceId;
220
+ this.resourceType = opts.resourceType;
221
+ }
222
+ }
223
+ class ServiceQuotaExceededException extends OpenSearchMemoryServiceException {
224
+ static shapeId = "com.amazonaws.opensearchmemory#ServiceQuotaExceededException";
225
+ name = "ServiceQuotaExceededException";
226
+ $fault = "client";
227
+ quotaCode;
228
+ serviceCode;
229
+ constructor(opts) {
230
+ super({
231
+ name: "ServiceQuotaExceededException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
236
+ this.quotaCode = opts.quotaCode;
237
+ this.serviceCode = opts.serviceCode;
238
+ }
239
+ }
240
+
241
+ const _ADE = "AccessDeniedException";
242
+ const _BGE = "BatchGetEvent";
243
+ const _BGEE = "BatchGetEventError";
244
+ const _BGEEL = "BatchGetEventErrorList";
245
+ const _BGEI = "BatchGetEventInput";
246
+ const _BGEO = "BatchGetEventOutput";
247
+ const _BP = "BlobPayload";
248
+ const _BS = "BlobSource";
249
+ const _CE = "ConflictException";
250
+ const _CEI = "CreateEventInput";
251
+ const _CEO = "CreateEventOutput";
252
+ const _CEr = "CreateEvent";
253
+ const _CM = "CreateMemory";
254
+ const _CMC = "CreateMemoryContent";
255
+ const _CMD = "CreateMemoryDetail";
256
+ const _CMI = "CreateMemoryInput";
257
+ const _CMO = "CreateMemoryOutput";
258
+ const _CP = "ConversationalPayload";
259
+ const _CS = "CreateSpace";
260
+ const _CSR = "CreateSpaceRequest";
261
+ const _CSRr = "CreateSpaceResponse";
262
+ const _DE = "DeleteEvent";
263
+ const _DEI = "DeleteEventInput";
264
+ const _DEO = "DeleteEventOutput";
265
+ const _DM = "DeleteMemory";
266
+ const _DMI = "DeleteMemoryInput";
267
+ const _DMO = "DeleteMemoryOutput";
268
+ const _DS = "DeleteSpace";
269
+ const _DSR = "DeleteSpaceRequest";
270
+ const _DSRe = "DeleteSpaceResponse";
271
+ const _E = "Event";
272
+ const _EC = "EncryptionConfiguration";
273
+ const _ED = "EventDetail";
274
+ const _EL = "EventList";
275
+ const _EP = "ExtractionPrompt";
276
+ const _EPv = "EventPayload";
277
+ const _ES = "EventSummary";
278
+ const _ESL = "EventSummaryList";
279
+ const _ESS = "EventSearchSummary";
280
+ const _ESSL = "EventSearchSummaryList";
281
+ const _GE = "GetEvent";
282
+ const _GEI = "GetEventInput";
283
+ const _GEO = "GetEventOutput";
284
+ const _GM = "GetMemory";
285
+ const _GMI = "GetMemoryInput";
286
+ const _GMO = "GetMemoryOutput";
287
+ const _GS = "GetSpace";
288
+ const _GSR = "GetSpaceRequest";
289
+ const _GSRe = "GetSpaceResponse";
290
+ const _ISE = "InternalServerException";
291
+ const _LE = "ListEvents";
292
+ const _LEI = "ListEventsInput";
293
+ const _LEO = "ListEventsOutput";
294
+ const _LM = "ListMemories";
295
+ const _LMI = "ListMemoriesInput";
296
+ const _LMO = "ListMemoriesOutput";
297
+ const _LS = "ListSpaces";
298
+ const _LSR = "ListSpacesRequest";
299
+ const _LSRi = "ListSpacesResponse";
300
+ const _LTFR = "ListTagsForResource";
301
+ const _LTFRR = "ListTagsForResourceRequest";
302
+ const _LTFRRi = "ListTagsForResourceResponse";
303
+ const _M = "Memory";
304
+ const _MC = "MessageContent";
305
+ const _ML = "MessageList";
306
+ const _MLS = "MemoryListSummary";
307
+ const _MLSL = "MemoryListSummaryList";
308
+ const _MS = "MemoryStrategy";
309
+ const _MSC = "MemoryStrategyConfiguration";
310
+ const _MSL = "MemoryStrategyList";
311
+ const _MSS = "MemorySearchSummary";
312
+ const _MSSL = "MemorySearchSummaryList";
313
+ const _MT = "MessageText";
314
+ const _MUC = "MemoryUpdateContent";
315
+ const _Me = "Message";
316
+ const _RNFE = "ResourceNotFoundException";
317
+ const _SC = "SensitiveContent";
318
+ const _SDP = "StructuredDataPayload";
319
+ const _SDS = "StructuredDataSource";
320
+ const _SE = "SearchEvents";
321
+ const _SEI = "SearchEventsInput";
322
+ const _SEO = "SearchEventsOutput";
323
+ const _SL = "S3Location";
324
+ const _SM = "SystemMetadata";
325
+ const _SMI = "SearchMemoriesInput";
326
+ const _SMO = "SearchMemoriesOutput";
327
+ const _SMe = "SearchMemories";
328
+ const _SQ = "SearchQuery";
329
+ const _SQEE = "ServiceQuotaExceededException";
330
+ const _SS = "SearchSort";
331
+ const _SSL = "SpaceSummaryList";
332
+ const _SSLt = "StrategySelectorList";
333
+ const _SSp = "SpaceSummary";
334
+ const _SSt = "StrategySelector";
335
+ const _T = "Tag";
336
+ const _TE = "ThrottlingException";
337
+ const _TL = "TagList";
338
+ const _TR = "TagResource";
339
+ const _TRR = "TagResourceRequest";
340
+ const _TRRa = "TagResourceResponse";
341
+ const _UC = "UnifiedConversational";
342
+ const _UCO = "UnifiedConversationalObject";
343
+ const _UCS = "UnifiedConversationalSource";
344
+ const _UM = "UpdateMemory";
345
+ const _UMI = "UpdateMemoryInput";
346
+ const _UMO = "UpdateMemoryOutput";
347
+ const _UR = "UntagResource";
348
+ const _URR = "UntagResourceRequest";
349
+ const _URRn = "UntagResourceResponse";
350
+ const _US = "UpdateSpace";
351
+ const _USR = "UpdateSpaceRequest";
352
+ const _USRp = "UpdateSpaceResponse";
353
+ const _VE = "ValidationException";
354
+ const _VEF = "ValidationExceptionField";
355
+ const _VEFL = "ValidationExceptionFieldList";
356
+ const _a = "arn";
357
+ const _aI = "actorId";
358
+ const _aIc = "actorIds";
359
+ const _b = "blob";
360
+ const _c = "client";
361
+ const _cA = "createdAt";
362
+ const _cE = "consolidationEnabled";
363
+ const _cT = "contentType";
364
+ const _cTl = "clientToken";
365
+ const _co = "content";
366
+ const _con = "configuration";
367
+ const _conv = "conversational";
368
+ const _d = "description";
369
+ const _e = "error";
370
+ const _eC = "errorCode";
371
+ const _eCn = "encryptionConfiguration";
372
+ const _eED = "eventExpiryDays";
373
+ const _eENM = "extractEveryNMessages";
374
+ const _eENT = "extractEveryNTokens";
375
+ const _eI = "eventId";
376
+ const _eIv = "eventIds";
377
+ const _eMI = "extractionModelId";
378
+ const _eP = "extractionPrompt";
379
+ const _eSRN = "extractionSeedRecentN";
380
+ const _eSTK = "extractionSeedTopK";
381
+ const _eT = "eventTimestamp";
382
+ const _eTA = "eventTimestampAfter";
383
+ const _eTB = "eventTimestampBefore";
384
+ const _er = "errors";
385
+ const _ev = "events";
386
+ const _eve = "event";
387
+ const _fL = "fieldList";
388
+ const _hE = "httpError";
389
+ const _i = "infer";
390
+ const _iTS = "idleTimeoutSeconds";
391
+ const _j = "json";
392
+ const _k = "key";
393
+ const _kKA = "kmsKeyArn";
394
+ const _m = "message";
395
+ const _mC = "matchedContent";
396
+ const _mED = "memoryExpiryDays";
397
+ const _mF = "metadataFilters";
398
+ const _mI = "memoryId";
399
+ const _mM = "metadataMode";
400
+ const _mR = "maxResults";
401
+ const _mS = "memoryStrategies";
402
+ const _mSN = "memoryStrategyNames";
403
+ const _mT = "memoryType";
404
+ const _me = "metadata";
405
+ const _mem = "memory";
406
+ const _memo = "memories";
407
+ const _mes = "messages";
408
+ const _n = "name";
409
+ const _nT = "nextToken";
410
+ const _o = "object";
411
+ const _p = "payload";
412
+ const _q = "query";
413
+ const _qC = "quotaCode";
414
+ const _r = "reason";
415
+ const _rA = "resourceArn";
416
+ const _rAS = "retryAfterSeconds";
417
+ const _rI = "resourceId";
418
+ const _rT = "resourceType";
419
+ const _ro = "role";
420
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.opensearchmemory";
421
+ const _sB = "sortBy";
422
+ const _sC = "serviceCode";
423
+ const _sD = "structuredData";
424
+ const _sEI = "sourceEventIds";
425
+ const _sI = "spaceId";
426
+ const _sIe = "sessionId";
427
+ const _sIes = "sessionIds";
428
+ const _sL = "s3Location";
429
+ const _sM = "systemMetadata";
430
+ const _sN = "strategyName";
431
+ const _sO = "sortOrder";
432
+ const _sR = "statusReason";
433
+ const _sc = "score";
434
+ const _se = "server";
435
+ const _so = "source";
436
+ const _sor = "sort";
437
+ const _sp = "spaces";
438
+ const _st = "status";
439
+ const _t = "tags";
440
+ const _tK = "tagKeys";
441
+ const _te = "text";
442
+ const _ty = "type";
443
+ const _u = "uri";
444
+ const _uA = "updatedAt";
445
+ const _un = "unified";
446
+ const _v = "value";
447
+ const n0 = "com.amazonaws.opensearchmemory";
448
+ const _s_registry = new TypeRegistry(_s);
449
+ var OpenSearchMemoryServiceException$ = [-3, _s, "OpenSearchMemoryServiceException", 0, [], []];
450
+ _s_registry.registerError(OpenSearchMemoryServiceException$, OpenSearchMemoryServiceException);
451
+ const n0_registry = new TypeRegistry(n0);
452
+ var AccessDeniedException$ = [-3, n0, _ADE,
453
+ { [_e]: _c, [_hE]: 403 },
454
+ [_m],
455
+ [0], 1
456
+ ];
457
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
458
+ var ConflictException$ = [-3, n0, _CE,
459
+ { [_e]: _c, [_hE]: 409 },
460
+ [_m, _rI, _rT],
461
+ [0, 0, 0], 1
462
+ ];
463
+ n0_registry.registerError(ConflictException$, ConflictException);
464
+ var InternalServerException$ = [-3, n0, _ISE,
465
+ { [_e]: _se, [_hE]: 500 },
466
+ [_m],
467
+ [0], 1
468
+ ];
469
+ n0_registry.registerError(InternalServerException$, InternalServerException);
470
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
471
+ { [_e]: _c, [_hE]: 404 },
472
+ [_m, _rI, _rT],
473
+ [0, 0, 0], 1
474
+ ];
475
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
476
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
477
+ { [_e]: _c, [_hE]: 402 },
478
+ [_m, _qC, _sC],
479
+ [0, 0, 0], 1
480
+ ];
481
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
482
+ var ThrottlingException$ = [-3, n0, _TE,
483
+ { [_e]: _c, [_hE]: 429 },
484
+ [_m, _rAS],
485
+ [0, 1], 1
486
+ ];
487
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
488
+ var ValidationException$ = [-3, n0, _VE,
489
+ { [_e]: _c, [_hE]: 400 },
490
+ [_m, _r, _fL],
491
+ [0, 0, () => ValidationExceptionFieldList], 1
492
+ ];
493
+ n0_registry.registerError(ValidationException$, ValidationException);
494
+ const errorTypeRegistries = [
495
+ _s_registry,
496
+ n0_registry,
497
+ ];
498
+ var CreateMemoryContent = [0, n0, _CMC, 8, 0];
499
+ var ExtractionPrompt = [0, n0, _EP, 8, 0];
500
+ var MemoryUpdateContent = [0, n0, _MUC, 8, 0];
501
+ var MessageText = [0, n0, _MT, 8, 0];
502
+ var SearchQuery = [0, n0, _SQ, 8, 15];
503
+ var SearchSort = [0, n0, _SS, 8, 15];
504
+ var SensitiveContent = [0, n0, _SC, 8, 0];
505
+ var BatchGetEventError$ = [3, n0, _BGEE,
506
+ 0,
507
+ [_eI, _eC, _m],
508
+ [0, 0, 0], 3
509
+ ];
510
+ var BatchGetEventInput$ = [3, n0, _BGEI,
511
+ 0,
512
+ [_sI, _eIv, _aI, _sIe],
513
+ [0, 64 | 0, 0, 0], 2
514
+ ];
515
+ var BatchGetEventOutput$ = [3, n0, _BGEO,
516
+ 0,
517
+ [_ev, _er],
518
+ [[() => EventList, 0], () => BatchGetEventErrorList], 2
519
+ ];
520
+ var BlobPayload$ = [3, n0, _BP,
521
+ 0,
522
+ [_cT, _so],
523
+ [0, [() => BlobSource$, 0]], 2
524
+ ];
525
+ var CreateEventInput$ = [3, n0, _CEI,
526
+ 0,
527
+ [_sI, _aI, _p, _sIe, _eT, _me, _cTl, _i],
528
+ [0, 0, [() => EventPayload$, 0], 0, 5, 128 | 0, [0, 4], 2], 3
529
+ ];
530
+ var CreateEventOutput$ = [3, n0, _CEO,
531
+ 0,
532
+ [_eve],
533
+ [() => EventDetail$], 1
534
+ ];
535
+ var CreateMemoryDetail$ = [3, n0, _CMD,
536
+ 0,
537
+ [_mI, _sI, _n, _aI, _sIe],
538
+ [0, 0, 0, 0, 0], 5
539
+ ];
540
+ var CreateMemoryInput$ = [3, n0, _CMI,
541
+ 0,
542
+ [_sI, _n, _co, _aI, _sIe, _me, _cTl],
543
+ [0, 0, [() => CreateMemoryContent, 0], 0, 0, 128 | 0, [0, 4]], 4
544
+ ];
545
+ var CreateMemoryOutput$ = [3, n0, _CMO,
546
+ 0,
547
+ [_mem],
548
+ [() => CreateMemoryDetail$], 1
549
+ ];
550
+ var CreateSpaceRequest$ = [3, n0, _CSR,
551
+ 0,
552
+ [_n, _mS, _eED, _mED, _eMI, _eCn, _t, _cTl],
553
+ [0, [() => MemoryStrategyList, 0], 1, 1, 0, () => EncryptionConfiguration$, () => TagList, [0, 4]], 1
554
+ ];
555
+ var CreateSpaceResponse$ = [3, n0, _CSRr,
556
+ 0,
557
+ [_sI, _a, _n, _st, _cA],
558
+ [0, 0, 0, 0, 4], 5
559
+ ];
560
+ var DeleteEventInput$ = [3, n0, _DEI,
561
+ 0,
562
+ [_sI, _eI, _aI, _sIe],
563
+ [0, 0, 0, 0], 2
564
+ ];
565
+ var DeleteEventOutput$ = [3, n0, _DEO,
566
+ 0,
567
+ [_eI],
568
+ [0], 1
569
+ ];
570
+ var DeleteMemoryInput$ = [3, n0, _DMI,
571
+ 0,
572
+ [_sI, _mI, _aI, _sN],
573
+ [0, 0, 0, 0], 2
574
+ ];
575
+ var DeleteMemoryOutput$ = [3, n0, _DMO,
576
+ 0,
577
+ [_mI],
578
+ [0], 1
579
+ ];
580
+ var DeleteSpaceRequest$ = [3, n0, _DSR,
581
+ 0,
582
+ [_sI],
583
+ [0], 1
584
+ ];
585
+ var DeleteSpaceResponse$ = [3, n0, _DSRe,
586
+ 0,
587
+ [_sI, _st],
588
+ [0, 0], 2
589
+ ];
590
+ var EncryptionConfiguration$ = [3, n0, _EC,
591
+ 0,
592
+ [_kKA],
593
+ [0]
594
+ ];
595
+ var Event$ = [3, n0, _E,
596
+ 0,
597
+ [_eI, _sI, _aI, _sIe, _p, _eT, _me],
598
+ [0, 0, 0, 0, [() => EventPayload$, 0], 5, 128 | 0], 6
599
+ ];
600
+ var EventDetail$ = [3, n0, _ED,
601
+ 0,
602
+ [_eI, _sI, _aI, _sIe, _eT],
603
+ [0, 0, 0, 0, 5], 5
604
+ ];
605
+ var EventSearchSummary$ = [3, n0, _ESS,
606
+ 0,
607
+ [_eI, _sc, _sM, _me, _mC],
608
+ [0, 1, () => SystemMetadata$, 128 | 0, [() => SensitiveContent, 0]], 1
609
+ ];
610
+ var EventSummary$ = [3, n0, _ES,
611
+ 0,
612
+ [_eI, _eT, _me],
613
+ [0, 5, 128 | 0], 2
614
+ ];
615
+ var GetEventInput$ = [3, n0, _GEI,
616
+ 0,
617
+ [_sI, _eI, _aI, _sIe],
618
+ [0, 0, 0, 0], 2
619
+ ];
620
+ var GetEventOutput$ = [3, n0, _GEO,
621
+ 0,
622
+ [_eve],
623
+ [[() => Event$, 0]], 1
624
+ ];
625
+ var GetMemoryInput$ = [3, n0, _GMI,
626
+ 0,
627
+ [_sI, _mI, _aI, _sN],
628
+ [0, 0, 0, 0], 2
629
+ ];
630
+ var GetMemoryOutput$ = [3, n0, _GMO,
631
+ 0,
632
+ [_mem],
633
+ [[() => Memory$, 0]], 1
634
+ ];
635
+ var GetSpaceRequest$ = [3, n0, _GSR,
636
+ 0,
637
+ [_sI],
638
+ [0], 1
639
+ ];
640
+ var GetSpaceResponse$ = [3, n0, _GSRe,
641
+ 0,
642
+ [_sI, _a, _n, _st, _cA, _sR, _mS, _eED, _mED, _eMI, _eCn],
643
+ [0, 0, 0, 0, 4, 0, [() => MemoryStrategyList, 0], 1, 1, 0, () => EncryptionConfiguration$], 5
644
+ ];
645
+ var ListEventsInput$ = [3, n0, _LEI,
646
+ 0,
647
+ [_sI, _aI, _sIe, _eTB, _eTA, _sO, _mF, _mR, _nT],
648
+ [0, 0, 0, 5, 5, 0, 128 | 0, 1, 0], 3
649
+ ];
650
+ var ListEventsOutput$ = [3, n0, _LEO,
651
+ 0,
652
+ [_ev, _nT],
653
+ [() => EventSummaryList, 0], 1
654
+ ];
655
+ var ListMemoriesInput$ = [3, n0, _LMI,
656
+ 0,
657
+ [_sI, _mS, _aIc, _sIes, _sB, _sO, _mR, _nT],
658
+ [0, () => StrategySelectorList, 64 | 0, 64 | 0, 0, 0, 1, 0], 1
659
+ ];
660
+ var ListMemoriesOutput$ = [3, n0, _LMO,
661
+ 0,
662
+ [_memo, _nT],
663
+ [() => MemoryListSummaryList, 0], 1
664
+ ];
665
+ var ListSpacesRequest$ = [3, n0, _LSR,
666
+ 0,
667
+ [_mR, _nT],
668
+ [1, 0]
669
+ ];
670
+ var ListSpacesResponse$ = [3, n0, _LSRi,
671
+ 0,
672
+ [_sp, _nT],
673
+ [() => SpaceSummaryList, 0], 1
674
+ ];
675
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
676
+ 0,
677
+ [_rA],
678
+ [0], 1
679
+ ];
680
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
681
+ 0,
682
+ [_t],
683
+ [() => TagList]
684
+ ];
685
+ var Memory$ = [3, n0, _M,
686
+ 0,
687
+ [_mI, _mT, _co, _sM, _sN, _me],
688
+ [0, 0, [() => SensitiveContent, 0], () => SystemMetadata$, 0, 128 | 0], 4
689
+ ];
690
+ var MemoryListSummary$ = [3, n0, _MLS,
691
+ 0,
692
+ [_mI, _mT, _sM, _sN, _me],
693
+ [0, 0, () => SystemMetadata$, 0, 128 | 0], 3
694
+ ];
695
+ var MemorySearchSummary$ = [3, n0, _MSS,
696
+ 0,
697
+ [_mI, _mT, _sN, _co, _sc, _sM, _me, _sEI],
698
+ [0, 0, 0, [() => SensitiveContent, 0], 1, () => SystemMetadata$, 128 | 0, 64 | 0], 1
699
+ ];
700
+ var MemoryStrategy$ = [3, n0, _MS,
701
+ 0,
702
+ [_ty, _n, _d, _con],
703
+ [0, 0, 0, [() => MemoryStrategyConfiguration$, 0]], 1
704
+ ];
705
+ var MemoryStrategyConfiguration$ = [3, n0, _MSC,
706
+ 0,
707
+ [_eP, _eENM, _eENT, _iTS, _eSTK, _eSRN, _cE],
708
+ [[() => ExtractionPrompt, 0], 1, 1, 1, 1, 1, 2]
709
+ ];
710
+ var Message$ = [3, n0, _Me,
711
+ 0,
712
+ [_ro, _co],
713
+ [0, [() => MessageContent$, 0]], 2
714
+ ];
715
+ var MessageContent$ = [3, n0, _MC,
716
+ 0,
717
+ [_te],
718
+ [[() => MessageText, 0]], 1
719
+ ];
720
+ var S3Location$ = [3, n0, _SL,
721
+ 0,
722
+ [_u],
723
+ [0], 1
724
+ ];
725
+ var SearchEventsInput$ = [3, n0, _SEI,
726
+ 0,
727
+ [_sI, _aI, _q, _sIes, _sor, _mR, _nT],
728
+ [0, 0, [() => SearchQuery, 0], 64 | 0, [() => SearchSort, 0], 1, 0], 3
729
+ ];
730
+ var SearchEventsOutput$ = [3, n0, _SEO,
731
+ 0,
732
+ [_ev, _nT],
733
+ [[() => EventSearchSummaryList, 0], 0], 1
734
+ ];
735
+ var SearchMemoriesInput$ = [3, n0, _SMI,
736
+ 0,
737
+ [_sI, _aI, _q, _mS, _sor, _mR, _nT],
738
+ [0, 0, [() => SearchQuery, 0], () => StrategySelectorList, [() => SearchSort, 0], 1, 0], 3
739
+ ];
740
+ var SearchMemoriesOutput$ = [3, n0, _SMO,
741
+ 0,
742
+ [_memo, _nT],
743
+ [[() => MemorySearchSummaryList, 0], 0], 1
744
+ ];
745
+ var SpaceSummary$ = [3, n0, _SSp,
746
+ 0,
747
+ [_sI, _a, _n, _st, _cA],
748
+ [0, 0, 0, 0, 4], 5
749
+ ];
750
+ var StrategySelector$ = [3, n0, _SSt,
751
+ 0,
752
+ [_mT, _mSN],
753
+ [0, 64 | 0], 1
754
+ ];
755
+ var StructuredDataPayload$ = [3, n0, _SDP,
756
+ 0,
757
+ [_so],
758
+ [[() => StructuredDataSource$, 0]], 1
759
+ ];
760
+ var SystemMetadata$ = [3, n0, _SM,
761
+ 0,
762
+ [_aI, _sIe, _cA, _uA],
763
+ [0, 0, 5, 5]
764
+ ];
765
+ var Tag$ = [3, n0, _T,
766
+ 0,
767
+ [_k, _v],
768
+ [0, 0], 2
769
+ ];
770
+ var TagResourceRequest$ = [3, n0, _TRR,
771
+ 0,
772
+ [_rA, _t],
773
+ [0, () => TagList], 2
774
+ ];
775
+ var TagResourceResponse$ = [3, n0, _TRRa,
776
+ 0,
777
+ [],
778
+ []
779
+ ];
780
+ var UnifiedConversational$ = [3, n0, _UC,
781
+ 0,
782
+ [_so],
783
+ [[() => UnifiedConversationalSource$, 0]], 1
784
+ ];
785
+ var UnifiedConversationalObject$ = [3, n0, _UCO,
786
+ 0,
787
+ [_mes],
788
+ [[() => MessageList, 0]], 1
789
+ ];
790
+ var UntagResourceRequest$ = [3, n0, _URR,
791
+ 0,
792
+ [_rA, _tK],
793
+ [0, 64 | 0], 2
794
+ ];
795
+ var UntagResourceResponse$ = [3, n0, _URRn,
796
+ 0,
797
+ [],
798
+ []
799
+ ];
800
+ var UpdateMemoryInput$ = [3, n0, _UMI,
801
+ 0,
802
+ [_sI, _mI, _co, _me, _mM, _aI, _sN],
803
+ [0, 0, [() => MemoryUpdateContent, 0], 128 | 0, 0, 0, 0], 2
804
+ ];
805
+ var UpdateMemoryOutput$ = [3, n0, _UMO,
806
+ 0,
807
+ [_mem],
808
+ [[() => Memory$, 0]], 1
809
+ ];
810
+ var UpdateSpaceRequest$ = [3, n0, _USR,
811
+ 0,
812
+ [_sI, _mS, _eED, _mED, _eMI],
813
+ [0, [() => MemoryStrategyList, 0], 1, 1, 0], 1
814
+ ];
815
+ var UpdateSpaceResponse$ = [3, n0, _USRp,
816
+ 0,
817
+ [_sI, _st],
818
+ [0, 0], 2
819
+ ];
820
+ var ValidationExceptionField$ = [3, n0, _VEF,
821
+ 0,
822
+ [_n, _m],
823
+ [0, 0], 2
824
+ ];
825
+ var BatchGetEventErrorList = [1, n0, _BGEEL,
826
+ 0, () => BatchGetEventError$
827
+ ];
828
+ var EventList = [1, n0, _EL,
829
+ 0, [() => Event$,
830
+ 0]
831
+ ];
832
+ var EventSearchSummaryList = [1, n0, _ESSL,
833
+ 0, [() => EventSearchSummary$,
834
+ 0]
835
+ ];
836
+ var EventSummaryList = [1, n0, _ESL,
837
+ 0, () => EventSummary$
838
+ ];
839
+ var MemoryListSummaryList = [1, n0, _MLSL,
840
+ 0, () => MemoryListSummary$
841
+ ];
842
+ var MemorySearchSummaryList = [1, n0, _MSSL,
843
+ 0, [() => MemorySearchSummary$,
844
+ 0]
845
+ ];
846
+ var MemoryStrategyList = [1, n0, _MSL,
847
+ 0, [() => MemoryStrategy$,
848
+ 0]
849
+ ];
850
+ var MessageList = [1, n0, _ML,
851
+ 0, [() => Message$,
852
+ 0]
853
+ ];
854
+ var SpaceSummaryList = [1, n0, _SSL,
855
+ 0, () => SpaceSummary$
856
+ ];
857
+ var StrategySelectorList = [1, n0, _SSLt,
858
+ 0, () => StrategySelector$
859
+ ];
860
+ var TagList = [1, n0, _TL,
861
+ 0, () => Tag$
862
+ ];
863
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
864
+ 0, () => ValidationExceptionField$
865
+ ];
866
+ var BlobSource$ = [4, n0, _BS,
867
+ 8,
868
+ [_sL],
869
+ [() => S3Location$]
870
+ ];
871
+ var ConversationalPayload$ = [4, n0, _CP,
872
+ 0,
873
+ [_un],
874
+ [[() => UnifiedConversational$, 0]]
875
+ ];
876
+ var EventPayload$ = [4, n0, _EPv,
877
+ 0,
878
+ [_conv, _sD, _b],
879
+ [[() => ConversationalPayload$, 0], [() => StructuredDataPayload$, 0], [() => BlobPayload$, 0]]
880
+ ];
881
+ var StructuredDataSource$ = [4, n0, _SDS,
882
+ 8,
883
+ [_j],
884
+ [15]
885
+ ];
886
+ var UnifiedConversationalSource$ = [4, n0, _UCS,
887
+ 0,
888
+ [_o],
889
+ [[() => UnifiedConversationalObject$, 0]]
890
+ ];
891
+ var BatchGetEvent$ = [9, n0, _BGE,
892
+ 0, () => BatchGetEventInput$, () => BatchGetEventOutput$
893
+ ];
894
+ var CreateEvent$ = [9, n0, _CEr,
895
+ 0, () => CreateEventInput$, () => CreateEventOutput$
896
+ ];
897
+ var CreateMemory$ = [9, n0, _CM,
898
+ 0, () => CreateMemoryInput$, () => CreateMemoryOutput$
899
+ ];
900
+ var CreateSpace$ = [9, n0, _CS,
901
+ 2, () => CreateSpaceRequest$, () => CreateSpaceResponse$
902
+ ];
903
+ var DeleteEvent$ = [9, n0, _DE,
904
+ 0, () => DeleteEventInput$, () => DeleteEventOutput$
905
+ ];
906
+ var DeleteMemory$ = [9, n0, _DM,
907
+ 0, () => DeleteMemoryInput$, () => DeleteMemoryOutput$
908
+ ];
909
+ var DeleteSpace$ = [9, n0, _DS,
910
+ 2, () => DeleteSpaceRequest$, () => DeleteSpaceResponse$
911
+ ];
912
+ var GetEvent$ = [9, n0, _GE,
913
+ 0, () => GetEventInput$, () => GetEventOutput$
914
+ ];
915
+ var GetMemory$ = [9, n0, _GM,
916
+ 0, () => GetMemoryInput$, () => GetMemoryOutput$
917
+ ];
918
+ var GetSpace$ = [9, n0, _GS,
919
+ 0, () => GetSpaceRequest$, () => GetSpaceResponse$
920
+ ];
921
+ var ListEvents$ = [9, n0, _LE,
922
+ 0, () => ListEventsInput$, () => ListEventsOutput$
923
+ ];
924
+ var ListMemories$ = [9, n0, _LM,
925
+ 0, () => ListMemoriesInput$, () => ListMemoriesOutput$
926
+ ];
927
+ var ListSpaces$ = [9, n0, _LS,
928
+ 0, () => ListSpacesRequest$, () => ListSpacesResponse$
929
+ ];
930
+ var ListTagsForResource$ = [9, n0, _LTFR,
931
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
932
+ ];
933
+ var SearchEvents$ = [9, n0, _SE,
934
+ 0, () => SearchEventsInput$, () => SearchEventsOutput$
935
+ ];
936
+ var SearchMemories$ = [9, n0, _SMe,
937
+ 0, () => SearchMemoriesInput$, () => SearchMemoriesOutput$
938
+ ];
939
+ var TagResource$ = [9, n0, _TR,
940
+ 2, () => TagResourceRequest$, () => TagResourceResponse$
941
+ ];
942
+ var UntagResource$ = [9, n0, _UR,
943
+ 2, () => UntagResourceRequest$, () => UntagResourceResponse$
944
+ ];
945
+ var UpdateMemory$ = [9, n0, _UM,
946
+ 0, () => UpdateMemoryInput$, () => UpdateMemoryOutput$
947
+ ];
948
+ var UpdateSpace$ = [9, n0, _US,
949
+ 2, () => UpdateSpaceRequest$, () => UpdateSpaceResponse$
950
+ ];
951
+
952
+ const getRuntimeConfig$1 = (config) => {
953
+ return {
954
+ apiVersion: "2026-08-24",
955
+ base64Decoder: config?.base64Decoder ?? fromBase64,
956
+ base64Encoder: config?.base64Encoder ?? toBase64,
957
+ disableHostPrefix: config?.disableHostPrefix ?? false,
958
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
959
+ extensions: config?.extensions ?? [],
960
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultOpenSearchMemoryHttpAuthSchemeProvider,
961
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
962
+ {
963
+ schemeId: "aws.auth#sigv4",
964
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
965
+ signer: new AwsSdkSigV4Signer(),
966
+ },
967
+ ],
968
+ logger: config?.logger ?? new NoOpLogger(),
969
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
970
+ protocolSettings: config?.protocolSettings ?? {
971
+ defaultNamespace: "com.amazonaws.opensearchmemory",
972
+ errorTypeRegistries,
973
+ version: "2026-08-24",
974
+ serviceTarget: "OpenSearchMemory",
975
+ },
976
+ serviceId: config?.serviceId ?? "OpenSearchMemory",
977
+ sha256: config?.sha256 ?? Sha256,
978
+ urlParser: config?.urlParser ?? parseUrl,
979
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
980
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
981
+ };
982
+ };
983
+
984
+ const getRuntimeConfig = (config) => {
985
+ emitWarningIfUnsupportedVersion(process.version);
986
+ const defaultsMode = resolveDefaultsModeConfig(config);
987
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
988
+ const clientSharedValues = getRuntimeConfig$1(config);
989
+ emitWarningIfUnsupportedVersion$1(process.version);
990
+ const loaderConfig = {
991
+ profile: config?.profile,
992
+ logger: clientSharedValues.logger,
993
+ };
994
+ return {
995
+ ...clientSharedValues,
996
+ ...config,
997
+ runtime: "node",
998
+ defaultsMode,
999
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1000
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1001
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1002
+ defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
1003
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1004
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1005
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1006
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1007
+ retryMode: config?.retryMode ??
1008
+ loadConfig({
1009
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1010
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1011
+ }, config),
1012
+ streamCollector: config?.streamCollector ?? streamCollector,
1013
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1014
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1015
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1016
+ };
1017
+ };
1018
+
1019
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
1020
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
1021
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
1022
+ let _credentials = runtimeConfig.credentials;
1023
+ return {
1024
+ setHttpAuthScheme(httpAuthScheme) {
1025
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
1026
+ if (index === -1) {
1027
+ _httpAuthSchemes.push(httpAuthScheme);
1028
+ }
1029
+ else {
1030
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
1031
+ }
1032
+ },
1033
+ httpAuthSchemes() {
1034
+ return _httpAuthSchemes;
1035
+ },
1036
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
1037
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
1038
+ },
1039
+ httpAuthSchemeProvider() {
1040
+ return _httpAuthSchemeProvider;
1041
+ },
1042
+ setCredentials(credentials) {
1043
+ _credentials = credentials;
1044
+ },
1045
+ credentials() {
1046
+ return _credentials;
1047
+ },
1048
+ };
1049
+ };
1050
+ const resolveHttpAuthRuntimeConfig = (config) => {
1051
+ return {
1052
+ httpAuthSchemes: config.httpAuthSchemes(),
1053
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
1054
+ credentials: config.credentials(),
1055
+ };
1056
+ };
1057
+
1058
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
1059
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
1060
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
1061
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
1062
+ };
1063
+
1064
+ class OpenSearchMemoryClient extends Client {
1065
+ config;
1066
+ constructor(...[configuration]) {
1067
+ const _config_0 = getRuntimeConfig(configuration || {});
1068
+ super(_config_0);
1069
+ this.initConfig = _config_0;
1070
+ const _config_1 = resolveClientEndpointParameters(_config_0);
1071
+ const _config_2 = resolveUserAgentConfig(_config_1);
1072
+ const _config_3 = resolveRetryConfig(_config_2);
1073
+ const _config_4 = resolveRegionConfig(_config_3);
1074
+ const _config_5 = resolveHostHeaderConfig(_config_4);
1075
+ const _config_6 = resolveEndpointConfig(_config_5);
1076
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
1077
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
1078
+ this.config = _config_8;
1079
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
1080
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
1081
+ this.middlewareStack.use(getRetryPlugin(this.config));
1082
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
1083
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
1084
+ this.middlewareStack.use(getLoggerPlugin(this.config));
1085
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
1086
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
1087
+ httpAuthSchemeParametersProvider: defaultOpenSearchMemoryHttpAuthSchemeParametersProvider,
1088
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
1089
+ "aws.auth#sigv4": config.credentials,
1090
+ }),
1091
+ }));
1092
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
1093
+ }
1094
+ destroy() {
1095
+ super.destroy();
1096
+ }
1097
+ }
1098
+
1099
+ const command = makeBuilder(commonParams, "OpenSearchMemory", "OpenSearchMemoryClient", getEndpointPlugin);
1100
+ const _ep0 = {
1101
+ SpaceId: { type: "contextParams", name: "spaceId" },
1102
+ };
1103
+ const _ep1 = {};
1104
+ const _mw0 = (Command, cs, config, o) => [];
1105
+
1106
+ class BatchGetEventCommand extends command(_ep0, _mw0, "BatchGetEvent", BatchGetEvent$) {
1107
+ }
1108
+
1109
+ class CreateEventCommand extends command(_ep0, _mw0, "CreateEvent", CreateEvent$) {
1110
+ }
1111
+
1112
+ class CreateMemoryCommand extends command(_ep0, _mw0, "CreateMemory", CreateMemory$) {
1113
+ }
1114
+
1115
+ class CreateSpaceCommand extends command(_ep1, _mw0, "CreateSpace", CreateSpace$) {
1116
+ }
1117
+
1118
+ class DeleteEventCommand extends command(_ep0, _mw0, "DeleteEvent", DeleteEvent$) {
1119
+ }
1120
+
1121
+ class DeleteMemoryCommand extends command(_ep0, _mw0, "DeleteMemory", DeleteMemory$) {
1122
+ }
1123
+
1124
+ class DeleteSpaceCommand extends command(_ep1, _mw0, "DeleteSpace", DeleteSpace$) {
1125
+ }
1126
+
1127
+ class GetEventCommand extends command(_ep0, _mw0, "GetEvent", GetEvent$) {
1128
+ }
1129
+
1130
+ class GetMemoryCommand extends command(_ep0, _mw0, "GetMemory", GetMemory$) {
1131
+ }
1132
+
1133
+ class GetSpaceCommand extends command(_ep1, _mw0, "GetSpace", GetSpace$) {
1134
+ }
1135
+
1136
+ class ListEventsCommand extends command(_ep0, _mw0, "ListEvents", ListEvents$) {
1137
+ }
1138
+
1139
+ class ListMemoriesCommand extends command(_ep0, _mw0, "ListMemories", ListMemories$) {
1140
+ }
1141
+
1142
+ class ListSpacesCommand extends command(_ep1, _mw0, "ListSpaces", ListSpaces$) {
1143
+ }
1144
+
1145
+ class ListTagsForResourceCommand extends command(_ep1, _mw0, "ListTagsForResource", ListTagsForResource$) {
1146
+ }
1147
+
1148
+ class SearchEventsCommand extends command(_ep0, _mw0, "SearchEvents", SearchEvents$) {
1149
+ }
1150
+
1151
+ class SearchMemoriesCommand extends command(_ep0, _mw0, "SearchMemories", SearchMemories$) {
1152
+ }
1153
+
1154
+ class TagResourceCommand extends command(_ep1, _mw0, "TagResource", TagResource$) {
1155
+ }
1156
+
1157
+ class UntagResourceCommand extends command(_ep1, _mw0, "UntagResource", UntagResource$) {
1158
+ }
1159
+
1160
+ class UpdateMemoryCommand extends command(_ep0, _mw0, "UpdateMemory", UpdateMemory$) {
1161
+ }
1162
+
1163
+ class UpdateSpaceCommand extends command(_ep1, _mw0, "UpdateSpace", UpdateSpace$) {
1164
+ }
1165
+
1166
+ const paginateListEvents = createPaginator(OpenSearchMemoryClient, ListEventsCommand, "nextToken", "nextToken", "maxResults");
1167
+
1168
+ const paginateListMemories = createPaginator(OpenSearchMemoryClient, ListMemoriesCommand, "nextToken", "nextToken", "maxResults");
1169
+
1170
+ const paginateListSpaces = createPaginator(OpenSearchMemoryClient, ListSpacesCommand, "nextToken", "nextToken", "maxResults");
1171
+
1172
+ const paginateSearchEvents = createPaginator(OpenSearchMemoryClient, SearchEventsCommand, "nextToken", "nextToken", "maxResults");
1173
+
1174
+ const paginateSearchMemories = createPaginator(OpenSearchMemoryClient, SearchMemoriesCommand, "nextToken", "nextToken", "maxResults");
1175
+
1176
+ const checkState$1 = async (client, input) => {
1177
+ let reason;
1178
+ try {
1179
+ let result = await client.send(new GetSpaceCommand(input));
1180
+ reason = result;
1181
+ try {
1182
+ const returnComparator = () => {
1183
+ return result.status;
1184
+ };
1185
+ if (returnComparator() === "ACTIVE") {
1186
+ return { state: WaiterState.SUCCESS, reason };
1187
+ }
1188
+ }
1189
+ catch (e) { }
1190
+ try {
1191
+ const returnComparator = () => {
1192
+ return result.status;
1193
+ };
1194
+ if (returnComparator() === "CREATING") {
1195
+ return { state: WaiterState.RETRY, reason };
1196
+ }
1197
+ }
1198
+ catch (e) { }
1199
+ try {
1200
+ const returnComparator = () => {
1201
+ return result.status;
1202
+ };
1203
+ if (returnComparator() === "UPDATING") {
1204
+ return { state: WaiterState.RETRY, reason };
1205
+ }
1206
+ }
1207
+ catch (e) { }
1208
+ try {
1209
+ const returnComparator = () => {
1210
+ return result.status;
1211
+ };
1212
+ if (returnComparator() === "FAILED") {
1213
+ return { state: WaiterState.FAILURE, reason };
1214
+ }
1215
+ }
1216
+ catch (e) { }
1217
+ try {
1218
+ const returnComparator = () => {
1219
+ return result.status;
1220
+ };
1221
+ if (returnComparator() === "DELETING") {
1222
+ return { state: WaiterState.FAILURE, reason };
1223
+ }
1224
+ }
1225
+ catch (e) { }
1226
+ try {
1227
+ const returnComparator = () => {
1228
+ return result.status;
1229
+ };
1230
+ if (returnComparator() === "DELETED") {
1231
+ return { state: WaiterState.FAILURE, reason };
1232
+ }
1233
+ }
1234
+ catch (e) { }
1235
+ }
1236
+ catch (exception) {
1237
+ reason = exception;
1238
+ if (exception.name === "ResourceNotFoundException") {
1239
+ return { state: WaiterState.RETRY, reason };
1240
+ }
1241
+ }
1242
+ return { state: WaiterState.RETRY, reason };
1243
+ };
1244
+ const waitForSpaceActive = async (params, input) => {
1245
+ const serviceDefaults = { minDelay: 10, maxDelay: 600 };
1246
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
1247
+ };
1248
+ const waitUntilSpaceActive = async (params, input) => {
1249
+ const serviceDefaults = { minDelay: 10, maxDelay: 600 };
1250
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
1251
+ return checkExceptions(result);
1252
+ };
1253
+
1254
+ const checkState = async (client, input) => {
1255
+ let reason;
1256
+ try {
1257
+ let result = await client.send(new GetSpaceCommand(input));
1258
+ reason = result;
1259
+ try {
1260
+ const returnComparator = () => {
1261
+ return result.status;
1262
+ };
1263
+ if (returnComparator() === "DELETED") {
1264
+ return { state: WaiterState.SUCCESS, reason };
1265
+ }
1266
+ }
1267
+ catch (e) { }
1268
+ try {
1269
+ const returnComparator = () => {
1270
+ return result.status;
1271
+ };
1272
+ if (returnComparator() === "DELETING") {
1273
+ return { state: WaiterState.RETRY, reason };
1274
+ }
1275
+ }
1276
+ catch (e) { }
1277
+ try {
1278
+ const returnComparator = () => {
1279
+ return result.status;
1280
+ };
1281
+ if (returnComparator() === "FAILED") {
1282
+ return { state: WaiterState.FAILURE, reason };
1283
+ }
1284
+ }
1285
+ catch (e) { }
1286
+ }
1287
+ catch (exception) {
1288
+ reason = exception;
1289
+ if (exception.name === "ResourceNotFoundException") {
1290
+ return { state: WaiterState.SUCCESS, reason };
1291
+ }
1292
+ }
1293
+ return { state: WaiterState.RETRY, reason };
1294
+ };
1295
+ const waitForSpaceDeleted = async (params, input) => {
1296
+ const serviceDefaults = { minDelay: 10, maxDelay: 600 };
1297
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
1298
+ };
1299
+ const waitUntilSpaceDeleted = async (params, input) => {
1300
+ const serviceDefaults = { minDelay: 10, maxDelay: 600 };
1301
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
1302
+ return checkExceptions(result);
1303
+ };
1304
+
1305
+ const commands = {
1306
+ BatchGetEventCommand,
1307
+ CreateEventCommand,
1308
+ CreateMemoryCommand,
1309
+ CreateSpaceCommand,
1310
+ DeleteEventCommand,
1311
+ DeleteMemoryCommand,
1312
+ DeleteSpaceCommand,
1313
+ GetEventCommand,
1314
+ GetMemoryCommand,
1315
+ GetSpaceCommand,
1316
+ ListEventsCommand,
1317
+ ListMemoriesCommand,
1318
+ ListSpacesCommand,
1319
+ ListTagsForResourceCommand,
1320
+ SearchEventsCommand,
1321
+ SearchMemoriesCommand,
1322
+ TagResourceCommand,
1323
+ UntagResourceCommand,
1324
+ UpdateMemoryCommand,
1325
+ UpdateSpaceCommand,
1326
+ };
1327
+ const paginators = {
1328
+ paginateListEvents,
1329
+ paginateListMemories,
1330
+ paginateListSpaces,
1331
+ paginateSearchEvents,
1332
+ paginateSearchMemories,
1333
+ };
1334
+ const waiters = {
1335
+ waitUntilSpaceActive,
1336
+ waitUntilSpaceDeleted,
1337
+ };
1338
+ class OpenSearchMemory extends OpenSearchMemoryClient {
1339
+ }
1340
+ createAggregatedClient(commands, OpenSearchMemory, { paginators, waiters });
1341
+
1342
+ const BatchGetEventErrorCode = {
1343
+ ACCESS_DENIED: "ACCESS_DENIED",
1344
+ INTERNAL_SERVER: "INTERNAL_SERVER",
1345
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
1346
+ THROTTLING: "THROTTLING",
1347
+ };
1348
+ const BlobContentType = {
1349
+ JPEG: "image/jpeg",
1350
+ PDF: "application/pdf",
1351
+ PNG: "image/png",
1352
+ };
1353
+ const MessageRole = {
1354
+ ASSISTANT: "ASSISTANT",
1355
+ SYSTEM: "SYSTEM",
1356
+ USER: "USER",
1357
+ };
1358
+ const ValidationExceptionReason = {
1359
+ DISALLOWED_QUERY_TYPE: "disallowedQueryType",
1360
+ FIELD_INDEX_MISMATCH: "fieldIndexMismatch",
1361
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
1362
+ INVALID_NEXT_TOKEN: "invalidNextToken",
1363
+ MALFORMED_QUERY_BODY: "malformedQueryBody",
1364
+ NON_FILTERABLE_FIELD: "nonFilterableField",
1365
+ OTHER: "other",
1366
+ QUERY_BODY_TOO_LARGE: "queryBodyTooLarge",
1367
+ QUERY_NESTING_TOO_DEEP: "queryNestingTooDeep",
1368
+ UNBOUNDED_PATTERN: "unboundedPattern",
1369
+ UNKNOWN_FIELD: "unknownField",
1370
+ UNSUPPORTED_FIELD: "unsupportedField",
1371
+ UNSUPPORTED_PARAMETER: "unsupportedParameter",
1372
+ };
1373
+ const MemoryStrategyType = {
1374
+ CUSTOM: "CUSTOM",
1375
+ SEMANTIC: "SEMANTIC",
1376
+ SUMMARY: "SUMMARY",
1377
+ };
1378
+ const SpaceStatus = {
1379
+ ACTIVE: "ACTIVE",
1380
+ CREATING: "CREATING",
1381
+ DELETED: "DELETED",
1382
+ DELETING: "DELETING",
1383
+ FAILED: "FAILED",
1384
+ UPDATING: "UPDATING",
1385
+ };
1386
+ const MemoryType = {
1387
+ CUSTOM: "CUSTOM",
1388
+ SEMANTIC: "SEMANTIC",
1389
+ SUMMARY: "SUMMARY",
1390
+ };
1391
+ const SortOrder = {
1392
+ ASC: "ASC",
1393
+ DESC: "DESC",
1394
+ };
1395
+ const MemorySortField = {
1396
+ CREATED_AT: "CREATED_AT",
1397
+ UPDATED_AT: "UPDATED_AT",
1398
+ };
1399
+ const MetadataMode = {
1400
+ MERGE: "MERGE",
1401
+ REPLACE: "REPLACE",
1402
+ };
1403
+
1404
+ exports.AccessDeniedException = AccessDeniedException;
1405
+ exports.AccessDeniedException$ = AccessDeniedException$;
1406
+ exports.BatchGetEvent$ = BatchGetEvent$;
1407
+ exports.BatchGetEventCommand = BatchGetEventCommand;
1408
+ exports.BatchGetEventError$ = BatchGetEventError$;
1409
+ exports.BatchGetEventErrorCode = BatchGetEventErrorCode;
1410
+ exports.BatchGetEventInput$ = BatchGetEventInput$;
1411
+ exports.BatchGetEventOutput$ = BatchGetEventOutput$;
1412
+ exports.BlobContentType = BlobContentType;
1413
+ exports.BlobPayload$ = BlobPayload$;
1414
+ exports.BlobSource$ = BlobSource$;
1415
+ exports.ConflictException = ConflictException;
1416
+ exports.ConflictException$ = ConflictException$;
1417
+ exports.ConversationalPayload$ = ConversationalPayload$;
1418
+ exports.CreateEvent$ = CreateEvent$;
1419
+ exports.CreateEventCommand = CreateEventCommand;
1420
+ exports.CreateEventInput$ = CreateEventInput$;
1421
+ exports.CreateEventOutput$ = CreateEventOutput$;
1422
+ exports.CreateMemory$ = CreateMemory$;
1423
+ exports.CreateMemoryCommand = CreateMemoryCommand;
1424
+ exports.CreateMemoryDetail$ = CreateMemoryDetail$;
1425
+ exports.CreateMemoryInput$ = CreateMemoryInput$;
1426
+ exports.CreateMemoryOutput$ = CreateMemoryOutput$;
1427
+ exports.CreateSpace$ = CreateSpace$;
1428
+ exports.CreateSpaceCommand = CreateSpaceCommand;
1429
+ exports.CreateSpaceRequest$ = CreateSpaceRequest$;
1430
+ exports.CreateSpaceResponse$ = CreateSpaceResponse$;
1431
+ exports.DeleteEvent$ = DeleteEvent$;
1432
+ exports.DeleteEventCommand = DeleteEventCommand;
1433
+ exports.DeleteEventInput$ = DeleteEventInput$;
1434
+ exports.DeleteEventOutput$ = DeleteEventOutput$;
1435
+ exports.DeleteMemory$ = DeleteMemory$;
1436
+ exports.DeleteMemoryCommand = DeleteMemoryCommand;
1437
+ exports.DeleteMemoryInput$ = DeleteMemoryInput$;
1438
+ exports.DeleteMemoryOutput$ = DeleteMemoryOutput$;
1439
+ exports.DeleteSpace$ = DeleteSpace$;
1440
+ exports.DeleteSpaceCommand = DeleteSpaceCommand;
1441
+ exports.DeleteSpaceRequest$ = DeleteSpaceRequest$;
1442
+ exports.DeleteSpaceResponse$ = DeleteSpaceResponse$;
1443
+ exports.EncryptionConfiguration$ = EncryptionConfiguration$;
1444
+ exports.Event$ = Event$;
1445
+ exports.EventDetail$ = EventDetail$;
1446
+ exports.EventPayload$ = EventPayload$;
1447
+ exports.EventSearchSummary$ = EventSearchSummary$;
1448
+ exports.EventSummary$ = EventSummary$;
1449
+ exports.GetEvent$ = GetEvent$;
1450
+ exports.GetEventCommand = GetEventCommand;
1451
+ exports.GetEventInput$ = GetEventInput$;
1452
+ exports.GetEventOutput$ = GetEventOutput$;
1453
+ exports.GetMemory$ = GetMemory$;
1454
+ exports.GetMemoryCommand = GetMemoryCommand;
1455
+ exports.GetMemoryInput$ = GetMemoryInput$;
1456
+ exports.GetMemoryOutput$ = GetMemoryOutput$;
1457
+ exports.GetSpace$ = GetSpace$;
1458
+ exports.GetSpaceCommand = GetSpaceCommand;
1459
+ exports.GetSpaceRequest$ = GetSpaceRequest$;
1460
+ exports.GetSpaceResponse$ = GetSpaceResponse$;
1461
+ exports.InternalServerException = InternalServerException;
1462
+ exports.InternalServerException$ = InternalServerException$;
1463
+ exports.ListEvents$ = ListEvents$;
1464
+ exports.ListEventsCommand = ListEventsCommand;
1465
+ exports.ListEventsInput$ = ListEventsInput$;
1466
+ exports.ListEventsOutput$ = ListEventsOutput$;
1467
+ exports.ListMemories$ = ListMemories$;
1468
+ exports.ListMemoriesCommand = ListMemoriesCommand;
1469
+ exports.ListMemoriesInput$ = ListMemoriesInput$;
1470
+ exports.ListMemoriesOutput$ = ListMemoriesOutput$;
1471
+ exports.ListSpaces$ = ListSpaces$;
1472
+ exports.ListSpacesCommand = ListSpacesCommand;
1473
+ exports.ListSpacesRequest$ = ListSpacesRequest$;
1474
+ exports.ListSpacesResponse$ = ListSpacesResponse$;
1475
+ exports.ListTagsForResource$ = ListTagsForResource$;
1476
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1477
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1478
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1479
+ exports.Memory$ = Memory$;
1480
+ exports.MemoryListSummary$ = MemoryListSummary$;
1481
+ exports.MemorySearchSummary$ = MemorySearchSummary$;
1482
+ exports.MemorySortField = MemorySortField;
1483
+ exports.MemoryStrategy$ = MemoryStrategy$;
1484
+ exports.MemoryStrategyConfiguration$ = MemoryStrategyConfiguration$;
1485
+ exports.MemoryStrategyType = MemoryStrategyType;
1486
+ exports.MemoryType = MemoryType;
1487
+ exports.Message$ = Message$;
1488
+ exports.MessageContent$ = MessageContent$;
1489
+ exports.MessageRole = MessageRole;
1490
+ exports.MetadataMode = MetadataMode;
1491
+ exports.OpenSearchMemory = OpenSearchMemory;
1492
+ exports.OpenSearchMemoryClient = OpenSearchMemoryClient;
1493
+ exports.OpenSearchMemoryServiceException = OpenSearchMemoryServiceException;
1494
+ exports.OpenSearchMemoryServiceException$ = OpenSearchMemoryServiceException$;
1495
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1496
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1497
+ exports.S3Location$ = S3Location$;
1498
+ exports.SearchEvents$ = SearchEvents$;
1499
+ exports.SearchEventsCommand = SearchEventsCommand;
1500
+ exports.SearchEventsInput$ = SearchEventsInput$;
1501
+ exports.SearchEventsOutput$ = SearchEventsOutput$;
1502
+ exports.SearchMemories$ = SearchMemories$;
1503
+ exports.SearchMemoriesCommand = SearchMemoriesCommand;
1504
+ exports.SearchMemoriesInput$ = SearchMemoriesInput$;
1505
+ exports.SearchMemoriesOutput$ = SearchMemoriesOutput$;
1506
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1507
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1508
+ exports.SortOrder = SortOrder;
1509
+ exports.SpaceStatus = SpaceStatus;
1510
+ exports.SpaceSummary$ = SpaceSummary$;
1511
+ exports.StrategySelector$ = StrategySelector$;
1512
+ exports.StructuredDataPayload$ = StructuredDataPayload$;
1513
+ exports.StructuredDataSource$ = StructuredDataSource$;
1514
+ exports.SystemMetadata$ = SystemMetadata$;
1515
+ exports.Tag$ = Tag$;
1516
+ exports.TagResource$ = TagResource$;
1517
+ exports.TagResourceCommand = TagResourceCommand;
1518
+ exports.TagResourceRequest$ = TagResourceRequest$;
1519
+ exports.TagResourceResponse$ = TagResourceResponse$;
1520
+ exports.ThrottlingException = ThrottlingException;
1521
+ exports.ThrottlingException$ = ThrottlingException$;
1522
+ exports.UnifiedConversational$ = UnifiedConversational$;
1523
+ exports.UnifiedConversationalObject$ = UnifiedConversationalObject$;
1524
+ exports.UnifiedConversationalSource$ = UnifiedConversationalSource$;
1525
+ exports.UntagResource$ = UntagResource$;
1526
+ exports.UntagResourceCommand = UntagResourceCommand;
1527
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1528
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1529
+ exports.UpdateMemory$ = UpdateMemory$;
1530
+ exports.UpdateMemoryCommand = UpdateMemoryCommand;
1531
+ exports.UpdateMemoryInput$ = UpdateMemoryInput$;
1532
+ exports.UpdateMemoryOutput$ = UpdateMemoryOutput$;
1533
+ exports.UpdateSpace$ = UpdateSpace$;
1534
+ exports.UpdateSpaceCommand = UpdateSpaceCommand;
1535
+ exports.UpdateSpaceRequest$ = UpdateSpaceRequest$;
1536
+ exports.UpdateSpaceResponse$ = UpdateSpaceResponse$;
1537
+ exports.ValidationException = ValidationException;
1538
+ exports.ValidationException$ = ValidationException$;
1539
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
1540
+ exports.ValidationExceptionReason = ValidationExceptionReason;
1541
+ exports.errorTypeRegistries = errorTypeRegistries;
1542
+ exports.paginateListEvents = paginateListEvents;
1543
+ exports.paginateListMemories = paginateListMemories;
1544
+ exports.paginateListSpaces = paginateListSpaces;
1545
+ exports.paginateSearchEvents = paginateSearchEvents;
1546
+ exports.paginateSearchMemories = paginateSearchMemories;
1547
+ exports.waitForSpaceActive = waitForSpaceActive;
1548
+ exports.waitForSpaceDeleted = waitForSpaceDeleted;
1549
+ exports.waitUntilSpaceActive = waitUntilSpaceActive;
1550
+ exports.waitUntilSpaceDeleted = waitUntilSpaceDeleted;