@datadog/datadog-api-client 1.3.0 → 1.5.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 (539) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +72 -2
  3. package/dist/packages/datadog-api-client-common/configuration.js +2 -1
  4. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  5. package/dist/packages/datadog-api-client-common/exception.js +3 -0
  6. package/dist/packages/datadog-api-client-common/exception.js.map +1 -1
  7. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +3 -5
  8. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
  9. package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
  10. package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
  11. package/dist/packages/datadog-api-client-common/util.js +1 -32
  12. package/dist/packages/datadog-api-client-common/util.js.map +1 -1
  13. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +253 -407
  14. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +194 -291
  16. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
  17. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +26 -33
  18. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
  19. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +140 -215
  20. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +139 -215
  22. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
  23. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +191 -313
  24. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
  25. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +194 -308
  26. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +82 -119
  28. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
  29. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +112 -172
  30. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
  31. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +112 -172
  32. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +22 -19
  34. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
  35. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +281 -460
  36. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
  37. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +71 -67
  38. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +200 -226
  40. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
  41. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +234 -272
  42. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
  43. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +201 -351
  44. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
  45. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +285 -490
  46. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
  47. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +141 -251
  48. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
  49. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +167 -258
  50. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
  51. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +107 -174
  52. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +87 -159
  54. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
  55. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +30 -63
  56. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
  57. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +137 -221
  58. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
  59. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
  60. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +288 -492
  61. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
  62. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +142 -261
  63. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
  64. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +28 -43
  65. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +738 -1130
  67. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
  68. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +137 -211
  69. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
  70. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +1 -1
  71. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1056 -1595
  72. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  73. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +141 -235
  74. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
  75. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +222 -376
  76. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
  77. package/dist/packages/datadog-api-client-v1/index.d.ts +20 -0
  78. package/dist/packages/datadog-api-client-v1/index.js +35 -7
  79. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  80. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
  81. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
  82. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
  83. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
  84. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
  85. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
  86. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
  87. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
  88. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
  89. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
  90. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
  91. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  92. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
  93. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
  94. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
  95. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +9 -0
  96. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +4 -0
  97. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
  98. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
  99. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -2
  100. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  101. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
  102. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
  103. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  104. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +44 -0
  105. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  106. package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
  107. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
  108. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
  109. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
  110. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
  111. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
  112. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
  113. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
  114. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
  115. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
  116. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
  117. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
  118. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
  119. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
  120. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
  121. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
  122. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
  123. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
  124. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
  125. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
  126. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
  127. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
  128. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
  129. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
  130. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
  131. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
  132. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
  133. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
  134. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
  135. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
  136. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
  137. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
  138. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
  139. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
  140. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
  141. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
  142. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
  143. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
  144. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
  145. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
  146. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
  147. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
  148. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
  149. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
  150. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
  151. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
  152. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
  153. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
  154. package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.d.ts +1 -1
  155. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
  156. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
  157. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
  158. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
  159. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
  160. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
  161. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
  162. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
  163. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
  164. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
  165. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
  166. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
  167. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
  168. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
  169. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
  170. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
  171. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
  172. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
  173. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +3 -1
  174. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -1
  175. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
  176. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +3 -1
  177. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -1
  178. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
  179. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +8 -0
  180. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
  181. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
  182. package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js +4 -0
  183. package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js.map +1 -1
  184. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
  185. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
  186. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
  187. package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.js +1 -0
  188. package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.js.map +1 -1
  189. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
  190. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
  191. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  192. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +4 -0
  193. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +5 -0
  194. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  195. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
  196. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
  197. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  198. package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
  199. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +56 -86
  200. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
  201. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +139 -241
  202. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
  203. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +161 -260
  204. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
  205. package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.d.ts +253 -0
  206. package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js +1064 -0
  207. package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js.map +1 -0
  208. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +115 -202
  209. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
  210. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +55 -86
  211. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  212. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +146 -311
  213. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
  214. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +146 -311
  215. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
  216. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
  217. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +358 -303
  218. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
  219. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +389 -650
  220. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
  221. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +117 -222
  222. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
  223. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +275 -469
  224. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
  225. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +137 -221
  226. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
  227. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
  228. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +419 -563
  229. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
  230. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +141 -261
  231. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
  232. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +26 -40
  233. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
  234. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +28 -43
  235. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
  236. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +214 -310
  237. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
  238. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +367 -625
  239. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
  240. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
  241. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +506 -685
  242. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  243. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +139 -231
  244. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
  245. package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +94 -0
  246. package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +456 -0
  247. package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -0
  248. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
  249. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +277 -265
  250. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
  251. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +279 -446
  252. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
  253. package/dist/packages/datadog-api-client-v2/index.d.ts +88 -5
  254. package/dist/packages/datadog-api-client-v2/index.js +134 -17
  255. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  256. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.d.ts +29 -0
  257. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js +29 -0
  258. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js.map +1 -0
  259. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.d.ts +41 -0
  260. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js +42 -0
  261. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js.map +1 -0
  262. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.d.ts +34 -0
  263. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js +34 -0
  264. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js.map +1 -0
  265. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.d.ts +36 -0
  266. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js +41 -0
  267. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js.map +1 -0
  268. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.d.ts +29 -0
  269. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js +28 -0
  270. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js.map +1 -0
  271. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.d.ts +37 -0
  272. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js +37 -0
  273. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js.map +1 -0
  274. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.d.ts +38 -0
  275. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js +39 -0
  276. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js.map +1 -0
  277. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.d.ts +7 -0
  278. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js +10 -0
  279. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js.map +1 -0
  280. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.d.ts +29 -0
  281. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js +29 -0
  282. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js.map +1 -0
  283. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.d.ts +36 -0
  284. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js +43 -0
  285. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js.map +1 -0
  286. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.d.ts +34 -0
  287. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js +34 -0
  288. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js.map +1 -0
  289. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.d.ts +29 -0
  290. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js +28 -0
  291. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js.map +1 -0
  292. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.d.ts +29 -0
  293. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js +29 -0
  294. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js.map +1 -0
  295. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.d.ts +32 -0
  296. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js +37 -0
  297. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js.map +1 -0
  298. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.d.ts +38 -0
  299. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js +39 -0
  300. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js.map +1 -0
  301. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.d.ts +29 -0
  302. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js +28 -0
  303. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js.map +1 -0
  304. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.d.ts +32 -0
  305. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js +38 -0
  306. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js.map +1 -0
  307. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.d.ts +38 -0
  308. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js +39 -0
  309. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js.map +1 -0
  310. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.d.ts +7 -0
  311. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js +10 -0
  312. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js.map +1 -0
  313. package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.d.ts +29 -0
  314. package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js +28 -0
  315. package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js.map +1 -0
  316. package/dist/packages/datadog-api-client-v2/models/Event.js +1 -0
  317. package/dist/packages/datadog-api-client-v2/models/Event.js.map +1 -1
  318. package/dist/packages/datadog-api-client-v2/models/EventAttributes.js +2 -0
  319. package/dist/packages/datadog-api-client-v2/models/EventAttributes.js.map +1 -1
  320. package/dist/packages/datadog-api-client-v2/models/HTTPLogItem.d.ts +3 -3
  321. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
  322. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
  323. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
  324. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
  325. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
  326. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
  327. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
  328. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
  329. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
  330. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
  331. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
  332. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
  333. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
  334. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
  335. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
  336. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
  337. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
  338. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
  339. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
  340. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
  341. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
  342. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
  343. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
  344. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
  345. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
  346. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
  347. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
  348. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
  349. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
  350. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
  351. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
  352. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
  353. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
  354. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
  355. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
  356. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
  357. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
  358. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
  359. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
  360. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
  361. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
  362. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
  363. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
  364. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
  365. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
  366. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
  367. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
  368. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
  369. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
  370. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
  371. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
  372. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
  373. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
  374. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
  375. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
  376. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
  377. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
  378. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +1 -5
  379. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
  380. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
  381. package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
  382. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
  383. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
  384. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
  385. package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.d.ts +0 -4
  386. package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js +0 -5
  387. package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js.map +1 -1
  388. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
  389. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
  390. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
  391. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
  392. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
  393. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
  394. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
  395. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
  396. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
  397. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
  398. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
  399. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
  400. package/dist/packages/datadog-api-client-v2/models/MonitorType.js +4 -0
  401. package/dist/packages/datadog-api-client-v2/models/MonitorType.js.map +1 -1
  402. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +186 -10
  403. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  404. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
  405. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
  406. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
  407. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
  408. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
  409. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
  410. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
  411. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
  412. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
  413. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
  414. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
  415. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
  416. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
  417. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
  418. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
  419. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
  420. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
  421. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
  422. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
  423. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
  424. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
  425. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
  426. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
  427. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
  428. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
  429. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
  430. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
  431. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.d.ts +53 -0
  432. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js +53 -0
  433. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js.map +1 -0
  434. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
  435. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
  436. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
  437. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
  438. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
  439. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
  440. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +4 -4
  441. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
  442. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
  443. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
  444. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
  445. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
  446. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.d.ts +29 -0
  447. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js +28 -0
  448. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js.map +1 -0
  449. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.d.ts +33 -0
  450. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js +32 -0
  451. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js.map +1 -0
  452. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.d.ts +34 -0
  453. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js +32 -0
  454. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js.map +1 -0
  455. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.d.ts +29 -0
  456. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js +28 -0
  457. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js.map +1 -0
  458. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.d.ts +40 -0
  459. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js +45 -0
  460. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js.map +1 -0
  461. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +12 -0
  462. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js +3 -0
  463. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js.map +1 -0
  464. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.d.ts +64 -0
  465. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js +58 -0
  466. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js.map +1 -0
  467. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.d.ts +32 -0
  468. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js +38 -0
  469. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js.map +1 -0
  470. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.d.ts +40 -0
  471. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js +46 -0
  472. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js.map +1 -0
  473. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.d.ts +28 -0
  474. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js +33 -0
  475. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js.map +1 -0
  476. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.d.ts +32 -0
  477. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js +37 -0
  478. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js.map +1 -0
  479. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.d.ts +37 -0
  480. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js +39 -0
  481. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js.map +1 -0
  482. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.d.ts +15 -0
  483. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js +18 -0
  484. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js.map +1 -0
  485. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.d.ts +7 -0
  486. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js +10 -0
  487. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js.map +1 -0
  488. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.d.ts +76 -0
  489. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js +70 -0
  490. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js.map +1 -0
  491. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.d.ts +12 -0
  492. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js +3 -0
  493. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js.map +1 -0
  494. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.d.ts +36 -0
  495. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js +43 -0
  496. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js.map +1 -0
  497. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.d.ts +37 -0
  498. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js +39 -0
  499. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js.map +1 -0
  500. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.d.ts +7 -0
  501. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js +10 -0
  502. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js.map +1 -0
  503. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.d.ts +33 -0
  504. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js +32 -0
  505. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js.map +1 -0
  506. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.d.ts +37 -0
  507. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js +39 -0
  508. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js.map +1 -0
  509. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.d.ts +15 -0
  510. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js +18 -0
  511. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js.map +1 -0
  512. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.d.ts +33 -0
  513. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js +33 -0
  514. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js.map +1 -0
  515. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.d.ts +8 -0
  516. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js +11 -0
  517. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js.map +1 -0
  518. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.d.ts +36 -0
  519. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js +43 -0
  520. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js.map +1 -0
  521. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.d.ts +37 -0
  522. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js +38 -0
  523. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js.map +1 -0
  524. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.d.ts +7 -0
  525. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js +10 -0
  526. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js.map +1 -0
  527. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.d.ts +7 -0
  528. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js +10 -0
  529. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js.map +1 -0
  530. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +11 -0
  531. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js +3 -0
  532. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js.map +1 -0
  533. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.d.ts +29 -0
  534. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js +28 -0
  535. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js.map +1 -0
  536. package/dist/version.d.ts +1 -1
  537. package/dist/version.js +1 -1
  538. package/package.json +1 -1
  539. 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,49 @@ 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
+ }
489
+ catch (error) {
490
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
491
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
492
+ }
493
+ throw new exception_1.ApiException(response.httpStatusCode, body_2);
488
494
  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;
495
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
496
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
497
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
492
498
  return [4 /*yield*/, response.body.text()];
493
499
  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]),
500
+ body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
525
501
  "PermissionsResponse",
526
502
  ""]);
527
- return [2 /*return*/, body_6];
528
- case 12: return [4 /*yield*/, response.body.text()];
529
- case 13:
530
- body = (_0.sent()) || "";
503
+ return [2 /*return*/, body_3];
504
+ case 6: return [4 /*yield*/, response.body.text()];
505
+ case 7:
506
+ body = (_l.sent()) || "";
531
507
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
532
508
  }
533
509
  });
@@ -542,73 +518,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
542
518
  */
543
519
  RolesApiResponseProcessor.prototype.addUserToRole = function (response) {
544
520
  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) {
521
+ var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
522
+ return __generator(this, function (_l) {
523
+ switch (_l.label) {
548
524
  case 0:
549
525
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
550
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
526
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
551
527
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
552
528
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
553
529
  return [4 /*yield*/, response.body.text()];
554
530
  case 1:
555
- body_7 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
556
- "UsersResponse",
557
- ""]);
558
- return [2 /*return*/, body_7];
531
+ body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
532
+ "UsersResponse"]);
533
+ return [2 /*return*/, body_4];
559
534
  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;
535
+ if (!(response.httpStatusCode == 400 ||
536
+ response.httpStatusCode == 403 ||
537
+ response.httpStatusCode == 404 ||
538
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
539
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
563
540
  return [4 /*yield*/, response.body.text()];
564
541
  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);
542
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
543
+ try {
544
+ body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
545
+ }
546
+ catch (error) {
547
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
548
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
549
+ }
550
+ throw new exception_1.ApiException(response.httpStatusCode, body_5);
569
551
  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;
552
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
553
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
554
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
573
555
  return [4 /*yield*/, response.body.text()];
574
556
  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]),
557
+ body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
606
558
  "UsersResponse",
607
559
  ""]);
608
- return [2 /*return*/, body_12];
609
- case 12: return [4 /*yield*/, response.body.text()];
610
- case 13:
611
- body = (_0.sent()) || "";
560
+ return [2 /*return*/, body_6];
561
+ case 6: return [4 /*yield*/, response.body.text()];
562
+ case 7:
563
+ body = (_l.sent()) || "";
612
564
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
613
565
  }
614
566
  });
@@ -623,83 +575,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
623
575
  */
624
576
  RolesApiResponseProcessor.prototype.cloneRole = function (response) {
625
577
  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) {
578
+ var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
579
+ return __generator(this, function (_l) {
580
+ switch (_l.label) {
629
581
  case 0:
630
582
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
631
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
583
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
632
584
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
633
585
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
634
586
  return [4 /*yield*/, response.body.text()];
635
587
  case 1:
636
- body_13 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
637
- "RoleResponse",
638
- ""]);
639
- return [2 /*return*/, body_13];
588
+ body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
589
+ "RoleResponse"]);
590
+ return [2 /*return*/, body_7];
640
591
  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;
592
+ if (!(response.httpStatusCode == 400 ||
593
+ response.httpStatusCode == 403 ||
594
+ response.httpStatusCode == 404 ||
595
+ response.httpStatusCode == 409 ||
596
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
597
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
644
598
  return [4 /*yield*/, response.body.text()];
645
599
  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);
600
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
601
+ try {
602
+ body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
603
+ }
604
+ catch (error) {
605
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
606
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
607
+ }
608
+ throw new exception_1.ApiException(response.httpStatusCode, body_8);
650
609
  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;
610
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
611
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
612
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
654
613
  return [4 /*yield*/, response.body.text()];
655
614
  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]),
615
+ body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
697
616
  "RoleResponse",
698
617
  ""]);
699
- return [2 /*return*/, body_19];
700
- case 14: return [4 /*yield*/, response.body.text()];
701
- case 15:
702
- body = (_4.sent()) || "";
618
+ return [2 /*return*/, body_9];
619
+ case 6: return [4 /*yield*/, response.body.text()];
620
+ case 7:
621
+ body = (_l.sent()) || "";
703
622
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
704
623
  }
705
624
  });
@@ -714,63 +633,48 @@ var RolesApiResponseProcessor = /** @class */ (function () {
714
633
  */
715
634
  RolesApiResponseProcessor.prototype.createRole = function (response) {
716
635
  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) {
636
+ var contentType, body_10, _a, _b, _c, _d, bodyText, _e, _f, body_11, body_12, _g, _h, _j, _k, body;
637
+ return __generator(this, function (_l) {
638
+ switch (_l.label) {
720
639
  case 0:
721
640
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
722
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
641
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
723
642
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
724
643
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
725
644
  return [4 /*yield*/, response.body.text()];
726
645
  case 1:
727
- body_20 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
728
- "RoleCreateResponse",
729
- ""]);
730
- return [2 /*return*/, body_20];
646
+ body_10 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
647
+ "RoleCreateResponse"]);
648
+ return [2 /*return*/, body_10];
731
649
  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;
650
+ if (!(response.httpStatusCode == 400 ||
651
+ response.httpStatusCode == 403 ||
652
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
653
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
735
654
  return [4 /*yield*/, response.body.text()];
736
655
  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);
656
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
657
+ try {
658
+ body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
659
+ }
660
+ catch (error) {
661
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
662
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
663
+ }
664
+ throw new exception_1.ApiException(response.httpStatusCode, body_11);
741
665
  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;
666
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
667
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
668
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
745
669
  return [4 /*yield*/, response.body.text()];
746
670
  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]),
671
+ body_12 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
768
672
  "RoleCreateResponse",
769
673
  ""]);
770
- return [2 /*return*/, body_24];
771
- case 10: return [4 /*yield*/, response.body.text()];
772
- case 11:
773
- body = (_w.sent()) || "";
674
+ return [2 /*return*/, body_12];
675
+ case 6: return [4 /*yield*/, response.body.text()];
676
+ case 7:
677
+ body = (_l.sent()) || "";
774
678
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
775
679
  }
776
680
  });
@@ -785,56 +689,42 @@ var RolesApiResponseProcessor = /** @class */ (function () {
785
689
  */
786
690
  RolesApiResponseProcessor.prototype.deleteRole = function (response) {
787
691
  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) {
692
+ var contentType, bodyText, _a, _b, body_13, body_14, _c, _d, _e, _f, body;
693
+ return __generator(this, function (_g) {
694
+ switch (_g.label) {
791
695
  case 0:
792
696
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
793
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
697
+ if (response.httpStatusCode == 204) {
794
698
  return [2 /*return*/];
795
699
  }
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;
700
+ if (!(response.httpStatusCode == 403 ||
701
+ response.httpStatusCode == 404 ||
702
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
703
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
799
704
  return [4 /*yield*/, response.body.text()];
800
705
  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);
706
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
707
+ try {
708
+ body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
709
+ }
710
+ catch (error) {
711
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
712
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
713
+ }
714
+ throw new exception_1.ApiException(response.httpStatusCode, body_13);
805
715
  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;
716
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
717
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
718
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
809
719
  return [4 /*yield*/, response.body.text()];
810
720
  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]),
721
+ body_14 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
832
722
  "void",
833
723
  ""]);
834
- return [2 /*return*/, body_28];
835
- case 8: return [4 /*yield*/, response.body.text()];
836
- case 9:
837
- body = (_s.sent()) || "";
724
+ return [2 /*return*/, body_14];
725
+ case 4: return [4 /*yield*/, response.body.text()];
726
+ case 5:
727
+ body = (_g.sent()) || "";
838
728
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
839
729
  }
840
730
  });
@@ -849,63 +739,48 @@ var RolesApiResponseProcessor = /** @class */ (function () {
849
739
  */
850
740
  RolesApiResponseProcessor.prototype.getRole = function (response) {
851
741
  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) {
742
+ var contentType, body_15, _a, _b, _c, _d, bodyText, _e, _f, body_16, body_17, _g, _h, _j, _k, body;
743
+ return __generator(this, function (_l) {
744
+ switch (_l.label) {
855
745
  case 0:
856
746
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
857
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
747
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
858
748
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
859
749
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
860
750
  return [4 /*yield*/, response.body.text()];
861
751
  case 1:
862
- body_29 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
863
- "RoleResponse",
864
- ""]);
865
- return [2 /*return*/, body_29];
752
+ body_15 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
753
+ "RoleResponse"]);
754
+ return [2 /*return*/, body_15];
866
755
  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;
756
+ if (!(response.httpStatusCode == 403 ||
757
+ response.httpStatusCode == 404 ||
758
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
759
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
870
760
  return [4 /*yield*/, response.body.text()];
871
761
  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);
762
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
763
+ try {
764
+ body_16 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
765
+ }
766
+ catch (error) {
767
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
768
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
769
+ }
770
+ throw new exception_1.ApiException(response.httpStatusCode, body_16);
876
771
  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;
772
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
773
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
774
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
880
775
  return [4 /*yield*/, response.body.text()];
881
776
  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]),
777
+ body_17 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
903
778
  "RoleResponse",
904
779
  ""]);
905
- return [2 /*return*/, body_33];
906
- case 10: return [4 /*yield*/, response.body.text()];
907
- case 11:
908
- body = (_w.sent()) || "";
780
+ return [2 /*return*/, body_17];
781
+ case 6: return [4 /*yield*/, response.body.text()];
782
+ case 7:
783
+ body = (_l.sent()) || "";
909
784
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
910
785
  }
911
786
  });
@@ -920,63 +795,48 @@ var RolesApiResponseProcessor = /** @class */ (function () {
920
795
  */
921
796
  RolesApiResponseProcessor.prototype.listPermissions = function (response) {
922
797
  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) {
798
+ var contentType, body_18, _a, _b, _c, _d, bodyText, _e, _f, body_19, body_20, _g, _h, _j, _k, body;
799
+ return __generator(this, function (_l) {
800
+ switch (_l.label) {
926
801
  case 0:
927
802
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
928
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
803
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
929
804
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
930
805
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
931
806
  return [4 /*yield*/, response.body.text()];
932
807
  case 1:
933
- body_34 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
934
- "PermissionsResponse",
935
- ""]);
936
- return [2 /*return*/, body_34];
808
+ body_18 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
809
+ "PermissionsResponse"]);
810
+ return [2 /*return*/, body_18];
937
811
  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;
812
+ if (!(response.httpStatusCode == 400 ||
813
+ response.httpStatusCode == 403 ||
814
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
815
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
941
816
  return [4 /*yield*/, response.body.text()];
942
817
  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);
818
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
819
+ try {
820
+ body_19 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
821
+ }
822
+ catch (error) {
823
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
824
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
825
+ }
826
+ throw new exception_1.ApiException(response.httpStatusCode, body_19);
947
827
  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;
828
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
829
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
830
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
951
831
  return [4 /*yield*/, response.body.text()];
952
832
  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]),
833
+ body_20 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
974
834
  "PermissionsResponse",
975
835
  ""]);
976
- return [2 /*return*/, body_38];
977
- case 10: return [4 /*yield*/, response.body.text()];
978
- case 11:
979
- body = (_w.sent()) || "";
836
+ return [2 /*return*/, body_20];
837
+ case 6: return [4 /*yield*/, response.body.text()];
838
+ case 7:
839
+ body = (_l.sent()) || "";
980
840
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
981
841
  }
982
842
  });
@@ -991,63 +851,48 @@ var RolesApiResponseProcessor = /** @class */ (function () {
991
851
  */
992
852
  RolesApiResponseProcessor.prototype.listRolePermissions = function (response) {
993
853
  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) {
854
+ var contentType, body_21, _a, _b, _c, _d, bodyText, _e, _f, body_22, body_23, _g, _h, _j, _k, body;
855
+ return __generator(this, function (_l) {
856
+ switch (_l.label) {
997
857
  case 0:
998
858
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
999
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
859
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1000
860
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1001
861
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1002
862
  return [4 /*yield*/, response.body.text()];
1003
863
  case 1:
1004
- body_39 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1005
- "PermissionsResponse",
1006
- ""]);
1007
- return [2 /*return*/, body_39];
864
+ body_21 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
865
+ "PermissionsResponse"]);
866
+ return [2 /*return*/, body_21];
1008
867
  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;
868
+ if (!(response.httpStatusCode == 403 ||
869
+ response.httpStatusCode == 404 ||
870
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
871
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1012
872
  return [4 /*yield*/, response.body.text()];
1013
873
  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);
874
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
875
+ try {
876
+ body_22 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
877
+ }
878
+ catch (error) {
879
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
880
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
881
+ }
882
+ throw new exception_1.ApiException(response.httpStatusCode, body_22);
1018
883
  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;
884
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
885
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
886
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1022
887
  return [4 /*yield*/, response.body.text()];
1023
888
  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]),
889
+ body_23 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1045
890
  "PermissionsResponse",
1046
891
  ""]);
1047
- return [2 /*return*/, body_43];
1048
- case 10: return [4 /*yield*/, response.body.text()];
1049
- case 11:
1050
- body = (_w.sent()) || "";
892
+ return [2 /*return*/, body_23];
893
+ case 6: return [4 /*yield*/, response.body.text()];
894
+ case 7:
895
+ body = (_l.sent()) || "";
1051
896
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1052
897
  }
1053
898
  });
@@ -1062,53 +907,46 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1062
907
  */
1063
908
  RolesApiResponseProcessor.prototype.listRoles = function (response) {
1064
909
  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) {
910
+ var contentType, body_24, _a, _b, _c, _d, bodyText, _e, _f, body_25, body_26, _g, _h, _j, _k, body;
911
+ return __generator(this, function (_l) {
912
+ switch (_l.label) {
1068
913
  case 0:
1069
914
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1070
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
915
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1071
916
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1072
917
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1073
918
  return [4 /*yield*/, response.body.text()];
1074
919
  case 1:
1075
- body_44 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
1076
- "RolesResponse",
1077
- ""]);
1078
- return [2 /*return*/, body_44];
920
+ body_24 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
921
+ "RolesResponse"]);
922
+ return [2 /*return*/, body_24];
1079
923
  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;
924
+ if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
925
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1083
926
  return [4 /*yield*/, response.body.text()];
1084
927
  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);
928
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
929
+ try {
930
+ body_25 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
931
+ }
932
+ catch (error) {
933
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
934
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
935
+ }
936
+ throw new exception_1.ApiException(response.httpStatusCode, body_25);
1089
937
  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;
938
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
939
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
940
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1093
941
  return [4 /*yield*/, response.body.text()];
1094
942
  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]),
943
+ body_26 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1106
944
  "RolesResponse",
1107
945
  ""]);
1108
- return [2 /*return*/, body_47];
1109
- case 8: return [4 /*yield*/, response.body.text()];
1110
- case 9:
1111
- body = (_s.sent()) || "";
946
+ return [2 /*return*/, body_26];
947
+ case 6: return [4 /*yield*/, response.body.text()];
948
+ case 7:
949
+ body = (_l.sent()) || "";
1112
950
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1113
951
  }
1114
952
  });
@@ -1123,63 +961,48 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1123
961
  */
1124
962
  RolesApiResponseProcessor.prototype.listRoleUsers = function (response) {
1125
963
  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) {
964
+ var contentType, body_27, _a, _b, _c, _d, bodyText, _e, _f, body_28, body_29, _g, _h, _j, _k, body;
965
+ return __generator(this, function (_l) {
966
+ switch (_l.label) {
1129
967
  case 0:
1130
968
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1131
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
969
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1132
970
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1133
971
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1134
972
  return [4 /*yield*/, response.body.text()];
1135
973
  case 1:
1136
- body_48 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1137
- "UsersResponse",
1138
- ""]);
1139
- return [2 /*return*/, body_48];
974
+ body_27 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
975
+ "UsersResponse"]);
976
+ return [2 /*return*/, body_27];
1140
977
  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;
978
+ if (!(response.httpStatusCode == 403 ||
979
+ response.httpStatusCode == 404 ||
980
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
981
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1144
982
  return [4 /*yield*/, response.body.text()];
1145
983
  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);
984
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
985
+ try {
986
+ body_28 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
987
+ }
988
+ catch (error) {
989
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
990
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
991
+ }
992
+ throw new exception_1.ApiException(response.httpStatusCode, body_28);
1150
993
  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;
994
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
995
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
996
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1154
997
  return [4 /*yield*/, response.body.text()];
1155
998
  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]),
999
+ body_29 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1177
1000
  "UsersResponse",
1178
1001
  ""]);
1179
- return [2 /*return*/, body_52];
1180
- case 10: return [4 /*yield*/, response.body.text()];
1181
- case 11:
1182
- body = (_w.sent()) || "";
1002
+ return [2 /*return*/, body_29];
1003
+ case 6: return [4 /*yield*/, response.body.text()];
1004
+ case 7:
1005
+ body = (_l.sent()) || "";
1183
1006
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1184
1007
  }
1185
1008
  });
@@ -1194,73 +1017,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1194
1017
  */
1195
1018
  RolesApiResponseProcessor.prototype.removePermissionFromRole = function (response) {
1196
1019
  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) {
1020
+ var contentType, body_30, _a, _b, _c, _d, bodyText, _e, _f, body_31, body_32, _g, _h, _j, _k, body;
1021
+ return __generator(this, function (_l) {
1022
+ switch (_l.label) {
1200
1023
  case 0:
1201
1024
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1202
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1025
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1203
1026
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1204
1027
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1205
1028
  return [4 /*yield*/, response.body.text()];
1206
1029
  case 1:
1207
- body_53 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1208
- "PermissionsResponse",
1209
- ""]);
1210
- return [2 /*return*/, body_53];
1030
+ body_30 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1031
+ "PermissionsResponse"]);
1032
+ return [2 /*return*/, body_30];
1211
1033
  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;
1034
+ if (!(response.httpStatusCode == 400 ||
1035
+ response.httpStatusCode == 403 ||
1036
+ response.httpStatusCode == 404 ||
1037
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1038
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1215
1039
  return [4 /*yield*/, response.body.text()];
1216
1040
  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);
1041
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1042
+ try {
1043
+ body_31 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1044
+ }
1045
+ catch (error) {
1046
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1047
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1048
+ }
1049
+ throw new exception_1.ApiException(response.httpStatusCode, body_31);
1221
1050
  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;
1051
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1052
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1053
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1225
1054
  return [4 /*yield*/, response.body.text()];
1226
1055
  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]),
1056
+ body_32 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1258
1057
  "PermissionsResponse",
1259
1058
  ""]);
1260
- return [2 /*return*/, body_58];
1261
- case 12: return [4 /*yield*/, response.body.text()];
1262
- case 13:
1263
- body = (_0.sent()) || "";
1059
+ return [2 /*return*/, body_32];
1060
+ case 6: return [4 /*yield*/, response.body.text()];
1061
+ case 7:
1062
+ body = (_l.sent()) || "";
1264
1063
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1265
1064
  }
1266
1065
  });
@@ -1275,73 +1074,49 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1275
1074
  */
1276
1075
  RolesApiResponseProcessor.prototype.removeUserFromRole = function (response) {
1277
1076
  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) {
1077
+ var contentType, body_33, _a, _b, _c, _d, bodyText, _e, _f, body_34, body_35, _g, _h, _j, _k, body;
1078
+ return __generator(this, function (_l) {
1079
+ switch (_l.label) {
1281
1080
  case 0:
1282
1081
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1283
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1082
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1284
1083
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1285
1084
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1286
1085
  return [4 /*yield*/, response.body.text()];
1287
1086
  case 1:
1288
- body_59 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1289
- "UsersResponse",
1290
- ""]);
1291
- return [2 /*return*/, body_59];
1087
+ body_33 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1088
+ "UsersResponse"]);
1089
+ return [2 /*return*/, body_33];
1292
1090
  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;
1091
+ if (!(response.httpStatusCode == 400 ||
1092
+ response.httpStatusCode == 403 ||
1093
+ response.httpStatusCode == 404 ||
1094
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1095
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1296
1096
  return [4 /*yield*/, response.body.text()];
1297
1097
  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);
1098
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1099
+ try {
1100
+ body_34 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1101
+ }
1102
+ catch (error) {
1103
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1104
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1105
+ }
1106
+ throw new exception_1.ApiException(response.httpStatusCode, body_34);
1302
1107
  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;
1108
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1109
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1110
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1306
1111
  return [4 /*yield*/, response.body.text()];
1307
1112
  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]),
1113
+ body_35 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1339
1114
  "UsersResponse",
1340
1115
  ""]);
1341
- return [2 /*return*/, body_64];
1342
- case 12: return [4 /*yield*/, response.body.text()];
1343
- case 13:
1344
- body = (_0.sent()) || "";
1116
+ return [2 /*return*/, body_35];
1117
+ case 6: return [4 /*yield*/, response.body.text()];
1118
+ case 7:
1119
+ body = (_l.sent()) || "";
1345
1120
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1346
1121
  }
1347
1122
  });
@@ -1356,83 +1131,50 @@ var RolesApiResponseProcessor = /** @class */ (function () {
1356
1131
  */
1357
1132
  RolesApiResponseProcessor.prototype.updateRole = function (response) {
1358
1133
  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) {
1134
+ var contentType, body_36, _a, _b, _c, _d, bodyText, _e, _f, body_37, body_38, _g, _h, _j, _k, body;
1135
+ return __generator(this, function (_l) {
1136
+ switch (_l.label) {
1362
1137
  case 0:
1363
1138
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1364
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1139
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1365
1140
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1366
1141
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1367
1142
  return [4 /*yield*/, response.body.text()];
1368
1143
  case 1:
1369
- body_65 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
1370
- "RoleUpdateResponse",
1371
- ""]);
1372
- return [2 /*return*/, body_65];
1144
+ body_36 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1145
+ "RoleUpdateResponse"]);
1146
+ return [2 /*return*/, body_36];
1373
1147
  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;
1148
+ if (!(response.httpStatusCode == 400 ||
1149
+ response.httpStatusCode == 403 ||
1150
+ response.httpStatusCode == 404 ||
1151
+ response.httpStatusCode == 422 ||
1152
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1153
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1377
1154
  return [4 /*yield*/, response.body.text()];
1378
1155
  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);
1156
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1157
+ try {
1158
+ body_37 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1159
+ }
1160
+ catch (error) {
1161
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1162
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1163
+ }
1164
+ throw new exception_1.ApiException(response.httpStatusCode, body_37);
1383
1165
  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;
1166
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1167
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1168
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1387
1169
  return [4 /*yield*/, response.body.text()];
1388
1170
  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]),
1171
+ body_38 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1430
1172
  "RoleUpdateResponse",
1431
1173
  ""]);
1432
- return [2 /*return*/, body_71];
1433
- case 14: return [4 /*yield*/, response.body.text()];
1434
- case 15:
1435
- body = (_4.sent()) || "";
1174
+ return [2 /*return*/, body_38];
1175
+ case 6: return [4 /*yield*/, response.body.text()];
1176
+ case 7:
1177
+ body = (_l.sent()) || "";
1436
1178
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1437
1179
  }
1438
1180
  });