@vantage-sh/vantage-client 2.20.0 → 2.22.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 +40 -19
- package/dist/index.d.ts +40 -19
- 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.mts
CHANGED
|
@@ -3530,6 +3530,8 @@ interface components {
|
|
|
3530
3530
|
* @description The threshold amount that must be met for the alert to fire.
|
|
3531
3531
|
*/
|
|
3532
3532
|
threshold: number;
|
|
3533
|
+
/** @description The token of the Workspace to add the BudgetAlert to. Required if the API token is associated with multiple Workspaces. */
|
|
3534
|
+
workspace_token?: string;
|
|
3533
3535
|
/** @description The tokens of the users that receive the alert. */
|
|
3534
3536
|
user_tokens?: string[];
|
|
3535
3537
|
/** @description Email addresses that receive the alert. Must be organization users or addresses on a verified domain. */
|
|
@@ -3550,12 +3552,14 @@ interface components {
|
|
|
3550
3552
|
* @description The threshold amount that must be met for the alert to fire.
|
|
3551
3553
|
*/
|
|
3552
3554
|
threshold?: number;
|
|
3555
|
+
/** @description The token of the Workspace the BudgetAlert belongs to. Required if the API token is associated with multiple Workspaces. */
|
|
3556
|
+
workspace_token?: string;
|
|
3553
3557
|
/** @description The tokens of the users that receive the alert. */
|
|
3554
3558
|
user_tokens?: string[];
|
|
3555
3559
|
/** @description Email addresses that receive the alert. Must be organization users or addresses on a verified domain. */
|
|
3556
3560
|
recipient_emails?: string[];
|
|
3557
3561
|
/** @description The number of days from the start or end of the month to trigger the alert if the threshold is reached. For the full month, pass an empty value. */
|
|
3558
|
-
duration_in_days?: string;
|
|
3562
|
+
duration_in_days?: string | null;
|
|
3559
3563
|
/** @description The period tracked on the alert. Used with duration_in_days to determine the time window of the alert. Defaults to start_of_the_month if not passed. Possible values: start_of_the_month, end_of_the_month. */
|
|
3560
3564
|
period_to_track?: string;
|
|
3561
3565
|
/** @description The channels receiving the alerts. Requires an integration provider to be connected. */
|
|
@@ -3602,7 +3606,7 @@ interface components {
|
|
|
3602
3606
|
* @description The anchor date for budget period intervals. ISO 8601 date (YYYY-MM-DD).
|
|
3603
3607
|
* @example 2026-01-01
|
|
3604
3608
|
*/
|
|
3605
|
-
starts_at
|
|
3609
|
+
starts_at?: string | null;
|
|
3606
3610
|
/**
|
|
3607
3611
|
* Format: int32
|
|
3608
3612
|
* @description The number of interval units per budget period.
|
|
@@ -3657,15 +3661,15 @@ interface components {
|
|
|
3657
3661
|
workspace_token?: string;
|
|
3658
3662
|
/** @description The CostReport token. Ignored for hierarchical Budgets. */
|
|
3659
3663
|
cost_report_token?: string;
|
|
3660
|
-
/** @description The tokens of any child Budgets when creating a hierarchical Budget. */
|
|
3664
|
+
/** @description The tokens of any child Budgets when creating a hierarchical Budget. Child budgets must share the same current period dates. */
|
|
3661
3665
|
child_budget_tokens?: string[];
|
|
3662
3666
|
/** @description The interval cadence for budget periods. Requires the flexible_budget_periods feature. */
|
|
3663
3667
|
period_cadence?: {
|
|
3664
3668
|
/**
|
|
3665
3669
|
* Format: date
|
|
3666
|
-
* @description The anchor date for budget period intervals.
|
|
3670
|
+
* @description The anchor date for budget period intervals. Send null to clear.
|
|
3667
3671
|
*/
|
|
3668
|
-
starts_at
|
|
3672
|
+
starts_at: string | null;
|
|
3669
3673
|
/**
|
|
3670
3674
|
* Format: int32
|
|
3671
3675
|
* @description The number of interval units per budget period.
|
|
@@ -3702,15 +3706,15 @@ interface components {
|
|
|
3702
3706
|
name?: string;
|
|
3703
3707
|
/** @description The CostReport token. Ignored for hierarchical Budgets. */
|
|
3704
3708
|
cost_report_token?: string;
|
|
3705
|
-
/** @description The tokens of any child Budgets when creating a hierarchical Budget. */
|
|
3709
|
+
/** @description The tokens of any child Budgets when creating a hierarchical Budget. Child budgets must share the same current period dates. Omitted on update to leave the current child list unchanged. */
|
|
3706
3710
|
child_budget_tokens?: string[];
|
|
3707
|
-
/** @description The interval cadence for budget periods.
|
|
3711
|
+
/** @description The interval cadence for budget periods. Changing cadence after creation is rejected. */
|
|
3708
3712
|
period_cadence?: {
|
|
3709
3713
|
/**
|
|
3710
3714
|
* Format: date
|
|
3711
|
-
* @description The anchor date for budget period intervals.
|
|
3715
|
+
* @description The anchor date for budget period intervals. Send null to clear.
|
|
3712
3716
|
*/
|
|
3713
|
-
starts_at
|
|
3717
|
+
starts_at: string | null;
|
|
3714
3718
|
/**
|
|
3715
3719
|
* Format: int32
|
|
3716
3720
|
* @description The number of interval units per budget period.
|
|
@@ -4474,7 +4478,7 @@ interface components {
|
|
|
4474
4478
|
* @example aws
|
|
4475
4479
|
* @enum {string}
|
|
4476
4480
|
*/
|
|
4477
|
-
provider: "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" | "all";
|
|
4481
|
+
provider: "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" | "all";
|
|
4478
4482
|
/**
|
|
4479
4483
|
* @description The service for the forecasted cost. Will be 'all' for all combined services
|
|
4480
4484
|
* @example Amazon Elastic Compute Cloud - Compute
|
|
@@ -4879,7 +4883,7 @@ interface components {
|
|
|
4879
4883
|
* @example aws
|
|
4880
4884
|
* @enum {string|null}
|
|
4881
4885
|
*/
|
|
4882
|
-
provider?: "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" | null;
|
|
4886
|
+
provider?: "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" | null;
|
|
4883
4887
|
/**
|
|
4884
4888
|
* @description The cost provider's billing account id that incurred the cost.
|
|
4885
4889
|
* @example 9109237192
|
|
@@ -5885,12 +5889,12 @@ interface components {
|
|
|
5885
5889
|
};
|
|
5886
5890
|
CostProvider: {
|
|
5887
5891
|
/**
|
|
5888
|
-
* @description The name of the CostProvider.
|
|
5892
|
+
* @description The name of the CostProvider. For Custom Providers, this is the customer-defined name.
|
|
5889
5893
|
* @example AWS
|
|
5890
5894
|
*/
|
|
5891
5895
|
name: string;
|
|
5892
5896
|
/**
|
|
5893
|
-
* @description The key of the CostProvider, useful for filtering Costs.
|
|
5897
|
+
* @description The key of the CostProvider, useful for filtering Costs. Custom Providers use the form custom_provider:<token>.
|
|
5894
5898
|
* @example aws
|
|
5895
5899
|
*/
|
|
5896
5900
|
key: string;
|
|
@@ -9234,6 +9238,15 @@ interface operations {
|
|
|
9234
9238
|
"application/json": components["schemas"]["BudgetAlert"];
|
|
9235
9239
|
};
|
|
9236
9240
|
};
|
|
9241
|
+
/** @description BadRequest */
|
|
9242
|
+
400: {
|
|
9243
|
+
headers: {
|
|
9244
|
+
[name: string]: unknown;
|
|
9245
|
+
};
|
|
9246
|
+
content: {
|
|
9247
|
+
"application/json": components["schemas"]["Errors"];
|
|
9248
|
+
};
|
|
9249
|
+
};
|
|
9237
9250
|
/** @description NotFound */
|
|
9238
9251
|
404: {
|
|
9239
9252
|
headers: {
|
|
@@ -10833,8 +10846,14 @@ interface operations {
|
|
|
10833
10846
|
getCostProviders: {
|
|
10834
10847
|
parameters: {
|
|
10835
10848
|
query?: {
|
|
10849
|
+
/** @description The page of results to return. */
|
|
10850
|
+
page?: number;
|
|
10851
|
+
/** @description The number of results to return. The maximum is 1000. */
|
|
10852
|
+
limit?: number;
|
|
10836
10853
|
/** @description The token of the Workspace to list CostProviders for. Required if the API token is associated with multiple Workspaces. */
|
|
10837
10854
|
workspace_token?: string;
|
|
10855
|
+
/** @description Search CostProviders by name or key. */
|
|
10856
|
+
q?: string;
|
|
10838
10857
|
};
|
|
10839
10858
|
header?: never;
|
|
10840
10859
|
path?: never;
|
|
@@ -10859,11 +10878,13 @@ interface operations {
|
|
|
10859
10878
|
/** @description The token of the Workspace to list CostProviderAccounts for. Required if the API token is associated with multiple Workspaces. */
|
|
10860
10879
|
workspace_token?: string;
|
|
10861
10880
|
/** @description Filter by provider type. */
|
|
10862
|
-
provider?: "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";
|
|
10881
|
+
provider?: "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";
|
|
10863
10882
|
/** @description Filter by provider account identifier. */
|
|
10864
10883
|
account_id?: string;
|
|
10865
10884
|
/** @description Filter by account name (exact match). */
|
|
10866
10885
|
account_name?: string;
|
|
10886
|
+
/** @description Search CostProviderAccounts by title. */
|
|
10887
|
+
q?: string;
|
|
10867
10888
|
};
|
|
10868
10889
|
header?: never;
|
|
10869
10890
|
path?: never;
|
|
@@ -11287,7 +11308,7 @@ interface operations {
|
|
|
11287
11308
|
/** @description Last date you would like to filter forecasted costs from. ISO 8601 formatted. */
|
|
11288
11309
|
end_date?: string;
|
|
11289
11310
|
/** @description Limit the forecasted costs to a specific provider. 'all' is accepted to filter to overall forecast. */
|
|
11290
|
-
provider?: "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" | "all";
|
|
11311
|
+
provider?: "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" | "all";
|
|
11291
11312
|
/** @description Limit the forecasted costs to a specific service. 'all' is accepted to filter to overall forecast. e.g. 'Amazon ElastiCache'. */
|
|
11292
11313
|
service?: string;
|
|
11293
11314
|
/** @description The page of results to return. */
|
|
@@ -12624,7 +12645,7 @@ interface operations {
|
|
|
12624
12645
|
parameters: {
|
|
12625
12646
|
query?: {
|
|
12626
12647
|
/** @description Query by provider name to list all Integrations for a specific provider. */
|
|
12627
|
-
provider?: "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";
|
|
12648
|
+
provider?: "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";
|
|
12628
12649
|
/** @description Query by account identifier to list all Integrations that match a specific account. For Azure, this is the subscription ID. Must include provider when using this parameter. */
|
|
12629
12650
|
account_identifier?: string;
|
|
12630
12651
|
/** @description The page of results to return. */
|
|
@@ -17157,7 +17178,7 @@ interface operations {
|
|
|
17157
17178
|
parameters: {
|
|
17158
17179
|
query?: {
|
|
17159
17180
|
/** @description An array of providers to scope Tags by. */
|
|
17160
|
-
providers?: ("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")[];
|
|
17181
|
+
providers?: ("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")[];
|
|
17161
17182
|
/** @description A search query to filter Tags by tag key. */
|
|
17162
17183
|
search_query?: string;
|
|
17163
17184
|
/** @description The direction in which you would like to sort the data by. Defaults to 'asc'. */
|
|
@@ -17295,7 +17316,7 @@ interface operations {
|
|
|
17295
17316
|
parameters: {
|
|
17296
17317
|
query?: {
|
|
17297
17318
|
/** @description An array of providers to scope TagValues by. */
|
|
17298
|
-
providers?: ("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")[];
|
|
17319
|
+
providers?: ("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")[];
|
|
17299
17320
|
/** @description The direction in which to sort the TagValues. Defaults to 'asc'. */
|
|
17300
17321
|
sort_direction?: "asc" | "desc";
|
|
17301
17322
|
/** @description A search query to filter TagValues by the value name. */
|
|
@@ -24685,7 +24706,7 @@ declare class BaseClient<NeverThrow extends boolean> {
|
|
|
24685
24706
|
}
|
|
24686
24707
|
|
|
24687
24708
|
/** Provider identifiers supported by the Vantage API. */
|
|
24688
|
-
declare const VANTAGE_PROVIDERS: readonly ["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"];
|
|
24709
|
+
declare const VANTAGE_PROVIDERS: readonly ["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"];
|
|
24689
24710
|
type VantageProvider = (typeof VANTAGE_PROVIDERS)[number];
|
|
24690
24711
|
|
|
24691
24712
|
/** Date interval values supported by Vantage reports. */
|
package/dist/index.d.ts
CHANGED
|
@@ -3530,6 +3530,8 @@ interface components {
|
|
|
3530
3530
|
* @description The threshold amount that must be met for the alert to fire.
|
|
3531
3531
|
*/
|
|
3532
3532
|
threshold: number;
|
|
3533
|
+
/** @description The token of the Workspace to add the BudgetAlert to. Required if the API token is associated with multiple Workspaces. */
|
|
3534
|
+
workspace_token?: string;
|
|
3533
3535
|
/** @description The tokens of the users that receive the alert. */
|
|
3534
3536
|
user_tokens?: string[];
|
|
3535
3537
|
/** @description Email addresses that receive the alert. Must be organization users or addresses on a verified domain. */
|
|
@@ -3550,12 +3552,14 @@ interface components {
|
|
|
3550
3552
|
* @description The threshold amount that must be met for the alert to fire.
|
|
3551
3553
|
*/
|
|
3552
3554
|
threshold?: number;
|
|
3555
|
+
/** @description The token of the Workspace the BudgetAlert belongs to. Required if the API token is associated with multiple Workspaces. */
|
|
3556
|
+
workspace_token?: string;
|
|
3553
3557
|
/** @description The tokens of the users that receive the alert. */
|
|
3554
3558
|
user_tokens?: string[];
|
|
3555
3559
|
/** @description Email addresses that receive the alert. Must be organization users or addresses on a verified domain. */
|
|
3556
3560
|
recipient_emails?: string[];
|
|
3557
3561
|
/** @description The number of days from the start or end of the month to trigger the alert if the threshold is reached. For the full month, pass an empty value. */
|
|
3558
|
-
duration_in_days?: string;
|
|
3562
|
+
duration_in_days?: string | null;
|
|
3559
3563
|
/** @description The period tracked on the alert. Used with duration_in_days to determine the time window of the alert. Defaults to start_of_the_month if not passed. Possible values: start_of_the_month, end_of_the_month. */
|
|
3560
3564
|
period_to_track?: string;
|
|
3561
3565
|
/** @description The channels receiving the alerts. Requires an integration provider to be connected. */
|
|
@@ -3602,7 +3606,7 @@ interface components {
|
|
|
3602
3606
|
* @description The anchor date for budget period intervals. ISO 8601 date (YYYY-MM-DD).
|
|
3603
3607
|
* @example 2026-01-01
|
|
3604
3608
|
*/
|
|
3605
|
-
starts_at
|
|
3609
|
+
starts_at?: string | null;
|
|
3606
3610
|
/**
|
|
3607
3611
|
* Format: int32
|
|
3608
3612
|
* @description The number of interval units per budget period.
|
|
@@ -3657,15 +3661,15 @@ interface components {
|
|
|
3657
3661
|
workspace_token?: string;
|
|
3658
3662
|
/** @description The CostReport token. Ignored for hierarchical Budgets. */
|
|
3659
3663
|
cost_report_token?: string;
|
|
3660
|
-
/** @description The tokens of any child Budgets when creating a hierarchical Budget. */
|
|
3664
|
+
/** @description The tokens of any child Budgets when creating a hierarchical Budget. Child budgets must share the same current period dates. */
|
|
3661
3665
|
child_budget_tokens?: string[];
|
|
3662
3666
|
/** @description The interval cadence for budget periods. Requires the flexible_budget_periods feature. */
|
|
3663
3667
|
period_cadence?: {
|
|
3664
3668
|
/**
|
|
3665
3669
|
* Format: date
|
|
3666
|
-
* @description The anchor date for budget period intervals.
|
|
3670
|
+
* @description The anchor date for budget period intervals. Send null to clear.
|
|
3667
3671
|
*/
|
|
3668
|
-
starts_at
|
|
3672
|
+
starts_at: string | null;
|
|
3669
3673
|
/**
|
|
3670
3674
|
* Format: int32
|
|
3671
3675
|
* @description The number of interval units per budget period.
|
|
@@ -3702,15 +3706,15 @@ interface components {
|
|
|
3702
3706
|
name?: string;
|
|
3703
3707
|
/** @description The CostReport token. Ignored for hierarchical Budgets. */
|
|
3704
3708
|
cost_report_token?: string;
|
|
3705
|
-
/** @description The tokens of any child Budgets when creating a hierarchical Budget. */
|
|
3709
|
+
/** @description The tokens of any child Budgets when creating a hierarchical Budget. Child budgets must share the same current period dates. Omitted on update to leave the current child list unchanged. */
|
|
3706
3710
|
child_budget_tokens?: string[];
|
|
3707
|
-
/** @description The interval cadence for budget periods.
|
|
3711
|
+
/** @description The interval cadence for budget periods. Changing cadence after creation is rejected. */
|
|
3708
3712
|
period_cadence?: {
|
|
3709
3713
|
/**
|
|
3710
3714
|
* Format: date
|
|
3711
|
-
* @description The anchor date for budget period intervals.
|
|
3715
|
+
* @description The anchor date for budget period intervals. Send null to clear.
|
|
3712
3716
|
*/
|
|
3713
|
-
starts_at
|
|
3717
|
+
starts_at: string | null;
|
|
3714
3718
|
/**
|
|
3715
3719
|
* Format: int32
|
|
3716
3720
|
* @description The number of interval units per budget period.
|
|
@@ -4474,7 +4478,7 @@ interface components {
|
|
|
4474
4478
|
* @example aws
|
|
4475
4479
|
* @enum {string}
|
|
4476
4480
|
*/
|
|
4477
|
-
provider: "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" | "all";
|
|
4481
|
+
provider: "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" | "all";
|
|
4478
4482
|
/**
|
|
4479
4483
|
* @description The service for the forecasted cost. Will be 'all' for all combined services
|
|
4480
4484
|
* @example Amazon Elastic Compute Cloud - Compute
|
|
@@ -4879,7 +4883,7 @@ interface components {
|
|
|
4879
4883
|
* @example aws
|
|
4880
4884
|
* @enum {string|null}
|
|
4881
4885
|
*/
|
|
4882
|
-
provider?: "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" | null;
|
|
4886
|
+
provider?: "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" | null;
|
|
4883
4887
|
/**
|
|
4884
4888
|
* @description The cost provider's billing account id that incurred the cost.
|
|
4885
4889
|
* @example 9109237192
|
|
@@ -5885,12 +5889,12 @@ interface components {
|
|
|
5885
5889
|
};
|
|
5886
5890
|
CostProvider: {
|
|
5887
5891
|
/**
|
|
5888
|
-
* @description The name of the CostProvider.
|
|
5892
|
+
* @description The name of the CostProvider. For Custom Providers, this is the customer-defined name.
|
|
5889
5893
|
* @example AWS
|
|
5890
5894
|
*/
|
|
5891
5895
|
name: string;
|
|
5892
5896
|
/**
|
|
5893
|
-
* @description The key of the CostProvider, useful for filtering Costs.
|
|
5897
|
+
* @description The key of the CostProvider, useful for filtering Costs. Custom Providers use the form custom_provider:<token>.
|
|
5894
5898
|
* @example aws
|
|
5895
5899
|
*/
|
|
5896
5900
|
key: string;
|
|
@@ -9234,6 +9238,15 @@ interface operations {
|
|
|
9234
9238
|
"application/json": components["schemas"]["BudgetAlert"];
|
|
9235
9239
|
};
|
|
9236
9240
|
};
|
|
9241
|
+
/** @description BadRequest */
|
|
9242
|
+
400: {
|
|
9243
|
+
headers: {
|
|
9244
|
+
[name: string]: unknown;
|
|
9245
|
+
};
|
|
9246
|
+
content: {
|
|
9247
|
+
"application/json": components["schemas"]["Errors"];
|
|
9248
|
+
};
|
|
9249
|
+
};
|
|
9237
9250
|
/** @description NotFound */
|
|
9238
9251
|
404: {
|
|
9239
9252
|
headers: {
|
|
@@ -10833,8 +10846,14 @@ interface operations {
|
|
|
10833
10846
|
getCostProviders: {
|
|
10834
10847
|
parameters: {
|
|
10835
10848
|
query?: {
|
|
10849
|
+
/** @description The page of results to return. */
|
|
10850
|
+
page?: number;
|
|
10851
|
+
/** @description The number of results to return. The maximum is 1000. */
|
|
10852
|
+
limit?: number;
|
|
10836
10853
|
/** @description The token of the Workspace to list CostProviders for. Required if the API token is associated with multiple Workspaces. */
|
|
10837
10854
|
workspace_token?: string;
|
|
10855
|
+
/** @description Search CostProviders by name or key. */
|
|
10856
|
+
q?: string;
|
|
10838
10857
|
};
|
|
10839
10858
|
header?: never;
|
|
10840
10859
|
path?: never;
|
|
@@ -10859,11 +10878,13 @@ interface operations {
|
|
|
10859
10878
|
/** @description The token of the Workspace to list CostProviderAccounts for. Required if the API token is associated with multiple Workspaces. */
|
|
10860
10879
|
workspace_token?: string;
|
|
10861
10880
|
/** @description Filter by provider type. */
|
|
10862
|
-
provider?: "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";
|
|
10881
|
+
provider?: "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";
|
|
10863
10882
|
/** @description Filter by provider account identifier. */
|
|
10864
10883
|
account_id?: string;
|
|
10865
10884
|
/** @description Filter by account name (exact match). */
|
|
10866
10885
|
account_name?: string;
|
|
10886
|
+
/** @description Search CostProviderAccounts by title. */
|
|
10887
|
+
q?: string;
|
|
10867
10888
|
};
|
|
10868
10889
|
header?: never;
|
|
10869
10890
|
path?: never;
|
|
@@ -11287,7 +11308,7 @@ interface operations {
|
|
|
11287
11308
|
/** @description Last date you would like to filter forecasted costs from. ISO 8601 formatted. */
|
|
11288
11309
|
end_date?: string;
|
|
11289
11310
|
/** @description Limit the forecasted costs to a specific provider. 'all' is accepted to filter to overall forecast. */
|
|
11290
|
-
provider?: "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" | "all";
|
|
11311
|
+
provider?: "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" | "all";
|
|
11291
11312
|
/** @description Limit the forecasted costs to a specific service. 'all' is accepted to filter to overall forecast. e.g. 'Amazon ElastiCache'. */
|
|
11292
11313
|
service?: string;
|
|
11293
11314
|
/** @description The page of results to return. */
|
|
@@ -12624,7 +12645,7 @@ interface operations {
|
|
|
12624
12645
|
parameters: {
|
|
12625
12646
|
query?: {
|
|
12626
12647
|
/** @description Query by provider name to list all Integrations for a specific provider. */
|
|
12627
|
-
provider?: "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";
|
|
12648
|
+
provider?: "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";
|
|
12628
12649
|
/** @description Query by account identifier to list all Integrations that match a specific account. For Azure, this is the subscription ID. Must include provider when using this parameter. */
|
|
12629
12650
|
account_identifier?: string;
|
|
12630
12651
|
/** @description The page of results to return. */
|
|
@@ -17157,7 +17178,7 @@ interface operations {
|
|
|
17157
17178
|
parameters: {
|
|
17158
17179
|
query?: {
|
|
17159
17180
|
/** @description An array of providers to scope Tags by. */
|
|
17160
|
-
providers?: ("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")[];
|
|
17181
|
+
providers?: ("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")[];
|
|
17161
17182
|
/** @description A search query to filter Tags by tag key. */
|
|
17162
17183
|
search_query?: string;
|
|
17163
17184
|
/** @description The direction in which you would like to sort the data by. Defaults to 'asc'. */
|
|
@@ -17295,7 +17316,7 @@ interface operations {
|
|
|
17295
17316
|
parameters: {
|
|
17296
17317
|
query?: {
|
|
17297
17318
|
/** @description An array of providers to scope TagValues by. */
|
|
17298
|
-
providers?: ("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")[];
|
|
17319
|
+
providers?: ("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")[];
|
|
17299
17320
|
/** @description The direction in which to sort the TagValues. Defaults to 'asc'. */
|
|
17300
17321
|
sort_direction?: "asc" | "desc";
|
|
17301
17322
|
/** @description A search query to filter TagValues by the value name. */
|
|
@@ -24685,7 +24706,7 @@ declare class BaseClient<NeverThrow extends boolean> {
|
|
|
24685
24706
|
}
|
|
24686
24707
|
|
|
24687
24708
|
/** Provider identifiers supported by the Vantage API. */
|
|
24688
|
-
declare const VANTAGE_PROVIDERS: readonly ["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"];
|
|
24709
|
+
declare const VANTAGE_PROVIDERS: readonly ["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"];
|
|
24689
24710
|
type VantageProvider = (typeof VANTAGE_PROVIDERS)[number];
|
|
24690
24711
|
|
|
24691
24712
|
/** Date interval values supported by Vantage reports. */
|
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"];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",{})}},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
|