@aws-sdk/client-wisdom 3.450.0 → 3.454.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/README.md +80 -0
- package/dist-cjs/Wisdom.js +20 -0
- package/dist-cjs/commands/CreateQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/DeleteImportJobCommand.js +51 -0
- package/dist-cjs/commands/DeleteQuickResponseCommand.js +51 -0
- package/dist-cjs/commands/GetImportJobCommand.js +52 -0
- package/dist-cjs/commands/GetQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/ListImportJobsCommand.js +51 -0
- package/dist-cjs/commands/ListQuickResponsesCommand.js +52 -0
- package/dist-cjs/commands/SearchQuickResponsesCommand.js +52 -0
- package/dist-cjs/commands/StartImportJobCommand.js +52 -0
- package/dist-cjs/commands/UpdateQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +200 -1
- package/dist-cjs/pagination/ListImportJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListQuickResponsesPaginator.js +29 -0
- package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +816 -18
- package/dist-es/Wisdom.js +20 -0
- package/dist-es/commands/CreateQuickResponseCommand.js +48 -0
- package/dist-es/commands/DeleteImportJobCommand.js +47 -0
- package/dist-es/commands/DeleteQuickResponseCommand.js +47 -0
- package/dist-es/commands/GetImportJobCommand.js +48 -0
- package/dist-es/commands/GetQuickResponseCommand.js +48 -0
- package/dist-es/commands/ListImportJobsCommand.js +47 -0
- package/dist-es/commands/ListQuickResponsesCommand.js +48 -0
- package/dist-es/commands/SearchQuickResponsesCommand.js +48 -0
- package/dist-es/commands/StartImportJobCommand.js +48 -0
- package/dist-es/commands/UpdateQuickResponseCommand.js +48 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +179 -0
- package/dist-es/pagination/ListImportJobsPaginator.js +25 -0
- package/dist-es/pagination/ListQuickResponsesPaginator.js +25 -0
- package/dist-es/pagination/SearchQuickResponsesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +794 -16
- package/dist-types/Wisdom.d.ts +70 -0
- package/dist-types/WisdomClient.d.ts +12 -2
- package/dist-types/commands/CreateQuickResponseCommand.d.ts +149 -0
- package/dist-types/commands/DeleteImportJobCommand.d.ts +87 -0
- package/dist-types/commands/DeleteQuickResponseCommand.d.ts +81 -0
- package/dist-types/commands/GetImportJobCommand.d.ts +106 -0
- package/dist-types/commands/GetQuickResponseCommand.d.ts +118 -0
- package/dist-types/commands/ListImportJobsCommand.d.ts +104 -0
- package/dist-types/commands/ListQuickResponsesCommand.d.ts +106 -0
- package/dist-types/commands/QueryAssistantCommand.d.ts +5 -0
- package/dist-types/commands/SearchQuickResponsesCommand.d.ts +163 -0
- package/dist-types/commands/StartContentUploadCommand.d.ts +1 -0
- package/dist-types/commands/StartImportJobCommand.d.ts +135 -0
- package/dist-types/commands/UpdateQuickResponseCommand.d.ts +149 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1631 -167
- package/dist-types/pagination/ListImportJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListQuickResponsesPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchQuickResponsesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/Wisdom.d.ts +170 -0
- package/dist-types/ts3.4/WisdomClient.d.ts +62 -2
- package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +397 -0
- package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListQuickResponsesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchQuickResponsesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +35 -35
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetImportJobRequest, GetImportJobResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetImportJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetImportJobCommandInput extends GetImportJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetImportJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetImportJobCommandOutput extends GetImportJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves the started import job.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { WisdomClient, GetImportJobCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
31
|
+
* // const { WisdomClient, GetImportJobCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
32
|
+
* const client = new WisdomClient(config);
|
|
33
|
+
* const input = { // GetImportJobRequest
|
|
34
|
+
* importJobId: "STRING_VALUE", // required
|
|
35
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetImportJobCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetImportJobResponse
|
|
40
|
+
* // importJob: { // ImportJobData
|
|
41
|
+
* // importJobId: "STRING_VALUE", // required
|
|
42
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
43
|
+
* // uploadId: "STRING_VALUE", // required
|
|
44
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
45
|
+
* // importJobType: "STRING_VALUE", // required
|
|
46
|
+
* // status: "STRING_VALUE", // required
|
|
47
|
+
* // url: "STRING_VALUE", // required
|
|
48
|
+
* // failedRecordReport: "STRING_VALUE",
|
|
49
|
+
* // urlExpiry: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // metadata: { // ContentMetadata
|
|
53
|
+
* // "<keys>": "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // externalSourceConfiguration: { // ExternalSourceConfiguration
|
|
56
|
+
* // source: "STRING_VALUE", // required
|
|
57
|
+
* // configuration: { // Configuration Union: only one key present
|
|
58
|
+
* // connectConfiguration: { // ConnectConfiguration
|
|
59
|
+
* // instanceId: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // },
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @param GetImportJobCommandInput - {@link GetImportJobCommandInput}
|
|
69
|
+
* @returns {@link GetImportJobCommandOutput}
|
|
70
|
+
* @see {@link GetImportJobCommandInput} for command's `input` shape.
|
|
71
|
+
* @see {@link GetImportJobCommandOutput} for command's `response` shape.
|
|
72
|
+
* @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
75
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The specified resource does not exist.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link WisdomServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Wisdom service.</p>
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
export declare class GetImportJobCommand extends $Command<GetImportJobCommandInput, GetImportJobCommandOutput, WisdomClientResolvedConfig> {
|
|
88
|
+
readonly input: GetImportJobCommandInput;
|
|
89
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
constructor(input: GetImportJobCommandInput);
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WisdomClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetImportJobCommandInput, GetImportJobCommandOutput>;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
private serialize;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
private deserialize;
|
|
106
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetQuickResponseRequest, GetQuickResponseResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetQuickResponseCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetQuickResponseCommandInput extends GetQuickResponseRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetQuickResponseCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetQuickResponseCommandOutput extends GetQuickResponseResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves the quick response.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { WisdomClient, GetQuickResponseCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
31
|
+
* // const { WisdomClient, GetQuickResponseCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
32
|
+
* const client = new WisdomClient(config);
|
|
33
|
+
* const input = { // GetQuickResponseRequest
|
|
34
|
+
* quickResponseId: "STRING_VALUE", // required
|
|
35
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetQuickResponseCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetQuickResponseResponse
|
|
40
|
+
* // quickResponse: { // QuickResponseData
|
|
41
|
+
* // quickResponseArn: "STRING_VALUE", // required
|
|
42
|
+
* // quickResponseId: "STRING_VALUE", // required
|
|
43
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
44
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
45
|
+
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // contentType: "STRING_VALUE", // required
|
|
47
|
+
* // status: "STRING_VALUE", // required
|
|
48
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // contents: { // QuickResponseContents
|
|
51
|
+
* // plainText: { // QuickResponseContentProvider Union: only one key present
|
|
52
|
+
* // content: "STRING_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // markdown: {// Union: only one key present
|
|
55
|
+
* // content: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // description: "STRING_VALUE",
|
|
59
|
+
* // groupingConfiguration: { // GroupingConfiguration
|
|
60
|
+
* // criteria: "STRING_VALUE",
|
|
61
|
+
* // values: [ // GroupingValues
|
|
62
|
+
* // "STRING_VALUE",
|
|
63
|
+
* // ],
|
|
64
|
+
* // },
|
|
65
|
+
* // shortcutKey: "STRING_VALUE",
|
|
66
|
+
* // lastModifiedBy: "STRING_VALUE",
|
|
67
|
+
* // isActive: true || false,
|
|
68
|
+
* // channels: [ // Channels
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // language: "STRING_VALUE",
|
|
72
|
+
* // tags: { // Tags
|
|
73
|
+
* // "<keys>": "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // };
|
|
77
|
+
*
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @param GetQuickResponseCommandInput - {@link GetQuickResponseCommandInput}
|
|
81
|
+
* @returns {@link GetQuickResponseCommandOutput}
|
|
82
|
+
* @see {@link GetQuickResponseCommandInput} for command's `input` shape.
|
|
83
|
+
* @see {@link GetQuickResponseCommandOutput} for command's `response` shape.
|
|
84
|
+
* @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
87
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
90
|
+
* <p>The specified resource does not exist.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ValidationException} (client fault)
|
|
93
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link WisdomServiceException}
|
|
96
|
+
* <p>Base exception class for all service exceptions from Wisdom service.</p>
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
export declare class GetQuickResponseCommand extends $Command<GetQuickResponseCommandInput, GetQuickResponseCommandOutput, WisdomClientResolvedConfig> {
|
|
100
|
+
readonly input: GetQuickResponseCommandInput;
|
|
101
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
constructor(input: GetQuickResponseCommandInput);
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WisdomClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetQuickResponseCommandInput, GetQuickResponseCommandOutput>;
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
private serialize;
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
private deserialize;
|
|
118
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ListImportJobsRequest, ListImportJobsResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListImportJobsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListImportJobsCommandInput extends ListImportJobsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListImportJobsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListImportJobsCommandOutput extends ListImportJobsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Lists information about import jobs.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { WisdomClient, ListImportJobsCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
31
|
+
* // const { WisdomClient, ListImportJobsCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
32
|
+
* const client = new WisdomClient(config);
|
|
33
|
+
* const input = { // ListImportJobsRequest
|
|
34
|
+
* nextToken: "STRING_VALUE",
|
|
35
|
+
* maxResults: Number("int"),
|
|
36
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
37
|
+
* };
|
|
38
|
+
* const command = new ListImportJobsCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // ListImportJobsResponse
|
|
41
|
+
* // importJobSummaries: [ // ImportJobList // required
|
|
42
|
+
* // { // ImportJobSummary
|
|
43
|
+
* // importJobId: "STRING_VALUE", // required
|
|
44
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
45
|
+
* // uploadId: "STRING_VALUE", // required
|
|
46
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
47
|
+
* // importJobType: "STRING_VALUE", // required
|
|
48
|
+
* // status: "STRING_VALUE", // required
|
|
49
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // metadata: { // ContentMetadata
|
|
52
|
+
* // "<keys>": "STRING_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // externalSourceConfiguration: { // ExternalSourceConfiguration
|
|
55
|
+
* // source: "STRING_VALUE", // required
|
|
56
|
+
* // configuration: { // Configuration Union: only one key present
|
|
57
|
+
* // connectConfiguration: { // ConnectConfiguration
|
|
58
|
+
* // instanceId: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // nextToken: "STRING_VALUE",
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param ListImportJobsCommandInput - {@link ListImportJobsCommandInput}
|
|
70
|
+
* @returns {@link ListImportJobsCommandOutput}
|
|
71
|
+
* @see {@link ListImportJobsCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link ListImportJobsCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link WisdomServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Wisdom service.</p>
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
export declare class ListImportJobsCommand extends $Command<ListImportJobsCommandInput, ListImportJobsCommandOutput, WisdomClientResolvedConfig> {
|
|
86
|
+
readonly input: ListImportJobsCommandInput;
|
|
87
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
constructor(input: ListImportJobsCommandInput);
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WisdomClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListImportJobsCommandInput, ListImportJobsCommandOutput>;
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
private serialize;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
private deserialize;
|
|
104
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ListQuickResponsesRequest, ListQuickResponsesResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListQuickResponsesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListQuickResponsesCommandInput extends ListQuickResponsesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListQuickResponsesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListQuickResponsesCommandOutput extends ListQuickResponsesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Lists information about quick response.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { WisdomClient, ListQuickResponsesCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
31
|
+
* // const { WisdomClient, ListQuickResponsesCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
32
|
+
* const client = new WisdomClient(config);
|
|
33
|
+
* const input = { // ListQuickResponsesRequest
|
|
34
|
+
* nextToken: "STRING_VALUE",
|
|
35
|
+
* maxResults: Number("int"),
|
|
36
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
37
|
+
* };
|
|
38
|
+
* const command = new ListQuickResponsesCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // ListQuickResponsesResponse
|
|
41
|
+
* // quickResponseSummaries: [ // QuickResponseSummaryList // required
|
|
42
|
+
* // { // QuickResponseSummary
|
|
43
|
+
* // quickResponseArn: "STRING_VALUE", // required
|
|
44
|
+
* // quickResponseId: "STRING_VALUE", // required
|
|
45
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
46
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // contentType: "STRING_VALUE", // required
|
|
49
|
+
* // status: "STRING_VALUE", // required
|
|
50
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // description: "STRING_VALUE",
|
|
53
|
+
* // lastModifiedBy: "STRING_VALUE",
|
|
54
|
+
* // isActive: true || false,
|
|
55
|
+
* // channels: [ // Channels
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // tags: { // Tags
|
|
59
|
+
* // "<keys>": "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // nextToken: "STRING_VALUE",
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @param ListQuickResponsesCommandInput - {@link ListQuickResponsesCommandInput}
|
|
69
|
+
* @returns {@link ListQuickResponsesCommandOutput}
|
|
70
|
+
* @see {@link ListQuickResponsesCommandInput} for command's `input` shape.
|
|
71
|
+
* @see {@link ListQuickResponsesCommandOutput} for command's `response` shape.
|
|
72
|
+
* @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
75
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The specified resource does not exist.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link WisdomServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Wisdom service.</p>
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
export declare class ListQuickResponsesCommand extends $Command<ListQuickResponsesCommandInput, ListQuickResponsesCommandOutput, WisdomClientResolvedConfig> {
|
|
88
|
+
readonly input: ListQuickResponsesCommandInput;
|
|
89
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
constructor(input: ListQuickResponsesCommandInput);
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WisdomClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListQuickResponsesCommandInput, ListQuickResponsesCommandOutput>;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
private serialize;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
private deserialize;
|
|
106
|
+
}
|
|
@@ -87,6 +87,11 @@ export interface QueryAssistantCommandOutput extends QueryAssistantResponse, __M
|
|
|
87
87
|
* @throws {@link AccessDeniedException} (client fault)
|
|
88
88
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
89
89
|
*
|
|
90
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
91
|
+
* <p>The request reached the service more than 15 minutes after the date stamp on the request
|
|
92
|
+
* or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or
|
|
93
|
+
* the date stamp on the request is more than 15 minutes in the future.</p>
|
|
94
|
+
*
|
|
90
95
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
91
96
|
* <p>The specified resource does not exist.</p>
|
|
92
97
|
*
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { SearchQuickResponsesRequest, SearchQuickResponsesResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SearchQuickResponsesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SearchQuickResponsesCommandInput extends SearchQuickResponsesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SearchQuickResponsesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SearchQuickResponsesCommandOutput extends SearchQuickResponsesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Searches existing Wisdom quick responses in a Wisdom knowledge base.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { WisdomClient, SearchQuickResponsesCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
31
|
+
* // const { WisdomClient, SearchQuickResponsesCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
32
|
+
* const client = new WisdomClient(config);
|
|
33
|
+
* const input = { // SearchQuickResponsesRequest
|
|
34
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
35
|
+
* searchExpression: { // QuickResponseSearchExpression
|
|
36
|
+
* queries: [ // QuickResponseQueryFieldList
|
|
37
|
+
* { // QuickResponseQueryField
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* values: [ // QuickResponseQueryValueList // required
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* operator: "STRING_VALUE", // required
|
|
43
|
+
* allowFuzziness: true || false,
|
|
44
|
+
* priority: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* filters: [ // QuickResponseFilterFieldList
|
|
48
|
+
* { // QuickResponseFilterField
|
|
49
|
+
* name: "STRING_VALUE", // required
|
|
50
|
+
* values: [ // QuickResponseFilterValueList
|
|
51
|
+
* "STRING_VALUE",
|
|
52
|
+
* ],
|
|
53
|
+
* operator: "STRING_VALUE", // required
|
|
54
|
+
* includeNoExistence: true || false,
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* orderOnField: { // QuickResponseOrderField
|
|
58
|
+
* name: "STRING_VALUE", // required
|
|
59
|
+
* order: "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* nextToken: "STRING_VALUE",
|
|
63
|
+
* maxResults: Number("int"),
|
|
64
|
+
* attributes: { // ContactAttributes
|
|
65
|
+
* "<keys>": "STRING_VALUE",
|
|
66
|
+
* },
|
|
67
|
+
* };
|
|
68
|
+
* const command = new SearchQuickResponsesCommand(input);
|
|
69
|
+
* const response = await client.send(command);
|
|
70
|
+
* // { // SearchQuickResponsesResponse
|
|
71
|
+
* // results: [ // QuickResponseSearchResultsList // required
|
|
72
|
+
* // { // QuickResponseSearchResultData
|
|
73
|
+
* // quickResponseArn: "STRING_VALUE", // required
|
|
74
|
+
* // quickResponseId: "STRING_VALUE", // required
|
|
75
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
76
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
77
|
+
* // name: "STRING_VALUE", // required
|
|
78
|
+
* // contentType: "STRING_VALUE", // required
|
|
79
|
+
* // status: "STRING_VALUE", // required
|
|
80
|
+
* // contents: { // QuickResponseContents
|
|
81
|
+
* // plainText: { // QuickResponseContentProvider Union: only one key present
|
|
82
|
+
* // content: "STRING_VALUE",
|
|
83
|
+
* // },
|
|
84
|
+
* // markdown: {// Union: only one key present
|
|
85
|
+
* // content: "STRING_VALUE",
|
|
86
|
+
* // },
|
|
87
|
+
* // },
|
|
88
|
+
* // createdTime: new Date("TIMESTAMP"), // required
|
|
89
|
+
* // lastModifiedTime: new Date("TIMESTAMP"), // required
|
|
90
|
+
* // isActive: true || false, // required
|
|
91
|
+
* // description: "STRING_VALUE",
|
|
92
|
+
* // groupingConfiguration: { // GroupingConfiguration
|
|
93
|
+
* // criteria: "STRING_VALUE",
|
|
94
|
+
* // values: [ // GroupingValues
|
|
95
|
+
* // "STRING_VALUE",
|
|
96
|
+
* // ],
|
|
97
|
+
* // },
|
|
98
|
+
* // shortcutKey: "STRING_VALUE",
|
|
99
|
+
* // lastModifiedBy: "STRING_VALUE",
|
|
100
|
+
* // channels: [ // Channels
|
|
101
|
+
* // "STRING_VALUE",
|
|
102
|
+
* // ],
|
|
103
|
+
* // language: "STRING_VALUE",
|
|
104
|
+
* // attributesNotInterpolated: [ // ContactAttributeKeys
|
|
105
|
+
* // "STRING_VALUE",
|
|
106
|
+
* // ],
|
|
107
|
+
* // attributesInterpolated: [
|
|
108
|
+
* // "STRING_VALUE",
|
|
109
|
+
* // ],
|
|
110
|
+
* // tags: { // Tags
|
|
111
|
+
* // "<keys>": "STRING_VALUE",
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // ],
|
|
115
|
+
* // nextToken: "STRING_VALUE",
|
|
116
|
+
* // };
|
|
117
|
+
*
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @param SearchQuickResponsesCommandInput - {@link SearchQuickResponsesCommandInput}
|
|
121
|
+
* @returns {@link SearchQuickResponsesCommandOutput}
|
|
122
|
+
* @see {@link SearchQuickResponsesCommandInput} for command's `input` shape.
|
|
123
|
+
* @see {@link SearchQuickResponsesCommandOutput} for command's `response` shape.
|
|
124
|
+
* @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
127
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
130
|
+
* <p>The request reached the service more than 15 minutes after the date stamp on the request
|
|
131
|
+
* or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or
|
|
132
|
+
* the date stamp on the request is more than 15 minutes in the future.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
135
|
+
* <p>The specified resource does not exist.</p>
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link ValidationException} (client fault)
|
|
138
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link WisdomServiceException}
|
|
141
|
+
* <p>Base exception class for all service exceptions from Wisdom service.</p>
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
export declare class SearchQuickResponsesCommand extends $Command<SearchQuickResponsesCommandInput, SearchQuickResponsesCommandOutput, WisdomClientResolvedConfig> {
|
|
145
|
+
readonly input: SearchQuickResponsesCommandInput;
|
|
146
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
constructor(input: SearchQuickResponsesCommandInput);
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WisdomClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SearchQuickResponsesCommandInput, SearchQuickResponsesCommandOutput>;
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
private serialize;
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
private deserialize;
|
|
163
|
+
}
|
|
@@ -36,6 +36,7 @@ export interface StartContentUploadCommandOutput extends StartContentUploadRespo
|
|
|
36
36
|
* const input = { // StartContentUploadRequest
|
|
37
37
|
* knowledgeBaseId: "STRING_VALUE", // required
|
|
38
38
|
* contentType: "STRING_VALUE", // required
|
|
39
|
+
* presignedUrlTimeToLive: Number("int"),
|
|
39
40
|
* };
|
|
40
41
|
* const command = new StartContentUploadCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|