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.
- package/{BaseClient.ts → dist/BaseClient.d.ts} +1 -25
- package/dist/BaseClient.js +51 -0
- package/dist/Client.d.ts +47 -0
- package/dist/Client.js +72 -0
- package/dist/LevelFourClient.d.ts +12 -0
- package/dist/LevelFourClient.js +36 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/dist/api/errors/UnprocessableEntityError.js +54 -0
- package/dist/api/errors/index.js +17 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/apiKeys/client/Client.d.ts +68 -0
- package/{api/resources/apiKeys/client/Client.ts → dist/api/resources/apiKeys/client/Client.js} +79 -137
- package/dist/api/resources/apiKeys/client/index.js +17 -0
- package/{api/resources/apiKeys/client/requests/CreateApiKeyRequest.ts → dist/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts} +6 -9
- package/dist/api/resources/apiKeys/client/requests/CreateApiKeyRequest.js +11 -0
- package/{api/resources/apiKeys/client/requests/ListApiKeysApiV1ApiKeysGetRequest.ts → dist/api/resources/apiKeys/client/requests/ListApiKeysApiV1ApiKeysGetRequest.d.ts} +0 -2
- package/dist/api/resources/apiKeys/client/requests/ListApiKeysApiV1ApiKeysGetRequest.js +3 -0
- package/{api/resources/apiKeys/client/requests/RevokeApiKeyApiV1ApiKeysKeyIdDeleteRequest.ts → dist/api/resources/apiKeys/client/requests/RevokeApiKeyApiV1ApiKeysKeyIdDeleteRequest.d.ts} +0 -2
- package/dist/api/resources/apiKeys/client/requests/RevokeApiKeyApiV1ApiKeysKeyIdDeleteRequest.js +3 -0
- package/{api/resources/apiKeys/client/requests/RotateApiKeyApiV1ApiKeysKeyIdRotatePostRequest.ts → dist/api/resources/apiKeys/client/requests/RotateApiKeyApiV1ApiKeysKeyIdRotatePostRequest.d.ts} +0 -2
- package/dist/api/resources/apiKeys/client/requests/RotateApiKeyApiV1ApiKeysKeyIdRotatePostRequest.js +3 -0
- package/dist/api/resources/apiKeys/client/requests/index.js +5 -0
- package/{api/resources/apiKeys/exports.ts → dist/api/resources/apiKeys/exports.d.ts} +0 -2
- package/dist/api/resources/apiKeys/exports.js +21 -0
- package/dist/api/resources/apiKeys/index.js +17 -0
- package/dist/api/resources/evaluation/client/Client.d.ts +23 -0
- package/dist/api/resources/evaluation/client/Client.js +86 -0
- package/dist/api/resources/evaluation/client/index.js +2 -0
- package/{api/resources/evaluation/exports.ts → dist/api/resources/evaluation/exports.d.ts} +0 -2
- package/dist/api/resources/evaluation/exports.js +21 -0
- package/dist/api/resources/evaluation/index.js +17 -0
- package/dist/api/resources/health/client/Client.d.ts +32 -0
- package/dist/api/resources/health/client/Client.js +123 -0
- package/dist/api/resources/health/client/index.js +2 -0
- package/{api/resources/health/exports.ts → dist/api/resources/health/exports.d.ts} +0 -2
- package/dist/api/resources/health/exports.js +21 -0
- package/dist/api/resources/health/index.js +17 -0
- package/dist/api/resources/index.js +63 -0
- package/dist/api/resources/prAnalysis/client/Client.d.ts +34 -0
- package/dist/api/resources/prAnalysis/client/Client.js +107 -0
- package/dist/api/resources/prAnalysis/client/index.js +17 -0
- package/{api/resources/prAnalysis/client/requests/AnalyzePrRequest.ts → dist/api/resources/prAnalysis/client/requests/AnalyzePrRequest.d.ts} +0 -3
- package/dist/api/resources/prAnalysis/client/requests/AnalyzePrRequest.js +3 -0
- package/dist/api/resources/prAnalysis/client/requests/index.js +2 -0
- package/{api/resources/prAnalysis/exports.ts → dist/api/resources/prAnalysis/exports.d.ts} +0 -2
- package/dist/api/resources/prAnalysis/exports.js +21 -0
- package/dist/api/resources/prAnalysis/index.js +17 -0
- package/dist/api/resources/prAnalysisActions/client/Client.d.ts +101 -0
- package/{api/resources/prAnalysisActions/client/Client.ts → dist/api/resources/prAnalysisActions/client/Client.js} +84 -182
- package/dist/api/resources/prAnalysisActions/client/index.js +17 -0
- package/{api/resources/prAnalysisActions/client/requests/DismissSuggestionsApiV1PrAnalysisActionsDismissPostRequest.ts → dist/api/resources/prAnalysisActions/client/requests/DismissSuggestionsApiV1PrAnalysisActionsDismissPostRequest.d.ts} +0 -3
- package/dist/api/resources/prAnalysisActions/client/requests/DismissSuggestionsApiV1PrAnalysisActionsDismissPostRequest.js +3 -0
- package/{api/resources/prAnalysisActions/client/requests/GetIgnoredResourcesApiV1PrAnalysisActionsIgnoreGetRequest.ts → dist/api/resources/prAnalysisActions/client/requests/GetIgnoredResourcesApiV1PrAnalysisActionsIgnoreGetRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisActions/client/requests/GetIgnoredResourcesApiV1PrAnalysisActionsIgnoreGetRequest.js +3 -0
- package/{api/resources/prAnalysisActions/client/requests/GetPrStatusApiV1PrAnalysisActionsStatusGetRequest.ts → dist/api/resources/prAnalysisActions/client/requests/GetPrStatusApiV1PrAnalysisActionsStatusGetRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisActions/client/requests/GetPrStatusApiV1PrAnalysisActionsStatusGetRequest.js +3 -0
- package/{api/resources/prAnalysisActions/client/requests/IgnoreRequest.ts → dist/api/resources/prAnalysisActions/client/requests/IgnoreRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisActions/client/requests/IgnoreRequest.js +3 -0
- package/{api/resources/prAnalysisActions/client/requests/SnoozeSuggestionsApiV1PrAnalysisActionsSnoozePostRequest.ts → dist/api/resources/prAnalysisActions/client/requests/SnoozeSuggestionsApiV1PrAnalysisActionsSnoozePostRequest.d.ts} +0 -3
- package/dist/api/resources/prAnalysisActions/client/requests/SnoozeSuggestionsApiV1PrAnalysisActionsSnoozePostRequest.js +3 -0
- package/dist/api/resources/prAnalysisActions/client/requests/index.js +2 -0
- package/{api/resources/prAnalysisActions/exports.ts → dist/api/resources/prAnalysisActions/exports.d.ts} +0 -2
- package/dist/api/resources/prAnalysisActions/exports.js +21 -0
- package/dist/api/resources/prAnalysisActions/index.js +17 -0
- package/dist/api/resources/prAnalysisInstallations/client/Client.d.ts +89 -0
- package/{api/resources/prAnalysisInstallations/client/Client.ts → dist/api/resources/prAnalysisInstallations/client/Client.js} +86 -184
- package/dist/api/resources/prAnalysisInstallations/client/index.js +17 -0
- package/{api/resources/prAnalysisInstallations/client/requests/AddReposRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/AddReposRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisInstallations/client/requests/AddReposRequest.js +3 -0
- package/{api/resources/prAnalysisInstallations/client/requests/DeleteInstallationApiV1PrAnalysisInstallationsInstallationIdDeleteRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/DeleteInstallationApiV1PrAnalysisInstallationsInstallationIdDeleteRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisInstallations/client/requests/DeleteInstallationApiV1PrAnalysisInstallationsInstallationIdDeleteRequest.js +3 -0
- package/{api/resources/prAnalysisInstallations/client/requests/ListInstallationsApiV1PrAnalysisInstallationsGetRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/ListInstallationsApiV1PrAnalysisInstallationsGetRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisInstallations/client/requests/ListInstallationsApiV1PrAnalysisInstallationsGetRequest.js +3 -0
- package/{api/resources/prAnalysisInstallations/client/requests/RegisterInstallationRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/RegisterInstallationRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisInstallations/client/requests/RegisterInstallationRequest.js +3 -0
- package/{api/resources/prAnalysisInstallations/client/requests/RemoveReposRequest.ts → dist/api/resources/prAnalysisInstallations/client/requests/RemoveReposRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisInstallations/client/requests/RemoveReposRequest.js +3 -0
- package/dist/api/resources/prAnalysisInstallations/client/requests/index.js +2 -0
- package/{api/resources/prAnalysisInstallations/exports.ts → dist/api/resources/prAnalysisInstallations/exports.d.ts} +0 -2
- package/dist/api/resources/prAnalysisInstallations/exports.js +21 -0
- package/dist/api/resources/prAnalysisInstallations/index.js +17 -0
- package/dist/api/resources/prAnalysisQuery/client/Client.d.ts +47 -0
- package/{api/resources/prAnalysisQuery/client/Client.ts → dist/api/resources/prAnalysisQuery/client/Client.js} +61 -74
- package/dist/api/resources/prAnalysisQuery/client/index.js +17 -0
- package/{api/resources/prAnalysisQuery/client/requests/ExplainRequest.ts → dist/api/resources/prAnalysisQuery/client/requests/ExplainRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisQuery/client/requests/ExplainRequest.js +3 -0
- package/{api/resources/prAnalysisQuery/client/requests/WhatifRequest.ts → dist/api/resources/prAnalysisQuery/client/requests/WhatifRequest.d.ts} +0 -2
- package/dist/api/resources/prAnalysisQuery/client/requests/WhatifRequest.js +3 -0
- package/dist/api/resources/prAnalysisQuery/client/requests/index.js +2 -0
- package/{api/resources/prAnalysisQuery/exports.ts → dist/api/resources/prAnalysisQuery/exports.d.ts} +0 -2
- package/dist/api/resources/prAnalysisQuery/exports.js +21 -0
- package/dist/api/resources/prAnalysisQuery/index.js +17 -0
- package/dist/api/resources/providers/client/Client.d.ts +193 -0
- package/{api/resources/providers/client/Client.ts → dist/api/resources/providers/client/Client.js} +172 -449
- package/dist/api/resources/providers/client/index.js +17 -0
- package/{api/resources/providers/client/requests/GetProviderFilterOptionsApiV1ProvidersProviderIdSpendingFilterOptionsGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderFilterOptionsApiV1ProvidersProviderIdSpendingFilterOptionsGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderFilterOptionsApiV1ProvidersProviderIdSpendingFilterOptionsGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderPotentialSavingsBreakdownApiV1ProvidersProviderIdPotentialSavingsBreakdownGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderPotentialSavingsBreakdownApiV1ProvidersProviderIdPotentialSavingsBreakdownGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderPotentialSavingsBreakdownApiV1ProvidersProviderIdPotentialSavingsBreakdownGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderPotentialSavingsSummaryApiV1ProvidersProviderIdPotentialSavingsSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderPotentialSavingsSummaryApiV1ProvidersProviderIdPotentialSavingsSummaryGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderPotentialSavingsSummaryApiV1ProvidersProviderIdPotentialSavingsSummaryGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderRecommendationFilterOptionsApiV1ProvidersProviderIdRecommendationsFilterOptionsGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationFilterOptionsApiV1ProvidersProviderIdRecommendationsFilterOptionsGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderRecommendationFilterOptionsApiV1ProvidersProviderIdRecommendationsFilterOptionsGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderRecommendationsBreakdownApiV1ProvidersProviderIdRecommendationsGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationsBreakdownApiV1ProvidersProviderIdRecommendationsGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderRecommendationsBreakdownApiV1ProvidersProviderIdRecommendationsGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderRecommendationsOverviewApiV1ProvidersProviderIdRecommendationsOverviewGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationsOverviewApiV1ProvidersProviderIdRecommendationsOverviewGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderRecommendationsOverviewApiV1ProvidersProviderIdRecommendationsOverviewGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderRecommendationsSummaryApiV1ProvidersProviderIdRecommendationsSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderRecommendationsSummaryApiV1ProvidersProviderIdRecommendationsSummaryGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderRecommendationsSummaryApiV1ProvidersProviderIdRecommendationsSummaryGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderSavedSummaryApiV1ProvidersProviderIdSavingsSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderSavedSummaryApiV1ProvidersProviderIdSavingsSummaryGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderSavedSummaryApiV1ProvidersProviderIdSavingsSummaryGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderSpendingSummaryApiV1ProvidersProviderIdSpendingSummaryGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderSpendingSummaryApiV1ProvidersProviderIdSpendingSummaryGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderSpendingSummaryApiV1ProvidersProviderIdSpendingSummaryGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetProviderSpendingTimelineApiV1ProvidersProviderIdSpendingTimelineGetRequest.ts → dist/api/resources/providers/client/requests/GetProviderSpendingTimelineApiV1ProvidersProviderIdSpendingTimelineGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetProviderSpendingTimelineApiV1ProvidersProviderIdSpendingTimelineGetRequest.js +3 -0
- package/{api/resources/providers/client/requests/GetSavedByProviderBreakdownApiV1ProvidersProviderIdSavingsBreakdownGetRequest.ts → dist/api/resources/providers/client/requests/GetSavedByProviderBreakdownApiV1ProvidersProviderIdSavingsBreakdownGetRequest.d.ts} +0 -2
- package/dist/api/resources/providers/client/requests/GetSavedByProviderBreakdownApiV1ProvidersProviderIdSavingsBreakdownGetRequest.js +3 -0
- package/dist/api/resources/providers/client/requests/index.js +2 -0
- package/{api/resources/providers/exports.ts → dist/api/resources/providers/exports.d.ts} +0 -2
- package/dist/api/resources/providers/exports.js +21 -0
- package/dist/api/resources/providers/index.js +18 -0
- package/dist/api/resources/providers/types/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetResponse.d.ts +2 -0
- package/dist/api/resources/providers/types/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetResponse.js +3 -0
- package/dist/api/resources/providers/types/index.js +17 -0
- package/dist/api/resources/recommendations/client/Client.d.ts +173 -0
- package/{api/resources/recommendations/client/Client.ts → dist/api/resources/recommendations/client/Client.js} +140 -340
- package/dist/api/resources/recommendations/client/index.js +17 -0
- package/{api/resources/recommendations/client/requests/AcceptTermsApiV1RecommendationsRecommendationIdAcceptTermsPostRequest.ts → dist/api/resources/recommendations/client/requests/AcceptTermsApiV1RecommendationsRecommendationIdAcceptTermsPostRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/AcceptTermsApiV1RecommendationsRecommendationIdAcceptTermsPostRequest.js +3 -0
- package/{api/resources/recommendations/client/requests/CompleteWizardApiV1RecommendationsRecommendationIdCompletePostRequest.ts → dist/api/resources/recommendations/client/requests/CompleteWizardApiV1RecommendationsRecommendationIdCompletePostRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/CompleteWizardApiV1RecommendationsRecommendationIdCompletePostRequest.js +3 -0
- package/{api/resources/recommendations/client/requests/GetRecommendationDetailsApiV1RecommendationsRecommendationIdDetailsGetRequest.ts → dist/api/resources/recommendations/client/requests/GetRecommendationDetailsApiV1RecommendationsRecommendationIdDetailsGetRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/GetRecommendationDetailsApiV1RecommendationsRecommendationIdDetailsGetRequest.js +3 -0
- package/{api/resources/recommendations/client/requests/GetRecommendationForWizardApiV1RecommendationsRecommendationIdGetRequest.ts → dist/api/resources/recommendations/client/requests/GetRecommendationForWizardApiV1RecommendationsRecommendationIdGetRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/GetRecommendationForWizardApiV1RecommendationsRecommendationIdGetRequest.js +3 -0
- package/{api/resources/recommendations/client/requests/GetRecommendationsApiV1RecommendationsGetRequest.ts → dist/api/resources/recommendations/client/requests/GetRecommendationsApiV1RecommendationsGetRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/GetRecommendationsApiV1RecommendationsGetRequest.js +3 -0
- package/{api/resources/recommendations/client/requests/ImplementationMethodRequest.ts → dist/api/resources/recommendations/client/requests/ImplementationMethodRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/ImplementationMethodRequest.js +3 -0
- package/{api/resources/recommendations/client/requests/SavingsDecisionRequest.ts → dist/api/resources/recommendations/client/requests/SavingsDecisionRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/SavingsDecisionRequest.js +3 -0
- package/{api/resources/recommendations/client/requests/UpdateTagRequest.ts → dist/api/resources/recommendations/client/requests/UpdateTagRequest.d.ts} +0 -2
- package/dist/api/resources/recommendations/client/requests/UpdateTagRequest.js +3 -0
- package/dist/api/resources/recommendations/client/requests/index.js +2 -0
- package/{api/resources/recommendations/exports.ts → dist/api/resources/recommendations/exports.d.ts} +0 -2
- package/dist/api/resources/recommendations/exports.js +21 -0
- package/dist/api/resources/recommendations/index.js +17 -0
- package/dist/api/resources/savings/client/Client.d.ts +52 -0
- package/{api/resources/savings/client/Client.ts → dist/api/resources/savings/client/Client.js} +75 -108
- package/dist/api/resources/savings/client/index.js +17 -0
- package/{api/resources/savings/client/requests/ExecutionRequestBody.ts → dist/api/resources/savings/client/requests/ExecutionRequestBody.d.ts} +0 -2
- package/dist/api/resources/savings/client/requests/ExecutionRequestBody.js +3 -0
- package/{api/resources/savings/client/requests/GetSavedBreakdownApiV1SavingsBreakdownGetRequest.ts → dist/api/resources/savings/client/requests/GetSavedBreakdownApiV1SavingsBreakdownGetRequest.d.ts} +0 -2
- package/dist/api/resources/savings/client/requests/GetSavedBreakdownApiV1SavingsBreakdownGetRequest.js +3 -0
- package/dist/api/resources/savings/client/requests/index.js +2 -0
- package/{api/resources/savings/exports.ts → dist/api/resources/savings/exports.d.ts} +0 -2
- package/dist/api/resources/savings/exports.js +21 -0
- package/dist/api/resources/savings/index.js +17 -0
- package/dist/api/resources/spending/client/Client.d.ts +59 -0
- package/{api/resources/spending/client/Client.ts → dist/api/resources/spending/client/Client.js} +80 -129
- package/dist/api/resources/spending/client/index.js +17 -0
- package/{api/resources/spending/client/requests/GetCostBreakdownApiV1SpendingBreakdownGetRequest.ts → dist/api/resources/spending/client/requests/GetCostBreakdownApiV1SpendingBreakdownGetRequest.d.ts} +0 -2
- package/dist/api/resources/spending/client/requests/GetCostBreakdownApiV1SpendingBreakdownGetRequest.js +3 -0
- package/{api/resources/spending/client/requests/GetDailySpendingBreakdownApiV1SpendingDailyBreakdownGetRequest.ts → dist/api/resources/spending/client/requests/GetDailySpendingBreakdownApiV1SpendingDailyBreakdownGetRequest.d.ts} +0 -2
- package/dist/api/resources/spending/client/requests/GetDailySpendingBreakdownApiV1SpendingDailyBreakdownGetRequest.js +3 -0
- package/dist/api/resources/spending/client/requests/index.js +2 -0
- package/{api/resources/spending/exports.ts → dist/api/resources/spending/exports.d.ts} +0 -2
- package/dist/api/resources/spending/exports.js +21 -0
- package/dist/api/resources/spending/index.js +18 -0
- package/dist/api/resources/spending/types/GetCostBreakdownApiV1SpendingBreakdownGetResponse.d.ts +2 -0
- package/dist/api/resources/spending/types/GetCostBreakdownApiV1SpendingBreakdownGetResponse.js +3 -0
- package/dist/api/resources/spending/types/index.js +17 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +55 -0
- package/{api/resources/webhooks/client/Client.ts → dist/api/resources/webhooks/client/Client.js} +71 -109
- package/dist/api/resources/webhooks/client/index.js +17 -0
- package/{api/resources/webhooks/client/requests/DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest.ts → dist/api/resources/webhooks/client/requests/DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest.d.ts} +0 -2
- package/dist/api/resources/webhooks/client/requests/DeleteEndpointApiV1WebhooksEndpointsEndpointIdDeleteRequest.js +3 -0
- package/{api/resources/webhooks/client/requests/ListEndpointsApiV1WebhooksEndpointsGetRequest.ts → dist/api/resources/webhooks/client/requests/ListEndpointsApiV1WebhooksEndpointsGetRequest.d.ts} +0 -2
- package/dist/api/resources/webhooks/client/requests/ListEndpointsApiV1WebhooksEndpointsGetRequest.js +3 -0
- package/{api/resources/webhooks/client/requests/RegisterEndpointRequest.ts → dist/api/resources/webhooks/client/requests/RegisterEndpointRequest.d.ts} +0 -2
- package/dist/api/resources/webhooks/client/requests/RegisterEndpointRequest.js +3 -0
- package/dist/api/resources/webhooks/client/requests/index.js +2 -0
- package/{api/resources/webhooks/exports.ts → dist/api/resources/webhooks/exports.d.ts} +0 -2
- package/dist/api/resources/webhooks/exports.js +21 -0
- package/dist/api/resources/webhooks/index.js +17 -0
- package/{api/types/AcceptTermsData.ts → dist/api/types/AcceptTermsData.d.ts} +0 -2
- package/dist/api/types/AcceptTermsData.js +3 -0
- package/{api/types/AcceptTermsResponse.ts → dist/api/types/AcceptTermsResponse.d.ts} +0 -3
- package/dist/api/types/AcceptTermsResponse.js +3 -0
- package/{api/types/ActionRequest.ts → dist/api/types/ActionRequest.d.ts} +0 -2
- package/dist/api/types/ActionRequest.js +3 -0
- package/{api/types/ApiKeyCreatedData.ts → dist/api/types/ApiKeyCreatedData.d.ts} +0 -2
- package/dist/api/types/ApiKeyCreatedData.js +3 -0
- package/{api/types/ApiKeyData.ts → dist/api/types/ApiKeyData.d.ts} +0 -2
- package/dist/api/types/ApiKeyData.js +3 -0
- package/{api/types/ComparisonItem.ts → dist/api/types/ComparisonItem.d.ts} +0 -2
- package/dist/api/types/ComparisonItem.js +3 -0
- package/{api/types/CompleteWizardData.ts → dist/api/types/CompleteWizardData.d.ts} +0 -2
- package/dist/api/types/CompleteWizardData.js +3 -0
- package/{api/types/CompleteWizardResponse.ts → dist/api/types/CompleteWizardResponse.d.ts} +0 -3
- package/dist/api/types/CompleteWizardResponse.js +3 -0
- package/{api/types/CostBreakdownData.ts → dist/api/types/CostBreakdownData.d.ts} +0 -3
- package/dist/api/types/CostBreakdownData.js +3 -0
- package/{api/types/CostBreakdownItem.ts → dist/api/types/CostBreakdownItem.d.ts} +0 -2
- package/dist/api/types/CostBreakdownItem.js +3 -0
- package/{api/types/CostBreakdownRawData.ts → dist/api/types/CostBreakdownRawData.d.ts} +0 -3
- package/dist/api/types/CostBreakdownRawData.js +3 -0
- package/{api/types/CostBreakdownRawResponse.ts → dist/api/types/CostBreakdownRawResponse.d.ts} +0 -3
- package/dist/api/types/CostBreakdownRawResponse.js +3 -0
- package/{api/types/CostBreakdownResponse.ts → dist/api/types/CostBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/CostBreakdownResponse.js +3 -0
- package/{api/types/CostsBreakdownChartData.ts → dist/api/types/CostsBreakdownChartData.d.ts} +0 -3
- package/dist/api/types/CostsBreakdownChartData.js +3 -0
- package/{api/types/CostsBreakdownChartResponse.ts → dist/api/types/CostsBreakdownChartResponse.d.ts} +0 -3
- package/dist/api/types/CostsBreakdownChartResponse.js +3 -0
- package/{api/types/CostsBreakdownDataPoint.ts → dist/api/types/CostsBreakdownDataPoint.d.ts} +0 -2
- package/dist/api/types/CostsBreakdownDataPoint.js +3 -0
- package/{api/types/CostsBreakdownGroupedChartData.ts → dist/api/types/CostsBreakdownGroupedChartData.d.ts} +0 -3
- package/dist/api/types/CostsBreakdownGroupedChartData.js +3 -0
- package/{api/types/CostsBreakdownGroupedChartResponse.ts → dist/api/types/CostsBreakdownGroupedChartResponse.d.ts} +0 -3
- package/dist/api/types/CostsBreakdownGroupedChartResponse.js +3 -0
- package/{api/types/CostsBreakdownGroupedDataPoint.ts → dist/api/types/CostsBreakdownGroupedDataPoint.d.ts} +0 -2
- package/dist/api/types/CostsBreakdownGroupedDataPoint.js +3 -0
- package/{api/types/CostsBreakdownTotals.ts → dist/api/types/CostsBreakdownTotals.d.ts} +0 -2
- package/dist/api/types/CostsBreakdownTotals.js +3 -0
- package/{api/types/CreateApiKeyResponse.ts → dist/api/types/CreateApiKeyResponse.d.ts} +0 -3
- package/dist/api/types/CreateApiKeyResponse.js +3 -0
- package/{api/types/DailySpendingBreakdownData.ts → dist/api/types/DailySpendingBreakdownData.d.ts} +0 -3
- package/dist/api/types/DailySpendingBreakdownData.js +3 -0
- package/{api/types/DailySpendingBreakdownResponse.ts → dist/api/types/DailySpendingBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/DailySpendingBreakdownResponse.js +3 -0
- package/{api/types/DailySpendingDataPoint.ts → dist/api/types/DailySpendingDataPoint.d.ts} +0 -2
- package/dist/api/types/DailySpendingDataPoint.js +3 -0
- package/{api/types/DashboardSummaryData.ts → dist/api/types/DashboardSummaryData.d.ts} +0 -3
- package/dist/api/types/DashboardSummaryData.js +3 -0
- package/{api/types/DashboardSummaryResponse.ts → dist/api/types/DashboardSummaryResponse.d.ts} +0 -3
- package/dist/api/types/DashboardSummaryResponse.js +3 -0
- package/{api/types/DeleteEndpointData.ts → dist/api/types/DeleteEndpointData.d.ts} +0 -2
- package/dist/api/types/DeleteEndpointData.js +3 -0
- package/{api/types/DeleteEndpointResponse.ts → dist/api/types/DeleteEndpointResponse.d.ts} +0 -3
- package/dist/api/types/DeleteEndpointResponse.js +3 -0
- package/{api/types/EndpointData.ts → dist/api/types/EndpointData.d.ts} +0 -2
- package/dist/api/types/EndpointData.js +3 -0
- package/{api/types/EvaluationStatusData.ts → dist/api/types/EvaluationStatusData.d.ts} +0 -2
- package/dist/api/types/EvaluationStatusData.js +3 -0
- package/{api/types/EvaluationStatusResponse.ts → dist/api/types/EvaluationStatusResponse.d.ts} +0 -3
- package/dist/api/types/EvaluationStatusResponse.js +3 -0
- package/{api/types/ExecutionLogCommand.ts → dist/api/types/ExecutionLogCommand.d.ts} +0 -2
- package/dist/api/types/ExecutionLogCommand.js +3 -0
- package/{api/types/ExecutionLogEntry.ts → dist/api/types/ExecutionLogEntry.d.ts} +0 -3
- package/dist/api/types/ExecutionLogEntry.js +3 -0
- package/{api/types/ExecutionStepSchema.ts → dist/api/types/ExecutionStepSchema.d.ts} +0 -2
- package/dist/api/types/ExecutionStepSchema.js +3 -0
- package/{api/types/HttpValidationError.ts → dist/api/types/HttpValidationError.d.ts} +0 -3
- package/dist/api/types/HttpValidationError.js +3 -0
- package/{api/types/ImplementationMethodData.ts → dist/api/types/ImplementationMethodData.d.ts} +0 -2
- package/dist/api/types/ImplementationMethodData.js +3 -0
- package/{api/types/ImplementationMethodResponse.ts → dist/api/types/ImplementationMethodResponse.d.ts} +0 -3
- package/dist/api/types/ImplementationMethodResponse.js +3 -0
- package/{api/types/ImplementationStep.ts → dist/api/types/ImplementationStep.d.ts} +0 -2
- package/dist/api/types/ImplementationStep.js +3 -0
- package/{api/types/ListApiKeysData.ts → dist/api/types/ListApiKeysData.d.ts} +0 -3
- package/dist/api/types/ListApiKeysData.js +3 -0
- package/{api/types/ListApiKeysResponse.ts → dist/api/types/ListApiKeysResponse.d.ts} +0 -3
- package/dist/api/types/ListApiKeysResponse.js +3 -0
- package/{api/types/ListEndpointsResponse.ts → dist/api/types/ListEndpointsResponse.d.ts} +0 -3
- package/dist/api/types/ListEndpointsResponse.js +3 -0
- package/{api/types/MetricDataPoint.ts → dist/api/types/MetricDataPoint.d.ts} +0 -2
- package/dist/api/types/MetricDataPoint.js +3 -0
- package/{api/types/MetricSeries.ts → dist/api/types/MetricSeries.d.ts} +0 -3
- package/dist/api/types/MetricSeries.js +3 -0
- package/{api/types/MetricSeriesEntry.ts → dist/api/types/MetricSeriesEntry.d.ts} +0 -3
- package/dist/api/types/MetricSeriesEntry.js +3 -0
- package/{api/types/MonthlySpendingData.ts → dist/api/types/MonthlySpendingData.d.ts} +0 -3
- package/dist/api/types/MonthlySpendingData.js +3 -0
- package/{api/types/MonthlySpendingDataPoint.ts → dist/api/types/MonthlySpendingDataPoint.d.ts} +0 -2
- package/dist/api/types/MonthlySpendingDataPoint.js +3 -0
- package/{api/types/MonthlySpendingResponse.ts → dist/api/types/MonthlySpendingResponse.d.ts} +0 -3
- package/dist/api/types/MonthlySpendingResponse.js +3 -0
- package/{api/types/PaginationMeta.ts → dist/api/types/PaginationMeta.d.ts} +0 -2
- package/dist/api/types/PaginationMeta.js +3 -0
- package/{api/types/ProcessingRecommendationItem.ts → dist/api/types/ProcessingRecommendationItem.d.ts} +0 -2
- package/dist/api/types/ProcessingRecommendationItem.js +3 -0
- package/{api/types/ProcessingRecommendationsData.ts → dist/api/types/ProcessingRecommendationsData.d.ts} +0 -3
- package/dist/api/types/ProcessingRecommendationsData.js +3 -0
- package/{api/types/ProcessingRecommendationsResponse.ts → dist/api/types/ProcessingRecommendationsResponse.d.ts} +0 -3
- package/dist/api/types/ProcessingRecommendationsResponse.js +3 -0
- package/{api/types/Provider.ts → dist/api/types/Provider.d.ts} +0 -2
- package/dist/api/types/Provider.js +3 -0
- package/{api/types/ProviderBreakdownData.ts → dist/api/types/ProviderBreakdownData.d.ts} +0 -3
- package/dist/api/types/ProviderBreakdownData.js +3 -0
- package/{api/types/ProviderBreakdownItem.ts → dist/api/types/ProviderBreakdownItem.d.ts} +0 -3
- package/dist/api/types/ProviderBreakdownItem.js +3 -0
- package/{api/types/ProviderBreakdownResponse.ts → dist/api/types/ProviderBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/ProviderBreakdownResponse.js +3 -0
- package/{api/types/ProviderFilterOptionsData.ts → dist/api/types/ProviderFilterOptionsData.d.ts} +0 -2
- package/dist/api/types/ProviderFilterOptionsData.js +3 -0
- package/{api/types/ProviderFilterOptionsResponse.ts → dist/api/types/ProviderFilterOptionsResponse.d.ts} +0 -3
- package/dist/api/types/ProviderFilterOptionsResponse.js +3 -0
- package/{api/types/ProviderPotentialSavingsSummaryData.ts → dist/api/types/ProviderPotentialSavingsSummaryData.d.ts} +0 -2
- package/dist/api/types/ProviderPotentialSavingsSummaryData.js +3 -0
- package/{api/types/ProviderPotentialSavingsSummaryResponse.ts → dist/api/types/ProviderPotentialSavingsSummaryResponse.d.ts} +0 -3
- package/dist/api/types/ProviderPotentialSavingsSummaryResponse.js +3 -0
- package/{api/types/ProviderRecommendationsSummaryData.ts → dist/api/types/ProviderRecommendationsSummaryData.d.ts} +0 -3
- package/dist/api/types/ProviderRecommendationsSummaryData.js +3 -0
- package/{api/types/ProviderRecommendationsSummaryResponse.ts → dist/api/types/ProviderRecommendationsSummaryResponse.d.ts} +0 -3
- package/dist/api/types/ProviderRecommendationsSummaryResponse.js +3 -0
- package/{api/types/ProviderSavedSummaryData.ts → dist/api/types/ProviderSavedSummaryData.d.ts} +0 -2
- package/dist/api/types/ProviderSavedSummaryData.js +3 -0
- package/{api/types/ProviderSavedSummaryResponse.ts → dist/api/types/ProviderSavedSummaryResponse.d.ts} +0 -3
- package/dist/api/types/ProviderSavedSummaryResponse.js +3 -0
- package/{api/types/ProviderServiceBreakdownData.ts → dist/api/types/ProviderServiceBreakdownData.d.ts} +0 -3
- package/dist/api/types/ProviderServiceBreakdownData.js +3 -0
- package/{api/types/ProviderServiceBreakdownItem.ts → dist/api/types/ProviderServiceBreakdownItem.d.ts} +0 -3
- package/dist/api/types/ProviderServiceBreakdownItem.js +3 -0
- package/{api/types/ProviderServiceBreakdownRawData.ts → dist/api/types/ProviderServiceBreakdownRawData.d.ts} +0 -3
- package/dist/api/types/ProviderServiceBreakdownRawData.js +3 -0
- package/{api/types/ProviderServiceBreakdownRawResponse.ts → dist/api/types/ProviderServiceBreakdownRawResponse.d.ts} +0 -3
- package/dist/api/types/ProviderServiceBreakdownRawResponse.js +3 -0
- package/{api/types/ProviderServiceBreakdownResponse.ts → dist/api/types/ProviderServiceBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/ProviderServiceBreakdownResponse.js +3 -0
- package/{api/types/ProviderServiceCostsBreakdownData.ts → dist/api/types/ProviderServiceCostsBreakdownData.d.ts} +0 -3
- package/dist/api/types/ProviderServiceCostsBreakdownData.js +3 -0
- package/{api/types/ProviderServiceCostsBreakdownResponse.ts → dist/api/types/ProviderServiceCostsBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/ProviderServiceCostsBreakdownResponse.js +3 -0
- package/{api/types/ProviderServiceCostsDataPoint.ts → dist/api/types/ProviderServiceCostsDataPoint.d.ts} +0 -2
- package/dist/api/types/ProviderServiceCostsDataPoint.js +3 -0
- package/{api/types/ProviderSpending.ts → dist/api/types/ProviderSpending.d.ts} +0 -2
- package/dist/api/types/ProviderSpending.js +3 -0
- package/{api/types/ProviderSpendingSummaryData.ts → dist/api/types/ProviderSpendingSummaryData.d.ts} +0 -3
- package/dist/api/types/ProviderSpendingSummaryData.js +3 -0
- package/{api/types/ProviderSpendingSummaryResponse.ts → dist/api/types/ProviderSpendingSummaryResponse.d.ts} +0 -3
- package/dist/api/types/ProviderSpendingSummaryResponse.js +3 -0
- package/{api/types/ProviderTimelineData.ts → dist/api/types/ProviderTimelineData.d.ts} +0 -3
- package/dist/api/types/ProviderTimelineData.js +3 -0
- package/{api/types/ProviderTimelineResponse.ts → dist/api/types/ProviderTimelineResponse.d.ts} +0 -3
- package/dist/api/types/ProviderTimelineResponse.js +3 -0
- package/{api/types/ProviderTopService.ts → dist/api/types/ProviderTopService.d.ts} +0 -2
- package/dist/api/types/ProviderTopService.js +3 -0
- package/{api/types/ProvidersSummaryData.ts → dist/api/types/ProvidersSummaryData.d.ts} +0 -3
- package/dist/api/types/ProvidersSummaryData.js +3 -0
- package/{api/types/ProvidersSummaryResponse.ts → dist/api/types/ProvidersSummaryResponse.d.ts} +0 -3
- package/dist/api/types/ProvidersSummaryResponse.js +3 -0
- package/{api/types/RecommendationActions.ts → dist/api/types/RecommendationActions.d.ts} +0 -2
- package/dist/api/types/RecommendationActions.js +3 -0
- package/{api/types/RecommendationDetail.ts → dist/api/types/RecommendationDetail.d.ts} +0 -3
- package/dist/api/types/RecommendationDetail.js +3 -0
- package/{api/types/RecommendationDetailResponse.ts → dist/api/types/RecommendationDetailResponse.d.ts} +0 -3
- package/dist/api/types/RecommendationDetailResponse.js +3 -0
- package/{api/types/RecommendationFilterOptionsData.ts → dist/api/types/RecommendationFilterOptionsData.d.ts} +0 -2
- package/dist/api/types/RecommendationFilterOptionsData.js +3 -0
- package/{api/types/RecommendationFilterOptionsResponse.ts → dist/api/types/RecommendationFilterOptionsResponse.d.ts} +0 -3
- package/dist/api/types/RecommendationFilterOptionsResponse.js +3 -0
- package/{api/types/RecommendationItem.ts → dist/api/types/RecommendationItem.d.ts} +0 -3
- package/dist/api/types/RecommendationItem.js +3 -0
- package/{api/types/RecommendationWizardData.ts → dist/api/types/RecommendationWizardData.d.ts} +2 -6
- package/dist/api/types/RecommendationWizardData.js +3 -0
- package/{api/types/RecommendationWizardResponse.ts → dist/api/types/RecommendationWizardResponse.d.ts} +0 -3
- package/dist/api/types/RecommendationWizardResponse.js +3 -0
- package/{api/types/RecommendationsBreakdownData.ts → dist/api/types/RecommendationsBreakdownData.d.ts} +0 -3
- package/dist/api/types/RecommendationsBreakdownData.js +3 -0
- package/{api/types/RecommendationsBreakdownResponse.ts → dist/api/types/RecommendationsBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/RecommendationsBreakdownResponse.js +3 -0
- package/{api/types/RecommendationsOverviewData.ts → dist/api/types/RecommendationsOverviewData.d.ts} +0 -2
- package/dist/api/types/RecommendationsOverviewData.js +3 -0
- package/{api/types/RecommendationsOverviewResponse.ts → dist/api/types/RecommendationsOverviewResponse.d.ts} +0 -3
- package/dist/api/types/RecommendationsOverviewResponse.js +3 -0
- package/{api/types/RegisterEndpointResponse.ts → dist/api/types/RegisterEndpointResponse.d.ts} +0 -3
- package/dist/api/types/RegisterEndpointResponse.js +3 -0
- package/{api/types/ResourceChange.ts → dist/api/types/ResourceChange.d.ts} +0 -2
- package/dist/api/types/ResourceChange.js +3 -0
- package/{api/types/ResourceSnapshot.ts → dist/api/types/ResourceSnapshot.d.ts} +0 -2
- package/dist/api/types/ResourceSnapshot.js +3 -0
- package/{api/types/RevokeApiKeyData.ts → dist/api/types/RevokeApiKeyData.d.ts} +0 -2
- package/dist/api/types/RevokeApiKeyData.js +3 -0
- package/{api/types/RevokeApiKeyResponse.ts → dist/api/types/RevokeApiKeyResponse.d.ts} +0 -3
- package/dist/api/types/RevokeApiKeyResponse.js +3 -0
- package/{api/types/RiskAssessment.ts → dist/api/types/RiskAssessment.d.ts} +0 -3
- package/dist/api/types/RiskAssessment.js +3 -0
- package/{api/types/RiskFactor.ts → dist/api/types/RiskFactor.d.ts} +0 -2
- package/dist/api/types/RiskFactor.js +3 -0
- package/{api/types/SavedBreakdownData.ts → dist/api/types/SavedBreakdownData.d.ts} +0 -3
- package/dist/api/types/SavedBreakdownData.js +3 -0
- package/{api/types/SavedBreakdownResponse.ts → dist/api/types/SavedBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/SavedBreakdownResponse.js +3 -0
- package/{api/types/SavedByProviderBreakdownData.ts → dist/api/types/SavedByProviderBreakdownData.d.ts} +0 -3
- package/dist/api/types/SavedByProviderBreakdownData.js +3 -0
- package/{api/types/SavedByProviderBreakdownResponse.ts → dist/api/types/SavedByProviderBreakdownResponse.d.ts} +0 -3
- package/dist/api/types/SavedByProviderBreakdownResponse.js +3 -0
- package/{api/types/SavedByProviderItem.ts → dist/api/types/SavedByProviderItem.d.ts} +0 -2
- package/dist/api/types/SavedByProviderItem.js +3 -0
- package/{api/types/SavedItem.ts → dist/api/types/SavedItem.d.ts} +0 -2
- package/dist/api/types/SavedItem.js +3 -0
- package/{api/types/SavedProviderSummary.ts → dist/api/types/SavedProviderSummary.d.ts} +0 -2
- package/dist/api/types/SavedProviderSummary.js +3 -0
- package/{api/types/SavedSummaryData.ts → dist/api/types/SavedSummaryData.d.ts} +0 -3
- package/dist/api/types/SavedSummaryData.js +3 -0
- package/{api/types/SavedSummaryResponse.ts → dist/api/types/SavedSummaryResponse.d.ts} +0 -3
- package/dist/api/types/SavedSummaryResponse.js +3 -0
- package/{api/types/SavingsDecisionData.ts → dist/api/types/SavingsDecisionData.d.ts} +0 -2
- package/dist/api/types/SavingsDecisionData.js +3 -0
- package/{api/types/SavingsDecisionResponse.ts → dist/api/types/SavingsDecisionResponse.d.ts} +0 -3
- package/dist/api/types/SavingsDecisionResponse.js +3 -0
- package/{api/types/SpendingByDateItem.ts → dist/api/types/SpendingByDateItem.d.ts} +0 -2
- package/dist/api/types/SpendingByDateItem.js +3 -0
- package/{api/types/TopRecommendation.ts → dist/api/types/TopRecommendation.d.ts} +0 -2
- package/dist/api/types/TopRecommendation.js +3 -0
- package/{api/types/TriggerInfo.ts → dist/api/types/TriggerInfo.d.ts} +0 -2
- package/dist/api/types/TriggerInfo.js +3 -0
- package/{api/types/UpdateTagData.ts → dist/api/types/UpdateTagData.d.ts} +0 -2
- package/dist/api/types/UpdateTagData.js +3 -0
- package/{api/types/UpdateTagResponse.ts → dist/api/types/UpdateTagResponse.d.ts} +0 -3
- package/dist/api/types/UpdateTagResponse.js +3 -0
- package/dist/api/types/ValidationError.d.ts +13 -0
- package/dist/api/types/ValidationError.js +3 -0
- package/dist/api/types/index.js +131 -0
- package/dist/core/exports.js +17 -0
- package/{core/fetcher/APIResponse.ts → dist/core/fetcher/APIResponse.d.ts} +0 -3
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/{core/fetcher/BinaryResponse.ts → dist/core/fetcher/BinaryResponse.d.ts} +1 -16
- package/dist/core/fetcher/BinaryResponse.js +17 -0
- package/dist/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/core/fetcher/EndpointSupplier.js +13 -0
- package/dist/core/fetcher/Fetcher.d.ts +48 -0
- package/{core/fetcher/Fetcher.ts → dist/core/fetcher/Fetcher.js} +72 -165
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/{core/fetcher/Headers.ts → dist/core/fetcher/Headers.js} +29 -37
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/{core/fetcher/HttpResponsePromise.ts → dist/core/fetcher/HttpResponsePromise.js} +26 -48
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/{core/fetcher/RawResponse.ts → dist/core/fetcher/RawResponse.js} +12 -29
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +13 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +8 -0
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/{core/fetcher/getErrorResponseBody.ts → dist/core/fetcher/getErrorResponseBody.js} +9 -9
- package/dist/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/core/fetcher/getFetchFn.js +6 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/{core/fetcher/getHeader.ts → dist/core/fetcher/getHeader.js} +4 -1
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +16 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/{core/fetcher/getResponseBody.ts → dist/core/fetcher/getResponseBody.js} +10 -10
- package/dist/core/fetcher/index.js +17 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -0
- package/{core/fetcher/makeRequest.ts → dist/core/fetcher/makeRequest.js} +18 -29
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/{core/fetcher/requestWithRetries.ts → dist/core/fetcher/requestWithRetries.js} +11 -19
- package/dist/core/fetcher/signals.d.ts +5 -0
- package/{core/fetcher/signals.ts → dist/core/fetcher/signals.js} +9 -11
- package/dist/core/headers.d.ts +2 -0
- package/{core/headers.ts → dist/core/headers.js} +10 -12
- package/dist/core/index.js +43 -0
- package/dist/core/json.d.ts +15 -0
- package/{core/json.ts → dist/core/json.js} +7 -10
- package/dist/core/logging/exports.d.ts +18 -0
- package/dist/core/logging/exports.js +45 -0
- package/dist/core/logging/index.js +17 -0
- package/{core/logging/logger.ts → dist/core/logging/logger.d.ts} +26 -103
- package/dist/core/logging/logger.js +146 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/{core/runtime/runtime.ts → dist/core/runtime/runtime.js} +7 -38
- package/dist/core/url/encodePathParam.d.ts +1 -0
- package/{core/url/encodePathParam.ts → dist/core/url/encodePathParam.js} +5 -2
- package/dist/core/url/index.js +9 -0
- package/dist/core/url/join.d.ts +1 -0
- package/{core/url/join.ts → dist/core/url/join.js} +16 -27
- package/dist/core/url/qs.d.ts +6 -0
- package/{core/url/qs.ts → dist/core/url/qs.js} +19 -26
- package/dist/errors/LevelFourError.d.ts +12 -0
- package/dist/errors/LevelFourError.js +35 -0
- package/dist/errors/LevelFourTimeoutError.d.ts +3 -0
- package/{errors/LevelFourTimeoutError.ts → dist/errors/LevelFourTimeoutError.js} +6 -4
- package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/errors/handleNonStatusCodeError.js +65 -0
- package/dist/errors/index.js +7 -0
- package/dist/errors.d.ts +29 -0
- package/dist/errors.js +98 -0
- package/dist/exports.js +17 -0
- package/{index.ts → dist/index.d.ts} +1 -11
- package/dist/index.js +65 -0
- package/dist/pagination.d.ts +23 -0
- package/dist/pagination.js +38 -0
- package/dist/telemetry.d.ts +2 -0
- package/dist/telemetry.js +50 -0
- package/dist/webhooks.d.ts +10 -0
- package/{webhooks.ts → dist/webhooks.js} +16 -32
- package/package.json +9 -4
- package/.fernignore +0 -9
- package/Client.ts +0 -90
- package/LevelFourClient.ts +0 -50
- package/api/errors/UnprocessableEntityError.ts +0 -22
- package/api/resources/evaluation/client/Client.ts +0 -71
- package/api/resources/health/client/Client.ts +0 -108
- package/api/resources/prAnalysis/client/Client.ts +0 -100
- package/api/resources/providers/types/GetProviderServiceBreakdownApiV1ProvidersProviderIdSpendingBreakdownGetResponse.ts +0 -8
- package/api/resources/spending/types/GetCostBreakdownApiV1SpendingBreakdownGetResponse.ts +0 -9
- package/api/types/ValidationError.ts +0 -17
- package/core/fetcher/EndpointSupplier.ts +0 -14
- package/core/fetcher/Supplier.ts +0 -11
- package/core/fetcher/createRequestUrl.ts +0 -6
- package/core/fetcher/getFetchFn.ts +0 -3
- package/core/fetcher/getRequestBody.ts +0 -20
- package/core/logging/exports.ts +0 -19
- package/errors/LevelFourError.ts +0 -58
- package/errors/handleNonStatusCodeError.ts +0 -37
- package/errors.ts +0 -100
- package/jest.config.js +0 -17
- package/pagination.ts +0 -54
- package/telemetry.ts +0 -64
- package/tests/auth.test.ts +0 -64
- package/tests/errors.test.ts +0 -92
- package/tests/pagination.test.ts +0 -72
- package/tests/telemetry.test.ts +0 -110
- package/tsconfig.json +0 -22
- /package/{api/errors/index.ts → dist/api/errors/index.d.ts} +0 -0
- /package/{api/index.ts → dist/api/index.d.ts} +0 -0
- /package/{api/resources/apiKeys/client/index.ts → dist/api/resources/apiKeys/client/index.d.ts} +0 -0
- /package/{api/resources/apiKeys/client/requests/index.ts → dist/api/resources/apiKeys/client/requests/index.d.ts} +0 -0
- /package/{api/resources/apiKeys/index.ts → dist/api/resources/apiKeys/index.d.ts} +0 -0
- /package/{api/resources/evaluation/client/index.ts → dist/api/resources/evaluation/client/index.d.ts} +0 -0
- /package/{api/resources/evaluation/index.ts → dist/api/resources/evaluation/index.d.ts} +0 -0
- /package/{api/resources/health/client/index.ts → dist/api/resources/health/client/index.d.ts} +0 -0
- /package/{api/resources/health/index.ts → dist/api/resources/health/index.d.ts} +0 -0
- /package/{api/resources/index.ts → dist/api/resources/index.d.ts} +0 -0
- /package/{api/resources/prAnalysis/client/index.ts → dist/api/resources/prAnalysis/client/index.d.ts} +0 -0
- /package/{api/resources/prAnalysis/client/requests/index.ts → dist/api/resources/prAnalysis/client/requests/index.d.ts} +0 -0
- /package/{api/resources/prAnalysis/index.ts → dist/api/resources/prAnalysis/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisActions/client/index.ts → dist/api/resources/prAnalysisActions/client/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisActions/client/requests/index.ts → dist/api/resources/prAnalysisActions/client/requests/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisActions/index.ts → dist/api/resources/prAnalysisActions/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisInstallations/client/index.ts → dist/api/resources/prAnalysisInstallations/client/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisInstallations/client/requests/index.ts → dist/api/resources/prAnalysisInstallations/client/requests/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisInstallations/index.ts → dist/api/resources/prAnalysisInstallations/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisQuery/client/index.ts → dist/api/resources/prAnalysisQuery/client/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisQuery/client/requests/index.ts → dist/api/resources/prAnalysisQuery/client/requests/index.d.ts} +0 -0
- /package/{api/resources/prAnalysisQuery/index.ts → dist/api/resources/prAnalysisQuery/index.d.ts} +0 -0
- /package/{api/resources/providers/client/index.ts → dist/api/resources/providers/client/index.d.ts} +0 -0
- /package/{api/resources/providers/client/requests/index.ts → dist/api/resources/providers/client/requests/index.d.ts} +0 -0
- /package/{api/resources/providers/index.ts → dist/api/resources/providers/index.d.ts} +0 -0
- /package/{api/resources/providers/types/index.ts → dist/api/resources/providers/types/index.d.ts} +0 -0
- /package/{api/resources/recommendations/client/index.ts → dist/api/resources/recommendations/client/index.d.ts} +0 -0
- /package/{api/resources/recommendations/client/requests/index.ts → dist/api/resources/recommendations/client/requests/index.d.ts} +0 -0
- /package/{api/resources/recommendations/index.ts → dist/api/resources/recommendations/index.d.ts} +0 -0
- /package/{api/resources/savings/client/index.ts → dist/api/resources/savings/client/index.d.ts} +0 -0
- /package/{api/resources/savings/client/requests/index.ts → dist/api/resources/savings/client/requests/index.d.ts} +0 -0
- /package/{api/resources/savings/index.ts → dist/api/resources/savings/index.d.ts} +0 -0
- /package/{api/resources/spending/client/index.ts → dist/api/resources/spending/client/index.d.ts} +0 -0
- /package/{api/resources/spending/client/requests/index.ts → dist/api/resources/spending/client/requests/index.d.ts} +0 -0
- /package/{api/resources/spending/index.ts → dist/api/resources/spending/index.d.ts} +0 -0
- /package/{api/resources/spending/types/index.ts → dist/api/resources/spending/types/index.d.ts} +0 -0
- /package/{api/resources/webhooks/client/index.ts → dist/api/resources/webhooks/client/index.d.ts} +0 -0
- /package/{api/resources/webhooks/client/requests/index.ts → dist/api/resources/webhooks/client/requests/index.d.ts} +0 -0
- /package/{api/resources/webhooks/index.ts → dist/api/resources/webhooks/index.d.ts} +0 -0
- /package/{api/types/index.ts → dist/api/types/index.d.ts} +0 -0
- /package/{core/exports.ts → dist/core/exports.d.ts} +0 -0
- /package/{core/fetcher/EndpointMetadata.ts → dist/core/fetcher/EndpointMetadata.d.ts} +0 -0
- /package/{core/fetcher/index.ts → dist/core/fetcher/index.d.ts} +0 -0
- /package/{core/index.ts → dist/core/index.d.ts} +0 -0
- /package/{core/logging/index.ts → dist/core/logging/index.d.ts} +0 -0
- /package/{core/runtime/index.ts → dist/core/runtime/index.d.ts} +0 -0
- /package/{core/url/index.ts → dist/core/url/index.d.ts} +0 -0
- /package/{errors/index.ts → dist/errors/index.d.ts} +0 -0
- /package/{exports.ts → dist/exports.d.ts} +0 -0
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface BunGlobal {
|
|
8
|
-
version: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare const Deno: DenoGlobal | undefined;
|
|
12
|
-
declare const Bun: BunGlobal | undefined;
|
|
13
|
-
declare const EdgeRuntime: string | undefined;
|
|
14
|
-
declare const self: typeof globalThis.self & {
|
|
15
|
-
importScripts?: unknown;
|
|
16
|
-
};
|
|
17
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RUNTIME = void 0;
|
|
18
4
|
/**
|
|
19
5
|
* A constant that indicates which environment and version the SDK is running in.
|
|
20
6
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export interface Runtime {
|
|
24
|
-
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd" | "edge-runtime";
|
|
25
|
-
version?: string;
|
|
26
|
-
parsedVersion?: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function evaluateRuntime(): Runtime {
|
|
7
|
+
exports.RUNTIME = evaluateRuntime();
|
|
8
|
+
function evaluateRuntime() {
|
|
30
9
|
/**
|
|
31
10
|
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
32
11
|
*/
|
|
@@ -37,7 +16,6 @@ function evaluateRuntime(): Runtime {
|
|
|
37
16
|
version: window.navigator.userAgent,
|
|
38
17
|
};
|
|
39
18
|
}
|
|
40
|
-
|
|
41
19
|
/**
|
|
42
20
|
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
43
21
|
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
@@ -48,7 +26,6 @@ function evaluateRuntime(): Runtime {
|
|
|
48
26
|
type: "workerd",
|
|
49
27
|
};
|
|
50
28
|
}
|
|
51
|
-
|
|
52
29
|
/**
|
|
53
30
|
* A constant that indicates whether the environment the code is running is Edge Runtime.
|
|
54
31
|
* https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
|
|
@@ -59,12 +36,10 @@ function evaluateRuntime(): Runtime {
|
|
|
59
36
|
type: "edge-runtime",
|
|
60
37
|
};
|
|
61
38
|
}
|
|
62
|
-
|
|
63
39
|
/**
|
|
64
40
|
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
65
41
|
*/
|
|
66
|
-
const isWebWorker =
|
|
67
|
-
typeof self === "object" &&
|
|
42
|
+
const isWebWorker = typeof self === "object" &&
|
|
68
43
|
typeof self?.importScripts === "function" &&
|
|
69
44
|
(self.constructor?.name === "DedicatedWorkerGlobalScope" ||
|
|
70
45
|
self.constructor?.name === "ServiceWorkerGlobalScope" ||
|
|
@@ -74,20 +49,17 @@ function evaluateRuntime(): Runtime {
|
|
|
74
49
|
type: "web-worker",
|
|
75
50
|
};
|
|
76
51
|
}
|
|
77
|
-
|
|
78
52
|
/**
|
|
79
53
|
* A constant that indicates whether the environment the code is running is Deno.
|
|
80
54
|
* FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
|
|
81
55
|
*/
|
|
82
|
-
const isDeno =
|
|
83
|
-
typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
56
|
+
const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
84
57
|
if (isDeno) {
|
|
85
58
|
return {
|
|
86
59
|
type: "deno",
|
|
87
60
|
version: Deno.version.deno,
|
|
88
61
|
};
|
|
89
62
|
}
|
|
90
|
-
|
|
91
63
|
/**
|
|
92
64
|
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
93
65
|
*/
|
|
@@ -98,7 +70,6 @@ function evaluateRuntime(): Runtime {
|
|
|
98
70
|
version: Bun.version,
|
|
99
71
|
};
|
|
100
72
|
}
|
|
101
|
-
|
|
102
73
|
/**
|
|
103
74
|
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
104
75
|
* This check should come before Node.js detection since React Native may have a process polyfill.
|
|
@@ -110,7 +81,6 @@ function evaluateRuntime(): Runtime {
|
|
|
110
81
|
type: "react-native",
|
|
111
82
|
};
|
|
112
83
|
}
|
|
113
|
-
|
|
114
84
|
/**
|
|
115
85
|
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
116
86
|
*
|
|
@@ -127,7 +97,6 @@ function evaluateRuntime(): Runtime {
|
|
|
127
97
|
parsedVersion: Number(_process.versions.node.split(".")[0]),
|
|
128
98
|
};
|
|
129
99
|
}
|
|
130
|
-
|
|
131
100
|
return {
|
|
132
101
|
type: "unknown",
|
|
133
102
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function encodePathParam(param: unknown): string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.encodePathParam = encodePathParam;
|
|
4
|
+
function encodePathParam(param) {
|
|
2
5
|
if (param === null) {
|
|
3
6
|
return "null";
|
|
4
7
|
}
|
|
@@ -14,5 +17,5 @@ export function encodePathParam(param: unknown): string {
|
|
|
14
17
|
param = String(param);
|
|
15
18
|
break;
|
|
16
19
|
}
|
|
17
|
-
return encodeURIComponent(param
|
|
20
|
+
return encodeURIComponent(param);
|
|
18
21
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toQueryString = exports.join = exports.encodePathParam = void 0;
|
|
4
|
+
var encodePathParam_js_1 = require("./encodePathParam.js");
|
|
5
|
+
Object.defineProperty(exports, "encodePathParam", { enumerable: true, get: function () { return encodePathParam_js_1.encodePathParam; } });
|
|
6
|
+
var join_js_1 = require("./join.js");
|
|
7
|
+
Object.defineProperty(exports, "join", { enumerable: true, get: function () { return join_js_1.join; } });
|
|
8
|
+
var qs_js_1 = require("./qs.js");
|
|
9
|
+
Object.defineProperty(exports, "toQueryString", { enumerable: true, get: function () { return qs_js_1.toQueryString; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function join(base: string, ...segments: string[]): string;
|
|
@@ -1,79 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.join = join;
|
|
4
|
+
function join(base, ...segments) {
|
|
2
5
|
if (!base) {
|
|
3
6
|
return "";
|
|
4
7
|
}
|
|
5
|
-
|
|
6
8
|
if (segments.length === 0) {
|
|
7
9
|
return base;
|
|
8
10
|
}
|
|
9
|
-
|
|
10
11
|
if (base.includes("://")) {
|
|
11
|
-
let url
|
|
12
|
+
let url;
|
|
12
13
|
try {
|
|
13
14
|
url = new URL(base);
|
|
14
|
-
}
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
15
17
|
return joinPath(base, ...segments);
|
|
16
18
|
}
|
|
17
|
-
|
|
18
19
|
const lastSegment = segments[segments.length - 1];
|
|
19
20
|
const shouldPreserveTrailingSlash = lastSegment?.endsWith("/");
|
|
20
|
-
|
|
21
21
|
for (const segment of segments) {
|
|
22
22
|
const cleanSegment = trimSlashes(segment);
|
|
23
23
|
if (cleanSegment) {
|
|
24
24
|
url.pathname = joinPathSegments(url.pathname, cleanSegment);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
|
|
28
27
|
if (shouldPreserveTrailingSlash && !url.pathname.endsWith("/")) {
|
|
29
28
|
url.pathname += "/";
|
|
30
29
|
}
|
|
31
|
-
|
|
32
30
|
return url.toString();
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
return joinPath(base, ...segments);
|
|
36
33
|
}
|
|
37
|
-
|
|
38
|
-
function joinPath(base: string, ...segments: string[]): string {
|
|
34
|
+
function joinPath(base, ...segments) {
|
|
39
35
|
if (segments.length === 0) {
|
|
40
36
|
return base;
|
|
41
37
|
}
|
|
42
|
-
|
|
43
38
|
let result = base;
|
|
44
|
-
|
|
45
39
|
const lastSegment = segments[segments.length - 1];
|
|
46
40
|
const shouldPreserveTrailingSlash = lastSegment?.endsWith("/");
|
|
47
|
-
|
|
48
41
|
for (const segment of segments) {
|
|
49
42
|
const cleanSegment = trimSlashes(segment);
|
|
50
43
|
if (cleanSegment) {
|
|
51
44
|
result = joinPathSegments(result, cleanSegment);
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
|
-
|
|
55
47
|
if (shouldPreserveTrailingSlash && !result.endsWith("/")) {
|
|
56
48
|
result += "/";
|
|
57
49
|
}
|
|
58
|
-
|
|
59
50
|
return result;
|
|
60
51
|
}
|
|
61
|
-
|
|
62
|
-
function joinPathSegments(left: string, right: string): string {
|
|
52
|
+
function joinPathSegments(left, right) {
|
|
63
53
|
if (left.endsWith("/")) {
|
|
64
54
|
return left + right;
|
|
65
55
|
}
|
|
66
56
|
return `${left}/${right}`;
|
|
67
57
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
function trimSlashes(str) {
|
|
59
|
+
if (!str)
|
|
60
|
+
return str;
|
|
72
61
|
let start = 0;
|
|
73
62
|
let end = str.length;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (str.endsWith("/"))
|
|
77
|
-
|
|
63
|
+
if (str.startsWith("/"))
|
|
64
|
+
start = 1;
|
|
65
|
+
if (str.endsWith("/"))
|
|
66
|
+
end = str.length - 1;
|
|
78
67
|
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
79
68
|
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const defaultQsOptions: Required<QueryStringOptions> = {
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toQueryString = toQueryString;
|
|
4
|
+
const defaultQsOptions = {
|
|
7
5
|
arrayFormat: "indices",
|
|
8
6
|
encode: true,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function encodeValue(value: unknown, shouldEncode: boolean): string {
|
|
7
|
+
};
|
|
8
|
+
function encodeValue(value, shouldEncode) {
|
|
12
9
|
if (value === undefined) {
|
|
13
10
|
return "";
|
|
14
11
|
}
|
|
@@ -18,17 +15,13 @@ function encodeValue(value: unknown, shouldEncode: boolean): string {
|
|
|
18
15
|
const stringValue = String(value);
|
|
19
16
|
return shouldEncode ? encodeURIComponent(stringValue) : stringValue;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const parts: string[] = [];
|
|
24
|
-
|
|
18
|
+
function stringifyObject(obj, prefix = "", options) {
|
|
19
|
+
const parts = [];
|
|
25
20
|
for (const [key, value] of Object.entries(obj)) {
|
|
26
21
|
const fullKey = prefix ? `${prefix}[${key}]` : key;
|
|
27
|
-
|
|
28
22
|
if (value === undefined) {
|
|
29
23
|
continue;
|
|
30
24
|
}
|
|
31
|
-
|
|
32
25
|
if (Array.isArray(value)) {
|
|
33
26
|
if (value.length === 0) {
|
|
34
27
|
continue;
|
|
@@ -40,33 +33,33 @@ function stringifyObject(obj: Record<string, unknown>, prefix = "", options: Req
|
|
|
40
33
|
}
|
|
41
34
|
if (typeof item === "object" && !Array.isArray(item) && item !== null) {
|
|
42
35
|
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
43
|
-
parts.push(...stringifyObject(item
|
|
44
|
-
}
|
|
36
|
+
parts.push(...stringifyObject(item, arrayKey, options));
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
45
39
|
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
46
40
|
const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey;
|
|
47
41
|
parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`);
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
44
|
+
}
|
|
45
|
+
else if (typeof value === "object" && value !== null) {
|
|
46
|
+
if (Object.keys(value).length === 0) {
|
|
52
47
|
continue;
|
|
53
48
|
}
|
|
54
|
-
parts.push(...stringifyObject(value
|
|
55
|
-
}
|
|
49
|
+
parts.push(...stringifyObject(value, fullKey, options));
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
56
52
|
const encodedKey = options.encode ? encodeURIComponent(fullKey) : fullKey;
|
|
57
53
|
parts.push(`${encodedKey}=${encodeValue(value, options.encode)}`);
|
|
58
54
|
}
|
|
59
55
|
}
|
|
60
|
-
|
|
61
56
|
return parts;
|
|
62
57
|
}
|
|
63
|
-
|
|
64
|
-
export function toQueryString(obj: unknown, options?: QueryStringOptions): string {
|
|
58
|
+
function toQueryString(obj, options) {
|
|
65
59
|
if (obj == null || typeof obj !== "object") {
|
|
66
60
|
return "";
|
|
67
61
|
}
|
|
68
|
-
|
|
69
|
-
const parts = stringifyObject(obj as Record<string, unknown>, "", {
|
|
62
|
+
const parts = stringifyObject(obj, "", {
|
|
70
63
|
...defaultQsOptions,
|
|
71
64
|
...options,
|
|
72
65
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as core from "../core/index.js";
|
|
2
|
+
export declare class LevelFourError extends Error {
|
|
3
|
+
readonly statusCode?: number;
|
|
4
|
+
readonly body?: unknown;
|
|
5
|
+
readonly rawResponse?: core.RawResponse;
|
|
6
|
+
constructor({ message, statusCode, body, rawResponse, }: {
|
|
7
|
+
message?: string;
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: unknown;
|
|
10
|
+
rawResponse?: core.RawResponse;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.LevelFourError = void 0;
|
|
5
|
+
const json_js_1 = require("../core/json.js");
|
|
6
|
+
class LevelFourError extends Error {
|
|
7
|
+
statusCode;
|
|
8
|
+
body;
|
|
9
|
+
rawResponse;
|
|
10
|
+
constructor({ message, statusCode, body, rawResponse, }) {
|
|
11
|
+
super(buildMessage({ message, statusCode, body }));
|
|
12
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
13
|
+
if (Error.captureStackTrace) {
|
|
14
|
+
Error.captureStackTrace(this, this.constructor);
|
|
15
|
+
}
|
|
16
|
+
this.name = this.constructor.name;
|
|
17
|
+
this.statusCode = statusCode;
|
|
18
|
+
this.body = body;
|
|
19
|
+
this.rawResponse = rawResponse;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.LevelFourError = LevelFourError;
|
|
23
|
+
function buildMessage({ message, statusCode, body, }) {
|
|
24
|
+
const lines = [];
|
|
25
|
+
if (message != null) {
|
|
26
|
+
lines.push(message);
|
|
27
|
+
}
|
|
28
|
+
if (statusCode != null) {
|
|
29
|
+
lines.push(`Status code: ${statusCode.toString()}`);
|
|
30
|
+
}
|
|
31
|
+
if (body != null) {
|
|
32
|
+
lines.push(`Body: ${(0, json_js_1.toJson)(body, undefined, 2)}`);
|
|
33
|
+
}
|
|
34
|
+
return lines.join("\n");
|
|
35
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.LevelFourTimeoutError = void 0;
|
|
5
|
+
class LevelFourTimeoutError extends Error {
|
|
6
|
+
constructor(message) {
|
|
5
7
|
super(message);
|
|
6
8
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
7
9
|
if (Error.captureStackTrace) {
|
|
8
10
|
Error.captureStackTrace(this, this.constructor);
|
|
9
11
|
}
|
|
10
|
-
|
|
11
12
|
this.name = this.constructor.name;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
exports.LevelFourTimeoutError = LevelFourTimeoutError;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 __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.handleNonStatusCodeError = handleNonStatusCodeError;
|
|
38
|
+
const errors = __importStar(require("./index.js"));
|
|
39
|
+
function handleNonStatusCodeError(error, rawResponse, method, path) {
|
|
40
|
+
switch (error.reason) {
|
|
41
|
+
case "non-json":
|
|
42
|
+
throw new errors.LevelFourError({
|
|
43
|
+
statusCode: error.statusCode,
|
|
44
|
+
body: error.rawBody,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
case "body-is-null":
|
|
48
|
+
throw new errors.LevelFourError({
|
|
49
|
+
statusCode: error.statusCode,
|
|
50
|
+
rawResponse: rawResponse,
|
|
51
|
+
});
|
|
52
|
+
case "timeout":
|
|
53
|
+
throw new errors.LevelFourTimeoutError(`Timeout exceeded when calling ${method} ${path}.`);
|
|
54
|
+
case "unknown":
|
|
55
|
+
throw new errors.LevelFourError({
|
|
56
|
+
message: error.errorMessage,
|
|
57
|
+
rawResponse: rawResponse,
|
|
58
|
+
});
|
|
59
|
+
default:
|
|
60
|
+
throw new errors.LevelFourError({
|
|
61
|
+
message: "Unknown error",
|
|
62
|
+
rawResponse: rawResponse,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LevelFourTimeoutError = exports.LevelFourError = void 0;
|
|
4
|
+
var LevelFourError_js_1 = require("./LevelFourError.js");
|
|
5
|
+
Object.defineProperty(exports, "LevelFourError", { enumerable: true, get: function () { return LevelFourError_js_1.LevelFourError; } });
|
|
6
|
+
var LevelFourTimeoutError_js_1 = require("./LevelFourTimeoutError.js");
|
|
7
|
+
Object.defineProperty(exports, "LevelFourTimeoutError", { enumerable: true, get: function () { return LevelFourTimeoutError_js_1.LevelFourTimeoutError; } });
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as core from "./core/index.js";
|
|
2
|
+
import { LevelFourError } from "./errors/LevelFourError.js";
|
|
3
|
+
export { LevelFourError };
|
|
4
|
+
export declare class AuthenticationError extends LevelFourError {
|
|
5
|
+
constructor(message: string, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
7
|
+
export declare class AuthorizationError extends LevelFourError {
|
|
8
|
+
constructor(message: string, body?: unknown, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
10
|
+
export declare class NotFoundError extends LevelFourError {
|
|
11
|
+
constructor(message: string, body?: unknown, rawResponse?: core.RawResponse);
|
|
12
|
+
}
|
|
13
|
+
export declare class BadRequestError extends LevelFourError {
|
|
14
|
+
constructor(message: string, body?: unknown, rawResponse?: core.RawResponse);
|
|
15
|
+
}
|
|
16
|
+
export declare class ConflictError extends LevelFourError {
|
|
17
|
+
constructor(message: string, body?: unknown, rawResponse?: core.RawResponse);
|
|
18
|
+
}
|
|
19
|
+
export declare class RateLimitError extends LevelFourError {
|
|
20
|
+
readonly retryAfter?: string;
|
|
21
|
+
constructor(message: string, retryAfter?: string, body?: unknown, rawResponse?: core.RawResponse);
|
|
22
|
+
}
|
|
23
|
+
export declare class ValidationError extends LevelFourError {
|
|
24
|
+
constructor(message: string, body?: unknown, rawResponse?: core.RawResponse);
|
|
25
|
+
}
|
|
26
|
+
export declare class InternalServerError extends LevelFourError {
|
|
27
|
+
constructor(message: string, body?: unknown, rawResponse?: core.RawResponse);
|
|
28
|
+
}
|
|
29
|
+
export declare function mapError(err: LevelFourError): LevelFourError;
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalServerError = exports.ValidationError = exports.RateLimitError = exports.ConflictError = exports.BadRequestError = exports.NotFoundError = exports.AuthorizationError = exports.AuthenticationError = exports.LevelFourError = void 0;
|
|
4
|
+
exports.mapError = mapError;
|
|
5
|
+
const LevelFourError_js_1 = require("./errors/LevelFourError.js");
|
|
6
|
+
Object.defineProperty(exports, "LevelFourError", { enumerable: true, get: function () { return LevelFourError_js_1.LevelFourError; } });
|
|
7
|
+
class AuthenticationError extends LevelFourError_js_1.LevelFourError {
|
|
8
|
+
constructor(message, rawResponse) {
|
|
9
|
+
super({ message, statusCode: 401, rawResponse });
|
|
10
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
11
|
+
this.name = "AuthenticationError";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AuthenticationError = AuthenticationError;
|
|
15
|
+
class AuthorizationError extends LevelFourError_js_1.LevelFourError {
|
|
16
|
+
constructor(message, body, rawResponse) {
|
|
17
|
+
super({ message, statusCode: 403, body, rawResponse });
|
|
18
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
19
|
+
this.name = "AuthorizationError";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AuthorizationError = AuthorizationError;
|
|
23
|
+
class NotFoundError extends LevelFourError_js_1.LevelFourError {
|
|
24
|
+
constructor(message, body, rawResponse) {
|
|
25
|
+
super({ message, statusCode: 404, body, rawResponse });
|
|
26
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
27
|
+
this.name = "NotFoundError";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundError = NotFoundError;
|
|
31
|
+
class BadRequestError extends LevelFourError_js_1.LevelFourError {
|
|
32
|
+
constructor(message, body, rawResponse) {
|
|
33
|
+
super({ message, statusCode: 400, body, rawResponse });
|
|
34
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
35
|
+
this.name = "BadRequestError";
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.BadRequestError = BadRequestError;
|
|
39
|
+
class ConflictError extends LevelFourError_js_1.LevelFourError {
|
|
40
|
+
constructor(message, body, rawResponse) {
|
|
41
|
+
super({ message, statusCode: 409, body, rawResponse });
|
|
42
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
43
|
+
this.name = "ConflictError";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ConflictError = ConflictError;
|
|
47
|
+
class RateLimitError extends LevelFourError_js_1.LevelFourError {
|
|
48
|
+
retryAfter;
|
|
49
|
+
constructor(message, retryAfter, body, rawResponse) {
|
|
50
|
+
super({ message, statusCode: 429, body, rawResponse });
|
|
51
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
52
|
+
this.name = "RateLimitError";
|
|
53
|
+
this.retryAfter = retryAfter;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.RateLimitError = RateLimitError;
|
|
57
|
+
class ValidationError extends LevelFourError_js_1.LevelFourError {
|
|
58
|
+
constructor(message, body, rawResponse) {
|
|
59
|
+
super({ message, statusCode: 422, body, rawResponse });
|
|
60
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
61
|
+
this.name = "ValidationError";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ValidationError = ValidationError;
|
|
65
|
+
class InternalServerError extends LevelFourError_js_1.LevelFourError {
|
|
66
|
+
constructor(message, body, rawResponse) {
|
|
67
|
+
super({ message, statusCode: 500, body, rawResponse });
|
|
68
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
69
|
+
this.name = "InternalServerError";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.InternalServerError = InternalServerError;
|
|
73
|
+
const STATUS_TO_ERROR = {
|
|
74
|
+
400: BadRequestError,
|
|
75
|
+
401: AuthenticationError,
|
|
76
|
+
403: AuthorizationError,
|
|
77
|
+
404: NotFoundError,
|
|
78
|
+
409: ConflictError,
|
|
79
|
+
422: ValidationError,
|
|
80
|
+
429: RateLimitError,
|
|
81
|
+
500: InternalServerError,
|
|
82
|
+
};
|
|
83
|
+
function mapError(err) {
|
|
84
|
+
if (!err.statusCode)
|
|
85
|
+
return err;
|
|
86
|
+
const ErrorClass = STATUS_TO_ERROR[err.statusCode];
|
|
87
|
+
if (!ErrorClass)
|
|
88
|
+
return err;
|
|
89
|
+
const body = err.body;
|
|
90
|
+
const message = body?.error?.message ?? err.message;
|
|
91
|
+
if (err.statusCode === 429) {
|
|
92
|
+
return new RateLimitError(message, undefined, err.body, err.rawResponse);
|
|
93
|
+
}
|
|
94
|
+
if (err.statusCode === 401) {
|
|
95
|
+
return new AuthenticationError(message, err.rawResponse);
|
|
96
|
+
}
|
|
97
|
+
return new ErrorClass(message, err.body);
|
|
98
|
+
}
|
package/dist/exports.js
ADDED
|
@@ -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("./core/exports.js"), exports);
|
|
@@ -4,17 +4,7 @@ export { LevelFourClient } from "./LevelFourClient.js";
|
|
|
4
4
|
export type { LevelFourClientOptions } from "./LevelFourClient.js";
|
|
5
5
|
export { LevelFourClient as BaseLevelFourClient } from "./Client.js";
|
|
6
6
|
export { LevelFourError, LevelFourTimeoutError } from "./errors/index.js";
|
|
7
|
-
export {
|
|
8
|
-
AuthenticationError,
|
|
9
|
-
AuthorizationError,
|
|
10
|
-
NotFoundError,
|
|
11
|
-
BadRequestError,
|
|
12
|
-
ConflictError,
|
|
13
|
-
RateLimitError,
|
|
14
|
-
ValidationError,
|
|
15
|
-
InternalServerError,
|
|
16
|
-
mapError,
|
|
17
|
-
} from "./errors.js";
|
|
7
|
+
export { AuthenticationError, AuthorizationError, NotFoundError, BadRequestError, ConflictError, RateLimitError, ValidationError, InternalServerError, mapError, } from "./errors.js";
|
|
18
8
|
export { PageIterator } from "./pagination.js";
|
|
19
9
|
export type { PaginatedResponse, FetchPage } from "./pagination.js";
|
|
20
10
|
export { WebhookVerifier, WebhookVerificationError } from "./webhooks.js";
|