@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,79 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { GetSpaceCommand } from "../commands/GetSpaceCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetSpaceCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ACTIVE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CREATING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "UPDATING") {
|
|
31
|
+
return { state: WaiterState.RETRY, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
try {
|
|
36
|
+
const returnComparator = () => {
|
|
37
|
+
return result.status;
|
|
38
|
+
};
|
|
39
|
+
if (returnComparator() === "FAILED") {
|
|
40
|
+
return { state: WaiterState.FAILURE, reason };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
44
|
+
try {
|
|
45
|
+
const returnComparator = () => {
|
|
46
|
+
return result.status;
|
|
47
|
+
};
|
|
48
|
+
if (returnComparator() === "DELETING") {
|
|
49
|
+
return { state: WaiterState.FAILURE, reason };
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (e) { }
|
|
53
|
+
try {
|
|
54
|
+
const returnComparator = () => {
|
|
55
|
+
return result.status;
|
|
56
|
+
};
|
|
57
|
+
if (returnComparator() === "DELETED") {
|
|
58
|
+
return { state: WaiterState.FAILURE, reason };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e) { }
|
|
62
|
+
}
|
|
63
|
+
catch (exception) {
|
|
64
|
+
reason = exception;
|
|
65
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
66
|
+
return { state: WaiterState.RETRY, reason };
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return { state: WaiterState.RETRY, reason };
|
|
70
|
+
};
|
|
71
|
+
export const waitForSpaceActive = async (params, input) => {
|
|
72
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 600 };
|
|
73
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
74
|
+
};
|
|
75
|
+
export const waitUntilSpaceActive = async (params, input) => {
|
|
76
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 600 };
|
|
77
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
78
|
+
return checkExceptions(result);
|
|
79
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { GetSpaceCommand } from "../commands/GetSpaceCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetSpaceCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "DELETING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
39
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return { state: WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
export const waitForSpaceDeleted = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 600 };
|
|
46
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
export const waitUntilSpaceDeleted = async (params, input) => {
|
|
49
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 600 };
|
|
50
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
51
|
+
return checkExceptions(result);
|
|
52
|
+
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { type WaiterResult } from "@smithy/core/client";
|
|
2
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
|
|
3
|
+
import { type BatchGetEventCommandInput, type BatchGetEventCommandOutput } from "./commands/BatchGetEventCommand";
|
|
4
|
+
import { type CreateEventCommandInput, type CreateEventCommandOutput } from "./commands/CreateEventCommand";
|
|
5
|
+
import { type CreateMemoryCommandInput, type CreateMemoryCommandOutput } from "./commands/CreateMemoryCommand";
|
|
6
|
+
import { type CreateSpaceCommandInput, type CreateSpaceCommandOutput } from "./commands/CreateSpaceCommand";
|
|
7
|
+
import { type DeleteEventCommandInput, type DeleteEventCommandOutput } from "./commands/DeleteEventCommand";
|
|
8
|
+
import { type DeleteMemoryCommandInput, type DeleteMemoryCommandOutput } from "./commands/DeleteMemoryCommand";
|
|
9
|
+
import { type DeleteSpaceCommandInput, type DeleteSpaceCommandOutput } from "./commands/DeleteSpaceCommand";
|
|
10
|
+
import { type GetEventCommandInput, type GetEventCommandOutput } from "./commands/GetEventCommand";
|
|
11
|
+
import { type GetMemoryCommandInput, type GetMemoryCommandOutput } from "./commands/GetMemoryCommand";
|
|
12
|
+
import { type GetSpaceCommandInput, type GetSpaceCommandOutput } from "./commands/GetSpaceCommand";
|
|
13
|
+
import { type ListEventsCommandInput, type ListEventsCommandOutput } from "./commands/ListEventsCommand";
|
|
14
|
+
import { type ListMemoriesCommandInput, type ListMemoriesCommandOutput } from "./commands/ListMemoriesCommand";
|
|
15
|
+
import { type ListSpacesCommandInput, type ListSpacesCommandOutput } from "./commands/ListSpacesCommand";
|
|
16
|
+
import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
17
|
+
import { type SearchEventsCommandInput, type SearchEventsCommandOutput } from "./commands/SearchEventsCommand";
|
|
18
|
+
import { type SearchMemoriesCommandInput, type SearchMemoriesCommandOutput } from "./commands/SearchMemoriesCommand";
|
|
19
|
+
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
20
|
+
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { type UpdateMemoryCommandInput, type UpdateMemoryCommandOutput } from "./commands/UpdateMemoryCommand";
|
|
22
|
+
import { type UpdateSpaceCommandInput, type UpdateSpaceCommandOutput } from "./commands/UpdateSpaceCommand";
|
|
23
|
+
import type { ResourceNotFoundException } from "./models/errors";
|
|
24
|
+
import { OpenSearchMemoryClient } from "./OpenSearchMemoryClient";
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export interface OpenSearchMemoryRequestOptions extends __HttpHandlerOptions {
|
|
29
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
30
|
+
}
|
|
31
|
+
export interface OpenSearchMemory {
|
|
32
|
+
/**
|
|
33
|
+
* @see {@link BatchGetEventCommand}
|
|
34
|
+
*/
|
|
35
|
+
batchGetEvent(args: BatchGetEventCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<BatchGetEventCommandOutput>;
|
|
36
|
+
batchGetEvent(args: BatchGetEventCommandInput, cb: (err: any, data?: BatchGetEventCommandOutput) => void): void;
|
|
37
|
+
batchGetEvent(args: BatchGetEventCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: BatchGetEventCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link CreateEventCommand}
|
|
40
|
+
*/
|
|
41
|
+
createEvent(args: CreateEventCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<CreateEventCommandOutput>;
|
|
42
|
+
createEvent(args: CreateEventCommandInput, cb: (err: any, data?: CreateEventCommandOutput) => void): void;
|
|
43
|
+
createEvent(args: CreateEventCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: CreateEventCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link CreateMemoryCommand}
|
|
46
|
+
*/
|
|
47
|
+
createMemory(args: CreateMemoryCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<CreateMemoryCommandOutput>;
|
|
48
|
+
createMemory(args: CreateMemoryCommandInput, cb: (err: any, data?: CreateMemoryCommandOutput) => void): void;
|
|
49
|
+
createMemory(args: CreateMemoryCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: CreateMemoryCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link CreateSpaceCommand}
|
|
52
|
+
*/
|
|
53
|
+
createSpace(args: CreateSpaceCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<CreateSpaceCommandOutput>;
|
|
54
|
+
createSpace(args: CreateSpaceCommandInput, cb: (err: any, data?: CreateSpaceCommandOutput) => void): void;
|
|
55
|
+
createSpace(args: CreateSpaceCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: CreateSpaceCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link DeleteEventCommand}
|
|
58
|
+
*/
|
|
59
|
+
deleteEvent(args: DeleteEventCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<DeleteEventCommandOutput>;
|
|
60
|
+
deleteEvent(args: DeleteEventCommandInput, cb: (err: any, data?: DeleteEventCommandOutput) => void): void;
|
|
61
|
+
deleteEvent(args: DeleteEventCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: DeleteEventCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link DeleteMemoryCommand}
|
|
64
|
+
*/
|
|
65
|
+
deleteMemory(args: DeleteMemoryCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<DeleteMemoryCommandOutput>;
|
|
66
|
+
deleteMemory(args: DeleteMemoryCommandInput, cb: (err: any, data?: DeleteMemoryCommandOutput) => void): void;
|
|
67
|
+
deleteMemory(args: DeleteMemoryCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: DeleteMemoryCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link DeleteSpaceCommand}
|
|
70
|
+
*/
|
|
71
|
+
deleteSpace(args: DeleteSpaceCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<DeleteSpaceCommandOutput>;
|
|
72
|
+
deleteSpace(args: DeleteSpaceCommandInput, cb: (err: any, data?: DeleteSpaceCommandOutput) => void): void;
|
|
73
|
+
deleteSpace(args: DeleteSpaceCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: DeleteSpaceCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* @see {@link GetEventCommand}
|
|
76
|
+
*/
|
|
77
|
+
getEvent(args: GetEventCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<GetEventCommandOutput>;
|
|
78
|
+
getEvent(args: GetEventCommandInput, cb: (err: any, data?: GetEventCommandOutput) => void): void;
|
|
79
|
+
getEvent(args: GetEventCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: GetEventCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* @see {@link GetMemoryCommand}
|
|
82
|
+
*/
|
|
83
|
+
getMemory(args: GetMemoryCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<GetMemoryCommandOutput>;
|
|
84
|
+
getMemory(args: GetMemoryCommandInput, cb: (err: any, data?: GetMemoryCommandOutput) => void): void;
|
|
85
|
+
getMemory(args: GetMemoryCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: GetMemoryCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link GetSpaceCommand}
|
|
88
|
+
*/
|
|
89
|
+
getSpace(args: GetSpaceCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<GetSpaceCommandOutput>;
|
|
90
|
+
getSpace(args: GetSpaceCommandInput, cb: (err: any, data?: GetSpaceCommandOutput) => void): void;
|
|
91
|
+
getSpace(args: GetSpaceCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: GetSpaceCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link ListEventsCommand}
|
|
94
|
+
*/
|
|
95
|
+
listEvents(args: ListEventsCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<ListEventsCommandOutput>;
|
|
96
|
+
listEvents(args: ListEventsCommandInput, cb: (err: any, data?: ListEventsCommandOutput) => void): void;
|
|
97
|
+
listEvents(args: ListEventsCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: ListEventsCommandOutput) => void): void;
|
|
98
|
+
/**
|
|
99
|
+
* @see {@link ListMemoriesCommand}
|
|
100
|
+
*/
|
|
101
|
+
listMemories(args: ListMemoriesCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<ListMemoriesCommandOutput>;
|
|
102
|
+
listMemories(args: ListMemoriesCommandInput, cb: (err: any, data?: ListMemoriesCommandOutput) => void): void;
|
|
103
|
+
listMemories(args: ListMemoriesCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: ListMemoriesCommandOutput) => void): void;
|
|
104
|
+
/**
|
|
105
|
+
* @see {@link ListSpacesCommand}
|
|
106
|
+
*/
|
|
107
|
+
listSpaces(): Promise<ListSpacesCommandOutput>;
|
|
108
|
+
listSpaces(args: ListSpacesCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<ListSpacesCommandOutput>;
|
|
109
|
+
listSpaces(args: ListSpacesCommandInput, cb: (err: any, data?: ListSpacesCommandOutput) => void): void;
|
|
110
|
+
listSpaces(args: ListSpacesCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: ListSpacesCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link ListTagsForResourceCommand}
|
|
113
|
+
*/
|
|
114
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
115
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
116
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
117
|
+
/**
|
|
118
|
+
* @see {@link SearchEventsCommand}
|
|
119
|
+
*/
|
|
120
|
+
searchEvents(args: SearchEventsCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<SearchEventsCommandOutput>;
|
|
121
|
+
searchEvents(args: SearchEventsCommandInput, cb: (err: any, data?: SearchEventsCommandOutput) => void): void;
|
|
122
|
+
searchEvents(args: SearchEventsCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: SearchEventsCommandOutput) => void): void;
|
|
123
|
+
/**
|
|
124
|
+
* @see {@link SearchMemoriesCommand}
|
|
125
|
+
*/
|
|
126
|
+
searchMemories(args: SearchMemoriesCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<SearchMemoriesCommandOutput>;
|
|
127
|
+
searchMemories(args: SearchMemoriesCommandInput, cb: (err: any, data?: SearchMemoriesCommandOutput) => void): void;
|
|
128
|
+
searchMemories(args: SearchMemoriesCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: SearchMemoriesCommandOutput) => void): void;
|
|
129
|
+
/**
|
|
130
|
+
* @see {@link TagResourceCommand}
|
|
131
|
+
*/
|
|
132
|
+
tagResource(args: TagResourceCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<TagResourceCommandOutput>;
|
|
133
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
134
|
+
tagResource(args: TagResourceCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link UntagResourceCommand}
|
|
137
|
+
*/
|
|
138
|
+
untagResource(args: UntagResourceCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<UntagResourceCommandOutput>;
|
|
139
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
140
|
+
untagResource(args: UntagResourceCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
141
|
+
/**
|
|
142
|
+
* @see {@link UpdateMemoryCommand}
|
|
143
|
+
*/
|
|
144
|
+
updateMemory(args: UpdateMemoryCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<UpdateMemoryCommandOutput>;
|
|
145
|
+
updateMemory(args: UpdateMemoryCommandInput, cb: (err: any, data?: UpdateMemoryCommandOutput) => void): void;
|
|
146
|
+
updateMemory(args: UpdateMemoryCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: UpdateMemoryCommandOutput) => void): void;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link UpdateSpaceCommand}
|
|
149
|
+
*/
|
|
150
|
+
updateSpace(args: UpdateSpaceCommandInput, options?: OpenSearchMemoryRequestOptions): Promise<UpdateSpaceCommandOutput>;
|
|
151
|
+
updateSpace(args: UpdateSpaceCommandInput, cb: (err: any, data?: UpdateSpaceCommandOutput) => void): void;
|
|
152
|
+
updateSpace(args: UpdateSpaceCommandInput, options: OpenSearchMemoryRequestOptions, cb: (err: any, data?: UpdateSpaceCommandOutput) => void): void;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link ListEventsCommand}
|
|
155
|
+
* @param args - command input.
|
|
156
|
+
* @param paginationConfig - optional pagination config.
|
|
157
|
+
* @returns AsyncIterable of {@link ListEventsCommandOutput}.
|
|
158
|
+
*/
|
|
159
|
+
paginateListEvents(args: ListEventsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEventsCommandOutput>;
|
|
160
|
+
/**
|
|
161
|
+
* @see {@link ListMemoriesCommand}
|
|
162
|
+
* @param args - command input.
|
|
163
|
+
* @param paginationConfig - optional pagination config.
|
|
164
|
+
* @returns AsyncIterable of {@link ListMemoriesCommandOutput}.
|
|
165
|
+
*/
|
|
166
|
+
paginateListMemories(args: ListMemoriesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListMemoriesCommandOutput>;
|
|
167
|
+
/**
|
|
168
|
+
* @see {@link ListSpacesCommand}
|
|
169
|
+
* @param args - command input.
|
|
170
|
+
* @param paginationConfig - optional pagination config.
|
|
171
|
+
* @returns AsyncIterable of {@link ListSpacesCommandOutput}.
|
|
172
|
+
*/
|
|
173
|
+
paginateListSpaces(args?: ListSpacesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSpacesCommandOutput>;
|
|
174
|
+
/**
|
|
175
|
+
* @see {@link SearchEventsCommand}
|
|
176
|
+
* @param args - command input.
|
|
177
|
+
* @param paginationConfig - optional pagination config.
|
|
178
|
+
* @returns AsyncIterable of {@link SearchEventsCommandOutput}.
|
|
179
|
+
*/
|
|
180
|
+
paginateSearchEvents(args: SearchEventsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchEventsCommandOutput>;
|
|
181
|
+
/**
|
|
182
|
+
* @see {@link SearchMemoriesCommand}
|
|
183
|
+
* @param args - command input.
|
|
184
|
+
* @param paginationConfig - optional pagination config.
|
|
185
|
+
* @returns AsyncIterable of {@link SearchMemoriesCommandOutput}.
|
|
186
|
+
*/
|
|
187
|
+
paginateSearchMemories(args: SearchMemoriesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchMemoriesCommandOutput>;
|
|
188
|
+
/**
|
|
189
|
+
* @see {@link GetSpaceCommand}
|
|
190
|
+
* @param args - command input.
|
|
191
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
192
|
+
*/
|
|
193
|
+
waitUntilSpaceActive(args: GetSpaceCommandInput, waiterConfig: number | Omit<WaiterConfiguration<OpenSearchMemory>, "client">): Promise<WaiterResult<GetSpaceCommandOutput>>;
|
|
194
|
+
/**
|
|
195
|
+
* @see {@link GetSpaceCommand}
|
|
196
|
+
* @param args - command input.
|
|
197
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
198
|
+
*/
|
|
199
|
+
waitUntilSpaceDeleted(args: GetSpaceCommandInput, waiterConfig: number | Omit<WaiterConfiguration<OpenSearchMemory>, "client">): Promise<WaiterResult<GetSpaceCommandOutput | ResourceNotFoundException>>;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* <p>Amazon OpenSearch Memory lets your AI agents and applications recall facts and summaries across sessions. Your agents send events, such as conversation turns, and search the memories derived from them.</p> <p>A space groups related events and memories, and holds the memory strategies that you configure for them. Use the space operations to create, get, list, update, and delete spaces. Use the event and memory operations to write, read, list, search, update, and delete a space's events and memories.</p>
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
export declare class OpenSearchMemory extends OpenSearchMemoryClient implements OpenSearchMemory {
|
|
206
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
2
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
6
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
7
|
+
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import type { BatchGetEventCommandInput, BatchGetEventCommandOutput } from "./commands/BatchGetEventCommand";
|
|
10
|
+
import type { CreateEventCommandInput, CreateEventCommandOutput } from "./commands/CreateEventCommand";
|
|
11
|
+
import type { CreateMemoryCommandInput, CreateMemoryCommandOutput } from "./commands/CreateMemoryCommand";
|
|
12
|
+
import type { CreateSpaceCommandInput, CreateSpaceCommandOutput } from "./commands/CreateSpaceCommand";
|
|
13
|
+
import type { DeleteEventCommandInput, DeleteEventCommandOutput } from "./commands/DeleteEventCommand";
|
|
14
|
+
import type { DeleteMemoryCommandInput, DeleteMemoryCommandOutput } from "./commands/DeleteMemoryCommand";
|
|
15
|
+
import type { DeleteSpaceCommandInput, DeleteSpaceCommandOutput } from "./commands/DeleteSpaceCommand";
|
|
16
|
+
import type { GetEventCommandInput, GetEventCommandOutput } from "./commands/GetEventCommand";
|
|
17
|
+
import type { GetMemoryCommandInput, GetMemoryCommandOutput } from "./commands/GetMemoryCommand";
|
|
18
|
+
import type { GetSpaceCommandInput, GetSpaceCommandOutput } from "./commands/GetSpaceCommand";
|
|
19
|
+
import type { ListEventsCommandInput, ListEventsCommandOutput } from "./commands/ListEventsCommand";
|
|
20
|
+
import type { ListMemoriesCommandInput, ListMemoriesCommandOutput } from "./commands/ListMemoriesCommand";
|
|
21
|
+
import type { ListSpacesCommandInput, ListSpacesCommandOutput } from "./commands/ListSpacesCommand";
|
|
22
|
+
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
23
|
+
import type { SearchEventsCommandInput, SearchEventsCommandOutput } from "./commands/SearchEventsCommand";
|
|
24
|
+
import type { SearchMemoriesCommandInput, SearchMemoriesCommandOutput } from "./commands/SearchMemoriesCommand";
|
|
25
|
+
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
26
|
+
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
27
|
+
import type { UpdateMemoryCommandInput, UpdateMemoryCommandOutput } from "./commands/UpdateMemoryCommand";
|
|
28
|
+
import type { UpdateSpaceCommandInput, UpdateSpaceCommandOutput } from "./commands/UpdateSpaceCommand";
|
|
29
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
30
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
31
|
+
export { __Client };
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export type ServiceInputTypes = BatchGetEventCommandInput | CreateEventCommandInput | CreateMemoryCommandInput | CreateSpaceCommandInput | DeleteEventCommandInput | DeleteMemoryCommandInput | DeleteSpaceCommandInput | GetEventCommandInput | GetMemoryCommandInput | GetSpaceCommandInput | ListEventsCommandInput | ListMemoriesCommandInput | ListSpacesCommandInput | ListTagsForResourceCommandInput | SearchEventsCommandInput | SearchMemoriesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMemoryCommandInput | UpdateSpaceCommandInput;
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type ServiceOutputTypes = BatchGetEventCommandOutput | CreateEventCommandOutput | CreateMemoryCommandOutput | CreateSpaceCommandOutput | DeleteEventCommandOutput | DeleteMemoryCommandOutput | DeleteSpaceCommandOutput | GetEventCommandOutput | GetMemoryCommandOutput | GetSpaceCommandOutput | ListEventsCommandOutput | ListMemoriesCommandOutput | ListSpacesCommandOutput | ListTagsForResourceCommandOutput | SearchEventsCommandOutput | SearchMemoriesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMemoryCommandOutput | UpdateSpaceCommandOutput;
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
44
|
+
/**
|
|
45
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
46
|
+
*/
|
|
47
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
48
|
+
/**
|
|
49
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
50
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
54
|
+
/**
|
|
55
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
urlParser?: __UrlParser;
|
|
59
|
+
/**
|
|
60
|
+
* A function that can calculate the length of a request body.
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
64
|
+
/**
|
|
65
|
+
* A function that converts a stream into an array of bytes.
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
streamCollector?: __StreamCollector;
|
|
69
|
+
/**
|
|
70
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
base64Decoder?: __Decoder;
|
|
74
|
+
/**
|
|
75
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
base64Encoder?: __Encoder;
|
|
79
|
+
/**
|
|
80
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
utf8Decoder?: __Decoder;
|
|
84
|
+
/**
|
|
85
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
utf8Encoder?: __Encoder;
|
|
89
|
+
/**
|
|
90
|
+
* The runtime environment.
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
runtime?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
96
|
+
* trait of an operation.
|
|
97
|
+
*/
|
|
98
|
+
disableHostPrefix?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Unique service identifier.
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
serviceId?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
106
|
+
*/
|
|
107
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Enables FIPS compatible endpoints.
|
|
110
|
+
*/
|
|
111
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* The AWS region to which this client will send requests
|
|
114
|
+
*/
|
|
115
|
+
region?: string | __Provider<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Setting a client profile is similar to setting a value for the
|
|
118
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
119
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
120
|
+
*
|
|
121
|
+
* When set, and only for environments where an AWS configuration
|
|
122
|
+
* file exists, fields configurable by this file will be retrieved
|
|
123
|
+
* from the specified profile within that file.
|
|
124
|
+
* Conflicting code configuration and environment variables will
|
|
125
|
+
* still have higher priority.
|
|
126
|
+
*
|
|
127
|
+
* For client credential resolution that involves checking the AWS
|
|
128
|
+
* configuration file, the client's profile (this value) will be
|
|
129
|
+
* used unless a different profile is set in the credential
|
|
130
|
+
* provider options.
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
profile?: string;
|
|
134
|
+
/**
|
|
135
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
139
|
+
/**
|
|
140
|
+
* Default credentials provider; Not available in browser runtime.
|
|
141
|
+
* @deprecated
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
145
|
+
/**
|
|
146
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
147
|
+
*/
|
|
148
|
+
maxAttempts?: number | __Provider<number>;
|
|
149
|
+
/**
|
|
150
|
+
* Specifies which retry algorithm to use.
|
|
151
|
+
* Accepted values are "standard" and "adaptive".
|
|
152
|
+
* @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
retryMode?: string | __Provider<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Optional logger for logging debug/info/warn/error.
|
|
158
|
+
*/
|
|
159
|
+
logger?: __Logger;
|
|
160
|
+
/**
|
|
161
|
+
* Optional extensions
|
|
162
|
+
*/
|
|
163
|
+
extensions?: RuntimeExtension[];
|
|
164
|
+
/**
|
|
165
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
166
|
+
*/
|
|
167
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
export type OpenSearchMemoryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
*
|
|
176
|
+
* The configuration interface of OpenSearchMemoryClient class constructor that set the region, credentials and other options.
|
|
177
|
+
*/
|
|
178
|
+
export interface OpenSearchMemoryClientConfig extends OpenSearchMemoryClientConfigType {
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
export type OpenSearchMemoryClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
184
|
+
/**
|
|
185
|
+
* @public
|
|
186
|
+
*
|
|
187
|
+
* The resolved configuration interface of OpenSearchMemoryClient class. This is resolved and normalized from the {@link OpenSearchMemoryClientConfig | constructor configuration interface}.
|
|
188
|
+
*/
|
|
189
|
+
export interface OpenSearchMemoryClientResolvedConfig extends OpenSearchMemoryClientResolvedConfigType {
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* <p>Amazon OpenSearch Memory lets your AI agents and applications recall facts and summaries across sessions. Your agents send events, such as conversation turns, and search the memories derived from them.</p> <p>A space groups related events and memories, and holds the memory strategies that you configure for them. Use the space operations to create, get, list, update, and delete spaces. Use the event and memory operations to write, read, list, search, update, and delete a space's events and memories.</p>
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
export declare class OpenSearchMemoryClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, OpenSearchMemoryClientResolvedConfig> {
|
|
196
|
+
/**
|
|
197
|
+
* The resolved configuration of OpenSearchMemoryClient class. This is resolved and normalized from the {@link OpenSearchMemoryClientConfig | constructor configuration interface}.
|
|
198
|
+
*/
|
|
199
|
+
readonly config: OpenSearchMemoryClientResolvedConfig;
|
|
200
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<OpenSearchMemoryClientConfig>);
|
|
201
|
+
/**
|
|
202
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
203
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
204
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
205
|
+
*/
|
|
206
|
+
destroy(): void;
|
|
207
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { OpenSearchMemoryHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: OpenSearchMemoryHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): OpenSearchMemoryHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: OpenSearchMemoryHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type OpenSearchMemoryClientResolvedConfig } from "../OpenSearchMemoryClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface OpenSearchMemoryHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface OpenSearchMemoryHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<OpenSearchMemoryClientResolvedConfig, HandlerExecutionContext, OpenSearchMemoryHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultOpenSearchMemoryHttpAuthSchemeParametersProvider: (config: OpenSearchMemoryClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<OpenSearchMemoryHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface OpenSearchMemoryHttpAuthSchemeProvider extends HttpAuthSchemeProvider<OpenSearchMemoryHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultOpenSearchMemoryHttpAuthSchemeProvider: OpenSearchMemoryHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: OpenSearchMemoryHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: OpenSearchMemoryHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|