@aws-sdk/client-qapps 3.612.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.
Files changed (187) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +397 -0
  3. package/dist-cjs/QApps.js +57 -0
  4. package/dist-cjs/QAppsClient.js +56 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/AssociateLibraryItemReviewCommand.js +28 -0
  8. package/dist-cjs/commands/AssociateQAppWithUserCommand.js +28 -0
  9. package/dist-cjs/commands/CreateLibraryItemCommand.js +28 -0
  10. package/dist-cjs/commands/CreateQAppCommand.js +28 -0
  11. package/dist-cjs/commands/DeleteLibraryItemCommand.js +28 -0
  12. package/dist-cjs/commands/DeleteQAppCommand.js +28 -0
  13. package/dist-cjs/commands/DisassociateLibraryItemReviewCommand.js +28 -0
  14. package/dist-cjs/commands/DisassociateQAppFromUserCommand.js +28 -0
  15. package/dist-cjs/commands/GetLibraryItemCommand.js +28 -0
  16. package/dist-cjs/commands/GetQAppCommand.js +28 -0
  17. package/dist-cjs/commands/GetQAppSessionCommand.js +28 -0
  18. package/dist-cjs/commands/ImportDocumentCommand.js +28 -0
  19. package/dist-cjs/commands/ListLibraryItemsCommand.js +28 -0
  20. package/dist-cjs/commands/ListQAppsCommand.js +28 -0
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
  22. package/dist-cjs/commands/PredictQAppCommand.js +28 -0
  23. package/dist-cjs/commands/StartQAppSessionCommand.js +28 -0
  24. package/dist-cjs/commands/StopQAppSessionCommand.js +28 -0
  25. package/dist-cjs/commands/TagResourceCommand.js +28 -0
  26. package/dist-cjs/commands/UntagResourceCommand.js +28 -0
  27. package/dist-cjs/commands/UpdateLibraryItemCommand.js +28 -0
  28. package/dist-cjs/commands/UpdateQAppCommand.js +28 -0
  29. package/dist-cjs/commands/UpdateQAppSessionCommand.js +28 -0
  30. package/dist-cjs/commands/index.js +26 -0
  31. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  32. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  33. package/dist-cjs/endpoint/ruleset.js +7 -0
  34. package/dist-cjs/extensionConfiguration.js +2 -0
  35. package/dist-cjs/index.js +11 -0
  36. package/dist-cjs/models/QAppsServiceException.js +12 -0
  37. package/dist-cjs/models/index.js +4 -0
  38. package/dist-cjs/models/models_0.js +236 -0
  39. package/dist-cjs/pagination/Interfaces.js +2 -0
  40. package/dist-cjs/pagination/ListLibraryItemsPaginator.js +7 -0
  41. package/dist-cjs/pagination/ListQAppsPaginator.js +7 -0
  42. package/dist-cjs/pagination/index.js +6 -0
  43. package/dist-cjs/protocols/Aws_restJson1.js +1207 -0
  44. package/dist-cjs/runtimeConfig.browser.js +39 -0
  45. package/dist-cjs/runtimeConfig.js +49 -0
  46. package/dist-cjs/runtimeConfig.native.js +15 -0
  47. package/dist-cjs/runtimeConfig.shared.js +34 -0
  48. package/dist-cjs/runtimeExtensions.js +25 -0
  49. package/dist-es/QApps.js +53 -0
  50. package/dist-es/QAppsClient.js +52 -0
  51. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  52. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  53. package/dist-es/commands/AssociateLibraryItemReviewCommand.js +24 -0
  54. package/dist-es/commands/AssociateQAppWithUserCommand.js +24 -0
  55. package/dist-es/commands/CreateLibraryItemCommand.js +24 -0
  56. package/dist-es/commands/CreateQAppCommand.js +24 -0
  57. package/dist-es/commands/DeleteLibraryItemCommand.js +24 -0
  58. package/dist-es/commands/DeleteQAppCommand.js +24 -0
  59. package/dist-es/commands/DisassociateLibraryItemReviewCommand.js +24 -0
  60. package/dist-es/commands/DisassociateQAppFromUserCommand.js +24 -0
  61. package/dist-es/commands/GetLibraryItemCommand.js +24 -0
  62. package/dist-es/commands/GetQAppCommand.js +24 -0
  63. package/dist-es/commands/GetQAppSessionCommand.js +24 -0
  64. package/dist-es/commands/ImportDocumentCommand.js +24 -0
  65. package/dist-es/commands/ListLibraryItemsCommand.js +24 -0
  66. package/dist-es/commands/ListQAppsCommand.js +24 -0
  67. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  68. package/dist-es/commands/PredictQAppCommand.js +24 -0
  69. package/dist-es/commands/StartQAppSessionCommand.js +24 -0
  70. package/dist-es/commands/StopQAppSessionCommand.js +24 -0
  71. package/dist-es/commands/TagResourceCommand.js +24 -0
  72. package/dist-es/commands/UntagResourceCommand.js +24 -0
  73. package/dist-es/commands/UpdateLibraryItemCommand.js +24 -0
  74. package/dist-es/commands/UpdateQAppCommand.js +24 -0
  75. package/dist-es/commands/UpdateQAppSessionCommand.js +24 -0
  76. package/dist-es/commands/index.js +23 -0
  77. package/dist-es/endpoint/EndpointParameters.js +14 -0
  78. package/dist-es/endpoint/endpointResolver.js +10 -0
  79. package/dist-es/endpoint/ruleset.js +4 -0
  80. package/dist-es/extensionConfiguration.js +1 -0
  81. package/dist-es/index.js +6 -0
  82. package/dist-es/models/QAppsServiceException.js +8 -0
  83. package/dist-es/models/index.js +1 -0
  84. package/dist-es/models/models_0.js +224 -0
  85. package/dist-es/pagination/Interfaces.js +1 -0
  86. package/dist-es/pagination/ListLibraryItemsPaginator.js +4 -0
  87. package/dist-es/pagination/ListQAppsPaginator.js +4 -0
  88. package/dist-es/pagination/index.js +3 -0
  89. package/dist-es/protocols/Aws_restJson1.js +1158 -0
  90. package/dist-es/runtimeConfig.browser.js +34 -0
  91. package/dist-es/runtimeConfig.js +44 -0
  92. package/dist-es/runtimeConfig.native.js +11 -0
  93. package/dist-es/runtimeConfig.shared.js +30 -0
  94. package/dist-es/runtimeExtensions.js +21 -0
  95. package/dist-types/QApps.d.ts +179 -0
  96. package/dist-types/QAppsClient.d.ts +202 -0
  97. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  98. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  99. package/dist-types/commands/AssociateLibraryItemReviewCommand.d.ts +83 -0
  100. package/dist-types/commands/AssociateQAppWithUserCommand.d.ts +85 -0
  101. package/dist-types/commands/CreateLibraryItemCommand.d.ts +95 -0
  102. package/dist-types/commands/CreateQAppCommand.d.ts +225 -0
  103. package/dist-types/commands/DeleteLibraryItemCommand.d.ts +83 -0
  104. package/dist-types/commands/DeleteQAppCommand.d.ts +78 -0
  105. package/dist-types/commands/DisassociateLibraryItemReviewCommand.d.ts +82 -0
  106. package/dist-types/commands/DisassociateQAppFromUserCommand.d.ts +79 -0
  107. package/dist-types/commands/GetLibraryItemCommand.d.ts +98 -0
  108. package/dist-types/commands/GetQAppCommand.d.ts +224 -0
  109. package/dist-types/commands/GetQAppSessionCommand.d.ts +92 -0
  110. package/dist-types/commands/ImportDocumentCommand.d.ts +97 -0
  111. package/dist-types/commands/ListLibraryItemsCommand.d.ts +103 -0
  112. package/dist-types/commands/ListQAppsCommand.d.ts +91 -0
  113. package/dist-types/commands/ListTagsForResourceCommand.d.ts +78 -0
  114. package/dist-types/commands/PredictQAppCommand.d.ts +209 -0
  115. package/dist-types/commands/StartQAppSessionCommand.d.ts +100 -0
  116. package/dist-types/commands/StopQAppSessionCommand.d.ts +84 -0
  117. package/dist-types/commands/TagResourceCommand.d.ts +81 -0
  118. package/dist-types/commands/UntagResourceCommand.d.ts +77 -0
  119. package/dist-types/commands/UpdateLibraryItemCommand.d.ts +100 -0
  120. package/dist-types/commands/UpdateQAppCommand.d.ts +216 -0
  121. package/dist-types/commands/UpdateQAppSessionCommand.d.ts +95 -0
  122. package/dist-types/commands/index.d.ts +23 -0
  123. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  124. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  125. package/dist-types/endpoint/ruleset.d.ts +2 -0
  126. package/dist-types/extensionConfiguration.d.ts +9 -0
  127. package/dist-types/index.d.ts +22 -0
  128. package/dist-types/models/QAppsServiceException.d.ts +14 -0
  129. package/dist-types/models/index.d.ts +1 -0
  130. package/dist-types/models/models_0.d.ts +2138 -0
  131. package/dist-types/pagination/Interfaces.d.ts +8 -0
  132. package/dist-types/pagination/ListLibraryItemsPaginator.d.ts +7 -0
  133. package/dist-types/pagination/ListQAppsPaginator.d.ts +7 -0
  134. package/dist-types/pagination/index.d.ts +3 -0
  135. package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
  136. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  137. package/dist-types/runtimeConfig.d.ts +45 -0
  138. package/dist-types/runtimeConfig.native.d.ts +44 -0
  139. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  140. package/dist-types/runtimeExtensions.d.ts +17 -0
  141. package/dist-types/ts3.4/QApps.d.ts +396 -0
  142. package/dist-types/ts3.4/QAppsClient.d.ts +258 -0
  143. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  144. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  145. package/dist-types/ts3.4/commands/AssociateLibraryItemReviewCommand.d.ts +36 -0
  146. package/dist-types/ts3.4/commands/AssociateQAppWithUserCommand.d.ts +35 -0
  147. package/dist-types/ts3.4/commands/CreateLibraryItemCommand.d.ts +39 -0
  148. package/dist-types/ts3.4/commands/CreateQAppCommand.d.ts +36 -0
  149. package/dist-types/ts3.4/commands/DeleteLibraryItemCommand.d.ts +34 -0
  150. package/dist-types/ts3.4/commands/DeleteQAppCommand.d.ts +34 -0
  151. package/dist-types/ts3.4/commands/DisassociateLibraryItemReviewCommand.d.ts +36 -0
  152. package/dist-types/ts3.4/commands/DisassociateQAppFromUserCommand.d.ts +36 -0
  153. package/dist-types/ts3.4/commands/GetLibraryItemCommand.d.ts +36 -0
  154. package/dist-types/ts3.4/commands/GetQAppCommand.d.ts +30 -0
  155. package/dist-types/ts3.4/commands/GetQAppSessionCommand.d.ts +36 -0
  156. package/dist-types/ts3.4/commands/ImportDocumentCommand.d.ts +36 -0
  157. package/dist-types/ts3.4/commands/ListLibraryItemsCommand.d.ts +39 -0
  158. package/dist-types/ts3.4/commands/ListQAppsCommand.d.ts +36 -0
  159. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
  160. package/dist-types/ts3.4/commands/PredictQAppCommand.d.ts +36 -0
  161. package/dist-types/ts3.4/commands/StartQAppSessionCommand.d.ts +39 -0
  162. package/dist-types/ts3.4/commands/StopQAppSessionCommand.d.ts +34 -0
  163. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +36 -0
  164. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +39 -0
  165. package/dist-types/ts3.4/commands/UpdateLibraryItemCommand.d.ts +39 -0
  166. package/dist-types/ts3.4/commands/UpdateQAppCommand.d.ts +36 -0
  167. package/dist-types/ts3.4/commands/UpdateQAppSessionCommand.d.ts +39 -0
  168. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  169. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  170. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  171. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  172. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  173. package/dist-types/ts3.4/index.d.ts +9 -0
  174. package/dist-types/ts3.4/models/QAppsServiceException.d.ts +9 -0
  175. package/dist-types/ts3.4/models/index.d.ts +1 -0
  176. package/dist-types/ts3.4/models/models_0.d.ts +681 -0
  177. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  178. package/dist-types/ts3.4/pagination/ListLibraryItemsPaginator.d.ts +11 -0
  179. package/dist-types/ts3.4/pagination/ListQAppsPaginator.d.ts +11 -0
  180. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  181. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +281 -0
  182. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
  183. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  184. package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
  185. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  186. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  187. package/package.json +101 -0
@@ -0,0 +1,681 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { QAppsServiceException as __BaseException } from "./QAppsServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
+ );
9
+ }
10
+ export declare const CardType: {
11
+ readonly FILE_UPLOAD: "file-upload";
12
+ readonly Q_PLUGIN: "q-plugin";
13
+ readonly Q_QUERY: "q-query";
14
+ readonly TEXT_INPUT: "text-input";
15
+ };
16
+ export type CardType = (typeof CardType)[keyof typeof CardType];
17
+ export interface FileUploadCard {
18
+ id: string | undefined;
19
+ title: string | undefined;
20
+ dependencies: string[] | undefined;
21
+ type: CardType | undefined;
22
+ filename?: string;
23
+ fileId?: string;
24
+ allowOverride?: boolean;
25
+ }
26
+ export declare const PluginType: {
27
+ readonly CUSTOM: "CUSTOM";
28
+ readonly JIRA: "JIRA";
29
+ readonly SALESFORCE: "SALESFORCE";
30
+ readonly SERVICE_NOW: "SERVICE_NOW";
31
+ readonly ZENDESK: "ZENDESK";
32
+ };
33
+ export type PluginType = (typeof PluginType)[keyof typeof PluginType];
34
+ export interface QPluginCard {
35
+ id: string | undefined;
36
+ title: string | undefined;
37
+ dependencies: string[] | undefined;
38
+ type: CardType | undefined;
39
+ prompt: string | undefined;
40
+ pluginType: PluginType | undefined;
41
+ pluginId: string | undefined;
42
+ }
43
+ export type DocumentAttributeValue =
44
+ | DocumentAttributeValue.DateValueMember
45
+ | DocumentAttributeValue.LongValueMember
46
+ | DocumentAttributeValue.StringListValueMember
47
+ | DocumentAttributeValue.StringValueMember
48
+ | DocumentAttributeValue.$UnknownMember;
49
+ export declare namespace DocumentAttributeValue {
50
+ interface StringValueMember {
51
+ stringValue: string;
52
+ stringListValue?: never;
53
+ longValue?: never;
54
+ dateValue?: never;
55
+ $unknown?: never;
56
+ }
57
+ interface StringListValueMember {
58
+ stringValue?: never;
59
+ stringListValue: string[];
60
+ longValue?: never;
61
+ dateValue?: never;
62
+ $unknown?: never;
63
+ }
64
+ interface LongValueMember {
65
+ stringValue?: never;
66
+ stringListValue?: never;
67
+ longValue: number;
68
+ dateValue?: never;
69
+ $unknown?: never;
70
+ }
71
+ interface DateValueMember {
72
+ stringValue?: never;
73
+ stringListValue?: never;
74
+ longValue?: never;
75
+ dateValue: Date;
76
+ $unknown?: never;
77
+ }
78
+ interface $UnknownMember {
79
+ stringValue?: never;
80
+ stringListValue?: never;
81
+ longValue?: never;
82
+ dateValue?: never;
83
+ $unknown: [string, any];
84
+ }
85
+ interface Visitor<T> {
86
+ stringValue: (value: string) => T;
87
+ stringListValue: (value: string[]) => T;
88
+ longValue: (value: number) => T;
89
+ dateValue: (value: Date) => T;
90
+ _: (name: string, value: any) => T;
91
+ }
92
+ const visit: <T>(value: DocumentAttributeValue, visitor: Visitor<T>) => T;
93
+ }
94
+ export interface DocumentAttribute {
95
+ name: string | undefined;
96
+ value: DocumentAttributeValue | undefined;
97
+ }
98
+ export declare const CardOutputSource: {
99
+ readonly APPROVED_SOURCES: "approved-sources";
100
+ readonly LLM: "llm";
101
+ };
102
+ export type CardOutputSource =
103
+ (typeof CardOutputSource)[keyof typeof CardOutputSource];
104
+ export interface TextInputCard {
105
+ id: string | undefined;
106
+ title: string | undefined;
107
+ dependencies: string[] | undefined;
108
+ type: CardType | undefined;
109
+ placeholder?: string;
110
+ defaultValue?: string;
111
+ }
112
+ export interface FileUploadCardInput {
113
+ title: string | undefined;
114
+ id: string | undefined;
115
+ type: CardType | undefined;
116
+ filename?: string;
117
+ fileId?: string;
118
+ allowOverride?: boolean;
119
+ }
120
+ export interface QPluginCardInput {
121
+ title: string | undefined;
122
+ id: string | undefined;
123
+ type: CardType | undefined;
124
+ prompt: string | undefined;
125
+ pluginId: string | undefined;
126
+ }
127
+ export interface TextInputCardInput {
128
+ title: string | undefined;
129
+ id: string | undefined;
130
+ type: CardType | undefined;
131
+ placeholder?: string;
132
+ defaultValue?: string;
133
+ }
134
+ export declare const AppRequiredCapability: {
135
+ readonly CREATOR_MODE: "CreatorMode";
136
+ readonly FILE_UPLOAD: "FileUpload";
137
+ readonly PLUGIN_MODE: "PluginMode";
138
+ readonly RETRIEVAL_MODE: "RetrievalMode";
139
+ };
140
+ export type AppRequiredCapability =
141
+ (typeof AppRequiredCapability)[keyof typeof AppRequiredCapability];
142
+ export declare const AppStatus: {
143
+ readonly DELETED: "DELETED";
144
+ readonly DRAFT: "DRAFT";
145
+ readonly PUBLISHED: "PUBLISHED";
146
+ };
147
+ export type AppStatus = (typeof AppStatus)[keyof typeof AppStatus];
148
+ export interface AssociateLibraryItemReviewInput {
149
+ instanceId: string | undefined;
150
+ libraryItemId: string | undefined;
151
+ }
152
+ export declare class InternalServerException extends __BaseException {
153
+ readonly name: "InternalServerException";
154
+ readonly $fault: "server";
155
+ $retryable: {};
156
+ retryAfterSeconds?: number;
157
+ constructor(
158
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
159
+ );
160
+ }
161
+ export declare class ResourceNotFoundException extends __BaseException {
162
+ readonly name: "ResourceNotFoundException";
163
+ readonly $fault: "client";
164
+ resourceId: string | undefined;
165
+ resourceType: string | undefined;
166
+ constructor(
167
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
168
+ );
169
+ }
170
+ export declare class ServiceQuotaExceededException extends __BaseException {
171
+ readonly name: "ServiceQuotaExceededException";
172
+ readonly $fault: "client";
173
+ resourceId: string | undefined;
174
+ resourceType: string | undefined;
175
+ serviceCode: string | undefined;
176
+ quotaCode: string | undefined;
177
+ constructor(
178
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
179
+ );
180
+ }
181
+ export declare class ThrottlingException extends __BaseException {
182
+ readonly name: "ThrottlingException";
183
+ readonly $fault: "client";
184
+ $retryable: {
185
+ throttling: boolean;
186
+ };
187
+ serviceCode: string | undefined;
188
+ quotaCode: string | undefined;
189
+ retryAfterSeconds?: number;
190
+ constructor(
191
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
192
+ );
193
+ }
194
+ export declare class UnauthorizedException extends __BaseException {
195
+ readonly name: "UnauthorizedException";
196
+ readonly $fault: "client";
197
+ constructor(
198
+ opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
199
+ );
200
+ }
201
+ export declare class ValidationException extends __BaseException {
202
+ readonly name: "ValidationException";
203
+ readonly $fault: "client";
204
+ constructor(
205
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
206
+ );
207
+ }
208
+ export interface AssociateQAppWithUserInput {
209
+ instanceId: string | undefined;
210
+ appId: string | undefined;
211
+ }
212
+ export declare const ExecutionStatus: {
213
+ readonly COMPLETED: "COMPLETED";
214
+ readonly IN_PROGRESS: "IN_PROGRESS";
215
+ readonly WAITING: "WAITING";
216
+ };
217
+ export type ExecutionStatus =
218
+ (typeof ExecutionStatus)[keyof typeof ExecutionStatus];
219
+ export interface CardStatus {
220
+ currentState: ExecutionStatus | undefined;
221
+ currentValue: string | undefined;
222
+ }
223
+ export interface CardValue {
224
+ cardId: string | undefined;
225
+ value: string | undefined;
226
+ }
227
+ export interface Category {
228
+ id: string | undefined;
229
+ title: string | undefined;
230
+ }
231
+ export declare class ConflictException extends __BaseException {
232
+ readonly name: "ConflictException";
233
+ readonly $fault: "client";
234
+ resourceId: string | undefined;
235
+ resourceType: string | undefined;
236
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
237
+ }
238
+ export declare class ContentTooLargeException extends __BaseException {
239
+ readonly name: "ContentTooLargeException";
240
+ readonly $fault: "client";
241
+ resourceId: string | undefined;
242
+ resourceType: string | undefined;
243
+ constructor(
244
+ opts: __ExceptionOptionType<ContentTooLargeException, __BaseException>
245
+ );
246
+ }
247
+ export declare const Sender: {
248
+ readonly SYSTEM: "SYSTEM";
249
+ readonly USER: "USER";
250
+ };
251
+ export type Sender = (typeof Sender)[keyof typeof Sender];
252
+ export interface ConversationMessage {
253
+ body: string | undefined;
254
+ type: Sender | undefined;
255
+ }
256
+ export interface CreateLibraryItemInput {
257
+ instanceId: string | undefined;
258
+ appId: string | undefined;
259
+ appVersion: number | undefined;
260
+ categories: string[] | undefined;
261
+ }
262
+ export interface CreateLibraryItemOutput {
263
+ libraryItemId: string | undefined;
264
+ status: string | undefined;
265
+ createdAt: Date | undefined;
266
+ createdBy: string | undefined;
267
+ updatedAt?: Date;
268
+ updatedBy?: string;
269
+ ratingCount: number | undefined;
270
+ }
271
+ export interface CreateQAppOutput {
272
+ appId: string | undefined;
273
+ appArn: string | undefined;
274
+ title: string | undefined;
275
+ description?: string;
276
+ initialPrompt?: string;
277
+ appVersion: number | undefined;
278
+ status: AppStatus | undefined;
279
+ createdAt: Date | undefined;
280
+ createdBy: string | undefined;
281
+ updatedAt: Date | undefined;
282
+ updatedBy: string | undefined;
283
+ requiredCapabilities?: AppRequiredCapability[];
284
+ }
285
+ export interface DeleteLibraryItemInput {
286
+ instanceId: string | undefined;
287
+ libraryItemId: string | undefined;
288
+ }
289
+ export interface DeleteQAppInput {
290
+ instanceId: string | undefined;
291
+ appId: string | undefined;
292
+ }
293
+ export interface DisassociateLibraryItemReviewInput {
294
+ instanceId: string | undefined;
295
+ libraryItemId: string | undefined;
296
+ }
297
+ export interface DisassociateQAppFromUserInput {
298
+ instanceId: string | undefined;
299
+ appId: string | undefined;
300
+ }
301
+ export declare const DocumentScope: {
302
+ readonly APPLICATION: "APPLICATION";
303
+ readonly SESSION: "SESSION";
304
+ };
305
+ export type DocumentScope = (typeof DocumentScope)[keyof typeof DocumentScope];
306
+ export interface GetLibraryItemInput {
307
+ instanceId: string | undefined;
308
+ libraryItemId: string | undefined;
309
+ appId?: string;
310
+ }
311
+ export interface GetLibraryItemOutput {
312
+ libraryItemId: string | undefined;
313
+ appId: string | undefined;
314
+ appVersion: number | undefined;
315
+ categories: Category[] | undefined;
316
+ status: string | undefined;
317
+ createdAt: Date | undefined;
318
+ createdBy: string | undefined;
319
+ updatedAt?: Date;
320
+ updatedBy?: string;
321
+ ratingCount: number | undefined;
322
+ isRatedByUser?: boolean;
323
+ userCount?: number;
324
+ }
325
+ export interface GetQAppInput {
326
+ instanceId: string | undefined;
327
+ appId: string | undefined;
328
+ }
329
+ export interface GetQAppSessionInput {
330
+ instanceId: string | undefined;
331
+ sessionId: string | undefined;
332
+ }
333
+ export interface GetQAppSessionOutput {
334
+ sessionId: string | undefined;
335
+ sessionArn: string | undefined;
336
+ status: ExecutionStatus | undefined;
337
+ cardStatus: Record<string, CardStatus> | undefined;
338
+ }
339
+ export interface ImportDocumentInput {
340
+ instanceId: string | undefined;
341
+ cardId: string | undefined;
342
+ appId: string | undefined;
343
+ fileContentsBase64: string | undefined;
344
+ fileName: string | undefined;
345
+ scope: DocumentScope | undefined;
346
+ sessionId?: string;
347
+ }
348
+ export interface ImportDocumentOutput {
349
+ fileId?: string;
350
+ }
351
+ export interface LibraryItemMember {
352
+ libraryItemId: string | undefined;
353
+ appId: string | undefined;
354
+ appVersion: number | undefined;
355
+ categories: Category[] | undefined;
356
+ status: string | undefined;
357
+ createdAt: Date | undefined;
358
+ createdBy: string | undefined;
359
+ updatedAt?: Date;
360
+ updatedBy?: string;
361
+ ratingCount: number | undefined;
362
+ isRatedByUser?: boolean;
363
+ userCount?: number;
364
+ }
365
+ export declare const LibraryItemStatus: {
366
+ readonly DISABLED: "DISABLED";
367
+ readonly PUBLISHED: "PUBLISHED";
368
+ };
369
+ export type LibraryItemStatus =
370
+ (typeof LibraryItemStatus)[keyof typeof LibraryItemStatus];
371
+ export interface ListLibraryItemsInput {
372
+ instanceId: string | undefined;
373
+ limit?: number;
374
+ nextToken?: string;
375
+ categoryId?: string;
376
+ }
377
+ export interface ListLibraryItemsOutput {
378
+ libraryItems?: LibraryItemMember[];
379
+ nextToken?: string;
380
+ }
381
+ export interface ListQAppsInput {
382
+ instanceId: string | undefined;
383
+ limit?: number;
384
+ nextToken?: string;
385
+ }
386
+ export interface UserAppItem {
387
+ appId: string | undefined;
388
+ appArn: string | undefined;
389
+ title: string | undefined;
390
+ description?: string;
391
+ createdAt: Date | undefined;
392
+ canEdit?: boolean;
393
+ status?: string;
394
+ }
395
+ export interface ListQAppsOutput {
396
+ apps: UserAppItem[] | undefined;
397
+ nextToken?: string;
398
+ }
399
+ export interface ListTagsForResourceRequest {
400
+ resourceARN: string | undefined;
401
+ }
402
+ export interface ListTagsForResourceResponse {
403
+ tags?: Record<string, string>;
404
+ }
405
+ export type PredictQAppInputOptions =
406
+ | PredictQAppInputOptions.ConversationMember
407
+ | PredictQAppInputOptions.ProblemStatementMember
408
+ | PredictQAppInputOptions.$UnknownMember;
409
+ export declare namespace PredictQAppInputOptions {
410
+ interface ConversationMember {
411
+ conversation: ConversationMessage[];
412
+ problemStatement?: never;
413
+ $unknown?: never;
414
+ }
415
+ interface ProblemStatementMember {
416
+ conversation?: never;
417
+ problemStatement: string;
418
+ $unknown?: never;
419
+ }
420
+ interface $UnknownMember {
421
+ conversation?: never;
422
+ problemStatement?: never;
423
+ $unknown: [string, any];
424
+ }
425
+ interface Visitor<T> {
426
+ conversation: (value: ConversationMessage[]) => T;
427
+ problemStatement: (value: string) => T;
428
+ _: (name: string, value: any) => T;
429
+ }
430
+ const visit: <T>(value: PredictQAppInputOptions, visitor: Visitor<T>) => T;
431
+ }
432
+ export interface PredictQAppInput {
433
+ instanceId: string | undefined;
434
+ options?: PredictQAppInputOptions;
435
+ }
436
+ export interface StartQAppSessionInput {
437
+ instanceId: string | undefined;
438
+ appId: string | undefined;
439
+ appVersion: number | undefined;
440
+ initialValues?: CardValue[];
441
+ tags?: Record<string, string>;
442
+ }
443
+ export interface StartQAppSessionOutput {
444
+ sessionId: string | undefined;
445
+ sessionArn: string | undefined;
446
+ }
447
+ export interface StopQAppSessionInput {
448
+ instanceId: string | undefined;
449
+ sessionId: string | undefined;
450
+ }
451
+ export interface TagResourceRequest {
452
+ resourceARN: string | undefined;
453
+ tags: Record<string, string> | undefined;
454
+ }
455
+ export interface TagResourceResponse {}
456
+ export interface UntagResourceRequest {
457
+ resourceARN: string | undefined;
458
+ tagKeys: string[] | undefined;
459
+ }
460
+ export interface UntagResourceResponse {}
461
+ export interface UpdateLibraryItemInput {
462
+ instanceId: string | undefined;
463
+ libraryItemId: string | undefined;
464
+ status?: LibraryItemStatus;
465
+ categories?: string[];
466
+ }
467
+ export interface UpdateLibraryItemOutput {
468
+ libraryItemId: string | undefined;
469
+ appId: string | undefined;
470
+ appVersion: number | undefined;
471
+ categories: Category[] | undefined;
472
+ status: string | undefined;
473
+ createdAt: Date | undefined;
474
+ createdBy: string | undefined;
475
+ updatedAt?: Date;
476
+ updatedBy?: string;
477
+ ratingCount: number | undefined;
478
+ isRatedByUser?: boolean;
479
+ userCount?: number;
480
+ }
481
+ export interface UpdateQAppOutput {
482
+ appId: string | undefined;
483
+ appArn: string | undefined;
484
+ title: string | undefined;
485
+ description?: string;
486
+ initialPrompt?: string;
487
+ appVersion: number | undefined;
488
+ status: AppStatus | undefined;
489
+ createdAt: Date | undefined;
490
+ createdBy: string | undefined;
491
+ updatedAt: Date | undefined;
492
+ updatedBy: string | undefined;
493
+ requiredCapabilities?: AppRequiredCapability[];
494
+ }
495
+ export interface UpdateQAppSessionInput {
496
+ instanceId: string | undefined;
497
+ sessionId: string | undefined;
498
+ values?: CardValue[];
499
+ }
500
+ export interface UpdateQAppSessionOutput {
501
+ sessionId: string | undefined;
502
+ sessionArn: string | undefined;
503
+ }
504
+ export interface AttributeFilter {
505
+ andAllFilters?: AttributeFilter[];
506
+ orAllFilters?: AttributeFilter[];
507
+ notFilter?: AttributeFilter;
508
+ equalsTo?: DocumentAttribute;
509
+ containsAll?: DocumentAttribute;
510
+ containsAny?: DocumentAttribute;
511
+ greaterThan?: DocumentAttribute;
512
+ greaterThanOrEquals?: DocumentAttribute;
513
+ lessThan?: DocumentAttribute;
514
+ lessThanOrEquals?: DocumentAttribute;
515
+ }
516
+ export interface QQueryCard {
517
+ id: string | undefined;
518
+ title: string | undefined;
519
+ dependencies: string[] | undefined;
520
+ type: CardType | undefined;
521
+ prompt: string | undefined;
522
+ outputSource: CardOutputSource | undefined;
523
+ attributeFilter?: AttributeFilter;
524
+ }
525
+ export interface QQueryCardInput {
526
+ title: string | undefined;
527
+ id: string | undefined;
528
+ type: CardType | undefined;
529
+ prompt: string | undefined;
530
+ outputSource?: CardOutputSource;
531
+ attributeFilter?: AttributeFilter;
532
+ }
533
+ export type Card =
534
+ | Card.FileUploadMember
535
+ | Card.QPluginMember
536
+ | Card.QQueryMember
537
+ | Card.TextInputMember
538
+ | Card.$UnknownMember;
539
+ export declare namespace Card {
540
+ interface TextInputMember {
541
+ textInput: TextInputCard;
542
+ qQuery?: never;
543
+ qPlugin?: never;
544
+ fileUpload?: never;
545
+ $unknown?: never;
546
+ }
547
+ interface QQueryMember {
548
+ textInput?: never;
549
+ qQuery: QQueryCard;
550
+ qPlugin?: never;
551
+ fileUpload?: never;
552
+ $unknown?: never;
553
+ }
554
+ interface QPluginMember {
555
+ textInput?: never;
556
+ qQuery?: never;
557
+ qPlugin: QPluginCard;
558
+ fileUpload?: never;
559
+ $unknown?: never;
560
+ }
561
+ interface FileUploadMember {
562
+ textInput?: never;
563
+ qQuery?: never;
564
+ qPlugin?: never;
565
+ fileUpload: FileUploadCard;
566
+ $unknown?: never;
567
+ }
568
+ interface $UnknownMember {
569
+ textInput?: never;
570
+ qQuery?: never;
571
+ qPlugin?: never;
572
+ fileUpload?: never;
573
+ $unknown: [string, any];
574
+ }
575
+ interface Visitor<T> {
576
+ textInput: (value: TextInputCard) => T;
577
+ qQuery: (value: QQueryCard) => T;
578
+ qPlugin: (value: QPluginCard) => T;
579
+ fileUpload: (value: FileUploadCard) => T;
580
+ _: (name: string, value: any) => T;
581
+ }
582
+ const visit: <T>(value: Card, visitor: Visitor<T>) => T;
583
+ }
584
+ export type CardInput =
585
+ | CardInput.FileUploadMember
586
+ | CardInput.QPluginMember
587
+ | CardInput.QQueryMember
588
+ | CardInput.TextInputMember
589
+ | CardInput.$UnknownMember;
590
+ export declare namespace CardInput {
591
+ interface TextInputMember {
592
+ textInput: TextInputCardInput;
593
+ qQuery?: never;
594
+ qPlugin?: never;
595
+ fileUpload?: never;
596
+ $unknown?: never;
597
+ }
598
+ interface QQueryMember {
599
+ textInput?: never;
600
+ qQuery: QQueryCardInput;
601
+ qPlugin?: never;
602
+ fileUpload?: never;
603
+ $unknown?: never;
604
+ }
605
+ interface QPluginMember {
606
+ textInput?: never;
607
+ qQuery?: never;
608
+ qPlugin: QPluginCardInput;
609
+ fileUpload?: never;
610
+ $unknown?: never;
611
+ }
612
+ interface FileUploadMember {
613
+ textInput?: never;
614
+ qQuery?: never;
615
+ qPlugin?: never;
616
+ fileUpload: FileUploadCardInput;
617
+ $unknown?: never;
618
+ }
619
+ interface $UnknownMember {
620
+ textInput?: never;
621
+ qQuery?: never;
622
+ qPlugin?: never;
623
+ fileUpload?: never;
624
+ $unknown: [string, any];
625
+ }
626
+ interface Visitor<T> {
627
+ textInput: (value: TextInputCardInput) => T;
628
+ qQuery: (value: QQueryCardInput) => T;
629
+ qPlugin: (value: QPluginCardInput) => T;
630
+ fileUpload: (value: FileUploadCardInput) => T;
631
+ _: (name: string, value: any) => T;
632
+ }
633
+ const visit: <T>(value: CardInput, visitor: Visitor<T>) => T;
634
+ }
635
+ export interface AppDefinition {
636
+ appDefinitionVersion: string | undefined;
637
+ cards: Card[] | undefined;
638
+ canEdit?: boolean;
639
+ }
640
+ export interface AppDefinitionInput {
641
+ cards: CardInput[] | undefined;
642
+ initialPrompt?: string;
643
+ }
644
+ export interface CreateQAppInput {
645
+ instanceId: string | undefined;
646
+ title: string | undefined;
647
+ description?: string;
648
+ appDefinition: AppDefinitionInput | undefined;
649
+ tags?: Record<string, string>;
650
+ }
651
+ export interface GetQAppOutput {
652
+ appId: string | undefined;
653
+ appArn: string | undefined;
654
+ title: string | undefined;
655
+ description?: string;
656
+ initialPrompt?: string;
657
+ appVersion: number | undefined;
658
+ status: AppStatus | undefined;
659
+ createdAt: Date | undefined;
660
+ createdBy: string | undefined;
661
+ updatedAt: Date | undefined;
662
+ updatedBy: string | undefined;
663
+ requiredCapabilities?: AppRequiredCapability[];
664
+ appDefinition: AppDefinition | undefined;
665
+ }
666
+ export interface PredictAppDefinition {
667
+ title: string | undefined;
668
+ description?: string;
669
+ appDefinition: AppDefinitionInput | undefined;
670
+ }
671
+ export interface UpdateQAppInput {
672
+ instanceId: string | undefined;
673
+ appId: string | undefined;
674
+ title?: string;
675
+ description?: string;
676
+ appDefinition?: AppDefinitionInput;
677
+ }
678
+ export interface PredictQAppOutput {
679
+ app: PredictAppDefinition | undefined;
680
+ problemStatement: string | undefined;
681
+ }
@@ -0,0 +1,5 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { QAppsClient } from "../QAppsClient";
3
+ export interface QAppsPaginationConfiguration extends PaginationConfiguration {
4
+ client: QAppsClient;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListLibraryItemsCommandInput,
4
+ ListLibraryItemsCommandOutput,
5
+ } from "../commands/ListLibraryItemsCommand";
6
+ import { QAppsPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListLibraryItems: (
8
+ config: QAppsPaginationConfiguration,
9
+ input: ListLibraryItemsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListLibraryItemsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListQAppsCommandInput,
4
+ ListQAppsCommandOutput,
5
+ } from "../commands/ListQAppsCommand";
6
+ import { QAppsPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListQApps: (
8
+ config: QAppsPaginationConfiguration,
9
+ input: ListQAppsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListQAppsCommandOutput>;
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListLibraryItemsPaginator";
3
+ export * from "./ListQAppsPaginator";