@aws-sdk/client-qconnect 3.933.0 → 3.935.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 +0 -385
- package/dist-es/index.js +1 -1
- package/dist-es/models/errors.js +139 -0
- package/dist-es/models/models_0.js +0 -125
- package/dist-es/models/models_1.js +0 -15
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/CreateMessageTemplateCommand.d.ts +1 -2
- package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +1 -1
- package/dist-types/commands/CreateQuickResponseCommand.d.ts +2 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/errors.d.ts +146 -0
- package/dist-types/models/models_0.d.ts +416 -129
- package/dist-types/models/models_1.d.ts +1 -436
- package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +2 -4
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/errors.d.ts +81 -0
- package/dist-types/ts3.4/models/models_0.d.ts +102 -73
- package/dist-types/ts3.4/models/models_1.d.ts +4 -114
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -2
- package/dist-types/models/index.d.ts +0 -2
- package/dist-types/ts3.4/models/index.d.ts +0 -2
|
@@ -1,67 +1,3 @@
|
|
|
1
|
-
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class ConflictException extends __BaseException {
|
|
15
|
-
name = "ConflictException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ConflictException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
27
|
-
name = "ResourceNotFoundException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
resourceName;
|
|
30
|
-
constructor(opts) {
|
|
31
|
-
super({
|
|
32
|
-
name: "ResourceNotFoundException",
|
|
33
|
-
$fault: "client",
|
|
34
|
-
...opts,
|
|
35
|
-
});
|
|
36
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
37
|
-
this.resourceName = opts.resourceName;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export class ThrottlingException extends __BaseException {
|
|
41
|
-
name = "ThrottlingException";
|
|
42
|
-
$fault = "client";
|
|
43
|
-
$retryable = {};
|
|
44
|
-
constructor(opts) {
|
|
45
|
-
super({
|
|
46
|
-
name: "ThrottlingException",
|
|
47
|
-
$fault: "client",
|
|
48
|
-
...opts,
|
|
49
|
-
});
|
|
50
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
export class ValidationException extends __BaseException {
|
|
54
|
-
name = "ValidationException";
|
|
55
|
-
$fault = "client";
|
|
56
|
-
constructor(opts) {
|
|
57
|
-
super({
|
|
58
|
-
name: "ValidationException",
|
|
59
|
-
$fault: "client",
|
|
60
|
-
...opts,
|
|
61
|
-
});
|
|
62
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
1
|
export const KnowledgeBaseSearchType = {
|
|
66
2
|
HYBRID: "HYBRID",
|
|
67
3
|
SEMANTIC: "SEMANTIC",
|
|
@@ -93,30 +29,6 @@ export const Status = {
|
|
|
93
29
|
DELETE_FAILED: "DELETE_FAILED",
|
|
94
30
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
95
31
|
};
|
|
96
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
97
|
-
name = "ServiceQuotaExceededException";
|
|
98
|
-
$fault = "client";
|
|
99
|
-
constructor(opts) {
|
|
100
|
-
super({
|
|
101
|
-
name: "ServiceQuotaExceededException",
|
|
102
|
-
$fault: "client",
|
|
103
|
-
...opts,
|
|
104
|
-
});
|
|
105
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
export class UnauthorizedException extends __BaseException {
|
|
109
|
-
name = "UnauthorizedException";
|
|
110
|
-
$fault = "client";
|
|
111
|
-
constructor(opts) {
|
|
112
|
-
super({
|
|
113
|
-
name: "UnauthorizedException",
|
|
114
|
-
$fault: "client",
|
|
115
|
-
...opts,
|
|
116
|
-
});
|
|
117
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
32
|
export const GuardrailFilterStrength = {
|
|
121
33
|
HIGH: "HIGH",
|
|
122
34
|
LOW: "LOW",
|
|
@@ -276,37 +188,12 @@ export const QueryResultType = {
|
|
|
276
188
|
INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK",
|
|
277
189
|
KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
|
|
278
190
|
};
|
|
279
|
-
export class RequestTimeoutException extends __BaseException {
|
|
280
|
-
name = "RequestTimeoutException";
|
|
281
|
-
$fault = "client";
|
|
282
|
-
$retryable = {};
|
|
283
|
-
constructor(opts) {
|
|
284
|
-
super({
|
|
285
|
-
name: "RequestTimeoutException",
|
|
286
|
-
$fault: "client",
|
|
287
|
-
...opts,
|
|
288
|
-
});
|
|
289
|
-
Object.setPrototypeOf(this, RequestTimeoutException.prototype);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
191
|
export const FilterField = {
|
|
293
192
|
NAME: "NAME",
|
|
294
193
|
};
|
|
295
194
|
export const FilterOperator = {
|
|
296
195
|
EQUALS: "EQUALS",
|
|
297
196
|
};
|
|
298
|
-
export class DependencyFailedException extends __BaseException {
|
|
299
|
-
name = "DependencyFailedException";
|
|
300
|
-
$fault = "client";
|
|
301
|
-
constructor(opts) {
|
|
302
|
-
super({
|
|
303
|
-
name: "DependencyFailedException",
|
|
304
|
-
$fault: "client",
|
|
305
|
-
...opts,
|
|
306
|
-
});
|
|
307
|
-
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
197
|
export const ConversationStatusReason = {
|
|
311
198
|
FAILED: "FAILED",
|
|
312
199
|
REJECTED: "REJECTED",
|
|
@@ -350,18 +237,6 @@ export const ContentStatus = {
|
|
|
350
237
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
351
238
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
352
239
|
};
|
|
353
|
-
export class PreconditionFailedException extends __BaseException {
|
|
354
|
-
name = "PreconditionFailedException";
|
|
355
|
-
$fault = "client";
|
|
356
|
-
constructor(opts) {
|
|
357
|
-
super({
|
|
358
|
-
name: "PreconditionFailedException",
|
|
359
|
-
$fault: "client",
|
|
360
|
-
...opts,
|
|
361
|
-
});
|
|
362
|
-
Object.setPrototypeOf(this, PreconditionFailedException.prototype);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
240
|
export const ContentDisposition = {
|
|
366
241
|
ATTACHMENT: "ATTACHMENT",
|
|
367
242
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
2
1
|
export const QuickResponseStatus = {
|
|
3
2
|
CREATED: "CREATED",
|
|
4
3
|
CREATE_FAILED: "CREATE_FAILED",
|
|
@@ -48,17 +47,3 @@ export const QuickResponseQueryOperator = {
|
|
|
48
47
|
CONTAINS: "CONTAINS",
|
|
49
48
|
CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX",
|
|
50
49
|
};
|
|
51
|
-
export class TooManyTagsException extends __BaseException {
|
|
52
|
-
name = "TooManyTagsException";
|
|
53
|
-
$fault = "client";
|
|
54
|
-
resourceName;
|
|
55
|
-
constructor(opts) {
|
|
56
|
-
super({
|
|
57
|
-
name: "TooManyTagsException",
|
|
58
|
-
$fault: "client",
|
|
59
|
-
...opts,
|
|
60
|
-
});
|
|
61
|
-
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
62
|
-
this.resourceName = opts.resourceName;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -912,7 +912,7 @@ const _wPC = "wordPolicyConfig";
|
|
|
912
912
|
const _wTS = "waitTimeSeconds";
|
|
913
913
|
const n0 = "com.amazonaws.qconnect";
|
|
914
914
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
915
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, DependencyFailedException as __DependencyFailedException, PreconditionFailedException as __PreconditionFailedException, RequestTimeoutException as __RequestTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, TooManyTagsException as __TooManyTagsException, UnauthorizedException as __UnauthorizedException, ValidationException as __ValidationException, } from "../models/
|
|
915
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, DependencyFailedException as __DependencyFailedException, PreconditionFailedException as __PreconditionFailedException, RequestTimeoutException as __RequestTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, TooManyTagsException as __TooManyTagsException, UnauthorizedException as __UnauthorizedException, ValidationException as __ValidationException, } from "../models/errors";
|
|
916
916
|
import { QConnectServiceException as __QConnectServiceException } from "../models/QConnectServiceException";
|
|
917
917
|
export var AIGuardrailBlockedMessaging = [0, n0, _AIGBM, 8, 0];
|
|
918
918
|
export var AIGuardrailDescription = [0, n0, _AIGD, 8, 0];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/
|
|
3
|
+
import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/models_0";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateRequest } from "../models/models_0";
|
|
4
|
-
import { CreateMessageTemplateResponse } from "../models/models_1";
|
|
3
|
+
import { CreateMessageTemplateRequest, CreateMessageTemplateResponse } from "../models/models_0";
|
|
5
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateVersionRequest, CreateMessageTemplateVersionResponse } from "../models/
|
|
3
|
+
import { CreateMessageTemplateVersionRequest, CreateMessageTemplateVersionResponse } from "../models/models_0";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateQuickResponseRequest
|
|
3
|
+
import { CreateQuickResponseRequest } from "../models/models_0";
|
|
4
|
+
import { CreateQuickResponseResponse } from "../models/models_1";
|
|
4
5
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { QConnectExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
-
export * from "./models";
|
|
13
|
+
export * from "./models/errors";
|
|
14
|
+
export type * from "./models/models_0";
|
|
15
|
+
export type * from "./models/models_1";
|
|
14
16
|
export { QConnectServiceException } from "./models/QConnectServiceException";
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* <p>The request could not be processed because of conflict in the current state of the resource. For example, if you're using a <code>Create</code> API (such as <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the same name) is being created or mutated.</p>
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export declare class ConflictException extends __BaseException {
|
|
20
|
+
readonly name: "ConflictException";
|
|
21
|
+
readonly $fault: "client";
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* <p>The specified resource does not exist.</p>
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
32
|
+
readonly name: "ResourceNotFoundException";
|
|
33
|
+
readonly $fault: "client";
|
|
34
|
+
/**
|
|
35
|
+
* <p>The specified resource name.</p>
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
resourceName?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* <p>The throttling limit has been exceeded.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export declare class ThrottlingException extends __BaseException {
|
|
49
|
+
readonly name: "ThrottlingException";
|
|
50
|
+
readonly $fault: "client";
|
|
51
|
+
$retryable: {};
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare class ValidationException extends __BaseException {
|
|
62
|
+
readonly name: "ValidationException";
|
|
63
|
+
readonly $fault: "client";
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* <p>You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.</p>
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
74
|
+
readonly name: "ServiceQuotaExceededException";
|
|
75
|
+
readonly $fault: "client";
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* <p>You do not have permission to perform this action.</p>
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class UnauthorizedException extends __BaseException {
|
|
86
|
+
readonly name: "UnauthorizedException";
|
|
87
|
+
readonly $fault: "client";
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* <p>The request reached the service more than 15 minutes after the date stamp on the request or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the date stamp on the request is more than 15 minutes in the future.</p>
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare class RequestTimeoutException extends __BaseException {
|
|
98
|
+
readonly name: "RequestTimeoutException";
|
|
99
|
+
readonly $fault: "client";
|
|
100
|
+
$retryable: {};
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* <p>An error occurred while calling a dependency. For example, calling <code>connect:DecribeContact</code> as part of <code>CreateSession</code> with a contactArn.</p>
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare class DependencyFailedException extends __BaseException {
|
|
111
|
+
readonly name: "DependencyFailedException";
|
|
112
|
+
readonly $fault: "client";
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* <p>The provided <code>revisionId</code> does not match, indicating the content has been modified since it was last read.</p>
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export declare class PreconditionFailedException extends __BaseException {
|
|
123
|
+
readonly name: "PreconditionFailedException";
|
|
124
|
+
readonly $fault: "client";
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
constructor(opts: __ExceptionOptionType<PreconditionFailedException, __BaseException>);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* <p>Amazon Q in Connect throws this exception if you have too many tags in your tag set.</p>
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
export declare class TooManyTagsException extends __BaseException {
|
|
135
|
+
readonly name: "TooManyTagsException";
|
|
136
|
+
readonly $fault: "client";
|
|
137
|
+
/**
|
|
138
|
+
* <p>The specified resource name.</p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
resourceName?: string | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
|
|
146
|
+
}
|