@azure-rest/iot-device-update 1.0.1-alpha.20241219.1 → 1.1.0-alpha.20241223.1

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 (133) hide show
  1. package/dist/browser/clientDefinitions.d.ts +51 -51
  2. package/dist/browser/clientDefinitions.js.map +1 -1
  3. package/dist/browser/deviceUpdate.d.ts +12 -1
  4. package/dist/browser/deviceUpdate.d.ts.map +1 -1
  5. package/dist/browser/deviceUpdate.js +31 -9
  6. package/dist/browser/deviceUpdate.js.map +1 -1
  7. package/dist/browser/isUnexpected.d.ts +51 -51
  8. package/dist/browser/isUnexpected.js +37 -30
  9. package/dist/browser/isUnexpected.js.map +1 -1
  10. package/dist/browser/logger.d.ts +2 -0
  11. package/dist/browser/logger.d.ts.map +1 -0
  12. package/dist/browser/logger.js +5 -0
  13. package/dist/browser/logger.js.map +1 -0
  14. package/dist/browser/models.d.ts +11 -10
  15. package/dist/browser/models.d.ts.map +1 -1
  16. package/dist/browser/models.js.map +1 -1
  17. package/dist/browser/outputModels.d.ts +53 -5
  18. package/dist/browser/outputModels.d.ts.map +1 -1
  19. package/dist/browser/outputModels.js.map +1 -1
  20. package/dist/browser/paginateHelper.d.ts +27 -2
  21. package/dist/browser/paginateHelper.d.ts.map +1 -1
  22. package/dist/browser/paginateHelper.js +98 -1
  23. package/dist/browser/paginateHelper.js.map +1 -1
  24. package/dist/browser/parameters.d.ts +7 -5
  25. package/dist/browser/parameters.d.ts.map +1 -1
  26. package/dist/browser/parameters.js.map +1 -1
  27. package/dist/browser/pollingHelper.d.ts +67 -2
  28. package/dist/browser/pollingHelper.d.ts.map +1 -1
  29. package/dist/browser/pollingHelper.js +65 -9
  30. package/dist/browser/pollingHelper.js.map +1 -1
  31. package/dist/browser/responses.d.ts +50 -62
  32. package/dist/browser/responses.d.ts.map +1 -1
  33. package/dist/browser/responses.js.map +1 -1
  34. package/dist/commonjs/clientDefinitions.d.ts +51 -51
  35. package/dist/commonjs/clientDefinitions.js.map +1 -1
  36. package/dist/commonjs/deviceUpdate.d.ts +12 -1
  37. package/dist/commonjs/deviceUpdate.d.ts.map +1 -1
  38. package/dist/commonjs/deviceUpdate.js +31 -9
  39. package/dist/commonjs/deviceUpdate.js.map +1 -1
  40. package/dist/commonjs/isUnexpected.d.ts +51 -51
  41. package/dist/commonjs/isUnexpected.js +37 -30
  42. package/dist/commonjs/isUnexpected.js.map +1 -1
  43. package/dist/commonjs/logger.d.ts +2 -0
  44. package/dist/commonjs/logger.d.ts.map +1 -0
  45. package/dist/commonjs/logger.js +8 -0
  46. package/dist/commonjs/logger.js.map +1 -0
  47. package/dist/commonjs/models.d.ts +11 -10
  48. package/dist/commonjs/models.d.ts.map +1 -1
  49. package/dist/commonjs/models.js.map +1 -1
  50. package/dist/commonjs/outputModels.d.ts +53 -5
  51. package/dist/commonjs/outputModels.d.ts.map +1 -1
  52. package/dist/commonjs/outputModels.js.map +1 -1
  53. package/dist/commonjs/paginateHelper.d.ts +27 -2
  54. package/dist/commonjs/paginateHelper.d.ts.map +1 -1
  55. package/dist/commonjs/paginateHelper.js +99 -2
  56. package/dist/commonjs/paginateHelper.js.map +1 -1
  57. package/dist/commonjs/parameters.d.ts +7 -5
  58. package/dist/commonjs/parameters.d.ts.map +1 -1
  59. package/dist/commonjs/parameters.js.map +1 -1
  60. package/dist/commonjs/pollingHelper.d.ts +67 -2
  61. package/dist/commonjs/pollingHelper.d.ts.map +1 -1
  62. package/dist/commonjs/pollingHelper.js +64 -8
  63. package/dist/commonjs/pollingHelper.js.map +1 -1
  64. package/dist/commonjs/responses.d.ts +50 -62
  65. package/dist/commonjs/responses.d.ts.map +1 -1
  66. package/dist/commonjs/responses.js.map +1 -1
  67. package/dist/esm/clientDefinitions.d.ts +51 -51
  68. package/dist/esm/clientDefinitions.js.map +1 -1
  69. package/dist/esm/deviceUpdate.d.ts +12 -1
  70. package/dist/esm/deviceUpdate.d.ts.map +1 -1
  71. package/dist/esm/deviceUpdate.js +31 -9
  72. package/dist/esm/deviceUpdate.js.map +1 -1
  73. package/dist/esm/isUnexpected.d.ts +51 -51
  74. package/dist/esm/isUnexpected.js +37 -30
  75. package/dist/esm/isUnexpected.js.map +1 -1
  76. package/dist/esm/logger.d.ts +2 -0
  77. package/dist/esm/logger.d.ts.map +1 -0
  78. package/dist/esm/logger.js +5 -0
  79. package/dist/esm/logger.js.map +1 -0
  80. package/dist/esm/models.d.ts +11 -10
  81. package/dist/esm/models.d.ts.map +1 -1
  82. package/dist/esm/models.js.map +1 -1
  83. package/dist/esm/outputModels.d.ts +53 -5
  84. package/dist/esm/outputModels.d.ts.map +1 -1
  85. package/dist/esm/outputModels.js.map +1 -1
  86. package/dist/esm/paginateHelper.d.ts +27 -2
  87. package/dist/esm/paginateHelper.d.ts.map +1 -1
  88. package/dist/esm/paginateHelper.js +98 -1
  89. package/dist/esm/paginateHelper.js.map +1 -1
  90. package/dist/esm/parameters.d.ts +7 -5
  91. package/dist/esm/parameters.d.ts.map +1 -1
  92. package/dist/esm/parameters.js.map +1 -1
  93. package/dist/esm/pollingHelper.d.ts +67 -2
  94. package/dist/esm/pollingHelper.d.ts.map +1 -1
  95. package/dist/esm/pollingHelper.js +65 -9
  96. package/dist/esm/pollingHelper.js.map +1 -1
  97. package/dist/esm/responses.d.ts +50 -62
  98. package/dist/esm/responses.d.ts.map +1 -1
  99. package/dist/esm/responses.js.map +1 -1
  100. package/dist/react-native/clientDefinitions.d.ts +51 -51
  101. package/dist/react-native/clientDefinitions.js.map +1 -1
  102. package/dist/react-native/deviceUpdate.d.ts +12 -1
  103. package/dist/react-native/deviceUpdate.d.ts.map +1 -1
  104. package/dist/react-native/deviceUpdate.js +31 -9
  105. package/dist/react-native/deviceUpdate.js.map +1 -1
  106. package/dist/react-native/isUnexpected.d.ts +51 -51
  107. package/dist/react-native/isUnexpected.js +37 -30
  108. package/dist/react-native/isUnexpected.js.map +1 -1
  109. package/dist/react-native/logger.d.ts +2 -0
  110. package/dist/react-native/logger.d.ts.map +1 -0
  111. package/dist/react-native/logger.js +5 -0
  112. package/dist/react-native/logger.js.map +1 -0
  113. package/dist/react-native/models.d.ts +11 -10
  114. package/dist/react-native/models.d.ts.map +1 -1
  115. package/dist/react-native/models.js.map +1 -1
  116. package/dist/react-native/outputModels.d.ts +53 -5
  117. package/dist/react-native/outputModels.d.ts.map +1 -1
  118. package/dist/react-native/outputModels.js.map +1 -1
  119. package/dist/react-native/paginateHelper.d.ts +27 -2
  120. package/dist/react-native/paginateHelper.d.ts.map +1 -1
  121. package/dist/react-native/paginateHelper.js +98 -1
  122. package/dist/react-native/paginateHelper.js.map +1 -1
  123. package/dist/react-native/parameters.d.ts +7 -5
  124. package/dist/react-native/parameters.d.ts.map +1 -1
  125. package/dist/react-native/parameters.js.map +1 -1
  126. package/dist/react-native/pollingHelper.d.ts +67 -2
  127. package/dist/react-native/pollingHelper.d.ts.map +1 -1
  128. package/dist/react-native/pollingHelper.js +65 -9
  129. package/dist/react-native/pollingHelper.js.map +1 -1
  130. package/dist/react-native/responses.d.ts +50 -62
  131. package/dist/react-native/responses.d.ts.map +1 -1
  132. package/dist/react-native/responses.js.map +1 -1
  133. package/package.json +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,WAAW,QAAQ,EAAE,CAAC;IACzD,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,YAAY,CAAC;IACxD,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,wCAAwC,CAAC;SACnD,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,uCAAuC,CAAC;IAC9D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAuB,CAAC;IAE9E,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { DeviceUpdateClient } from \"./clientDefinitions.js\";\n\nexport default function createClient(\n endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {},\n): DeviceUpdateClient {\n const baseUrl = options.baseUrl ?? `https://${endpoint}`;\n options.apiVersion = options.apiVersion ?? \"2022-10-01\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://api.adu.microsoft.com/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-iot-device-update-rest/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as DeviceUpdateClient;\n\n return client;\n}\n"]}
1
+ {"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE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,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { DeviceUpdateClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface DeviceUpdateClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `DeviceUpdateClient`\n * @param endpoint - The Device Update for IoT Hub account endpoint (hostname only, no protocol).\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpoint: string,\n credentials: TokenCredential,\n { apiVersion = \"2022-10-01\", ...options }: DeviceUpdateClientOptions = {},\n): DeviceUpdateClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://${endpoint}`;\n const userAgentInfo = `azsdk-js-iot-device-update-rest/1.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://api.adu.microsoft.com/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as DeviceUpdateClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
@@ -1,52 +1,52 @@
1
- import type { DeviceUpdateListUpdates200Response, DeviceUpdateListUpdatesdefaultResponse, DeviceUpdateImportUpdate200Response, DeviceUpdateImportUpdate202Response, DeviceUpdateImportUpdatedefaultResponse, DeviceUpdateGetUpdate200Response, DeviceUpdateGetUpdate304Response, DeviceUpdateGetUpdatedefaultResponse, DeviceUpdateDeleteUpdate202Response, DeviceUpdateDeleteUpdatedefaultResponse, DeviceUpdateListProviders200Response, DeviceUpdateListProvidersdefaultResponse, DeviceUpdateListNames200Response, DeviceUpdateListNamesdefaultResponse, DeviceUpdateListVersions200Response, DeviceUpdateListVersionsdefaultResponse, DeviceUpdateListFiles200Response, DeviceUpdateListFilesdefaultResponse, DeviceUpdateGetFile200Response, DeviceUpdateGetFile304Response, DeviceUpdateGetFiledefaultResponse, DeviceUpdateListOperationStatuses200Response, DeviceUpdateListOperationStatusesdefaultResponse, DeviceUpdateGetOperationStatus200Response, DeviceUpdateGetOperationStatus304Response, DeviceUpdateGetOperationStatusdefaultResponse, DeviceManagementListDeviceClasses200Response, DeviceManagementListDeviceClassesdefaultResponse, DeviceManagementGetDeviceClass200Response, DeviceManagementGetDeviceClassdefaultResponse, DeviceManagementUpdateDeviceClass200Response, DeviceManagementUpdateDeviceClassdefaultResponse, DeviceManagementDeleteDeviceClass204Response, DeviceManagementDeleteDeviceClassdefaultResponse, DeviceManagementListInstallableUpdatesForDeviceClass200Response, DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse, DeviceManagementListDevices200Response, DeviceManagementListDevicesdefaultResponse, DeviceManagementImportDevices202Response, DeviceManagementImportDevicesdefaultResponse, DeviceManagementGetDevice200Response, DeviceManagementGetDevicedefaultResponse, DeviceManagementGetDeviceModule200Response, DeviceManagementGetDeviceModuledefaultResponse, DeviceManagementGetUpdateCompliance200Response, DeviceManagementGetUpdateCompliancedefaultResponse, DeviceManagementListGroups200Response, DeviceManagementListGroupsdefaultResponse, DeviceManagementGetGroup200Response, DeviceManagementGetGroupdefaultResponse, DeviceManagementDeleteGroup204Response, DeviceManagementDeleteGroupdefaultResponse, DeviceManagementGetUpdateComplianceForGroup200Response, DeviceManagementGetUpdateComplianceForGroupdefaultResponse, DeviceManagementListBestUpdatesForGroup200Response, DeviceManagementListBestUpdatesForGroupdefaultResponse, DeviceManagementListDeploymentsForGroup200Response, DeviceManagementListDeploymentsForGroupdefaultResponse, DeviceManagementGetDeployment200Response, DeviceManagementGetDeploymentdefaultResponse, DeviceManagementCreateOrUpdateDeployment200Response, DeviceManagementCreateOrUpdateDeploymentdefaultResponse, DeviceManagementDeleteDeployment204Response, DeviceManagementDeleteDeploymentdefaultResponse, DeviceManagementGetDeploymentStatus200Response, DeviceManagementGetDeploymentStatusdefaultResponse, DeviceManagementListDeviceClassSubgroupsForGroup200Response, DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse, DeviceManagementGetDeviceClassSubgroup200Response, DeviceManagementGetDeviceClassSubgroupdefaultResponse, DeviceManagementDeleteDeviceClassSubgroup204Response, DeviceManagementDeleteDeviceClassSubgroupdefaultResponse, DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response, DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse, DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response, DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse, DeviceManagementListDeploymentsForDeviceClassSubgroup200Response, DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse, DeviceManagementGetDeploymentForDeviceClassSubgroup200Response, DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse, DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response, DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse, DeviceManagementStopDeployment200Response, DeviceManagementStopDeploymentdefaultResponse, DeviceManagementRetryDeployment200Response, DeviceManagementRetryDeploymentdefaultResponse, DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response, DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse, DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response, DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse, DeviceManagementGetOperationStatus200Response, DeviceManagementGetOperationStatus304Response, DeviceManagementGetOperationStatusdefaultResponse, DeviceManagementListOperationStatuses200Response, DeviceManagementListOperationStatusesdefaultResponse, DeviceManagementStartLogCollection201Response, DeviceManagementStartLogCollectiondefaultResponse, DeviceManagementGetLogCollection200Response, DeviceManagementGetLogCollectiondefaultResponse, DeviceManagementListLogCollections200Response, DeviceManagementListLogCollectionsdefaultResponse, DeviceManagementGetLogCollectionDetailedStatus200Response, DeviceManagementGetLogCollectionDetailedStatusdefaultResponse, DeviceManagementListHealthOfDevices200Response, DeviceManagementListHealthOfDevicesdefaultResponse } from "./responses.js";
2
- export declare function isUnexpected(response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse): response is DeviceUpdateListUpdatesdefaultResponse;
3
- export declare function isUnexpected(response: DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response | DeviceUpdateImportUpdatedefaultResponse): response is DeviceUpdateImportUpdatedefaultResponse;
4
- export declare function isUnexpected(response: DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response | DeviceUpdateGetUpdatedefaultResponse): response is DeviceUpdateGetUpdatedefaultResponse;
5
- export declare function isUnexpected(response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse): response is DeviceUpdateDeleteUpdatedefaultResponse;
6
- export declare function isUnexpected(response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse): response is DeviceUpdateListProvidersdefaultResponse;
7
- export declare function isUnexpected(response: DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse): response is DeviceUpdateListNamesdefaultResponse;
8
- export declare function isUnexpected(response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse): response is DeviceUpdateListVersionsdefaultResponse;
9
- export declare function isUnexpected(response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse): response is DeviceUpdateListFilesdefaultResponse;
10
- export declare function isUnexpected(response: DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response | DeviceUpdateGetFiledefaultResponse): response is DeviceUpdateGetFiledefaultResponse;
11
- export declare function isUnexpected(response: DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesdefaultResponse): response is DeviceUpdateListOperationStatusesdefaultResponse;
12
- export declare function isUnexpected(response: DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response | DeviceUpdateGetOperationStatusdefaultResponse): response is DeviceUpdateGetOperationStatusdefaultResponse;
13
- export declare function isUnexpected(response: DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesdefaultResponse): response is DeviceManagementListDeviceClassesdefaultResponse;
14
- export declare function isUnexpected(response: DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassdefaultResponse): response is DeviceManagementGetDeviceClassdefaultResponse;
15
- export declare function isUnexpected(response: DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassdefaultResponse): response is DeviceManagementUpdateDeviceClassdefaultResponse;
16
- export declare function isUnexpected(response: DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassdefaultResponse): response is DeviceManagementDeleteDeviceClassdefaultResponse;
17
- export declare function isUnexpected(response: DeviceManagementListInstallableUpdatesForDeviceClass200Response | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse): response is DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse;
18
- export declare function isUnexpected(response: DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse): response is DeviceManagementListDevicesdefaultResponse;
19
- export declare function isUnexpected(response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse): response is DeviceManagementImportDevicesdefaultResponse;
20
- export declare function isUnexpected(response: DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse): response is DeviceManagementGetDevicedefaultResponse;
21
- export declare function isUnexpected(response: DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuledefaultResponse): response is DeviceManagementGetDeviceModuledefaultResponse;
22
- export declare function isUnexpected(response: DeviceManagementGetUpdateCompliance200Response | DeviceManagementGetUpdateCompliancedefaultResponse): response is DeviceManagementGetUpdateCompliancedefaultResponse;
23
- export declare function isUnexpected(response: DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse): response is DeviceManagementListGroupsdefaultResponse;
24
- export declare function isUnexpected(response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse): response is DeviceManagementGetGroupdefaultResponse;
25
- export declare function isUnexpected(response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse): response is DeviceManagementDeleteGroupdefaultResponse;
26
- export declare function isUnexpected(response: DeviceManagementGetUpdateComplianceForGroup200Response | DeviceManagementGetUpdateComplianceForGroupdefaultResponse): response is DeviceManagementGetUpdateComplianceForGroupdefaultResponse;
27
- export declare function isUnexpected(response: DeviceManagementListBestUpdatesForGroup200Response | DeviceManagementListBestUpdatesForGroupdefaultResponse): response is DeviceManagementListBestUpdatesForGroupdefaultResponse;
28
- export declare function isUnexpected(response: DeviceManagementListDeploymentsForGroup200Response | DeviceManagementListDeploymentsForGroupdefaultResponse): response is DeviceManagementListDeploymentsForGroupdefaultResponse;
29
- export declare function isUnexpected(response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse): response is DeviceManagementGetDeploymentdefaultResponse;
30
- export declare function isUnexpected(response: DeviceManagementCreateOrUpdateDeployment200Response | DeviceManagementCreateOrUpdateDeploymentdefaultResponse): response is DeviceManagementCreateOrUpdateDeploymentdefaultResponse;
31
- export declare function isUnexpected(response: DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentdefaultResponse): response is DeviceManagementDeleteDeploymentdefaultResponse;
32
- export declare function isUnexpected(response: DeviceManagementGetDeploymentStatus200Response | DeviceManagementGetDeploymentStatusdefaultResponse): response is DeviceManagementGetDeploymentStatusdefaultResponse;
33
- export declare function isUnexpected(response: DeviceManagementListDeviceClassSubgroupsForGroup200Response | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse): response is DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse;
34
- export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroup200Response | DeviceManagementGetDeviceClassSubgroupdefaultResponse): response is DeviceManagementGetDeviceClassSubgroupdefaultResponse;
35
- export declare function isUnexpected(response: DeviceManagementDeleteDeviceClassSubgroup204Response | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse): response is DeviceManagementDeleteDeviceClassSubgroupdefaultResponse;
36
- export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse): response is DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse;
37
- export declare function isUnexpected(response: DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse;
38
- export declare function isUnexpected(response: DeviceManagementListDeploymentsForDeviceClassSubgroup200Response | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse): response is DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse;
39
- export declare function isUnexpected(response: DeviceManagementGetDeploymentForDeviceClassSubgroup200Response | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse): response is DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse;
40
- export declare function isUnexpected(response: DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse;
41
- export declare function isUnexpected(response: DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentdefaultResponse): response is DeviceManagementStopDeploymentdefaultResponse;
42
- export declare function isUnexpected(response: DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentdefaultResponse): response is DeviceManagementRetryDeploymentdefaultResponse;
43
- export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse;
44
- export declare function isUnexpected(response: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse;
45
- export declare function isUnexpected(response: DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response | DeviceManagementGetOperationStatusdefaultResponse): response is DeviceManagementGetOperationStatusdefaultResponse;
46
- export declare function isUnexpected(response: DeviceManagementListOperationStatuses200Response | DeviceManagementListOperationStatusesdefaultResponse): response is DeviceManagementListOperationStatusesdefaultResponse;
47
- export declare function isUnexpected(response: DeviceManagementStartLogCollection201Response | DeviceManagementStartLogCollectiondefaultResponse): response is DeviceManagementStartLogCollectiondefaultResponse;
48
- export declare function isUnexpected(response: DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectiondefaultResponse): response is DeviceManagementGetLogCollectiondefaultResponse;
49
- export declare function isUnexpected(response: DeviceManagementListLogCollections200Response | DeviceManagementListLogCollectionsdefaultResponse): response is DeviceManagementListLogCollectionsdefaultResponse;
50
- export declare function isUnexpected(response: DeviceManagementGetLogCollectionDetailedStatus200Response | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse): response is DeviceManagementGetLogCollectionDetailedStatusdefaultResponse;
51
- export declare function isUnexpected(response: DeviceManagementListHealthOfDevices200Response | DeviceManagementListHealthOfDevicesdefaultResponse): response is DeviceManagementListHealthOfDevicesdefaultResponse;
1
+ import type { DeviceUpdateListUpdates200Response, DeviceUpdateListUpdatesDefaultResponse, DeviceUpdateImportUpdate200Response, DeviceUpdateImportUpdate202Response, DeviceUpdateImportUpdateDefaultResponse, DeviceUpdateGetUpdate200Response, DeviceUpdateGetUpdate304Response, DeviceUpdateGetUpdateDefaultResponse, DeviceUpdateDeleteUpdate202Response, DeviceUpdateDeleteUpdateDefaultResponse, DeviceUpdateListProviders200Response, DeviceUpdateListProvidersDefaultResponse, DeviceUpdateListNames200Response, DeviceUpdateListNamesDefaultResponse, DeviceUpdateListVersions200Response, DeviceUpdateListVersionsDefaultResponse, DeviceUpdateListFiles200Response, DeviceUpdateListFilesDefaultResponse, DeviceUpdateGetFile200Response, DeviceUpdateGetFile304Response, DeviceUpdateGetFileDefaultResponse, DeviceUpdateListOperationStatuses200Response, DeviceUpdateListOperationStatusesDefaultResponse, DeviceUpdateGetOperationStatus200Response, DeviceUpdateGetOperationStatus304Response, DeviceUpdateGetOperationStatusDefaultResponse, DeviceManagementListDeviceClasses200Response, DeviceManagementListDeviceClassesDefaultResponse, DeviceManagementGetDeviceClass200Response, DeviceManagementGetDeviceClassDefaultResponse, DeviceManagementUpdateDeviceClass200Response, DeviceManagementUpdateDeviceClassDefaultResponse, DeviceManagementDeleteDeviceClass204Response, DeviceManagementDeleteDeviceClassDefaultResponse, DeviceManagementListInstallableUpdatesForDeviceClass200Response, DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse, DeviceManagementListDevices200Response, DeviceManagementListDevicesDefaultResponse, DeviceManagementImportDevices202Response, DeviceManagementImportDevicesDefaultResponse, DeviceManagementGetDevice200Response, DeviceManagementGetDeviceDefaultResponse, DeviceManagementGetDeviceModule200Response, DeviceManagementGetDeviceModuleDefaultResponse, DeviceManagementGetUpdateCompliance200Response, DeviceManagementGetUpdateComplianceDefaultResponse, DeviceManagementListGroups200Response, DeviceManagementListGroupsDefaultResponse, DeviceManagementGetGroup200Response, DeviceManagementGetGroupDefaultResponse, DeviceManagementDeleteGroup204Response, DeviceManagementDeleteGroupDefaultResponse, DeviceManagementGetUpdateComplianceForGroup200Response, DeviceManagementGetUpdateComplianceForGroupDefaultResponse, DeviceManagementListBestUpdatesForGroup200Response, DeviceManagementListBestUpdatesForGroupDefaultResponse, DeviceManagementListDeploymentsForGroup200Response, DeviceManagementListDeploymentsForGroupDefaultResponse, DeviceManagementGetDeployment200Response, DeviceManagementGetDeploymentDefaultResponse, DeviceManagementCreateOrUpdateDeployment200Response, DeviceManagementCreateOrUpdateDeploymentDefaultResponse, DeviceManagementDeleteDeployment204Response, DeviceManagementDeleteDeploymentDefaultResponse, DeviceManagementGetDeploymentStatus200Response, DeviceManagementGetDeploymentStatusDefaultResponse, DeviceManagementListDeviceClassSubgroupsForGroup200Response, DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse, DeviceManagementGetDeviceClassSubgroup200Response, DeviceManagementGetDeviceClassSubgroupDefaultResponse, DeviceManagementDeleteDeviceClassSubgroup204Response, DeviceManagementDeleteDeviceClassSubgroupDefaultResponse, DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response, DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse, DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response, DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse, DeviceManagementListDeploymentsForDeviceClassSubgroup200Response, DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse, DeviceManagementGetDeploymentForDeviceClassSubgroup200Response, DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse, DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response, DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse, DeviceManagementStopDeployment200Response, DeviceManagementStopDeploymentDefaultResponse, DeviceManagementRetryDeployment200Response, DeviceManagementRetryDeploymentDefaultResponse, DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response, DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse, DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response, DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse, DeviceManagementGetOperationStatus200Response, DeviceManagementGetOperationStatus304Response, DeviceManagementGetOperationStatusDefaultResponse, DeviceManagementListOperationStatuses200Response, DeviceManagementListOperationStatusesDefaultResponse, DeviceManagementStartLogCollection201Response, DeviceManagementStartLogCollectionDefaultResponse, DeviceManagementGetLogCollection200Response, DeviceManagementGetLogCollectionDefaultResponse, DeviceManagementListLogCollections200Response, DeviceManagementListLogCollectionsDefaultResponse, DeviceManagementGetLogCollectionDetailedStatus200Response, DeviceManagementGetLogCollectionDetailedStatusDefaultResponse, DeviceManagementListHealthOfDevices200Response, DeviceManagementListHealthOfDevicesDefaultResponse } from "./responses.js";
2
+ export declare function isUnexpected(response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesDefaultResponse): response is DeviceUpdateListUpdatesDefaultResponse;
3
+ export declare function isUnexpected(response: DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response | DeviceUpdateImportUpdateDefaultResponse): response is DeviceUpdateImportUpdateDefaultResponse;
4
+ export declare function isUnexpected(response: DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response | DeviceUpdateGetUpdateDefaultResponse): response is DeviceUpdateGetUpdateDefaultResponse;
5
+ export declare function isUnexpected(response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdateDefaultResponse): response is DeviceUpdateDeleteUpdateDefaultResponse;
6
+ export declare function isUnexpected(response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersDefaultResponse): response is DeviceUpdateListProvidersDefaultResponse;
7
+ export declare function isUnexpected(response: DeviceUpdateListNames200Response | DeviceUpdateListNamesDefaultResponse): response is DeviceUpdateListNamesDefaultResponse;
8
+ export declare function isUnexpected(response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsDefaultResponse): response is DeviceUpdateListVersionsDefaultResponse;
9
+ export declare function isUnexpected(response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesDefaultResponse): response is DeviceUpdateListFilesDefaultResponse;
10
+ export declare function isUnexpected(response: DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response | DeviceUpdateGetFileDefaultResponse): response is DeviceUpdateGetFileDefaultResponse;
11
+ export declare function isUnexpected(response: DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesDefaultResponse): response is DeviceUpdateListOperationStatusesDefaultResponse;
12
+ export declare function isUnexpected(response: DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response | DeviceUpdateGetOperationStatusDefaultResponse): response is DeviceUpdateGetOperationStatusDefaultResponse;
13
+ export declare function isUnexpected(response: DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesDefaultResponse): response is DeviceManagementListDeviceClassesDefaultResponse;
14
+ export declare function isUnexpected(response: DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassDefaultResponse): response is DeviceManagementGetDeviceClassDefaultResponse;
15
+ export declare function isUnexpected(response: DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassDefaultResponse): response is DeviceManagementUpdateDeviceClassDefaultResponse;
16
+ export declare function isUnexpected(response: DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassDefaultResponse): response is DeviceManagementDeleteDeviceClassDefaultResponse;
17
+ export declare function isUnexpected(response: DeviceManagementListInstallableUpdatesForDeviceClass200Response | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse): response is DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse;
18
+ export declare function isUnexpected(response: DeviceManagementListDevices200Response | DeviceManagementListDevicesDefaultResponse): response is DeviceManagementListDevicesDefaultResponse;
19
+ export declare function isUnexpected(response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesDefaultResponse): response is DeviceManagementImportDevicesDefaultResponse;
20
+ export declare function isUnexpected(response: DeviceManagementGetDevice200Response | DeviceManagementGetDeviceDefaultResponse): response is DeviceManagementGetDeviceDefaultResponse;
21
+ export declare function isUnexpected(response: DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuleDefaultResponse): response is DeviceManagementGetDeviceModuleDefaultResponse;
22
+ export declare function isUnexpected(response: DeviceManagementGetUpdateCompliance200Response | DeviceManagementGetUpdateComplianceDefaultResponse): response is DeviceManagementGetUpdateComplianceDefaultResponse;
23
+ export declare function isUnexpected(response: DeviceManagementListGroups200Response | DeviceManagementListGroupsDefaultResponse): response is DeviceManagementListGroupsDefaultResponse;
24
+ export declare function isUnexpected(response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupDefaultResponse): response is DeviceManagementGetGroupDefaultResponse;
25
+ export declare function isUnexpected(response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupDefaultResponse): response is DeviceManagementDeleteGroupDefaultResponse;
26
+ export declare function isUnexpected(response: DeviceManagementGetUpdateComplianceForGroup200Response | DeviceManagementGetUpdateComplianceForGroupDefaultResponse): response is DeviceManagementGetUpdateComplianceForGroupDefaultResponse;
27
+ export declare function isUnexpected(response: DeviceManagementListBestUpdatesForGroup200Response | DeviceManagementListBestUpdatesForGroupDefaultResponse): response is DeviceManagementListBestUpdatesForGroupDefaultResponse;
28
+ export declare function isUnexpected(response: DeviceManagementListDeploymentsForGroup200Response | DeviceManagementListDeploymentsForGroupDefaultResponse): response is DeviceManagementListDeploymentsForGroupDefaultResponse;
29
+ export declare function isUnexpected(response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentDefaultResponse): response is DeviceManagementGetDeploymentDefaultResponse;
30
+ export declare function isUnexpected(response: DeviceManagementCreateOrUpdateDeployment200Response | DeviceManagementCreateOrUpdateDeploymentDefaultResponse): response is DeviceManagementCreateOrUpdateDeploymentDefaultResponse;
31
+ export declare function isUnexpected(response: DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentDefaultResponse): response is DeviceManagementDeleteDeploymentDefaultResponse;
32
+ export declare function isUnexpected(response: DeviceManagementGetDeploymentStatus200Response | DeviceManagementGetDeploymentStatusDefaultResponse): response is DeviceManagementGetDeploymentStatusDefaultResponse;
33
+ export declare function isUnexpected(response: DeviceManagementListDeviceClassSubgroupsForGroup200Response | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse): response is DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse;
34
+ export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroup200Response | DeviceManagementGetDeviceClassSubgroupDefaultResponse): response is DeviceManagementGetDeviceClassSubgroupDefaultResponse;
35
+ export declare function isUnexpected(response: DeviceManagementDeleteDeviceClassSubgroup204Response | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse): response is DeviceManagementDeleteDeviceClassSubgroupDefaultResponse;
36
+ export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse): response is DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse;
37
+ export declare function isUnexpected(response: DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse;
38
+ export declare function isUnexpected(response: DeviceManagementListDeploymentsForDeviceClassSubgroup200Response | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse): response is DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse;
39
+ export declare function isUnexpected(response: DeviceManagementGetDeploymentForDeviceClassSubgroup200Response | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse): response is DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse;
40
+ export declare function isUnexpected(response: DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse;
41
+ export declare function isUnexpected(response: DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentDefaultResponse): response is DeviceManagementStopDeploymentDefaultResponse;
42
+ export declare function isUnexpected(response: DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentDefaultResponse): response is DeviceManagementRetryDeploymentDefaultResponse;
43
+ export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse;
44
+ export declare function isUnexpected(response: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse;
45
+ export declare function isUnexpected(response: DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response | DeviceManagementGetOperationStatusDefaultResponse): response is DeviceManagementGetOperationStatusDefaultResponse;
46
+ export declare function isUnexpected(response: DeviceManagementListOperationStatuses200Response | DeviceManagementListOperationStatusesDefaultResponse): response is DeviceManagementListOperationStatusesDefaultResponse;
47
+ export declare function isUnexpected(response: DeviceManagementStartLogCollection201Response | DeviceManagementStartLogCollectionDefaultResponse): response is DeviceManagementStartLogCollectionDefaultResponse;
48
+ export declare function isUnexpected(response: DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectionDefaultResponse): response is DeviceManagementGetLogCollectionDefaultResponse;
49
+ export declare function isUnexpected(response: DeviceManagementListLogCollections200Response | DeviceManagementListLogCollectionsDefaultResponse): response is DeviceManagementListLogCollectionsDefaultResponse;
50
+ export declare function isUnexpected(response: DeviceManagementGetLogCollectionDetailedStatus200Response | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse): response is DeviceManagementGetLogCollectionDetailedStatusDefaultResponse;
51
+ export declare function isUnexpected(response: DeviceManagementListHealthOfDevices200Response | DeviceManagementListHealthOfDevicesDefaultResponse): response is DeviceManagementListHealthOfDevicesDefaultResponse;
52
52
  //# sourceMappingURL=isUnexpected.d.ts.map
@@ -2,8 +2,8 @@
2
2
  // Licensed under the MIT License.
3
3
  const responseMap = {
4
4
  "GET /deviceUpdate/{instanceId}/updates": ["200"],
5
- "POST /deviceUpdate/{instanceId}/updates:import": ["200", "202"],
6
5
  "GET /deviceUpdate/{instanceId}/updates:import": ["200", "202"],
6
+ "POST /deviceUpdate/{instanceId}/updates:import": ["200", "202"],
7
7
  "GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}": [
8
8
  "200",
9
9
  "304",
@@ -24,8 +24,8 @@ const responseMap = {
24
24
  "200",
25
25
  ],
26
26
  "GET /deviceUpdate/{instanceId}/management/devices": ["200"],
27
- "POST /deviceUpdate/{instanceId}/management/devices:import": ["202"],
28
27
  "GET /deviceUpdate/{instanceId}/management/devices:import": ["202"],
28
+ "POST /deviceUpdate/{instanceId}/management/devices:import": ["202"],
29
29
  "GET /deviceUpdate/{instanceId}/management/devices/{deviceId}": ["200"],
30
30
  "GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}": ["200"],
31
31
  "GET /deviceUpdate/{instanceId}/management/updateCompliance": ["200"],
@@ -73,52 +73,59 @@ export function isUnexpected(response) {
73
73
  const method = response.request.method;
74
74
  let pathDetails = responseMap[`${method} ${url.pathname}`];
75
75
  if (!pathDetails) {
76
- pathDetails = geParametrizedPathSuccess(url.pathname);
76
+ pathDetails = getParametrizedPathSuccess(method, url.pathname);
77
77
  }
78
78
  return !pathDetails.includes(response.status);
79
79
  }
80
- function geParametrizedPathSuccess(path) {
80
+ function getParametrizedPathSuccess(method, path) {
81
+ var _a, _b, _c, _d;
81
82
  const pathParts = path.split("/");
83
+ // Traverse list to match the longest candidate
84
+ // matchedLen: the length of candidate path
85
+ // matchedValue: the matched status code array
86
+ let matchedLen = -1, matchedValue = [];
82
87
  // Iterate the responseMap to find a match
83
88
  for (const [key, value] of Object.entries(responseMap)) {
84
89
  // Extracting the path from the map key which is in format
85
90
  // GET /path/foo
91
+ if (!key.startsWith(method)) {
92
+ continue;
93
+ }
86
94
  const candidatePath = getPathFromMapKey(key);
87
95
  // Get each part of the url path
88
96
  const candidateParts = candidatePath.split("/");
89
- // If the candidate and actual paths don't match in size
90
- // we move on to the next candidate path
91
- if (candidateParts.length === pathParts.length && hasParametrizedPath(key)) {
92
- // track if we have found a match to return the values found.
93
- let found = true;
94
- for (let i = 0; i < candidateParts.length; i++) {
95
- if (candidateParts[i].startsWith("{") && candidateParts[i].endsWith("}")) {
96
- // If the current part of the candidate is a "template" part
97
- // it is a match with the actual path part on hand
98
- // skip as the parameterized part can match anything
99
- continue;
100
- }
101
- // If the candidate part is not a template and
102
- // the parts don't match mark the candidate as not found
103
- // to move on with the next candidate path.
104
- if (candidateParts[i] !== pathParts[i]) {
97
+ // track if we have found a match to return the values found.
98
+ let found = true;
99
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
100
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
101
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
102
+ // If the current part of the candidate is a "template" part
103
+ // Try to use the suffix of pattern to match the path
104
+ // {guid} ==> $
105
+ // {guid}:export ==> :export$
106
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
107
+ if (!isMatched) {
105
108
  found = false;
106
109
  break;
107
110
  }
111
+ continue;
108
112
  }
109
- // We finished evaluating the current candidate parts
110
- // if all parts matched we return the success values form
111
- // the path mapping.
112
- if (found) {
113
- return value;
113
+ // If the candidate part is not a template and
114
+ // the parts don't match mark the candidate as not found
115
+ // to move on with the next candidate path.
116
+ if (candidateParts[i] !== pathParts[j]) {
117
+ found = false;
118
+ break;
114
119
  }
115
120
  }
121
+ // We finished evaluating the current candidate parts
122
+ // Update the matched value if and only if we found the longer pattern
123
+ if (found && candidatePath.length > matchedLen) {
124
+ matchedLen = candidatePath.length;
125
+ matchedValue = value;
126
+ }
116
127
  }
117
- // No match was found, return an empty array.
118
- return [];
119
- }
120
- function hasParametrizedPath(path) {
121
- return path.includes("/{");
128
+ return matchedValue;
122
129
  }
123
130
  function getPathFromMapKey(mapKey) {
124
131
  const pathStart = mapKey.indexOf("/");
@@ -1 +1 @@
1
- {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA8GlC,MAAM,WAAW,GAA6B;IAC5C,wCAAwC,EAAE,CAAC,KAAK,CAAC;IACjD,gDAAgD,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAChE,+CAA+C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC/D,6FAA6F,EAAE;QAC7F,KAAK;QACL,KAAK;KACN;IACD,gGAAgG,EAC9F,CAAC,KAAK,CAAC;IACT,kDAAkD,EAAE,CAAC,KAAK,CAAC;IAC3D,mEAAmE,EAAE,CAAC,KAAK,CAAC;IAC5E,mFAAmF,EAAE,CAAC,KAAK,CAAC;IAC5F,mGA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AAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DeviceUpdateListUpdates200Response,\n DeviceUpdateListUpdatesdefaultResponse,\n DeviceUpdateImportUpdate200Response,\n DeviceUpdateImportUpdate202Response,\n DeviceUpdateImportUpdatedefaultResponse,\n DeviceUpdateGetUpdate200Response,\n DeviceUpdateGetUpdate304Response,\n DeviceUpdateGetUpdatedefaultResponse,\n DeviceUpdateDeleteUpdate202Response,\n DeviceUpdateDeleteUpdatedefaultResponse,\n DeviceUpdateListProviders200Response,\n DeviceUpdateListProvidersdefaultResponse,\n DeviceUpdateListNames200Response,\n DeviceUpdateListNamesdefaultResponse,\n DeviceUpdateListVersions200Response,\n DeviceUpdateListVersionsdefaultResponse,\n DeviceUpdateListFiles200Response,\n DeviceUpdateListFilesdefaultResponse,\n DeviceUpdateGetFile200Response,\n DeviceUpdateGetFile304Response,\n DeviceUpdateGetFiledefaultResponse,\n DeviceUpdateListOperationStatuses200Response,\n DeviceUpdateListOperationStatusesdefaultResponse,\n DeviceUpdateGetOperationStatus200Response,\n DeviceUpdateGetOperationStatus304Response,\n DeviceUpdateGetOperationStatusdefaultResponse,\n DeviceManagementListDeviceClasses200Response,\n DeviceManagementListDeviceClassesdefaultResponse,\n DeviceManagementGetDeviceClass200Response,\n DeviceManagementGetDeviceClassdefaultResponse,\n DeviceManagementUpdateDeviceClass200Response,\n DeviceManagementUpdateDeviceClassdefaultResponse,\n DeviceManagementDeleteDeviceClass204Response,\n DeviceManagementDeleteDeviceClassdefaultResponse,\n DeviceManagementListInstallableUpdatesForDeviceClass200Response,\n DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse,\n DeviceManagementListDevices200Response,\n DeviceManagementListDevicesdefaultResponse,\n DeviceManagementImportDevices202Response,\n DeviceManagementImportDevicesdefaultResponse,\n DeviceManagementGetDevice200Response,\n DeviceManagementGetDevicedefaultResponse,\n DeviceManagementGetDeviceModule200Response,\n DeviceManagementGetDeviceModuledefaultResponse,\n DeviceManagementGetUpdateCompliance200Response,\n DeviceManagementGetUpdateCompliancedefaultResponse,\n DeviceManagementListGroups200Response,\n DeviceManagementListGroupsdefaultResponse,\n DeviceManagementGetGroup200Response,\n DeviceManagementGetGroupdefaultResponse,\n DeviceManagementDeleteGroup204Response,\n DeviceManagementDeleteGroupdefaultResponse,\n DeviceManagementGetUpdateComplianceForGroup200Response,\n DeviceManagementGetUpdateComplianceForGroupdefaultResponse,\n DeviceManagementListBestUpdatesForGroup200Response,\n DeviceManagementListBestUpdatesForGroupdefaultResponse,\n DeviceManagementListDeploymentsForGroup200Response,\n DeviceManagementListDeploymentsForGroupdefaultResponse,\n DeviceManagementGetDeployment200Response,\n DeviceManagementGetDeploymentdefaultResponse,\n DeviceManagementCreateOrUpdateDeployment200Response,\n DeviceManagementCreateOrUpdateDeploymentdefaultResponse,\n DeviceManagementDeleteDeployment204Response,\n DeviceManagementDeleteDeploymentdefaultResponse,\n DeviceManagementGetDeploymentStatus200Response,\n DeviceManagementGetDeploymentStatusdefaultResponse,\n DeviceManagementListDeviceClassSubgroupsForGroup200Response,\n DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse,\n DeviceManagementGetDeviceClassSubgroup200Response,\n DeviceManagementGetDeviceClassSubgroupdefaultResponse,\n DeviceManagementDeleteDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeviceClassSubgroupdefaultResponse,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse,\n DeviceManagementListDeploymentsForDeviceClassSubgroup200Response,\n DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse,\n DeviceManagementGetDeploymentForDeviceClassSubgroup200Response,\n DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse,\n DeviceManagementStopDeployment200Response,\n DeviceManagementStopDeploymentdefaultResponse,\n DeviceManagementRetryDeployment200Response,\n DeviceManagementRetryDeploymentdefaultResponse,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse,\n DeviceManagementGetOperationStatus200Response,\n DeviceManagementGetOperationStatus304Response,\n DeviceManagementGetOperationStatusdefaultResponse,\n DeviceManagementListOperationStatuses200Response,\n DeviceManagementListOperationStatusesdefaultResponse,\n DeviceManagementStartLogCollection201Response,\n DeviceManagementStartLogCollectiondefaultResponse,\n DeviceManagementGetLogCollection200Response,\n DeviceManagementGetLogCollectiondefaultResponse,\n DeviceManagementListLogCollections200Response,\n DeviceManagementListLogCollectionsdefaultResponse,\n DeviceManagementGetLogCollectionDetailedStatus200Response,\n DeviceManagementGetLogCollectionDetailedStatusdefaultResponse,\n DeviceManagementListHealthOfDevices200Response,\n DeviceManagementListHealthOfDevicesdefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /deviceUpdate/{instanceId}/updates\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\": [\n \"200\",\n \"304\",\n ],\n \"DELETE /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\":\n [\"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\":\n [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/devices\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\n \"204\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"204\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\":\n [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/operations\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"201\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse,\n): response is DeviceUpdateListUpdatesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdatedefaultResponse,\n): response is DeviceUpdateImportUpdatedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdatedefaultResponse,\n): response is DeviceUpdateGetUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse,\n): response is DeviceUpdateDeleteUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse,\n): response is DeviceUpdateListProvidersdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse,\n): response is DeviceUpdateListNamesdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse,\n): response is DeviceUpdateListVersionsdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse,\n): response is DeviceUpdateListFilesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFiledefaultResponse,\n): response is DeviceUpdateGetFiledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesdefaultResponse,\n): response is DeviceUpdateListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusdefaultResponse,\n): response is DeviceUpdateGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesdefaultResponse,\n): response is DeviceManagementListDeviceClassesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassdefaultResponse,\n): response is DeviceManagementGetDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassdefaultResponse,\n): response is DeviceManagementUpdateDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse,\n): response is DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse,\n): response is DeviceManagementListDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse,\n): response is DeviceManagementImportDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse,\n): response is DeviceManagementGetDevicedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuledefaultResponse,\n): response is DeviceManagementGetDeviceModuledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse,\n): response is DeviceManagementListGroupsdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse,\n): response is DeviceManagementGetGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse,\n): response is DeviceManagementDeleteGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse,\n): response is DeviceManagementGetUpdateComplianceForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupdefaultResponse,\n): response is DeviceManagementListBestUpdatesForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse,\n): response is DeviceManagementGetDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse,\n): response is DeviceManagementCreateOrUpdateDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentdefaultResponse,\n): response is DeviceManagementDeleteDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse,\n): response is DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentdefaultResponse,\n): response is DeviceManagementStopDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentdefaultResponse,\n): response is DeviceManagementRetryDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse,\n): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusdefaultResponse,\n): response is DeviceManagementGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesdefaultResponse,\n): response is DeviceManagementListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectiondefaultResponse,\n): response is DeviceManagementStartLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectiondefaultResponse,\n): response is DeviceManagementGetLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsdefaultResponse,\n): response is DeviceManagementListLogCollectionsdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse,\n): response is DeviceManagementGetLogCollectionDetailedStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesdefaultResponse,\n): response is DeviceManagementListHealthOfDevicesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListUpdates200Response\n | DeviceUpdateListUpdatesdefaultResponse\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdatedefaultResponse\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdatedefaultResponse\n | DeviceUpdateDeleteUpdate202Response\n | DeviceUpdateDeleteUpdatedefaultResponse\n | DeviceUpdateListProviders200Response\n | DeviceUpdateListProvidersdefaultResponse\n | DeviceUpdateListNames200Response\n | DeviceUpdateListNamesdefaultResponse\n | DeviceUpdateListVersions200Response\n | DeviceUpdateListVersionsdefaultResponse\n | DeviceUpdateListFiles200Response\n | DeviceUpdateListFilesdefaultResponse\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFiledefaultResponse\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesdefaultResponse\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusdefaultResponse\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesdefaultResponse\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassdefaultResponse\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassdefaultResponse\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassdefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n | DeviceManagementListDevices200Response\n | DeviceManagementListDevicesdefaultResponse\n | DeviceManagementImportDevices202Response\n | DeviceManagementImportDevicesdefaultResponse\n | DeviceManagementGetDevice200Response\n | DeviceManagementGetDevicedefaultResponse\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuledefaultResponse\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateCompliancedefaultResponse\n | DeviceManagementListGroups200Response\n | DeviceManagementListGroupsdefaultResponse\n | DeviceManagementGetGroup200Response\n | DeviceManagementGetGroupdefaultResponse\n | DeviceManagementDeleteGroup204Response\n | DeviceManagementDeleteGroupdefaultResponse\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupdefaultResponse\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupdefaultResponse\n | DeviceManagementGetDeployment200Response\n | DeviceManagementGetDeploymentdefaultResponse\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentdefaultResponse\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentdefaultResponse\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusdefaultResponse\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesdefaultResponse\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectiondefaultResponse\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectiondefaultResponse\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsdefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesdefaultResponse,\n): response is\n | DeviceUpdateListUpdatesdefaultResponse\n | DeviceUpdateImportUpdatedefaultResponse\n | DeviceUpdateGetUpdatedefaultResponse\n | DeviceUpdateDeleteUpdatedefaultResponse\n | DeviceUpdateListProvidersdefaultResponse\n | DeviceUpdateListNamesdefaultResponse\n | DeviceUpdateListVersionsdefaultResponse\n | DeviceUpdateListFilesdefaultResponse\n | DeviceUpdateGetFiledefaultResponse\n | DeviceUpdateListOperationStatusesdefaultResponse\n | DeviceUpdateGetOperationStatusdefaultResponse\n | DeviceManagementListDeviceClassesdefaultResponse\n | DeviceManagementGetDeviceClassdefaultResponse\n | DeviceManagementUpdateDeviceClassdefaultResponse\n | DeviceManagementDeleteDeviceClassdefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n | DeviceManagementListDevicesdefaultResponse\n | DeviceManagementImportDevicesdefaultResponse\n | DeviceManagementGetDevicedefaultResponse\n | DeviceManagementGetDeviceModuledefaultResponse\n | DeviceManagementGetUpdateCompliancedefaultResponse\n | DeviceManagementListGroupsdefaultResponse\n | DeviceManagementGetGroupdefaultResponse\n | DeviceManagementDeleteGroupdefaultResponse\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse\n | DeviceManagementListBestUpdatesForGroupdefaultResponse\n | DeviceManagementListDeploymentsForGroupdefaultResponse\n | DeviceManagementGetDeploymentdefaultResponse\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse\n | DeviceManagementDeleteDeploymentdefaultResponse\n | DeviceManagementGetDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementStopDeploymentdefaultResponse\n | DeviceManagementRetryDeploymentdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n | DeviceManagementGetOperationStatusdefaultResponse\n | DeviceManagementListOperationStatusesdefaultResponse\n | DeviceManagementStartLogCollectiondefaultResponse\n | DeviceManagementGetLogCollectiondefaultResponse\n | DeviceManagementListLogCollectionsdefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n | DeviceManagementListHealthOfDevicesdefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = geParametrizedPathSuccess(url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction geParametrizedPathSuccess(path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // If the candidate and actual paths don't match in size\n // we move on to the next candidate path\n if (candidateParts.length === pathParts.length && hasParametrizedPath(key)) {\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = 0; i < candidateParts.length; i++) {\n if (candidateParts[i].startsWith(\"{\") && candidateParts[i].endsWith(\"}\")) {\n // If the current part of the candidate is a \"template\" part\n // it is a match with the actual path part on hand\n // skip as the parameterized part can match anything\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[i]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // if all parts matched we return the success values form\n // the path mapping.\n if (found) {\n return value;\n }\n }\n }\n\n // No match was found, return an empty array.\n return [];\n}\n\nfunction hasParametrizedPath(path: string): boolean {\n return path.includes(\"/{\");\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA8GlC,MAAM,WAAW,GAA6B;IAC5C,wCAAwC,EAAE,CAAC,KAAK,CAAC;IACjD,+CAA+C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC/D,gDAAgD,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAChE,6FAA6F,EAAE;QAC7F,KAAK;QACL,KAAK;KACN;IACD,gGAAgG,EAC9F,CAAC,KAAK,CAAC;IACT,kDAAkD,EAAE,CAAC,KAAK,CAAC;IAC3D,mEAAmE,EAAE,CAAC,KAAK,CAAC;IAC5E,mFAAmF,EAAE,CAAC,KAAK,CAAC;IAC5F,mGAAmG,EACjG,CAAC,KAAK,CAAC;IACT,4GAA4G,EAC1G,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,mDAAmD,EAAE,CAAC,KAAK,CAAC;IAC5D,iEAAiE,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACjF,yDAAyD,EAAE,CAAC,KAAK,CAAC;IAClE,yEAAyE,EAAE,CAAC,KAAK,CAAC;IAClF,2EAA2E,EAAE,CAAC,KAAK,CAAC;IACpF,4EAA4E,EAAE,CAAC,KAAK,CAAC;IACrF,4FAA4F,EAAE;QAC5F,KAAK;KACN;IACD,mDAAmD,EAAE,CAAC,KAAK,CAAC;IAC5D,0DAA0D,EAAE,CAAC,KAAK,CAAC;IACnE,2DAA2D,EAAE,CAAC,KAAK,CAAC;IACpE,8DAA8D,EAAE,CAAC,KAAK,CAAC;IACvE,iFAAiF,EAAE,CAAC,KAAK,CAAC;IAC1F,4DAA4D,EAAE,CAAC,KAAK,CAAC;IACrE,kDAAkD,EAAE,CAAC,KAAK,CAAC;IAC3D,4DAA4D,EAAE,CAAC,KAAK,CA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S,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DeviceUpdateListUpdates200Response,\n DeviceUpdateListUpdatesDefaultResponse,\n DeviceUpdateImportUpdate200Response,\n DeviceUpdateImportUpdate202Response,\n DeviceUpdateImportUpdateDefaultResponse,\n DeviceUpdateGetUpdate200Response,\n DeviceUpdateGetUpdate304Response,\n DeviceUpdateGetUpdateDefaultResponse,\n DeviceUpdateDeleteUpdate202Response,\n DeviceUpdateDeleteUpdateDefaultResponse,\n DeviceUpdateListProviders200Response,\n DeviceUpdateListProvidersDefaultResponse,\n DeviceUpdateListNames200Response,\n DeviceUpdateListNamesDefaultResponse,\n DeviceUpdateListVersions200Response,\n DeviceUpdateListVersionsDefaultResponse,\n DeviceUpdateListFiles200Response,\n DeviceUpdateListFilesDefaultResponse,\n DeviceUpdateGetFile200Response,\n DeviceUpdateGetFile304Response,\n DeviceUpdateGetFileDefaultResponse,\n DeviceUpdateListOperationStatuses200Response,\n DeviceUpdateListOperationStatusesDefaultResponse,\n DeviceUpdateGetOperationStatus200Response,\n DeviceUpdateGetOperationStatus304Response,\n DeviceUpdateGetOperationStatusDefaultResponse,\n DeviceManagementListDeviceClasses200Response,\n DeviceManagementListDeviceClassesDefaultResponse,\n DeviceManagementGetDeviceClass200Response,\n DeviceManagementGetDeviceClassDefaultResponse,\n DeviceManagementUpdateDeviceClass200Response,\n DeviceManagementUpdateDeviceClassDefaultResponse,\n DeviceManagementDeleteDeviceClass204Response,\n DeviceManagementDeleteDeviceClassDefaultResponse,\n DeviceManagementListInstallableUpdatesForDeviceClass200Response,\n DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse,\n DeviceManagementListDevices200Response,\n DeviceManagementListDevicesDefaultResponse,\n DeviceManagementImportDevices202Response,\n DeviceManagementImportDevicesDefaultResponse,\n DeviceManagementGetDevice200Response,\n DeviceManagementGetDeviceDefaultResponse,\n DeviceManagementGetDeviceModule200Response,\n DeviceManagementGetDeviceModuleDefaultResponse,\n DeviceManagementGetUpdateCompliance200Response,\n DeviceManagementGetUpdateComplianceDefaultResponse,\n DeviceManagementListGroups200Response,\n DeviceManagementListGroupsDefaultResponse,\n DeviceManagementGetGroup200Response,\n DeviceManagementGetGroupDefaultResponse,\n DeviceManagementDeleteGroup204Response,\n DeviceManagementDeleteGroupDefaultResponse,\n DeviceManagementGetUpdateComplianceForGroup200Response,\n DeviceManagementGetUpdateComplianceForGroupDefaultResponse,\n DeviceManagementListBestUpdatesForGroup200Response,\n DeviceManagementListBestUpdatesForGroupDefaultResponse,\n DeviceManagementListDeploymentsForGroup200Response,\n DeviceManagementListDeploymentsForGroupDefaultResponse,\n DeviceManagementGetDeployment200Response,\n DeviceManagementGetDeploymentDefaultResponse,\n DeviceManagementCreateOrUpdateDeployment200Response,\n DeviceManagementCreateOrUpdateDeploymentDefaultResponse,\n DeviceManagementDeleteDeployment204Response,\n DeviceManagementDeleteDeploymentDefaultResponse,\n DeviceManagementGetDeploymentStatus200Response,\n DeviceManagementGetDeploymentStatusDefaultResponse,\n DeviceManagementListDeviceClassSubgroupsForGroup200Response,\n DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse,\n DeviceManagementGetDeviceClassSubgroup200Response,\n DeviceManagementGetDeviceClassSubgroupDefaultResponse,\n DeviceManagementDeleteDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeviceClassSubgroupDefaultResponse,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response,\n DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse,\n DeviceManagementListDeploymentsForDeviceClassSubgroup200Response,\n DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse,\n DeviceManagementGetDeploymentForDeviceClassSubgroup200Response,\n DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse,\n DeviceManagementStopDeployment200Response,\n DeviceManagementStopDeploymentDefaultResponse,\n DeviceManagementRetryDeployment200Response,\n DeviceManagementRetryDeploymentDefaultResponse,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse,\n DeviceManagementGetOperationStatus200Response,\n DeviceManagementGetOperationStatus304Response,\n DeviceManagementGetOperationStatusDefaultResponse,\n DeviceManagementListOperationStatuses200Response,\n DeviceManagementListOperationStatusesDefaultResponse,\n DeviceManagementStartLogCollection201Response,\n DeviceManagementStartLogCollectionDefaultResponse,\n DeviceManagementGetLogCollection200Response,\n DeviceManagementGetLogCollectionDefaultResponse,\n DeviceManagementListLogCollections200Response,\n DeviceManagementListLogCollectionsDefaultResponse,\n DeviceManagementGetLogCollectionDetailedStatus200Response,\n DeviceManagementGetLogCollectionDetailedStatusDefaultResponse,\n DeviceManagementListHealthOfDevices200Response,\n DeviceManagementListHealthOfDevicesDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /deviceUpdate/{instanceId}/updates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"POST /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\": [\n \"200\",\n \"304\",\n ],\n \"DELETE /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\":\n [\"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\":\n [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/devices\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"POST /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\n \"204\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"204\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\":\n [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/operations\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"201\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesDefaultResponse,\n): response is DeviceUpdateListUpdatesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdateDefaultResponse,\n): response is DeviceUpdateImportUpdateDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdateDefaultResponse,\n): response is DeviceUpdateGetUpdateDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdateDefaultResponse,\n): response is DeviceUpdateDeleteUpdateDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersDefaultResponse,\n): response is DeviceUpdateListProvidersDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListNames200Response | DeviceUpdateListNamesDefaultResponse,\n): response is DeviceUpdateListNamesDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsDefaultResponse,\n): response is DeviceUpdateListVersionsDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesDefaultResponse,\n): response is DeviceUpdateListFilesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFileDefaultResponse,\n): response is DeviceUpdateGetFileDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesDefaultResponse,\n): response is DeviceUpdateListOperationStatusesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusDefaultResponse,\n): response is DeviceUpdateGetOperationStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesDefaultResponse,\n): response is DeviceManagementListDeviceClassesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassDefaultResponse,\n): response is DeviceManagementGetDeviceClassDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassDefaultResponse,\n): response is DeviceManagementUpdateDeviceClassDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassDefaultResponse,\n): response is DeviceManagementDeleteDeviceClassDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse,\n): response is DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListDevices200Response | DeviceManagementListDevicesDefaultResponse,\n): response is DeviceManagementListDevicesDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesDefaultResponse,\n): response is DeviceManagementImportDevicesDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDevice200Response | DeviceManagementGetDeviceDefaultResponse,\n): response is DeviceManagementGetDeviceDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuleDefaultResponse,\n): response is DeviceManagementGetDeviceModuleDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateComplianceDefaultResponse,\n): response is DeviceManagementGetUpdateComplianceDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListGroups200Response | DeviceManagementListGroupsDefaultResponse,\n): response is DeviceManagementListGroupsDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupDefaultResponse,\n): response is DeviceManagementGetGroupDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupDefaultResponse,\n): response is DeviceManagementDeleteGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupDefaultResponse,\n): response is DeviceManagementGetUpdateComplianceForGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupDefaultResponse,\n): response is DeviceManagementListBestUpdatesForGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupDefaultResponse,\n): response is DeviceManagementListDeploymentsForGroupDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentDefaultResponse,\n): response is DeviceManagementGetDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentDefaultResponse,\n): response is DeviceManagementCreateOrUpdateDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentDefaultResponse,\n): response is DeviceManagementDeleteDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusDefaultResponse,\n): response is DeviceManagementGetDeploymentStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse,\n): response is DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementDeleteDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentDefaultResponse,\n): response is DeviceManagementStopDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentDefaultResponse,\n): response is DeviceManagementRetryDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse,\n): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusDefaultResponse,\n): response is DeviceManagementGetOperationStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesDefaultResponse,\n): response is DeviceManagementListOperationStatusesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectionDefaultResponse,\n): response is DeviceManagementStartLogCollectionDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectionDefaultResponse,\n): response is DeviceManagementGetLogCollectionDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsDefaultResponse,\n): response is DeviceManagementListLogCollectionsDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse,\n): response is DeviceManagementGetLogCollectionDetailedStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesDefaultResponse,\n): response is DeviceManagementListHealthOfDevicesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListUpdates200Response\n | DeviceUpdateListUpdatesDefaultResponse\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdateDefaultResponse\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdateDefaultResponse\n | DeviceUpdateDeleteUpdate202Response\n | DeviceUpdateDeleteUpdateDefaultResponse\n | DeviceUpdateListProviders200Response\n | DeviceUpdateListProvidersDefaultResponse\n | DeviceUpdateListNames200Response\n | DeviceUpdateListNamesDefaultResponse\n | DeviceUpdateListVersions200Response\n | DeviceUpdateListVersionsDefaultResponse\n | DeviceUpdateListFiles200Response\n | DeviceUpdateListFilesDefaultResponse\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFileDefaultResponse\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesDefaultResponse\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusDefaultResponse\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesDefaultResponse\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassDefaultResponse\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassDefaultResponse\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassDefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse\n | DeviceManagementListDevices200Response\n | DeviceManagementListDevicesDefaultResponse\n | DeviceManagementImportDevices202Response\n | DeviceManagementImportDevicesDefaultResponse\n | DeviceManagementGetDevice200Response\n | DeviceManagementGetDeviceDefaultResponse\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuleDefaultResponse\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateComplianceDefaultResponse\n | DeviceManagementListGroups200Response\n | DeviceManagementListGroupsDefaultResponse\n | DeviceManagementGetGroup200Response\n | DeviceManagementGetGroupDefaultResponse\n | DeviceManagementDeleteGroup204Response\n | DeviceManagementDeleteGroupDefaultResponse\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupDefaultResponse\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupDefaultResponse\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupDefaultResponse\n | DeviceManagementGetDeployment200Response\n | DeviceManagementGetDeploymentDefaultResponse\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentDefaultResponse\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentDefaultResponse\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentDefaultResponse\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusDefaultResponse\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesDefaultResponse\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectionDefaultResponse\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectionDefaultResponse\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsDefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesDefaultResponse,\n): response is\n | DeviceUpdateListUpdatesDefaultResponse\n | DeviceUpdateImportUpdateDefaultResponse\n | DeviceUpdateGetUpdateDefaultResponse\n | DeviceUpdateDeleteUpdateDefaultResponse\n | DeviceUpdateListProvidersDefaultResponse\n | DeviceUpdateListNamesDefaultResponse\n | DeviceUpdateListVersionsDefaultResponse\n | DeviceUpdateListFilesDefaultResponse\n | DeviceUpdateGetFileDefaultResponse\n | DeviceUpdateListOperationStatusesDefaultResponse\n | DeviceUpdateGetOperationStatusDefaultResponse\n | DeviceManagementListDeviceClassesDefaultResponse\n | DeviceManagementGetDeviceClassDefaultResponse\n | DeviceManagementUpdateDeviceClassDefaultResponse\n | DeviceManagementDeleteDeviceClassDefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse\n | DeviceManagementListDevicesDefaultResponse\n | DeviceManagementImportDevicesDefaultResponse\n | DeviceManagementGetDeviceDefaultResponse\n | DeviceManagementGetDeviceModuleDefaultResponse\n | DeviceManagementGetUpdateComplianceDefaultResponse\n | DeviceManagementListGroupsDefaultResponse\n | DeviceManagementGetGroupDefaultResponse\n | DeviceManagementDeleteGroupDefaultResponse\n | DeviceManagementGetUpdateComplianceForGroupDefaultResponse\n | DeviceManagementListBestUpdatesForGroupDefaultResponse\n | DeviceManagementListDeploymentsForGroupDefaultResponse\n | DeviceManagementGetDeploymentDefaultResponse\n | DeviceManagementCreateOrUpdateDeploymentDefaultResponse\n | DeviceManagementDeleteDeploymentDefaultResponse\n | DeviceManagementGetDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementStopDeploymentDefaultResponse\n | DeviceManagementRetryDeploymentDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse\n | DeviceManagementGetOperationStatusDefaultResponse\n | DeviceManagementListOperationStatusesDefaultResponse\n | DeviceManagementStartLogCollectionDefaultResponse\n | DeviceManagementGetLogCollectionDefaultResponse\n | DeviceManagementListLogCollectionsDefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse\n | DeviceManagementListHealthOfDevicesDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAA0C,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createClientLogger } from "@azure/logger";
4
+ export const logger = createClientLogger("iot-device-update");
5
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"iot-device-update\");\n"]}
@@ -1,3 +1,4 @@
1
+ /** Update identifier. */
1
2
  export interface UpdateId {
2
3
  /** Update provider. */
3
4
  provider: string;
@@ -6,6 +7,7 @@ export interface UpdateId {
6
7
  /** Update version. */
7
8
  version: string;
8
9
  }
10
+ /** Import update input item metadata. */
9
11
  export interface ImportUpdateInputItem {
10
12
  /** Import manifest metadata like source URL, file size/hashes, etc. */
11
13
  importManifest: ImportManifestMetadata;
@@ -14,6 +16,7 @@ export interface ImportUpdateInputItem {
14
16
  /** One or more update file properties like filename and source URL. */
15
17
  files?: Array<FileImportMetadata>;
16
18
  }
19
+ /** Metadata describing the import manifest, a document which describes the files and other metadata about an update version. */
17
20
  export interface ImportManifestMetadata {
18
21
  /** Azure Blob location from which the import manifest can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */
19
22
  url: string;
@@ -22,24 +25,24 @@ export interface ImportManifestMetadata {
22
25
  /** A JSON object containing the hash(es) of the file. At least SHA256 hash is required. This object can be thought of as a set of key-value pairs where the key is the hash algorithm, and the value is the hash of the file calculated using that algorithm. */
23
26
  hashes: Record<string, string>;
24
27
  }
28
+ /** Metadata describing an update file. */
25
29
  export interface FileImportMetadata {
26
30
  /** Update file name as specified inside import manifest. */
27
31
  filename: string;
28
32
  /** Azure Blob location from which the update file can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */
29
33
  url: string;
30
34
  }
35
+ /** Update information. */
31
36
  export interface UpdateInfo {
32
37
  /** Update identifier. */
33
38
  updateId: UpdateId;
34
- /** Update description. */
35
- description?: string;
36
- /** Friendly update name. */
37
- friendlyName?: string;
38
39
  }
40
+ /** Device Class JSON Merge Patch request body */
39
41
  export interface PatchBody {
40
42
  /** The device class friendly name. Friendly name can be 1-100 characters, alphanumeric, dot, and dash. */
41
43
  friendlyName: string;
42
44
  }
45
+ /** Deployment metadata. */
43
46
  export interface Deployment {
44
47
  /** The caller-provided deployment identifier. This cannot be longer than 73 characters, must be all lower-case, and cannot contain '&', '^', '[', ']', '{', '}', '|', '<', '>', forward slash, backslash, or double quote. The Updates view in the Azure Portal IoT Hub resource generates a GUID for deploymentId when you create a deployment. */
45
48
  deploymentId: string;
@@ -60,18 +63,21 @@ export interface Deployment {
60
63
  /** Boolean flag indicating whether the deployment is a rollback deployment. */
61
64
  isCloudInitiatedRollback?: boolean;
62
65
  }
66
+ /** Rollback policy for deployment */
63
67
  export interface CloudInitiatedRollbackPolicy {
64
68
  /** Update to rollback to. */
65
69
  update: UpdateInfo;
66
70
  /** Failure conditions to initiate rollback policy. */
67
71
  failure: CloudInitiatedRollbackPolicyFailure;
68
72
  }
73
+ /** Failure conditions to initiate rollback policy */
69
74
  export interface CloudInitiatedRollbackPolicyFailure {
70
75
  /** Percentage of devices that failed. */
71
76
  devicesFailedPercentage: number;
72
77
  /** Number of devices that failed. */
73
78
  devicesFailedCount: number;
74
79
  }
80
+ /** Diagnostics request body */
75
81
  export interface LogCollection {
76
82
  /** The log collection id. */
77
83
  operationId?: string;
@@ -79,13 +85,8 @@ export interface LogCollection {
79
85
  deviceList: Array<DeviceUpdateAgentId>;
80
86
  /** Description of the diagnostics operation. */
81
87
  description?: string;
82
- /** The timestamp when the operation was created. */
83
- createdDateTime?: string;
84
- /** A timestamp for when the current state was entered. */
85
- lastActionDateTime?: string;
86
- /** Operation status. */
87
- status?: "NotStarted" | "Running" | "Succeeded" | "Failed";
88
88
  }
89
+ /** Device Update agent id */
89
90
  export interface DeviceUpdateAgentId {
90
91
  /** Device Id */
91
92
  deviceId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,uEAAuE;IACvE,cAAc,EAAE,sBAAsB,CAAC;IACvC,4BAA4B;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,KAAK,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,sBAAsB;IACrC,0MAA0M;IA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