@aws-sdk/client-iotsitewise 3.693.0 → 3.695.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 (86) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +616 -10
  3. package/dist-cjs/runtimeConfig.browser.js +2 -0
  4. package/dist-cjs/runtimeConfig.js +2 -0
  5. package/dist-es/IoTSiteWise.js +12 -0
  6. package/dist-es/IoTSiteWiseClient.js +6 -4
  7. package/dist-es/commands/CreateDatasetCommand.js +22 -0
  8. package/dist-es/commands/CreatePortalCommand.js +2 -1
  9. package/dist-es/commands/DeleteDatasetCommand.js +22 -0
  10. package/dist-es/commands/DescribeDatasetCommand.js +22 -0
  11. package/dist-es/commands/DescribePortalCommand.js +2 -1
  12. package/dist-es/commands/InvokeAssistantCommand.js +27 -0
  13. package/dist-es/commands/ListDatasetsCommand.js +22 -0
  14. package/dist-es/commands/UpdateDatasetCommand.js +22 -0
  15. package/dist-es/commands/UpdatePortalCommand.js +2 -1
  16. package/dist-es/commands/index.js +6 -0
  17. package/dist-es/models/models_0.js +83 -25
  18. package/dist-es/models/models_1.js +31 -0
  19. package/dist-es/pagination/ListDatasetsPaginator.js +4 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_restJson1.js +370 -2
  22. package/dist-es/runtimeConfig.browser.js +2 -0
  23. package/dist-es/runtimeConfig.js +2 -0
  24. package/dist-types/IoTSiteWise.d.ts +42 -0
  25. package/dist-types/IoTSiteWiseClient.d.ts +16 -5
  26. package/dist-types/commands/CreateAssetModelCompositeModelCommand.d.ts +2 -1
  27. package/dist-types/commands/CreateDatasetCommand.d.ts +130 -0
  28. package/dist-types/commands/CreatePortalCommand.d.ts +9 -1
  29. package/dist-types/commands/DeleteAssetModelCommand.d.ts +2 -1
  30. package/dist-types/commands/DeleteAssetModelCompositeModelCommand.d.ts +2 -1
  31. package/dist-types/commands/DeleteDatasetCommand.d.ts +104 -0
  32. package/dist-types/commands/DeletePortalCommand.d.ts +2 -2
  33. package/dist-types/commands/DescribeDatasetCommand.d.ts +116 -0
  34. package/dist-types/commands/DescribePortalCommand.d.ts +9 -1
  35. package/dist-types/commands/ExecuteQueryCommand.d.ts +1 -0
  36. package/dist-types/commands/InvokeAssistantCommand.d.ts +151 -0
  37. package/dist-types/commands/ListAssociatedAssetsCommand.d.ts +2 -1
  38. package/dist-types/commands/ListBulkImportJobsCommand.d.ts +1 -1
  39. package/dist-types/commands/ListCompositionRelationshipsCommand.d.ts +1 -1
  40. package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListDatasetsCommand.d.ts +109 -0
  42. package/dist-types/commands/ListGatewaysCommand.d.ts +1 -1
  43. package/dist-types/commands/ListPortalsCommand.d.ts +3 -2
  44. package/dist-types/commands/ListProjectAssetsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListProjectsCommand.d.ts +1 -1
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  47. package/dist-types/commands/UpdateAssetModelCommand.d.ts +2 -1
  48. package/dist-types/commands/UpdateAssetModelCompositeModelCommand.d.ts +2 -1
  49. package/dist-types/commands/UpdateDatasetCommand.d.ts +124 -0
  50. package/dist-types/commands/UpdatePortalCommand.d.ts +9 -1
  51. package/dist-types/commands/index.d.ts +6 -0
  52. package/dist-types/models/models_0.d.ts +711 -560
  53. package/dist-types/models/models_1.d.ts +713 -3
  54. package/dist-types/pagination/ListDatasetsPaginator.d.ts +7 -0
  55. package/dist-types/pagination/index.d.ts +1 -0
  56. package/dist-types/protocols/Aws_restJson1.d.ts +55 -1
  57. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  58. package/dist-types/runtimeConfig.d.ts +1 -0
  59. package/dist-types/runtimeConfig.native.d.ts +1 -0
  60. package/dist-types/ts3.4/IoTSiteWise.d.ts +102 -0
  61. package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +44 -0
  62. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +50 -0
  63. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +50 -0
  64. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/InvokeAssistantCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/ListAssociatedAssetsCommand.d.ts +2 -4
  67. package/dist-types/ts3.4/commands/ListBulkImportJobsCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/ListCompositionRelationshipsCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +47 -0
  71. package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/ListPortalsCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/ListProjectAssetsCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/UpdateDatasetCommand.d.ts +50 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +280 -139
  79. package/dist-types/ts3.4/models/models_1.d.ts +184 -1
  80. package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  82. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +76 -1
  83. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  84. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  85. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  86. package/package.json +4 -1
@@ -4,8 +4,8 @@ import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
4
4
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
5
5
  import { v4 as generateIdempotencyToken } from "uuid";
6
6
  import { IoTSiteWiseServiceException as __BaseException } from "../models/IoTSiteWiseServiceException";
7
- import { AccessDeniedException, ConflictingOperationException, InternalFailureException, InvalidRequestException, LimitExceededException, PreconditionFailedException, QueryTimeoutException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
8
- import { TooManyTagsException } from "../models/models_1";
7
+ import { AccessDeniedException, ConflictingOperationException, InternalFailureException, InvalidRequestException, LimitExceededException, PreconditionFailedException, QueryTimeoutException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, ValidationException, } from "../models/models_0";
8
+ import { TooManyTagsException, UnauthorizedException, } from "../models/models_1";
9
9
  export const se_AssociateAssetsCommand = async (input, context) => {
10
10
  const b = rb(input, context);
11
11
  const headers = {
@@ -359,6 +359,32 @@ export const se_CreateDashboardCommand = async (input, context) => {
359
359
  b.m("POST").h(headers).b(body);
360
360
  return b.build();
361
361
  };
362
+ export const se_CreateDatasetCommand = async (input, context) => {
363
+ const b = rb(input, context);
364
+ const headers = {
365
+ "content-type": "application/json",
366
+ };
367
+ b.bp("/datasets");
368
+ let body;
369
+ body = JSON.stringify(take(input, {
370
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
371
+ datasetDescription: [],
372
+ datasetId: [],
373
+ datasetName: [],
374
+ datasetSource: (_) => _json(_),
375
+ tags: (_) => _json(_),
376
+ }));
377
+ let { hostname: resolvedHostname } = await context.endpoint();
378
+ if (context.disableHostPrefix !== true) {
379
+ resolvedHostname = "api." + resolvedHostname;
380
+ if (!__isValidHostname(resolvedHostname)) {
381
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
382
+ }
383
+ }
384
+ b.hn(resolvedHostname);
385
+ b.m("POST").h(headers).b(body);
386
+ return b.build();
387
+ };
362
388
  export const se_CreateGatewayCommand = async (input, context) => {
363
389
  const b = rb(input, context);
364
390
  const headers = {
@@ -398,6 +424,8 @@ export const se_CreatePortalCommand = async (input, context) => {
398
424
  portalDescription: [],
399
425
  portalLogoImageFile: (_) => se_ImageFile(_, context),
400
426
  portalName: [],
427
+ portalType: [],
428
+ portalTypeConfiguration: (_) => _json(_),
401
429
  roleArn: [],
402
430
  tags: (_) => _json(_),
403
431
  }));
@@ -546,6 +574,26 @@ export const se_DeleteDashboardCommand = async (input, context) => {
546
574
  b.m("DELETE").h(headers).q(query).b(body);
547
575
  return b.build();
548
576
  };
577
+ export const se_DeleteDatasetCommand = async (input, context) => {
578
+ const b = rb(input, context);
579
+ const headers = {};
580
+ b.bp("/datasets/{datasetId}");
581
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
582
+ const query = map({
583
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
584
+ });
585
+ let body;
586
+ let { hostname: resolvedHostname } = await context.endpoint();
587
+ if (context.disableHostPrefix !== true) {
588
+ resolvedHostname = "api." + resolvedHostname;
589
+ if (!__isValidHostname(resolvedHostname)) {
590
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
591
+ }
592
+ }
593
+ b.hn(resolvedHostname);
594
+ b.m("DELETE").h(headers).q(query).b(body);
595
+ return b.build();
596
+ };
549
597
  export const se_DeleteGatewayCommand = async (input, context) => {
550
598
  const b = rb(input, context);
551
599
  const headers = {};
@@ -795,6 +843,23 @@ export const se_DescribeDashboardCommand = async (input, context) => {
795
843
  b.m("GET").h(headers).b(body);
796
844
  return b.build();
797
845
  };
846
+ export const se_DescribeDatasetCommand = async (input, context) => {
847
+ const b = rb(input, context);
848
+ const headers = {};
849
+ b.bp("/datasets/{datasetId}");
850
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
851
+ let body;
852
+ let { hostname: resolvedHostname } = await context.endpoint();
853
+ if (context.disableHostPrefix !== true) {
854
+ resolvedHostname = "api." + resolvedHostname;
855
+ if (!__isValidHostname(resolvedHostname)) {
856
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
857
+ }
858
+ }
859
+ b.hn(resolvedHostname);
860
+ b.m("GET").h(headers).b(body);
861
+ return b.build();
862
+ };
798
863
  export const se_DescribeDefaultEncryptionConfigurationCommand = async (input, context) => {
799
864
  const b = rb(input, context);
800
865
  const headers = {};
@@ -1015,6 +1080,7 @@ export const se_ExecuteQueryCommand = async (input, context) => {
1015
1080
  b.bp("/queries/execution");
1016
1081
  let body;
1017
1082
  body = JSON.stringify(take(input, {
1083
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1018
1084
  maxResults: [],
1019
1085
  nextToken: [],
1020
1086
  queryStatement: [],
@@ -1138,6 +1204,29 @@ export const se_GetInterpolatedAssetPropertyValuesCommand = async (input, contex
1138
1204
  b.m("GET").h(headers).q(query).b(body);
1139
1205
  return b.build();
1140
1206
  };
1207
+ export const se_InvokeAssistantCommand = async (input, context) => {
1208
+ const b = rb(input, context);
1209
+ const headers = {
1210
+ "content-type": "application/json",
1211
+ };
1212
+ b.bp("/assistant/invocation");
1213
+ let body;
1214
+ body = JSON.stringify(take(input, {
1215
+ conversationId: [],
1216
+ enableTrace: [],
1217
+ message: [],
1218
+ }));
1219
+ let { hostname: resolvedHostname } = await context.endpoint();
1220
+ if (context.disableHostPrefix !== true) {
1221
+ resolvedHostname = "data." + resolvedHostname;
1222
+ if (!__isValidHostname(resolvedHostname)) {
1223
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1224
+ }
1225
+ }
1226
+ b.hn(resolvedHostname);
1227
+ b.m("POST").h(headers).b(body);
1228
+ return b.build();
1229
+ };
1141
1230
  export const se_ListAccessPoliciesCommand = async (input, context) => {
1142
1231
  const b = rb(input, context);
1143
1232
  const headers = {};
@@ -1404,6 +1493,27 @@ export const se_ListDashboardsCommand = async (input, context) => {
1404
1493
  b.m("GET").h(headers).q(query).b(body);
1405
1494
  return b.build();
1406
1495
  };
1496
+ export const se_ListDatasetsCommand = async (input, context) => {
1497
+ const b = rb(input, context);
1498
+ const headers = {};
1499
+ b.bp("/datasets");
1500
+ const query = map({
1501
+ [_sT]: [, __expectNonNull(input[_sT], `sourceType`)],
1502
+ [_nT]: [, input[_nT]],
1503
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1504
+ });
1505
+ let body;
1506
+ let { hostname: resolvedHostname } = await context.endpoint();
1507
+ if (context.disableHostPrefix !== true) {
1508
+ resolvedHostname = "api." + resolvedHostname;
1509
+ if (!__isValidHostname(resolvedHostname)) {
1510
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1511
+ }
1512
+ }
1513
+ b.hn(resolvedHostname);
1514
+ b.m("GET").h(headers).q(query).b(body);
1515
+ return b.build();
1516
+ };
1407
1517
  export const se_ListGatewaysCommand = async (input, context) => {
1408
1518
  const b = rb(input, context);
1409
1519
  const headers = {};
@@ -1803,6 +1913,31 @@ export const se_UpdateDashboardCommand = async (input, context) => {
1803
1913
  b.m("PUT").h(headers).b(body);
1804
1914
  return b.build();
1805
1915
  };
1916
+ export const se_UpdateDatasetCommand = async (input, context) => {
1917
+ const b = rb(input, context);
1918
+ const headers = {
1919
+ "content-type": "application/json",
1920
+ };
1921
+ b.bp("/datasets/{datasetId}");
1922
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
1923
+ let body;
1924
+ body = JSON.stringify(take(input, {
1925
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1926
+ datasetDescription: [],
1927
+ datasetName: [],
1928
+ datasetSource: (_) => _json(_),
1929
+ }));
1930
+ let { hostname: resolvedHostname } = await context.endpoint();
1931
+ if (context.disableHostPrefix !== true) {
1932
+ resolvedHostname = "api." + resolvedHostname;
1933
+ if (!__isValidHostname(resolvedHostname)) {
1934
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1935
+ }
1936
+ }
1937
+ b.hn(resolvedHostname);
1938
+ b.m("PUT").h(headers).b(body);
1939
+ return b.build();
1940
+ };
1806
1941
  export const se_UpdateGatewayCommand = async (input, context) => {
1807
1942
  const b = rb(input, context);
1808
1943
  const headers = {
@@ -1864,6 +1999,8 @@ export const se_UpdatePortalCommand = async (input, context) => {
1864
1999
  portalDescription: [],
1865
2000
  portalLogoImage: (_) => se_Image(_, context),
1866
2001
  portalName: [],
2002
+ portalType: [],
2003
+ portalTypeConfiguration: (_) => _json(_),
1867
2004
  roleArn: [],
1868
2005
  }));
1869
2006
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -2108,6 +2245,22 @@ export const de_CreateDashboardCommand = async (output, context) => {
2108
2245
  Object.assign(contents, doc);
2109
2246
  return contents;
2110
2247
  };
2248
+ export const de_CreateDatasetCommand = async (output, context) => {
2249
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2250
+ return de_CommandError(output, context);
2251
+ }
2252
+ const contents = map({
2253
+ $metadata: deserializeMetadata(output),
2254
+ });
2255
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2256
+ const doc = take(data, {
2257
+ datasetArn: __expectString,
2258
+ datasetId: __expectString,
2259
+ datasetStatus: _json,
2260
+ });
2261
+ Object.assign(contents, doc);
2262
+ return contents;
2263
+ };
2111
2264
  export const de_CreateGatewayCommand = async (output, context) => {
2112
2265
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2113
2266
  return de_CommandError(output, context);
@@ -2218,6 +2371,20 @@ export const de_DeleteDashboardCommand = async (output, context) => {
2218
2371
  await collectBody(output.body, context);
2219
2372
  return contents;
2220
2373
  };
2374
+ export const de_DeleteDatasetCommand = async (output, context) => {
2375
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2376
+ return de_CommandError(output, context);
2377
+ }
2378
+ const contents = map({
2379
+ $metadata: deserializeMetadata(output),
2380
+ });
2381
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2382
+ const doc = take(data, {
2383
+ datasetStatus: _json,
2384
+ });
2385
+ Object.assign(contents, doc);
2386
+ return contents;
2387
+ };
2221
2388
  export const de_DeleteGatewayCommand = async (output, context) => {
2222
2389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2223
2390
  return de_CommandError(output, context);
@@ -2465,6 +2632,28 @@ export const de_DescribeDashboardCommand = async (output, context) => {
2465
2632
  Object.assign(contents, doc);
2466
2633
  return contents;
2467
2634
  };
2635
+ export const de_DescribeDatasetCommand = async (output, context) => {
2636
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2637
+ return de_CommandError(output, context);
2638
+ }
2639
+ const contents = map({
2640
+ $metadata: deserializeMetadata(output),
2641
+ });
2642
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2643
+ const doc = take(data, {
2644
+ datasetArn: __expectString,
2645
+ datasetCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2646
+ datasetDescription: __expectString,
2647
+ datasetId: __expectString,
2648
+ datasetLastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2649
+ datasetName: __expectString,
2650
+ datasetSource: _json,
2651
+ datasetStatus: _json,
2652
+ datasetVersion: __expectString,
2653
+ });
2654
+ Object.assign(contents, doc);
2655
+ return contents;
2656
+ };
2468
2657
  export const de_DescribeDefaultEncryptionConfigurationCommand = async (output, context) => {
2469
2658
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2470
2659
  return de_CommandError(output, context);
@@ -2555,6 +2744,8 @@ export const de_DescribePortalCommand = async (output, context) => {
2555
2744
  portalName: __expectString,
2556
2745
  portalStartUrl: __expectString,
2557
2746
  portalStatus: _json,
2747
+ portalType: __expectString,
2748
+ portalTypeConfiguration: _json,
2558
2749
  roleArn: __expectString,
2559
2750
  });
2560
2751
  Object.assign(contents, doc);
@@ -2732,6 +2923,18 @@ export const de_GetInterpolatedAssetPropertyValuesCommand = async (output, conte
2732
2923
  Object.assign(contents, doc);
2733
2924
  return contents;
2734
2925
  };
2926
+ export const de_InvokeAssistantCommand = async (output, context) => {
2927
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2928
+ return de_CommandError(output, context);
2929
+ }
2930
+ const contents = map({
2931
+ $metadata: deserializeMetadata(output),
2932
+ [_cI]: [, output.headers[_xaiaci]],
2933
+ });
2934
+ const data = output.body;
2935
+ contents.body = de_ResponseStream(data, context);
2936
+ return contents;
2937
+ };
2735
2938
  export const de_ListAccessPoliciesCommand = async (output, context) => {
2736
2939
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2737
2940
  return de_CommandError(output, context);
@@ -2912,6 +3115,21 @@ export const de_ListDashboardsCommand = async (output, context) => {
2912
3115
  Object.assign(contents, doc);
2913
3116
  return contents;
2914
3117
  };
3118
+ export const de_ListDatasetsCommand = async (output, context) => {
3119
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3120
+ return de_CommandError(output, context);
3121
+ }
3122
+ const contents = map({
3123
+ $metadata: deserializeMetadata(output),
3124
+ });
3125
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3126
+ const doc = take(data, {
3127
+ datasetSummaries: (_) => de_DatasetSummaries(_, context),
3128
+ nextToken: __expectString,
3129
+ });
3130
+ Object.assign(contents, doc);
3131
+ return contents;
3132
+ };
2915
3133
  export const de_ListGatewaysCommand = async (output, context) => {
2916
3134
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2917
3135
  return de_CommandError(output, context);
@@ -3140,6 +3358,22 @@ export const de_UpdateDashboardCommand = async (output, context) => {
3140
3358
  await collectBody(output.body, context);
3141
3359
  return contents;
3142
3360
  };
3361
+ export const de_UpdateDatasetCommand = async (output, context) => {
3362
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3363
+ return de_CommandError(output, context);
3364
+ }
3365
+ const contents = map({
3366
+ $metadata: deserializeMetadata(output),
3367
+ });
3368
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3369
+ const doc = take(data, {
3370
+ datasetArn: __expectString,
3371
+ datasetId: __expectString,
3372
+ datasetStatus: _json,
3373
+ });
3374
+ Object.assign(contents, doc);
3375
+ return contents;
3376
+ };
3143
3377
  export const de_UpdateGatewayCommand = async (output, context) => {
3144
3378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3145
3379
  return de_CommandError(output, context);
@@ -3437,6 +3671,117 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
3437
3671
  });
3438
3672
  return __decorateServiceException(exception, parsedOutput.body);
3439
3673
  };
3674
+ const de_ResponseStream = (output, context) => {
3675
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
3676
+ if (event["trace"] != null) {
3677
+ return {
3678
+ trace: await de_Trace_event(event["trace"], context),
3679
+ };
3680
+ }
3681
+ if (event["output"] != null) {
3682
+ return {
3683
+ output: await de_InvocationOutput_event(event["output"], context),
3684
+ };
3685
+ }
3686
+ if (event["accessDeniedException"] != null) {
3687
+ return {
3688
+ accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context),
3689
+ };
3690
+ }
3691
+ if (event["conflictingOperationException"] != null) {
3692
+ return {
3693
+ conflictingOperationException: await de_ConflictingOperationException_event(event["conflictingOperationException"], context),
3694
+ };
3695
+ }
3696
+ if (event["internalFailureException"] != null) {
3697
+ return {
3698
+ internalFailureException: await de_InternalFailureException_event(event["internalFailureException"], context),
3699
+ };
3700
+ }
3701
+ if (event["invalidRequestException"] != null) {
3702
+ return {
3703
+ invalidRequestException: await de_InvalidRequestException_event(event["invalidRequestException"], context),
3704
+ };
3705
+ }
3706
+ if (event["limitExceededException"] != null) {
3707
+ return {
3708
+ limitExceededException: await de_LimitExceededException_event(event["limitExceededException"], context),
3709
+ };
3710
+ }
3711
+ if (event["resourceNotFoundException"] != null) {
3712
+ return {
3713
+ resourceNotFoundException: await de_ResourceNotFoundException_event(event["resourceNotFoundException"], context),
3714
+ };
3715
+ }
3716
+ if (event["throttlingException"] != null) {
3717
+ return {
3718
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
3719
+ };
3720
+ }
3721
+ return { $unknown: output };
3722
+ });
3723
+ };
3724
+ const de_AccessDeniedException_event = async (output, context) => {
3725
+ const parsedOutput = {
3726
+ ...output,
3727
+ body: await parseBody(output.body, context),
3728
+ };
3729
+ return de_AccessDeniedExceptionRes(parsedOutput, context);
3730
+ };
3731
+ const de_ConflictingOperationException_event = async (output, context) => {
3732
+ const parsedOutput = {
3733
+ ...output,
3734
+ body: await parseBody(output.body, context),
3735
+ };
3736
+ return de_ConflictingOperationExceptionRes(parsedOutput, context);
3737
+ };
3738
+ const de_InternalFailureException_event = async (output, context) => {
3739
+ const parsedOutput = {
3740
+ ...output,
3741
+ body: await parseBody(output.body, context),
3742
+ };
3743
+ return de_InternalFailureExceptionRes(parsedOutput, context);
3744
+ };
3745
+ const de_InvalidRequestException_event = async (output, context) => {
3746
+ const parsedOutput = {
3747
+ ...output,
3748
+ body: await parseBody(output.body, context),
3749
+ };
3750
+ return de_InvalidRequestExceptionRes(parsedOutput, context);
3751
+ };
3752
+ const de_InvocationOutput_event = async (output, context) => {
3753
+ const contents = {};
3754
+ const data = await parseBody(output.body, context);
3755
+ Object.assign(contents, _json(data));
3756
+ return contents;
3757
+ };
3758
+ const de_LimitExceededException_event = async (output, context) => {
3759
+ const parsedOutput = {
3760
+ ...output,
3761
+ body: await parseBody(output.body, context),
3762
+ };
3763
+ return de_LimitExceededExceptionRes(parsedOutput, context);
3764
+ };
3765
+ const de_ResourceNotFoundException_event = async (output, context) => {
3766
+ const parsedOutput = {
3767
+ ...output,
3768
+ body: await parseBody(output.body, context),
3769
+ };
3770
+ return de_ResourceNotFoundExceptionRes(parsedOutput, context);
3771
+ };
3772
+ const de_ThrottlingException_event = async (output, context) => {
3773
+ const parsedOutput = {
3774
+ ...output,
3775
+ body: await parseBody(output.body, context),
3776
+ };
3777
+ return de_ThrottlingExceptionRes(parsedOutput, context);
3778
+ };
3779
+ const de_Trace_event = async (output, context) => {
3780
+ const contents = {};
3781
+ const data = await parseBody(output.body, context);
3782
+ Object.assign(contents, _json(data));
3783
+ return contents;
3784
+ };
3440
3785
  const se_AssetModelCompositeModelDefinitions = (input, context) => {
3441
3786
  return input
3442
3787
  .filter((e) => e != null)
@@ -3795,6 +4140,25 @@ const de_DashboardSummary = (output, context) => {
3795
4140
  name: __expectString,
3796
4141
  });
3797
4142
  };
4143
+ const de_DatasetSummaries = (output, context) => {
4144
+ const retVal = (output || [])
4145
+ .filter((e) => e != null)
4146
+ .map((entry) => {
4147
+ return de_DatasetSummary(entry, context);
4148
+ });
4149
+ return retVal;
4150
+ };
4151
+ const de_DatasetSummary = (output, context) => {
4152
+ return take(output, {
4153
+ arn: __expectString,
4154
+ creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4155
+ description: __expectString,
4156
+ id: __expectString,
4157
+ lastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4158
+ name: __expectString,
4159
+ status: _json,
4160
+ });
4161
+ };
3798
4162
  const de_Datum = (output, context) => {
3799
4163
  return take(output, {
3800
4164
  arrayValue: (_) => de_DatumList(_, context),
@@ -3858,6 +4222,7 @@ const de_PortalSummary = (output, context) => {
3858
4222
  id: __expectString,
3859
4223
  lastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3860
4224
  name: __expectString,
4225
+ portalType: __expectString,
3861
4226
  roleArn: __expectString,
3862
4227
  startUrl: __expectString,
3863
4228
  status: _json,
@@ -3936,6 +4301,7 @@ const _aMT = "assetModelTypes";
3936
4301
  const _aMV = "assetModelVersion";
3937
4302
  const _aP = "aliasPrefix";
3938
4303
  const _aT = "aggregateTypes";
4304
+ const _cI = "conversationId";
3939
4305
  const _cT = "clientToken";
3940
4306
  const _e = "etag";
3941
4307
  const _eD = "endDate";
@@ -3969,6 +4335,7 @@ const _rA = "resourceArn";
3969
4335
  const _rI = "resourceId";
3970
4336
  const _rT = "resourceType";
3971
4337
  const _sD = "startDate";
4338
+ const _sT = "sourceType";
3972
4339
  const _sTIS = "startTimeInSeconds";
3973
4340
  const _sTOIN = "startTimeOffsetInNanos";
3974
4341
  const _t = "type";
@@ -3979,3 +4346,4 @@ const _tRI = "targetResourceId";
3979
4346
  const _tRT = "targetResourceType";
3980
4347
  const _tST = "timeSeriesType";
3981
4348
  const _tT = "traversalType";
4349
+ const _xaiaci = "x-amz-iotsitewise-assistant-conversation-id";
@@ -2,6 +2,7 @@ import packageInfo from "../package.json";
2
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
3
  import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
5
6
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
7
  import { invalidProvider } from "@smithy/invalid-dependency";
7
8
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
24
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
25
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
26
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
25
27
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
28
  region: config?.region ?? invalidProvider("Region is missing"),
27
29
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -3,6 +3,7 @@ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/cor
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
4
  import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
+ import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-node";
6
7
  import { Hash } from "@smithy/hash-node";
7
8
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
9
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
@@ -28,6 +29,7 @@ export const getRuntimeConfig = (config) => {
28
29
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
31
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
31
33
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
34
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
33
35
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),