@aws-sdk/client-qbusiness 3.564.0 → 3.566.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 -3
- package/dist-cjs/index.js +434 -9
- package/dist-cjs/runtimeConfig.browser.js +4 -0
- package/dist-cjs/runtimeConfig.js +4 -0
- package/dist-cjs/runtimeConfig.native.js +3 -0
- package/dist-es/QBusiness.js +2 -0
- package/dist-es/QBusinessClient.js +8 -4
- package/dist-es/commands/ChatCommand.js +32 -0
- package/dist-es/commands/CreatePluginCommand.js +2 -1
- package/dist-es/commands/GetPluginCommand.js +2 -1
- package/dist-es/commands/UpdatePluginCommand.js +2 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +134 -0
- package/dist-es/protocols/Aws_restJson1.js +225 -1
- package/dist-es/runtimeConfig.browser.js +5 -1
- package/dist-es/runtimeConfig.js +4 -0
- package/dist-es/runtimeConfig.native.js +3 -0
- package/dist-types/QBusiness.d.ts +8 -4
- package/dist-types/QBusinessClient.d.ts +19 -9
- package/dist-types/commands/ChatCommand.d.ts +281 -0
- package/dist-types/commands/ChatSyncCommand.d.ts +14 -1
- package/dist-types/commands/CreateApplicationCommand.d.ts +8 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +1 -0
- package/dist-types/commands/CreatePluginCommand.d.ts +15 -2
- package/dist-types/commands/GetIndexCommand.d.ts +1 -0
- package/dist-types/commands/GetPluginCommand.d.ts +14 -1
- package/dist-types/commands/ListMessagesCommand.d.ts +6 -1
- package/dist-types/commands/ListPluginsCommand.d.ts +2 -1
- package/dist-types/commands/UpdateApplicationCommand.d.ts +1 -0
- package/dist-types/commands/UpdatePluginCommand.d.ts +12 -0
- package/dist-types/commands/UpdateWebExperienceCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -4
- package/dist-types/models/models_0.d.ts +867 -47
- package/dist-types/protocols/Aws_restJson1.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/QBusiness.d.ts +14 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +19 -0
- package/dist-types/ts3.4/commands/ChatCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +333 -11
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +13 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +7 -2
|
@@ -79,6 +79,11 @@ export interface ActionExecution {
|
|
|
79
79
|
payload: Record<string, ActionExecutionPayloadField> | undefined;
|
|
80
80
|
payloadFieldNameSeparator: string | undefined;
|
|
81
81
|
}
|
|
82
|
+
export interface ActionExecutionEvent {
|
|
83
|
+
pluginId: string | undefined;
|
|
84
|
+
payload: Record<string, ActionExecutionPayloadField> | undefined;
|
|
85
|
+
payloadFieldNameSeparator: string | undefined;
|
|
86
|
+
}
|
|
82
87
|
export declare const ActionPayloadFieldType: {
|
|
83
88
|
readonly ARRAY: "ARRAY";
|
|
84
89
|
readonly BOOLEAN: "BOOLEAN";
|
|
@@ -94,12 +99,15 @@ export interface ActionReviewPayloadFieldAllowedValue {
|
|
|
94
99
|
export interface ActionReviewPayloadField {
|
|
95
100
|
displayName?: string;
|
|
96
101
|
displayOrder?: number;
|
|
102
|
+
displayDescription?: string;
|
|
97
103
|
type?: ActionPayloadFieldType;
|
|
98
104
|
value?: __DocumentType;
|
|
99
105
|
allowedValues?: ActionReviewPayloadFieldAllowedValue[];
|
|
106
|
+
allowedFormat?: string;
|
|
100
107
|
required?: boolean;
|
|
101
108
|
}
|
|
102
109
|
export declare const PluginType: {
|
|
110
|
+
readonly CUSTOM: "CUSTOM";
|
|
103
111
|
readonly JIRA: "JIRA";
|
|
104
112
|
readonly SALESFORCE: "SALESFORCE";
|
|
105
113
|
readonly SERVICE_NOW: "SERVICE_NOW";
|
|
@@ -112,6 +120,50 @@ export interface ActionReview {
|
|
|
112
120
|
payload?: Record<string, ActionReviewPayloadField>;
|
|
113
121
|
payloadFieldNameSeparator?: string;
|
|
114
122
|
}
|
|
123
|
+
export interface ActionReviewEvent {
|
|
124
|
+
conversationId?: string;
|
|
125
|
+
userMessageId?: string;
|
|
126
|
+
systemMessageId?: string;
|
|
127
|
+
pluginId?: string;
|
|
128
|
+
pluginType?: PluginType;
|
|
129
|
+
payload?: Record<string, ActionReviewPayloadField>;
|
|
130
|
+
payloadFieldNameSeparator?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface S3 {
|
|
133
|
+
bucket: string | undefined;
|
|
134
|
+
key: string | undefined;
|
|
135
|
+
}
|
|
136
|
+
export type APISchema =
|
|
137
|
+
| APISchema.PayloadMember
|
|
138
|
+
| APISchema.S3Member
|
|
139
|
+
| APISchema.$UnknownMember;
|
|
140
|
+
export declare namespace APISchema {
|
|
141
|
+
interface PayloadMember {
|
|
142
|
+
payload: string;
|
|
143
|
+
s3?: never;
|
|
144
|
+
$unknown?: never;
|
|
145
|
+
}
|
|
146
|
+
interface S3Member {
|
|
147
|
+
payload?: never;
|
|
148
|
+
s3: S3;
|
|
149
|
+
$unknown?: never;
|
|
150
|
+
}
|
|
151
|
+
interface $UnknownMember {
|
|
152
|
+
payload?: never;
|
|
153
|
+
s3?: never;
|
|
154
|
+
$unknown: [string, any];
|
|
155
|
+
}
|
|
156
|
+
interface Visitor<T> {
|
|
157
|
+
payload: (value: string) => T;
|
|
158
|
+
s3: (value: S3) => T;
|
|
159
|
+
_: (name: string, value: any) => T;
|
|
160
|
+
}
|
|
161
|
+
const visit: <T>(value: APISchema, visitor: Visitor<T>) => T;
|
|
162
|
+
}
|
|
163
|
+
export declare const APISchemaType: {
|
|
164
|
+
readonly OPEN_API_V3: "OPEN_API_V3";
|
|
165
|
+
};
|
|
166
|
+
export type APISchemaType = (typeof APISchemaType)[keyof typeof APISchemaType];
|
|
115
167
|
export declare const ApplicationStatus: {
|
|
116
168
|
readonly ACTIVE: "ACTIVE";
|
|
117
169
|
readonly CREATING: "CREATING";
|
|
@@ -153,7 +205,7 @@ export interface Tag {
|
|
|
153
205
|
}
|
|
154
206
|
export interface CreateApplicationRequest {
|
|
155
207
|
displayName: string | undefined;
|
|
156
|
-
roleArn
|
|
208
|
+
roleArn?: string;
|
|
157
209
|
identityCenterInstanceArn?: string;
|
|
158
210
|
description?: string;
|
|
159
211
|
encryptionConfiguration?: EncryptionConfiguration;
|
|
@@ -255,9 +307,15 @@ export interface GetApplicationResponse {
|
|
|
255
307
|
export interface IndexCapacityConfiguration {
|
|
256
308
|
units?: number;
|
|
257
309
|
}
|
|
310
|
+
export declare const IndexType: {
|
|
311
|
+
readonly ENTERPRISE: "ENTERPRISE";
|
|
312
|
+
readonly STARTER: "STARTER";
|
|
313
|
+
};
|
|
314
|
+
export type IndexType = (typeof IndexType)[keyof typeof IndexType];
|
|
258
315
|
export interface CreateIndexRequest {
|
|
259
316
|
applicationId: string | undefined;
|
|
260
317
|
displayName: string | undefined;
|
|
318
|
+
type?: IndexType;
|
|
261
319
|
description?: string;
|
|
262
320
|
tags?: Tag[];
|
|
263
321
|
capacityConfiguration?: IndexCapacityConfiguration;
|
|
@@ -505,6 +563,7 @@ export interface GetIndexResponse {
|
|
|
505
563
|
applicationId?: string;
|
|
506
564
|
indexId?: string;
|
|
507
565
|
displayName?: string;
|
|
566
|
+
type?: IndexType;
|
|
508
567
|
indexArn?: string;
|
|
509
568
|
status?: IndexStatus;
|
|
510
569
|
description?: string;
|
|
@@ -552,28 +611,39 @@ export interface BasicAuthConfiguration {
|
|
|
552
611
|
secretArn: string | undefined;
|
|
553
612
|
roleArn: string | undefined;
|
|
554
613
|
}
|
|
614
|
+
export interface NoAuthConfiguration {}
|
|
555
615
|
export interface OAuth2ClientCredentialConfiguration {
|
|
556
616
|
secretArn: string | undefined;
|
|
557
617
|
roleArn: string | undefined;
|
|
558
618
|
}
|
|
559
619
|
export type PluginAuthConfiguration =
|
|
560
620
|
| PluginAuthConfiguration.BasicAuthConfigurationMember
|
|
621
|
+
| PluginAuthConfiguration.NoAuthConfigurationMember
|
|
561
622
|
| PluginAuthConfiguration.OAuth2ClientCredentialConfigurationMember
|
|
562
623
|
| PluginAuthConfiguration.$UnknownMember;
|
|
563
624
|
export declare namespace PluginAuthConfiguration {
|
|
564
625
|
interface BasicAuthConfigurationMember {
|
|
565
626
|
basicAuthConfiguration: BasicAuthConfiguration;
|
|
566
627
|
oAuth2ClientCredentialConfiguration?: never;
|
|
628
|
+
noAuthConfiguration?: never;
|
|
567
629
|
$unknown?: never;
|
|
568
630
|
}
|
|
569
631
|
interface OAuth2ClientCredentialConfigurationMember {
|
|
570
632
|
basicAuthConfiguration?: never;
|
|
571
633
|
oAuth2ClientCredentialConfiguration: OAuth2ClientCredentialConfiguration;
|
|
634
|
+
noAuthConfiguration?: never;
|
|
635
|
+
$unknown?: never;
|
|
636
|
+
}
|
|
637
|
+
interface NoAuthConfigurationMember {
|
|
638
|
+
basicAuthConfiguration?: never;
|
|
639
|
+
oAuth2ClientCredentialConfiguration?: never;
|
|
640
|
+
noAuthConfiguration: NoAuthConfiguration;
|
|
572
641
|
$unknown?: never;
|
|
573
642
|
}
|
|
574
643
|
interface $UnknownMember {
|
|
575
644
|
basicAuthConfiguration?: never;
|
|
576
645
|
oAuth2ClientCredentialConfiguration?: never;
|
|
646
|
+
noAuthConfiguration?: never;
|
|
577
647
|
$unknown: [string, any];
|
|
578
648
|
}
|
|
579
649
|
interface Visitor<T> {
|
|
@@ -581,22 +651,41 @@ export declare namespace PluginAuthConfiguration {
|
|
|
581
651
|
oAuth2ClientCredentialConfiguration: (
|
|
582
652
|
value: OAuth2ClientCredentialConfiguration
|
|
583
653
|
) => T;
|
|
654
|
+
noAuthConfiguration: (value: NoAuthConfiguration) => T;
|
|
584
655
|
_: (name: string, value: any) => T;
|
|
585
656
|
}
|
|
586
657
|
const visit: <T>(value: PluginAuthConfiguration, visitor: Visitor<T>) => T;
|
|
587
658
|
}
|
|
659
|
+
export interface CustomPluginConfiguration {
|
|
660
|
+
description: string | undefined;
|
|
661
|
+
apiSchemaType: APISchemaType | undefined;
|
|
662
|
+
apiSchema: APISchema | undefined;
|
|
663
|
+
}
|
|
588
664
|
export interface CreatePluginRequest {
|
|
589
665
|
applicationId: string | undefined;
|
|
590
666
|
displayName: string | undefined;
|
|
591
667
|
type: PluginType | undefined;
|
|
592
|
-
serverUrl: string | undefined;
|
|
593
668
|
authConfiguration: PluginAuthConfiguration | undefined;
|
|
669
|
+
serverUrl?: string;
|
|
670
|
+
customPluginConfiguration?: CustomPluginConfiguration;
|
|
594
671
|
tags?: Tag[];
|
|
595
672
|
clientToken?: string;
|
|
596
673
|
}
|
|
674
|
+
export declare const PluginBuildStatus: {
|
|
675
|
+
readonly CREATE_FAILED: "CREATE_FAILED";
|
|
676
|
+
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
677
|
+
readonly DELETE_FAILED: "DELETE_FAILED";
|
|
678
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
679
|
+
readonly READY: "READY";
|
|
680
|
+
readonly UPDATE_FAILED: "UPDATE_FAILED";
|
|
681
|
+
readonly UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS";
|
|
682
|
+
};
|
|
683
|
+
export type PluginBuildStatus =
|
|
684
|
+
(typeof PluginBuildStatus)[keyof typeof PluginBuildStatus];
|
|
597
685
|
export interface CreatePluginResponse {
|
|
598
686
|
pluginId?: string;
|
|
599
687
|
pluginArn?: string;
|
|
688
|
+
buildStatus?: PluginBuildStatus;
|
|
600
689
|
}
|
|
601
690
|
export interface DeletePluginRequest {
|
|
602
691
|
applicationId: string | undefined;
|
|
@@ -619,6 +708,8 @@ export interface GetPluginResponse {
|
|
|
619
708
|
type?: PluginType;
|
|
620
709
|
serverUrl?: string;
|
|
621
710
|
authConfiguration?: PluginAuthConfiguration;
|
|
711
|
+
customPluginConfiguration?: CustomPluginConfiguration;
|
|
712
|
+
buildStatus?: PluginBuildStatus;
|
|
622
713
|
pluginArn?: string;
|
|
623
714
|
state?: PluginState;
|
|
624
715
|
createdAt?: Date;
|
|
@@ -635,6 +726,7 @@ export interface Plugin {
|
|
|
635
726
|
type?: PluginType;
|
|
636
727
|
serverUrl?: string;
|
|
637
728
|
state?: PluginState;
|
|
729
|
+
buildStatus?: PluginBuildStatus;
|
|
638
730
|
createdAt?: Date;
|
|
639
731
|
updatedAt?: Date;
|
|
640
732
|
}
|
|
@@ -648,6 +740,7 @@ export interface UpdatePluginRequest {
|
|
|
648
740
|
displayName?: string;
|
|
649
741
|
state?: PluginState;
|
|
650
742
|
serverUrl?: string;
|
|
743
|
+
customPluginConfiguration?: CustomPluginConfiguration;
|
|
651
744
|
authConfiguration?: PluginAuthConfiguration;
|
|
652
745
|
}
|
|
653
746
|
export interface UpdatePluginResponse {}
|
|
@@ -851,6 +944,7 @@ export interface UpdateRetrieverRequest {
|
|
|
851
944
|
export interface UpdateRetrieverResponse {}
|
|
852
945
|
export interface UpdateApplicationRequest {
|
|
853
946
|
applicationId: string | undefined;
|
|
947
|
+
identityCenterInstanceArn?: string;
|
|
854
948
|
displayName?: string;
|
|
855
949
|
description?: string;
|
|
856
950
|
roleArn?: string;
|
|
@@ -957,6 +1051,7 @@ export interface ListWebExperiencesResponse {
|
|
|
957
1051
|
export interface UpdateWebExperienceRequest {
|
|
958
1052
|
applicationId: string | undefined;
|
|
959
1053
|
webExperienceId: string | undefined;
|
|
1054
|
+
roleArn?: string;
|
|
960
1055
|
authenticationConfiguration?: WebExperienceAuthConfiguration;
|
|
961
1056
|
title?: string;
|
|
962
1057
|
subtitle?: string;
|
|
@@ -977,6 +1072,9 @@ export interface AttachmentInput {
|
|
|
977
1072
|
name: string | undefined;
|
|
978
1073
|
data: Uint8Array | undefined;
|
|
979
1074
|
}
|
|
1075
|
+
export interface AttachmentInputEvent {
|
|
1076
|
+
attachment?: AttachmentInput;
|
|
1077
|
+
}
|
|
980
1078
|
export declare const AttachmentStatus: {
|
|
981
1079
|
readonly FAILED: "FAILED";
|
|
982
1080
|
readonly SUCCEEDED: "SUCCEEDED";
|
|
@@ -992,6 +1090,18 @@ export interface DocumentAttribute {
|
|
|
992
1090
|
name: string | undefined;
|
|
993
1091
|
value: DocumentAttributeValue | undefined;
|
|
994
1092
|
}
|
|
1093
|
+
export interface AuthChallengeRequest {
|
|
1094
|
+
authorizationUrl: string | undefined;
|
|
1095
|
+
}
|
|
1096
|
+
export interface AuthChallengeRequestEvent {
|
|
1097
|
+
authorizationUrl: string | undefined;
|
|
1098
|
+
}
|
|
1099
|
+
export interface AuthChallengeResponse {
|
|
1100
|
+
responseMap: Record<string, string> | undefined;
|
|
1101
|
+
}
|
|
1102
|
+
export interface AuthChallengeResponseEvent {
|
|
1103
|
+
responseMap: Record<string, string> | undefined;
|
|
1104
|
+
}
|
|
995
1105
|
export interface DeleteDocument {
|
|
996
1106
|
documentId: string | undefined;
|
|
997
1107
|
}
|
|
@@ -1009,10 +1119,6 @@ export interface FailedDocument {
|
|
|
1009
1119
|
export interface BatchDeleteDocumentResponse {
|
|
1010
1120
|
failedDocuments?: FailedDocument[];
|
|
1011
1121
|
}
|
|
1012
|
-
export interface S3 {
|
|
1013
|
-
bucket: string | undefined;
|
|
1014
|
-
key: string | undefined;
|
|
1015
|
-
}
|
|
1016
1122
|
export type DocumentContent =
|
|
1017
1123
|
| DocumentContent.BlobMember
|
|
1018
1124
|
| DocumentContent.S3Member
|
|
@@ -1110,9 +1216,23 @@ export declare namespace ChatModeConfiguration {
|
|
|
1110
1216
|
}
|
|
1111
1217
|
const visit: <T>(value: ChatModeConfiguration, visitor: Visitor<T>) => T;
|
|
1112
1218
|
}
|
|
1219
|
+
export interface EndOfInputEvent {}
|
|
1220
|
+
export interface TextInputEvent {
|
|
1221
|
+
userMessage: string | undefined;
|
|
1222
|
+
}
|
|
1223
|
+
export interface FailedAttachmentEvent {
|
|
1224
|
+
conversationId?: string;
|
|
1225
|
+
userMessageId?: string;
|
|
1226
|
+
systemMessageId?: string;
|
|
1227
|
+
attachment?: AttachmentOutput;
|
|
1228
|
+
}
|
|
1229
|
+
export interface SnippetExcerpt {
|
|
1230
|
+
text?: string;
|
|
1231
|
+
}
|
|
1113
1232
|
export interface TextSegment {
|
|
1114
1233
|
beginOffset?: number;
|
|
1115
1234
|
endOffset?: number;
|
|
1235
|
+
snippetExcerpt?: SnippetExcerpt;
|
|
1116
1236
|
}
|
|
1117
1237
|
export interface SourceAttribution {
|
|
1118
1238
|
title?: string;
|
|
@@ -1122,14 +1242,87 @@ export interface SourceAttribution {
|
|
|
1122
1242
|
updatedAt?: Date;
|
|
1123
1243
|
textMessageSegments?: TextSegment[];
|
|
1124
1244
|
}
|
|
1125
|
-
export interface
|
|
1245
|
+
export interface MetadataEvent {
|
|
1126
1246
|
conversationId?: string;
|
|
1127
|
-
systemMessage?: string;
|
|
1128
|
-
systemMessageId?: string;
|
|
1129
1247
|
userMessageId?: string;
|
|
1130
|
-
|
|
1248
|
+
systemMessageId?: string;
|
|
1131
1249
|
sourceAttributions?: SourceAttribution[];
|
|
1132
|
-
|
|
1250
|
+
finalTextMessage?: string;
|
|
1251
|
+
}
|
|
1252
|
+
export interface TextOutputEvent {
|
|
1253
|
+
conversationId?: string;
|
|
1254
|
+
userMessageId?: string;
|
|
1255
|
+
systemMessageId?: string;
|
|
1256
|
+
systemMessage?: string;
|
|
1257
|
+
}
|
|
1258
|
+
export type ChatOutputStream =
|
|
1259
|
+
| ChatOutputStream.ActionReviewEventMember
|
|
1260
|
+
| ChatOutputStream.AuthChallengeRequestEventMember
|
|
1261
|
+
| ChatOutputStream.FailedAttachmentEventMember
|
|
1262
|
+
| ChatOutputStream.MetadataEventMember
|
|
1263
|
+
| ChatOutputStream.TextEventMember
|
|
1264
|
+
| ChatOutputStream.$UnknownMember;
|
|
1265
|
+
export declare namespace ChatOutputStream {
|
|
1266
|
+
interface TextEventMember {
|
|
1267
|
+
textEvent: TextOutputEvent;
|
|
1268
|
+
metadataEvent?: never;
|
|
1269
|
+
actionReviewEvent?: never;
|
|
1270
|
+
failedAttachmentEvent?: never;
|
|
1271
|
+
authChallengeRequestEvent?: never;
|
|
1272
|
+
$unknown?: never;
|
|
1273
|
+
}
|
|
1274
|
+
interface MetadataEventMember {
|
|
1275
|
+
textEvent?: never;
|
|
1276
|
+
metadataEvent: MetadataEvent;
|
|
1277
|
+
actionReviewEvent?: never;
|
|
1278
|
+
failedAttachmentEvent?: never;
|
|
1279
|
+
authChallengeRequestEvent?: never;
|
|
1280
|
+
$unknown?: never;
|
|
1281
|
+
}
|
|
1282
|
+
interface ActionReviewEventMember {
|
|
1283
|
+
textEvent?: never;
|
|
1284
|
+
metadataEvent?: never;
|
|
1285
|
+
actionReviewEvent: ActionReviewEvent;
|
|
1286
|
+
failedAttachmentEvent?: never;
|
|
1287
|
+
authChallengeRequestEvent?: never;
|
|
1288
|
+
$unknown?: never;
|
|
1289
|
+
}
|
|
1290
|
+
interface FailedAttachmentEventMember {
|
|
1291
|
+
textEvent?: never;
|
|
1292
|
+
metadataEvent?: never;
|
|
1293
|
+
actionReviewEvent?: never;
|
|
1294
|
+
failedAttachmentEvent: FailedAttachmentEvent;
|
|
1295
|
+
authChallengeRequestEvent?: never;
|
|
1296
|
+
$unknown?: never;
|
|
1297
|
+
}
|
|
1298
|
+
interface AuthChallengeRequestEventMember {
|
|
1299
|
+
textEvent?: never;
|
|
1300
|
+
metadataEvent?: never;
|
|
1301
|
+
actionReviewEvent?: never;
|
|
1302
|
+
failedAttachmentEvent?: never;
|
|
1303
|
+
authChallengeRequestEvent: AuthChallengeRequestEvent;
|
|
1304
|
+
$unknown?: never;
|
|
1305
|
+
}
|
|
1306
|
+
interface $UnknownMember {
|
|
1307
|
+
textEvent?: never;
|
|
1308
|
+
metadataEvent?: never;
|
|
1309
|
+
actionReviewEvent?: never;
|
|
1310
|
+
failedAttachmentEvent?: never;
|
|
1311
|
+
authChallengeRequestEvent?: never;
|
|
1312
|
+
$unknown: [string, any];
|
|
1313
|
+
}
|
|
1314
|
+
interface Visitor<T> {
|
|
1315
|
+
textEvent: (value: TextOutputEvent) => T;
|
|
1316
|
+
metadataEvent: (value: MetadataEvent) => T;
|
|
1317
|
+
actionReviewEvent: (value: ActionReviewEvent) => T;
|
|
1318
|
+
failedAttachmentEvent: (value: FailedAttachmentEvent) => T;
|
|
1319
|
+
authChallengeRequestEvent: (value: AuthChallengeRequestEvent) => T;
|
|
1320
|
+
_: (name: string, value: any) => T;
|
|
1321
|
+
}
|
|
1322
|
+
const visit: <T>(value: ChatOutputStream, visitor: Visitor<T>) => T;
|
|
1323
|
+
}
|
|
1324
|
+
export interface ChatOutput {
|
|
1325
|
+
outputStream?: AsyncIterable<ChatOutputStream>;
|
|
1133
1326
|
}
|
|
1134
1327
|
export declare class LicenseNotFoundException extends __BaseException {
|
|
1135
1328
|
readonly name: "LicenseNotFoundException";
|
|
@@ -1138,6 +1331,16 @@ export declare class LicenseNotFoundException extends __BaseException {
|
|
|
1138
1331
|
opts: __ExceptionOptionType<LicenseNotFoundException, __BaseException>
|
|
1139
1332
|
);
|
|
1140
1333
|
}
|
|
1334
|
+
export interface ChatSyncOutput {
|
|
1335
|
+
conversationId?: string;
|
|
1336
|
+
systemMessage?: string;
|
|
1337
|
+
systemMessageId?: string;
|
|
1338
|
+
userMessageId?: string;
|
|
1339
|
+
actionReview?: ActionReview;
|
|
1340
|
+
authChallengeRequest?: AuthChallengeRequest;
|
|
1341
|
+
sourceAttributions?: SourceAttribution[];
|
|
1342
|
+
failedAttachments?: AttachmentOutput[];
|
|
1343
|
+
}
|
|
1141
1344
|
export interface ContentBlockerRule {
|
|
1142
1345
|
systemMessageOverride?: string;
|
|
1143
1346
|
}
|
|
@@ -1534,6 +1737,7 @@ export interface ChatSyncInput {
|
|
|
1534
1737
|
userMessage?: string;
|
|
1535
1738
|
attachments?: AttachmentInput[];
|
|
1536
1739
|
actionExecution?: ActionExecution;
|
|
1740
|
+
authChallengeResponse?: AuthChallengeResponse;
|
|
1537
1741
|
conversationId?: string;
|
|
1538
1742
|
parentMessageId?: string;
|
|
1539
1743
|
attributeFilter?: AttributeFilter;
|
|
@@ -1541,6 +1745,104 @@ export interface ChatSyncInput {
|
|
|
1541
1745
|
chatModeConfiguration?: ChatModeConfiguration;
|
|
1542
1746
|
clientToken?: string;
|
|
1543
1747
|
}
|
|
1748
|
+
export interface ConfigurationEvent {
|
|
1749
|
+
chatMode?: ChatMode;
|
|
1750
|
+
chatModeConfiguration?: ChatModeConfiguration;
|
|
1751
|
+
attributeFilter?: AttributeFilter;
|
|
1752
|
+
}
|
|
1753
|
+
export type ChatInputStream =
|
|
1754
|
+
| ChatInputStream.ActionExecutionEventMember
|
|
1755
|
+
| ChatInputStream.AttachmentEventMember
|
|
1756
|
+
| ChatInputStream.AuthChallengeResponseEventMember
|
|
1757
|
+
| ChatInputStream.ConfigurationEventMember
|
|
1758
|
+
| ChatInputStream.EndOfInputEventMember
|
|
1759
|
+
| ChatInputStream.TextEventMember
|
|
1760
|
+
| ChatInputStream.$UnknownMember;
|
|
1761
|
+
export declare namespace ChatInputStream {
|
|
1762
|
+
interface ConfigurationEventMember {
|
|
1763
|
+
configurationEvent: ConfigurationEvent;
|
|
1764
|
+
textEvent?: never;
|
|
1765
|
+
attachmentEvent?: never;
|
|
1766
|
+
actionExecutionEvent?: never;
|
|
1767
|
+
endOfInputEvent?: never;
|
|
1768
|
+
authChallengeResponseEvent?: never;
|
|
1769
|
+
$unknown?: never;
|
|
1770
|
+
}
|
|
1771
|
+
interface TextEventMember {
|
|
1772
|
+
configurationEvent?: never;
|
|
1773
|
+
textEvent: TextInputEvent;
|
|
1774
|
+
attachmentEvent?: never;
|
|
1775
|
+
actionExecutionEvent?: never;
|
|
1776
|
+
endOfInputEvent?: never;
|
|
1777
|
+
authChallengeResponseEvent?: never;
|
|
1778
|
+
$unknown?: never;
|
|
1779
|
+
}
|
|
1780
|
+
interface AttachmentEventMember {
|
|
1781
|
+
configurationEvent?: never;
|
|
1782
|
+
textEvent?: never;
|
|
1783
|
+
attachmentEvent: AttachmentInputEvent;
|
|
1784
|
+
actionExecutionEvent?: never;
|
|
1785
|
+
endOfInputEvent?: never;
|
|
1786
|
+
authChallengeResponseEvent?: never;
|
|
1787
|
+
$unknown?: never;
|
|
1788
|
+
}
|
|
1789
|
+
interface ActionExecutionEventMember {
|
|
1790
|
+
configurationEvent?: never;
|
|
1791
|
+
textEvent?: never;
|
|
1792
|
+
attachmentEvent?: never;
|
|
1793
|
+
actionExecutionEvent: ActionExecutionEvent;
|
|
1794
|
+
endOfInputEvent?: never;
|
|
1795
|
+
authChallengeResponseEvent?: never;
|
|
1796
|
+
$unknown?: never;
|
|
1797
|
+
}
|
|
1798
|
+
interface EndOfInputEventMember {
|
|
1799
|
+
configurationEvent?: never;
|
|
1800
|
+
textEvent?: never;
|
|
1801
|
+
attachmentEvent?: never;
|
|
1802
|
+
actionExecutionEvent?: never;
|
|
1803
|
+
endOfInputEvent: EndOfInputEvent;
|
|
1804
|
+
authChallengeResponseEvent?: never;
|
|
1805
|
+
$unknown?: never;
|
|
1806
|
+
}
|
|
1807
|
+
interface AuthChallengeResponseEventMember {
|
|
1808
|
+
configurationEvent?: never;
|
|
1809
|
+
textEvent?: never;
|
|
1810
|
+
attachmentEvent?: never;
|
|
1811
|
+
actionExecutionEvent?: never;
|
|
1812
|
+
endOfInputEvent?: never;
|
|
1813
|
+
authChallengeResponseEvent: AuthChallengeResponseEvent;
|
|
1814
|
+
$unknown?: never;
|
|
1815
|
+
}
|
|
1816
|
+
interface $UnknownMember {
|
|
1817
|
+
configurationEvent?: never;
|
|
1818
|
+
textEvent?: never;
|
|
1819
|
+
attachmentEvent?: never;
|
|
1820
|
+
actionExecutionEvent?: never;
|
|
1821
|
+
endOfInputEvent?: never;
|
|
1822
|
+
authChallengeResponseEvent?: never;
|
|
1823
|
+
$unknown: [string, any];
|
|
1824
|
+
}
|
|
1825
|
+
interface Visitor<T> {
|
|
1826
|
+
configurationEvent: (value: ConfigurationEvent) => T;
|
|
1827
|
+
textEvent: (value: TextInputEvent) => T;
|
|
1828
|
+
attachmentEvent: (value: AttachmentInputEvent) => T;
|
|
1829
|
+
actionExecutionEvent: (value: ActionExecutionEvent) => T;
|
|
1830
|
+
endOfInputEvent: (value: EndOfInputEvent) => T;
|
|
1831
|
+
authChallengeResponseEvent: (value: AuthChallengeResponseEvent) => T;
|
|
1832
|
+
_: (name: string, value: any) => T;
|
|
1833
|
+
}
|
|
1834
|
+
const visit: <T>(value: ChatInputStream, visitor: Visitor<T>) => T;
|
|
1835
|
+
}
|
|
1836
|
+
export interface ChatInput {
|
|
1837
|
+
applicationId: string | undefined;
|
|
1838
|
+
userId?: string;
|
|
1839
|
+
userGroups?: string[];
|
|
1840
|
+
conversationId?: string;
|
|
1841
|
+
parentMessageId?: string;
|
|
1842
|
+
clientToken?: string;
|
|
1843
|
+
inputStream?: AsyncIterable<ChatInputStream>;
|
|
1844
|
+
}
|
|
1845
|
+
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
1544
1846
|
export declare const EncryptionConfigurationFilterSensitiveLog: (
|
|
1545
1847
|
obj: EncryptionConfiguration
|
|
1546
1848
|
) => any;
|
|
@@ -1550,3 +1852,23 @@ export declare const CreateApplicationRequestFilterSensitiveLog: (
|
|
|
1550
1852
|
export declare const GetApplicationResponseFilterSensitiveLog: (
|
|
1551
1853
|
obj: GetApplicationResponse
|
|
1552
1854
|
) => any;
|
|
1855
|
+
export declare const CustomPluginConfigurationFilterSensitiveLog: (
|
|
1856
|
+
obj: CustomPluginConfiguration
|
|
1857
|
+
) => any;
|
|
1858
|
+
export declare const CreatePluginRequestFilterSensitiveLog: (
|
|
1859
|
+
obj: CreatePluginRequest
|
|
1860
|
+
) => any;
|
|
1861
|
+
export declare const GetPluginResponseFilterSensitiveLog: (
|
|
1862
|
+
obj: GetPluginResponse
|
|
1863
|
+
) => any;
|
|
1864
|
+
export declare const UpdatePluginRequestFilterSensitiveLog: (
|
|
1865
|
+
obj: UpdatePluginRequest
|
|
1866
|
+
) => any;
|
|
1867
|
+
export declare const ChatOutputStreamFilterSensitiveLog: (
|
|
1868
|
+
obj: ChatOutputStream
|
|
1869
|
+
) => any;
|
|
1870
|
+
export declare const ChatOutputFilterSensitiveLog: (obj: ChatOutput) => any;
|
|
1871
|
+
export declare const ChatInputStreamFilterSensitiveLog: (
|
|
1872
|
+
obj: ChatInputStream
|
|
1873
|
+
) => any;
|
|
1874
|
+
export declare const ChatInputFilterSensitiveLog: (obj: ChatInput) => any;
|
|
@@ -2,7 +2,10 @@ import {
|
|
|
2
2
|
HttpRequest as __HttpRequest,
|
|
3
3
|
HttpResponse as __HttpResponse,
|
|
4
4
|
} from "@smithy/protocol-http";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
EventStreamSerdeContext as __EventStreamSerdeContext,
|
|
7
|
+
SerdeContext as __SerdeContext,
|
|
8
|
+
} from "@smithy/types";
|
|
6
9
|
import {
|
|
7
10
|
BatchDeleteDocumentCommandInput,
|
|
8
11
|
BatchDeleteDocumentCommandOutput,
|
|
@@ -11,6 +14,7 @@ import {
|
|
|
11
14
|
BatchPutDocumentCommandInput,
|
|
12
15
|
BatchPutDocumentCommandOutput,
|
|
13
16
|
} from "../commands/BatchPutDocumentCommand";
|
|
17
|
+
import { ChatCommandInput, ChatCommandOutput } from "../commands/ChatCommand";
|
|
14
18
|
import {
|
|
15
19
|
ChatSyncCommandInput,
|
|
16
20
|
ChatSyncCommandOutput,
|
|
@@ -231,6 +235,10 @@ export declare const se_BatchPutDocumentCommand: (
|
|
|
231
235
|
input: BatchPutDocumentCommandInput,
|
|
232
236
|
context: __SerdeContext
|
|
233
237
|
) => Promise<__HttpRequest>;
|
|
238
|
+
export declare const se_ChatCommand: (
|
|
239
|
+
input: ChatCommandInput,
|
|
240
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
241
|
+
) => Promise<__HttpRequest>;
|
|
234
242
|
export declare const se_ChatSyncCommand: (
|
|
235
243
|
input: ChatSyncCommandInput,
|
|
236
244
|
context: __SerdeContext
|
|
@@ -451,6 +459,10 @@ export declare const de_BatchPutDocumentCommand: (
|
|
|
451
459
|
output: __HttpResponse,
|
|
452
460
|
context: __SerdeContext
|
|
453
461
|
) => Promise<BatchPutDocumentCommandOutput>;
|
|
462
|
+
export declare const de_ChatCommand: (
|
|
463
|
+
output: __HttpResponse,
|
|
464
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
465
|
+
) => Promise<ChatCommandOutput>;
|
|
454
466
|
export declare const de_ChatSyncCommand: (
|
|
455
467
|
output: __HttpResponse,
|
|
456
468
|
context: __SerdeContext
|
|
@@ -12,6 +12,8 @@ export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
|
|
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
13
13
|
import("@smithy/types").UserAgent
|
|
14
14
|
>;
|
|
15
|
+
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
16
|
+
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
15
17
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
16
18
|
region: string | import("@smithy/types").Provider<any>;
|
|
17
19
|
requestHandler:
|
|
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
|
|
|
16
16
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
17
17
|
import("@smithy/types").UserAgent
|
|
18
18
|
>;
|
|
19
|
+
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
20
|
+
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
19
21
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
20
22
|
region: string | import("@smithy/types").Provider<string>;
|
|
21
23
|
requestHandler:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { QBusinessClientConfig } from "./QBusinessClient";
|
|
2
2
|
export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
|
|
3
3
|
runtime: string;
|
|
4
|
+
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
4
5
|
sha256: import("@smithy/types").HashConstructor;
|
|
5
6
|
requestHandler:
|
|
6
7
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
@@ -31,6 +32,7 @@ export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
|
|
|
31
32
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
32
33
|
logger: import("@smithy/types").Logger;
|
|
33
34
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
|
+
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
34
36
|
defaultsMode:
|
|
35
37
|
| import("@smithy/smithy-client").DefaultsMode
|
|
36
38
|
| import("@smithy/types").Provider<
|
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.566.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",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
23
|
"@aws-sdk/core": "3.556.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.565.0",
|
|
25
|
+
"@aws-sdk/eventstream-handler-node": "3.535.0",
|
|
26
|
+
"@aws-sdk/middleware-eventstream": "3.535.0",
|
|
25
27
|
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
26
28
|
"@aws-sdk/middleware-logger": "3.535.0",
|
|
27
29
|
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|
|
@@ -33,6 +35,9 @@
|
|
|
33
35
|
"@aws-sdk/util-user-agent-node": "3.535.0",
|
|
34
36
|
"@smithy/config-resolver": "^2.2.0",
|
|
35
37
|
"@smithy/core": "^1.4.2",
|
|
38
|
+
"@smithy/eventstream-serde-browser": "^2.2.0",
|
|
39
|
+
"@smithy/eventstream-serde-config-resolver": "^2.2.0",
|
|
40
|
+
"@smithy/eventstream-serde-node": "^2.2.0",
|
|
36
41
|
"@smithy/fetch-http-handler": "^2.5.0",
|
|
37
42
|
"@smithy/hash-node": "^2.2.0",
|
|
38
43
|
"@smithy/invalid-dependency": "^2.2.0",
|