@aws-sdk/client-qbusiness 3.670.0 → 3.674.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1213,6 +1213,7 @@ var se_CreateWebExperienceCommand = /* @__PURE__ */ __name(async (input, context
1213
1213
  (0, import_smithy_client.take)(input, {
1214
1214
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1215
1215
  identityProviderConfiguration: (_) => (0, import_smithy_client._json)(_),
1216
+ origins: (_) => (0, import_smithy_client._json)(_),
1216
1217
  roleArn: [],
1217
1218
  samplePromptsControlMode: [],
1218
1219
  subtitle: [],
@@ -1846,6 +1847,7 @@ var se_UpdateWebExperienceCommand = /* @__PURE__ */ __name(async (input, context
1846
1847
  (0, import_smithy_client.take)(input, {
1847
1848
  authenticationConfiguration: (_) => (0, import_smithy_client._json)(_),
1848
1849
  identityProviderConfiguration: (_) => (0, import_smithy_client._json)(_),
1850
+ origins: (_) => (0, import_smithy_client._json)(_),
1849
1851
  roleArn: [],
1850
1852
  samplePromptsControlMode: [],
1851
1853
  subtitle: [],
@@ -2313,6 +2315,7 @@ var de_GetWebExperienceCommand = /* @__PURE__ */ __name(async (output, context)
2313
2315
  defaultEndpoint: import_smithy_client.expectString,
2314
2316
  error: import_smithy_client._json,
2315
2317
  identityProviderConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
2318
+ origins: import_smithy_client._json,
2316
2319
  roleArn: import_smithy_client.expectString,
2317
2320
  samplePromptsControlMode: import_smithy_client.expectString,
2318
2321
  status: import_smithy_client.expectString,
@@ -219,6 +219,7 @@ export const se_CreateWebExperienceCommand = async (input, context) => {
219
219
  body = JSON.stringify(take(input, {
220
220
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
221
221
  identityProviderConfiguration: (_) => _json(_),
222
+ origins: (_) => _json(_),
222
223
  roleArn: [],
223
224
  samplePromptsControlMode: [],
224
225
  subtitle: [],
@@ -830,6 +831,7 @@ export const se_UpdateWebExperienceCommand = async (input, context) => {
830
831
  body = JSON.stringify(take(input, {
831
832
  authenticationConfiguration: (_) => _json(_),
832
833
  identityProviderConfiguration: (_) => _json(_),
834
+ origins: (_) => _json(_),
833
835
  roleArn: [],
834
836
  samplePromptsControlMode: [],
835
837
  subtitle: [],
@@ -1296,6 +1298,7 @@ export const de_GetWebExperienceCommand = async (output, context) => {
1296
1298
  defaultEndpoint: __expectString,
1297
1299
  error: _json,
1298
1300
  identityProviderConfiguration: (_) => _json(__expectUnion(_)),
1301
+ origins: _json,
1299
1302
  roleArn: __expectString,
1300
1303
  samplePromptsControlMode: __expectString,
1301
1304
  status: __expectString,
@@ -40,6 +40,9 @@ declare const CreateWebExperienceCommand_base: {
40
40
  * subtitle: "STRING_VALUE",
41
41
  * welcomeMessage: "STRING_VALUE",
42
42
  * samplePromptsControlMode: "ENABLED" || "DISABLED",
43
+ * origins: [ // WebExperienceOrigins
44
+ * "STRING_VALUE",
45
+ * ],
43
46
  * roleArn: "STRING_VALUE",
44
47
  * tags: [ // Tags
45
48
  * { // Tag
@@ -52,6 +52,9 @@ declare const GetWebExperienceCommand_base: {
52
52
  * // subtitle: "STRING_VALUE",
53
53
  * // welcomeMessage: "STRING_VALUE",
54
54
  * // samplePromptsControlMode: "ENABLED" || "DISABLED",
55
+ * // origins: [ // WebExperienceOrigins
56
+ * // "STRING_VALUE",
57
+ * // ],
55
58
  * // roleArn: "STRING_VALUE",
56
59
  * // identityProviderConfiguration: { // IdentityProviderConfiguration Union: only one key present
57
60
  * // samlConfiguration: { // SamlProviderConfiguration
@@ -59,6 +59,9 @@ declare const UpdateWebExperienceCommand_base: {
59
59
  * secretsRole: "STRING_VALUE", // required
60
60
  * },
61
61
  * },
62
+ * origins: [ // WebExperienceOrigins
63
+ * "STRING_VALUE",
64
+ * ],
62
65
  * };
63
66
  * const command = new UpdateWebExperienceCommand(input);
64
67
  * const response = await client.send(command);
@@ -645,12 +645,13 @@ export declare const QAppsControlMode: {
645
645
  */
646
646
  export type QAppsControlMode = (typeof QAppsControlMode)[keyof typeof QAppsControlMode];
647
647
  /**
648
- * <p>Configuration information about Amazon Q Apps. (preview feature)</p>
648
+ * <p>Configuration information about Amazon Q Apps.</p>
649
649
  * @public
650
650
  */
651
651
  export interface QAppsConfiguration {
652
652
  /**
653
- * <p>Status information about whether end users can create and use Amazon Q Apps in the web experience.</p>
653
+ * <p>Status information about whether end users can create and use Amazon Q Apps in the web
654
+ * experience.</p>
654
655
  * @public
655
656
  */
656
657
  qAppsControlMode: QAppsControlMode | undefined;
@@ -686,7 +687,8 @@ export interface CreateApplicationRequest {
686
687
  displayName: string | undefined;
687
688
  /**
688
689
  * <p> The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon
689
- * CloudWatch logs and metrics.</p>
690
+ * CloudWatch logs and metrics. If this property is not specified, Amazon Q Business will create a <a href="https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions">service linked role (SLR)</a> and use it as the
691
+ * application's role.</p>
690
692
  * @public
691
693
  */
692
694
  roleArn?: string;
@@ -3546,6 +3548,21 @@ export interface CreateWebExperienceRequest {
3546
3548
  * @public
3547
3549
  */
3548
3550
  samplePromptsControlMode?: WebExperienceSamplePromptsControlMode;
3551
+ /**
3552
+ * <p>Sets the website domain origins that
3553
+ * are allowed to embed the Amazon Q Business web experience.
3554
+ *
3555
+ * The <i>domain origin</i> refers to the
3556
+ * base URL for accessing a website including the protocol
3557
+ * (<code>http/https</code>), the domain name, and the port number (if specified).
3558
+ * </p>
3559
+ * <note>
3560
+ * <p>You must only submit a <i>base URL</i> and
3561
+ * not a full path. For example, <code>https://docs.aws.amazon.com</code>.</p>
3562
+ * </note>
3563
+ * @public
3564
+ */
3565
+ origins?: string[];
3549
3566
  /**
3550
3567
  * <p>The Amazon Resource Name (ARN) of the service role attached to your web
3551
3568
  * experience.</p>
@@ -3769,6 +3786,17 @@ export interface GetWebExperienceResponse {
3769
3786
  * @public
3770
3787
  */
3771
3788
  samplePromptsControlMode?: WebExperienceSamplePromptsControlMode;
3789
+ /**
3790
+ * <p>Gets the website domain origins that
3791
+ * are allowed to embed the Amazon Q Business web experience.
3792
+ *
3793
+ * The <i>domain origin</i> refers to the
3794
+ * base URL for accessing a website including the protocol
3795
+ * (<code>http/https</code>), the domain name, and the port number (if specified).
3796
+ * </p>
3797
+ * @public
3798
+ */
3799
+ origins?: string[];
3772
3800
  /**
3773
3801
  * <p> The Amazon Resource Name (ARN) of the service role attached to your web
3774
3802
  * experience.</p>
@@ -3923,6 +3951,28 @@ export interface UpdateWebExperienceRequest {
3923
3951
  * @public
3924
3952
  */
3925
3953
  identityProviderConfiguration?: IdentityProviderConfiguration;
3954
+ /**
3955
+ * <p>Updates the website domain origins that
3956
+ * are allowed to embed the Amazon Q Business web experience.
3957
+ *
3958
+ * The <i>domain origin</i> refers to the
3959
+ * <i>base URL</i> for accessing a website including the protocol
3960
+ * (<code>http/https</code>), the domain name, and the port number (if specified).</p>
3961
+ * <note>
3962
+ * <ul>
3963
+ * <li>
3964
+ * <p>Any values except <code>null</code> submitted as part of this
3965
+ * update will replace all previous values.</p>
3966
+ * </li>
3967
+ * <li>
3968
+ * <p>You must only submit a <i>base URL</i> and
3969
+ * not a full path. For example, <code>https://docs.aws.amazon.com</code>.</p>
3970
+ * </li>
3971
+ * </ul>
3972
+ * </note>
3973
+ * @public
3974
+ */
3975
+ origins?: string[];
3926
3976
  }
3927
3977
  /**
3928
3978
  * @public
@@ -5177,7 +5227,7 @@ export declare const ResponseScope: {
5177
5227
  */
5178
5228
  export type ResponseScope = (typeof ResponseScope)[keyof typeof ResponseScope];
5179
5229
  /**
5180
- * <p>Provides information about users and groups associated with a topic control
5230
+ * <p>Provides information about users and group names associated with a topic control
5181
5231
  * rule.</p>
5182
5232
  * @public
5183
5233
  */
@@ -5188,7 +5238,7 @@ export interface UsersAndGroups {
5188
5238
  */
5189
5239
  userIds?: string[];
5190
5240
  /**
5191
- * <p>The user groups associated with a topic control rule.</p>
5241
+ * <p>The user group names associated with a topic control rule.</p>
5192
5242
  * @public
5193
5243
  */
5194
5244
  userGroups?: string[];
@@ -6272,7 +6322,7 @@ export interface ChatSyncInput {
6272
6322
  */
6273
6323
  userId?: string;
6274
6324
  /**
6275
- * <p>The groups that a user associated with the chat input belongs to.</p>
6325
+ * <p>The group names that a user associated with the chat input belongs to.</p>
6276
6326
  * @public
6277
6327
  */
6278
6328
  userGroups?: string[];
@@ -6526,7 +6576,7 @@ export interface ChatInput {
6526
6576
  */
6527
6577
  userId?: string;
6528
6578
  /**
6529
- * <p>The groups that a user associated with the chat input belongs to.</p>
6579
+ * <p>The group names that a user associated with the chat input belongs to.</p>
6530
6580
  * @public
6531
6581
  */
6532
6582
  userGroups?: string[];
@@ -1057,6 +1057,7 @@ export interface CreateWebExperienceRequest {
1057
1057
  subtitle?: string;
1058
1058
  welcomeMessage?: string;
1059
1059
  samplePromptsControlMode?: WebExperienceSamplePromptsControlMode;
1060
+ origins?: string[];
1060
1061
  roleArn?: string;
1061
1062
  tags?: Tag[];
1062
1063
  clientToken?: string;
@@ -1123,6 +1124,7 @@ export interface GetWebExperienceResponse {
1123
1124
  subtitle?: string;
1124
1125
  welcomeMessage?: string;
1125
1126
  samplePromptsControlMode?: WebExperienceSamplePromptsControlMode;
1127
+ origins?: string[];
1126
1128
  roleArn?: string;
1127
1129
  identityProviderConfiguration?: IdentityProviderConfiguration;
1128
1130
  authenticationConfiguration?: WebExperienceAuthConfiguration;
@@ -1154,6 +1156,7 @@ export interface UpdateWebExperienceRequest {
1154
1156
  welcomeMessage?: string;
1155
1157
  samplePromptsControlMode?: WebExperienceSamplePromptsControlMode;
1156
1158
  identityProviderConfiguration?: IdentityProviderConfiguration;
1159
+ origins?: string[];
1157
1160
  }
1158
1161
  export interface UpdateWebExperienceResponse {}
1159
1162
  export declare const CreatorModeControl: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-qbusiness",
3
3
  "description": "AWS SDK for JavaScript Qbusiness Client for Node.js, Browser and React Native",
4
- "version": "3.670.0",
4
+ "version": "3.674.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-qbusiness",
@@ -63,13 +63,13 @@
63
63
  "@smithy/util-middleware": "^3.0.7",
64
64
  "@smithy/util-retry": "^3.0.7",
65
65
  "@smithy/util-utf8": "^3.0.0",
66
+ "@types/uuid": "^9.0.1",
66
67
  "tslib": "^2.6.2",
67
68
  "uuid": "^9.0.1"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@tsconfig/node16": "16.1.3",
71
72
  "@types/node": "^16.18.96",
72
- "@types/uuid": "^9.0.4",
73
73
  "concurrently": "7.0.0",
74
74
  "downlevel-dts": "0.10.1",
75
75
  "rimraf": "3.0.2",