@aws-sdk/client-qapps 3.699.0 → 3.702.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 (55) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/QApps.js +14 -0
  3. package/dist-cjs/commands/CreatePresignedUrlCommand.js +26 -0
  4. package/dist-cjs/commands/DescribeQAppPermissionsCommand.js +26 -0
  5. package/dist-cjs/commands/ExportQAppSessionDataCommand.js +26 -0
  6. package/dist-cjs/commands/GetQAppSessionMetadataCommand.js +26 -0
  7. package/dist-cjs/commands/ListQAppSessionDataCommand.js +26 -0
  8. package/dist-cjs/commands/UpdateQAppPermissionsCommand.js +26 -0
  9. package/dist-cjs/commands/UpdateQAppSessionMetadataCommand.js +26 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +24 -1
  12. package/dist-cjs/protocols/Aws_restJson1.js +352 -3
  13. package/dist-es/QApps.js +14 -0
  14. package/dist-es/commands/CreatePresignedUrlCommand.js +22 -0
  15. package/dist-es/commands/DescribeQAppPermissionsCommand.js +22 -0
  16. package/dist-es/commands/ExportQAppSessionDataCommand.js +22 -0
  17. package/dist-es/commands/GetQAppSessionMetadataCommand.js +22 -0
  18. package/dist-es/commands/ListQAppSessionDataCommand.js +22 -0
  19. package/dist-es/commands/UpdateQAppPermissionsCommand.js +22 -0
  20. package/dist-es/commands/UpdateQAppSessionMetadataCommand.js +22 -0
  21. package/dist-es/commands/index.js +7 -0
  22. package/dist-es/models/models_0.js +23 -0
  23. package/dist-es/protocols/Aws_restJson1.js +336 -1
  24. package/dist-types/QApps.d.ts +49 -0
  25. package/dist-types/QAppsClient.d.ts +9 -2
  26. package/dist-types/commands/CreatePresignedUrlCommand.d.ts +161 -0
  27. package/dist-types/commands/CreateQAppCommand.d.ts +13 -4
  28. package/dist-types/commands/DescribeQAppPermissionsCommand.d.ts +136 -0
  29. package/dist-types/commands/ExportQAppSessionDataCommand.d.ts +101 -0
  30. package/dist-types/commands/GetQAppCommand.d.ts +20 -4
  31. package/dist-types/commands/GetQAppSessionCommand.d.ts +13 -2
  32. package/dist-types/commands/GetQAppSessionMetadataCommand.d.ts +128 -0
  33. package/dist-types/commands/ListQAppSessionDataCommand.d.ts +108 -0
  34. package/dist-types/commands/PredictQAppCommand.d.ts +13 -4
  35. package/dist-types/commands/StartQAppSessionCommand.d.ts +5 -0
  36. package/dist-types/commands/UpdateQAppCommand.d.ts +13 -4
  37. package/dist-types/commands/UpdateQAppPermissionsCommand.d.ts +187 -0
  38. package/dist-types/commands/UpdateQAppSessionCommand.d.ts +4 -0
  39. package/dist-types/commands/UpdateQAppSessionMetadataCommand.d.ts +138 -0
  40. package/dist-types/commands/index.d.ts +7 -0
  41. package/dist-types/models/models_0.d.ts +704 -11
  42. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  43. package/dist-types/ts3.4/QApps.d.ts +119 -0
  44. package/dist-types/ts3.4/QAppsClient.d.ts +44 -2
  45. package/dist-types/ts3.4/commands/CreatePresignedUrlCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/DescribeQAppPermissionsCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/ExportQAppSessionDataCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/GetQAppSessionMetadataCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/ListQAppSessionDataCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/UpdateQAppPermissionsCommand.d.ts +51 -0
  51. package/dist-types/ts3.4/commands/UpdateQAppSessionMetadataCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +202 -5
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  55. package/package.json +1 -1
@@ -89,6 +89,25 @@ export const se_CreateLibraryItemCommand = async (input, context) => {
89
89
  b.m("POST").h(headers).b(body);
90
90
  return b.build();
91
91
  };
92
+ export const se_CreatePresignedUrlCommand = async (input, context) => {
93
+ const b = rb(input, context);
94
+ const headers = map({}, isSerializableHeaderValue, {
95
+ "content-type": "application/json",
96
+ [_ii]: input[_iI],
97
+ });
98
+ b.bp("/apps.createPresignedUrl");
99
+ let body;
100
+ body = JSON.stringify(take(input, {
101
+ appId: [],
102
+ cardId: [],
103
+ fileContentsSha256: [],
104
+ fileName: [],
105
+ scope: [],
106
+ sessionId: [],
107
+ }));
108
+ b.m("POST").h(headers).b(body);
109
+ return b.build();
110
+ };
92
111
  export const se_CreateQAppCommand = async (input, context) => {
93
112
  const b = rb(input, context);
94
113
  const headers = map({}, isSerializableHeaderValue, {
@@ -134,6 +153,19 @@ export const se_DeleteQAppCommand = async (input, context) => {
134
153
  b.m("POST").h(headers).b(body);
135
154
  return b.build();
136
155
  };
156
+ export const se_DescribeQAppPermissionsCommand = async (input, context) => {
157
+ const b = rb(input, context);
158
+ const headers = map({}, isSerializableHeaderValue, {
159
+ [_ii]: input[_iI],
160
+ });
161
+ b.bp("/apps.describeQAppPermissions");
162
+ const query = map({
163
+ [_aI]: [, __expectNonNull(input[_aI], `appId`)],
164
+ });
165
+ let body;
166
+ b.m("GET").h(headers).q(query).b(body);
167
+ return b.build();
168
+ };
137
169
  export const se_DisassociateLibraryItemReviewCommand = async (input, context) => {
138
170
  const b = rb(input, context);
139
171
  const headers = map({}, isSerializableHeaderValue, {
@@ -162,6 +194,20 @@ export const se_DisassociateQAppFromUserCommand = async (input, context) => {
162
194
  b.m("POST").h(headers).b(body);
163
195
  return b.build();
164
196
  };
197
+ export const se_ExportQAppSessionDataCommand = async (input, context) => {
198
+ const b = rb(input, context);
199
+ const headers = map({}, isSerializableHeaderValue, {
200
+ "content-type": "application/json",
201
+ [_ii]: input[_iI],
202
+ });
203
+ b.bp("/runtime.exportQAppSessionData");
204
+ let body;
205
+ body = JSON.stringify(take(input, {
206
+ sessionId: [],
207
+ }));
208
+ b.m("POST").h(headers).b(body);
209
+ return b.build();
210
+ };
165
211
  export const se_GetLibraryItemCommand = async (input, context) => {
166
212
  const b = rb(input, context);
167
213
  const headers = map({}, isSerializableHeaderValue, {
@@ -184,6 +230,7 @@ export const se_GetQAppCommand = async (input, context) => {
184
230
  b.bp("/apps.get");
185
231
  const query = map({
186
232
  [_aI]: [, __expectNonNull(input[_aI], `appId`)],
233
+ [_aV]: [() => input.appVersion !== void 0, () => input[_aV].toString()],
187
234
  });
188
235
  let body;
189
236
  b.m("GET").h(headers).q(query).b(body);
@@ -202,6 +249,19 @@ export const se_GetQAppSessionCommand = async (input, context) => {
202
249
  b.m("GET").h(headers).q(query).b(body);
203
250
  return b.build();
204
251
  };
252
+ export const se_GetQAppSessionMetadataCommand = async (input, context) => {
253
+ const b = rb(input, context);
254
+ const headers = map({}, isSerializableHeaderValue, {
255
+ [_ii]: input[_iI],
256
+ });
257
+ b.bp("/runtime.getQAppSessionMetadata");
258
+ const query = map({
259
+ [_sI]: [, __expectNonNull(input[_sI], `sessionId`)],
260
+ });
261
+ let body;
262
+ b.m("GET").h(headers).q(query).b(body);
263
+ return b.build();
264
+ };
205
265
  export const se_ImportDocumentCommand = async (input, context) => {
206
266
  const b = rb(input, context);
207
267
  const headers = map({}, isSerializableHeaderValue, {
@@ -260,6 +320,19 @@ export const se_ListQAppsCommand = async (input, context) => {
260
320
  b.m("GET").h(headers).q(query).b(body);
261
321
  return b.build();
262
322
  };
323
+ export const se_ListQAppSessionDataCommand = async (input, context) => {
324
+ const b = rb(input, context);
325
+ const headers = map({}, isSerializableHeaderValue, {
326
+ [_ii]: input[_iI],
327
+ });
328
+ b.bp("/runtime.listQAppSessionData");
329
+ const query = map({
330
+ [_sI]: [, __expectNonNull(input[_sI], `sessionId`)],
331
+ });
332
+ let body;
333
+ b.m("GET").h(headers).q(query).b(body);
334
+ return b.build();
335
+ };
263
336
  export const se_ListTagsForResourceCommand = async (input, context) => {
264
337
  const b = rb(input, context);
265
338
  const headers = {};
@@ -295,6 +368,7 @@ export const se_StartQAppSessionCommand = async (input, context) => {
295
368
  appId: [],
296
369
  appVersion: [],
297
370
  initialValues: (_) => _json(_),
371
+ sessionId: [],
298
372
  tags: (_) => _json(_),
299
373
  }));
300
374
  b.m("POST").h(headers).b(body);
@@ -388,6 +462,22 @@ export const se_UpdateQAppCommand = async (input, context) => {
388
462
  b.m("POST").h(headers).b(body);
389
463
  return b.build();
390
464
  };
465
+ export const se_UpdateQAppPermissionsCommand = async (input, context) => {
466
+ const b = rb(input, context);
467
+ const headers = map({}, isSerializableHeaderValue, {
468
+ "content-type": "application/json",
469
+ [_ii]: input[_iI],
470
+ });
471
+ b.bp("/apps.updateQAppPermissions");
472
+ let body;
473
+ body = JSON.stringify(take(input, {
474
+ appId: [],
475
+ grantPermissions: (_) => _json(_),
476
+ revokePermissions: (_) => _json(_),
477
+ }));
478
+ b.m("POST").h(headers).b(body);
479
+ return b.build();
480
+ };
391
481
  export const se_UpdateQAppSessionCommand = async (input, context) => {
392
482
  const b = rb(input, context);
393
483
  const headers = map({}, isSerializableHeaderValue, {
@@ -403,6 +493,22 @@ export const se_UpdateQAppSessionCommand = async (input, context) => {
403
493
  b.m("POST").h(headers).b(body);
404
494
  return b.build();
405
495
  };
496
+ export const se_UpdateQAppSessionMetadataCommand = async (input, context) => {
497
+ const b = rb(input, context);
498
+ const headers = map({}, isSerializableHeaderValue, {
499
+ "content-type": "application/json",
500
+ [_ii]: input[_iI],
501
+ });
502
+ b.bp("/runtime.updateQAppSessionMetadata");
503
+ let body;
504
+ body = JSON.stringify(take(input, {
505
+ sessionId: [],
506
+ sessionName: [],
507
+ sharingConfiguration: (_) => _json(_),
508
+ }));
509
+ b.m("POST").h(headers).b(body);
510
+ return b.build();
511
+ };
406
512
  export const de_AssociateLibraryItemReviewCommand = async (output, context) => {
407
513
  if (output.statusCode !== 200 && output.statusCode >= 300) {
408
514
  return de_CommandError(output, context);
@@ -474,6 +580,23 @@ export const de_CreateLibraryItemCommand = async (output, context) => {
474
580
  Object.assign(contents, doc);
475
581
  return contents;
476
582
  };
583
+ export const de_CreatePresignedUrlCommand = async (output, context) => {
584
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
585
+ return de_CommandError(output, context);
586
+ }
587
+ const contents = map({
588
+ $metadata: deserializeMetadata(output),
589
+ });
590
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
591
+ const doc = take(data, {
592
+ fileId: __expectString,
593
+ presignedUrl: __expectString,
594
+ presignedUrlExpiration: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
595
+ presignedUrlFields: _json,
596
+ });
597
+ Object.assign(contents, doc);
598
+ return contents;
599
+ };
477
600
  export const de_CreateQAppCommand = async (output, context) => {
478
601
  if (output.statusCode !== 200 && output.statusCode >= 300) {
479
602
  return de_CommandError(output, context);
@@ -519,6 +642,22 @@ export const de_DeleteQAppCommand = async (output, context) => {
519
642
  await collectBody(output.body, context);
520
643
  return contents;
521
644
  };
645
+ export const de_DescribeQAppPermissionsCommand = async (output, context) => {
646
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
647
+ return de_CommandError(output, context);
648
+ }
649
+ const contents = map({
650
+ $metadata: deserializeMetadata(output),
651
+ });
652
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
653
+ const doc = take(data, {
654
+ appId: __expectString,
655
+ permissions: _json,
656
+ resourceArn: __expectString,
657
+ });
658
+ Object.assign(contents, doc);
659
+ return contents;
660
+ };
522
661
  export const de_DisassociateLibraryItemReviewCommand = async (output, context) => {
523
662
  if (output.statusCode !== 200 && output.statusCode >= 300) {
524
663
  return de_CommandError(output, context);
@@ -539,6 +678,22 @@ export const de_DisassociateQAppFromUserCommand = async (output, context) => {
539
678
  await collectBody(output.body, context);
540
679
  return contents;
541
680
  };
681
+ export const de_ExportQAppSessionDataCommand = async (output, context) => {
682
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
683
+ return de_CommandError(output, context);
684
+ }
685
+ const contents = map({
686
+ $metadata: deserializeMetadata(output),
687
+ });
688
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
689
+ const doc = take(data, {
690
+ csvFileLink: __expectString,
691
+ expiresAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
692
+ sessionArn: __expectString,
693
+ });
694
+ Object.assign(contents, doc);
695
+ return contents;
696
+ };
542
697
  export const de_GetLibraryItemCommand = async (output, context) => {
543
698
  if (output.statusCode !== 200 && output.statusCode >= 300) {
544
699
  return de_CommandError(output, context);
@@ -600,10 +755,32 @@ export const de_GetQAppSessionCommand = async (output, context) => {
600
755
  });
601
756
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
602
757
  const doc = take(data, {
603
- cardStatus: _json,
758
+ appVersion: __expectInt32,
759
+ cardStatus: (_) => de_CardStatusMap(_, context),
760
+ latestPublishedAppVersion: __expectInt32,
604
761
  sessionArn: __expectString,
605
762
  sessionId: __expectString,
763
+ sessionName: __expectString,
606
764
  status: __expectString,
765
+ userIsHost: __expectBoolean,
766
+ });
767
+ Object.assign(contents, doc);
768
+ return contents;
769
+ };
770
+ export const de_GetQAppSessionMetadataCommand = async (output, context) => {
771
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
772
+ return de_CommandError(output, context);
773
+ }
774
+ const contents = map({
775
+ $metadata: deserializeMetadata(output),
776
+ });
777
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
778
+ const doc = take(data, {
779
+ sessionArn: __expectString,
780
+ sessionId: __expectString,
781
+ sessionName: __expectString,
782
+ sessionOwner: __expectBoolean,
783
+ sharingConfiguration: _json,
607
784
  });
608
785
  Object.assign(contents, doc);
609
786
  return contents;
@@ -666,6 +843,23 @@ export const de_ListQAppsCommand = async (output, context) => {
666
843
  Object.assign(contents, doc);
667
844
  return contents;
668
845
  };
846
+ export const de_ListQAppSessionDataCommand = async (output, context) => {
847
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
848
+ return de_CommandError(output, context);
849
+ }
850
+ const contents = map({
851
+ $metadata: deserializeMetadata(output),
852
+ });
853
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
854
+ const doc = take(data, {
855
+ nextToken: __expectString,
856
+ sessionArn: __expectString,
857
+ sessionData: (_) => de_QAppSessionDataList(_, context),
858
+ sessionId: __expectString,
859
+ });
860
+ Object.assign(contents, doc);
861
+ return contents;
862
+ };
669
863
  export const de_ListTagsForResourceCommand = async (output, context) => {
670
864
  if (output.statusCode !== 200 && output.statusCode >= 300) {
671
865
  return de_CommandError(output, context);
@@ -801,6 +995,22 @@ export const de_UpdateQAppCommand = async (output, context) => {
801
995
  Object.assign(contents, doc);
802
996
  return contents;
803
997
  };
998
+ export const de_UpdateQAppPermissionsCommand = async (output, context) => {
999
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1000
+ return de_CommandError(output, context);
1001
+ }
1002
+ const contents = map({
1003
+ $metadata: deserializeMetadata(output),
1004
+ });
1005
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1006
+ const doc = take(data, {
1007
+ appId: __expectString,
1008
+ permissions: _json,
1009
+ resourceArn: __expectString,
1010
+ });
1011
+ Object.assign(contents, doc);
1012
+ return contents;
1013
+ };
804
1014
  export const de_UpdateQAppSessionCommand = async (output, context) => {
805
1015
  if (output.statusCode !== 200 && output.statusCode >= 300) {
806
1016
  return de_CommandError(output, context);
@@ -816,6 +1026,23 @@ export const de_UpdateQAppSessionCommand = async (output, context) => {
816
1026
  Object.assign(contents, doc);
817
1027
  return contents;
818
1028
  };
1029
+ export const de_UpdateQAppSessionMetadataCommand = async (output, context) => {
1030
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1031
+ return de_CommandError(output, context);
1032
+ }
1033
+ const contents = map({
1034
+ $metadata: deserializeMetadata(output),
1035
+ });
1036
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1037
+ const doc = take(data, {
1038
+ sessionArn: __expectString,
1039
+ sessionId: __expectString,
1040
+ sessionName: __expectString,
1041
+ sharingConfiguration: _json,
1042
+ });
1043
+ Object.assign(contents, doc);
1044
+ return contents;
1045
+ };
819
1046
  const de_CommandError = async (output, context) => {
820
1047
  const parsedOutput = {
821
1048
  ...output,
@@ -1023,6 +1250,7 @@ const se_AttributeFilters = (input, context) => {
1023
1250
  const se_CardInput = (input, context) => {
1024
1251
  return CardInput.visit(input, {
1025
1252
  fileUpload: (value) => ({ fileUpload: _json(value) }),
1253
+ formInput: (value) => ({ formInput: se_FormInputCardInput(value, context) }),
1026
1254
  qPlugin: (value) => ({ qPlugin: _json(value) }),
1027
1255
  qQuery: (value) => ({ qQuery: se_QQueryCardInput(value, context) }),
1028
1256
  textInput: (value) => ({ textInput: _json(value) }),
@@ -1051,6 +1279,23 @@ const se_DocumentAttributeValue = (input, context) => {
1051
1279
  _: (name, value) => ({ name: value }),
1052
1280
  });
1053
1281
  };
1282
+ const se_FormInputCardInput = (input, context) => {
1283
+ return take(input, {
1284
+ computeMode: [],
1285
+ id: [],
1286
+ metadata: (_) => se_FormInputCardMetadata(_, context),
1287
+ title: [],
1288
+ type: [],
1289
+ });
1290
+ };
1291
+ const se_FormInputCardMetadata = (input, context) => {
1292
+ return take(input, {
1293
+ schema: (_) => se_FormInputCardMetadataSchema(_, context),
1294
+ });
1295
+ };
1296
+ const se_FormInputCardMetadataSchema = (input, context) => {
1297
+ return input;
1298
+ };
1054
1299
  const se_QQueryCardInput = (input, context) => {
1055
1300
  return take(input, {
1056
1301
  attributeFilter: (_) => se_AttributeFilter(_, context),
@@ -1102,6 +1347,11 @@ const de_Card = (output, context) => {
1102
1347
  fileUpload: _json(output.fileUpload),
1103
1348
  };
1104
1349
  }
1350
+ if (output.formInput != null) {
1351
+ return {
1352
+ formInput: de_FormInputCard(output.formInput, context),
1353
+ };
1354
+ }
1105
1355
  if (output.qPlugin != null) {
1106
1356
  return {
1107
1357
  qPlugin: _json(output.qPlugin),
@@ -1125,6 +1375,11 @@ const de_CardInput = (output, context) => {
1125
1375
  fileUpload: _json(output.fileUpload),
1126
1376
  };
1127
1377
  }
1378
+ if (output.formInput != null) {
1379
+ return {
1380
+ formInput: de_FormInputCardInput(output.formInput, context),
1381
+ };
1382
+ }
1128
1383
  if (output.qPlugin != null) {
1129
1384
  return {
1130
1385
  qPlugin: _json(output.qPlugin),
@@ -1158,6 +1413,22 @@ const de_CardModelList = (output, context) => {
1158
1413
  });
1159
1414
  return retVal;
1160
1415
  };
1416
+ const de_CardStatus = (output, context) => {
1417
+ return take(output, {
1418
+ currentState: __expectString,
1419
+ currentValue: __expectString,
1420
+ submissions: (_) => de_SubmissionList(_, context),
1421
+ });
1422
+ };
1423
+ const de_CardStatusMap = (output, context) => {
1424
+ return Object.entries(output).reduce((acc, [key, value]) => {
1425
+ if (value === null) {
1426
+ return acc;
1427
+ }
1428
+ acc[key] = de_CardStatus(value, context);
1429
+ return acc;
1430
+ }, {});
1431
+ };
1161
1432
  const de_DocumentAttribute = (output, context) => {
1162
1433
  return take(output, {
1163
1434
  name: __expectString,
@@ -1183,6 +1454,33 @@ const de_DocumentAttributeValue = (output, context) => {
1183
1454
  }
1184
1455
  return { $unknown: Object.entries(output)[0] };
1185
1456
  };
1457
+ const de_FormInputCard = (output, context) => {
1458
+ return take(output, {
1459
+ computeMode: __expectString,
1460
+ dependencies: _json,
1461
+ id: __expectString,
1462
+ metadata: (_) => de_FormInputCardMetadata(_, context),
1463
+ title: __expectString,
1464
+ type: __expectString,
1465
+ });
1466
+ };
1467
+ const de_FormInputCardInput = (output, context) => {
1468
+ return take(output, {
1469
+ computeMode: __expectString,
1470
+ id: __expectString,
1471
+ metadata: (_) => de_FormInputCardMetadata(_, context),
1472
+ title: __expectString,
1473
+ type: __expectString,
1474
+ });
1475
+ };
1476
+ const de_FormInputCardMetadata = (output, context) => {
1477
+ return take(output, {
1478
+ schema: (_) => de_FormInputCardMetadataSchema(_, context),
1479
+ });
1480
+ };
1481
+ const de_FormInputCardMetadataSchema = (output, context) => {
1482
+ return output;
1483
+ };
1186
1484
  const de_LibraryItemList = (output, context) => {
1187
1485
  const retVal = (output || [])
1188
1486
  .filter((e) => e != null)
@@ -1215,11 +1513,29 @@ const de_PredictAppDefinition = (output, context) => {
1215
1513
  title: __expectString,
1216
1514
  });
1217
1515
  };
1516
+ const de_QAppSessionData = (output, context) => {
1517
+ return take(output, {
1518
+ cardId: __expectString,
1519
+ submissionId: __expectString,
1520
+ timestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1521
+ user: _json,
1522
+ value: (_) => de_Document(_, context),
1523
+ });
1524
+ };
1525
+ const de_QAppSessionDataList = (output, context) => {
1526
+ const retVal = (output || [])
1527
+ .filter((e) => e != null)
1528
+ .map((entry) => {
1529
+ return de_QAppSessionData(entry, context);
1530
+ });
1531
+ return retVal;
1532
+ };
1218
1533
  const de_QQueryCard = (output, context) => {
1219
1534
  return take(output, {
1220
1535
  attributeFilter: (_) => de_AttributeFilter(_, context),
1221
1536
  dependencies: _json,
1222
1537
  id: __expectString,
1538
+ memoryReferences: _json,
1223
1539
  outputSource: __expectString,
1224
1540
  prompt: __expectString,
1225
1541
  title: __expectString,
@@ -1236,6 +1552,21 @@ const de_QQueryCardInput = (output, context) => {
1236
1552
  type: __expectString,
1237
1553
  });
1238
1554
  };
1555
+ const de_Submission = (output, context) => {
1556
+ return take(output, {
1557
+ submissionId: __expectString,
1558
+ timestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1559
+ value: (_) => de_Document(_, context),
1560
+ });
1561
+ };
1562
+ const de_SubmissionList = (output, context) => {
1563
+ const retVal = (output || [])
1564
+ .filter((e) => e != null)
1565
+ .map((entry) => {
1566
+ return de_Submission(entry, context);
1567
+ });
1568
+ return retVal;
1569
+ };
1239
1570
  const de_UserAppItem = (output, context) => {
1240
1571
  return take(output, {
1241
1572
  appArn: __expectString,
@@ -1256,6 +1587,9 @@ const de_UserAppsList = (output, context) => {
1256
1587
  });
1257
1588
  return retVal;
1258
1589
  };
1590
+ const de_Document = (output, context) => {
1591
+ return output;
1592
+ };
1259
1593
  const deserializeMetadata = (output) => ({
1260
1594
  httpStatusCode: output.statusCode,
1261
1595
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1264,6 +1598,7 @@ const deserializeMetadata = (output) => ({
1264
1598
  });
1265
1599
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1266
1600
  const _aI = "appId";
1601
+ const _aV = "appVersion";
1267
1602
  const _cI = "categoryId";
1268
1603
  const _iI = "instanceId";
1269
1604
  const _ii = "instance-id";
@@ -5,18 +5,23 @@ import { BatchCreateCategoryCommandInput, BatchCreateCategoryCommandOutput } fro
5
5
  import { BatchDeleteCategoryCommandInput, BatchDeleteCategoryCommandOutput } from "./commands/BatchDeleteCategoryCommand";
6
6
  import { BatchUpdateCategoryCommandInput, BatchUpdateCategoryCommandOutput } from "./commands/BatchUpdateCategoryCommand";
7
7
  import { CreateLibraryItemCommandInput, CreateLibraryItemCommandOutput } from "./commands/CreateLibraryItemCommand";
8
+ import { CreatePresignedUrlCommandInput, CreatePresignedUrlCommandOutput } from "./commands/CreatePresignedUrlCommand";
8
9
  import { CreateQAppCommandInput, CreateQAppCommandOutput } from "./commands/CreateQAppCommand";
9
10
  import { DeleteLibraryItemCommandInput, DeleteLibraryItemCommandOutput } from "./commands/DeleteLibraryItemCommand";
10
11
  import { DeleteQAppCommandInput, DeleteQAppCommandOutput } from "./commands/DeleteQAppCommand";
12
+ import { DescribeQAppPermissionsCommandInput, DescribeQAppPermissionsCommandOutput } from "./commands/DescribeQAppPermissionsCommand";
11
13
  import { DisassociateLibraryItemReviewCommandInput, DisassociateLibraryItemReviewCommandOutput } from "./commands/DisassociateLibraryItemReviewCommand";
12
14
  import { DisassociateQAppFromUserCommandInput, DisassociateQAppFromUserCommandOutput } from "./commands/DisassociateQAppFromUserCommand";
15
+ import { ExportQAppSessionDataCommandInput, ExportQAppSessionDataCommandOutput } from "./commands/ExportQAppSessionDataCommand";
13
16
  import { GetLibraryItemCommandInput, GetLibraryItemCommandOutput } from "./commands/GetLibraryItemCommand";
14
17
  import { GetQAppCommandInput, GetQAppCommandOutput } from "./commands/GetQAppCommand";
15
18
  import { GetQAppSessionCommandInput, GetQAppSessionCommandOutput } from "./commands/GetQAppSessionCommand";
19
+ import { GetQAppSessionMetadataCommandInput, GetQAppSessionMetadataCommandOutput } from "./commands/GetQAppSessionMetadataCommand";
16
20
  import { ImportDocumentCommandInput, ImportDocumentCommandOutput } from "./commands/ImportDocumentCommand";
17
21
  import { ListCategoriesCommandInput, ListCategoriesCommandOutput } from "./commands/ListCategoriesCommand";
18
22
  import { ListLibraryItemsCommandInput, ListLibraryItemsCommandOutput } from "./commands/ListLibraryItemsCommand";
19
23
  import { ListQAppsCommandInput, ListQAppsCommandOutput } from "./commands/ListQAppsCommand";
24
+ import { ListQAppSessionDataCommandInput, ListQAppSessionDataCommandOutput } from "./commands/ListQAppSessionDataCommand";
20
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
21
26
  import { PredictQAppCommandInput, PredictQAppCommandOutput } from "./commands/PredictQAppCommand";
22
27
  import { StartQAppSessionCommandInput, StartQAppSessionCommandOutput } from "./commands/StartQAppSessionCommand";
@@ -26,7 +31,9 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
26
31
  import { UpdateLibraryItemCommandInput, UpdateLibraryItemCommandOutput } from "./commands/UpdateLibraryItemCommand";
27
32
  import { UpdateLibraryItemMetadataCommandInput, UpdateLibraryItemMetadataCommandOutput } from "./commands/UpdateLibraryItemMetadataCommand";
28
33
  import { UpdateQAppCommandInput, UpdateQAppCommandOutput } from "./commands/UpdateQAppCommand";
34
+ import { UpdateQAppPermissionsCommandInput, UpdateQAppPermissionsCommandOutput } from "./commands/UpdateQAppPermissionsCommand";
29
35
  import { UpdateQAppSessionCommandInput, UpdateQAppSessionCommandOutput } from "./commands/UpdateQAppSessionCommand";
36
+ import { UpdateQAppSessionMetadataCommandInput, UpdateQAppSessionMetadataCommandOutput } from "./commands/UpdateQAppSessionMetadataCommand";
30
37
  import { QAppsClient } from "./QAppsClient";
31
38
  export interface QApps {
32
39
  /**
@@ -65,6 +72,12 @@ export interface QApps {
65
72
  createLibraryItem(args: CreateLibraryItemCommandInput, options?: __HttpHandlerOptions): Promise<CreateLibraryItemCommandOutput>;
66
73
  createLibraryItem(args: CreateLibraryItemCommandInput, cb: (err: any, data?: CreateLibraryItemCommandOutput) => void): void;
67
74
  createLibraryItem(args: CreateLibraryItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLibraryItemCommandOutput) => void): void;
75
+ /**
76
+ * @see {@link CreatePresignedUrlCommand}
77
+ */
78
+ createPresignedUrl(args: CreatePresignedUrlCommandInput, options?: __HttpHandlerOptions): Promise<CreatePresignedUrlCommandOutput>;
79
+ createPresignedUrl(args: CreatePresignedUrlCommandInput, cb: (err: any, data?: CreatePresignedUrlCommandOutput) => void): void;
80
+ createPresignedUrl(args: CreatePresignedUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePresignedUrlCommandOutput) => void): void;
68
81
  /**
69
82
  * @see {@link CreateQAppCommand}
70
83
  */
@@ -83,6 +96,12 @@ export interface QApps {
83
96
  deleteQApp(args: DeleteQAppCommandInput, options?: __HttpHandlerOptions): Promise<DeleteQAppCommandOutput>;
84
97
  deleteQApp(args: DeleteQAppCommandInput, cb: (err: any, data?: DeleteQAppCommandOutput) => void): void;
85
98
  deleteQApp(args: DeleteQAppCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteQAppCommandOutput) => void): void;
99
+ /**
100
+ * @see {@link DescribeQAppPermissionsCommand}
101
+ */
102
+ describeQAppPermissions(args: DescribeQAppPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeQAppPermissionsCommandOutput>;
103
+ describeQAppPermissions(args: DescribeQAppPermissionsCommandInput, cb: (err: any, data?: DescribeQAppPermissionsCommandOutput) => void): void;
104
+ describeQAppPermissions(args: DescribeQAppPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeQAppPermissionsCommandOutput) => void): void;
86
105
  /**
87
106
  * @see {@link DisassociateLibraryItemReviewCommand}
88
107
  */
@@ -95,6 +114,12 @@ export interface QApps {
95
114
  disassociateQAppFromUser(args: DisassociateQAppFromUserCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateQAppFromUserCommandOutput>;
96
115
  disassociateQAppFromUser(args: DisassociateQAppFromUserCommandInput, cb: (err: any, data?: DisassociateQAppFromUserCommandOutput) => void): void;
97
116
  disassociateQAppFromUser(args: DisassociateQAppFromUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateQAppFromUserCommandOutput) => void): void;
117
+ /**
118
+ * @see {@link ExportQAppSessionDataCommand}
119
+ */
120
+ exportQAppSessionData(args: ExportQAppSessionDataCommandInput, options?: __HttpHandlerOptions): Promise<ExportQAppSessionDataCommandOutput>;
121
+ exportQAppSessionData(args: ExportQAppSessionDataCommandInput, cb: (err: any, data?: ExportQAppSessionDataCommandOutput) => void): void;
122
+ exportQAppSessionData(args: ExportQAppSessionDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportQAppSessionDataCommandOutput) => void): void;
98
123
  /**
99
124
  * @see {@link GetLibraryItemCommand}
100
125
  */
@@ -113,6 +138,12 @@ export interface QApps {
113
138
  getQAppSession(args: GetQAppSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetQAppSessionCommandOutput>;
114
139
  getQAppSession(args: GetQAppSessionCommandInput, cb: (err: any, data?: GetQAppSessionCommandOutput) => void): void;
115
140
  getQAppSession(args: GetQAppSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQAppSessionCommandOutput) => void): void;
141
+ /**
142
+ * @see {@link GetQAppSessionMetadataCommand}
143
+ */
144
+ getQAppSessionMetadata(args: GetQAppSessionMetadataCommandInput, options?: __HttpHandlerOptions): Promise<GetQAppSessionMetadataCommandOutput>;
145
+ getQAppSessionMetadata(args: GetQAppSessionMetadataCommandInput, cb: (err: any, data?: GetQAppSessionMetadataCommandOutput) => void): void;
146
+ getQAppSessionMetadata(args: GetQAppSessionMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQAppSessionMetadataCommandOutput) => void): void;
116
147
  /**
117
148
  * @see {@link ImportDocumentCommand}
118
149
  */
@@ -137,6 +168,12 @@ export interface QApps {
137
168
  listQApps(args: ListQAppsCommandInput, options?: __HttpHandlerOptions): Promise<ListQAppsCommandOutput>;
138
169
  listQApps(args: ListQAppsCommandInput, cb: (err: any, data?: ListQAppsCommandOutput) => void): void;
139
170
  listQApps(args: ListQAppsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListQAppsCommandOutput) => void): void;
171
+ /**
172
+ * @see {@link ListQAppSessionDataCommand}
173
+ */
174
+ listQAppSessionData(args: ListQAppSessionDataCommandInput, options?: __HttpHandlerOptions): Promise<ListQAppSessionDataCommandOutput>;
175
+ listQAppSessionData(args: ListQAppSessionDataCommandInput, cb: (err: any, data?: ListQAppSessionDataCommandOutput) => void): void;
176
+ listQAppSessionData(args: ListQAppSessionDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListQAppSessionDataCommandOutput) => void): void;
140
177
  /**
141
178
  * @see {@link ListTagsForResourceCommand}
142
179
  */
@@ -191,12 +228,24 @@ export interface QApps {
191
228
  updateQApp(args: UpdateQAppCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQAppCommandOutput>;
192
229
  updateQApp(args: UpdateQAppCommandInput, cb: (err: any, data?: UpdateQAppCommandOutput) => void): void;
193
230
  updateQApp(args: UpdateQAppCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQAppCommandOutput) => void): void;
231
+ /**
232
+ * @see {@link UpdateQAppPermissionsCommand}
233
+ */
234
+ updateQAppPermissions(args: UpdateQAppPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQAppPermissionsCommandOutput>;
235
+ updateQAppPermissions(args: UpdateQAppPermissionsCommandInput, cb: (err: any, data?: UpdateQAppPermissionsCommandOutput) => void): void;
236
+ updateQAppPermissions(args: UpdateQAppPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQAppPermissionsCommandOutput) => void): void;
194
237
  /**
195
238
  * @see {@link UpdateQAppSessionCommand}
196
239
  */
197
240
  updateQAppSession(args: UpdateQAppSessionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQAppSessionCommandOutput>;
198
241
  updateQAppSession(args: UpdateQAppSessionCommandInput, cb: (err: any, data?: UpdateQAppSessionCommandOutput) => void): void;
199
242
  updateQAppSession(args: UpdateQAppSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQAppSessionCommandOutput) => void): void;
243
+ /**
244
+ * @see {@link UpdateQAppSessionMetadataCommand}
245
+ */
246
+ updateQAppSessionMetadata(args: UpdateQAppSessionMetadataCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQAppSessionMetadataCommandOutput>;
247
+ updateQAppSessionMetadata(args: UpdateQAppSessionMetadataCommandInput, cb: (err: any, data?: UpdateQAppSessionMetadataCommandOutput) => void): void;
248
+ updateQAppSessionMetadata(args: UpdateQAppSessionMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQAppSessionMetadataCommandOutput) => void): void;
200
249
  }
201
250
  /**
202
251
  * <p>The Amazon Q Apps feature capability within Amazon Q Business allows web experience