@vantage-sh/vantage-client 2.22.0 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +225 -4
- package/dist/index.d.ts +225 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1059,6 +1059,26 @@ interface paths {
|
|
|
1059
1059
|
patch?: never;
|
|
1060
1060
|
trace?: never;
|
|
1061
1061
|
};
|
|
1062
|
+
"/financial_commitment_reports/{financial_commitment_report_token}/costs": {
|
|
1063
|
+
parameters: {
|
|
1064
|
+
query?: never;
|
|
1065
|
+
header?: never;
|
|
1066
|
+
path?: never;
|
|
1067
|
+
cookie?: never;
|
|
1068
|
+
};
|
|
1069
|
+
/**
|
|
1070
|
+
* Get costs for financial commitment report
|
|
1071
|
+
* @description Return costs for a FinancialCommitmentReport.
|
|
1072
|
+
*/
|
|
1073
|
+
get: operations["getFinancialCommitmentReportCosts"];
|
|
1074
|
+
put?: never;
|
|
1075
|
+
post?: never;
|
|
1076
|
+
delete?: never;
|
|
1077
|
+
options?: never;
|
|
1078
|
+
head?: never;
|
|
1079
|
+
patch?: never;
|
|
1080
|
+
trace?: never;
|
|
1081
|
+
};
|
|
1062
1082
|
"/financial_commitments": {
|
|
1063
1083
|
parameters: {
|
|
1064
1084
|
query?: never;
|
|
@@ -5179,6 +5199,103 @@ interface components {
|
|
|
5179
5199
|
/** @description The filter applied to the FinancialCommitmentReport. Additional documentation available at https://docs.vantage.sh/vql. */
|
|
5180
5200
|
filter: string | null;
|
|
5181
5201
|
};
|
|
5202
|
+
/** @description FinancialCommitmentReportCosts model */
|
|
5203
|
+
FinancialCommitmentReportCosts: {
|
|
5204
|
+
links?: components["schemas"]["Links"];
|
|
5205
|
+
total_amount: components["schemas"]["CostPartial"];
|
|
5206
|
+
total_gross_amount: components["schemas"]["CostPartial"];
|
|
5207
|
+
costs: components["schemas"]["FinancialCommitmentReportCost"][];
|
|
5208
|
+
};
|
|
5209
|
+
FinancialCommitmentReportCost: {
|
|
5210
|
+
/**
|
|
5211
|
+
* @description The date the cost was accrued. ISO 8601 Formatted.
|
|
5212
|
+
* @example 2024-03-01T00:00:00Z
|
|
5213
|
+
*/
|
|
5214
|
+
accrued_at: string;
|
|
5215
|
+
/**
|
|
5216
|
+
* @description The net (discounted) cost amount.
|
|
5217
|
+
* @example 100.00
|
|
5218
|
+
*/
|
|
5219
|
+
amount: string;
|
|
5220
|
+
/**
|
|
5221
|
+
* @description The gross cost amount before discounts.
|
|
5222
|
+
* @example 150.00
|
|
5223
|
+
*/
|
|
5224
|
+
gross_amount: string;
|
|
5225
|
+
/**
|
|
5226
|
+
* @description The on-demand usage cost amount.
|
|
5227
|
+
* @example 50.00
|
|
5228
|
+
*/
|
|
5229
|
+
on_demand_amount: string;
|
|
5230
|
+
/**
|
|
5231
|
+
* @description The gross amount of costs covered by commitments.
|
|
5232
|
+
* @example 100.00
|
|
5233
|
+
*/
|
|
5234
|
+
covered_gross_amount: string;
|
|
5235
|
+
/**
|
|
5236
|
+
* @description The currency of the cost.
|
|
5237
|
+
* @example USD
|
|
5238
|
+
*/
|
|
5239
|
+
currency: string;
|
|
5240
|
+
/**
|
|
5241
|
+
* @description The type of cost.
|
|
5242
|
+
* @example SavingsPlanCoveredUsage
|
|
5243
|
+
*/
|
|
5244
|
+
cost_type?: string | null;
|
|
5245
|
+
/**
|
|
5246
|
+
* @description The type of financial commitment.
|
|
5247
|
+
* @example savings_plan
|
|
5248
|
+
*/
|
|
5249
|
+
commitment_type?: string | null;
|
|
5250
|
+
/**
|
|
5251
|
+
* @description The identifier of the financial commitment.
|
|
5252
|
+
* @example sp-1234567890abcdef0
|
|
5253
|
+
*/
|
|
5254
|
+
commitment_id?: string | null;
|
|
5255
|
+
/**
|
|
5256
|
+
* @description The service which incurred the cost.
|
|
5257
|
+
* @example Amazon Elastic Compute Cloud - Compute
|
|
5258
|
+
*/
|
|
5259
|
+
service?: string | null;
|
|
5260
|
+
/**
|
|
5261
|
+
* @description The resource account ID which incurred the cost.
|
|
5262
|
+
* @example 123456789012
|
|
5263
|
+
*/
|
|
5264
|
+
resource_account_id?: string | null;
|
|
5265
|
+
/**
|
|
5266
|
+
* @description The billing account ID which incurred the cost.
|
|
5267
|
+
* @example 123456789012
|
|
5268
|
+
*/
|
|
5269
|
+
provider_account_id?: string | null;
|
|
5270
|
+
/**
|
|
5271
|
+
* @description The region which incurred the cost.
|
|
5272
|
+
* @example us-east-1
|
|
5273
|
+
*/
|
|
5274
|
+
region?: string | null;
|
|
5275
|
+
/**
|
|
5276
|
+
* @description The category for the cost.
|
|
5277
|
+
* @example Data Transfer
|
|
5278
|
+
*/
|
|
5279
|
+
cost_category?: string | null;
|
|
5280
|
+
/**
|
|
5281
|
+
* @description The subcategory for the cost.
|
|
5282
|
+
* @example DataTransfer-Regional-Bytes
|
|
5283
|
+
*/
|
|
5284
|
+
cost_subcategory?: string | null;
|
|
5285
|
+
/**
|
|
5286
|
+
* @description The instance type which incurred the cost.
|
|
5287
|
+
* @example m5.xlarge
|
|
5288
|
+
*/
|
|
5289
|
+
instance_type?: string | null;
|
|
5290
|
+
/**
|
|
5291
|
+
* @description The tag attached to the cost that was incurred.
|
|
5292
|
+
* DEPRECATED: does not support multiple tags.
|
|
5293
|
+
* @example production
|
|
5294
|
+
*/
|
|
5295
|
+
tag?: string | null;
|
|
5296
|
+
/** @description The tag pairs attached to the cost that was incurred. */
|
|
5297
|
+
tags?: string[] | null;
|
|
5298
|
+
};
|
|
5182
5299
|
/** @description Create a FinancialCommitmentReport. */
|
|
5183
5300
|
createFinancialCommitmentReport: {
|
|
5184
5301
|
/** @description The Workspace in which the FinancialCommitmentReport will be created. */
|
|
@@ -5214,7 +5331,7 @@ interface components {
|
|
|
5214
5331
|
* @enum {string}
|
|
5215
5332
|
*/
|
|
5216
5333
|
on_demand_costs_scope?: "discountable" | "all";
|
|
5217
|
-
/** @description Grouping values for aggregating costs on the FinancialCommitmentReport. Valid groupings: cost_type, commitment_type, commitment_id, service, resource_account_id, provider_account_id, region, cost_category, cost_sub_category, instance_type, tag
|
|
5334
|
+
/** @description Grouping values for aggregating costs on the FinancialCommitmentReport. Valid groupings: cost_type, commitment_type, commitment_id, service, resource_account_id, provider_account_id, region, cost_category, cost_sub_category, instance_type, tag:<label_name>. */
|
|
5218
5335
|
groupings?: string[];
|
|
5219
5336
|
};
|
|
5220
5337
|
/** @description Update a FinancialCommitmentReport. */
|
|
@@ -5250,7 +5367,7 @@ interface components {
|
|
|
5250
5367
|
* @enum {string}
|
|
5251
5368
|
*/
|
|
5252
5369
|
on_demand_costs_scope?: "discountable" | "all";
|
|
5253
|
-
/** @description Grouping values for aggregating costs on the FinancialCommitmentReport. Valid groupings: cost_type, commitment_type, commitment_id, service, resource_account_id, provider_account_id, region, cost_category, cost_sub_category, instance_type, tag
|
|
5370
|
+
/** @description Grouping values for aggregating costs on the FinancialCommitmentReport. Valid groupings: cost_type, commitment_type, commitment_id, service, resource_account_id, provider_account_id, region, cost_category, cost_sub_category, instance_type, tag:<label_name>. */
|
|
5254
5371
|
groupings?: string[];
|
|
5255
5372
|
};
|
|
5256
5373
|
/** @description FinancialCommitments model */
|
|
@@ -7158,7 +7275,7 @@ interface components {
|
|
|
7158
7275
|
overridable: boolean;
|
|
7159
7276
|
/**
|
|
7160
7277
|
* @description The earliest month VirtualTagConfig should be backfilled to.
|
|
7161
|
-
* @example 2026-
|
|
7278
|
+
* @example 2026-03-01
|
|
7162
7279
|
*/
|
|
7163
7280
|
backfill_until: string;
|
|
7164
7281
|
/** @description Tag keys to collapse values for. */
|
|
@@ -12364,6 +12481,88 @@ interface operations {
|
|
|
12364
12481
|
};
|
|
12365
12482
|
};
|
|
12366
12483
|
};
|
|
12484
|
+
getFinancialCommitmentReportCosts: {
|
|
12485
|
+
parameters: {
|
|
12486
|
+
query?: {
|
|
12487
|
+
/**
|
|
12488
|
+
* @description First date you would like to filter costs from. YYYY-MM-DD formatted.
|
|
12489
|
+
* @example 2024-03-01
|
|
12490
|
+
*/
|
|
12491
|
+
start_date?: string;
|
|
12492
|
+
/**
|
|
12493
|
+
* @description Last date you would like to filter costs to. YYYY-MM-DD formatted.
|
|
12494
|
+
* @example 2024-03-31
|
|
12495
|
+
*/
|
|
12496
|
+
end_date?: string;
|
|
12497
|
+
/** @description The date bin of the costs. Defaults to the report's configured date bucket. Hourly costs are limited to 14 days. */
|
|
12498
|
+
date_bin?: "hour" | "day" | "week" | "month" | "quarter";
|
|
12499
|
+
/** @description Group the results by up to 100 fields. Valid groupings: cost_type, commitment_type, commitment_id, service, resource_account_id, provider_account_id, region, cost_category, cost_sub_category, instance_type, tag:<label_name>. */
|
|
12500
|
+
groupings?: string[];
|
|
12501
|
+
/** @description The VQL filter to apply to the costs. Overrides the report's saved filter. */
|
|
12502
|
+
filter?: string;
|
|
12503
|
+
/** @description The scope for the costs. Possible values: discountable, all. */
|
|
12504
|
+
on_demand_costs_scope?: "discountable" | "all";
|
|
12505
|
+
/** @description Whether to order costs by date in an ascending or descending manner. */
|
|
12506
|
+
order?: "asc" | "desc";
|
|
12507
|
+
/** @description The amount of results to return. The maximum is 5000. */
|
|
12508
|
+
limit?: number;
|
|
12509
|
+
/** @description The page of results to return. */
|
|
12510
|
+
page?: number;
|
|
12511
|
+
};
|
|
12512
|
+
header?: never;
|
|
12513
|
+
path: {
|
|
12514
|
+
financial_commitment_report_token: string;
|
|
12515
|
+
};
|
|
12516
|
+
cookie?: never;
|
|
12517
|
+
};
|
|
12518
|
+
requestBody?: never;
|
|
12519
|
+
responses: {
|
|
12520
|
+
200: {
|
|
12521
|
+
headers: {
|
|
12522
|
+
[name: string]: unknown;
|
|
12523
|
+
};
|
|
12524
|
+
content: {
|
|
12525
|
+
"application/json": components["schemas"]["FinancialCommitmentReportCosts"];
|
|
12526
|
+
};
|
|
12527
|
+
};
|
|
12528
|
+
/** @description BadRequest */
|
|
12529
|
+
400: {
|
|
12530
|
+
headers: {
|
|
12531
|
+
[name: string]: unknown;
|
|
12532
|
+
};
|
|
12533
|
+
content: {
|
|
12534
|
+
"application/json": components["schemas"]["Errors"];
|
|
12535
|
+
};
|
|
12536
|
+
};
|
|
12537
|
+
/** @description PaymentRequired */
|
|
12538
|
+
402: {
|
|
12539
|
+
headers: {
|
|
12540
|
+
[name: string]: unknown;
|
|
12541
|
+
};
|
|
12542
|
+
content: {
|
|
12543
|
+
"application/json": components["schemas"]["Errors"];
|
|
12544
|
+
};
|
|
12545
|
+
};
|
|
12546
|
+
/** @description NotFound */
|
|
12547
|
+
404: {
|
|
12548
|
+
headers: {
|
|
12549
|
+
[name: string]: unknown;
|
|
12550
|
+
};
|
|
12551
|
+
content: {
|
|
12552
|
+
"application/json": components["schemas"]["Errors"];
|
|
12553
|
+
};
|
|
12554
|
+
};
|
|
12555
|
+
/** @description UnprocessableEntity */
|
|
12556
|
+
422: {
|
|
12557
|
+
headers: {
|
|
12558
|
+
[name: string]: unknown;
|
|
12559
|
+
};
|
|
12560
|
+
content: {
|
|
12561
|
+
"application/json": components["schemas"]["Errors"];
|
|
12562
|
+
};
|
|
12563
|
+
};
|
|
12564
|
+
};
|
|
12565
|
+
};
|
|
12367
12566
|
getFinancialCommitments: {
|
|
12368
12567
|
parameters: {
|
|
12369
12568
|
query?: {
|
|
@@ -19788,6 +19987,14 @@ type UpdateFinancialCommitmentReportResponse = ResponseBodyForPathAndMethod<`/v2
|
|
|
19788
19987
|
* Response type for Delete financial commitment report
|
|
19789
19988
|
*/
|
|
19790
19989
|
type DeleteFinancialCommitmentReportResponse = ResponseBodyForPathAndMethod<`/v2/financial_commitment_reports/${NoSlashString}`, "DELETE">;
|
|
19990
|
+
/**
|
|
19991
|
+
* Return costs for a FinancialCommitmentReport.
|
|
19992
|
+
*/
|
|
19993
|
+
type GetFinancialCommitmentReportCostsRequest = RequestBodyForPathAndMethod<`/v2/financial_commitment_reports/${NoSlashString}/costs`, "GET">;
|
|
19994
|
+
/**
|
|
19995
|
+
* Response type for Get costs for financial commitment report
|
|
19996
|
+
*/
|
|
19997
|
+
type GetFinancialCommitmentReportCostsResponse = ResponseBodyForPathAndMethod<`/v2/financial_commitment_reports/${NoSlashString}/costs`, "GET">;
|
|
19791
19998
|
/**
|
|
19792
19999
|
* Return all FinancialCommitments.
|
|
19793
20000
|
*/
|
|
@@ -22369,6 +22576,20 @@ declare class FinancialCommitmentReportsApi<NeverThrow extends boolean> {
|
|
|
22369
22576
|
* Delete a FinancialCommitmentReport.
|
|
22370
22577
|
*/
|
|
22371
22578
|
delete(financialCommitmentReportToken: string): Promise<NeverThrow extends true ? [null, VantageAPIError] | [void, null] : void>;
|
|
22579
|
+
/**
|
|
22580
|
+
* Return costs for a FinancialCommitmentReport.
|
|
22581
|
+
*/
|
|
22582
|
+
getCosts(financialCommitmentReportToken: string, body?: GetFinancialCommitmentReportCostsRequest): Promise<NeverThrow extends true ? [null, VantageAPIError] | [{
|
|
22583
|
+
links?: components["schemas"]["Links"];
|
|
22584
|
+
total_amount: components["schemas"]["CostPartial"];
|
|
22585
|
+
total_gross_amount: components["schemas"]["CostPartial"];
|
|
22586
|
+
costs: components["schemas"]["FinancialCommitmentReportCost"][];
|
|
22587
|
+
}, null] : {
|
|
22588
|
+
links?: components["schemas"]["Links"];
|
|
22589
|
+
total_amount: components["schemas"]["CostPartial"];
|
|
22590
|
+
total_gross_amount: components["schemas"]["CostPartial"];
|
|
22591
|
+
costs: components["schemas"]["FinancialCommitmentReportCost"][];
|
|
22592
|
+
}>;
|
|
22372
22593
|
}
|
|
22373
22594
|
declare class FinancialCommitmentsApi<NeverThrow extends boolean> {
|
|
22374
22595
|
private client;
|
|
@@ -24728,4 +24949,4 @@ type VantageNetworkFlowDirection = (typeof VANTAGE_NETWORK_FLOW_DIRECTIONS)[numb
|
|
|
24728
24949
|
declare const VANTAGE_NETWORK_FLOW_WEIGHTS: readonly ["costs", "bytes"];
|
|
24729
24950
|
type VantageNetworkFlowWeight = (typeof VANTAGE_NETWORK_FLOW_WEIGHTS)[number];
|
|
24730
24951
|
|
|
24731
|
-
export { APIV2Client, type AddTeamMemberRequest, type AddTeamMemberResponse, type CreateAccessGrantRequest, type CreateAccessGrantResponse, type CreateAnnotationRequest, type CreateAnnotationResponse, type CreateAnomalyNotificationRequest, type CreateAnomalyNotificationResponse, type CreateAzureIntegrationRequest, type CreateAzureIntegrationResponse, type CreateBillingProfileRequest, type CreateBillingProfileResponse, type CreateBillingRuleRequest, type CreateBillingRuleResponse, type CreateBudgetAlertRequest, type CreateBudgetAlertResponse, type CreateBudgetRequest, type CreateBudgetResponse, type CreateBusinessMetricRequest, type CreateBusinessMetricResponse, type CreateCanvasRequest, type CreateCanvasResponse, type CreateCostAlertRequest, type CreateCostAlertResponse, type CreateCostExportRequest, type CreateCostExportResponse, type CreateCostReportRequest, type CreateCostReportResponse, type CreateCustomProviderIntegrationRequest, type CreateCustomProviderIntegrationResponse, type CreateDashboardRequest, type CreateDashboardResponse, type CreateExchangeRatesViaCsvRequest, type CreateExchangeRatesViaCsvResponse, type CreateFinancialCommitmentReportRequest, type CreateFinancialCommitmentReportResponse, type CreateFolderRequest, type CreateFolderResponse, type CreateGCPIntegrationRequest, type CreateGCPIntegrationResponse, type CreateInvoiceRequest, type CreateInvoiceResponse, type CreateKubernetesEfficiencyReportExportRequest, type CreateKubernetesEfficiencyReportExportResponse, type CreateKubernetesEfficiencyReportRequest, type CreateKubernetesEfficiencyReportResponse, type CreateManagedAccountRequest, type CreateManagedAccountResponse, type CreateNetworkFlowReportRequest, type CreateNetworkFlowReportResponse, type CreateRecommendationViewRequest, type CreateRecommendationViewResponse, type CreateReportForecastRequest, type CreateReportForecastResponse, type CreateReportNotificationRequest, type CreateReportNotificationResponse, type CreateResourceReportRequest, type CreateResourceReportResponse, type CreateSavedFilterRequest, type CreateSavedFilterResponse, type CreateScenarioModelRequest, type CreateScenarioModelResponse, type CreateSegmentRequest, type CreateSegmentResponse, type CreateSsoConnectionForManagedAccountRequest, type CreateSsoConnectionForManagedAccountResponse, type CreateTeamRequest, type CreateTeamResponse, type CreateUnitCostsExportRequest, type CreateUnitCostsExportResponse, type CreateUserCostsUploadViaCsvRequest, type CreateUserCostsUploadViaCsvResponse, type CreateUserFeedbackRequest, type CreateUserFeedbackResponse, type CreateVirtualTagConfigRequest, type CreateVirtualTagConfigResponse, type CreateVirtualTagConfigValueRequest, type CreateVirtualTagConfigValueResponse, type CreateWorkspaceRequest, type CreateWorkspaceResponse, type DeleteAccessGrantResponse, type DeleteAnnotationResponse, type DeleteAnomalyNotificationResponse, type DeleteBillingProfileResponse, type DeleteBillingRuleResponse, type DeleteBudgetAlertResponse, type DeleteBudgetResponse, type DeleteBusinessMetricResponse, type DeleteBusinessMetricValuesRequest, type DeleteBusinessMetricValuesResponse, type DeleteCanvasResponse, type DeleteCostAlertResponse, type DeleteCostReportResponse, type DeleteDashboardResponse, type DeleteFinancialCommitmentReportResponse, type DeleteFolderResponse, type DeleteIntegrationResponse, type DeleteKubernetesEfficiencyReportResponse, type DeleteManagedAccountResponse, type DeleteNetworkFlowReportResponse, type DeleteRecommendationViewResponse, type DeleteReportForecastResponse, type DeleteReportNotificationResponse, type DeleteResourceReportResponse, type DeleteSavedFilterResponse, type DeleteScenarioModelResponse, type DeleteSegmentResponse, type DeleteSsoConnectionForManagedAccountResponse, type DeleteTeamResponse, type DeleteUserCostsUploadResponse, type DeleteVirtualTagConfigResponse, type DeleteVirtualTagConfigValueResponse, type DeleteWorkspaceResponse, type DownloadInvoiceRequest, type DownloadInvoiceResponse, type GetAccessGrantResponse, type GetAccessGrantsRequest, type GetAccessGrantsResponse, type GetAnnotationsRequest, type GetAnnotationsResponse, type GetAnomalyAlertResponse, type GetAnomalyAlertsRequest, type GetAnomalyAlertsResponse, type GetAnomalyNotificationResponse, type GetAnomalyNotificationsRequest, type GetAnomalyNotificationsResponse, type GetAsyncVirtualTagConfigStatusResponse, type GetAuditLogResponse, type GetAuditLogsRequest, type GetAuditLogsResponse, type GetBillingProfileResponse, type GetBillingProfilesRequest, type GetBillingProfilesResponse, type GetBillingRuleResponse, type GetBillingRulesRequest, type GetBillingRulesResponse, type GetBudgetAlertResponse, type GetBudgetAlertsRequest, type GetBudgetAlertsResponse, type GetBudgetRequest, type GetBudgetResponse, type GetBudgetsRequest, type GetBudgetsResponse, type GetBusinessMetricForecastedValuesRequest, type GetBusinessMetricForecastedValuesResponse, type GetBusinessMetricLabelsRequest, type GetBusinessMetricLabelsResponse, type GetBusinessMetricResponse, type GetBusinessMetricValuesRequest, type GetBusinessMetricValuesResponse, type GetBusinessMetricsRequest, type GetBusinessMetricsResponse, type GetCanvasResponse, type GetCanvasesRequest, type GetCanvasesResponse, type GetCostAlertEventResponse, type GetCostAlertEventsRequest, type GetCostAlertEventsResponse, type GetCostAlertResponse, type GetCostAlertsRequest, type GetCostAlertsResponse, type GetCostProviderAccountsRequest, type GetCostProviderAccountsResponse, type GetCostProvidersRequest, type GetCostProvidersResponse, type GetCostReportResponse, type GetCostReportsRequest, type GetCostReportsResponse, type GetCostServicesRequest, type GetCostServicesResponse, type GetCostsRequest, type GetCostsResponse, type GetDashboardResponse, type GetDashboardsRequest, type GetDashboardsResponse, type GetDataExportResponse, type GetExchangeRatesRequest, type GetExchangeRatesResponse, type GetFinancialCommitmentReportResponse, type GetFinancialCommitmentReportsRequest, type GetFinancialCommitmentReportsResponse, type GetFinancialCommitmentsRequest, type GetFinancialCommitmentsResponse, type GetFolderResponse, type GetFoldersRequest, type GetFoldersResponse, type GetForecastedCostsRequest, type GetForecastedCostsResponse, type GetIntegrationResponse, type GetIntegrationsRequest, type GetIntegrationsResponse, type GetInvoiceCostReportResponse, type GetInvoiceResponse, type GetInvoicesRequest, type GetInvoicesResponse, type GetKubernetesEfficiencyReportResponse, type GetKubernetesEfficiencyReportsRequest, type GetKubernetesEfficiencyReportsResponse, type GetManagedAccountResponse, type GetManagedAccountsRequest, type GetManagedAccountsResponse, type GetMeResponse, type GetNetworkFlowLogsRequest, type GetNetworkFlowLogsResponse, type GetNetworkFlowReportResponse, type GetNetworkFlowReportsRequest, type GetNetworkFlowReportsResponse, type GetPriceResponse, type GetPricesRequest, type GetPricesResponse, type GetProductResponse, type GetProductsRequest, type GetProductsResponse, type GetRecommendationResourceResponse, type GetRecommendationResourcesRequest, type GetRecommendationResourcesResponse, type GetRecommendationResponse, type GetRecommendationTypeResourcesRequest, type GetRecommendationTypeResourcesResponse, type GetRecommendationViewResponse, type GetRecommendationViewsRequest, type GetRecommendationViewsResponse, type GetRecommendationsRequest, type GetRecommendationsResponse, type GetReportForecastResponse, type GetReportForecastsRequest, type GetReportForecastsResponse, type GetReportNotificationResponse, type GetReportNotificationsRequest, type GetReportNotificationsResponse, type GetReportResourcesRequest, type GetReportResourcesResponse, type GetResourceReportColumnsRequest, type GetResourceReportColumnsResponse, type GetResourceReportResponse, type GetResourceReportsRequest, type GetResourceReportsResponse, type GetResourceRequest, type GetResourceResponse, type GetSavedFilterResponse, type GetSavedFiltersRequest, type GetSavedFiltersResponse, type GetScenarioModelResponse, type GetScenarioModelsRequest, type GetScenarioModelsResponse, type GetSegmentResponse, type GetSegmentsRequest, type GetSegmentsResponse, type GetTagValuesRequest, type GetTagValuesResponse, type GetTagsRequest, type GetTagsResponse, type GetTeamMembersRequest, type GetTeamMembersResponse, type GetTeamResponse, type GetTeamsRequest, type GetTeamsResponse, type GetUnitCostsRequest, type GetUnitCostsResponse, type GetUserCostsUploadsResponse, type GetUserResponse, type GetUsersRequest, type GetUsersResponse, type GetVirtualTagConfigResponse, type GetVirtualTagConfigStatusResponse, type GetVirtualTagConfigValueResponse, type GetVirtualTagConfigsRequest, type GetVirtualTagConfigsResponse, type GetWorkspaceResponse, type GetWorkspacesRequest, type GetWorkspacesResponse, type NoSlashString, type Path, type PathResponseEdgecases, type PingResponse, type RegenerateInvoiceResponse, type RemoveTeamMemberResponse, type RequestBodyForPathAndMethod, type ResponseBodyForPathAndMethod, type SendAndApproveInvoiceResponse, type SendInvoiceResponse, type SupportedMethods, type UpdateAccessGrantRequest, type UpdateAccessGrantResponse, type UpdateAnnotationRequest, type UpdateAnnotationResponse, type UpdateAnomalyAlertRequest, type UpdateAnomalyAlertResponse, type UpdateAnomalyNotificationRequest, type UpdateAnomalyNotificationResponse, type UpdateAsyncVirtualTagConfigRequest, type UpdateAsyncVirtualTagConfigResponse, type UpdateBillingProfileRequest, type UpdateBillingProfileResponse, type UpdateBillingRuleRequest, type UpdateBillingRuleResponse, type UpdateBudgetAlertRequest, type UpdateBudgetAlertResponse, type UpdateBudgetRequest, type UpdateBudgetResponse, type UpdateBusinessMetricRequest, type UpdateBusinessMetricResponse, type UpdateBusinessMetricValuesCSVRequest, type UpdateBusinessMetricValuesCSVResponse, type UpdateCanvasRequest, type UpdateCanvasResponse, type UpdateCostAlertRequest, type UpdateCostAlertResponse, type UpdateCostReportRequest, type UpdateCostReportResponse, type UpdateDashboardRequest, type UpdateDashboardResponse, type UpdateFinancialCommitmentReportRequest, type UpdateFinancialCommitmentReportResponse, type UpdateFolderRequest, type UpdateFolderResponse, type UpdateIntegrationRequest, type UpdateIntegrationResponse, type UpdateKubernetesEfficiencyReportRequest, type UpdateKubernetesEfficiencyReportResponse, type UpdateManagedAccountRequest, type UpdateManagedAccountResponse, type UpdateMeRequest, type UpdateMeResponse, type UpdateNetworkFlowReportRequest, type UpdateNetworkFlowReportResponse, type UpdateRecommendationViewRequest, type UpdateRecommendationViewResponse, type UpdateReportForecastRequest, type UpdateReportForecastResponse, type UpdateReportNotificationRequest, type UpdateReportNotificationResponse, type UpdateResourceReportRequest, type UpdateResourceReportResponse, type UpdateSavedFilterRequest, type UpdateSavedFilterResponse, type UpdateScenarioModelRequest, type UpdateScenarioModelResponse, type UpdateSegmentRequest, type UpdateSegmentResponse, type UpdateSsoConnectionForManagedAccountRequest, type UpdateSsoConnectionForManagedAccountResponse, type UpdateTagRequest, type UpdateTagResponse, type UpdateTeamRequest, type UpdateTeamResponse, type UpdateUserRequest, type UpdateUserResponse, type UpdateVirtualTagConfigRequest, type UpdateVirtualTagConfigResponse, type UpdateVirtualTagConfigValueRequest, type UpdateVirtualTagConfigValueResponse, type UpdateWorkspaceRequest, type UpdateWorkspaceResponse, VANTAGE_CHART_TYPES, VANTAGE_COST_AGGREGATIONS, VANTAGE_DATE_BINS, VANTAGE_DATE_INTERVALS, VANTAGE_NETWORK_FLOW_DIRECTIONS, VANTAGE_NETWORK_FLOW_WEIGHTS, VANTAGE_PROVIDERS, VantageAPIError, type VantageChartType, type VantageCostAggregation, type VantageDateBin, type VantageDateInterval, type VantageNetworkFlowDirection, type VantageNetworkFlowWeight, type VantageProvider, pathEncode };
|
|
24952
|
+
export { APIV2Client, type AddTeamMemberRequest, type AddTeamMemberResponse, type CreateAccessGrantRequest, type CreateAccessGrantResponse, type CreateAnnotationRequest, type CreateAnnotationResponse, type CreateAnomalyNotificationRequest, type CreateAnomalyNotificationResponse, type CreateAzureIntegrationRequest, type CreateAzureIntegrationResponse, type CreateBillingProfileRequest, type CreateBillingProfileResponse, type CreateBillingRuleRequest, type CreateBillingRuleResponse, type CreateBudgetAlertRequest, type CreateBudgetAlertResponse, type CreateBudgetRequest, type CreateBudgetResponse, type CreateBusinessMetricRequest, type CreateBusinessMetricResponse, type CreateCanvasRequest, type CreateCanvasResponse, type CreateCostAlertRequest, type CreateCostAlertResponse, type CreateCostExportRequest, type CreateCostExportResponse, type CreateCostReportRequest, type CreateCostReportResponse, type CreateCustomProviderIntegrationRequest, type CreateCustomProviderIntegrationResponse, type CreateDashboardRequest, type CreateDashboardResponse, type CreateExchangeRatesViaCsvRequest, type CreateExchangeRatesViaCsvResponse, type CreateFinancialCommitmentReportRequest, type CreateFinancialCommitmentReportResponse, type CreateFolderRequest, type CreateFolderResponse, type CreateGCPIntegrationRequest, type CreateGCPIntegrationResponse, type CreateInvoiceRequest, type CreateInvoiceResponse, type CreateKubernetesEfficiencyReportExportRequest, type CreateKubernetesEfficiencyReportExportResponse, type CreateKubernetesEfficiencyReportRequest, type CreateKubernetesEfficiencyReportResponse, type CreateManagedAccountRequest, type CreateManagedAccountResponse, type CreateNetworkFlowReportRequest, type CreateNetworkFlowReportResponse, type CreateRecommendationViewRequest, type CreateRecommendationViewResponse, type CreateReportForecastRequest, type CreateReportForecastResponse, type CreateReportNotificationRequest, type CreateReportNotificationResponse, type CreateResourceReportRequest, type CreateResourceReportResponse, type CreateSavedFilterRequest, type CreateSavedFilterResponse, type CreateScenarioModelRequest, type CreateScenarioModelResponse, type CreateSegmentRequest, type CreateSegmentResponse, type CreateSsoConnectionForManagedAccountRequest, type CreateSsoConnectionForManagedAccountResponse, type CreateTeamRequest, type CreateTeamResponse, type CreateUnitCostsExportRequest, type CreateUnitCostsExportResponse, type CreateUserCostsUploadViaCsvRequest, type CreateUserCostsUploadViaCsvResponse, type CreateUserFeedbackRequest, type CreateUserFeedbackResponse, type CreateVirtualTagConfigRequest, type CreateVirtualTagConfigResponse, type CreateVirtualTagConfigValueRequest, type CreateVirtualTagConfigValueResponse, type CreateWorkspaceRequest, type CreateWorkspaceResponse, type DeleteAccessGrantResponse, type DeleteAnnotationResponse, type DeleteAnomalyNotificationResponse, type DeleteBillingProfileResponse, type DeleteBillingRuleResponse, type DeleteBudgetAlertResponse, type DeleteBudgetResponse, type DeleteBusinessMetricResponse, type DeleteBusinessMetricValuesRequest, type DeleteBusinessMetricValuesResponse, type DeleteCanvasResponse, type DeleteCostAlertResponse, type DeleteCostReportResponse, type DeleteDashboardResponse, type DeleteFinancialCommitmentReportResponse, type DeleteFolderResponse, type DeleteIntegrationResponse, type DeleteKubernetesEfficiencyReportResponse, type DeleteManagedAccountResponse, type DeleteNetworkFlowReportResponse, type DeleteRecommendationViewResponse, type DeleteReportForecastResponse, type DeleteReportNotificationResponse, type DeleteResourceReportResponse, type DeleteSavedFilterResponse, type DeleteScenarioModelResponse, type DeleteSegmentResponse, type DeleteSsoConnectionForManagedAccountResponse, type DeleteTeamResponse, type DeleteUserCostsUploadResponse, type DeleteVirtualTagConfigResponse, type DeleteVirtualTagConfigValueResponse, type DeleteWorkspaceResponse, type DownloadInvoiceRequest, type DownloadInvoiceResponse, type GetAccessGrantResponse, type GetAccessGrantsRequest, type GetAccessGrantsResponse, type GetAnnotationsRequest, type GetAnnotationsResponse, type GetAnomalyAlertResponse, type GetAnomalyAlertsRequest, type GetAnomalyAlertsResponse, type GetAnomalyNotificationResponse, type GetAnomalyNotificationsRequest, type GetAnomalyNotificationsResponse, type GetAsyncVirtualTagConfigStatusResponse, type GetAuditLogResponse, type GetAuditLogsRequest, type GetAuditLogsResponse, type GetBillingProfileResponse, type GetBillingProfilesRequest, type GetBillingProfilesResponse, type GetBillingRuleResponse, type GetBillingRulesRequest, type GetBillingRulesResponse, type GetBudgetAlertResponse, type GetBudgetAlertsRequest, type GetBudgetAlertsResponse, type GetBudgetRequest, type GetBudgetResponse, type GetBudgetsRequest, type GetBudgetsResponse, type GetBusinessMetricForecastedValuesRequest, type GetBusinessMetricForecastedValuesResponse, type GetBusinessMetricLabelsRequest, type GetBusinessMetricLabelsResponse, type GetBusinessMetricResponse, type GetBusinessMetricValuesRequest, type GetBusinessMetricValuesResponse, type GetBusinessMetricsRequest, type GetBusinessMetricsResponse, type GetCanvasResponse, type GetCanvasesRequest, type GetCanvasesResponse, type GetCostAlertEventResponse, type GetCostAlertEventsRequest, type GetCostAlertEventsResponse, type GetCostAlertResponse, type GetCostAlertsRequest, type GetCostAlertsResponse, type GetCostProviderAccountsRequest, type GetCostProviderAccountsResponse, type GetCostProvidersRequest, type GetCostProvidersResponse, type GetCostReportResponse, type GetCostReportsRequest, type GetCostReportsResponse, type GetCostServicesRequest, type GetCostServicesResponse, type GetCostsRequest, type GetCostsResponse, type GetDashboardResponse, type GetDashboardsRequest, type GetDashboardsResponse, type GetDataExportResponse, type GetExchangeRatesRequest, type GetExchangeRatesResponse, type GetFinancialCommitmentReportCostsRequest, type GetFinancialCommitmentReportCostsResponse, type GetFinancialCommitmentReportResponse, type GetFinancialCommitmentReportsRequest, type GetFinancialCommitmentReportsResponse, type GetFinancialCommitmentsRequest, type GetFinancialCommitmentsResponse, type GetFolderResponse, type GetFoldersRequest, type GetFoldersResponse, type GetForecastedCostsRequest, type GetForecastedCostsResponse, type GetIntegrationResponse, type GetIntegrationsRequest, type GetIntegrationsResponse, type GetInvoiceCostReportResponse, type GetInvoiceResponse, type GetInvoicesRequest, type GetInvoicesResponse, type GetKubernetesEfficiencyReportResponse, type GetKubernetesEfficiencyReportsRequest, type GetKubernetesEfficiencyReportsResponse, type GetManagedAccountResponse, type GetManagedAccountsRequest, type GetManagedAccountsResponse, type GetMeResponse, type GetNetworkFlowLogsRequest, type GetNetworkFlowLogsResponse, type GetNetworkFlowReportResponse, type GetNetworkFlowReportsRequest, type GetNetworkFlowReportsResponse, type GetPriceResponse, type GetPricesRequest, type GetPricesResponse, type GetProductResponse, type GetProductsRequest, type GetProductsResponse, type GetRecommendationResourceResponse, type GetRecommendationResourcesRequest, type GetRecommendationResourcesResponse, type GetRecommendationResponse, type GetRecommendationTypeResourcesRequest, type GetRecommendationTypeResourcesResponse, type GetRecommendationViewResponse, type GetRecommendationViewsRequest, type GetRecommendationViewsResponse, type GetRecommendationsRequest, type GetRecommendationsResponse, type GetReportForecastResponse, type GetReportForecastsRequest, type GetReportForecastsResponse, type GetReportNotificationResponse, type GetReportNotificationsRequest, type GetReportNotificationsResponse, type GetReportResourcesRequest, type GetReportResourcesResponse, type GetResourceReportColumnsRequest, type GetResourceReportColumnsResponse, type GetResourceReportResponse, type GetResourceReportsRequest, type GetResourceReportsResponse, type GetResourceRequest, type GetResourceResponse, type GetSavedFilterResponse, type GetSavedFiltersRequest, type GetSavedFiltersResponse, type GetScenarioModelResponse, type GetScenarioModelsRequest, type GetScenarioModelsResponse, type GetSegmentResponse, type GetSegmentsRequest, type GetSegmentsResponse, type GetTagValuesRequest, type GetTagValuesResponse, type GetTagsRequest, type GetTagsResponse, type GetTeamMembersRequest, type GetTeamMembersResponse, type GetTeamResponse, type GetTeamsRequest, type GetTeamsResponse, type GetUnitCostsRequest, type GetUnitCostsResponse, type GetUserCostsUploadsResponse, type GetUserResponse, type GetUsersRequest, type GetUsersResponse, type GetVirtualTagConfigResponse, type GetVirtualTagConfigStatusResponse, type GetVirtualTagConfigValueResponse, type GetVirtualTagConfigsRequest, type GetVirtualTagConfigsResponse, type GetWorkspaceResponse, type GetWorkspacesRequest, type GetWorkspacesResponse, type NoSlashString, type Path, type PathResponseEdgecases, type PingResponse, type RegenerateInvoiceResponse, type RemoveTeamMemberResponse, type RequestBodyForPathAndMethod, type ResponseBodyForPathAndMethod, type SendAndApproveInvoiceResponse, type SendInvoiceResponse, type SupportedMethods, type UpdateAccessGrantRequest, type UpdateAccessGrantResponse, type UpdateAnnotationRequest, type UpdateAnnotationResponse, type UpdateAnomalyAlertRequest, type UpdateAnomalyAlertResponse, type UpdateAnomalyNotificationRequest, type UpdateAnomalyNotificationResponse, type UpdateAsyncVirtualTagConfigRequest, type UpdateAsyncVirtualTagConfigResponse, type UpdateBillingProfileRequest, type UpdateBillingProfileResponse, type UpdateBillingRuleRequest, type UpdateBillingRuleResponse, type UpdateBudgetAlertRequest, type UpdateBudgetAlertResponse, type UpdateBudgetRequest, type UpdateBudgetResponse, type UpdateBusinessMetricRequest, type UpdateBusinessMetricResponse, type UpdateBusinessMetricValuesCSVRequest, type UpdateBusinessMetricValuesCSVResponse, type UpdateCanvasRequest, type UpdateCanvasResponse, type UpdateCostAlertRequest, type UpdateCostAlertResponse, type UpdateCostReportRequest, type UpdateCostReportResponse, type UpdateDashboardRequest, type UpdateDashboardResponse, type UpdateFinancialCommitmentReportRequest, type UpdateFinancialCommitmentReportResponse, type UpdateFolderRequest, type UpdateFolderResponse, type UpdateIntegrationRequest, type UpdateIntegrationResponse, type UpdateKubernetesEfficiencyReportRequest, type UpdateKubernetesEfficiencyReportResponse, type UpdateManagedAccountRequest, type UpdateManagedAccountResponse, type UpdateMeRequest, type UpdateMeResponse, type UpdateNetworkFlowReportRequest, type UpdateNetworkFlowReportResponse, type UpdateRecommendationViewRequest, type UpdateRecommendationViewResponse, type UpdateReportForecastRequest, type UpdateReportForecastResponse, type UpdateReportNotificationRequest, type UpdateReportNotificationResponse, type UpdateResourceReportRequest, type UpdateResourceReportResponse, type UpdateSavedFilterRequest, type UpdateSavedFilterResponse, type UpdateScenarioModelRequest, type UpdateScenarioModelResponse, type UpdateSegmentRequest, type UpdateSegmentResponse, type UpdateSsoConnectionForManagedAccountRequest, type UpdateSsoConnectionForManagedAccountResponse, type UpdateTagRequest, type UpdateTagResponse, type UpdateTeamRequest, type UpdateTeamResponse, type UpdateUserRequest, type UpdateUserResponse, type UpdateVirtualTagConfigRequest, type UpdateVirtualTagConfigResponse, type UpdateVirtualTagConfigValueRequest, type UpdateVirtualTagConfigValueResponse, type UpdateWorkspaceRequest, type UpdateWorkspaceResponse, VANTAGE_CHART_TYPES, VANTAGE_COST_AGGREGATIONS, VANTAGE_DATE_BINS, VANTAGE_DATE_INTERVALS, VANTAGE_NETWORK_FLOW_DIRECTIONS, VANTAGE_NETWORK_FLOW_WEIGHTS, VANTAGE_PROVIDERS, VantageAPIError, type VantageChartType, type VantageCostAggregation, type VantageDateBin, type VantageDateInterval, type VantageNetworkFlowDirection, type VantageNetworkFlowWeight, type VantageProvider, pathEncode };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var R=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var qe=Object.prototype.hasOwnProperty;var Ae=(o,e)=>{for(var t in e)R(o,t,{get:e[t],enumerable:!0})},Ee=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Se(e))!qe.call(o,i)&&i!==t&&R(o,i,{get:()=>e[i],enumerable:!(n=Pe(e,i))||n.enumerable});return o};var me=o=>Ee(R({},"__esModule",{value:!0}),o);var Be={};Ae(Be,{APIV2Client:()=>y,VANTAGE_CHART_TYPES:()=>ge,VANTAGE_COST_AGGREGATIONS:()=>Re,VANTAGE_DATE_BINS:()=>ve,VANTAGE_DATE_INTERVALS:()=>le,VANTAGE_NETWORK_FLOW_DIRECTIONS:()=>ye,VANTAGE_NETWORK_FLOW_WEIGHTS:()=>Te,VANTAGE_PROVIDERS:()=>ce,VantageAPIError:()=>u,pathEncode:()=>s});module.exports=me(Be);function s(o){return encodeURIComponent(o)}var xe={"/v2/exchange_rates/csv":{POST:!0},"/v2/business_metrics/{}/values.csv":{PUT:!0},"/v2/integrations/{}/costs.csv":{POST:!0}},c={};function Ge(o){return o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}for(let[o,e]of Object.entries(xe)){let t=o.split("{}").map(Ge).join("(.+?)");for(let[n,i]of Object.entries(e))i&&(c[n]||(c[n]=[]),c[n].push(new RegExp(`^${t}$`)))}function Me(o,e){if(Object.prototype.hasOwnProperty.call(c,o))for(let t of c[o]){let n=t.test(e);if(t.lastIndex=0,n)return!0}return!1}function Ne(o,e){if(e)for(let[t,n]of Object.entries(e))o.searchParams.append(t,Array.isArray(n)?n.map(String).join(","):String(n))}var u=class extends Error{constructor(t,n,i){let p=null;if(t!==null)try{let r=JSON.parse(i);Array.isArray(r.errors)&&(p=r.errors)}catch{}let a=t===null?`Vantage API Error: ${i}`:`Vantage API Error: ${t} ${n}`+(p?` - ${p.join(", ")}`:"");super(a);this.status=t;this.statusText=n;this.body=i;this.errors=p}errors};async function g(o,e,t,n,i,p){let a;try{a=await fetch(o.toString(),{method:e,headers:t,body:n})}catch(r){let h=r instanceof Error?r.message:String(r),d=new u(null,null,h);if(i)return[null,d];throw d}if(p==="boolean"){if(a.status===404)return i?[!1,null]:!1;if(!a.ok){let r=new u(a.status,a.statusText,await a.text());if(i)return[null,r];throw r}return i?[!0,null]:!0}if(!a.ok){let r=new u(a.status,a.statusText,await a.text());if(i)return[null,r];throw r}if(p==="location"){let r=a.headers.get("Location");return i?[r,null]:r}if(a.status===204)return i?[void 0,null]:void 0;try{let r=await a.text(),h;return r&&(h=JSON.parse(r)),i?[h,null]:h}catch(r){let h=r instanceof Error?r.message:String(r),d=new u(a.status,a.statusText,h);if(i)return[null,d];throw d}}var l=class{constructor(e,t,n){this.bearerToken=e;this.neverThrow=t;this.baseUrl=n}routeEdgecases=new Map;async request(e,t,n){let i=new URL(e,this.baseUrl),p={Authorization:`Bearer ${this.bearerToken}`},a=`${t} ${e}`,r;for(let[d,v]of this.routeEdgecases)if(a.startsWith(d)){r=v;break}if(t==="GET")return Ne(i,n),g(i,t,p,void 0,this.neverThrow,r);if(Me(t,e)){let d=new FormData;for(let[v,_e]of Object.entries(n))d.append(v,_e);return p["Content-Type"]="multipart/form-data",g(i,t,p,d,this.neverThrow,r)}return p["Content-Type"]="application/json",g(i,t,p,JSON.stringify(n),this.neverThrow,r)}};var ce=["aws","azure","gcp","snowflake","databricks","mongo","datadog","fastly","new_relic","opencost","open_ai","oracle","confluent","planetscale","coralogix","kubernetes","custom_provider","github","linode","grafana","clickhouse","temporal","twilio","azure_csp","kubernetes_agent","anthropic","anyscale","cursor","elastic","vercel","redis_cloud","circle_ci","modal","eleven_labs","baseten","cloudflare","fireworks_ai","cartesia","depot","xai","digital_ocean","together_ai","coreweave","devin"];var le=["this_month","last_7_days","last_30_days","last_month","last_3_months","last_6_months","custom","last_12_months","last_24_months","last_36_months","next_month","next_3_months","next_6_months","next_12_months","year_to_date","last_3_days","last_14_days"],ve=["cumulative","day","week","month","quarter","hour"],Re=["cost","usage","count"],ge=["area","line","pie","bar","multi_bar"],ye=["all","ingress","egress"],Te=["costs","bytes"];var y=class extends l{constructor(e,t=!1,n="https://api.vantage.sh"){super(e,t,n)}routeEdgecases=new Map([["POST /v2/costs/data_exports","location"],["POST /v2/kubernetes_efficiency_reports/data_exports","location"],["POST /v2/unit_costs/data_exports","location"],["GET /v2/virtual_tag_configs/async/","boolean"]]);_accessGrants;_annotations;_anomalyAlerts;_anomalyNotifications;_auditLogs;_billingProfiles;_billingRules;_budgetAlerts;_budgets;_businessMetrics;_canvases;_costAlerts;_costProviders;_costProviderAccounts;_costReports;_costs;_costServices;_dashboards;_dataExports;_exchangeRates;_financialCommitmentReports;_financialCommitments;_folders;_integrations;_invoices;_kubernetesEfficiencyReports;_managedAccounts;_me;_networkFlowLogs;_networkFlowReports;_ping;_products;_recommendations;_recommendationViews;_reportForecasts;_reportNotifications;_resourceReports;_resources;_savedFilters;_scenarioModels;_segments;_tags;_teams;_unitCosts;_userFeedback;_users;_virtualTagConfigs;_workspaces;get accessGrants(){return this._accessGrants||(this._accessGrants=new T(this)),this._accessGrants}get annotations(){return this._annotations||(this._annotations=new _(this)),this._annotations}get anomalyAlerts(){return this._anomalyAlerts||(this._anomalyAlerts=new P(this)),this._anomalyAlerts}get anomalyNotifications(){return this._anomalyNotifications||(this._anomalyNotifications=new S(this)),this._anomalyNotifications}get auditLogs(){return this._auditLogs||(this._auditLogs=new q(this)),this._auditLogs}get billingProfiles(){return this._billingProfiles||(this._billingProfiles=new A(this)),this._billingProfiles}get billingRules(){return this._billingRules||(this._billingRules=new E(this)),this._billingRules}get budgetAlerts(){return this._budgetAlerts||(this._budgetAlerts=new m(this)),this._budgetAlerts}get budgets(){return this._budgets||(this._budgets=new x(this)),this._budgets}get businessMetrics(){return this._businessMetrics||(this._businessMetrics=new G(this)),this._businessMetrics}get canvases(){return this._canvases||(this._canvases=new M(this)),this._canvases}get costAlerts(){return this._costAlerts||(this._costAlerts=new N(this)),this._costAlerts}get costProviders(){return this._costProviders||(this._costProviders=new B(this)),this._costProviders}get costProviderAccounts(){return this._costProviderAccounts||(this._costProviderAccounts=new f(this)),this._costProviderAccounts}get costReports(){return this._costReports||(this._costReports=new F(this)),this._costReports}get costs(){return this._costs||(this._costs=new w(this)),this._costs}get costServices(){return this._costServices||(this._costServices=new C(this)),this._costServices}get dashboards(){return this._dashboards||(this._dashboards=new $(this)),this._dashboards}get dataExports(){return this._dataExports||(this._dataExports=new b(this)),this._dataExports}get exchangeRates(){return this._exchangeRates||(this._exchangeRates=new U(this)),this._exchangeRates}get financialCommitmentReports(){return this._financialCommitmentReports||(this._financialCommitmentReports=new O(this)),this._financialCommitmentReports}get financialCommitments(){return this._financialCommitments||(this._financialCommitments=new k(this)),this._financialCommitments}get folders(){return this._folders||(this._folders=new D(this)),this._folders}get integrations(){return this._integrations||(this._integrations=new V(this)),this._integrations}get invoices(){return this._invoices||(this._invoices=new L(this)),this._invoices}get kubernetesEfficiencyReports(){return this._kubernetesEfficiencyReports||(this._kubernetesEfficiencyReports=new I(this)),this._kubernetesEfficiencyReports}get managedAccounts(){return this._managedAccounts||(this._managedAccounts=new K(this)),this._managedAccounts}get me(){return this._me||(this._me=new W(this)),this._me}get networkFlowLogs(){return this._networkFlowLogs||(this._networkFlowLogs=new j(this)),this._networkFlowLogs}get networkFlowReports(){return this._networkFlowReports||(this._networkFlowReports=new H(this)),this._networkFlowReports}get ping(){return this._ping||(this._ping=new z(this)),this._ping}get products(){return this._products||(this._products=new J(this)),this._products}get recommendations(){return this._recommendations||(this._recommendations=new Y(this)),this._recommendations}get recommendationViews(){return this._recommendationViews||(this._recommendationViews=new Q(this)),this._recommendationViews}get reportForecasts(){return this._reportForecasts||(this._reportForecasts=new X(this)),this._reportForecasts}get reportNotifications(){return this._reportNotifications||(this._reportNotifications=new Z(this)),this._reportNotifications}get resourceReports(){return this._resourceReports||(this._resourceReports=new ee(this)),this._resourceReports}get resources(){return this._resources||(this._resources=new te(this)),this._resources}get savedFilters(){return this._savedFilters||(this._savedFilters=new se(this)),this._savedFilters}get scenarioModels(){return this._scenarioModels||(this._scenarioModels=new oe(this)),this._scenarioModels}get segments(){return this._segments||(this._segments=new re(this)),this._segments}get tags(){return this._tags||(this._tags=new ne(this)),this._tags}get teams(){return this._teams||(this._teams=new ie(this)),this._teams}get unitCosts(){return this._unitCosts||(this._unitCosts=new ae(this)),this._unitCosts}get userFeedback(){return this._userFeedback||(this._userFeedback=new pe(this)),this._userFeedback}get users(){return this._users||(this._users=new de(this)),this._users}get virtualTagConfigs(){return this._virtualTagConfigs||(this._virtualTagConfigs=new he(this)),this._virtualTagConfigs}get workspaces(){return this._workspaces||(this._workspaces=new ue(this)),this._workspaces}},T=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/access_grants","GET",e)}create(e){return this.client.request("/v2/access_grants","POST",e)}get(e){return this.client.request(`/v2/access_grants/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/access_grants/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/access_grants/${s(e)}`,"DELETE",{})}},_=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/annotations","GET",e)}create(e){return this.client.request("/v2/annotations","POST",e)}update(e,t){return this.client.request(`/v2/annotations/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/annotations/${s(e)}`,"DELETE",{})}},P=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/anomaly_alerts","GET",e)}get(e){return this.client.request(`/v2/anomaly_alerts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/anomaly_alerts/${s(e)}`,"PUT",t)}},S=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/anomaly_notifications","GET",e)}create(e){return this.client.request("/v2/anomaly_notifications","POST",e)}get(e){return this.client.request(`/v2/anomaly_notifications/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/anomaly_notifications/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/anomaly_notifications/${s(e)}`,"DELETE",{})}},q=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/audit_logs","GET",e)}get(e){return this.client.request(`/v2/audit_logs/${s(e)}`,"GET",{})}},A=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/billing_profiles","GET",e)}create(e){return this.client.request("/v2/billing_profiles","POST",e)}get(e){return this.client.request(`/v2/billing_profiles/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/billing_profiles/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/billing_profiles/${s(e)}`,"DELETE",{})}},E=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/billing_rules","GET",e)}create(e){return this.client.request("/v2/billing_rules","POST",e)}get(e){return this.client.request(`/v2/billing_rules/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/billing_rules/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/billing_rules/${s(e)}`,"DELETE",{})}},m=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/budget_alerts","GET",e)}create(e){return this.client.request("/v2/budget_alerts","POST",e)}get(e){return this.client.request(`/v2/budget_alerts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/budget_alerts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/budget_alerts/${s(e)}`,"DELETE",{})}},x=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/budgets","GET",e)}create(e){return this.client.request("/v2/budgets","POST",e)}update(e,t){return this.client.request(`/v2/budgets/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/budgets/${s(e)}`,"DELETE",{})}},G=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/business_metrics","GET",e)}create(e){return this.client.request("/v2/business_metrics","POST",e)}get(e){return this.client.request(`/v2/business_metrics/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/business_metrics/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/business_metrics/${s(e)}`,"DELETE",{})}getLabels(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/labels`,"GET",t)}getValues(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/values`,"GET",t)}deleteValues(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/values`,"DELETE",t)}getForecastedValues(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/forecasted_values`,"GET",t)}updateValuesCSV(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/values.csv`,"PUT",t)}},M=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/canvases","GET",e)}create(e){return this.client.request("/v2/canvases","POST",e)}get(e){return this.client.request(`/v2/canvases/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/canvases/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/canvases/${s(e)}`,"DELETE",{})}},N=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_alerts","GET",e)}create(e){return this.client.request("/v2/cost_alerts","POST",e)}get(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}/events/${s(t)}`,"GET",{})}update(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/cost_alerts/${s(e)}`,"DELETE",{})}getEvents(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}/events`,"GET",t)}getEvent(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}/events/${s(t)}`,"GET",{})}},B=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_providers","GET",e)}},f=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_provider_accounts","GET",e)}},F=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_reports","GET",e)}create(e){return this.client.request("/v2/cost_reports","POST",e)}get(e){return this.client.request(`/v2/cost_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/cost_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/cost_reports/${s(e)}`,"DELETE",{})}getForecastedCosts(e,t){return this.client.request(`/v2/cost_reports/${s(e)}/forecasted_costs`,"GET",t)}},w=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/costs","GET",e)}createExport(e){return this.client.request("/v2/costs/data_exports","POST",e)}},C=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_services","GET",e)}},$=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/dashboards","GET",e)}create(e){return this.client.request("/v2/dashboards","POST",e)}get(e){return this.client.request(`/v2/dashboards/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/dashboards/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/dashboards/${s(e)}`,"DELETE",{})}},b=class{constructor(e){this.client=e}get(e){return this.client.request(`/v2/data_exports/${s(e)}`,"GET",{})}},U=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/exchange_rates","GET",e)}createViaCsv(e){return this.client.request("/v2/exchange_rates/csv","POST",e)}},O=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/financial_commitment_reports","GET",e)}create(e){return this.client.request("/v2/financial_commitment_reports","POST",e)}get(e){return this.client.request(`/v2/financial_commitment_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/financial_commitment_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/financial_commitment_reports/${s(e)}`,"DELETE",{})}},k=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/financial_commitments","GET",e)}},D=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/folders","GET",e)}create(e){return this.client.request("/v2/folders","POST",e)}get(e){return this.client.request(`/v2/folders/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/folders/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/folders/${s(e)}`,"DELETE",{})}},V=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/integrations","GET",e)}get(e){return this.client.request(`/v2/integrations/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/integrations/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/integrations/${s(e)}`,"DELETE",{})}createCustomProviderIntegration(e){return this.client.request("/v2/integrations/custom_provider","POST",e)}createUserCostsUploadViaCsv(e,t){return this.client.request(`/v2/integrations/${s(e)}/costs.csv`,"POST",t)}deleteUserCostsUpload(e,t){return this.client.request(`/v2/integrations/${s(e)}/costs/${s(t)}`,"DELETE",{})}getUserCostsUploads(e){return this.client.request(`/v2/integrations/${s(e)}/costs`,"GET",{})}createGCPIntegration(e){return this.client.request("/v2/integrations/gcp","POST",e)}createAzureIntegration(e){return this.client.request("/v2/integrations/azure","POST",e)}},L=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/invoices","GET",e)}create(e){return this.client.request("/v2/invoices","POST",e)}get(e){return this.client.request(`/v2/invoices/${s(e)}`,"GET",{})}downloadInvoice(e,t){return this.client.request(`/v2/invoices/${s(e)}/download`,"POST",t)}sendInvoice(e){return this.client.request(`/v2/invoices/${s(e)}/send`,"POST",{})}sendAndApproveInvoice(e){return this.client.request(`/v2/invoices/${s(e)}/send_and_approve`,"POST",{})}getCostReport(e){return this.client.request(`/v2/invoices/${s(e)}/cost_report`,"GET",{})}regenerateInvoice(e){return this.client.request(`/v2/invoices/${s(e)}/regenerate`,"POST",{})}},I=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/kubernetes_efficiency_reports","GET",e)}create(e){return this.client.request("/v2/kubernetes_efficiency_reports","POST",e)}get(e){return this.client.request(`/v2/kubernetes_efficiency_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/kubernetes_efficiency_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/kubernetes_efficiency_reports/${s(e)}`,"DELETE",{})}createExport(e){return this.client.request("/v2/kubernetes_efficiency_reports/data_exports","POST",e)}},K=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/managed_accounts","GET",e)}create(e){return this.client.request("/v2/managed_accounts","POST",e)}get(e){return this.client.request(`/v2/managed_accounts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/managed_accounts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/managed_accounts/${s(e)}`,"DELETE",{})}updateSsoConnectionForManagedAccount(e,t){return this.client.request(`/v2/managed_accounts/${s(e)}/sso_connection`,"PUT",t)}createSsoConnectionForManagedAccount(e,t){return this.client.request(`/v2/managed_accounts/${s(e)}/sso_connection`,"POST",t)}deleteSsoConnectionForManagedAccount(e){return this.client.request(`/v2/managed_accounts/${s(e)}/sso_connection`,"DELETE",{})}},W=class{constructor(e){this.client=e}get(){return this.client.request("/v2/me","GET",{})}},j=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/network_flow_logs","GET",e)}},H=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/network_flow_reports","GET",e)}create(e){return this.client.request("/v2/network_flow_reports","POST",e)}get(e){return this.client.request(`/v2/network_flow_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/network_flow_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/network_flow_reports/${s(e)}`,"DELETE",{})}},z=class{constructor(e){this.client=e}get(){return this.client.request("/v2/ping","GET",{})}},J=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/products","GET",e)}get(e,t){return this.client.request(`/v2/products/${s(e)}/prices/${s(t)}`,"GET",{})}getPrices(e,t){return this.client.request(`/v2/products/${s(e)}/prices`,"GET",t)}getPrice(e,t){return this.client.request(`/v2/products/${s(e)}/prices/${s(t)}`,"GET",{})}},Y=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/recommendations","GET",e)}get(e){return this.client.request(`/v2/recommendations/${s(e)}`,"GET",{})}getResources(e,t){return this.client.request(`/v2/recommendations/${s(e)}/resources`,"GET",t)}getResource(e,t){return this.client.request(`/v2/recommendations/${s(e)}/resources/${s(t)}`,"GET",{})}getTypeResources(e,t){return this.client.request(`/v2/recommendations/by_type/${s(e)}/resources`,"GET",t)}},Q=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/recommendation_views","GET",e)}create(e){return this.client.request("/v2/recommendation_views","POST",e)}get(e){return this.client.request(`/v2/recommendation_views/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/recommendation_views/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/recommendation_views/${s(e)}`,"DELETE",{})}},X=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/report_forecasts","GET",e)}create(e){return this.client.request("/v2/report_forecasts","POST",e)}get(e){return this.client.request(`/v2/report_forecasts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/report_forecasts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/report_forecasts/${s(e)}`,"DELETE",{})}},Z=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/report_notifications","GET",e)}create(e){return this.client.request("/v2/report_notifications","POST",e)}get(e){return this.client.request(`/v2/report_notifications/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/report_notifications/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/report_notifications/${s(e)}`,"DELETE",{})}},ee=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/resource_reports","GET",e)}create(e){return this.client.request("/v2/resource_reports","POST",e)}get(e){return this.client.request(`/v2/resource_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/resource_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/resource_reports/${s(e)}`,"DELETE",{})}getColumns(e){return this.client.request("/v2/resource_reports/columns","GET",e)}},te=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/resources","GET",e)}},se=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/saved_filters","GET",e)}create(e){return this.client.request("/v2/saved_filters","POST",e)}get(e){return this.client.request(`/v2/saved_filters/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/saved_filters/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/saved_filters/${s(e)}`,"DELETE",{})}},oe=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/scenario_models","GET",e)}create(e){return this.client.request("/v2/scenario_models","POST",e)}get(e){return this.client.request(`/v2/scenario_models/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/scenario_models/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/scenario_models/${s(e)}`,"DELETE",{})}},re=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/segments","GET",e)}create(e){return this.client.request("/v2/segments","POST",e)}get(e){return this.client.request(`/v2/segments/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/segments/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/segments/${s(e)}`,"DELETE",{})}},ne=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/tags","GET",e)}getValues(e,t){return this.client.request(`/v2/tags/${s(e)}/values`,"GET",t)}},ie=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/teams","GET",e)}create(e){return this.client.request("/v2/teams","POST",e)}get(e){return this.client.request(`/v2/teams/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/teams/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/teams/${s(e)}`,"DELETE",{})}getMembers(e,t){return this.client.request(`/v2/teams/${s(e)}/members`,"GET",t)}addTeamMember(e,t){return this.client.request(`/v2/teams/${s(e)}/members`,"POST",t)}removeTeamMember(e,t){return this.client.request(`/v2/teams/${s(e)}/members/${s(t)}`,"DELETE",{})}},ae=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/unit_costs","GET",e)}createExport(e){return this.client.request("/v2/unit_costs/data_exports","POST",e)}},pe=class{constructor(e){this.client=e}create(e){return this.client.request("/v2/user_feedback","POST",e)}},de=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/users","GET",e)}get(e){return this.client.request(`/v2/users/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/users/${s(e)}`,"PUT",t)}},he=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/virtual_tag_configs","GET",e)}create(e){return this.client.request("/v2/virtual_tag_configs","POST",e)}get(e){return this.client.request(`/v2/virtual_tag_configs/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/virtual_tag_configs/${s(e)}`,"DELETE",{})}getStatus(e){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/status`,"GET",{})}updateAsyncVirtualTagConfig(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/async`,"PUT",t)}getAsyncVirtualTagConfigStatus(e){return this.client.request(`/v2/virtual_tag_configs/async/${s(e)}`,"GET",{})}createValue(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values`,"POST",t)}getValue(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values/${s(t)}`,"GET",{})}deleteValue(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values/${s(t)}`,"DELETE",{})}updateValue(e,t,n){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values/${s(t)}`,"PATCH",n)}},ue=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/workspaces","GET",e)}create(e){return this.client.request("/v2/workspaces","POST",e)}get(e){return this.client.request(`/v2/workspaces/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/workspaces/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/workspaces/${s(e)}`,"DELETE",{})}};0&&(module.exports={APIV2Client,VANTAGE_CHART_TYPES,VANTAGE_COST_AGGREGATIONS,VANTAGE_DATE_BINS,VANTAGE_DATE_INTERVALS,VANTAGE_NETWORK_FLOW_DIRECTIONS,VANTAGE_NETWORK_FLOW_WEIGHTS,VANTAGE_PROVIDERS,VantageAPIError,pathEncode});
|
|
1
|
+
var R=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var qe=Object.prototype.hasOwnProperty;var Ae=(o,e)=>{for(var t in e)R(o,t,{get:e[t],enumerable:!0})},Ee=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Se(e))!qe.call(o,i)&&i!==t&&R(o,i,{get:()=>e[i],enumerable:!(n=Pe(e,i))||n.enumerable});return o};var me=o=>Ee(R({},"__esModule",{value:!0}),o);var Be={};Ae(Be,{APIV2Client:()=>y,VANTAGE_CHART_TYPES:()=>ge,VANTAGE_COST_AGGREGATIONS:()=>Re,VANTAGE_DATE_BINS:()=>ve,VANTAGE_DATE_INTERVALS:()=>le,VANTAGE_NETWORK_FLOW_DIRECTIONS:()=>ye,VANTAGE_NETWORK_FLOW_WEIGHTS:()=>Te,VANTAGE_PROVIDERS:()=>ce,VantageAPIError:()=>u,pathEncode:()=>s});module.exports=me(Be);function s(o){return encodeURIComponent(o)}var xe={"/v2/exchange_rates/csv":{POST:!0},"/v2/business_metrics/{}/values.csv":{PUT:!0},"/v2/integrations/{}/costs.csv":{POST:!0}},c={};function Ge(o){return o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}for(let[o,e]of Object.entries(xe)){let t=o.split("{}").map(Ge).join("(.+?)");for(let[n,i]of Object.entries(e))i&&(c[n]||(c[n]=[]),c[n].push(new RegExp(`^${t}$`)))}function Me(o,e){if(Object.prototype.hasOwnProperty.call(c,o))for(let t of c[o]){let n=t.test(e);if(t.lastIndex=0,n)return!0}return!1}function Ne(o,e){if(e)for(let[t,n]of Object.entries(e))o.searchParams.append(t,Array.isArray(n)?n.map(String).join(","):String(n))}var u=class extends Error{constructor(t,n,i){let p=null;if(t!==null)try{let r=JSON.parse(i);Array.isArray(r.errors)&&(p=r.errors)}catch{}let a=t===null?`Vantage API Error: ${i}`:`Vantage API Error: ${t} ${n}`+(p?` - ${p.join(", ")}`:"");super(a);this.status=t;this.statusText=n;this.body=i;this.errors=p}errors};async function g(o,e,t,n,i,p){let a;try{a=await fetch(o.toString(),{method:e,headers:t,body:n})}catch(r){let h=r instanceof Error?r.message:String(r),d=new u(null,null,h);if(i)return[null,d];throw d}if(p==="boolean"){if(a.status===404)return i?[!1,null]:!1;if(!a.ok){let r=new u(a.status,a.statusText,await a.text());if(i)return[null,r];throw r}return i?[!0,null]:!0}if(!a.ok){let r=new u(a.status,a.statusText,await a.text());if(i)return[null,r];throw r}if(p==="location"){let r=a.headers.get("Location");return i?[r,null]:r}if(a.status===204)return i?[void 0,null]:void 0;try{let r=await a.text(),h;return r&&(h=JSON.parse(r)),i?[h,null]:h}catch(r){let h=r instanceof Error?r.message:String(r),d=new u(a.status,a.statusText,h);if(i)return[null,d];throw d}}var l=class{constructor(e,t,n){this.bearerToken=e;this.neverThrow=t;this.baseUrl=n}routeEdgecases=new Map;async request(e,t,n){let i=new URL(e,this.baseUrl),p={Authorization:`Bearer ${this.bearerToken}`},a=`${t} ${e}`,r;for(let[d,v]of this.routeEdgecases)if(a.startsWith(d)){r=v;break}if(t==="GET")return Ne(i,n),g(i,t,p,void 0,this.neverThrow,r);if(Me(t,e)){let d=new FormData;for(let[v,_e]of Object.entries(n))d.append(v,_e);return p["Content-Type"]="multipart/form-data",g(i,t,p,d,this.neverThrow,r)}return p["Content-Type"]="application/json",g(i,t,p,JSON.stringify(n),this.neverThrow,r)}};var ce=["aws","azure","gcp","snowflake","databricks","mongo","datadog","fastly","new_relic","opencost","open_ai","oracle","confluent","planetscale","coralogix","kubernetes","custom_provider","github","linode","grafana","clickhouse","temporal","twilio","azure_csp","kubernetes_agent","anthropic","anyscale","cursor","elastic","vercel","redis_cloud","circle_ci","modal","eleven_labs","baseten","cloudflare","fireworks_ai","cartesia","depot","xai","digital_ocean","together_ai","coreweave","devin"];var le=["this_month","last_7_days","last_30_days","last_month","last_3_months","last_6_months","custom","last_12_months","last_24_months","last_36_months","next_month","next_3_months","next_6_months","next_12_months","year_to_date","last_3_days","last_14_days"],ve=["cumulative","day","week","month","quarter","hour"],Re=["cost","usage","count"],ge=["area","line","pie","bar","multi_bar"],ye=["all","ingress","egress"],Te=["costs","bytes"];var y=class extends l{constructor(e,t=!1,n="https://api.vantage.sh"){super(e,t,n)}routeEdgecases=new Map([["POST /v2/costs/data_exports","location"],["POST /v2/kubernetes_efficiency_reports/data_exports","location"],["POST /v2/unit_costs/data_exports","location"],["GET /v2/virtual_tag_configs/async/","boolean"]]);_accessGrants;_annotations;_anomalyAlerts;_anomalyNotifications;_auditLogs;_billingProfiles;_billingRules;_budgetAlerts;_budgets;_businessMetrics;_canvases;_costAlerts;_costProviders;_costProviderAccounts;_costReports;_costs;_costServices;_dashboards;_dataExports;_exchangeRates;_financialCommitmentReports;_financialCommitments;_folders;_integrations;_invoices;_kubernetesEfficiencyReports;_managedAccounts;_me;_networkFlowLogs;_networkFlowReports;_ping;_products;_recommendations;_recommendationViews;_reportForecasts;_reportNotifications;_resourceReports;_resources;_savedFilters;_scenarioModels;_segments;_tags;_teams;_unitCosts;_userFeedback;_users;_virtualTagConfigs;_workspaces;get accessGrants(){return this._accessGrants||(this._accessGrants=new T(this)),this._accessGrants}get annotations(){return this._annotations||(this._annotations=new _(this)),this._annotations}get anomalyAlerts(){return this._anomalyAlerts||(this._anomalyAlerts=new P(this)),this._anomalyAlerts}get anomalyNotifications(){return this._anomalyNotifications||(this._anomalyNotifications=new S(this)),this._anomalyNotifications}get auditLogs(){return this._auditLogs||(this._auditLogs=new q(this)),this._auditLogs}get billingProfiles(){return this._billingProfiles||(this._billingProfiles=new A(this)),this._billingProfiles}get billingRules(){return this._billingRules||(this._billingRules=new E(this)),this._billingRules}get budgetAlerts(){return this._budgetAlerts||(this._budgetAlerts=new m(this)),this._budgetAlerts}get budgets(){return this._budgets||(this._budgets=new x(this)),this._budgets}get businessMetrics(){return this._businessMetrics||(this._businessMetrics=new G(this)),this._businessMetrics}get canvases(){return this._canvases||(this._canvases=new M(this)),this._canvases}get costAlerts(){return this._costAlerts||(this._costAlerts=new N(this)),this._costAlerts}get costProviders(){return this._costProviders||(this._costProviders=new B(this)),this._costProviders}get costProviderAccounts(){return this._costProviderAccounts||(this._costProviderAccounts=new f(this)),this._costProviderAccounts}get costReports(){return this._costReports||(this._costReports=new F(this)),this._costReports}get costs(){return this._costs||(this._costs=new w(this)),this._costs}get costServices(){return this._costServices||(this._costServices=new C(this)),this._costServices}get dashboards(){return this._dashboards||(this._dashboards=new $(this)),this._dashboards}get dataExports(){return this._dataExports||(this._dataExports=new b(this)),this._dataExports}get exchangeRates(){return this._exchangeRates||(this._exchangeRates=new U(this)),this._exchangeRates}get financialCommitmentReports(){return this._financialCommitmentReports||(this._financialCommitmentReports=new O(this)),this._financialCommitmentReports}get financialCommitments(){return this._financialCommitments||(this._financialCommitments=new k(this)),this._financialCommitments}get folders(){return this._folders||(this._folders=new D(this)),this._folders}get integrations(){return this._integrations||(this._integrations=new V(this)),this._integrations}get invoices(){return this._invoices||(this._invoices=new L(this)),this._invoices}get kubernetesEfficiencyReports(){return this._kubernetesEfficiencyReports||(this._kubernetesEfficiencyReports=new I(this)),this._kubernetesEfficiencyReports}get managedAccounts(){return this._managedAccounts||(this._managedAccounts=new K(this)),this._managedAccounts}get me(){return this._me||(this._me=new W(this)),this._me}get networkFlowLogs(){return this._networkFlowLogs||(this._networkFlowLogs=new j(this)),this._networkFlowLogs}get networkFlowReports(){return this._networkFlowReports||(this._networkFlowReports=new H(this)),this._networkFlowReports}get ping(){return this._ping||(this._ping=new z(this)),this._ping}get products(){return this._products||(this._products=new J(this)),this._products}get recommendations(){return this._recommendations||(this._recommendations=new Y(this)),this._recommendations}get recommendationViews(){return this._recommendationViews||(this._recommendationViews=new Q(this)),this._recommendationViews}get reportForecasts(){return this._reportForecasts||(this._reportForecasts=new X(this)),this._reportForecasts}get reportNotifications(){return this._reportNotifications||(this._reportNotifications=new Z(this)),this._reportNotifications}get resourceReports(){return this._resourceReports||(this._resourceReports=new ee(this)),this._resourceReports}get resources(){return this._resources||(this._resources=new te(this)),this._resources}get savedFilters(){return this._savedFilters||(this._savedFilters=new se(this)),this._savedFilters}get scenarioModels(){return this._scenarioModels||(this._scenarioModels=new oe(this)),this._scenarioModels}get segments(){return this._segments||(this._segments=new re(this)),this._segments}get tags(){return this._tags||(this._tags=new ne(this)),this._tags}get teams(){return this._teams||(this._teams=new ie(this)),this._teams}get unitCosts(){return this._unitCosts||(this._unitCosts=new ae(this)),this._unitCosts}get userFeedback(){return this._userFeedback||(this._userFeedback=new pe(this)),this._userFeedback}get users(){return this._users||(this._users=new de(this)),this._users}get virtualTagConfigs(){return this._virtualTagConfigs||(this._virtualTagConfigs=new he(this)),this._virtualTagConfigs}get workspaces(){return this._workspaces||(this._workspaces=new ue(this)),this._workspaces}},T=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/access_grants","GET",e)}create(e){return this.client.request("/v2/access_grants","POST",e)}get(e){return this.client.request(`/v2/access_grants/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/access_grants/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/access_grants/${s(e)}`,"DELETE",{})}},_=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/annotations","GET",e)}create(e){return this.client.request("/v2/annotations","POST",e)}update(e,t){return this.client.request(`/v2/annotations/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/annotations/${s(e)}`,"DELETE",{})}},P=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/anomaly_alerts","GET",e)}get(e){return this.client.request(`/v2/anomaly_alerts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/anomaly_alerts/${s(e)}`,"PUT",t)}},S=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/anomaly_notifications","GET",e)}create(e){return this.client.request("/v2/anomaly_notifications","POST",e)}get(e){return this.client.request(`/v2/anomaly_notifications/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/anomaly_notifications/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/anomaly_notifications/${s(e)}`,"DELETE",{})}},q=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/audit_logs","GET",e)}get(e){return this.client.request(`/v2/audit_logs/${s(e)}`,"GET",{})}},A=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/billing_profiles","GET",e)}create(e){return this.client.request("/v2/billing_profiles","POST",e)}get(e){return this.client.request(`/v2/billing_profiles/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/billing_profiles/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/billing_profiles/${s(e)}`,"DELETE",{})}},E=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/billing_rules","GET",e)}create(e){return this.client.request("/v2/billing_rules","POST",e)}get(e){return this.client.request(`/v2/billing_rules/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/billing_rules/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/billing_rules/${s(e)}`,"DELETE",{})}},m=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/budget_alerts","GET",e)}create(e){return this.client.request("/v2/budget_alerts","POST",e)}get(e){return this.client.request(`/v2/budget_alerts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/budget_alerts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/budget_alerts/${s(e)}`,"DELETE",{})}},x=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/budgets","GET",e)}create(e){return this.client.request("/v2/budgets","POST",e)}update(e,t){return this.client.request(`/v2/budgets/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/budgets/${s(e)}`,"DELETE",{})}},G=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/business_metrics","GET",e)}create(e){return this.client.request("/v2/business_metrics","POST",e)}get(e){return this.client.request(`/v2/business_metrics/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/business_metrics/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/business_metrics/${s(e)}`,"DELETE",{})}getLabels(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/labels`,"GET",t)}getValues(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/values`,"GET",t)}deleteValues(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/values`,"DELETE",t)}getForecastedValues(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/forecasted_values`,"GET",t)}updateValuesCSV(e,t){return this.client.request(`/v2/business_metrics/${s(e)}/values.csv`,"PUT",t)}},M=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/canvases","GET",e)}create(e){return this.client.request("/v2/canvases","POST",e)}get(e){return this.client.request(`/v2/canvases/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/canvases/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/canvases/${s(e)}`,"DELETE",{})}},N=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_alerts","GET",e)}create(e){return this.client.request("/v2/cost_alerts","POST",e)}get(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}/events/${s(t)}`,"GET",{})}update(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/cost_alerts/${s(e)}`,"DELETE",{})}getEvents(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}/events`,"GET",t)}getEvent(e,t){return this.client.request(`/v2/cost_alerts/${s(e)}/events/${s(t)}`,"GET",{})}},B=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_providers","GET",e)}},f=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_provider_accounts","GET",e)}},F=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_reports","GET",e)}create(e){return this.client.request("/v2/cost_reports","POST",e)}get(e){return this.client.request(`/v2/cost_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/cost_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/cost_reports/${s(e)}`,"DELETE",{})}getForecastedCosts(e,t){return this.client.request(`/v2/cost_reports/${s(e)}/forecasted_costs`,"GET",t)}},w=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/costs","GET",e)}createExport(e){return this.client.request("/v2/costs/data_exports","POST",e)}},C=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/cost_services","GET",e)}},$=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/dashboards","GET",e)}create(e){return this.client.request("/v2/dashboards","POST",e)}get(e){return this.client.request(`/v2/dashboards/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/dashboards/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/dashboards/${s(e)}`,"DELETE",{})}},b=class{constructor(e){this.client=e}get(e){return this.client.request(`/v2/data_exports/${s(e)}`,"GET",{})}},U=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/exchange_rates","GET",e)}createViaCsv(e){return this.client.request("/v2/exchange_rates/csv","POST",e)}},O=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/financial_commitment_reports","GET",e)}create(e){return this.client.request("/v2/financial_commitment_reports","POST",e)}get(e){return this.client.request(`/v2/financial_commitment_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/financial_commitment_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/financial_commitment_reports/${s(e)}`,"DELETE",{})}getCosts(e,t){return this.client.request(`/v2/financial_commitment_reports/${s(e)}/costs`,"GET",t)}},k=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/financial_commitments","GET",e)}},D=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/folders","GET",e)}create(e){return this.client.request("/v2/folders","POST",e)}get(e){return this.client.request(`/v2/folders/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/folders/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/folders/${s(e)}`,"DELETE",{})}},V=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/integrations","GET",e)}get(e){return this.client.request(`/v2/integrations/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/integrations/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/integrations/${s(e)}`,"DELETE",{})}createCustomProviderIntegration(e){return this.client.request("/v2/integrations/custom_provider","POST",e)}createUserCostsUploadViaCsv(e,t){return this.client.request(`/v2/integrations/${s(e)}/costs.csv`,"POST",t)}deleteUserCostsUpload(e,t){return this.client.request(`/v2/integrations/${s(e)}/costs/${s(t)}`,"DELETE",{})}getUserCostsUploads(e){return this.client.request(`/v2/integrations/${s(e)}/costs`,"GET",{})}createGCPIntegration(e){return this.client.request("/v2/integrations/gcp","POST",e)}createAzureIntegration(e){return this.client.request("/v2/integrations/azure","POST",e)}},L=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/invoices","GET",e)}create(e){return this.client.request("/v2/invoices","POST",e)}get(e){return this.client.request(`/v2/invoices/${s(e)}`,"GET",{})}downloadInvoice(e,t){return this.client.request(`/v2/invoices/${s(e)}/download`,"POST",t)}sendInvoice(e){return this.client.request(`/v2/invoices/${s(e)}/send`,"POST",{})}sendAndApproveInvoice(e){return this.client.request(`/v2/invoices/${s(e)}/send_and_approve`,"POST",{})}getCostReport(e){return this.client.request(`/v2/invoices/${s(e)}/cost_report`,"GET",{})}regenerateInvoice(e){return this.client.request(`/v2/invoices/${s(e)}/regenerate`,"POST",{})}},I=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/kubernetes_efficiency_reports","GET",e)}create(e){return this.client.request("/v2/kubernetes_efficiency_reports","POST",e)}get(e){return this.client.request(`/v2/kubernetes_efficiency_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/kubernetes_efficiency_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/kubernetes_efficiency_reports/${s(e)}`,"DELETE",{})}createExport(e){return this.client.request("/v2/kubernetes_efficiency_reports/data_exports","POST",e)}},K=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/managed_accounts","GET",e)}create(e){return this.client.request("/v2/managed_accounts","POST",e)}get(e){return this.client.request(`/v2/managed_accounts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/managed_accounts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/managed_accounts/${s(e)}`,"DELETE",{})}updateSsoConnectionForManagedAccount(e,t){return this.client.request(`/v2/managed_accounts/${s(e)}/sso_connection`,"PUT",t)}createSsoConnectionForManagedAccount(e,t){return this.client.request(`/v2/managed_accounts/${s(e)}/sso_connection`,"POST",t)}deleteSsoConnectionForManagedAccount(e){return this.client.request(`/v2/managed_accounts/${s(e)}/sso_connection`,"DELETE",{})}},W=class{constructor(e){this.client=e}get(){return this.client.request("/v2/me","GET",{})}},j=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/network_flow_logs","GET",e)}},H=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/network_flow_reports","GET",e)}create(e){return this.client.request("/v2/network_flow_reports","POST",e)}get(e){return this.client.request(`/v2/network_flow_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/network_flow_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/network_flow_reports/${s(e)}`,"DELETE",{})}},z=class{constructor(e){this.client=e}get(){return this.client.request("/v2/ping","GET",{})}},J=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/products","GET",e)}get(e,t){return this.client.request(`/v2/products/${s(e)}/prices/${s(t)}`,"GET",{})}getPrices(e,t){return this.client.request(`/v2/products/${s(e)}/prices`,"GET",t)}getPrice(e,t){return this.client.request(`/v2/products/${s(e)}/prices/${s(t)}`,"GET",{})}},Y=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/recommendations","GET",e)}get(e){return this.client.request(`/v2/recommendations/${s(e)}`,"GET",{})}getResources(e,t){return this.client.request(`/v2/recommendations/${s(e)}/resources`,"GET",t)}getResource(e,t){return this.client.request(`/v2/recommendations/${s(e)}/resources/${s(t)}`,"GET",{})}getTypeResources(e,t){return this.client.request(`/v2/recommendations/by_type/${s(e)}/resources`,"GET",t)}},Q=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/recommendation_views","GET",e)}create(e){return this.client.request("/v2/recommendation_views","POST",e)}get(e){return this.client.request(`/v2/recommendation_views/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/recommendation_views/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/recommendation_views/${s(e)}`,"DELETE",{})}},X=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/report_forecasts","GET",e)}create(e){return this.client.request("/v2/report_forecasts","POST",e)}get(e){return this.client.request(`/v2/report_forecasts/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/report_forecasts/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/report_forecasts/${s(e)}`,"DELETE",{})}},Z=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/report_notifications","GET",e)}create(e){return this.client.request("/v2/report_notifications","POST",e)}get(e){return this.client.request(`/v2/report_notifications/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/report_notifications/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/report_notifications/${s(e)}`,"DELETE",{})}},ee=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/resource_reports","GET",e)}create(e){return this.client.request("/v2/resource_reports","POST",e)}get(e){return this.client.request(`/v2/resource_reports/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/resource_reports/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/resource_reports/${s(e)}`,"DELETE",{})}getColumns(e){return this.client.request("/v2/resource_reports/columns","GET",e)}},te=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/resources","GET",e)}},se=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/saved_filters","GET",e)}create(e){return this.client.request("/v2/saved_filters","POST",e)}get(e){return this.client.request(`/v2/saved_filters/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/saved_filters/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/saved_filters/${s(e)}`,"DELETE",{})}},oe=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/scenario_models","GET",e)}create(e){return this.client.request("/v2/scenario_models","POST",e)}get(e){return this.client.request(`/v2/scenario_models/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/scenario_models/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/scenario_models/${s(e)}`,"DELETE",{})}},re=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/segments","GET",e)}create(e){return this.client.request("/v2/segments","POST",e)}get(e){return this.client.request(`/v2/segments/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/segments/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/segments/${s(e)}`,"DELETE",{})}},ne=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/tags","GET",e)}getValues(e,t){return this.client.request(`/v2/tags/${s(e)}/values`,"GET",t)}},ie=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/teams","GET",e)}create(e){return this.client.request("/v2/teams","POST",e)}get(e){return this.client.request(`/v2/teams/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/teams/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/teams/${s(e)}`,"DELETE",{})}getMembers(e,t){return this.client.request(`/v2/teams/${s(e)}/members`,"GET",t)}addTeamMember(e,t){return this.client.request(`/v2/teams/${s(e)}/members`,"POST",t)}removeTeamMember(e,t){return this.client.request(`/v2/teams/${s(e)}/members/${s(t)}`,"DELETE",{})}},ae=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/unit_costs","GET",e)}createExport(e){return this.client.request("/v2/unit_costs/data_exports","POST",e)}},pe=class{constructor(e){this.client=e}create(e){return this.client.request("/v2/user_feedback","POST",e)}},de=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/users","GET",e)}get(e){return this.client.request(`/v2/users/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/users/${s(e)}`,"PUT",t)}},he=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/virtual_tag_configs","GET",e)}create(e){return this.client.request("/v2/virtual_tag_configs","POST",e)}get(e){return this.client.request(`/v2/virtual_tag_configs/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/virtual_tag_configs/${s(e)}`,"DELETE",{})}getStatus(e){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/status`,"GET",{})}updateAsyncVirtualTagConfig(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/async`,"PUT",t)}getAsyncVirtualTagConfigStatus(e){return this.client.request(`/v2/virtual_tag_configs/async/${s(e)}`,"GET",{})}createValue(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values`,"POST",t)}getValue(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values/${s(t)}`,"GET",{})}deleteValue(e,t){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values/${s(t)}`,"DELETE",{})}updateValue(e,t,n){return this.client.request(`/v2/virtual_tag_configs/${s(e)}/values/${s(t)}`,"PATCH",n)}},ue=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/workspaces","GET",e)}create(e){return this.client.request("/v2/workspaces","POST",e)}get(e){return this.client.request(`/v2/workspaces/${s(e)}`,"GET",{})}update(e,t){return this.client.request(`/v2/workspaces/${s(e)}`,"PUT",t)}delete(e){return this.client.request(`/v2/workspaces/${s(e)}`,"DELETE",{})}};0&&(module.exports={APIV2Client,VANTAGE_CHART_TYPES,VANTAGE_COST_AGGREGATIONS,VANTAGE_DATE_BINS,VANTAGE_DATE_INTERVALS,VANTAGE_NETWORK_FLOW_DIRECTIONS,VANTAGE_NETWORK_FLOW_WEIGHTS,VANTAGE_PROVIDERS,VantageAPIError,pathEncode});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|