@aws-sdk/client-iot-wireless 3.299.0 → 3.301.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 (168) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/IoTWireless.js +120 -0
  3. package/dist-cjs/commands/DeleteWirelessDeviceImportTaskCommand.js +45 -0
  4. package/dist-cjs/commands/DeregisterWirelessDeviceCommand.js +45 -0
  5. package/dist-cjs/commands/GetDeviceProfileCommand.js +2 -1
  6. package/dist-cjs/commands/GetWirelessDeviceImportTaskCommand.js +45 -0
  7. package/dist-cjs/commands/ListDevicesForWirelessDeviceImportTaskCommand.js +45 -0
  8. package/dist-cjs/commands/ListWirelessDeviceImportTasksCommand.js +45 -0
  9. package/dist-cjs/commands/StartSingleWirelessDeviceImportTaskCommand.js +45 -0
  10. package/dist-cjs/commands/StartWirelessDeviceImportTaskCommand.js +45 -0
  11. package/dist-cjs/commands/UpdateWirelessDeviceImportTaskCommand.js +45 -0
  12. package/dist-cjs/commands/index.js +8 -0
  13. package/dist-cjs/endpoint/ruleset.js +3 -3
  14. package/dist-cjs/models/models_0.js +49 -5
  15. package/dist-cjs/models/models_1.js +5 -1
  16. package/dist-cjs/protocols/Aws_restJson1.js +767 -18
  17. package/dist-es/IoTWireless.js +120 -0
  18. package/dist-es/commands/DeleteWirelessDeviceImportTaskCommand.js +41 -0
  19. package/dist-es/commands/DeregisterWirelessDeviceCommand.js +41 -0
  20. package/dist-es/commands/GetDeviceProfileCommand.js +2 -1
  21. package/dist-es/commands/GetWirelessDeviceImportTaskCommand.js +41 -0
  22. package/dist-es/commands/ListDevicesForWirelessDeviceImportTaskCommand.js +41 -0
  23. package/dist-es/commands/ListWirelessDeviceImportTasksCommand.js +41 -0
  24. package/dist-es/commands/StartSingleWirelessDeviceImportTaskCommand.js +41 -0
  25. package/dist-es/commands/StartWirelessDeviceImportTaskCommand.js +41 -0
  26. package/dist-es/commands/UpdateWirelessDeviceImportTaskCommand.js +41 -0
  27. package/dist-es/commands/index.js +8 -0
  28. package/dist-es/endpoint/ruleset.js +3 -3
  29. package/dist-es/models/models_0.js +45 -4
  30. package/dist-es/models/models_1.js +4 -0
  31. package/dist-es/protocols/Aws_restJson1.js +743 -10
  32. package/dist-types/IoTWireless.d.ts +65 -0
  33. package/dist-types/IoTWirelessClient.d.ts +10 -2
  34. package/dist-types/commands/AssociateAwsAccountWithPartnerAccountCommand.d.ts +13 -0
  35. package/dist-types/commands/AssociateMulticastGroupWithFuotaTaskCommand.d.ts +4 -0
  36. package/dist-types/commands/AssociateWirelessDeviceWithFuotaTaskCommand.d.ts +4 -0
  37. package/dist-types/commands/AssociateWirelessDeviceWithMulticastGroupCommand.d.ts +4 -0
  38. package/dist-types/commands/AssociateWirelessDeviceWithThingCommand.d.ts +4 -0
  39. package/dist-types/commands/AssociateWirelessGatewayWithCertificateCommand.d.ts +4 -0
  40. package/dist-types/commands/AssociateWirelessGatewayWithThingCommand.d.ts +4 -0
  41. package/dist-types/commands/CancelMulticastGroupSessionCommand.d.ts +3 -0
  42. package/dist-types/commands/CreateDestinationCommand.d.ts +14 -0
  43. package/dist-types/commands/CreateDeviceProfileCommand.d.ts +34 -0
  44. package/dist-types/commands/CreateFuotaTaskCommand.d.ts +19 -0
  45. package/dist-types/commands/CreateMulticastGroupCommand.d.ts +15 -0
  46. package/dist-types/commands/CreateNetworkAnalyzerConfigurationCommand.d.ts +21 -0
  47. package/dist-types/commands/CreateServiceProfileCommand.d.ts +15 -0
  48. package/dist-types/commands/CreateWirelessDeviceCommand.d.ts +67 -0
  49. package/dist-types/commands/CreateWirelessGatewayCommand.d.ts +32 -0
  50. package/dist-types/commands/CreateWirelessGatewayTaskCommand.d.ts +4 -0
  51. package/dist-types/commands/CreateWirelessGatewayTaskDefinitionCommand.d.ts +29 -0
  52. package/dist-types/commands/DeleteDestinationCommand.d.ts +3 -0
  53. package/dist-types/commands/DeleteDeviceProfileCommand.d.ts +3 -0
  54. package/dist-types/commands/DeleteFuotaTaskCommand.d.ts +3 -0
  55. package/dist-types/commands/DeleteMulticastGroupCommand.d.ts +3 -0
  56. package/dist-types/commands/DeleteNetworkAnalyzerConfigurationCommand.d.ts +3 -0
  57. package/dist-types/commands/DeleteQueuedMessagesCommand.d.ts +5 -0
  58. package/dist-types/commands/DeleteServiceProfileCommand.d.ts +3 -0
  59. package/dist-types/commands/DeleteWirelessDeviceCommand.d.ts +3 -0
  60. package/dist-types/commands/DeleteWirelessDeviceImportTaskCommand.d.ts +81 -0
  61. package/dist-types/commands/DeleteWirelessGatewayCommand.d.ts +3 -0
  62. package/dist-types/commands/DeleteWirelessGatewayTaskCommand.d.ts +3 -0
  63. package/dist-types/commands/DeleteWirelessGatewayTaskDefinitionCommand.d.ts +3 -0
  64. package/dist-types/commands/DeregisterWirelessDeviceCommand.d.ts +76 -0
  65. package/dist-types/commands/DisassociateAwsAccountFromPartnerAccountCommand.d.ts +4 -0
  66. package/dist-types/commands/DisassociateMulticastGroupFromFuotaTaskCommand.d.ts +4 -0
  67. package/dist-types/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.d.ts +4 -0
  68. package/dist-types/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +4 -0
  69. package/dist-types/commands/DisassociateWirelessDeviceFromThingCommand.d.ts +3 -0
  70. package/dist-types/commands/DisassociateWirelessGatewayFromCertificateCommand.d.ts +3 -0
  71. package/dist-types/commands/DisassociateWirelessGatewayFromThingCommand.d.ts +3 -0
  72. package/dist-types/commands/GetDestinationCommand.d.ts +3 -0
  73. package/dist-types/commands/GetDeviceProfileCommand.d.ts +3 -0
  74. package/dist-types/commands/GetEventConfigurationByResourceTypesCommand.d.ts +1 -0
  75. package/dist-types/commands/GetFuotaTaskCommand.d.ts +3 -0
  76. package/dist-types/commands/GetLogLevelsByResourceTypesCommand.d.ts +1 -0
  77. package/dist-types/commands/GetMulticastGroupCommand.d.ts +3 -0
  78. package/dist-types/commands/GetMulticastGroupSessionCommand.d.ts +3 -0
  79. package/dist-types/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +3 -0
  80. package/dist-types/commands/GetPartnerAccountCommand.d.ts +4 -0
  81. package/dist-types/commands/GetPositionCommand.d.ts +4 -0
  82. package/dist-types/commands/GetPositionConfigurationCommand.d.ts +4 -0
  83. package/dist-types/commands/GetPositionEstimateCommand.d.ts +144 -0
  84. package/dist-types/commands/GetResourceEventConfigurationCommand.d.ts +5 -0
  85. package/dist-types/commands/GetResourceLogLevelCommand.d.ts +4 -0
  86. package/dist-types/commands/GetResourcePositionCommand.d.ts +4 -0
  87. package/dist-types/commands/GetServiceEndpointCommand.d.ts +3 -0
  88. package/dist-types/commands/GetServiceProfileCommand.d.ts +3 -0
  89. package/dist-types/commands/GetWirelessDeviceCommand.d.ts +4 -0
  90. package/dist-types/commands/GetWirelessDeviceImportTaskCommand.d.ts +82 -0
  91. package/dist-types/commands/GetWirelessDeviceStatisticsCommand.d.ts +3 -0
  92. package/dist-types/commands/GetWirelessGatewayCertificateCommand.d.ts +3 -0
  93. package/dist-types/commands/GetWirelessGatewayCommand.d.ts +4 -0
  94. package/dist-types/commands/GetWirelessGatewayFirmwareInformationCommand.d.ts +3 -0
  95. package/dist-types/commands/GetWirelessGatewayStatisticsCommand.d.ts +3 -0
  96. package/dist-types/commands/GetWirelessGatewayTaskCommand.d.ts +3 -0
  97. package/dist-types/commands/GetWirelessGatewayTaskDefinitionCommand.d.ts +3 -0
  98. package/dist-types/commands/ListDestinationsCommand.d.ts +4 -0
  99. package/dist-types/commands/ListDeviceProfilesCommand.d.ts +5 -0
  100. package/dist-types/commands/ListDevicesForWirelessDeviceImportTaskCommand.d.ts +84 -0
  101. package/dist-types/commands/ListEventConfigurationsCommand.d.ts +5 -0
  102. package/dist-types/commands/ListFuotaTasksCommand.d.ts +4 -0
  103. package/dist-types/commands/ListMulticastGroupsByFuotaTaskCommand.d.ts +5 -0
  104. package/dist-types/commands/ListMulticastGroupsCommand.d.ts +4 -0
  105. package/dist-types/commands/ListNetworkAnalyzerConfigurationsCommand.d.ts +4 -0
  106. package/dist-types/commands/ListPartnerAccountsCommand.d.ts +4 -0
  107. package/dist-types/commands/ListPositionConfigurationsCommand.d.ts +5 -0
  108. package/dist-types/commands/ListQueuedMessagesCommand.d.ts +6 -0
  109. package/dist-types/commands/ListServiceProfilesCommand.d.ts +4 -0
  110. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  111. package/dist-types/commands/ListWirelessDeviceImportTasksCommand.d.ts +82 -0
  112. package/dist-types/commands/ListWirelessDevicesCommand.d.ts +12 -1
  113. package/dist-types/commands/ListWirelessGatewayTaskDefinitionsCommand.d.ts +6 -1
  114. package/dist-types/commands/ListWirelessGatewaysCommand.d.ts +5 -1
  115. package/dist-types/commands/PutPositionConfigurationCommand.d.ts +12 -1
  116. package/dist-types/commands/PutResourceLogLevelCommand.d.ts +6 -1
  117. package/dist-types/commands/ResetAllResourceLogLevelsCommand.d.ts +2 -1
  118. package/dist-types/commands/ResetResourceLogLevelCommand.d.ts +5 -1
  119. package/dist-types/commands/SendDataToMulticastGroupCommand.d.ts +9 -0
  120. package/dist-types/commands/SendDataToWirelessDeviceCommand.d.ts +25 -0
  121. package/dist-types/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +10 -0
  122. package/dist-types/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +10 -0
  123. package/dist-types/commands/StartFuotaTaskCommand.d.ts +6 -0
  124. package/dist-types/commands/StartMulticastGroupSessionCommand.d.ts +9 -0
  125. package/dist-types/commands/StartSingleWirelessDeviceImportTaskCommand.d.ts +92 -0
  126. package/dist-types/commands/StartWirelessDeviceImportTaskCommand.d.ts +92 -0
  127. package/dist-types/commands/TagResourceCommand.d.ts +9 -0
  128. package/dist-types/commands/TestWirelessDeviceCommand.d.ts +3 -0
  129. package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
  130. package/dist-types/commands/UpdateDestinationCommand.d.ts +7 -0
  131. package/dist-types/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +27 -0
  132. package/dist-types/commands/UpdateFuotaTaskCommand.d.ts +13 -0
  133. package/dist-types/commands/UpdateLogLevelsByResourceTypesCommand.d.ts +27 -0
  134. package/dist-types/commands/UpdateMulticastGroupCommand.d.ts +9 -0
  135. package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +20 -0
  136. package/dist-types/commands/UpdatePartnerAccountCommand.d.ts +7 -0
  137. package/dist-types/commands/UpdatePositionCommand.d.ts +7 -0
  138. package/dist-types/commands/UpdateResourceEventConfigurationCommand.d.ts +35 -0
  139. package/dist-types/commands/UpdateResourcePositionCommand.d.ts +5 -0
  140. package/dist-types/commands/UpdateWirelessDeviceCommand.d.ts +31 -0
  141. package/dist-types/commands/UpdateWirelessDeviceImportTaskCommand.d.ts +84 -0
  142. package/dist-types/commands/UpdateWirelessGatewayCommand.d.ts +13 -0
  143. package/dist-types/commands/index.d.ts +8 -0
  144. package/dist-types/models/models_0.d.ts +392 -286
  145. package/dist-types/models/models_1.d.ts +438 -1
  146. package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
  147. package/dist-types/ts3.4/IoTWireless.d.ts +148 -0
  148. package/dist-types/ts3.4/IoTWirelessClient.d.ts +48 -0
  149. package/dist-types/ts3.4/commands/DeleteWirelessDeviceImportTaskCommand.d.ts +41 -0
  150. package/dist-types/ts3.4/commands/DeregisterWirelessDeviceCommand.d.ts +41 -0
  151. package/dist-types/ts3.4/commands/GetWirelessDeviceImportTaskCommand.d.ts +41 -0
  152. package/dist-types/ts3.4/commands/ListDevicesForWirelessDeviceImportTaskCommand.d.ts +41 -0
  153. package/dist-types/ts3.4/commands/ListWirelessDeviceImportTasksCommand.d.ts +41 -0
  154. package/dist-types/ts3.4/commands/ListWirelessDevicesCommand.d.ts +2 -4
  155. package/dist-types/ts3.4/commands/ListWirelessGatewayTaskDefinitionsCommand.d.ts +1 -1
  156. package/dist-types/ts3.4/commands/ListWirelessGatewaysCommand.d.ts +1 -1
  157. package/dist-types/ts3.4/commands/PutPositionConfigurationCommand.d.ts +1 -1
  158. package/dist-types/ts3.4/commands/PutResourceLogLevelCommand.d.ts +1 -1
  159. package/dist-types/ts3.4/commands/ResetAllResourceLogLevelsCommand.d.ts +1 -1
  160. package/dist-types/ts3.4/commands/ResetResourceLogLevelCommand.d.ts +1 -1
  161. package/dist-types/ts3.4/commands/StartSingleWirelessDeviceImportTaskCommand.d.ts +41 -0
  162. package/dist-types/ts3.4/commands/StartWirelessDeviceImportTaskCommand.d.ts +41 -0
  163. package/dist-types/ts3.4/commands/UpdateWirelessDeviceImportTaskCommand.d.ts +41 -0
  164. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  165. package/dist-types/ts3.4/models/models_0.d.ts +135 -87
  166. package/dist-types/ts3.4/models/models_1.d.ts +131 -1
  167. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  168. package/package.json +8 -8
@@ -205,6 +205,9 @@ export const serializeAws_restJson1CreateDeviceProfileCommand = async (input, co
205
205
  ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
206
206
  ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) }),
207
207
  ...(input.Name != null && { Name: input.Name }),
208
+ ...(input.Sidewalk != null && {
209
+ Sidewalk: serializeAws_restJson1SidewalkCreateDeviceProfile(input.Sidewalk, context),
210
+ }),
208
211
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
209
212
  });
210
213
  return new __HttpRequest({
@@ -339,6 +342,9 @@ export const serializeAws_restJson1CreateWirelessDeviceCommand = async (input, c
339
342
  ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) }),
340
343
  ...(input.Name != null && { Name: input.Name }),
341
344
  ...(input.Positioning != null && { Positioning: input.Positioning }),
345
+ ...(input.Sidewalk != null && {
346
+ Sidewalk: serializeAws_restJson1SidewalkCreateWirelessDevice(input.Sidewalk, context),
347
+ }),
342
348
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
343
349
  ...(input.Type != null && { Type: input.Type }),
344
350
  });
@@ -559,6 +565,22 @@ export const serializeAws_restJson1DeleteWirelessDeviceCommand = async (input, c
559
565
  body,
560
566
  });
561
567
  };
568
+ export const serializeAws_restJson1DeleteWirelessDeviceImportTaskCommand = async (input, context) => {
569
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
570
+ const headers = {};
571
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}";
572
+ resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
573
+ let body;
574
+ return new __HttpRequest({
575
+ protocol,
576
+ hostname,
577
+ port,
578
+ method: "DELETE",
579
+ headers,
580
+ path: resolvedPath,
581
+ body,
582
+ });
583
+ };
562
584
  export const serializeAws_restJson1DeleteWirelessGatewayCommand = async (input, context) => {
563
585
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
564
586
  const headers = {};
@@ -607,6 +629,26 @@ export const serializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand =
607
629
  body,
608
630
  });
609
631
  };
632
+ export const serializeAws_restJson1DeregisterWirelessDeviceCommand = async (input, context) => {
633
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
634
+ const headers = {};
635
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}/deregister";
636
+ resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
637
+ const query = map({
638
+ WirelessDeviceType: [, input.WirelessDeviceType],
639
+ });
640
+ let body;
641
+ return new __HttpRequest({
642
+ protocol,
643
+ hostname,
644
+ port,
645
+ method: "PATCH",
646
+ headers,
647
+ path: resolvedPath,
648
+ query,
649
+ body,
650
+ });
651
+ };
610
652
  export const serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = async (input, context) => {
611
653
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
612
654
  const headers = {};
@@ -1065,6 +1107,22 @@ export const serializeAws_restJson1GetWirelessDeviceCommand = async (input, cont
1065
1107
  body,
1066
1108
  });
1067
1109
  };
1110
+ export const serializeAws_restJson1GetWirelessDeviceImportTaskCommand = async (input, context) => {
1111
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1112
+ const headers = {};
1113
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}";
1114
+ resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1115
+ let body;
1116
+ return new __HttpRequest({
1117
+ protocol,
1118
+ hostname,
1119
+ port,
1120
+ method: "GET",
1121
+ headers,
1122
+ path: resolvedPath,
1123
+ body,
1124
+ });
1125
+ };
1068
1126
  export const serializeAws_restJson1GetWirelessDeviceStatisticsCommand = async (input, context) => {
1069
1127
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1070
1128
  const headers = {};
@@ -1211,6 +1269,29 @@ export const serializeAws_restJson1ListDeviceProfilesCommand = async (input, con
1211
1269
  const query = map({
1212
1270
  nextToken: [, input.NextToken],
1213
1271
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1272
+ deviceProfileType: [, input.DeviceProfileType],
1273
+ });
1274
+ let body;
1275
+ return new __HttpRequest({
1276
+ protocol,
1277
+ hostname,
1278
+ port,
1279
+ method: "GET",
1280
+ headers,
1281
+ path: resolvedPath,
1282
+ query,
1283
+ body,
1284
+ });
1285
+ };
1286
+ export const serializeAws_restJson1ListDevicesForWirelessDeviceImportTaskCommand = async (input, context) => {
1287
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1288
+ const headers = {};
1289
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task";
1290
+ const query = map({
1291
+ id: [, __expectNonNull(input.Id, `Id`)],
1292
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1293
+ nextToken: [, input.NextToken],
1294
+ status: [, input.Status],
1214
1295
  });
1215
1296
  let body;
1216
1297
  return new __HttpRequest({
@@ -1428,6 +1509,26 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
1428
1509
  body,
1429
1510
  });
1430
1511
  };
1512
+ export const serializeAws_restJson1ListWirelessDeviceImportTasksCommand = async (input, context) => {
1513
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1514
+ const headers = {};
1515
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_tasks";
1516
+ const query = map({
1517
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1518
+ nextToken: [, input.NextToken],
1519
+ });
1520
+ let body;
1521
+ return new __HttpRequest({
1522
+ protocol,
1523
+ hostname,
1524
+ port,
1525
+ method: "GET",
1526
+ headers,
1527
+ path: resolvedPath,
1528
+ query,
1529
+ body,
1530
+ });
1531
+ };
1431
1532
  export const serializeAws_restJson1ListWirelessDevicesCommand = async (input, context) => {
1432
1533
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1433
1534
  const headers = {};
@@ -1722,6 +1823,55 @@ export const serializeAws_restJson1StartMulticastGroupSessionCommand = async (in
1722
1823
  body,
1723
1824
  });
1724
1825
  };
1826
+ export const serializeAws_restJson1StartSingleWirelessDeviceImportTaskCommand = async (input, context) => {
1827
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1828
+ const headers = {
1829
+ "content-type": "application/json",
1830
+ };
1831
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_single_device_import_task";
1832
+ let body;
1833
+ body = JSON.stringify({
1834
+ ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
1835
+ ...(input.DestinationName != null && { DestinationName: input.DestinationName }),
1836
+ ...(input.DeviceName != null && { DeviceName: input.DeviceName }),
1837
+ ...(input.Sidewalk != null && {
1838
+ Sidewalk: serializeAws_restJson1SidewalkSingleStartImportInfo(input.Sidewalk, context),
1839
+ }),
1840
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
1841
+ });
1842
+ return new __HttpRequest({
1843
+ protocol,
1844
+ hostname,
1845
+ port,
1846
+ method: "POST",
1847
+ headers,
1848
+ path: resolvedPath,
1849
+ body,
1850
+ });
1851
+ };
1852
+ export const serializeAws_restJson1StartWirelessDeviceImportTaskCommand = async (input, context) => {
1853
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1854
+ const headers = {
1855
+ "content-type": "application/json",
1856
+ };
1857
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task";
1858
+ let body;
1859
+ body = JSON.stringify({
1860
+ ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
1861
+ ...(input.DestinationName != null && { DestinationName: input.DestinationName }),
1862
+ ...(input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkStartImportInfo(input.Sidewalk, context) }),
1863
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
1864
+ });
1865
+ return new __HttpRequest({
1866
+ protocol,
1867
+ hostname,
1868
+ port,
1869
+ method: "POST",
1870
+ headers,
1871
+ path: resolvedPath,
1872
+ body,
1873
+ });
1874
+ };
1725
1875
  export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1726
1876
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1727
1877
  const headers = {
@@ -2093,6 +2243,29 @@ export const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, c
2093
2243
  body,
2094
2244
  });
2095
2245
  };
2246
+ export const serializeAws_restJson1UpdateWirelessDeviceImportTaskCommand = async (input, context) => {
2247
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2248
+ const headers = {
2249
+ "content-type": "application/json",
2250
+ };
2251
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}";
2252
+ resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
2253
+ let body;
2254
+ body = JSON.stringify({
2255
+ ...(input.Sidewalk != null && {
2256
+ Sidewalk: serializeAws_restJson1SidewalkUpdateImportInfo(input.Sidewalk, context),
2257
+ }),
2258
+ });
2259
+ return new __HttpRequest({
2260
+ protocol,
2261
+ hostname,
2262
+ port,
2263
+ method: "PATCH",
2264
+ headers,
2265
+ path: resolvedPath,
2266
+ body,
2267
+ });
2268
+ };
2096
2269
  export const serializeAws_restJson1UpdateWirelessGatewayCommand = async (input, context) => {
2097
2270
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2098
2271
  const headers = {
@@ -3342,6 +3515,51 @@ const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output,
3342
3515
  });
3343
3516
  }
3344
3517
  };
3518
+ export const deserializeAws_restJson1DeleteWirelessDeviceImportTaskCommand = async (output, context) => {
3519
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
3520
+ return deserializeAws_restJson1DeleteWirelessDeviceImportTaskCommandError(output, context);
3521
+ }
3522
+ const contents = map({
3523
+ $metadata: deserializeMetadata(output),
3524
+ });
3525
+ await collectBody(output.body, context);
3526
+ return contents;
3527
+ };
3528
+ const deserializeAws_restJson1DeleteWirelessDeviceImportTaskCommandError = async (output, context) => {
3529
+ const parsedOutput = {
3530
+ ...output,
3531
+ body: await parseErrorBody(output.body, context),
3532
+ };
3533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3534
+ switch (errorCode) {
3535
+ case "AccessDeniedException":
3536
+ case "com.amazonaws.iotwireless#AccessDeniedException":
3537
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3538
+ case "ConflictException":
3539
+ case "com.amazonaws.iotwireless#ConflictException":
3540
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3541
+ case "InternalServerException":
3542
+ case "com.amazonaws.iotwireless#InternalServerException":
3543
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3544
+ case "ResourceNotFoundException":
3545
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
3546
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3547
+ case "ThrottlingException":
3548
+ case "com.amazonaws.iotwireless#ThrottlingException":
3549
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3550
+ case "ValidationException":
3551
+ case "com.amazonaws.iotwireless#ValidationException":
3552
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3553
+ default:
3554
+ const parsedBody = parsedOutput.body;
3555
+ throwDefaultError({
3556
+ output,
3557
+ parsedBody,
3558
+ exceptionCtor: __BaseException,
3559
+ errorCode,
3560
+ });
3561
+ }
3562
+ };
3345
3563
  export const deserializeAws_restJson1DeleteWirelessGatewayCommand = async (output, context) => {
3346
3564
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3347
3565
  return deserializeAws_restJson1DeleteWirelessGatewayCommandError(output, context);
@@ -3468,6 +3686,45 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError =
3468
3686
  });
3469
3687
  }
3470
3688
  };
3689
+ export const deserializeAws_restJson1DeregisterWirelessDeviceCommand = async (output, context) => {
3690
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3691
+ return deserializeAws_restJson1DeregisterWirelessDeviceCommandError(output, context);
3692
+ }
3693
+ const contents = map({
3694
+ $metadata: deserializeMetadata(output),
3695
+ });
3696
+ await collectBody(output.body, context);
3697
+ return contents;
3698
+ };
3699
+ const deserializeAws_restJson1DeregisterWirelessDeviceCommandError = async (output, context) => {
3700
+ const parsedOutput = {
3701
+ ...output,
3702
+ body: await parseErrorBody(output.body, context),
3703
+ };
3704
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3705
+ switch (errorCode) {
3706
+ case "InternalServerException":
3707
+ case "com.amazonaws.iotwireless#InternalServerException":
3708
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3709
+ case "ResourceNotFoundException":
3710
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
3711
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3712
+ case "ThrottlingException":
3713
+ case "com.amazonaws.iotwireless#ThrottlingException":
3714
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3715
+ case "ValidationException":
3716
+ case "com.amazonaws.iotwireless#ValidationException":
3717
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3718
+ default:
3719
+ const parsedBody = parsedOutput.body;
3720
+ throwDefaultError({
3721
+ output,
3722
+ parsedBody,
3723
+ exceptionCtor: __BaseException,
3724
+ errorCode,
3725
+ });
3726
+ }
3727
+ };
3471
3728
  export const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = async (output, context) => {
3472
3729
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3473
3730
  return deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandError(output, context);
@@ -3848,6 +4105,9 @@ export const deserializeAws_restJson1GetDeviceProfileCommand = async (output, co
3848
4105
  if (data.Name != null) {
3849
4106
  contents.Name = __expectString(data.Name);
3850
4107
  }
4108
+ if (data.Sidewalk != null) {
4109
+ contents.Sidewalk = deserializeAws_restJson1SidewalkGetDeviceProfile(data.Sidewalk, context);
4110
+ }
3851
4111
  return contents;
3852
4112
  };
3853
4113
  const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, context) => {
@@ -4748,29 +5008,107 @@ const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, con
4748
5008
  });
4749
5009
  }
4750
5010
  };
4751
- export const deserializeAws_restJson1GetWirelessDeviceStatisticsCommand = async (output, context) => {
5011
+ export const deserializeAws_restJson1GetWirelessDeviceImportTaskCommand = async (output, context) => {
4752
5012
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4753
- return deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError(output, context);
5013
+ return deserializeAws_restJson1GetWirelessDeviceImportTaskCommandError(output, context);
4754
5014
  }
4755
5015
  const contents = map({
4756
5016
  $metadata: deserializeMetadata(output),
4757
5017
  });
4758
5018
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4759
- if (data.LastUplinkReceivedAt != null) {
4760
- contents.LastUplinkReceivedAt = __expectString(data.LastUplinkReceivedAt);
5019
+ if (data.Arn != null) {
5020
+ contents.Arn = __expectString(data.Arn);
4761
5021
  }
4762
- if (data.LoRaWAN != null) {
4763
- contents.LoRaWAN = deserializeAws_restJson1LoRaWANDeviceMetadata(data.LoRaWAN, context);
5022
+ if (data.CreationTime != null) {
5023
+ contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreationTime));
5024
+ }
5025
+ if (data.DestinationName != null) {
5026
+ contents.DestinationName = __expectString(data.DestinationName);
5027
+ }
5028
+ if (data.FailedImportedDeviceCount != null) {
5029
+ contents.FailedImportedDeviceCount = __expectLong(data.FailedImportedDeviceCount);
5030
+ }
5031
+ if (data.Id != null) {
5032
+ contents.Id = __expectString(data.Id);
5033
+ }
5034
+ if (data.InitializedImportedDeviceCount != null) {
5035
+ contents.InitializedImportedDeviceCount = __expectLong(data.InitializedImportedDeviceCount);
5036
+ }
5037
+ if (data.OnboardedImportedDeviceCount != null) {
5038
+ contents.OnboardedImportedDeviceCount = __expectLong(data.OnboardedImportedDeviceCount);
5039
+ }
5040
+ if (data.PendingImportedDeviceCount != null) {
5041
+ contents.PendingImportedDeviceCount = __expectLong(data.PendingImportedDeviceCount);
4764
5042
  }
4765
5043
  if (data.Sidewalk != null) {
4766
- contents.Sidewalk = deserializeAws_restJson1SidewalkDeviceMetadata(data.Sidewalk, context);
5044
+ contents.Sidewalk = deserializeAws_restJson1SidewalkGetStartImportInfo(data.Sidewalk, context);
4767
5045
  }
4768
- if (data.WirelessDeviceId != null) {
4769
- contents.WirelessDeviceId = __expectString(data.WirelessDeviceId);
5046
+ if (data.Status != null) {
5047
+ contents.Status = __expectString(data.Status);
5048
+ }
5049
+ if (data.StatusReason != null) {
5050
+ contents.StatusReason = __expectString(data.StatusReason);
4770
5051
  }
4771
5052
  return contents;
4772
5053
  };
4773
- const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (output, context) => {
5054
+ const deserializeAws_restJson1GetWirelessDeviceImportTaskCommandError = async (output, context) => {
5055
+ const parsedOutput = {
5056
+ ...output,
5057
+ body: await parseErrorBody(output.body, context),
5058
+ };
5059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5060
+ switch (errorCode) {
5061
+ case "AccessDeniedException":
5062
+ case "com.amazonaws.iotwireless#AccessDeniedException":
5063
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5064
+ case "ConflictException":
5065
+ case "com.amazonaws.iotwireless#ConflictException":
5066
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
5067
+ case "InternalServerException":
5068
+ case "com.amazonaws.iotwireless#InternalServerException":
5069
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5070
+ case "ResourceNotFoundException":
5071
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
5072
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5073
+ case "ThrottlingException":
5074
+ case "com.amazonaws.iotwireless#ThrottlingException":
5075
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5076
+ case "ValidationException":
5077
+ case "com.amazonaws.iotwireless#ValidationException":
5078
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5079
+ default:
5080
+ const parsedBody = parsedOutput.body;
5081
+ throwDefaultError({
5082
+ output,
5083
+ parsedBody,
5084
+ exceptionCtor: __BaseException,
5085
+ errorCode,
5086
+ });
5087
+ }
5088
+ };
5089
+ export const deserializeAws_restJson1GetWirelessDeviceStatisticsCommand = async (output, context) => {
5090
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5091
+ return deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError(output, context);
5092
+ }
5093
+ const contents = map({
5094
+ $metadata: deserializeMetadata(output),
5095
+ });
5096
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5097
+ if (data.LastUplinkReceivedAt != null) {
5098
+ contents.LastUplinkReceivedAt = __expectString(data.LastUplinkReceivedAt);
5099
+ }
5100
+ if (data.LoRaWAN != null) {
5101
+ contents.LoRaWAN = deserializeAws_restJson1LoRaWANDeviceMetadata(data.LoRaWAN, context);
5102
+ }
5103
+ if (data.Sidewalk != null) {
5104
+ contents.Sidewalk = deserializeAws_restJson1SidewalkDeviceMetadata(data.Sidewalk, context);
5105
+ }
5106
+ if (data.WirelessDeviceId != null) {
5107
+ contents.WirelessDeviceId = __expectString(data.WirelessDeviceId);
5108
+ }
5109
+ return contents;
5110
+ };
5111
+ const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (output, context) => {
4774
5112
  const parsedOutput = {
4775
5113
  ...output,
4776
5114
  body: await parseErrorBody(output.body, context),
@@ -5210,6 +5548,60 @@ const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, co
5210
5548
  });
5211
5549
  }
5212
5550
  };
5551
+ export const deserializeAws_restJson1ListDevicesForWirelessDeviceImportTaskCommand = async (output, context) => {
5552
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5553
+ return deserializeAws_restJson1ListDevicesForWirelessDeviceImportTaskCommandError(output, context);
5554
+ }
5555
+ const contents = map({
5556
+ $metadata: deserializeMetadata(output),
5557
+ });
5558
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5559
+ if (data.DestinationName != null) {
5560
+ contents.DestinationName = __expectString(data.DestinationName);
5561
+ }
5562
+ if (data.ImportedWirelessDeviceList != null) {
5563
+ contents.ImportedWirelessDeviceList = deserializeAws_restJson1ImportedWirelessDeviceList(data.ImportedWirelessDeviceList, context);
5564
+ }
5565
+ if (data.NextToken != null) {
5566
+ contents.NextToken = __expectString(data.NextToken);
5567
+ }
5568
+ return contents;
5569
+ };
5570
+ const deserializeAws_restJson1ListDevicesForWirelessDeviceImportTaskCommandError = async (output, context) => {
5571
+ const parsedOutput = {
5572
+ ...output,
5573
+ body: await parseErrorBody(output.body, context),
5574
+ };
5575
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5576
+ switch (errorCode) {
5577
+ case "AccessDeniedException":
5578
+ case "com.amazonaws.iotwireless#AccessDeniedException":
5579
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5580
+ case "ConflictException":
5581
+ case "com.amazonaws.iotwireless#ConflictException":
5582
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
5583
+ case "InternalServerException":
5584
+ case "com.amazonaws.iotwireless#InternalServerException":
5585
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5586
+ case "ResourceNotFoundException":
5587
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
5588
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5589
+ case "ThrottlingException":
5590
+ case "com.amazonaws.iotwireless#ThrottlingException":
5591
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5592
+ case "ValidationException":
5593
+ case "com.amazonaws.iotwireless#ValidationException":
5594
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5595
+ default:
5596
+ const parsedBody = parsedOutput.body;
5597
+ throwDefaultError({
5598
+ output,
5599
+ parsedBody,
5600
+ exceptionCtor: __BaseException,
5601
+ errorCode,
5602
+ });
5603
+ }
5604
+ };
5213
5605
  export const deserializeAws_restJson1ListEventConfigurationsCommand = async (output, context) => {
5214
5606
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5215
5607
  return deserializeAws_restJson1ListEventConfigurationsCommandError(output, context);
@@ -5666,6 +6058,57 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
5666
6058
  });
5667
6059
  }
5668
6060
  };
6061
+ export const deserializeAws_restJson1ListWirelessDeviceImportTasksCommand = async (output, context) => {
6062
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6063
+ return deserializeAws_restJson1ListWirelessDeviceImportTasksCommandError(output, context);
6064
+ }
6065
+ const contents = map({
6066
+ $metadata: deserializeMetadata(output),
6067
+ });
6068
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6069
+ if (data.NextToken != null) {
6070
+ contents.NextToken = __expectString(data.NextToken);
6071
+ }
6072
+ if (data.WirelessDeviceImportTaskList != null) {
6073
+ contents.WirelessDeviceImportTaskList = deserializeAws_restJson1WirelessDeviceImportTaskList(data.WirelessDeviceImportTaskList, context);
6074
+ }
6075
+ return contents;
6076
+ };
6077
+ const deserializeAws_restJson1ListWirelessDeviceImportTasksCommandError = async (output, context) => {
6078
+ const parsedOutput = {
6079
+ ...output,
6080
+ body: await parseErrorBody(output.body, context),
6081
+ };
6082
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6083
+ switch (errorCode) {
6084
+ case "AccessDeniedException":
6085
+ case "com.amazonaws.iotwireless#AccessDeniedException":
6086
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
6087
+ case "ConflictException":
6088
+ case "com.amazonaws.iotwireless#ConflictException":
6089
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
6090
+ case "InternalServerException":
6091
+ case "com.amazonaws.iotwireless#InternalServerException":
6092
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
6093
+ case "ResourceNotFoundException":
6094
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
6095
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
6096
+ case "ThrottlingException":
6097
+ case "com.amazonaws.iotwireless#ThrottlingException":
6098
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
6099
+ case "ValidationException":
6100
+ case "com.amazonaws.iotwireless#ValidationException":
6101
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
6102
+ default:
6103
+ const parsedBody = parsedOutput.body;
6104
+ throwDefaultError({
6105
+ output,
6106
+ parsedBody,
6107
+ exceptionCtor: __BaseException,
6108
+ errorCode,
6109
+ });
6110
+ }
6111
+ };
5669
6112
  export const deserializeAws_restJson1ListWirelessDevicesCommand = async (output, context) => {
5670
6113
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5671
6114
  return deserializeAws_restJson1ListWirelessDevicesCommandError(output, context);
@@ -6233,6 +6676,108 @@ const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (ou
6233
6676
  });
6234
6677
  }
6235
6678
  };
6679
+ export const deserializeAws_restJson1StartSingleWirelessDeviceImportTaskCommand = async (output, context) => {
6680
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
6681
+ return deserializeAws_restJson1StartSingleWirelessDeviceImportTaskCommandError(output, context);
6682
+ }
6683
+ const contents = map({
6684
+ $metadata: deserializeMetadata(output),
6685
+ });
6686
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6687
+ if (data.Arn != null) {
6688
+ contents.Arn = __expectString(data.Arn);
6689
+ }
6690
+ if (data.Id != null) {
6691
+ contents.Id = __expectString(data.Id);
6692
+ }
6693
+ return contents;
6694
+ };
6695
+ const deserializeAws_restJson1StartSingleWirelessDeviceImportTaskCommandError = async (output, context) => {
6696
+ const parsedOutput = {
6697
+ ...output,
6698
+ body: await parseErrorBody(output.body, context),
6699
+ };
6700
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6701
+ switch (errorCode) {
6702
+ case "AccessDeniedException":
6703
+ case "com.amazonaws.iotwireless#AccessDeniedException":
6704
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
6705
+ case "ConflictException":
6706
+ case "com.amazonaws.iotwireless#ConflictException":
6707
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
6708
+ case "InternalServerException":
6709
+ case "com.amazonaws.iotwireless#InternalServerException":
6710
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
6711
+ case "ResourceNotFoundException":
6712
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
6713
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
6714
+ case "ThrottlingException":
6715
+ case "com.amazonaws.iotwireless#ThrottlingException":
6716
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
6717
+ case "ValidationException":
6718
+ case "com.amazonaws.iotwireless#ValidationException":
6719
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
6720
+ default:
6721
+ const parsedBody = parsedOutput.body;
6722
+ throwDefaultError({
6723
+ output,
6724
+ parsedBody,
6725
+ exceptionCtor: __BaseException,
6726
+ errorCode,
6727
+ });
6728
+ }
6729
+ };
6730
+ export const deserializeAws_restJson1StartWirelessDeviceImportTaskCommand = async (output, context) => {
6731
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
6732
+ return deserializeAws_restJson1StartWirelessDeviceImportTaskCommandError(output, context);
6733
+ }
6734
+ const contents = map({
6735
+ $metadata: deserializeMetadata(output),
6736
+ });
6737
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6738
+ if (data.Arn != null) {
6739
+ contents.Arn = __expectString(data.Arn);
6740
+ }
6741
+ if (data.Id != null) {
6742
+ contents.Id = __expectString(data.Id);
6743
+ }
6744
+ return contents;
6745
+ };
6746
+ const deserializeAws_restJson1StartWirelessDeviceImportTaskCommandError = async (output, context) => {
6747
+ const parsedOutput = {
6748
+ ...output,
6749
+ body: await parseErrorBody(output.body, context),
6750
+ };
6751
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6752
+ switch (errorCode) {
6753
+ case "AccessDeniedException":
6754
+ case "com.amazonaws.iotwireless#AccessDeniedException":
6755
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
6756
+ case "ConflictException":
6757
+ case "com.amazonaws.iotwireless#ConflictException":
6758
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
6759
+ case "InternalServerException":
6760
+ case "com.amazonaws.iotwireless#InternalServerException":
6761
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
6762
+ case "ResourceNotFoundException":
6763
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
6764
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
6765
+ case "ThrottlingException":
6766
+ case "com.amazonaws.iotwireless#ThrottlingException":
6767
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
6768
+ case "ValidationException":
6769
+ case "com.amazonaws.iotwireless#ValidationException":
6770
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
6771
+ default:
6772
+ const parsedBody = parsedOutput.body;
6773
+ throwDefaultError({
6774
+ output,
6775
+ parsedBody,
6776
+ exceptionCtor: __BaseException,
6777
+ errorCode,
6778
+ });
6779
+ }
6780
+ };
6236
6781
  export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
6237
6782
  if (output.statusCode !== 204 && output.statusCode >= 300) {
6238
6783
  return deserializeAws_restJson1TagResourceCommandError(output, context);
@@ -6830,6 +7375,51 @@ const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output,
6830
7375
  });
6831
7376
  }
6832
7377
  };
7378
+ export const deserializeAws_restJson1UpdateWirelessDeviceImportTaskCommand = async (output, context) => {
7379
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
7380
+ return deserializeAws_restJson1UpdateWirelessDeviceImportTaskCommandError(output, context);
7381
+ }
7382
+ const contents = map({
7383
+ $metadata: deserializeMetadata(output),
7384
+ });
7385
+ await collectBody(output.body, context);
7386
+ return contents;
7387
+ };
7388
+ const deserializeAws_restJson1UpdateWirelessDeviceImportTaskCommandError = async (output, context) => {
7389
+ const parsedOutput = {
7390
+ ...output,
7391
+ body: await parseErrorBody(output.body, context),
7392
+ };
7393
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7394
+ switch (errorCode) {
7395
+ case "AccessDeniedException":
7396
+ case "com.amazonaws.iotwireless#AccessDeniedException":
7397
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
7398
+ case "ConflictException":
7399
+ case "com.amazonaws.iotwireless#ConflictException":
7400
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
7401
+ case "InternalServerException":
7402
+ case "com.amazonaws.iotwireless#InternalServerException":
7403
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
7404
+ case "ResourceNotFoundException":
7405
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
7406
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
7407
+ case "ThrottlingException":
7408
+ case "com.amazonaws.iotwireless#ThrottlingException":
7409
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
7410
+ case "ValidationException":
7411
+ case "com.amazonaws.iotwireless#ValidationException":
7412
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
7413
+ default:
7414
+ const parsedBody = parsedOutput.body;
7415
+ throwDefaultError({
7416
+ output,
7417
+ parsedBody,
7418
+ exceptionCtor: __BaseException,
7419
+ errorCode,
7420
+ });
7421
+ }
7422
+ };
6833
7423
  export const deserializeAws_restJson1UpdateWirelessGatewayCommand = async (output, context) => {
6834
7424
  if (output.statusCode !== 204 && output.statusCode >= 300) {
6835
7425
  return deserializeAws_restJson1UpdateWirelessGatewayCommandError(output, context);
@@ -7531,6 +8121,14 @@ const serializeAws_restJson1SidewalkAccountInfo = (input, context) => {
7531
8121
  ...(input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }),
7532
8122
  };
7533
8123
  };
8124
+ const serializeAws_restJson1SidewalkCreateDeviceProfile = (input, context) => {
8125
+ return {};
8126
+ };
8127
+ const serializeAws_restJson1SidewalkCreateWirelessDevice = (input, context) => {
8128
+ return {
8129
+ ...(input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId }),
8130
+ };
8131
+ };
7534
8132
  const serializeAws_restJson1SidewalkEventNotificationConfigurations = (input, context) => {
7535
8133
  return {
7536
8134
  ...(input.AmazonIdEventTopic != null && { AmazonIdEventTopic: input.AmazonIdEventTopic }),
@@ -7548,11 +8146,27 @@ const serializeAws_restJson1SidewalkSendDataToDevice = (input, context) => {
7548
8146
  ...(input.Seq != null && { Seq: input.Seq }),
7549
8147
  };
7550
8148
  };
8149
+ const serializeAws_restJson1SidewalkSingleStartImportInfo = (input, context) => {
8150
+ return {
8151
+ ...(input.SidewalkManufacturingSn != null && { SidewalkManufacturingSn: input.SidewalkManufacturingSn }),
8152
+ };
8153
+ };
8154
+ const serializeAws_restJson1SidewalkStartImportInfo = (input, context) => {
8155
+ return {
8156
+ ...(input.DeviceCreationFile != null && { DeviceCreationFile: input.DeviceCreationFile }),
8157
+ ...(input.Role != null && { Role: input.Role }),
8158
+ };
8159
+ };
7551
8160
  const serializeAws_restJson1SidewalkUpdateAccount = (input, context) => {
7552
8161
  return {
7553
8162
  ...(input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }),
7554
8163
  };
7555
8164
  };
8165
+ const serializeAws_restJson1SidewalkUpdateImportInfo = (input, context) => {
8166
+ return {
8167
+ ...(input.DeviceCreationFile != null && { DeviceCreationFile: input.DeviceCreationFile }),
8168
+ };
8169
+ };
7556
8170
  const serializeAws_restJson1SubBands = (input, context) => {
7557
8171
  return input
7558
8172
  .filter((e) => e != null)
@@ -7866,6 +8480,26 @@ const deserializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = (
7866
8480
  : undefined,
7867
8481
  };
7868
8482
  };
8483
+ const deserializeAws_restJson1DakCertificateMetadata = (output, context) => {
8484
+ return {
8485
+ ApId: __expectString(output.ApId),
8486
+ CertificateId: __expectString(output.CertificateId),
8487
+ DeviceTypeId: __expectString(output.DeviceTypeId),
8488
+ FactorySupport: __expectBoolean(output.FactorySupport),
8489
+ MaxAllowedSignature: __expectInt32(output.MaxAllowedSignature),
8490
+ };
8491
+ };
8492
+ const deserializeAws_restJson1DakCertificateMetadataList = (output, context) => {
8493
+ const retVal = (output || [])
8494
+ .filter((e) => e != null)
8495
+ .map((entry) => {
8496
+ if (entry === null) {
8497
+ return null;
8498
+ }
8499
+ return deserializeAws_restJson1DakCertificateMetadata(entry, context);
8500
+ });
8501
+ return retVal;
8502
+ };
7869
8503
  const deserializeAws_restJson1DestinationList = (output, context) => {
7870
8504
  const retVal = (output || [])
7871
8505
  .filter((e) => e != null)
@@ -7898,6 +8532,17 @@ const deserializeAws_restJson1DeviceCertificateList = (output, context) => {
7898
8532
  });
7899
8533
  return retVal;
7900
8534
  };
8535
+ const deserializeAws_restJson1DeviceCreationFileList = (output, context) => {
8536
+ const retVal = (output || [])
8537
+ .filter((e) => e != null)
8538
+ .map((entry) => {
8539
+ if (entry === null) {
8540
+ return null;
8541
+ }
8542
+ return __expectString(entry);
8543
+ });
8544
+ return retVal;
8545
+ };
7901
8546
  const deserializeAws_restJson1DeviceProfile = (output, context) => {
7902
8547
  return {
7903
8548
  Arn: __expectString(output.Arn),
@@ -8043,6 +8688,32 @@ const deserializeAws_restJson1GatewayListItem = (output, context) => {
8043
8688
  GatewayId: __expectString(output.GatewayId),
8044
8689
  };
8045
8690
  };
8691
+ const deserializeAws_restJson1ImportedSidewalkDevice = (output, context) => {
8692
+ return {
8693
+ LastUpdateTime: output.LastUpdateTime != null
8694
+ ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.LastUpdateTime))
8695
+ : undefined,
8696
+ OnboardingStatus: __expectString(output.OnboardingStatus),
8697
+ OnboardingStatusReason: __expectString(output.OnboardingStatusReason),
8698
+ SidewalkManufacturingSn: __expectString(output.SidewalkManufacturingSn),
8699
+ };
8700
+ };
8701
+ const deserializeAws_restJson1ImportedWirelessDevice = (output, context) => {
8702
+ return {
8703
+ Sidewalk: output.Sidewalk != null ? deserializeAws_restJson1ImportedSidewalkDevice(output.Sidewalk, context) : undefined,
8704
+ };
8705
+ };
8706
+ const deserializeAws_restJson1ImportedWirelessDeviceList = (output, context) => {
8707
+ const retVal = (output || [])
8708
+ .filter((e) => e != null)
8709
+ .map((entry) => {
8710
+ if (entry === null) {
8711
+ return null;
8712
+ }
8713
+ return deserializeAws_restJson1ImportedWirelessDevice(entry, context);
8714
+ });
8715
+ return retVal;
8716
+ };
8046
8717
  const deserializeAws_restJson1JoinEuiFilters = (output, context) => {
8047
8718
  const retVal = (output || [])
8048
8719
  .filter((e) => e != null)
@@ -8415,6 +9086,17 @@ const deserializeAws_restJson1PositionSolverDetails = (output, context) => {
8415
9086
  SemtechGnss: output.SemtechGnss != null ? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context) : undefined,
8416
9087
  };
8417
9088
  };
9089
+ const deserializeAws_restJson1PrivateKeysList = (output, context) => {
9090
+ const retVal = (output || [])
9091
+ .filter((e) => e != null)
9092
+ .map((entry) => {
9093
+ if (entry === null) {
9094
+ return null;
9095
+ }
9096
+ return deserializeAws_restJson1CertificateList(entry, context);
9097
+ });
9098
+ return retVal;
9099
+ };
8418
9100
  const deserializeAws_restJson1ProximityEventConfiguration = (output, context) => {
8419
9101
  return {
8420
9102
  Sidewalk: output.Sidewalk != null
@@ -8497,11 +9179,15 @@ const deserializeAws_restJson1SidewalkAccountList = (output, context) => {
8497
9179
  const deserializeAws_restJson1SidewalkDevice = (output, context) => {
8498
9180
  return {
8499
9181
  AmazonId: __expectString(output.AmazonId),
9182
+ CertificateId: __expectString(output.CertificateId),
8500
9183
  DeviceCertificates: output.DeviceCertificates != null
8501
9184
  ? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
8502
9185
  : undefined,
9186
+ DeviceProfileId: __expectString(output.DeviceProfileId),
9187
+ PrivateKeys: output.PrivateKeys != null ? deserializeAws_restJson1PrivateKeysList(output.PrivateKeys, context) : undefined,
8503
9188
  SidewalkId: __expectString(output.SidewalkId),
8504
9189
  SidewalkManufacturingSn: __expectString(output.SidewalkManufacturingSn),
9190
+ Status: __expectString(output.Status),
8505
9191
  };
8506
9192
  };
8507
9193
  const deserializeAws_restJson1SidewalkDeviceMetadata = (output, context) => {
@@ -8517,14 +9203,33 @@ const deserializeAws_restJson1SidewalkEventNotificationConfigurations = (output,
8517
9203
  AmazonIdEventTopic: __expectString(output.AmazonIdEventTopic),
8518
9204
  };
8519
9205
  };
9206
+ const deserializeAws_restJson1SidewalkGetDeviceProfile = (output, context) => {
9207
+ return {
9208
+ ApplicationServerPublicKey: __expectString(output.ApplicationServerPublicKey),
9209
+ DakCertificateMetadata: output.DakCertificateMetadata != null
9210
+ ? deserializeAws_restJson1DakCertificateMetadataList(output.DakCertificateMetadata, context)
9211
+ : undefined,
9212
+ QualificationStatus: __expectBoolean(output.QualificationStatus),
9213
+ };
9214
+ };
9215
+ const deserializeAws_restJson1SidewalkGetStartImportInfo = (output, context) => {
9216
+ return {
9217
+ DeviceCreationFileList: output.DeviceCreationFileList != null
9218
+ ? deserializeAws_restJson1DeviceCreationFileList(output.DeviceCreationFileList, context)
9219
+ : undefined,
9220
+ Role: __expectString(output.Role),
9221
+ };
9222
+ };
8520
9223
  const deserializeAws_restJson1SidewalkListDevice = (output, context) => {
8521
9224
  return {
8522
9225
  AmazonId: __expectString(output.AmazonId),
8523
9226
  DeviceCertificates: output.DeviceCertificates != null
8524
9227
  ? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
8525
9228
  : undefined,
9229
+ DeviceProfileId: __expectString(output.DeviceProfileId),
8526
9230
  SidewalkId: __expectString(output.SidewalkId),
8527
9231
  SidewalkManufacturingSn: __expectString(output.SidewalkManufacturingSn),
9232
+ Status: __expectString(output.Status),
8528
9233
  };
8529
9234
  };
8530
9235
  const deserializeAws_restJson1SidewalkResourceTypeEventConfiguration = (output, context) => {
@@ -8601,6 +9306,34 @@ const deserializeAws_restJson1WirelessDeviceEventLogOptionList = (output, contex
8601
9306
  });
8602
9307
  return retVal;
8603
9308
  };
9309
+ const deserializeAws_restJson1WirelessDeviceImportTask = (output, context) => {
9310
+ return {
9311
+ Arn: __expectString(output.Arn),
9312
+ CreationTime: output.CreationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreationTime)) : undefined,
9313
+ DestinationName: __expectString(output.DestinationName),
9314
+ FailedImportedDeviceCount: __expectLong(output.FailedImportedDeviceCount),
9315
+ Id: __expectString(output.Id),
9316
+ InitializedImportedDeviceCount: __expectLong(output.InitializedImportedDeviceCount),
9317
+ OnboardedImportedDeviceCount: __expectLong(output.OnboardedImportedDeviceCount),
9318
+ PendingImportedDeviceCount: __expectLong(output.PendingImportedDeviceCount),
9319
+ Sidewalk: output.Sidewalk != null
9320
+ ? deserializeAws_restJson1SidewalkGetStartImportInfo(output.Sidewalk, context)
9321
+ : undefined,
9322
+ Status: __expectString(output.Status),
9323
+ StatusReason: __expectString(output.StatusReason),
9324
+ };
9325
+ };
9326
+ const deserializeAws_restJson1WirelessDeviceImportTaskList = (output, context) => {
9327
+ const retVal = (output || [])
9328
+ .filter((e) => e != null)
9329
+ .map((entry) => {
9330
+ if (entry === null) {
9331
+ return null;
9332
+ }
9333
+ return deserializeAws_restJson1WirelessDeviceImportTask(entry, context);
9334
+ });
9335
+ return retVal;
9336
+ };
8604
9337
  const deserializeAws_restJson1WirelessDeviceList = (output, context) => {
8605
9338
  const retVal = (output || [])
8606
9339
  .filter((e) => e != null)