@aws-sdk/client-wisdom 3.301.0 → 3.306.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.
@@ -37,10 +37,9 @@ var AssistantAssociationInputData;
37
37
  return visitor._(value.$unknown[0], value.$unknown[1]);
38
38
  };
39
39
  })(AssistantAssociationInputData = exports.AssistantAssociationInputData || (exports.AssistantAssociationInputData = {}));
40
- var AssociationType;
41
- (function (AssociationType) {
42
- AssociationType["KNOWLEDGE_BASE"] = "KNOWLEDGE_BASE";
43
- })(AssociationType = exports.AssociationType || (exports.AssociationType = {}));
40
+ exports.AssociationType = {
41
+ KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
42
+ };
44
43
  var AssistantAssociationOutputData;
45
44
  (function (AssistantAssociationOutputData) {
46
45
  AssistantAssociationOutputData.visit = (value, visitor) => {
@@ -89,29 +88,25 @@ class ValidationException extends WisdomServiceException_1.WisdomServiceExceptio
89
88
  }
90
89
  }
91
90
  exports.ValidationException = ValidationException;
92
- var AssistantType;
93
- (function (AssistantType) {
94
- AssistantType["AGENT"] = "AGENT";
95
- })(AssistantType = exports.AssistantType || (exports.AssistantType = {}));
96
- var AssistantStatus;
97
- (function (AssistantStatus) {
98
- AssistantStatus["ACTIVE"] = "ACTIVE";
99
- AssistantStatus["CREATE_FAILED"] = "CREATE_FAILED";
100
- AssistantStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
101
- AssistantStatus["DELETED"] = "DELETED";
102
- AssistantStatus["DELETE_FAILED"] = "DELETE_FAILED";
103
- AssistantStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
104
- })(AssistantStatus = exports.AssistantStatus || (exports.AssistantStatus = {}));
105
- var RelevanceLevel;
106
- (function (RelevanceLevel) {
107
- RelevanceLevel["HIGH"] = "HIGH";
108
- RelevanceLevel["LOW"] = "LOW";
109
- RelevanceLevel["MEDIUM"] = "MEDIUM";
110
- })(RelevanceLevel = exports.RelevanceLevel || (exports.RelevanceLevel = {}));
111
- var RecommendationType;
112
- (function (RecommendationType) {
113
- RecommendationType["KNOWLEDGE_CONTENT"] = "KNOWLEDGE_CONTENT";
114
- })(RecommendationType = exports.RecommendationType || (exports.RecommendationType = {}));
91
+ exports.AssistantType = {
92
+ AGENT: "AGENT",
93
+ };
94
+ exports.AssistantStatus = {
95
+ ACTIVE: "ACTIVE",
96
+ CREATE_FAILED: "CREATE_FAILED",
97
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
98
+ DELETED: "DELETED",
99
+ DELETE_FAILED: "DELETE_FAILED",
100
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
101
+ };
102
+ exports.RelevanceLevel = {
103
+ HIGH: "HIGH",
104
+ LOW: "LOW",
105
+ MEDIUM: "MEDIUM",
106
+ };
107
+ exports.RecommendationType = {
108
+ KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
109
+ };
115
110
  var RecommendationTriggerData;
116
111
  (function (RecommendationTriggerData) {
117
112
  RecommendationTriggerData.visit = (value, visitor) => {
@@ -120,34 +115,29 @@ var RecommendationTriggerData;
120
115
  return visitor._(value.$unknown[0], value.$unknown[1]);
121
116
  };
122
117
  })(RecommendationTriggerData = exports.RecommendationTriggerData || (exports.RecommendationTriggerData = {}));
123
- var RecommendationSourceType;
124
- (function (RecommendationSourceType) {
125
- RecommendationSourceType["ISSUE_DETECTION"] = "ISSUE_DETECTION";
126
- RecommendationSourceType["OTHER"] = "OTHER";
127
- RecommendationSourceType["RULE_EVALUATION"] = "RULE_EVALUATION";
128
- })(RecommendationSourceType = exports.RecommendationSourceType || (exports.RecommendationSourceType = {}));
129
- var RecommendationTriggerType;
130
- (function (RecommendationTriggerType) {
131
- RecommendationTriggerType["QUERY"] = "QUERY";
132
- })(RecommendationTriggerType = exports.RecommendationTriggerType || (exports.RecommendationTriggerType = {}));
133
- var FilterField;
134
- (function (FilterField) {
135
- FilterField["NAME"] = "NAME";
136
- })(FilterField = exports.FilterField || (exports.FilterField = {}));
137
- var FilterOperator;
138
- (function (FilterOperator) {
139
- FilterOperator["EQUALS"] = "EQUALS";
140
- })(FilterOperator = exports.FilterOperator || (exports.FilterOperator = {}));
141
- var ContentStatus;
142
- (function (ContentStatus) {
143
- ContentStatus["ACTIVE"] = "ACTIVE";
144
- ContentStatus["CREATE_FAILED"] = "CREATE_FAILED";
145
- ContentStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
146
- ContentStatus["DELETED"] = "DELETED";
147
- ContentStatus["DELETE_FAILED"] = "DELETE_FAILED";
148
- ContentStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
149
- ContentStatus["UPDATE_FAILED"] = "UPDATE_FAILED";
150
- })(ContentStatus = exports.ContentStatus || (exports.ContentStatus = {}));
118
+ exports.RecommendationSourceType = {
119
+ ISSUE_DETECTION: "ISSUE_DETECTION",
120
+ OTHER: "OTHER",
121
+ RULE_EVALUATION: "RULE_EVALUATION",
122
+ };
123
+ exports.RecommendationTriggerType = {
124
+ QUERY: "QUERY",
125
+ };
126
+ exports.FilterField = {
127
+ NAME: "NAME",
128
+ };
129
+ exports.FilterOperator = {
130
+ EQUALS: "EQUALS",
131
+ };
132
+ exports.ContentStatus = {
133
+ ACTIVE: "ACTIVE",
134
+ CREATE_FAILED: "CREATE_FAILED",
135
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
136
+ DELETED: "DELETED",
137
+ DELETE_FAILED: "DELETE_FAILED",
138
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
139
+ UPDATE_FAILED: "UPDATE_FAILED",
140
+ };
151
141
  class PreconditionFailedException extends WisdomServiceException_1.WisdomServiceException {
152
142
  constructor(opts) {
153
143
  super({
@@ -161,11 +151,10 @@ class PreconditionFailedException extends WisdomServiceException_1.WisdomService
161
151
  }
162
152
  }
163
153
  exports.PreconditionFailedException = PreconditionFailedException;
164
- var KnowledgeBaseType;
165
- (function (KnowledgeBaseType) {
166
- KnowledgeBaseType["CUSTOM"] = "CUSTOM";
167
- KnowledgeBaseType["EXTERNAL"] = "EXTERNAL";
168
- })(KnowledgeBaseType = exports.KnowledgeBaseType || (exports.KnowledgeBaseType = {}));
154
+ exports.KnowledgeBaseType = {
155
+ CUSTOM: "CUSTOM",
156
+ EXTERNAL: "EXTERNAL",
157
+ };
169
158
  var SourceConfiguration;
170
159
  (function (SourceConfiguration) {
171
160
  SourceConfiguration.visit = (value, visitor) => {
@@ -174,15 +163,14 @@ var SourceConfiguration;
174
163
  return visitor._(value.$unknown[0], value.$unknown[1]);
175
164
  };
176
165
  })(SourceConfiguration = exports.SourceConfiguration || (exports.SourceConfiguration = {}));
177
- var KnowledgeBaseStatus;
178
- (function (KnowledgeBaseStatus) {
179
- KnowledgeBaseStatus["ACTIVE"] = "ACTIVE";
180
- KnowledgeBaseStatus["CREATE_FAILED"] = "CREATE_FAILED";
181
- KnowledgeBaseStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
182
- KnowledgeBaseStatus["DELETED"] = "DELETED";
183
- KnowledgeBaseStatus["DELETE_FAILED"] = "DELETE_FAILED";
184
- KnowledgeBaseStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
185
- })(KnowledgeBaseStatus = exports.KnowledgeBaseStatus || (exports.KnowledgeBaseStatus = {}));
166
+ exports.KnowledgeBaseStatus = {
167
+ ACTIVE: "ACTIVE",
168
+ CREATE_FAILED: "CREATE_FAILED",
169
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
170
+ DELETED: "DELETED",
171
+ DELETE_FAILED: "DELETE_FAILED",
172
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
173
+ };
186
174
  class TooManyTagsException extends WisdomServiceException_1.WisdomServiceException {
187
175
  constructor(opts) {
188
176
  super({
@@ -32,10 +32,9 @@ export var AssistantAssociationInputData;
32
32
  return visitor._(value.$unknown[0], value.$unknown[1]);
33
33
  };
34
34
  })(AssistantAssociationInputData || (AssistantAssociationInputData = {}));
35
- export var AssociationType;
36
- (function (AssociationType) {
37
- AssociationType["KNOWLEDGE_BASE"] = "KNOWLEDGE_BASE";
38
- })(AssociationType || (AssociationType = {}));
35
+ export const AssociationType = {
36
+ KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
37
+ };
39
38
  export var AssistantAssociationOutputData;
40
39
  (function (AssistantAssociationOutputData) {
41
40
  AssistantAssociationOutputData.visit = (value, visitor) => {
@@ -81,29 +80,25 @@ export class ValidationException extends __BaseException {
81
80
  Object.setPrototypeOf(this, ValidationException.prototype);
82
81
  }
83
82
  }
84
- export var AssistantType;
85
- (function (AssistantType) {
86
- AssistantType["AGENT"] = "AGENT";
87
- })(AssistantType || (AssistantType = {}));
88
- export var AssistantStatus;
89
- (function (AssistantStatus) {
90
- AssistantStatus["ACTIVE"] = "ACTIVE";
91
- AssistantStatus["CREATE_FAILED"] = "CREATE_FAILED";
92
- AssistantStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
93
- AssistantStatus["DELETED"] = "DELETED";
94
- AssistantStatus["DELETE_FAILED"] = "DELETE_FAILED";
95
- AssistantStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
96
- })(AssistantStatus || (AssistantStatus = {}));
97
- export var RelevanceLevel;
98
- (function (RelevanceLevel) {
99
- RelevanceLevel["HIGH"] = "HIGH";
100
- RelevanceLevel["LOW"] = "LOW";
101
- RelevanceLevel["MEDIUM"] = "MEDIUM";
102
- })(RelevanceLevel || (RelevanceLevel = {}));
103
- export var RecommendationType;
104
- (function (RecommendationType) {
105
- RecommendationType["KNOWLEDGE_CONTENT"] = "KNOWLEDGE_CONTENT";
106
- })(RecommendationType || (RecommendationType = {}));
83
+ export const AssistantType = {
84
+ AGENT: "AGENT",
85
+ };
86
+ export const AssistantStatus = {
87
+ ACTIVE: "ACTIVE",
88
+ CREATE_FAILED: "CREATE_FAILED",
89
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
90
+ DELETED: "DELETED",
91
+ DELETE_FAILED: "DELETE_FAILED",
92
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
93
+ };
94
+ export const RelevanceLevel = {
95
+ HIGH: "HIGH",
96
+ LOW: "LOW",
97
+ MEDIUM: "MEDIUM",
98
+ };
99
+ export const RecommendationType = {
100
+ KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
101
+ };
107
102
  export var RecommendationTriggerData;
108
103
  (function (RecommendationTriggerData) {
109
104
  RecommendationTriggerData.visit = (value, visitor) => {
@@ -112,34 +107,29 @@ export var RecommendationTriggerData;
112
107
  return visitor._(value.$unknown[0], value.$unknown[1]);
113
108
  };
114
109
  })(RecommendationTriggerData || (RecommendationTriggerData = {}));
115
- export var RecommendationSourceType;
116
- (function (RecommendationSourceType) {
117
- RecommendationSourceType["ISSUE_DETECTION"] = "ISSUE_DETECTION";
118
- RecommendationSourceType["OTHER"] = "OTHER";
119
- RecommendationSourceType["RULE_EVALUATION"] = "RULE_EVALUATION";
120
- })(RecommendationSourceType || (RecommendationSourceType = {}));
121
- export var RecommendationTriggerType;
122
- (function (RecommendationTriggerType) {
123
- RecommendationTriggerType["QUERY"] = "QUERY";
124
- })(RecommendationTriggerType || (RecommendationTriggerType = {}));
125
- export var FilterField;
126
- (function (FilterField) {
127
- FilterField["NAME"] = "NAME";
128
- })(FilterField || (FilterField = {}));
129
- export var FilterOperator;
130
- (function (FilterOperator) {
131
- FilterOperator["EQUALS"] = "EQUALS";
132
- })(FilterOperator || (FilterOperator = {}));
133
- export var ContentStatus;
134
- (function (ContentStatus) {
135
- ContentStatus["ACTIVE"] = "ACTIVE";
136
- ContentStatus["CREATE_FAILED"] = "CREATE_FAILED";
137
- ContentStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
138
- ContentStatus["DELETED"] = "DELETED";
139
- ContentStatus["DELETE_FAILED"] = "DELETE_FAILED";
140
- ContentStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
141
- ContentStatus["UPDATE_FAILED"] = "UPDATE_FAILED";
142
- })(ContentStatus || (ContentStatus = {}));
110
+ export const RecommendationSourceType = {
111
+ ISSUE_DETECTION: "ISSUE_DETECTION",
112
+ OTHER: "OTHER",
113
+ RULE_EVALUATION: "RULE_EVALUATION",
114
+ };
115
+ export const RecommendationTriggerType = {
116
+ QUERY: "QUERY",
117
+ };
118
+ export const FilterField = {
119
+ NAME: "NAME",
120
+ };
121
+ export const FilterOperator = {
122
+ EQUALS: "EQUALS",
123
+ };
124
+ export const ContentStatus = {
125
+ ACTIVE: "ACTIVE",
126
+ CREATE_FAILED: "CREATE_FAILED",
127
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
128
+ DELETED: "DELETED",
129
+ DELETE_FAILED: "DELETE_FAILED",
130
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
131
+ UPDATE_FAILED: "UPDATE_FAILED",
132
+ };
143
133
  export class PreconditionFailedException extends __BaseException {
144
134
  constructor(opts) {
145
135
  super({
@@ -152,11 +142,10 @@ export class PreconditionFailedException extends __BaseException {
152
142
  Object.setPrototypeOf(this, PreconditionFailedException.prototype);
153
143
  }
154
144
  }
155
- export var KnowledgeBaseType;
156
- (function (KnowledgeBaseType) {
157
- KnowledgeBaseType["CUSTOM"] = "CUSTOM";
158
- KnowledgeBaseType["EXTERNAL"] = "EXTERNAL";
159
- })(KnowledgeBaseType || (KnowledgeBaseType = {}));
145
+ export const KnowledgeBaseType = {
146
+ CUSTOM: "CUSTOM",
147
+ EXTERNAL: "EXTERNAL",
148
+ };
160
149
  export var SourceConfiguration;
161
150
  (function (SourceConfiguration) {
162
151
  SourceConfiguration.visit = (value, visitor) => {
@@ -165,15 +154,14 @@ export var SourceConfiguration;
165
154
  return visitor._(value.$unknown[0], value.$unknown[1]);
166
155
  };
167
156
  })(SourceConfiguration || (SourceConfiguration = {}));
168
- export var KnowledgeBaseStatus;
169
- (function (KnowledgeBaseStatus) {
170
- KnowledgeBaseStatus["ACTIVE"] = "ACTIVE";
171
- KnowledgeBaseStatus["CREATE_FAILED"] = "CREATE_FAILED";
172
- KnowledgeBaseStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
173
- KnowledgeBaseStatus["DELETED"] = "DELETED";
174
- KnowledgeBaseStatus["DELETE_FAILED"] = "DELETE_FAILED";
175
- KnowledgeBaseStatus["DELETE_IN_PROGRESS"] = "DELETE_IN_PROGRESS";
176
- })(KnowledgeBaseStatus || (KnowledgeBaseStatus = {}));
157
+ export const KnowledgeBaseStatus = {
158
+ ACTIVE: "ACTIVE",
159
+ CREATE_FAILED: "CREATE_FAILED",
160
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
161
+ DELETED: "DELETED",
162
+ DELETE_FAILED: "DELETE_FAILED",
163
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
164
+ };
177
165
  export class TooManyTagsException extends __BaseException {
178
166
  constructor(opts) {
179
167
  super({
@@ -115,10 +115,15 @@ export declare namespace AssistantAssociationInputData {
115
115
  }
116
116
  /**
117
117
  * @public
118
+ * @enum
118
119
  */
119
- export declare enum AssociationType {
120
- KNOWLEDGE_BASE = "KNOWLEDGE_BASE"
121
- }
120
+ export declare const AssociationType: {
121
+ readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
122
+ };
123
+ /**
124
+ * @public
125
+ */
126
+ export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType];
122
127
  /**
123
128
  * @public
124
129
  */
@@ -389,10 +394,15 @@ export interface ServerSideEncryptionConfiguration {
389
394
  }
390
395
  /**
391
396
  * @public
397
+ * @enum
392
398
  */
393
- export declare enum AssistantType {
394
- AGENT = "AGENT"
395
- }
399
+ export declare const AssistantType: {
400
+ readonly AGENT: "AGENT";
401
+ };
402
+ /**
403
+ * @public
404
+ */
405
+ export type AssistantType = (typeof AssistantType)[keyof typeof AssistantType];
396
406
  /**
397
407
  * @public
398
408
  */
@@ -427,15 +437,20 @@ export interface CreateAssistantRequest {
427
437
  }
428
438
  /**
429
439
  * @public
440
+ * @enum
430
441
  */
431
- export declare enum AssistantStatus {
432
- ACTIVE = "ACTIVE",
433
- CREATE_FAILED = "CREATE_FAILED",
434
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
435
- DELETED = "DELETED",
436
- DELETE_FAILED = "DELETE_FAILED",
437
- DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS"
438
- }
442
+ export declare const AssistantStatus: {
443
+ readonly ACTIVE: "ACTIVE";
444
+ readonly CREATE_FAILED: "CREATE_FAILED";
445
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
446
+ readonly DELETED: "DELETED";
447
+ readonly DELETE_FAILED: "DELETE_FAILED";
448
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
449
+ };
450
+ /**
451
+ * @public
452
+ */
453
+ export type AssistantStatus = (typeof AssistantStatus)[keyof typeof AssistantStatus];
439
454
  /**
440
455
  * @public
441
456
  * <p>The assistant data.</p>
@@ -610,18 +625,28 @@ export interface Document {
610
625
  }
611
626
  /**
612
627
  * @public
628
+ * @enum
613
629
  */
614
- export declare enum RelevanceLevel {
615
- HIGH = "HIGH",
616
- LOW = "LOW",
617
- MEDIUM = "MEDIUM"
618
- }
630
+ export declare const RelevanceLevel: {
631
+ readonly HIGH: "HIGH";
632
+ readonly LOW: "LOW";
633
+ readonly MEDIUM: "MEDIUM";
634
+ };
619
635
  /**
620
636
  * @public
621
637
  */
622
- export declare enum RecommendationType {
623
- KNOWLEDGE_CONTENT = "KNOWLEDGE_CONTENT"
624
- }
638
+ export type RelevanceLevel = (typeof RelevanceLevel)[keyof typeof RelevanceLevel];
639
+ /**
640
+ * @public
641
+ * @enum
642
+ */
643
+ export declare const RecommendationType: {
644
+ readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
645
+ };
646
+ /**
647
+ * @public
648
+ */
649
+ export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType];
625
650
  /**
626
651
  * @public
627
652
  * <p>Information about the recommendation.</p>
@@ -686,18 +711,28 @@ export declare namespace RecommendationTriggerData {
686
711
  }
687
712
  /**
688
713
  * @public
714
+ * @enum
689
715
  */
690
- export declare enum RecommendationSourceType {
691
- ISSUE_DETECTION = "ISSUE_DETECTION",
692
- OTHER = "OTHER",
693
- RULE_EVALUATION = "RULE_EVALUATION"
694
- }
716
+ export declare const RecommendationSourceType: {
717
+ readonly ISSUE_DETECTION: "ISSUE_DETECTION";
718
+ readonly OTHER: "OTHER";
719
+ readonly RULE_EVALUATION: "RULE_EVALUATION";
720
+ };
695
721
  /**
696
722
  * @public
697
723
  */
698
- export declare enum RecommendationTriggerType {
699
- QUERY = "QUERY"
700
- }
724
+ export type RecommendationSourceType = (typeof RecommendationSourceType)[keyof typeof RecommendationSourceType];
725
+ /**
726
+ * @public
727
+ * @enum
728
+ */
729
+ export declare const RecommendationTriggerType: {
730
+ readonly QUERY: "QUERY";
731
+ };
732
+ /**
733
+ * @public
734
+ */
735
+ export type RecommendationTriggerType = (typeof RecommendationTriggerType)[keyof typeof RecommendationTriggerType];
701
736
  /**
702
737
  * @public
703
738
  * <p>A recommendation trigger provides context on the event that produced the referenced
@@ -913,16 +948,26 @@ export interface QueryAssistantResponse {
913
948
  }
914
949
  /**
915
950
  * @public
951
+ * @enum
916
952
  */
917
- export declare enum FilterField {
918
- NAME = "NAME"
919
- }
953
+ export declare const FilterField: {
954
+ readonly NAME: "NAME";
955
+ };
920
956
  /**
921
957
  * @public
922
958
  */
923
- export declare enum FilterOperator {
924
- EQUALS = "EQUALS"
925
- }
959
+ export type FilterField = (typeof FilterField)[keyof typeof FilterField];
960
+ /**
961
+ * @public
962
+ * @enum
963
+ */
964
+ export declare const FilterOperator: {
965
+ readonly EQUALS: "EQUALS";
966
+ };
967
+ /**
968
+ * @public
969
+ */
970
+ export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator];
926
971
  /**
927
972
  * @public
928
973
  * <p>A search filter.</p>
@@ -1139,16 +1184,21 @@ export interface CreateContentRequest {
1139
1184
  }
1140
1185
  /**
1141
1186
  * @public
1187
+ * @enum
1142
1188
  */
1143
- export declare enum ContentStatus {
1144
- ACTIVE = "ACTIVE",
1145
- CREATE_FAILED = "CREATE_FAILED",
1146
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
1147
- DELETED = "DELETED",
1148
- DELETE_FAILED = "DELETE_FAILED",
1149
- DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS",
1150
- UPDATE_FAILED = "UPDATE_FAILED"
1151
- }
1189
+ export declare const ContentStatus: {
1190
+ readonly ACTIVE: "ACTIVE";
1191
+ readonly CREATE_FAILED: "CREATE_FAILED";
1192
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
1193
+ readonly DELETED: "DELETED";
1194
+ readonly DELETE_FAILED: "DELETE_FAILED";
1195
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
1196
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
1197
+ };
1198
+ /**
1199
+ * @public
1200
+ */
1201
+ export type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus];
1152
1202
  /**
1153
1203
  * @public
1154
1204
  * <p>Information about the content.</p>
@@ -1435,11 +1485,16 @@ export interface UpdateContentResponse {
1435
1485
  }
1436
1486
  /**
1437
1487
  * @public
1488
+ * @enum
1438
1489
  */
1439
- export declare enum KnowledgeBaseType {
1440
- CUSTOM = "CUSTOM",
1441
- EXTERNAL = "EXTERNAL"
1442
- }
1490
+ export declare const KnowledgeBaseType: {
1491
+ readonly CUSTOM: "CUSTOM";
1492
+ readonly EXTERNAL: "EXTERNAL";
1493
+ };
1494
+ /**
1495
+ * @public
1496
+ */
1497
+ export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
1443
1498
  /**
1444
1499
  * @public
1445
1500
  * <p>Information about how to render the content.</p>
@@ -1541,15 +1596,20 @@ export interface CreateKnowledgeBaseRequest {
1541
1596
  }
1542
1597
  /**
1543
1598
  * @public
1599
+ * @enum
1544
1600
  */
1545
- export declare enum KnowledgeBaseStatus {
1546
- ACTIVE = "ACTIVE",
1547
- CREATE_FAILED = "CREATE_FAILED",
1548
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
1549
- DELETED = "DELETED",
1550
- DELETE_FAILED = "DELETE_FAILED",
1551
- DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS"
1552
- }
1601
+ export declare const KnowledgeBaseStatus: {
1602
+ readonly ACTIVE: "ACTIVE";
1603
+ readonly CREATE_FAILED: "CREATE_FAILED";
1604
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
1605
+ readonly DELETED: "DELETED";
1606
+ readonly DELETE_FAILED: "DELETE_FAILED";
1607
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
1608
+ };
1609
+ /**
1610
+ * @public
1611
+ */
1612
+ export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus];
1553
1613
  /**
1554
1614
  * @public
1555
1615
  * <p>Information about the knowledge base.</p>
@@ -37,9 +37,11 @@ export declare namespace AssistantAssociationInputData {
37
37
  visitor: Visitor<T>
38
38
  ) => T;
39
39
  }
40
- export declare enum AssociationType {
41
- KNOWLEDGE_BASE = "KNOWLEDGE_BASE",
42
- }
40
+ export declare const AssociationType: {
41
+ readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
42
+ };
43
+ export type AssociationType =
44
+ (typeof AssociationType)[keyof typeof AssociationType];
43
45
  export interface CreateAssistantAssociationRequest {
44
46
  assistantId: string | undefined;
45
47
  associationType: AssociationType | string | undefined;
@@ -139,9 +141,10 @@ export interface ListAssistantAssociationsResponse {
139
141
  export interface ServerSideEncryptionConfiguration {
140
142
  kmsKeyId?: string;
141
143
  }
142
- export declare enum AssistantType {
143
- AGENT = "AGENT",
144
- }
144
+ export declare const AssistantType: {
145
+ readonly AGENT: "AGENT";
146
+ };
147
+ export type AssistantType = (typeof AssistantType)[keyof typeof AssistantType];
145
148
  export interface CreateAssistantRequest {
146
149
  clientToken?: string;
147
150
  name: string | undefined;
@@ -150,14 +153,16 @@ export interface CreateAssistantRequest {
150
153
  tags?: Record<string, string>;
151
154
  serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
152
155
  }
153
- export declare enum AssistantStatus {
154
- ACTIVE = "ACTIVE",
155
- CREATE_FAILED = "CREATE_FAILED",
156
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
157
- DELETED = "DELETED",
158
- DELETE_FAILED = "DELETE_FAILED",
159
- DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS",
160
- }
156
+ export declare const AssistantStatus: {
157
+ readonly ACTIVE: "ACTIVE";
158
+ readonly CREATE_FAILED: "CREATE_FAILED";
159
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
160
+ readonly DELETED: "DELETED";
161
+ readonly DELETE_FAILED: "DELETE_FAILED";
162
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
163
+ };
164
+ export type AssistantStatus =
165
+ (typeof AssistantStatus)[keyof typeof AssistantStatus];
161
166
  export interface AssistantData {
162
167
  assistantId: string | undefined;
163
168
  assistantArn: string | undefined;
@@ -206,14 +211,18 @@ export interface Document {
206
211
  title?: DocumentText;
207
212
  excerpt?: DocumentText;
208
213
  }
209
- export declare enum RelevanceLevel {
210
- HIGH = "HIGH",
211
- LOW = "LOW",
212
- MEDIUM = "MEDIUM",
213
- }
214
- export declare enum RecommendationType {
215
- KNOWLEDGE_CONTENT = "KNOWLEDGE_CONTENT",
216
- }
214
+ export declare const RelevanceLevel: {
215
+ readonly HIGH: "HIGH";
216
+ readonly LOW: "LOW";
217
+ readonly MEDIUM: "MEDIUM";
218
+ };
219
+ export type RelevanceLevel =
220
+ (typeof RelevanceLevel)[keyof typeof RelevanceLevel];
221
+ export declare const RecommendationType: {
222
+ readonly KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT";
223
+ };
224
+ export type RecommendationType =
225
+ (typeof RecommendationType)[keyof typeof RecommendationType];
217
226
  export interface RecommendationData {
218
227
  recommendationId: string | undefined;
219
228
  document: Document | undefined;
@@ -242,14 +251,18 @@ export declare namespace RecommendationTriggerData {
242
251
  }
243
252
  const visit: <T>(value: RecommendationTriggerData, visitor: Visitor<T>) => T;
244
253
  }
245
- export declare enum RecommendationSourceType {
246
- ISSUE_DETECTION = "ISSUE_DETECTION",
247
- OTHER = "OTHER",
248
- RULE_EVALUATION = "RULE_EVALUATION",
249
- }
250
- export declare enum RecommendationTriggerType {
251
- QUERY = "QUERY",
252
- }
254
+ export declare const RecommendationSourceType: {
255
+ readonly ISSUE_DETECTION: "ISSUE_DETECTION";
256
+ readonly OTHER: "OTHER";
257
+ readonly RULE_EVALUATION: "RULE_EVALUATION";
258
+ };
259
+ export type RecommendationSourceType =
260
+ (typeof RecommendationSourceType)[keyof typeof RecommendationSourceType];
261
+ export declare const RecommendationTriggerType: {
262
+ readonly QUERY: "QUERY";
263
+ };
264
+ export type RecommendationTriggerType =
265
+ (typeof RecommendationTriggerType)[keyof typeof RecommendationTriggerType];
253
266
  export interface RecommendationTrigger {
254
267
  id: string | undefined;
255
268
  type: RecommendationTriggerType | string | undefined;
@@ -307,12 +320,15 @@ export interface QueryAssistantResponse {
307
320
  results: ResultData[] | undefined;
308
321
  nextToken?: string;
309
322
  }
310
- export declare enum FilterField {
311
- NAME = "NAME",
312
- }
313
- export declare enum FilterOperator {
314
- EQUALS = "EQUALS",
315
- }
323
+ export declare const FilterField: {
324
+ readonly NAME: "NAME";
325
+ };
326
+ export type FilterField = (typeof FilterField)[keyof typeof FilterField];
327
+ export declare const FilterOperator: {
328
+ readonly EQUALS: "EQUALS";
329
+ };
330
+ export type FilterOperator =
331
+ (typeof FilterOperator)[keyof typeof FilterOperator];
316
332
  export interface Filter {
317
333
  field: FilterField | string | undefined;
318
334
  operator: FilterOperator | string | undefined;
@@ -371,15 +387,16 @@ export interface CreateContentRequest {
371
387
  clientToken?: string;
372
388
  tags?: Record<string, string>;
373
389
  }
374
- export declare enum ContentStatus {
375
- ACTIVE = "ACTIVE",
376
- CREATE_FAILED = "CREATE_FAILED",
377
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
378
- DELETED = "DELETED",
379
- DELETE_FAILED = "DELETE_FAILED",
380
- DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS",
381
- UPDATE_FAILED = "UPDATE_FAILED",
382
- }
390
+ export declare const ContentStatus: {
391
+ readonly ACTIVE: "ACTIVE";
392
+ readonly CREATE_FAILED: "CREATE_FAILED";
393
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
394
+ readonly DELETED: "DELETED";
395
+ readonly DELETE_FAILED: "DELETE_FAILED";
396
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
397
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
398
+ };
399
+ export type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus];
383
400
  export interface ContentData {
384
401
  contentArn: string | undefined;
385
402
  contentId: string | undefined;
@@ -460,10 +477,12 @@ export interface UpdateContentRequest {
460
477
  export interface UpdateContentResponse {
461
478
  content?: ContentData;
462
479
  }
463
- export declare enum KnowledgeBaseType {
464
- CUSTOM = "CUSTOM",
465
- EXTERNAL = "EXTERNAL",
466
- }
480
+ export declare const KnowledgeBaseType: {
481
+ readonly CUSTOM: "CUSTOM";
482
+ readonly EXTERNAL: "EXTERNAL";
483
+ };
484
+ export type KnowledgeBaseType =
485
+ (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
467
486
  export interface RenderingConfiguration {
468
487
  templateUri?: string;
469
488
  }
@@ -495,14 +514,16 @@ export interface CreateKnowledgeBaseRequest {
495
514
  description?: string;
496
515
  tags?: Record<string, string>;
497
516
  }
498
- export declare enum KnowledgeBaseStatus {
499
- ACTIVE = "ACTIVE",
500
- CREATE_FAILED = "CREATE_FAILED",
501
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
502
- DELETED = "DELETED",
503
- DELETE_FAILED = "DELETE_FAILED",
504
- DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS",
505
- }
517
+ export declare const KnowledgeBaseStatus: {
518
+ readonly ACTIVE: "ACTIVE";
519
+ readonly CREATE_FAILED: "CREATE_FAILED";
520
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
521
+ readonly DELETED: "DELETED";
522
+ readonly DELETE_FAILED: "DELETE_FAILED";
523
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
524
+ };
525
+ export type KnowledgeBaseStatus =
526
+ (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus];
506
527
  export interface KnowledgeBaseData {
507
528
  knowledgeBaseId: string | undefined;
508
529
  knowledgeBaseArn: string | 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.301.0",
4
+ "version": "3.306.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",