@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.KeyManagementApi = exports.KeyManagementApiResponseProcessor = exports.K
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 KeyManagementApiRequestFactory = /** @class */ (function (_super) {
62
62
  __extends(KeyManagementApiRequestFactory, _super);
63
63
  function KeyManagementApiRequestFactory() {
@@ -490,63 +490,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
490
490
  */
491
491
  KeyManagementApiResponseProcessor.prototype.createAPIKey = function (response) {
492
492
  return __awaiter(this, void 0, void 0, function () {
493
- 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;
494
- return __generator(this, function (_w) {
495
- switch (_w.label) {
493
+ var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
494
+ return __generator(this, function (_l) {
495
+ switch (_l.label) {
496
496
  case 0:
497
497
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
498
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3 /*break*/, 2];
498
+ if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
499
499
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
500
500
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
501
501
  return [4 /*yield*/, response.body.text()];
502
502
  case 1:
503
- body_1 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
504
- "APIKeyResponse",
505
- ""]);
503
+ body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
504
+ "APIKeyResponse"]);
506
505
  return [2 /*return*/, body_1];
507
506
  case 2:
508
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
509
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
510
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
507
+ if (!(response.httpStatusCode == 400 ||
508
+ response.httpStatusCode == 403 ||
509
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
510
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
511
511
  return [4 /*yield*/, response.body.text()];
512
512
  case 3:
513
- body_2 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
514
- "APIErrorResponse",
515
- ""]);
516
- throw new exception_1.ApiException(400, body_2);
513
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
514
+ try {
515
+ body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
516
+ }
517
+ catch (error) {
518
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
519
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
520
+ }
521
+ throw new exception_1.ApiException(response.httpStatusCode, body_2);
517
522
  case 4:
518
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
519
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
520
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
523
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
524
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
525
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
521
526
  return [4 /*yield*/, response.body.text()];
522
527
  case 5:
523
- body_3 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
524
- "APIErrorResponse",
525
- ""]);
526
- throw new exception_1.ApiException(403, body_3);
527
- case 6:
528
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
529
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
530
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
531
- return [4 /*yield*/, response.body.text()];
532
- case 7:
533
- body_4 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
534
- "APIErrorResponse",
535
- ""]);
536
- throw new exception_1.ApiException(429, body_4);
537
- case 8:
538
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
539
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
540
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
541
- return [4 /*yield*/, response.body.text()];
542
- case 9:
543
- body_5 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
528
+ body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
544
529
  "APIKeyResponse",
545
530
  ""]);
546
- return [2 /*return*/, body_5];
547
- case 10: return [4 /*yield*/, response.body.text()];
548
- case 11:
549
- body = (_w.sent()) || "";
531
+ return [2 /*return*/, body_3];
532
+ case 6: return [4 /*yield*/, response.body.text()];
533
+ case 7:
534
+ body = (_l.sent()) || "";
550
535
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
551
536
  }
552
537
  });
@@ -561,63 +546,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
561
546
  */
562
547
  KeyManagementApiResponseProcessor.prototype.createCurrentUserApplicationKey = function (response) {
563
548
  return __awaiter(this, void 0, void 0, function () {
564
- var contentType, body_6, _a, _b, _c, _d, body_7, _e, _f, _g, _h, body_8, _j, _k, _l, _m, body_9, _o, _p, _q, _r, body_10, _s, _t, _u, _v, body;
565
- return __generator(this, function (_w) {
566
- switch (_w.label) {
549
+ var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
550
+ return __generator(this, function (_l) {
551
+ switch (_l.label) {
567
552
  case 0:
568
553
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
569
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3 /*break*/, 2];
554
+ if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
570
555
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
571
556
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
572
557
  return [4 /*yield*/, response.body.text()];
573
558
  case 1:
574
- body_6 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
575
- "ApplicationKeyResponse",
576
- ""]);
577
- return [2 /*return*/, body_6];
559
+ body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
560
+ "ApplicationKeyResponse"]);
561
+ return [2 /*return*/, body_4];
578
562
  case 2:
579
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
580
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
581
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
563
+ if (!(response.httpStatusCode == 400 ||
564
+ response.httpStatusCode == 403 ||
565
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
566
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
582
567
  return [4 /*yield*/, response.body.text()];
583
568
  case 3:
584
- body_7 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
585
- "APIErrorResponse",
586
- ""]);
587
- throw new exception_1.ApiException(400, body_7);
569
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
570
+ try {
571
+ body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
572
+ }
573
+ catch (error) {
574
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
575
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
576
+ }
577
+ throw new exception_1.ApiException(response.httpStatusCode, body_5);
588
578
  case 4:
589
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
590
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
591
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
579
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
580
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
581
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
592
582
  return [4 /*yield*/, response.body.text()];
593
583
  case 5:
594
- body_8 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
595
- "APIErrorResponse",
596
- ""]);
597
- throw new exception_1.ApiException(403, body_8);
598
- case 6:
599
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
600
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
601
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
602
- return [4 /*yield*/, response.body.text()];
603
- case 7:
604
- body_9 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
605
- "APIErrorResponse",
606
- ""]);
607
- throw new exception_1.ApiException(429, body_9);
608
- case 8:
609
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
610
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
611
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
612
- return [4 /*yield*/, response.body.text()];
613
- case 9:
614
- body_10 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
584
+ body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
615
585
  "ApplicationKeyResponse",
616
586
  ""]);
617
- return [2 /*return*/, body_10];
618
- case 10: return [4 /*yield*/, response.body.text()];
619
- case 11:
620
- body = (_w.sent()) || "";
587
+ return [2 /*return*/, body_6];
588
+ case 6: return [4 /*yield*/, response.body.text()];
589
+ case 7:
590
+ body = (_l.sent()) || "";
621
591
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
622
592
  }
623
593
  });
@@ -632,56 +602,42 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
632
602
  */
633
603
  KeyManagementApiResponseProcessor.prototype.deleteAPIKey = function (response) {
634
604
  return __awaiter(this, void 0, void 0, function () {
635
- var contentType, body_11, _a, _b, _c, _d, body_12, _e, _f, _g, _h, body_13, _j, _k, _l, _m, body_14, _o, _p, _q, _r, body;
636
- return __generator(this, function (_s) {
637
- switch (_s.label) {
605
+ var contentType, bodyText, _a, _b, body_7, body_8, _c, _d, _e, _f, body;
606
+ return __generator(this, function (_g) {
607
+ switch (_g.label) {
638
608
  case 0:
639
609
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
640
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
610
+ if (response.httpStatusCode == 204) {
641
611
  return [2 /*return*/];
642
612
  }
643
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
644
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
645
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
613
+ if (!(response.httpStatusCode == 403 ||
614
+ response.httpStatusCode == 404 ||
615
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
616
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
646
617
  return [4 /*yield*/, response.body.text()];
647
618
  case 1:
648
- body_11 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
649
- "APIErrorResponse",
650
- ""]);
651
- throw new exception_1.ApiException(403, body_11);
619
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
620
+ try {
621
+ body_7 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
622
+ }
623
+ catch (error) {
624
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
625
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
626
+ }
627
+ throw new exception_1.ApiException(response.httpStatusCode, body_7);
652
628
  case 2:
653
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
654
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
655
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
629
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
630
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
631
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
656
632
  return [4 /*yield*/, response.body.text()];
657
633
  case 3:
658
- body_12 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
659
- "APIErrorResponse",
660
- ""]);
661
- throw new exception_1.ApiException(404, body_12);
662
- case 4:
663
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
664
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
665
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
666
- return [4 /*yield*/, response.body.text()];
667
- case 5:
668
- body_13 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
669
- "APIErrorResponse",
670
- ""]);
671
- throw new exception_1.ApiException(429, body_13);
672
- case 6:
673
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
674
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
675
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
676
- return [4 /*yield*/, response.body.text()];
677
- case 7:
678
- body_14 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
634
+ body_8 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
679
635
  "void",
680
636
  ""]);
681
- return [2 /*return*/, body_14];
682
- case 8: return [4 /*yield*/, response.body.text()];
683
- case 9:
684
- body = (_s.sent()) || "";
637
+ return [2 /*return*/, body_8];
638
+ case 4: return [4 /*yield*/, response.body.text()];
639
+ case 5:
640
+ body = (_g.sent()) || "";
685
641
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
686
642
  }
687
643
  });
@@ -696,56 +652,42 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
696
652
  */
697
653
  KeyManagementApiResponseProcessor.prototype.deleteApplicationKey = function (response) {
698
654
  return __awaiter(this, void 0, void 0, function () {
699
- var contentType, body_15, _a, _b, _c, _d, body_16, _e, _f, _g, _h, body_17, _j, _k, _l, _m, body_18, _o, _p, _q, _r, body;
700
- return __generator(this, function (_s) {
701
- switch (_s.label) {
655
+ var contentType, bodyText, _a, _b, body_9, body_10, _c, _d, _e, _f, body;
656
+ return __generator(this, function (_g) {
657
+ switch (_g.label) {
702
658
  case 0:
703
659
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
704
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
660
+ if (response.httpStatusCode == 204) {
705
661
  return [2 /*return*/];
706
662
  }
707
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
708
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
709
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
663
+ if (!(response.httpStatusCode == 403 ||
664
+ response.httpStatusCode == 404 ||
665
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
666
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
710
667
  return [4 /*yield*/, response.body.text()];
711
668
  case 1:
712
- body_15 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
713
- "APIErrorResponse",
714
- ""]);
715
- throw new exception_1.ApiException(403, body_15);
669
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
670
+ try {
671
+ body_9 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
672
+ }
673
+ catch (error) {
674
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
675
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
676
+ }
677
+ throw new exception_1.ApiException(response.httpStatusCode, body_9);
716
678
  case 2:
717
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
718
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
719
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
679
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
680
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
681
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
720
682
  return [4 /*yield*/, response.body.text()];
721
683
  case 3:
722
- body_16 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
723
- "APIErrorResponse",
724
- ""]);
725
- throw new exception_1.ApiException(404, body_16);
726
- case 4:
727
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
728
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
729
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
730
- return [4 /*yield*/, response.body.text()];
731
- case 5:
732
- body_17 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
733
- "APIErrorResponse",
734
- ""]);
735
- throw new exception_1.ApiException(429, body_17);
736
- case 6:
737
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
738
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
739
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
740
- return [4 /*yield*/, response.body.text()];
741
- case 7:
742
- body_18 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
684
+ body_10 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
743
685
  "void",
744
686
  ""]);
745
- return [2 /*return*/, body_18];
746
- case 8: return [4 /*yield*/, response.body.text()];
747
- case 9:
748
- body = (_s.sent()) || "";
687
+ return [2 /*return*/, body_10];
688
+ case 4: return [4 /*yield*/, response.body.text()];
689
+ case 5:
690
+ body = (_g.sent()) || "";
749
691
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
750
692
  }
751
693
  });
@@ -760,56 +702,42 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
760
702
  */
761
703
  KeyManagementApiResponseProcessor.prototype.deleteCurrentUserApplicationKey = function (response) {
762
704
  return __awaiter(this, void 0, void 0, function () {
763
- var contentType, body_19, _a, _b, _c, _d, body_20, _e, _f, _g, _h, body_21, _j, _k, _l, _m, body_22, _o, _p, _q, _r, body;
764
- return __generator(this, function (_s) {
765
- switch (_s.label) {
705
+ var contentType, bodyText, _a, _b, body_11, body_12, _c, _d, _e, _f, body;
706
+ return __generator(this, function (_g) {
707
+ switch (_g.label) {
766
708
  case 0:
767
709
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
768
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
710
+ if (response.httpStatusCode == 204) {
769
711
  return [2 /*return*/];
770
712
  }
771
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
772
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
773
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
713
+ if (!(response.httpStatusCode == 403 ||
714
+ response.httpStatusCode == 404 ||
715
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
716
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
774
717
  return [4 /*yield*/, response.body.text()];
775
718
  case 1:
776
- body_19 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
777
- "APIErrorResponse",
778
- ""]);
779
- throw new exception_1.ApiException(403, body_19);
719
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
720
+ try {
721
+ body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
722
+ }
723
+ catch (error) {
724
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
725
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
726
+ }
727
+ throw new exception_1.ApiException(response.httpStatusCode, body_11);
780
728
  case 2:
781
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
782
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
783
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
729
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
730
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
731
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
784
732
  return [4 /*yield*/, response.body.text()];
785
733
  case 3:
786
- body_20 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
787
- "APIErrorResponse",
788
- ""]);
789
- throw new exception_1.ApiException(404, body_20);
790
- case 4:
791
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
792
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
793
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
794
- return [4 /*yield*/, response.body.text()];
795
- case 5:
796
- body_21 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
797
- "APIErrorResponse",
798
- ""]);
799
- throw new exception_1.ApiException(429, body_21);
800
- case 6:
801
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
802
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
803
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
804
- return [4 /*yield*/, response.body.text()];
805
- case 7:
806
- body_22 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
734
+ body_12 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
807
735
  "void",
808
736
  ""]);
809
- return [2 /*return*/, body_22];
810
- case 8: return [4 /*yield*/, response.body.text()];
811
- case 9:
812
- body = (_s.sent()) || "";
737
+ return [2 /*return*/, body_12];
738
+ case 4: return [4 /*yield*/, response.body.text()];
739
+ case 5:
740
+ body = (_g.sent()) || "";
813
741
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
814
742
  }
815
743
  });
@@ -824,63 +752,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
824
752
  */
825
753
  KeyManagementApiResponseProcessor.prototype.getAPIKey = function (response) {
826
754
  return __awaiter(this, void 0, void 0, function () {
827
- var contentType, body_23, _a, _b, _c, _d, body_24, _e, _f, _g, _h, body_25, _j, _k, _l, _m, body_26, _o, _p, _q, _r, body_27, _s, _t, _u, _v, body;
828
- return __generator(this, function (_w) {
829
- switch (_w.label) {
755
+ var contentType, body_13, _a, _b, _c, _d, bodyText, _e, _f, body_14, body_15, _g, _h, _j, _k, body;
756
+ return __generator(this, function (_l) {
757
+ switch (_l.label) {
830
758
  case 0:
831
759
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
832
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
760
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
833
761
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
834
762
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
835
763
  return [4 /*yield*/, response.body.text()];
836
764
  case 1:
837
- body_23 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
838
- "APIKeyResponse",
839
- ""]);
840
- return [2 /*return*/, body_23];
765
+ body_13 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
766
+ "APIKeyResponse"]);
767
+ return [2 /*return*/, body_13];
841
768
  case 2:
842
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
843
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
844
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
769
+ if (!(response.httpStatusCode == 403 ||
770
+ response.httpStatusCode == 404 ||
771
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
772
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
845
773
  return [4 /*yield*/, response.body.text()];
846
774
  case 3:
847
- body_24 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
848
- "APIErrorResponse",
849
- ""]);
850
- throw new exception_1.ApiException(403, body_24);
775
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
776
+ try {
777
+ body_14 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
778
+ }
779
+ catch (error) {
780
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
781
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
782
+ }
783
+ throw new exception_1.ApiException(response.httpStatusCode, body_14);
851
784
  case 4:
852
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
853
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
854
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
785
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
786
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
787
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
855
788
  return [4 /*yield*/, response.body.text()];
856
789
  case 5:
857
- body_25 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
858
- "APIErrorResponse",
859
- ""]);
860
- throw new exception_1.ApiException(404, body_25);
861
- case 6:
862
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
863
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
864
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
865
- return [4 /*yield*/, response.body.text()];
866
- case 7:
867
- body_26 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
868
- "APIErrorResponse",
869
- ""]);
870
- throw new exception_1.ApiException(429, body_26);
871
- case 8:
872
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
873
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
874
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
875
- return [4 /*yield*/, response.body.text()];
876
- case 9:
877
- body_27 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
790
+ body_15 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
878
791
  "APIKeyResponse",
879
792
  ""]);
880
- return [2 /*return*/, body_27];
881
- case 10: return [4 /*yield*/, response.body.text()];
882
- case 11:
883
- body = (_w.sent()) || "";
793
+ return [2 /*return*/, body_15];
794
+ case 6: return [4 /*yield*/, response.body.text()];
795
+ case 7:
796
+ body = (_l.sent()) || "";
884
797
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
885
798
  }
886
799
  });
@@ -895,73 +808,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
895
808
  */
896
809
  KeyManagementApiResponseProcessor.prototype.getApplicationKey = function (response) {
897
810
  return __awaiter(this, void 0, void 0, function () {
898
- var contentType, body_28, _a, _b, _c, _d, body_29, _e, _f, _g, _h, body_30, _j, _k, _l, _m, body_31, _o, _p, _q, _r, body_32, _s, _t, _u, _v, body_33, _w, _x, _y, _z, body;
899
- return __generator(this, function (_0) {
900
- switch (_0.label) {
811
+ var contentType, body_16, _a, _b, _c, _d, bodyText, _e, _f, body_17, body_18, _g, _h, _j, _k, body;
812
+ return __generator(this, function (_l) {
813
+ switch (_l.label) {
901
814
  case 0:
902
815
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
903
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
816
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
904
817
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
905
818
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
906
819
  return [4 /*yield*/, response.body.text()];
907
820
  case 1:
908
- body_28 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
909
- "ApplicationKeyResponse",
910
- ""]);
911
- return [2 /*return*/, body_28];
821
+ body_16 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
822
+ "ApplicationKeyResponse"]);
823
+ return [2 /*return*/, body_16];
912
824
  case 2:
913
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
914
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
915
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
825
+ if (!(response.httpStatusCode == 400 ||
826
+ response.httpStatusCode == 403 ||
827
+ response.httpStatusCode == 404 ||
828
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
829
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
916
830
  return [4 /*yield*/, response.body.text()];
917
831
  case 3:
918
- body_29 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
919
- "APIErrorResponse",
920
- ""]);
921
- throw new exception_1.ApiException(400, body_29);
832
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
833
+ try {
834
+ body_17 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
835
+ }
836
+ catch (error) {
837
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
838
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
839
+ }
840
+ throw new exception_1.ApiException(response.httpStatusCode, body_17);
922
841
  case 4:
923
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
924
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
925
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
842
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
843
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
844
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
926
845
  return [4 /*yield*/, response.body.text()];
927
846
  case 5:
928
- body_30 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
929
- "APIErrorResponse",
930
- ""]);
931
- throw new exception_1.ApiException(403, body_30);
932
- case 6:
933
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
934
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
935
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
936
- return [4 /*yield*/, response.body.text()];
937
- case 7:
938
- body_31 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
939
- "APIErrorResponse",
940
- ""]);
941
- throw new exception_1.ApiException(404, body_31);
942
- case 8:
943
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
944
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
945
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
946
- return [4 /*yield*/, response.body.text()];
947
- case 9:
948
- body_32 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
949
- "APIErrorResponse",
950
- ""]);
951
- throw new exception_1.ApiException(429, body_32);
952
- case 10:
953
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
954
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
955
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
956
- return [4 /*yield*/, response.body.text()];
957
- case 11:
958
- body_33 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
847
+ body_18 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
959
848
  "ApplicationKeyResponse",
960
849
  ""]);
961
- return [2 /*return*/, body_33];
962
- case 12: return [4 /*yield*/, response.body.text()];
963
- case 13:
964
- body = (_0.sent()) || "";
850
+ return [2 /*return*/, body_18];
851
+ case 6: return [4 /*yield*/, response.body.text()];
852
+ case 7:
853
+ body = (_l.sent()) || "";
965
854
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
966
855
  }
967
856
  });
@@ -976,63 +865,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
976
865
  */
977
866
  KeyManagementApiResponseProcessor.prototype.getCurrentUserApplicationKey = function (response) {
978
867
  return __awaiter(this, void 0, void 0, function () {
979
- 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;
980
- return __generator(this, function (_w) {
981
- switch (_w.label) {
868
+ var contentType, body_19, _a, _b, _c, _d, bodyText, _e, _f, body_20, body_21, _g, _h, _j, _k, body;
869
+ return __generator(this, function (_l) {
870
+ switch (_l.label) {
982
871
  case 0:
983
872
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
984
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
873
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
985
874
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
986
875
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
987
876
  return [4 /*yield*/, response.body.text()];
988
877
  case 1:
989
- body_34 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
990
- "ApplicationKeyResponse",
991
- ""]);
992
- return [2 /*return*/, body_34];
878
+ body_19 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
879
+ "ApplicationKeyResponse"]);
880
+ return [2 /*return*/, body_19];
993
881
  case 2:
994
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
995
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
996
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
882
+ if (!(response.httpStatusCode == 403 ||
883
+ response.httpStatusCode == 404 ||
884
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
885
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
997
886
  return [4 /*yield*/, response.body.text()];
998
887
  case 3:
999
- body_35 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1000
- "APIErrorResponse",
1001
- ""]);
1002
- throw new exception_1.ApiException(403, body_35);
888
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
889
+ try {
890
+ body_20 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
891
+ }
892
+ catch (error) {
893
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
894
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
895
+ }
896
+ throw new exception_1.ApiException(response.httpStatusCode, body_20);
1003
897
  case 4:
1004
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
1005
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1006
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
898
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
899
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
900
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1007
901
  return [4 /*yield*/, response.body.text()];
1008
902
  case 5:
1009
- body_36 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1010
- "APIErrorResponse",
1011
- ""]);
1012
- throw new exception_1.ApiException(404, body_36);
1013
- case 6:
1014
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1015
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1016
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1017
- return [4 /*yield*/, response.body.text()];
1018
- case 7:
1019
- body_37 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1020
- "APIErrorResponse",
1021
- ""]);
1022
- throw new exception_1.ApiException(429, body_37);
1023
- case 8:
1024
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1025
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1026
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1027
- return [4 /*yield*/, response.body.text()];
1028
- case 9:
1029
- body_38 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
903
+ body_21 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1030
904
  "ApplicationKeyResponse",
1031
905
  ""]);
1032
- return [2 /*return*/, body_38];
1033
- case 10: return [4 /*yield*/, response.body.text()];
1034
- case 11:
1035
- body = (_w.sent()) || "";
906
+ return [2 /*return*/, body_21];
907
+ case 6: return [4 /*yield*/, response.body.text()];
908
+ case 7:
909
+ body = (_l.sent()) || "";
1036
910
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1037
911
  }
1038
912
  });
@@ -1047,63 +921,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
1047
921
  */
1048
922
  KeyManagementApiResponseProcessor.prototype.listAPIKeys = function (response) {
1049
923
  return __awaiter(this, void 0, void 0, function () {
1050
- 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;
1051
- return __generator(this, function (_w) {
1052
- switch (_w.label) {
924
+ var contentType, body_22, _a, _b, _c, _d, bodyText, _e, _f, body_23, body_24, _g, _h, _j, _k, body;
925
+ return __generator(this, function (_l) {
926
+ switch (_l.label) {
1053
927
  case 0:
1054
928
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1055
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
929
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1056
930
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1057
931
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1058
932
  return [4 /*yield*/, response.body.text()];
1059
933
  case 1:
1060
- body_39 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1061
- "APIKeysResponse",
1062
- ""]);
1063
- return [2 /*return*/, body_39];
934
+ body_22 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
935
+ "APIKeysResponse"]);
936
+ return [2 /*return*/, body_22];
1064
937
  case 2:
1065
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1066
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1067
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
938
+ if (!(response.httpStatusCode == 400 ||
939
+ response.httpStatusCode == 403 ||
940
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
941
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1068
942
  return [4 /*yield*/, response.body.text()];
1069
943
  case 3:
1070
- body_40 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1071
- "APIErrorResponse",
1072
- ""]);
1073
- throw new exception_1.ApiException(400, body_40);
944
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
945
+ try {
946
+ body_23 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
947
+ }
948
+ catch (error) {
949
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
950
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
951
+ }
952
+ throw new exception_1.ApiException(response.httpStatusCode, body_23);
1074
953
  case 4:
1075
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1076
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1077
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
954
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
955
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
956
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1078
957
  return [4 /*yield*/, response.body.text()];
1079
958
  case 5:
1080
- body_41 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1081
- "APIErrorResponse",
1082
- ""]);
1083
- throw new exception_1.ApiException(403, body_41);
1084
- case 6:
1085
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1086
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1087
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1088
- return [4 /*yield*/, response.body.text()];
1089
- case 7:
1090
- body_42 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1091
- "APIErrorResponse",
1092
- ""]);
1093
- throw new exception_1.ApiException(429, body_42);
1094
- case 8:
1095
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1096
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1097
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1098
- return [4 /*yield*/, response.body.text()];
1099
- case 9:
1100
- body_43 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
959
+ body_24 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1101
960
  "APIKeysResponse",
1102
961
  ""]);
1103
- return [2 /*return*/, body_43];
1104
- case 10: return [4 /*yield*/, response.body.text()];
1105
- case 11:
1106
- body = (_w.sent()) || "";
962
+ return [2 /*return*/, body_24];
963
+ case 6: return [4 /*yield*/, response.body.text()];
964
+ case 7:
965
+ body = (_l.sent()) || "";
1107
966
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1108
967
  }
1109
968
  });
@@ -1118,73 +977,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
1118
977
  */
1119
978
  KeyManagementApiResponseProcessor.prototype.listApplicationKeys = function (response) {
1120
979
  return __awaiter(this, void 0, void 0, function () {
1121
- 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_48, _s, _t, _u, _v, body_49, _w, _x, _y, _z, body;
1122
- return __generator(this, function (_0) {
1123
- switch (_0.label) {
980
+ var contentType, body_25, _a, _b, _c, _d, bodyText, _e, _f, body_26, body_27, _g, _h, _j, _k, body;
981
+ return __generator(this, function (_l) {
982
+ switch (_l.label) {
1124
983
  case 0:
1125
984
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1126
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
985
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1127
986
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1128
987
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1129
988
  return [4 /*yield*/, response.body.text()];
1130
989
  case 1:
1131
- body_44 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1132
- "ListApplicationKeysResponse",
1133
- ""]);
1134
- return [2 /*return*/, body_44];
990
+ body_25 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
991
+ "ListApplicationKeysResponse"]);
992
+ return [2 /*return*/, body_25];
1135
993
  case 2:
1136
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1137
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1138
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
994
+ if (!(response.httpStatusCode == 400 ||
995
+ response.httpStatusCode == 403 ||
996
+ response.httpStatusCode == 404 ||
997
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
998
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1139
999
  return [4 /*yield*/, response.body.text()];
1140
1000
  case 3:
1141
- body_45 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1142
- "APIErrorResponse",
1143
- ""]);
1144
- throw new exception_1.ApiException(400, body_45);
1001
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1002
+ try {
1003
+ body_26 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1004
+ }
1005
+ catch (error) {
1006
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1007
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1008
+ }
1009
+ throw new exception_1.ApiException(response.httpStatusCode, body_26);
1145
1010
  case 4:
1146
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1147
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1148
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1011
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1012
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1013
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1149
1014
  return [4 /*yield*/, response.body.text()];
1150
1015
  case 5:
1151
- body_46 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1152
- "APIErrorResponse",
1153
- ""]);
1154
- throw new exception_1.ApiException(403, body_46);
1155
- case 6:
1156
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1157
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1158
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1159
- return [4 /*yield*/, response.body.text()];
1160
- case 7:
1161
- body_47 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1162
- "APIErrorResponse",
1163
- ""]);
1164
- throw new exception_1.ApiException(404, body_47);
1165
- case 8:
1166
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1167
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1168
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1169
- return [4 /*yield*/, response.body.text()];
1170
- case 9:
1171
- body_48 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1172
- "APIErrorResponse",
1173
- ""]);
1174
- throw new exception_1.ApiException(429, body_48);
1175
- case 10:
1176
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1177
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1178
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1179
- return [4 /*yield*/, response.body.text()];
1180
- case 11:
1181
- body_49 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1016
+ body_27 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1182
1017
  "ListApplicationKeysResponse",
1183
1018
  ""]);
1184
- return [2 /*return*/, body_49];
1185
- case 12: return [4 /*yield*/, response.body.text()];
1186
- case 13:
1187
- body = (_0.sent()) || "";
1019
+ return [2 /*return*/, body_27];
1020
+ case 6: return [4 /*yield*/, response.body.text()];
1021
+ case 7:
1022
+ body = (_l.sent()) || "";
1188
1023
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1189
1024
  }
1190
1025
  });
@@ -1199,73 +1034,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
1199
1034
  */
1200
1035
  KeyManagementApiResponseProcessor.prototype.listCurrentUserApplicationKeys = function (response) {
1201
1036
  return __awaiter(this, void 0, void 0, function () {
1202
- var contentType, body_50, _a, _b, _c, _d, body_51, _e, _f, _g, _h, body_52, _j, _k, _l, _m, body_53, _o, _p, _q, _r, body_54, _s, _t, _u, _v, body_55, _w, _x, _y, _z, body;
1203
- return __generator(this, function (_0) {
1204
- switch (_0.label) {
1037
+ var contentType, body_28, _a, _b, _c, _d, bodyText, _e, _f, body_29, body_30, _g, _h, _j, _k, body;
1038
+ return __generator(this, function (_l) {
1039
+ switch (_l.label) {
1205
1040
  case 0:
1206
1041
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1207
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1042
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1208
1043
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1209
1044
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1210
1045
  return [4 /*yield*/, response.body.text()];
1211
1046
  case 1:
1212
- body_50 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1213
- "ListApplicationKeysResponse",
1214
- ""]);
1215
- return [2 /*return*/, body_50];
1047
+ body_28 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1048
+ "ListApplicationKeysResponse"]);
1049
+ return [2 /*return*/, body_28];
1216
1050
  case 2:
1217
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1218
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1219
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1051
+ if (!(response.httpStatusCode == 400 ||
1052
+ response.httpStatusCode == 403 ||
1053
+ response.httpStatusCode == 404 ||
1054
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1055
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1220
1056
  return [4 /*yield*/, response.body.text()];
1221
1057
  case 3:
1222
- body_51 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1223
- "APIErrorResponse",
1224
- ""]);
1225
- throw new exception_1.ApiException(400, body_51);
1058
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1059
+ try {
1060
+ body_29 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1061
+ }
1062
+ catch (error) {
1063
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1064
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1065
+ }
1066
+ throw new exception_1.ApiException(response.httpStatusCode, body_29);
1226
1067
  case 4:
1227
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1228
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1229
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1068
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1069
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1070
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1230
1071
  return [4 /*yield*/, response.body.text()];
1231
1072
  case 5:
1232
- body_52 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1233
- "APIErrorResponse",
1234
- ""]);
1235
- throw new exception_1.ApiException(403, body_52);
1236
- case 6:
1237
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1238
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1239
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1240
- return [4 /*yield*/, response.body.text()];
1241
- case 7:
1242
- body_53 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1243
- "APIErrorResponse",
1244
- ""]);
1245
- throw new exception_1.ApiException(404, body_53);
1246
- case 8:
1247
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1248
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1249
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1250
- return [4 /*yield*/, response.body.text()];
1251
- case 9:
1252
- body_54 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1253
- "APIErrorResponse",
1254
- ""]);
1255
- throw new exception_1.ApiException(429, body_54);
1256
- case 10:
1257
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1258
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1259
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1260
- return [4 /*yield*/, response.body.text()];
1261
- case 11:
1262
- body_55 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1073
+ body_30 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1263
1074
  "ListApplicationKeysResponse",
1264
1075
  ""]);
1265
- return [2 /*return*/, body_55];
1266
- case 12: return [4 /*yield*/, response.body.text()];
1267
- case 13:
1268
- body = (_0.sent()) || "";
1076
+ return [2 /*return*/, body_30];
1077
+ case 6: return [4 /*yield*/, response.body.text()];
1078
+ case 7:
1079
+ body = (_l.sent()) || "";
1269
1080
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1270
1081
  }
1271
1082
  });
@@ -1280,73 +1091,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
1280
1091
  */
1281
1092
  KeyManagementApiResponseProcessor.prototype.updateAPIKey = function (response) {
1282
1093
  return __awaiter(this, void 0, void 0, function () {
1283
- var contentType, body_56, _a, _b, _c, _d, body_57, _e, _f, _g, _h, body_58, _j, _k, _l, _m, body_59, _o, _p, _q, _r, body_60, _s, _t, _u, _v, body_61, _w, _x, _y, _z, body;
1284
- return __generator(this, function (_0) {
1285
- switch (_0.label) {
1094
+ var contentType, body_31, _a, _b, _c, _d, bodyText, _e, _f, body_32, body_33, _g, _h, _j, _k, body;
1095
+ return __generator(this, function (_l) {
1096
+ switch (_l.label) {
1286
1097
  case 0:
1287
1098
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1288
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1099
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1289
1100
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1290
1101
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1291
1102
  return [4 /*yield*/, response.body.text()];
1292
1103
  case 1:
1293
- body_56 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1294
- "APIKeyResponse",
1295
- ""]);
1296
- return [2 /*return*/, body_56];
1104
+ body_31 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1105
+ "APIKeyResponse"]);
1106
+ return [2 /*return*/, body_31];
1297
1107
  case 2:
1298
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1299
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1300
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1108
+ if (!(response.httpStatusCode == 400 ||
1109
+ response.httpStatusCode == 403 ||
1110
+ response.httpStatusCode == 404 ||
1111
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1112
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1301
1113
  return [4 /*yield*/, response.body.text()];
1302
1114
  case 3:
1303
- body_57 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1304
- "APIErrorResponse",
1305
- ""]);
1306
- throw new exception_1.ApiException(400, body_57);
1115
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1116
+ try {
1117
+ body_32 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1118
+ }
1119
+ catch (error) {
1120
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1121
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1122
+ }
1123
+ throw new exception_1.ApiException(response.httpStatusCode, body_32);
1307
1124
  case 4:
1308
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1309
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1310
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1125
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1126
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1127
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1311
1128
  return [4 /*yield*/, response.body.text()];
1312
1129
  case 5:
1313
- body_58 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1314
- "APIErrorResponse",
1315
- ""]);
1316
- throw new exception_1.ApiException(403, body_58);
1317
- case 6:
1318
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1319
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1320
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1321
- return [4 /*yield*/, response.body.text()];
1322
- case 7:
1323
- body_59 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1324
- "APIErrorResponse",
1325
- ""]);
1326
- throw new exception_1.ApiException(404, body_59);
1327
- case 8:
1328
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1329
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1330
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1331
- return [4 /*yield*/, response.body.text()];
1332
- case 9:
1333
- body_60 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1334
- "APIErrorResponse",
1335
- ""]);
1336
- throw new exception_1.ApiException(429, body_60);
1337
- case 10:
1338
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1339
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1340
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1341
- return [4 /*yield*/, response.body.text()];
1342
- case 11:
1343
- body_61 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1130
+ body_33 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1344
1131
  "APIKeyResponse",
1345
1132
  ""]);
1346
- return [2 /*return*/, body_61];
1347
- case 12: return [4 /*yield*/, response.body.text()];
1348
- case 13:
1349
- body = (_0.sent()) || "";
1133
+ return [2 /*return*/, body_33];
1134
+ case 6: return [4 /*yield*/, response.body.text()];
1135
+ case 7:
1136
+ body = (_l.sent()) || "";
1350
1137
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1351
1138
  }
1352
1139
  });
@@ -1361,73 +1148,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
1361
1148
  */
1362
1149
  KeyManagementApiResponseProcessor.prototype.updateApplicationKey = function (response) {
1363
1150
  return __awaiter(this, void 0, void 0, function () {
1364
- var contentType, body_62, _a, _b, _c, _d, body_63, _e, _f, _g, _h, body_64, _j, _k, _l, _m, body_65, _o, _p, _q, _r, body_66, _s, _t, _u, _v, body_67, _w, _x, _y, _z, body;
1365
- return __generator(this, function (_0) {
1366
- switch (_0.label) {
1151
+ var contentType, body_34, _a, _b, _c, _d, bodyText, _e, _f, body_35, body_36, _g, _h, _j, _k, body;
1152
+ return __generator(this, function (_l) {
1153
+ switch (_l.label) {
1367
1154
  case 0:
1368
1155
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1369
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1156
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1370
1157
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1371
1158
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1372
1159
  return [4 /*yield*/, response.body.text()];
1373
1160
  case 1:
1374
- body_62 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1375
- "ApplicationKeyResponse",
1376
- ""]);
1377
- return [2 /*return*/, body_62];
1161
+ body_34 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1162
+ "ApplicationKeyResponse"]);
1163
+ return [2 /*return*/, body_34];
1378
1164
  case 2:
1379
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1380
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1381
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1165
+ if (!(response.httpStatusCode == 400 ||
1166
+ response.httpStatusCode == 403 ||
1167
+ response.httpStatusCode == 404 ||
1168
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1169
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1382
1170
  return [4 /*yield*/, response.body.text()];
1383
1171
  case 3:
1384
- body_63 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1385
- "APIErrorResponse",
1386
- ""]);
1387
- throw new exception_1.ApiException(400, body_63);
1172
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1173
+ try {
1174
+ body_35 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1175
+ }
1176
+ catch (error) {
1177
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1178
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1179
+ }
1180
+ throw new exception_1.ApiException(response.httpStatusCode, body_35);
1388
1181
  case 4:
1389
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1390
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1391
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1182
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1183
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1184
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1392
1185
  return [4 /*yield*/, response.body.text()];
1393
1186
  case 5:
1394
- body_64 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1395
- "APIErrorResponse",
1396
- ""]);
1397
- throw new exception_1.ApiException(403, body_64);
1398
- case 6:
1399
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1400
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1401
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1402
- return [4 /*yield*/, response.body.text()];
1403
- case 7:
1404
- body_65 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1405
- "APIErrorResponse",
1406
- ""]);
1407
- throw new exception_1.ApiException(404, body_65);
1408
- case 8:
1409
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1410
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1411
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1412
- return [4 /*yield*/, response.body.text()];
1413
- case 9:
1414
- body_66 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1415
- "APIErrorResponse",
1416
- ""]);
1417
- throw new exception_1.ApiException(429, body_66);
1418
- case 10:
1419
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1420
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1421
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1422
- return [4 /*yield*/, response.body.text()];
1423
- case 11:
1424
- body_67 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1187
+ body_36 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1425
1188
  "ApplicationKeyResponse",
1426
1189
  ""]);
1427
- return [2 /*return*/, body_67];
1428
- case 12: return [4 /*yield*/, response.body.text()];
1429
- case 13:
1430
- body = (_0.sent()) || "";
1190
+ return [2 /*return*/, body_36];
1191
+ case 6: return [4 /*yield*/, response.body.text()];
1192
+ case 7:
1193
+ body = (_l.sent()) || "";
1431
1194
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1432
1195
  }
1433
1196
  });
@@ -1442,73 +1205,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
1442
1205
  */
1443
1206
  KeyManagementApiResponseProcessor.prototype.updateCurrentUserApplicationKey = function (response) {
1444
1207
  return __awaiter(this, void 0, void 0, function () {
1445
- var contentType, body_68, _a, _b, _c, _d, body_69, _e, _f, _g, _h, body_70, _j, _k, _l, _m, body_71, _o, _p, _q, _r, body_72, _s, _t, _u, _v, body_73, _w, _x, _y, _z, body;
1446
- return __generator(this, function (_0) {
1447
- switch (_0.label) {
1208
+ var contentType, body_37, _a, _b, _c, _d, bodyText, _e, _f, body_38, body_39, _g, _h, _j, _k, body;
1209
+ return __generator(this, function (_l) {
1210
+ switch (_l.label) {
1448
1211
  case 0:
1449
1212
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1450
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1213
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1451
1214
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1452
1215
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1453
1216
  return [4 /*yield*/, response.body.text()];
1454
1217
  case 1:
1455
- body_68 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1456
- "ApplicationKeyResponse",
1457
- ""]);
1458
- return [2 /*return*/, body_68];
1218
+ body_37 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1219
+ "ApplicationKeyResponse"]);
1220
+ return [2 /*return*/, body_37];
1459
1221
  case 2:
1460
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1461
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1462
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1222
+ if (!(response.httpStatusCode == 400 ||
1223
+ response.httpStatusCode == 403 ||
1224
+ response.httpStatusCode == 404 ||
1225
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1226
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1463
1227
  return [4 /*yield*/, response.body.text()];
1464
1228
  case 3:
1465
- body_69 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1466
- "APIErrorResponse",
1467
- ""]);
1468
- throw new exception_1.ApiException(400, body_69);
1229
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1230
+ try {
1231
+ body_38 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1232
+ }
1233
+ catch (error) {
1234
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1235
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1236
+ }
1237
+ throw new exception_1.ApiException(response.httpStatusCode, body_38);
1469
1238
  case 4:
1470
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1471
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1472
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1239
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1240
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1241
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1473
1242
  return [4 /*yield*/, response.body.text()];
1474
1243
  case 5:
1475
- body_70 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1476
- "APIErrorResponse",
1477
- ""]);
1478
- throw new exception_1.ApiException(403, body_70);
1479
- case 6:
1480
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1481
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1482
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1483
- return [4 /*yield*/, response.body.text()];
1484
- case 7:
1485
- body_71 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1486
- "APIErrorResponse",
1487
- ""]);
1488
- throw new exception_1.ApiException(404, body_71);
1489
- case 8:
1490
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1491
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1492
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1493
- return [4 /*yield*/, response.body.text()];
1494
- case 9:
1495
- body_72 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1496
- "APIErrorResponse",
1497
- ""]);
1498
- throw new exception_1.ApiException(429, body_72);
1499
- case 10:
1500
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1501
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1502
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1503
- return [4 /*yield*/, response.body.text()];
1504
- case 11:
1505
- body_73 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
1244
+ body_39 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1506
1245
  "ApplicationKeyResponse",
1507
1246
  ""]);
1508
- return [2 /*return*/, body_73];
1509
- case 12: return [4 /*yield*/, response.body.text()];
1510
- case 13:
1511
- body = (_0.sent()) || "";
1247
+ return [2 /*return*/, body_39];
1248
+ case 6: return [4 /*yield*/, response.body.text()];
1249
+ case 7:
1250
+ body = (_l.sent()) || "";
1512
1251
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1513
1252
  }
1514
1253
  });