@aws-sdk/client-qbusiness 3.750.0 → 3.758.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 +8 -0
- package/dist-cjs/index.js +49 -7
- package/dist-es/QBusiness.js +2 -0
- package/dist-es/commands/DeleteAttachmentCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +0 -4
- package/dist-es/models/models_1.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +26 -2
- package/dist-types/QBusiness.d.ts +7 -0
- package/dist-types/QBusinessClient.d.ts +3 -2
- package/dist-types/commands/DeleteAttachmentCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +30 -39
- package/dist-types/models/models_1.d.ts +40 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/QBusiness.d.ts +17 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DeleteAttachmentCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -12
- package/dist-types/ts3.4/models/models_1.d.ts +13 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -368,6 +368,14 @@ DeleteApplication
|
|
|
368
368
|
|
|
369
369
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/DeleteApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/DeleteApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/DeleteApplicationCommandOutput/)
|
|
370
370
|
|
|
371
|
+
</details>
|
|
372
|
+
<details>
|
|
373
|
+
<summary>
|
|
374
|
+
DeleteAttachment
|
|
375
|
+
</summary>
|
|
376
|
+
|
|
377
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/DeleteAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/DeleteAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/DeleteAttachmentCommandOutput/)
|
|
378
|
+
|
|
371
379
|
</details>
|
|
372
380
|
<details>
|
|
373
381
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -69,6 +69,7 @@ __export(src_exports, {
|
|
|
69
69
|
DataSourceStatus: () => DataSourceStatus,
|
|
70
70
|
DataSourceSyncJobStatus: () => DataSourceSyncJobStatus,
|
|
71
71
|
DeleteApplicationCommand: () => DeleteApplicationCommand,
|
|
72
|
+
DeleteAttachmentCommand: () => DeleteAttachmentCommand,
|
|
72
73
|
DeleteChatControlsConfigurationCommand: () => DeleteChatControlsConfigurationCommand,
|
|
73
74
|
DeleteConversationCommand: () => DeleteConversationCommand,
|
|
74
75
|
DeleteDataAccessorCommand: () => DeleteDataAccessorCommand,
|
|
@@ -1058,10 +1059,6 @@ var MessageUsefulnessReason = {
|
|
|
1058
1059
|
OTHER: "OTHER",
|
|
1059
1060
|
RELEVANT_SOURCES: "RELEVANT_SOURCES"
|
|
1060
1061
|
};
|
|
1061
|
-
var MessageUsefulness = {
|
|
1062
|
-
NOT_USEFUL: "NOT_USEFUL",
|
|
1063
|
-
USEFUL: "USEFUL"
|
|
1064
|
-
};
|
|
1065
1062
|
var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1066
1063
|
if (obj.payload !== void 0)
|
|
1067
1064
|
return { payload: import_smithy_client.SENSITIVE_STRING };
|
|
@@ -1140,6 +1137,10 @@ var ChatOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1140
1137
|
|
|
1141
1138
|
// src/models/models_1.ts
|
|
1142
1139
|
|
|
1140
|
+
var MessageUsefulness = {
|
|
1141
|
+
NOT_USEFUL: "NOT_USEFUL",
|
|
1142
|
+
USEFUL: "USEFUL"
|
|
1143
|
+
};
|
|
1143
1144
|
var ScoreConfidence = {
|
|
1144
1145
|
HIGH: "HIGH",
|
|
1145
1146
|
LOW: "LOW",
|
|
@@ -1527,6 +1528,20 @@ var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1527
1528
|
b.m("DELETE").h(headers).b(body);
|
|
1528
1529
|
return b.build();
|
|
1529
1530
|
}, "se_DeleteApplicationCommand");
|
|
1531
|
+
var se_DeleteAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1532
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1533
|
+
const headers = {};
|
|
1534
|
+
b.bp("/applications/{applicationId}/conversations/{conversationId}/attachments/{attachmentId}");
|
|
1535
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1536
|
+
b.p("conversationId", () => input.conversationId, "{conversationId}", false);
|
|
1537
|
+
b.p("attachmentId", () => input.attachmentId, "{attachmentId}", false);
|
|
1538
|
+
const query = (0, import_smithy_client.map)({
|
|
1539
|
+
[_uI]: [, input[_uI]]
|
|
1540
|
+
});
|
|
1541
|
+
let body;
|
|
1542
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1543
|
+
return b.build();
|
|
1544
|
+
}, "se_DeleteAttachmentCommand");
|
|
1530
1545
|
var se_DeleteChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1531
1546
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1532
1547
|
const headers = {};
|
|
@@ -2576,6 +2591,16 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2576
2591
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2577
2592
|
return contents;
|
|
2578
2593
|
}, "de_DeleteApplicationCommand");
|
|
2594
|
+
var de_DeleteAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2595
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2596
|
+
return de_CommandError(output, context);
|
|
2597
|
+
}
|
|
2598
|
+
const contents = (0, import_smithy_client.map)({
|
|
2599
|
+
$metadata: deserializeMetadata(output)
|
|
2600
|
+
});
|
|
2601
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2602
|
+
return contents;
|
|
2603
|
+
}, "de_DeleteAttachmentCommand");
|
|
2579
2604
|
var de_DeleteChatControlsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2580
2605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2581
2606
|
return de_CommandError(output, context);
|
|
@@ -3874,14 +3899,14 @@ var se_DocumentAttributeValue = /* @__PURE__ */ __name((input, context) => {
|
|
|
3874
3899
|
longValue: (value) => ({ longValue: value }),
|
|
3875
3900
|
stringListValue: (value) => ({ stringListValue: (0, import_smithy_client._json)(value) }),
|
|
3876
3901
|
stringValue: (value) => ({ stringValue: value }),
|
|
3877
|
-
_: (name, value) => ({ name: value })
|
|
3902
|
+
_: (name, value) => ({ [name]: value })
|
|
3878
3903
|
});
|
|
3879
3904
|
}, "se_DocumentAttributeValue");
|
|
3880
3905
|
var se_DocumentContent = /* @__PURE__ */ __name((input, context) => {
|
|
3881
3906
|
return DocumentContent.visit(input, {
|
|
3882
3907
|
blob: (value) => ({ blob: context.base64Encoder(value) }),
|
|
3883
3908
|
s3: (value) => ({ s3: (0, import_smithy_client._json)(value) }),
|
|
3884
|
-
_: (name, value) => ({ name: value })
|
|
3909
|
+
_: (name, value) => ({ [name]: value })
|
|
3885
3910
|
});
|
|
3886
3911
|
}, "se_DocumentContent");
|
|
3887
3912
|
var se_DocumentEnrichmentConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4628,6 +4653,21 @@ var DeleteApplicationCommand = class extends import_smithy_client.Command.classB
|
|
|
4628
4653
|
}
|
|
4629
4654
|
};
|
|
4630
4655
|
|
|
4656
|
+
// src/commands/DeleteAttachmentCommand.ts
|
|
4657
|
+
|
|
4658
|
+
|
|
4659
|
+
|
|
4660
|
+
var DeleteAttachmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4661
|
+
return [
|
|
4662
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4663
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4664
|
+
];
|
|
4665
|
+
}).s("ExpertQ", "DeleteAttachment", {}).n("QBusinessClient", "DeleteAttachmentCommand").f(void 0, void 0).ser(se_DeleteAttachmentCommand).de(de_DeleteAttachmentCommand).build() {
|
|
4666
|
+
static {
|
|
4667
|
+
__name(this, "DeleteAttachmentCommand");
|
|
4668
|
+
}
|
|
4669
|
+
};
|
|
4670
|
+
|
|
4631
4671
|
// src/commands/DeleteChatControlsConfigurationCommand.ts
|
|
4632
4672
|
|
|
4633
4673
|
|
|
@@ -5516,6 +5556,7 @@ var commands = {
|
|
|
5516
5556
|
CreateUserCommand,
|
|
5517
5557
|
CreateWebExperienceCommand,
|
|
5518
5558
|
DeleteApplicationCommand,
|
|
5559
|
+
DeleteAttachmentCommand,
|
|
5519
5560
|
DeleteChatControlsConfigurationCommand,
|
|
5520
5561
|
DeleteConversationCommand,
|
|
5521
5562
|
DeleteDataAccessorCommand,
|
|
@@ -5681,6 +5722,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
|
|
|
5681
5722
|
CreateUserCommand,
|
|
5682
5723
|
CreateWebExperienceCommand,
|
|
5683
5724
|
DeleteApplicationCommand,
|
|
5725
|
+
DeleteAttachmentCommand,
|
|
5684
5726
|
DeleteChatControlsConfigurationCommand,
|
|
5685
5727
|
DeleteConversationCommand,
|
|
5686
5728
|
DeleteDataAccessorCommand,
|
|
@@ -5830,7 +5872,6 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
|
|
|
5830
5872
|
MessageType,
|
|
5831
5873
|
PluginTypeCategory,
|
|
5832
5874
|
MessageUsefulnessReason,
|
|
5833
|
-
MessageUsefulness,
|
|
5834
5875
|
APISchemaFilterSensitiveLog,
|
|
5835
5876
|
EncryptionConfigurationFilterSensitiveLog,
|
|
5836
5877
|
CreateApplicationRequestFilterSensitiveLog,
|
|
@@ -5843,6 +5884,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
|
|
|
5843
5884
|
UpdatePluginRequestFilterSensitiveLog,
|
|
5844
5885
|
ChatOutputStreamFilterSensitiveLog,
|
|
5845
5886
|
ChatOutputFilterSensitiveLog,
|
|
5887
|
+
MessageUsefulness,
|
|
5846
5888
|
ScoreConfidence,
|
|
5847
5889
|
ChatInputStream,
|
|
5848
5890
|
ChatInputStreamFilterSensitiveLog,
|
package/dist-es/QBusiness.js
CHANGED
|
@@ -15,6 +15,7 @@ import { CreateSubscriptionCommand, } from "./commands/CreateSubscriptionCommand
|
|
|
15
15
|
import { CreateUserCommand } from "./commands/CreateUserCommand";
|
|
16
16
|
import { CreateWebExperienceCommand, } from "./commands/CreateWebExperienceCommand";
|
|
17
17
|
import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
|
|
18
|
+
import { DeleteAttachmentCommand, } from "./commands/DeleteAttachmentCommand";
|
|
18
19
|
import { DeleteChatControlsConfigurationCommand, } from "./commands/DeleteChatControlsConfigurationCommand";
|
|
19
20
|
import { DeleteConversationCommand, } from "./commands/DeleteConversationCommand";
|
|
20
21
|
import { DeleteDataAccessorCommand, } from "./commands/DeleteDataAccessorCommand";
|
|
@@ -91,6 +92,7 @@ const commands = {
|
|
|
91
92
|
CreateUserCommand,
|
|
92
93
|
CreateWebExperienceCommand,
|
|
93
94
|
DeleteApplicationCommand,
|
|
95
|
+
DeleteAttachmentCommand,
|
|
94
96
|
DeleteChatControlsConfigurationCommand,
|
|
95
97
|
DeleteConversationCommand,
|
|
96
98
|
DeleteDataAccessorCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
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_DeleteAttachmentCommand, se_DeleteAttachmentCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteAttachmentCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("ExpertQ", "DeleteAttachment", {})
|
|
17
|
+
.n("QBusinessClient", "DeleteAttachmentCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DeleteAttachmentCommand)
|
|
20
|
+
.de(de_DeleteAttachmentCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from "./CreateSubscriptionCommand";
|
|
|
14
14
|
export * from "./CreateUserCommand";
|
|
15
15
|
export * from "./CreateWebExperienceCommand";
|
|
16
16
|
export * from "./DeleteApplicationCommand";
|
|
17
|
+
export * from "./DeleteAttachmentCommand";
|
|
17
18
|
export * from "./DeleteChatControlsConfigurationCommand";
|
|
18
19
|
export * from "./DeleteConversationCommand";
|
|
19
20
|
export * from "./DeleteDataAccessorCommand";
|
|
@@ -576,10 +576,6 @@ export const MessageUsefulnessReason = {
|
|
|
576
576
|
OTHER: "OTHER",
|
|
577
577
|
RELEVANT_SOURCES: "RELEVANT_SOURCES",
|
|
578
578
|
};
|
|
579
|
-
export const MessageUsefulness = {
|
|
580
|
-
NOT_USEFUL: "NOT_USEFUL",
|
|
581
|
-
USEFUL: "USEFUL",
|
|
582
|
-
};
|
|
583
579
|
export const APISchemaFilterSensitiveLog = (obj) => {
|
|
584
580
|
if (obj.payload !== undefined)
|
|
585
581
|
return { payload: SENSITIVE_STRING };
|
|
@@ -304,6 +304,20 @@ export const se_DeleteApplicationCommand = async (input, context) => {
|
|
|
304
304
|
b.m("DELETE").h(headers).b(body);
|
|
305
305
|
return b.build();
|
|
306
306
|
};
|
|
307
|
+
export const se_DeleteAttachmentCommand = async (input, context) => {
|
|
308
|
+
const b = rb(input, context);
|
|
309
|
+
const headers = {};
|
|
310
|
+
b.bp("/applications/{applicationId}/conversations/{conversationId}/attachments/{attachmentId}");
|
|
311
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
312
|
+
b.p("conversationId", () => input.conversationId, "{conversationId}", false);
|
|
313
|
+
b.p("attachmentId", () => input.attachmentId, "{attachmentId}", false);
|
|
314
|
+
const query = map({
|
|
315
|
+
[_uI]: [, input[_uI]],
|
|
316
|
+
});
|
|
317
|
+
let body;
|
|
318
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
319
|
+
return b.build();
|
|
320
|
+
};
|
|
307
321
|
export const se_DeleteChatControlsConfigurationCommand = async (input, context) => {
|
|
308
322
|
const b = rb(input, context);
|
|
309
323
|
const headers = {};
|
|
@@ -1325,6 +1339,16 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
1325
1339
|
await collectBody(output.body, context);
|
|
1326
1340
|
return contents;
|
|
1327
1341
|
};
|
|
1342
|
+
export const de_DeleteAttachmentCommand = async (output, context) => {
|
|
1343
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1344
|
+
return de_CommandError(output, context);
|
|
1345
|
+
}
|
|
1346
|
+
const contents = map({
|
|
1347
|
+
$metadata: deserializeMetadata(output),
|
|
1348
|
+
});
|
|
1349
|
+
await collectBody(output.body, context);
|
|
1350
|
+
return contents;
|
|
1351
|
+
};
|
|
1328
1352
|
export const de_DeleteChatControlsConfigurationCommand = async (output, context) => {
|
|
1329
1353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
1354
|
return de_CommandError(output, context);
|
|
@@ -2628,14 +2652,14 @@ const se_DocumentAttributeValue = (input, context) => {
|
|
|
2628
2652
|
longValue: (value) => ({ longValue: value }),
|
|
2629
2653
|
stringListValue: (value) => ({ stringListValue: _json(value) }),
|
|
2630
2654
|
stringValue: (value) => ({ stringValue: value }),
|
|
2631
|
-
_: (name, value) => ({ name: value }),
|
|
2655
|
+
_: (name, value) => ({ [name]: value }),
|
|
2632
2656
|
});
|
|
2633
2657
|
};
|
|
2634
2658
|
const se_DocumentContent = (input, context) => {
|
|
2635
2659
|
return DocumentContent.visit(input, {
|
|
2636
2660
|
blob: (value) => ({ blob: context.base64Encoder(value) }),
|
|
2637
2661
|
s3: (value) => ({ s3: _json(value) }),
|
|
2638
|
-
_: (name, value) => ({ name: value }),
|
|
2662
|
+
_: (name, value) => ({ [name]: value }),
|
|
2639
2663
|
});
|
|
2640
2664
|
};
|
|
2641
2665
|
const se_DocumentEnrichmentConfiguration = (input, context) => {
|
|
@@ -15,6 +15,7 @@ import { CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput } from
|
|
|
15
15
|
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
16
16
|
import { CreateWebExperienceCommandInput, CreateWebExperienceCommandOutput } from "./commands/CreateWebExperienceCommand";
|
|
17
17
|
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
18
|
+
import { DeleteAttachmentCommandInput, DeleteAttachmentCommandOutput } from "./commands/DeleteAttachmentCommand";
|
|
18
19
|
import { DeleteChatControlsConfigurationCommandInput, DeleteChatControlsConfigurationCommandOutput } from "./commands/DeleteChatControlsConfigurationCommand";
|
|
19
20
|
import { DeleteConversationCommandInput, DeleteConversationCommandOutput } from "./commands/DeleteConversationCommand";
|
|
20
21
|
import { DeleteDataAccessorCommandInput, DeleteDataAccessorCommandOutput } from "./commands/DeleteDataAccessorCommand";
|
|
@@ -171,6 +172,12 @@ export interface QBusiness {
|
|
|
171
172
|
deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
|
|
172
173
|
deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
173
174
|
deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link DeleteAttachmentCommand}
|
|
177
|
+
*/
|
|
178
|
+
deleteAttachment(args: DeleteAttachmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAttachmentCommandOutput>;
|
|
179
|
+
deleteAttachment(args: DeleteAttachmentCommandInput, cb: (err: any, data?: DeleteAttachmentCommandOutput) => void): void;
|
|
180
|
+
deleteAttachment(args: DeleteAttachmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAttachmentCommandOutput) => void): void;
|
|
174
181
|
/**
|
|
175
182
|
* @see {@link DeleteChatControlsConfigurationCommand}
|
|
176
183
|
*/
|
|
@@ -26,6 +26,7 @@ import { CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput } from
|
|
|
26
26
|
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
27
27
|
import { CreateWebExperienceCommandInput, CreateWebExperienceCommandOutput } from "./commands/CreateWebExperienceCommand";
|
|
28
28
|
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
29
|
+
import { DeleteAttachmentCommandInput, DeleteAttachmentCommandOutput } from "./commands/DeleteAttachmentCommand";
|
|
29
30
|
import { DeleteChatControlsConfigurationCommandInput, DeleteChatControlsConfigurationCommandOutput } from "./commands/DeleteChatControlsConfigurationCommand";
|
|
30
31
|
import { DeleteConversationCommandInput, DeleteConversationCommandOutput } from "./commands/DeleteConversationCommand";
|
|
31
32
|
import { DeleteDataAccessorCommandInput, DeleteDataAccessorCommandOutput } from "./commands/DeleteDataAccessorCommand";
|
|
@@ -90,11 +91,11 @@ export { __Client };
|
|
|
90
91
|
/**
|
|
91
92
|
* @public
|
|
92
93
|
*/
|
|
93
|
-
export type ServiceInputTypes = AssociatePermissionCommandInput | BatchDeleteDocumentCommandInput | BatchPutDocumentCommandInput | CancelSubscriptionCommandInput | ChatCommandInput | ChatSyncCommandInput | CreateApplicationCommandInput | CreateDataAccessorCommandInput | CreateDataSourceCommandInput | CreateIndexCommandInput | CreatePluginCommandInput | CreateRetrieverCommandInput | CreateSubscriptionCommandInput | CreateUserCommandInput | CreateWebExperienceCommandInput | DeleteApplicationCommandInput | DeleteChatControlsConfigurationCommandInput | DeleteConversationCommandInput | DeleteDataAccessorCommandInput | DeleteDataSourceCommandInput | DeleteGroupCommandInput | DeleteIndexCommandInput | DeletePluginCommandInput | DeleteRetrieverCommandInput | DeleteUserCommandInput | DeleteWebExperienceCommandInput | DisassociatePermissionCommandInput | GetApplicationCommandInput | GetChatControlsConfigurationCommandInput | GetDataAccessorCommandInput | GetDataSourceCommandInput | GetGroupCommandInput | GetIndexCommandInput | GetMediaCommandInput | GetPluginCommandInput | GetPolicyCommandInput | GetRetrieverCommandInput | GetUserCommandInput | GetWebExperienceCommandInput | ListApplicationsCommandInput | ListAttachmentsCommandInput | ListConversationsCommandInput | ListDataAccessorsCommandInput | ListDataSourceSyncJobsCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListGroupsCommandInput | ListIndicesCommandInput | ListMessagesCommandInput | ListPluginActionsCommandInput | ListPluginTypeActionsCommandInput | ListPluginTypeMetadataCommandInput | ListPluginsCommandInput | ListRetrieversCommandInput | ListSubscriptionsCommandInput | ListTagsForResourceCommandInput | ListWebExperiencesCommandInput | PutFeedbackCommandInput | PutGroupCommandInput | SearchRelevantContentCommandInput | StartDataSourceSyncJobCommandInput | StopDataSourceSyncJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateChatControlsConfigurationCommandInput | UpdateDataAccessorCommandInput | UpdateDataSourceCommandInput | UpdateIndexCommandInput | UpdatePluginCommandInput | UpdateRetrieverCommandInput | UpdateSubscriptionCommandInput | UpdateUserCommandInput | UpdateWebExperienceCommandInput;
|
|
94
|
+
export type ServiceInputTypes = AssociatePermissionCommandInput | BatchDeleteDocumentCommandInput | BatchPutDocumentCommandInput | CancelSubscriptionCommandInput | ChatCommandInput | ChatSyncCommandInput | CreateApplicationCommandInput | CreateDataAccessorCommandInput | CreateDataSourceCommandInput | CreateIndexCommandInput | CreatePluginCommandInput | CreateRetrieverCommandInput | CreateSubscriptionCommandInput | CreateUserCommandInput | CreateWebExperienceCommandInput | DeleteApplicationCommandInput | DeleteAttachmentCommandInput | DeleteChatControlsConfigurationCommandInput | DeleteConversationCommandInput | DeleteDataAccessorCommandInput | DeleteDataSourceCommandInput | DeleteGroupCommandInput | DeleteIndexCommandInput | DeletePluginCommandInput | DeleteRetrieverCommandInput | DeleteUserCommandInput | DeleteWebExperienceCommandInput | DisassociatePermissionCommandInput | GetApplicationCommandInput | GetChatControlsConfigurationCommandInput | GetDataAccessorCommandInput | GetDataSourceCommandInput | GetGroupCommandInput | GetIndexCommandInput | GetMediaCommandInput | GetPluginCommandInput | GetPolicyCommandInput | GetRetrieverCommandInput | GetUserCommandInput | GetWebExperienceCommandInput | ListApplicationsCommandInput | ListAttachmentsCommandInput | ListConversationsCommandInput | ListDataAccessorsCommandInput | ListDataSourceSyncJobsCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListGroupsCommandInput | ListIndicesCommandInput | ListMessagesCommandInput | ListPluginActionsCommandInput | ListPluginTypeActionsCommandInput | ListPluginTypeMetadataCommandInput | ListPluginsCommandInput | ListRetrieversCommandInput | ListSubscriptionsCommandInput | ListTagsForResourceCommandInput | ListWebExperiencesCommandInput | PutFeedbackCommandInput | PutGroupCommandInput | SearchRelevantContentCommandInput | StartDataSourceSyncJobCommandInput | StopDataSourceSyncJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateChatControlsConfigurationCommandInput | UpdateDataAccessorCommandInput | UpdateDataSourceCommandInput | UpdateIndexCommandInput | UpdatePluginCommandInput | UpdateRetrieverCommandInput | UpdateSubscriptionCommandInput | UpdateUserCommandInput | UpdateWebExperienceCommandInput;
|
|
94
95
|
/**
|
|
95
96
|
* @public
|
|
96
97
|
*/
|
|
97
|
-
export type ServiceOutputTypes = AssociatePermissionCommandOutput | BatchDeleteDocumentCommandOutput | BatchPutDocumentCommandOutput | CancelSubscriptionCommandOutput | ChatCommandOutput | ChatSyncCommandOutput | CreateApplicationCommandOutput | CreateDataAccessorCommandOutput | CreateDataSourceCommandOutput | CreateIndexCommandOutput | CreatePluginCommandOutput | CreateRetrieverCommandOutput | CreateSubscriptionCommandOutput | CreateUserCommandOutput | CreateWebExperienceCommandOutput | DeleteApplicationCommandOutput | DeleteChatControlsConfigurationCommandOutput | DeleteConversationCommandOutput | DeleteDataAccessorCommandOutput | DeleteDataSourceCommandOutput | DeleteGroupCommandOutput | DeleteIndexCommandOutput | DeletePluginCommandOutput | DeleteRetrieverCommandOutput | DeleteUserCommandOutput | DeleteWebExperienceCommandOutput | DisassociatePermissionCommandOutput | GetApplicationCommandOutput | GetChatControlsConfigurationCommandOutput | GetDataAccessorCommandOutput | GetDataSourceCommandOutput | GetGroupCommandOutput | GetIndexCommandOutput | GetMediaCommandOutput | GetPluginCommandOutput | GetPolicyCommandOutput | GetRetrieverCommandOutput | GetUserCommandOutput | GetWebExperienceCommandOutput | ListApplicationsCommandOutput | ListAttachmentsCommandOutput | ListConversationsCommandOutput | ListDataAccessorsCommandOutput | ListDataSourceSyncJobsCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListGroupsCommandOutput | ListIndicesCommandOutput | ListMessagesCommandOutput | ListPluginActionsCommandOutput | ListPluginTypeActionsCommandOutput | ListPluginTypeMetadataCommandOutput | ListPluginsCommandOutput | ListRetrieversCommandOutput | ListSubscriptionsCommandOutput | ListTagsForResourceCommandOutput | ListWebExperiencesCommandOutput | PutFeedbackCommandOutput | PutGroupCommandOutput | SearchRelevantContentCommandOutput | StartDataSourceSyncJobCommandOutput | StopDataSourceSyncJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateChatControlsConfigurationCommandOutput | UpdateDataAccessorCommandOutput | UpdateDataSourceCommandOutput | UpdateIndexCommandOutput | UpdatePluginCommandOutput | UpdateRetrieverCommandOutput | UpdateSubscriptionCommandOutput | UpdateUserCommandOutput | UpdateWebExperienceCommandOutput;
|
|
98
|
+
export type ServiceOutputTypes = AssociatePermissionCommandOutput | BatchDeleteDocumentCommandOutput | BatchPutDocumentCommandOutput | CancelSubscriptionCommandOutput | ChatCommandOutput | ChatSyncCommandOutput | CreateApplicationCommandOutput | CreateDataAccessorCommandOutput | CreateDataSourceCommandOutput | CreateIndexCommandOutput | CreatePluginCommandOutput | CreateRetrieverCommandOutput | CreateSubscriptionCommandOutput | CreateUserCommandOutput | CreateWebExperienceCommandOutput | DeleteApplicationCommandOutput | DeleteAttachmentCommandOutput | DeleteChatControlsConfigurationCommandOutput | DeleteConversationCommandOutput | DeleteDataAccessorCommandOutput | DeleteDataSourceCommandOutput | DeleteGroupCommandOutput | DeleteIndexCommandOutput | DeletePluginCommandOutput | DeleteRetrieverCommandOutput | DeleteUserCommandOutput | DeleteWebExperienceCommandOutput | DisassociatePermissionCommandOutput | GetApplicationCommandOutput | GetChatControlsConfigurationCommandOutput | GetDataAccessorCommandOutput | GetDataSourceCommandOutput | GetGroupCommandOutput | GetIndexCommandOutput | GetMediaCommandOutput | GetPluginCommandOutput | GetPolicyCommandOutput | GetRetrieverCommandOutput | GetUserCommandOutput | GetWebExperienceCommandOutput | ListApplicationsCommandOutput | ListAttachmentsCommandOutput | ListConversationsCommandOutput | ListDataAccessorsCommandOutput | ListDataSourceSyncJobsCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListGroupsCommandOutput | ListIndicesCommandOutput | ListMessagesCommandOutput | ListPluginActionsCommandOutput | ListPluginTypeActionsCommandOutput | ListPluginTypeMetadataCommandOutput | ListPluginsCommandOutput | ListRetrieversCommandOutput | ListSubscriptionsCommandOutput | ListTagsForResourceCommandOutput | ListWebExperiencesCommandOutput | PutFeedbackCommandOutput | PutGroupCommandOutput | SearchRelevantContentCommandOutput | StartDataSourceSyncJobCommandOutput | StopDataSourceSyncJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateChatControlsConfigurationCommandOutput | UpdateDataAccessorCommandOutput | UpdateDataSourceCommandOutput | UpdateIndexCommandOutput | UpdatePluginCommandOutput | UpdateRetrieverCommandOutput | UpdateSubscriptionCommandOutput | UpdateUserCommandOutput | UpdateWebExperienceCommandOutput;
|
|
98
99
|
/**
|
|
99
100
|
* @public
|
|
100
101
|
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteAttachmentRequest, DeleteAttachmentResponse } from "../models/models_0";
|
|
4
|
+
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteAttachmentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteAttachmentCommandInput extends DeleteAttachmentRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteAttachmentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteAttachmentCommandOutput extends DeleteAttachmentResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteAttachmentCommand_base: {
|
|
25
|
+
new (input: DeleteAttachmentCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAttachmentCommandInput, DeleteAttachmentCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteAttachmentCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAttachmentCommandInput, DeleteAttachmentCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes an attachment associated with a specific Amazon Q Business conversation.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { QBusinessClient, DeleteAttachmentCommand } from "@aws-sdk/client-qbusiness"; // ES Modules import
|
|
35
|
+
* // const { QBusinessClient, DeleteAttachmentCommand } = require("@aws-sdk/client-qbusiness"); // CommonJS import
|
|
36
|
+
* const client = new QBusinessClient(config);
|
|
37
|
+
* const input = { // DeleteAttachmentRequest
|
|
38
|
+
* applicationId: "STRING_VALUE", // required
|
|
39
|
+
* conversationId: "STRING_VALUE", // required
|
|
40
|
+
* attachmentId: "STRING_VALUE", // required
|
|
41
|
+
* userId: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new DeleteAttachmentCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param DeleteAttachmentCommandInput - {@link DeleteAttachmentCommandInput}
|
|
50
|
+
* @returns {@link DeleteAttachmentCommandOutput}
|
|
51
|
+
* @see {@link DeleteAttachmentCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link DeleteAttachmentCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p> You don't have access to perform this action. Make sure you have the required
|
|
57
|
+
* permission policies and user accounts and try again.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerException} (server fault)
|
|
60
|
+
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
61
|
+
* some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link LicenseNotFoundException} (client fault)
|
|
64
|
+
* <p>You don't have permissions to perform the action because your license is inactive. Ask
|
|
65
|
+
* your admin to activate your license and try again after your licence is active.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The application or plugin resource you want to use doesn’t exist. Make sure you have
|
|
69
|
+
* provided the correct resource and try again.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
72
|
+
* <p>The request was denied due to throttling. Reduce the number of requests and try
|
|
73
|
+
* again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
|
|
77
|
+
* correct input and try again.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link QBusinessServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from QBusiness service.</p>
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class DeleteAttachmentCommand extends DeleteAttachmentCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: DeleteAttachmentRequest;
|
|
89
|
+
output: {};
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: DeleteAttachmentCommandInput;
|
|
93
|
+
output: DeleteAttachmentCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from "./CreateSubscriptionCommand";
|
|
|
14
14
|
export * from "./CreateUserCommand";
|
|
15
15
|
export * from "./CreateWebExperienceCommand";
|
|
16
16
|
export * from "./DeleteApplicationCommand";
|
|
17
|
+
export * from "./DeleteAttachmentCommand";
|
|
17
18
|
export * from "./DeleteChatControlsConfigurationCommand";
|
|
18
19
|
export * from "./DeleteConversationCommand";
|
|
19
20
|
export * from "./DeleteDataAccessorCommand";
|
|
@@ -5870,6 +5870,36 @@ export interface DataSourceSyncJob {
|
|
|
5870
5870
|
*/
|
|
5871
5871
|
metrics?: DataSourceSyncJobMetrics | undefined;
|
|
5872
5872
|
}
|
|
5873
|
+
/**
|
|
5874
|
+
* @public
|
|
5875
|
+
*/
|
|
5876
|
+
export interface DeleteAttachmentRequest {
|
|
5877
|
+
/**
|
|
5878
|
+
* <p>The unique identifier for the Amazon Q Business application environment.</p>
|
|
5879
|
+
* @public
|
|
5880
|
+
*/
|
|
5881
|
+
applicationId: string | undefined;
|
|
5882
|
+
/**
|
|
5883
|
+
* <p>The unique identifier of the conversation.</p>
|
|
5884
|
+
* @public
|
|
5885
|
+
*/
|
|
5886
|
+
conversationId: string | undefined;
|
|
5887
|
+
/**
|
|
5888
|
+
* <p>The unique identifier for the attachment.</p>
|
|
5889
|
+
* @public
|
|
5890
|
+
*/
|
|
5891
|
+
attachmentId: string | undefined;
|
|
5892
|
+
/**
|
|
5893
|
+
* <p>The unique identifier of the user involved in the conversation.</p>
|
|
5894
|
+
* @public
|
|
5895
|
+
*/
|
|
5896
|
+
userId?: string | undefined;
|
|
5897
|
+
}
|
|
5898
|
+
/**
|
|
5899
|
+
* @public
|
|
5900
|
+
*/
|
|
5901
|
+
export interface DeleteAttachmentResponse {
|
|
5902
|
+
}
|
|
5873
5903
|
/**
|
|
5874
5904
|
* @public
|
|
5875
5905
|
*/
|
|
@@ -7069,45 +7099,6 @@ export declare const MessageUsefulnessReason: {
|
|
|
7069
7099
|
* @public
|
|
7070
7100
|
*/
|
|
7071
7101
|
export type MessageUsefulnessReason = (typeof MessageUsefulnessReason)[keyof typeof MessageUsefulnessReason];
|
|
7072
|
-
/**
|
|
7073
|
-
* @public
|
|
7074
|
-
* @enum
|
|
7075
|
-
*/
|
|
7076
|
-
export declare const MessageUsefulness: {
|
|
7077
|
-
readonly NOT_USEFUL: "NOT_USEFUL";
|
|
7078
|
-
readonly USEFUL: "USEFUL";
|
|
7079
|
-
};
|
|
7080
|
-
/**
|
|
7081
|
-
* @public
|
|
7082
|
-
*/
|
|
7083
|
-
export type MessageUsefulness = (typeof MessageUsefulness)[keyof typeof MessageUsefulness];
|
|
7084
|
-
/**
|
|
7085
|
-
* <p>End user feedback on an AI-generated web experience chat message usefulness.</p>
|
|
7086
|
-
* @public
|
|
7087
|
-
*/
|
|
7088
|
-
export interface MessageUsefulnessFeedback {
|
|
7089
|
-
/**
|
|
7090
|
-
* <p>The usefulness value assigned by an end user to a message.</p>
|
|
7091
|
-
* @public
|
|
7092
|
-
*/
|
|
7093
|
-
usefulness: MessageUsefulness | undefined;
|
|
7094
|
-
/**
|
|
7095
|
-
* <p>The reason for a usefulness rating.</p>
|
|
7096
|
-
* @public
|
|
7097
|
-
*/
|
|
7098
|
-
reason?: MessageUsefulnessReason | undefined;
|
|
7099
|
-
/**
|
|
7100
|
-
* <p>A comment given by an end user on the usefulness of an AI-generated chat
|
|
7101
|
-
* message.</p>
|
|
7102
|
-
* @public
|
|
7103
|
-
*/
|
|
7104
|
-
comment?: string | undefined;
|
|
7105
|
-
/**
|
|
7106
|
-
* <p>The timestamp for when the feedback was submitted.</p>
|
|
7107
|
-
* @public
|
|
7108
|
-
*/
|
|
7109
|
-
submittedAt: Date | undefined;
|
|
7110
|
-
}
|
|
7111
7102
|
/**
|
|
7112
7103
|
* @internal
|
|
7113
7104
|
*/
|
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
import { ActionExecution, ActionExecutionEvent, AttachmentInput, AttachmentInputEvent, AuthChallengeResponse, AuthChallengeResponseEvent, BlockedPhrasesConfigurationUpdate, ChatMode, ChatModeConfiguration, ContentSource, CreatorModeConfiguration, DocumentAttribute, EndOfInputEvent, MembershipType,
|
|
1
|
+
import { ActionExecution, ActionExecutionEvent, AttachmentInput, AttachmentInputEvent, AuthChallengeResponse, AuthChallengeResponseEvent, BlockedPhrasesConfigurationUpdate, ChatMode, ChatModeConfiguration, ContentSource, CreatorModeConfiguration, DocumentAttribute, EndOfInputEvent, MembershipType, MessageUsefulnessReason, OrchestrationControl, ResponseScope, S3, SubscriptionDetails, SubscriptionType, Tag, TextInputEvent, TopicConfiguration, UserAlias } from "./models_0";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
* @enum
|
|
5
|
+
*/
|
|
6
|
+
export declare const MessageUsefulness: {
|
|
7
|
+
readonly NOT_USEFUL: "NOT_USEFUL";
|
|
8
|
+
readonly USEFUL: "USEFUL";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type MessageUsefulness = (typeof MessageUsefulness)[keyof typeof MessageUsefulness];
|
|
14
|
+
/**
|
|
15
|
+
* <p>End user feedback on an AI-generated web experience chat message usefulness.</p>
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export interface MessageUsefulnessFeedback {
|
|
19
|
+
/**
|
|
20
|
+
* <p>The usefulness value assigned by an end user to a message.</p>
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
usefulness: MessageUsefulness | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* <p>The reason for a usefulness rating.</p>
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
reason?: MessageUsefulnessReason | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* <p>A comment given by an end user on the usefulness of an AI-generated chat
|
|
31
|
+
* message.</p>
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
comment?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* <p>The timestamp for when the feedback was submitted.</p>
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
submittedAt: Date | undefined;
|
|
40
|
+
}
|
|
2
41
|
/**
|
|
3
42
|
* @public
|
|
4
43
|
*/
|
|
@@ -16,6 +16,7 @@ import { CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput } from
|
|
|
16
16
|
import { CreateUserCommandInput, CreateUserCommandOutput } from "../commands/CreateUserCommand";
|
|
17
17
|
import { CreateWebExperienceCommandInput, CreateWebExperienceCommandOutput } from "../commands/CreateWebExperienceCommand";
|
|
18
18
|
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "../commands/DeleteApplicationCommand";
|
|
19
|
+
import { DeleteAttachmentCommandInput, DeleteAttachmentCommandOutput } from "../commands/DeleteAttachmentCommand";
|
|
19
20
|
import { DeleteChatControlsConfigurationCommandInput, DeleteChatControlsConfigurationCommandOutput } from "../commands/DeleteChatControlsConfigurationCommand";
|
|
20
21
|
import { DeleteConversationCommandInput, DeleteConversationCommandOutput } from "../commands/DeleteConversationCommand";
|
|
21
22
|
import { DeleteDataAccessorCommandInput, DeleteDataAccessorCommandOutput } from "../commands/DeleteDataAccessorCommand";
|
|
@@ -138,6 +139,10 @@ export declare const se_CreateWebExperienceCommand: (input: CreateWebExperienceC
|
|
|
138
139
|
* serializeAws_restJson1DeleteApplicationCommand
|
|
139
140
|
*/
|
|
140
141
|
export declare const se_DeleteApplicationCommand: (input: DeleteApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
142
|
+
/**
|
|
143
|
+
* serializeAws_restJson1DeleteAttachmentCommand
|
|
144
|
+
*/
|
|
145
|
+
export declare const se_DeleteAttachmentCommand: (input: DeleteAttachmentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
141
146
|
/**
|
|
142
147
|
* serializeAws_restJson1DeleteChatControlsConfigurationCommand
|
|
143
148
|
*/
|
|
@@ -434,6 +439,10 @@ export declare const de_CreateWebExperienceCommand: (output: __HttpResponse, con
|
|
|
434
439
|
* deserializeAws_restJson1DeleteApplicationCommand
|
|
435
440
|
*/
|
|
436
441
|
export declare const de_DeleteApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteApplicationCommandOutput>;
|
|
442
|
+
/**
|
|
443
|
+
* deserializeAws_restJson1DeleteAttachmentCommand
|
|
444
|
+
*/
|
|
445
|
+
export declare const de_DeleteAttachmentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteAttachmentCommandOutput>;
|
|
437
446
|
/**
|
|
438
447
|
* deserializeAws_restJson1DeleteChatControlsConfigurationCommand
|
|
439
448
|
*/
|
|
@@ -60,6 +60,10 @@ import {
|
|
|
60
60
|
DeleteApplicationCommandInput,
|
|
61
61
|
DeleteApplicationCommandOutput,
|
|
62
62
|
} from "./commands/DeleteApplicationCommand";
|
|
63
|
+
import {
|
|
64
|
+
DeleteAttachmentCommandInput,
|
|
65
|
+
DeleteAttachmentCommandOutput,
|
|
66
|
+
} from "./commands/DeleteAttachmentCommand";
|
|
63
67
|
import {
|
|
64
68
|
DeleteChatControlsConfigurationCommandInput,
|
|
65
69
|
DeleteChatControlsConfigurationCommandOutput,
|
|
@@ -502,6 +506,19 @@ export interface QBusiness {
|
|
|
502
506
|
options: __HttpHandlerOptions,
|
|
503
507
|
cb: (err: any, data?: DeleteApplicationCommandOutput) => void
|
|
504
508
|
): void;
|
|
509
|
+
deleteAttachment(
|
|
510
|
+
args: DeleteAttachmentCommandInput,
|
|
511
|
+
options?: __HttpHandlerOptions
|
|
512
|
+
): Promise<DeleteAttachmentCommandOutput>;
|
|
513
|
+
deleteAttachment(
|
|
514
|
+
args: DeleteAttachmentCommandInput,
|
|
515
|
+
cb: (err: any, data?: DeleteAttachmentCommandOutput) => void
|
|
516
|
+
): void;
|
|
517
|
+
deleteAttachment(
|
|
518
|
+
args: DeleteAttachmentCommandInput,
|
|
519
|
+
options: __HttpHandlerOptions,
|
|
520
|
+
cb: (err: any, data?: DeleteAttachmentCommandOutput) => void
|
|
521
|
+
): void;
|
|
505
522
|
deleteChatControlsConfiguration(
|
|
506
523
|
args: DeleteChatControlsConfigurationCommandInput,
|
|
507
524
|
options?: __HttpHandlerOptions
|
|
@@ -116,6 +116,10 @@ import {
|
|
|
116
116
|
DeleteApplicationCommandInput,
|
|
117
117
|
DeleteApplicationCommandOutput,
|
|
118
118
|
} from "./commands/DeleteApplicationCommand";
|
|
119
|
+
import {
|
|
120
|
+
DeleteAttachmentCommandInput,
|
|
121
|
+
DeleteAttachmentCommandOutput,
|
|
122
|
+
} from "./commands/DeleteAttachmentCommand";
|
|
119
123
|
import {
|
|
120
124
|
DeleteChatControlsConfigurationCommandInput,
|
|
121
125
|
DeleteChatControlsConfigurationCommandOutput,
|
|
@@ -372,6 +376,7 @@ export type ServiceInputTypes =
|
|
|
372
376
|
| CreateUserCommandInput
|
|
373
377
|
| CreateWebExperienceCommandInput
|
|
374
378
|
| DeleteApplicationCommandInput
|
|
379
|
+
| DeleteAttachmentCommandInput
|
|
375
380
|
| DeleteChatControlsConfigurationCommandInput
|
|
376
381
|
| DeleteConversationCommandInput
|
|
377
382
|
| DeleteDataAccessorCommandInput
|
|
@@ -447,6 +452,7 @@ export type ServiceOutputTypes =
|
|
|
447
452
|
| CreateUserCommandOutput
|
|
448
453
|
| CreateWebExperienceCommandOutput
|
|
449
454
|
| DeleteApplicationCommandOutput
|
|
455
|
+
| DeleteAttachmentCommandOutput
|
|
450
456
|
| DeleteChatControlsConfigurationCommandOutput
|
|
451
457
|
| DeleteConversationCommandOutput
|
|
452
458
|
| DeleteDataAccessorCommandOutput
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
DeleteAttachmentRequest,
|
|
5
|
+
DeleteAttachmentResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
QBusinessClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../QBusinessClient";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface DeleteAttachmentCommandInput extends DeleteAttachmentRequest {}
|
|
15
|
+
export interface DeleteAttachmentCommandOutput
|
|
16
|
+
extends DeleteAttachmentResponse,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const DeleteAttachmentCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: DeleteAttachmentCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
DeleteAttachmentCommandInput,
|
|
23
|
+
DeleteAttachmentCommandOutput,
|
|
24
|
+
QBusinessClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: DeleteAttachmentCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
DeleteAttachmentCommandInput,
|
|
32
|
+
DeleteAttachmentCommandOutput,
|
|
33
|
+
QBusinessClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class DeleteAttachmentCommand extends DeleteAttachmentCommand_base {
|
|
40
|
+
protected static __types: {
|
|
41
|
+
api: {
|
|
42
|
+
input: DeleteAttachmentRequest;
|
|
43
|
+
output: {};
|
|
44
|
+
};
|
|
45
|
+
sdk: {
|
|
46
|
+
input: DeleteAttachmentCommandInput;
|
|
47
|
+
output: DeleteAttachmentCommandOutput;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from "./CreateSubscriptionCommand";
|
|
|
14
14
|
export * from "./CreateUserCommand";
|
|
15
15
|
export * from "./CreateWebExperienceCommand";
|
|
16
16
|
export * from "./DeleteApplicationCommand";
|
|
17
|
+
export * from "./DeleteAttachmentCommand";
|
|
17
18
|
export * from "./DeleteChatControlsConfigurationCommand";
|
|
18
19
|
export * from "./DeleteConversationCommand";
|
|
19
20
|
export * from "./DeleteDataAccessorCommand";
|
|
@@ -1757,6 +1757,13 @@ export interface DataSourceSyncJob {
|
|
|
1757
1757
|
dataSourceErrorCode?: string | undefined;
|
|
1758
1758
|
metrics?: DataSourceSyncJobMetrics | undefined;
|
|
1759
1759
|
}
|
|
1760
|
+
export interface DeleteAttachmentRequest {
|
|
1761
|
+
applicationId: string | undefined;
|
|
1762
|
+
conversationId: string | undefined;
|
|
1763
|
+
attachmentId: string | undefined;
|
|
1764
|
+
userId?: string | undefined;
|
|
1765
|
+
}
|
|
1766
|
+
export interface DeleteAttachmentResponse {}
|
|
1760
1767
|
export interface DeleteChatControlsConfigurationRequest {
|
|
1761
1768
|
applicationId: string | undefined;
|
|
1762
1769
|
}
|
|
@@ -2088,18 +2095,6 @@ export declare const MessageUsefulnessReason: {
|
|
|
2088
2095
|
};
|
|
2089
2096
|
export type MessageUsefulnessReason =
|
|
2090
2097
|
(typeof MessageUsefulnessReason)[keyof typeof MessageUsefulnessReason];
|
|
2091
|
-
export declare const MessageUsefulness: {
|
|
2092
|
-
readonly NOT_USEFUL: "NOT_USEFUL";
|
|
2093
|
-
readonly USEFUL: "USEFUL";
|
|
2094
|
-
};
|
|
2095
|
-
export type MessageUsefulness =
|
|
2096
|
-
(typeof MessageUsefulness)[keyof typeof MessageUsefulness];
|
|
2097
|
-
export interface MessageUsefulnessFeedback {
|
|
2098
|
-
usefulness: MessageUsefulness | undefined;
|
|
2099
|
-
reason?: MessageUsefulnessReason | undefined;
|
|
2100
|
-
comment?: string | undefined;
|
|
2101
|
-
submittedAt: Date | undefined;
|
|
2102
|
-
}
|
|
2103
2098
|
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
2104
2099
|
export declare const EncryptionConfigurationFilterSensitiveLog: (
|
|
2105
2100
|
obj: EncryptionConfiguration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
DocumentAttribute,
|
|
14
14
|
EndOfInputEvent,
|
|
15
15
|
MembershipType,
|
|
16
|
-
|
|
16
|
+
MessageUsefulnessReason,
|
|
17
17
|
OrchestrationControl,
|
|
18
18
|
ResponseScope,
|
|
19
19
|
S3,
|
|
@@ -24,6 +24,18 @@ import {
|
|
|
24
24
|
TopicConfiguration,
|
|
25
25
|
UserAlias,
|
|
26
26
|
} from "./models_0";
|
|
27
|
+
export declare const MessageUsefulness: {
|
|
28
|
+
readonly NOT_USEFUL: "NOT_USEFUL";
|
|
29
|
+
readonly USEFUL: "USEFUL";
|
|
30
|
+
};
|
|
31
|
+
export type MessageUsefulness =
|
|
32
|
+
(typeof MessageUsefulness)[keyof typeof MessageUsefulness];
|
|
33
|
+
export interface MessageUsefulnessFeedback {
|
|
34
|
+
usefulness: MessageUsefulness | undefined;
|
|
35
|
+
reason?: MessageUsefulnessReason | undefined;
|
|
36
|
+
comment?: string | undefined;
|
|
37
|
+
submittedAt: Date | undefined;
|
|
38
|
+
}
|
|
27
39
|
export interface PutFeedbackRequest {
|
|
28
40
|
applicationId: string | undefined;
|
|
29
41
|
userId?: string | undefined;
|
|
@@ -67,6 +67,10 @@ import {
|
|
|
67
67
|
DeleteApplicationCommandInput,
|
|
68
68
|
DeleteApplicationCommandOutput,
|
|
69
69
|
} from "../commands/DeleteApplicationCommand";
|
|
70
|
+
import {
|
|
71
|
+
DeleteAttachmentCommandInput,
|
|
72
|
+
DeleteAttachmentCommandOutput,
|
|
73
|
+
} from "../commands/DeleteAttachmentCommand";
|
|
70
74
|
import {
|
|
71
75
|
DeleteChatControlsConfigurationCommandInput,
|
|
72
76
|
DeleteChatControlsConfigurationCommandOutput,
|
|
@@ -363,6 +367,10 @@ export declare const se_DeleteApplicationCommand: (
|
|
|
363
367
|
input: DeleteApplicationCommandInput,
|
|
364
368
|
context: __SerdeContext
|
|
365
369
|
) => Promise<__HttpRequest>;
|
|
370
|
+
export declare const se_DeleteAttachmentCommand: (
|
|
371
|
+
input: DeleteAttachmentCommandInput,
|
|
372
|
+
context: __SerdeContext
|
|
373
|
+
) => Promise<__HttpRequest>;
|
|
366
374
|
export declare const se_DeleteChatControlsConfigurationCommand: (
|
|
367
375
|
input: DeleteChatControlsConfigurationCommandInput,
|
|
368
376
|
context: __SerdeContext
|
|
@@ -659,6 +667,10 @@ export declare const de_DeleteApplicationCommand: (
|
|
|
659
667
|
output: __HttpResponse,
|
|
660
668
|
context: __SerdeContext
|
|
661
669
|
) => Promise<DeleteApplicationCommandOutput>;
|
|
670
|
+
export declare const de_DeleteAttachmentCommand: (
|
|
671
|
+
output: __HttpResponse,
|
|
672
|
+
context: __SerdeContext
|
|
673
|
+
) => Promise<DeleteAttachmentCommandOutput>;
|
|
662
674
|
export declare const de_DeleteChatControlsConfigurationCommand: (
|
|
663
675
|
output: __HttpResponse,
|
|
664
676
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-qbusiness",
|
|
3
3
|
"description": "AWS SDK for JavaScript Qbusiness Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.758.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-qbusiness",
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.758.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.758.0",
|
|
25
25
|
"@aws-sdk/eventstream-handler-node": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-eventstream": "3.734.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.734.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.758.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
32
32
|
"@aws-sdk/types": "3.734.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.743.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.758.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.0.1",
|
|
37
|
-
"@smithy/core": "^3.1.
|
|
37
|
+
"@smithy/core": "^3.1.5",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^4.0.1",
|
|
39
39
|
"@smithy/eventstream-serde-config-resolver": "^4.0.1",
|
|
40
40
|
"@smithy/eventstream-serde-node": "^4.0.1",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"@smithy/hash-node": "^4.0.1",
|
|
43
43
|
"@smithy/invalid-dependency": "^4.0.1",
|
|
44
44
|
"@smithy/middleware-content-length": "^4.0.1",
|
|
45
|
-
"@smithy/middleware-endpoint": "^4.0.
|
|
46
|
-
"@smithy/middleware-retry": "^4.0.
|
|
45
|
+
"@smithy/middleware-endpoint": "^4.0.6",
|
|
46
|
+
"@smithy/middleware-retry": "^4.0.7",
|
|
47
47
|
"@smithy/middleware-serde": "^4.0.2",
|
|
48
48
|
"@smithy/middleware-stack": "^4.0.1",
|
|
49
49
|
"@smithy/node-config-provider": "^4.0.1",
|
|
50
|
-
"@smithy/node-http-handler": "^4.0.
|
|
50
|
+
"@smithy/node-http-handler": "^4.0.3",
|
|
51
51
|
"@smithy/protocol-http": "^5.0.1",
|
|
52
|
-
"@smithy/smithy-client": "^4.1.
|
|
52
|
+
"@smithy/smithy-client": "^4.1.6",
|
|
53
53
|
"@smithy/types": "^4.1.0",
|
|
54
54
|
"@smithy/url-parser": "^4.0.1",
|
|
55
55
|
"@smithy/util-base64": "^4.0.0",
|
|
56
56
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
57
57
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^4.0.7",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^4.0.7",
|
|
60
60
|
"@smithy/util-endpoints": "^3.0.1",
|
|
61
61
|
"@smithy/util-middleware": "^4.0.1",
|
|
62
62
|
"@smithy/util-retry": "^4.0.1",
|