@aws-sdk/client-quicksight 3.614.0 → 3.616.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 (94) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +783 -401
  3. package/dist-es/QuickSight.js +6 -0
  4. package/dist-es/QuickSightClient.js +5 -5
  5. package/dist-es/commands/BatchCreateTopicReviewedAnswerCommand.js +25 -0
  6. package/dist-es/commands/BatchDeleteTopicReviewedAnswerCommand.js +24 -0
  7. package/dist-es/commands/CreateTemplateCommand.js +1 -1
  8. package/dist-es/commands/GenerateEmbedUrlForAnonymousUserCommand.js +1 -1
  9. package/dist-es/commands/GenerateEmbedUrlForRegisteredUserCommand.js +1 -1
  10. package/dist-es/commands/GetDashboardEmbedUrlCommand.js +1 -1
  11. package/dist-es/commands/GetSessionEmbedUrlCommand.js +1 -1
  12. package/dist-es/commands/ListTopicReviewedAnswersCommand.js +25 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +43 -16
  15. package/dist-es/models/models_1.js +5 -7
  16. package/dist-es/models/models_2.js +138 -101
  17. package/dist-es/models/models_3.js +70 -136
  18. package/dist-es/models/models_4.js +131 -2
  19. package/dist-es/protocols/Aws_restJson1.js +174 -4
  20. package/dist-types/QuickSight.d.ts +21 -0
  21. package/dist-types/QuickSightClient.d.ts +7 -4
  22. package/dist-types/commands/BatchCreateTopicReviewedAnswerCommand.d.ts +567 -0
  23. package/dist-types/commands/BatchDeleteTopicReviewedAnswerCommand.d.ts +99 -0
  24. package/dist-types/commands/CreateAnalysisCommand.d.ts +10 -0
  25. package/dist-types/commands/CreateDashboardCommand.d.ts +10 -0
  26. package/dist-types/commands/CreateFolderCommand.d.ts +2 -1
  27. package/dist-types/commands/CreateFolderMembershipCommand.d.ts +1 -1
  28. package/dist-types/commands/CreateGroupCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateGroupMembershipCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateIAMPolicyAssignmentCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateIngestionCommand.d.ts +1 -1
  32. package/dist-types/commands/CreateNamespaceCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateRefreshScheduleCommand.d.ts +1 -1
  34. package/dist-types/commands/CreateRoleMembershipCommand.d.ts +1 -1
  35. package/dist-types/commands/CreateTemplateAliasCommand.d.ts +1 -1
  36. package/dist-types/commands/CreateTemplateCommand.d.ts +11 -1
  37. package/dist-types/commands/DescribeAnalysisDefinitionCommand.d.ts +10 -0
  38. package/dist-types/commands/DescribeDashboardDefinitionCommand.d.ts +10 -0
  39. package/dist-types/commands/DescribeTemplateDefinitionCommand.d.ts +10 -0
  40. package/dist-types/commands/GenerateEmbedUrlForAnonymousUserCommand.d.ts +1 -1
  41. package/dist-types/commands/GenerateEmbedUrlForRegisteredUserCommand.d.ts +1 -1
  42. package/dist-types/commands/GetDashboardEmbedUrlCommand.d.ts +1 -1
  43. package/dist-types/commands/GetSessionEmbedUrlCommand.d.ts +1 -1
  44. package/dist-types/commands/ListAnalysesCommand.d.ts +1 -1
  45. package/dist-types/commands/ListAssetBundleExportJobsCommand.d.ts +1 -1
  46. package/dist-types/commands/ListAssetBundleImportJobsCommand.d.ts +1 -2
  47. package/dist-types/commands/ListTopicReviewedAnswersCommand.d.ts +556 -0
  48. package/dist-types/commands/UpdateAnalysisCommand.d.ts +10 -0
  49. package/dist-types/commands/UpdateDashboardCommand.d.ts +10 -0
  50. package/dist-types/commands/UpdateTemplateCommand.d.ts +10 -0
  51. package/dist-types/commands/index.d.ts +3 -0
  52. package/dist-types/models/models_0.d.ts +119 -115
  53. package/dist-types/models/models_1.d.ts +97 -68
  54. package/dist-types/models/models_2.d.ts +2333 -2490
  55. package/dist-types/models/models_3.d.ts +4173 -4215
  56. package/dist-types/models/models_4.d.ts +1183 -2
  57. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  58. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  59. package/dist-types/runtimeConfig.d.ts +1 -1
  60. package/dist-types/runtimeConfig.native.d.ts +1 -1
  61. package/dist-types/ts3.4/QuickSight.d.ts +51 -0
  62. package/dist-types/ts3.4/QuickSightClient.d.ts +20 -2
  63. package/dist-types/ts3.4/commands/BatchCreateTopicReviewedAnswerCommand.d.ts +38 -0
  64. package/dist-types/ts3.4/commands/BatchDeleteTopicReviewedAnswerCommand.d.ts +40 -0
  65. package/dist-types/ts3.4/commands/CreateFolderCommand.d.ts +2 -1
  66. package/dist-types/ts3.4/commands/CreateFolderMembershipCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/CreateGroupMembershipCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/CreateIAMPolicyAssignmentCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/CreateIngestionCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/CreateNamespaceCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/CreateRefreshScheduleCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/CreateRoleMembershipCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/CreateTemplateAliasCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/GenerateEmbedUrlForAnonymousUserCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/GenerateEmbedUrlForRegisteredUserCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/GetDashboardEmbedUrlCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/GetSessionEmbedUrlCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/ListAnalysesCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/ListAssetBundleExportJobsCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/ListAssetBundleImportJobsCommand.d.ts +4 -2
  83. package/dist-types/ts3.4/commands/ListTopicReviewedAnswersCommand.d.ts +40 -0
  84. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +60 -38
  86. package/dist-types/ts3.4/models/models_1.d.ts +26 -25
  87. package/dist-types/ts3.4/models/models_2.d.ts +339 -316
  88. package/dist-types/ts3.4/models/models_3.d.ts +286 -313
  89. package/dist-types/ts3.4/models/models_4.d.ts +317 -13
  90. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  91. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  92. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  93. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  94. package/package.json +17 -17
@@ -1,6 +1,61 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { CalculatedFieldFilterSensitiveLog, ColumnConfigurationFilterSensitiveLog, ParameterDeclarationFilterSensitiveLog, } from "./models_0";
2
3
  import { _ParametersFilterSensitiveLog, AssetBundleImportSourceDescriptionFilterSensitiveLog, LogicalTableFilterSensitiveLog, RowLevelPermissionTagConfigurationFilterSensitiveLog, } from "./models_2";
3
4
  import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException";
5
+ export const MemberType = {
6
+ ANALYSIS: "ANALYSIS",
7
+ DASHBOARD: "DASHBOARD",
8
+ DATASET: "DATASET",
9
+ DATASOURCE: "DATASOURCE",
10
+ TOPIC: "TOPIC",
11
+ };
12
+ export const IngestionType = {
13
+ FULL_REFRESH: "FULL_REFRESH",
14
+ INCREMENTAL_REFRESH: "INCREMENTAL_REFRESH",
15
+ };
16
+ export const IngestionStatus = {
17
+ CANCELLED: "CANCELLED",
18
+ COMPLETED: "COMPLETED",
19
+ FAILED: "FAILED",
20
+ INITIALIZED: "INITIALIZED",
21
+ QUEUED: "QUEUED",
22
+ RUNNING: "RUNNING",
23
+ };
24
+ export const IdentityStore = {
25
+ QUICKSIGHT: "QUICKSIGHT",
26
+ };
27
+ export const NamespaceStatus = {
28
+ CREATED: "CREATED",
29
+ CREATING: "CREATING",
30
+ DELETING: "DELETING",
31
+ NON_RETRYABLE_FAILURE: "NON_RETRYABLE_FAILURE",
32
+ RETRYABLE_FAILURE: "RETRYABLE_FAILURE",
33
+ };
34
+ export const RefreshInterval = {
35
+ DAILY: "DAILY",
36
+ HOURLY: "HOURLY",
37
+ MINUTE15: "MINUTE15",
38
+ MINUTE30: "MINUTE30",
39
+ MONTHLY: "MONTHLY",
40
+ WEEKLY: "WEEKLY",
41
+ };
42
+ export const DayOfWeek = {
43
+ FRIDAY: "FRIDAY",
44
+ MONDAY: "MONDAY",
45
+ SATURDAY: "SATURDAY",
46
+ SUNDAY: "SUNDAY",
47
+ THURSDAY: "THURSDAY",
48
+ TUESDAY: "TUESDAY",
49
+ WEDNESDAY: "WEDNESDAY",
50
+ };
51
+ export const Role = {
52
+ ADMIN: "ADMIN",
53
+ ADMIN_PRO: "ADMIN_PRO",
54
+ AUTHOR: "AUTHOR",
55
+ AUTHOR_PRO: "AUTHOR_PRO",
56
+ READER: "READER",
57
+ READER_PRO: "READER_PRO",
58
+ };
4
59
  export const DefaultAggregation = {
5
60
  AVERAGE: "AVERAGE",
6
61
  COUNT: "COUNT",
@@ -14,33 +69,6 @@ export const DefaultAggregation = {
14
69
  VAR: "VAR",
15
70
  VARP: "VARP",
16
71
  };
17
- export const DisplayFormat = {
18
- AUTO: "AUTO",
19
- CURRENCY: "CURRENCY",
20
- DATE: "DATE",
21
- NUMBER: "NUMBER",
22
- PERCENT: "PERCENT",
23
- STRING: "STRING",
24
- };
25
- export const TopicNumericSeparatorSymbol = {
26
- COMMA: "COMMA",
27
- DOT: "DOT",
28
- };
29
- export const TopicTimeGranularity = {
30
- DAY: "DAY",
31
- HOUR: "HOUR",
32
- MINUTE: "MINUTE",
33
- MONTH: "MONTH",
34
- QUARTER: "QUARTER",
35
- SECOND: "SECOND",
36
- WEEK: "WEEK",
37
- YEAR: "YEAR",
38
- };
39
- export const FilterClass = {
40
- CONDITIONAL_VALUE_FILTER: "CONDITIONAL_VALUE_FILTER",
41
- ENFORCED_VALUE_FILTER: "ENFORCED_VALUE_FILTER",
42
- NAMED_VALUE_FILTER: "NAMED_VALUE_FILTER",
43
- };
44
72
  export const NamedFilterType = {
45
73
  CATEGORY_FILTER: "CATEGORY_FILTER",
46
74
  DATE_RANGE_FILTER: "DATE_RANGE_FILTER",
@@ -317,91 +345,21 @@ export const EmbeddingIdentityType = {
317
345
  IAM: "IAM",
318
346
  QUICKSIGHT: "QUICKSIGHT",
319
347
  };
320
- export const FolderFilterAttribute = {
321
- DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER",
322
- DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER",
323
- DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER",
324
- FOLDER_NAME: "FOLDER_NAME",
325
- PARENT_FOLDER_ARN: "PARENT_FOLDER_ARN",
326
- QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER",
327
- QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER",
328
- };
329
- export class SessionLifetimeInMinutesInvalidException extends __BaseException {
330
- constructor(opts) {
331
- super({
332
- name: "SessionLifetimeInMinutesInvalidException",
333
- $fault: "client",
334
- ...opts,
335
- });
336
- this.name = "SessionLifetimeInMinutesInvalidException";
337
- this.$fault = "client";
338
- Object.setPrototypeOf(this, SessionLifetimeInMinutesInvalidException.prototype);
339
- this.Message = opts.Message;
340
- this.RequestId = opts.RequestId;
341
- }
342
- }
343
- export class UnsupportedPricingPlanException extends __BaseException {
344
- constructor(opts) {
345
- super({
346
- name: "UnsupportedPricingPlanException",
347
- $fault: "client",
348
- ...opts,
349
- });
350
- this.name = "UnsupportedPricingPlanException";
351
- this.$fault = "client";
352
- Object.setPrototypeOf(this, UnsupportedPricingPlanException.prototype);
353
- this.Message = opts.Message;
354
- this.RequestId = opts.RequestId;
355
- }
356
- }
357
- export class QuickSightUserNotFoundException extends __BaseException {
358
- constructor(opts) {
359
- super({
360
- name: "QuickSightUserNotFoundException",
361
- $fault: "client",
362
- ...opts,
363
- });
364
- this.name = "QuickSightUserNotFoundException";
365
- this.$fault = "client";
366
- Object.setPrototypeOf(this, QuickSightUserNotFoundException.prototype);
367
- this.Message = opts.Message;
368
- this.RequestId = opts.RequestId;
369
- }
370
- }
371
- export class IdentityTypeNotSupportedException extends __BaseException {
372
- constructor(opts) {
373
- super({
374
- name: "IdentityTypeNotSupportedException",
375
- $fault: "client",
376
- ...opts,
377
- });
378
- this.name = "IdentityTypeNotSupportedException";
379
- this.$fault = "client";
380
- Object.setPrototypeOf(this, IdentityTypeNotSupportedException.prototype);
381
- this.Message = opts.Message;
382
- this.RequestId = opts.RequestId;
383
- }
384
- }
385
- export const GroupFilterAttribute = {
386
- GROUP_NAME: "GROUP_NAME",
387
- };
388
- export const GroupFilterOperator = {
389
- StartsWith: "StartsWith",
390
- };
391
- export class InvalidRequestException extends __BaseException {
392
- constructor(opts) {
393
- super({
394
- name: "InvalidRequestException",
395
- $fault: "client",
396
- ...opts,
397
- });
398
- this.name = "InvalidRequestException";
399
- this.$fault = "client";
400
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
401
- this.Message = opts.Message;
402
- this.RequestId = opts.RequestId;
403
- }
404
- }
348
+ export const TemplateVersionDefinitionFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ ...(obj.CalculatedFields && {
351
+ CalculatedFields: obj.CalculatedFields.map((item) => CalculatedFieldFilterSensitiveLog(item)),
352
+ }),
353
+ ...(obj.ParameterDeclarations && {
354
+ ParameterDeclarations: obj.ParameterDeclarations.map((item) => ParameterDeclarationFilterSensitiveLog(item)),
355
+ }),
356
+ ...(obj.ColumnConfigurations && {
357
+ ColumnConfigurations: obj.ColumnConfigurations.map((item) => ColumnConfigurationFilterSensitiveLog(item)),
358
+ }),
359
+ });
360
+ export const CreateTemplateRequestFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ });
405
363
  export const SemanticTypeFilterSensitiveLog = (obj) => ({
406
364
  ...obj,
407
365
  ...(obj.TruthyCellValue && { TruthyCellValue: SENSITIVE_STRING }),
@@ -526,27 +484,3 @@ export const DescribeTemplateDefinitionResponseFilterSensitiveLog = (obj) => ({
526
484
  export const DescribeTopicResponseFilterSensitiveLog = (obj) => ({
527
485
  ...obj,
528
486
  });
529
- export const SessionTagFilterSensitiveLog = (obj) => ({
530
- ...obj,
531
- ...(obj.Value && { Value: SENSITIVE_STRING }),
532
- });
533
- export const GenerateEmbedUrlForAnonymousUserRequestFilterSensitiveLog = (obj) => ({
534
- ...obj,
535
- ...(obj.SessionTags && { SessionTags: obj.SessionTags.map((item) => SessionTagFilterSensitiveLog(item)) }),
536
- });
537
- export const GenerateEmbedUrlForAnonymousUserResponseFilterSensitiveLog = (obj) => ({
538
- ...obj,
539
- ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
540
- });
541
- export const GenerateEmbedUrlForRegisteredUserResponseFilterSensitiveLog = (obj) => ({
542
- ...obj,
543
- ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
544
- });
545
- export const GetDashboardEmbedUrlResponseFilterSensitiveLog = (obj) => ({
546
- ...obj,
547
- ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
548
- });
549
- export const GetSessionEmbedUrlResponseFilterSensitiveLog = (obj) => ({
550
- ...obj,
551
- ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
552
- });
@@ -1,10 +1,119 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { _ParametersFilterSensitiveLog, AssetBundleImportSourceFilterSensitiveLog, LogicalTableFilterSensitiveLog, RowLevelPermissionTagConfigurationFilterSensitiveLog, } from "./models_2";
3
- import { SessionTagFilterSensitiveLog, } from "./models_3";
2
+ import { _ParametersFilterSensitiveLog, AssetBundleImportSourceFilterSensitiveLog, LogicalTableFilterSensitiveLog, RowLevelPermissionTagConfigurationFilterSensitiveLog, TopicIRFilterSensitiveLog, } from "./models_2";
3
+ import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException";
4
+ export const FolderFilterAttribute = {
5
+ DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER",
6
+ DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER",
7
+ DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER",
8
+ FOLDER_NAME: "FOLDER_NAME",
9
+ PARENT_FOLDER_ARN: "PARENT_FOLDER_ARN",
10
+ QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER",
11
+ QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER",
12
+ };
13
+ export class SessionLifetimeInMinutesInvalidException extends __BaseException {
14
+ constructor(opts) {
15
+ super({
16
+ name: "SessionLifetimeInMinutesInvalidException",
17
+ $fault: "client",
18
+ ...opts,
19
+ });
20
+ this.name = "SessionLifetimeInMinutesInvalidException";
21
+ this.$fault = "client";
22
+ Object.setPrototypeOf(this, SessionLifetimeInMinutesInvalidException.prototype);
23
+ this.Message = opts.Message;
24
+ this.RequestId = opts.RequestId;
25
+ }
26
+ }
27
+ export class UnsupportedPricingPlanException extends __BaseException {
28
+ constructor(opts) {
29
+ super({
30
+ name: "UnsupportedPricingPlanException",
31
+ $fault: "client",
32
+ ...opts,
33
+ });
34
+ this.name = "UnsupportedPricingPlanException";
35
+ this.$fault = "client";
36
+ Object.setPrototypeOf(this, UnsupportedPricingPlanException.prototype);
37
+ this.Message = opts.Message;
38
+ this.RequestId = opts.RequestId;
39
+ }
40
+ }
41
+ export class QuickSightUserNotFoundException extends __BaseException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "QuickSightUserNotFoundException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ this.name = "QuickSightUserNotFoundException";
49
+ this.$fault = "client";
50
+ Object.setPrototypeOf(this, QuickSightUserNotFoundException.prototype);
51
+ this.Message = opts.Message;
52
+ this.RequestId = opts.RequestId;
53
+ }
54
+ }
55
+ export class IdentityTypeNotSupportedException extends __BaseException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "IdentityTypeNotSupportedException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "IdentityTypeNotSupportedException";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, IdentityTypeNotSupportedException.prototype);
65
+ this.Message = opts.Message;
66
+ this.RequestId = opts.RequestId;
67
+ }
68
+ }
69
+ export const GroupFilterAttribute = {
70
+ GROUP_NAME: "GROUP_NAME",
71
+ };
72
+ export const GroupFilterOperator = {
73
+ StartsWith: "StartsWith",
74
+ };
75
+ export class InvalidRequestException extends __BaseException {
76
+ constructor(opts) {
77
+ super({
78
+ name: "InvalidRequestException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ this.name = "InvalidRequestException";
83
+ this.$fault = "client";
84
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
85
+ this.Message = opts.Message;
86
+ this.RequestId = opts.RequestId;
87
+ }
88
+ }
4
89
  export const PurchaseMode = {
5
90
  AUTO_PURCHASE: "AUTO_PURCHASE",
6
91
  MANUAL: "MANUAL",
7
92
  };
93
+ export const SessionTagFilterSensitiveLog = (obj) => ({
94
+ ...obj,
95
+ ...(obj.Value && { Value: SENSITIVE_STRING }),
96
+ });
97
+ export const GenerateEmbedUrlForAnonymousUserRequestFilterSensitiveLog = (obj) => ({
98
+ ...obj,
99
+ ...(obj.SessionTags && { SessionTags: obj.SessionTags.map((item) => SessionTagFilterSensitiveLog(item)) }),
100
+ });
101
+ export const GenerateEmbedUrlForAnonymousUserResponseFilterSensitiveLog = (obj) => ({
102
+ ...obj,
103
+ ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
104
+ });
105
+ export const GenerateEmbedUrlForRegisteredUserResponseFilterSensitiveLog = (obj) => ({
106
+ ...obj,
107
+ ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
108
+ });
109
+ export const GetDashboardEmbedUrlResponseFilterSensitiveLog = (obj) => ({
110
+ ...obj,
111
+ ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
112
+ });
113
+ export const GetSessionEmbedUrlResponseFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ ...(obj.EmbedUrl && { EmbedUrl: SENSITIVE_STRING }),
116
+ });
8
117
  export const StartAssetBundleImportJobRequestFilterSensitiveLog = (obj) => ({
9
118
  ...obj,
10
119
  ...(obj.AssetBundleImportSource && {
@@ -54,3 +163,23 @@ export const UpdateTemplateRequestFilterSensitiveLog = (obj) => ({
54
163
  export const UpdateTopicRequestFilterSensitiveLog = (obj) => ({
55
164
  ...obj,
56
165
  });
166
+ export const TopicVisualFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ ...(obj.Ir && { Ir: TopicIRFilterSensitiveLog(obj.Ir) }),
169
+ });
170
+ export const CreateTopicReviewedAnswerFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ ...(obj.Mir && { Mir: TopicIRFilterSensitiveLog(obj.Mir) }),
173
+ ...(obj.PrimaryVisual && { PrimaryVisual: TopicVisualFilterSensitiveLog(obj.PrimaryVisual) }),
174
+ });
175
+ export const TopicReviewedAnswerFilterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ ...(obj.Mir && { Mir: TopicIRFilterSensitiveLog(obj.Mir) }),
178
+ ...(obj.PrimaryVisual && { PrimaryVisual: TopicVisualFilterSensitiveLog(obj.PrimaryVisual) }),
179
+ });
180
+ export const BatchCreateTopicReviewedAnswerRequestFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ export const ListTopicReviewedAnswersResponseFilterSensitiveLog = (obj) => ({
184
+ ...obj,
185
+ });
@@ -3,8 +3,39 @@ import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, } from "../models/models_0";
5
5
  import { ConcurrentUpdatingException, ConflictException, InternalFailureException, InvalidParameterValueException, LimitExceededException, PreconditionNotMetException, ResourceExistsException, ResourceNotFoundException, ResourceUnavailableException, ThrottlingException, TransformOperation, UnsupportedUserEditionException, } from "../models/models_2";
6
- import { DomainNotWhitelistedException, IdentityTypeNotSupportedException, InvalidNextTokenException, InvalidRequestException, QuickSightUserNotFoundException, SessionLifetimeInMinutesInvalidException, UnsupportedPricingPlanException, } from "../models/models_3";
6
+ import { DomainNotWhitelistedException, InvalidNextTokenException, } from "../models/models_3";
7
+ import { IdentityTypeNotSupportedException, InvalidRequestException, QuickSightUserNotFoundException, SessionLifetimeInMinutesInvalidException, UnsupportedPricingPlanException, } from "../models/models_4";
7
8
  import { QuickSightServiceException as __BaseException } from "../models/QuickSightServiceException";
9
+ export const se_BatchCreateTopicReviewedAnswerCommand = async (input, context) => {
10
+ const b = rb(input, context);
11
+ const headers = {
12
+ "content-type": "application/json",
13
+ };
14
+ b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/batch-create-reviewed-answers");
15
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
16
+ b.p("TopicId", () => input.TopicId, "{TopicId}", false);
17
+ let body;
18
+ body = JSON.stringify(take(input, {
19
+ Answers: (_) => se_CreateTopicReviewedAnswers(_, context),
20
+ }));
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
23
+ };
24
+ export const se_BatchDeleteTopicReviewedAnswerCommand = async (input, context) => {
25
+ const b = rb(input, context);
26
+ const headers = {
27
+ "content-type": "application/json",
28
+ };
29
+ b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/batch-delete-reviewed-answers");
30
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
31
+ b.p("TopicId", () => input.TopicId, "{TopicId}", false);
32
+ let body;
33
+ body = JSON.stringify(take(input, {
34
+ AnswerIds: (_) => _json(_),
35
+ }));
36
+ b.m("POST").h(headers).b(body);
37
+ return b.build();
38
+ };
8
39
  export const se_CancelIngestionCommand = async (input, context) => {
9
40
  const b = rb(input, context);
10
41
  const headers = {};
@@ -1609,6 +1640,16 @@ export const se_ListTopicRefreshSchedulesCommand = async (input, context) => {
1609
1640
  b.m("GET").h(headers).b(body);
1610
1641
  return b.build();
1611
1642
  };
1643
+ export const se_ListTopicReviewedAnswersCommand = async (input, context) => {
1644
+ const b = rb(input, context);
1645
+ const headers = {};
1646
+ b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/reviewed-answers");
1647
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
1648
+ b.p("TopicId", () => input.TopicId, "{TopicId}", false);
1649
+ let body;
1650
+ b.m("GET").h(headers).b(body);
1651
+ return b.build();
1652
+ };
1612
1653
  export const se_ListTopicsCommand = async (input, context) => {
1613
1654
  const b = rb(input, context);
1614
1655
  const headers = {};
@@ -2467,6 +2508,48 @@ export const se_UpdateVPCConnectionCommand = async (input, context) => {
2467
2508
  b.m("PUT").h(headers).b(body);
2468
2509
  return b.build();
2469
2510
  };
2511
+ export const de_BatchCreateTopicReviewedAnswerCommand = async (output, context) => {
2512
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2513
+ return de_CommandError(output, context);
2514
+ }
2515
+ const contents = map({
2516
+ $metadata: deserializeMetadata(output),
2517
+ });
2518
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2519
+ const doc = take(data, {
2520
+ InvalidAnswers: _json,
2521
+ RequestId: __expectString,
2522
+ SucceededAnswers: _json,
2523
+ TopicArn: __expectString,
2524
+ TopicId: __expectString,
2525
+ });
2526
+ Object.assign(contents, doc);
2527
+ map(contents, {
2528
+ Status: [, output.statusCode],
2529
+ });
2530
+ return contents;
2531
+ };
2532
+ export const de_BatchDeleteTopicReviewedAnswerCommand = async (output, context) => {
2533
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2534
+ return de_CommandError(output, context);
2535
+ }
2536
+ const contents = map({
2537
+ $metadata: deserializeMetadata(output),
2538
+ });
2539
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2540
+ const doc = take(data, {
2541
+ InvalidAnswers: _json,
2542
+ RequestId: __expectString,
2543
+ SucceededAnswers: _json,
2544
+ TopicArn: __expectString,
2545
+ TopicId: __expectString,
2546
+ });
2547
+ Object.assign(contents, doc);
2548
+ map(contents, {
2549
+ Status: [, output.statusCode],
2550
+ });
2551
+ return contents;
2552
+ };
2470
2553
  export const de_CancelIngestionCommand = async (output, context) => {
2471
2554
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2472
2555
  return de_CommandError(output, context);
@@ -4811,6 +4894,26 @@ export const de_ListTopicRefreshSchedulesCommand = async (output, context) => {
4811
4894
  });
4812
4895
  return contents;
4813
4896
  };
4897
+ export const de_ListTopicReviewedAnswersCommand = async (output, context) => {
4898
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4899
+ return de_CommandError(output, context);
4900
+ }
4901
+ const contents = map({
4902
+ $metadata: deserializeMetadata(output),
4903
+ });
4904
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4905
+ const doc = take(data, {
4906
+ Answers: (_) => de_TopicReviewedAnswers(_, context),
4907
+ RequestId: __expectString,
4908
+ TopicArn: __expectString,
4909
+ TopicId: __expectString,
4910
+ });
4911
+ Object.assign(contents, doc);
4912
+ map(contents, {
4913
+ Status: [, output.statusCode],
4914
+ });
4915
+ return contents;
4916
+ };
4814
4917
  export const de_ListTopicsCommand = async (output, context) => {
4815
4918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4816
4919
  return de_CommandError(output, context);
@@ -5811,9 +5914,6 @@ const de_CommandError = async (output, context) => {
5811
5914
  case "InvalidParameterValueException":
5812
5915
  case "com.amazonaws.quicksight#InvalidParameterValueException":
5813
5916
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
5814
- case "ResourceExistsException":
5815
- case "com.amazonaws.quicksight#ResourceExistsException":
5816
- throw await de_ResourceExistsExceptionRes(parsedOutput, context);
5817
5917
  case "ResourceNotFoundException":
5818
5918
  case "com.amazonaws.quicksight#ResourceNotFoundException":
5819
5919
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -5823,6 +5923,9 @@ const de_CommandError = async (output, context) => {
5823
5923
  case "ConflictException":
5824
5924
  case "com.amazonaws.quicksight#ConflictException":
5825
5925
  throw await de_ConflictExceptionRes(parsedOutput, context);
5926
+ case "ResourceExistsException":
5927
+ case "com.amazonaws.quicksight#ResourceExistsException":
5928
+ throw await de_ResourceExistsExceptionRes(parsedOutput, context);
5826
5929
  case "ResourceUnavailableException":
5827
5930
  case "com.amazonaws.quicksight#ResourceUnavailableException":
5828
5931
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
@@ -6586,6 +6689,23 @@ const se_ConditionalFormattingGradientColor = (input, context) => {
6586
6689
  Expression: [],
6587
6690
  });
6588
6691
  };
6692
+ const se_CreateTopicReviewedAnswer = (input, context) => {
6693
+ return take(input, {
6694
+ AnswerId: [],
6695
+ DatasetArn: [],
6696
+ Mir: _json,
6697
+ PrimaryVisual: (_) => se_TopicVisual(_, context),
6698
+ Question: [],
6699
+ Template: _json,
6700
+ });
6701
+ };
6702
+ const se_CreateTopicReviewedAnswers = (input, context) => {
6703
+ return input
6704
+ .filter((e) => e != null)
6705
+ .map((entry) => {
6706
+ return se_CreateTopicReviewedAnswer(entry, context);
6707
+ });
6708
+ };
6589
6709
  const se_CustomActionSetParametersOperation = (input, context) => {
6590
6710
  return take(input, {
6591
6711
  ParameterValueConfigurations: (_) => se_SetParameterValueConfigurationList(_, context),
@@ -8329,6 +8449,21 @@ const se_TopicRefreshSchedule = (input, context) => {
8329
8449
  TopicScheduleType: [],
8330
8450
  });
8331
8451
  };
8452
+ const se_TopicVisual = (input, context) => {
8453
+ return take(input, {
8454
+ Ir: _json,
8455
+ Role: [],
8456
+ SupportingVisuals: (_) => se_TopicVisuals(_, context),
8457
+ VisualId: [],
8458
+ });
8459
+ };
8460
+ const se_TopicVisuals = (input, context) => {
8461
+ return input
8462
+ .filter((e) => e != null)
8463
+ .map((entry) => {
8464
+ return se_TopicVisual(entry, context);
8465
+ });
8466
+ };
8332
8467
  const se_TotalAggregationComputation = (input, context) => {
8333
8468
  return take(input, {
8334
8469
  ComputationId: [],
@@ -11218,6 +11353,41 @@ const de_TopicRefreshScheduleSummary = (output, context) => {
11218
11353
  RefreshSchedule: (_) => de_TopicRefreshSchedule(_, context),
11219
11354
  });
11220
11355
  };
11356
+ const de_TopicReviewedAnswer = (output, context) => {
11357
+ return take(output, {
11358
+ AnswerId: __expectString,
11359
+ Arn: __expectString,
11360
+ DatasetArn: __expectString,
11361
+ Mir: _json,
11362
+ PrimaryVisual: (_) => de_TopicVisual(_, context),
11363
+ Question: __expectString,
11364
+ Template: _json,
11365
+ });
11366
+ };
11367
+ const de_TopicReviewedAnswers = (output, context) => {
11368
+ const retVal = (output || [])
11369
+ .filter((e) => e != null)
11370
+ .map((entry) => {
11371
+ return de_TopicReviewedAnswer(entry, context);
11372
+ });
11373
+ return retVal;
11374
+ };
11375
+ const de_TopicVisual = (output, context) => {
11376
+ return take(output, {
11377
+ Ir: _json,
11378
+ Role: __expectString,
11379
+ SupportingVisuals: (_) => de_TopicVisuals(_, context),
11380
+ VisualId: __expectString,
11381
+ });
11382
+ };
11383
+ const de_TopicVisuals = (output, context) => {
11384
+ const retVal = (output || [])
11385
+ .filter((e) => e != null)
11386
+ .map((entry) => {
11387
+ return de_TopicVisual(entry, context);
11388
+ });
11389
+ return retVal;
11390
+ };
11221
11391
  const de_TotalAggregationComputation = (output, context) => {
11222
11392
  return take(output, {
11223
11393
  ComputationId: __expectString,
@@ -1,4 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { BatchCreateTopicReviewedAnswerCommandInput, BatchCreateTopicReviewedAnswerCommandOutput } from "./commands/BatchCreateTopicReviewedAnswerCommand";
3
+ import { BatchDeleteTopicReviewedAnswerCommandInput, BatchDeleteTopicReviewedAnswerCommandOutput } from "./commands/BatchDeleteTopicReviewedAnswerCommand";
2
4
  import { CancelIngestionCommandInput, CancelIngestionCommandOutput } from "./commands/CancelIngestionCommand";
3
5
  import { CreateAccountCustomizationCommandInput, CreateAccountCustomizationCommandOutput } from "./commands/CreateAccountCustomizationCommand";
4
6
  import { CreateAccountSubscriptionCommandInput, CreateAccountSubscriptionCommandOutput } from "./commands/CreateAccountSubscriptionCommand";
@@ -121,6 +123,7 @@ import { ListThemeAliasesCommandInput, ListThemeAliasesCommandOutput } from "./c
121
123
  import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
122
124
  import { ListThemeVersionsCommandInput, ListThemeVersionsCommandOutput } from "./commands/ListThemeVersionsCommand";
123
125
  import { ListTopicRefreshSchedulesCommandInput, ListTopicRefreshSchedulesCommandOutput } from "./commands/ListTopicRefreshSchedulesCommand";
126
+ import { ListTopicReviewedAnswersCommandInput, ListTopicReviewedAnswersCommandOutput } from "./commands/ListTopicReviewedAnswersCommand";
124
127
  import { ListTopicsCommandInput, ListTopicsCommandOutput } from "./commands/ListTopicsCommand";
125
128
  import { ListUserGroupsCommandInput, ListUserGroupsCommandOutput } from "./commands/ListUserGroupsCommand";
126
129
  import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
@@ -175,6 +178,18 @@ import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/Upda
175
178
  import { UpdateVPCConnectionCommandInput, UpdateVPCConnectionCommandOutput } from "./commands/UpdateVPCConnectionCommand";
176
179
  import { QuickSightClient } from "./QuickSightClient";
177
180
  export interface QuickSight {
181
+ /**
182
+ * @see {@link BatchCreateTopicReviewedAnswerCommand}
183
+ */
184
+ batchCreateTopicReviewedAnswer(args: BatchCreateTopicReviewedAnswerCommandInput, options?: __HttpHandlerOptions): Promise<BatchCreateTopicReviewedAnswerCommandOutput>;
185
+ batchCreateTopicReviewedAnswer(args: BatchCreateTopicReviewedAnswerCommandInput, cb: (err: any, data?: BatchCreateTopicReviewedAnswerCommandOutput) => void): void;
186
+ batchCreateTopicReviewedAnswer(args: BatchCreateTopicReviewedAnswerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchCreateTopicReviewedAnswerCommandOutput) => void): void;
187
+ /**
188
+ * @see {@link BatchDeleteTopicReviewedAnswerCommand}
189
+ */
190
+ batchDeleteTopicReviewedAnswer(args: BatchDeleteTopicReviewedAnswerCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteTopicReviewedAnswerCommandOutput>;
191
+ batchDeleteTopicReviewedAnswer(args: BatchDeleteTopicReviewedAnswerCommandInput, cb: (err: any, data?: BatchDeleteTopicReviewedAnswerCommandOutput) => void): void;
192
+ batchDeleteTopicReviewedAnswer(args: BatchDeleteTopicReviewedAnswerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteTopicReviewedAnswerCommandOutput) => void): void;
178
193
  /**
179
194
  * @see {@link CancelIngestionCommand}
180
195
  */
@@ -907,6 +922,12 @@ export interface QuickSight {
907
922
  listTopicRefreshSchedules(args: ListTopicRefreshSchedulesCommandInput, options?: __HttpHandlerOptions): Promise<ListTopicRefreshSchedulesCommandOutput>;
908
923
  listTopicRefreshSchedules(args: ListTopicRefreshSchedulesCommandInput, cb: (err: any, data?: ListTopicRefreshSchedulesCommandOutput) => void): void;
909
924
  listTopicRefreshSchedules(args: ListTopicRefreshSchedulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTopicRefreshSchedulesCommandOutput) => void): void;
925
+ /**
926
+ * @see {@link ListTopicReviewedAnswersCommand}
927
+ */
928
+ listTopicReviewedAnswers(args: ListTopicReviewedAnswersCommandInput, options?: __HttpHandlerOptions): Promise<ListTopicReviewedAnswersCommandOutput>;
929
+ listTopicReviewedAnswers(args: ListTopicReviewedAnswersCommandInput, cb: (err: any, data?: ListTopicReviewedAnswersCommandOutput) => void): void;
930
+ listTopicReviewedAnswers(args: ListTopicReviewedAnswersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTopicReviewedAnswersCommandOutput) => void): void;
910
931
  /**
911
932
  * @see {@link ListTopicsCommand}
912
933
  */