@aws-sdk/client-wisdom 3.474.0 → 3.477.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/dist-cjs/protocols/Aws_restJson1.js +242 -559
- package/dist-es/protocols/Aws_restJson1.js +243 -560
- package/package.json +5 -4
|
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.de_DeleteContentCommand = exports.de_DeleteAssistantAssociationCommand = exports.de_DeleteAssistantCommand = exports.de_CreateSessionCommand = exports.de_CreateQuickResponseCommand = exports.de_CreateKnowledgeBaseCommand = exports.de_CreateContentCommand = exports.de_CreateAssistantAssociationCommand = exports.de_CreateAssistantCommand = exports.se_UpdateQuickResponseCommand = exports.se_UpdateKnowledgeBaseTemplateUriCommand = exports.se_UpdateContentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartImportJobCommand = exports.se_StartContentUploadCommand = exports.se_SearchSessionsCommand = exports.se_SearchQuickResponsesCommand = exports.se_SearchContentCommand = exports.se_RemoveKnowledgeBaseTemplateUriCommand = exports.se_QueryAssistantCommand = exports.se_NotifyRecommendationsReceivedCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQuickResponsesCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListImportJobsCommand = exports.se_ListContentsCommand = exports.se_ListAssistantsCommand = exports.se_ListAssistantAssociationsCommand = exports.se_GetSessionCommand = exports.se_GetRecommendationsCommand = exports.se_GetQuickResponseCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetImportJobCommand = exports.se_GetContentSummaryCommand = exports.se_GetContentCommand = exports.se_GetAssistantAssociationCommand = exports.se_GetAssistantCommand = exports.se_DeleteQuickResponseCommand = exports.se_DeleteKnowledgeBaseCommand = exports.se_DeleteImportJobCommand = exports.se_DeleteContentCommand = exports.se_DeleteAssistantAssociationCommand = exports.se_DeleteAssistantCommand = exports.se_CreateSessionCommand = exports.se_CreateQuickResponseCommand = exports.se_CreateKnowledgeBaseCommand = exports.se_CreateContentCommand = exports.se_CreateAssistantAssociationCommand = exports.se_CreateAssistantCommand = void 0;
|
|
4
4
|
exports.de_UpdateQuickResponseCommand = exports.de_UpdateKnowledgeBaseTemplateUriCommand = exports.de_UpdateContentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartImportJobCommand = exports.de_StartContentUploadCommand = exports.de_SearchSessionsCommand = exports.de_SearchQuickResponsesCommand = exports.de_SearchContentCommand = exports.de_RemoveKnowledgeBaseTemplateUriCommand = exports.de_QueryAssistantCommand = exports.de_NotifyRecommendationsReceivedCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuickResponsesCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListImportJobsCommand = exports.de_ListContentsCommand = exports.de_ListAssistantsCommand = exports.de_ListAssistantAssociationsCommand = exports.de_GetSessionCommand = exports.de_GetRecommendationsCommand = exports.de_GetQuickResponseCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetImportJobCommand = exports.de_GetContentSummaryCommand = exports.de_GetContentCommand = exports.de_GetAssistantAssociationCommand = exports.de_GetAssistantCommand = exports.de_DeleteQuickResponseCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteImportJobCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const
|
|
6
|
+
const core_2 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const WisdomServiceException_1 = require("../models/WisdomServiceException");
|
|
11
11
|
const se_CreateAssistantCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
b.bp("/assistants");
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
19
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -23,24 +23,17 @@ const se_CreateAssistantCommand = async (input, context) => {
|
|
|
23
23
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
24
24
|
type: [],
|
|
25
25
|
}));
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
hostname,
|
|
29
|
-
port,
|
|
30
|
-
method: "POST",
|
|
31
|
-
headers,
|
|
32
|
-
path: resolvedPath,
|
|
33
|
-
body,
|
|
34
|
-
});
|
|
26
|
+
b.m("POST").h(headers).b(body);
|
|
27
|
+
return b.build();
|
|
35
28
|
};
|
|
36
29
|
exports.se_CreateAssistantCommand = se_CreateAssistantCommand;
|
|
37
30
|
const se_CreateAssistantAssociationCommand = async (input, context) => {
|
|
38
|
-
const
|
|
31
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
39
32
|
const headers = {
|
|
40
33
|
"content-type": "application/json",
|
|
41
34
|
};
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
b.bp("/assistants/{assistantId}/associations");
|
|
36
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
44
37
|
let body;
|
|
45
38
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
46
39
|
association: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -48,25 +41,17 @@ const se_CreateAssistantAssociationCommand = async (input, context) => {
|
|
|
48
41
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
49
42
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
50
43
|
}));
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
hostname,
|
|
54
|
-
port,
|
|
55
|
-
method: "POST",
|
|
56
|
-
headers,
|
|
57
|
-
path: resolvedPath,
|
|
58
|
-
body,
|
|
59
|
-
});
|
|
44
|
+
b.m("POST").h(headers).b(body);
|
|
45
|
+
return b.build();
|
|
60
46
|
};
|
|
61
47
|
exports.se_CreateAssistantAssociationCommand = se_CreateAssistantAssociationCommand;
|
|
62
48
|
const se_CreateContentCommand = async (input, context) => {
|
|
63
|
-
const
|
|
49
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
64
50
|
const headers = {
|
|
65
51
|
"content-type": "application/json",
|
|
66
52
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
53
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
|
|
54
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
70
55
|
let body;
|
|
71
56
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
72
57
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -77,23 +62,16 @@ const se_CreateContentCommand = async (input, context) => {
|
|
|
77
62
|
title: [],
|
|
78
63
|
uploadId: [],
|
|
79
64
|
}));
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
hostname,
|
|
83
|
-
port,
|
|
84
|
-
method: "POST",
|
|
85
|
-
headers,
|
|
86
|
-
path: resolvedPath,
|
|
87
|
-
body,
|
|
88
|
-
});
|
|
65
|
+
b.m("POST").h(headers).b(body);
|
|
66
|
+
return b.build();
|
|
89
67
|
};
|
|
90
68
|
exports.se_CreateContentCommand = se_CreateContentCommand;
|
|
91
69
|
const se_CreateKnowledgeBaseCommand = async (input, context) => {
|
|
92
|
-
const
|
|
70
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
93
71
|
const headers = {
|
|
94
72
|
"content-type": "application/json",
|
|
95
73
|
};
|
|
96
|
-
|
|
74
|
+
b.bp("/knowledgeBases");
|
|
97
75
|
let body;
|
|
98
76
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
99
77
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -105,25 +83,17 @@ const se_CreateKnowledgeBaseCommand = async (input, context) => {
|
|
|
105
83
|
sourceConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
106
84
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
107
85
|
}));
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
hostname,
|
|
111
|
-
port,
|
|
112
|
-
method: "POST",
|
|
113
|
-
headers,
|
|
114
|
-
path: resolvedPath,
|
|
115
|
-
body,
|
|
116
|
-
});
|
|
86
|
+
b.m("POST").h(headers).b(body);
|
|
87
|
+
return b.build();
|
|
117
88
|
};
|
|
118
89
|
exports.se_CreateKnowledgeBaseCommand = se_CreateKnowledgeBaseCommand;
|
|
119
90
|
const se_CreateQuickResponseCommand = async (input, context) => {
|
|
120
|
-
const
|
|
91
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
121
92
|
const headers = {
|
|
122
93
|
"content-type": "application/json",
|
|
123
94
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
95
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses");
|
|
96
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
127
97
|
let body;
|
|
128
98
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
99
|
channels: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -138,24 +108,17 @@ const se_CreateQuickResponseCommand = async (input, context) => {
|
|
|
138
108
|
shortcutKey: [],
|
|
139
109
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
140
110
|
}));
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
hostname,
|
|
144
|
-
port,
|
|
145
|
-
method: "POST",
|
|
146
|
-
headers,
|
|
147
|
-
path: resolvedPath,
|
|
148
|
-
body,
|
|
149
|
-
});
|
|
111
|
+
b.m("POST").h(headers).b(body);
|
|
112
|
+
return b.build();
|
|
150
113
|
};
|
|
151
114
|
exports.se_CreateQuickResponseCommand = se_CreateQuickResponseCommand;
|
|
152
115
|
const se_CreateSessionCommand = async (input, context) => {
|
|
153
|
-
const
|
|
116
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
154
117
|
const headers = {
|
|
155
118
|
"content-type": "application/json",
|
|
156
119
|
};
|
|
157
|
-
|
|
158
|
-
|
|
120
|
+
b.bp("/assistants/{assistantId}/sessions");
|
|
121
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
159
122
|
let body;
|
|
160
123
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
161
124
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -163,629 +126,391 @@ const se_CreateSessionCommand = async (input, context) => {
|
|
|
163
126
|
name: [],
|
|
164
127
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
165
128
|
}));
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
hostname,
|
|
169
|
-
port,
|
|
170
|
-
method: "POST",
|
|
171
|
-
headers,
|
|
172
|
-
path: resolvedPath,
|
|
173
|
-
body,
|
|
174
|
-
});
|
|
129
|
+
b.m("POST").h(headers).b(body);
|
|
130
|
+
return b.build();
|
|
175
131
|
};
|
|
176
132
|
exports.se_CreateSessionCommand = se_CreateSessionCommand;
|
|
177
133
|
const se_DeleteAssistantCommand = async (input, context) => {
|
|
178
|
-
const
|
|
134
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
179
135
|
const headers = {};
|
|
180
|
-
|
|
181
|
-
|
|
136
|
+
b.bp("/assistants/{assistantId}");
|
|
137
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
182
138
|
let body;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
hostname,
|
|
186
|
-
port,
|
|
187
|
-
method: "DELETE",
|
|
188
|
-
headers,
|
|
189
|
-
path: resolvedPath,
|
|
190
|
-
body,
|
|
191
|
-
});
|
|
139
|
+
b.m("DELETE").h(headers).b(body);
|
|
140
|
+
return b.build();
|
|
192
141
|
};
|
|
193
142
|
exports.se_DeleteAssistantCommand = se_DeleteAssistantCommand;
|
|
194
143
|
const se_DeleteAssistantAssociationCommand = async (input, context) => {
|
|
195
|
-
const
|
|
144
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
196
145
|
const headers = {};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assistantId", () => input.assistantId, "{assistantId}", false);
|
|
146
|
+
b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
|
|
147
|
+
b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
|
|
148
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
201
149
|
let body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
hostname,
|
|
205
|
-
port,
|
|
206
|
-
method: "DELETE",
|
|
207
|
-
headers,
|
|
208
|
-
path: resolvedPath,
|
|
209
|
-
body,
|
|
210
|
-
});
|
|
150
|
+
b.m("DELETE").h(headers).b(body);
|
|
151
|
+
return b.build();
|
|
211
152
|
};
|
|
212
153
|
exports.se_DeleteAssistantAssociationCommand = se_DeleteAssistantAssociationCommand;
|
|
213
154
|
const se_DeleteContentCommand = async (input, context) => {
|
|
214
|
-
const
|
|
155
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
215
156
|
const headers = {};
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "contentId", () => input.contentId, "{contentId}", false);
|
|
157
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
|
|
158
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
159
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
220
160
|
let body;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
hostname,
|
|
224
|
-
port,
|
|
225
|
-
method: "DELETE",
|
|
226
|
-
headers,
|
|
227
|
-
path: resolvedPath,
|
|
228
|
-
body,
|
|
229
|
-
});
|
|
161
|
+
b.m("DELETE").h(headers).b(body);
|
|
162
|
+
return b.build();
|
|
230
163
|
};
|
|
231
164
|
exports.se_DeleteContentCommand = se_DeleteContentCommand;
|
|
232
165
|
const se_DeleteImportJobCommand = async (input, context) => {
|
|
233
|
-
const
|
|
166
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
234
167
|
const headers = {};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "importJobId", () => input.importJobId, "{importJobId}", false);
|
|
168
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
|
|
169
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
170
|
+
b.p("importJobId", () => input.importJobId, "{importJobId}", false);
|
|
239
171
|
let body;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
hostname,
|
|
243
|
-
port,
|
|
244
|
-
method: "DELETE",
|
|
245
|
-
headers,
|
|
246
|
-
path: resolvedPath,
|
|
247
|
-
body,
|
|
248
|
-
});
|
|
172
|
+
b.m("DELETE").h(headers).b(body);
|
|
173
|
+
return b.build();
|
|
249
174
|
};
|
|
250
175
|
exports.se_DeleteImportJobCommand = se_DeleteImportJobCommand;
|
|
251
176
|
const se_DeleteKnowledgeBaseCommand = async (input, context) => {
|
|
252
|
-
const
|
|
177
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
253
178
|
const headers = {};
|
|
254
|
-
|
|
255
|
-
|
|
179
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}");
|
|
180
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
256
181
|
let body;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
hostname,
|
|
260
|
-
port,
|
|
261
|
-
method: "DELETE",
|
|
262
|
-
headers,
|
|
263
|
-
path: resolvedPath,
|
|
264
|
-
body,
|
|
265
|
-
});
|
|
182
|
+
b.m("DELETE").h(headers).b(body);
|
|
183
|
+
return b.build();
|
|
266
184
|
};
|
|
267
185
|
exports.se_DeleteKnowledgeBaseCommand = se_DeleteKnowledgeBaseCommand;
|
|
268
186
|
const se_DeleteQuickResponseCommand = async (input, context) => {
|
|
269
|
-
const
|
|
187
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
270
188
|
const headers = {};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
189
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
|
|
190
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
191
|
+
b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
275
192
|
let body;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
hostname,
|
|
279
|
-
port,
|
|
280
|
-
method: "DELETE",
|
|
281
|
-
headers,
|
|
282
|
-
path: resolvedPath,
|
|
283
|
-
body,
|
|
284
|
-
});
|
|
193
|
+
b.m("DELETE").h(headers).b(body);
|
|
194
|
+
return b.build();
|
|
285
195
|
};
|
|
286
196
|
exports.se_DeleteQuickResponseCommand = se_DeleteQuickResponseCommand;
|
|
287
197
|
const se_GetAssistantCommand = async (input, context) => {
|
|
288
|
-
const
|
|
198
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
289
199
|
const headers = {};
|
|
290
|
-
|
|
291
|
-
|
|
200
|
+
b.bp("/assistants/{assistantId}");
|
|
201
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
292
202
|
let body;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
hostname,
|
|
296
|
-
port,
|
|
297
|
-
method: "GET",
|
|
298
|
-
headers,
|
|
299
|
-
path: resolvedPath,
|
|
300
|
-
body,
|
|
301
|
-
});
|
|
203
|
+
b.m("GET").h(headers).b(body);
|
|
204
|
+
return b.build();
|
|
302
205
|
};
|
|
303
206
|
exports.se_GetAssistantCommand = se_GetAssistantCommand;
|
|
304
207
|
const se_GetAssistantAssociationCommand = async (input, context) => {
|
|
305
|
-
const
|
|
208
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
306
209
|
const headers = {};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assistantId", () => input.assistantId, "{assistantId}", false);
|
|
210
|
+
b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}");
|
|
211
|
+
b.p("assistantAssociationId", () => input.assistantAssociationId, "{assistantAssociationId}", false);
|
|
212
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
311
213
|
let body;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
hostname,
|
|
315
|
-
port,
|
|
316
|
-
method: "GET",
|
|
317
|
-
headers,
|
|
318
|
-
path: resolvedPath,
|
|
319
|
-
body,
|
|
320
|
-
});
|
|
214
|
+
b.m("GET").h(headers).b(body);
|
|
215
|
+
return b.build();
|
|
321
216
|
};
|
|
322
217
|
exports.se_GetAssistantAssociationCommand = se_GetAssistantAssociationCommand;
|
|
323
218
|
const se_GetContentCommand = async (input, context) => {
|
|
324
|
-
const
|
|
219
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
325
220
|
const headers = {};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
221
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
|
|
222
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
223
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
330
224
|
let body;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
hostname,
|
|
334
|
-
port,
|
|
335
|
-
method: "GET",
|
|
336
|
-
headers,
|
|
337
|
-
path: resolvedPath,
|
|
338
|
-
body,
|
|
339
|
-
});
|
|
225
|
+
b.m("GET").h(headers).b(body);
|
|
226
|
+
return b.build();
|
|
340
227
|
};
|
|
341
228
|
exports.se_GetContentCommand = se_GetContentCommand;
|
|
342
229
|
const se_GetContentSummaryCommand = async (input, context) => {
|
|
343
|
-
const
|
|
230
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
344
231
|
const headers = {};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
232
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary");
|
|
233
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
234
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
349
235
|
let body;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
hostname,
|
|
353
|
-
port,
|
|
354
|
-
method: "GET",
|
|
355
|
-
headers,
|
|
356
|
-
path: resolvedPath,
|
|
357
|
-
body,
|
|
358
|
-
});
|
|
236
|
+
b.m("GET").h(headers).b(body);
|
|
237
|
+
return b.build();
|
|
359
238
|
};
|
|
360
239
|
exports.se_GetContentSummaryCommand = se_GetContentSummaryCommand;
|
|
361
240
|
const se_GetImportJobCommand = async (input, context) => {
|
|
362
|
-
const
|
|
241
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
363
242
|
const headers = {};
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
243
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}");
|
|
244
|
+
b.p("importJobId", () => input.importJobId, "{importJobId}", false);
|
|
245
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
368
246
|
let body;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
hostname,
|
|
372
|
-
port,
|
|
373
|
-
method: "GET",
|
|
374
|
-
headers,
|
|
375
|
-
path: resolvedPath,
|
|
376
|
-
body,
|
|
377
|
-
});
|
|
247
|
+
b.m("GET").h(headers).b(body);
|
|
248
|
+
return b.build();
|
|
378
249
|
};
|
|
379
250
|
exports.se_GetImportJobCommand = se_GetImportJobCommand;
|
|
380
251
|
const se_GetKnowledgeBaseCommand = async (input, context) => {
|
|
381
|
-
const
|
|
252
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
382
253
|
const headers = {};
|
|
383
|
-
|
|
384
|
-
|
|
254
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}");
|
|
255
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
385
256
|
let body;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
hostname,
|
|
389
|
-
port,
|
|
390
|
-
method: "GET",
|
|
391
|
-
headers,
|
|
392
|
-
path: resolvedPath,
|
|
393
|
-
body,
|
|
394
|
-
});
|
|
257
|
+
b.m("GET").h(headers).b(body);
|
|
258
|
+
return b.build();
|
|
395
259
|
};
|
|
396
260
|
exports.se_GetKnowledgeBaseCommand = se_GetKnowledgeBaseCommand;
|
|
397
261
|
const se_GetQuickResponseCommand = async (input, context) => {
|
|
398
|
-
const
|
|
262
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
399
263
|
const headers = {};
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
264
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
|
|
265
|
+
b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
266
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
404
267
|
let body;
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
hostname,
|
|
408
|
-
port,
|
|
409
|
-
method: "GET",
|
|
410
|
-
headers,
|
|
411
|
-
path: resolvedPath,
|
|
412
|
-
body,
|
|
413
|
-
});
|
|
268
|
+
b.m("GET").h(headers).b(body);
|
|
269
|
+
return b.build();
|
|
414
270
|
};
|
|
415
271
|
exports.se_GetQuickResponseCommand = se_GetQuickResponseCommand;
|
|
416
272
|
const se_GetRecommendationsCommand = async (input, context) => {
|
|
417
|
-
const
|
|
273
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
418
274
|
const headers = {};
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sessionId", () => input.sessionId, "{sessionId}", false);
|
|
275
|
+
b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations");
|
|
276
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
277
|
+
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
423
278
|
const query = (0, smithy_client_1.map)({
|
|
424
|
-
|
|
425
|
-
|
|
279
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
280
|
+
[_wTS]: [() => input.waitTimeSeconds !== void 0, () => input[_wTS].toString()],
|
|
426
281
|
});
|
|
427
282
|
let body;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
hostname,
|
|
431
|
-
port,
|
|
432
|
-
method: "GET",
|
|
433
|
-
headers,
|
|
434
|
-
path: resolvedPath,
|
|
435
|
-
query,
|
|
436
|
-
body,
|
|
437
|
-
});
|
|
283
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
284
|
+
return b.build();
|
|
438
285
|
};
|
|
439
286
|
exports.se_GetRecommendationsCommand = se_GetRecommendationsCommand;
|
|
440
287
|
const se_GetSessionCommand = async (input, context) => {
|
|
441
|
-
const
|
|
288
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
442
289
|
const headers = {};
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sessionId", () => input.sessionId, "{sessionId}", false);
|
|
290
|
+
b.bp("/assistants/{assistantId}/sessions/{sessionId}");
|
|
291
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
292
|
+
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
447
293
|
let body;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
hostname,
|
|
451
|
-
port,
|
|
452
|
-
method: "GET",
|
|
453
|
-
headers,
|
|
454
|
-
path: resolvedPath,
|
|
455
|
-
body,
|
|
456
|
-
});
|
|
294
|
+
b.m("GET").h(headers).b(body);
|
|
295
|
+
return b.build();
|
|
457
296
|
};
|
|
458
297
|
exports.se_GetSessionCommand = se_GetSessionCommand;
|
|
459
298
|
const se_ListAssistantAssociationsCommand = async (input, context) => {
|
|
460
|
-
const
|
|
299
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
461
300
|
const headers = {};
|
|
462
|
-
|
|
463
|
-
|
|
301
|
+
b.bp("/assistants/{assistantId}/associations");
|
|
302
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
464
303
|
const query = (0, smithy_client_1.map)({
|
|
465
|
-
|
|
466
|
-
|
|
304
|
+
[_nT]: [, input[_nT]],
|
|
305
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
467
306
|
});
|
|
468
307
|
let body;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
hostname,
|
|
472
|
-
port,
|
|
473
|
-
method: "GET",
|
|
474
|
-
headers,
|
|
475
|
-
path: resolvedPath,
|
|
476
|
-
query,
|
|
477
|
-
body,
|
|
478
|
-
});
|
|
308
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
309
|
+
return b.build();
|
|
479
310
|
};
|
|
480
311
|
exports.se_ListAssistantAssociationsCommand = se_ListAssistantAssociationsCommand;
|
|
481
312
|
const se_ListAssistantsCommand = async (input, context) => {
|
|
482
|
-
const
|
|
313
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
483
314
|
const headers = {};
|
|
484
|
-
|
|
315
|
+
b.bp("/assistants");
|
|
485
316
|
const query = (0, smithy_client_1.map)({
|
|
486
|
-
|
|
487
|
-
|
|
317
|
+
[_nT]: [, input[_nT]],
|
|
318
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
488
319
|
});
|
|
489
320
|
let body;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
hostname,
|
|
493
|
-
port,
|
|
494
|
-
method: "GET",
|
|
495
|
-
headers,
|
|
496
|
-
path: resolvedPath,
|
|
497
|
-
query,
|
|
498
|
-
body,
|
|
499
|
-
});
|
|
321
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
322
|
+
return b.build();
|
|
500
323
|
};
|
|
501
324
|
exports.se_ListAssistantsCommand = se_ListAssistantsCommand;
|
|
502
325
|
const se_ListContentsCommand = async (input, context) => {
|
|
503
|
-
const
|
|
326
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
504
327
|
const headers = {};
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
328
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
|
|
329
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
508
330
|
const query = (0, smithy_client_1.map)({
|
|
509
|
-
|
|
510
|
-
|
|
331
|
+
[_nT]: [, input[_nT]],
|
|
332
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
511
333
|
});
|
|
512
334
|
let body;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
hostname,
|
|
516
|
-
port,
|
|
517
|
-
method: "GET",
|
|
518
|
-
headers,
|
|
519
|
-
path: resolvedPath,
|
|
520
|
-
query,
|
|
521
|
-
body,
|
|
522
|
-
});
|
|
335
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
336
|
+
return b.build();
|
|
523
337
|
};
|
|
524
338
|
exports.se_ListContentsCommand = se_ListContentsCommand;
|
|
525
339
|
const se_ListImportJobsCommand = async (input, context) => {
|
|
526
|
-
const
|
|
340
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
527
341
|
const headers = {};
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
342
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs");
|
|
343
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
531
344
|
const query = (0, smithy_client_1.map)({
|
|
532
|
-
|
|
533
|
-
|
|
345
|
+
[_nT]: [, input[_nT]],
|
|
346
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
534
347
|
});
|
|
535
348
|
let body;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
hostname,
|
|
539
|
-
port,
|
|
540
|
-
method: "GET",
|
|
541
|
-
headers,
|
|
542
|
-
path: resolvedPath,
|
|
543
|
-
query,
|
|
544
|
-
body,
|
|
545
|
-
});
|
|
349
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
350
|
+
return b.build();
|
|
546
351
|
};
|
|
547
352
|
exports.se_ListImportJobsCommand = se_ListImportJobsCommand;
|
|
548
353
|
const se_ListKnowledgeBasesCommand = async (input, context) => {
|
|
549
|
-
const
|
|
354
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
550
355
|
const headers = {};
|
|
551
|
-
|
|
356
|
+
b.bp("/knowledgeBases");
|
|
552
357
|
const query = (0, smithy_client_1.map)({
|
|
553
|
-
|
|
554
|
-
|
|
358
|
+
[_nT]: [, input[_nT]],
|
|
359
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
555
360
|
});
|
|
556
361
|
let body;
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
hostname,
|
|
560
|
-
port,
|
|
561
|
-
method: "GET",
|
|
562
|
-
headers,
|
|
563
|
-
path: resolvedPath,
|
|
564
|
-
query,
|
|
565
|
-
body,
|
|
566
|
-
});
|
|
362
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
363
|
+
return b.build();
|
|
567
364
|
};
|
|
568
365
|
exports.se_ListKnowledgeBasesCommand = se_ListKnowledgeBasesCommand;
|
|
569
366
|
const se_ListQuickResponsesCommand = async (input, context) => {
|
|
570
|
-
const
|
|
367
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
571
368
|
const headers = {};
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
369
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses");
|
|
370
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
575
371
|
const query = (0, smithy_client_1.map)({
|
|
576
|
-
|
|
577
|
-
|
|
372
|
+
[_nT]: [, input[_nT]],
|
|
373
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
578
374
|
});
|
|
579
375
|
let body;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
hostname,
|
|
583
|
-
port,
|
|
584
|
-
method: "GET",
|
|
585
|
-
headers,
|
|
586
|
-
path: resolvedPath,
|
|
587
|
-
query,
|
|
588
|
-
body,
|
|
589
|
-
});
|
|
376
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
377
|
+
return b.build();
|
|
590
378
|
};
|
|
591
379
|
exports.se_ListQuickResponsesCommand = se_ListQuickResponsesCommand;
|
|
592
380
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
593
|
-
const
|
|
381
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
594
382
|
const headers = {};
|
|
595
|
-
|
|
596
|
-
|
|
383
|
+
b.bp("/tags/{resourceArn}");
|
|
384
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
597
385
|
let body;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
hostname,
|
|
601
|
-
port,
|
|
602
|
-
method: "GET",
|
|
603
|
-
headers,
|
|
604
|
-
path: resolvedPath,
|
|
605
|
-
body,
|
|
606
|
-
});
|
|
386
|
+
b.m("GET").h(headers).b(body);
|
|
387
|
+
return b.build();
|
|
607
388
|
};
|
|
608
389
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
609
390
|
const se_NotifyRecommendationsReceivedCommand = async (input, context) => {
|
|
610
|
-
const
|
|
391
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
611
392
|
const headers = {
|
|
612
393
|
"content-type": "application/json",
|
|
613
394
|
};
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sessionId", () => input.sessionId, "{sessionId}", false);
|
|
395
|
+
b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify");
|
|
396
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
397
|
+
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
618
398
|
let body;
|
|
619
399
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
620
400
|
recommendationIds: (_) => (0, smithy_client_1._json)(_),
|
|
621
401
|
}));
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
hostname,
|
|
625
|
-
port,
|
|
626
|
-
method: "POST",
|
|
627
|
-
headers,
|
|
628
|
-
path: resolvedPath,
|
|
629
|
-
body,
|
|
630
|
-
});
|
|
402
|
+
b.m("POST").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
631
404
|
};
|
|
632
405
|
exports.se_NotifyRecommendationsReceivedCommand = se_NotifyRecommendationsReceivedCommand;
|
|
633
406
|
const se_QueryAssistantCommand = async (input, context) => {
|
|
634
|
-
const
|
|
407
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
635
408
|
const headers = {
|
|
636
409
|
"content-type": "application/json",
|
|
637
410
|
};
|
|
638
|
-
|
|
639
|
-
|
|
411
|
+
b.bp("/assistants/{assistantId}/query");
|
|
412
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
640
413
|
let body;
|
|
641
414
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
415
|
maxResults: [],
|
|
643
416
|
nextToken: [],
|
|
644
417
|
queryText: [],
|
|
645
418
|
}));
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
hostname,
|
|
649
|
-
port,
|
|
650
|
-
method: "POST",
|
|
651
|
-
headers,
|
|
652
|
-
path: resolvedPath,
|
|
653
|
-
body,
|
|
654
|
-
});
|
|
419
|
+
b.m("POST").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
655
421
|
};
|
|
656
422
|
exports.se_QueryAssistantCommand = se_QueryAssistantCommand;
|
|
657
423
|
const se_RemoveKnowledgeBaseTemplateUriCommand = async (input, context) => {
|
|
658
|
-
const
|
|
424
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
659
425
|
const headers = {};
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
426
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri");
|
|
427
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
663
428
|
let body;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
hostname,
|
|
667
|
-
port,
|
|
668
|
-
method: "DELETE",
|
|
669
|
-
headers,
|
|
670
|
-
path: resolvedPath,
|
|
671
|
-
body,
|
|
672
|
-
});
|
|
429
|
+
b.m("DELETE").h(headers).b(body);
|
|
430
|
+
return b.build();
|
|
673
431
|
};
|
|
674
432
|
exports.se_RemoveKnowledgeBaseTemplateUriCommand = se_RemoveKnowledgeBaseTemplateUriCommand;
|
|
675
433
|
const se_SearchContentCommand = async (input, context) => {
|
|
676
|
-
const
|
|
434
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
677
435
|
const headers = {
|
|
678
436
|
"content-type": "application/json",
|
|
679
437
|
};
|
|
680
|
-
|
|
681
|
-
|
|
438
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/search");
|
|
439
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
682
440
|
const query = (0, smithy_client_1.map)({
|
|
683
|
-
|
|
684
|
-
|
|
441
|
+
[_nT]: [, input[_nT]],
|
|
442
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
685
443
|
});
|
|
686
444
|
let body;
|
|
687
445
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
688
446
|
searchExpression: (_) => (0, smithy_client_1._json)(_),
|
|
689
447
|
}));
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
hostname,
|
|
693
|
-
port,
|
|
694
|
-
method: "POST",
|
|
695
|
-
headers,
|
|
696
|
-
path: resolvedPath,
|
|
697
|
-
query,
|
|
698
|
-
body,
|
|
699
|
-
});
|
|
448
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
449
|
+
return b.build();
|
|
700
450
|
};
|
|
701
451
|
exports.se_SearchContentCommand = se_SearchContentCommand;
|
|
702
452
|
const se_SearchQuickResponsesCommand = async (input, context) => {
|
|
703
|
-
const
|
|
453
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
704
454
|
const headers = {
|
|
705
455
|
"content-type": "application/json",
|
|
706
456
|
};
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
457
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/search/quickResponses");
|
|
458
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
710
459
|
const query = (0, smithy_client_1.map)({
|
|
711
|
-
|
|
712
|
-
|
|
460
|
+
[_nT]: [, input[_nT]],
|
|
461
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
713
462
|
});
|
|
714
463
|
let body;
|
|
715
464
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
716
465
|
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
717
466
|
searchExpression: (_) => (0, smithy_client_1._json)(_),
|
|
718
467
|
}));
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
hostname,
|
|
722
|
-
port,
|
|
723
|
-
method: "POST",
|
|
724
|
-
headers,
|
|
725
|
-
path: resolvedPath,
|
|
726
|
-
query,
|
|
727
|
-
body,
|
|
728
|
-
});
|
|
468
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
469
|
+
return b.build();
|
|
729
470
|
};
|
|
730
471
|
exports.se_SearchQuickResponsesCommand = se_SearchQuickResponsesCommand;
|
|
731
472
|
const se_SearchSessionsCommand = async (input, context) => {
|
|
732
|
-
const
|
|
473
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
733
474
|
const headers = {
|
|
734
475
|
"content-type": "application/json",
|
|
735
476
|
};
|
|
736
|
-
|
|
737
|
-
|
|
477
|
+
b.bp("/assistants/{assistantId}/searchSessions");
|
|
478
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
738
479
|
const query = (0, smithy_client_1.map)({
|
|
739
|
-
|
|
740
|
-
|
|
480
|
+
[_nT]: [, input[_nT]],
|
|
481
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
741
482
|
});
|
|
742
483
|
let body;
|
|
743
484
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
744
485
|
searchExpression: (_) => (0, smithy_client_1._json)(_),
|
|
745
486
|
}));
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
hostname,
|
|
749
|
-
port,
|
|
750
|
-
method: "POST",
|
|
751
|
-
headers,
|
|
752
|
-
path: resolvedPath,
|
|
753
|
-
query,
|
|
754
|
-
body,
|
|
755
|
-
});
|
|
487
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
488
|
+
return b.build();
|
|
756
489
|
};
|
|
757
490
|
exports.se_SearchSessionsCommand = se_SearchSessionsCommand;
|
|
758
491
|
const se_StartContentUploadCommand = async (input, context) => {
|
|
759
|
-
const
|
|
492
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
760
493
|
const headers = {
|
|
761
494
|
"content-type": "application/json",
|
|
762
495
|
};
|
|
763
|
-
|
|
764
|
-
|
|
496
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/upload");
|
|
497
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
765
498
|
let body;
|
|
766
499
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
767
500
|
contentType: [],
|
|
768
501
|
presignedUrlTimeToLive: [],
|
|
769
502
|
}));
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
hostname,
|
|
773
|
-
port,
|
|
774
|
-
method: "POST",
|
|
775
|
-
headers,
|
|
776
|
-
path: resolvedPath,
|
|
777
|
-
body,
|
|
778
|
-
});
|
|
503
|
+
b.m("POST").h(headers).b(body);
|
|
504
|
+
return b.build();
|
|
779
505
|
};
|
|
780
506
|
exports.se_StartContentUploadCommand = se_StartContentUploadCommand;
|
|
781
507
|
const se_StartImportJobCommand = async (input, context) => {
|
|
782
|
-
const
|
|
508
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
783
509
|
const headers = {
|
|
784
510
|
"content-type": "application/json",
|
|
785
511
|
};
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
512
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs");
|
|
513
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
789
514
|
let body;
|
|
790
515
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
791
516
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -794,72 +519,49 @@ const se_StartImportJobCommand = async (input, context) => {
|
|
|
794
519
|
metadata: (_) => (0, smithy_client_1._json)(_),
|
|
795
520
|
uploadId: [],
|
|
796
521
|
}));
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
hostname,
|
|
800
|
-
port,
|
|
801
|
-
method: "POST",
|
|
802
|
-
headers,
|
|
803
|
-
path: resolvedPath,
|
|
804
|
-
body,
|
|
805
|
-
});
|
|
522
|
+
b.m("POST").h(headers).b(body);
|
|
523
|
+
return b.build();
|
|
806
524
|
};
|
|
807
525
|
exports.se_StartImportJobCommand = se_StartImportJobCommand;
|
|
808
526
|
const se_TagResourceCommand = async (input, context) => {
|
|
809
|
-
const
|
|
527
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
810
528
|
const headers = {
|
|
811
529
|
"content-type": "application/json",
|
|
812
530
|
};
|
|
813
|
-
|
|
814
|
-
|
|
531
|
+
b.bp("/tags/{resourceArn}");
|
|
532
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
815
533
|
let body;
|
|
816
534
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
817
535
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
818
536
|
}));
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
hostname,
|
|
822
|
-
port,
|
|
823
|
-
method: "POST",
|
|
824
|
-
headers,
|
|
825
|
-
path: resolvedPath,
|
|
826
|
-
body,
|
|
827
|
-
});
|
|
537
|
+
b.m("POST").h(headers).b(body);
|
|
538
|
+
return b.build();
|
|
828
539
|
};
|
|
829
540
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
830
541
|
const se_UntagResourceCommand = async (input, context) => {
|
|
831
|
-
const
|
|
542
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
832
543
|
const headers = {};
|
|
833
|
-
|
|
834
|
-
|
|
544
|
+
b.bp("/tags/{resourceArn}");
|
|
545
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
835
546
|
const query = (0, smithy_client_1.map)({
|
|
836
|
-
|
|
547
|
+
[_tK]: [
|
|
837
548
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
838
|
-
() => (input
|
|
549
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
839
550
|
],
|
|
840
551
|
});
|
|
841
552
|
let body;
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
hostname,
|
|
845
|
-
port,
|
|
846
|
-
method: "DELETE",
|
|
847
|
-
headers,
|
|
848
|
-
path: resolvedPath,
|
|
849
|
-
query,
|
|
850
|
-
body,
|
|
851
|
-
});
|
|
553
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
554
|
+
return b.build();
|
|
852
555
|
};
|
|
853
556
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
854
557
|
const se_UpdateContentCommand = async (input, context) => {
|
|
855
|
-
const
|
|
558
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
856
559
|
const headers = {
|
|
857
560
|
"content-type": "application/json",
|
|
858
561
|
};
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "contentId", () => input.contentId, "{contentId}", false);
|
|
562
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}");
|
|
563
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
564
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
863
565
|
let body;
|
|
864
566
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
865
567
|
metadata: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -869,49 +571,33 @@ const se_UpdateContentCommand = async (input, context) => {
|
|
|
869
571
|
title: [],
|
|
870
572
|
uploadId: [],
|
|
871
573
|
}));
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
hostname,
|
|
875
|
-
port,
|
|
876
|
-
method: "POST",
|
|
877
|
-
headers,
|
|
878
|
-
path: resolvedPath,
|
|
879
|
-
body,
|
|
880
|
-
});
|
|
574
|
+
b.m("POST").h(headers).b(body);
|
|
575
|
+
return b.build();
|
|
881
576
|
};
|
|
882
577
|
exports.se_UpdateContentCommand = se_UpdateContentCommand;
|
|
883
578
|
const se_UpdateKnowledgeBaseTemplateUriCommand = async (input, context) => {
|
|
884
|
-
const
|
|
579
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
885
580
|
const headers = {
|
|
886
581
|
"content-type": "application/json",
|
|
887
582
|
};
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
583
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri");
|
|
584
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
891
585
|
let body;
|
|
892
586
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
893
587
|
templateUri: [],
|
|
894
588
|
}));
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
hostname,
|
|
898
|
-
port,
|
|
899
|
-
method: "POST",
|
|
900
|
-
headers,
|
|
901
|
-
path: resolvedPath,
|
|
902
|
-
body,
|
|
903
|
-
});
|
|
589
|
+
b.m("POST").h(headers).b(body);
|
|
590
|
+
return b.build();
|
|
904
591
|
};
|
|
905
592
|
exports.se_UpdateKnowledgeBaseTemplateUriCommand = se_UpdateKnowledgeBaseTemplateUriCommand;
|
|
906
593
|
const se_UpdateQuickResponseCommand = async (input, context) => {
|
|
907
|
-
const
|
|
594
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
908
595
|
const headers = {
|
|
909
596
|
"content-type": "application/json",
|
|
910
597
|
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
598
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}");
|
|
599
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
600
|
+
b.p("quickResponseId", () => input.quickResponseId, "{quickResponseId}", false);
|
|
915
601
|
let body;
|
|
916
602
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
917
603
|
channels: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -927,15 +613,8 @@ const se_UpdateQuickResponseCommand = async (input, context) => {
|
|
|
927
613
|
removeShortcutKey: [],
|
|
928
614
|
shortcutKey: [],
|
|
929
615
|
}));
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
hostname,
|
|
933
|
-
port,
|
|
934
|
-
method: "POST",
|
|
935
|
-
headers,
|
|
936
|
-
path: resolvedPath,
|
|
937
|
-
body,
|
|
938
|
-
});
|
|
616
|
+
b.m("POST").h(headers).b(body);
|
|
617
|
+
return b.build();
|
|
939
618
|
};
|
|
940
619
|
exports.se_UpdateQuickResponseCommand = se_UpdateQuickResponseCommand;
|
|
941
620
|
const de_CreateAssistantCommand = async (output, context) => {
|
|
@@ -2887,6 +2566,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2887
2566
|
value !== "" &&
|
|
2888
2567
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2889
2568
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2569
|
+
const _mR = "maxResults";
|
|
2570
|
+
const _nT = "nextToken";
|
|
2571
|
+
const _tK = "tagKeys";
|
|
2572
|
+
const _wTS = "waitTimeSeconds";
|
|
2890
2573
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2891
2574
|
if (encoded.length) {
|
|
2892
2575
|
return JSON.parse(encoded);
|