@aws-sdk/client-qconnect 3.940.0 → 3.943.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 (90) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +879 -101
  3. package/dist-es/QConnect.js +4 -0
  4. package/dist-es/commands/ListSpansCommand.js +16 -0
  5. package/dist-es/commands/RetrieveCommand.js +16 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +61 -12
  8. package/dist-es/models/errors.js +12 -0
  9. package/dist-es/pagination/ListSpansPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/schemas/schemas_0.js +774 -90
  12. package/dist-types/QConnect.d.ts +14 -0
  13. package/dist-types/QConnectClient.d.ts +4 -2
  14. package/dist-types/commands/CreateAIAgentCommand.d.ts +126 -0
  15. package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +63 -0
  16. package/dist-types/commands/CreateAIPromptCommand.d.ts +16 -0
  17. package/dist-types/commands/CreateAIPromptVersionCommand.d.ts +8 -0
  18. package/dist-types/commands/CreateAssistantAssociationCommand.d.ts +8 -0
  19. package/dist-types/commands/CreateAssistantCommand.d.ts +6 -0
  20. package/dist-types/commands/CreateSessionCommand.d.ts +14 -1
  21. package/dist-types/commands/DeleteImportJobCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteMessageTemplateAttachmentCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteMessageTemplateCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteQuickResponseCommand.d.ts +1 -1
  26. package/dist-types/commands/GetAIAgentCommand.d.ts +63 -0
  27. package/dist-types/commands/GetAIPromptCommand.d.ts +8 -0
  28. package/dist-types/commands/GetAssistantAssociationCommand.d.ts +4 -0
  29. package/dist-types/commands/GetAssistantCommand.d.ts +6 -0
  30. package/dist-types/commands/GetImportJobCommand.d.ts +1 -1
  31. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +1 -1
  32. package/dist-types/commands/GetMessageTemplateCommand.d.ts +1 -1
  33. package/dist-types/commands/GetNextMessageCommand.d.ts +26 -0
  34. package/dist-types/commands/GetQuickResponseCommand.d.ts +1 -1
  35. package/dist-types/commands/GetRecommendationsCommand.d.ts +39 -0
  36. package/dist-types/commands/GetSessionCommand.d.ts +6 -0
  37. package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +63 -0
  38. package/dist-types/commands/ListAIAgentsCommand.d.ts +63 -0
  39. package/dist-types/commands/ListAssistantAssociationsCommand.d.ts +4 -0
  40. package/dist-types/commands/ListAssistantsCommand.d.ts +6 -0
  41. package/dist-types/commands/ListImportJobsCommand.d.ts +1 -1
  42. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  43. package/dist-types/commands/ListMessageTemplateVersionsCommand.d.ts +1 -1
  44. package/dist-types/commands/ListMessageTemplatesCommand.d.ts +1 -1
  45. package/dist-types/commands/ListMessagesCommand.d.ts +23 -0
  46. package/dist-types/commands/ListSpansCommand.d.ts +207 -0
  47. package/dist-types/commands/QueryAssistantCommand.d.ts +41 -0
  48. package/dist-types/commands/RemoveAssistantAIAgentCommand.d.ts +1 -0
  49. package/dist-types/commands/RenderMessageTemplateCommand.d.ts +1 -2
  50. package/dist-types/commands/RetrieveCommand.d.ts +168 -0
  51. package/dist-types/commands/SendMessageCommand.d.ts +37 -1
  52. package/dist-types/commands/UpdateAIAgentCommand.d.ts +126 -0
  53. package/dist-types/commands/UpdateAIPromptCommand.d.ts +16 -0
  54. package/dist-types/commands/UpdateAssistantAIAgentCommand.d.ts +12 -0
  55. package/dist-types/commands/UpdateSessionCommand.d.ts +13 -0
  56. package/dist-types/commands/index.d.ts +2 -0
  57. package/dist-types/models/enums.d.ts +110 -21
  58. package/dist-types/models/errors.d.ts +13 -1
  59. package/dist-types/models/models_0.d.ts +996 -723
  60. package/dist-types/models/models_1.d.ts +1563 -48
  61. package/dist-types/pagination/ListSpansPaginator.d.ts +7 -0
  62. package/dist-types/pagination/index.d.ts +1 -0
  63. package/dist-types/schemas/schemas_0.d.ts +64 -0
  64. package/dist-types/ts3.4/QConnect.d.ts +34 -0
  65. package/dist-types/ts3.4/QConnectClient.d.ts +12 -0
  66. package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/DeleteMessageTemplateAttachmentCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/DeleteMessageTemplateCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/GetMessageTemplateCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ListMessageTemplateVersionsCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/ListMessageTemplatesCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/ListSpansCommand.d.ts +48 -0
  80. package/dist-types/ts3.4/commands/RenderMessageTemplateCommand.d.ts +4 -2
  81. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +48 -0
  82. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  83. package/dist-types/ts3.4/models/enums.d.ts +71 -15
  84. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +354 -172
  86. package/dist-types/ts3.4/models/models_1.d.ts +663 -2
  87. package/dist-types/ts3.4/pagination/ListSpansPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  89. package/dist-types/ts3.4/schemas/schemas_0.d.ts +64 -0
  90. package/package.json +5 -5
@@ -9,12 +9,28 @@ export declare const AIAgentAssociationConfigurationType: {
9
9
  };
10
10
  export type AIAgentAssociationConfigurationType =
11
11
  (typeof AIAgentAssociationConfigurationType)[keyof typeof AIAgentAssociationConfigurationType];
12
+ export declare const ToolOverrideInputValueType: {
13
+ readonly JSON_STRING: "JSON_STRING";
14
+ readonly NUMBER: "NUMBER";
15
+ readonly STRING: "STRING";
16
+ };
17
+ export type ToolOverrideInputValueType =
18
+ (typeof ToolOverrideInputValueType)[keyof typeof ToolOverrideInputValueType];
19
+ export declare const ToolType: {
20
+ readonly CONSTANT: "CONSTANT";
21
+ readonly MODEL_CONTEXT_PROTOCOL: "MODEL_CONTEXT_PROTOCOL";
22
+ readonly RETURN_TO_CONTROL: "RETURN_TO_CONTROL";
23
+ };
24
+ export type ToolType = (typeof ToolType)[keyof typeof ToolType];
12
25
  export declare const AIAgentType: {
13
26
  readonly ANSWER_RECOMMENDATION: "ANSWER_RECOMMENDATION";
27
+ readonly CASE_SUMMARIZATION: "CASE_SUMMARIZATION";
14
28
  readonly EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER";
15
29
  readonly EMAIL_OVERVIEW: "EMAIL_OVERVIEW";
16
30
  readonly EMAIL_RESPONSE: "EMAIL_RESPONSE";
17
31
  readonly MANUAL_SEARCH: "MANUAL_SEARCH";
32
+ readonly NOTE_TAKING: "NOTE_TAKING";
33
+ readonly ORCHESTRATION: "ORCHESTRATION";
18
34
  readonly SELF_SERVICE: "SELF_SERVICE";
19
35
  };
20
36
  export type AIAgentType = (typeof AIAgentType)[keyof typeof AIAgentType];
@@ -128,17 +144,21 @@ export type AIPromptTemplateType =
128
144
  (typeof AIPromptTemplateType)[keyof typeof AIPromptTemplateType];
129
145
  export declare const AIPromptType: {
130
146
  readonly ANSWER_GENERATION: "ANSWER_GENERATION";
147
+ readonly CASE_SUMMARIZATION: "CASE_SUMMARIZATION";
131
148
  readonly EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER";
132
149
  readonly EMAIL_OVERVIEW: "EMAIL_OVERVIEW";
133
150
  readonly EMAIL_QUERY_REFORMULATION: "EMAIL_QUERY_REFORMULATION";
134
151
  readonly EMAIL_RESPONSE: "EMAIL_RESPONSE";
135
152
  readonly INTENT_LABELING_GENERATION: "INTENT_LABELING_GENERATION";
153
+ readonly NOTE_TAKING: "NOTE_TAKING";
154
+ readonly ORCHESTRATION: "ORCHESTRATION";
136
155
  readonly QUERY_REFORMULATION: "QUERY_REFORMULATION";
137
156
  readonly SELF_SERVICE_ANSWER_GENERATION: "SELF_SERVICE_ANSWER_GENERATION";
138
157
  readonly SELF_SERVICE_PRE_PROCESSING: "SELF_SERVICE_PRE_PROCESSING";
139
158
  };
140
159
  export type AIPromptType = (typeof AIPromptType)[keyof typeof AIPromptType];
141
160
  export declare const AssociationType: {
161
+ readonly EXTERNAL_BEDROCK_KNOWLEDGE_BASE: "EXTERNAL_BEDROCK_KNOWLEDGE_BASE";
142
162
  readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
143
163
  };
144
164
  export type AssociationType =
@@ -163,6 +183,26 @@ export declare const AssistantStatus: {
163
183
  };
164
184
  export type AssistantStatus =
165
185
  (typeof AssistantStatus)[keyof typeof AssistantStatus];
186
+ export declare const RecommendationType: {
187
+ readonly BLOCKED_CASE_SUMMARIZATION_CHUNK: "BLOCKED_CASE_SUMMARIZATION_CHUNK";
188
+ readonly BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK";
189
+ readonly BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK";
190
+ readonly BLOCKED_NOTES_CHUNK: "BLOCKED_NOTES_CHUNK";
191
+ readonly CASE_SUMMARIZATION_CHUNK: "CASE_SUMMARIZATION_CHUNK";
192
+ readonly DETECTED_INTENT: "DETECTED_INTENT";
193
+ readonly EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK";
194
+ readonly EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK";
195
+ readonly EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK";
196
+ readonly GENERATIVE_ANSWER: "GENERATIVE_ANSWER";
197
+ readonly GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK";
198
+ readonly GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE";
199
+ readonly INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK";
200
+ readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
201
+ readonly NOTES_CHUNK: "NOTES_CHUNK";
202
+ readonly SUGGESTED_MESSAGE: "SUGGESTED_MESSAGE";
203
+ };
204
+ export type RecommendationType =
205
+ (typeof RecommendationType)[keyof typeof RecommendationType];
166
206
  export declare const RelevanceLevel: {
167
207
  readonly HIGH: "HIGH";
168
208
  readonly LOW: "LOW";
@@ -176,25 +216,18 @@ export declare const SourceContentType: {
176
216
  export type SourceContentType =
177
217
  (typeof SourceContentType)[keyof typeof SourceContentType];
178
218
  export declare const ReferenceType: {
219
+ readonly BEDROCK_KB_CONFLUENCE: "BEDROCK_KB_CONFLUENCE";
220
+ readonly BEDROCK_KB_CUSTOM_DOCUMENT: "BEDROCK_KB_CUSTOM_DOCUMENT";
221
+ readonly BEDROCK_KB_KENDRA: "BEDROCK_KB_KENDRA";
222
+ readonly BEDROCK_KB_S3: "BEDROCK_KB_S3";
223
+ readonly BEDROCK_KB_SALESFORCE: "BEDROCK_KB_SALESFORCE";
224
+ readonly BEDROCK_KB_SHAREPOINT: "BEDROCK_KB_SHAREPOINT";
225
+ readonly BEDROCK_KB_SQL: "BEDROCK_KB_SQL";
226
+ readonly BEDROCK_KB_WEB: "BEDROCK_KB_WEB";
179
227
  readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
180
228
  readonly WEB_CRAWLER: "WEB_CRAWLER";
181
229
  };
182
230
  export type ReferenceType = (typeof ReferenceType)[keyof typeof ReferenceType];
183
- export declare const RecommendationType: {
184
- readonly BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK";
185
- readonly BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK";
186
- readonly DETECTED_INTENT: "DETECTED_INTENT";
187
- readonly EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK";
188
- readonly EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK";
189
- readonly EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK";
190
- readonly GENERATIVE_ANSWER: "GENERATIVE_ANSWER";
191
- readonly GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK";
192
- readonly GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE";
193
- readonly INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK";
194
- readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
195
- };
196
- export type RecommendationType =
197
- (typeof RecommendationType)[keyof typeof RecommendationType];
198
231
  export declare const RecommendationSourceType: {
199
232
  readonly ISSUE_DETECTION: "ISSUE_DETECTION";
200
233
  readonly OTHER: "OTHER";
@@ -229,8 +262,11 @@ export declare const QueryConditionFieldName: {
229
262
  export type QueryConditionFieldName =
230
263
  (typeof QueryConditionFieldName)[keyof typeof QueryConditionFieldName];
231
264
  export declare const QueryResultType: {
265
+ readonly BLOCKED_CASE_SUMMARIZATION_CHUNK: "BLOCKED_CASE_SUMMARIZATION_CHUNK";
232
266
  readonly BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK";
233
267
  readonly BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK";
268
+ readonly BLOCKED_NOTES_CHUNK: "BLOCKED_NOTES_CHUNK";
269
+ readonly CASE_SUMMARIZATION_CHUNK: "CASE_SUMMARIZATION_CHUNK";
234
270
  readonly EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK";
235
271
  readonly EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK";
236
272
  readonly EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK";
@@ -239,6 +275,8 @@ export declare const QueryResultType: {
239
275
  readonly INTENT_ANSWER: "INTENT_ANSWER";
240
276
  readonly INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK";
241
277
  readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
278
+ readonly NOTES: "NOTES";
279
+ readonly NOTES_CHUNK: "NOTES_CHUNK";
242
280
  };
243
281
  export type QueryResultType =
244
282
  (typeof QueryResultType)[keyof typeof QueryResultType];
@@ -275,6 +313,24 @@ export declare const MessageType: {
275
313
  readonly TEXT: "TEXT";
276
314
  };
277
315
  export type MessageType = (typeof MessageType)[keyof typeof MessageType];
316
+ export declare const MessageFilterType: {
317
+ readonly ALL: "ALL";
318
+ readonly TEXT_ONLY: "TEXT_ONLY";
319
+ };
320
+ export type MessageFilterType =
321
+ (typeof MessageFilterType)[keyof typeof MessageFilterType];
322
+ export declare const SpanType: {
323
+ readonly CLIENT: "CLIENT";
324
+ readonly INTERNAL: "INTERNAL";
325
+ readonly SERVER: "SERVER";
326
+ };
327
+ export type SpanType = (typeof SpanType)[keyof typeof SpanType];
328
+ export declare const SpanStatus: {
329
+ readonly ERROR: "ERROR";
330
+ readonly OK: "OK";
331
+ readonly TIMEOUT: "TIMEOUT";
332
+ };
333
+ export type SpanStatus = (typeof SpanStatus)[keyof typeof SpanStatus];
278
334
  export declare const SessionDataNamespace: {
279
335
  readonly Custom: "Custom";
280
336
  };
@@ -64,6 +64,13 @@ export declare class DependencyFailedException extends __BaseException {
64
64
  opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
65
65
  );
66
66
  }
67
+ export declare class UnprocessableContentException extends __BaseException {
68
+ readonly name: "UnprocessableContentException";
69
+ readonly $fault: "client";
70
+ constructor(
71
+ opts: __ExceptionOptionType<UnprocessableContentException, __BaseException>
72
+ );
73
+ }
67
74
  export declare class PreconditionFailedException extends __BaseException {
68
75
  readonly name: "PreconditionFailedException";
69
76
  readonly $fault: "client";