@aws-sdk/client-qbusiness 3.840.0 → 3.841.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 +40 -0
- package/dist-cjs/index.js +309 -27
- package/dist-es/QBusiness.js +10 -0
- package/dist-es/commands/CreateChatResponseConfigurationCommand.js +22 -0
- package/dist-es/commands/DeleteChatResponseConfigurationCommand.js +22 -0
- package/dist-es/commands/GetChatResponseConfigurationCommand.js +22 -0
- package/dist-es/commands/ListChatResponseConfigurationsCommand.js +22 -0
- package/dist-es/commands/UpdateChatResponseConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +16 -19
- package/dist-es/models/models_1.js +20 -0
- package/dist-es/pagination/ListChatResponseConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +166 -2
- package/dist-types/QBusiness.d.ts +35 -0
- package/dist-types/QBusinessClient.d.ts +7 -2
- package/dist-types/commands/CreateChatResponseConfigurationCommand.d.ts +116 -0
- package/dist-types/commands/CreateRetrieverCommand.d.ts +6 -5
- package/dist-types/commands/DeleteChatResponseConfigurationCommand.d.ts +89 -0
- package/dist-types/commands/GetChatResponseConfigurationCommand.d.ts +137 -0
- package/dist-types/commands/GetGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetMediaCommand.d.ts +1 -1
- package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetRetrieverCommand.d.ts +6 -5
- package/dist-types/commands/GetUserCommand.d.ts +1 -2
- package/dist-types/commands/ListChatResponseConfigurationsCommand.d.ts +100 -0
- package/dist-types/commands/UpdateChatResponseConfigurationCommand.d.ts +105 -0
- package/dist-types/commands/UpdateRetrieverCommand.d.ts +6 -5
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +245 -177
- package/dist-types/models/models_1.d.ts +286 -1
- package/dist-types/pagination/ListChatResponseConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/QBusiness.d.ts +85 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateChatResponseConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteChatResponseConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetChatResponseConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMediaCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListChatResponseConfigurationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateChatResponseConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +71 -51
- package/dist-types/ts3.4/models/models_1.d.ts +88 -0
- package/dist-types/ts3.4/pagination/ListChatResponseConfigurationsPaginator.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 +60 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
1
2
|
import {
|
|
2
3
|
ActionExecution,
|
|
3
4
|
ActionExecutionEvent,
|
|
@@ -12,6 +13,8 @@ import {
|
|
|
12
13
|
BlockedPhrasesConfigurationUpdate,
|
|
13
14
|
ChatMode,
|
|
14
15
|
ChatModeConfiguration,
|
|
16
|
+
ChatResponseConfiguration,
|
|
17
|
+
ChatResponseConfigurationDetail,
|
|
15
18
|
ContentSource,
|
|
16
19
|
Conversation,
|
|
17
20
|
CreatorModeConfiguration,
|
|
@@ -21,10 +24,13 @@ import {
|
|
|
21
24
|
DocumentAttribute,
|
|
22
25
|
DocumentDetails,
|
|
23
26
|
EndOfInputEvent,
|
|
27
|
+
ErrorDetail,
|
|
24
28
|
HallucinationReductionConfiguration,
|
|
25
29
|
MembershipType,
|
|
26
30
|
OrchestrationControl,
|
|
27
31
|
PluginType,
|
|
32
|
+
ResponseConfiguration,
|
|
33
|
+
ResponseConfigurationType,
|
|
28
34
|
ResponseScope,
|
|
29
35
|
S3,
|
|
30
36
|
SourceAttribution,
|
|
@@ -36,6 +42,69 @@ import {
|
|
|
36
42
|
TopicConfiguration,
|
|
37
43
|
UserAlias,
|
|
38
44
|
} from "./models_0";
|
|
45
|
+
import { QBusinessServiceException as __BaseException } from "./QBusinessServiceException";
|
|
46
|
+
export interface GetChatResponseConfigurationRequest {
|
|
47
|
+
applicationId: string | undefined;
|
|
48
|
+
chatResponseConfigurationId: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface GetChatResponseConfigurationResponse {
|
|
51
|
+
chatResponseConfigurationId?: string | undefined;
|
|
52
|
+
chatResponseConfigurationArn?: string | undefined;
|
|
53
|
+
displayName?: string | undefined;
|
|
54
|
+
createdAt?: Date | undefined;
|
|
55
|
+
inUseConfiguration?: ChatResponseConfigurationDetail | undefined;
|
|
56
|
+
lastUpdateConfiguration?: ChatResponseConfigurationDetail | undefined;
|
|
57
|
+
}
|
|
58
|
+
export interface GetGroupRequest {
|
|
59
|
+
applicationId: string | undefined;
|
|
60
|
+
indexId: string | undefined;
|
|
61
|
+
groupName: string | undefined;
|
|
62
|
+
dataSourceId?: string | undefined;
|
|
63
|
+
}
|
|
64
|
+
export declare const GroupStatus: {
|
|
65
|
+
readonly DELETED: "DELETED";
|
|
66
|
+
readonly DELETING: "DELETING";
|
|
67
|
+
readonly FAILED: "FAILED";
|
|
68
|
+
readonly PROCESSING: "PROCESSING";
|
|
69
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
70
|
+
};
|
|
71
|
+
export type GroupStatus = (typeof GroupStatus)[keyof typeof GroupStatus];
|
|
72
|
+
export interface GroupStatusDetail {
|
|
73
|
+
status?: GroupStatus | undefined;
|
|
74
|
+
lastUpdatedAt?: Date | undefined;
|
|
75
|
+
errorDetail?: ErrorDetail | undefined;
|
|
76
|
+
}
|
|
77
|
+
export interface GetGroupResponse {
|
|
78
|
+
status?: GroupStatusDetail | undefined;
|
|
79
|
+
statusHistory?: GroupStatusDetail[] | undefined;
|
|
80
|
+
}
|
|
81
|
+
export interface GetMediaRequest {
|
|
82
|
+
applicationId: string | undefined;
|
|
83
|
+
conversationId: string | undefined;
|
|
84
|
+
messageId: string | undefined;
|
|
85
|
+
mediaId: string | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface GetMediaResponse {
|
|
88
|
+
mediaBytes?: Uint8Array | undefined;
|
|
89
|
+
mediaMimeType?: string | undefined;
|
|
90
|
+
}
|
|
91
|
+
export declare class MediaTooLargeException extends __BaseException {
|
|
92
|
+
readonly name: "MediaTooLargeException";
|
|
93
|
+
readonly $fault: "client";
|
|
94
|
+
constructor(
|
|
95
|
+
opts: __ExceptionOptionType<MediaTooLargeException, __BaseException>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
export interface GetPolicyRequest {
|
|
99
|
+
applicationId: string | undefined;
|
|
100
|
+
}
|
|
101
|
+
export interface GetPolicyResponse {
|
|
102
|
+
policy?: string | undefined;
|
|
103
|
+
}
|
|
104
|
+
export interface GetUserRequest {
|
|
105
|
+
applicationId: string | undefined;
|
|
106
|
+
userId: string | undefined;
|
|
107
|
+
}
|
|
39
108
|
export interface GetUserResponse {
|
|
40
109
|
userAliases?: UserAlias[] | undefined;
|
|
41
110
|
}
|
|
@@ -50,6 +119,15 @@ export interface ListAttachmentsResponse {
|
|
|
50
119
|
attachments?: Attachment[] | undefined;
|
|
51
120
|
nextToken?: string | undefined;
|
|
52
121
|
}
|
|
122
|
+
export interface ListChatResponseConfigurationsRequest {
|
|
123
|
+
applicationId: string | undefined;
|
|
124
|
+
maxResults?: number | undefined;
|
|
125
|
+
nextToken?: string | undefined;
|
|
126
|
+
}
|
|
127
|
+
export interface ListChatResponseConfigurationsResponse {
|
|
128
|
+
chatResponseConfigurations?: ChatResponseConfiguration[] | undefined;
|
|
129
|
+
nextToken?: string | undefined;
|
|
130
|
+
}
|
|
53
131
|
export interface ListConversationsRequest {
|
|
54
132
|
applicationId: string | undefined;
|
|
55
133
|
userId?: string | undefined;
|
|
@@ -315,6 +393,16 @@ export interface UpdateChatControlsConfigurationRequest {
|
|
|
315
393
|
| undefined;
|
|
316
394
|
}
|
|
317
395
|
export interface UpdateChatControlsConfigurationResponse {}
|
|
396
|
+
export interface UpdateChatResponseConfigurationRequest {
|
|
397
|
+
applicationId: string | undefined;
|
|
398
|
+
chatResponseConfigurationId: string | undefined;
|
|
399
|
+
displayName?: string | undefined;
|
|
400
|
+
responseConfigurations:
|
|
401
|
+
| Partial<Record<ResponseConfigurationType, ResponseConfiguration>>
|
|
402
|
+
| undefined;
|
|
403
|
+
clientToken?: string | undefined;
|
|
404
|
+
}
|
|
405
|
+
export interface UpdateChatResponseConfigurationResponse {}
|
|
318
406
|
export interface UpdateSubscriptionRequest {
|
|
319
407
|
applicationId: string | undefined;
|
|
320
408
|
subscriptionId: string | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListChatResponseConfigurationsCommandInput,
|
|
4
|
+
ListChatResponseConfigurationsCommandOutput,
|
|
5
|
+
} from "../commands/ListChatResponseConfigurationsCommand";
|
|
6
|
+
import { QBusinessPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListChatResponseConfigurations: (
|
|
8
|
+
config: QBusinessPaginationConfiguration,
|
|
9
|
+
input: ListChatResponseConfigurationsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListChatResponseConfigurationsCommandOutput>;
|
|
@@ -2,6 +2,7 @@ export * from "./GetChatControlsConfigurationPaginator";
|
|
|
2
2
|
export * from "./Interfaces";
|
|
3
3
|
export * from "./ListApplicationsPaginator";
|
|
4
4
|
export * from "./ListAttachmentsPaginator";
|
|
5
|
+
export * from "./ListChatResponseConfigurationsPaginator";
|
|
5
6
|
export * from "./ListConversationsPaginator";
|
|
6
7
|
export * from "./ListDataAccessorsPaginator";
|
|
7
8
|
export * from "./ListDataSourceSyncJobsPaginator";
|
|
@@ -39,6 +39,10 @@ import {
|
|
|
39
39
|
CreateApplicationCommandInput,
|
|
40
40
|
CreateApplicationCommandOutput,
|
|
41
41
|
} from "../commands/CreateApplicationCommand";
|
|
42
|
+
import {
|
|
43
|
+
CreateChatResponseConfigurationCommandInput,
|
|
44
|
+
CreateChatResponseConfigurationCommandOutput,
|
|
45
|
+
} from "../commands/CreateChatResponseConfigurationCommand";
|
|
42
46
|
import {
|
|
43
47
|
CreateDataAccessorCommandInput,
|
|
44
48
|
CreateDataAccessorCommandOutput,
|
|
@@ -83,6 +87,10 @@ import {
|
|
|
83
87
|
DeleteChatControlsConfigurationCommandInput,
|
|
84
88
|
DeleteChatControlsConfigurationCommandOutput,
|
|
85
89
|
} from "../commands/DeleteChatControlsConfigurationCommand";
|
|
90
|
+
import {
|
|
91
|
+
DeleteChatResponseConfigurationCommandInput,
|
|
92
|
+
DeleteChatResponseConfigurationCommandOutput,
|
|
93
|
+
} from "../commands/DeleteChatResponseConfigurationCommand";
|
|
86
94
|
import {
|
|
87
95
|
DeleteConversationCommandInput,
|
|
88
96
|
DeleteConversationCommandOutput,
|
|
@@ -131,6 +139,10 @@ import {
|
|
|
131
139
|
GetChatControlsConfigurationCommandInput,
|
|
132
140
|
GetChatControlsConfigurationCommandOutput,
|
|
133
141
|
} from "../commands/GetChatControlsConfigurationCommand";
|
|
142
|
+
import {
|
|
143
|
+
GetChatResponseConfigurationCommandInput,
|
|
144
|
+
GetChatResponseConfigurationCommandOutput,
|
|
145
|
+
} from "../commands/GetChatResponseConfigurationCommand";
|
|
134
146
|
import {
|
|
135
147
|
GetDataAccessorCommandInput,
|
|
136
148
|
GetDataAccessorCommandOutput,
|
|
@@ -179,6 +191,10 @@ import {
|
|
|
179
191
|
ListAttachmentsCommandInput,
|
|
180
192
|
ListAttachmentsCommandOutput,
|
|
181
193
|
} from "../commands/ListAttachmentsCommand";
|
|
194
|
+
import {
|
|
195
|
+
ListChatResponseConfigurationsCommandInput,
|
|
196
|
+
ListChatResponseConfigurationsCommandOutput,
|
|
197
|
+
} from "../commands/ListChatResponseConfigurationsCommand";
|
|
182
198
|
import {
|
|
183
199
|
ListConversationsCommandInput,
|
|
184
200
|
ListConversationsCommandOutput,
|
|
@@ -279,6 +295,10 @@ import {
|
|
|
279
295
|
UpdateChatControlsConfigurationCommandInput,
|
|
280
296
|
UpdateChatControlsConfigurationCommandOutput,
|
|
281
297
|
} from "../commands/UpdateChatControlsConfigurationCommand";
|
|
298
|
+
import {
|
|
299
|
+
UpdateChatResponseConfigurationCommandInput,
|
|
300
|
+
UpdateChatResponseConfigurationCommandOutput,
|
|
301
|
+
} from "../commands/UpdateChatResponseConfigurationCommand";
|
|
282
302
|
import {
|
|
283
303
|
UpdateDataAccessorCommandInput,
|
|
284
304
|
UpdateDataAccessorCommandOutput,
|
|
@@ -347,6 +367,10 @@ export declare const se_CreateApplicationCommand: (
|
|
|
347
367
|
input: CreateApplicationCommandInput,
|
|
348
368
|
context: __SerdeContext
|
|
349
369
|
) => Promise<__HttpRequest>;
|
|
370
|
+
export declare const se_CreateChatResponseConfigurationCommand: (
|
|
371
|
+
input: CreateChatResponseConfigurationCommandInput,
|
|
372
|
+
context: __SerdeContext
|
|
373
|
+
) => Promise<__HttpRequest>;
|
|
350
374
|
export declare const se_CreateDataAccessorCommand: (
|
|
351
375
|
input: CreateDataAccessorCommandInput,
|
|
352
376
|
context: __SerdeContext
|
|
@@ -391,6 +415,10 @@ export declare const se_DeleteChatControlsConfigurationCommand: (
|
|
|
391
415
|
input: DeleteChatControlsConfigurationCommandInput,
|
|
392
416
|
context: __SerdeContext
|
|
393
417
|
) => Promise<__HttpRequest>;
|
|
418
|
+
export declare const se_DeleteChatResponseConfigurationCommand: (
|
|
419
|
+
input: DeleteChatResponseConfigurationCommandInput,
|
|
420
|
+
context: __SerdeContext
|
|
421
|
+
) => Promise<__HttpRequest>;
|
|
394
422
|
export declare const se_DeleteConversationCommand: (
|
|
395
423
|
input: DeleteConversationCommandInput,
|
|
396
424
|
context: __SerdeContext
|
|
@@ -439,6 +467,10 @@ export declare const se_GetChatControlsConfigurationCommand: (
|
|
|
439
467
|
input: GetChatControlsConfigurationCommandInput,
|
|
440
468
|
context: __SerdeContext
|
|
441
469
|
) => Promise<__HttpRequest>;
|
|
470
|
+
export declare const se_GetChatResponseConfigurationCommand: (
|
|
471
|
+
input: GetChatResponseConfigurationCommandInput,
|
|
472
|
+
context: __SerdeContext
|
|
473
|
+
) => Promise<__HttpRequest>;
|
|
442
474
|
export declare const se_GetDataAccessorCommand: (
|
|
443
475
|
input: GetDataAccessorCommandInput,
|
|
444
476
|
context: __SerdeContext
|
|
@@ -487,6 +519,10 @@ export declare const se_ListAttachmentsCommand: (
|
|
|
487
519
|
input: ListAttachmentsCommandInput,
|
|
488
520
|
context: __SerdeContext
|
|
489
521
|
) => Promise<__HttpRequest>;
|
|
522
|
+
export declare const se_ListChatResponseConfigurationsCommand: (
|
|
523
|
+
input: ListChatResponseConfigurationsCommandInput,
|
|
524
|
+
context: __SerdeContext
|
|
525
|
+
) => Promise<__HttpRequest>;
|
|
490
526
|
export declare const se_ListConversationsCommand: (
|
|
491
527
|
input: ListConversationsCommandInput,
|
|
492
528
|
context: __SerdeContext
|
|
@@ -587,6 +623,10 @@ export declare const se_UpdateChatControlsConfigurationCommand: (
|
|
|
587
623
|
input: UpdateChatControlsConfigurationCommandInput,
|
|
588
624
|
context: __SerdeContext
|
|
589
625
|
) => Promise<__HttpRequest>;
|
|
626
|
+
export declare const se_UpdateChatResponseConfigurationCommand: (
|
|
627
|
+
input: UpdateChatResponseConfigurationCommandInput,
|
|
628
|
+
context: __SerdeContext
|
|
629
|
+
) => Promise<__HttpRequest>;
|
|
590
630
|
export declare const se_UpdateDataAccessorCommand: (
|
|
591
631
|
input: UpdateDataAccessorCommandInput,
|
|
592
632
|
context: __SerdeContext
|
|
@@ -655,6 +695,10 @@ export declare const de_CreateApplicationCommand: (
|
|
|
655
695
|
output: __HttpResponse,
|
|
656
696
|
context: __SerdeContext
|
|
657
697
|
) => Promise<CreateApplicationCommandOutput>;
|
|
698
|
+
export declare const de_CreateChatResponseConfigurationCommand: (
|
|
699
|
+
output: __HttpResponse,
|
|
700
|
+
context: __SerdeContext
|
|
701
|
+
) => Promise<CreateChatResponseConfigurationCommandOutput>;
|
|
658
702
|
export declare const de_CreateDataAccessorCommand: (
|
|
659
703
|
output: __HttpResponse,
|
|
660
704
|
context: __SerdeContext
|
|
@@ -699,6 +743,10 @@ export declare const de_DeleteChatControlsConfigurationCommand: (
|
|
|
699
743
|
output: __HttpResponse,
|
|
700
744
|
context: __SerdeContext
|
|
701
745
|
) => Promise<DeleteChatControlsConfigurationCommandOutput>;
|
|
746
|
+
export declare const de_DeleteChatResponseConfigurationCommand: (
|
|
747
|
+
output: __HttpResponse,
|
|
748
|
+
context: __SerdeContext
|
|
749
|
+
) => Promise<DeleteChatResponseConfigurationCommandOutput>;
|
|
702
750
|
export declare const de_DeleteConversationCommand: (
|
|
703
751
|
output: __HttpResponse,
|
|
704
752
|
context: __SerdeContext
|
|
@@ -747,6 +795,10 @@ export declare const de_GetChatControlsConfigurationCommand: (
|
|
|
747
795
|
output: __HttpResponse,
|
|
748
796
|
context: __SerdeContext
|
|
749
797
|
) => Promise<GetChatControlsConfigurationCommandOutput>;
|
|
798
|
+
export declare const de_GetChatResponseConfigurationCommand: (
|
|
799
|
+
output: __HttpResponse,
|
|
800
|
+
context: __SerdeContext
|
|
801
|
+
) => Promise<GetChatResponseConfigurationCommandOutput>;
|
|
750
802
|
export declare const de_GetDataAccessorCommand: (
|
|
751
803
|
output: __HttpResponse,
|
|
752
804
|
context: __SerdeContext
|
|
@@ -795,6 +847,10 @@ export declare const de_ListAttachmentsCommand: (
|
|
|
795
847
|
output: __HttpResponse,
|
|
796
848
|
context: __SerdeContext
|
|
797
849
|
) => Promise<ListAttachmentsCommandOutput>;
|
|
850
|
+
export declare const de_ListChatResponseConfigurationsCommand: (
|
|
851
|
+
output: __HttpResponse,
|
|
852
|
+
context: __SerdeContext
|
|
853
|
+
) => Promise<ListChatResponseConfigurationsCommandOutput>;
|
|
798
854
|
export declare const de_ListConversationsCommand: (
|
|
799
855
|
output: __HttpResponse,
|
|
800
856
|
context: __SerdeContext
|
|
@@ -895,6 +951,10 @@ export declare const de_UpdateChatControlsConfigurationCommand: (
|
|
|
895
951
|
output: __HttpResponse,
|
|
896
952
|
context: __SerdeContext
|
|
897
953
|
) => Promise<UpdateChatControlsConfigurationCommandOutput>;
|
|
954
|
+
export declare const de_UpdateChatResponseConfigurationCommand: (
|
|
955
|
+
output: __HttpResponse,
|
|
956
|
+
context: __SerdeContext
|
|
957
|
+
) => Promise<UpdateChatResponseConfigurationCommandOutput>;
|
|
898
958
|
export declare const de_UpdateDataAccessorCommand: (
|
|
899
959
|
output: __HttpResponse,
|
|
900
960
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-qbusiness",
|
|
3
3
|
"description": "AWS SDK for JavaScript Qbusiness Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.841.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",
|