@aws-sdk/client-qbusiness 3.738.0 → 3.741.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 (51) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +220 -8
  3. package/dist-es/QBusiness.js +8 -0
  4. package/dist-es/commands/CancelSubscriptionCommand.js +22 -0
  5. package/dist-es/commands/CreateSubscriptionCommand.js +22 -0
  6. package/dist-es/commands/ListSubscriptionsCommand.js +22 -0
  7. package/dist-es/commands/UpdateSubscriptionCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +10 -7
  10. package/dist-es/models/models_1.js +7 -0
  11. package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_restJson1.js +118 -0
  14. package/dist-types/QBusiness.d.ts +28 -0
  15. package/dist-types/QBusinessClient.d.ts +6 -2
  16. package/dist-types/commands/AssociatePermissionCommand.d.ts +3 -3
  17. package/dist-types/commands/CancelSubscriptionCommand.d.ts +100 -0
  18. package/dist-types/commands/CreateDataAccessorCommand.d.ts +4 -4
  19. package/dist-types/commands/CreateSubscriptionCommand.d.ts +113 -0
  20. package/dist-types/commands/DeleteDataAccessorCommand.d.ts +1 -1
  21. package/dist-types/commands/DisassociatePermissionCommand.d.ts +1 -1
  22. package/dist-types/commands/GetDataAccessorCommand.d.ts +1 -1
  23. package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/ListDataAccessorsCommand.d.ts +1 -1
  25. package/dist-types/commands/ListSubscriptionsCommand.d.ts +113 -0
  26. package/dist-types/commands/PutGroupCommand.d.ts +5 -1
  27. package/dist-types/commands/SearchRelevantContentCommand.d.ts +3 -4
  28. package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +1 -2
  29. package/dist-types/commands/UpdateSubscriptionCommand.d.ts +106 -0
  30. package/dist-types/commands/index.d.ts +4 -0
  31. package/dist-types/models/models_0.d.ts +234 -203
  32. package/dist-types/models/models_1.d.ts +241 -7
  33. package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  36. package/dist-types/ts3.4/QBusiness.d.ts +68 -0
  37. package/dist-types/ts3.4/QBusinessClient.d.ts +24 -0
  38. package/dist-types/ts3.4/commands/CancelSubscriptionCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/PutGroupCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/SearchRelevantContentCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +4 -2
  44. package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +67 -48
  47. package/dist-types/ts3.4/models/models_1.d.ts +63 -0
  48. package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
  49. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  50. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  51. package/package.json +2 -2
package/README.md CHANGED
@@ -264,6 +264,14 @@ BatchPutDocument
264
264
 
265
265
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/BatchPutDocumentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/BatchPutDocumentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/BatchPutDocumentCommandOutput/)
266
266
 
267
+ </details>
268
+ <details>
269
+ <summary>
270
+ CancelSubscription
271
+ </summary>
272
+
273
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/CancelSubscriptionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CancelSubscriptionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CancelSubscriptionCommandOutput/)
274
+
267
275
  </details>
268
276
  <details>
269
277
  <summary>
@@ -328,6 +336,14 @@ CreateRetriever
328
336
 
329
337
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/CreateRetrieverCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CreateRetrieverCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CreateRetrieverCommandOutput/)
330
338
 
339
+ </details>
340
+ <details>
341
+ <summary>
342
+ CreateSubscription
343
+ </summary>
344
+
345
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/CreateSubscriptionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CreateSubscriptionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CreateSubscriptionCommandOutput/)
346
+
331
347
  </details>
332
348
  <details>
333
349
  <summary>
@@ -656,6 +672,14 @@ ListRetrievers
656
672
 
657
673
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/ListRetrieversCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/ListRetrieversCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/ListRetrieversCommandOutput/)
658
674
 
675
+ </details>
676
+ <details>
677
+ <summary>
678
+ ListSubscriptions
679
+ </summary>
680
+
681
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/ListSubscriptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/ListSubscriptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/ListSubscriptionsCommandOutput/)
682
+
659
683
  </details>
660
684
  <details>
661
685
  <summary>
@@ -784,6 +808,14 @@ UpdateRetriever
784
808
 
785
809
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/UpdateRetrieverCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/UpdateRetrieverCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/UpdateRetrieverCommandOutput/)
786
810
 
811
+ </details>
812
+ <details>
813
+ <summary>
814
+ UpdateSubscription
815
+ </summary>
816
+
817
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/UpdateSubscriptionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/UpdateSubscriptionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/UpdateSubscriptionCommandOutput/)
818
+
787
819
  </details>
788
820
  <details>
789
821
  <summary>
package/dist-cjs/index.js CHANGED
@@ -36,6 +36,7 @@ __export(src_exports, {
36
36
  BatchDeleteDocumentCommand: () => BatchDeleteDocumentCommand,
37
37
  BatchPutDocumentCommand: () => BatchPutDocumentCommand,
38
38
  BrowserExtension: () => BrowserExtension,
39
+ CancelSubscriptionCommand: () => CancelSubscriptionCommand,
39
40
  ChatCommand: () => ChatCommand,
40
41
  ChatInputFilterSensitiveLog: () => ChatInputFilterSensitiveLog,
41
42
  ChatInputStream: () => ChatInputStream,
@@ -59,6 +60,7 @@ __export(src_exports, {
59
60
  CreatePluginCommand: () => CreatePluginCommand,
60
61
  CreatePluginRequestFilterSensitiveLog: () => CreatePluginRequestFilterSensitiveLog,
61
62
  CreateRetrieverCommand: () => CreateRetrieverCommand,
63
+ CreateSubscriptionCommand: () => CreateSubscriptionCommand,
62
64
  CreateUserCommand: () => CreateUserCommand,
63
65
  CreateWebExperienceCommand: () => CreateWebExperienceCommand,
64
66
  CreatorModeControl: () => CreatorModeControl,
@@ -127,6 +129,7 @@ __export(src_exports, {
127
129
  ListPluginTypeMetadataCommand: () => ListPluginTypeMetadataCommand,
128
130
  ListPluginsCommand: () => ListPluginsCommand,
129
131
  ListRetrieversCommand: () => ListRetrieversCommand,
132
+ ListSubscriptionsCommand: () => ListSubscriptionsCommand,
130
133
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
131
134
  ListWebExperiencesCommand: () => ListWebExperiencesCommand,
132
135
  MediaTooLargeException: () => MediaTooLargeException,
@@ -164,6 +167,7 @@ __export(src_exports, {
164
167
  Status: () => Status,
165
168
  StopDataSourceSyncJobCommand: () => StopDataSourceSyncJobCommand,
166
169
  StringAttributeValueBoostingLevel: () => StringAttributeValueBoostingLevel,
170
+ SubscriptionPrincipal: () => SubscriptionPrincipal,
167
171
  SubscriptionType: () => SubscriptionType,
168
172
  TagResourceCommand: () => TagResourceCommand,
169
173
  ThrottlingException: () => ThrottlingException,
@@ -177,6 +181,7 @@ __export(src_exports, {
177
181
  UpdatePluginCommand: () => UpdatePluginCommand,
178
182
  UpdatePluginRequestFilterSensitiveLog: () => UpdatePluginRequestFilterSensitiveLog,
179
183
  UpdateRetrieverCommand: () => UpdateRetrieverCommand,
184
+ UpdateSubscriptionCommand: () => UpdateSubscriptionCommand,
180
185
  UpdateUserCommand: () => UpdateUserCommand,
181
186
  UpdateWebExperienceCommand: () => UpdateWebExperienceCommand,
182
187
  ValidationException: () => ValidationException,
@@ -201,6 +206,7 @@ __export(src_exports, {
201
206
  paginateListPluginTypeMetadata: () => paginateListPluginTypeMetadata,
202
207
  paginateListPlugins: () => paginateListPlugins,
203
208
  paginateListRetrievers: () => paginateListRetrievers,
209
+ paginateListSubscriptions: () => paginateListSubscriptions,
204
210
  paginateListWebExperiences: () => paginateListWebExperiences,
205
211
  paginateSearchRelevantContent: () => paginateSearchRelevantContent
206
212
  });
@@ -950,6 +956,16 @@ var ContentSource;
950
956
  return visitor._(value.$unknown[0], value.$unknown[1]);
951
957
  }, "visit");
952
958
  })(ContentSource || (ContentSource = {}));
959
+ var SubscriptionPrincipal;
960
+ ((SubscriptionPrincipal3) => {
961
+ SubscriptionPrincipal3.visit = /* @__PURE__ */ __name((value, visitor) => {
962
+ if (value.user !== void 0)
963
+ return visitor.user(value.user);
964
+ if (value.group !== void 0)
965
+ return visitor.group(value.group);
966
+ return visitor._(value.$unknown[0], value.$unknown[1]);
967
+ }, "visit");
968
+ })(SubscriptionPrincipal || (SubscriptionPrincipal = {}));
953
969
  var DataSourceSyncJobStatus = {
954
970
  ABORTED: "ABORTED",
955
971
  FAILED: "FAILED",
@@ -1041,13 +1057,6 @@ var MessageUsefulness = {
1041
1057
  NOT_USEFUL: "NOT_USEFUL",
1042
1058
  USEFUL: "USEFUL"
1043
1059
  };
1044
- var ScoreConfidence = {
1045
- HIGH: "HIGH",
1046
- LOW: "LOW",
1047
- MEDIUM: "MEDIUM",
1048
- NOT_AVAILABLE: "NOT_AVAILABLE",
1049
- VERY_HIGH: "VERY_HIGH"
1050
- };
1051
1060
  var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1052
1061
  if (obj.payload !== void 0)
1053
1062
  return { payload: import_smithy_client.SENSITIVE_STRING };
@@ -1126,6 +1135,13 @@ var ChatOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1126
1135
 
1127
1136
  // src/models/models_1.ts
1128
1137
 
1138
+ var ScoreConfidence = {
1139
+ HIGH: "HIGH",
1140
+ LOW: "LOW",
1141
+ MEDIUM: "MEDIUM",
1142
+ NOT_AVAILABLE: "NOT_AVAILABLE",
1143
+ VERY_HIGH: "VERY_HIGH"
1144
+ };
1129
1145
  var ChatInputStream;
1130
1146
  ((ChatInputStream2) => {
1131
1147
  ChatInputStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1236,6 +1252,16 @@ var se_BatchPutDocumentCommand = /* @__PURE__ */ __name(async (input, context) =
1236
1252
  b.m("POST").h(headers).b(body);
1237
1253
  return b.build();
1238
1254
  }, "se_BatchPutDocumentCommand");
1255
+ var se_CancelSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
1256
+ const b = (0, import_core.requestBuilder)(input, context);
1257
+ const headers = {};
1258
+ b.bp("/applications/{applicationId}/subscriptions/{subscriptionId}");
1259
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
1260
+ b.p("subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
1261
+ let body;
1262
+ b.m("DELETE").h(headers).b(body);
1263
+ return b.build();
1264
+ }, "se_CancelSubscriptionCommand");
1239
1265
  var se_ChatCommand = /* @__PURE__ */ __name(async (input, context) => {
1240
1266
  const b = (0, import_core.requestBuilder)(input, context);
1241
1267
  const headers = {
@@ -1425,6 +1451,24 @@ var se_CreateRetrieverCommand = /* @__PURE__ */ __name(async (input, context) =>
1425
1451
  b.m("POST").h(headers).b(body);
1426
1452
  return b.build();
1427
1453
  }, "se_CreateRetrieverCommand");
1454
+ var se_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
1455
+ const b = (0, import_core.requestBuilder)(input, context);
1456
+ const headers = {
1457
+ "content-type": "application/json"
1458
+ };
1459
+ b.bp("/applications/{applicationId}/subscriptions");
1460
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
1461
+ let body;
1462
+ body = JSON.stringify(
1463
+ (0, import_smithy_client.take)(input, {
1464
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1465
+ principal: (_) => (0, import_smithy_client._json)(_),
1466
+ type: []
1467
+ })
1468
+ );
1469
+ b.m("POST").h(headers).b(body);
1470
+ return b.build();
1471
+ }, "se_CreateSubscriptionCommand");
1428
1472
  var se_CreateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1429
1473
  const b = (0, import_core.requestBuilder)(input, context);
1430
1474
  const headers = {
@@ -1936,6 +1980,19 @@ var se_ListRetrieversCommand = /* @__PURE__ */ __name(async (input, context) =>
1936
1980
  b.m("GET").h(headers).q(query).b(body);
1937
1981
  return b.build();
1938
1982
  }, "se_ListRetrieversCommand");
1983
+ var se_ListSubscriptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1984
+ const b = (0, import_core.requestBuilder)(input, context);
1985
+ const headers = {};
1986
+ b.bp("/applications/{applicationId}/subscriptions");
1987
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
1988
+ const query = (0, import_smithy_client.map)({
1989
+ [_nT]: [, input[_nT]],
1990
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
1991
+ });
1992
+ let body;
1993
+ b.m("GET").h(headers).q(query).b(body);
1994
+ return b.build();
1995
+ }, "se_ListSubscriptionsCommand");
1939
1996
  var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1940
1997
  const b = (0, import_core.requestBuilder)(input, context);
1941
1998
  const headers = {};
@@ -2218,6 +2275,23 @@ var se_UpdateRetrieverCommand = /* @__PURE__ */ __name(async (input, context) =>
2218
2275
  b.m("PUT").h(headers).b(body);
2219
2276
  return b.build();
2220
2277
  }, "se_UpdateRetrieverCommand");
2278
+ var se_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
2279
+ const b = (0, import_core.requestBuilder)(input, context);
2280
+ const headers = {
2281
+ "content-type": "application/json"
2282
+ };
2283
+ b.bp("/applications/{applicationId}/subscriptions/{subscriptionId}");
2284
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
2285
+ b.p("subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
2286
+ let body;
2287
+ body = JSON.stringify(
2288
+ (0, import_smithy_client.take)(input, {
2289
+ type: []
2290
+ })
2291
+ );
2292
+ b.m("PUT").h(headers).b(body);
2293
+ return b.build();
2294
+ }, "se_UpdateSubscriptionCommand");
2221
2295
  var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
2222
2296
  const b = (0, import_core.requestBuilder)(input, context);
2223
2297
  const headers = {
@@ -2304,6 +2378,22 @@ var de_BatchPutDocumentCommand = /* @__PURE__ */ __name(async (output, context)
2304
2378
  Object.assign(contents, doc);
2305
2379
  return contents;
2306
2380
  }, "de_BatchPutDocumentCommand");
2381
+ var de_CancelSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
2382
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2383
+ return de_CommandError(output, context);
2384
+ }
2385
+ const contents = (0, import_smithy_client.map)({
2386
+ $metadata: deserializeMetadata(output)
2387
+ });
2388
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2389
+ const doc = (0, import_smithy_client.take)(data, {
2390
+ currentSubscription: import_smithy_client._json,
2391
+ nextSubscription: import_smithy_client._json,
2392
+ subscriptionArn: import_smithy_client.expectString
2393
+ });
2394
+ Object.assign(contents, doc);
2395
+ return contents;
2396
+ }, "de_CancelSubscriptionCommand");
2307
2397
  var de_ChatCommand = /* @__PURE__ */ __name(async (output, context) => {
2308
2398
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2309
2399
  return de_CommandError(output, context);
@@ -2428,6 +2518,23 @@ var de_CreateRetrieverCommand = /* @__PURE__ */ __name(async (output, context) =
2428
2518
  Object.assign(contents, doc);
2429
2519
  return contents;
2430
2520
  }, "de_CreateRetrieverCommand");
2521
+ var de_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
2522
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2523
+ return de_CommandError(output, context);
2524
+ }
2525
+ const contents = (0, import_smithy_client.map)({
2526
+ $metadata: deserializeMetadata(output)
2527
+ });
2528
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2529
+ const doc = (0, import_smithy_client.take)(data, {
2530
+ currentSubscription: import_smithy_client._json,
2531
+ nextSubscription: import_smithy_client._json,
2532
+ subscriptionArn: import_smithy_client.expectString,
2533
+ subscriptionId: import_smithy_client.expectString
2534
+ });
2535
+ Object.assign(contents, doc);
2536
+ return contents;
2537
+ }, "de_CreateSubscriptionCommand");
2431
2538
  var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
2432
2539
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2433
2540
  return de_CommandError(output, context);
@@ -3063,6 +3170,21 @@ var de_ListRetrieversCommand = /* @__PURE__ */ __name(async (output, context) =>
3063
3170
  Object.assign(contents, doc);
3064
3171
  return contents;
3065
3172
  }, "de_ListRetrieversCommand");
3173
+ var de_ListSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3174
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3175
+ return de_CommandError(output, context);
3176
+ }
3177
+ const contents = (0, import_smithy_client.map)({
3178
+ $metadata: deserializeMetadata(output)
3179
+ });
3180
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3181
+ const doc = (0, import_smithy_client.take)(data, {
3182
+ nextToken: import_smithy_client.expectString,
3183
+ subscriptions: import_smithy_client._json
3184
+ });
3185
+ Object.assign(contents, doc);
3186
+ return contents;
3187
+ }, "de_ListSubscriptionsCommand");
3066
3188
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3067
3189
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3068
3190
  return de_CommandError(output, context);
@@ -3241,6 +3363,22 @@ var de_UpdateRetrieverCommand = /* @__PURE__ */ __name(async (output, context) =
3241
3363
  await (0, import_smithy_client.collectBody)(output.body, context);
3242
3364
  return contents;
3243
3365
  }, "de_UpdateRetrieverCommand");
3366
+ var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
3367
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3368
+ return de_CommandError(output, context);
3369
+ }
3370
+ const contents = (0, import_smithy_client.map)({
3371
+ $metadata: deserializeMetadata(output)
3372
+ });
3373
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3374
+ const doc = (0, import_smithy_client.take)(data, {
3375
+ currentSubscription: import_smithy_client._json,
3376
+ nextSubscription: import_smithy_client._json,
3377
+ subscriptionArn: import_smithy_client.expectString
3378
+ });
3379
+ Object.assign(contents, doc);
3380
+ return contents;
3381
+ }, "de_UpdateSubscriptionCommand");
3244
3382
  var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
3245
3383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3246
3384
  return de_CommandError(output, context);
@@ -4278,6 +4416,21 @@ var BatchPutDocumentCommand = class extends import_smithy_client.Command.classBu
4278
4416
  }
4279
4417
  };
4280
4418
 
4419
+ // src/commands/CancelSubscriptionCommand.ts
4420
+
4421
+
4422
+
4423
+ var CancelSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4424
+ return [
4425
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4426
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4427
+ ];
4428
+ }).s("ExpertQ", "CancelSubscription", {}).n("QBusinessClient", "CancelSubscriptionCommand").f(void 0, void 0).ser(se_CancelSubscriptionCommand).de(de_CancelSubscriptionCommand).build() {
4429
+ static {
4430
+ __name(this, "CancelSubscriptionCommand");
4431
+ }
4432
+ };
4433
+
4281
4434
  // src/commands/ChatCommand.ts
4282
4435
 
4283
4436
 
@@ -4408,6 +4561,21 @@ var CreateRetrieverCommand = class extends import_smithy_client.Command.classBui
4408
4561
  }
4409
4562
  };
4410
4563
 
4564
+ // src/commands/CreateSubscriptionCommand.ts
4565
+
4566
+
4567
+
4568
+ var CreateSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4569
+ return [
4570
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4571
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4572
+ ];
4573
+ }).s("ExpertQ", "CreateSubscription", {}).n("QBusinessClient", "CreateSubscriptionCommand").f(void 0, void 0).ser(se_CreateSubscriptionCommand).de(de_CreateSubscriptionCommand).build() {
4574
+ static {
4575
+ __name(this, "CreateSubscriptionCommand");
4576
+ }
4577
+ };
4578
+
4411
4579
  // src/commands/CreateUserCommand.ts
4412
4580
 
4413
4581
 
@@ -5023,6 +5191,21 @@ var ListRetrieversCommand = class extends import_smithy_client.Command.classBuil
5023
5191
  }
5024
5192
  };
5025
5193
 
5194
+ // src/commands/ListSubscriptionsCommand.ts
5195
+
5196
+
5197
+
5198
+ var ListSubscriptionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5199
+ return [
5200
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5201
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5202
+ ];
5203
+ }).s("ExpertQ", "ListSubscriptions", {}).n("QBusinessClient", "ListSubscriptionsCommand").f(void 0, void 0).ser(se_ListSubscriptionsCommand).de(de_ListSubscriptionsCommand).build() {
5204
+ static {
5205
+ __name(this, "ListSubscriptionsCommand");
5206
+ }
5207
+ };
5208
+
5026
5209
  // src/commands/ListTagsForResourceCommand.ts
5027
5210
 
5028
5211
 
@@ -5263,6 +5446,21 @@ var UpdateRetrieverCommand = class extends import_smithy_client.Command.classBui
5263
5446
  }
5264
5447
  };
5265
5448
 
5449
+ // src/commands/UpdateSubscriptionCommand.ts
5450
+
5451
+
5452
+
5453
+ var UpdateSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5454
+ return [
5455
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5456
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5457
+ ];
5458
+ }).s("ExpertQ", "UpdateSubscription", {}).n("QBusinessClient", "UpdateSubscriptionCommand").f(void 0, void 0).ser(se_UpdateSubscriptionCommand).de(de_UpdateSubscriptionCommand).build() {
5459
+ static {
5460
+ __name(this, "UpdateSubscriptionCommand");
5461
+ }
5462
+ };
5463
+
5266
5464
  // src/commands/UpdateUserCommand.ts
5267
5465
 
5268
5466
 
@@ -5298,6 +5496,7 @@ var commands = {
5298
5496
  AssociatePermissionCommand,
5299
5497
  BatchDeleteDocumentCommand,
5300
5498
  BatchPutDocumentCommand,
5499
+ CancelSubscriptionCommand,
5301
5500
  ChatCommand,
5302
5501
  ChatSyncCommand,
5303
5502
  CreateApplicationCommand,
@@ -5306,6 +5505,7 @@ var commands = {
5306
5505
  CreateIndexCommand,
5307
5506
  CreatePluginCommand,
5308
5507
  CreateRetrieverCommand,
5508
+ CreateSubscriptionCommand,
5309
5509
  CreateUserCommand,
5310
5510
  CreateWebExperienceCommand,
5311
5511
  DeleteApplicationCommand,
@@ -5347,6 +5547,7 @@ var commands = {
5347
5547
  ListPluginTypeActionsCommand,
5348
5548
  ListPluginTypeMetadataCommand,
5349
5549
  ListRetrieversCommand,
5550
+ ListSubscriptionsCommand,
5350
5551
  ListTagsForResourceCommand,
5351
5552
  ListWebExperiencesCommand,
5352
5553
  PutFeedbackCommand,
@@ -5363,6 +5564,7 @@ var commands = {
5363
5564
  UpdateIndexCommand,
5364
5565
  UpdatePluginCommand,
5365
5566
  UpdateRetrieverCommand,
5567
+ UpdateSubscriptionCommand,
5366
5568
  UpdateUserCommand,
5367
5569
  UpdateWebExperienceCommand
5368
5570
  };
@@ -5437,6 +5639,10 @@ var paginateListPlugins = (0, import_core.createPaginator)(QBusinessClient, List
5437
5639
 
5438
5640
  var paginateListRetrievers = (0, import_core.createPaginator)(QBusinessClient, ListRetrieversCommand, "nextToken", "nextToken", "maxResults");
5439
5641
 
5642
+ // src/pagination/ListSubscriptionsPaginator.ts
5643
+
5644
+ var paginateListSubscriptions = (0, import_core.createPaginator)(QBusinessClient, ListSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
5645
+
5440
5646
  // src/pagination/ListWebExperiencesPaginator.ts
5441
5647
 
5442
5648
  var paginateListWebExperiences = (0, import_core.createPaginator)(QBusinessClient, ListWebExperiencesCommand, "nextToken", "nextToken", "maxResults");
@@ -5455,6 +5661,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5455
5661
  AssociatePermissionCommand,
5456
5662
  BatchDeleteDocumentCommand,
5457
5663
  BatchPutDocumentCommand,
5664
+ CancelSubscriptionCommand,
5458
5665
  ChatCommand,
5459
5666
  ChatSyncCommand,
5460
5667
  CreateApplicationCommand,
@@ -5463,6 +5670,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5463
5670
  CreateIndexCommand,
5464
5671
  CreatePluginCommand,
5465
5672
  CreateRetrieverCommand,
5673
+ CreateSubscriptionCommand,
5466
5674
  CreateUserCommand,
5467
5675
  CreateWebExperienceCommand,
5468
5676
  DeleteApplicationCommand,
@@ -5504,6 +5712,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5504
5712
  ListPluginTypeMetadataCommand,
5505
5713
  ListPluginsCommand,
5506
5714
  ListRetrieversCommand,
5715
+ ListSubscriptionsCommand,
5507
5716
  ListTagsForResourceCommand,
5508
5717
  ListWebExperiencesCommand,
5509
5718
  PutFeedbackCommand,
@@ -5520,6 +5729,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5520
5729
  UpdateIndexCommand,
5521
5730
  UpdatePluginCommand,
5522
5731
  UpdateRetrieverCommand,
5732
+ UpdateSubscriptionCommand,
5523
5733
  UpdateUserCommand,
5524
5734
  UpdateWebExperienceCommand,
5525
5735
  paginateGetChatControlsConfiguration,
@@ -5538,6 +5748,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5538
5748
  paginateListPluginTypeMetadata,
5539
5749
  paginateListPlugins,
5540
5750
  paginateListRetrievers,
5751
+ paginateListSubscriptions,
5541
5752
  paginateListWebExperiences,
5542
5753
  paginateSearchRelevantContent,
5543
5754
  MemberRelation,
@@ -5600,6 +5811,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5600
5811
  ExternalResourceException,
5601
5812
  LicenseNotFoundException,
5602
5813
  ContentSource,
5814
+ SubscriptionPrincipal,
5603
5815
  DataSourceSyncJobStatus,
5604
5816
  DocumentStatus,
5605
5817
  ResponseScope,
@@ -5611,7 +5823,6 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5611
5823
  PluginTypeCategory,
5612
5824
  MessageUsefulnessReason,
5613
5825
  MessageUsefulness,
5614
- ScoreConfidence,
5615
5826
  APISchemaFilterSensitiveLog,
5616
5827
  EncryptionConfigurationFilterSensitiveLog,
5617
5828
  CreateApplicationRequestFilterSensitiveLog,
@@ -5624,6 +5835,7 @@ var paginateSearchRelevantContent = (0, import_core.createPaginator)(QBusinessCl
5624
5835
  UpdatePluginRequestFilterSensitiveLog,
5625
5836
  ChatOutputStreamFilterSensitiveLog,
5626
5837
  ChatOutputFilterSensitiveLog,
5838
+ ScoreConfidence,
5627
5839
  ChatInputStream,
5628
5840
  ChatInputStreamFilterSensitiveLog,
5629
5841
  ChatInputFilterSensitiveLog,
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { AssociatePermissionCommand, } from "./commands/AssociatePermissionCommand";
3
3
  import { BatchDeleteDocumentCommand, } from "./commands/BatchDeleteDocumentCommand";
4
4
  import { BatchPutDocumentCommand, } from "./commands/BatchPutDocumentCommand";
5
+ import { CancelSubscriptionCommand, } from "./commands/CancelSubscriptionCommand";
5
6
  import { ChatCommand } from "./commands/ChatCommand";
6
7
  import { ChatSyncCommand } from "./commands/ChatSyncCommand";
7
8
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
@@ -10,6 +11,7 @@ import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
10
11
  import { CreateIndexCommand } from "./commands/CreateIndexCommand";
11
12
  import { CreatePluginCommand, } from "./commands/CreatePluginCommand";
12
13
  import { CreateRetrieverCommand, } from "./commands/CreateRetrieverCommand";
14
+ import { CreateSubscriptionCommand, } from "./commands/CreateSubscriptionCommand";
13
15
  import { CreateUserCommand } from "./commands/CreateUserCommand";
14
16
  import { CreateWebExperienceCommand, } from "./commands/CreateWebExperienceCommand";
15
17
  import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
@@ -51,6 +53,7 @@ import { ListPluginsCommand } from "./commands/ListPluginsCommand";
51
53
  import { ListPluginTypeActionsCommand, } from "./commands/ListPluginTypeActionsCommand";
52
54
  import { ListPluginTypeMetadataCommand, } from "./commands/ListPluginTypeMetadataCommand";
53
55
  import { ListRetrieversCommand, } from "./commands/ListRetrieversCommand";
56
+ import { ListSubscriptionsCommand, } from "./commands/ListSubscriptionsCommand";
54
57
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
55
58
  import { ListWebExperiencesCommand, } from "./commands/ListWebExperiencesCommand";
56
59
  import { PutFeedbackCommand } from "./commands/PutFeedbackCommand";
@@ -67,6 +70,7 @@ import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
67
70
  import { UpdateIndexCommand } from "./commands/UpdateIndexCommand";
68
71
  import { UpdatePluginCommand, } from "./commands/UpdatePluginCommand";
69
72
  import { UpdateRetrieverCommand, } from "./commands/UpdateRetrieverCommand";
73
+ import { UpdateSubscriptionCommand, } from "./commands/UpdateSubscriptionCommand";
70
74
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
71
75
  import { UpdateWebExperienceCommand, } from "./commands/UpdateWebExperienceCommand";
72
76
  import { QBusinessClient } from "./QBusinessClient";
@@ -74,6 +78,7 @@ const commands = {
74
78
  AssociatePermissionCommand,
75
79
  BatchDeleteDocumentCommand,
76
80
  BatchPutDocumentCommand,
81
+ CancelSubscriptionCommand,
77
82
  ChatCommand,
78
83
  ChatSyncCommand,
79
84
  CreateApplicationCommand,
@@ -82,6 +87,7 @@ const commands = {
82
87
  CreateIndexCommand,
83
88
  CreatePluginCommand,
84
89
  CreateRetrieverCommand,
90
+ CreateSubscriptionCommand,
85
91
  CreateUserCommand,
86
92
  CreateWebExperienceCommand,
87
93
  DeleteApplicationCommand,
@@ -123,6 +129,7 @@ const commands = {
123
129
  ListPluginTypeActionsCommand,
124
130
  ListPluginTypeMetadataCommand,
125
131
  ListRetrieversCommand,
132
+ ListSubscriptionsCommand,
126
133
  ListTagsForResourceCommand,
127
134
  ListWebExperiencesCommand,
128
135
  PutFeedbackCommand,
@@ -139,6 +146,7 @@ const commands = {
139
146
  UpdateIndexCommand,
140
147
  UpdatePluginCommand,
141
148
  UpdateRetrieverCommand,
149
+ UpdateSubscriptionCommand,
142
150
  UpdateUserCommand,
143
151
  UpdateWebExperienceCommand,
144
152
  };
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CancelSubscriptionCommand, se_CancelSubscriptionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CancelSubscriptionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "CancelSubscription", {})
17
+ .n("QBusinessClient", "CancelSubscriptionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CancelSubscriptionCommand)
20
+ .de(de_CancelSubscriptionCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateSubscriptionCommand, se_CreateSubscriptionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateSubscriptionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "CreateSubscription", {})
17
+ .n("QBusinessClient", "CreateSubscriptionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateSubscriptionCommand)
20
+ .de(de_CreateSubscriptionCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListSubscriptionsCommand, se_ListSubscriptionsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListSubscriptionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "ListSubscriptions", {})
17
+ .n("QBusinessClient", "ListSubscriptionsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListSubscriptionsCommand)
20
+ .de(de_ListSubscriptionsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateSubscriptionCommand, se_UpdateSubscriptionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateSubscriptionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "UpdateSubscription", {})
17
+ .n("QBusinessClient", "UpdateSubscriptionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateSubscriptionCommand)
20
+ .de(de_UpdateSubscriptionCommand)
21
+ .build() {
22
+ }