@datadog/datadog-api-client 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE-3rdparty.csv +1 -0
  3. package/README.md +120 -3
  4. package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
  5. package/dist/packages/datadog-api-client-common/configuration.js +3 -6
  6. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  7. package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
  8. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
  9. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +11 -5
  10. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
  11. package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
  12. package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
  13. package/dist/packages/datadog-api-client-common/util.js +1 -32
  14. package/dist/packages/datadog-api-client-common/util.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
  16. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
  17. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
  18. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
  19. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
  20. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
  22. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
  23. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
  24. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
  25. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
  26. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
  28. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
  29. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
  30. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
  31. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
  32. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
  34. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
  35. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
  36. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
  37. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
  38. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
  40. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
  41. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
  42. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
  43. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
  44. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
  45. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
  46. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
  47. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
  48. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
  49. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
  50. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
  51. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
  52. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
  54. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
  55. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
  56. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
  57. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
  58. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
  59. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
  60. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
  61. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
  62. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
  63. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
  64. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
  65. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
  67. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
  68. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
  69. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
  70. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
  71. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
  72. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
  73. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1129 -1641
  74. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  75. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
  76. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
  77. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
  78. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
  79. package/dist/packages/datadog-api-client-v1/index.d.ts +23 -0
  80. package/dist/packages/datadog-api-client-v1/index.js +37 -7
  81. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  82. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
  83. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
  84. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
  85. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
  86. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
  87. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
  88. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
  89. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
  90. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
  91. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
  92. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
  93. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
  94. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
  95. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
  96. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  97. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
  98. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
  99. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
  100. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
  101. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
  102. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  103. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
  104. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
  105. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
  106. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
  107. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
  108. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
  109. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
  110. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
  111. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
  112. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
  113. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +6 -1
  114. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  115. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
  116. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
  117. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  118. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +71 -3
  119. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  120. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
  121. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
  122. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
  123. package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
  124. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
  125. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
  126. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
  127. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
  128. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
  129. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
  130. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
  131. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
  132. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
  133. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
  134. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
  135. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
  136. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
  137. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
  138. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
  139. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
  140. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
  141. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
  142. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
  143. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
  144. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
  145. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
  146. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
  147. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
  148. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
  149. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
  150. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
  151. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
  152. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
  153. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
  154. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
  155. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
  156. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
  157. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
  158. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
  159. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
  160. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
  161. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
  162. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
  163. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
  164. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
  165. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
  166. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
  167. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
  168. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
  169. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
  170. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
  171. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
  172. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
  173. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
  174. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
  175. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
  176. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
  177. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
  178. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
  179. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
  180. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
  181. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
  182. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
  183. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
  184. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
  185. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
  186. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
  187. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
  188. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
  189. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
  190. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
  191. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
  192. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  193. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
  194. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
  195. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
  196. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
  197. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
  198. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
  199. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
  200. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
  201. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
  202. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
  203. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
  204. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
  205. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
  206. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
  207. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
  208. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
  209. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
  210. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
  211. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +5 -1
  212. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +5 -1
  213. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
  214. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +5 -1
  215. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +5 -1
  216. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
  217. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +16 -0
  218. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +20 -0
  219. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
  220. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
  221. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
  222. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
  223. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
  224. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
  225. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
  226. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
  227. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
  228. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
  229. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
  230. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -0
  231. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  232. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +12 -0
  233. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +14 -0
  234. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  235. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
  236. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
  237. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  238. package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
  239. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
  240. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
  241. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
  242. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
  243. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
  244. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
  245. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
  246. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
  247. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
  248. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
  249. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
  250. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +58 -86
  251. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  252. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
  253. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
  254. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
  255. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
  256. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
  257. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
  258. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
  259. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
  260. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
  261. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
  262. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
  263. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
  264. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
  265. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
  266. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
  267. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
  268. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
  269. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
  270. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
  271. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
  272. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
  273. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
  274. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
  275. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
  276. package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
  277. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +549 -122
  278. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
  279. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
  280. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
  281. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
  282. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -688
  283. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  284. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
  285. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
  286. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
  287. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
  288. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
  289. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
  290. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
  291. package/dist/packages/datadog-api-client-v2/index.d.ts +49 -6
  292. package/dist/packages/datadog-api-client-v2/index.js +69 -15
  293. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  294. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
  295. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
  296. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
  297. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
  298. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
  299. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
  300. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
  301. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
  302. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
  303. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
  304. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
  305. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
  306. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
  307. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
  308. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
  309. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
  310. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
  311. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
  312. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
  313. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
  314. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
  315. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
  316. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
  317. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
  318. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
  319. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
  320. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
  321. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
  322. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
  323. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
  324. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
  325. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
  326. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
  327. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
  328. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
  329. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
  330. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
  331. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
  332. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
  333. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
  334. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
  335. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
  336. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
  337. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
  338. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
  339. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
  340. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
  341. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
  342. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
  343. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
  344. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
  345. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
  346. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
  347. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
  348. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
  349. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
  350. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
  351. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
  352. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
  353. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
  354. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
  355. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
  356. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
  357. package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
  358. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
  359. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
  360. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
  361. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
  362. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
  363. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
  364. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
  365. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
  366. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
  367. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
  368. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
  369. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
  370. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
  371. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
  372. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
  373. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
  374. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
  375. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
  376. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +98 -12
  377. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  378. package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
  379. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
  380. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
  381. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
  382. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
  383. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
  384. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
  385. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
  386. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
  387. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
  388. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
  389. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
  390. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
  391. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
  392. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
  393. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
  394. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
  395. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
  396. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
  397. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
  398. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
  399. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
  400. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
  401. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
  402. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
  403. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
  404. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
  405. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
  406. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
  407. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
  408. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
  409. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
  410. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
  411. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
  412. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
  413. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
  414. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
  415. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
  416. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
  417. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
  418. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
  419. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
  420. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
  421. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
  422. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
  423. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
  424. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
  425. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
  426. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
  427. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
  428. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
  429. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
  430. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
  431. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
  432. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
  433. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
  434. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
  435. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
  436. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
  437. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
  438. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
  439. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
  440. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
  441. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
  442. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
  443. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
  444. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
  445. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
  446. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
  447. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
  448. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
  449. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
  450. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
  451. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
  452. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
  453. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
  454. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
  455. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
  456. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
  457. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
  458. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
  459. package/dist/version.d.ts +1 -1
  460. package/dist/version.js +1 -1
  461. package/package.json +3 -2
  462. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
@@ -55,9 +55,9 @@ exports.RolesApi = exports.RolesApiResponseProcessor = exports.RolesApiRequestFa
55
55
  var baseapi_1 = require("../../datadog-api-client-common/baseapi");
56
56
  var configuration_1 = require("../../datadog-api-client-common/configuration");
57
57
  var http_1 = require("../../datadog-api-client-common/http/http");
58
+ var logger_1 = require("../../../logger");
58
59
  var ObjectSerializer_1 = require("../models/ObjectSerializer");
59
60
  var exception_1 = require("../../datadog-api-client-common/exception");
60
- var util_1 = require("../../datadog-api-client-common/util");
61
61
  var RolesApiRequestFactory = /** @class */ (function (_super) {
62
62
  __extends(RolesApiRequestFactory, _super);
63
63
  function RolesApiRequestFactory() {
@@ -461,73 +461,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
461
461
  */
462
462
  RolesApiResponseProcessor.prototype.addPermissionToRole = function (response) {
463
463
  return __awaiter(this, void 0, void 0, function () {
464
- var contentType, body_1, _a, _b, _c, _d, body_2, _e, _f, _g, _h, body_3, _j, _k, _l, _m, body_4, _o, _p, _q, _r, body_5, _s, _t, _u, _v, body_6, _w, _x, _y, _z, body;
465
- return __generator(this, function (_0) {
466
- switch (_0.label) {
464
+ var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
465
+ return __generator(this, function (_l) {
466
+ switch (_l.label) {
467
467
  case 0:
468
468
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
469
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
469
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
470
470
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
471
471
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
472
472
  return [4 /*yield*/, response.body.text()];
473
473
  case 1:
474
- body_1 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
475
- "PermissionsResponse",
476
- ""]);
474
+ body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
475
+ "PermissionsResponse"]);
477
476
  return [2 /*return*/, body_1];
478
477
  case 2:
479
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
480
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
481
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
478
+ if (!(response.httpStatusCode == 400 ||
479
+ response.httpStatusCode == 403 ||
480
+ response.httpStatusCode == 404 ||
481
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
482
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
482
483
  return [4 /*yield*/, response.body.text()];
483
484
  case 3:
484
- body_2 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
485
- "APIErrorResponse",
486
- ""]);
487
- throw new exception_1.ApiException(400, body_2);
485
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
486
+ try {
487
+ body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
488
+ throw new exception_1.ApiException(response.httpStatusCode, body_2);
489
+ }
490
+ catch (error) {
491
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
492
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
493
+ }
494
+ _l.label = 4;
488
495
  case 4:
489
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
490
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
491
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
496
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
497
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
498
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
492
499
  return [4 /*yield*/, response.body.text()];
493
500
  case 5:
494
- body_3 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
495
- "APIErrorResponse",
496
- ""]);
497
- throw new exception_1.ApiException(403, body_3);
498
- case 6:
499
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
500
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
501
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
502
- return [4 /*yield*/, response.body.text()];
503
- case 7:
504
- body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
505
- "APIErrorResponse",
506
- ""]);
507
- throw new exception_1.ApiException(404, body_4);
508
- case 8:
509
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
510
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
511
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
512
- return [4 /*yield*/, response.body.text()];
513
- case 9:
514
- body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
515
- "APIErrorResponse",
516
- ""]);
517
- throw new exception_1.ApiException(429, body_5);
518
- case 10:
519
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
520
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
521
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
522
- return [4 /*yield*/, response.body.text()];
523
- case 11:
524
- body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
501
+ body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
525
502
  "PermissionsResponse",
526
503
  ""]);
527
- return [2 /*return*/, body_6];
528
- case 12: return [4 /*yield*/, response.body.text()];
529
- case 13:
530
- body = (_0.sent()) || "";
504
+ return [2 /*return*/, body_3];
505
+ case 6: return [4 /*yield*/, response.body.text()];
506
+ case 7:
507
+ body = (_l.sent()) || "";
531
508
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
532
509
  }
533
510
  });
@@ -542,73 +519,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
542
519
  */
543
520
  RolesApiResponseProcessor.prototype.addUserToRole = function (response) {
544
521
  return __awaiter(this, void 0, void 0, function () {
545
- var contentType, body_7, _a, _b, _c, _d, body_8, _e, _f, _g, _h, body_9, _j, _k, _l, _m, body_10, _o, _p, _q, _r, body_11, _s, _t, _u, _v, body_12, _w, _x, _y, _z, body;
546
- return __generator(this, function (_0) {
547
- switch (_0.label) {
522
+ var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
523
+ return __generator(this, function (_l) {
524
+ switch (_l.label) {
548
525
  case 0:
549
526
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
550
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
527
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
551
528
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
552
529
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
553
530
  return [4 /*yield*/, response.body.text()];
554
531
  case 1:
555
- body_7 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
556
- "UsersResponse",
557
- ""]);
558
- return [2 /*return*/, body_7];
532
+ body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
533
+ "UsersResponse"]);
534
+ return [2 /*return*/, body_4];
559
535
  case 2:
560
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
561
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
562
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
536
+ if (!(response.httpStatusCode == 400 ||
537
+ response.httpStatusCode == 403 ||
538
+ response.httpStatusCode == 404 ||
539
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
540
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
563
541
  return [4 /*yield*/, response.body.text()];
564
542
  case 3:
565
- body_8 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
566
- "APIErrorResponse",
567
- ""]);
568
- throw new exception_1.ApiException(400, body_8);
543
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
544
+ try {
545
+ body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
546
+ throw new exception_1.ApiException(response.httpStatusCode, body_5);
547
+ }
548
+ catch (error) {
549
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
550
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
551
+ }
552
+ _l.label = 4;
569
553
  case 4:
570
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
571
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
572
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
554
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
555
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
556
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
573
557
  return [4 /*yield*/, response.body.text()];
574
558
  case 5:
575
- body_9 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
576
- "APIErrorResponse",
577
- ""]);
578
- throw new exception_1.ApiException(403, body_9);
579
- case 6:
580
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
581
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
582
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
583
- return [4 /*yield*/, response.body.text()];
584
- case 7:
585
- body_10 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
586
- "APIErrorResponse",
587
- ""]);
588
- throw new exception_1.ApiException(404, body_10);
589
- case 8:
590
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
591
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
592
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
593
- return [4 /*yield*/, response.body.text()];
594
- case 9:
595
- body_11 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
596
- "APIErrorResponse",
597
- ""]);
598
- throw new exception_1.ApiException(429, body_11);
599
- case 10:
600
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
601
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
602
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
603
- return [4 /*yield*/, response.body.text()];
604
- case 11:
605
- body_12 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
559
+ body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
606
560
  "UsersResponse",
607
561
  ""]);
608
- return [2 /*return*/, body_12];
609
- case 12: return [4 /*yield*/, response.body.text()];
610
- case 13:
611
- body = (_0.sent()) || "";
562
+ return [2 /*return*/, body_6];
563
+ case 6: return [4 /*yield*/, response.body.text()];
564
+ case 7:
565
+ body = (_l.sent()) || "";
612
566
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
613
567
  }
614
568
  });
@@ -623,83 +577,51 @@ var RolesApiResponseProcessor = /** @class */ (function () {
623
577
  */
624
578
  RolesApiResponseProcessor.prototype.cloneRole = function (response) {
625
579
  return __awaiter(this, void 0, void 0, function () {
626
- var contentType, body_13, _a, _b, _c, _d, body_14, _e, _f, _g, _h, body_15, _j, _k, _l, _m, body_16, _o, _p, _q, _r, body_17, _s, _t, _u, _v, body_18, _w, _x, _y, _z, body_19, _0, _1, _2, _3, body;
627
- return __generator(this, function (_4) {
628
- switch (_4.label) {
580
+ var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
581
+ return __generator(this, function (_l) {
582
+ switch (_l.label) {
629
583
  case 0:
630
584
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
631
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
585
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
632
586
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
633
587
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
634
588
  return [4 /*yield*/, response.body.text()];
635
589
  case 1:
636
- body_13 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
637
- "RoleResponse",
638
- ""]);
639
- return [2 /*return*/, body_13];
590
+ body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
591
+ "RoleResponse"]);
592
+ return [2 /*return*/, body_7];
640
593
  case 2:
641
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
642
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
643
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
594
+ if (!(response.httpStatusCode == 400 ||
595
+ response.httpStatusCode == 403 ||
596
+ response.httpStatusCode == 404 ||
597
+ response.httpStatusCode == 409 ||
598
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
599
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
644
600
  return [4 /*yield*/, response.body.text()];
645
601
  case 3:
646
- body_14 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
647
- "APIErrorResponse",
648
- ""]);
649
- throw new exception_1.ApiException(400, body_14);
602
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
603
+ try {
604
+ body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
605
+ throw new exception_1.ApiException(response.httpStatusCode, body_8);
606
+ }
607
+ catch (error) {
608
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
609
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
610
+ }
611
+ _l.label = 4;
650
612
  case 4:
651
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
652
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
653
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
613
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
614
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
615
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
654
616
  return [4 /*yield*/, response.body.text()];
655
617
  case 5:
656
- body_15 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
657
- "APIErrorResponse",
658
- ""]);
659
- throw new exception_1.ApiException(403, body_15);
660
- case 6:
661
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
662
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
663
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
664
- return [4 /*yield*/, response.body.text()];
665
- case 7:
666
- body_16 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
667
- "APIErrorResponse",
668
- ""]);
669
- throw new exception_1.ApiException(404, body_16);
670
- case 8:
671
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 10];
672
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
673
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
674
- return [4 /*yield*/, response.body.text()];
675
- case 9:
676
- body_17 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
677
- "APIErrorResponse",
678
- ""]);
679
- throw new exception_1.ApiException(409, body_17);
680
- case 10:
681
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
682
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
683
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
684
- return [4 /*yield*/, response.body.text()];
685
- case 11:
686
- body_18 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
687
- "APIErrorResponse",
688
- ""]);
689
- throw new exception_1.ApiException(429, body_18);
690
- case 12:
691
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
692
- _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
693
- _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
694
- return [4 /*yield*/, response.body.text()];
695
- case 13:
696
- body_19 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
618
+ body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
697
619
  "RoleResponse",
698
620
  ""]);
699
- return [2 /*return*/, body_19];
700
- case 14: return [4 /*yield*/, response.body.text()];
701
- case 15:
702
- body = (_4.sent()) || "";
621
+ return [2 /*return*/, body_9];
622
+ case 6: return [4 /*yield*/, response.body.text()];
623
+ case 7:
624
+ body = (_l.sent()) || "";
703
625
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
704
626
  }
705
627
  });
@@ -714,63 +636,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
714
636
  */
715
637
  RolesApiResponseProcessor.prototype.createRole = function (response) {
716
638
  return __awaiter(this, void 0, void 0, function () {
717
- var contentType, body_20, _a, _b, _c, _d, body_21, _e, _f, _g, _h, body_22, _j, _k, _l, _m, body_23, _o, _p, _q, _r, body_24, _s, _t, _u, _v, body;
718
- return __generator(this, function (_w) {
719
- switch (_w.label) {
639
+ var contentType, body_10, _a, _b, _c, _d, bodyText, _e, _f, body_11, body_12, _g, _h, _j, _k, body;
640
+ return __generator(this, function (_l) {
641
+ switch (_l.label) {
720
642
  case 0:
721
643
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
722
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
644
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
723
645
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
724
646
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
725
647
  return [4 /*yield*/, response.body.text()];
726
648
  case 1:
727
- body_20 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
728
- "RoleCreateResponse",
729
- ""]);
730
- return [2 /*return*/, body_20];
649
+ body_10 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
650
+ "RoleCreateResponse"]);
651
+ return [2 /*return*/, body_10];
731
652
  case 2:
732
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
733
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
734
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
653
+ if (!(response.httpStatusCode == 400 ||
654
+ response.httpStatusCode == 403 ||
655
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
656
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
735
657
  return [4 /*yield*/, response.body.text()];
736
658
  case 3:
737
- body_21 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
738
- "APIErrorResponse",
739
- ""]);
740
- throw new exception_1.ApiException(400, body_21);
659
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
660
+ try {
661
+ body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
662
+ throw new exception_1.ApiException(response.httpStatusCode, body_11);
663
+ }
664
+ catch (error) {
665
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
666
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
667
+ }
668
+ _l.label = 4;
741
669
  case 4:
742
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
743
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
744
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
670
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
671
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
672
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
745
673
  return [4 /*yield*/, response.body.text()];
746
674
  case 5:
747
- body_22 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
748
- "APIErrorResponse",
749
- ""]);
750
- throw new exception_1.ApiException(403, body_22);
751
- case 6:
752
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
753
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
754
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
755
- return [4 /*yield*/, response.body.text()];
756
- case 7:
757
- body_23 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
758
- "APIErrorResponse",
759
- ""]);
760
- throw new exception_1.ApiException(429, body_23);
761
- case 8:
762
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
763
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
764
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
765
- return [4 /*yield*/, response.body.text()];
766
- case 9:
767
- body_24 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
675
+ body_12 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
768
676
  "RoleCreateResponse",
769
677
  ""]);
770
- return [2 /*return*/, body_24];
771
- case 10: return [4 /*yield*/, response.body.text()];
772
- case 11:
773
- body = (_w.sent()) || "";
678
+ return [2 /*return*/, body_12];
679
+ case 6: return [4 /*yield*/, response.body.text()];
680
+ case 7:
681
+ body = (_l.sent()) || "";
774
682
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
775
683
  }
776
684
  });
@@ -785,56 +693,43 @@ var RolesApiResponseProcessor = /** @class */ (function () {
785
693
  */
786
694
  RolesApiResponseProcessor.prototype.deleteRole = function (response) {
787
695
  return __awaiter(this, void 0, void 0, function () {
788
- var contentType, body_25, _a, _b, _c, _d, body_26, _e, _f, _g, _h, body_27, _j, _k, _l, _m, body_28, _o, _p, _q, _r, body;
789
- return __generator(this, function (_s) {
790
- switch (_s.label) {
696
+ var contentType, bodyText, _a, _b, body_13, body_14, _c, _d, _e, _f, body;
697
+ return __generator(this, function (_g) {
698
+ switch (_g.label) {
791
699
  case 0:
792
700
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
793
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
701
+ if (response.httpStatusCode == 204) {
794
702
  return [2 /*return*/];
795
703
  }
796
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
797
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
798
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
704
+ if (!(response.httpStatusCode == 403 ||
705
+ response.httpStatusCode == 404 ||
706
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
707
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
799
708
  return [4 /*yield*/, response.body.text()];
800
709
  case 1:
801
- body_25 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
802
- "APIErrorResponse",
803
- ""]);
804
- throw new exception_1.ApiException(403, body_25);
710
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
711
+ try {
712
+ body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
713
+ throw new exception_1.ApiException(response.httpStatusCode, body_13);
714
+ }
715
+ catch (error) {
716
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
717
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
718
+ }
719
+ _g.label = 2;
805
720
  case 2:
806
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
807
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
808
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
721
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
722
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
723
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
809
724
  return [4 /*yield*/, response.body.text()];
810
725
  case 3:
811
- body_26 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
812
- "APIErrorResponse",
813
- ""]);
814
- throw new exception_1.ApiException(404, body_26);
815
- case 4:
816
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
817
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
818
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
819
- return [4 /*yield*/, response.body.text()];
820
- case 5:
821
- body_27 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
822
- "APIErrorResponse",
823
- ""]);
824
- throw new exception_1.ApiException(429, body_27);
825
- case 6:
826
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
827
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
828
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
829
- return [4 /*yield*/, response.body.text()];
830
- case 7:
831
- body_28 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
726
+ body_14 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
832
727
  "void",
833
728
  ""]);
834
- return [2 /*return*/, body_28];
835
- case 8: return [4 /*yield*/, response.body.text()];
836
- case 9:
837
- body = (_s.sent()) || "";
729
+ return [2 /*return*/, body_14];
730
+ case 4: return [4 /*yield*/, response.body.text()];
731
+ case 5:
732
+ body = (_g.sent()) || "";
838
733
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
839
734
  }
840
735
  });
@@ -849,63 +744,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
849
744
  */
850
745
  RolesApiResponseProcessor.prototype.getRole = function (response) {
851
746
  return __awaiter(this, void 0, void 0, function () {
852
- var contentType, body_29, _a, _b, _c, _d, body_30, _e, _f, _g, _h, body_31, _j, _k, _l, _m, body_32, _o, _p, _q, _r, body_33, _s, _t, _u, _v, body;
853
- return __generator(this, function (_w) {
854
- switch (_w.label) {
747
+ var contentType, body_15, _a, _b, _c, _d, bodyText, _e, _f, body_16, body_17, _g, _h, _j, _k, body;
748
+ return __generator(this, function (_l) {
749
+ switch (_l.label) {
855
750
  case 0:
856
751
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
857
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
752
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
858
753
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
859
754
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
860
755
  return [4 /*yield*/, response.body.text()];
861
756
  case 1:
862
- body_29 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
863
- "RoleResponse",
864
- ""]);
865
- return [2 /*return*/, body_29];
757
+ body_15 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
758
+ "RoleResponse"]);
759
+ return [2 /*return*/, body_15];
866
760
  case 2:
867
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
868
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
869
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
761
+ if (!(response.httpStatusCode == 403 ||
762
+ response.httpStatusCode == 404 ||
763
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
764
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
870
765
  return [4 /*yield*/, response.body.text()];
871
766
  case 3:
872
- body_30 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
873
- "APIErrorResponse",
874
- ""]);
875
- throw new exception_1.ApiException(403, body_30);
767
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
768
+ try {
769
+ body_16 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
770
+ throw new exception_1.ApiException(response.httpStatusCode, body_16);
771
+ }
772
+ catch (error) {
773
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
774
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
775
+ }
776
+ _l.label = 4;
876
777
  case 4:
877
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
878
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
879
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
778
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
779
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
780
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
880
781
  return [4 /*yield*/, response.body.text()];
881
782
  case 5:
882
- body_31 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
883
- "APIErrorResponse",
884
- ""]);
885
- throw new exception_1.ApiException(404, body_31);
886
- case 6:
887
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
888
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
889
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
890
- return [4 /*yield*/, response.body.text()];
891
- case 7:
892
- body_32 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
893
- "APIErrorResponse",
894
- ""]);
895
- throw new exception_1.ApiException(429, body_32);
896
- case 8:
897
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
898
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
899
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
900
- return [4 /*yield*/, response.body.text()];
901
- case 9:
902
- body_33 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
783
+ body_17 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
903
784
  "RoleResponse",
904
785
  ""]);
905
- return [2 /*return*/, body_33];
906
- case 10: return [4 /*yield*/, response.body.text()];
907
- case 11:
908
- body = (_w.sent()) || "";
786
+ return [2 /*return*/, body_17];
787
+ case 6: return [4 /*yield*/, response.body.text()];
788
+ case 7:
789
+ body = (_l.sent()) || "";
909
790
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
910
791
  }
911
792
  });
@@ -920,63 +801,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
920
801
  */
921
802
  RolesApiResponseProcessor.prototype.listPermissions = function (response) {
922
803
  return __awaiter(this, void 0, void 0, function () {
923
- var contentType, body_34, _a, _b, _c, _d, body_35, _e, _f, _g, _h, body_36, _j, _k, _l, _m, body_37, _o, _p, _q, _r, body_38, _s, _t, _u, _v, body;
924
- return __generator(this, function (_w) {
925
- switch (_w.label) {
804
+ var contentType, body_18, _a, _b, _c, _d, bodyText, _e, _f, body_19, body_20, _g, _h, _j, _k, body;
805
+ return __generator(this, function (_l) {
806
+ switch (_l.label) {
926
807
  case 0:
927
808
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
928
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
809
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
929
810
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
930
811
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
931
812
  return [4 /*yield*/, response.body.text()];
932
813
  case 1:
933
- body_34 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
934
- "PermissionsResponse",
935
- ""]);
936
- return [2 /*return*/, body_34];
814
+ body_18 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
815
+ "PermissionsResponse"]);
816
+ return [2 /*return*/, body_18];
937
817
  case 2:
938
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
939
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
940
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
818
+ if (!(response.httpStatusCode == 400 ||
819
+ response.httpStatusCode == 403 ||
820
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
821
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
941
822
  return [4 /*yield*/, response.body.text()];
942
823
  case 3:
943
- body_35 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
944
- "APIErrorResponse",
945
- ""]);
946
- throw new exception_1.ApiException(400, body_35);
824
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
825
+ try {
826
+ body_19 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
827
+ throw new exception_1.ApiException(response.httpStatusCode, body_19);
828
+ }
829
+ catch (error) {
830
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
831
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
832
+ }
833
+ _l.label = 4;
947
834
  case 4:
948
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
949
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
950
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
835
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
836
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
837
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
951
838
  return [4 /*yield*/, response.body.text()];
952
839
  case 5:
953
- body_36 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
954
- "APIErrorResponse",
955
- ""]);
956
- throw new exception_1.ApiException(403, body_36);
957
- case 6:
958
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
959
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
960
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
961
- return [4 /*yield*/, response.body.text()];
962
- case 7:
963
- body_37 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
964
- "APIErrorResponse",
965
- ""]);
966
- throw new exception_1.ApiException(429, body_37);
967
- case 8:
968
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
969
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
970
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
971
- return [4 /*yield*/, response.body.text()];
972
- case 9:
973
- body_38 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
840
+ body_20 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
974
841
  "PermissionsResponse",
975
842
  ""]);
976
- return [2 /*return*/, body_38];
977
- case 10: return [4 /*yield*/, response.body.text()];
978
- case 11:
979
- body = (_w.sent()) || "";
843
+ return [2 /*return*/, body_20];
844
+ case 6: return [4 /*yield*/, response.body.text()];
845
+ case 7:
846
+ body = (_l.sent()) || "";
980
847
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
981
848
  }
982
849
  });
@@ -991,63 +858,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
991
858
  */
992
859
  RolesApiResponseProcessor.prototype.listRolePermissions = function (response) {
993
860
  return __awaiter(this, void 0, void 0, function () {
994
- var contentType, body_39, _a, _b, _c, _d, body_40, _e, _f, _g, _h, body_41, _j, _k, _l, _m, body_42, _o, _p, _q, _r, body_43, _s, _t, _u, _v, body;
995
- return __generator(this, function (_w) {
996
- switch (_w.label) {
861
+ var contentType, body_21, _a, _b, _c, _d, bodyText, _e, _f, body_22, body_23, _g, _h, _j, _k, body;
862
+ return __generator(this, function (_l) {
863
+ switch (_l.label) {
997
864
  case 0:
998
865
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
999
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
866
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1000
867
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1001
868
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1002
869
  return [4 /*yield*/, response.body.text()];
1003
870
  case 1:
1004
- body_39 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1005
- "PermissionsResponse",
1006
- ""]);
1007
- return [2 /*return*/, body_39];
871
+ body_21 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
872
+ "PermissionsResponse"]);
873
+ return [2 /*return*/, body_21];
1008
874
  case 2:
1009
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
1010
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1011
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
875
+ if (!(response.httpStatusCode == 403 ||
876
+ response.httpStatusCode == 404 ||
877
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
878
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1012
879
  return [4 /*yield*/, response.body.text()];
1013
880
  case 3:
1014
- body_40 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1015
- "APIErrorResponse",
1016
- ""]);
1017
- throw new exception_1.ApiException(403, body_40);
881
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
882
+ try {
883
+ body_22 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
884
+ throw new exception_1.ApiException(response.httpStatusCode, body_22);
885
+ }
886
+ catch (error) {
887
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
888
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
889
+ }
890
+ _l.label = 4;
1018
891
  case 4:
1019
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
1020
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1021
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
892
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
893
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
894
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1022
895
  return [4 /*yield*/, response.body.text()];
1023
896
  case 5:
1024
- body_41 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1025
- "APIErrorResponse",
1026
- ""]);
1027
- throw new exception_1.ApiException(404, body_41);
1028
- case 6:
1029
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1030
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1031
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1032
- return [4 /*yield*/, response.body.text()];
1033
- case 7:
1034
- body_42 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1035
- "APIErrorResponse",
1036
- ""]);
1037
- throw new exception_1.ApiException(429, body_42);
1038
- case 8:
1039
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1040
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1041
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1042
- return [4 /*yield*/, response.body.text()];
1043
- case 9:
1044
- body_43 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
897
+ body_23 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1045
898
  "PermissionsResponse",
1046
899
  ""]);
1047
- return [2 /*return*/, body_43];
1048
- case 10: return [4 /*yield*/, response.body.text()];
1049
- case 11:
1050
- body = (_w.sent()) || "";
900
+ return [2 /*return*/, body_23];
901
+ case 6: return [4 /*yield*/, response.body.text()];
902
+ case 7:
903
+ body = (_l.sent()) || "";
1051
904
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1052
905
  }
1053
906
  });
@@ -1062,53 +915,47 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1062
915
  */
1063
916
  RolesApiResponseProcessor.prototype.listRoles = function (response) {
1064
917
  return __awaiter(this, void 0, void 0, function () {
1065
- var contentType, body_44, _a, _b, _c, _d, body_45, _e, _f, _g, _h, body_46, _j, _k, _l, _m, body_47, _o, _p, _q, _r, body;
1066
- return __generator(this, function (_s) {
1067
- switch (_s.label) {
918
+ var contentType, body_24, _a, _b, _c, _d, bodyText, _e, _f, body_25, body_26, _g, _h, _j, _k, body;
919
+ return __generator(this, function (_l) {
920
+ switch (_l.label) {
1068
921
  case 0:
1069
922
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1070
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
923
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1071
924
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1072
925
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1073
926
  return [4 /*yield*/, response.body.text()];
1074
927
  case 1:
1075
- body_44 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
1076
- "RolesResponse",
1077
- ""]);
1078
- return [2 /*return*/, body_44];
928
+ body_24 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
929
+ "RolesResponse"]);
930
+ return [2 /*return*/, body_24];
1079
931
  case 2:
1080
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
1081
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1082
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
932
+ if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
933
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1083
934
  return [4 /*yield*/, response.body.text()];
1084
935
  case 3:
1085
- body_45 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
1086
- "APIErrorResponse",
1087
- ""]);
1088
- throw new exception_1.ApiException(403, body_45);
936
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
937
+ try {
938
+ body_25 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
939
+ throw new exception_1.ApiException(response.httpStatusCode, body_25);
940
+ }
941
+ catch (error) {
942
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
943
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
944
+ }
945
+ _l.label = 4;
1089
946
  case 4:
1090
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
1091
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1092
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
947
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
948
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
949
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1093
950
  return [4 /*yield*/, response.body.text()];
1094
951
  case 5:
1095
- body_46 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
1096
- "APIErrorResponse",
1097
- ""]);
1098
- throw new exception_1.ApiException(429, body_46);
1099
- case 6:
1100
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
1101
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1102
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1103
- return [4 /*yield*/, response.body.text()];
1104
- case 7:
1105
- body_47 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
952
+ body_26 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1106
953
  "RolesResponse",
1107
954
  ""]);
1108
- return [2 /*return*/, body_47];
1109
- case 8: return [4 /*yield*/, response.body.text()];
1110
- case 9:
1111
- body = (_s.sent()) || "";
955
+ return [2 /*return*/, body_26];
956
+ case 6: return [4 /*yield*/, response.body.text()];
957
+ case 7:
958
+ body = (_l.sent()) || "";
1112
959
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1113
960
  }
1114
961
  });
@@ -1123,63 +970,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1123
970
  */
1124
971
  RolesApiResponseProcessor.prototype.listRoleUsers = function (response) {
1125
972
  return __awaiter(this, void 0, void 0, function () {
1126
- var contentType, body_48, _a, _b, _c, _d, body_49, _e, _f, _g, _h, body_50, _j, _k, _l, _m, body_51, _o, _p, _q, _r, body_52, _s, _t, _u, _v, body;
1127
- return __generator(this, function (_w) {
1128
- switch (_w.label) {
973
+ var contentType, body_27, _a, _b, _c, _d, bodyText, _e, _f, body_28, body_29, _g, _h, _j, _k, body;
974
+ return __generator(this, function (_l) {
975
+ switch (_l.label) {
1129
976
  case 0:
1130
977
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1131
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
978
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1132
979
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1133
980
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1134
981
  return [4 /*yield*/, response.body.text()];
1135
982
  case 1:
1136
- body_48 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1137
- "UsersResponse",
1138
- ""]);
1139
- return [2 /*return*/, body_48];
983
+ body_27 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
984
+ "UsersResponse"]);
985
+ return [2 /*return*/, body_27];
1140
986
  case 2:
1141
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
1142
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1143
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
987
+ if (!(response.httpStatusCode == 403 ||
988
+ response.httpStatusCode == 404 ||
989
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
990
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1144
991
  return [4 /*yield*/, response.body.text()];
1145
992
  case 3:
1146
- body_49 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1147
- "APIErrorResponse",
1148
- ""]);
1149
- throw new exception_1.ApiException(403, body_49);
993
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
994
+ try {
995
+ body_28 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
996
+ throw new exception_1.ApiException(response.httpStatusCode, body_28);
997
+ }
998
+ catch (error) {
999
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1000
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1001
+ }
1002
+ _l.label = 4;
1150
1003
  case 4:
1151
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
1152
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1153
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1004
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1005
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1006
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1154
1007
  return [4 /*yield*/, response.body.text()];
1155
1008
  case 5:
1156
- body_50 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1157
- "APIErrorResponse",
1158
- ""]);
1159
- throw new exception_1.ApiException(404, body_50);
1160
- case 6:
1161
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1162
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1163
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1164
- return [4 /*yield*/, response.body.text()];
1165
- case 7:
1166
- body_51 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1167
- "APIErrorResponse",
1168
- ""]);
1169
- throw new exception_1.ApiException(429, body_51);
1170
- case 8:
1171
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1172
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1173
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1174
- return [4 /*yield*/, response.body.text()];
1175
- case 9:
1176
- body_52 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
1009
+ body_29 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1177
1010
  "UsersResponse",
1178
1011
  ""]);
1179
- return [2 /*return*/, body_52];
1180
- case 10: return [4 /*yield*/, response.body.text()];
1181
- case 11:
1182
- body = (_w.sent()) || "";
1012
+ return [2 /*return*/, body_29];
1013
+ case 6: return [4 /*yield*/, response.body.text()];
1014
+ case 7:
1015
+ body = (_l.sent()) || "";
1183
1016
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1184
1017
  }
1185
1018
  });
@@ -1194,73 +1027,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1194
1027
  */
1195
1028
  RolesApiResponseProcessor.prototype.removePermissionFromRole = function (response) {
1196
1029
  return __awaiter(this, void 0, void 0, function () {
1197
- var contentType, body_53, _a, _b, _c, _d, body_54, _e, _f, _g, _h, body_55, _j, _k, _l, _m, body_56, _o, _p, _q, _r, body_57, _s, _t, _u, _v, body_58, _w, _x, _y, _z, body;
1198
- return __generator(this, function (_0) {
1199
- switch (_0.label) {
1030
+ var contentType, body_30, _a, _b, _c, _d, bodyText, _e, _f, body_31, body_32, _g, _h, _j, _k, body;
1031
+ return __generator(this, function (_l) {
1032
+ switch (_l.label) {
1200
1033
  case 0:
1201
1034
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1202
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1035
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1203
1036
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1204
1037
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1205
1038
  return [4 /*yield*/, response.body.text()];
1206
1039
  case 1:
1207
- body_53 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1208
- "PermissionsResponse",
1209
- ""]);
1210
- return [2 /*return*/, body_53];
1040
+ body_30 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1041
+ "PermissionsResponse"]);
1042
+ return [2 /*return*/, body_30];
1211
1043
  case 2:
1212
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1213
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1214
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1044
+ if (!(response.httpStatusCode == 400 ||
1045
+ response.httpStatusCode == 403 ||
1046
+ response.httpStatusCode == 404 ||
1047
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1048
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1215
1049
  return [4 /*yield*/, response.body.text()];
1216
1050
  case 3:
1217
- body_54 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1218
- "APIErrorResponse",
1219
- ""]);
1220
- throw new exception_1.ApiException(400, body_54);
1051
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1052
+ try {
1053
+ body_31 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1054
+ throw new exception_1.ApiException(response.httpStatusCode, body_31);
1055
+ }
1056
+ catch (error) {
1057
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1058
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1059
+ }
1060
+ _l.label = 4;
1221
1061
  case 4:
1222
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1223
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1224
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1062
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1063
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1064
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1225
1065
  return [4 /*yield*/, response.body.text()];
1226
1066
  case 5:
1227
- body_55 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1228
- "APIErrorResponse",
1229
- ""]);
1230
- throw new exception_1.ApiException(403, body_55);
1231
- case 6:
1232
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1233
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1234
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1235
- return [4 /*yield*/, response.body.text()];
1236
- case 7:
1237
- body_56 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1238
- "APIErrorResponse",
1239
- ""]);
1240
- throw new exception_1.ApiException(404, body_56);
1241
- case 8:
1242
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1243
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1244
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1245
- return [4 /*yield*/, response.body.text()];
1246
- case 9:
1247
- body_57 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1248
- "APIErrorResponse",
1249
- ""]);
1250
- throw new exception_1.ApiException(429, body_57);
1251
- case 10:
1252
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1253
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1254
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1255
- return [4 /*yield*/, response.body.text()];
1256
- case 11:
1257
- body_58 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1067
+ body_32 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1258
1068
  "PermissionsResponse",
1259
1069
  ""]);
1260
- return [2 /*return*/, body_58];
1261
- case 12: return [4 /*yield*/, response.body.text()];
1262
- case 13:
1263
- body = (_0.sent()) || "";
1070
+ return [2 /*return*/, body_32];
1071
+ case 6: return [4 /*yield*/, response.body.text()];
1072
+ case 7:
1073
+ body = (_l.sent()) || "";
1264
1074
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1265
1075
  }
1266
1076
  });
@@ -1275,73 +1085,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1275
1085
  */
1276
1086
  RolesApiResponseProcessor.prototype.removeUserFromRole = function (response) {
1277
1087
  return __awaiter(this, void 0, void 0, function () {
1278
- var contentType, body_59, _a, _b, _c, _d, body_60, _e, _f, _g, _h, body_61, _j, _k, _l, _m, body_62, _o, _p, _q, _r, body_63, _s, _t, _u, _v, body_64, _w, _x, _y, _z, body;
1279
- return __generator(this, function (_0) {
1280
- switch (_0.label) {
1088
+ var contentType, body_33, _a, _b, _c, _d, bodyText, _e, _f, body_34, body_35, _g, _h, _j, _k, body;
1089
+ return __generator(this, function (_l) {
1090
+ switch (_l.label) {
1281
1091
  case 0:
1282
1092
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1283
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1093
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1284
1094
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1285
1095
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1286
1096
  return [4 /*yield*/, response.body.text()];
1287
1097
  case 1:
1288
- body_59 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1289
- "UsersResponse",
1290
- ""]);
1291
- return [2 /*return*/, body_59];
1098
+ body_33 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1099
+ "UsersResponse"]);
1100
+ return [2 /*return*/, body_33];
1292
1101
  case 2:
1293
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1294
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1295
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1102
+ if (!(response.httpStatusCode == 400 ||
1103
+ response.httpStatusCode == 403 ||
1104
+ response.httpStatusCode == 404 ||
1105
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1106
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1296
1107
  return [4 /*yield*/, response.body.text()];
1297
1108
  case 3:
1298
- body_60 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1299
- "APIErrorResponse",
1300
- ""]);
1301
- throw new exception_1.ApiException(400, body_60);
1109
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1110
+ try {
1111
+ body_34 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1112
+ throw new exception_1.ApiException(response.httpStatusCode, body_34);
1113
+ }
1114
+ catch (error) {
1115
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1116
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1117
+ }
1118
+ _l.label = 4;
1302
1119
  case 4:
1303
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1304
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1305
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1120
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1121
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1122
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1306
1123
  return [4 /*yield*/, response.body.text()];
1307
1124
  case 5:
1308
- body_61 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1309
- "APIErrorResponse",
1310
- ""]);
1311
- throw new exception_1.ApiException(403, body_61);
1312
- case 6:
1313
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1314
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1315
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1316
- return [4 /*yield*/, response.body.text()];
1317
- case 7:
1318
- body_62 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1319
- "APIErrorResponse",
1320
- ""]);
1321
- throw new exception_1.ApiException(404, body_62);
1322
- case 8:
1323
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1324
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1325
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1326
- return [4 /*yield*/, response.body.text()];
1327
- case 9:
1328
- body_63 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1329
- "APIErrorResponse",
1330
- ""]);
1331
- throw new exception_1.ApiException(429, body_63);
1332
- case 10:
1333
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1334
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1335
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1336
- return [4 /*yield*/, response.body.text()];
1337
- case 11:
1338
- body_64 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1125
+ body_35 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1339
1126
  "UsersResponse",
1340
1127
  ""]);
1341
- return [2 /*return*/, body_64];
1342
- case 12: return [4 /*yield*/, response.body.text()];
1343
- case 13:
1344
- body = (_0.sent()) || "";
1128
+ return [2 /*return*/, body_35];
1129
+ case 6: return [4 /*yield*/, response.body.text()];
1130
+ case 7:
1131
+ body = (_l.sent()) || "";
1345
1132
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1346
1133
  }
1347
1134
  });
@@ -1356,83 +1143,51 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1356
1143
  */
1357
1144
  RolesApiResponseProcessor.prototype.updateRole = function (response) {
1358
1145
  return __awaiter(this, void 0, void 0, function () {
1359
- var contentType, body_65, _a, _b, _c, _d, body_66, _e, _f, _g, _h, body_67, _j, _k, _l, _m, body_68, _o, _p, _q, _r, body_69, _s, _t, _u, _v, body_70, _w, _x, _y, _z, body_71, _0, _1, _2, _3, body;
1360
- return __generator(this, function (_4) {
1361
- switch (_4.label) {
1146
+ var contentType, body_36, _a, _b, _c, _d, bodyText, _e, _f, body_37, body_38, _g, _h, _j, _k, body;
1147
+ return __generator(this, function (_l) {
1148
+ switch (_l.label) {
1362
1149
  case 0:
1363
1150
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1364
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1151
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1365
1152
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1366
1153
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1367
1154
  return [4 /*yield*/, response.body.text()];
1368
1155
  case 1:
1369
- body_65 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
1370
- "RoleUpdateResponse",
1371
- ""]);
1372
- return [2 /*return*/, body_65];
1156
+ body_36 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1157
+ "RoleUpdateResponse"]);
1158
+ return [2 /*return*/, body_36];
1373
1159
  case 2:
1374
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1375
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1376
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1160
+ if (!(response.httpStatusCode == 400 ||
1161
+ response.httpStatusCode == 403 ||
1162
+ response.httpStatusCode == 404 ||
1163
+ response.httpStatusCode == 422 ||
1164
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1165
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1377
1166
  return [4 /*yield*/, response.body.text()];
1378
1167
  case 3:
1379
- body_66 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
1380
- "APIErrorResponse",
1381
- ""]);
1382
- throw new exception_1.ApiException(400, body_66);
1168
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1169
+ try {
1170
+ body_37 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1171
+ throw new exception_1.ApiException(response.httpStatusCode, body_37);
1172
+ }
1173
+ catch (error) {
1174
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1175
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1176
+ }
1177
+ _l.label = 4;
1383
1178
  case 4:
1384
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1385
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1386
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1179
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1180
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1181
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1387
1182
  return [4 /*yield*/, response.body.text()];
1388
1183
  case 5:
1389
- body_67 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
1390
- "APIErrorResponse",
1391
- ""]);
1392
- throw new exception_1.ApiException(403, body_67);
1393
- case 6:
1394
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1395
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1396
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1397
- return [4 /*yield*/, response.body.text()];
1398
- case 7:
1399
- body_68 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
1400
- "APIErrorResponse",
1401
- ""]);
1402
- throw new exception_1.ApiException(404, body_68);
1403
- case 8:
1404
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3 /*break*/, 10];
1405
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1406
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1407
- return [4 /*yield*/, response.body.text()];
1408
- case 9:
1409
- body_69 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
1410
- "APIErrorResponse",
1411
- ""]);
1412
- throw new exception_1.ApiException(422, body_69);
1413
- case 10:
1414
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
1415
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1416
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1417
- return [4 /*yield*/, response.body.text()];
1418
- case 11:
1419
- body_70 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
1420
- "APIErrorResponse",
1421
- ""]);
1422
- throw new exception_1.ApiException(429, body_70);
1423
- case 12:
1424
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
1425
- _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1426
- _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1427
- return [4 /*yield*/, response.body.text()];
1428
- case 13:
1429
- body_71 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
1184
+ body_38 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1430
1185
  "RoleUpdateResponse",
1431
1186
  ""]);
1432
- return [2 /*return*/, body_71];
1433
- case 14: return [4 /*yield*/, response.body.text()];
1434
- case 15:
1435
- body = (_4.sent()) || "";
1187
+ return [2 /*return*/, body_38];
1188
+ case 6: return [4 /*yield*/, response.body.text()];
1189
+ case 7:
1190
+ body = (_l.sent()) || "";
1436
1191
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1437
1192
  }
1438
1193
  });