@aws-sdk/client-qconnect 3.600.0 → 3.606.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 +32 -0
- package/dist-cjs/index.js +242 -0
- package/dist-es/QConnect.js +8 -0
- package/dist-es/commands/CreateContentAssociationCommand.js +24 -0
- package/dist-es/commands/DeleteContentAssociationCommand.js +24 -0
- package/dist-es/commands/GetContentAssociationCommand.js +24 -0
- package/dist-es/commands/ListContentAssociationsCommand.js +24 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/pagination/ListContentAssociationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +124 -1
- package/dist-types/QConnect.d.ts +28 -0
- package/dist-types/QConnectClient.d.ts +6 -2
- package/dist-types/commands/CreateContentAssociationCommand.d.ts +128 -0
- package/dist-types/commands/DeleteContentAssociationCommand.d.ts +72 -0
- package/dist-types/commands/GetContentAssociationCommand.d.ts +90 -0
- package/dist-types/commands/ListContentAssociationsCommand.d.ts +94 -0
- package/dist-types/commands/UpdateSessionCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +322 -7
- package/dist-types/pagination/ListContentAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/QConnect.d.ts +68 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateContentAssociationCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteContentAssociationCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetContentAssociationCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListContentAssociationsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +93 -0
- package/dist-types/ts3.4/pagination/ListContentAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -245,6 +245,14 @@ CreateContent
|
|
|
245
245
|
|
|
246
246
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/CreateContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentCommandOutput/)
|
|
247
247
|
|
|
248
|
+
</details>
|
|
249
|
+
<details>
|
|
250
|
+
<summary>
|
|
251
|
+
CreateContentAssociation
|
|
252
|
+
</summary>
|
|
253
|
+
|
|
254
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/CreateContentAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentAssociationCommandOutput/)
|
|
255
|
+
|
|
248
256
|
</details>
|
|
249
257
|
<details>
|
|
250
258
|
<summary>
|
|
@@ -293,6 +301,14 @@ DeleteContent
|
|
|
293
301
|
|
|
294
302
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/DeleteContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentCommandOutput/)
|
|
295
303
|
|
|
304
|
+
</details>
|
|
305
|
+
<details>
|
|
306
|
+
<summary>
|
|
307
|
+
DeleteContentAssociation
|
|
308
|
+
</summary>
|
|
309
|
+
|
|
310
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/DeleteContentAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentAssociationCommandOutput/)
|
|
311
|
+
|
|
296
312
|
</details>
|
|
297
313
|
<details>
|
|
298
314
|
<summary>
|
|
@@ -341,6 +357,14 @@ GetContent
|
|
|
341
357
|
|
|
342
358
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/GetContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentCommandOutput/)
|
|
343
359
|
|
|
360
|
+
</details>
|
|
361
|
+
<details>
|
|
362
|
+
<summary>
|
|
363
|
+
GetContentAssociation
|
|
364
|
+
</summary>
|
|
365
|
+
|
|
366
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/GetContentAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentAssociationCommandOutput/)
|
|
367
|
+
|
|
344
368
|
</details>
|
|
345
369
|
<details>
|
|
346
370
|
<summary>
|
|
@@ -405,6 +429,14 @@ ListAssistants
|
|
|
405
429
|
|
|
406
430
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/ListAssistantsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListAssistantsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListAssistantsCommandOutput/)
|
|
407
431
|
|
|
432
|
+
</details>
|
|
433
|
+
<details>
|
|
434
|
+
<summary>
|
|
435
|
+
ListContentAssociations
|
|
436
|
+
</summary>
|
|
437
|
+
|
|
438
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/ListContentAssociationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListContentAssociationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListContentAssociationsCommandOutput/)
|
|
439
|
+
|
|
408
440
|
</details>
|
|
409
441
|
<details>
|
|
410
442
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -30,12 +30,15 @@ __export(src_exports, {
|
|
|
30
30
|
AssociationType: () => AssociationType,
|
|
31
31
|
Configuration: () => Configuration,
|
|
32
32
|
ConflictException: () => ConflictException,
|
|
33
|
+
ContentAssociationContents: () => ContentAssociationContents,
|
|
34
|
+
ContentAssociationType: () => ContentAssociationType,
|
|
33
35
|
ContentDataDetailsFilterSensitiveLog: () => ContentDataDetailsFilterSensitiveLog,
|
|
34
36
|
ContentDataFilterSensitiveLog: () => ContentDataFilterSensitiveLog,
|
|
35
37
|
ContentFeedbackData: () => ContentFeedbackData,
|
|
36
38
|
ContentStatus: () => ContentStatus,
|
|
37
39
|
CreateAssistantAssociationCommand: () => CreateAssistantAssociationCommand,
|
|
38
40
|
CreateAssistantCommand: () => CreateAssistantCommand,
|
|
41
|
+
CreateContentAssociationCommand: () => CreateContentAssociationCommand,
|
|
39
42
|
CreateContentCommand: () => CreateContentCommand,
|
|
40
43
|
CreateContentResponseFilterSensitiveLog: () => CreateContentResponseFilterSensitiveLog,
|
|
41
44
|
CreateKnowledgeBaseCommand: () => CreateKnowledgeBaseCommand,
|
|
@@ -49,6 +52,7 @@ __export(src_exports, {
|
|
|
49
52
|
DataSummaryFilterSensitiveLog: () => DataSummaryFilterSensitiveLog,
|
|
50
53
|
DeleteAssistantAssociationCommand: () => DeleteAssistantAssociationCommand,
|
|
51
54
|
DeleteAssistantCommand: () => DeleteAssistantCommand,
|
|
55
|
+
DeleteContentAssociationCommand: () => DeleteContentAssociationCommand,
|
|
52
56
|
DeleteContentCommand: () => DeleteContentCommand,
|
|
53
57
|
DeleteImportJobCommand: () => DeleteImportJobCommand,
|
|
54
58
|
DeleteKnowledgeBaseCommand: () => DeleteKnowledgeBaseCommand,
|
|
@@ -61,6 +65,7 @@ __export(src_exports, {
|
|
|
61
65
|
GenerativeDataDetailsFilterSensitiveLog: () => GenerativeDataDetailsFilterSensitiveLog,
|
|
62
66
|
GetAssistantAssociationCommand: () => GetAssistantAssociationCommand,
|
|
63
67
|
GetAssistantCommand: () => GetAssistantCommand,
|
|
68
|
+
GetContentAssociationCommand: () => GetContentAssociationCommand,
|
|
64
69
|
GetContentCommand: () => GetContentCommand,
|
|
65
70
|
GetContentResponseFilterSensitiveLog: () => GetContentResponseFilterSensitiveLog,
|
|
66
71
|
GetContentSummaryCommand: () => GetContentSummaryCommand,
|
|
@@ -80,6 +85,7 @@ __export(src_exports, {
|
|
|
80
85
|
KnowledgeBaseType: () => KnowledgeBaseType,
|
|
81
86
|
ListAssistantAssociationsCommand: () => ListAssistantAssociationsCommand,
|
|
82
87
|
ListAssistantsCommand: () => ListAssistantsCommand,
|
|
88
|
+
ListContentAssociationsCommand: () => ListContentAssociationsCommand,
|
|
83
89
|
ListContentsCommand: () => ListContentsCommand,
|
|
84
90
|
ListImportJobsCommand: () => ListImportJobsCommand,
|
|
85
91
|
ListKnowledgeBasesCommand: () => ListKnowledgeBasesCommand,
|
|
@@ -144,6 +150,7 @@ __export(src_exports, {
|
|
|
144
150
|
TagResourceCommand: () => TagResourceCommand,
|
|
145
151
|
TargetType: () => TargetType,
|
|
146
152
|
TextDataFilterSensitiveLog: () => TextDataFilterSensitiveLog,
|
|
153
|
+
ThrottlingException: () => ThrottlingException,
|
|
147
154
|
TooManyTagsException: () => TooManyTagsException,
|
|
148
155
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
149
156
|
UpdateContentCommand: () => UpdateContentCommand,
|
|
@@ -157,6 +164,7 @@ __export(src_exports, {
|
|
|
157
164
|
__Client: () => import_smithy_client.Client,
|
|
158
165
|
paginateListAssistantAssociations: () => paginateListAssistantAssociations,
|
|
159
166
|
paginateListAssistants: () => paginateListAssistants,
|
|
167
|
+
paginateListContentAssociations: () => paginateListContentAssociations,
|
|
160
168
|
paginateListContents: () => paginateListContents,
|
|
161
169
|
paginateListImportJobs: () => paginateListImportJobs,
|
|
162
170
|
paginateListKnowledgeBases: () => paginateListKnowledgeBases,
|
|
@@ -591,6 +599,35 @@ var Configuration;
|
|
|
591
599
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
592
600
|
}, "visit");
|
|
593
601
|
})(Configuration || (Configuration = {}));
|
|
602
|
+
var ContentAssociationContents;
|
|
603
|
+
((ContentAssociationContents3) => {
|
|
604
|
+
ContentAssociationContents3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
605
|
+
if (value.amazonConnectGuideAssociation !== void 0)
|
|
606
|
+
return visitor.amazonConnectGuideAssociation(value.amazonConnectGuideAssociation);
|
|
607
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
608
|
+
}, "visit");
|
|
609
|
+
})(ContentAssociationContents || (ContentAssociationContents = {}));
|
|
610
|
+
var ContentAssociationType = {
|
|
611
|
+
AMAZON_CONNECT_GUIDE: "AMAZON_CONNECT_GUIDE"
|
|
612
|
+
};
|
|
613
|
+
var _ThrottlingException = class _ThrottlingException extends QConnectServiceException {
|
|
614
|
+
/**
|
|
615
|
+
* @internal
|
|
616
|
+
*/
|
|
617
|
+
constructor(opts) {
|
|
618
|
+
super({
|
|
619
|
+
name: "ThrottlingException",
|
|
620
|
+
$fault: "client",
|
|
621
|
+
...opts
|
|
622
|
+
});
|
|
623
|
+
this.name = "ThrottlingException";
|
|
624
|
+
this.$fault = "client";
|
|
625
|
+
this.$retryable = {};
|
|
626
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
630
|
+
var ThrottlingException = _ThrottlingException;
|
|
594
631
|
var ContentStatus = {
|
|
595
632
|
ACTIVE: "ACTIVE",
|
|
596
633
|
CREATE_FAILED: "CREATE_FAILED",
|
|
@@ -990,6 +1027,26 @@ var se_CreateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
990
1027
|
b.m("POST").h(headers).b(body);
|
|
991
1028
|
return b.build();
|
|
992
1029
|
}, "se_CreateContentCommand");
|
|
1030
|
+
var se_CreateContentAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1031
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1032
|
+
const headers = {
|
|
1033
|
+
"content-type": "application/json"
|
|
1034
|
+
};
|
|
1035
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations");
|
|
1036
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
1037
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
1038
|
+
let body;
|
|
1039
|
+
body = JSON.stringify(
|
|
1040
|
+
(0, import_smithy_client.take)(input, {
|
|
1041
|
+
association: (_) => (0, import_smithy_client._json)(_),
|
|
1042
|
+
associationType: [],
|
|
1043
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1044
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
1045
|
+
})
|
|
1046
|
+
);
|
|
1047
|
+
b.m("POST").h(headers).b(body);
|
|
1048
|
+
return b.build();
|
|
1049
|
+
}, "se_CreateContentAssociationCommand");
|
|
993
1050
|
var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
994
1051
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
995
1052
|
const headers = {
|
|
@@ -1087,6 +1144,17 @@ var se_DeleteContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1087
1144
|
b.m("DELETE").h(headers).b(body);
|
|
1088
1145
|
return b.build();
|
|
1089
1146
|
}, "se_DeleteContentCommand");
|
|
1147
|
+
var se_DeleteContentAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1148
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1149
|
+
const headers = {};
|
|
1150
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}");
|
|
1151
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
1152
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
1153
|
+
b.p("contentAssociationId", () => input.contentAssociationId, "{contentAssociationId}", false);
|
|
1154
|
+
let body;
|
|
1155
|
+
b.m("DELETE").h(headers).b(body);
|
|
1156
|
+
return b.build();
|
|
1157
|
+
}, "se_DeleteContentAssociationCommand");
|
|
1090
1158
|
var se_DeleteImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1091
1159
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1092
1160
|
const headers = {};
|
|
@@ -1145,6 +1213,17 @@ var se_GetContentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1145
1213
|
b.m("GET").h(headers).b(body);
|
|
1146
1214
|
return b.build();
|
|
1147
1215
|
}, "se_GetContentCommand");
|
|
1216
|
+
var se_GetContentAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1217
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1218
|
+
const headers = {};
|
|
1219
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}");
|
|
1220
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
1221
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
1222
|
+
b.p("contentAssociationId", () => input.contentAssociationId, "{contentAssociationId}", false);
|
|
1223
|
+
let body;
|
|
1224
|
+
b.m("GET").h(headers).b(body);
|
|
1225
|
+
return b.build();
|
|
1226
|
+
}, "se_GetContentAssociationCommand");
|
|
1148
1227
|
var se_GetContentSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1149
1228
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1150
1229
|
const headers = {};
|
|
@@ -1233,6 +1312,20 @@ var se_ListAssistantsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1233
1312
|
b.m("GET").h(headers).q(query).b(body);
|
|
1234
1313
|
return b.build();
|
|
1235
1314
|
}, "se_ListAssistantsCommand");
|
|
1315
|
+
var se_ListContentAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1316
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1317
|
+
const headers = {};
|
|
1318
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations");
|
|
1319
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
1320
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
1321
|
+
const query = (0, import_smithy_client.map)({
|
|
1322
|
+
[_nT]: [, input[_nT]],
|
|
1323
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
1324
|
+
});
|
|
1325
|
+
let body;
|
|
1326
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1327
|
+
return b.build();
|
|
1328
|
+
}, "se_ListContentAssociationsCommand");
|
|
1236
1329
|
var se_ListContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1237
1330
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1238
1331
|
const headers = {};
|
|
@@ -1612,6 +1705,20 @@ var de_CreateContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1612
1705
|
Object.assign(contents, doc);
|
|
1613
1706
|
return contents;
|
|
1614
1707
|
}, "de_CreateContentCommand");
|
|
1708
|
+
var de_CreateContentAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1709
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1710
|
+
return de_CommandError(output, context);
|
|
1711
|
+
}
|
|
1712
|
+
const contents = (0, import_smithy_client.map)({
|
|
1713
|
+
$metadata: deserializeMetadata(output)
|
|
1714
|
+
});
|
|
1715
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1716
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1717
|
+
contentAssociation: import_smithy_client._json
|
|
1718
|
+
});
|
|
1719
|
+
Object.assign(contents, doc);
|
|
1720
|
+
return contents;
|
|
1721
|
+
}, "de_CreateContentAssociationCommand");
|
|
1615
1722
|
var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1616
1723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1617
1724
|
return de_CommandError(output, context);
|
|
@@ -1684,6 +1791,16 @@ var de_DeleteContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1684
1791
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1685
1792
|
return contents;
|
|
1686
1793
|
}, "de_DeleteContentCommand");
|
|
1794
|
+
var de_DeleteContentAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1795
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1796
|
+
return de_CommandError(output, context);
|
|
1797
|
+
}
|
|
1798
|
+
const contents = (0, import_smithy_client.map)({
|
|
1799
|
+
$metadata: deserializeMetadata(output)
|
|
1800
|
+
});
|
|
1801
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1802
|
+
return contents;
|
|
1803
|
+
}, "de_DeleteContentAssociationCommand");
|
|
1687
1804
|
var de_DeleteImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1688
1805
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1689
1806
|
return de_CommandError(output, context);
|
|
@@ -1756,6 +1873,20 @@ var de_GetContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1756
1873
|
Object.assign(contents, doc);
|
|
1757
1874
|
return contents;
|
|
1758
1875
|
}, "de_GetContentCommand");
|
|
1876
|
+
var de_GetContentAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1877
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1878
|
+
return de_CommandError(output, context);
|
|
1879
|
+
}
|
|
1880
|
+
const contents = (0, import_smithy_client.map)({
|
|
1881
|
+
$metadata: deserializeMetadata(output)
|
|
1882
|
+
});
|
|
1883
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1884
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1885
|
+
contentAssociation: import_smithy_client._json
|
|
1886
|
+
});
|
|
1887
|
+
Object.assign(contents, doc);
|
|
1888
|
+
return contents;
|
|
1889
|
+
}, "de_GetContentAssociationCommand");
|
|
1759
1890
|
var de_GetContentSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1760
1891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1761
1892
|
return de_CommandError(output, context);
|
|
@@ -1871,6 +2002,21 @@ var de_ListAssistantsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1871
2002
|
Object.assign(contents, doc);
|
|
1872
2003
|
return contents;
|
|
1873
2004
|
}, "de_ListAssistantsCommand");
|
|
2005
|
+
var de_ListContentAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2007
|
+
return de_CommandError(output, context);
|
|
2008
|
+
}
|
|
2009
|
+
const contents = (0, import_smithy_client.map)({
|
|
2010
|
+
$metadata: deserializeMetadata(output)
|
|
2011
|
+
});
|
|
2012
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2013
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2014
|
+
contentAssociationSummaries: import_smithy_client._json,
|
|
2015
|
+
nextToken: import_smithy_client.expectString
|
|
2016
|
+
});
|
|
2017
|
+
Object.assign(contents, doc);
|
|
2018
|
+
return contents;
|
|
2019
|
+
}, "de_ListContentAssociationsCommand");
|
|
1874
2020
|
var de_ListContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1875
2021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
2022
|
return de_CommandError(output, context);
|
|
@@ -2177,6 +2323,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2177
2323
|
case "ResourceNotFoundException":
|
|
2178
2324
|
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2179
2325
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2326
|
+
case "ThrottlingException":
|
|
2327
|
+
case "com.amazonaws.qconnect#ThrottlingException":
|
|
2328
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2180
2329
|
case "RequestTimeoutException":
|
|
2181
2330
|
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
2182
2331
|
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
@@ -2275,6 +2424,19 @@ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOu
|
|
|
2275
2424
|
});
|
|
2276
2425
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2277
2426
|
}, "de_ServiceQuotaExceededExceptionRes");
|
|
2427
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2428
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2429
|
+
const data = parsedOutput.body;
|
|
2430
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2431
|
+
message: import_smithy_client.expectString
|
|
2432
|
+
});
|
|
2433
|
+
Object.assign(contents, doc);
|
|
2434
|
+
const exception = new ThrottlingException({
|
|
2435
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2436
|
+
...contents
|
|
2437
|
+
});
|
|
2438
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2439
|
+
}, "de_ThrottlingExceptionRes");
|
|
2278
2440
|
var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2279
2441
|
const contents = (0, import_smithy_client.map)({});
|
|
2280
2442
|
const data = parsedOutput.body;
|
|
@@ -2576,6 +2738,22 @@ var _CreateAssistantCommand = class _CreateAssistantCommand extends import_smith
|
|
|
2576
2738
|
__name(_CreateAssistantCommand, "CreateAssistantCommand");
|
|
2577
2739
|
var CreateAssistantCommand = _CreateAssistantCommand;
|
|
2578
2740
|
|
|
2741
|
+
// src/commands/CreateContentAssociationCommand.ts
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
var _CreateContentAssociationCommand = class _CreateContentAssociationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2746
|
+
...commonParams
|
|
2747
|
+
}).m(function(Command, cs, config, o) {
|
|
2748
|
+
return [
|
|
2749
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2750
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2751
|
+
];
|
|
2752
|
+
}).s("WisdomService", "CreateContentAssociation", {}).n("QConnectClient", "CreateContentAssociationCommand").f(void 0, void 0).ser(se_CreateContentAssociationCommand).de(de_CreateContentAssociationCommand).build() {
|
|
2753
|
+
};
|
|
2754
|
+
__name(_CreateContentAssociationCommand, "CreateContentAssociationCommand");
|
|
2755
|
+
var CreateContentAssociationCommand = _CreateContentAssociationCommand;
|
|
2756
|
+
|
|
2579
2757
|
// src/commands/CreateContentCommand.ts
|
|
2580
2758
|
|
|
2581
2759
|
|
|
@@ -2672,6 +2850,22 @@ var _DeleteAssistantCommand = class _DeleteAssistantCommand extends import_smith
|
|
|
2672
2850
|
__name(_DeleteAssistantCommand, "DeleteAssistantCommand");
|
|
2673
2851
|
var DeleteAssistantCommand = _DeleteAssistantCommand;
|
|
2674
2852
|
|
|
2853
|
+
// src/commands/DeleteContentAssociationCommand.ts
|
|
2854
|
+
|
|
2855
|
+
|
|
2856
|
+
|
|
2857
|
+
var _DeleteContentAssociationCommand = class _DeleteContentAssociationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2858
|
+
...commonParams
|
|
2859
|
+
}).m(function(Command, cs, config, o) {
|
|
2860
|
+
return [
|
|
2861
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2862
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2863
|
+
];
|
|
2864
|
+
}).s("WisdomService", "DeleteContentAssociation", {}).n("QConnectClient", "DeleteContentAssociationCommand").f(void 0, void 0).ser(se_DeleteContentAssociationCommand).de(de_DeleteContentAssociationCommand).build() {
|
|
2865
|
+
};
|
|
2866
|
+
__name(_DeleteContentAssociationCommand, "DeleteContentAssociationCommand");
|
|
2867
|
+
var DeleteContentAssociationCommand = _DeleteContentAssociationCommand;
|
|
2868
|
+
|
|
2675
2869
|
// src/commands/DeleteContentCommand.ts
|
|
2676
2870
|
|
|
2677
2871
|
|
|
@@ -2768,6 +2962,22 @@ var _GetAssistantCommand = class _GetAssistantCommand extends import_smithy_clie
|
|
|
2768
2962
|
__name(_GetAssistantCommand, "GetAssistantCommand");
|
|
2769
2963
|
var GetAssistantCommand = _GetAssistantCommand;
|
|
2770
2964
|
|
|
2965
|
+
// src/commands/GetContentAssociationCommand.ts
|
|
2966
|
+
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
var _GetContentAssociationCommand = class _GetContentAssociationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2970
|
+
...commonParams
|
|
2971
|
+
}).m(function(Command, cs, config, o) {
|
|
2972
|
+
return [
|
|
2973
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2974
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2975
|
+
];
|
|
2976
|
+
}).s("WisdomService", "GetContentAssociation", {}).n("QConnectClient", "GetContentAssociationCommand").f(void 0, void 0).ser(se_GetContentAssociationCommand).de(de_GetContentAssociationCommand).build() {
|
|
2977
|
+
};
|
|
2978
|
+
__name(_GetContentAssociationCommand, "GetContentAssociationCommand");
|
|
2979
|
+
var GetContentAssociationCommand = _GetContentAssociationCommand;
|
|
2980
|
+
|
|
2771
2981
|
// src/commands/GetContentCommand.ts
|
|
2772
2982
|
|
|
2773
2983
|
|
|
@@ -2912,6 +3122,22 @@ var _ListAssistantsCommand = class _ListAssistantsCommand extends import_smithy_
|
|
|
2912
3122
|
__name(_ListAssistantsCommand, "ListAssistantsCommand");
|
|
2913
3123
|
var ListAssistantsCommand = _ListAssistantsCommand;
|
|
2914
3124
|
|
|
3125
|
+
// src/commands/ListContentAssociationsCommand.ts
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
var _ListContentAssociationsCommand = class _ListContentAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3130
|
+
...commonParams
|
|
3131
|
+
}).m(function(Command, cs, config, o) {
|
|
3132
|
+
return [
|
|
3133
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3134
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3135
|
+
];
|
|
3136
|
+
}).s("WisdomService", "ListContentAssociations", {}).n("QConnectClient", "ListContentAssociationsCommand").f(void 0, void 0).ser(se_ListContentAssociationsCommand).de(de_ListContentAssociationsCommand).build() {
|
|
3137
|
+
};
|
|
3138
|
+
__name(_ListContentAssociationsCommand, "ListContentAssociationsCommand");
|
|
3139
|
+
var ListContentAssociationsCommand = _ListContentAssociationsCommand;
|
|
3140
|
+
|
|
2915
3141
|
// src/commands/ListContentsCommand.ts
|
|
2916
3142
|
|
|
2917
3143
|
|
|
@@ -3237,18 +3463,21 @@ var commands = {
|
|
|
3237
3463
|
CreateAssistantCommand,
|
|
3238
3464
|
CreateAssistantAssociationCommand,
|
|
3239
3465
|
CreateContentCommand,
|
|
3466
|
+
CreateContentAssociationCommand,
|
|
3240
3467
|
CreateKnowledgeBaseCommand,
|
|
3241
3468
|
CreateQuickResponseCommand,
|
|
3242
3469
|
CreateSessionCommand,
|
|
3243
3470
|
DeleteAssistantCommand,
|
|
3244
3471
|
DeleteAssistantAssociationCommand,
|
|
3245
3472
|
DeleteContentCommand,
|
|
3473
|
+
DeleteContentAssociationCommand,
|
|
3246
3474
|
DeleteImportJobCommand,
|
|
3247
3475
|
DeleteKnowledgeBaseCommand,
|
|
3248
3476
|
DeleteQuickResponseCommand,
|
|
3249
3477
|
GetAssistantCommand,
|
|
3250
3478
|
GetAssistantAssociationCommand,
|
|
3251
3479
|
GetContentCommand,
|
|
3480
|
+
GetContentAssociationCommand,
|
|
3252
3481
|
GetContentSummaryCommand,
|
|
3253
3482
|
GetImportJobCommand,
|
|
3254
3483
|
GetKnowledgeBaseCommand,
|
|
@@ -3257,6 +3486,7 @@ var commands = {
|
|
|
3257
3486
|
GetSessionCommand,
|
|
3258
3487
|
ListAssistantAssociationsCommand,
|
|
3259
3488
|
ListAssistantsCommand,
|
|
3489
|
+
ListContentAssociationsCommand,
|
|
3260
3490
|
ListContentsCommand,
|
|
3261
3491
|
ListImportJobsCommand,
|
|
3262
3492
|
ListKnowledgeBasesCommand,
|
|
@@ -3292,6 +3522,10 @@ var paginateListAssistantAssociations = (0, import_core.createPaginator)(QConnec
|
|
|
3292
3522
|
|
|
3293
3523
|
var paginateListAssistants = (0, import_core.createPaginator)(QConnectClient, ListAssistantsCommand, "nextToken", "nextToken", "maxResults");
|
|
3294
3524
|
|
|
3525
|
+
// src/pagination/ListContentAssociationsPaginator.ts
|
|
3526
|
+
|
|
3527
|
+
var paginateListContentAssociations = (0, import_core.createPaginator)(QConnectClient, ListContentAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
3528
|
+
|
|
3295
3529
|
// src/pagination/ListContentsPaginator.ts
|
|
3296
3530
|
|
|
3297
3531
|
var paginateListContents = (0, import_core.createPaginator)(QConnectClient, ListContentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -3333,18 +3567,21 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
|
|
|
3333
3567
|
$Command,
|
|
3334
3568
|
CreateAssistantAssociationCommand,
|
|
3335
3569
|
CreateAssistantCommand,
|
|
3570
|
+
CreateContentAssociationCommand,
|
|
3336
3571
|
CreateContentCommand,
|
|
3337
3572
|
CreateKnowledgeBaseCommand,
|
|
3338
3573
|
CreateQuickResponseCommand,
|
|
3339
3574
|
CreateSessionCommand,
|
|
3340
3575
|
DeleteAssistantAssociationCommand,
|
|
3341
3576
|
DeleteAssistantCommand,
|
|
3577
|
+
DeleteContentAssociationCommand,
|
|
3342
3578
|
DeleteContentCommand,
|
|
3343
3579
|
DeleteImportJobCommand,
|
|
3344
3580
|
DeleteKnowledgeBaseCommand,
|
|
3345
3581
|
DeleteQuickResponseCommand,
|
|
3346
3582
|
GetAssistantAssociationCommand,
|
|
3347
3583
|
GetAssistantCommand,
|
|
3584
|
+
GetContentAssociationCommand,
|
|
3348
3585
|
GetContentCommand,
|
|
3349
3586
|
GetContentSummaryCommand,
|
|
3350
3587
|
GetImportJobCommand,
|
|
@@ -3354,6 +3591,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
|
|
|
3354
3591
|
GetSessionCommand,
|
|
3355
3592
|
ListAssistantAssociationsCommand,
|
|
3356
3593
|
ListAssistantsCommand,
|
|
3594
|
+
ListContentAssociationsCommand,
|
|
3357
3595
|
ListContentsCommand,
|
|
3358
3596
|
ListImportJobsCommand,
|
|
3359
3597
|
ListKnowledgeBasesCommand,
|
|
@@ -3376,6 +3614,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
|
|
|
3376
3614
|
UpdateSessionCommand,
|
|
3377
3615
|
paginateListAssistantAssociations,
|
|
3378
3616
|
paginateListAssistants,
|
|
3617
|
+
paginateListContentAssociations,
|
|
3379
3618
|
paginateListContents,
|
|
3380
3619
|
paginateListImportJobs,
|
|
3381
3620
|
paginateListKnowledgeBases,
|
|
@@ -3415,6 +3654,9 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
|
|
|
3415
3654
|
OrCondition,
|
|
3416
3655
|
TagFilter,
|
|
3417
3656
|
Configuration,
|
|
3657
|
+
ContentAssociationContents,
|
|
3658
|
+
ContentAssociationType,
|
|
3659
|
+
ThrottlingException,
|
|
3418
3660
|
ContentStatus,
|
|
3419
3661
|
PreconditionFailedException,
|
|
3420
3662
|
KnowledgeBaseType,
|
package/dist-es/QConnect.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { CreateAssistantAssociationCommand, } from "./commands/CreateAssistantAssociationCommand";
|
|
3
3
|
import { CreateAssistantCommand, } from "./commands/CreateAssistantCommand";
|
|
4
|
+
import { CreateContentAssociationCommand, } from "./commands/CreateContentAssociationCommand";
|
|
4
5
|
import { CreateContentCommand, } from "./commands/CreateContentCommand";
|
|
5
6
|
import { CreateKnowledgeBaseCommand, } from "./commands/CreateKnowledgeBaseCommand";
|
|
6
7
|
import { CreateQuickResponseCommand, } from "./commands/CreateQuickResponseCommand";
|
|
7
8
|
import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
|
|
8
9
|
import { DeleteAssistantAssociationCommand, } from "./commands/DeleteAssistantAssociationCommand";
|
|
9
10
|
import { DeleteAssistantCommand, } from "./commands/DeleteAssistantCommand";
|
|
11
|
+
import { DeleteContentAssociationCommand, } from "./commands/DeleteContentAssociationCommand";
|
|
10
12
|
import { DeleteContentCommand, } from "./commands/DeleteContentCommand";
|
|
11
13
|
import { DeleteImportJobCommand, } from "./commands/DeleteImportJobCommand";
|
|
12
14
|
import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseCommand";
|
|
13
15
|
import { DeleteQuickResponseCommand, } from "./commands/DeleteQuickResponseCommand";
|
|
14
16
|
import { GetAssistantAssociationCommand, } from "./commands/GetAssistantAssociationCommand";
|
|
15
17
|
import { GetAssistantCommand, } from "./commands/GetAssistantCommand";
|
|
18
|
+
import { GetContentAssociationCommand, } from "./commands/GetContentAssociationCommand";
|
|
16
19
|
import { GetContentCommand } from "./commands/GetContentCommand";
|
|
17
20
|
import { GetContentSummaryCommand, } from "./commands/GetContentSummaryCommand";
|
|
18
21
|
import { GetImportJobCommand, } from "./commands/GetImportJobCommand";
|
|
@@ -22,6 +25,7 @@ import { GetRecommendationsCommand, } from "./commands/GetRecommendationsCommand
|
|
|
22
25
|
import { GetSessionCommand } from "./commands/GetSessionCommand";
|
|
23
26
|
import { ListAssistantAssociationsCommand, } from "./commands/ListAssistantAssociationsCommand";
|
|
24
27
|
import { ListAssistantsCommand, } from "./commands/ListAssistantsCommand";
|
|
28
|
+
import { ListContentAssociationsCommand, } from "./commands/ListContentAssociationsCommand";
|
|
25
29
|
import { ListContentsCommand, } from "./commands/ListContentsCommand";
|
|
26
30
|
import { ListImportJobsCommand, } from "./commands/ListImportJobsCommand";
|
|
27
31
|
import { ListKnowledgeBasesCommand, } from "./commands/ListKnowledgeBasesCommand";
|
|
@@ -47,18 +51,21 @@ const commands = {
|
|
|
47
51
|
CreateAssistantCommand,
|
|
48
52
|
CreateAssistantAssociationCommand,
|
|
49
53
|
CreateContentCommand,
|
|
54
|
+
CreateContentAssociationCommand,
|
|
50
55
|
CreateKnowledgeBaseCommand,
|
|
51
56
|
CreateQuickResponseCommand,
|
|
52
57
|
CreateSessionCommand,
|
|
53
58
|
DeleteAssistantCommand,
|
|
54
59
|
DeleteAssistantAssociationCommand,
|
|
55
60
|
DeleteContentCommand,
|
|
61
|
+
DeleteContentAssociationCommand,
|
|
56
62
|
DeleteImportJobCommand,
|
|
57
63
|
DeleteKnowledgeBaseCommand,
|
|
58
64
|
DeleteQuickResponseCommand,
|
|
59
65
|
GetAssistantCommand,
|
|
60
66
|
GetAssistantAssociationCommand,
|
|
61
67
|
GetContentCommand,
|
|
68
|
+
GetContentAssociationCommand,
|
|
62
69
|
GetContentSummaryCommand,
|
|
63
70
|
GetImportJobCommand,
|
|
64
71
|
GetKnowledgeBaseCommand,
|
|
@@ -67,6 +74,7 @@ const commands = {
|
|
|
67
74
|
GetSessionCommand,
|
|
68
75
|
ListAssistantAssociationsCommand,
|
|
69
76
|
ListAssistantsCommand,
|
|
77
|
+
ListContentAssociationsCommand,
|
|
70
78
|
ListContentsCommand,
|
|
71
79
|
ListImportJobsCommand,
|
|
72
80
|
ListKnowledgeBasesCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CreateContentAssociationCommand, se_CreateContentAssociationCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateContentAssociationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("WisdomService", "CreateContentAssociation", {})
|
|
19
|
+
.n("QConnectClient", "CreateContentAssociationCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CreateContentAssociationCommand)
|
|
22
|
+
.de(de_CreateContentAssociationCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteContentAssociationCommand, se_DeleteContentAssociationCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteContentAssociationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("WisdomService", "DeleteContentAssociation", {})
|
|
19
|
+
.n("QConnectClient", "DeleteContentAssociationCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DeleteContentAssociationCommand)
|
|
22
|
+
.de(de_DeleteContentAssociationCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetContentAssociationCommand, se_GetContentAssociationCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetContentAssociationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("WisdomService", "GetContentAssociation", {})
|
|
19
|
+
.n("QConnectClient", "GetContentAssociationCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetContentAssociationCommand)
|
|
22
|
+
.de(de_GetContentAssociationCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|