levelfour 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (570) hide show
  1. package/{BaseClient.ts → dist/BaseClient.d.ts} +1 -25
  2. package/dist/BaseClient.js +51 -0
  3. package/dist/Client.d.ts +47 -0
  4. package/dist/Client.js +72 -0
  5. package/dist/LevelFourClient.d.ts +12 -0
  6. package/dist/LevelFourClient.js +36 -0
  7. package/dist/api/errors/UnprocessableEntityError.d.ts +6 -0
  8. package/dist/api/errors/UnprocessableEntityError.js +54 -0
  9. package/dist/api/errors/index.js +17 -0
  10. package/dist/api/index.js +19 -0
  11. package/dist/api/resources/apiKeys/client/Client.d.ts +68 -0
  12. package/{api/resources/apiKeys/client/Client.ts → dist/api/resources/apiKeys/client/Client.js} +79 -137
  13. package/dist/api/resources/apiKeys/client/index.js +17 -0
  14. package/{api/resources/apiKeys/client/requests/CreateApiKeyRequest.ts → dist/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts} +6 -9
  15. package/dist/api/resources/apiKeys/client/requests/CreateApiKeyRequest.js +11 -0
  16. package/{api/resources/apiKeys/client/requests/ListApiKeysApiV1ApiKeysGetRequest.ts → dist/api/resources/apiKeys/client/requests/ListApiKeysApiV1ApiKeysGetRequest.d.ts} +0 -2
  17. package/dist/api/resources/apiKeys/client/requests/ListApiKeysApiV1ApiKeysGetRequest.js +3 -0
  18. package/{api/resources/apiKeys/client/requests/RevokeApiKeyApiV1ApiKeysKeyIdDeleteRequest.ts → dist/api/resources/apiKeys/client/requests/RevokeApiKeyApiV1ApiKeysKeyIdDeleteRequest.d.ts} +0 -2
  19. package/dist/api/resources/apiKeys/client/requests/RevokeApiKeyApiV1ApiKeysKeyIdDeleteRequest.js +3 -0
  20. package/{api/resources/apiKeys/client/requests/RotateApiKeyApiV1ApiKeysKeyIdRotatePostRequest.ts → dist/api/resources/apiKeys/client/requests/RotateApiKeyApiV1ApiKeysKeyIdRotatePostRequest.d.ts} +0 -2
  21. package/dist/api/resources/apiKeys/client/requests/RotateApiKeyApiV1ApiKeysKeyIdRotatePostRequest.js +3 -0
  22. package/dist/api/resources/apiKeys/client/requests/index.js +5 -0
  23. package/{api/resources/apiKeys/exports.ts → dist/api/resources/apiKeys/exports.d.ts} +0 -2
  24. package/dist/api/resources/apiKeys/exports.js +21 -0
  25. package/dist/api/resources/apiKeys/index.js +17 -0
  26. package/dist/api/resources/evaluation/client/Client.d.ts +23 -0
  27. package/dist/api/resources/evaluation/client/Client.js +86 -0
  28. package/dist/api/resources/evaluation/client/index.js +2 -0
  29. package/{api/resources/evaluation/exports.ts → dist/api/resources/evaluation/exports.d.ts} +0 -2
  30. package/dist/api/resources/evaluation/exports.js +21 -0
  31. package/dist/api/resources/evaluation/index.js +17 -0
  32. package/dist/api/resources/health/client/Client.d.ts +32 -0
  33. package/dist/api/resources/health/client/Client.js +123 -0
  34. package/dist/api/resources/health/client/index.js +2 -0
  35. package/{api/resources/health/exports.ts → dist/api/resources/health/exports.d.ts} +0 -2
  36. package/dist/api/resources/health/exports.js +21 -0
  37. package/dist/api/resources/health/index.js +17 -0
  38. package/dist/api/resources/index.js +63 -0
  39. package/dist/api/resources/prAnalysis/client/Client.d.ts +34 -0
  40. package/dist/api/resources/prAnalysis/client/Client.js +107 -0
  41. package/dist/api/resources/prAnalysis/client/index.js +17 -0
  42. package/{api/resources/prAnalysis/client/requests/AnalyzePrRequest.ts → dist/api/resources/prAnalysis/client/requests/AnalyzePrRequest.d.ts} +0 -3
  43. package/dist/api/resources/prAnalysis/client/requests/AnalyzePrRequest.js +3 -0
  44. package/dist/api/resources/prAnalysis/client/requests/index.js +2 -0
  45. package/{api/resources/prAnalysis/exports.ts → dist/api/resources/prAnalysis/exports.d.ts} +0 -2
  46. package/dist/api/resources/prAnalysis/exports.js +21 -0
  47. package/dist/api/resources/prAnalysis/index.js +17 -0
  48. package/dist/api/resources/prAnalysisActions/client/Client.d.ts +101 -0
  49. package/{api/resources/prAnalysisActions/client/Client.ts → dist/api/resources/prAnalysisActions/client/Client.js} +84 -182
  50. package/dist/api/resources/prAnalysisActions/client/index.js +17 -0
  51. package/{api/resources/prAnalysisActions/client/requests/DismissSuggestionsApiV1PrAnalysisActionsDismissPostRequest.ts → dist/api/resources/prAnalysisActions/client/requests/DismissSuggestionsApiV1PrAnalysisActionsDismissPostRequest.d.ts} +0 -3
  52. package/dist/api/resources/prAnalysisActions/client/requests/DismissSuggestionsApiV1PrAnalysisActionsDismissPostRequest.js +3 -0
  53. package/{api/resources/prAnalysisActions/client/requests/GetIgnoredResourcesApiV1PrAnalysisActionsIgnoreGetRequest.ts → dist/api/resources/prAnalysisActions/client/requests/GetIgnoredResourcesApiV1PrAnalysisActionsIgnoreGetRequest.d.ts} +0 -2
  54. package/dist/api/resources/prAnalysisActions/client/requests/GetIgnoredResourcesApiV1PrAnalysisActionsIgnoreGetRequest.js +3 -0
  55. package/{api/resources/prAnalysisActions/client/requests/GetPrStatusApiV1PrAnalysisActionsStatusGetRequest.ts → dist/api/resources/prAnalysisActions/client/requests/GetPrStatusApiV1PrAnalysisActionsStatusGetRequest.d.ts} +0 -2
  56. package/dist/api/resources/prAnalysisActions/client/requests/GetPrStatusApiV1PrAnalysisActionsStatusGetRequest.js +3 -0
  57. package/{api/resources/prAnalysisActions/client/requests/IgnoreRequest.ts → dist/api/resources/prAnalysisActions/client/requests/IgnoreRequest.d.ts} +0 -2
  58. package/dist/api/resources/prAnalysisActions/client/requests/IgnoreRequest.js +3 -0
  59. package/{api/resources/prAnalysisActions/client/requests/SnoozeSuggestionsApiV1PrAnalysisActionsSnoozePostRequest.ts → dist/api/resources/prAnalysisActions/client/requests/SnoozeSuggestionsApiV1PrAnalysisActionsSnoozePostRequest.d.ts} +0 -3
  60. package/dist/api/resources/prAnalysisActions/client/requests/SnoozeSuggestionsApiV1PrAnalysisActionsSnoozePostRequest.js +3 -0
  61. package/dist/api/resources/prAnalysisActions/client/requests/index.js +2 -0
  62. package/{api/resources/prAnalysisActions/exports.ts → dist/api/resources/prAnalysisActions/exports.d.ts} +0 -2
  63. package/dist/api/resources/prAnalysisActions/exports.js +21 -0
  64. package/dist/api/resources/prAnalysisActions/index.js +17 -0
  65. package/dist/api/resources/prAnalysisInstallations/client/Client.d.ts +89 -0
  66. package/{api/resources/prAnalysisInstallations/client/Client.ts → dist/api/resources/prAnalysisInstallations/client/Client.js} +86 -184
  67. package/dist/api/resources/prAnalysisInstallations/client/index.js +17 -0
  68. package/{api/resources/prAnalysisInstallations/client/requests/AddReposRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/AddReposRequest.d.ts} +0 -2
  69. package/dist/api/resources/prAnalysisInstallations/client/requests/AddReposRequest.js +3 -0
  70. package/{api/resources/prAnalysisInstallations/client/requests/DeleteInstallationApiV1PrAnalysisInstallationsInstallationIdDeleteRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/DeleteInstallationApiV1PrAnalysisInstallationsInstallationIdDeleteRequest.d.ts} +0 -2
  71. package/dist/api/resources/prAnalysisInstallations/client/requests/DeleteInstallationApiV1PrAnalysisInstallationsInstallationIdDeleteRequest.js +3 -0
  72. package/{api/resources/prAnalysisInstallations/client/requests/ListInstallationsApiV1PrAnalysisInstallationsGetRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/ListInstallationsApiV1PrAnalysisInstallationsGetRequest.d.ts} +0 -2
  73. package/dist/api/resources/prAnalysisInstallations/client/requests/ListInstallationsApiV1PrAnalysisInstallationsGetRequest.js +3 -0
  74. package/{api/resources/prAnalysisInstallations/client/requests/RegisterInstallationRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/RegisterInstallationRequest.d.ts} +0 -2
  75. package/dist/api/resources/prAnalysisInstallations/client/requests/RegisterInstallationRequest.js +3 -0
  76. package/{api/resources/prAnalysisInstallations/client/requests/RemoveReposRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/RemoveReposRequest.d.ts} +0 -2
  77. package/dist/api/resources/prAnalysisInstallations/client/requests/RemoveReposRequest.js +3 -0
  78. package/dist/api/resources/prAnalysisInstallations/client/requests/index.js +2 -0
  79. package/{api/resources/prAnalysisInstallations/exports.ts → dist/api/resources/prAnalysisInstallations/exports.d.ts} +0 -2
  80. package/dist/api/resources/prAnalysisInstallations/exports.js +21 -0
  81. package/dist/api/resources/prAnalysisInstallations/index.js +17 -0
  82. package/dist/api/resources/prAnalysisQuery/client/Client.d.ts +47 -0
  83. package/{api/resources/prAnalysisQuery/client/Client.ts → dist/api/resources/prAnalysisQuery/client/Client.js} +61 -74
  84. package/dist/api/resources/prAnalysisQuery/client/index.js +17 -0
  85. package/{api/resources/prAnalysisQuery/client/requests/ExplainRequest.ts → dist/api/resources/prAnalysisQuery/client/requests/ExplainRequest.d.ts} +0 -2
  86. package/dist/api/resources/prAnalysisQuery/client/requests/ExplainRequest.js +3 -0
  87. package/{api/resources/prAnalysisQuery/client/requests/WhatifRequest.ts → dist/api/resources/prAnalysisQuery/client/requests/WhatifRequest.d.ts} +0 -2
  88. package/dist/api/resources/prAnalysisQuery/client/requests/WhatifRequest.js +3 -0
  89. package/dist/api/resources/prAnalysisQuery/client/requests/index.js +2 -0
  90. package/{api/resources/prAnalysisQuery/exports.ts → dist/api/resources/prAnalysisQuery/exports.d.ts} +0 -2
  91. package/dist/api/resources/prAnalysisQuery/exports.js +21 -0
  92. package/dist/api/resources/prAnalysisQuery/index.js +17 -0
  93. package/dist/api/resources/providers/client/Client.d.ts +193 -0
  94. package/{api/resources/providers/client/Client.ts → dist/api/resources/providers/client/Client.js} +172 -449
  95. package/dist/api/resources/providers/client/index.js +17 -0
  96. package/{api/resources/providers/client/requests/GetProviderFilterOptionsApiV1ProvidersProviderIdSpendingFilterOptionsGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderFilterOptionsApiV1ProvidersProviderIdSpendingFilterOptionsGetRequest.d.ts} +0 -2
  97. package/dist/api/resources/providers/client/requests/GetProviderFilterOptionsApiV1ProvidersProviderIdSpendingFilterOptionsGetRequest.js +3 -0
  98. package/{api/resources/providers/client/requests/GetProviderPotentialSavingsBreakdownApiV1ProvidersProviderIdPotentialSavingsBreakdownGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderPotentialSavingsBreakdownApiV1ProvidersProviderIdPotentialSavingsBreakdownGetRequest.d.ts} +0 -2
  99. package/dist/api/resources/providers/client/requests/GetProviderPotentialSavingsBreakdownApiV1ProvidersProviderIdPotentialSavingsBreakdownGetRequest.js +3 -0
  100. package/{api/resources/providers/client/requests/GetProviderPotentialSavingsSummaryApiV1ProvidersProviderIdPotentialSavingsSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderPotentialSavingsSummaryApiV1ProvidersProviderIdPotentialSavingsSummaryGetRequest.d.ts} +0 -2
  101. package/dist/api/resources/providers/client/requests/GetProviderPotentialSavingsSummaryApiV1ProvidersProviderIdPotentialSavingsSummaryGetRequest.js +3 -0
  102. package/{api/resources/providers/client/requests/GetProviderRecommendationFilterOptionsApiV1ProvidersProviderIdRecommendationsFilterOptionsGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationFilterOptionsApiV1ProvidersProviderIdRecommendationsFilterOptionsGetRequest.d.ts} +0 -2
  103. package/dist/api/resources/providers/client/requests/GetProviderRecommendationFilterOptionsApiV1ProvidersProviderIdRecommendationsFilterOptionsGetRequest.js +3 -0
  104. package/{api/resources/providers/client/requests/GetProviderRecommendationsBreakdownApiV1ProvidersProviderIdRecommendationsGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationsBreakdownApiV1ProvidersProviderIdRecommendationsGetRequest.d.ts} +0 -2
  105. package/dist/api/resources/providers/client/requests/GetProviderRecommendationsBreakdownApiV1ProvidersProviderIdRecommendationsGetRequest.js +3 -0
  106. package/{api/resources/providers/client/requests/GetProviderRecommendationsOverviewApiV1ProvidersProviderIdRecommendationsOverviewGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationsOverviewApiV1ProvidersProviderIdRecommendationsOverviewGetRequest.d.ts} +0 -2
  107. package/dist/api/resources/providers/client/requests/GetProviderRecommendationsOverviewApiV1ProvidersProviderIdRecommendationsOverviewGetRequest.js +3 -0
  108. package/{api/resources/providers/client/requests/GetProviderRecommendationsSummaryApiV1ProvidersProviderIdRecommendationsSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationsSummaryApiV1ProvidersProviderIdRecommendationsSummaryGetRequest.d.ts} +0 -2
  109. package/dist/api/resources/providers/client/requests/GetProviderRecommendationsSummaryApiV1ProvidersProviderIdRecommendationsSummaryGetRequest.js +3 -0
  110. package/{api/resources/providers/client/requests/GetProviderSavedSummaryApiV1ProvidersProviderIdSavingsSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderSavedSummaryApiV1ProvidersProviderIdSavingsSummaryGetRequest.d.ts} +0 -2
  111. package/dist/api/resources/providers/client/requests/GetProviderSavedSummaryApiV1ProvidersProviderIdSavingsSummaryGetRequest.js +3 -0
  112. package/{api/resources/providers/client/requests/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetRequest.d.ts} +0 -2
  113. package/dist/api/resources/providers/client/requests/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetRequest.js +3 -0
  114. package/{api/resources/providers/client/requests/GetProviderSpendingSummaryApiV1ProvidersProviderIdSpendingSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderSpendingSummaryApiV1ProvidersProviderIdSpendingSummaryGetRequest.d.ts} +0 -2
  115. package/dist/api/resources/providers/client/requests/GetProviderSpendingSummaryApiV1ProvidersProviderIdSpendingSummaryGetRequest.js +3 -0
  116. package/{api/resources/providers/client/requests/GetProviderSpendingTimelineApiV1ProvidersProviderIdSpendingTimelineGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderSpendingTimelineApiV1ProvidersProviderIdSpendingTimelineGetRequest.d.ts} +0 -2
  117. package/dist/api/resources/providers/client/requests/GetProviderSpendingTimelineApiV1ProvidersProviderIdSpendingTimelineGetRequest.js +3 -0
  118. package/{api/resources/providers/client/requests/GetSavedByProviderBreakdownApiV1ProvidersProviderIdSavingsBreakdownGetRequest.ts → dist/api/resources/providers/client/requests/GetSavedByProviderBreakdownApiV1ProvidersProviderIdSavingsBreakdownGetRequest.d.ts} +0 -2
  119. package/dist/api/resources/providers/client/requests/GetSavedByProviderBreakdownApiV1ProvidersProviderIdSavingsBreakdownGetRequest.js +3 -0
  120. package/dist/api/resources/providers/client/requests/index.js +2 -0
  121. package/{api/resources/providers/exports.ts → dist/api/resources/providers/exports.d.ts} +0 -2
  122. package/dist/api/resources/providers/exports.js +21 -0
  123. package/dist/api/resources/providers/index.js +18 -0
  124. package/dist/api/resources/providers/types/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetResponse.d.ts +2 -0
  125. package/dist/api/resources/providers/types/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetResponse.js +3 -0
  126. package/dist/api/resources/providers/types/index.js +17 -0
  127. package/dist/api/resources/recommendations/client/Client.d.ts +173 -0
  128. package/{api/resources/recommendations/client/Client.ts → dist/api/resources/recommendations/client/Client.js} +140 -340
  129. package/dist/api/resources/recommendations/client/index.js +17 -0
  130. package/{api/resources/recommendations/client/requests/AcceptTermsApiV1RecommendationsRecommendationIdAcceptTermsPostRequest.ts → dist/api/resources/recommendations/client/requests/AcceptTermsApiV1RecommendationsRecommendationIdAcceptTermsPostRequest.d.ts} +0 -2
  131. package/dist/api/resources/recommendations/client/requests/AcceptTermsApiV1RecommendationsRecommendationIdAcceptTermsPostRequest.js +3 -0
  132. package/{api/resources/recommendations/client/requests/CompleteWizardApiV1RecommendationsRecommendationIdCompletePostRequest.ts → dist/api/resources/recommendations/client/requests/CompleteWizardApiV1RecommendationsRecommendationIdCompletePostRequest.d.ts} +0 -2
  133. package/dist/api/resources/recommendations/client/requests/CompleteWizardApiV1RecommendationsRecommendationIdCompletePostRequest.js +3 -0
  134. package/{api/resources/recommendations/client/requests/GetRecommendationDetailsApiV1RecommendationsRecommendationIdDetailsGetRequest.ts → dist/api/resources/recommendations/client/requests/GetRecommendationDetailsApiV1RecommendationsRecommendationIdDetailsGetRequest.d.ts} +0 -2
  135. package/dist/api/resources/recommendations/client/requests/GetRecommendationDetailsApiV1RecommendationsRecommendationIdDetailsGetRequest.js +3 -0
  136. package/{api/resources/recommendations/client/requests/GetRecommendationForWizardApiV1RecommendationsRecommendationIdGetRequest.ts → dist/api/resources/recommendations/client/requests/GetRecommendationForWizardApiV1RecommendationsRecommendationIdGetRequest.d.ts} +0 -2
  137. package/dist/api/resources/recommendations/client/requests/GetRecommendationForWizardApiV1RecommendationsRecommendationIdGetRequest.js +3 -0
  138. package/{api/resources/recommendations/client/requests/GetRecommendationsApiV1RecommendationsGetRequest.ts → dist/api/resources/recommendations/client/requests/GetRecommendationsApiV1RecommendationsGetRequest.d.ts} +0 -2
  139. package/dist/api/resources/recommendations/client/requests/GetRecommendationsApiV1RecommendationsGetRequest.js +3 -0
  140. package/{api/resources/recommendations/client/requests/ImplementationMethodRequest.ts → dist/api/resources/recommendations/client/requests/ImplementationMethodRequest.d.ts} +0 -2
  141. package/dist/api/resources/recommendations/client/requests/ImplementationMethodRequest.js +3 -0
  142. package/{api/resources/recommendations/client/requests/SavingsDecisionRequest.ts → dist/api/resources/recommendations/client/requests/SavingsDecisionRequest.d.ts} +0 -2
  143. package/dist/api/resources/recommendations/client/requests/SavingsDecisionRequest.js +3 -0
  144. package/{api/resources/recommendations/client/requests/UpdateTagRequest.ts → dist/api/resources/recommendations/client/requests/UpdateTagRequest.d.ts} +0 -2
  145. package/dist/api/resources/recommendations/client/requests/UpdateTagRequest.js +3 -0
  146. package/dist/api/resources/recommendations/client/requests/index.js +2 -0
  147. package/{api/resources/recommendations/exports.ts → dist/api/resources/recommendations/exports.d.ts} +0 -2
  148. package/dist/api/resources/recommendations/exports.js +21 -0
  149. package/dist/api/resources/recommendations/index.js +17 -0
  150. package/dist/api/resources/savings/client/Client.d.ts +52 -0
  151. package/{api/resources/savings/client/Client.ts → dist/api/resources/savings/client/Client.js} +75 -108
  152. package/dist/api/resources/savings/client/index.js +17 -0
  153. package/{api/resources/savings/client/requests/ExecutionRequestBody.ts → dist/api/resources/savings/client/requests/ExecutionRequestBody.d.ts} +0 -2
  154. package/dist/api/resources/savings/client/requests/ExecutionRequestBody.js +3 -0
  155. package/{api/resources/savings/client/requests/GetSavedBreakdownApiV1SavingsBreakdownGetRequest.ts → dist/api/resources/savings/client/requests/GetSavedBreakdownApiV1SavingsBreakdownGetRequest.d.ts} +0 -2
  156. package/dist/api/resources/savings/client/requests/GetSavedBreakdownApiV1SavingsBreakdownGetRequest.js +3 -0
  157. package/dist/api/resources/savings/client/requests/index.js +2 -0
  158. package/{api/resources/savings/exports.ts → dist/api/resources/savings/exports.d.ts} +0 -2
  159. package/dist/api/resources/savings/exports.js +21 -0
  160. package/dist/api/resources/savings/index.js +17 -0
  161. package/dist/api/resources/spending/client/Client.d.ts +59 -0
  162. package/{api/resources/spending/client/Client.ts → dist/api/resources/spending/client/Client.js} +80 -129
  163. package/dist/api/resources/spending/client/index.js +17 -0
  164. package/{api/resources/spending/client/requests/GetCostBreakdownApiV1SpendingBreakdownGetRequest.ts → dist/api/resources/spending/client/requests/GetCostBreakdownApiV1SpendingBreakdownGetRequest.d.ts} +0 -2
  165. package/dist/api/resources/spending/client/requests/GetCostBreakdownApiV1SpendingBreakdownGetRequest.js +3 -0
  166. package/{api/resources/spending/client/requests/GetDailySpendingBreakdownApiV1SpendingDailyBreakdownGetRequest.ts → dist/api/resources/spending/client/requests/GetDailySpendingBreakdownApiV1SpendingDailyBreakdownGetRequest.d.ts} +0 -2
  167. package/dist/api/resources/spending/client/requests/GetDailySpendingBreakdownApiV1SpendingDailyBreakdownGetRequest.js +3 -0
  168. package/dist/api/resources/spending/client/requests/index.js +2 -0
  169. package/{api/resources/spending/exports.ts → dist/api/resources/spending/exports.d.ts} +0 -2
  170. package/dist/api/resources/spending/exports.js +21 -0
  171. package/dist/api/resources/spending/index.js +18 -0
  172. package/dist/api/resources/spending/types/GetCostBreakdownApiV1SpendingBreakdownGetResponse.d.ts +2 -0
  173. package/dist/api/resources/spending/types/GetCostBreakdownApiV1SpendingBreakdownGetResponse.js +3 -0
  174. package/dist/api/resources/spending/types/index.js +17 -0
  175. package/dist/api/resources/webhooks/client/Client.d.ts +55 -0
  176. package/{api/resources/webhooks/client/Client.ts → dist/api/resources/webhooks/client/Client.js} +71 -109
  177. package/dist/api/resources/webhooks/client/index.js +17 -0
  178. package/{api/resources/webhooks/client/requests/DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest.ts → dist/api/resources/webhooks/client/requests/DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest.d.ts} +0 -2
  179. package/dist/api/resources/webhooks/client/requests/DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest.js +3 -0
  180. package/{api/resources/webhooks/client/requests/ListEndpointsApiV1WebhooksEndpointsGetRequest.ts → dist/api/resources/webhooks/client/requests/ListEndpointsApiV1WebhooksEndpointsGetRequest.d.ts} +0 -2
  181. package/dist/api/resources/webhooks/client/requests/ListEndpointsApiV1WebhooksEndpointsGetRequest.js +3 -0
  182. package/{api/resources/webhooks/client/requests/RegisterEndpointRequest.ts → dist/api/resources/webhooks/client/requests/RegisterEndpointRequest.d.ts} +0 -2
  183. package/dist/api/resources/webhooks/client/requests/RegisterEndpointRequest.js +3 -0
  184. package/dist/api/resources/webhooks/client/requests/index.js +2 -0
  185. package/{api/resources/webhooks/exports.ts → dist/api/resources/webhooks/exports.d.ts} +0 -2
  186. package/dist/api/resources/webhooks/exports.js +21 -0
  187. package/dist/api/resources/webhooks/index.js +17 -0
  188. package/{api/types/AcceptTermsData.ts → dist/api/types/AcceptTermsData.d.ts} +0 -2
  189. package/dist/api/types/AcceptTermsData.js +3 -0
  190. package/{api/types/AcceptTermsResponse.ts → dist/api/types/AcceptTermsResponse.d.ts} +0 -3
  191. package/dist/api/types/AcceptTermsResponse.js +3 -0
  192. package/{api/types/ActionRequest.ts → dist/api/types/ActionRequest.d.ts} +0 -2
  193. package/dist/api/types/ActionRequest.js +3 -0
  194. package/{api/types/ApiKeyCreatedData.ts → dist/api/types/ApiKeyCreatedData.d.ts} +0 -2
  195. package/dist/api/types/ApiKeyCreatedData.js +3 -0
  196. package/{api/types/ApiKeyData.ts → dist/api/types/ApiKeyData.d.ts} +0 -2
  197. package/dist/api/types/ApiKeyData.js +3 -0
  198. package/{api/types/ComparisonItem.ts → dist/api/types/ComparisonItem.d.ts} +0 -2
  199. package/dist/api/types/ComparisonItem.js +3 -0
  200. package/{api/types/CompleteWizardData.ts → dist/api/types/CompleteWizardData.d.ts} +0 -2
  201. package/dist/api/types/CompleteWizardData.js +3 -0
  202. package/{api/types/CompleteWizardResponse.ts → dist/api/types/CompleteWizardResponse.d.ts} +0 -3
  203. package/dist/api/types/CompleteWizardResponse.js +3 -0
  204. package/{api/types/CostBreakdownData.ts → dist/api/types/CostBreakdownData.d.ts} +0 -3
  205. package/dist/api/types/CostBreakdownData.js +3 -0
  206. package/{api/types/CostBreakdownItem.ts → dist/api/types/CostBreakdownItem.d.ts} +0 -2
  207. package/dist/api/types/CostBreakdownItem.js +3 -0
  208. package/{api/types/CostBreakdownRawData.ts → dist/api/types/CostBreakdownRawData.d.ts} +0 -3
  209. package/dist/api/types/CostBreakdownRawData.js +3 -0
  210. package/{api/types/CostBreakdownRawResponse.ts → dist/api/types/CostBreakdownRawResponse.d.ts} +0 -3
  211. package/dist/api/types/CostBreakdownRawResponse.js +3 -0
  212. package/{api/types/CostBreakdownResponse.ts → dist/api/types/CostBreakdownResponse.d.ts} +0 -3
  213. package/dist/api/types/CostBreakdownResponse.js +3 -0
  214. package/{api/types/CostsBreakdownChartData.ts → dist/api/types/CostsBreakdownChartData.d.ts} +0 -3
  215. package/dist/api/types/CostsBreakdownChartData.js +3 -0
  216. package/{api/types/CostsBreakdownChartResponse.ts → dist/api/types/CostsBreakdownChartResponse.d.ts} +0 -3
  217. package/dist/api/types/CostsBreakdownChartResponse.js +3 -0
  218. package/{api/types/CostsBreakdownDataPoint.ts → dist/api/types/CostsBreakdownDataPoint.d.ts} +0 -2
  219. package/dist/api/types/CostsBreakdownDataPoint.js +3 -0
  220. package/{api/types/CostsBreakdownGroupedChartData.ts → dist/api/types/CostsBreakdownGroupedChartData.d.ts} +0 -3
  221. package/dist/api/types/CostsBreakdownGroupedChartData.js +3 -0
  222. package/{api/types/CostsBreakdownGroupedChartResponse.ts → dist/api/types/CostsBreakdownGroupedChartResponse.d.ts} +0 -3
  223. package/dist/api/types/CostsBreakdownGroupedChartResponse.js +3 -0
  224. package/{api/types/CostsBreakdownGroupedDataPoint.ts → dist/api/types/CostsBreakdownGroupedDataPoint.d.ts} +0 -2
  225. package/dist/api/types/CostsBreakdownGroupedDataPoint.js +3 -0
  226. package/{api/types/CostsBreakdownTotals.ts → dist/api/types/CostsBreakdownTotals.d.ts} +0 -2
  227. package/dist/api/types/CostsBreakdownTotals.js +3 -0
  228. package/{api/types/CreateApiKeyResponse.ts → dist/api/types/CreateApiKeyResponse.d.ts} +0 -3
  229. package/dist/api/types/CreateApiKeyResponse.js +3 -0
  230. package/{api/types/DailySpendingBreakdownData.ts → dist/api/types/DailySpendingBreakdownData.d.ts} +0 -3
  231. package/dist/api/types/DailySpendingBreakdownData.js +3 -0
  232. package/{api/types/DailySpendingBreakdownResponse.ts → dist/api/types/DailySpendingBreakdownResponse.d.ts} +0 -3
  233. package/dist/api/types/DailySpendingBreakdownResponse.js +3 -0
  234. package/{api/types/DailySpendingDataPoint.ts → dist/api/types/DailySpendingDataPoint.d.ts} +0 -2
  235. package/dist/api/types/DailySpendingDataPoint.js +3 -0
  236. package/{api/types/DashboardSummaryData.ts → dist/api/types/DashboardSummaryData.d.ts} +0 -3
  237. package/dist/api/types/DashboardSummaryData.js +3 -0
  238. package/{api/types/DashboardSummaryResponse.ts → dist/api/types/DashboardSummaryResponse.d.ts} +0 -3
  239. package/dist/api/types/DashboardSummaryResponse.js +3 -0
  240. package/{api/types/DeleteEndpointData.ts → dist/api/types/DeleteEndpointData.d.ts} +0 -2
  241. package/dist/api/types/DeleteEndpointData.js +3 -0
  242. package/{api/types/DeleteEndpointResponse.ts → dist/api/types/DeleteEndpointResponse.d.ts} +0 -3
  243. package/dist/api/types/DeleteEndpointResponse.js +3 -0
  244. package/{api/types/EndpointData.ts → dist/api/types/EndpointData.d.ts} +0 -2
  245. package/dist/api/types/EndpointData.js +3 -0
  246. package/{api/types/EvaluationStatusData.ts → dist/api/types/EvaluationStatusData.d.ts} +0 -2
  247. package/dist/api/types/EvaluationStatusData.js +3 -0
  248. package/{api/types/EvaluationStatusResponse.ts → dist/api/types/EvaluationStatusResponse.d.ts} +0 -3
  249. package/dist/api/types/EvaluationStatusResponse.js +3 -0
  250. package/{api/types/ExecutionLogCommand.ts → dist/api/types/ExecutionLogCommand.d.ts} +0 -2
  251. package/dist/api/types/ExecutionLogCommand.js +3 -0
  252. package/{api/types/ExecutionLogEntry.ts → dist/api/types/ExecutionLogEntry.d.ts} +0 -3
  253. package/dist/api/types/ExecutionLogEntry.js +3 -0
  254. package/{api/types/ExecutionStepSchema.ts → dist/api/types/ExecutionStepSchema.d.ts} +0 -2
  255. package/dist/api/types/ExecutionStepSchema.js +3 -0
  256. package/{api/types/HttpValidationError.ts → dist/api/types/HttpValidationError.d.ts} +0 -3
  257. package/dist/api/types/HttpValidationError.js +3 -0
  258. package/{api/types/ImplementationMethodData.ts → dist/api/types/ImplementationMethodData.d.ts} +0 -2
  259. package/dist/api/types/ImplementationMethodData.js +3 -0
  260. package/{api/types/ImplementationMethodResponse.ts → dist/api/types/ImplementationMethodResponse.d.ts} +0 -3
  261. package/dist/api/types/ImplementationMethodResponse.js +3 -0
  262. package/{api/types/ImplementationStep.ts → dist/api/types/ImplementationStep.d.ts} +0 -2
  263. package/dist/api/types/ImplementationStep.js +3 -0
  264. package/{api/types/ListApiKeysData.ts → dist/api/types/ListApiKeysData.d.ts} +0 -3
  265. package/dist/api/types/ListApiKeysData.js +3 -0
  266. package/{api/types/ListApiKeysResponse.ts → dist/api/types/ListApiKeysResponse.d.ts} +0 -3
  267. package/dist/api/types/ListApiKeysResponse.js +3 -0
  268. package/{api/types/ListEndpointsResponse.ts → dist/api/types/ListEndpointsResponse.d.ts} +0 -3
  269. package/dist/api/types/ListEndpointsResponse.js +3 -0
  270. package/{api/types/MetricDataPoint.ts → dist/api/types/MetricDataPoint.d.ts} +0 -2
  271. package/dist/api/types/MetricDataPoint.js +3 -0
  272. package/{api/types/MetricSeries.ts → dist/api/types/MetricSeries.d.ts} +0 -3
  273. package/dist/api/types/MetricSeries.js +3 -0
  274. package/{api/types/MetricSeriesEntry.ts → dist/api/types/MetricSeriesEntry.d.ts} +0 -3
  275. package/dist/api/types/MetricSeriesEntry.js +3 -0
  276. package/{api/types/MonthlySpendingData.ts → dist/api/types/MonthlySpendingData.d.ts} +0 -3
  277. package/dist/api/types/MonthlySpendingData.js +3 -0
  278. package/{api/types/MonthlySpendingDataPoint.ts → dist/api/types/MonthlySpendingDataPoint.d.ts} +0 -2
  279. package/dist/api/types/MonthlySpendingDataPoint.js +3 -0
  280. package/{api/types/MonthlySpendingResponse.ts → dist/api/types/MonthlySpendingResponse.d.ts} +0 -3
  281. package/dist/api/types/MonthlySpendingResponse.js +3 -0
  282. package/{api/types/PaginationMeta.ts → dist/api/types/PaginationMeta.d.ts} +0 -2
  283. package/dist/api/types/PaginationMeta.js +3 -0
  284. package/{api/types/ProcessingRecommendationItem.ts → dist/api/types/ProcessingRecommendationItem.d.ts} +0 -2
  285. package/dist/api/types/ProcessingRecommendationItem.js +3 -0
  286. package/{api/types/ProcessingRecommendationsData.ts → dist/api/types/ProcessingRecommendationsData.d.ts} +0 -3
  287. package/dist/api/types/ProcessingRecommendationsData.js +3 -0
  288. package/{api/types/ProcessingRecommendationsResponse.ts → dist/api/types/ProcessingRecommendationsResponse.d.ts} +0 -3
  289. package/dist/api/types/ProcessingRecommendationsResponse.js +3 -0
  290. package/{api/types/Provider.ts → dist/api/types/Provider.d.ts} +0 -2
  291. package/dist/api/types/Provider.js +3 -0
  292. package/{api/types/ProviderBreakdownData.ts → dist/api/types/ProviderBreakdownData.d.ts} +0 -3
  293. package/dist/api/types/ProviderBreakdownData.js +3 -0
  294. package/{api/types/ProviderBreakdownItem.ts → dist/api/types/ProviderBreakdownItem.d.ts} +0 -3
  295. package/dist/api/types/ProviderBreakdownItem.js +3 -0
  296. package/{api/types/ProviderBreakdownResponse.ts → dist/api/types/ProviderBreakdownResponse.d.ts} +0 -3
  297. package/dist/api/types/ProviderBreakdownResponse.js +3 -0
  298. package/{api/types/ProviderFilterOptionsData.ts → dist/api/types/ProviderFilterOptionsData.d.ts} +0 -2
  299. package/dist/api/types/ProviderFilterOptionsData.js +3 -0
  300. package/{api/types/ProviderFilterOptionsResponse.ts → dist/api/types/ProviderFilterOptionsResponse.d.ts} +0 -3
  301. package/dist/api/types/ProviderFilterOptionsResponse.js +3 -0
  302. package/{api/types/ProviderPotentialSavingsSummaryData.ts → dist/api/types/ProviderPotentialSavingsSummaryData.d.ts} +0 -2
  303. package/dist/api/types/ProviderPotentialSavingsSummaryData.js +3 -0
  304. package/{api/types/ProviderPotentialSavingsSummaryResponse.ts → dist/api/types/ProviderPotentialSavingsSummaryResponse.d.ts} +0 -3
  305. package/dist/api/types/ProviderPotentialSavingsSummaryResponse.js +3 -0
  306. package/{api/types/ProviderRecommendationsSummaryData.ts → dist/api/types/ProviderRecommendationsSummaryData.d.ts} +0 -3
  307. package/dist/api/types/ProviderRecommendationsSummaryData.js +3 -0
  308. package/{api/types/ProviderRecommendationsSummaryResponse.ts → dist/api/types/ProviderRecommendationsSummaryResponse.d.ts} +0 -3
  309. package/dist/api/types/ProviderRecommendationsSummaryResponse.js +3 -0
  310. package/{api/types/ProviderSavedSummaryData.ts → dist/api/types/ProviderSavedSummaryData.d.ts} +0 -2
  311. package/dist/api/types/ProviderSavedSummaryData.js +3 -0
  312. package/{api/types/ProviderSavedSummaryResponse.ts → dist/api/types/ProviderSavedSummaryResponse.d.ts} +0 -3
  313. package/dist/api/types/ProviderSavedSummaryResponse.js +3 -0
  314. package/{api/types/ProviderServiceBreakdownData.ts → dist/api/types/ProviderServiceBreakdownData.d.ts} +0 -3
  315. package/dist/api/types/ProviderServiceBreakdownData.js +3 -0
  316. package/{api/types/ProviderServiceBreakdownItem.ts → dist/api/types/ProviderServiceBreakdownItem.d.ts} +0 -3
  317. package/dist/api/types/ProviderServiceBreakdownItem.js +3 -0
  318. package/{api/types/ProviderServiceBreakdownRawData.ts → dist/api/types/ProviderServiceBreakdownRawData.d.ts} +0 -3
  319. package/dist/api/types/ProviderServiceBreakdownRawData.js +3 -0
  320. package/{api/types/ProviderServiceBreakdownRawResponse.ts → dist/api/types/ProviderServiceBreakdownRawResponse.d.ts} +0 -3
  321. package/dist/api/types/ProviderServiceBreakdownRawResponse.js +3 -0
  322. package/{api/types/ProviderServiceBreakdownResponse.ts → dist/api/types/ProviderServiceBreakdownResponse.d.ts} +0 -3
  323. package/dist/api/types/ProviderServiceBreakdownResponse.js +3 -0
  324. package/{api/types/ProviderServiceCostsBreakdownData.ts → dist/api/types/ProviderServiceCostsBreakdownData.d.ts} +0 -3
  325. package/dist/api/types/ProviderServiceCostsBreakdownData.js +3 -0
  326. package/{api/types/ProviderServiceCostsBreakdownResponse.ts → dist/api/types/ProviderServiceCostsBreakdownResponse.d.ts} +0 -3
  327. package/dist/api/types/ProviderServiceCostsBreakdownResponse.js +3 -0
  328. package/{api/types/ProviderServiceCostsDataPoint.ts → dist/api/types/ProviderServiceCostsDataPoint.d.ts} +0 -2
  329. package/dist/api/types/ProviderServiceCostsDataPoint.js +3 -0
  330. package/{api/types/ProviderSpending.ts → dist/api/types/ProviderSpending.d.ts} +0 -2
  331. package/dist/api/types/ProviderSpending.js +3 -0
  332. package/{api/types/ProviderSpendingSummaryData.ts → dist/api/types/ProviderSpendingSummaryData.d.ts} +0 -3
  333. package/dist/api/types/ProviderSpendingSummaryData.js +3 -0
  334. package/{api/types/ProviderSpendingSummaryResponse.ts → dist/api/types/ProviderSpendingSummaryResponse.d.ts} +0 -3
  335. package/dist/api/types/ProviderSpendingSummaryResponse.js +3 -0
  336. package/{api/types/ProviderTimelineData.ts → dist/api/types/ProviderTimelineData.d.ts} +0 -3
  337. package/dist/api/types/ProviderTimelineData.js +3 -0
  338. package/{api/types/ProviderTimelineResponse.ts → dist/api/types/ProviderTimelineResponse.d.ts} +0 -3
  339. package/dist/api/types/ProviderTimelineResponse.js +3 -0
  340. package/{api/types/ProviderTopService.ts → dist/api/types/ProviderTopService.d.ts} +0 -2
  341. package/dist/api/types/ProviderTopService.js +3 -0
  342. package/{api/types/ProvidersSummaryData.ts → dist/api/types/ProvidersSummaryData.d.ts} +0 -3
  343. package/dist/api/types/ProvidersSummaryData.js +3 -0
  344. package/{api/types/ProvidersSummaryResponse.ts → dist/api/types/ProvidersSummaryResponse.d.ts} +0 -3
  345. package/dist/api/types/ProvidersSummaryResponse.js +3 -0
  346. package/{api/types/RecommendationActions.ts → dist/api/types/RecommendationActions.d.ts} +0 -2
  347. package/dist/api/types/RecommendationActions.js +3 -0
  348. package/{api/types/RecommendationDetail.ts → dist/api/types/RecommendationDetail.d.ts} +0 -3
  349. package/dist/api/types/RecommendationDetail.js +3 -0
  350. package/{api/types/RecommendationDetailResponse.ts → dist/api/types/RecommendationDetailResponse.d.ts} +0 -3
  351. package/dist/api/types/RecommendationDetailResponse.js +3 -0
  352. package/{api/types/RecommendationFilterOptionsData.ts → dist/api/types/RecommendationFilterOptionsData.d.ts} +0 -2
  353. package/dist/api/types/RecommendationFilterOptionsData.js +3 -0
  354. package/{api/types/RecommendationFilterOptionsResponse.ts → dist/api/types/RecommendationFilterOptionsResponse.d.ts} +0 -3
  355. package/dist/api/types/RecommendationFilterOptionsResponse.js +3 -0
  356. package/{api/types/RecommendationItem.ts → dist/api/types/RecommendationItem.d.ts} +0 -3
  357. package/dist/api/types/RecommendationItem.js +3 -0
  358. package/{api/types/RecommendationWizardData.ts → dist/api/types/RecommendationWizardData.d.ts} +2 -6
  359. package/dist/api/types/RecommendationWizardData.js +3 -0
  360. package/{api/types/RecommendationWizardResponse.ts → dist/api/types/RecommendationWizardResponse.d.ts} +0 -3
  361. package/dist/api/types/RecommendationWizardResponse.js +3 -0
  362. package/{api/types/RecommendationsBreakdownData.ts → dist/api/types/RecommendationsBreakdownData.d.ts} +0 -3
  363. package/dist/api/types/RecommendationsBreakdownData.js +3 -0
  364. package/{api/types/RecommendationsBreakdownResponse.ts → dist/api/types/RecommendationsBreakdownResponse.d.ts} +0 -3
  365. package/dist/api/types/RecommendationsBreakdownResponse.js +3 -0
  366. package/{api/types/RecommendationsOverviewData.ts → dist/api/types/RecommendationsOverviewData.d.ts} +0 -2
  367. package/dist/api/types/RecommendationsOverviewData.js +3 -0
  368. package/{api/types/RecommendationsOverviewResponse.ts → dist/api/types/RecommendationsOverviewResponse.d.ts} +0 -3
  369. package/dist/api/types/RecommendationsOverviewResponse.js +3 -0
  370. package/{api/types/RegisterEndpointResponse.ts → dist/api/types/RegisterEndpointResponse.d.ts} +0 -3
  371. package/dist/api/types/RegisterEndpointResponse.js +3 -0
  372. package/{api/types/ResourceChange.ts → dist/api/types/ResourceChange.d.ts} +0 -2
  373. package/dist/api/types/ResourceChange.js +3 -0
  374. package/{api/types/ResourceSnapshot.ts → dist/api/types/ResourceSnapshot.d.ts} +0 -2
  375. package/dist/api/types/ResourceSnapshot.js +3 -0
  376. package/{api/types/RevokeApiKeyData.ts → dist/api/types/RevokeApiKeyData.d.ts} +0 -2
  377. package/dist/api/types/RevokeApiKeyData.js +3 -0
  378. package/{api/types/RevokeApiKeyResponse.ts → dist/api/types/RevokeApiKeyResponse.d.ts} +0 -3
  379. package/dist/api/types/RevokeApiKeyResponse.js +3 -0
  380. package/{api/types/RiskAssessment.ts → dist/api/types/RiskAssessment.d.ts} +0 -3
  381. package/dist/api/types/RiskAssessment.js +3 -0
  382. package/{api/types/RiskFactor.ts → dist/api/types/RiskFactor.d.ts} +0 -2
  383. package/dist/api/types/RiskFactor.js +3 -0
  384. package/{api/types/SavedBreakdownData.ts → dist/api/types/SavedBreakdownData.d.ts} +0 -3
  385. package/dist/api/types/SavedBreakdownData.js +3 -0
  386. package/{api/types/SavedBreakdownResponse.ts → dist/api/types/SavedBreakdownResponse.d.ts} +0 -3
  387. package/dist/api/types/SavedBreakdownResponse.js +3 -0
  388. package/{api/types/SavedByProviderBreakdownData.ts → dist/api/types/SavedByProviderBreakdownData.d.ts} +0 -3
  389. package/dist/api/types/SavedByProviderBreakdownData.js +3 -0
  390. package/{api/types/SavedByProviderBreakdownResponse.ts → dist/api/types/SavedByProviderBreakdownResponse.d.ts} +0 -3
  391. package/dist/api/types/SavedByProviderBreakdownResponse.js +3 -0
  392. package/{api/types/SavedByProviderItem.ts → dist/api/types/SavedByProviderItem.d.ts} +0 -2
  393. package/dist/api/types/SavedByProviderItem.js +3 -0
  394. package/{api/types/SavedItem.ts → dist/api/types/SavedItem.d.ts} +0 -2
  395. package/dist/api/types/SavedItem.js +3 -0
  396. package/{api/types/SavedProviderSummary.ts → dist/api/types/SavedProviderSummary.d.ts} +0 -2
  397. package/dist/api/types/SavedProviderSummary.js +3 -0
  398. package/{api/types/SavedSummaryData.ts → dist/api/types/SavedSummaryData.d.ts} +0 -3
  399. package/dist/api/types/SavedSummaryData.js +3 -0
  400. package/{api/types/SavedSummaryResponse.ts → dist/api/types/SavedSummaryResponse.d.ts} +0 -3
  401. package/dist/api/types/SavedSummaryResponse.js +3 -0
  402. package/{api/types/SavingsDecisionData.ts → dist/api/types/SavingsDecisionData.d.ts} +0 -2
  403. package/dist/api/types/SavingsDecisionData.js +3 -0
  404. package/{api/types/SavingsDecisionResponse.ts → dist/api/types/SavingsDecisionResponse.d.ts} +0 -3
  405. package/dist/api/types/SavingsDecisionResponse.js +3 -0
  406. package/{api/types/SpendingByDateItem.ts → dist/api/types/SpendingByDateItem.d.ts} +0 -2
  407. package/dist/api/types/SpendingByDateItem.js +3 -0
  408. package/{api/types/TopRecommendation.ts → dist/api/types/TopRecommendation.d.ts} +0 -2
  409. package/dist/api/types/TopRecommendation.js +3 -0
  410. package/{api/types/TriggerInfo.ts → dist/api/types/TriggerInfo.d.ts} +0 -2
  411. package/dist/api/types/TriggerInfo.js +3 -0
  412. package/{api/types/UpdateTagData.ts → dist/api/types/UpdateTagData.d.ts} +0 -2
  413. package/dist/api/types/UpdateTagData.js +3 -0
  414. package/{api/types/UpdateTagResponse.ts → dist/api/types/UpdateTagResponse.d.ts} +0 -3
  415. package/dist/api/types/UpdateTagResponse.js +3 -0
  416. package/dist/api/types/ValidationError.d.ts +13 -0
  417. package/dist/api/types/ValidationError.js +3 -0
  418. package/dist/api/types/index.js +131 -0
  419. package/dist/core/exports.js +17 -0
  420. package/{core/fetcher/APIResponse.ts → dist/core/fetcher/APIResponse.d.ts} +0 -3
  421. package/dist/core/fetcher/APIResponse.js +2 -0
  422. package/{core/fetcher/BinaryResponse.ts → dist/core/fetcher/BinaryResponse.d.ts} +1 -16
  423. package/dist/core/fetcher/BinaryResponse.js +17 -0
  424. package/dist/core/fetcher/EndpointMetadata.js +2 -0
  425. package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
  426. package/dist/core/fetcher/EndpointSupplier.js +13 -0
  427. package/dist/core/fetcher/Fetcher.d.ts +48 -0
  428. package/{core/fetcher/Fetcher.ts → dist/core/fetcher/Fetcher.js} +72 -165
  429. package/dist/core/fetcher/Headers.d.ts +2 -0
  430. package/{core/fetcher/Headers.ts → dist/core/fetcher/Headers.js} +29 -37
  431. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  432. package/{core/fetcher/HttpResponsePromise.ts → dist/core/fetcher/HttpResponsePromise.js} +26 -48
  433. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  434. package/{core/fetcher/RawResponse.ts → dist/core/fetcher/RawResponse.js} +12 -29
  435. package/dist/core/fetcher/Supplier.d.ts +4 -0
  436. package/dist/core/fetcher/Supplier.js +13 -0
  437. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  438. package/dist/core/fetcher/createRequestUrl.js +8 -0
  439. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  440. package/{core/fetcher/getErrorResponseBody.ts → dist/core/fetcher/getErrorResponseBody.js} +9 -9
  441. package/dist/core/fetcher/getFetchFn.d.ts +1 -0
  442. package/dist/core/fetcher/getFetchFn.js +6 -0
  443. package/dist/core/fetcher/getHeader.d.ts +1 -0
  444. package/{core/fetcher/getHeader.ts → dist/core/fetcher/getHeader.js} +4 -1
  445. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  446. package/dist/core/fetcher/getRequestBody.js +16 -0
  447. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  448. package/{core/fetcher/getResponseBody.ts → dist/core/fetcher/getResponseBody.js} +10 -10
  449. package/dist/core/fetcher/index.js +17 -0
  450. package/dist/core/fetcher/makeRequest.d.ts +6 -0
  451. package/{core/fetcher/makeRequest.ts → dist/core/fetcher/makeRequest.js} +18 -29
  452. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  453. package/{core/fetcher/requestWithRetries.ts → dist/core/fetcher/requestWithRetries.js} +11 -19
  454. package/dist/core/fetcher/signals.d.ts +5 -0
  455. package/{core/fetcher/signals.ts → dist/core/fetcher/signals.js} +9 -11
  456. package/dist/core/headers.d.ts +2 -0
  457. package/{core/headers.ts → dist/core/headers.js} +10 -12
  458. package/dist/core/index.js +43 -0
  459. package/dist/core/json.d.ts +15 -0
  460. package/{core/json.ts → dist/core/json.js} +7 -10
  461. package/dist/core/logging/exports.d.ts +18 -0
  462. package/dist/core/logging/exports.js +45 -0
  463. package/dist/core/logging/index.js +17 -0
  464. package/{core/logging/logger.ts → dist/core/logging/logger.d.ts} +26 -103
  465. package/dist/core/logging/logger.js +146 -0
  466. package/dist/core/runtime/index.js +5 -0
  467. package/dist/core/runtime/runtime.d.ts +9 -0
  468. package/{core/runtime/runtime.ts → dist/core/runtime/runtime.js} +7 -38
  469. package/dist/core/url/encodePathParam.d.ts +1 -0
  470. package/{core/url/encodePathParam.ts → dist/core/url/encodePathParam.js} +5 -2
  471. package/dist/core/url/index.js +9 -0
  472. package/dist/core/url/join.d.ts +1 -0
  473. package/{core/url/join.ts → dist/core/url/join.js} +16 -27
  474. package/dist/core/url/qs.d.ts +6 -0
  475. package/{core/url/qs.ts → dist/core/url/qs.js} +19 -26
  476. package/dist/errors/LevelFourError.d.ts +12 -0
  477. package/dist/errors/LevelFourError.js +35 -0
  478. package/dist/errors/LevelFourTimeoutError.d.ts +3 -0
  479. package/{errors/LevelFourTimeoutError.ts → dist/errors/LevelFourTimeoutError.js} +6 -4
  480. package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
  481. package/dist/errors/handleNonStatusCodeError.js +65 -0
  482. package/dist/errors/index.js +7 -0
  483. package/dist/errors.d.ts +29 -0
  484. package/dist/errors.js +98 -0
  485. package/dist/exports.js +17 -0
  486. package/{index.ts → dist/index.d.ts} +1 -11
  487. package/dist/index.js +65 -0
  488. package/dist/pagination.d.ts +23 -0
  489. package/dist/pagination.js +38 -0
  490. package/dist/telemetry.d.ts +2 -0
  491. package/dist/telemetry.js +50 -0
  492. package/dist/webhooks.d.ts +10 -0
  493. package/{webhooks.ts → dist/webhooks.js} +16 -32
  494. package/package.json +9 -4
  495. package/.fernignore +0 -9
  496. package/Client.ts +0 -90
  497. package/LevelFourClient.ts +0 -50
  498. package/api/errors/UnprocessableEntityError.ts +0 -22
  499. package/api/resources/evaluation/client/Client.ts +0 -71
  500. package/api/resources/health/client/Client.ts +0 -108
  501. package/api/resources/prAnalysis/client/Client.ts +0 -100
  502. package/api/resources/providers/types/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetResponse.ts +0 -8
  503. package/api/resources/spending/types/GetCostBreakdownApiV1SpendingBreakdownGetResponse.ts +0 -9
  504. package/api/types/ValidationError.ts +0 -17
  505. package/core/fetcher/EndpointSupplier.ts +0 -14
  506. package/core/fetcher/Supplier.ts +0 -11
  507. package/core/fetcher/createRequestUrl.ts +0 -6
  508. package/core/fetcher/getFetchFn.ts +0 -3
  509. package/core/fetcher/getRequestBody.ts +0 -20
  510. package/core/logging/exports.ts +0 -19
  511. package/errors/LevelFourError.ts +0 -58
  512. package/errors/handleNonStatusCodeError.ts +0 -37
  513. package/errors.ts +0 -100
  514. package/jest.config.js +0 -17
  515. package/pagination.ts +0 -54
  516. package/telemetry.ts +0 -64
  517. package/tests/auth.test.ts +0 -64
  518. package/tests/errors.test.ts +0 -92
  519. package/tests/pagination.test.ts +0 -72
  520. package/tests/telemetry.test.ts +0 -110
  521. package/tsconfig.json +0 -22
  522. /package/{api/errors/index.ts → dist/api/errors/index.d.ts} +0 -0
  523. /package/{api/index.ts → dist/api/index.d.ts} +0 -0
  524. /package/{api/resources/apiKeys/client/index.ts → dist/api/resources/apiKeys/client/index.d.ts} +0 -0
  525. /package/{api/resources/apiKeys/client/requests/index.ts → dist/api/resources/apiKeys/client/requests/index.d.ts} +0 -0
  526. /package/{api/resources/apiKeys/index.ts → dist/api/resources/apiKeys/index.d.ts} +0 -0
  527. /package/{api/resources/evaluation/client/index.ts → dist/api/resources/evaluation/client/index.d.ts} +0 -0
  528. /package/{api/resources/evaluation/index.ts → dist/api/resources/evaluation/index.d.ts} +0 -0
  529. /package/{api/resources/health/client/index.ts → dist/api/resources/health/client/index.d.ts} +0 -0
  530. /package/{api/resources/health/index.ts → dist/api/resources/health/index.d.ts} +0 -0
  531. /package/{api/resources/index.ts → dist/api/resources/index.d.ts} +0 -0
  532. /package/{api/resources/prAnalysis/client/index.ts → dist/api/resources/prAnalysis/client/index.d.ts} +0 -0
  533. /package/{api/resources/prAnalysis/client/requests/index.ts → dist/api/resources/prAnalysis/client/requests/index.d.ts} +0 -0
  534. /package/{api/resources/prAnalysis/index.ts → dist/api/resources/prAnalysis/index.d.ts} +0 -0
  535. /package/{api/resources/prAnalysisActions/client/index.ts → dist/api/resources/prAnalysisActions/client/index.d.ts} +0 -0
  536. /package/{api/resources/prAnalysisActions/client/requests/index.ts → dist/api/resources/prAnalysisActions/client/requests/index.d.ts} +0 -0
  537. /package/{api/resources/prAnalysisActions/index.ts → dist/api/resources/prAnalysisActions/index.d.ts} +0 -0
  538. /package/{api/resources/prAnalysisInstallations/client/index.ts → dist/api/resources/prAnalysisInstallations/client/index.d.ts} +0 -0
  539. /package/{api/resources/prAnalysisInstallations/client/requests/index.ts → dist/api/resources/prAnalysisInstallations/client/requests/index.d.ts} +0 -0
  540. /package/{api/resources/prAnalysisInstallations/index.ts → dist/api/resources/prAnalysisInstallations/index.d.ts} +0 -0
  541. /package/{api/resources/prAnalysisQuery/client/index.ts → dist/api/resources/prAnalysisQuery/client/index.d.ts} +0 -0
  542. /package/{api/resources/prAnalysisQuery/client/requests/index.ts → dist/api/resources/prAnalysisQuery/client/requests/index.d.ts} +0 -0
  543. /package/{api/resources/prAnalysisQuery/index.ts → dist/api/resources/prAnalysisQuery/index.d.ts} +0 -0
  544. /package/{api/resources/providers/client/index.ts → dist/api/resources/providers/client/index.d.ts} +0 -0
  545. /package/{api/resources/providers/client/requests/index.ts → dist/api/resources/providers/client/requests/index.d.ts} +0 -0
  546. /package/{api/resources/providers/index.ts → dist/api/resources/providers/index.d.ts} +0 -0
  547. /package/{api/resources/providers/types/index.ts → dist/api/resources/providers/types/index.d.ts} +0 -0
  548. /package/{api/resources/recommendations/client/index.ts → dist/api/resources/recommendations/client/index.d.ts} +0 -0
  549. /package/{api/resources/recommendations/client/requests/index.ts → dist/api/resources/recommendations/client/requests/index.d.ts} +0 -0
  550. /package/{api/resources/recommendations/index.ts → dist/api/resources/recommendations/index.d.ts} +0 -0
  551. /package/{api/resources/savings/client/index.ts → dist/api/resources/savings/client/index.d.ts} +0 -0
  552. /package/{api/resources/savings/client/requests/index.ts → dist/api/resources/savings/client/requests/index.d.ts} +0 -0
  553. /package/{api/resources/savings/index.ts → dist/api/resources/savings/index.d.ts} +0 -0
  554. /package/{api/resources/spending/client/index.ts → dist/api/resources/spending/client/index.d.ts} +0 -0
  555. /package/{api/resources/spending/client/requests/index.ts → dist/api/resources/spending/client/requests/index.d.ts} +0 -0
  556. /package/{api/resources/spending/index.ts → dist/api/resources/spending/index.d.ts} +0 -0
  557. /package/{api/resources/spending/types/index.ts → dist/api/resources/spending/types/index.d.ts} +0 -0
  558. /package/{api/resources/webhooks/client/index.ts → dist/api/resources/webhooks/client/index.d.ts} +0 -0
  559. /package/{api/resources/webhooks/client/requests/index.ts → dist/api/resources/webhooks/client/requests/index.d.ts} +0 -0
  560. /package/{api/resources/webhooks/index.ts → dist/api/resources/webhooks/index.d.ts} +0 -0
  561. /package/{api/types/index.ts → dist/api/types/index.d.ts} +0 -0
  562. /package/{core/exports.ts → dist/core/exports.d.ts} +0 -0
  563. /package/{core/fetcher/EndpointMetadata.ts → dist/core/fetcher/EndpointMetadata.d.ts} +0 -0
  564. /package/{core/fetcher/index.ts → dist/core/fetcher/index.d.ts} +0 -0
  565. /package/{core/index.ts → dist/core/index.d.ts} +0 -0
  566. /package/{core/logging/index.ts → dist/core/logging/index.d.ts} +0 -0
  567. /package/{core/runtime/index.ts → dist/core/runtime/index.d.ts} +0 -0
  568. /package/{core/url/index.ts → dist/core/url/index.d.ts} +0 -0
  569. /package/{errors/index.ts → dist/errors/index.d.ts} +0 -0
  570. /package/{exports.ts → dist/exports.d.ts} +0 -0
@@ -1,26 +1,51 @@
1
+ "use strict";
1
2
  // This file was auto-generated by Fern from our API Definition.
2
-
3
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
4
- import { type NormalizedClientOptions, normalizeClientOptions } from "../../../../BaseClient.js";
5
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
6
- import * as core from "../../../../core/index.js";
7
- import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
8
- import * as errors from "../../../../errors/index.js";
9
- import * as LevelFour from "../../../index.js";
10
-
11
- export declare namespace WebhooksClient {
12
- export type Options = BaseClientOptions;
13
-
14
- export interface RequestOptions extends BaseRequestOptions {}
15
- }
16
-
17
- export class WebhooksClient {
18
- protected readonly _options: NormalizedClientOptions<WebhooksClient.Options>;
19
-
20
- constructor(options: WebhooksClient.Options) {
21
- this._options = normalizeClientOptions(options);
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.WebhooksClient = void 0;
38
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
39
+ const headers_js_1 = require("../../../../core/headers.js");
40
+ const core = __importStar(require("../../../../core/index.js"));
41
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
42
+ const errors = __importStar(require("../../../../errors/index.js"));
43
+ const LevelFour = __importStar(require("../../../index.js"));
44
+ class WebhooksClient {
45
+ _options;
46
+ constructor(options) {
47
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
22
48
  }
23
-
24
49
  /**
25
50
  * @param {LevelFour.ListEndpointsApiV1WebhooksEndpointsGetRequest} request
26
51
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -32,29 +57,15 @@ export class WebhooksClient {
32
57
  * authorization: "authorization"
33
58
  * })
34
59
  */
35
- public listEndpoints(
36
- request: LevelFour.ListEndpointsApiV1WebhooksEndpointsGetRequest,
37
- requestOptions?: WebhooksClient.RequestOptions,
38
- ): core.HttpResponsePromise<LevelFour.ListEndpointsResponse> {
60
+ listEndpoints(request, requestOptions) {
39
61
  return core.HttpResponsePromise.fromPromise(this.__listEndpoints(request, requestOptions));
40
62
  }
41
-
42
- private async __listEndpoints(
43
- request: LevelFour.ListEndpointsApiV1WebhooksEndpointsGetRequest,
44
- requestOptions?: WebhooksClient.RequestOptions,
45
- ): Promise<core.WithRawResponse<LevelFour.ListEndpointsResponse>> {
63
+ async __listEndpoints(request, requestOptions) {
46
64
  const { authorization } = request;
47
- const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
48
- this._options?.headers,
49
- mergeOnlyDefinedHeaders({ authorization: authorization }),
50
- requestOptions?.headers,
51
- );
65
+ const _headers = (0, headers_js_1.mergeHeaders)(this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ authorization: authorization }), requestOptions?.headers);
52
66
  const _response = await core.fetcher({
53
- url: core.url.join(
54
- (await core.Supplier.get(this._options.baseUrl)) ??
55
- (await core.Supplier.get(this._options.environment)),
56
- "api/v1/webhooks/endpoints",
57
- ),
67
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
68
+ (await core.Supplier.get(this._options.environment)), "api/v1/webhooks/endpoints"),
58
69
  method: "GET",
59
70
  headers: _headers,
60
71
  queryParameters: requestOptions?.queryParams,
@@ -65,16 +76,12 @@ export class WebhooksClient {
65
76
  logging: this._options.logging,
66
77
  });
67
78
  if (_response.ok) {
68
- return { data: _response.body as LevelFour.ListEndpointsResponse, rawResponse: _response.rawResponse };
79
+ return { data: _response.body, rawResponse: _response.rawResponse };
69
80
  }
70
-
71
81
  if (_response.error.reason === "status-code") {
72
82
  switch (_response.error.statusCode) {
73
83
  case 422:
74
- throw new LevelFour.UnprocessableEntityError(
75
- _response.error.body as LevelFour.HttpValidationError,
76
- _response.rawResponse,
77
- );
84
+ throw new LevelFour.UnprocessableEntityError(_response.error.body, _response.rawResponse);
78
85
  default:
79
86
  throw new errors.LevelFourError({
80
87
  statusCode: _response.error.statusCode,
@@ -83,10 +90,8 @@ export class WebhooksClient {
83
90
  });
84
91
  }
85
92
  }
86
-
87
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/webhooks/endpoints");
93
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/webhooks/endpoints");
88
94
  }
89
-
90
95
  /**
91
96
  * @param {LevelFour.RegisterEndpointRequest} request
92
97
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -100,29 +105,15 @@ export class WebhooksClient {
100
105
  * event_types: ["event_types"]
101
106
  * })
102
107
  */
103
- public registerEndpoint(
104
- request: LevelFour.RegisterEndpointRequest,
105
- requestOptions?: WebhooksClient.RequestOptions,
106
- ): core.HttpResponsePromise<LevelFour.RegisterEndpointResponse> {
108
+ registerEndpoint(request, requestOptions) {
107
109
  return core.HttpResponsePromise.fromPromise(this.__registerEndpoint(request, requestOptions));
108
110
  }
109
-
110
- private async __registerEndpoint(
111
- request: LevelFour.RegisterEndpointRequest,
112
- requestOptions?: WebhooksClient.RequestOptions,
113
- ): Promise<core.WithRawResponse<LevelFour.RegisterEndpointResponse>> {
111
+ async __registerEndpoint(request, requestOptions) {
114
112
  const { authorization, ..._body } = request;
115
- const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
116
- this._options?.headers,
117
- mergeOnlyDefinedHeaders({ authorization: authorization }),
118
- requestOptions?.headers,
119
- );
113
+ const _headers = (0, headers_js_1.mergeHeaders)(this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ authorization: authorization }), requestOptions?.headers);
120
114
  const _response = await core.fetcher({
121
- url: core.url.join(
122
- (await core.Supplier.get(this._options.baseUrl)) ??
123
- (await core.Supplier.get(this._options.environment)),
124
- "api/v1/webhooks/endpoints",
125
- ),
115
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
116
+ (await core.Supplier.get(this._options.environment)), "api/v1/webhooks/endpoints"),
126
117
  method: "POST",
127
118
  headers: _headers,
128
119
  contentType: "application/json",
@@ -136,16 +127,12 @@ export class WebhooksClient {
136
127
  logging: this._options.logging,
137
128
  });
138
129
  if (_response.ok) {
139
- return { data: _response.body as LevelFour.RegisterEndpointResponse, rawResponse: _response.rawResponse };
130
+ return { data: _response.body, rawResponse: _response.rawResponse };
140
131
  }
141
-
142
132
  if (_response.error.reason === "status-code") {
143
133
  switch (_response.error.statusCode) {
144
134
  case 422:
145
- throw new LevelFour.UnprocessableEntityError(
146
- _response.error.body as LevelFour.HttpValidationError,
147
- _response.rawResponse,
148
- );
135
+ throw new LevelFour.UnprocessableEntityError(_response.error.body, _response.rawResponse);
149
136
  default:
150
137
  throw new errors.LevelFourError({
151
138
  statusCode: _response.error.statusCode,
@@ -154,10 +141,8 @@ export class WebhooksClient {
154
141
  });
155
142
  }
156
143
  }
157
-
158
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/webhooks/endpoints");
144
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/v1/webhooks/endpoints");
159
145
  }
160
-
161
146
  /**
162
147
  * @param {LevelFour.DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest} request
163
148
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -170,29 +155,15 @@ export class WebhooksClient {
170
155
  * endpoint_id: "endpoint_id"
171
156
  * })
172
157
  */
173
- public deleteEndpoint(
174
- request: LevelFour.DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest,
175
- requestOptions?: WebhooksClient.RequestOptions,
176
- ): core.HttpResponsePromise<LevelFour.DeleteEndpointResponse> {
158
+ deleteEndpoint(request, requestOptions) {
177
159
  return core.HttpResponsePromise.fromPromise(this.__deleteEndpoint(request, requestOptions));
178
160
  }
179
-
180
- private async __deleteEndpoint(
181
- request: LevelFour.DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest,
182
- requestOptions?: WebhooksClient.RequestOptions,
183
- ): Promise<core.WithRawResponse<LevelFour.DeleteEndpointResponse>> {
161
+ async __deleteEndpoint(request, requestOptions) {
184
162
  const { endpoint_id: endpointId, authorization } = request;
185
- const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
186
- this._options?.headers,
187
- mergeOnlyDefinedHeaders({ authorization: authorization }),
188
- requestOptions?.headers,
189
- );
163
+ const _headers = (0, headers_js_1.mergeHeaders)(this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ authorization: authorization }), requestOptions?.headers);
190
164
  const _response = await core.fetcher({
191
- url: core.url.join(
192
- (await core.Supplier.get(this._options.baseUrl)) ??
193
- (await core.Supplier.get(this._options.environment)),
194
- `api/v1/webhooks/endpoints/${core.url.encodePathParam(endpointId)}`,
195
- ),
165
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
166
+ (await core.Supplier.get(this._options.environment)), `api/v1/webhooks/endpoints/${core.url.encodePathParam(endpointId)}`),
196
167
  method: "DELETE",
197
168
  headers: _headers,
198
169
  queryParameters: requestOptions?.queryParams,
@@ -203,16 +174,12 @@ export class WebhooksClient {
203
174
  logging: this._options.logging,
204
175
  });
205
176
  if (_response.ok) {
206
- return { data: _response.body as LevelFour.DeleteEndpointResponse, rawResponse: _response.rawResponse };
177
+ return { data: _response.body, rawResponse: _response.rawResponse };
207
178
  }
208
-
209
179
  if (_response.error.reason === "status-code") {
210
180
  switch (_response.error.statusCode) {
211
181
  case 422:
212
- throw new LevelFour.UnprocessableEntityError(
213
- _response.error.body as LevelFour.HttpValidationError,
214
- _response.rawResponse,
215
- );
182
+ throw new LevelFour.UnprocessableEntityError(_response.error.body, _response.rawResponse);
216
183
  default:
217
184
  throw new errors.LevelFourError({
218
185
  statusCode: _response.error.statusCode,
@@ -221,12 +188,7 @@ export class WebhooksClient {
221
188
  });
222
189
  }
223
190
  }
224
-
225
- return handleNonStatusCodeError(
226
- _response.error,
227
- _response.rawResponse,
228
- "DELETE",
229
- "/api/v1/webhooks/endpoints/{endpoint_id}",
230
- );
191
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/v1/webhooks/endpoints/{endpoint_id}");
231
192
  }
232
193
  }
194
+ exports.WebhooksClient = WebhooksClient;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  /**
4
2
  * @example
5
3
  * {
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,2 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  export { WebhooksClient } from "./client/Client.js";
4
2
  export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.WebhooksClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "WebhooksClient", { enumerable: true, get: function () { return Client_js_1.WebhooksClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  /**
4
2
  * Data returned after accepting terms
5
3
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Response after accepting terms
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  export interface ActionRequest {
4
2
  /** GitHub repository full name, e.g. acme/infrastructure */
5
3
  repository: string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  export interface ApiKeyCreatedData {
4
2
  id: string;
5
3
  name: string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  export interface ApiKeyData {
4
2
  id: string;
5
3
  name: string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  export interface ComparisonItem {
4
2
  /** Row label, e.g. 'Monthly Cost' */
5
3
  label: string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  /**
4
2
  * Data returned after completing the wizard
5
3
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Response after completing the wizard
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Cost breakdown data with pagination
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  /**
4
2
  * Single service cost breakdown item
5
3
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Cost breakdown raw data without pagination
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Response for raw cost breakdown (all records)
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Response for cost breakdown table
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Costs breakdown chart data for stacked bar visualization
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Response for costs breakdown chart
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  /**
4
2
  * Single data point for costs breakdown chart
5
3
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Costs breakdown chart data grouped by account_id
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,4 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  import type * as LevelFour from "../index.js";
4
-
5
2
  /**
6
3
  * Response for grouped costs breakdown chart
7
4
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,3 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
-
3
1
  /**
4
2
  * Single data point for grouped costs breakdown chart
5
3
  */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });