@aws-sdk/client-qbusiness 3.699.0 → 3.703.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 +16 -0
- package/dist-cjs/index.js +218 -1
- package/dist-es/QBusiness.js +4 -0
- package/dist-es/commands/GetMediaCommand.js +22 -0
- package/dist-es/commands/ListAttachmentsCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +41 -1
- package/dist-es/pagination/ListAttachmentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +120 -1
- package/dist-types/QBusiness.d.ts +14 -0
- package/dist-types/QBusinessClient.d.ts +4 -2
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +1 -1
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +6 -1
- package/dist-types/commands/ChatCommand.d.ts +19 -4
- package/dist-types/commands/ChatSyncCommand.d.ts +19 -4
- package/dist-types/commands/CreateApplicationCommand.d.ts +10 -11
- package/dist-types/commands/CreateDataSourceCommand.d.ts +6 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +2 -2
- package/dist-types/commands/CreatePluginCommand.d.ts +1 -1
- package/dist-types/commands/CreateRetrieverCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserCommand.d.ts +1 -1
- package/dist-types/commands/CreateWebExperienceCommand.d.ts +6 -1
- package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIndexCommand.d.ts +1 -1
- package/dist-types/commands/DeletePluginCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRetrieverCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWebExperienceCommand.d.ts +1 -1
- package/dist-types/commands/GetDataSourceCommand.d.ts +5 -0
- package/dist-types/commands/GetGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetIndexCommand.d.ts +1 -1
- package/dist-types/commands/GetMediaCommand.d.ts +105 -0
- package/dist-types/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/commands/GetWebExperienceCommand.d.ts +5 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +6 -0
- package/dist-types/commands/ListAttachmentsCommand.d.ts +121 -0
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +4 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListMessagesCommand.d.ts +5 -1
- package/dist-types/commands/PutGroupCommand.d.ts +1 -1
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +4 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateApplicationCommand.d.ts +11 -8
- package/dist-types/commands/UpdateChatControlsConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +6 -1
- package/dist-types/commands/UpdateIndexCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePluginCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRetrieverCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWebExperienceCommand.d.ts +6 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +410 -37
- package/dist-types/pagination/ListAttachmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/QBusiness.d.ts +34 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetMediaCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListAttachmentsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +111 -9
- package/dist-types/ts3.4/pagination/ListAttachmentsPaginator.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 +24 -0
- package/package.json +1 -1
|
@@ -220,6 +220,10 @@ export const DocumentContentOperator = {
|
|
|
220
220
|
export const AttributeValueOperator = {
|
|
221
221
|
DELETE: "DELETE",
|
|
222
222
|
};
|
|
223
|
+
export const ImageExtractionStatus = {
|
|
224
|
+
DISABLED: "DISABLED",
|
|
225
|
+
ENABLED: "ENABLED",
|
|
226
|
+
};
|
|
223
227
|
export const DataSourceStatus = {
|
|
224
228
|
ACTIVE: "ACTIVE",
|
|
225
229
|
CREATING: "CREATING",
|
|
@@ -320,6 +324,10 @@ export const RetrieverStatus = {
|
|
|
320
324
|
CREATING: "CREATING",
|
|
321
325
|
FAILED: "FAILED",
|
|
322
326
|
};
|
|
327
|
+
export const BrowserExtension = {
|
|
328
|
+
CHROME: "CHROME",
|
|
329
|
+
FIREFOX: "FIREFOX",
|
|
330
|
+
};
|
|
323
331
|
export var IdentityProviderConfiguration;
|
|
324
332
|
(function (IdentityProviderConfiguration) {
|
|
325
333
|
IdentityProviderConfiguration.visit = (value, visitor) => {
|
|
@@ -353,9 +361,17 @@ export const CreatorModeControl = {
|
|
|
353
361
|
DISABLED: "DISABLED",
|
|
354
362
|
ENABLED: "ENABLED",
|
|
355
363
|
};
|
|
364
|
+
export var CopyFromSource;
|
|
365
|
+
(function (CopyFromSource) {
|
|
366
|
+
CopyFromSource.visit = (value, visitor) => {
|
|
367
|
+
if (value.conversation !== undefined)
|
|
368
|
+
return visitor.conversation(value.conversation);
|
|
369
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
370
|
+
};
|
|
371
|
+
})(CopyFromSource || (CopyFromSource = {}));
|
|
356
372
|
export const AttachmentStatus = {
|
|
357
373
|
FAILED: "FAILED",
|
|
358
|
-
|
|
374
|
+
SUCCESS: "SUCCESS",
|
|
359
375
|
};
|
|
360
376
|
export var DocumentContent;
|
|
361
377
|
(function (DocumentContent) {
|
|
@@ -410,6 +426,18 @@ export var ChatOutputStream;
|
|
|
410
426
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
411
427
|
};
|
|
412
428
|
})(ChatOutputStream || (ChatOutputStream = {}));
|
|
429
|
+
export class ExternalResourceException extends __BaseException {
|
|
430
|
+
constructor(opts) {
|
|
431
|
+
super({
|
|
432
|
+
name: "ExternalResourceException",
|
|
433
|
+
$fault: "client",
|
|
434
|
+
...opts,
|
|
435
|
+
});
|
|
436
|
+
this.name = "ExternalResourceException";
|
|
437
|
+
this.$fault = "client";
|
|
438
|
+
Object.setPrototypeOf(this, ExternalResourceException.prototype);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
413
441
|
export class LicenseNotFoundException extends __BaseException {
|
|
414
442
|
constructor(opts) {
|
|
415
443
|
super({
|
|
@@ -466,6 +494,18 @@ export const GroupStatus = {
|
|
|
466
494
|
PROCESSING: "PROCESSING",
|
|
467
495
|
SUCCEEDED: "SUCCEEDED",
|
|
468
496
|
};
|
|
497
|
+
export class MediaTooLargeException extends __BaseException {
|
|
498
|
+
constructor(opts) {
|
|
499
|
+
super({
|
|
500
|
+
name: "MediaTooLargeException",
|
|
501
|
+
$fault: "client",
|
|
502
|
+
...opts,
|
|
503
|
+
});
|
|
504
|
+
this.name = "MediaTooLargeException";
|
|
505
|
+
this.$fault = "client";
|
|
506
|
+
Object.setPrototypeOf(this, MediaTooLargeException.prototype);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
469
509
|
export const MessageType = {
|
|
470
510
|
SYSTEM: "SYSTEM",
|
|
471
511
|
USER: "USER",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAttachmentsCommand, } from "../commands/ListAttachmentsCommand";
|
|
3
|
+
import { QBusinessClient } from "../QBusinessClient";
|
|
4
|
+
export const paginateListAttachments = createPaginator(QBusinessClient, ListAttachmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./GetChatControlsConfigurationPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
3
|
export * from "./ListApplicationsPaginator";
|
|
4
|
+
export * from "./ListAttachmentsPaginator";
|
|
4
5
|
export * from "./ListConversationsPaginator";
|
|
5
6
|
export * from "./ListDataSourceSyncJobsPaginator";
|
|
6
7
|
export * from "./ListDataSourcesPaginator";
|
|
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
|
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
-
import { AccessDeniedException, ChatInputStream, ConflictException, DocumentAttributeValue, DocumentContent, InternalServerException, LicenseNotFoundException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, ChatInputStream, ConflictException, DocumentAttributeValue, DocumentContent, ExternalResourceException, InternalServerException, LicenseNotFoundException, MediaTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { QBusinessServiceException as __BaseException } from "../models/QBusinessServiceException";
|
|
7
7
|
export const se_BatchDeleteDocumentCommand = async (input, context) => {
|
|
8
8
|
const b = rb(input, context);
|
|
@@ -126,6 +126,7 @@ export const se_CreateDataSourceCommand = async (input, context) => {
|
|
|
126
126
|
description: [],
|
|
127
127
|
displayName: [],
|
|
128
128
|
documentEnrichmentConfiguration: (_) => se_DocumentEnrichmentConfiguration(_, context),
|
|
129
|
+
mediaExtractionConfiguration: (_) => _json(_),
|
|
129
130
|
roleArn: [],
|
|
130
131
|
syncSchedule: [],
|
|
131
132
|
tags: (_) => _json(_),
|
|
@@ -217,6 +218,7 @@ export const se_CreateWebExperienceCommand = async (input, context) => {
|
|
|
217
218
|
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
218
219
|
let body;
|
|
219
220
|
body = JSON.stringify(take(input, {
|
|
221
|
+
browserExtensionConfiguration: (_) => _json(_),
|
|
220
222
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
221
223
|
identityProviderConfiguration: (_) => _json(_),
|
|
222
224
|
origins: (_) => _json(_),
|
|
@@ -393,6 +395,18 @@ export const se_GetIndexCommand = async (input, context) => {
|
|
|
393
395
|
b.m("GET").h(headers).b(body);
|
|
394
396
|
return b.build();
|
|
395
397
|
};
|
|
398
|
+
export const se_GetMediaCommand = async (input, context) => {
|
|
399
|
+
const b = rb(input, context);
|
|
400
|
+
const headers = {};
|
|
401
|
+
b.bp("/applications/{applicationId}/conversations/{conversationId}/messages/{messageId}/media/{mediaId}");
|
|
402
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
403
|
+
b.p("conversationId", () => input.conversationId, "{conversationId}", false);
|
|
404
|
+
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
405
|
+
b.p("mediaId", () => input.mediaId, "{mediaId}", false);
|
|
406
|
+
let body;
|
|
407
|
+
b.m("GET").h(headers).b(body);
|
|
408
|
+
return b.build();
|
|
409
|
+
};
|
|
396
410
|
export const se_GetPluginCommand = async (input, context) => {
|
|
397
411
|
const b = rb(input, context);
|
|
398
412
|
const headers = {};
|
|
@@ -445,6 +459,21 @@ export const se_ListApplicationsCommand = async (input, context) => {
|
|
|
445
459
|
b.m("GET").h(headers).q(query).b(body);
|
|
446
460
|
return b.build();
|
|
447
461
|
};
|
|
462
|
+
export const se_ListAttachmentsCommand = async (input, context) => {
|
|
463
|
+
const b = rb(input, context);
|
|
464
|
+
const headers = {};
|
|
465
|
+
b.bp("/applications/{applicationId}/attachments");
|
|
466
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
467
|
+
const query = map({
|
|
468
|
+
[_cI]: [, input[_cI]],
|
|
469
|
+
[_uI]: [, input[_uI]],
|
|
470
|
+
[_nT]: [, input[_nT]],
|
|
471
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
472
|
+
});
|
|
473
|
+
let body;
|
|
474
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
475
|
+
return b.build();
|
|
476
|
+
};
|
|
448
477
|
export const se_ListConversationsCommand = async (input, context) => {
|
|
449
478
|
const b = rb(input, context);
|
|
450
479
|
const headers = {};
|
|
@@ -743,6 +772,7 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
|
743
772
|
description: [],
|
|
744
773
|
displayName: [],
|
|
745
774
|
documentEnrichmentConfiguration: (_) => se_DocumentEnrichmentConfiguration(_, context),
|
|
775
|
+
mediaExtractionConfiguration: (_) => _json(_),
|
|
746
776
|
roleArn: [],
|
|
747
777
|
syncSchedule: [],
|
|
748
778
|
vpcConfiguration: (_) => _json(_),
|
|
@@ -831,6 +861,7 @@ export const se_UpdateWebExperienceCommand = async (input, context) => {
|
|
|
831
861
|
let body;
|
|
832
862
|
body = JSON.stringify(take(input, {
|
|
833
863
|
authenticationConfiguration: (_) => _json(_),
|
|
864
|
+
browserExtensionConfiguration: (_) => _json(_),
|
|
834
865
|
identityProviderConfiguration: (_) => _json(_),
|
|
835
866
|
origins: (_) => _json(_),
|
|
836
867
|
roleArn: [],
|
|
@@ -1171,6 +1202,7 @@ export const de_GetDataSourceCommand = async (output, context) => {
|
|
|
1171
1202
|
documentEnrichmentConfiguration: (_) => de_DocumentEnrichmentConfiguration(_, context),
|
|
1172
1203
|
error: _json,
|
|
1173
1204
|
indexId: __expectString,
|
|
1205
|
+
mediaExtractionConfiguration: _json,
|
|
1174
1206
|
roleArn: __expectString,
|
|
1175
1207
|
status: __expectString,
|
|
1176
1208
|
syncSchedule: __expectString,
|
|
@@ -1222,6 +1254,21 @@ export const de_GetIndexCommand = async (output, context) => {
|
|
|
1222
1254
|
Object.assign(contents, doc);
|
|
1223
1255
|
return contents;
|
|
1224
1256
|
};
|
|
1257
|
+
export const de_GetMediaCommand = async (output, context) => {
|
|
1258
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
+
return de_CommandError(output, context);
|
|
1260
|
+
}
|
|
1261
|
+
const contents = map({
|
|
1262
|
+
$metadata: deserializeMetadata(output),
|
|
1263
|
+
});
|
|
1264
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1265
|
+
const doc = take(data, {
|
|
1266
|
+
mediaBytes: context.base64Decoder,
|
|
1267
|
+
mediaMimeType: __expectString,
|
|
1268
|
+
});
|
|
1269
|
+
Object.assign(contents, doc);
|
|
1270
|
+
return contents;
|
|
1271
|
+
};
|
|
1225
1272
|
export const de_GetPluginCommand = async (output, context) => {
|
|
1226
1273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1227
1274
|
return de_CommandError(output, context);
|
|
@@ -1295,6 +1342,7 @@ export const de_GetWebExperienceCommand = async (output, context) => {
|
|
|
1295
1342
|
const doc = take(data, {
|
|
1296
1343
|
applicationId: __expectString,
|
|
1297
1344
|
authenticationConfiguration: (_) => _json(__expectUnion(_)),
|
|
1345
|
+
browserExtensionConfiguration: _json,
|
|
1298
1346
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1299
1347
|
defaultEndpoint: __expectString,
|
|
1300
1348
|
error: _json,
|
|
@@ -1328,6 +1376,21 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
1328
1376
|
Object.assign(contents, doc);
|
|
1329
1377
|
return contents;
|
|
1330
1378
|
};
|
|
1379
|
+
export const de_ListAttachmentsCommand = async (output, context) => {
|
|
1380
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1381
|
+
return de_CommandError(output, context);
|
|
1382
|
+
}
|
|
1383
|
+
const contents = map({
|
|
1384
|
+
$metadata: deserializeMetadata(output),
|
|
1385
|
+
});
|
|
1386
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1387
|
+
const doc = take(data, {
|
|
1388
|
+
attachments: (_) => de_AttachmentList(_, context),
|
|
1389
|
+
nextToken: __expectString,
|
|
1390
|
+
});
|
|
1391
|
+
Object.assign(contents, doc);
|
|
1392
|
+
return contents;
|
|
1393
|
+
};
|
|
1331
1394
|
export const de_ListConversationsCommand = async (output, context) => {
|
|
1332
1395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1333
1396
|
return de_CommandError(output, context);
|
|
@@ -1670,9 +1733,15 @@ const de_CommandError = async (output, context) => {
|
|
|
1670
1733
|
case "ServiceQuotaExceededException":
|
|
1671
1734
|
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1672
1735
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1736
|
+
case "ExternalResourceException":
|
|
1737
|
+
case "com.amazonaws.qbusiness#ExternalResourceException":
|
|
1738
|
+
throw await de_ExternalResourceExceptionRes(parsedOutput, context);
|
|
1673
1739
|
case "LicenseNotFoundException":
|
|
1674
1740
|
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
1675
1741
|
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
1742
|
+
case "MediaTooLargeException":
|
|
1743
|
+
case "com.amazonaws.qbusiness#MediaTooLargeException":
|
|
1744
|
+
throw await de_MediaTooLargeExceptionRes(parsedOutput, context);
|
|
1676
1745
|
default:
|
|
1677
1746
|
const parsedBody = parsedOutput.body;
|
|
1678
1747
|
return throwDefaultError({
|
|
@@ -1711,6 +1780,19 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1711
1780
|
});
|
|
1712
1781
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1713
1782
|
};
|
|
1783
|
+
const de_ExternalResourceExceptionRes = async (parsedOutput, context) => {
|
|
1784
|
+
const contents = map({});
|
|
1785
|
+
const data = parsedOutput.body;
|
|
1786
|
+
const doc = take(data, {
|
|
1787
|
+
message: __expectString,
|
|
1788
|
+
});
|
|
1789
|
+
Object.assign(contents, doc);
|
|
1790
|
+
const exception = new ExternalResourceException({
|
|
1791
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1792
|
+
...contents,
|
|
1793
|
+
});
|
|
1794
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1795
|
+
};
|
|
1714
1796
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1715
1797
|
const contents = map({});
|
|
1716
1798
|
const data = parsedOutput.body;
|
|
@@ -1737,6 +1819,19 @@ const de_LicenseNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1737
1819
|
});
|
|
1738
1820
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1739
1821
|
};
|
|
1822
|
+
const de_MediaTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
1823
|
+
const contents = map({});
|
|
1824
|
+
const data = parsedOutput.body;
|
|
1825
|
+
const doc = take(data, {
|
|
1826
|
+
message: __expectString,
|
|
1827
|
+
});
|
|
1828
|
+
Object.assign(contents, doc);
|
|
1829
|
+
const exception = new MediaTooLargeException({
|
|
1830
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1831
|
+
...contents,
|
|
1832
|
+
});
|
|
1833
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1834
|
+
};
|
|
1740
1835
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1741
1836
|
const contents = map({});
|
|
1742
1837
|
const data = parsedOutput.body;
|
|
@@ -1966,6 +2061,7 @@ const se_ActionPayloadFieldValue = (input, context) => {
|
|
|
1966
2061
|
};
|
|
1967
2062
|
const se_AttachmentInput = (input, context) => {
|
|
1968
2063
|
return take(input, {
|
|
2064
|
+
copyFrom: _json,
|
|
1969
2065
|
data: context.base64Encoder,
|
|
1970
2066
|
name: [],
|
|
1971
2067
|
});
|
|
@@ -2021,6 +2117,7 @@ const se_Document = (input, context) => {
|
|
|
2021
2117
|
contentType: [],
|
|
2022
2118
|
documentEnrichmentConfiguration: (_) => se_DocumentEnrichmentConfiguration(_, context),
|
|
2023
2119
|
id: [],
|
|
2120
|
+
mediaExtractionConfiguration: _json,
|
|
2024
2121
|
title: [],
|
|
2025
2122
|
});
|
|
2026
2123
|
};
|
|
@@ -2211,6 +2308,28 @@ const de_Applications = (output, context) => {
|
|
|
2211
2308
|
});
|
|
2212
2309
|
return retVal;
|
|
2213
2310
|
};
|
|
2311
|
+
const de_Attachment = (output, context) => {
|
|
2312
|
+
return take(output, {
|
|
2313
|
+
attachmentId: __expectString,
|
|
2314
|
+
conversationId: __expectString,
|
|
2315
|
+
copyFrom: (_) => _json(__expectUnion(_)),
|
|
2316
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2317
|
+
error: _json,
|
|
2318
|
+
fileSize: __expectInt32,
|
|
2319
|
+
fileType: __expectString,
|
|
2320
|
+
md5chksum: __expectString,
|
|
2321
|
+
name: __expectString,
|
|
2322
|
+
status: __expectString,
|
|
2323
|
+
});
|
|
2324
|
+
};
|
|
2325
|
+
const de_AttachmentList = (output, context) => {
|
|
2326
|
+
const retVal = (output || [])
|
|
2327
|
+
.filter((e) => e != null)
|
|
2328
|
+
.map((entry) => {
|
|
2329
|
+
return de_Attachment(entry, context);
|
|
2330
|
+
});
|
|
2331
|
+
return retVal;
|
|
2332
|
+
};
|
|
2214
2333
|
const de_Conversation = (output, context) => {
|
|
2215
2334
|
return take(output, {
|
|
2216
2335
|
conversationId: __expectString,
|
|
@@ -25,11 +25,13 @@ import { GetChatControlsConfigurationCommandInput, GetChatControlsConfigurationC
|
|
|
25
25
|
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
|
|
26
26
|
import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroupCommand";
|
|
27
27
|
import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
|
|
28
|
+
import { GetMediaCommandInput, GetMediaCommandOutput } from "./commands/GetMediaCommand";
|
|
28
29
|
import { GetPluginCommandInput, GetPluginCommandOutput } from "./commands/GetPluginCommand";
|
|
29
30
|
import { GetRetrieverCommandInput, GetRetrieverCommandOutput } from "./commands/GetRetrieverCommand";
|
|
30
31
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
31
32
|
import { GetWebExperienceCommandInput, GetWebExperienceCommandOutput } from "./commands/GetWebExperienceCommand";
|
|
32
33
|
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
34
|
+
import { ListAttachmentsCommandInput, ListAttachmentsCommandOutput } from "./commands/ListAttachmentsCommand";
|
|
33
35
|
import { ListConversationsCommandInput, ListConversationsCommandOutput } from "./commands/ListConversationsCommand";
|
|
34
36
|
import { ListDataSourcesCommandInput, ListDataSourcesCommandOutput } from "./commands/ListDataSourcesCommand";
|
|
35
37
|
import { ListDataSourceSyncJobsCommandInput, ListDataSourceSyncJobsCommandOutput } from "./commands/ListDataSourceSyncJobsCommand";
|
|
@@ -213,6 +215,12 @@ export interface QBusiness {
|
|
|
213
215
|
getIndex(args: GetIndexCommandInput, options?: __HttpHandlerOptions): Promise<GetIndexCommandOutput>;
|
|
214
216
|
getIndex(args: GetIndexCommandInput, cb: (err: any, data?: GetIndexCommandOutput) => void): void;
|
|
215
217
|
getIndex(args: GetIndexCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIndexCommandOutput) => void): void;
|
|
218
|
+
/**
|
|
219
|
+
* @see {@link GetMediaCommand}
|
|
220
|
+
*/
|
|
221
|
+
getMedia(args: GetMediaCommandInput, options?: __HttpHandlerOptions): Promise<GetMediaCommandOutput>;
|
|
222
|
+
getMedia(args: GetMediaCommandInput, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
|
|
223
|
+
getMedia(args: GetMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
|
|
216
224
|
/**
|
|
217
225
|
* @see {@link GetPluginCommand}
|
|
218
226
|
*/
|
|
@@ -244,6 +252,12 @@ export interface QBusiness {
|
|
|
244
252
|
listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
|
|
245
253
|
listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
246
254
|
listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
255
|
+
/**
|
|
256
|
+
* @see {@link ListAttachmentsCommand}
|
|
257
|
+
*/
|
|
258
|
+
listAttachments(args: ListAttachmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAttachmentsCommandOutput>;
|
|
259
|
+
listAttachments(args: ListAttachmentsCommandInput, cb: (err: any, data?: ListAttachmentsCommandOutput) => void): void;
|
|
260
|
+
listAttachments(args: ListAttachmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAttachmentsCommandOutput) => void): void;
|
|
247
261
|
/**
|
|
248
262
|
* @see {@link ListConversationsCommand}
|
|
249
263
|
*/
|
|
@@ -36,11 +36,13 @@ import { GetChatControlsConfigurationCommandInput, GetChatControlsConfigurationC
|
|
|
36
36
|
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
|
|
37
37
|
import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroupCommand";
|
|
38
38
|
import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
|
|
39
|
+
import { GetMediaCommandInput, GetMediaCommandOutput } from "./commands/GetMediaCommand";
|
|
39
40
|
import { GetPluginCommandInput, GetPluginCommandOutput } from "./commands/GetPluginCommand";
|
|
40
41
|
import { GetRetrieverCommandInput, GetRetrieverCommandOutput } from "./commands/GetRetrieverCommand";
|
|
41
42
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
42
43
|
import { GetWebExperienceCommandInput, GetWebExperienceCommandOutput } from "./commands/GetWebExperienceCommand";
|
|
43
44
|
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
45
|
+
import { ListAttachmentsCommandInput, ListAttachmentsCommandOutput } from "./commands/ListAttachmentsCommand";
|
|
44
46
|
import { ListConversationsCommandInput, ListConversationsCommandOutput } from "./commands/ListConversationsCommand";
|
|
45
47
|
import { ListDataSourcesCommandInput, ListDataSourcesCommandOutput } from "./commands/ListDataSourcesCommand";
|
|
46
48
|
import { ListDataSourceSyncJobsCommandInput, ListDataSourceSyncJobsCommandOutput } from "./commands/ListDataSourceSyncJobsCommand";
|
|
@@ -72,11 +74,11 @@ export { __Client };
|
|
|
72
74
|
/**
|
|
73
75
|
* @public
|
|
74
76
|
*/
|
|
75
|
-
export type ServiceInputTypes = BatchDeleteDocumentCommandInput | BatchPutDocumentCommandInput | ChatCommandInput | ChatSyncCommandInput | CreateApplicationCommandInput | CreateDataSourceCommandInput | CreateIndexCommandInput | CreatePluginCommandInput | CreateRetrieverCommandInput | CreateUserCommandInput | CreateWebExperienceCommandInput | DeleteApplicationCommandInput | DeleteChatControlsConfigurationCommandInput | DeleteConversationCommandInput | DeleteDataSourceCommandInput | DeleteGroupCommandInput | DeleteIndexCommandInput | DeletePluginCommandInput | DeleteRetrieverCommandInput | DeleteUserCommandInput | DeleteWebExperienceCommandInput | GetApplicationCommandInput | GetChatControlsConfigurationCommandInput | GetDataSourceCommandInput | GetGroupCommandInput | GetIndexCommandInput | GetPluginCommandInput | GetRetrieverCommandInput | GetUserCommandInput | GetWebExperienceCommandInput | ListApplicationsCommandInput | ListConversationsCommandInput | ListDataSourceSyncJobsCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListGroupsCommandInput | ListIndicesCommandInput | ListMessagesCommandInput | ListPluginsCommandInput | ListRetrieversCommandInput | ListTagsForResourceCommandInput | ListWebExperiencesCommandInput | PutFeedbackCommandInput | PutGroupCommandInput | StartDataSourceSyncJobCommandInput | StopDataSourceSyncJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateChatControlsConfigurationCommandInput | UpdateDataSourceCommandInput | UpdateIndexCommandInput | UpdatePluginCommandInput | UpdateRetrieverCommandInput | UpdateUserCommandInput | UpdateWebExperienceCommandInput;
|
|
77
|
+
export type ServiceInputTypes = BatchDeleteDocumentCommandInput | BatchPutDocumentCommandInput | ChatCommandInput | ChatSyncCommandInput | CreateApplicationCommandInput | CreateDataSourceCommandInput | CreateIndexCommandInput | CreatePluginCommandInput | CreateRetrieverCommandInput | CreateUserCommandInput | CreateWebExperienceCommandInput | DeleteApplicationCommandInput | DeleteChatControlsConfigurationCommandInput | DeleteConversationCommandInput | DeleteDataSourceCommandInput | DeleteGroupCommandInput | DeleteIndexCommandInput | DeletePluginCommandInput | DeleteRetrieverCommandInput | DeleteUserCommandInput | DeleteWebExperienceCommandInput | GetApplicationCommandInput | GetChatControlsConfigurationCommandInput | GetDataSourceCommandInput | GetGroupCommandInput | GetIndexCommandInput | GetMediaCommandInput | GetPluginCommandInput | GetRetrieverCommandInput | GetUserCommandInput | GetWebExperienceCommandInput | ListApplicationsCommandInput | ListAttachmentsCommandInput | ListConversationsCommandInput | ListDataSourceSyncJobsCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListGroupsCommandInput | ListIndicesCommandInput | ListMessagesCommandInput | ListPluginsCommandInput | ListRetrieversCommandInput | ListTagsForResourceCommandInput | ListWebExperiencesCommandInput | PutFeedbackCommandInput | PutGroupCommandInput | StartDataSourceSyncJobCommandInput | StopDataSourceSyncJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateChatControlsConfigurationCommandInput | UpdateDataSourceCommandInput | UpdateIndexCommandInput | UpdatePluginCommandInput | UpdateRetrieverCommandInput | UpdateUserCommandInput | UpdateWebExperienceCommandInput;
|
|
76
78
|
/**
|
|
77
79
|
* @public
|
|
78
80
|
*/
|
|
79
|
-
export type ServiceOutputTypes = BatchDeleteDocumentCommandOutput | BatchPutDocumentCommandOutput | ChatCommandOutput | ChatSyncCommandOutput | CreateApplicationCommandOutput | CreateDataSourceCommandOutput | CreateIndexCommandOutput | CreatePluginCommandOutput | CreateRetrieverCommandOutput | CreateUserCommandOutput | CreateWebExperienceCommandOutput | DeleteApplicationCommandOutput | DeleteChatControlsConfigurationCommandOutput | DeleteConversationCommandOutput | DeleteDataSourceCommandOutput | DeleteGroupCommandOutput | DeleteIndexCommandOutput | DeletePluginCommandOutput | DeleteRetrieverCommandOutput | DeleteUserCommandOutput | DeleteWebExperienceCommandOutput | GetApplicationCommandOutput | GetChatControlsConfigurationCommandOutput | GetDataSourceCommandOutput | GetGroupCommandOutput | GetIndexCommandOutput | GetPluginCommandOutput | GetRetrieverCommandOutput | GetUserCommandOutput | GetWebExperienceCommandOutput | ListApplicationsCommandOutput | ListConversationsCommandOutput | ListDataSourceSyncJobsCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListGroupsCommandOutput | ListIndicesCommandOutput | ListMessagesCommandOutput | ListPluginsCommandOutput | ListRetrieversCommandOutput | ListTagsForResourceCommandOutput | ListWebExperiencesCommandOutput | PutFeedbackCommandOutput | PutGroupCommandOutput | StartDataSourceSyncJobCommandOutput | StopDataSourceSyncJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateChatControlsConfigurationCommandOutput | UpdateDataSourceCommandOutput | UpdateIndexCommandOutput | UpdatePluginCommandOutput | UpdateRetrieverCommandOutput | UpdateUserCommandOutput | UpdateWebExperienceCommandOutput;
|
|
81
|
+
export type ServiceOutputTypes = BatchDeleteDocumentCommandOutput | BatchPutDocumentCommandOutput | ChatCommandOutput | ChatSyncCommandOutput | CreateApplicationCommandOutput | CreateDataSourceCommandOutput | CreateIndexCommandOutput | CreatePluginCommandOutput | CreateRetrieverCommandOutput | CreateUserCommandOutput | CreateWebExperienceCommandOutput | DeleteApplicationCommandOutput | DeleteChatControlsConfigurationCommandOutput | DeleteConversationCommandOutput | DeleteDataSourceCommandOutput | DeleteGroupCommandOutput | DeleteIndexCommandOutput | DeletePluginCommandOutput | DeleteRetrieverCommandOutput | DeleteUserCommandOutput | DeleteWebExperienceCommandOutput | GetApplicationCommandOutput | GetChatControlsConfigurationCommandOutput | GetDataSourceCommandOutput | GetGroupCommandOutput | GetIndexCommandOutput | GetMediaCommandOutput | GetPluginCommandOutput | GetRetrieverCommandOutput | GetUserCommandOutput | GetWebExperienceCommandOutput | ListApplicationsCommandOutput | ListAttachmentsCommandOutput | ListConversationsCommandOutput | ListDataSourceSyncJobsCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListGroupsCommandOutput | ListIndicesCommandOutput | ListMessagesCommandOutput | ListPluginsCommandOutput | ListRetrieversCommandOutput | ListTagsForResourceCommandOutput | ListWebExperiencesCommandOutput | PutFeedbackCommandOutput | PutGroupCommandOutput | StartDataSourceSyncJobCommandOutput | StopDataSourceSyncJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateChatControlsConfigurationCommandOutput | UpdateDataSourceCommandOutput | UpdateIndexCommandOutput | UpdatePluginCommandOutput | UpdateRetrieverCommandOutput | UpdateUserCommandOutput | UpdateWebExperienceCommandOutput;
|
|
80
82
|
/**
|
|
81
83
|
* @public
|
|
82
84
|
*/
|
|
@@ -76,7 +76,7 @@ declare const BatchDeleteDocumentCommand_base: {
|
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link ConflictException} (client fault)
|
|
78
78
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
79
|
-
* resource. Fix any
|
|
79
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
80
80
|
*
|
|
81
81
|
* @throws {@link InternalServerException} (server fault)
|
|
82
82
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -151,6 +151,11 @@ declare const BatchPutDocumentCommand_base: {
|
|
|
151
151
|
* roleArn: "STRING_VALUE",
|
|
152
152
|
* },
|
|
153
153
|
* },
|
|
154
|
+
* mediaExtractionConfiguration: { // MediaExtractionConfiguration
|
|
155
|
+
* imageExtractionConfiguration: { // ImageExtractionConfiguration
|
|
156
|
+
* imageExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
157
|
+
* },
|
|
158
|
+
* },
|
|
154
159
|
* },
|
|
155
160
|
* ],
|
|
156
161
|
* roleArn: "STRING_VALUE",
|
|
@@ -185,7 +190,7 @@ declare const BatchPutDocumentCommand_base: {
|
|
|
185
190
|
*
|
|
186
191
|
* @throws {@link ConflictException} (client fault)
|
|
187
192
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
188
|
-
* resource. Fix any
|
|
193
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
189
194
|
*
|
|
190
195
|
* @throws {@link InternalServerException} (server fault)
|
|
191
196
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -138,8 +138,14 @@ declare const ChatCommand_base: {
|
|
|
138
138
|
* },
|
|
139
139
|
* attachmentEvent: { // AttachmentInputEvent
|
|
140
140
|
* attachment: { // AttachmentInput
|
|
141
|
-
*
|
|
142
|
-
*
|
|
141
|
+
* data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
142
|
+
* name: "STRING_VALUE",
|
|
143
|
+
* copyFrom: { // CopyFromSource Union: only one key present
|
|
144
|
+
* conversation: { // ConversationSource
|
|
145
|
+
* conversationId: "STRING_VALUE", // required
|
|
146
|
+
* attachmentId: "STRING_VALUE", // required
|
|
147
|
+
* },
|
|
148
|
+
* },
|
|
143
149
|
* },
|
|
144
150
|
* },
|
|
145
151
|
* actionExecutionEvent: { // ActionExecutionEvent
|
|
@@ -187,6 +193,8 @@ declare const ChatCommand_base: {
|
|
|
187
193
|
* // snippetExcerpt: { // SnippetExcerpt
|
|
188
194
|
* // text: "STRING_VALUE",
|
|
189
195
|
* // },
|
|
196
|
+
* // mediaId: "STRING_VALUE",
|
|
197
|
+
* // mediaMimeType: "STRING_VALUE",
|
|
190
198
|
* // },
|
|
191
199
|
* // ],
|
|
192
200
|
* // },
|
|
@@ -225,11 +233,13 @@ declare const ChatCommand_base: {
|
|
|
225
233
|
* // systemMessageId: "STRING_VALUE",
|
|
226
234
|
* // attachment: { // AttachmentOutput
|
|
227
235
|
* // name: "STRING_VALUE",
|
|
228
|
-
* // status: "FAILED" || "
|
|
236
|
+
* // status: "FAILED" || "SUCCESS",
|
|
229
237
|
* // error: { // ErrorDetail
|
|
230
238
|
* // errorMessage: "STRING_VALUE",
|
|
231
239
|
* // errorCode: "InternalError" || "InvalidRequest" || "ResourceInactive" || "ResourceNotFound",
|
|
232
240
|
* // },
|
|
241
|
+
* // attachmentId: "STRING_VALUE",
|
|
242
|
+
* // conversationId: "STRING_VALUE",
|
|
233
243
|
* // },
|
|
234
244
|
* // },
|
|
235
245
|
* // authChallengeRequestEvent: { // AuthChallengeRequestEvent
|
|
@@ -252,7 +262,12 @@ declare const ChatCommand_base: {
|
|
|
252
262
|
*
|
|
253
263
|
* @throws {@link ConflictException} (client fault)
|
|
254
264
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
255
|
-
* resource. Fix any
|
|
265
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
266
|
+
*
|
|
267
|
+
* @throws {@link ExternalResourceException} (client fault)
|
|
268
|
+
* <p>An external resource that you configured with your application is returning errors and
|
|
269
|
+
* preventing this operation from succeeding. Fix those errors and try again.
|
|
270
|
+
* </p>
|
|
256
271
|
*
|
|
257
272
|
* @throws {@link InternalServerException} (server fault)
|
|
258
273
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -43,8 +43,14 @@ declare const ChatSyncCommand_base: {
|
|
|
43
43
|
* userMessage: "STRING_VALUE",
|
|
44
44
|
* attachments: [ // AttachmentsInput
|
|
45
45
|
* { // AttachmentInput
|
|
46
|
-
*
|
|
47
|
-
*
|
|
46
|
+
* data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
47
|
+
* name: "STRING_VALUE",
|
|
48
|
+
* copyFrom: { // CopyFromSource Union: only one key present
|
|
49
|
+
* conversation: { // ConversationSource
|
|
50
|
+
* conversationId: "STRING_VALUE", // required
|
|
51
|
+
* attachmentId: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
48
54
|
* },
|
|
49
55
|
* ],
|
|
50
56
|
* actionExecution: { // ActionExecution
|
|
@@ -199,6 +205,8 @@ declare const ChatSyncCommand_base: {
|
|
|
199
205
|
* // snippetExcerpt: { // SnippetExcerpt
|
|
200
206
|
* // text: "STRING_VALUE",
|
|
201
207
|
* // },
|
|
208
|
+
* // mediaId: "STRING_VALUE",
|
|
209
|
+
* // mediaMimeType: "STRING_VALUE",
|
|
202
210
|
* // },
|
|
203
211
|
* // ],
|
|
204
212
|
* // },
|
|
@@ -206,11 +214,13 @@ declare const ChatSyncCommand_base: {
|
|
|
206
214
|
* // failedAttachments: [ // AttachmentsOutput
|
|
207
215
|
* // { // AttachmentOutput
|
|
208
216
|
* // name: "STRING_VALUE",
|
|
209
|
-
* // status: "FAILED" || "
|
|
217
|
+
* // status: "FAILED" || "SUCCESS",
|
|
210
218
|
* // error: { // ErrorDetail
|
|
211
219
|
* // errorMessage: "STRING_VALUE",
|
|
212
220
|
* // errorCode: "InternalError" || "InvalidRequest" || "ResourceInactive" || "ResourceNotFound",
|
|
213
221
|
* // },
|
|
222
|
+
* // attachmentId: "STRING_VALUE",
|
|
223
|
+
* // conversationId: "STRING_VALUE",
|
|
214
224
|
* // },
|
|
215
225
|
* // ],
|
|
216
226
|
* // };
|
|
@@ -229,7 +239,12 @@ declare const ChatSyncCommand_base: {
|
|
|
229
239
|
*
|
|
230
240
|
* @throws {@link ConflictException} (client fault)
|
|
231
241
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
232
|
-
* resource. Fix any
|
|
242
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
243
|
+
*
|
|
244
|
+
* @throws {@link ExternalResourceException} (client fault)
|
|
245
|
+
* <p>An external resource that you configured with your application is returning errors and
|
|
246
|
+
* preventing this operation from succeeding. Fix those errors and try again.
|
|
247
|
+
* </p>
|
|
233
248
|
*
|
|
234
249
|
* @throws {@link InternalServerException} (server fault)
|
|
235
250
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -32,16 +32,15 @@ declare const CreateApplicationCommand_base: {
|
|
|
32
32
|
* <p>There are new tiers for Amazon Q Business. Not all features in Amazon Q Business Pro are
|
|
33
33
|
* also available in Amazon Q Business Lite. For information on what's included in
|
|
34
34
|
* Amazon Q Business Lite and what's included in Amazon Q Business Pro, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/tiers.html#user-sub-tiers">Amazon Q Business tiers</a>. You must use the Amazon Q Business console to assign
|
|
35
|
-
* subscription tiers to users.
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* </p>
|
|
35
|
+
* subscription tiers to users. </p>
|
|
36
|
+
* <p>An Amazon Q Apps service linked role will be created if it's absent in the
|
|
37
|
+
* Amazon Web Services account when <code>QAppsConfiguration</code> is enabled in
|
|
38
|
+
* the request. For more information, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles-qapps.html"> Using
|
|
39
|
+
* service-linked roles for Q Apps</a>.</p>
|
|
40
|
+
* <p>When you create an application, Amazon Q Business may securely transmit data for
|
|
41
|
+
* processing from your selected Amazon Web Services region, but within your geography.
|
|
42
|
+
* For more information, see <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/cross-region-inference.html">Cross region
|
|
43
|
+
* inference in Amazon Q Business</a>.</p>
|
|
45
44
|
* </note>
|
|
46
45
|
* @example
|
|
47
46
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -100,7 +99,7 @@ declare const CreateApplicationCommand_base: {
|
|
|
100
99
|
*
|
|
101
100
|
* @throws {@link ConflictException} (client fault)
|
|
102
101
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
103
|
-
* resource. Fix any
|
|
102
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
104
103
|
*
|
|
105
104
|
* @throws {@link InternalServerException} (server fault)
|
|
106
105
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -125,6 +125,11 @@ declare const CreateDataSourceCommand_base: {
|
|
|
125
125
|
* roleArn: "STRING_VALUE",
|
|
126
126
|
* },
|
|
127
127
|
* },
|
|
128
|
+
* mediaExtractionConfiguration: { // MediaExtractionConfiguration
|
|
129
|
+
* imageExtractionConfiguration: { // ImageExtractionConfiguration
|
|
130
|
+
* imageExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
131
|
+
* },
|
|
132
|
+
* },
|
|
128
133
|
* };
|
|
129
134
|
* const command = new CreateDataSourceCommand(input);
|
|
130
135
|
* const response = await client.send(command);
|
|
@@ -147,7 +152,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
147
152
|
*
|
|
148
153
|
* @throws {@link ConflictException} (client fault)
|
|
149
154
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
150
|
-
* resource. Fix any
|
|
155
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
151
156
|
*
|
|
152
157
|
* @throws {@link InternalServerException} (server fault)
|
|
153
158
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -45,8 +45,8 @@ declare const CreateIndexCommand_base: {
|
|
|
45
45
|
* const input = { // CreateIndexRequest
|
|
46
46
|
* applicationId: "STRING_VALUE", // required
|
|
47
47
|
* displayName: "STRING_VALUE", // required
|
|
48
|
-
* type: "ENTERPRISE" || "STARTER",
|
|
49
48
|
* description: "STRING_VALUE",
|
|
49
|
+
* type: "ENTERPRISE" || "STARTER",
|
|
50
50
|
* tags: [ // Tags
|
|
51
51
|
* { // Tag
|
|
52
52
|
* key: "STRING_VALUE", // required
|
|
@@ -79,7 +79,7 @@ declare const CreateIndexCommand_base: {
|
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link ConflictException} (client fault)
|
|
81
81
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
82
|
-
* resource. Fix any
|
|
82
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
83
83
|
*
|
|
84
84
|
* @throws {@link InternalServerException} (server fault)
|
|
85
85
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -91,7 +91,7 @@ declare const CreatePluginCommand_base: {
|
|
|
91
91
|
*
|
|
92
92
|
* @throws {@link ConflictException} (client fault)
|
|
93
93
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
94
|
-
* resource. Fix any
|
|
94
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
95
95
|
*
|
|
96
96
|
* @throws {@link InternalServerException} (server fault)
|
|
97
97
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
@@ -97,7 +97,7 @@ declare const CreateRetrieverCommand_base: {
|
|
|
97
97
|
*
|
|
98
98
|
* @throws {@link ConflictException} (client fault)
|
|
99
99
|
* <p>You are trying to perform an action that conflicts with the current status of your
|
|
100
|
-
* resource. Fix any
|
|
100
|
+
* resource. Fix any inconsistencies with your resources and try again.</p>
|
|
101
101
|
*
|
|
102
102
|
* @throws {@link InternalServerException} (server fault)
|
|
103
103
|
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|