@aws-sdk/client-qconnect 3.693.0 → 3.696.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +112 -0
  2. package/dist-cjs/index.js +1279 -149
  3. package/dist-es/QConnect.js +28 -0
  4. package/dist-es/commands/ActivateMessageTemplateCommand.js +22 -0
  5. package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +23 -0
  6. package/dist-es/commands/CreateMessageTemplateCommand.js +23 -0
  7. package/dist-es/commands/CreateMessageTemplateVersionCommand.js +23 -0
  8. package/dist-es/commands/DeactivateMessageTemplateCommand.js +22 -0
  9. package/dist-es/commands/DeleteMessageTemplateAttachmentCommand.js +22 -0
  10. package/dist-es/commands/DeleteMessageTemplateCommand.js +22 -0
  11. package/dist-es/commands/GetMessageTemplateCommand.js +23 -0
  12. package/dist-es/commands/GetRecommendationsCommand.js +1 -1
  13. package/dist-es/commands/ListMessageTemplateVersionsCommand.js +22 -0
  14. package/dist-es/commands/ListMessageTemplatesCommand.js +22 -0
  15. package/dist-es/commands/QueryAssistantCommand.js +2 -1
  16. package/dist-es/commands/RenderMessageTemplateCommand.js +23 -0
  17. package/dist-es/commands/SearchMessageTemplatesCommand.js +23 -0
  18. package/dist-es/commands/SearchQuickResponsesCommand.js +1 -1
  19. package/dist-es/commands/StartContentUploadCommand.js +1 -1
  20. package/dist-es/commands/StartImportJobCommand.js +1 -1
  21. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +1 -1
  22. package/dist-es/commands/UpdateMessageTemplateCommand.js +23 -0
  23. package/dist-es/commands/UpdateMessageTemplateMetadataCommand.js +23 -0
  24. package/dist-es/commands/index.js +14 -0
  25. package/dist-es/models/index.js +1 -0
  26. package/dist-es/models/models_0.js +280 -152
  27. package/dist-es/models/models_1.js +138 -0
  28. package/dist-es/pagination/ListMessageTemplateVersionsPaginator.js +4 -0
  29. package/dist-es/pagination/ListMessageTemplatesPaginator.js +4 -0
  30. package/dist-es/pagination/SearchMessageTemplatesPaginator.js +4 -0
  31. package/dist-es/pagination/index.js +3 -0
  32. package/dist-es/protocols/Aws_restJson1.js +527 -5
  33. package/dist-types/QConnect.d.ts +98 -0
  34. package/dist-types/QConnectClient.d.ts +16 -2
  35. package/dist-types/commands/ActivateMessageTemplateCommand.d.ts +96 -0
  36. package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +109 -0
  37. package/dist-types/commands/CreateMessageTemplateCommand.d.ts +347 -0
  38. package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +247 -0
  39. package/dist-types/commands/DeactivateMessageTemplateCommand.d.ts +95 -0
  40. package/dist-types/commands/DeleteMessageTemplateAttachmentCommand.d.ts +91 -0
  41. package/dist-types/commands/DeleteMessageTemplateCommand.d.ts +92 -0
  42. package/dist-types/commands/GetMessageTemplateCommand.d.ts +231 -0
  43. package/dist-types/commands/GetRecommendationsCommand.d.ts +2 -1
  44. package/dist-types/commands/ListMessageTemplateVersionsCommand.d.ts +99 -0
  45. package/dist-types/commands/ListMessageTemplatesCommand.d.ts +104 -0
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  47. package/dist-types/commands/QueryAssistantCommand.d.ts +2 -1
  48. package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +2 -1
  49. package/dist-types/commands/RenderMessageTemplateCommand.d.ts +206 -0
  50. package/dist-types/commands/SearchContentCommand.d.ts +1 -1
  51. package/dist-types/commands/SearchMessageTemplatesCommand.d.ts +138 -0
  52. package/dist-types/commands/SearchQuickResponsesCommand.d.ts +1 -1
  53. package/dist-types/commands/StartContentUploadCommand.d.ts +1 -1
  54. package/dist-types/commands/StartImportJobCommand.d.ts +1 -1
  55. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  56. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateMessageTemplateCommand.d.ts +332 -0
  59. package/dist-types/commands/UpdateMessageTemplateMetadataCommand.d.ts +233 -0
  60. package/dist-types/commands/index.d.ts +14 -0
  61. package/dist-types/models/index.d.ts +1 -0
  62. package/dist-types/models/models_0.d.ts +1639 -983
  63. package/dist-types/models/models_1.d.ts +1256 -0
  64. package/dist-types/pagination/ListMessageTemplateVersionsPaginator.d.ts +7 -0
  65. package/dist-types/pagination/ListMessageTemplatesPaginator.d.ts +7 -0
  66. package/dist-types/pagination/SearchMessageTemplatesPaginator.d.ts +7 -0
  67. package/dist-types/pagination/index.d.ts +3 -0
  68. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  69. package/dist-types/ts3.4/QConnect.d.ts +238 -0
  70. package/dist-types/ts3.4/QConnectClient.d.ts +84 -0
  71. package/dist-types/ts3.4/commands/ActivateMessageTemplateCommand.d.ts +51 -0
  72. package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +51 -0
  74. package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +51 -0
  75. package/dist-types/ts3.4/commands/DeactivateMessageTemplateCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/DeleteMessageTemplateAttachmentCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/DeleteMessageTemplateCommand.d.ts +51 -0
  78. package/dist-types/ts3.4/commands/GetMessageTemplateCommand.d.ts +51 -0
  79. package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +2 -4
  80. package/dist-types/ts3.4/commands/ListMessageTemplateVersionsCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/ListMessageTemplatesCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +2 -4
  84. package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +2 -4
  85. package/dist-types/ts3.4/commands/RenderMessageTemplateCommand.d.ts +51 -0
  86. package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/SearchMessageTemplatesCommand.d.ts +51 -0
  88. package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/UpdateMessageTemplateCommand.d.ts +51 -0
  95. package/dist-types/ts3.4/commands/UpdateMessageTemplateMetadataCommand.d.ts +51 -0
  96. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  97. package/dist-types/ts3.4/models/index.d.ts +1 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +466 -284
  99. package/dist-types/ts3.4/models/models_1.d.ts +349 -0
  100. package/dist-types/ts3.4/pagination/ListMessageTemplateVersionsPaginator.d.ts +11 -0
  101. package/dist-types/ts3.4/pagination/ListMessageTemplatesPaginator.d.ts +11 -0
  102. package/dist-types/ts3.4/pagination/SearchMessageTemplatesPaginator.d.ts +11 -0
  103. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  104. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  105. package/package.json +35 -35
package/dist-cjs/index.js CHANGED
@@ -31,6 +31,8 @@ __export(src_exports, {
31
31
  AIPromptTemplateType: () => AIPromptTemplateType,
32
32
  AIPromptType: () => AIPromptType,
33
33
  AccessDeniedException: () => AccessDeniedException,
34
+ ActivateMessageTemplateCommand: () => ActivateMessageTemplateCommand,
35
+ AgentAttributesFilterSensitiveLog: () => AgentAttributesFilterSensitiveLog,
34
36
  AssistantAssociationInputData: () => AssistantAssociationInputData,
35
37
  AssistantAssociationOutputData: () => AssistantAssociationOutputData,
36
38
  AssistantCapabilityType: () => AssistantCapabilityType,
@@ -38,6 +40,7 @@ __export(src_exports, {
38
40
  AssistantType: () => AssistantType,
39
41
  AssociationConfigurationData: () => AssociationConfigurationData,
40
42
  AssociationType: () => AssociationType,
43
+ ChannelSubtype: () => ChannelSubtype,
41
44
  ChunkingStrategy: () => ChunkingStrategy,
42
45
  Configuration: () => Configuration,
43
46
  ConflictException: () => ConflictException,
@@ -45,6 +48,7 @@ __export(src_exports, {
45
48
  ContentAssociationType: () => ContentAssociationType,
46
49
  ContentDataDetailsFilterSensitiveLog: () => ContentDataDetailsFilterSensitiveLog,
47
50
  ContentDataFilterSensitiveLog: () => ContentDataFilterSensitiveLog,
51
+ ContentDisposition: () => ContentDisposition,
48
52
  ContentFeedbackData: () => ContentFeedbackData,
49
53
  ContentStatus: () => ContentStatus,
50
54
  CreateAIAgentCommand: () => CreateAIAgentCommand,
@@ -62,14 +66,24 @@ __export(src_exports, {
62
66
  CreateKnowledgeBaseCommand: () => CreateKnowledgeBaseCommand,
63
67
  CreateKnowledgeBaseRequestFilterSensitiveLog: () => CreateKnowledgeBaseRequestFilterSensitiveLog,
64
68
  CreateKnowledgeBaseResponseFilterSensitiveLog: () => CreateKnowledgeBaseResponseFilterSensitiveLog,
69
+ CreateMessageTemplateAttachmentCommand: () => CreateMessageTemplateAttachmentCommand,
70
+ CreateMessageTemplateAttachmentRequestFilterSensitiveLog: () => CreateMessageTemplateAttachmentRequestFilterSensitiveLog,
71
+ CreateMessageTemplateAttachmentResponseFilterSensitiveLog: () => CreateMessageTemplateAttachmentResponseFilterSensitiveLog,
72
+ CreateMessageTemplateCommand: () => CreateMessageTemplateCommand,
73
+ CreateMessageTemplateRequestFilterSensitiveLog: () => CreateMessageTemplateRequestFilterSensitiveLog,
74
+ CreateMessageTemplateResponseFilterSensitiveLog: () => CreateMessageTemplateResponseFilterSensitiveLog,
75
+ CreateMessageTemplateVersionCommand: () => CreateMessageTemplateVersionCommand,
76
+ CreateMessageTemplateVersionResponseFilterSensitiveLog: () => CreateMessageTemplateVersionResponseFilterSensitiveLog,
65
77
  CreateQuickResponseCommand: () => CreateQuickResponseCommand,
66
78
  CreateQuickResponseRequestFilterSensitiveLog: () => CreateQuickResponseRequestFilterSensitiveLog,
67
79
  CreateQuickResponseResponseFilterSensitiveLog: () => CreateQuickResponseResponseFilterSensitiveLog,
68
80
  CreateSessionCommand: () => CreateSessionCommand,
81
+ CustomerProfileAttributesFilterSensitiveLog: () => CustomerProfileAttributesFilterSensitiveLog,
69
82
  DataDetails: () => DataDetails,
70
83
  DataDetailsFilterSensitiveLog: () => DataDetailsFilterSensitiveLog,
71
84
  DataReference: () => DataReference,
72
85
  DataSummaryFilterSensitiveLog: () => DataSummaryFilterSensitiveLog,
86
+ DeactivateMessageTemplateCommand: () => DeactivateMessageTemplateCommand,
73
87
  DeleteAIAgentCommand: () => DeleteAIAgentCommand,
74
88
  DeleteAIAgentVersionCommand: () => DeleteAIAgentVersionCommand,
75
89
  DeleteAIPromptCommand: () => DeleteAIPromptCommand,
@@ -80,9 +94,15 @@ __export(src_exports, {
80
94
  DeleteContentCommand: () => DeleteContentCommand,
81
95
  DeleteImportJobCommand: () => DeleteImportJobCommand,
82
96
  DeleteKnowledgeBaseCommand: () => DeleteKnowledgeBaseCommand,
97
+ DeleteMessageTemplateAttachmentCommand: () => DeleteMessageTemplateAttachmentCommand,
98
+ DeleteMessageTemplateCommand: () => DeleteMessageTemplateCommand,
83
99
  DeleteQuickResponseCommand: () => DeleteQuickResponseCommand,
84
100
  DocumentFilterSensitiveLog: () => DocumentFilterSensitiveLog,
85
101
  DocumentTextFilterSensitiveLog: () => DocumentTextFilterSensitiveLog,
102
+ EmailHeaderFilterSensitiveLog: () => EmailHeaderFilterSensitiveLog,
103
+ EmailMessageTemplateContentBodyFilterSensitiveLog: () => EmailMessageTemplateContentBodyFilterSensitiveLog,
104
+ EmailMessageTemplateContentFilterSensitiveLog: () => EmailMessageTemplateContentFilterSensitiveLog,
105
+ ExtendedMessageTemplateDataFilterSensitiveLog: () => ExtendedMessageTemplateDataFilterSensitiveLog,
86
106
  ExternalSource: () => ExternalSource,
87
107
  FilterField: () => FilterField,
88
108
  FilterOperator: () => FilterOperator,
@@ -100,6 +120,8 @@ __export(src_exports, {
100
120
  GetImportJobResponseFilterSensitiveLog: () => GetImportJobResponseFilterSensitiveLog,
101
121
  GetKnowledgeBaseCommand: () => GetKnowledgeBaseCommand,
102
122
  GetKnowledgeBaseResponseFilterSensitiveLog: () => GetKnowledgeBaseResponseFilterSensitiveLog,
123
+ GetMessageTemplateCommand: () => GetMessageTemplateCommand,
124
+ GetMessageTemplateResponseFilterSensitiveLog: () => GetMessageTemplateResponseFilterSensitiveLog,
103
125
  GetQuickResponseCommand: () => GetQuickResponseCommand,
104
126
  GetQuickResponseResponseFilterSensitiveLog: () => GetQuickResponseResponseFilterSensitiveLog,
105
127
  GetRecommendationsCommand: () => GetRecommendationsCommand,
@@ -126,11 +148,24 @@ __export(src_exports, {
126
148
  ListImportJobsCommand: () => ListImportJobsCommand,
127
149
  ListKnowledgeBasesCommand: () => ListKnowledgeBasesCommand,
128
150
  ListKnowledgeBasesResponseFilterSensitiveLog: () => ListKnowledgeBasesResponseFilterSensitiveLog,
151
+ ListMessageTemplateVersionsCommand: () => ListMessageTemplateVersionsCommand,
152
+ ListMessageTemplatesCommand: () => ListMessageTemplatesCommand,
129
153
  ListQuickResponsesCommand: () => ListQuickResponsesCommand,
130
154
  ListQuickResponsesResponseFilterSensitiveLog: () => ListQuickResponsesResponseFilterSensitiveLog,
131
155
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
132
156
  ManagedSourceConfiguration: () => ManagedSourceConfiguration,
133
157
  ManagedSourceConfigurationFilterSensitiveLog: () => ManagedSourceConfigurationFilterSensitiveLog,
158
+ MessageTemplateAttachmentFilterSensitiveLog: () => MessageTemplateAttachmentFilterSensitiveLog,
159
+ MessageTemplateAttributeType: () => MessageTemplateAttributeType,
160
+ MessageTemplateAttributesFilterSensitiveLog: () => MessageTemplateAttributesFilterSensitiveLog,
161
+ MessageTemplateBodyContentProvider: () => MessageTemplateBodyContentProvider,
162
+ MessageTemplateBodyContentProviderFilterSensitiveLog: () => MessageTemplateBodyContentProviderFilterSensitiveLog,
163
+ MessageTemplateContentProvider: () => MessageTemplateContentProvider,
164
+ MessageTemplateContentProviderFilterSensitiveLog: () => MessageTemplateContentProviderFilterSensitiveLog,
165
+ MessageTemplateDataFilterSensitiveLog: () => MessageTemplateDataFilterSensitiveLog,
166
+ MessageTemplateFilterOperator: () => MessageTemplateFilterOperator,
167
+ MessageTemplateQueryOperator: () => MessageTemplateQueryOperator,
168
+ MessageTemplateSearchResultDataFilterSensitiveLog: () => MessageTemplateSearchResultDataFilterSensitiveLog,
134
169
  NotifyRecommendationsReceivedCommand: () => NotifyRecommendationsReceivedCommand,
135
170
  OrCondition: () => OrCondition,
136
171
  Order: () => Order,
@@ -176,13 +211,20 @@ __export(src_exports, {
176
211
  RelevanceLevel: () => RelevanceLevel,
177
212
  RemoveAssistantAIAgentCommand: () => RemoveAssistantAIAgentCommand,
178
213
  RemoveKnowledgeBaseTemplateUriCommand: () => RemoveKnowledgeBaseTemplateUriCommand,
214
+ RenderMessageTemplateCommand: () => RenderMessageTemplateCommand,
215
+ RenderMessageTemplateRequestFilterSensitiveLog: () => RenderMessageTemplateRequestFilterSensitiveLog,
216
+ RenderMessageTemplateResponseFilterSensitiveLog: () => RenderMessageTemplateResponseFilterSensitiveLog,
179
217
  RequestTimeoutException: () => RequestTimeoutException,
180
218
  ResourceNotFoundException: () => ResourceNotFoundException,
181
219
  ResultDataFilterSensitiveLog: () => ResultDataFilterSensitiveLog,
182
220
  RuntimeSessionDataFilterSensitiveLog: () => RuntimeSessionDataFilterSensitiveLog,
183
221
  RuntimeSessionDataValue: () => RuntimeSessionDataValue,
184
222
  RuntimeSessionDataValueFilterSensitiveLog: () => RuntimeSessionDataValueFilterSensitiveLog,
223
+ SMSMessageTemplateContentBodyFilterSensitiveLog: () => SMSMessageTemplateContentBodyFilterSensitiveLog,
224
+ SMSMessageTemplateContentFilterSensitiveLog: () => SMSMessageTemplateContentFilterSensitiveLog,
185
225
  SearchContentCommand: () => SearchContentCommand,
226
+ SearchMessageTemplatesCommand: () => SearchMessageTemplatesCommand,
227
+ SearchMessageTemplatesResponseFilterSensitiveLog: () => SearchMessageTemplatesResponseFilterSensitiveLog,
186
228
  SearchQuickResponsesCommand: () => SearchQuickResponsesCommand,
187
229
  SearchQuickResponsesRequestFilterSensitiveLog: () => SearchQuickResponsesRequestFilterSensitiveLog,
188
230
  SearchQuickResponsesResponseFilterSensitiveLog: () => SearchQuickResponsesResponseFilterSensitiveLog,
@@ -199,6 +241,8 @@ __export(src_exports, {
199
241
  StartImportJobResponseFilterSensitiveLog: () => StartImportJobResponseFilterSensitiveLog,
200
242
  Status: () => Status,
201
243
  SyncStatus: () => SyncStatus,
244
+ SystemAttributesFilterSensitiveLog: () => SystemAttributesFilterSensitiveLog,
245
+ SystemEndpointAttributesFilterSensitiveLog: () => SystemEndpointAttributesFilterSensitiveLog,
202
246
  TagFilter: () => TagFilter,
203
247
  TagResourceCommand: () => TagResourceCommand,
204
248
  TargetType: () => TargetType,
@@ -216,6 +260,12 @@ __export(src_exports, {
216
260
  UpdateContentResponseFilterSensitiveLog: () => UpdateContentResponseFilterSensitiveLog,
217
261
  UpdateKnowledgeBaseTemplateUriCommand: () => UpdateKnowledgeBaseTemplateUriCommand,
218
262
  UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog: () => UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog,
263
+ UpdateMessageTemplateCommand: () => UpdateMessageTemplateCommand,
264
+ UpdateMessageTemplateMetadataCommand: () => UpdateMessageTemplateMetadataCommand,
265
+ UpdateMessageTemplateMetadataRequestFilterSensitiveLog: () => UpdateMessageTemplateMetadataRequestFilterSensitiveLog,
266
+ UpdateMessageTemplateMetadataResponseFilterSensitiveLog: () => UpdateMessageTemplateMetadataResponseFilterSensitiveLog,
267
+ UpdateMessageTemplateRequestFilterSensitiveLog: () => UpdateMessageTemplateRequestFilterSensitiveLog,
268
+ UpdateMessageTemplateResponseFilterSensitiveLog: () => UpdateMessageTemplateResponseFilterSensitiveLog,
219
269
  UpdateQuickResponseCommand: () => UpdateQuickResponseCommand,
220
270
  UpdateQuickResponseRequestFilterSensitiveLog: () => UpdateQuickResponseRequestFilterSensitiveLog,
221
271
  UpdateQuickResponseResponseFilterSensitiveLog: () => UpdateQuickResponseResponseFilterSensitiveLog,
@@ -238,9 +288,12 @@ __export(src_exports, {
238
288
  paginateListContents: () => paginateListContents,
239
289
  paginateListImportJobs: () => paginateListImportJobs,
240
290
  paginateListKnowledgeBases: () => paginateListKnowledgeBases,
291
+ paginateListMessageTemplateVersions: () => paginateListMessageTemplateVersions,
292
+ paginateListMessageTemplates: () => paginateListMessageTemplates,
241
293
  paginateListQuickResponses: () => paginateListQuickResponses,
242
294
  paginateQueryAssistant: () => paginateQueryAssistant,
243
295
  paginateSearchContent: () => paginateSearchContent,
296
+ paginateSearchMessageTemplates: () => paginateSearchMessageTemplates,
244
297
  paginateSearchQuickResponses: () => paginateSearchQuickResponses,
245
298
  paginateSearchSessions: () => paginateSearchSessions
246
299
  });
@@ -386,7 +439,7 @@ var QConnectClient = _QConnectClient;
386
439
  // src/QConnect.ts
387
440
 
388
441
 
389
- // src/commands/CreateAIAgentCommand.ts
442
+ // src/commands/ActivateMessageTemplateCommand.ts
390
443
 
391
444
  var import_middleware_serde = require("@smithy/middleware-serde");
392
445
 
@@ -449,6 +502,59 @@ var _ConflictException = class _ConflictException extends QConnectServiceExcepti
449
502
  };
450
503
  __name(_ConflictException, "ConflictException");
451
504
  var ConflictException = _ConflictException;
505
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends QConnectServiceException {
506
+ /**
507
+ * @internal
508
+ */
509
+ constructor(opts) {
510
+ super({
511
+ name: "ResourceNotFoundException",
512
+ $fault: "client",
513
+ ...opts
514
+ });
515
+ this.name = "ResourceNotFoundException";
516
+ this.$fault = "client";
517
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
518
+ this.resourceName = opts.resourceName;
519
+ }
520
+ };
521
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
522
+ var ResourceNotFoundException = _ResourceNotFoundException;
523
+ var _ThrottlingException = class _ThrottlingException extends QConnectServiceException {
524
+ /**
525
+ * @internal
526
+ */
527
+ constructor(opts) {
528
+ super({
529
+ name: "ThrottlingException",
530
+ $fault: "client",
531
+ ...opts
532
+ });
533
+ this.name = "ThrottlingException";
534
+ this.$fault = "client";
535
+ this.$retryable = {};
536
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
537
+ }
538
+ };
539
+ __name(_ThrottlingException, "ThrottlingException");
540
+ var ThrottlingException = _ThrottlingException;
541
+ var _ValidationException = class _ValidationException extends QConnectServiceException {
542
+ /**
543
+ * @internal
544
+ */
545
+ constructor(opts) {
546
+ super({
547
+ name: "ValidationException",
548
+ $fault: "client",
549
+ ...opts
550
+ });
551
+ this.name = "ValidationException";
552
+ this.$fault = "client";
553
+ Object.setPrototypeOf(this, _ValidationException.prototype);
554
+ }
555
+ };
556
+ __name(_ValidationException, "ValidationException");
557
+ var ValidationException = _ValidationException;
452
558
  var OrCondition;
453
559
  ((OrCondition3) => {
454
560
  OrCondition3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -516,24 +622,6 @@ var Status = {
516
622
  DELETE_FAILED: "DELETE_FAILED",
517
623
  DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS"
518
624
  };
519
- var _ResourceNotFoundException = class _ResourceNotFoundException extends QConnectServiceException {
520
- /**
521
- * @internal
522
- */
523
- constructor(opts) {
524
- super({
525
- name: "ResourceNotFoundException",
526
- $fault: "client",
527
- ...opts
528
- });
529
- this.name = "ResourceNotFoundException";
530
- this.$fault = "client";
531
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
532
- this.resourceName = opts.resourceName;
533
- }
534
- };
535
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
536
- var ResourceNotFoundException = _ResourceNotFoundException;
537
625
  var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends QConnectServiceException {
538
626
  /**
539
627
  * @internal
@@ -551,41 +639,6 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
551
639
  };
552
640
  __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
553
641
  var ServiceQuotaExceededException = _ServiceQuotaExceededException;
554
- var _ThrottlingException = class _ThrottlingException extends QConnectServiceException {
555
- /**
556
- * @internal
557
- */
558
- constructor(opts) {
559
- super({
560
- name: "ThrottlingException",
561
- $fault: "client",
562
- ...opts
563
- });
564
- this.name = "ThrottlingException";
565
- this.$fault = "client";
566
- this.$retryable = {};
567
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
568
- }
569
- };
570
- __name(_ThrottlingException, "ThrottlingException");
571
- var ThrottlingException = _ThrottlingException;
572
- var _ValidationException = class _ValidationException extends QConnectServiceException {
573
- /**
574
- * @internal
575
- */
576
- constructor(opts) {
577
- super({
578
- name: "ValidationException",
579
- $fault: "client",
580
- ...opts
581
- });
582
- this.name = "ValidationException";
583
- this.$fault = "client";
584
- Object.setPrototypeOf(this, _ValidationException.prototype);
585
- }
586
- };
587
- __name(_ValidationException, "ValidationException");
588
- var ValidationException = _ValidationException;
589
642
  var AIPromptAPIFormat = {
590
643
  ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES",
591
644
  ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS"
@@ -653,8 +706,8 @@ var ReferenceType = {
653
706
  WEB_CRAWLER: "WEB_CRAWLER"
654
707
  };
655
708
  var DataReference;
656
- ((DataReference2) => {
657
- DataReference2.visit = /* @__PURE__ */ __name((value, visitor) => {
709
+ ((DataReference3) => {
710
+ DataReference3.visit = /* @__PURE__ */ __name((value, visitor) => {
658
711
  if (value.contentReference !== void 0)
659
712
  return visitor.contentReference(value.contentReference);
660
713
  if (value.generativeReference !== void 0)
@@ -765,6 +818,10 @@ var RuntimeSessionDataValue;
765
818
  var SessionDataNamespace = {
766
819
  Custom: "Custom"
767
820
  };
821
+ var ChannelSubtype = {
822
+ EMAIL: "EMAIL",
823
+ SMS: "SMS"
824
+ };
768
825
  var ChunkingStrategy = {
769
826
  FIXED_SIZE: "FIXED_SIZE",
770
827
  HIERARCHICAL: "HIERARCHICAL",
@@ -816,6 +873,9 @@ var _PreconditionFailedException = class _PreconditionFailedException extends QC
816
873
  };
817
874
  __name(_PreconditionFailedException, "PreconditionFailedException");
818
875
  var PreconditionFailedException = _PreconditionFailedException;
876
+ var ContentDisposition = {
877
+ ATTACHMENT: "ATTACHMENT"
878
+ };
819
879
  var KnowledgeBaseType = {
820
880
  CUSTOM: "CUSTOM",
821
881
  EXTERNAL: "EXTERNAL",
@@ -862,6 +922,30 @@ var KnowledgeBaseStatus = {
862
922
  DELETE_FAILED: "DELETE_FAILED",
863
923
  DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS"
864
924
  };
925
+ var MessageTemplateBodyContentProvider;
926
+ ((MessageTemplateBodyContentProvider3) => {
927
+ MessageTemplateBodyContentProvider3.visit = /* @__PURE__ */ __name((value, visitor) => {
928
+ if (value.content !== void 0)
929
+ return visitor.content(value.content);
930
+ return visitor._(value.$unknown[0], value.$unknown[1]);
931
+ }, "visit");
932
+ })(MessageTemplateBodyContentProvider || (MessageTemplateBodyContentProvider = {}));
933
+ var MessageTemplateContentProvider;
934
+ ((MessageTemplateContentProvider3) => {
935
+ MessageTemplateContentProvider3.visit = /* @__PURE__ */ __name((value, visitor) => {
936
+ if (value.email !== void 0)
937
+ return visitor.email(value.email);
938
+ if (value.sms !== void 0)
939
+ return visitor.sms(value.sms);
940
+ return visitor._(value.$unknown[0], value.$unknown[1]);
941
+ }, "visit");
942
+ })(MessageTemplateContentProvider || (MessageTemplateContentProvider = {}));
943
+ var MessageTemplateAttributeType = {
944
+ AGENT: "AGENT",
945
+ CUSTOM: "CUSTOM",
946
+ CUSTOMER_PROFILE: "CUSTOMER_PROFILE",
947
+ SYSTEM: "SYSTEM"
948
+ };
865
949
  var QuickResponseDataProvider;
866
950
  ((QuickResponseDataProvider3) => {
867
951
  QuickResponseDataProvider3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -902,55 +986,11 @@ var ImportJobStatus = {
902
986
  FAILED: "FAILED",
903
987
  START_IN_PROGRESS: "START_IN_PROGRESS"
904
988
  };
905
- var QuickResponseFilterOperator = {
906
- EQUALS: "EQUALS",
907
- PREFIX: "PREFIX"
908
- };
909
- var Order = {
910
- ASC: "ASC",
911
- DESC: "DESC"
912
- };
913
- var QuickResponseQueryOperator = {
914
- CONTAINS: "CONTAINS",
915
- CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX"
916
- };
917
- var Priority = {
918
- HIGH: "HIGH",
919
- LOW: "LOW",
920
- MEDIUM: "MEDIUM"
921
- };
922
- var _TooManyTagsException = class _TooManyTagsException extends QConnectServiceException {
923
- /**
924
- * @internal
925
- */
926
- constructor(opts) {
927
- super({
928
- name: "TooManyTagsException",
929
- $fault: "client",
930
- ...opts
931
- });
932
- this.name = "TooManyTagsException";
933
- this.$fault = "client";
934
- Object.setPrototypeOf(this, _TooManyTagsException.prototype);
935
- this.resourceName = opts.resourceName;
936
- }
937
- };
938
- __name(_TooManyTagsException, "TooManyTagsException");
939
- var TooManyTagsException = _TooManyTagsException;
940
- var DataDetails;
941
- ((DataDetails3) => {
942
- DataDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
943
- if (value.contentData !== void 0)
944
- return visitor.contentData(value.contentData);
945
- if (value.generativeData !== void 0)
946
- return visitor.generativeData(value.generativeData);
947
- if (value.intentDetectedData !== void 0)
948
- return visitor.intentDetectedData(value.intentDetectedData);
949
- if (value.sourceContentData !== void 0)
950
- return visitor.sourceContentData(value.sourceContentData);
951
- return visitor._(value.$unknown[0], value.$unknown[1]);
952
- }, "visit");
953
- })(DataDetails || (DataDetails = {}));
989
+ var AgentAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
990
+ ...obj,
991
+ ...obj.firstName && { firstName: import_smithy_client.SENSITIVE_STRING },
992
+ ...obj.lastName && { lastName: import_smithy_client.SENSITIVE_STRING }
993
+ }), "AgentAttributesFilterSensitiveLog");
954
994
  var TextFullAIPromptEditTemplateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
955
995
  ...obj,
956
996
  ...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
@@ -1127,17 +1167,189 @@ var CreateKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj)
1127
1167
  ...obj,
1128
1168
  ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }
1129
1169
  }), "CreateKnowledgeBaseResponseFilterSensitiveLog");
1130
- var QuickResponseDataProviderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1170
+ var MessageTemplateBodyContentProviderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1131
1171
  if (obj.content !== void 0)
1132
1172
  return { content: import_smithy_client.SENSITIVE_STRING };
1133
1173
  if (obj.$unknown !== void 0)
1134
1174
  return { [obj.$unknown[0]]: "UNKNOWN" };
1135
- }, "QuickResponseDataProviderFilterSensitiveLog");
1175
+ }, "MessageTemplateBodyContentProviderFilterSensitiveLog");
1176
+ var EmailMessageTemplateContentBodyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1177
+ ...obj,
1178
+ ...obj.plainText && { plainText: MessageTemplateBodyContentProviderFilterSensitiveLog(obj.plainText) },
1179
+ ...obj.html && { html: MessageTemplateBodyContentProviderFilterSensitiveLog(obj.html) }
1180
+ }), "EmailMessageTemplateContentBodyFilterSensitiveLog");
1181
+ var EmailHeaderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1182
+ ...obj,
1183
+ ...obj.value && { value: import_smithy_client.SENSITIVE_STRING }
1184
+ }), "EmailHeaderFilterSensitiveLog");
1185
+ var EmailMessageTemplateContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1186
+ ...obj,
1187
+ ...obj.subject && { subject: import_smithy_client.SENSITIVE_STRING },
1188
+ ...obj.body && { body: EmailMessageTemplateContentBodyFilterSensitiveLog(obj.body) },
1189
+ ...obj.headers && { headers: obj.headers.map((item) => EmailHeaderFilterSensitiveLog(item)) }
1190
+ }), "EmailMessageTemplateContentFilterSensitiveLog");
1191
+ var SMSMessageTemplateContentBodyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1192
+ ...obj,
1193
+ ...obj.plainText && { plainText: MessageTemplateBodyContentProviderFilterSensitiveLog(obj.plainText) }
1194
+ }), "SMSMessageTemplateContentBodyFilterSensitiveLog");
1195
+ var SMSMessageTemplateContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1196
+ ...obj,
1197
+ ...obj.body && { body: SMSMessageTemplateContentBodyFilterSensitiveLog(obj.body) }
1198
+ }), "SMSMessageTemplateContentFilterSensitiveLog");
1199
+ var MessageTemplateContentProviderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1200
+ if (obj.email !== void 0)
1201
+ return { email: EmailMessageTemplateContentFilterSensitiveLog(obj.email) };
1202
+ if (obj.sms !== void 0)
1203
+ return { sms: SMSMessageTemplateContentFilterSensitiveLog(obj.sms) };
1204
+ if (obj.$unknown !== void 0)
1205
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1206
+ }, "MessageTemplateContentProviderFilterSensitiveLog");
1207
+ var CustomerProfileAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1208
+ ...obj,
1209
+ ...obj.profileId && { profileId: import_smithy_client.SENSITIVE_STRING },
1210
+ ...obj.profileARN && { profileARN: import_smithy_client.SENSITIVE_STRING },
1211
+ ...obj.firstName && { firstName: import_smithy_client.SENSITIVE_STRING },
1212
+ ...obj.middleName && { middleName: import_smithy_client.SENSITIVE_STRING },
1213
+ ...obj.lastName && { lastName: import_smithy_client.SENSITIVE_STRING },
1214
+ ...obj.accountNumber && { accountNumber: import_smithy_client.SENSITIVE_STRING },
1215
+ ...obj.emailAddress && { emailAddress: import_smithy_client.SENSITIVE_STRING },
1216
+ ...obj.phoneNumber && { phoneNumber: import_smithy_client.SENSITIVE_STRING },
1217
+ ...obj.additionalInformation && { additionalInformation: import_smithy_client.SENSITIVE_STRING },
1218
+ ...obj.partyType && { partyType: import_smithy_client.SENSITIVE_STRING },
1219
+ ...obj.businessName && { businessName: import_smithy_client.SENSITIVE_STRING },
1220
+ ...obj.birthDate && { birthDate: import_smithy_client.SENSITIVE_STRING },
1221
+ ...obj.gender && { gender: import_smithy_client.SENSITIVE_STRING },
1222
+ ...obj.mobilePhoneNumber && { mobilePhoneNumber: import_smithy_client.SENSITIVE_STRING },
1223
+ ...obj.homePhoneNumber && { homePhoneNumber: import_smithy_client.SENSITIVE_STRING },
1224
+ ...obj.businessPhoneNumber && { businessPhoneNumber: import_smithy_client.SENSITIVE_STRING },
1225
+ ...obj.businessEmailAddress && { businessEmailAddress: import_smithy_client.SENSITIVE_STRING },
1226
+ ...obj.address1 && { address1: import_smithy_client.SENSITIVE_STRING },
1227
+ ...obj.address2 && { address2: import_smithy_client.SENSITIVE_STRING },
1228
+ ...obj.address3 && { address3: import_smithy_client.SENSITIVE_STRING },
1229
+ ...obj.address4 && { address4: import_smithy_client.SENSITIVE_STRING },
1230
+ ...obj.city && { city: import_smithy_client.SENSITIVE_STRING },
1231
+ ...obj.county && { county: import_smithy_client.SENSITIVE_STRING },
1232
+ ...obj.country && { country: import_smithy_client.SENSITIVE_STRING },
1233
+ ...obj.postalCode && { postalCode: import_smithy_client.SENSITIVE_STRING },
1234
+ ...obj.province && { province: import_smithy_client.SENSITIVE_STRING },
1235
+ ...obj.state && { state: import_smithy_client.SENSITIVE_STRING },
1236
+ ...obj.shippingAddress1 && { shippingAddress1: import_smithy_client.SENSITIVE_STRING },
1237
+ ...obj.shippingAddress2 && { shippingAddress2: import_smithy_client.SENSITIVE_STRING },
1238
+ ...obj.shippingAddress3 && { shippingAddress3: import_smithy_client.SENSITIVE_STRING },
1239
+ ...obj.shippingAddress4 && { shippingAddress4: import_smithy_client.SENSITIVE_STRING },
1240
+ ...obj.shippingCity && { shippingCity: import_smithy_client.SENSITIVE_STRING },
1241
+ ...obj.shippingCounty && { shippingCounty: import_smithy_client.SENSITIVE_STRING },
1242
+ ...obj.shippingCountry && { shippingCountry: import_smithy_client.SENSITIVE_STRING },
1243
+ ...obj.shippingPostalCode && { shippingPostalCode: import_smithy_client.SENSITIVE_STRING },
1244
+ ...obj.shippingProvince && { shippingProvince: import_smithy_client.SENSITIVE_STRING },
1245
+ ...obj.shippingState && { shippingState: import_smithy_client.SENSITIVE_STRING },
1246
+ ...obj.mailingAddress1 && { mailingAddress1: import_smithy_client.SENSITIVE_STRING },
1247
+ ...obj.mailingAddress2 && { mailingAddress2: import_smithy_client.SENSITIVE_STRING },
1248
+ ...obj.mailingAddress3 && { mailingAddress3: import_smithy_client.SENSITIVE_STRING },
1249
+ ...obj.mailingAddress4 && { mailingAddress4: import_smithy_client.SENSITIVE_STRING },
1250
+ ...obj.mailingCity && { mailingCity: import_smithy_client.SENSITIVE_STRING },
1251
+ ...obj.mailingCounty && { mailingCounty: import_smithy_client.SENSITIVE_STRING },
1252
+ ...obj.mailingCountry && { mailingCountry: import_smithy_client.SENSITIVE_STRING },
1253
+ ...obj.mailingPostalCode && { mailingPostalCode: import_smithy_client.SENSITIVE_STRING },
1254
+ ...obj.mailingProvince && { mailingProvince: import_smithy_client.SENSITIVE_STRING },
1255
+ ...obj.mailingState && { mailingState: import_smithy_client.SENSITIVE_STRING },
1256
+ ...obj.billingAddress1 && { billingAddress1: import_smithy_client.SENSITIVE_STRING },
1257
+ ...obj.billingAddress2 && { billingAddress2: import_smithy_client.SENSITIVE_STRING },
1258
+ ...obj.billingAddress3 && { billingAddress3: import_smithy_client.SENSITIVE_STRING },
1259
+ ...obj.billingAddress4 && { billingAddress4: import_smithy_client.SENSITIVE_STRING },
1260
+ ...obj.billingCity && { billingCity: import_smithy_client.SENSITIVE_STRING },
1261
+ ...obj.billingCounty && { billingCounty: import_smithy_client.SENSITIVE_STRING },
1262
+ ...obj.billingCountry && { billingCountry: import_smithy_client.SENSITIVE_STRING },
1263
+ ...obj.billingPostalCode && { billingPostalCode: import_smithy_client.SENSITIVE_STRING },
1264
+ ...obj.billingProvince && { billingProvince: import_smithy_client.SENSITIVE_STRING },
1265
+ ...obj.billingState && { billingState: import_smithy_client.SENSITIVE_STRING },
1266
+ ...obj.custom && { custom: import_smithy_client.SENSITIVE_STRING }
1267
+ }), "CustomerProfileAttributesFilterSensitiveLog");
1268
+ var SystemEndpointAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1269
+ ...obj,
1270
+ ...obj.address && { address: import_smithy_client.SENSITIVE_STRING }
1271
+ }), "SystemEndpointAttributesFilterSensitiveLog");
1272
+ var SystemAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1273
+ ...obj,
1274
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
1275
+ ...obj.customerEndpoint && { customerEndpoint: SystemEndpointAttributesFilterSensitiveLog(obj.customerEndpoint) },
1276
+ ...obj.systemEndpoint && { systemEndpoint: SystemEndpointAttributesFilterSensitiveLog(obj.systemEndpoint) }
1277
+ }), "SystemAttributesFilterSensitiveLog");
1278
+ var MessageTemplateAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1279
+ ...obj,
1280
+ ...obj.systemAttributes && { systemAttributes: SystemAttributesFilterSensitiveLog(obj.systemAttributes) },
1281
+ ...obj.agentAttributes && { agentAttributes: AgentAttributesFilterSensitiveLog(obj.agentAttributes) },
1282
+ ...obj.customerProfileAttributes && {
1283
+ customerProfileAttributes: CustomerProfileAttributesFilterSensitiveLog(obj.customerProfileAttributes)
1284
+ },
1285
+ ...obj.customAttributes && { customAttributes: import_smithy_client.SENSITIVE_STRING }
1286
+ }), "MessageTemplateAttributesFilterSensitiveLog");
1136
1287
  var GroupingConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1137
1288
  ...obj,
1138
1289
  ...obj.criteria && { criteria: import_smithy_client.SENSITIVE_STRING },
1139
1290
  ...obj.values && { values: import_smithy_client.SENSITIVE_STRING }
1140
1291
  }), "GroupingConfigurationFilterSensitiveLog");
1292
+ var CreateMessageTemplateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1293
+ ...obj,
1294
+ ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
1295
+ ...obj.defaultAttributes && {
1296
+ defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes)
1297
+ },
1298
+ ...obj.groupingConfiguration && {
1299
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1300
+ }
1301
+ }), "CreateMessageTemplateRequestFilterSensitiveLog");
1302
+ var MessageTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1303
+ ...obj,
1304
+ ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
1305
+ ...obj.groupingConfiguration && {
1306
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1307
+ },
1308
+ ...obj.defaultAttributes && {
1309
+ defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes)
1310
+ }
1311
+ }), "MessageTemplateDataFilterSensitiveLog");
1312
+ var CreateMessageTemplateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1313
+ ...obj,
1314
+ ...obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1315
+ }), "CreateMessageTemplateResponseFilterSensitiveLog");
1316
+ var CreateMessageTemplateAttachmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1317
+ ...obj,
1318
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
1319
+ ...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
1320
+ }), "CreateMessageTemplateAttachmentRequestFilterSensitiveLog");
1321
+ var MessageTemplateAttachmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1322
+ ...obj,
1323
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
1324
+ ...obj.url && { url: import_smithy_client.SENSITIVE_STRING }
1325
+ }), "MessageTemplateAttachmentFilterSensitiveLog");
1326
+ var CreateMessageTemplateAttachmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1327
+ ...obj,
1328
+ ...obj.attachment && { attachment: MessageTemplateAttachmentFilterSensitiveLog(obj.attachment) }
1329
+ }), "CreateMessageTemplateAttachmentResponseFilterSensitiveLog");
1330
+ var ExtendedMessageTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1331
+ ...obj,
1332
+ ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
1333
+ ...obj.groupingConfiguration && {
1334
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1335
+ },
1336
+ ...obj.defaultAttributes && {
1337
+ defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes)
1338
+ },
1339
+ ...obj.attachments && {
1340
+ attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item))
1341
+ }
1342
+ }), "ExtendedMessageTemplateDataFilterSensitiveLog");
1343
+ var CreateMessageTemplateVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1344
+ ...obj,
1345
+ ...obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1346
+ }), "CreateMessageTemplateVersionResponseFilterSensitiveLog");
1347
+ var QuickResponseDataProviderFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1348
+ if (obj.content !== void 0)
1349
+ return { content: import_smithy_client.SENSITIVE_STRING };
1350
+ if (obj.$unknown !== void 0)
1351
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1352
+ }, "QuickResponseDataProviderFilterSensitiveLog");
1141
1353
  var CreateQuickResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1142
1354
  ...obj,
1143
1355
  ...obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) },
@@ -1183,6 +1395,10 @@ var GetKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
1183
1395
  ...obj,
1184
1396
  ...obj.knowledgeBase && { knowledgeBase: KnowledgeBaseDataFilterSensitiveLog(obj.knowledgeBase) }
1185
1397
  }), "GetKnowledgeBaseResponseFilterSensitiveLog");
1398
+ var GetMessageTemplateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1399
+ ...obj,
1400
+ ...obj.messageTemplate && { messageTemplate: ExtendedMessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1401
+ }), "GetMessageTemplateResponseFilterSensitiveLog");
1186
1402
  var GetQuickResponseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1187
1403
  ...obj,
1188
1404
  ...obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }
@@ -1199,6 +1415,39 @@ var ListKnowledgeBasesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj)
1199
1415
  knowledgeBaseSummaries: obj.knowledgeBaseSummaries.map((item) => KnowledgeBaseSummaryFilterSensitiveLog(item))
1200
1416
  }
1201
1417
  }), "ListKnowledgeBasesResponseFilterSensitiveLog");
1418
+ var RenderMessageTemplateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1419
+ ...obj,
1420
+ ...obj.attributes && { attributes: MessageTemplateAttributesFilterSensitiveLog(obj.attributes) }
1421
+ }), "RenderMessageTemplateRequestFilterSensitiveLog");
1422
+ var RenderMessageTemplateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1423
+ ...obj,
1424
+ ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
1425
+ ...obj.attributesNotInterpolated && { attributesNotInterpolated: import_smithy_client.SENSITIVE_STRING },
1426
+ ...obj.attachments && {
1427
+ attachments: obj.attachments.map((item) => MessageTemplateAttachmentFilterSensitiveLog(item))
1428
+ }
1429
+ }), "RenderMessageTemplateResponseFilterSensitiveLog");
1430
+ var UpdateMessageTemplateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1431
+ ...obj,
1432
+ ...obj.content && { content: MessageTemplateContentProviderFilterSensitiveLog(obj.content) },
1433
+ ...obj.defaultAttributes && {
1434
+ defaultAttributes: MessageTemplateAttributesFilterSensitiveLog(obj.defaultAttributes)
1435
+ }
1436
+ }), "UpdateMessageTemplateRequestFilterSensitiveLog");
1437
+ var UpdateMessageTemplateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1438
+ ...obj,
1439
+ ...obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1440
+ }), "UpdateMessageTemplateResponseFilterSensitiveLog");
1441
+ var UpdateMessageTemplateMetadataRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1442
+ ...obj,
1443
+ ...obj.groupingConfiguration && {
1444
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1445
+ }
1446
+ }), "UpdateMessageTemplateMetadataRequestFilterSensitiveLog");
1447
+ var UpdateMessageTemplateMetadataResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1448
+ ...obj,
1449
+ ...obj.messageTemplate && { messageTemplate: MessageTemplateDataFilterSensitiveLog(obj.messageTemplate) }
1450
+ }), "UpdateMessageTemplateMetadataResponseFilterSensitiveLog");
1202
1451
  var QuickResponseSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1203
1452
  ...obj,
1204
1453
  ...obj.channels && { channels: import_smithy_client.SENSITIVE_STRING }
@@ -1221,6 +1470,76 @@ var UpdateQuickResponseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj)
1221
1470
  ...obj,
1222
1471
  ...obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }
1223
1472
  }), "UpdateQuickResponseResponseFilterSensitiveLog");
1473
+
1474
+ // src/models/models_1.ts
1475
+
1476
+ var MessageTemplateFilterOperator = {
1477
+ EQUALS: "EQUALS",
1478
+ PREFIX: "PREFIX"
1479
+ };
1480
+ var Order = {
1481
+ ASC: "ASC",
1482
+ DESC: "DESC"
1483
+ };
1484
+ var MessageTemplateQueryOperator = {
1485
+ CONTAINS: "CONTAINS",
1486
+ CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX"
1487
+ };
1488
+ var Priority = {
1489
+ HIGH: "HIGH",
1490
+ LOW: "LOW",
1491
+ MEDIUM: "MEDIUM"
1492
+ };
1493
+ var QuickResponseFilterOperator = {
1494
+ EQUALS: "EQUALS",
1495
+ PREFIX: "PREFIX"
1496
+ };
1497
+ var QuickResponseQueryOperator = {
1498
+ CONTAINS: "CONTAINS",
1499
+ CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX"
1500
+ };
1501
+ var _TooManyTagsException = class _TooManyTagsException extends QConnectServiceException {
1502
+ /**
1503
+ * @internal
1504
+ */
1505
+ constructor(opts) {
1506
+ super({
1507
+ name: "TooManyTagsException",
1508
+ $fault: "client",
1509
+ ...opts
1510
+ });
1511
+ this.name = "TooManyTagsException";
1512
+ this.$fault = "client";
1513
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
1514
+ this.resourceName = opts.resourceName;
1515
+ }
1516
+ };
1517
+ __name(_TooManyTagsException, "TooManyTagsException");
1518
+ var TooManyTagsException = _TooManyTagsException;
1519
+ var DataDetails;
1520
+ ((DataDetails3) => {
1521
+ DataDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
1522
+ if (value.contentData !== void 0)
1523
+ return visitor.contentData(value.contentData);
1524
+ if (value.generativeData !== void 0)
1525
+ return visitor.generativeData(value.generativeData);
1526
+ if (value.intentDetectedData !== void 0)
1527
+ return visitor.intentDetectedData(value.intentDetectedData);
1528
+ if (value.sourceContentData !== void 0)
1529
+ return visitor.sourceContentData(value.sourceContentData);
1530
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1531
+ }, "visit");
1532
+ })(DataDetails || (DataDetails = {}));
1533
+ var MessageTemplateSearchResultDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1534
+ ...obj,
1535
+ ...obj.groupingConfiguration && {
1536
+ groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration)
1537
+ }
1538
+ }), "MessageTemplateSearchResultDataFilterSensitiveLog");
1539
+ var SearchMessageTemplatesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1540
+ ...obj,
1541
+ ...obj.results && { results: obj.results.map((item) => MessageTemplateSearchResultDataFilterSensitiveLog(item)) }
1542
+ }), "SearchMessageTemplatesResponseFilterSensitiveLog");
1224
1543
  var SearchQuickResponsesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1225
1544
  ...obj,
1226
1545
  ...obj.attributes && { attributes: import_smithy_client.SENSITIVE_STRING }
@@ -1296,6 +1615,23 @@ var QueryAssistantResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
1296
1615
  }), "QueryAssistantResponseFilterSensitiveLog");
1297
1616
 
1298
1617
  // src/protocols/Aws_restJson1.ts
1618
+ var se_ActivateMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1619
+ const b = (0, import_core.requestBuilder)(input, context);
1620
+ const headers = {
1621
+ "content-type": "application/json"
1622
+ };
1623
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/activate");
1624
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1625
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
1626
+ let body;
1627
+ body = JSON.stringify(
1628
+ (0, import_smithy_client.take)(input, {
1629
+ versionNumber: []
1630
+ })
1631
+ );
1632
+ b.m("POST").h(headers).b(body);
1633
+ return b.build();
1634
+ }, "se_ActivateMessageTemplateCommand");
1299
1635
  var se_CreateAIAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
1300
1636
  const b = (0, import_core.requestBuilder)(input, context);
1301
1637
  const headers = {
@@ -1423,66 +1759,127 @@ var se_CreateContentCommand = /* @__PURE__ */ __name(async (input, context) => {
1423
1759
  const headers = {
1424
1760
  "content-type": "application/json"
1425
1761
  };
1426
- b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
1762
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents");
1763
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1764
+ let body;
1765
+ body = JSON.stringify(
1766
+ (0, import_smithy_client.take)(input, {
1767
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1768
+ metadata: (_) => (0, import_smithy_client._json)(_),
1769
+ name: [],
1770
+ overrideLinkOutUri: [],
1771
+ tags: (_) => (0, import_smithy_client._json)(_),
1772
+ title: [],
1773
+ uploadId: []
1774
+ })
1775
+ );
1776
+ b.m("POST").h(headers).b(body);
1777
+ return b.build();
1778
+ }, "se_CreateContentCommand");
1779
+ var se_CreateContentAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
1780
+ const b = (0, import_core.requestBuilder)(input, context);
1781
+ const headers = {
1782
+ "content-type": "application/json"
1783
+ };
1784
+ b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations");
1785
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1786
+ b.p("contentId", () => input.contentId, "{contentId}", false);
1787
+ let body;
1788
+ body = JSON.stringify(
1789
+ (0, import_smithy_client.take)(input, {
1790
+ association: (_) => (0, import_smithy_client._json)(_),
1791
+ associationType: [],
1792
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1793
+ tags: (_) => (0, import_smithy_client._json)(_)
1794
+ })
1795
+ );
1796
+ b.m("POST").h(headers).b(body);
1797
+ return b.build();
1798
+ }, "se_CreateContentAssociationCommand");
1799
+ var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1800
+ const b = (0, import_core.requestBuilder)(input, context);
1801
+ const headers = {
1802
+ "content-type": "application/json"
1803
+ };
1804
+ b.bp("/knowledgeBases");
1805
+ let body;
1806
+ body = JSON.stringify(
1807
+ (0, import_smithy_client.take)(input, {
1808
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1809
+ description: [],
1810
+ knowledgeBaseType: [],
1811
+ name: [],
1812
+ renderingConfiguration: (_) => (0, import_smithy_client._json)(_),
1813
+ serverSideEncryptionConfiguration: (_) => (0, import_smithy_client._json)(_),
1814
+ sourceConfiguration: (_) => (0, import_smithy_client._json)(_),
1815
+ tags: (_) => (0, import_smithy_client._json)(_),
1816
+ vectorIngestionConfiguration: (_) => (0, import_smithy_client._json)(_)
1817
+ })
1818
+ );
1819
+ b.m("POST").h(headers).b(body);
1820
+ return b.build();
1821
+ }, "se_CreateKnowledgeBaseCommand");
1822
+ var se_CreateMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1823
+ const b = (0, import_core.requestBuilder)(input, context);
1824
+ const headers = {
1825
+ "content-type": "application/json"
1826
+ };
1827
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates");
1427
1828
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1428
1829
  let body;
1429
1830
  body = JSON.stringify(
1430
1831
  (0, import_smithy_client.take)(input, {
1832
+ channelSubtype: [],
1431
1833
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1432
- metadata: (_) => (0, import_smithy_client._json)(_),
1834
+ content: (_) => (0, import_smithy_client._json)(_),
1835
+ defaultAttributes: (_) => (0, import_smithy_client._json)(_),
1836
+ description: [],
1837
+ groupingConfiguration: (_) => (0, import_smithy_client._json)(_),
1838
+ language: [],
1433
1839
  name: [],
1434
- overrideLinkOutUri: [],
1435
- tags: (_) => (0, import_smithy_client._json)(_),
1436
- title: [],
1437
- uploadId: []
1840
+ tags: (_) => (0, import_smithy_client._json)(_)
1438
1841
  })
1439
1842
  );
1440
1843
  b.m("POST").h(headers).b(body);
1441
1844
  return b.build();
1442
- }, "se_CreateContentCommand");
1443
- var se_CreateContentAssociationCommand = /* @__PURE__ */ __name(async (input, context) => {
1845
+ }, "se_CreateMessageTemplateCommand");
1846
+ var se_CreateMessageTemplateAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => {
1444
1847
  const b = (0, import_core.requestBuilder)(input, context);
1445
1848
  const headers = {
1446
1849
  "content-type": "application/json"
1447
1850
  };
1448
- b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations");
1851
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/attachments");
1449
1852
  b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1450
- b.p("contentId", () => input.contentId, "{contentId}", false);
1853
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
1451
1854
  let body;
1452
1855
  body = JSON.stringify(
1453
1856
  (0, import_smithy_client.take)(input, {
1454
- association: (_) => (0, import_smithy_client._json)(_),
1455
- associationType: [],
1456
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1457
- tags: (_) => (0, import_smithy_client._json)(_)
1857
+ body: [],
1858
+ clientToken: [],
1859
+ contentDisposition: [],
1860
+ name: []
1458
1861
  })
1459
1862
  );
1460
1863
  b.m("POST").h(headers).b(body);
1461
1864
  return b.build();
1462
- }, "se_CreateContentAssociationCommand");
1463
- var se_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
1865
+ }, "se_CreateMessageTemplateAttachmentCommand");
1866
+ var se_CreateMessageTemplateVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
1464
1867
  const b = (0, import_core.requestBuilder)(input, context);
1465
1868
  const headers = {
1466
1869
  "content-type": "application/json"
1467
1870
  };
1468
- b.bp("/knowledgeBases");
1871
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions");
1872
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1873
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
1469
1874
  let body;
1470
1875
  body = JSON.stringify(
1471
1876
  (0, import_smithy_client.take)(input, {
1472
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1473
- description: [],
1474
- knowledgeBaseType: [],
1475
- name: [],
1476
- renderingConfiguration: (_) => (0, import_smithy_client._json)(_),
1477
- serverSideEncryptionConfiguration: (_) => (0, import_smithy_client._json)(_),
1478
- sourceConfiguration: (_) => (0, import_smithy_client._json)(_),
1479
- tags: (_) => (0, import_smithy_client._json)(_),
1480
- vectorIngestionConfiguration: (_) => (0, import_smithy_client._json)(_)
1877
+ messageTemplateContentSha256: []
1481
1878
  })
1482
1879
  );
1483
1880
  b.m("POST").h(headers).b(body);
1484
1881
  return b.build();
1485
- }, "se_CreateKnowledgeBaseCommand");
1882
+ }, "se_CreateMessageTemplateVersionCommand");
1486
1883
  var se_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1487
1884
  const b = (0, import_core.requestBuilder)(input, context);
1488
1885
  const headers = {
@@ -1530,6 +1927,23 @@ var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
1530
1927
  b.m("POST").h(headers).b(body);
1531
1928
  return b.build();
1532
1929
  }, "se_CreateSessionCommand");
1930
+ var se_DeactivateMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1931
+ const b = (0, import_core.requestBuilder)(input, context);
1932
+ const headers = {
1933
+ "content-type": "application/json"
1934
+ };
1935
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/deactivate");
1936
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1937
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
1938
+ let body;
1939
+ body = JSON.stringify(
1940
+ (0, import_smithy_client.take)(input, {
1941
+ versionNumber: []
1942
+ })
1943
+ );
1944
+ b.m("POST").h(headers).b(body);
1945
+ return b.build();
1946
+ }, "se_DeactivateMessageTemplateCommand");
1533
1947
  var se_DeleteAIAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
1534
1948
  const b = (0, import_core.requestBuilder)(input, context);
1535
1949
  const headers = {};
@@ -1631,6 +2045,27 @@ var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
1631
2045
  b.m("DELETE").h(headers).b(body);
1632
2046
  return b.build();
1633
2047
  }, "se_DeleteKnowledgeBaseCommand");
2048
+ var se_DeleteMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
2049
+ const b = (0, import_core.requestBuilder)(input, context);
2050
+ const headers = {};
2051
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}");
2052
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2053
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
2054
+ let body;
2055
+ b.m("DELETE").h(headers).b(body);
2056
+ return b.build();
2057
+ }, "se_DeleteMessageTemplateCommand");
2058
+ var se_DeleteMessageTemplateAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => {
2059
+ const b = (0, import_core.requestBuilder)(input, context);
2060
+ const headers = {};
2061
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/attachments/{attachmentId}");
2062
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2063
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
2064
+ b.p("attachmentId", () => input.attachmentId, "{attachmentId}", false);
2065
+ let body;
2066
+ b.m("DELETE").h(headers).b(body);
2067
+ return b.build();
2068
+ }, "se_DeleteMessageTemplateAttachmentCommand");
1634
2069
  var se_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1635
2070
  const b = (0, import_core.requestBuilder)(input, context);
1636
2071
  const headers = {};
@@ -1730,6 +2165,16 @@ var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) =
1730
2165
  b.m("GET").h(headers).b(body);
1731
2166
  return b.build();
1732
2167
  }, "se_GetKnowledgeBaseCommand");
2168
+ var se_GetMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
2169
+ const b = (0, import_core.requestBuilder)(input, context);
2170
+ const headers = {};
2171
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}");
2172
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
2173
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2174
+ let body;
2175
+ b.m("GET").h(headers).b(body);
2176
+ return b.build();
2177
+ }, "se_GetMessageTemplateCommand");
1733
2178
  var se_GetQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
1734
2179
  const b = (0, import_core.requestBuilder)(input, context);
1735
2180
  const headers = {};
@@ -1899,6 +2344,33 @@ var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context)
1899
2344
  b.m("GET").h(headers).q(query).b(body);
1900
2345
  return b.build();
1901
2346
  }, "se_ListKnowledgeBasesCommand");
2347
+ var se_ListMessageTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
2348
+ const b = (0, import_core.requestBuilder)(input, context);
2349
+ const headers = {};
2350
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates");
2351
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2352
+ const query = (0, import_smithy_client.map)({
2353
+ [_nT]: [, input[_nT]],
2354
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
2355
+ });
2356
+ let body;
2357
+ b.m("GET").h(headers).q(query).b(body);
2358
+ return b.build();
2359
+ }, "se_ListMessageTemplatesCommand");
2360
+ var se_ListMessageTemplateVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
2361
+ const b = (0, import_core.requestBuilder)(input, context);
2362
+ const headers = {};
2363
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions");
2364
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2365
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
2366
+ const query = (0, import_smithy_client.map)({
2367
+ [_nT]: [, input[_nT]],
2368
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
2369
+ });
2370
+ let body;
2371
+ b.m("GET").h(headers).q(query).b(body);
2372
+ return b.build();
2373
+ }, "se_ListMessageTemplateVersionsCommand");
1902
2374
  var se_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
1903
2375
  const b = (0, import_core.requestBuilder)(input, context);
1904
2376
  const headers = {};
@@ -1999,6 +2471,23 @@ var se_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (inp
1999
2471
  b.m("DELETE").h(headers).b(body);
2000
2472
  return b.build();
2001
2473
  }, "se_RemoveKnowledgeBaseTemplateUriCommand");
2474
+ var se_RenderMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
2475
+ const b = (0, import_core.requestBuilder)(input, context);
2476
+ const headers = {
2477
+ "content-type": "application/json"
2478
+ };
2479
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/render");
2480
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2481
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
2482
+ let body;
2483
+ body = JSON.stringify(
2484
+ (0, import_smithy_client.take)(input, {
2485
+ attributes: (_) => (0, import_smithy_client._json)(_)
2486
+ })
2487
+ );
2488
+ b.m("POST").h(headers).b(body);
2489
+ return b.build();
2490
+ }, "se_RenderMessageTemplateCommand");
2002
2491
  var se_SearchContentCommand = /* @__PURE__ */ __name(async (input, context) => {
2003
2492
  const b = (0, import_core.requestBuilder)(input, context);
2004
2493
  const headers = {
@@ -2019,6 +2508,26 @@ var se_SearchContentCommand = /* @__PURE__ */ __name(async (input, context) => {
2019
2508
  b.m("POST").h(headers).q(query).b(body);
2020
2509
  return b.build();
2021
2510
  }, "se_SearchContentCommand");
2511
+ var se_SearchMessageTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
2512
+ const b = (0, import_core.requestBuilder)(input, context);
2513
+ const headers = {
2514
+ "content-type": "application/json"
2515
+ };
2516
+ b.bp("/knowledgeBases/{knowledgeBaseId}/search/messageTemplates");
2517
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2518
+ const query = (0, import_smithy_client.map)({
2519
+ [_nT]: [, input[_nT]],
2520
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
2521
+ });
2522
+ let body;
2523
+ body = JSON.stringify(
2524
+ (0, import_smithy_client.take)(input, {
2525
+ searchExpression: (_) => (0, import_smithy_client._json)(_)
2526
+ })
2527
+ );
2528
+ b.m("POST").h(headers).q(query).b(body);
2529
+ return b.build();
2530
+ }, "se_SearchMessageTemplatesCommand");
2022
2531
  var se_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (input, context) => {
2023
2532
  const b = (0, import_core.requestBuilder)(input, context);
2024
2533
  const headers = {
@@ -2220,6 +2729,44 @@ var se_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (inp
2220
2729
  b.m("POST").h(headers).b(body);
2221
2730
  return b.build();
2222
2731
  }, "se_UpdateKnowledgeBaseTemplateUriCommand");
2732
+ var se_UpdateMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
2733
+ const b = (0, import_core.requestBuilder)(input, context);
2734
+ const headers = {
2735
+ "content-type": "application/json"
2736
+ };
2737
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}");
2738
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2739
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
2740
+ let body;
2741
+ body = JSON.stringify(
2742
+ (0, import_smithy_client.take)(input, {
2743
+ content: (_) => (0, import_smithy_client._json)(_),
2744
+ defaultAttributes: (_) => (0, import_smithy_client._json)(_),
2745
+ language: []
2746
+ })
2747
+ );
2748
+ b.m("POST").h(headers).b(body);
2749
+ return b.build();
2750
+ }, "se_UpdateMessageTemplateCommand");
2751
+ var se_UpdateMessageTemplateMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
2752
+ const b = (0, import_core.requestBuilder)(input, context);
2753
+ const headers = {
2754
+ "content-type": "application/json"
2755
+ };
2756
+ b.bp("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/metadata");
2757
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
2758
+ b.p("messageTemplateId", () => input.messageTemplateId, "{messageTemplateId}", false);
2759
+ let body;
2760
+ body = JSON.stringify(
2761
+ (0, import_smithy_client.take)(input, {
2762
+ description: [],
2763
+ groupingConfiguration: (_) => (0, import_smithy_client._json)(_),
2764
+ name: []
2765
+ })
2766
+ );
2767
+ b.m("POST").h(headers).b(body);
2768
+ return b.build();
2769
+ }, "se_UpdateMessageTemplateMetadataCommand");
2223
2770
  var se_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
2224
2771
  const b = (0, import_core.requestBuilder)(input, context);
2225
2772
  const headers = {
@@ -2285,6 +2832,22 @@ var se_UpdateSessionDataCommand = /* @__PURE__ */ __name(async (input, context)
2285
2832
  b.m("PATCH").h(headers).b(body);
2286
2833
  return b.build();
2287
2834
  }, "se_UpdateSessionDataCommand");
2835
+ var de_ActivateMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2836
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2837
+ return de_CommandError(output, context);
2838
+ }
2839
+ const contents = (0, import_smithy_client.map)({
2840
+ $metadata: deserializeMetadata(output)
2841
+ });
2842
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2843
+ const doc = (0, import_smithy_client.take)(data, {
2844
+ messageTemplateArn: import_smithy_client.expectString,
2845
+ messageTemplateId: import_smithy_client.expectString,
2846
+ versionNumber: import_smithy_client.expectLong
2847
+ });
2848
+ Object.assign(contents, doc);
2849
+ return contents;
2850
+ }, "de_ActivateMessageTemplateCommand");
2288
2851
  var de_CreateAIAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
2289
2852
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2290
2853
  return de_CommandError(output, context);
@@ -2413,6 +2976,48 @@ var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
2413
2976
  Object.assign(contents, doc);
2414
2977
  return contents;
2415
2978
  }, "de_CreateKnowledgeBaseCommand");
2979
+ var de_CreateMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2980
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2981
+ return de_CommandError(output, context);
2982
+ }
2983
+ const contents = (0, import_smithy_client.map)({
2984
+ $metadata: deserializeMetadata(output)
2985
+ });
2986
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2987
+ const doc = (0, import_smithy_client.take)(data, {
2988
+ messageTemplate: (_) => de_MessageTemplateData(_, context)
2989
+ });
2990
+ Object.assign(contents, doc);
2991
+ return contents;
2992
+ }, "de_CreateMessageTemplateCommand");
2993
+ var de_CreateMessageTemplateAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2994
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2995
+ return de_CommandError(output, context);
2996
+ }
2997
+ const contents = (0, import_smithy_client.map)({
2998
+ $metadata: deserializeMetadata(output)
2999
+ });
3000
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3001
+ const doc = (0, import_smithy_client.take)(data, {
3002
+ attachment: (_) => de_MessageTemplateAttachment(_, context)
3003
+ });
3004
+ Object.assign(contents, doc);
3005
+ return contents;
3006
+ }, "de_CreateMessageTemplateAttachmentCommand");
3007
+ var de_CreateMessageTemplateVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
3008
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3009
+ return de_CommandError(output, context);
3010
+ }
3011
+ const contents = (0, import_smithy_client.map)({
3012
+ $metadata: deserializeMetadata(output)
3013
+ });
3014
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3015
+ const doc = (0, import_smithy_client.take)(data, {
3016
+ messageTemplate: (_) => de_ExtendedMessageTemplateData(_, context)
3017
+ });
3018
+ Object.assign(contents, doc);
3019
+ return contents;
3020
+ }, "de_CreateMessageTemplateVersionCommand");
2416
3021
  var de_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
2417
3022
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2418
3023
  return de_CommandError(output, context);
@@ -2441,6 +3046,22 @@ var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) =>
2441
3046
  Object.assign(contents, doc);
2442
3047
  return contents;
2443
3048
  }, "de_CreateSessionCommand");
3049
+ var de_DeactivateMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
3050
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3051
+ return de_CommandError(output, context);
3052
+ }
3053
+ const contents = (0, import_smithy_client.map)({
3054
+ $metadata: deserializeMetadata(output)
3055
+ });
3056
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3057
+ const doc = (0, import_smithy_client.take)(data, {
3058
+ messageTemplateArn: import_smithy_client.expectString,
3059
+ messageTemplateId: import_smithy_client.expectString,
3060
+ versionNumber: import_smithy_client.expectLong
3061
+ });
3062
+ Object.assign(contents, doc);
3063
+ return contents;
3064
+ }, "de_DeactivateMessageTemplateCommand");
2444
3065
  var de_DeleteAIAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
2445
3066
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2446
3067
  return de_CommandError(output, context);
@@ -2541,6 +3162,26 @@ var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
2541
3162
  await (0, import_smithy_client.collectBody)(output.body, context);
2542
3163
  return contents;
2543
3164
  }, "de_DeleteKnowledgeBaseCommand");
3165
+ var de_DeleteMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
3166
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
3167
+ return de_CommandError(output, context);
3168
+ }
3169
+ const contents = (0, import_smithy_client.map)({
3170
+ $metadata: deserializeMetadata(output)
3171
+ });
3172
+ await (0, import_smithy_client.collectBody)(output.body, context);
3173
+ return contents;
3174
+ }, "de_DeleteMessageTemplateCommand");
3175
+ var de_DeleteMessageTemplateAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
3176
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
3177
+ return de_CommandError(output, context);
3178
+ }
3179
+ const contents = (0, import_smithy_client.map)({
3180
+ $metadata: deserializeMetadata(output)
3181
+ });
3182
+ await (0, import_smithy_client.collectBody)(output.body, context);
3183
+ return contents;
3184
+ }, "de_DeleteMessageTemplateAttachmentCommand");
2544
3185
  var de_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
2545
3186
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2546
3187
  return de_CommandError(output, context);
@@ -2679,6 +3320,20 @@ var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context)
2679
3320
  Object.assign(contents, doc);
2680
3321
  return contents;
2681
3322
  }, "de_GetKnowledgeBaseCommand");
3323
+ var de_GetMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
3324
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3325
+ return de_CommandError(output, context);
3326
+ }
3327
+ const contents = (0, import_smithy_client.map)({
3328
+ $metadata: deserializeMetadata(output)
3329
+ });
3330
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3331
+ const doc = (0, import_smithy_client.take)(data, {
3332
+ messageTemplate: (_) => de_ExtendedMessageTemplateData(_, context)
3333
+ });
3334
+ Object.assign(contents, doc);
3335
+ return contents;
3336
+ }, "de_GetMessageTemplateCommand");
2682
3337
  var de_GetQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
2683
3338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2684
3339
  return de_CommandError(output, context);
@@ -2872,6 +3527,36 @@ var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context
2872
3527
  Object.assign(contents, doc);
2873
3528
  return contents;
2874
3529
  }, "de_ListKnowledgeBasesCommand");
3530
+ var de_ListMessageTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
3531
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3532
+ return de_CommandError(output, context);
3533
+ }
3534
+ const contents = (0, import_smithy_client.map)({
3535
+ $metadata: deserializeMetadata(output)
3536
+ });
3537
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3538
+ const doc = (0, import_smithy_client.take)(data, {
3539
+ messageTemplateSummaries: (_) => de_MessageTemplateSummaryList(_, context),
3540
+ nextToken: import_smithy_client.expectString
3541
+ });
3542
+ Object.assign(contents, doc);
3543
+ return contents;
3544
+ }, "de_ListMessageTemplatesCommand");
3545
+ var de_ListMessageTemplateVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3546
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3547
+ return de_CommandError(output, context);
3548
+ }
3549
+ const contents = (0, import_smithy_client.map)({
3550
+ $metadata: deserializeMetadata(output)
3551
+ });
3552
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3553
+ const doc = (0, import_smithy_client.take)(data, {
3554
+ messageTemplateVersionSummaries: import_smithy_client._json,
3555
+ nextToken: import_smithy_client.expectString
3556
+ });
3557
+ Object.assign(contents, doc);
3558
+ return contents;
3559
+ }, "de_ListMessageTemplateVersionsCommand");
2875
3560
  var de_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
2876
3561
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2877
3562
  return de_CommandError(output, context);
@@ -2966,9 +3651,25 @@ var de_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (out
2966
3651
  const contents = (0, import_smithy_client.map)({
2967
3652
  $metadata: deserializeMetadata(output)
2968
3653
  });
2969
- await (0, import_smithy_client.collectBody)(output.body, context);
3654
+ await (0, import_smithy_client.collectBody)(output.body, context);
3655
+ return contents;
3656
+ }, "de_RemoveKnowledgeBaseTemplateUriCommand");
3657
+ var de_RenderMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
3658
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3659
+ return de_CommandError(output, context);
3660
+ }
3661
+ const contents = (0, import_smithy_client.map)({
3662
+ $metadata: deserializeMetadata(output)
3663
+ });
3664
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3665
+ const doc = (0, import_smithy_client.take)(data, {
3666
+ attachments: (_) => de_MessageTemplateAttachmentList(_, context),
3667
+ attributesNotInterpolated: import_smithy_client._json,
3668
+ content: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_))
3669
+ });
3670
+ Object.assign(contents, doc);
2970
3671
  return contents;
2971
- }, "de_RemoveKnowledgeBaseTemplateUriCommand");
3672
+ }, "de_RenderMessageTemplateCommand");
2972
3673
  var de_SearchContentCommand = /* @__PURE__ */ __name(async (output, context) => {
2973
3674
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2974
3675
  return de_CommandError(output, context);
@@ -2984,6 +3685,21 @@ var de_SearchContentCommand = /* @__PURE__ */ __name(async (output, context) =>
2984
3685
  Object.assign(contents, doc);
2985
3686
  return contents;
2986
3687
  }, "de_SearchContentCommand");
3688
+ var de_SearchMessageTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
3689
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3690
+ return de_CommandError(output, context);
3691
+ }
3692
+ const contents = (0, import_smithy_client.map)({
3693
+ $metadata: deserializeMetadata(output)
3694
+ });
3695
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3696
+ const doc = (0, import_smithy_client.take)(data, {
3697
+ nextToken: import_smithy_client.expectString,
3698
+ results: (_) => de_MessageTemplateSearchResultsList(_, context)
3699
+ });
3700
+ Object.assign(contents, doc);
3701
+ return contents;
3702
+ }, "de_SearchMessageTemplatesCommand");
2987
3703
  var de_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
2988
3704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2989
3705
  return de_CommandError(output, context);
@@ -3135,6 +3851,34 @@ var de_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (out
3135
3851
  Object.assign(contents, doc);
3136
3852
  return contents;
3137
3853
  }, "de_UpdateKnowledgeBaseTemplateUriCommand");
3854
+ var de_UpdateMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
3855
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3856
+ return de_CommandError(output, context);
3857
+ }
3858
+ const contents = (0, import_smithy_client.map)({
3859
+ $metadata: deserializeMetadata(output)
3860
+ });
3861
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3862
+ const doc = (0, import_smithy_client.take)(data, {
3863
+ messageTemplate: (_) => de_MessageTemplateData(_, context)
3864
+ });
3865
+ Object.assign(contents, doc);
3866
+ return contents;
3867
+ }, "de_UpdateMessageTemplateCommand");
3868
+ var de_UpdateMessageTemplateMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
3869
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3870
+ return de_CommandError(output, context);
3871
+ }
3872
+ const contents = (0, import_smithy_client.map)({
3873
+ $metadata: deserializeMetadata(output)
3874
+ });
3875
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3876
+ const doc = (0, import_smithy_client.take)(data, {
3877
+ messageTemplate: (_) => de_MessageTemplateData(_, context)
3878
+ });
3879
+ Object.assign(contents, doc);
3880
+ return contents;
3881
+ }, "de_UpdateMessageTemplateMetadataCommand");
3138
3882
  var de_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
3139
3883
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3140
3884
  return de_CommandError(output, context);
@@ -3196,15 +3940,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3196
3940
  case "ResourceNotFoundException":
3197
3941
  case "com.amazonaws.qconnect#ResourceNotFoundException":
3198
3942
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3199
- case "ServiceQuotaExceededException":
3200
- case "com.amazonaws.qconnect#ServiceQuotaExceededException":
3201
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3202
3943
  case "ThrottlingException":
3203
3944
  case "com.amazonaws.qconnect#ThrottlingException":
3204
3945
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
3205
3946
  case "ValidationException":
3206
3947
  case "com.amazonaws.qconnect#ValidationException":
3207
3948
  throw await de_ValidationExceptionRes(parsedOutput, context);
3949
+ case "ServiceQuotaExceededException":
3950
+ case "com.amazonaws.qconnect#ServiceQuotaExceededException":
3951
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3208
3952
  case "RequestTimeoutException":
3209
3953
  case "com.amazonaws.qconnect#RequestTimeoutException":
3210
3954
  throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
@@ -3531,6 +4275,30 @@ var de_DataSummaryList = /* @__PURE__ */ __name((output, context) => {
3531
4275
  });
3532
4276
  return retVal;
3533
4277
  }, "de_DataSummaryList");
4278
+ var de_ExtendedMessageTemplateData = /* @__PURE__ */ __name((output, context) => {
4279
+ return (0, import_smithy_client.take)(output, {
4280
+ attachments: (_) => de_MessageTemplateAttachmentList(_, context),
4281
+ attributeTypes: import_smithy_client._json,
4282
+ channelSubtype: import_smithy_client.expectString,
4283
+ content: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
4284
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4285
+ defaultAttributes: import_smithy_client._json,
4286
+ description: import_smithy_client.expectString,
4287
+ groupingConfiguration: import_smithy_client._json,
4288
+ isActive: import_smithy_client.expectBoolean,
4289
+ knowledgeBaseArn: import_smithy_client.expectString,
4290
+ knowledgeBaseId: import_smithy_client.expectString,
4291
+ language: import_smithy_client.expectString,
4292
+ lastModifiedBy: import_smithy_client.expectString,
4293
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4294
+ messageTemplateArn: import_smithy_client.expectString,
4295
+ messageTemplateContentSha256: import_smithy_client.expectString,
4296
+ messageTemplateId: import_smithy_client.expectString,
4297
+ name: import_smithy_client.expectString,
4298
+ tags: import_smithy_client._json,
4299
+ versionNumber: import_smithy_client.expectLong
4300
+ });
4301
+ }, "de_ExtendedMessageTemplateData");
3534
4302
  var de_GenerativeDataDetails = /* @__PURE__ */ __name((output, context) => {
3535
4303
  return (0, import_smithy_client.take)(output, {
3536
4304
  completion: import_smithy_client.expectString,
@@ -3593,6 +4361,90 @@ var de_KnowledgeBaseData = /* @__PURE__ */ __name((output, context) => {
3593
4361
  vectorIngestionConfiguration: import_smithy_client._json
3594
4362
  });
3595
4363
  }, "de_KnowledgeBaseData");
4364
+ var de_MessageTemplateAttachment = /* @__PURE__ */ __name((output, context) => {
4365
+ return (0, import_smithy_client.take)(output, {
4366
+ attachmentId: import_smithy_client.expectString,
4367
+ contentDisposition: import_smithy_client.expectString,
4368
+ name: import_smithy_client.expectString,
4369
+ uploadedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4370
+ url: import_smithy_client.expectString,
4371
+ urlExpiry: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
4372
+ });
4373
+ }, "de_MessageTemplateAttachment");
4374
+ var de_MessageTemplateAttachmentList = /* @__PURE__ */ __name((output, context) => {
4375
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4376
+ return de_MessageTemplateAttachment(entry, context);
4377
+ });
4378
+ return retVal;
4379
+ }, "de_MessageTemplateAttachmentList");
4380
+ var de_MessageTemplateData = /* @__PURE__ */ __name((output, context) => {
4381
+ return (0, import_smithy_client.take)(output, {
4382
+ attributeTypes: import_smithy_client._json,
4383
+ channelSubtype: import_smithy_client.expectString,
4384
+ content: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
4385
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4386
+ defaultAttributes: import_smithy_client._json,
4387
+ description: import_smithy_client.expectString,
4388
+ groupingConfiguration: import_smithy_client._json,
4389
+ knowledgeBaseArn: import_smithy_client.expectString,
4390
+ knowledgeBaseId: import_smithy_client.expectString,
4391
+ language: import_smithy_client.expectString,
4392
+ lastModifiedBy: import_smithy_client.expectString,
4393
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4394
+ messageTemplateArn: import_smithy_client.expectString,
4395
+ messageTemplateContentSha256: import_smithy_client.expectString,
4396
+ messageTemplateId: import_smithy_client.expectString,
4397
+ name: import_smithy_client.expectString,
4398
+ tags: import_smithy_client._json
4399
+ });
4400
+ }, "de_MessageTemplateData");
4401
+ var de_MessageTemplateSearchResultData = /* @__PURE__ */ __name((output, context) => {
4402
+ return (0, import_smithy_client.take)(output, {
4403
+ channelSubtype: import_smithy_client.expectString,
4404
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4405
+ description: import_smithy_client.expectString,
4406
+ groupingConfiguration: import_smithy_client._json,
4407
+ isActive: import_smithy_client.expectBoolean,
4408
+ knowledgeBaseArn: import_smithy_client.expectString,
4409
+ knowledgeBaseId: import_smithy_client.expectString,
4410
+ language: import_smithy_client.expectString,
4411
+ lastModifiedBy: import_smithy_client.expectString,
4412
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4413
+ messageTemplateArn: import_smithy_client.expectString,
4414
+ messageTemplateId: import_smithy_client.expectString,
4415
+ name: import_smithy_client.expectString,
4416
+ tags: import_smithy_client._json,
4417
+ versionNumber: import_smithy_client.expectLong
4418
+ });
4419
+ }, "de_MessageTemplateSearchResultData");
4420
+ var de_MessageTemplateSearchResultsList = /* @__PURE__ */ __name((output, context) => {
4421
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4422
+ return de_MessageTemplateSearchResultData(entry, context);
4423
+ });
4424
+ return retVal;
4425
+ }, "de_MessageTemplateSearchResultsList");
4426
+ var de_MessageTemplateSummary = /* @__PURE__ */ __name((output, context) => {
4427
+ return (0, import_smithy_client.take)(output, {
4428
+ activeVersionNumber: import_smithy_client.expectLong,
4429
+ channelSubtype: import_smithy_client.expectString,
4430
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4431
+ description: import_smithy_client.expectString,
4432
+ knowledgeBaseArn: import_smithy_client.expectString,
4433
+ knowledgeBaseId: import_smithy_client.expectString,
4434
+ lastModifiedBy: import_smithy_client.expectString,
4435
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
4436
+ messageTemplateArn: import_smithy_client.expectString,
4437
+ messageTemplateId: import_smithy_client.expectString,
4438
+ name: import_smithy_client.expectString,
4439
+ tags: import_smithy_client._json
4440
+ });
4441
+ }, "de_MessageTemplateSummary");
4442
+ var de_MessageTemplateSummaryList = /* @__PURE__ */ __name((output, context) => {
4443
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4444
+ return de_MessageTemplateSummary(entry, context);
4445
+ });
4446
+ return retVal;
4447
+ }, "de_MessageTemplateSummaryList");
3596
4448
  var de_QueryResultsList = /* @__PURE__ */ __name((output, context) => {
3597
4449
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
3598
4450
  return de_ResultData(entry, context);
@@ -3728,7 +4580,21 @@ var _o = "origin";
3728
4580
  var _tK = "tagKeys";
3729
4581
  var _wTS = "waitTimeSeconds";
3730
4582
 
4583
+ // src/commands/ActivateMessageTemplateCommand.ts
4584
+ var _ActivateMessageTemplateCommand = class _ActivateMessageTemplateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4585
+ return [
4586
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4587
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4588
+ ];
4589
+ }).s("WisdomService", "ActivateMessageTemplate", {}).n("QConnectClient", "ActivateMessageTemplateCommand").f(void 0, void 0).ser(se_ActivateMessageTemplateCommand).de(de_ActivateMessageTemplateCommand).build() {
4590
+ };
4591
+ __name(_ActivateMessageTemplateCommand, "ActivateMessageTemplateCommand");
4592
+ var ActivateMessageTemplateCommand = _ActivateMessageTemplateCommand;
4593
+
3731
4594
  // src/commands/CreateAIAgentCommand.ts
4595
+
4596
+
4597
+
3732
4598
  var _CreateAIAgentCommand = class _CreateAIAgentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3733
4599
  return [
3734
4600
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -3851,6 +4717,51 @@ var _CreateKnowledgeBaseCommand = class _CreateKnowledgeBaseCommand extends impo
3851
4717
  __name(_CreateKnowledgeBaseCommand, "CreateKnowledgeBaseCommand");
3852
4718
  var CreateKnowledgeBaseCommand = _CreateKnowledgeBaseCommand;
3853
4719
 
4720
+ // src/commands/CreateMessageTemplateAttachmentCommand.ts
4721
+
4722
+
4723
+
4724
+ var _CreateMessageTemplateAttachmentCommand = class _CreateMessageTemplateAttachmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4725
+ return [
4726
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4727
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4728
+ ];
4729
+ }).s("WisdomService", "CreateMessageTemplateAttachment", {}).n("QConnectClient", "CreateMessageTemplateAttachmentCommand").f(
4730
+ CreateMessageTemplateAttachmentRequestFilterSensitiveLog,
4731
+ CreateMessageTemplateAttachmentResponseFilterSensitiveLog
4732
+ ).ser(se_CreateMessageTemplateAttachmentCommand).de(de_CreateMessageTemplateAttachmentCommand).build() {
4733
+ };
4734
+ __name(_CreateMessageTemplateAttachmentCommand, "CreateMessageTemplateAttachmentCommand");
4735
+ var CreateMessageTemplateAttachmentCommand = _CreateMessageTemplateAttachmentCommand;
4736
+
4737
+ // src/commands/CreateMessageTemplateCommand.ts
4738
+
4739
+
4740
+
4741
+ var _CreateMessageTemplateCommand = class _CreateMessageTemplateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4742
+ return [
4743
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4744
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4745
+ ];
4746
+ }).s("WisdomService", "CreateMessageTemplate", {}).n("QConnectClient", "CreateMessageTemplateCommand").f(CreateMessageTemplateRequestFilterSensitiveLog, CreateMessageTemplateResponseFilterSensitiveLog).ser(se_CreateMessageTemplateCommand).de(de_CreateMessageTemplateCommand).build() {
4747
+ };
4748
+ __name(_CreateMessageTemplateCommand, "CreateMessageTemplateCommand");
4749
+ var CreateMessageTemplateCommand = _CreateMessageTemplateCommand;
4750
+
4751
+ // src/commands/CreateMessageTemplateVersionCommand.ts
4752
+
4753
+
4754
+
4755
+ var _CreateMessageTemplateVersionCommand = class _CreateMessageTemplateVersionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4756
+ return [
4757
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4758
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4759
+ ];
4760
+ }).s("WisdomService", "CreateMessageTemplateVersion", {}).n("QConnectClient", "CreateMessageTemplateVersionCommand").f(void 0, CreateMessageTemplateVersionResponseFilterSensitiveLog).ser(se_CreateMessageTemplateVersionCommand).de(de_CreateMessageTemplateVersionCommand).build() {
4761
+ };
4762
+ __name(_CreateMessageTemplateVersionCommand, "CreateMessageTemplateVersionCommand");
4763
+ var CreateMessageTemplateVersionCommand = _CreateMessageTemplateVersionCommand;
4764
+
3854
4765
  // src/commands/CreateQuickResponseCommand.ts
3855
4766
 
3856
4767
 
@@ -3879,6 +4790,20 @@ var _CreateSessionCommand = class _CreateSessionCommand extends import_smithy_cl
3879
4790
  __name(_CreateSessionCommand, "CreateSessionCommand");
3880
4791
  var CreateSessionCommand = _CreateSessionCommand;
3881
4792
 
4793
+ // src/commands/DeactivateMessageTemplateCommand.ts
4794
+
4795
+
4796
+
4797
+ var _DeactivateMessageTemplateCommand = class _DeactivateMessageTemplateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4798
+ return [
4799
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4800
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4801
+ ];
4802
+ }).s("WisdomService", "DeactivateMessageTemplate", {}).n("QConnectClient", "DeactivateMessageTemplateCommand").f(void 0, void 0).ser(se_DeactivateMessageTemplateCommand).de(de_DeactivateMessageTemplateCommand).build() {
4803
+ };
4804
+ __name(_DeactivateMessageTemplateCommand, "DeactivateMessageTemplateCommand");
4805
+ var DeactivateMessageTemplateCommand = _DeactivateMessageTemplateCommand;
4806
+
3882
4807
  // src/commands/DeleteAIAgentCommand.ts
3883
4808
 
3884
4809
 
@@ -4019,6 +4944,34 @@ var _DeleteKnowledgeBaseCommand = class _DeleteKnowledgeBaseCommand extends impo
4019
4944
  __name(_DeleteKnowledgeBaseCommand, "DeleteKnowledgeBaseCommand");
4020
4945
  var DeleteKnowledgeBaseCommand = _DeleteKnowledgeBaseCommand;
4021
4946
 
4947
+ // src/commands/DeleteMessageTemplateAttachmentCommand.ts
4948
+
4949
+
4950
+
4951
+ var _DeleteMessageTemplateAttachmentCommand = class _DeleteMessageTemplateAttachmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4952
+ return [
4953
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4954
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4955
+ ];
4956
+ }).s("WisdomService", "DeleteMessageTemplateAttachment", {}).n("QConnectClient", "DeleteMessageTemplateAttachmentCommand").f(void 0, void 0).ser(se_DeleteMessageTemplateAttachmentCommand).de(de_DeleteMessageTemplateAttachmentCommand).build() {
4957
+ };
4958
+ __name(_DeleteMessageTemplateAttachmentCommand, "DeleteMessageTemplateAttachmentCommand");
4959
+ var DeleteMessageTemplateAttachmentCommand = _DeleteMessageTemplateAttachmentCommand;
4960
+
4961
+ // src/commands/DeleteMessageTemplateCommand.ts
4962
+
4963
+
4964
+
4965
+ var _DeleteMessageTemplateCommand = class _DeleteMessageTemplateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4966
+ return [
4967
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4968
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4969
+ ];
4970
+ }).s("WisdomService", "DeleteMessageTemplate", {}).n("QConnectClient", "DeleteMessageTemplateCommand").f(void 0, void 0).ser(se_DeleteMessageTemplateCommand).de(de_DeleteMessageTemplateCommand).build() {
4971
+ };
4972
+ __name(_DeleteMessageTemplateCommand, "DeleteMessageTemplateCommand");
4973
+ var DeleteMessageTemplateCommand = _DeleteMessageTemplateCommand;
4974
+
4022
4975
  // src/commands/DeleteQuickResponseCommand.ts
4023
4976
 
4024
4977
 
@@ -4159,6 +5112,20 @@ var _GetKnowledgeBaseCommand = class _GetKnowledgeBaseCommand extends import_smi
4159
5112
  __name(_GetKnowledgeBaseCommand, "GetKnowledgeBaseCommand");
4160
5113
  var GetKnowledgeBaseCommand = _GetKnowledgeBaseCommand;
4161
5114
 
5115
+ // src/commands/GetMessageTemplateCommand.ts
5116
+
5117
+
5118
+
5119
+ var _GetMessageTemplateCommand = class _GetMessageTemplateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5120
+ return [
5121
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5122
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5123
+ ];
5124
+ }).s("WisdomService", "GetMessageTemplate", {}).n("QConnectClient", "GetMessageTemplateCommand").f(void 0, GetMessageTemplateResponseFilterSensitiveLog).ser(se_GetMessageTemplateCommand).de(de_GetMessageTemplateCommand).build() {
5125
+ };
5126
+ __name(_GetMessageTemplateCommand, "GetMessageTemplateCommand");
5127
+ var GetMessageTemplateCommand = _GetMessageTemplateCommand;
5128
+
4162
5129
  // src/commands/GetQuickResponseCommand.ts
4163
5130
 
4164
5131
 
@@ -4341,6 +5308,34 @@ var _ListKnowledgeBasesCommand = class _ListKnowledgeBasesCommand extends import
4341
5308
  __name(_ListKnowledgeBasesCommand, "ListKnowledgeBasesCommand");
4342
5309
  var ListKnowledgeBasesCommand = _ListKnowledgeBasesCommand;
4343
5310
 
5311
+ // src/commands/ListMessageTemplatesCommand.ts
5312
+
5313
+
5314
+
5315
+ var _ListMessageTemplatesCommand = class _ListMessageTemplatesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5316
+ return [
5317
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5318
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5319
+ ];
5320
+ }).s("WisdomService", "ListMessageTemplates", {}).n("QConnectClient", "ListMessageTemplatesCommand").f(void 0, void 0).ser(se_ListMessageTemplatesCommand).de(de_ListMessageTemplatesCommand).build() {
5321
+ };
5322
+ __name(_ListMessageTemplatesCommand, "ListMessageTemplatesCommand");
5323
+ var ListMessageTemplatesCommand = _ListMessageTemplatesCommand;
5324
+
5325
+ // src/commands/ListMessageTemplateVersionsCommand.ts
5326
+
5327
+
5328
+
5329
+ var _ListMessageTemplateVersionsCommand = class _ListMessageTemplateVersionsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5330
+ return [
5331
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5332
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5333
+ ];
5334
+ }).s("WisdomService", "ListMessageTemplateVersions", {}).n("QConnectClient", "ListMessageTemplateVersionsCommand").f(void 0, void 0).ser(se_ListMessageTemplateVersionsCommand).de(de_ListMessageTemplateVersionsCommand).build() {
5335
+ };
5336
+ __name(_ListMessageTemplateVersionsCommand, "ListMessageTemplateVersionsCommand");
5337
+ var ListMessageTemplateVersionsCommand = _ListMessageTemplateVersionsCommand;
5338
+
4344
5339
  // src/commands/ListQuickResponsesCommand.ts
4345
5340
 
4346
5341
 
@@ -4439,6 +5434,20 @@ var _RemoveKnowledgeBaseTemplateUriCommand = class _RemoveKnowledgeBaseTemplateU
4439
5434
  __name(_RemoveKnowledgeBaseTemplateUriCommand, "RemoveKnowledgeBaseTemplateUriCommand");
4440
5435
  var RemoveKnowledgeBaseTemplateUriCommand = _RemoveKnowledgeBaseTemplateUriCommand;
4441
5436
 
5437
+ // src/commands/RenderMessageTemplateCommand.ts
5438
+
5439
+
5440
+
5441
+ var _RenderMessageTemplateCommand = class _RenderMessageTemplateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5442
+ return [
5443
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5444
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5445
+ ];
5446
+ }).s("WisdomService", "RenderMessageTemplate", {}).n("QConnectClient", "RenderMessageTemplateCommand").f(RenderMessageTemplateRequestFilterSensitiveLog, RenderMessageTemplateResponseFilterSensitiveLog).ser(se_RenderMessageTemplateCommand).de(de_RenderMessageTemplateCommand).build() {
5447
+ };
5448
+ __name(_RenderMessageTemplateCommand, "RenderMessageTemplateCommand");
5449
+ var RenderMessageTemplateCommand = _RenderMessageTemplateCommand;
5450
+
4442
5451
  // src/commands/SearchContentCommand.ts
4443
5452
 
4444
5453
 
@@ -4453,6 +5462,20 @@ var _SearchContentCommand = class _SearchContentCommand extends import_smithy_cl
4453
5462
  __name(_SearchContentCommand, "SearchContentCommand");
4454
5463
  var SearchContentCommand = _SearchContentCommand;
4455
5464
 
5465
+ // src/commands/SearchMessageTemplatesCommand.ts
5466
+
5467
+
5468
+
5469
+ var _SearchMessageTemplatesCommand = class _SearchMessageTemplatesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5470
+ return [
5471
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5472
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5473
+ ];
5474
+ }).s("WisdomService", "SearchMessageTemplates", {}).n("QConnectClient", "SearchMessageTemplatesCommand").f(void 0, SearchMessageTemplatesResponseFilterSensitiveLog).ser(se_SearchMessageTemplatesCommand).de(de_SearchMessageTemplatesCommand).build() {
5475
+ };
5476
+ __name(_SearchMessageTemplatesCommand, "SearchMessageTemplatesCommand");
5477
+ var SearchMessageTemplatesCommand = _SearchMessageTemplatesCommand;
5478
+
4456
5479
  // src/commands/SearchQuickResponsesCommand.ts
4457
5480
 
4458
5481
 
@@ -4607,6 +5630,34 @@ var _UpdateKnowledgeBaseTemplateUriCommand = class _UpdateKnowledgeBaseTemplateU
4607
5630
  __name(_UpdateKnowledgeBaseTemplateUriCommand, "UpdateKnowledgeBaseTemplateUriCommand");
4608
5631
  var UpdateKnowledgeBaseTemplateUriCommand = _UpdateKnowledgeBaseTemplateUriCommand;
4609
5632
 
5633
+ // src/commands/UpdateMessageTemplateCommand.ts
5634
+
5635
+
5636
+
5637
+ var _UpdateMessageTemplateCommand = class _UpdateMessageTemplateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5638
+ return [
5639
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5640
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5641
+ ];
5642
+ }).s("WisdomService", "UpdateMessageTemplate", {}).n("QConnectClient", "UpdateMessageTemplateCommand").f(UpdateMessageTemplateRequestFilterSensitiveLog, UpdateMessageTemplateResponseFilterSensitiveLog).ser(se_UpdateMessageTemplateCommand).de(de_UpdateMessageTemplateCommand).build() {
5643
+ };
5644
+ __name(_UpdateMessageTemplateCommand, "UpdateMessageTemplateCommand");
5645
+ var UpdateMessageTemplateCommand = _UpdateMessageTemplateCommand;
5646
+
5647
+ // src/commands/UpdateMessageTemplateMetadataCommand.ts
5648
+
5649
+
5650
+
5651
+ var _UpdateMessageTemplateMetadataCommand = class _UpdateMessageTemplateMetadataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5652
+ return [
5653
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5654
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5655
+ ];
5656
+ }).s("WisdomService", "UpdateMessageTemplateMetadata", {}).n("QConnectClient", "UpdateMessageTemplateMetadataCommand").f(UpdateMessageTemplateMetadataRequestFilterSensitiveLog, UpdateMessageTemplateMetadataResponseFilterSensitiveLog).ser(se_UpdateMessageTemplateMetadataCommand).de(de_UpdateMessageTemplateMetadataCommand).build() {
5657
+ };
5658
+ __name(_UpdateMessageTemplateMetadataCommand, "UpdateMessageTemplateMetadataCommand");
5659
+ var UpdateMessageTemplateMetadataCommand = _UpdateMessageTemplateMetadataCommand;
5660
+
4610
5661
  // src/commands/UpdateQuickResponseCommand.ts
4611
5662
 
4612
5663
 
@@ -4651,6 +5702,7 @@ var UpdateSessionDataCommand = _UpdateSessionDataCommand;
4651
5702
 
4652
5703
  // src/QConnect.ts
4653
5704
  var commands = {
5705
+ ActivateMessageTemplateCommand,
4654
5706
  CreateAIAgentCommand,
4655
5707
  CreateAIAgentVersionCommand,
4656
5708
  CreateAIPromptCommand,
@@ -4660,8 +5712,12 @@ var commands = {
4660
5712
  CreateContentCommand,
4661
5713
  CreateContentAssociationCommand,
4662
5714
  CreateKnowledgeBaseCommand,
5715
+ CreateMessageTemplateCommand,
5716
+ CreateMessageTemplateAttachmentCommand,
5717
+ CreateMessageTemplateVersionCommand,
4663
5718
  CreateQuickResponseCommand,
4664
5719
  CreateSessionCommand,
5720
+ DeactivateMessageTemplateCommand,
4665
5721
  DeleteAIAgentCommand,
4666
5722
  DeleteAIAgentVersionCommand,
4667
5723
  DeleteAIPromptCommand,
@@ -4672,6 +5728,8 @@ var commands = {
4672
5728
  DeleteContentAssociationCommand,
4673
5729
  DeleteImportJobCommand,
4674
5730
  DeleteKnowledgeBaseCommand,
5731
+ DeleteMessageTemplateCommand,
5732
+ DeleteMessageTemplateAttachmentCommand,
4675
5733
  DeleteQuickResponseCommand,
4676
5734
  GetAIAgentCommand,
4677
5735
  GetAIPromptCommand,
@@ -4682,6 +5740,7 @@ var commands = {
4682
5740
  GetContentSummaryCommand,
4683
5741
  GetImportJobCommand,
4684
5742
  GetKnowledgeBaseCommand,
5743
+ GetMessageTemplateCommand,
4685
5744
  GetQuickResponseCommand,
4686
5745
  GetRecommendationsCommand,
4687
5746
  GetSessionCommand,
@@ -4695,6 +5754,8 @@ var commands = {
4695
5754
  ListContentsCommand,
4696
5755
  ListImportJobsCommand,
4697
5756
  ListKnowledgeBasesCommand,
5757
+ ListMessageTemplatesCommand,
5758
+ ListMessageTemplateVersionsCommand,
4698
5759
  ListQuickResponsesCommand,
4699
5760
  ListTagsForResourceCommand,
4700
5761
  NotifyRecommendationsReceivedCommand,
@@ -4702,7 +5763,9 @@ var commands = {
4702
5763
  QueryAssistantCommand,
4703
5764
  RemoveAssistantAIAgentCommand,
4704
5765
  RemoveKnowledgeBaseTemplateUriCommand,
5766
+ RenderMessageTemplateCommand,
4705
5767
  SearchContentCommand,
5768
+ SearchMessageTemplatesCommand,
4706
5769
  SearchQuickResponsesCommand,
4707
5770
  SearchSessionsCommand,
4708
5771
  StartContentUploadCommand,
@@ -4714,6 +5777,8 @@ var commands = {
4714
5777
  UpdateAssistantAIAgentCommand,
4715
5778
  UpdateContentCommand,
4716
5779
  UpdateKnowledgeBaseTemplateUriCommand,
5780
+ UpdateMessageTemplateCommand,
5781
+ UpdateMessageTemplateMetadataCommand,
4717
5782
  UpdateQuickResponseCommand,
4718
5783
  UpdateSessionCommand,
4719
5784
  UpdateSessionDataCommand
@@ -4764,6 +5829,14 @@ var paginateListImportJobs = (0, import_core.createPaginator)(QConnectClient, Li
4764
5829
 
4765
5830
  var paginateListKnowledgeBases = (0, import_core.createPaginator)(QConnectClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
4766
5831
 
5832
+ // src/pagination/ListMessageTemplateVersionsPaginator.ts
5833
+
5834
+ var paginateListMessageTemplateVersions = (0, import_core.createPaginator)(QConnectClient, ListMessageTemplateVersionsCommand, "nextToken", "nextToken", "maxResults");
5835
+
5836
+ // src/pagination/ListMessageTemplatesPaginator.ts
5837
+
5838
+ var paginateListMessageTemplates = (0, import_core.createPaginator)(QConnectClient, ListMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
5839
+
4767
5840
  // src/pagination/ListQuickResponsesPaginator.ts
4768
5841
 
4769
5842
  var paginateListQuickResponses = (0, import_core.createPaginator)(QConnectClient, ListQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
@@ -4776,6 +5849,10 @@ var paginateQueryAssistant = (0, import_core.createPaginator)(QConnectClient, Qu
4776
5849
 
4777
5850
  var paginateSearchContent = (0, import_core.createPaginator)(QConnectClient, SearchContentCommand, "nextToken", "nextToken", "maxResults");
4778
5851
 
5852
+ // src/pagination/SearchMessageTemplatesPaginator.ts
5853
+
5854
+ var paginateSearchMessageTemplates = (0, import_core.createPaginator)(QConnectClient, SearchMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
5855
+
4779
5856
  // src/pagination/SearchQuickResponsesPaginator.ts
4780
5857
 
4781
5858
  var paginateSearchQuickResponses = (0, import_core.createPaginator)(QConnectClient, SearchQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
@@ -4791,6 +5868,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4791
5868
  QConnectClient,
4792
5869
  QConnect,
4793
5870
  $Command,
5871
+ ActivateMessageTemplateCommand,
4794
5872
  CreateAIAgentCommand,
4795
5873
  CreateAIAgentVersionCommand,
4796
5874
  CreateAIPromptCommand,
@@ -4800,8 +5878,12 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4800
5878
  CreateContentAssociationCommand,
4801
5879
  CreateContentCommand,
4802
5880
  CreateKnowledgeBaseCommand,
5881
+ CreateMessageTemplateAttachmentCommand,
5882
+ CreateMessageTemplateCommand,
5883
+ CreateMessageTemplateVersionCommand,
4803
5884
  CreateQuickResponseCommand,
4804
5885
  CreateSessionCommand,
5886
+ DeactivateMessageTemplateCommand,
4805
5887
  DeleteAIAgentCommand,
4806
5888
  DeleteAIAgentVersionCommand,
4807
5889
  DeleteAIPromptCommand,
@@ -4812,6 +5894,8 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4812
5894
  DeleteContentCommand,
4813
5895
  DeleteImportJobCommand,
4814
5896
  DeleteKnowledgeBaseCommand,
5897
+ DeleteMessageTemplateAttachmentCommand,
5898
+ DeleteMessageTemplateCommand,
4815
5899
  DeleteQuickResponseCommand,
4816
5900
  GetAIAgentCommand,
4817
5901
  GetAIPromptCommand,
@@ -4822,6 +5906,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4822
5906
  GetContentSummaryCommand,
4823
5907
  GetImportJobCommand,
4824
5908
  GetKnowledgeBaseCommand,
5909
+ GetMessageTemplateCommand,
4825
5910
  GetQuickResponseCommand,
4826
5911
  GetRecommendationsCommand,
4827
5912
  GetSessionCommand,
@@ -4835,6 +5920,8 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4835
5920
  ListContentsCommand,
4836
5921
  ListImportJobsCommand,
4837
5922
  ListKnowledgeBasesCommand,
5923
+ ListMessageTemplateVersionsCommand,
5924
+ ListMessageTemplatesCommand,
4838
5925
  ListQuickResponsesCommand,
4839
5926
  ListTagsForResourceCommand,
4840
5927
  NotifyRecommendationsReceivedCommand,
@@ -4842,7 +5929,9 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4842
5929
  QueryAssistantCommand,
4843
5930
  RemoveAssistantAIAgentCommand,
4844
5931
  RemoveKnowledgeBaseTemplateUriCommand,
5932
+ RenderMessageTemplateCommand,
4845
5933
  SearchContentCommand,
5934
+ SearchMessageTemplatesCommand,
4846
5935
  SearchQuickResponsesCommand,
4847
5936
  SearchSessionsCommand,
4848
5937
  StartContentUploadCommand,
@@ -4854,6 +5943,8 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4854
5943
  UpdateAssistantAIAgentCommand,
4855
5944
  UpdateContentCommand,
4856
5945
  UpdateKnowledgeBaseTemplateUriCommand,
5946
+ UpdateMessageTemplateCommand,
5947
+ UpdateMessageTemplateMetadataCommand,
4857
5948
  UpdateQuickResponseCommand,
4858
5949
  UpdateSessionCommand,
4859
5950
  UpdateSessionDataCommand,
@@ -4867,13 +5958,19 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4867
5958
  paginateListContents,
4868
5959
  paginateListImportJobs,
4869
5960
  paginateListKnowledgeBases,
5961
+ paginateListMessageTemplateVersions,
5962
+ paginateListMessageTemplates,
4870
5963
  paginateListQuickResponses,
4871
5964
  paginateQueryAssistant,
4872
5965
  paginateSearchContent,
5966
+ paginateSearchMessageTemplates,
4873
5967
  paginateSearchQuickResponses,
4874
5968
  paginateSearchSessions,
4875
5969
  AccessDeniedException,
4876
5970
  ConflictException,
5971
+ ResourceNotFoundException,
5972
+ ThrottlingException,
5973
+ ValidationException,
4877
5974
  OrCondition,
4878
5975
  TagFilter,
4879
5976
  KnowledgeBaseSearchType,
@@ -4884,10 +5981,7 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4884
5981
  VisibilityStatus,
4885
5982
  Origin,
4886
5983
  Status,
4887
- ResourceNotFoundException,
4888
5984
  ServiceQuotaExceededException,
4889
- ThrottlingException,
4890
- ValidationException,
4891
5985
  AIPromptAPIFormat,
4892
5986
  AIPromptTemplateConfiguration,
4893
5987
  AIPromptTemplateType,
@@ -4919,12 +6013,14 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4919
6013
  FilterOperator,
4920
6014
  RuntimeSessionDataValue,
4921
6015
  SessionDataNamespace,
6016
+ ChannelSubtype,
4922
6017
  ChunkingStrategy,
4923
6018
  Configuration,
4924
6019
  ContentAssociationContents,
4925
6020
  ContentAssociationType,
4926
6021
  ContentStatus,
4927
6022
  PreconditionFailedException,
6023
+ ContentDisposition,
4928
6024
  KnowledgeBaseType,
4929
6025
  WebScopeType,
4930
6026
  ManagedSourceConfiguration,
@@ -4932,18 +6028,16 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4932
6028
  ParsingStrategy,
4933
6029
  SyncStatus,
4934
6030
  KnowledgeBaseStatus,
6031
+ MessageTemplateBodyContentProvider,
6032
+ MessageTemplateContentProvider,
6033
+ MessageTemplateAttributeType,
4935
6034
  QuickResponseDataProvider,
4936
6035
  QuickResponseContentProvider,
4937
6036
  QuickResponseStatus,
4938
6037
  ExternalSource,
4939
6038
  ImportJobType,
4940
6039
  ImportJobStatus,
4941
- QuickResponseFilterOperator,
4942
- Order,
4943
- QuickResponseQueryOperator,
4944
- Priority,
4945
- TooManyTagsException,
4946
- DataDetails,
6040
+ AgentAttributesFilterSensitiveLog,
4947
6041
  TextFullAIPromptEditTemplateConfigurationFilterSensitiveLog,
4948
6042
  AIPromptTemplateConfigurationFilterSensitiveLog,
4949
6043
  CreateAIPromptRequestFilterSensitiveLog,
@@ -4979,8 +6073,27 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4979
6073
  CreateKnowledgeBaseRequestFilterSensitiveLog,
4980
6074
  KnowledgeBaseDataFilterSensitiveLog,
4981
6075
  CreateKnowledgeBaseResponseFilterSensitiveLog,
4982
- QuickResponseDataProviderFilterSensitiveLog,
6076
+ MessageTemplateBodyContentProviderFilterSensitiveLog,
6077
+ EmailMessageTemplateContentBodyFilterSensitiveLog,
6078
+ EmailHeaderFilterSensitiveLog,
6079
+ EmailMessageTemplateContentFilterSensitiveLog,
6080
+ SMSMessageTemplateContentBodyFilterSensitiveLog,
6081
+ SMSMessageTemplateContentFilterSensitiveLog,
6082
+ MessageTemplateContentProviderFilterSensitiveLog,
6083
+ CustomerProfileAttributesFilterSensitiveLog,
6084
+ SystemEndpointAttributesFilterSensitiveLog,
6085
+ SystemAttributesFilterSensitiveLog,
6086
+ MessageTemplateAttributesFilterSensitiveLog,
4983
6087
  GroupingConfigurationFilterSensitiveLog,
6088
+ CreateMessageTemplateRequestFilterSensitiveLog,
6089
+ MessageTemplateDataFilterSensitiveLog,
6090
+ CreateMessageTemplateResponseFilterSensitiveLog,
6091
+ CreateMessageTemplateAttachmentRequestFilterSensitiveLog,
6092
+ MessageTemplateAttachmentFilterSensitiveLog,
6093
+ CreateMessageTemplateAttachmentResponseFilterSensitiveLog,
6094
+ ExtendedMessageTemplateDataFilterSensitiveLog,
6095
+ CreateMessageTemplateVersionResponseFilterSensitiveLog,
6096
+ QuickResponseDataProviderFilterSensitiveLog,
4984
6097
  CreateQuickResponseRequestFilterSensitiveLog,
4985
6098
  QuickResponseContentProviderFilterSensitiveLog,
4986
6099
  QuickResponseContentsFilterSensitiveLog,
@@ -4989,13 +6102,30 @@ var paginateSearchSessions = (0, import_core.createPaginator)(QConnectClient, Se
4989
6102
  ImportJobDataFilterSensitiveLog,
4990
6103
  GetImportJobResponseFilterSensitiveLog,
4991
6104
  GetKnowledgeBaseResponseFilterSensitiveLog,
6105
+ GetMessageTemplateResponseFilterSensitiveLog,
4992
6106
  GetQuickResponseResponseFilterSensitiveLog,
4993
6107
  KnowledgeBaseSummaryFilterSensitiveLog,
4994
6108
  ListKnowledgeBasesResponseFilterSensitiveLog,
6109
+ RenderMessageTemplateRequestFilterSensitiveLog,
6110
+ RenderMessageTemplateResponseFilterSensitiveLog,
6111
+ UpdateMessageTemplateRequestFilterSensitiveLog,
6112
+ UpdateMessageTemplateResponseFilterSensitiveLog,
6113
+ UpdateMessageTemplateMetadataRequestFilterSensitiveLog,
6114
+ UpdateMessageTemplateMetadataResponseFilterSensitiveLog,
4995
6115
  QuickResponseSummaryFilterSensitiveLog,
4996
6116
  ListQuickResponsesResponseFilterSensitiveLog,
4997
6117
  UpdateQuickResponseRequestFilterSensitiveLog,
4998
6118
  UpdateQuickResponseResponseFilterSensitiveLog,
6119
+ MessageTemplateFilterOperator,
6120
+ Order,
6121
+ MessageTemplateQueryOperator,
6122
+ Priority,
6123
+ QuickResponseFilterOperator,
6124
+ QuickResponseQueryOperator,
6125
+ TooManyTagsException,
6126
+ DataDetails,
6127
+ MessageTemplateSearchResultDataFilterSensitiveLog,
6128
+ SearchMessageTemplatesResponseFilterSensitiveLog,
4999
6129
  SearchQuickResponsesRequestFilterSensitiveLog,
5000
6130
  QuickResponseSearchResultDataFilterSensitiveLog,
5001
6131
  SearchQuickResponsesResponseFilterSensitiveLog,