@aws-sdk/client-wisdom 3.451.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.
Files changed (78) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/Wisdom.js +20 -0
  3. package/dist-cjs/commands/CreateQuickResponseCommand.js +52 -0
  4. package/dist-cjs/commands/DeleteImportJobCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteQuickResponseCommand.js +51 -0
  6. package/dist-cjs/commands/GetImportJobCommand.js +52 -0
  7. package/dist-cjs/commands/GetQuickResponseCommand.js +52 -0
  8. package/dist-cjs/commands/ListImportJobsCommand.js +51 -0
  9. package/dist-cjs/commands/ListQuickResponsesCommand.js +52 -0
  10. package/dist-cjs/commands/SearchQuickResponsesCommand.js +52 -0
  11. package/dist-cjs/commands/StartImportJobCommand.js +52 -0
  12. package/dist-cjs/commands/UpdateQuickResponseCommand.js +52 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/models/models_0.js +200 -1
  15. package/dist-cjs/pagination/ListImportJobsPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListQuickResponsesPaginator.js +29 -0
  17. package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +29 -0
  18. package/dist-cjs/pagination/index.js +3 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +816 -18
  20. package/dist-es/Wisdom.js +20 -0
  21. package/dist-es/commands/CreateQuickResponseCommand.js +48 -0
  22. package/dist-es/commands/DeleteImportJobCommand.js +47 -0
  23. package/dist-es/commands/DeleteQuickResponseCommand.js +47 -0
  24. package/dist-es/commands/GetImportJobCommand.js +48 -0
  25. package/dist-es/commands/GetQuickResponseCommand.js +48 -0
  26. package/dist-es/commands/ListImportJobsCommand.js +47 -0
  27. package/dist-es/commands/ListQuickResponsesCommand.js +48 -0
  28. package/dist-es/commands/SearchQuickResponsesCommand.js +48 -0
  29. package/dist-es/commands/StartImportJobCommand.js +48 -0
  30. package/dist-es/commands/UpdateQuickResponseCommand.js +48 -0
  31. package/dist-es/commands/index.js +10 -0
  32. package/dist-es/models/models_0.js +179 -0
  33. package/dist-es/pagination/ListImportJobsPaginator.js +25 -0
  34. package/dist-es/pagination/ListQuickResponsesPaginator.js +25 -0
  35. package/dist-es/pagination/SearchQuickResponsesPaginator.js +25 -0
  36. package/dist-es/pagination/index.js +3 -0
  37. package/dist-es/protocols/Aws_restJson1.js +794 -16
  38. package/dist-types/Wisdom.d.ts +70 -0
  39. package/dist-types/WisdomClient.d.ts +12 -2
  40. package/dist-types/commands/CreateQuickResponseCommand.d.ts +149 -0
  41. package/dist-types/commands/DeleteImportJobCommand.d.ts +87 -0
  42. package/dist-types/commands/DeleteQuickResponseCommand.d.ts +81 -0
  43. package/dist-types/commands/GetImportJobCommand.d.ts +106 -0
  44. package/dist-types/commands/GetQuickResponseCommand.d.ts +118 -0
  45. package/dist-types/commands/ListImportJobsCommand.d.ts +104 -0
  46. package/dist-types/commands/ListQuickResponsesCommand.d.ts +106 -0
  47. package/dist-types/commands/QueryAssistantCommand.d.ts +5 -0
  48. package/dist-types/commands/SearchQuickResponsesCommand.d.ts +163 -0
  49. package/dist-types/commands/StartContentUploadCommand.d.ts +1 -0
  50. package/dist-types/commands/StartImportJobCommand.d.ts +135 -0
  51. package/dist-types/commands/UpdateQuickResponseCommand.d.ts +149 -0
  52. package/dist-types/commands/index.d.ts +10 -0
  53. package/dist-types/models/models_0.d.ts +1631 -167
  54. package/dist-types/pagination/ListImportJobsPaginator.d.ts +7 -0
  55. package/dist-types/pagination/ListQuickResponsesPaginator.d.ts +7 -0
  56. package/dist-types/pagination/SearchQuickResponsesPaginator.d.ts +7 -0
  57. package/dist-types/pagination/index.d.ts +3 -0
  58. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  59. package/dist-types/ts3.4/Wisdom.d.ts +170 -0
  60. package/dist-types/ts3.4/WisdomClient.d.ts +62 -2
  61. package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +39 -0
  62. package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +38 -0
  63. package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +39 -0
  64. package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +35 -0
  65. package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +38 -0
  67. package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +39 -0
  68. package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +38 -0
  70. package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +39 -0
  71. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  72. package/dist-types/ts3.4/models/models_0.d.ts +397 -0
  73. package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/ListQuickResponsesPaginator.d.ts +11 -0
  75. package/dist-types/ts3.4/pagination/SearchQuickResponsesPaginator.d.ts +11 -0
  76. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  77. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  78. package/package.json +2 -2
@@ -0,0 +1,135 @@
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 { StartImportJobRequest, StartImportJobResponse } 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 StartImportJobCommand}.
14
+ */
15
+ export interface StartImportJobCommandInput extends StartImportJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartImportJobCommand}.
21
+ */
22
+ export interface StartImportJobCommandOutput extends StartImportJobResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Start an asynchronous job to import Wisdom resources from an uploaded source file. Before calling this API, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a> to
27
+ * upload an asset that contains the resource data.</p>
28
+ * <ul>
29
+ * <li>
30
+ * <p>For importing Wisdom quick responses, you need to upload a csv file including the quick responses. For information about how to format the csv file for importing quick responses, see <a href="https://docs.aws.amazon.com/console/connect/quick-responses/add-data">Import quick responses</a>.</p>
31
+ * </li>
32
+ * </ul>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WisdomClient, StartImportJobCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
37
+ * // const { WisdomClient, StartImportJobCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
38
+ * const client = new WisdomClient(config);
39
+ * const input = { // StartImportJobRequest
40
+ * knowledgeBaseId: "STRING_VALUE", // required
41
+ * importJobType: "STRING_VALUE", // required
42
+ * uploadId: "STRING_VALUE", // required
43
+ * clientToken: "STRING_VALUE",
44
+ * metadata: { // ContentMetadata
45
+ * "<keys>": "STRING_VALUE",
46
+ * },
47
+ * externalSourceConfiguration: { // ExternalSourceConfiguration
48
+ * source: "STRING_VALUE", // required
49
+ * configuration: { // Configuration Union: only one key present
50
+ * connectConfiguration: { // ConnectConfiguration
51
+ * instanceId: "STRING_VALUE",
52
+ * },
53
+ * },
54
+ * },
55
+ * };
56
+ * const command = new StartImportJobCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // StartImportJobResponse
59
+ * // importJob: { // ImportJobData
60
+ * // importJobId: "STRING_VALUE", // required
61
+ * // knowledgeBaseId: "STRING_VALUE", // required
62
+ * // uploadId: "STRING_VALUE", // required
63
+ * // knowledgeBaseArn: "STRING_VALUE", // required
64
+ * // importJobType: "STRING_VALUE", // required
65
+ * // status: "STRING_VALUE", // required
66
+ * // url: "STRING_VALUE", // required
67
+ * // failedRecordReport: "STRING_VALUE",
68
+ * // urlExpiry: new Date("TIMESTAMP"), // required
69
+ * // createdTime: new Date("TIMESTAMP"), // required
70
+ * // lastModifiedTime: new Date("TIMESTAMP"), // required
71
+ * // metadata: { // ContentMetadata
72
+ * // "<keys>": "STRING_VALUE",
73
+ * // },
74
+ * // externalSourceConfiguration: { // ExternalSourceConfiguration
75
+ * // source: "STRING_VALUE", // required
76
+ * // configuration: { // Configuration Union: only one key present
77
+ * // connectConfiguration: { // ConnectConfiguration
78
+ * // instanceId: "STRING_VALUE",
79
+ * // },
80
+ * // },
81
+ * // },
82
+ * // },
83
+ * // };
84
+ *
85
+ * ```
86
+ *
87
+ * @param StartImportJobCommandInput - {@link StartImportJobCommandInput}
88
+ * @returns {@link StartImportJobCommandOutput}
89
+ * @see {@link StartImportJobCommandInput} for command's `input` shape.
90
+ * @see {@link StartImportJobCommandOutput} for command's `response` shape.
91
+ * @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape.
92
+ *
93
+ * @throws {@link AccessDeniedException} (client fault)
94
+ * <p>You do not have sufficient access to perform this action.</p>
95
+ *
96
+ * @throws {@link ConflictException} (client fault)
97
+ * <p>The request could not be processed because of conflict in the current state of the
98
+ * resource. For example, if you're using a <code>Create</code> API (such as
99
+ * <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the
100
+ * same name) is being created or mutated.</p>
101
+ *
102
+ * @throws {@link ResourceNotFoundException} (client fault)
103
+ * <p>The specified resource does not exist.</p>
104
+ *
105
+ * @throws {@link ServiceQuotaExceededException} (client fault)
106
+ * <p>You've exceeded your service quota. To perform the requested action, remove some of the
107
+ * relevant resources, or use service quotas to request a service quota increase.</p>
108
+ *
109
+ * @throws {@link ValidationException} (client fault)
110
+ * <p>The input fails to satisfy the constraints specified by a service.</p>
111
+ *
112
+ * @throws {@link WisdomServiceException}
113
+ * <p>Base exception class for all service exceptions from Wisdom service.</p>
114
+ *
115
+ */
116
+ export declare class StartImportJobCommand extends $Command<StartImportJobCommandInput, StartImportJobCommandOutput, WisdomClientResolvedConfig> {
117
+ readonly input: StartImportJobCommandInput;
118
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
119
+ /**
120
+ * @public
121
+ */
122
+ constructor(input: StartImportJobCommandInput);
123
+ /**
124
+ * @internal
125
+ */
126
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WisdomClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartImportJobCommandInput, StartImportJobCommandOutput>;
127
+ /**
128
+ * @internal
129
+ */
130
+ private serialize;
131
+ /**
132
+ * @internal
133
+ */
134
+ private deserialize;
135
+ }
@@ -0,0 +1,149 @@
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 { UpdateQuickResponseRequest, UpdateQuickResponseResponse } 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 UpdateQuickResponseCommand}.
14
+ */
15
+ export interface UpdateQuickResponseCommandInput extends UpdateQuickResponseRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateQuickResponseCommand}.
21
+ */
22
+ export interface UpdateQuickResponseCommandOutput extends UpdateQuickResponseResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates an existing Wisdom 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, UpdateQuickResponseCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
31
+ * // const { WisdomClient, UpdateQuickResponseCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
32
+ * const client = new WisdomClient(config);
33
+ * const input = { // UpdateQuickResponseRequest
34
+ * knowledgeBaseId: "STRING_VALUE", // required
35
+ * quickResponseId: "STRING_VALUE", // required
36
+ * name: "STRING_VALUE",
37
+ * content: { // QuickResponseDataProvider Union: only one key present
38
+ * content: "STRING_VALUE",
39
+ * },
40
+ * contentType: "STRING_VALUE",
41
+ * groupingConfiguration: { // GroupingConfiguration
42
+ * criteria: "STRING_VALUE",
43
+ * values: [ // GroupingValues
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * },
47
+ * removeGroupingConfiguration: true || false,
48
+ * description: "STRING_VALUE",
49
+ * removeDescription: true || false,
50
+ * shortcutKey: "STRING_VALUE",
51
+ * removeShortcutKey: true || false,
52
+ * isActive: true || false,
53
+ * channels: [ // Channels
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * language: "STRING_VALUE",
57
+ * };
58
+ * const command = new UpdateQuickResponseCommand(input);
59
+ * const response = await client.send(command);
60
+ * // { // UpdateQuickResponseResponse
61
+ * // quickResponse: { // QuickResponseData
62
+ * // quickResponseArn: "STRING_VALUE", // required
63
+ * // quickResponseId: "STRING_VALUE", // required
64
+ * // knowledgeBaseArn: "STRING_VALUE", // required
65
+ * // knowledgeBaseId: "STRING_VALUE", // required
66
+ * // name: "STRING_VALUE", // required
67
+ * // contentType: "STRING_VALUE", // required
68
+ * // status: "STRING_VALUE", // required
69
+ * // createdTime: new Date("TIMESTAMP"), // required
70
+ * // lastModifiedTime: new Date("TIMESTAMP"), // required
71
+ * // contents: { // QuickResponseContents
72
+ * // plainText: { // QuickResponseContentProvider Union: only one key present
73
+ * // content: "STRING_VALUE",
74
+ * // },
75
+ * // markdown: {// Union: only one key present
76
+ * // content: "STRING_VALUE",
77
+ * // },
78
+ * // },
79
+ * // description: "STRING_VALUE",
80
+ * // groupingConfiguration: { // GroupingConfiguration
81
+ * // criteria: "STRING_VALUE",
82
+ * // values: [ // GroupingValues
83
+ * // "STRING_VALUE",
84
+ * // ],
85
+ * // },
86
+ * // shortcutKey: "STRING_VALUE",
87
+ * // lastModifiedBy: "STRING_VALUE",
88
+ * // isActive: true || false,
89
+ * // channels: [ // Channels
90
+ * // "STRING_VALUE",
91
+ * // ],
92
+ * // language: "STRING_VALUE",
93
+ * // tags: { // Tags
94
+ * // "<keys>": "STRING_VALUE",
95
+ * // },
96
+ * // },
97
+ * // };
98
+ *
99
+ * ```
100
+ *
101
+ * @param UpdateQuickResponseCommandInput - {@link UpdateQuickResponseCommandInput}
102
+ * @returns {@link UpdateQuickResponseCommandOutput}
103
+ * @see {@link UpdateQuickResponseCommandInput} for command's `input` shape.
104
+ * @see {@link UpdateQuickResponseCommandOutput} for command's `response` shape.
105
+ * @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape.
106
+ *
107
+ * @throws {@link AccessDeniedException} (client fault)
108
+ * <p>You do not have sufficient access to perform this action.</p>
109
+ *
110
+ * @throws {@link ConflictException} (client fault)
111
+ * <p>The request could not be processed because of conflict in the current state of the
112
+ * resource. For example, if you're using a <code>Create</code> API (such as
113
+ * <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the
114
+ * same name) is being created or mutated.</p>
115
+ *
116
+ * @throws {@link PreconditionFailedException} (client fault)
117
+ * <p>The provided <code>revisionId</code> does not match, indicating the content has been
118
+ * modified since it was last read.</p>
119
+ *
120
+ * @throws {@link ResourceNotFoundException} (client fault)
121
+ * <p>The specified resource does not exist.</p>
122
+ *
123
+ * @throws {@link ValidationException} (client fault)
124
+ * <p>The input fails to satisfy the constraints specified by a service.</p>
125
+ *
126
+ * @throws {@link WisdomServiceException}
127
+ * <p>Base exception class for all service exceptions from Wisdom service.</p>
128
+ *
129
+ */
130
+ export declare class UpdateQuickResponseCommand extends $Command<UpdateQuickResponseCommandInput, UpdateQuickResponseCommandOutput, WisdomClientResolvedConfig> {
131
+ readonly input: UpdateQuickResponseCommandInput;
132
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
133
+ /**
134
+ * @public
135
+ */
136
+ constructor(input: UpdateQuickResponseCommandInput);
137
+ /**
138
+ * @internal
139
+ */
140
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WisdomClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateQuickResponseCommandInput, UpdateQuickResponseCommandOutput>;
141
+ /**
142
+ * @internal
143
+ */
144
+ private serialize;
145
+ /**
146
+ * @internal
147
+ */
148
+ private deserialize;
149
+ }
@@ -2,30 +2,40 @@ export * from "./CreateAssistantAssociationCommand";
2
2
  export * from "./CreateAssistantCommand";
3
3
  export * from "./CreateContentCommand";
4
4
  export * from "./CreateKnowledgeBaseCommand";
5
+ export * from "./CreateQuickResponseCommand";
5
6
  export * from "./CreateSessionCommand";
6
7
  export * from "./DeleteAssistantAssociationCommand";
7
8
  export * from "./DeleteAssistantCommand";
8
9
  export * from "./DeleteContentCommand";
10
+ export * from "./DeleteImportJobCommand";
9
11
  export * from "./DeleteKnowledgeBaseCommand";
12
+ export * from "./DeleteQuickResponseCommand";
10
13
  export * from "./GetAssistantAssociationCommand";
11
14
  export * from "./GetAssistantCommand";
12
15
  export * from "./GetContentCommand";
13
16
  export * from "./GetContentSummaryCommand";
17
+ export * from "./GetImportJobCommand";
14
18
  export * from "./GetKnowledgeBaseCommand";
19
+ export * from "./GetQuickResponseCommand";
15
20
  export * from "./GetRecommendationsCommand";
16
21
  export * from "./GetSessionCommand";
17
22
  export * from "./ListAssistantAssociationsCommand";
18
23
  export * from "./ListAssistantsCommand";
19
24
  export * from "./ListContentsCommand";
25
+ export * from "./ListImportJobsCommand";
20
26
  export * from "./ListKnowledgeBasesCommand";
27
+ export * from "./ListQuickResponsesCommand";
21
28
  export * from "./ListTagsForResourceCommand";
22
29
  export * from "./NotifyRecommendationsReceivedCommand";
23
30
  export * from "./QueryAssistantCommand";
24
31
  export * from "./RemoveKnowledgeBaseTemplateUriCommand";
25
32
  export * from "./SearchContentCommand";
33
+ export * from "./SearchQuickResponsesCommand";
26
34
  export * from "./SearchSessionsCommand";
27
35
  export * from "./StartContentUploadCommand";
36
+ export * from "./StartImportJobCommand";
28
37
  export * from "./TagResourceCommand";
29
38
  export * from "./UntagResourceCommand";
30
39
  export * from "./UpdateContentCommand";
31
40
  export * from "./UpdateKnowledgeBaseTemplateUriCommand";
41
+ export * from "./UpdateQuickResponseCommand";