@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.
@@ -1,17 +1,3 @@
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
1
  /**
16
2
  * @public
17
3
  */
@@ -52,60 +38,6 @@ export interface ActivateMessageTemplateResponse {
52
38
  */
53
39
  versionNumber: number | undefined;
54
40
  }
55
- /**
56
- * <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>
57
- * @public
58
- */
59
- export declare class ConflictException extends __BaseException {
60
- readonly name: "ConflictException";
61
- readonly $fault: "client";
62
- /**
63
- * @internal
64
- */
65
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
66
- }
67
- /**
68
- * <p>The specified resource does not exist.</p>
69
- * @public
70
- */
71
- export declare class ResourceNotFoundException extends __BaseException {
72
- readonly name: "ResourceNotFoundException";
73
- readonly $fault: "client";
74
- /**
75
- * <p>The specified resource name.</p>
76
- * @public
77
- */
78
- resourceName?: string | undefined;
79
- /**
80
- * @internal
81
- */
82
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
83
- }
84
- /**
85
- * <p>The throttling limit has been exceeded.</p>
86
- * @public
87
- */
88
- export declare class ThrottlingException extends __BaseException {
89
- readonly name: "ThrottlingException";
90
- readonly $fault: "client";
91
- $retryable: {};
92
- /**
93
- * @internal
94
- */
95
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
96
- }
97
- /**
98
- * <p>The input fails to satisfy the constraints specified by a service.</p>
99
- * @public
100
- */
101
- export declare class ValidationException extends __BaseException {
102
- readonly name: "ValidationException";
103
- readonly $fault: "client";
104
- /**
105
- * @internal
106
- */
107
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
108
- }
109
41
  /**
110
42
  * <p>Information about an agent.</p>
111
43
  * @public
@@ -791,30 +723,6 @@ export interface CreateAIAgentResponse {
791
723
  */
792
724
  aiAgent?: AIAgentData | undefined;
793
725
  }
794
- /**
795
- * <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>
796
- * @public
797
- */
798
- export declare class ServiceQuotaExceededException extends __BaseException {
799
- readonly name: "ServiceQuotaExceededException";
800
- readonly $fault: "client";
801
- /**
802
- * @internal
803
- */
804
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
805
- }
806
- /**
807
- * <p>You do not have permission to perform this action.</p>
808
- * @public
809
- */
810
- export declare class UnauthorizedException extends __BaseException {
811
- readonly name: "UnauthorizedException";
812
- readonly $fault: "client";
813
- /**
814
- * @internal
815
- */
816
- constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
817
- }
818
726
  /**
819
727
  * @public
820
728
  */
@@ -4054,19 +3962,6 @@ export declare const QueryResultType: {
4054
3962
  * @public
4055
3963
  */
4056
3964
  export type QueryResultType = (typeof QueryResultType)[keyof typeof QueryResultType];
4057
- /**
4058
- * <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>
4059
- * @public
4060
- */
4061
- export declare class RequestTimeoutException extends __BaseException {
4062
- readonly name: "RequestTimeoutException";
4063
- readonly $fault: "client";
4064
- $retryable: {};
4065
- /**
4066
- * @internal
4067
- */
4068
- constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
4069
- }
4070
3965
  /**
4071
3966
  * @public
4072
3967
  */
@@ -4324,18 +4219,6 @@ export interface CreateSessionResponse {
4324
4219
  */
4325
4220
  session?: SessionData | undefined;
4326
4221
  }
4327
- /**
4328
- * <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>
4329
- * @public
4330
- */
4331
- export declare class DependencyFailedException extends __BaseException {
4332
- readonly name: "DependencyFailedException";
4333
- readonly $fault: "client";
4334
- /**
4335
- * @internal
4336
- */
4337
- constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
4338
- }
4339
4222
  /**
4340
4223
  * @public
4341
4224
  */
@@ -5673,18 +5556,6 @@ export interface ListContentsResponse {
5673
5556
  */
5674
5557
  nextToken?: string | undefined;
5675
5558
  }
5676
- /**
5677
- * <p>The provided <code>revisionId</code> does not match, indicating the content has been modified since it was last read.</p>
5678
- * @public
5679
- */
5680
- export declare class PreconditionFailedException extends __BaseException {
5681
- readonly name: "PreconditionFailedException";
5682
- readonly $fault: "client";
5683
- /**
5684
- * @internal
5685
- */
5686
- constructor(opts: __ExceptionOptionType<PreconditionFailedException, __BaseException>);
5687
- }
5688
5559
  /**
5689
5560
  * @public
5690
5561
  */
@@ -6732,3 +6603,419 @@ export declare const MessageTemplateAttributeType: {
6732
6603
  * @public
6733
6604
  */
6734
6605
  export type MessageTemplateAttributeType = (typeof MessageTemplateAttributeType)[keyof typeof MessageTemplateAttributeType];
6606
+ /**
6607
+ * <p>The data of a message template.</p>
6608
+ * @public
6609
+ */
6610
+ export interface MessageTemplateData {
6611
+ /**
6612
+ * <p>The Amazon Resource Name (ARN) of the message template.</p>
6613
+ * @public
6614
+ */
6615
+ messageTemplateArn: string | undefined;
6616
+ /**
6617
+ * <p>The identifier of the message template.</p>
6618
+ * @public
6619
+ */
6620
+ messageTemplateId: string | undefined;
6621
+ /**
6622
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
6623
+ * @public
6624
+ */
6625
+ knowledgeBaseArn: string | undefined;
6626
+ /**
6627
+ * <p>The identifier of the knowledge base.</p>
6628
+ * @public
6629
+ */
6630
+ knowledgeBaseId: string | undefined;
6631
+ /**
6632
+ * <p>The name of the message template.</p>
6633
+ * @public
6634
+ */
6635
+ name: string | undefined;
6636
+ /**
6637
+ * <p>The channel subtype this message template applies to.</p>
6638
+ * @public
6639
+ */
6640
+ channelSubtype: ChannelSubtype | undefined;
6641
+ /**
6642
+ * <p>The timestamp when the message template was created.</p>
6643
+ * @public
6644
+ */
6645
+ createdTime: Date | undefined;
6646
+ /**
6647
+ * <p>The timestamp when the message template data was last modified.</p>
6648
+ * @public
6649
+ */
6650
+ lastModifiedTime: Date | undefined;
6651
+ /**
6652
+ * <p>The Amazon Resource Name (ARN) of the user who last updated the message template data.</p>
6653
+ * @public
6654
+ */
6655
+ lastModifiedBy: string | undefined;
6656
+ /**
6657
+ * <p>The content of the message template.</p>
6658
+ * @public
6659
+ */
6660
+ content: MessageTemplateContentProvider | undefined;
6661
+ /**
6662
+ * <p>The description of the message template.</p>
6663
+ * @public
6664
+ */
6665
+ description?: string | undefined;
6666
+ /**
6667
+ * <p>The language code value for the language in which the quick response is written. The supported language codes include <code>de_DE</code>, <code>en_US</code>, <code>es_ES</code>, <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>, <code>zh_CN</code>, <code>zh_TW</code> </p>
6668
+ * @public
6669
+ */
6670
+ language?: string | undefined;
6671
+ /**
6672
+ * <p>The configuration information of the grouping of Amazon Q in Connect users.</p>
6673
+ * @public
6674
+ */
6675
+ groupingConfiguration?: GroupingConfiguration | undefined;
6676
+ /**
6677
+ * <p>An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.</p>
6678
+ * @public
6679
+ */
6680
+ defaultAttributes?: MessageTemplateAttributes | undefined;
6681
+ /**
6682
+ * <p>The types of attributes that the message template contains.</p>
6683
+ * @public
6684
+ */
6685
+ attributeTypes?: MessageTemplateAttributeType[] | undefined;
6686
+ /**
6687
+ * <p>The checksum value of the message template content that is referenced by the <code>$LATEST</code> qualifier. It can be returned in <code>MessageTemplateData</code> or <code>ExtendedMessageTemplateData</code>. It’s calculated by content, language, <code>defaultAttributes</code> and <code>Attachments</code> of the message template.</p>
6688
+ * @public
6689
+ */
6690
+ messageTemplateContentSha256: string | undefined;
6691
+ /**
6692
+ * <p>The tags used to organize, track, or control access for this resource.</p>
6693
+ * @public
6694
+ */
6695
+ tags?: Record<string, string> | undefined;
6696
+ }
6697
+ /**
6698
+ * @public
6699
+ */
6700
+ export interface CreateMessageTemplateResponse {
6701
+ /**
6702
+ * <p>The message template.</p>
6703
+ * @public
6704
+ */
6705
+ messageTemplate?: MessageTemplateData | undefined;
6706
+ }
6707
+ /**
6708
+ * @public
6709
+ */
6710
+ export interface CreateMessageTemplateAttachmentRequest {
6711
+ /**
6712
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
6713
+ * @public
6714
+ */
6715
+ knowledgeBaseId: string | undefined;
6716
+ /**
6717
+ * <p>The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.</p>
6718
+ * @public
6719
+ */
6720
+ messageTemplateId: string | undefined;
6721
+ /**
6722
+ * <p>The presentation information for the attachment file.</p>
6723
+ * @public
6724
+ */
6725
+ contentDisposition: ContentDisposition | undefined;
6726
+ /**
6727
+ * <p>The name of the attachment file being uploaded. The name should include the file extension.</p>
6728
+ * @public
6729
+ */
6730
+ name: string | undefined;
6731
+ /**
6732
+ * <p>The body of the attachment file being uploaded. It should be encoded using base64 encoding.</p>
6733
+ * @public
6734
+ */
6735
+ body: string | undefined;
6736
+ /**
6737
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
6738
+ * @public
6739
+ */
6740
+ clientToken?: string | undefined;
6741
+ }
6742
+ /**
6743
+ * <p>Information about the message template attachment.</p>
6744
+ * @public
6745
+ */
6746
+ export interface MessageTemplateAttachment {
6747
+ /**
6748
+ * <p>The presentation information for the attachment file.</p>
6749
+ * @public
6750
+ */
6751
+ contentDisposition: ContentDisposition | undefined;
6752
+ /**
6753
+ * <p>The name of the attachment file being uploaded. The name should include the file extension.</p>
6754
+ * @public
6755
+ */
6756
+ name: string | undefined;
6757
+ /**
6758
+ * <p>The timestamp when the attachment file was uploaded.</p>
6759
+ * @public
6760
+ */
6761
+ uploadedTime: Date | undefined;
6762
+ /**
6763
+ * <p>A pre-signed Amazon S3 URL that can be used to download the attachment file.</p>
6764
+ * @public
6765
+ */
6766
+ url: string | undefined;
6767
+ /**
6768
+ * <p>The expiration time of the pre-signed Amazon S3 URL.</p>
6769
+ * @public
6770
+ */
6771
+ urlExpiry: Date | undefined;
6772
+ /**
6773
+ * <p>The identifier of the attachment file.</p>
6774
+ * @public
6775
+ */
6776
+ attachmentId: string | undefined;
6777
+ }
6778
+ /**
6779
+ * @public
6780
+ */
6781
+ export interface CreateMessageTemplateAttachmentResponse {
6782
+ /**
6783
+ * <p>The message template attachment.</p>
6784
+ * @public
6785
+ */
6786
+ attachment?: MessageTemplateAttachment | undefined;
6787
+ }
6788
+ /**
6789
+ * @public
6790
+ */
6791
+ export interface CreateMessageTemplateVersionRequest {
6792
+ /**
6793
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
6794
+ * @public
6795
+ */
6796
+ knowledgeBaseId: string | undefined;
6797
+ /**
6798
+ * <p>The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.</p>
6799
+ * @public
6800
+ */
6801
+ messageTemplateId: string | undefined;
6802
+ /**
6803
+ * <p>The checksum value of the message template content that is referenced by the <code>$LATEST</code> qualifier. It can be returned in <code>MessageTemplateData</code> or <code>ExtendedMessageTemplateData</code>. It’s calculated by content, language, <code>defaultAttributes</code> and <code>Attachments</code> of the message template. If not supplied, the message template version will be created based on the message template content that is referenced by the <code>$LATEST</code> qualifier by default.</p>
6804
+ * @public
6805
+ */
6806
+ messageTemplateContentSha256?: string | undefined;
6807
+ }
6808
+ /**
6809
+ * <p>The extended data of a message template.</p>
6810
+ * @public
6811
+ */
6812
+ export interface ExtendedMessageTemplateData {
6813
+ /**
6814
+ * <p>The Amazon Resource Name (ARN) of the message template.</p>
6815
+ * @public
6816
+ */
6817
+ messageTemplateArn: string | undefined;
6818
+ /**
6819
+ * <p>The identifier of the message template.</p>
6820
+ * @public
6821
+ */
6822
+ messageTemplateId: string | undefined;
6823
+ /**
6824
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
6825
+ * @public
6826
+ */
6827
+ knowledgeBaseArn: string | undefined;
6828
+ /**
6829
+ * <p>The identifier of the knowledge base.</p>
6830
+ * @public
6831
+ */
6832
+ knowledgeBaseId: string | undefined;
6833
+ /**
6834
+ * <p>The name of the message template.</p>
6835
+ * @public
6836
+ */
6837
+ name: string | undefined;
6838
+ /**
6839
+ * <p>The channel subtype this message template applies to.</p>
6840
+ * @public
6841
+ */
6842
+ channelSubtype: ChannelSubtype | undefined;
6843
+ /**
6844
+ * <p>The timestamp when the message template was created.</p>
6845
+ * @public
6846
+ */
6847
+ createdTime: Date | undefined;
6848
+ /**
6849
+ * <p>The timestamp when the message template data was last modified.</p>
6850
+ * @public
6851
+ */
6852
+ lastModifiedTime: Date | undefined;
6853
+ /**
6854
+ * <p>The Amazon Resource Name (ARN) of the user who last updated the message template data.</p>
6855
+ * @public
6856
+ */
6857
+ lastModifiedBy: string | undefined;
6858
+ /**
6859
+ * <p>The content of the message template.</p>
6860
+ * @public
6861
+ */
6862
+ content: MessageTemplateContentProvider | undefined;
6863
+ /**
6864
+ * <p>The description of the message template.</p>
6865
+ * @public
6866
+ */
6867
+ description?: string | undefined;
6868
+ /**
6869
+ * <p>The language code value for the language in which the quick response is written. The supported language codes include <code>de_DE</code>, <code>en_US</code>, <code>es_ES</code>, <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>, <code>zh_CN</code>, <code>zh_TW</code> </p>
6870
+ * @public
6871
+ */
6872
+ language?: string | undefined;
6873
+ /**
6874
+ * <p>The configuration information of the grouping of Amazon Q in Connect users.</p>
6875
+ * @public
6876
+ */
6877
+ groupingConfiguration?: GroupingConfiguration | undefined;
6878
+ /**
6879
+ * <p>An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.</p>
6880
+ * @public
6881
+ */
6882
+ defaultAttributes?: MessageTemplateAttributes | undefined;
6883
+ /**
6884
+ * <p>The types of attributes contain the message template.</p>
6885
+ * @public
6886
+ */
6887
+ attributeTypes?: MessageTemplateAttributeType[] | undefined;
6888
+ /**
6889
+ * <p>The message template attachments.</p>
6890
+ * @public
6891
+ */
6892
+ attachments?: MessageTemplateAttachment[] | undefined;
6893
+ /**
6894
+ * <p>Whether the version of the message template is activated.</p>
6895
+ * @public
6896
+ */
6897
+ isActive?: boolean | undefined;
6898
+ /**
6899
+ * <p>The version number of the message template version.</p>
6900
+ * @public
6901
+ */
6902
+ versionNumber?: number | undefined;
6903
+ /**
6904
+ * <p>The checksum value of the message template content that is referenced by the <code>$LATEST</code> qualifier. It can be returned in <code>MessageTemplateData</code> or <code>ExtendedMessageTemplateData</code>. It’s calculated by content, language, <code>defaultAttributes</code> and <code>Attachments</code> of the message template.</p>
6905
+ * @public
6906
+ */
6907
+ messageTemplateContentSha256: string | undefined;
6908
+ /**
6909
+ * <p>The tags used to organize, track, or control access for this resource.</p>
6910
+ * @public
6911
+ */
6912
+ tags?: Record<string, string> | undefined;
6913
+ }
6914
+ /**
6915
+ * @public
6916
+ */
6917
+ export interface CreateMessageTemplateVersionResponse {
6918
+ /**
6919
+ * <p>The message template.</p>
6920
+ * @public
6921
+ */
6922
+ messageTemplate?: ExtendedMessageTemplateData | undefined;
6923
+ }
6924
+ /**
6925
+ * <p>The container of quick response data.</p>
6926
+ * @public
6927
+ */
6928
+ export type QuickResponseDataProvider = QuickResponseDataProvider.ContentMember | QuickResponseDataProvider.$UnknownMember;
6929
+ /**
6930
+ * @public
6931
+ */
6932
+ export declare namespace QuickResponseDataProvider {
6933
+ /**
6934
+ * <p>The content of the quick response.</p>
6935
+ * @public
6936
+ */
6937
+ interface ContentMember {
6938
+ content: string;
6939
+ $unknown?: never;
6940
+ }
6941
+ /**
6942
+ * @public
6943
+ */
6944
+ interface $UnknownMember {
6945
+ content?: never;
6946
+ $unknown: [string, any];
6947
+ }
6948
+ /**
6949
+ * @deprecated unused in schema-serde mode.
6950
+ *
6951
+ */
6952
+ interface Visitor<T> {
6953
+ content: (value: string) => T;
6954
+ _: (name: string, value: any) => T;
6955
+ }
6956
+ }
6957
+ /**
6958
+ * @public
6959
+ */
6960
+ export interface CreateQuickResponseRequest {
6961
+ /**
6962
+ * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
6963
+ * @public
6964
+ */
6965
+ knowledgeBaseId: string | undefined;
6966
+ /**
6967
+ * <p>The name of the quick response.</p>
6968
+ * @public
6969
+ */
6970
+ name: string | undefined;
6971
+ /**
6972
+ * <p>The content of the quick response.</p>
6973
+ * @public
6974
+ */
6975
+ content: QuickResponseDataProvider | undefined;
6976
+ /**
6977
+ * <p>The media type of the quick response content.</p> <ul> <li> <p>Use <code>application/x.quickresponse;format=plain</code> for a quick response written in plain text.</p> </li> <li> <p>Use <code>application/x.quickresponse;format=markdown</code> for a quick response written in richtext.</p> </li> </ul>
6978
+ * @public
6979
+ */
6980
+ contentType?: string | undefined;
6981
+ /**
6982
+ * <p>The configuration information of the user groups that the quick response is accessible to.</p>
6983
+ * @public
6984
+ */
6985
+ groupingConfiguration?: GroupingConfiguration | undefined;
6986
+ /**
6987
+ * <p>The description of the quick response.</p>
6988
+ * @public
6989
+ */
6990
+ description?: string | undefined;
6991
+ /**
6992
+ * <p>The shortcut key of the quick response. The value should be unique across the knowledge base. </p>
6993
+ * @public
6994
+ */
6995
+ shortcutKey?: string | undefined;
6996
+ /**
6997
+ * <p>Whether the quick response is active.</p>
6998
+ * @public
6999
+ */
7000
+ isActive?: boolean | undefined;
7001
+ /**
7002
+ * <p>The Amazon Connect channels this quick response applies to.</p>
7003
+ * @public
7004
+ */
7005
+ channels?: string[] | undefined;
7006
+ /**
7007
+ * <p>The language code value for the language in which the quick response is written. The supported language codes include <code>de_DE</code>, <code>en_US</code>, <code>es_ES</code>, <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>, <code>zh_CN</code>, <code>zh_TW</code> </p>
7008
+ * @public
7009
+ */
7010
+ language?: string | undefined;
7011
+ /**
7012
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
7013
+ * @public
7014
+ */
7015
+ clientToken?: string | undefined;
7016
+ /**
7017
+ * <p>The tags used to organize, track, or control access for this resource.</p>
7018
+ * @public
7019
+ */
7020
+ tags?: Record<string, string> | undefined;
7021
+ }