@aws-sdk/client-qbusiness 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +4259 -4402
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/QBusinessClient.js +2 -0
- package/dist-es/commands/AssociatePermissionCommand.js +3 -9
- package/dist-es/commands/BatchDeleteDocumentCommand.js +3 -9
- package/dist-es/commands/BatchPutDocumentCommand.js +3 -9
- package/dist-es/commands/CancelSubscriptionCommand.js +3 -9
- package/dist-es/commands/ChatCommand.js +3 -12
- package/dist-es/commands/ChatSyncCommand.js +3 -9
- package/dist-es/commands/CheckDocumentAccessCommand.js +3 -9
- package/dist-es/commands/CreateAnonymousWebExperienceUrlCommand.js +3 -9
- package/dist-es/commands/CreateApplicationCommand.js +3 -10
- package/dist-es/commands/CreateChatResponseConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateDataAccessorCommand.js +3 -10
- package/dist-es/commands/CreateDataSourceCommand.js +3 -9
- package/dist-es/commands/CreateIndexCommand.js +3 -9
- package/dist-es/commands/CreatePluginCommand.js +3 -10
- package/dist-es/commands/CreateRetrieverCommand.js +3 -9
- package/dist-es/commands/CreateSubscriptionCommand.js +3 -9
- package/dist-es/commands/CreateUserCommand.js +3 -9
- package/dist-es/commands/CreateWebExperienceCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationCommand.js +3 -9
- package/dist-es/commands/DeleteAttachmentCommand.js +3 -9
- package/dist-es/commands/DeleteChatControlsConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteChatResponseConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteConversationCommand.js +3 -9
- package/dist-es/commands/DeleteDataAccessorCommand.js +3 -9
- package/dist-es/commands/DeleteDataSourceCommand.js +3 -9
- package/dist-es/commands/DeleteGroupCommand.js +3 -9
- package/dist-es/commands/DeleteIndexCommand.js +3 -9
- package/dist-es/commands/DeletePluginCommand.js +3 -9
- package/dist-es/commands/DeleteRetrieverCommand.js +3 -9
- package/dist-es/commands/DeleteUserCommand.js +3 -9
- package/dist-es/commands/DeleteWebExperienceCommand.js +3 -9
- package/dist-es/commands/DisassociatePermissionCommand.js +3 -9
- package/dist-es/commands/GetApplicationCommand.js +3 -10
- package/dist-es/commands/GetChatControlsConfigurationCommand.js +3 -9
- package/dist-es/commands/GetChatResponseConfigurationCommand.js +3 -9
- package/dist-es/commands/GetDataAccessorCommand.js +3 -10
- package/dist-es/commands/GetDataSourceCommand.js +3 -9
- package/dist-es/commands/GetDocumentContentCommand.js +3 -9
- package/dist-es/commands/GetGroupCommand.js +3 -9
- package/dist-es/commands/GetIndexCommand.js +3 -9
- package/dist-es/commands/GetMediaCommand.js +3 -9
- package/dist-es/commands/GetPluginCommand.js +3 -10
- package/dist-es/commands/GetPolicyCommand.js +3 -9
- package/dist-es/commands/GetRetrieverCommand.js +3 -9
- package/dist-es/commands/GetUserCommand.js +3 -9
- package/dist-es/commands/GetWebExperienceCommand.js +3 -9
- package/dist-es/commands/ListApplicationsCommand.js +3 -9
- package/dist-es/commands/ListAttachmentsCommand.js +3 -9
- package/dist-es/commands/ListChatResponseConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListConversationsCommand.js +3 -9
- package/dist-es/commands/ListDataAccessorsCommand.js +3 -10
- package/dist-es/commands/ListDataSourceSyncJobsCommand.js +3 -9
- package/dist-es/commands/ListDataSourcesCommand.js +3 -9
- package/dist-es/commands/ListDocumentsCommand.js +3 -9
- package/dist-es/commands/ListGroupsCommand.js +3 -9
- package/dist-es/commands/ListIndicesCommand.js +3 -9
- package/dist-es/commands/ListMessagesCommand.js +3 -9
- package/dist-es/commands/ListPluginActionsCommand.js +3 -9
- package/dist-es/commands/ListPluginTypeActionsCommand.js +3 -9
- package/dist-es/commands/ListPluginTypeMetadataCommand.js +3 -9
- package/dist-es/commands/ListPluginsCommand.js +3 -9
- package/dist-es/commands/ListRetrieversCommand.js +3 -9
- package/dist-es/commands/ListSubscriptionsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWebExperiencesCommand.js +3 -9
- package/dist-es/commands/PutFeedbackCommand.js +3 -9
- package/dist-es/commands/PutGroupCommand.js +3 -9
- package/dist-es/commands/SearchRelevantContentCommand.js +3 -9
- package/dist-es/commands/StartDataSourceSyncJobCommand.js +3 -9
- package/dist-es/commands/StopDataSourceSyncJobCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateApplicationCommand.js +3 -9
- package/dist-es/commands/UpdateChatControlsConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateChatResponseConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateDataAccessorCommand.js +3 -10
- package/dist-es/commands/UpdateDataSourceCommand.js +3 -9
- package/dist-es/commands/UpdateIndexCommand.js +3 -9
- package/dist-es/commands/UpdatePluginCommand.js +3 -10
- package/dist-es/commands/UpdateRetrieverCommand.js +3 -9
- package/dist-es/commands/UpdateSubscriptionCommand.js +3 -9
- package/dist-es/commands/UpdateUserCommand.js +3 -9
- package/dist-es/commands/UpdateWebExperienceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -257
- package/dist-es/models/models_1.js +0 -57
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +4079 -0
- package/dist-types/QBusinessClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +68 -65
- package/dist-types/models/models_1.d.ts +4 -21
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +485 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -59
- package/dist-types/ts3.4/models/models_1.d.ts +0 -14
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +492 -0
- package/package.json +38 -39
- package/dist-es/protocols/Aws_restJson1.js +0 -3464
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -749
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1001
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { QBusinessServiceException as __BaseException } from "./QBusinessServiceException";
|
|
3
2
|
export const MemberRelation = {
|
|
4
3
|
AND: "AND",
|
|
@@ -12,16 +11,6 @@ export const MembershipType = {
|
|
|
12
11
|
DATASOURCE: "DATASOURCE",
|
|
13
12
|
INDEX: "INDEX",
|
|
14
13
|
};
|
|
15
|
-
export var Principal;
|
|
16
|
-
(function (Principal) {
|
|
17
|
-
Principal.visit = (value, visitor) => {
|
|
18
|
-
if (value.user !== undefined)
|
|
19
|
-
return visitor.user(value.user);
|
|
20
|
-
if (value.group !== undefined)
|
|
21
|
-
return visitor.group(value.group);
|
|
22
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
23
|
-
};
|
|
24
|
-
})(Principal || (Principal = {}));
|
|
25
14
|
export class AccessDeniedException extends __BaseException {
|
|
26
15
|
name = "AccessDeniedException";
|
|
27
16
|
$fault = "client";
|
|
@@ -34,20 +23,6 @@ export class AccessDeniedException extends __BaseException {
|
|
|
34
23
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
35
24
|
}
|
|
36
25
|
}
|
|
37
|
-
export var DocumentAttributeValue;
|
|
38
|
-
(function (DocumentAttributeValue) {
|
|
39
|
-
DocumentAttributeValue.visit = (value, visitor) => {
|
|
40
|
-
if (value.stringValue !== undefined)
|
|
41
|
-
return visitor.stringValue(value.stringValue);
|
|
42
|
-
if (value.stringListValue !== undefined)
|
|
43
|
-
return visitor.stringListValue(value.stringListValue);
|
|
44
|
-
if (value.longValue !== undefined)
|
|
45
|
-
return visitor.longValue(value.longValue);
|
|
46
|
-
if (value.dateValue !== undefined)
|
|
47
|
-
return visitor.dateValue(value.dateValue);
|
|
48
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
49
|
-
};
|
|
50
|
-
})(DocumentAttributeValue || (DocumentAttributeValue = {}));
|
|
51
26
|
export const ActionPayloadFieldType = {
|
|
52
27
|
ARRAY: "ARRAY",
|
|
53
28
|
BOOLEAN: "BOOLEAN",
|
|
@@ -73,16 +48,6 @@ export const PluginType = {
|
|
|
73
48
|
ZENDESK: "ZENDESK",
|
|
74
49
|
ZENDESK_SUITE: "ZENDESK_SUITE",
|
|
75
50
|
};
|
|
76
|
-
export var APISchema;
|
|
77
|
-
(function (APISchema) {
|
|
78
|
-
APISchema.visit = (value, visitor) => {
|
|
79
|
-
if (value.payload !== undefined)
|
|
80
|
-
return visitor.payload(value.payload);
|
|
81
|
-
if (value.s3 !== undefined)
|
|
82
|
-
return visitor.s3(value.s3);
|
|
83
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
84
|
-
};
|
|
85
|
-
})(APISchema || (APISchema = {}));
|
|
86
51
|
export const APISchemaType = {
|
|
87
52
|
OPEN_API_V3: "OPEN_API_V3",
|
|
88
53
|
};
|
|
@@ -205,14 +170,6 @@ export class ValidationException extends __BaseException {
|
|
|
205
170
|
this.fields = opts.fields;
|
|
206
171
|
}
|
|
207
172
|
}
|
|
208
|
-
export var DataAccessorAuthenticationConfiguration;
|
|
209
|
-
(function (DataAccessorAuthenticationConfiguration) {
|
|
210
|
-
DataAccessorAuthenticationConfiguration.visit = (value, visitor) => {
|
|
211
|
-
if (value.idcTrustedTokenIssuerConfiguration !== undefined)
|
|
212
|
-
return visitor.idcTrustedTokenIssuerConfiguration(value.idcTrustedTokenIssuerConfiguration);
|
|
213
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
214
|
-
};
|
|
215
|
-
})(DataAccessorAuthenticationConfiguration || (DataAccessorAuthenticationConfiguration = {}));
|
|
216
173
|
export const DataAccessorAuthenticationType = {
|
|
217
174
|
AWS_IAM_IDC_AUTH_CODE: "AWS_IAM_IDC_AUTH_CODE",
|
|
218
175
|
AWS_IAM_IDC_TTI: "AWS_IAM_IDC_TTI",
|
|
@@ -291,20 +248,6 @@ export const IndexStatus = {
|
|
|
291
248
|
FAILED: "FAILED",
|
|
292
249
|
UPDATING: "UPDATING",
|
|
293
250
|
};
|
|
294
|
-
export var PluginAuthConfiguration;
|
|
295
|
-
(function (PluginAuthConfiguration) {
|
|
296
|
-
PluginAuthConfiguration.visit = (value, visitor) => {
|
|
297
|
-
if (value.basicAuthConfiguration !== undefined)
|
|
298
|
-
return visitor.basicAuthConfiguration(value.basicAuthConfiguration);
|
|
299
|
-
if (value.oAuth2ClientCredentialConfiguration !== undefined)
|
|
300
|
-
return visitor.oAuth2ClientCredentialConfiguration(value.oAuth2ClientCredentialConfiguration);
|
|
301
|
-
if (value.noAuthConfiguration !== undefined)
|
|
302
|
-
return visitor.noAuthConfiguration(value.noAuthConfiguration);
|
|
303
|
-
if (value.idcAuthConfiguration !== undefined)
|
|
304
|
-
return visitor.idcAuthConfiguration(value.idcAuthConfiguration);
|
|
305
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
306
|
-
};
|
|
307
|
-
})(PluginAuthConfiguration || (PluginAuthConfiguration = {}));
|
|
308
251
|
export const PluginBuildStatus = {
|
|
309
252
|
CREATE_FAILED: "CREATE_FAILED",
|
|
310
253
|
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
@@ -342,30 +285,6 @@ export const StringAttributeValueBoostingLevel = {
|
|
|
342
285
|
TWO: "TWO",
|
|
343
286
|
VERY_HIGH: "VERY_HIGH",
|
|
344
287
|
};
|
|
345
|
-
export var DocumentAttributeBoostingConfiguration;
|
|
346
|
-
(function (DocumentAttributeBoostingConfiguration) {
|
|
347
|
-
DocumentAttributeBoostingConfiguration.visit = (value, visitor) => {
|
|
348
|
-
if (value.numberConfiguration !== undefined)
|
|
349
|
-
return visitor.numberConfiguration(value.numberConfiguration);
|
|
350
|
-
if (value.stringConfiguration !== undefined)
|
|
351
|
-
return visitor.stringConfiguration(value.stringConfiguration);
|
|
352
|
-
if (value.dateConfiguration !== undefined)
|
|
353
|
-
return visitor.dateConfiguration(value.dateConfiguration);
|
|
354
|
-
if (value.stringListConfiguration !== undefined)
|
|
355
|
-
return visitor.stringListConfiguration(value.stringListConfiguration);
|
|
356
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
357
|
-
};
|
|
358
|
-
})(DocumentAttributeBoostingConfiguration || (DocumentAttributeBoostingConfiguration = {}));
|
|
359
|
-
export var RetrieverConfiguration;
|
|
360
|
-
(function (RetrieverConfiguration) {
|
|
361
|
-
RetrieverConfiguration.visit = (value, visitor) => {
|
|
362
|
-
if (value.nativeIndexConfiguration !== undefined)
|
|
363
|
-
return visitor.nativeIndexConfiguration(value.nativeIndexConfiguration);
|
|
364
|
-
if (value.kendraIndexConfiguration !== undefined)
|
|
365
|
-
return visitor.kendraIndexConfiguration(value.kendraIndexConfiguration);
|
|
366
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
367
|
-
};
|
|
368
|
-
})(RetrieverConfiguration || (RetrieverConfiguration = {}));
|
|
369
288
|
export const RetrieverType = {
|
|
370
289
|
KENDRA_INDEX: "KENDRA_INDEX",
|
|
371
290
|
NATIVE_INDEX: "NATIVE_INDEX",
|
|
@@ -379,28 +298,10 @@ export const BrowserExtension = {
|
|
|
379
298
|
CHROME: "CHROME",
|
|
380
299
|
FIREFOX: "FIREFOX",
|
|
381
300
|
};
|
|
382
|
-
export var IdentityProviderConfiguration;
|
|
383
|
-
(function (IdentityProviderConfiguration) {
|
|
384
|
-
IdentityProviderConfiguration.visit = (value, visitor) => {
|
|
385
|
-
if (value.samlConfiguration !== undefined)
|
|
386
|
-
return visitor.samlConfiguration(value.samlConfiguration);
|
|
387
|
-
if (value.openIDConnectConfiguration !== undefined)
|
|
388
|
-
return visitor.openIDConnectConfiguration(value.openIDConnectConfiguration);
|
|
389
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
390
|
-
};
|
|
391
|
-
})(IdentityProviderConfiguration || (IdentityProviderConfiguration = {}));
|
|
392
301
|
export const WebExperienceSamplePromptsControlMode = {
|
|
393
302
|
DISABLED: "DISABLED",
|
|
394
303
|
ENABLED: "ENABLED",
|
|
395
304
|
};
|
|
396
|
-
export var WebExperienceAuthConfiguration;
|
|
397
|
-
(function (WebExperienceAuthConfiguration) {
|
|
398
|
-
WebExperienceAuthConfiguration.visit = (value, visitor) => {
|
|
399
|
-
if (value.samlConfiguration !== undefined)
|
|
400
|
-
return visitor.samlConfiguration(value.samlConfiguration);
|
|
401
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
402
|
-
};
|
|
403
|
-
})(WebExperienceAuthConfiguration || (WebExperienceAuthConfiguration = {}));
|
|
404
305
|
export const WebExperienceStatus = {
|
|
405
306
|
ACTIVE: "ACTIVE",
|
|
406
307
|
CREATING: "CREATING",
|
|
@@ -419,14 +320,6 @@ export const OrchestrationControl = {
|
|
|
419
320
|
export const PermissionConditionOperator = {
|
|
420
321
|
STRING_EQUALS: "StringEquals",
|
|
421
322
|
};
|
|
422
|
-
export var CopyFromSource;
|
|
423
|
-
(function (CopyFromSource) {
|
|
424
|
-
CopyFromSource.visit = (value, visitor) => {
|
|
425
|
-
if (value.conversation !== undefined)
|
|
426
|
-
return visitor.conversation(value.conversation);
|
|
427
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
428
|
-
};
|
|
429
|
-
})(CopyFromSource || (CopyFromSource = {}));
|
|
430
323
|
export const AttachmentStatus = {
|
|
431
324
|
FAILED: "FAILED",
|
|
432
325
|
SUCCESS: "SUCCESS",
|
|
@@ -435,16 +328,6 @@ export const AudioExtractionType = {
|
|
|
435
328
|
SUMMARY: "SUMMARY",
|
|
436
329
|
TRANSCRIPT: "TRANSCRIPT",
|
|
437
330
|
};
|
|
438
|
-
export var DocumentContent;
|
|
439
|
-
(function (DocumentContent) {
|
|
440
|
-
DocumentContent.visit = (value, visitor) => {
|
|
441
|
-
if (value.blob !== undefined)
|
|
442
|
-
return visitor.blob(value.blob);
|
|
443
|
-
if (value.s3 !== undefined)
|
|
444
|
-
return visitor.s3(value.s3);
|
|
445
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
446
|
-
};
|
|
447
|
-
})(DocumentContent || (DocumentContent = {}));
|
|
448
331
|
export const ContentType = {
|
|
449
332
|
CSV: "CSV",
|
|
450
333
|
HTML: "HTML",
|
|
@@ -464,50 +347,14 @@ export const ChatMode = {
|
|
|
464
347
|
PLUGIN_MODE: "PLUGIN_MODE",
|
|
465
348
|
RETRIEVAL_MODE: "RETRIEVAL_MODE",
|
|
466
349
|
};
|
|
467
|
-
export var ChatModeConfiguration;
|
|
468
|
-
(function (ChatModeConfiguration) {
|
|
469
|
-
ChatModeConfiguration.visit = (value, visitor) => {
|
|
470
|
-
if (value.pluginConfiguration !== undefined)
|
|
471
|
-
return visitor.pluginConfiguration(value.pluginConfiguration);
|
|
472
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
473
|
-
};
|
|
474
|
-
})(ChatModeConfiguration || (ChatModeConfiguration = {}));
|
|
475
350
|
export const VideoExtractionType = {
|
|
476
351
|
SUMMARY: "SUMMARY",
|
|
477
352
|
TRANSCRIPT: "TRANSCRIPT",
|
|
478
353
|
};
|
|
479
|
-
export var SourceDetails;
|
|
480
|
-
(function (SourceDetails) {
|
|
481
|
-
SourceDetails.visit = (value, visitor) => {
|
|
482
|
-
if (value.imageSourceDetails !== undefined)
|
|
483
|
-
return visitor.imageSourceDetails(value.imageSourceDetails);
|
|
484
|
-
if (value.audioSourceDetails !== undefined)
|
|
485
|
-
return visitor.audioSourceDetails(value.audioSourceDetails);
|
|
486
|
-
if (value.videoSourceDetails !== undefined)
|
|
487
|
-
return visitor.videoSourceDetails(value.videoSourceDetails);
|
|
488
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
489
|
-
};
|
|
490
|
-
})(SourceDetails || (SourceDetails = {}));
|
|
491
354
|
export const SystemMessageType = {
|
|
492
355
|
GROUNDED_RESPONSE: "GROUNDED_RESPONSE",
|
|
493
356
|
RESPONSE: "RESPONSE",
|
|
494
357
|
};
|
|
495
|
-
export var ChatOutputStream;
|
|
496
|
-
(function (ChatOutputStream) {
|
|
497
|
-
ChatOutputStream.visit = (value, visitor) => {
|
|
498
|
-
if (value.textEvent !== undefined)
|
|
499
|
-
return visitor.textEvent(value.textEvent);
|
|
500
|
-
if (value.metadataEvent !== undefined)
|
|
501
|
-
return visitor.metadataEvent(value.metadataEvent);
|
|
502
|
-
if (value.actionReviewEvent !== undefined)
|
|
503
|
-
return visitor.actionReviewEvent(value.actionReviewEvent);
|
|
504
|
-
if (value.failedAttachmentEvent !== undefined)
|
|
505
|
-
return visitor.failedAttachmentEvent(value.failedAttachmentEvent);
|
|
506
|
-
if (value.authChallengeRequestEvent !== undefined)
|
|
507
|
-
return visitor.authChallengeRequestEvent(value.authChallengeRequestEvent);
|
|
508
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
509
|
-
};
|
|
510
|
-
})(ChatOutputStream || (ChatOutputStream = {}));
|
|
511
358
|
export class ExternalResourceException extends __BaseException {
|
|
512
359
|
name = "ExternalResourceException";
|
|
513
360
|
$fault = "client";
|
|
@@ -541,24 +388,6 @@ export const ChatResponseConfigurationStatus = {
|
|
|
541
388
|
export const ResponseConfigurationType = {
|
|
542
389
|
ALL: "ALL",
|
|
543
390
|
};
|
|
544
|
-
export var ContentSource;
|
|
545
|
-
(function (ContentSource) {
|
|
546
|
-
ContentSource.visit = (value, visitor) => {
|
|
547
|
-
if (value.retriever !== undefined)
|
|
548
|
-
return visitor.retriever(value.retriever);
|
|
549
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
550
|
-
};
|
|
551
|
-
})(ContentSource || (ContentSource = {}));
|
|
552
|
-
export var SubscriptionPrincipal;
|
|
553
|
-
(function (SubscriptionPrincipal) {
|
|
554
|
-
SubscriptionPrincipal.visit = (value, visitor) => {
|
|
555
|
-
if (value.user !== undefined)
|
|
556
|
-
return visitor.user(value.user);
|
|
557
|
-
if (value.group !== undefined)
|
|
558
|
-
return visitor.group(value.group);
|
|
559
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
560
|
-
};
|
|
561
|
-
})(SubscriptionPrincipal || (SubscriptionPrincipal = {}));
|
|
562
391
|
export const DataSourceSyncJobStatus = {
|
|
563
392
|
ABORTED: "ABORTED",
|
|
564
393
|
FAILED: "FAILED",
|
|
@@ -586,93 +415,7 @@ export const ResponseScope = {
|
|
|
586
415
|
ENTERPRISE_CONTENT_ONLY: "ENTERPRISE_CONTENT_ONLY",
|
|
587
416
|
EXTENDED_KNOWLEDGE_ENABLED: "EXTENDED_KNOWLEDGE_ENABLED",
|
|
588
417
|
};
|
|
589
|
-
export var RuleConfiguration;
|
|
590
|
-
(function (RuleConfiguration) {
|
|
591
|
-
RuleConfiguration.visit = (value, visitor) => {
|
|
592
|
-
if (value.contentBlockerRule !== undefined)
|
|
593
|
-
return visitor.contentBlockerRule(value.contentBlockerRule);
|
|
594
|
-
if (value.contentRetrievalRule !== undefined)
|
|
595
|
-
return visitor.contentRetrievalRule(value.contentRetrievalRule);
|
|
596
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
597
|
-
};
|
|
598
|
-
})(RuleConfiguration || (RuleConfiguration = {}));
|
|
599
418
|
export const RuleType = {
|
|
600
419
|
CONTENT_BLOCKER_RULE: "CONTENT_BLOCKER_RULE",
|
|
601
420
|
CONTENT_RETRIEVAL_RULE: "CONTENT_RETRIEVAL_RULE",
|
|
602
421
|
};
|
|
603
|
-
export const APISchemaFilterSensitiveLog = (obj) => {
|
|
604
|
-
if (obj.payload !== undefined)
|
|
605
|
-
return { payload: SENSITIVE_STRING };
|
|
606
|
-
if (obj.s3 !== undefined)
|
|
607
|
-
return { s3: obj.s3 };
|
|
608
|
-
if (obj.$unknown !== undefined)
|
|
609
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
610
|
-
};
|
|
611
|
-
export const EncryptionConfigurationFilterSensitiveLog = (obj) => ({
|
|
612
|
-
...obj,
|
|
613
|
-
...(obj.kmsKeyId && { kmsKeyId: SENSITIVE_STRING }),
|
|
614
|
-
});
|
|
615
|
-
export const CreateApplicationRequestFilterSensitiveLog = (obj) => ({
|
|
616
|
-
...obj,
|
|
617
|
-
...(obj.encryptionConfiguration && {
|
|
618
|
-
encryptionConfiguration: EncryptionConfigurationFilterSensitiveLog(obj.encryptionConfiguration),
|
|
619
|
-
}),
|
|
620
|
-
});
|
|
621
|
-
export const DataAccessorFilterSensitiveLog = (obj) => ({
|
|
622
|
-
...obj,
|
|
623
|
-
...(obj.displayName && { displayName: SENSITIVE_STRING }),
|
|
624
|
-
...(obj.authenticationDetail && { authenticationDetail: obj.authenticationDetail }),
|
|
625
|
-
});
|
|
626
|
-
export const ListDataAccessorsResponseFilterSensitiveLog = (obj) => ({
|
|
627
|
-
...obj,
|
|
628
|
-
...(obj.dataAccessors && { dataAccessors: obj.dataAccessors.map((item) => DataAccessorFilterSensitiveLog(item)) }),
|
|
629
|
-
});
|
|
630
|
-
export const GetApplicationResponseFilterSensitiveLog = (obj) => ({
|
|
631
|
-
...obj,
|
|
632
|
-
...(obj.encryptionConfiguration && {
|
|
633
|
-
encryptionConfiguration: EncryptionConfigurationFilterSensitiveLog(obj.encryptionConfiguration),
|
|
634
|
-
}),
|
|
635
|
-
});
|
|
636
|
-
export const CustomPluginConfigurationFilterSensitiveLog = (obj) => ({
|
|
637
|
-
...obj,
|
|
638
|
-
...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
|
|
639
|
-
});
|
|
640
|
-
export const CreatePluginRequestFilterSensitiveLog = (obj) => ({
|
|
641
|
-
...obj,
|
|
642
|
-
...(obj.authConfiguration && { authConfiguration: obj.authConfiguration }),
|
|
643
|
-
...(obj.customPluginConfiguration && {
|
|
644
|
-
customPluginConfiguration: CustomPluginConfigurationFilterSensitiveLog(obj.customPluginConfiguration),
|
|
645
|
-
}),
|
|
646
|
-
});
|
|
647
|
-
export const GetPluginResponseFilterSensitiveLog = (obj) => ({
|
|
648
|
-
...obj,
|
|
649
|
-
...(obj.authConfiguration && { authConfiguration: obj.authConfiguration }),
|
|
650
|
-
...(obj.customPluginConfiguration && {
|
|
651
|
-
customPluginConfiguration: CustomPluginConfigurationFilterSensitiveLog(obj.customPluginConfiguration),
|
|
652
|
-
}),
|
|
653
|
-
});
|
|
654
|
-
export const UpdatePluginRequestFilterSensitiveLog = (obj) => ({
|
|
655
|
-
...obj,
|
|
656
|
-
...(obj.customPluginConfiguration && {
|
|
657
|
-
customPluginConfiguration: CustomPluginConfigurationFilterSensitiveLog(obj.customPluginConfiguration),
|
|
658
|
-
}),
|
|
659
|
-
...(obj.authConfiguration && { authConfiguration: obj.authConfiguration }),
|
|
660
|
-
});
|
|
661
|
-
export const ChatOutputStreamFilterSensitiveLog = (obj) => {
|
|
662
|
-
if (obj.textEvent !== undefined)
|
|
663
|
-
return { textEvent: obj.textEvent };
|
|
664
|
-
if (obj.metadataEvent !== undefined)
|
|
665
|
-
return { metadataEvent: obj.metadataEvent };
|
|
666
|
-
if (obj.actionReviewEvent !== undefined)
|
|
667
|
-
return { actionReviewEvent: obj.actionReviewEvent };
|
|
668
|
-
if (obj.failedAttachmentEvent !== undefined)
|
|
669
|
-
return { failedAttachmentEvent: obj.failedAttachmentEvent };
|
|
670
|
-
if (obj.authChallengeRequestEvent !== undefined)
|
|
671
|
-
return { authChallengeRequestEvent: obj.authChallengeRequestEvent };
|
|
672
|
-
if (obj.$unknown !== undefined)
|
|
673
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
674
|
-
};
|
|
675
|
-
export const ChatOutputFilterSensitiveLog = (obj) => ({
|
|
676
|
-
...obj,
|
|
677
|
-
...(obj.outputStream && { outputStream: "STREAMING_CONTENT" }),
|
|
678
|
-
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { QBusinessServiceException as __BaseException } from "./QBusinessServiceException";
|
|
3
2
|
export const OutputFormat = {
|
|
4
3
|
EXTRACTED: "EXTRACTED",
|
|
@@ -59,59 +58,3 @@ export const ScoreConfidence = {
|
|
|
59
58
|
NOT_AVAILABLE: "NOT_AVAILABLE",
|
|
60
59
|
VERY_HIGH: "VERY_HIGH",
|
|
61
60
|
};
|
|
62
|
-
export var ChatInputStream;
|
|
63
|
-
(function (ChatInputStream) {
|
|
64
|
-
ChatInputStream.visit = (value, visitor) => {
|
|
65
|
-
if (value.configurationEvent !== undefined)
|
|
66
|
-
return visitor.configurationEvent(value.configurationEvent);
|
|
67
|
-
if (value.textEvent !== undefined)
|
|
68
|
-
return visitor.textEvent(value.textEvent);
|
|
69
|
-
if (value.attachmentEvent !== undefined)
|
|
70
|
-
return visitor.attachmentEvent(value.attachmentEvent);
|
|
71
|
-
if (value.actionExecutionEvent !== undefined)
|
|
72
|
-
return visitor.actionExecutionEvent(value.actionExecutionEvent);
|
|
73
|
-
if (value.endOfInputEvent !== undefined)
|
|
74
|
-
return visitor.endOfInputEvent(value.endOfInputEvent);
|
|
75
|
-
if (value.authChallengeResponseEvent !== undefined)
|
|
76
|
-
return visitor.authChallengeResponseEvent(value.authChallengeResponseEvent);
|
|
77
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
|
-
};
|
|
79
|
-
})(ChatInputStream || (ChatInputStream = {}));
|
|
80
|
-
export const ChatInputStreamFilterSensitiveLog = (obj) => {
|
|
81
|
-
if (obj.configurationEvent !== undefined)
|
|
82
|
-
return { configurationEvent: obj.configurationEvent };
|
|
83
|
-
if (obj.textEvent !== undefined)
|
|
84
|
-
return { textEvent: obj.textEvent };
|
|
85
|
-
if (obj.attachmentEvent !== undefined)
|
|
86
|
-
return { attachmentEvent: obj.attachmentEvent };
|
|
87
|
-
if (obj.actionExecutionEvent !== undefined)
|
|
88
|
-
return { actionExecutionEvent: obj.actionExecutionEvent };
|
|
89
|
-
if (obj.endOfInputEvent !== undefined)
|
|
90
|
-
return { endOfInputEvent: obj.endOfInputEvent };
|
|
91
|
-
if (obj.authChallengeResponseEvent !== undefined)
|
|
92
|
-
return { authChallengeResponseEvent: obj.authChallengeResponseEvent };
|
|
93
|
-
if (obj.$unknown !== undefined)
|
|
94
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
95
|
-
};
|
|
96
|
-
export const ChatInputFilterSensitiveLog = (obj) => ({
|
|
97
|
-
...obj,
|
|
98
|
-
...(obj.inputStream && { inputStream: "STREAMING_CONTENT" }),
|
|
99
|
-
});
|
|
100
|
-
export const CreateDataAccessorRequestFilterSensitiveLog = (obj) => ({
|
|
101
|
-
...obj,
|
|
102
|
-
...(obj.actionConfigurations && { actionConfigurations: obj.actionConfigurations.map((item) => item) }),
|
|
103
|
-
...(obj.displayName && { displayName: SENSITIVE_STRING }),
|
|
104
|
-
...(obj.authenticationDetail && { authenticationDetail: obj.authenticationDetail }),
|
|
105
|
-
});
|
|
106
|
-
export const GetDataAccessorResponseFilterSensitiveLog = (obj) => ({
|
|
107
|
-
...obj,
|
|
108
|
-
...(obj.displayName && { displayName: SENSITIVE_STRING }),
|
|
109
|
-
...(obj.actionConfigurations && { actionConfigurations: obj.actionConfigurations.map((item) => item) }),
|
|
110
|
-
...(obj.authenticationDetail && { authenticationDetail: obj.authenticationDetail }),
|
|
111
|
-
});
|
|
112
|
-
export const UpdateDataAccessorRequestFilterSensitiveLog = (obj) => ({
|
|
113
|
-
...obj,
|
|
114
|
-
...(obj.actionConfigurations && { actionConfigurations: obj.actionConfigurations.map((item) => item) }),
|
|
115
|
-
...(obj.authenticationDetail && { authenticationDetail: obj.authenticationDetail }),
|
|
116
|
-
...(obj.displayName && { displayName: SENSITIVE_STRING }),
|
|
117
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.qbusiness" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "QBusiness",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|