@datadog/datadog-api-client 1.10.0 → 1.12.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 (599) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/LICENSE-3rdparty.csv +0 -8
  3. package/dist/packages/datadog-api-client-common/configuration.js +10 -0
  4. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  5. package/dist/packages/datadog-api-client-common/servers.d.ts +2 -2
  6. package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
  7. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.d.ts +176 -0
  8. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +560 -0
  9. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
  10. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.d.ts +6 -1
  11. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +5 -2
  12. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
  13. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.d.ts +3 -3
  14. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +3 -3
  15. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.d.ts +2 -2
  16. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +2 -2
  17. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +2 -2
  18. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +3 -3
  19. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +3 -3
  20. package/dist/packages/datadog-api-client-v1/index.d.ts +18 -1
  21. package/dist/packages/datadog-api-client-v1/index.js +36 -11
  22. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  23. package/dist/packages/datadog-api-client-v1/models/CancelDowntimesByScopeRequest.d.ts +1 -1
  24. package/dist/packages/datadog-api-client-v1/models/Dashboard.d.ts +4 -0
  25. package/dist/packages/datadog-api-client-v1/models/Dashboard.js +4 -0
  26. package/dist/packages/datadog-api-client-v1/models/Dashboard.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTime.d.ts +29 -0
  28. package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTime.js +26 -0
  29. package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTime.js.map +1 -0
  30. package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.d.ts +18 -0
  31. package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.js +17 -0
  32. package/dist/packages/datadog-api-client-v1/models/DashboardGlobalTimeLiveSpan.js.map +1 -0
  33. package/dist/packages/datadog-api-client-v1/models/DashboardInviteType.d.ts +11 -0
  34. package/dist/packages/datadog-api-client-v1/models/DashboardInviteType.js +10 -0
  35. package/dist/packages/datadog-api-client-v1/models/DashboardInviteType.js.map +1 -0
  36. package/dist/packages/datadog-api-client-v1/models/DashboardShareType.d.ts +12 -0
  37. package/dist/packages/datadog-api-client-v1/models/DashboardShareType.js +11 -0
  38. package/dist/packages/datadog-api-client-v1/models/DashboardShareType.js.map +1 -0
  39. package/dist/packages/datadog-api-client-v1/models/DashboardType.d.ts +12 -0
  40. package/dist/packages/datadog-api-client-v1/models/DashboardType.js +11 -0
  41. package/dist/packages/datadog-api-client-v1/models/DashboardType.js.map +1 -0
  42. package/dist/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.d.ts +28 -0
  43. package/dist/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.js +31 -0
  44. package/dist/packages/datadog-api-client-v1/models/DeleteSharedDashboardResponse.js.map +1 -0
  45. package/dist/packages/datadog-api-client-v1/models/Downtime.d.ts +1 -1
  46. package/dist/packages/datadog-api-client-v1/models/DowntimeChild.d.ts +1 -1
  47. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
  48. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
  49. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
  50. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.d.ts +4 -0
  51. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.js +4 -0
  52. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +4 -1
  54. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +4 -1
  55. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  56. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +4 -1
  57. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +4 -1
  58. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  59. package/dist/packages/datadog-api-client-v1/models/MetricsQueryMetadata.d.ts +2 -2
  60. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.d.ts +4 -0
  61. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.js +4 -0
  62. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.js.map +1 -1
  63. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +7 -1
  64. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +8 -2
  65. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +26 -2
  67. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +30 -0
  68. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  69. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +54 -0
  70. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  71. package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.d.ts +40 -0
  72. package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js +43 -0
  73. package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js.map +1 -0
  74. package/dist/packages/datadog-api-client-v1/models/SharedDashboard.d.ts +73 -0
  75. package/dist/packages/datadog-api-client-v1/models/SharedDashboard.js +70 -0
  76. package/dist/packages/datadog-api-client-v1/models/SharedDashboard.js.map +1 -0
  77. package/dist/packages/datadog-api-client-v1/models/SharedDashboardAuthor.d.ts +32 -0
  78. package/dist/packages/datadog-api-client-v1/models/SharedDashboardAuthor.js +35 -0
  79. package/dist/packages/datadog-api-client-v1/models/SharedDashboardAuthor.js.map +1 -0
  80. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvites.d.ts +34 -0
  81. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvites.js +31 -0
  82. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvites.js.map +1 -0
  83. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.d.ts +11 -0
  84. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.js +3 -0
  85. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesData.js.map +1 -0
  86. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.d.ts +34 -0
  87. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.js +32 -0
  88. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObject.js.map +1 -0
  89. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.d.ts +48 -0
  90. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.js +54 -0
  91. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesDataObjectAttributes.js.map +1 -0
  92. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.d.ts +29 -0
  93. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.js +26 -0
  94. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMeta.js.map +1 -0
  95. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.d.ts +28 -0
  96. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.js +32 -0
  97. package/dist/packages/datadog-api-client-v1/models/SharedDashboardInvitesMetaPage.js.map +1 -0
  98. package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.d.ts +47 -0
  99. package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.js +44 -0
  100. package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequest.js.map +1 -0
  101. package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.d.ts +29 -0
  102. package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.js +26 -0
  103. package/dist/packages/datadog-api-client-v1/models/SharedDashboardUpdateRequestGlobalTime.js.map +1 -0
  104. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
  105. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
  106. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  107. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.d.ts +1 -1
  108. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.js +2 -2
  109. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryKeys.js.map +1 -1
  110. package/dist/packages/datadog-api-client-v1/models/UsageLogsHour.d.ts +4 -0
  111. package/dist/packages/datadog-api-client-v1/models/UsageLogsHour.js +5 -0
  112. package/dist/packages/datadog-api-client-v1/models/UsageLogsHour.js.map +1 -1
  113. package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.d.ts +4 -0
  114. package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.js +5 -0
  115. package/dist/packages/datadog-api-client-v1/models/UsageRumSessionsHour.js.map +1 -1
  116. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +16 -0
  117. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +20 -0
  118. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  119. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +16 -0
  120. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +20 -0
  121. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  122. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +16 -0
  123. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +20 -0
  124. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  125. package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.d.ts +49 -0
  126. package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.js +185 -0
  127. package/dist/packages/datadog-api-client-v2/apis/IPAllowlistApi.js.map +1 -0
  128. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +284 -1
  129. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +956 -40
  130. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
  131. package/dist/packages/datadog-api-client-v2/apis/LogsApi.d.ts +1 -0
  132. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +1 -0
  133. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
  134. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +1 -1
  135. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.d.ts +100 -0
  136. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +278 -0
  137. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js.map +1 -0
  138. package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +19 -2
  139. package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +56 -3
  140. package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -1
  141. package/dist/packages/datadog-api-client-v2/apis/SpansMetricsApi.d.ts +122 -0
  142. package/dist/packages/datadog-api-client-v2/apis/SpansMetricsApi.js +412 -0
  143. package/dist/packages/datadog-api-client-v2/apis/SpansMetricsApi.js.map +1 -0
  144. package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.d.ts +50 -0
  145. package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.js +178 -0
  146. package/dist/packages/datadog-api-client-v2/apis/SyntheticsApi.js.map +1 -0
  147. package/dist/packages/datadog-api-client-v2/apis/TeamsApi.d.ts +467 -0
  148. package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js +1315 -0
  149. package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js.map +1 -0
  150. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +3 -1
  151. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
  152. package/dist/packages/datadog-api-client-v2/index.d.ts +146 -2
  153. package/dist/packages/datadog-api-client-v2/index.js +240 -14
  154. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  155. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.d.ts +1 -1
  156. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js +1 -0
  157. package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js.map +1 -1
  158. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.d.ts +1 -1
  159. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js +1 -0
  160. package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js.map +1 -1
  161. package/dist/packages/datadog-api-client-v2/models/EventsDataSource.d.ts +2 -1
  162. package/dist/packages/datadog-api-client-v2/models/EventsDataSource.js +2 -1
  163. package/dist/packages/datadog-api-client-v2/models/EventsDataSource.js.map +1 -1
  164. package/dist/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.d.ts +18 -0
  165. package/dist/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.js +17 -0
  166. package/dist/packages/datadog-api-client-v2/models/GetTeamMembershipsSort.js.map +1 -0
  167. package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.d.ts +33 -0
  168. package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.js +30 -0
  169. package/dist/packages/datadog-api-client-v2/models/IPAllowlistAttributes.js.map +1 -0
  170. package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.d.ts +38 -0
  171. package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.js +35 -0
  172. package/dist/packages/datadog-api-client-v2/models/IPAllowlistData.js.map +1 -0
  173. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.d.ts +29 -0
  174. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.js +27 -0
  175. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntry.js.map +1 -0
  176. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.d.ts +40 -0
  177. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.js +45 -0
  178. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryAttributes.js.map +1 -0
  179. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.d.ts +38 -0
  180. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.js +35 -0
  181. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryData.js.map +1 -0
  182. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.d.ts +11 -0
  183. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.js +10 -0
  184. package/dist/packages/datadog-api-client-v2/models/IPAllowlistEntryType.js.map +1 -0
  185. package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.d.ts +29 -0
  186. package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.js +26 -0
  187. package/dist/packages/datadog-api-client-v2/models/IPAllowlistResponse.js.map +1 -0
  188. package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.d.ts +11 -0
  189. package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.js +10 -0
  190. package/dist/packages/datadog-api-client-v2/models/IPAllowlistType.js.map +1 -0
  191. package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.d.ts +29 -0
  192. package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.js +27 -0
  193. package/dist/packages/datadog-api-client-v2/models/IPAllowlistUpdateRequest.js.map +1 -0
  194. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.d.ts +44 -0
  195. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js +42 -0
  196. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js.map +1 -0
  197. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.d.ts +34 -0
  198. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.js +32 -0
  199. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateData.js.map +1 -0
  200. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.d.ts +29 -0
  201. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.js +27 -0
  202. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataCreateRequest.js.map +1 -0
  203. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.d.ts +39 -0
  204. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.js +35 -0
  205. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataListResponse.js.map +1 -0
  206. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.d.ts +12 -0
  207. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.js +3 -0
  208. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataMetadata.js.map +1 -0
  209. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.d.ts +34 -0
  210. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.js +32 -0
  211. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchData.js.map +1 -0
  212. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.d.ts +29 -0
  213. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.js +27 -0
  214. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataPatchRequest.js.map +1 -0
  215. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.d.ts +34 -0
  216. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.js +31 -0
  217. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponse.js.map +1 -0
  218. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.d.ts +38 -0
  219. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js +36 -0
  220. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js.map +1 -0
  221. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.d.ts +11 -0
  222. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.js +3 -0
  223. package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseIncludedItem.js.map +1 -0
  224. package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponse.d.ts +5 -0
  225. package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponse.js +4 -0
  226. package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponse.js.map +1 -1
  227. package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.d.ts +29 -0
  228. package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.js +26 -0
  229. package/dist/packages/datadog-api-client-v2/models/IncidentSearchResponseMeta.js.map +1 -0
  230. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.d.ts +41 -0
  231. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.js +42 -0
  232. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssignee.js.map +1 -0
  233. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.d.ts +12 -0
  234. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.js +11 -0
  235. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAnonymousAssigneeSource.js.map +1 -0
  236. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAssignee.d.ts +11 -0
  237. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAssignee.js +3 -0
  238. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAssignee.js.map +1 -0
  239. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.d.ts +45 -0
  240. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.js +44 -0
  241. package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.js.map +1 -0
  242. package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateData.d.ts +34 -0
  243. package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateData.js +32 -0
  244. package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateData.js.map +1 -0
  245. package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.d.ts +29 -0
  246. package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.js +27 -0
  247. package/dist/packages/datadog-api-client-v2/models/IncidentTodoCreateRequest.js.map +1 -0
  248. package/dist/packages/datadog-api-client-v2/models/IncidentTodoListResponse.d.ts +39 -0
  249. package/dist/packages/datadog-api-client-v2/models/IncidentTodoListResponse.js +35 -0
  250. package/dist/packages/datadog-api-client-v2/models/IncidentTodoListResponse.js.map +1 -0
  251. package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchData.d.ts +34 -0
  252. package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchData.js +32 -0
  253. package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchData.js.map +1 -0
  254. package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.d.ts +29 -0
  255. package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.js +27 -0
  256. package/dist/packages/datadog-api-client-v2/models/IncidentTodoPatchRequest.js.map +1 -0
  257. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponse.d.ts +34 -0
  258. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponse.js +31 -0
  259. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponse.js.map +1 -0
  260. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.d.ts +38 -0
  261. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.js +36 -0
  262. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.js.map +1 -0
  263. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.d.ts +11 -0
  264. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.js +3 -0
  265. package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseIncludedItem.js.map +1 -0
  266. package/dist/packages/datadog-api-client-v2/models/IncidentTodoType.d.ts +11 -0
  267. package/dist/packages/datadog-api-client-v2/models/IncidentTodoType.js +10 -0
  268. package/dist/packages/datadog-api-client-v2/models/IncidentTodoType.js.map +1 -0
  269. package/dist/packages/datadog-api-client-v2/models/IncidentUpdateData.d.ts +1 -1
  270. package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.d.ts +29 -0
  271. package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.js +27 -0
  272. package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadata.js.map +1 -0
  273. package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.d.ts +44 -0
  274. package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.js +49 -0
  275. package/dist/packages/datadog-api-client-v2/models/JiraIntegrationMetadataIssuesItem.js.map +1 -0
  276. package/dist/packages/datadog-api-client-v2/models/ListTeamsInclude.d.ts +12 -0
  277. package/dist/packages/datadog-api-client-v2/models/ListTeamsInclude.js +11 -0
  278. package/dist/packages/datadog-api-client-v2/models/ListTeamsInclude.js.map +1 -0
  279. package/dist/packages/datadog-api-client-v2/models/ListTeamsSort.d.ts +14 -0
  280. package/dist/packages/datadog-api-client-v2/models/ListTeamsSort.js +13 -0
  281. package/dist/packages/datadog-api-client-v2/models/ListTeamsSort.js.map +1 -0
  282. package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.d.ts +5 -1
  283. package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.js +5 -1
  284. package/dist/packages/datadog-api-client-v2/models/MetricsAggregator.js.map +1 -1
  285. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +298 -4
  286. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  287. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.d.ts +29 -0
  288. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.js +26 -0
  289. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.js.map +1 -0
  290. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.d.ts +28 -0
  291. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.js +32 -0
  292. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapAttributes.js.map +1 -0
  293. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.d.ts +29 -0
  294. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.js +26 -0
  295. package/dist/packages/datadog-api-client-v2/models/OnDemandConcurrencyCapResponse.js.map +1 -0
  296. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentIntegrationMetadatas.d.ts +1 -1
  297. package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.d.ts +33 -0
  298. package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.js +32 -0
  299. package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinkData.js.map +1 -0
  300. package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.d.ts +29 -0
  301. package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.js +26 -0
  302. package/dist/packages/datadog-api-client-v2/models/RelationshipToTeamLinks.js.map +1 -0
  303. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.d.ts +29 -0
  304. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.js +26 -0
  305. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermission.js.map +1 -0
  306. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.d.ts +33 -0
  307. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.js +32 -0
  308. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamPermissionData.js.map +1 -0
  309. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.d.ts +29 -0
  310. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.js +27 -0
  311. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUser.js.map +1 -0
  312. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.d.ts +33 -0
  313. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.js +32 -0
  314. package/dist/packages/datadog-api-client-v2/models/RelationshipToUserTeamUserData.js.map +1 -0
  315. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.d.ts +38 -0
  316. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.js +37 -0
  317. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicy.js.map +1 -0
  318. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.d.ts +29 -0
  319. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.js +27 -0
  320. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyAttributes.js.map +1 -0
  321. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.d.ts +34 -0
  322. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.js +37 -0
  323. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyBinding.js.map +1 -0
  324. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.d.ts +29 -0
  325. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.js +27 -0
  326. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyResponse.js.map +1 -0
  327. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.d.ts +11 -0
  328. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.js +10 -0
  329. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyType.js.map +1 -0
  330. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.d.ts +29 -0
  331. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.js +27 -0
  332. package/dist/packages/datadog-api-client-v2/models/RestrictionPolicyUpdateRequest.js.map +1 -0
  333. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.d.ts +2 -1
  334. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.js +2 -1
  335. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeRead.js.map +1 -1
  336. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +2 -1
  337. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.d.ts +2 -1
  338. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.d.ts +78 -0
  339. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.js +72 -0
  340. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1.js.map +1 -0
  341. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.d.ts +13 -0
  342. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.js +3 -0
  343. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Contact.js.map +1 -0
  344. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.d.ts +37 -0
  345. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.js +37 -0
  346. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Email.js.map +1 -0
  347. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.d.ts +11 -0
  348. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.js +10 -0
  349. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1EmailType.js.map +1 -0
  350. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.d.ts +34 -0
  351. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.js +30 -0
  352. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Integrations.js.map +1 -0
  353. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.d.ts +41 -0
  354. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.js +41 -0
  355. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Link.js.map +1 -0
  356. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.d.ts +15 -0
  357. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.js +14 -0
  358. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1LinkType.js.map +1 -0
  359. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.d.ts +37 -0
  360. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.js +36 -0
  361. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeams.js.map +1 -0
  362. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.d.ts +11 -0
  363. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.js +10 -0
  364. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1MSTeamsType.js.map +1 -0
  365. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.d.ts +33 -0
  366. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.js +31 -0
  367. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Opsgenie.js.map +1 -0
  368. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.d.ts +12 -0
  369. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.js +11 -0
  370. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1OpsgenieRegion.js.map +1 -0
  371. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.d.ts +28 -0
  372. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.js +31 -0
  373. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Pagerduty.js.map +1 -0
  374. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.d.ts +37 -0
  375. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.js +36 -0
  376. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Slack.js.map +1 -0
  377. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.d.ts +11 -0
  378. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.js +10 -0
  379. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1SlackType.js.map +1 -0
  380. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.d.ts +11 -0
  381. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.js +10 -0
  382. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot1Version.js.map +1 -0
  383. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.d.ts +37 -0
  384. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.js +36 -0
  385. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeams.js.map +1 -0
  386. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.d.ts +11 -0
  387. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.js +10 -0
  388. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2MSTeamsType.js.map +1 -0
  389. package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +2 -1
  390. package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.d.ts +29 -0
  391. package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.js +27 -0
  392. package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadata.js.map +1 -0
  393. package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.d.ts +40 -0
  394. package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.js +46 -0
  395. package/dist/packages/datadog-api-client-v2/models/SlackIntegrationMetadataChannelItem.js.map +1 -0
  396. package/dist/packages/datadog-api-client-v2/models/SpansMetricCompute.d.ts +38 -0
  397. package/dist/packages/datadog-api-client-v2/models/SpansMetricCompute.js +35 -0
  398. package/dist/packages/datadog-api-client-v2/models/SpansMetricCompute.js.map +1 -0
  399. package/dist/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.d.ts +12 -0
  400. package/dist/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.js +11 -0
  401. package/dist/packages/datadog-api-client-v2/models/SpansMetricComputeAggregationType.js.map +1 -0
  402. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.d.ts +39 -0
  403. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.js +35 -0
  404. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateAttributes.js.map +1 -0
  405. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateData.d.ts +38 -0
  406. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateData.js +37 -0
  407. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateData.js.map +1 -0
  408. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.d.ts +29 -0
  409. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.js +27 -0
  410. package/dist/packages/datadog-api-client-v2/models/SpansMetricCreateRequest.js.map +1 -0
  411. package/dist/packages/datadog-api-client-v2/models/SpansMetricFilter.d.ts +28 -0
  412. package/dist/packages/datadog-api-client-v2/models/SpansMetricFilter.js +31 -0
  413. package/dist/packages/datadog-api-client-v2/models/SpansMetricFilter.js.map +1 -0
  414. package/dist/packages/datadog-api-client-v2/models/SpansMetricGroupBy.d.ts +32 -0
  415. package/dist/packages/datadog-api-client-v2/models/SpansMetricGroupBy.js +36 -0
  416. package/dist/packages/datadog-api-client-v2/models/SpansMetricGroupBy.js.map +1 -0
  417. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponse.d.ts +29 -0
  418. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponse.js +26 -0
  419. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponse.js.map +1 -0
  420. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.d.ts +39 -0
  421. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.js +34 -0
  422. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseAttributes.js.map +1 -0
  423. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.d.ts +38 -0
  424. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.js +34 -0
  425. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseCompute.js.map +1 -0
  426. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseData.d.ts +38 -0
  427. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseData.js +34 -0
  428. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseData.js.map +1 -0
  429. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.d.ts +28 -0
  430. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.js +31 -0
  431. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseFilter.js.map +1 -0
  432. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.d.ts +32 -0
  433. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.js +35 -0
  434. package/dist/packages/datadog-api-client-v2/models/SpansMetricResponseGroupBy.js.map +1 -0
  435. package/dist/packages/datadog-api-client-v2/models/SpansMetricType.d.ts +11 -0
  436. package/dist/packages/datadog-api-client-v2/models/SpansMetricType.js +10 -0
  437. package/dist/packages/datadog-api-client-v2/models/SpansMetricType.js.map +1 -0
  438. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.d.ts +39 -0
  439. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.js +34 -0
  440. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateAttributes.js.map +1 -0
  441. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.d.ts +29 -0
  442. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.js +31 -0
  443. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateCompute.js.map +1 -0
  444. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateData.d.ts +34 -0
  445. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateData.js +32 -0
  446. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateData.js.map +1 -0
  447. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.d.ts +29 -0
  448. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.js +27 -0
  449. package/dist/packages/datadog-api-client-v2/models/SpansMetricUpdateRequest.js.map +1 -0
  450. package/dist/packages/datadog-api-client-v2/models/SpansMetricsResponse.d.ts +29 -0
  451. package/dist/packages/datadog-api-client-v2/models/SpansMetricsResponse.js +26 -0
  452. package/dist/packages/datadog-api-client-v2/models/SpansMetricsResponse.js.map +1 -0
  453. package/dist/packages/datadog-api-client-v2/models/Team.d.ts +43 -0
  454. package/dist/packages/datadog-api-client-v2/models/Team.js +41 -0
  455. package/dist/packages/datadog-api-client-v2/models/Team.js.map +1 -0
  456. package/dist/packages/datadog-api-client-v2/models/TeamAttributes.d.ts +56 -0
  457. package/dist/packages/datadog-api-client-v2/models/TeamAttributes.js +65 -0
  458. package/dist/packages/datadog-api-client-v2/models/TeamAttributes.js.map +1 -0
  459. package/dist/packages/datadog-api-client-v2/models/TeamCreate.d.ts +39 -0
  460. package/dist/packages/datadog-api-client-v2/models/TeamCreate.js +36 -0
  461. package/dist/packages/datadog-api-client-v2/models/TeamCreate.js.map +1 -0
  462. package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.d.ts +40 -0
  463. package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.js +46 -0
  464. package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.js.map +1 -0
  465. package/dist/packages/datadog-api-client-v2/models/TeamCreateRelationships.d.ts +29 -0
  466. package/dist/packages/datadog-api-client-v2/models/TeamCreateRelationships.js +26 -0
  467. package/dist/packages/datadog-api-client-v2/models/TeamCreateRelationships.js.map +1 -0
  468. package/dist/packages/datadog-api-client-v2/models/TeamCreateRequest.d.ts +29 -0
  469. package/dist/packages/datadog-api-client-v2/models/TeamCreateRequest.js +27 -0
  470. package/dist/packages/datadog-api-client-v2/models/TeamCreateRequest.js.map +1 -0
  471. package/dist/packages/datadog-api-client-v2/models/TeamData.d.ts +38 -0
  472. package/dist/packages/datadog-api-client-v2/models/TeamData.js +37 -0
  473. package/dist/packages/datadog-api-client-v2/models/TeamData.js.map +1 -0
  474. package/dist/packages/datadog-api-client-v2/models/TeamIncluded.d.ts +13 -0
  475. package/dist/packages/datadog-api-client-v2/models/TeamIncluded.js +3 -0
  476. package/dist/packages/datadog-api-client-v2/models/TeamIncluded.js.map +1 -0
  477. package/dist/packages/datadog-api-client-v2/models/TeamLink.d.ts +38 -0
  478. package/dist/packages/datadog-api-client-v2/models/TeamLink.js +37 -0
  479. package/dist/packages/datadog-api-client-v2/models/TeamLink.js.map +1 -0
  480. package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.d.ts +40 -0
  481. package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.js +46 -0
  482. package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.js.map +1 -0
  483. package/dist/packages/datadog-api-client-v2/models/TeamLinkCreate.d.ts +34 -0
  484. package/dist/packages/datadog-api-client-v2/models/TeamLinkCreate.js +32 -0
  485. package/dist/packages/datadog-api-client-v2/models/TeamLinkCreate.js.map +1 -0
  486. package/dist/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.d.ts +29 -0
  487. package/dist/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.js +27 -0
  488. package/dist/packages/datadog-api-client-v2/models/TeamLinkCreateRequest.js.map +1 -0
  489. package/dist/packages/datadog-api-client-v2/models/TeamLinkResponse.d.ts +29 -0
  490. package/dist/packages/datadog-api-client-v2/models/TeamLinkResponse.js +26 -0
  491. package/dist/packages/datadog-api-client-v2/models/TeamLinkResponse.js.map +1 -0
  492. package/dist/packages/datadog-api-client-v2/models/TeamLinkType.d.ts +11 -0
  493. package/dist/packages/datadog-api-client-v2/models/TeamLinkType.js +10 -0
  494. package/dist/packages/datadog-api-client-v2/models/TeamLinkType.js.map +1 -0
  495. package/dist/packages/datadog-api-client-v2/models/TeamLinksResponse.d.ts +29 -0
  496. package/dist/packages/datadog-api-client-v2/models/TeamLinksResponse.js +26 -0
  497. package/dist/packages/datadog-api-client-v2/models/TeamLinksResponse.js.map +1 -0
  498. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSetting.d.ts +38 -0
  499. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSetting.js +36 -0
  500. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSetting.js.map +1 -0
  501. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.d.ts +46 -0
  502. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.js +42 -0
  503. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingAttributes.js.map +1 -0
  504. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.d.ts +29 -0
  505. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.js +26 -0
  506. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingResponse.js.map +1 -0
  507. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.d.ts +12 -0
  508. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.js +11 -0
  509. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingSerializerAction.js.map +1 -0
  510. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingType.d.ts +11 -0
  511. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingType.js +10 -0
  512. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingType.js.map +1 -0
  513. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.d.ts +34 -0
  514. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.js +31 -0
  515. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdate.js.map +1 -0
  516. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.d.ts +29 -0
  517. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.js +26 -0
  518. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateAttributes.js.map +1 -0
  519. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.d.ts +29 -0
  520. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.js +27 -0
  521. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingUpdateRequest.js.map +1 -0
  522. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.d.ts +15 -0
  523. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.js +14 -0
  524. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingValue.js.map +1 -0
  525. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.d.ts +29 -0
  526. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.js +26 -0
  527. package/dist/packages/datadog-api-client-v2/models/TeamPermissionSettingsResponse.js.map +1 -0
  528. package/dist/packages/datadog-api-client-v2/models/TeamRelationships.d.ts +34 -0
  529. package/dist/packages/datadog-api-client-v2/models/TeamRelationships.js +30 -0
  530. package/dist/packages/datadog-api-client-v2/models/TeamRelationships.js.map +1 -0
  531. package/dist/packages/datadog-api-client-v2/models/TeamResponse.d.ts +29 -0
  532. package/dist/packages/datadog-api-client-v2/models/TeamResponse.js +26 -0
  533. package/dist/packages/datadog-api-client-v2/models/TeamResponse.js.map +1 -0
  534. package/dist/packages/datadog-api-client-v2/models/TeamType.d.ts +11 -0
  535. package/dist/packages/datadog-api-client-v2/models/TeamType.js +10 -0
  536. package/dist/packages/datadog-api-client-v2/models/TeamType.js.map +1 -0
  537. package/dist/packages/datadog-api-client-v2/models/TeamUpdate.d.ts +39 -0
  538. package/dist/packages/datadog-api-client-v2/models/TeamUpdate.js +36 -0
  539. package/dist/packages/datadog-api-client-v2/models/TeamUpdate.js.map +1 -0
  540. package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.d.ts +44 -0
  541. package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.js +51 -0
  542. package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.js.map +1 -0
  543. package/dist/packages/datadog-api-client-v2/models/TeamUpdateRelationships.d.ts +29 -0
  544. package/dist/packages/datadog-api-client-v2/models/TeamUpdateRelationships.js +26 -0
  545. package/dist/packages/datadog-api-client-v2/models/TeamUpdateRelationships.js.map +1 -0
  546. package/dist/packages/datadog-api-client-v2/models/TeamUpdateRequest.d.ts +29 -0
  547. package/dist/packages/datadog-api-client-v2/models/TeamUpdateRequest.js +27 -0
  548. package/dist/packages/datadog-api-client-v2/models/TeamUpdateRequest.js.map +1 -0
  549. package/dist/packages/datadog-api-client-v2/models/TeamsResponse.d.ts +34 -0
  550. package/dist/packages/datadog-api-client-v2/models/TeamsResponse.js +30 -0
  551. package/dist/packages/datadog-api-client-v2/models/TeamsResponse.js.map +1 -0
  552. package/dist/packages/datadog-api-client-v2/models/UserTeam.d.ts +43 -0
  553. package/dist/packages/datadog-api-client-v2/models/UserTeam.js +40 -0
  554. package/dist/packages/datadog-api-client-v2/models/UserTeam.js.map +1 -0
  555. package/dist/packages/datadog-api-client-v2/models/UserTeamAttributes.d.ts +29 -0
  556. package/dist/packages/datadog-api-client-v2/models/UserTeamAttributes.js +26 -0
  557. package/dist/packages/datadog-api-client-v2/models/UserTeamAttributes.js.map +1 -0
  558. package/dist/packages/datadog-api-client-v2/models/UserTeamCreate.d.ts +39 -0
  559. package/dist/packages/datadog-api-client-v2/models/UserTeamCreate.js +35 -0
  560. package/dist/packages/datadog-api-client-v2/models/UserTeamCreate.js.map +1 -0
  561. package/dist/packages/datadog-api-client-v2/models/UserTeamPermission.d.ts +38 -0
  562. package/dist/packages/datadog-api-client-v2/models/UserTeamPermission.js +36 -0
  563. package/dist/packages/datadog-api-client-v2/models/UserTeamPermission.js.map +1 -0
  564. package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.d.ts +28 -0
  565. package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.js +31 -0
  566. package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.js.map +1 -0
  567. package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionType.d.ts +11 -0
  568. package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionType.js +10 -0
  569. package/dist/packages/datadog-api-client-v2/models/UserTeamPermissionType.js.map +1 -0
  570. package/dist/packages/datadog-api-client-v2/models/UserTeamRelationships.d.ts +29 -0
  571. package/dist/packages/datadog-api-client-v2/models/UserTeamRelationships.js +26 -0
  572. package/dist/packages/datadog-api-client-v2/models/UserTeamRelationships.js.map +1 -0
  573. package/dist/packages/datadog-api-client-v2/models/UserTeamRequest.d.ts +29 -0
  574. package/dist/packages/datadog-api-client-v2/models/UserTeamRequest.js +27 -0
  575. package/dist/packages/datadog-api-client-v2/models/UserTeamRequest.js.map +1 -0
  576. package/dist/packages/datadog-api-client-v2/models/UserTeamResponse.d.ts +29 -0
  577. package/dist/packages/datadog-api-client-v2/models/UserTeamResponse.js +26 -0
  578. package/dist/packages/datadog-api-client-v2/models/UserTeamResponse.js.map +1 -0
  579. package/dist/packages/datadog-api-client-v2/models/UserTeamRole.d.ts +11 -0
  580. package/dist/packages/datadog-api-client-v2/models/UserTeamRole.js +10 -0
  581. package/dist/packages/datadog-api-client-v2/models/UserTeamRole.js.map +1 -0
  582. package/dist/packages/datadog-api-client-v2/models/UserTeamType.d.ts +11 -0
  583. package/dist/packages/datadog-api-client-v2/models/UserTeamType.js +10 -0
  584. package/dist/packages/datadog-api-client-v2/models/UserTeamType.js.map +1 -0
  585. package/dist/packages/datadog-api-client-v2/models/UserTeamUpdate.d.ts +34 -0
  586. package/dist/packages/datadog-api-client-v2/models/UserTeamUpdate.js +31 -0
  587. package/dist/packages/datadog-api-client-v2/models/UserTeamUpdate.js.map +1 -0
  588. package/dist/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.d.ts +29 -0
  589. package/dist/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.js +27 -0
  590. package/dist/packages/datadog-api-client-v2/models/UserTeamUpdateRequest.js.map +1 -0
  591. package/dist/packages/datadog-api-client-v2/models/UserTeamUserType.d.ts +11 -0
  592. package/dist/packages/datadog-api-client-v2/models/UserTeamUserType.js +10 -0
  593. package/dist/packages/datadog-api-client-v2/models/UserTeamUserType.js.map +1 -0
  594. package/dist/packages/datadog-api-client-v2/models/UserTeamsResponse.d.ts +29 -0
  595. package/dist/packages/datadog-api-client-v2/models/UserTeamsResponse.js +26 -0
  596. package/dist/packages/datadog-api-client-v2/models/UserTeamsResponse.js.map +1 -0
  597. package/dist/version.d.ts +1 -1
  598. package/dist/version.js +1 -1
  599. package/package.json +20 -28
@@ -62,6 +62,80 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
62
62
  return requestContext;
63
63
  });
64
64
  }
65
+ createIncidentIntegration(incidentId, body, _options) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const _config = _options || this.configuration;
68
+ logger_1.logger.warn("Using unstable operation 'createIncidentIntegration'");
69
+ if (!_config.unstableOperations["v2.createIncidentIntegration"]) {
70
+ throw new Error("Unstable operation 'createIncidentIntegration' is disabled");
71
+ }
72
+ // verify required parameter 'incidentId' is not null or undefined
73
+ if (incidentId === null || incidentId === undefined) {
74
+ throw new baseapi_1.RequiredError("incidentId", "createIncidentIntegration");
75
+ }
76
+ // verify required parameter 'body' is not null or undefined
77
+ if (body === null || body === undefined) {
78
+ throw new baseapi_1.RequiredError("body", "createIncidentIntegration");
79
+ }
80
+ // Path Params
81
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations".replace("{incident_id}", encodeURIComponent(String(incidentId)));
82
+ // Make Request Context
83
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.createIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
84
+ requestContext.setHeaderParam("Accept", "application/json");
85
+ requestContext.setHttpConfig(_config.httpConfig);
86
+ // Body Params
87
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
88
+ "application/json",
89
+ ]);
90
+ requestContext.setHeaderParam("Content-Type", contentType);
91
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentIntegrationMetadataCreateRequest", ""), contentType);
92
+ requestContext.setBody(serializedBody);
93
+ // Apply auth methods
94
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
95
+ "AuthZ",
96
+ "apiKeyAuth",
97
+ "appKeyAuth",
98
+ ]);
99
+ return requestContext;
100
+ });
101
+ }
102
+ createIncidentTodo(incidentId, body, _options) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const _config = _options || this.configuration;
105
+ logger_1.logger.warn("Using unstable operation 'createIncidentTodo'");
106
+ if (!_config.unstableOperations["v2.createIncidentTodo"]) {
107
+ throw new Error("Unstable operation 'createIncidentTodo' is disabled");
108
+ }
109
+ // verify required parameter 'incidentId' is not null or undefined
110
+ if (incidentId === null || incidentId === undefined) {
111
+ throw new baseapi_1.RequiredError("incidentId", "createIncidentTodo");
112
+ }
113
+ // verify required parameter 'body' is not null or undefined
114
+ if (body === null || body === undefined) {
115
+ throw new baseapi_1.RequiredError("body", "createIncidentTodo");
116
+ }
117
+ // Path Params
118
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos".replace("{incident_id}", encodeURIComponent(String(incidentId)));
119
+ // Make Request Context
120
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.createIncidentTodo").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
121
+ requestContext.setHeaderParam("Accept", "application/json");
122
+ requestContext.setHttpConfig(_config.httpConfig);
123
+ // Body Params
124
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
125
+ "application/json",
126
+ ]);
127
+ requestContext.setHeaderParam("Content-Type", contentType);
128
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTodoCreateRequest", ""), contentType);
129
+ requestContext.setBody(serializedBody);
130
+ // Apply auth methods
131
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
132
+ "AuthZ",
133
+ "apiKeyAuth",
134
+ "appKeyAuth",
135
+ ]);
136
+ return requestContext;
137
+ });
138
+ }
65
139
  deleteIncident(incidentId, _options) {
66
140
  return __awaiter(this, void 0, void 0, function* () {
67
141
  const _config = _options || this.configuration;
@@ -88,6 +162,70 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
88
162
  return requestContext;
89
163
  });
90
164
  }
165
+ deleteIncidentIntegration(incidentId, integrationMetadataId, _options) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ const _config = _options || this.configuration;
168
+ logger_1.logger.warn("Using unstable operation 'deleteIncidentIntegration'");
169
+ if (!_config.unstableOperations["v2.deleteIncidentIntegration"]) {
170
+ throw new Error("Unstable operation 'deleteIncidentIntegration' is disabled");
171
+ }
172
+ // verify required parameter 'incidentId' is not null or undefined
173
+ if (incidentId === null || incidentId === undefined) {
174
+ throw new baseapi_1.RequiredError("incidentId", "deleteIncidentIntegration");
175
+ }
176
+ // verify required parameter 'integrationMetadataId' is not null or undefined
177
+ if (integrationMetadataId === null || integrationMetadataId === undefined) {
178
+ throw new baseapi_1.RequiredError("integrationMetadataId", "deleteIncidentIntegration");
179
+ }
180
+ // Path Params
181
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}"
182
+ .replace("{incident_id}", encodeURIComponent(String(incidentId)))
183
+ .replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId)));
184
+ // Make Request Context
185
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.deleteIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
186
+ requestContext.setHeaderParam("Accept", "*/*");
187
+ requestContext.setHttpConfig(_config.httpConfig);
188
+ // Apply auth methods
189
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
190
+ "AuthZ",
191
+ "apiKeyAuth",
192
+ "appKeyAuth",
193
+ ]);
194
+ return requestContext;
195
+ });
196
+ }
197
+ deleteIncidentTodo(incidentId, todoId, _options) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ const _config = _options || this.configuration;
200
+ logger_1.logger.warn("Using unstable operation 'deleteIncidentTodo'");
201
+ if (!_config.unstableOperations["v2.deleteIncidentTodo"]) {
202
+ throw new Error("Unstable operation 'deleteIncidentTodo' is disabled");
203
+ }
204
+ // verify required parameter 'incidentId' is not null or undefined
205
+ if (incidentId === null || incidentId === undefined) {
206
+ throw new baseapi_1.RequiredError("incidentId", "deleteIncidentTodo");
207
+ }
208
+ // verify required parameter 'todoId' is not null or undefined
209
+ if (todoId === null || todoId === undefined) {
210
+ throw new baseapi_1.RequiredError("todoId", "deleteIncidentTodo");
211
+ }
212
+ // Path Params
213
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}"
214
+ .replace("{incident_id}", encodeURIComponent(String(incidentId)))
215
+ .replace("{todo_id}", encodeURIComponent(String(todoId)));
216
+ // Make Request Context
217
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.deleteIncidentTodo").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
218
+ requestContext.setHeaderParam("Accept", "*/*");
219
+ requestContext.setHttpConfig(_config.httpConfig);
220
+ // Apply auth methods
221
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
222
+ "AuthZ",
223
+ "apiKeyAuth",
224
+ "appKeyAuth",
225
+ ]);
226
+ return requestContext;
227
+ });
228
+ }
91
229
  getIncident(incidentId, include, _options) {
92
230
  return __awaiter(this, void 0, void 0, function* () {
93
231
  const _config = _options || this.configuration;
@@ -118,6 +256,70 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
118
256
  return requestContext;
119
257
  });
120
258
  }
259
+ getIncidentIntegration(incidentId, integrationMetadataId, _options) {
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ const _config = _options || this.configuration;
262
+ logger_1.logger.warn("Using unstable operation 'getIncidentIntegration'");
263
+ if (!_config.unstableOperations["v2.getIncidentIntegration"]) {
264
+ throw new Error("Unstable operation 'getIncidentIntegration' is disabled");
265
+ }
266
+ // verify required parameter 'incidentId' is not null or undefined
267
+ if (incidentId === null || incidentId === undefined) {
268
+ throw new baseapi_1.RequiredError("incidentId", "getIncidentIntegration");
269
+ }
270
+ // verify required parameter 'integrationMetadataId' is not null or undefined
271
+ if (integrationMetadataId === null || integrationMetadataId === undefined) {
272
+ throw new baseapi_1.RequiredError("integrationMetadataId", "getIncidentIntegration");
273
+ }
274
+ // Path Params
275
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}"
276
+ .replace("{incident_id}", encodeURIComponent(String(incidentId)))
277
+ .replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId)));
278
+ // Make Request Context
279
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.getIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
280
+ requestContext.setHeaderParam("Accept", "application/json");
281
+ requestContext.setHttpConfig(_config.httpConfig);
282
+ // Apply auth methods
283
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
284
+ "AuthZ",
285
+ "apiKeyAuth",
286
+ "appKeyAuth",
287
+ ]);
288
+ return requestContext;
289
+ });
290
+ }
291
+ getIncidentTodo(incidentId, todoId, _options) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ const _config = _options || this.configuration;
294
+ logger_1.logger.warn("Using unstable operation 'getIncidentTodo'");
295
+ if (!_config.unstableOperations["v2.getIncidentTodo"]) {
296
+ throw new Error("Unstable operation 'getIncidentTodo' is disabled");
297
+ }
298
+ // verify required parameter 'incidentId' is not null or undefined
299
+ if (incidentId === null || incidentId === undefined) {
300
+ throw new baseapi_1.RequiredError("incidentId", "getIncidentTodo");
301
+ }
302
+ // verify required parameter 'todoId' is not null or undefined
303
+ if (todoId === null || todoId === undefined) {
304
+ throw new baseapi_1.RequiredError("todoId", "getIncidentTodo");
305
+ }
306
+ // Path Params
307
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}"
308
+ .replace("{incident_id}", encodeURIComponent(String(incidentId)))
309
+ .replace("{todo_id}", encodeURIComponent(String(todoId)));
310
+ // Make Request Context
311
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.getIncidentTodo").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
312
+ requestContext.setHeaderParam("Accept", "application/json");
313
+ requestContext.setHttpConfig(_config.httpConfig);
314
+ // Apply auth methods
315
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
316
+ "AuthZ",
317
+ "apiKeyAuth",
318
+ "appKeyAuth",
319
+ ]);
320
+ return requestContext;
321
+ });
322
+ }
121
323
  listIncidentAttachments(incidentId, include, filterAttachmentType, _options) {
122
324
  return __awaiter(this, void 0, void 0, function* () {
123
325
  const _config = _options || this.configuration;
@@ -151,6 +353,32 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
151
353
  return requestContext;
152
354
  });
153
355
  }
356
+ listIncidentIntegrations(incidentId, _options) {
357
+ return __awaiter(this, void 0, void 0, function* () {
358
+ const _config = _options || this.configuration;
359
+ logger_1.logger.warn("Using unstable operation 'listIncidentIntegrations'");
360
+ if (!_config.unstableOperations["v2.listIncidentIntegrations"]) {
361
+ throw new Error("Unstable operation 'listIncidentIntegrations' is disabled");
362
+ }
363
+ // verify required parameter 'incidentId' is not null or undefined
364
+ if (incidentId === null || incidentId === undefined) {
365
+ throw new baseapi_1.RequiredError("incidentId", "listIncidentIntegrations");
366
+ }
367
+ // Path Params
368
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations".replace("{incident_id}", encodeURIComponent(String(incidentId)));
369
+ // Make Request Context
370
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.listIncidentIntegrations").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
371
+ requestContext.setHeaderParam("Accept", "application/json");
372
+ requestContext.setHttpConfig(_config.httpConfig);
373
+ // Apply auth methods
374
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
375
+ "AuthZ",
376
+ "apiKeyAuth",
377
+ "appKeyAuth",
378
+ ]);
379
+ return requestContext;
380
+ });
381
+ }
154
382
  listIncidents(include, pageSize, pageOffset, _options) {
155
383
  return __awaiter(this, void 0, void 0, function* () {
156
384
  const _config = _options || this.configuration;
@@ -183,7 +411,33 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
183
411
  return requestContext;
184
412
  });
185
413
  }
186
- searchIncidents(query, include, sort, _options) {
414
+ listIncidentTodos(incidentId, _options) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ const _config = _options || this.configuration;
417
+ logger_1.logger.warn("Using unstable operation 'listIncidentTodos'");
418
+ if (!_config.unstableOperations["v2.listIncidentTodos"]) {
419
+ throw new Error("Unstable operation 'listIncidentTodos' is disabled");
420
+ }
421
+ // verify required parameter 'incidentId' is not null or undefined
422
+ if (incidentId === null || incidentId === undefined) {
423
+ throw new baseapi_1.RequiredError("incidentId", "listIncidentTodos");
424
+ }
425
+ // Path Params
426
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos".replace("{incident_id}", encodeURIComponent(String(incidentId)));
427
+ // Make Request Context
428
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.listIncidentTodos").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
429
+ requestContext.setHeaderParam("Accept", "application/json");
430
+ requestContext.setHttpConfig(_config.httpConfig);
431
+ // Apply auth methods
432
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
433
+ "AuthZ",
434
+ "apiKeyAuth",
435
+ "appKeyAuth",
436
+ ]);
437
+ return requestContext;
438
+ });
439
+ }
440
+ searchIncidents(query, include, sort, pageSize, pageOffset, _options) {
187
441
  return __awaiter(this, void 0, void 0, function* () {
188
442
  const _config = _options || this.configuration;
189
443
  logger_1.logger.warn("Using unstable operation 'searchIncidents'");
@@ -210,6 +464,12 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
210
464
  if (sort !== undefined) {
211
465
  requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "IncidentSearchSortOrder", ""));
212
466
  }
467
+ if (pageSize !== undefined) {
468
+ requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"));
469
+ }
470
+ if (pageOffset !== undefined) {
471
+ requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"));
472
+ }
213
473
  // Apply auth methods
214
474
  (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
215
475
  "AuthZ",
@@ -285,36 +545,431 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
285
545
  if (include !== undefined) {
286
546
  requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array<IncidentAttachmentRelatedObject>", ""));
287
547
  }
288
- // Body Params
289
- const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
290
- "application/json",
291
- ]);
292
- requestContext.setHeaderParam("Content-Type", contentType);
293
- const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentAttachmentUpdateRequest", ""), contentType);
294
- requestContext.setBody(serializedBody);
295
- // Apply auth methods
296
- (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
297
- "apiKeyAuth",
298
- "appKeyAuth",
299
- ]);
300
- return requestContext;
548
+ // Body Params
549
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
550
+ "application/json",
551
+ ]);
552
+ requestContext.setHeaderParam("Content-Type", contentType);
553
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentAttachmentUpdateRequest", ""), contentType);
554
+ requestContext.setBody(serializedBody);
555
+ // Apply auth methods
556
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
557
+ "apiKeyAuth",
558
+ "appKeyAuth",
559
+ ]);
560
+ return requestContext;
561
+ });
562
+ }
563
+ updateIncidentIntegration(incidentId, integrationMetadataId, body, _options) {
564
+ return __awaiter(this, void 0, void 0, function* () {
565
+ const _config = _options || this.configuration;
566
+ logger_1.logger.warn("Using unstable operation 'updateIncidentIntegration'");
567
+ if (!_config.unstableOperations["v2.updateIncidentIntegration"]) {
568
+ throw new Error("Unstable operation 'updateIncidentIntegration' is disabled");
569
+ }
570
+ // verify required parameter 'incidentId' is not null or undefined
571
+ if (incidentId === null || incidentId === undefined) {
572
+ throw new baseapi_1.RequiredError("incidentId", "updateIncidentIntegration");
573
+ }
574
+ // verify required parameter 'integrationMetadataId' is not null or undefined
575
+ if (integrationMetadataId === null || integrationMetadataId === undefined) {
576
+ throw new baseapi_1.RequiredError("integrationMetadataId", "updateIncidentIntegration");
577
+ }
578
+ // verify required parameter 'body' is not null or undefined
579
+ if (body === null || body === undefined) {
580
+ throw new baseapi_1.RequiredError("body", "updateIncidentIntegration");
581
+ }
582
+ // Path Params
583
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}"
584
+ .replace("{incident_id}", encodeURIComponent(String(incidentId)))
585
+ .replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId)));
586
+ // Make Request Context
587
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.updateIncidentIntegration").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
588
+ requestContext.setHeaderParam("Accept", "application/json");
589
+ requestContext.setHttpConfig(_config.httpConfig);
590
+ // Body Params
591
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
592
+ "application/json",
593
+ ]);
594
+ requestContext.setHeaderParam("Content-Type", contentType);
595
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentIntegrationMetadataPatchRequest", ""), contentType);
596
+ requestContext.setBody(serializedBody);
597
+ // Apply auth methods
598
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
599
+ "AuthZ",
600
+ "apiKeyAuth",
601
+ "appKeyAuth",
602
+ ]);
603
+ return requestContext;
604
+ });
605
+ }
606
+ updateIncidentTodo(incidentId, todoId, body, _options) {
607
+ return __awaiter(this, void 0, void 0, function* () {
608
+ const _config = _options || this.configuration;
609
+ logger_1.logger.warn("Using unstable operation 'updateIncidentTodo'");
610
+ if (!_config.unstableOperations["v2.updateIncidentTodo"]) {
611
+ throw new Error("Unstable operation 'updateIncidentTodo' is disabled");
612
+ }
613
+ // verify required parameter 'incidentId' is not null or undefined
614
+ if (incidentId === null || incidentId === undefined) {
615
+ throw new baseapi_1.RequiredError("incidentId", "updateIncidentTodo");
616
+ }
617
+ // verify required parameter 'todoId' is not null or undefined
618
+ if (todoId === null || todoId === undefined) {
619
+ throw new baseapi_1.RequiredError("todoId", "updateIncidentTodo");
620
+ }
621
+ // verify required parameter 'body' is not null or undefined
622
+ if (body === null || body === undefined) {
623
+ throw new baseapi_1.RequiredError("body", "updateIncidentTodo");
624
+ }
625
+ // Path Params
626
+ const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}"
627
+ .replace("{incident_id}", encodeURIComponent(String(incidentId)))
628
+ .replace("{todo_id}", encodeURIComponent(String(todoId)));
629
+ // Make Request Context
630
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.IncidentsApi.updateIncidentTodo").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
631
+ requestContext.setHeaderParam("Accept", "application/json");
632
+ requestContext.setHttpConfig(_config.httpConfig);
633
+ // Body Params
634
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
635
+ "application/json",
636
+ ]);
637
+ requestContext.setHeaderParam("Content-Type", contentType);
638
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTodoPatchRequest", ""), contentType);
639
+ requestContext.setBody(serializedBody);
640
+ // Apply auth methods
641
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
642
+ "AuthZ",
643
+ "apiKeyAuth",
644
+ "appKeyAuth",
645
+ ]);
646
+ return requestContext;
647
+ });
648
+ }
649
+ }
650
+ exports.IncidentsApiRequestFactory = IncidentsApiRequestFactory;
651
+ class IncidentsApiResponseProcessor {
652
+ /**
653
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
654
+ * to the expected objects
655
+ *
656
+ * @params response Response returned by the server for a request to createIncident
657
+ * @throws ApiException if the response code was not in [200, 299]
658
+ */
659
+ createIncident(response) {
660
+ return __awaiter(this, void 0, void 0, function* () {
661
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
662
+ if (response.httpStatusCode == 201) {
663
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse");
664
+ return body;
665
+ }
666
+ if (response.httpStatusCode == 400 ||
667
+ response.httpStatusCode == 401 ||
668
+ response.httpStatusCode == 403 ||
669
+ response.httpStatusCode == 404 ||
670
+ response.httpStatusCode == 429) {
671
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
672
+ let body;
673
+ try {
674
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
675
+ }
676
+ catch (error) {
677
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
678
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
679
+ }
680
+ throw new exception_1.ApiException(response.httpStatusCode, body);
681
+ }
682
+ // Work around for missing responses in specification, e.g. for petstore.yaml
683
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
684
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse", "");
685
+ return body;
686
+ }
687
+ const body = (yield response.body.text()) || "";
688
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
689
+ });
690
+ }
691
+ /**
692
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
693
+ * to the expected objects
694
+ *
695
+ * @params response Response returned by the server for a request to createIncidentIntegration
696
+ * @throws ApiException if the response code was not in [200, 299]
697
+ */
698
+ createIncidentIntegration(response) {
699
+ return __awaiter(this, void 0, void 0, function* () {
700
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
701
+ if (response.httpStatusCode == 201) {
702
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse");
703
+ return body;
704
+ }
705
+ if (response.httpStatusCode == 400 ||
706
+ response.httpStatusCode == 401 ||
707
+ response.httpStatusCode == 403 ||
708
+ response.httpStatusCode == 404 ||
709
+ response.httpStatusCode == 429) {
710
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
711
+ let body;
712
+ try {
713
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
714
+ }
715
+ catch (error) {
716
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
717
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
718
+ }
719
+ throw new exception_1.ApiException(response.httpStatusCode, body);
720
+ }
721
+ // Work around for missing responses in specification, e.g. for petstore.yaml
722
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
723
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", "");
724
+ return body;
725
+ }
726
+ const body = (yield response.body.text()) || "";
727
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
728
+ });
729
+ }
730
+ /**
731
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
732
+ * to the expected objects
733
+ *
734
+ * @params response Response returned by the server for a request to createIncidentTodo
735
+ * @throws ApiException if the response code was not in [200, 299]
736
+ */
737
+ createIncidentTodo(response) {
738
+ return __awaiter(this, void 0, void 0, function* () {
739
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
740
+ if (response.httpStatusCode == 201) {
741
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse");
742
+ return body;
743
+ }
744
+ if (response.httpStatusCode == 400 ||
745
+ response.httpStatusCode == 401 ||
746
+ response.httpStatusCode == 403 ||
747
+ response.httpStatusCode == 404 ||
748
+ response.httpStatusCode == 429) {
749
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
750
+ let body;
751
+ try {
752
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
753
+ }
754
+ catch (error) {
755
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
756
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
757
+ }
758
+ throw new exception_1.ApiException(response.httpStatusCode, body);
759
+ }
760
+ // Work around for missing responses in specification, e.g. for petstore.yaml
761
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
762
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse", "");
763
+ return body;
764
+ }
765
+ const body = (yield response.body.text()) || "";
766
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
767
+ });
768
+ }
769
+ /**
770
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
771
+ * to the expected objects
772
+ *
773
+ * @params response Response returned by the server for a request to deleteIncident
774
+ * @throws ApiException if the response code was not in [200, 299]
775
+ */
776
+ deleteIncident(response) {
777
+ return __awaiter(this, void 0, void 0, function* () {
778
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
779
+ if (response.httpStatusCode == 204) {
780
+ return;
781
+ }
782
+ if (response.httpStatusCode == 400 ||
783
+ response.httpStatusCode == 401 ||
784
+ response.httpStatusCode == 403 ||
785
+ response.httpStatusCode == 404 ||
786
+ response.httpStatusCode == 429) {
787
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
788
+ let body;
789
+ try {
790
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
791
+ }
792
+ catch (error) {
793
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
794
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
795
+ }
796
+ throw new exception_1.ApiException(response.httpStatusCode, body);
797
+ }
798
+ // Work around for missing responses in specification, e.g. for petstore.yaml
799
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
800
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
801
+ return body;
802
+ }
803
+ const body = (yield response.body.text()) || "";
804
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
805
+ });
806
+ }
807
+ /**
808
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
809
+ * to the expected objects
810
+ *
811
+ * @params response Response returned by the server for a request to deleteIncidentIntegration
812
+ * @throws ApiException if the response code was not in [200, 299]
813
+ */
814
+ deleteIncidentIntegration(response) {
815
+ return __awaiter(this, void 0, void 0, function* () {
816
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
817
+ if (response.httpStatusCode == 204) {
818
+ return;
819
+ }
820
+ if (response.httpStatusCode == 400 ||
821
+ response.httpStatusCode == 401 ||
822
+ response.httpStatusCode == 403 ||
823
+ response.httpStatusCode == 404 ||
824
+ response.httpStatusCode == 429) {
825
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
826
+ let body;
827
+ try {
828
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
829
+ }
830
+ catch (error) {
831
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
832
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
833
+ }
834
+ throw new exception_1.ApiException(response.httpStatusCode, body);
835
+ }
836
+ // Work around for missing responses in specification, e.g. for petstore.yaml
837
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
838
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
839
+ return body;
840
+ }
841
+ const body = (yield response.body.text()) || "";
842
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
843
+ });
844
+ }
845
+ /**
846
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
847
+ * to the expected objects
848
+ *
849
+ * @params response Response returned by the server for a request to deleteIncidentTodo
850
+ * @throws ApiException if the response code was not in [200, 299]
851
+ */
852
+ deleteIncidentTodo(response) {
853
+ return __awaiter(this, void 0, void 0, function* () {
854
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
855
+ if (response.httpStatusCode == 204) {
856
+ return;
857
+ }
858
+ if (response.httpStatusCode == 400 ||
859
+ response.httpStatusCode == 401 ||
860
+ response.httpStatusCode == 403 ||
861
+ response.httpStatusCode == 404 ||
862
+ response.httpStatusCode == 429) {
863
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
864
+ let body;
865
+ try {
866
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
867
+ }
868
+ catch (error) {
869
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
870
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
871
+ }
872
+ throw new exception_1.ApiException(response.httpStatusCode, body);
873
+ }
874
+ // Work around for missing responses in specification, e.g. for petstore.yaml
875
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
876
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
877
+ return body;
878
+ }
879
+ const body = (yield response.body.text()) || "";
880
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
881
+ });
882
+ }
883
+ /**
884
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
885
+ * to the expected objects
886
+ *
887
+ * @params response Response returned by the server for a request to getIncident
888
+ * @throws ApiException if the response code was not in [200, 299]
889
+ */
890
+ getIncident(response) {
891
+ return __awaiter(this, void 0, void 0, function* () {
892
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
893
+ if (response.httpStatusCode == 200) {
894
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse");
895
+ return body;
896
+ }
897
+ if (response.httpStatusCode == 400 ||
898
+ response.httpStatusCode == 401 ||
899
+ response.httpStatusCode == 403 ||
900
+ response.httpStatusCode == 404 ||
901
+ response.httpStatusCode == 429) {
902
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
903
+ let body;
904
+ try {
905
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
906
+ }
907
+ catch (error) {
908
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
909
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
910
+ }
911
+ throw new exception_1.ApiException(response.httpStatusCode, body);
912
+ }
913
+ // Work around for missing responses in specification, e.g. for petstore.yaml
914
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
915
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse", "");
916
+ return body;
917
+ }
918
+ const body = (yield response.body.text()) || "";
919
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
920
+ });
921
+ }
922
+ /**
923
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
924
+ * to the expected objects
925
+ *
926
+ * @params response Response returned by the server for a request to getIncidentIntegration
927
+ * @throws ApiException if the response code was not in [200, 299]
928
+ */
929
+ getIncidentIntegration(response) {
930
+ return __awaiter(this, void 0, void 0, function* () {
931
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
932
+ if (response.httpStatusCode == 200) {
933
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse");
934
+ return body;
935
+ }
936
+ if (response.httpStatusCode == 400 ||
937
+ response.httpStatusCode == 401 ||
938
+ response.httpStatusCode == 403 ||
939
+ response.httpStatusCode == 404 ||
940
+ response.httpStatusCode == 429) {
941
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
942
+ let body;
943
+ try {
944
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
945
+ }
946
+ catch (error) {
947
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
948
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
949
+ }
950
+ throw new exception_1.ApiException(response.httpStatusCode, body);
951
+ }
952
+ // Work around for missing responses in specification, e.g. for petstore.yaml
953
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
954
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", "");
955
+ return body;
956
+ }
957
+ const body = (yield response.body.text()) || "";
958
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
301
959
  });
302
960
  }
303
- }
304
- exports.IncidentsApiRequestFactory = IncidentsApiRequestFactory;
305
- class IncidentsApiResponseProcessor {
306
961
  /**
307
962
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
308
963
  * to the expected objects
309
964
  *
310
- * @params response Response returned by the server for a request to createIncident
965
+ * @params response Response returned by the server for a request to getIncidentTodo
311
966
  * @throws ApiException if the response code was not in [200, 299]
312
967
  */
313
- createIncident(response) {
968
+ getIncidentTodo(response) {
314
969
  return __awaiter(this, void 0, void 0, function* () {
315
970
  const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
316
- if (response.httpStatusCode == 201) {
317
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse");
971
+ if (response.httpStatusCode == 200) {
972
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse");
318
973
  return body;
319
974
  }
320
975
  if (response.httpStatusCode == 400 ||
@@ -335,7 +990,7 @@ class IncidentsApiResponseProcessor {
335
990
  }
336
991
  // Work around for missing responses in specification, e.g. for petstore.yaml
337
992
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
338
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse", "");
993
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse", "");
339
994
  return body;
340
995
  }
341
996
  const body = (yield response.body.text()) || "";
@@ -346,14 +1001,15 @@ class IncidentsApiResponseProcessor {
346
1001
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
347
1002
  * to the expected objects
348
1003
  *
349
- * @params response Response returned by the server for a request to deleteIncident
1004
+ * @params response Response returned by the server for a request to listIncidentAttachments
350
1005
  * @throws ApiException if the response code was not in [200, 299]
351
1006
  */
352
- deleteIncident(response) {
1007
+ listIncidentAttachments(response) {
353
1008
  return __awaiter(this, void 0, void 0, function* () {
354
1009
  const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
355
- if (response.httpStatusCode == 204) {
356
- return;
1010
+ if (response.httpStatusCode == 200) {
1011
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentsResponse");
1012
+ return body;
357
1013
  }
358
1014
  if (response.httpStatusCode == 400 ||
359
1015
  response.httpStatusCode == 401 ||
@@ -373,7 +1029,7 @@ class IncidentsApiResponseProcessor {
373
1029
  }
374
1030
  // Work around for missing responses in specification, e.g. for petstore.yaml
375
1031
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
376
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
1032
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentsResponse", "");
377
1033
  return body;
378
1034
  }
379
1035
  const body = (yield response.body.text()) || "";
@@ -384,14 +1040,14 @@ class IncidentsApiResponseProcessor {
384
1040
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
385
1041
  * to the expected objects
386
1042
  *
387
- * @params response Response returned by the server for a request to getIncident
1043
+ * @params response Response returned by the server for a request to listIncidentIntegrations
388
1044
  * @throws ApiException if the response code was not in [200, 299]
389
1045
  */
390
- getIncident(response) {
1046
+ listIncidentIntegrations(response) {
391
1047
  return __awaiter(this, void 0, void 0, function* () {
392
1048
  const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
393
1049
  if (response.httpStatusCode == 200) {
394
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse");
1050
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataListResponse");
395
1051
  return body;
396
1052
  }
397
1053
  if (response.httpStatusCode == 400 ||
@@ -412,7 +1068,7 @@ class IncidentsApiResponseProcessor {
412
1068
  }
413
1069
  // Work around for missing responses in specification, e.g. for petstore.yaml
414
1070
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
415
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse", "");
1071
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataListResponse", "");
416
1072
  return body;
417
1073
  }
418
1074
  const body = (yield response.body.text()) || "";
@@ -423,14 +1079,14 @@ class IncidentsApiResponseProcessor {
423
1079
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
424
1080
  * to the expected objects
425
1081
  *
426
- * @params response Response returned by the server for a request to listIncidentAttachments
1082
+ * @params response Response returned by the server for a request to listIncidents
427
1083
  * @throws ApiException if the response code was not in [200, 299]
428
1084
  */
429
- listIncidentAttachments(response) {
1085
+ listIncidents(response) {
430
1086
  return __awaiter(this, void 0, void 0, function* () {
431
1087
  const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
432
1088
  if (response.httpStatusCode == 200) {
433
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentsResponse");
1089
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentsResponse");
434
1090
  return body;
435
1091
  }
436
1092
  if (response.httpStatusCode == 400 ||
@@ -451,7 +1107,7 @@ class IncidentsApiResponseProcessor {
451
1107
  }
452
1108
  // Work around for missing responses in specification, e.g. for petstore.yaml
453
1109
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
454
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentsResponse", "");
1110
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentsResponse", "");
455
1111
  return body;
456
1112
  }
457
1113
  const body = (yield response.body.text()) || "";
@@ -462,14 +1118,14 @@ class IncidentsApiResponseProcessor {
462
1118
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
463
1119
  * to the expected objects
464
1120
  *
465
- * @params response Response returned by the server for a request to listIncidents
1121
+ * @params response Response returned by the server for a request to listIncidentTodos
466
1122
  * @throws ApiException if the response code was not in [200, 299]
467
1123
  */
468
- listIncidents(response) {
1124
+ listIncidentTodos(response) {
469
1125
  return __awaiter(this, void 0, void 0, function* () {
470
1126
  const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
471
1127
  if (response.httpStatusCode == 200) {
472
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentsResponse");
1128
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoListResponse");
473
1129
  return body;
474
1130
  }
475
1131
  if (response.httpStatusCode == 400 ||
@@ -490,7 +1146,7 @@ class IncidentsApiResponseProcessor {
490
1146
  }
491
1147
  // Work around for missing responses in specification, e.g. for petstore.yaml
492
1148
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
493
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentsResponse", "");
1149
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoListResponse", "");
494
1150
  return body;
495
1151
  }
496
1152
  const body = (yield response.body.text()) || "";
@@ -614,6 +1270,84 @@ class IncidentsApiResponseProcessor {
614
1270
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
615
1271
  });
616
1272
  }
1273
+ /**
1274
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1275
+ * to the expected objects
1276
+ *
1277
+ * @params response Response returned by the server for a request to updateIncidentIntegration
1278
+ * @throws ApiException if the response code was not in [200, 299]
1279
+ */
1280
+ updateIncidentIntegration(response) {
1281
+ return __awaiter(this, void 0, void 0, function* () {
1282
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1283
+ if (response.httpStatusCode == 200) {
1284
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse");
1285
+ return body;
1286
+ }
1287
+ if (response.httpStatusCode == 400 ||
1288
+ response.httpStatusCode == 401 ||
1289
+ response.httpStatusCode == 403 ||
1290
+ response.httpStatusCode == 404 ||
1291
+ response.httpStatusCode == 429) {
1292
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1293
+ let body;
1294
+ try {
1295
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1296
+ }
1297
+ catch (error) {
1298
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
1299
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1300
+ }
1301
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1302
+ }
1303
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1304
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1305
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", "");
1306
+ return body;
1307
+ }
1308
+ const body = (yield response.body.text()) || "";
1309
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1310
+ });
1311
+ }
1312
+ /**
1313
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1314
+ * to the expected objects
1315
+ *
1316
+ * @params response Response returned by the server for a request to updateIncidentTodo
1317
+ * @throws ApiException if the response code was not in [200, 299]
1318
+ */
1319
+ updateIncidentTodo(response) {
1320
+ return __awaiter(this, void 0, void 0, function* () {
1321
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1322
+ if (response.httpStatusCode == 200) {
1323
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse");
1324
+ return body;
1325
+ }
1326
+ if (response.httpStatusCode == 400 ||
1327
+ response.httpStatusCode == 401 ||
1328
+ response.httpStatusCode == 403 ||
1329
+ response.httpStatusCode == 404 ||
1330
+ response.httpStatusCode == 429) {
1331
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1332
+ let body;
1333
+ try {
1334
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1335
+ }
1336
+ catch (error) {
1337
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
1338
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1339
+ }
1340
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1341
+ }
1342
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1343
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1344
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse", "");
1345
+ return body;
1346
+ }
1347
+ const body = (yield response.body.text()) || "";
1348
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1349
+ });
1350
+ }
617
1351
  }
618
1352
  exports.IncidentsApiResponseProcessor = IncidentsApiResponseProcessor;
619
1353
  class IncidentsApi {
@@ -638,6 +1372,34 @@ class IncidentsApi {
638
1372
  });
639
1373
  });
640
1374
  }
1375
+ /**
1376
+ * Create an incident integration metadata.
1377
+ * @param param The request object
1378
+ */
1379
+ createIncidentIntegration(param, options) {
1380
+ const requestContextPromise = this.requestFactory.createIncidentIntegration(param.incidentId, param.body, options);
1381
+ return requestContextPromise.then((requestContext) => {
1382
+ return this.configuration.httpApi
1383
+ .send(requestContext)
1384
+ .then((responseContext) => {
1385
+ return this.responseProcessor.createIncidentIntegration(responseContext);
1386
+ });
1387
+ });
1388
+ }
1389
+ /**
1390
+ * Create an incident todo.
1391
+ * @param param The request object
1392
+ */
1393
+ createIncidentTodo(param, options) {
1394
+ const requestContextPromise = this.requestFactory.createIncidentTodo(param.incidentId, param.body, options);
1395
+ return requestContextPromise.then((requestContext) => {
1396
+ return this.configuration.httpApi
1397
+ .send(requestContext)
1398
+ .then((responseContext) => {
1399
+ return this.responseProcessor.createIncidentTodo(responseContext);
1400
+ });
1401
+ });
1402
+ }
641
1403
  /**
642
1404
  * Deletes an existing incident from the users organization.
643
1405
  * @param param The request object
@@ -652,6 +1414,34 @@ class IncidentsApi {
652
1414
  });
653
1415
  });
654
1416
  }
1417
+ /**
1418
+ * Delete an incident integration metadata.
1419
+ * @param param The request object
1420
+ */
1421
+ deleteIncidentIntegration(param, options) {
1422
+ const requestContextPromise = this.requestFactory.deleteIncidentIntegration(param.incidentId, param.integrationMetadataId, options);
1423
+ return requestContextPromise.then((requestContext) => {
1424
+ return this.configuration.httpApi
1425
+ .send(requestContext)
1426
+ .then((responseContext) => {
1427
+ return this.responseProcessor.deleteIncidentIntegration(responseContext);
1428
+ });
1429
+ });
1430
+ }
1431
+ /**
1432
+ * Delete an incident todo.
1433
+ * @param param The request object
1434
+ */
1435
+ deleteIncidentTodo(param, options) {
1436
+ const requestContextPromise = this.requestFactory.deleteIncidentTodo(param.incidentId, param.todoId, options);
1437
+ return requestContextPromise.then((requestContext) => {
1438
+ return this.configuration.httpApi
1439
+ .send(requestContext)
1440
+ .then((responseContext) => {
1441
+ return this.responseProcessor.deleteIncidentTodo(responseContext);
1442
+ });
1443
+ });
1444
+ }
655
1445
  /**
656
1446
  * Get the details of an incident by `incident_id`.
657
1447
  * @param param The request object
@@ -666,6 +1456,34 @@ class IncidentsApi {
666
1456
  });
667
1457
  });
668
1458
  }
1459
+ /**
1460
+ * Get incident integration metadata details.
1461
+ * @param param The request object
1462
+ */
1463
+ getIncidentIntegration(param, options) {
1464
+ const requestContextPromise = this.requestFactory.getIncidentIntegration(param.incidentId, param.integrationMetadataId, options);
1465
+ return requestContextPromise.then((requestContext) => {
1466
+ return this.configuration.httpApi
1467
+ .send(requestContext)
1468
+ .then((responseContext) => {
1469
+ return this.responseProcessor.getIncidentIntegration(responseContext);
1470
+ });
1471
+ });
1472
+ }
1473
+ /**
1474
+ * Get incident todo details.
1475
+ * @param param The request object
1476
+ */
1477
+ getIncidentTodo(param, options) {
1478
+ const requestContextPromise = this.requestFactory.getIncidentTodo(param.incidentId, param.todoId, options);
1479
+ return requestContextPromise.then((requestContext) => {
1480
+ return this.configuration.httpApi
1481
+ .send(requestContext)
1482
+ .then((responseContext) => {
1483
+ return this.responseProcessor.getIncidentTodo(responseContext);
1484
+ });
1485
+ });
1486
+ }
669
1487
  /**
670
1488
  * Get all attachments for a given incident.
671
1489
  * @param param The request object
@@ -680,6 +1498,20 @@ class IncidentsApi {
680
1498
  });
681
1499
  });
682
1500
  }
1501
+ /**
1502
+ * Get all integration metadata for an incident.
1503
+ * @param param The request object
1504
+ */
1505
+ listIncidentIntegrations(param, options) {
1506
+ const requestContextPromise = this.requestFactory.listIncidentIntegrations(param.incidentId, options);
1507
+ return requestContextPromise.then((requestContext) => {
1508
+ return this.configuration.httpApi
1509
+ .send(requestContext)
1510
+ .then((responseContext) => {
1511
+ return this.responseProcessor.listIncidentIntegrations(responseContext);
1512
+ });
1513
+ });
1514
+ }
683
1515
  /**
684
1516
  * Get all incidents for the user's organization.
685
1517
  * @param param The request object
@@ -728,12 +1560,26 @@ class IncidentsApi {
728
1560
  }
729
1561
  });
730
1562
  }
1563
+ /**
1564
+ * Get all todos for an incident.
1565
+ * @param param The request object
1566
+ */
1567
+ listIncidentTodos(param, options) {
1568
+ const requestContextPromise = this.requestFactory.listIncidentTodos(param.incidentId, options);
1569
+ return requestContextPromise.then((requestContext) => {
1570
+ return this.configuration.httpApi
1571
+ .send(requestContext)
1572
+ .then((responseContext) => {
1573
+ return this.responseProcessor.listIncidentTodos(responseContext);
1574
+ });
1575
+ });
1576
+ }
731
1577
  /**
732
1578
  * Search for incidents matching a certain query.
733
1579
  * @param param The request object
734
1580
  */
735
1581
  searchIncidents(param, options) {
736
- const requestContextPromise = this.requestFactory.searchIncidents(param.query, param.include, param.sort, options);
1582
+ const requestContextPromise = this.requestFactory.searchIncidents(param.query, param.include, param.sort, param.pageSize, param.pageOffset, options);
737
1583
  return requestContextPromise.then((requestContext) => {
738
1584
  return this.configuration.httpApi
739
1585
  .send(requestContext)
@@ -742,6 +1588,48 @@ class IncidentsApi {
742
1588
  });
743
1589
  });
744
1590
  }
1591
+ /**
1592
+ * Provide a paginated version of searchIncidents returning a generator with all the items.
1593
+ */
1594
+ searchIncidentsWithPagination(param, options) {
1595
+ return __asyncGenerator(this, arguments, function* searchIncidentsWithPagination_1() {
1596
+ let pageSize = 10;
1597
+ if (param.pageSize !== undefined) {
1598
+ pageSize = param.pageSize;
1599
+ }
1600
+ param.pageSize = pageSize;
1601
+ while (true) {
1602
+ const requestContext = yield __await(this.requestFactory.searchIncidents(param.query, param.include, param.sort, param.pageSize, param.pageOffset, options));
1603
+ const responseContext = yield __await(this.configuration.httpApi.send(requestContext));
1604
+ const response = yield __await(this.responseProcessor.searchIncidents(responseContext));
1605
+ const responseData = response.data;
1606
+ if (responseData === undefined) {
1607
+ break;
1608
+ }
1609
+ const responseDataAttributes = responseData.attributes;
1610
+ if (responseDataAttributes === undefined) {
1611
+ break;
1612
+ }
1613
+ const responseDataAttributesIncidents = responseDataAttributes.incidents;
1614
+ if (responseDataAttributesIncidents === undefined) {
1615
+ break;
1616
+ }
1617
+ const results = responseDataAttributesIncidents;
1618
+ for (const item of results) {
1619
+ yield yield __await(item);
1620
+ }
1621
+ if (results.length < pageSize) {
1622
+ break;
1623
+ }
1624
+ if (param.pageOffset === undefined) {
1625
+ param.pageOffset = pageSize;
1626
+ }
1627
+ else {
1628
+ param.pageOffset = param.pageOffset + pageSize;
1629
+ }
1630
+ }
1631
+ });
1632
+ }
745
1633
  /**
746
1634
  * Updates an incident. Provide only the attributes that should be updated as this request is a partial update.
747
1635
  * @param param The request object
@@ -770,6 +1658,34 @@ class IncidentsApi {
770
1658
  });
771
1659
  });
772
1660
  }
1661
+ /**
1662
+ * Update an existing incident integration metadata.
1663
+ * @param param The request object
1664
+ */
1665
+ updateIncidentIntegration(param, options) {
1666
+ const requestContextPromise = this.requestFactory.updateIncidentIntegration(param.incidentId, param.integrationMetadataId, param.body, options);
1667
+ return requestContextPromise.then((requestContext) => {
1668
+ return this.configuration.httpApi
1669
+ .send(requestContext)
1670
+ .then((responseContext) => {
1671
+ return this.responseProcessor.updateIncidentIntegration(responseContext);
1672
+ });
1673
+ });
1674
+ }
1675
+ /**
1676
+ * Update an incident todo.
1677
+ * @param param The request object
1678
+ */
1679
+ updateIncidentTodo(param, options) {
1680
+ const requestContextPromise = this.requestFactory.updateIncidentTodo(param.incidentId, param.todoId, param.body, options);
1681
+ return requestContextPromise.then((requestContext) => {
1682
+ return this.configuration.httpApi
1683
+ .send(requestContext)
1684
+ .then((responseContext) => {
1685
+ return this.responseProcessor.updateIncidentTodo(responseContext);
1686
+ });
1687
+ });
1688
+ }
773
1689
  }
774
1690
  exports.IncidentsApi = IncidentsApi;
775
1691
  //# sourceMappingURL=IncidentsApi.js.map