@aws-sdk/client-wisdom 3.929.0 → 3.930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -141,25 +141,9 @@ let ConflictException$1 = class ConflictException extends WisdomServiceException
141
141
  Object.setPrototypeOf(this, ConflictException.prototype);
142
142
  }
143
143
  };
144
- exports.AssistantAssociationInputData = void 0;
145
- (function (AssistantAssociationInputData) {
146
- AssistantAssociationInputData.visit = (value, visitor) => {
147
- if (value.knowledgeBaseId !== undefined)
148
- return visitor.knowledgeBaseId(value.knowledgeBaseId);
149
- return visitor._(value.$unknown[0], value.$unknown[1]);
150
- };
151
- })(exports.AssistantAssociationInputData || (exports.AssistantAssociationInputData = {}));
152
144
  const AssociationType = {
153
145
  KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
154
146
  };
155
- exports.AssistantAssociationOutputData = void 0;
156
- (function (AssistantAssociationOutputData) {
157
- AssistantAssociationOutputData.visit = (value, visitor) => {
158
- if (value.knowledgeBaseAssociation !== undefined)
159
- return visitor.knowledgeBaseAssociation(value.knowledgeBaseAssociation);
160
- return visitor._(value.$unknown[0], value.$unknown[1]);
161
- };
162
- })(exports.AssistantAssociationOutputData || (exports.AssistantAssociationOutputData = {}));
163
147
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends WisdomServiceException$1 {
164
148
  name = "ResourceNotFoundException";
165
149
  $fault = "client";
@@ -217,14 +201,6 @@ const RelevanceLevel = {
217
201
  const RecommendationType = {
218
202
  KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
219
203
  };
220
- exports.RecommendationTriggerData = void 0;
221
- (function (RecommendationTriggerData) {
222
- RecommendationTriggerData.visit = (value, visitor) => {
223
- if (value.query !== undefined)
224
- return visitor.query(value.query);
225
- return visitor._(value.$unknown[0], value.$unknown[1]);
226
- };
227
- })(exports.RecommendationTriggerData || (exports.RecommendationTriggerData = {}));
228
204
  const RecommendationSourceType = {
229
205
  ISSUE_DETECTION: "ISSUE_DETECTION",
230
206
  OTHER: "OTHER",
@@ -252,14 +228,6 @@ const FilterField = {
252
228
  const FilterOperator = {
253
229
  EQUALS: "EQUALS",
254
230
  };
255
- exports.Configuration = void 0;
256
- (function (Configuration) {
257
- Configuration.visit = (value, visitor) => {
258
- if (value.connectConfiguration !== undefined)
259
- return visitor.connectConfiguration(value.connectConfiguration);
260
- return visitor._(value.$unknown[0], value.$unknown[1]);
261
- };
262
- })(exports.Configuration || (exports.Configuration = {}));
263
231
  const ContentStatus = {
264
232
  ACTIVE: "ACTIVE",
265
233
  CREATE_FAILED: "CREATE_FAILED",
@@ -286,14 +254,6 @@ const KnowledgeBaseType = {
286
254
  EXTERNAL: "EXTERNAL",
287
255
  QUICK_RESPONSES: "QUICK_RESPONSES",
288
256
  };
289
- exports.SourceConfiguration = void 0;
290
- (function (SourceConfiguration) {
291
- SourceConfiguration.visit = (value, visitor) => {
292
- if (value.appIntegrations !== undefined)
293
- return visitor.appIntegrations(value.appIntegrations);
294
- return visitor._(value.$unknown[0], value.$unknown[1]);
295
- };
296
- })(exports.SourceConfiguration || (exports.SourceConfiguration = {}));
297
257
  const KnowledgeBaseStatus = {
298
258
  ACTIVE: "ACTIVE",
299
259
  CREATE_FAILED: "CREATE_FAILED",
@@ -302,22 +262,6 @@ const KnowledgeBaseStatus = {
302
262
  DELETE_FAILED: "DELETE_FAILED",
303
263
  DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
304
264
  };
305
- exports.QuickResponseDataProvider = void 0;
306
- (function (QuickResponseDataProvider) {
307
- QuickResponseDataProvider.visit = (value, visitor) => {
308
- if (value.content !== undefined)
309
- return visitor.content(value.content);
310
- return visitor._(value.$unknown[0], value.$unknown[1]);
311
- };
312
- })(exports.QuickResponseDataProvider || (exports.QuickResponseDataProvider = {}));
313
- exports.QuickResponseContentProvider = void 0;
314
- (function (QuickResponseContentProvider) {
315
- QuickResponseContentProvider.visit = (value, visitor) => {
316
- if (value.content !== undefined)
317
- return visitor.content(value.content);
318
- return visitor._(value.$unknown[0], value.$unknown[1]);
319
- };
320
- })(exports.QuickResponseContentProvider || (exports.QuickResponseContentProvider = {}));
321
265
  const QuickResponseStatus = {
322
266
  CREATED: "CREATED",
323
267
  CREATE_FAILED: "CREATE_FAILED",
@@ -23,25 +23,9 @@ export class ConflictException extends __BaseException {
23
23
  Object.setPrototypeOf(this, ConflictException.prototype);
24
24
  }
25
25
  }
26
- export var AssistantAssociationInputData;
27
- (function (AssistantAssociationInputData) {
28
- AssistantAssociationInputData.visit = (value, visitor) => {
29
- if (value.knowledgeBaseId !== undefined)
30
- return visitor.knowledgeBaseId(value.knowledgeBaseId);
31
- return visitor._(value.$unknown[0], value.$unknown[1]);
32
- };
33
- })(AssistantAssociationInputData || (AssistantAssociationInputData = {}));
34
26
  export const AssociationType = {
35
27
  KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
36
28
  };
37
- export var AssistantAssociationOutputData;
38
- (function (AssistantAssociationOutputData) {
39
- AssistantAssociationOutputData.visit = (value, visitor) => {
40
- if (value.knowledgeBaseAssociation !== undefined)
41
- return visitor.knowledgeBaseAssociation(value.knowledgeBaseAssociation);
42
- return visitor._(value.$unknown[0], value.$unknown[1]);
43
- };
44
- })(AssistantAssociationOutputData || (AssistantAssociationOutputData = {}));
45
29
  export class ResourceNotFoundException extends __BaseException {
46
30
  name = "ResourceNotFoundException";
47
31
  $fault = "client";
@@ -99,14 +83,6 @@ export const RelevanceLevel = {
99
83
  export const RecommendationType = {
100
84
  KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
101
85
  };
102
- export var RecommendationTriggerData;
103
- (function (RecommendationTriggerData) {
104
- RecommendationTriggerData.visit = (value, visitor) => {
105
- if (value.query !== undefined)
106
- return visitor.query(value.query);
107
- return visitor._(value.$unknown[0], value.$unknown[1]);
108
- };
109
- })(RecommendationTriggerData || (RecommendationTriggerData = {}));
110
86
  export const RecommendationSourceType = {
111
87
  ISSUE_DETECTION: "ISSUE_DETECTION",
112
88
  OTHER: "OTHER",
@@ -134,14 +110,6 @@ export const FilterField = {
134
110
  export const FilterOperator = {
135
111
  EQUALS: "EQUALS",
136
112
  };
137
- export var Configuration;
138
- (function (Configuration) {
139
- Configuration.visit = (value, visitor) => {
140
- if (value.connectConfiguration !== undefined)
141
- return visitor.connectConfiguration(value.connectConfiguration);
142
- return visitor._(value.$unknown[0], value.$unknown[1]);
143
- };
144
- })(Configuration || (Configuration = {}));
145
113
  export const ContentStatus = {
146
114
  ACTIVE: "ACTIVE",
147
115
  CREATE_FAILED: "CREATE_FAILED",
@@ -168,14 +136,6 @@ export const KnowledgeBaseType = {
168
136
  EXTERNAL: "EXTERNAL",
169
137
  QUICK_RESPONSES: "QUICK_RESPONSES",
170
138
  };
171
- export var SourceConfiguration;
172
- (function (SourceConfiguration) {
173
- SourceConfiguration.visit = (value, visitor) => {
174
- if (value.appIntegrations !== undefined)
175
- return visitor.appIntegrations(value.appIntegrations);
176
- return visitor._(value.$unknown[0], value.$unknown[1]);
177
- };
178
- })(SourceConfiguration || (SourceConfiguration = {}));
179
139
  export const KnowledgeBaseStatus = {
180
140
  ACTIVE: "ACTIVE",
181
141
  CREATE_FAILED: "CREATE_FAILED",
@@ -184,22 +144,6 @@ export const KnowledgeBaseStatus = {
184
144
  DELETE_FAILED: "DELETE_FAILED",
185
145
  DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
186
146
  };
187
- export var QuickResponseDataProvider;
188
- (function (QuickResponseDataProvider) {
189
- QuickResponseDataProvider.visit = (value, visitor) => {
190
- if (value.content !== undefined)
191
- return visitor.content(value.content);
192
- return visitor._(value.$unknown[0], value.$unknown[1]);
193
- };
194
- })(QuickResponseDataProvider || (QuickResponseDataProvider = {}));
195
- export var QuickResponseContentProvider;
196
- (function (QuickResponseContentProvider) {
197
- QuickResponseContentProvider.visit = (value, visitor) => {
198
- if (value.content !== undefined)
199
- return visitor.content(value.content);
200
- return visitor._(value.$unknown[0], value.$unknown[1]);
201
- };
202
- })(QuickResponseContentProvider || (QuickResponseContentProvider = {}));
203
147
  export const QuickResponseStatus = {
204
148
  CREATED: "CREATED",
205
149
  CREATE_FAILED: "CREATE_FAILED",
@@ -127,11 +127,14 @@ export declare namespace AssistantAssociationInputData {
127
127
  knowledgeBaseId?: never;
128
128
  $unknown: [string, any];
129
129
  }
130
+ /**
131
+ * @deprecated unused in schema-serde mode.
132
+ *
133
+ */
130
134
  interface Visitor<T> {
131
135
  knowledgeBaseId: (value: string) => T;
132
136
  _: (name: string, value: any) => T;
133
137
  }
134
- const visit: <T>(value: AssistantAssociationInputData, visitor: Visitor<T>) => T;
135
138
  }
136
139
  /**
137
140
  * @public
@@ -218,11 +221,14 @@ export declare namespace AssistantAssociationOutputData {
218
221
  knowledgeBaseAssociation?: never;
219
222
  $unknown: [string, any];
220
223
  }
224
+ /**
225
+ * @deprecated unused in schema-serde mode.
226
+ *
227
+ */
221
228
  interface Visitor<T> {
222
229
  knowledgeBaseAssociation: (value: KnowledgeBaseAssociationData) => T;
223
230
  _: (name: string, value: any) => T;
224
231
  }
225
- const visit: <T>(value: AssistantAssociationOutputData, visitor: Visitor<T>) => T;
226
232
  }
227
233
  /**
228
234
  * <p>Information about the assistant association.</p>
@@ -839,11 +845,14 @@ export declare namespace RecommendationTriggerData {
839
845
  query?: never;
840
846
  $unknown: [string, any];
841
847
  }
848
+ /**
849
+ * @deprecated unused in schema-serde mode.
850
+ *
851
+ */
842
852
  interface Visitor<T> {
843
853
  query: (value: QueryRecommendationTriggerData) => T;
844
854
  _: (name: string, value: any) => T;
845
855
  }
846
- const visit: <T>(value: RecommendationTriggerData, visitor: Visitor<T>) => T;
847
856
  }
848
857
  /**
849
858
  * @public
@@ -1416,11 +1425,14 @@ export declare namespace Configuration {
1416
1425
  connectConfiguration?: never;
1417
1426
  $unknown: [string, any];
1418
1427
  }
1428
+ /**
1429
+ * @deprecated unused in schema-serde mode.
1430
+ *
1431
+ */
1419
1432
  interface Visitor<T> {
1420
1433
  connectConfiguration: (value: ConnectConfiguration) => T;
1421
1434
  _: (name: string, value: any) => T;
1422
1435
  }
1423
- const visit: <T>(value: Configuration, visitor: Visitor<T>) => T;
1424
1436
  }
1425
1437
  /**
1426
1438
  * @public
@@ -1899,11 +1911,14 @@ export declare namespace SourceConfiguration {
1899
1911
  appIntegrations?: never;
1900
1912
  $unknown: [string, any];
1901
1913
  }
1914
+ /**
1915
+ * @deprecated unused in schema-serde mode.
1916
+ *
1917
+ */
1902
1918
  interface Visitor<T> {
1903
1919
  appIntegrations: (value: AppIntegrationsConfiguration) => T;
1904
1920
  _: (name: string, value: any) => T;
1905
1921
  }
1906
- const visit: <T>(value: SourceConfiguration, visitor: Visitor<T>) => T;
1907
1922
  }
1908
1923
  /**
1909
1924
  * @public
@@ -2079,11 +2094,14 @@ export declare namespace QuickResponseDataProvider {
2079
2094
  content?: never;
2080
2095
  $unknown: [string, any];
2081
2096
  }
2097
+ /**
2098
+ * @deprecated unused in schema-serde mode.
2099
+ *
2100
+ */
2082
2101
  interface Visitor<T> {
2083
2102
  content: (value: string) => T;
2084
2103
  _: (name: string, value: any) => T;
2085
2104
  }
2086
- const visit: <T>(value: QuickResponseDataProvider, visitor: Visitor<T>) => T;
2087
2105
  }
2088
2106
  /**
2089
2107
  * <p>The configuration information of the grouping of Wisdom users.</p>
@@ -2221,11 +2239,14 @@ export declare namespace QuickResponseContentProvider {
2221
2239
  content?: never;
2222
2240
  $unknown: [string, any];
2223
2241
  }
2242
+ /**
2243
+ * @deprecated unused in schema-serde mode.
2244
+ *
2245
+ */
2224
2246
  interface Visitor<T> {
2225
2247
  content: (value: string) => T;
2226
2248
  _: (name: string, value: any) => T;
2227
2249
  }
2228
- const visit: <T>(value: QuickResponseContentProvider, visitor: Visitor<T>) => T;
2229
2250
  }
2230
2251
  /**
2231
2252
  * <p>The content of the quick response stored in different media types.</p>
@@ -32,10 +32,6 @@ export declare namespace AssistantAssociationInputData {
32
32
  knowledgeBaseId: (value: string) => T;
33
33
  _: (name: string, value: any) => T;
34
34
  }
35
- const visit: <T>(
36
- value: AssistantAssociationInputData,
37
- visitor: Visitor<T>
38
- ) => T;
39
35
  }
40
36
  export declare const AssociationType: {
41
37
  readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
@@ -69,10 +65,6 @@ export declare namespace AssistantAssociationOutputData {
69
65
  knowledgeBaseAssociation: (value: KnowledgeBaseAssociationData) => T;
70
66
  _: (name: string, value: any) => T;
71
67
  }
72
- const visit: <T>(
73
- value: AssistantAssociationOutputData,
74
- visitor: Visitor<T>
75
- ) => T;
76
68
  }
77
69
  export interface AssistantAssociationData {
78
70
  assistantAssociationId: string | undefined;
@@ -257,7 +249,6 @@ export declare namespace RecommendationTriggerData {
257
249
  query: (value: QueryRecommendationTriggerData) => T;
258
250
  _: (name: string, value: any) => T;
259
251
  }
260
- const visit: <T>(value: RecommendationTriggerData, visitor: Visitor<T>) => T;
261
252
  }
262
253
  export declare const RecommendationSourceType: {
263
254
  readonly ISSUE_DETECTION: "ISSUE_DETECTION";
@@ -419,7 +410,6 @@ export declare namespace Configuration {
419
410
  connectConfiguration: (value: ConnectConfiguration) => T;
420
411
  _: (name: string, value: any) => T;
421
412
  }
422
- const visit: <T>(value: Configuration, visitor: Visitor<T>) => T;
423
413
  }
424
414
  export interface CreateContentRequest {
425
415
  knowledgeBaseId: string | undefined;
@@ -547,7 +537,6 @@ export declare namespace SourceConfiguration {
547
537
  appIntegrations: (value: AppIntegrationsConfiguration) => T;
548
538
  _: (name: string, value: any) => T;
549
539
  }
550
- const visit: <T>(value: SourceConfiguration, visitor: Visitor<T>) => T;
551
540
  }
552
541
  export interface CreateKnowledgeBaseRequest {
553
542
  clientToken?: string | undefined;
@@ -605,7 +594,6 @@ export declare namespace QuickResponseDataProvider {
605
594
  content: (value: string) => T;
606
595
  _: (name: string, value: any) => T;
607
596
  }
608
- const visit: <T>(value: QuickResponseDataProvider, visitor: Visitor<T>) => T;
609
597
  }
610
598
  export interface GroupingConfiguration {
611
599
  criteria?: string | undefined;
@@ -641,10 +629,6 @@ export declare namespace QuickResponseContentProvider {
641
629
  content: (value: string) => T;
642
630
  _: (name: string, value: any) => T;
643
631
  }
644
- const visit: <T>(
645
- value: QuickResponseContentProvider,
646
- visitor: Visitor<T>
647
- ) => T;
648
632
  }
649
633
  export interface QuickResponseContents {
650
634
  plainText?: QuickResponseContentProvider | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wisdom",
3
3
  "description": "AWS SDK for JavaScript Wisdom Client for Node.js, Browser and React Native",
4
- "version": "3.929.0",
4
+ "version": "3.930.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-wisdom",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.929.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/fetch-http-handler": "^5.3.5",
37
- "@smithy/hash-node": "^4.2.4",
38
- "@smithy/invalid-dependency": "^4.2.4",
39
- "@smithy/middleware-content-length": "^4.2.4",
40
- "@smithy/middleware-endpoint": "^4.3.6",
41
- "@smithy/middleware-retry": "^4.4.6",
42
- "@smithy/middleware-serde": "^4.2.4",
43
- "@smithy/middleware-stack": "^4.2.4",
44
- "@smithy/node-config-provider": "^4.3.4",
45
- "@smithy/node-http-handler": "^4.4.4",
46
- "@smithy/protocol-http": "^5.3.4",
47
- "@smithy/smithy-client": "^4.9.2",
48
- "@smithy/types": "^4.8.1",
49
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.930.0",
24
+ "@aws-sdk/credential-provider-node": "3.930.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.930.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.930.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/fetch-http-handler": "^5.3.6",
37
+ "@smithy/hash-node": "^4.2.5",
38
+ "@smithy/invalid-dependency": "^4.2.5",
39
+ "@smithy/middleware-content-length": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.9",
41
+ "@smithy/middleware-retry": "^4.4.9",
42
+ "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-stack": "^4.2.5",
44
+ "@smithy/node-config-provider": "^4.3.5",
45
+ "@smithy/node-http-handler": "^4.4.5",
46
+ "@smithy/protocol-http": "^5.3.5",
47
+ "@smithy/smithy-client": "^4.9.5",
48
+ "@smithy/types": "^4.9.0",
49
+ "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.8",
55
- "@smithy/util-endpoints": "^3.2.4",
56
- "@smithy/util-middleware": "^4.2.4",
57
- "@smithy/util-retry": "^4.2.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
54
+ "@smithy/util-defaults-mode-node": "^4.2.11",
55
+ "@smithy/util-endpoints": "^3.2.5",
56
+ "@smithy/util-middleware": "^4.2.5",
57
+ "@smithy/util-retry": "^4.2.5",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
59
  "tslib": "^2.6.2"
60
60
  },