@vantage-sh/vantage-client 2.15.0 → 2.17.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 +319 -8
- package/dist/index.d.ts +319 -8
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -64,13 +64,41 @@ interface paths {
|
|
|
64
64
|
*/
|
|
65
65
|
get: operations["getAnnotations"];
|
|
66
66
|
put?: never;
|
|
67
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Create an annotation
|
|
69
|
+
* @description Create an Annotation.
|
|
70
|
+
*/
|
|
71
|
+
post: operations["createAnnotation"];
|
|
68
72
|
delete?: never;
|
|
69
73
|
options?: never;
|
|
70
74
|
head?: never;
|
|
71
75
|
patch?: never;
|
|
72
76
|
trace?: never;
|
|
73
77
|
};
|
|
78
|
+
"/annotations/{annotation_token}": {
|
|
79
|
+
parameters: {
|
|
80
|
+
query?: never;
|
|
81
|
+
header?: never;
|
|
82
|
+
path?: never;
|
|
83
|
+
cookie?: never;
|
|
84
|
+
};
|
|
85
|
+
get?: never;
|
|
86
|
+
/**
|
|
87
|
+
* Update an annotation
|
|
88
|
+
* @description Update an Annotation.
|
|
89
|
+
*/
|
|
90
|
+
put: operations["updateAnnotation"];
|
|
91
|
+
post?: never;
|
|
92
|
+
/**
|
|
93
|
+
* Delete an annotation
|
|
94
|
+
* @description Delete an Annotation.
|
|
95
|
+
*/
|
|
96
|
+
delete: operations["deleteAnnotation"];
|
|
97
|
+
options?: never;
|
|
98
|
+
head?: never;
|
|
99
|
+
patch?: never;
|
|
100
|
+
trace?: never;
|
|
101
|
+
};
|
|
74
102
|
"/anomaly_alerts": {
|
|
75
103
|
parameters: {
|
|
76
104
|
query?: never;
|
|
@@ -2914,9 +2942,12 @@ interface components {
|
|
|
2914
2942
|
links?: components["schemas"]["Links"];
|
|
2915
2943
|
annotations: components["schemas"]["Annotation"][];
|
|
2916
2944
|
};
|
|
2945
|
+
/** @description Annotation model */
|
|
2917
2946
|
Annotation: {
|
|
2918
2947
|
/** @description The unique token identifying the Annotation. */
|
|
2919
2948
|
token: string;
|
|
2949
|
+
/** @description The title of the Annotation. */
|
|
2950
|
+
title: string;
|
|
2920
2951
|
/** @description The tokens of the Reports associated with the Annotation. */
|
|
2921
2952
|
report_tokens: string[];
|
|
2922
2953
|
/**
|
|
@@ -2927,6 +2958,34 @@ interface components {
|
|
|
2927
2958
|
/** @description The message of the Annotation. */
|
|
2928
2959
|
message: string | null;
|
|
2929
2960
|
};
|
|
2961
|
+
/** @description Create an Annotation. */
|
|
2962
|
+
createAnnotation: {
|
|
2963
|
+
/** @description The tokens of the Reports to annotate. */
|
|
2964
|
+
report_tokens: string[];
|
|
2965
|
+
/** @description The title of the Annotation. Defaults to a title generated from the first Report and date. */
|
|
2966
|
+
title?: string;
|
|
2967
|
+
/**
|
|
2968
|
+
* Format: date
|
|
2969
|
+
* @description The date of the Annotation. ISO 8601 formatted.
|
|
2970
|
+
*/
|
|
2971
|
+
date: string;
|
|
2972
|
+
/** @description The message of the Annotation. */
|
|
2973
|
+
message: string;
|
|
2974
|
+
};
|
|
2975
|
+
/** @description Update an Annotation. */
|
|
2976
|
+
updateAnnotation: {
|
|
2977
|
+
/** @description The title of the Annotation. */
|
|
2978
|
+
title?: string;
|
|
2979
|
+
/**
|
|
2980
|
+
* Format: date
|
|
2981
|
+
* @description The date of the Annotation. ISO 8601 formatted.
|
|
2982
|
+
*/
|
|
2983
|
+
date?: string;
|
|
2984
|
+
/** @description The message of the Annotation. */
|
|
2985
|
+
message?: string;
|
|
2986
|
+
/** @description The tokens of the Reports to associate with the Annotation. */
|
|
2987
|
+
report_tokens?: string[];
|
|
2988
|
+
};
|
|
2930
2989
|
/** @description AuditLogs model */
|
|
2931
2990
|
AuditLogs: {
|
|
2932
2991
|
links?: components["schemas"]["Links"];
|
|
@@ -6763,7 +6822,9 @@ interface components {
|
|
|
6763
6822
|
tag_key?: string;
|
|
6764
6823
|
tag_keys?: string[];
|
|
6765
6824
|
/** @description Whether the Tag is hidden from the Vantage UI. */
|
|
6766
|
-
hidden
|
|
6825
|
+
hidden?: boolean | null;
|
|
6826
|
+
/** @description Whether the Tag is marked as preferred in the Vantage UI. */
|
|
6827
|
+
preferred?: boolean | null;
|
|
6767
6828
|
};
|
|
6768
6829
|
/** @description Teams model */
|
|
6769
6830
|
Teams: {
|
|
@@ -7744,18 +7805,20 @@ interface operations {
|
|
|
7744
7805
|
* },
|
|
7745
7806
|
* "annotations": [
|
|
7746
7807
|
* {
|
|
7747
|
-
* "token": "
|
|
7808
|
+
* "token": "issue_946526bd88c296c6",
|
|
7809
|
+
* "title": "Down-sized",
|
|
7748
7810
|
* "report_tokens": [
|
|
7749
|
-
* "
|
|
7750
|
-
* "
|
|
7811
|
+
* "rprt_b03547330d3808a0",
|
|
7812
|
+
* "rprt_c4c97225bf1fa392"
|
|
7751
7813
|
* ],
|
|
7752
7814
|
* "date": "2026-08-12",
|
|
7753
7815
|
* "message": "Infrastructure migration"
|
|
7754
7816
|
* },
|
|
7755
7817
|
* {
|
|
7756
|
-
* "token": "
|
|
7818
|
+
* "token": "issue_56063755b6a82997",
|
|
7819
|
+
* "title": "Persistent",
|
|
7757
7820
|
* "report_tokens": [
|
|
7758
|
-
* "
|
|
7821
|
+
* "rprt_5649e387dc43ca2d"
|
|
7759
7822
|
* ],
|
|
7760
7823
|
* "date": "2026-08-10",
|
|
7761
7824
|
* "message": "Pricing update"
|
|
@@ -7768,6 +7831,194 @@ interface operations {
|
|
|
7768
7831
|
};
|
|
7769
7832
|
};
|
|
7770
7833
|
};
|
|
7834
|
+
createAnnotation: {
|
|
7835
|
+
parameters: {
|
|
7836
|
+
query?: never;
|
|
7837
|
+
header?: never;
|
|
7838
|
+
path?: never;
|
|
7839
|
+
cookie?: never;
|
|
7840
|
+
};
|
|
7841
|
+
requestBody: {
|
|
7842
|
+
content: {
|
|
7843
|
+
"application/json": components["schemas"]["createAnnotation"];
|
|
7844
|
+
};
|
|
7845
|
+
};
|
|
7846
|
+
responses: {
|
|
7847
|
+
/** @description Annotation created successfully. */
|
|
7848
|
+
201: {
|
|
7849
|
+
headers: {
|
|
7850
|
+
[name: string]: unknown;
|
|
7851
|
+
};
|
|
7852
|
+
content: {
|
|
7853
|
+
/**
|
|
7854
|
+
* @example {
|
|
7855
|
+
* "token": "issue_4b05d8f17aea0580",
|
|
7856
|
+
* "title": "Infrastructure migration completed",
|
|
7857
|
+
* "report_tokens": [
|
|
7858
|
+
* "rprt_5b72ee3954cf82e9",
|
|
7859
|
+
* "rprt_3ec37e01a019b9a6"
|
|
7860
|
+
* ],
|
|
7861
|
+
* "date": "2026-08-12",
|
|
7862
|
+
* "message": "Infrastructure migration completed"
|
|
7863
|
+
* }
|
|
7864
|
+
*/
|
|
7865
|
+
"application/json": components["schemas"]["Annotation"];
|
|
7866
|
+
};
|
|
7867
|
+
};
|
|
7868
|
+
/** @description BadRequest */
|
|
7869
|
+
400: {
|
|
7870
|
+
headers: {
|
|
7871
|
+
[name: string]: unknown;
|
|
7872
|
+
};
|
|
7873
|
+
content: {
|
|
7874
|
+
"application/json": components["schemas"]["Errors"];
|
|
7875
|
+
};
|
|
7876
|
+
};
|
|
7877
|
+
/** @description Forbidden */
|
|
7878
|
+
403: {
|
|
7879
|
+
headers: {
|
|
7880
|
+
[name: string]: unknown;
|
|
7881
|
+
};
|
|
7882
|
+
content: {
|
|
7883
|
+
"application/json": components["schemas"]["Errors"];
|
|
7884
|
+
};
|
|
7885
|
+
};
|
|
7886
|
+
/** @description NotFound */
|
|
7887
|
+
404: {
|
|
7888
|
+
headers: {
|
|
7889
|
+
[name: string]: unknown;
|
|
7890
|
+
};
|
|
7891
|
+
content: {
|
|
7892
|
+
"application/json": components["schemas"]["Errors"];
|
|
7893
|
+
};
|
|
7894
|
+
};
|
|
7895
|
+
/** @description UnprocessableEntity */
|
|
7896
|
+
422: {
|
|
7897
|
+
headers: {
|
|
7898
|
+
[name: string]: unknown;
|
|
7899
|
+
};
|
|
7900
|
+
content: {
|
|
7901
|
+
"application/json": components["schemas"]["Errors"];
|
|
7902
|
+
};
|
|
7903
|
+
};
|
|
7904
|
+
};
|
|
7905
|
+
};
|
|
7906
|
+
updateAnnotation: {
|
|
7907
|
+
parameters: {
|
|
7908
|
+
query?: never;
|
|
7909
|
+
header?: never;
|
|
7910
|
+
path: {
|
|
7911
|
+
/** @description The token of the Annotation. */
|
|
7912
|
+
annotation_token: string;
|
|
7913
|
+
};
|
|
7914
|
+
cookie?: never;
|
|
7915
|
+
};
|
|
7916
|
+
requestBody: {
|
|
7917
|
+
content: {
|
|
7918
|
+
"application/json": components["schemas"]["updateAnnotation"];
|
|
7919
|
+
};
|
|
7920
|
+
};
|
|
7921
|
+
responses: {
|
|
7922
|
+
/** @description Annotation updated successfully. */
|
|
7923
|
+
200: {
|
|
7924
|
+
headers: {
|
|
7925
|
+
[name: string]: unknown;
|
|
7926
|
+
};
|
|
7927
|
+
content: {
|
|
7928
|
+
/**
|
|
7929
|
+
* @example {
|
|
7930
|
+
* "token": "issue_f05d884fed1221e5",
|
|
7931
|
+
* "title": "Migration rescheduled",
|
|
7932
|
+
* "report_tokens": [
|
|
7933
|
+
* "rprt_7ed0e557ae72559d",
|
|
7934
|
+
* "rprt_3f5eebef4caea173"
|
|
7935
|
+
* ],
|
|
7936
|
+
* "date": "2026-08-14",
|
|
7937
|
+
* "message": "Infrastructure migration rescheduled"
|
|
7938
|
+
* }
|
|
7939
|
+
*/
|
|
7940
|
+
"application/json": components["schemas"]["Annotation"];
|
|
7941
|
+
};
|
|
7942
|
+
};
|
|
7943
|
+
/** @description BadRequest */
|
|
7944
|
+
400: {
|
|
7945
|
+
headers: {
|
|
7946
|
+
[name: string]: unknown;
|
|
7947
|
+
};
|
|
7948
|
+
content: {
|
|
7949
|
+
"application/json": components["schemas"]["Errors"];
|
|
7950
|
+
};
|
|
7951
|
+
};
|
|
7952
|
+
/** @description Forbidden */
|
|
7953
|
+
403: {
|
|
7954
|
+
headers: {
|
|
7955
|
+
[name: string]: unknown;
|
|
7956
|
+
};
|
|
7957
|
+
content: {
|
|
7958
|
+
"application/json": components["schemas"]["Errors"];
|
|
7959
|
+
};
|
|
7960
|
+
};
|
|
7961
|
+
/** @description NotFound */
|
|
7962
|
+
404: {
|
|
7963
|
+
headers: {
|
|
7964
|
+
[name: string]: unknown;
|
|
7965
|
+
};
|
|
7966
|
+
content: {
|
|
7967
|
+
"application/json": components["schemas"]["Errors"];
|
|
7968
|
+
};
|
|
7969
|
+
};
|
|
7970
|
+
/** @description UnprocessableEntity */
|
|
7971
|
+
422: {
|
|
7972
|
+
headers: {
|
|
7973
|
+
[name: string]: unknown;
|
|
7974
|
+
};
|
|
7975
|
+
content: {
|
|
7976
|
+
"application/json": components["schemas"]["Errors"];
|
|
7977
|
+
};
|
|
7978
|
+
};
|
|
7979
|
+
};
|
|
7980
|
+
};
|
|
7981
|
+
deleteAnnotation: {
|
|
7982
|
+
parameters: {
|
|
7983
|
+
query?: never;
|
|
7984
|
+
header?: never;
|
|
7985
|
+
path: {
|
|
7986
|
+
/** @description The token of the Annotation. */
|
|
7987
|
+
annotation_token: string;
|
|
7988
|
+
};
|
|
7989
|
+
cookie?: never;
|
|
7990
|
+
};
|
|
7991
|
+
requestBody?: never;
|
|
7992
|
+
responses: {
|
|
7993
|
+
/** @description Annotation deleted successfully. */
|
|
7994
|
+
204: {
|
|
7995
|
+
headers: {
|
|
7996
|
+
[name: string]: unknown;
|
|
7997
|
+
};
|
|
7998
|
+
content: {
|
|
7999
|
+
"application/json": components["schemas"]["Annotation"];
|
|
8000
|
+
};
|
|
8001
|
+
};
|
|
8002
|
+
/** @description Forbidden */
|
|
8003
|
+
403: {
|
|
8004
|
+
headers: {
|
|
8005
|
+
[name: string]: unknown;
|
|
8006
|
+
};
|
|
8007
|
+
content: {
|
|
8008
|
+
"application/json": components["schemas"]["Errors"];
|
|
8009
|
+
};
|
|
8010
|
+
};
|
|
8011
|
+
/** @description NotFound */
|
|
8012
|
+
404: {
|
|
8013
|
+
headers: {
|
|
8014
|
+
[name: string]: unknown;
|
|
8015
|
+
};
|
|
8016
|
+
content: {
|
|
8017
|
+
"application/json": components["schemas"]["Errors"];
|
|
8018
|
+
};
|
|
8019
|
+
};
|
|
8020
|
+
};
|
|
8021
|
+
};
|
|
7771
8022
|
getAnomalyAlerts: {
|
|
7772
8023
|
parameters: {
|
|
7773
8024
|
query?: {
|
|
@@ -10214,6 +10465,10 @@ interface operations {
|
|
|
10214
10465
|
getCostAlerts: {
|
|
10215
10466
|
parameters: {
|
|
10216
10467
|
query?: {
|
|
10468
|
+
/** @description The page of results to return. */
|
|
10469
|
+
page?: number;
|
|
10470
|
+
/** @description The amount of results to return. The maximum is 5000. */
|
|
10471
|
+
limit?: number;
|
|
10217
10472
|
/** @description Search cost alerts by title. */
|
|
10218
10473
|
q?: string;
|
|
10219
10474
|
/** @description The workspace token of the cost alerts to return. */
|
|
@@ -18866,6 +19121,26 @@ type GetAnnotationsRequest = RequestBodyForPathAndMethod<"/v2/annotations", "GET
|
|
|
18866
19121
|
* Response type for Get all annotations
|
|
18867
19122
|
*/
|
|
18868
19123
|
type GetAnnotationsResponse = ResponseBodyForPathAndMethod<"/v2/annotations", "GET">;
|
|
19124
|
+
/**
|
|
19125
|
+
* Create an Annotation.
|
|
19126
|
+
*/
|
|
19127
|
+
type CreateAnnotationRequest = RequestBodyForPathAndMethod<"/v2/annotations", "POST">;
|
|
19128
|
+
/**
|
|
19129
|
+
* Response type for Create an annotation
|
|
19130
|
+
*/
|
|
19131
|
+
type CreateAnnotationResponse = ResponseBodyForPathAndMethod<"/v2/annotations", "POST">;
|
|
19132
|
+
/**
|
|
19133
|
+
* Update an Annotation.
|
|
19134
|
+
*/
|
|
19135
|
+
type UpdateAnnotationRequest = RequestBodyForPathAndMethod<`/v2/annotations/${NoSlashString}`, "PUT">;
|
|
19136
|
+
/**
|
|
19137
|
+
* Response type for Update an annotation
|
|
19138
|
+
*/
|
|
19139
|
+
type UpdateAnnotationResponse = ResponseBodyForPathAndMethod<`/v2/annotations/${NoSlashString}`, "PUT">;
|
|
19140
|
+
/**
|
|
19141
|
+
* Response type for Delete an annotation
|
|
19142
|
+
*/
|
|
19143
|
+
type DeleteAnnotationResponse = ResponseBodyForPathAndMethod<`/v2/annotations/${NoSlashString}`, "DELETE">;
|
|
18869
19144
|
/**
|
|
18870
19145
|
* Return all Anomaly Alerts that the current API token has access to.
|
|
18871
19146
|
*/
|
|
@@ -20387,6 +20662,42 @@ declare class AnnotationsApi<NeverThrow extends boolean> {
|
|
|
20387
20662
|
links?: components["schemas"]["Links"];
|
|
20388
20663
|
annotations: components["schemas"]["Annotation"][];
|
|
20389
20664
|
}>;
|
|
20665
|
+
/**
|
|
20666
|
+
* Create an Annotation.
|
|
20667
|
+
*/
|
|
20668
|
+
create(body: CreateAnnotationRequest): Promise<NeverThrow extends true ? [null, VantageAPIError] | [{
|
|
20669
|
+
token: string;
|
|
20670
|
+
title: string;
|
|
20671
|
+
report_tokens: string[];
|
|
20672
|
+
date: string | null;
|
|
20673
|
+
message: string | null;
|
|
20674
|
+
}, null] : {
|
|
20675
|
+
token: string;
|
|
20676
|
+
title: string;
|
|
20677
|
+
report_tokens: string[];
|
|
20678
|
+
date: string | null;
|
|
20679
|
+
message: string | null;
|
|
20680
|
+
}>;
|
|
20681
|
+
/**
|
|
20682
|
+
* Update an Annotation.
|
|
20683
|
+
*/
|
|
20684
|
+
update(annotationToken: string, body: UpdateAnnotationRequest): Promise<NeverThrow extends true ? [null, VantageAPIError] | [{
|
|
20685
|
+
token: string;
|
|
20686
|
+
title: string;
|
|
20687
|
+
report_tokens: string[];
|
|
20688
|
+
date: string | null;
|
|
20689
|
+
message: string | null;
|
|
20690
|
+
}, null] : {
|
|
20691
|
+
token: string;
|
|
20692
|
+
title: string;
|
|
20693
|
+
report_tokens: string[];
|
|
20694
|
+
date: string | null;
|
|
20695
|
+
message: string | null;
|
|
20696
|
+
}>;
|
|
20697
|
+
/**
|
|
20698
|
+
* Delete an Annotation.
|
|
20699
|
+
*/
|
|
20700
|
+
delete(annotationToken: string): Promise<NeverThrow extends true ? [null, VantageAPIError] | [void, null] : void>;
|
|
20390
20701
|
}
|
|
20391
20702
|
declare class AnomalyAlertsApi<NeverThrow extends boolean> {
|
|
20392
20703
|
private client;
|
|
@@ -24221,4 +24532,4 @@ declare class BaseClient<NeverThrow extends boolean> {
|
|
|
24221
24532
|
request<RequestPath extends Path, RequestMethod extends SupportedMethods<RequestPath>>(path: RequestPath, method: RequestMethod, body: RequestBodyForPathAndMethod<RequestPath, RequestMethod>): Promise<NeverThrow extends true ? NeverThrowResult<ResponseBodyForPathAndMethod<RequestPath, RequestMethod>> : ResponseBodyForPathAndMethod<RequestPath, RequestMethod>>;
|
|
24222
24533
|
}
|
|
24223
24534
|
|
|
24224
|
-
export { APIV2Client, type AddTeamMemberRequest, type AddTeamMemberResponse, type CreateAccessGrantRequest, type CreateAccessGrantResponse, type CreateAnomalyNotificationRequest, type CreateAnomalyNotificationResponse, type CreateAzureIntegrationRequest, type CreateAzureIntegrationResponse, type CreateBillingProfileRequest, type CreateBillingProfileResponse, type CreateBillingRuleRequest, type CreateBillingRuleResponse, type CreateBudgetAlertRequest, type CreateBudgetAlertResponse, type CreateBudgetRequest, type CreateBudgetResponse, type CreateBusinessMetricRequest, type CreateBusinessMetricResponse, type CreateCanvasRequest, type CreateCanvasResponse, type CreateCostAlertRequest, type CreateCostAlertResponse, type CreateCostExportRequest, type CreateCostExportResponse, type CreateCostReportRequest, type CreateCostReportResponse, type CreateCustomProviderIntegrationRequest, type CreateCustomProviderIntegrationResponse, type CreateDashboardRequest, type CreateDashboardResponse, type CreateExchangeRatesViaCsvRequest, type CreateExchangeRatesViaCsvResponse, type CreateFinancialCommitmentReportRequest, type CreateFinancialCommitmentReportResponse, type CreateFolderRequest, type CreateFolderResponse, type CreateGCPIntegrationRequest, type CreateGCPIntegrationResponse, type CreateInvoiceRequest, type CreateInvoiceResponse, type CreateKubernetesEfficiencyReportExportRequest, type CreateKubernetesEfficiencyReportExportResponse, type CreateKubernetesEfficiencyReportRequest, type CreateKubernetesEfficiencyReportResponse, type CreateManagedAccountRequest, type CreateManagedAccountResponse, type CreateNetworkFlowReportRequest, type CreateNetworkFlowReportResponse, type CreateRecommendationViewRequest, type CreateRecommendationViewResponse, type CreateReportForecastRequest, type CreateReportForecastResponse, type CreateReportNotificationRequest, type CreateReportNotificationResponse, type CreateResourceReportRequest, type CreateResourceReportResponse, type CreateSavedFilterRequest, type CreateSavedFilterResponse, type CreateScenarioModelRequest, type CreateScenarioModelResponse, type CreateSegmentRequest, type CreateSegmentResponse, type CreateSsoConnectionForManagedAccountRequest, type CreateSsoConnectionForManagedAccountResponse, type CreateTeamRequest, type CreateTeamResponse, type CreateUnitCostsExportRequest, type CreateUnitCostsExportResponse, type CreateUserCostsUploadViaCsvRequest, type CreateUserCostsUploadViaCsvResponse, type CreateUserFeedbackRequest, type CreateUserFeedbackResponse, type CreateVirtualTagConfigRequest, type CreateVirtualTagConfigResponse, type CreateVirtualTagConfigValueRequest, type CreateVirtualTagConfigValueResponse, type CreateWorkspaceRequest, type CreateWorkspaceResponse, type DeleteAccessGrantResponse, type DeleteAnomalyNotificationResponse, type DeleteBillingProfileResponse, type DeleteBillingRuleResponse, type DeleteBudgetAlertResponse, type DeleteBudgetResponse, type DeleteBusinessMetricResponse, type DeleteBusinessMetricValuesRequest, type DeleteBusinessMetricValuesResponse, type DeleteCanvasResponse, type DeleteCostAlertResponse, type DeleteCostReportResponse, type DeleteDashboardResponse, type DeleteFinancialCommitmentReportResponse, type DeleteFolderResponse, type DeleteIntegrationResponse, type DeleteKubernetesEfficiencyReportResponse, type DeleteManagedAccountResponse, type DeleteNetworkFlowReportResponse, type DeleteRecommendationViewResponse, type DeleteReportForecastResponse, type DeleteReportNotificationResponse, type DeleteResourceReportResponse, type DeleteSavedFilterResponse, type DeleteScenarioModelResponse, type DeleteSegmentResponse, type DeleteSsoConnectionForManagedAccountResponse, type DeleteTeamResponse, type DeleteUserCostsUploadResponse, type DeleteVirtualTagConfigResponse, type DeleteVirtualTagConfigValueResponse, type DeleteWorkspaceResponse, type DownloadInvoiceRequest, type DownloadInvoiceResponse, type GetAccessGrantResponse, type GetAccessGrantsRequest, type GetAccessGrantsResponse, type GetAnnotationsRequest, type GetAnnotationsResponse, type GetAnomalyAlertResponse, type GetAnomalyAlertsRequest, type GetAnomalyAlertsResponse, type GetAnomalyNotificationResponse, type GetAnomalyNotificationsRequest, type GetAnomalyNotificationsResponse, type GetAsyncVirtualTagConfigStatusResponse, type GetAuditLogResponse, type GetAuditLogsRequest, type GetAuditLogsResponse, type GetBillingProfileResponse, type GetBillingProfilesRequest, type GetBillingProfilesResponse, type GetBillingRuleResponse, type GetBillingRulesRequest, type GetBillingRulesResponse, type GetBudgetAlertResponse, type GetBudgetAlertsRequest, type GetBudgetAlertsResponse, type GetBudgetRequest, type GetBudgetResponse, type GetBudgetsRequest, type GetBudgetsResponse, type GetBusinessMetricForecastedValuesRequest, type GetBusinessMetricForecastedValuesResponse, type GetBusinessMetricLabelsRequest, type GetBusinessMetricLabelsResponse, type GetBusinessMetricResponse, type GetBusinessMetricValuesRequest, type GetBusinessMetricValuesResponse, type GetBusinessMetricsRequest, type GetBusinessMetricsResponse, type GetCanvasResponse, type GetCanvasesRequest, type GetCanvasesResponse, type GetCostAlertEventResponse, type GetCostAlertEventsRequest, type GetCostAlertEventsResponse, type GetCostAlertResponse, type GetCostAlertsRequest, type GetCostAlertsResponse, type GetCostProviderAccountsRequest, type GetCostProviderAccountsResponse, type GetCostProvidersRequest, type GetCostProvidersResponse, type GetCostReportResponse, type GetCostReportsRequest, type GetCostReportsResponse, type GetCostServicesRequest, type GetCostServicesResponse, type GetCostsRequest, type GetCostsResponse, type GetDashboardResponse, type GetDashboardsRequest, type GetDashboardsResponse, type GetDataExportResponse, type GetExchangeRatesRequest, type GetExchangeRatesResponse, type GetFinancialCommitmentReportResponse, type GetFinancialCommitmentReportsRequest, type GetFinancialCommitmentReportsResponse, type GetFinancialCommitmentsRequest, type GetFinancialCommitmentsResponse, type GetFolderResponse, type GetFoldersRequest, type GetFoldersResponse, type GetForecastedCostsRequest, type GetForecastedCostsResponse, type GetIntegrationResponse, type GetIntegrationsRequest, type GetIntegrationsResponse, type GetInvoiceCostReportResponse, type GetInvoiceResponse, type GetInvoicesRequest, type GetInvoicesResponse, type GetKubernetesEfficiencyReportResponse, type GetKubernetesEfficiencyReportsRequest, type GetKubernetesEfficiencyReportsResponse, type GetManagedAccountResponse, type GetManagedAccountsRequest, type GetManagedAccountsResponse, type GetMeResponse, type GetNetworkFlowLogsRequest, type GetNetworkFlowLogsResponse, type GetNetworkFlowReportResponse, type GetNetworkFlowReportsRequest, type GetNetworkFlowReportsResponse, type GetPriceResponse, type GetPricesRequest, type GetPricesResponse, type GetProductResponse, type GetProductsRequest, type GetProductsResponse, type GetRecommendationResourceResponse, type GetRecommendationResourcesRequest, type GetRecommendationResourcesResponse, type GetRecommendationResponse, type GetRecommendationTypeResourcesRequest, type GetRecommendationTypeResourcesResponse, type GetRecommendationViewResponse, type GetRecommendationViewsRequest, type GetRecommendationViewsResponse, type GetRecommendationsRequest, type GetRecommendationsResponse, type GetReportForecastResponse, type GetReportForecastsRequest, type GetReportForecastsResponse, type GetReportNotificationResponse, type GetReportNotificationsRequest, type GetReportNotificationsResponse, type GetReportResourcesRequest, type GetReportResourcesResponse, type GetResourceReportColumnsRequest, type GetResourceReportColumnsResponse, type GetResourceReportResponse, type GetResourceReportsRequest, type GetResourceReportsResponse, type GetResourceRequest, type GetResourceResponse, type GetSavedFilterResponse, type GetSavedFiltersRequest, type GetSavedFiltersResponse, type GetScenarioModelResponse, type GetScenarioModelsRequest, type GetScenarioModelsResponse, type GetSegmentResponse, type GetSegmentsRequest, type GetSegmentsResponse, type GetTagValuesRequest, type GetTagValuesResponse, type GetTagsRequest, type GetTagsResponse, type GetTeamMembersRequest, type GetTeamMembersResponse, type GetTeamResponse, type GetTeamsRequest, type GetTeamsResponse, type GetUnitCostsRequest, type GetUnitCostsResponse, type GetUserCostsUploadsResponse, type GetUserResponse, type GetUsersRequest, type GetUsersResponse, type GetVirtualTagConfigResponse, type GetVirtualTagConfigStatusResponse, type GetVirtualTagConfigValueResponse, type GetVirtualTagConfigsRequest, type GetVirtualTagConfigsResponse, type GetWorkspaceResponse, type GetWorkspacesRequest, type GetWorkspacesResponse, type NoSlashString, type Path, type PathResponseEdgecases, type PingResponse, type RegenerateInvoiceResponse, type RemoveTeamMemberResponse, type RequestBodyForPathAndMethod, type ResponseBodyForPathAndMethod, type SendAndApproveInvoiceResponse, type SendInvoiceResponse, type SupportedMethods, type UpdateAccessGrantRequest, type UpdateAccessGrantResponse, type UpdateAnomalyAlertRequest, type UpdateAnomalyAlertResponse, type UpdateAnomalyNotificationRequest, type UpdateAnomalyNotificationResponse, type UpdateAsyncVirtualTagConfigRequest, type UpdateAsyncVirtualTagConfigResponse, type UpdateBillingProfileRequest, type UpdateBillingProfileResponse, type UpdateBillingRuleRequest, type UpdateBillingRuleResponse, type UpdateBudgetAlertRequest, type UpdateBudgetAlertResponse, type UpdateBudgetRequest, type UpdateBudgetResponse, type UpdateBusinessMetricRequest, type UpdateBusinessMetricResponse, type UpdateBusinessMetricValuesCSVRequest, type UpdateBusinessMetricValuesCSVResponse, type UpdateCanvasRequest, type UpdateCanvasResponse, type UpdateCostAlertRequest, type UpdateCostAlertResponse, type UpdateCostReportRequest, type UpdateCostReportResponse, type UpdateDashboardRequest, type UpdateDashboardResponse, type UpdateFinancialCommitmentReportRequest, type UpdateFinancialCommitmentReportResponse, type UpdateFolderRequest, type UpdateFolderResponse, type UpdateIntegrationRequest, type UpdateIntegrationResponse, type UpdateKubernetesEfficiencyReportRequest, type UpdateKubernetesEfficiencyReportResponse, type UpdateManagedAccountRequest, type UpdateManagedAccountResponse, type UpdateMeRequest, type UpdateMeResponse, type UpdateNetworkFlowReportRequest, type UpdateNetworkFlowReportResponse, type UpdateRecommendationViewRequest, type UpdateRecommendationViewResponse, type UpdateReportForecastRequest, type UpdateReportForecastResponse, type UpdateReportNotificationRequest, type UpdateReportNotificationResponse, type UpdateResourceReportRequest, type UpdateResourceReportResponse, type UpdateSavedFilterRequest, type UpdateSavedFilterResponse, type UpdateScenarioModelRequest, type UpdateScenarioModelResponse, type UpdateSegmentRequest, type UpdateSegmentResponse, type UpdateSsoConnectionForManagedAccountRequest, type UpdateSsoConnectionForManagedAccountResponse, type UpdateTagRequest, type UpdateTagResponse, type UpdateTeamRequest, type UpdateTeamResponse, type UpdateUserRequest, type UpdateUserResponse, type UpdateVirtualTagConfigRequest, type UpdateVirtualTagConfigResponse, type UpdateVirtualTagConfigValueRequest, type UpdateVirtualTagConfigValueResponse, type UpdateWorkspaceRequest, type UpdateWorkspaceResponse, VantageAPIError, pathEncode };
|
|
24535
|
+
export { APIV2Client, type AddTeamMemberRequest, type AddTeamMemberResponse, type CreateAccessGrantRequest, type CreateAccessGrantResponse, type CreateAnnotationRequest, type CreateAnnotationResponse, type CreateAnomalyNotificationRequest, type CreateAnomalyNotificationResponse, type CreateAzureIntegrationRequest, type CreateAzureIntegrationResponse, type CreateBillingProfileRequest, type CreateBillingProfileResponse, type CreateBillingRuleRequest, type CreateBillingRuleResponse, type CreateBudgetAlertRequest, type CreateBudgetAlertResponse, type CreateBudgetRequest, type CreateBudgetResponse, type CreateBusinessMetricRequest, type CreateBusinessMetricResponse, type CreateCanvasRequest, type CreateCanvasResponse, type CreateCostAlertRequest, type CreateCostAlertResponse, type CreateCostExportRequest, type CreateCostExportResponse, type CreateCostReportRequest, type CreateCostReportResponse, type CreateCustomProviderIntegrationRequest, type CreateCustomProviderIntegrationResponse, type CreateDashboardRequest, type CreateDashboardResponse, type CreateExchangeRatesViaCsvRequest, type CreateExchangeRatesViaCsvResponse, type CreateFinancialCommitmentReportRequest, type CreateFinancialCommitmentReportResponse, type CreateFolderRequest, type CreateFolderResponse, type CreateGCPIntegrationRequest, type CreateGCPIntegrationResponse, type CreateInvoiceRequest, type CreateInvoiceResponse, type CreateKubernetesEfficiencyReportExportRequest, type CreateKubernetesEfficiencyReportExportResponse, type CreateKubernetesEfficiencyReportRequest, type CreateKubernetesEfficiencyReportResponse, type CreateManagedAccountRequest, type CreateManagedAccountResponse, type CreateNetworkFlowReportRequest, type CreateNetworkFlowReportResponse, type CreateRecommendationViewRequest, type CreateRecommendationViewResponse, type CreateReportForecastRequest, type CreateReportForecastResponse, type CreateReportNotificationRequest, type CreateReportNotificationResponse, type CreateResourceReportRequest, type CreateResourceReportResponse, type CreateSavedFilterRequest, type CreateSavedFilterResponse, type CreateScenarioModelRequest, type CreateScenarioModelResponse, type CreateSegmentRequest, type CreateSegmentResponse, type CreateSsoConnectionForManagedAccountRequest, type CreateSsoConnectionForManagedAccountResponse, type CreateTeamRequest, type CreateTeamResponse, type CreateUnitCostsExportRequest, type CreateUnitCostsExportResponse, type CreateUserCostsUploadViaCsvRequest, type CreateUserCostsUploadViaCsvResponse, type CreateUserFeedbackRequest, type CreateUserFeedbackResponse, type CreateVirtualTagConfigRequest, type CreateVirtualTagConfigResponse, type CreateVirtualTagConfigValueRequest, type CreateVirtualTagConfigValueResponse, type CreateWorkspaceRequest, type CreateWorkspaceResponse, type DeleteAccessGrantResponse, type DeleteAnnotationResponse, type DeleteAnomalyNotificationResponse, type DeleteBillingProfileResponse, type DeleteBillingRuleResponse, type DeleteBudgetAlertResponse, type DeleteBudgetResponse, type DeleteBusinessMetricResponse, type DeleteBusinessMetricValuesRequest, type DeleteBusinessMetricValuesResponse, type DeleteCanvasResponse, type DeleteCostAlertResponse, type DeleteCostReportResponse, type DeleteDashboardResponse, type DeleteFinancialCommitmentReportResponse, type DeleteFolderResponse, type DeleteIntegrationResponse, type DeleteKubernetesEfficiencyReportResponse, type DeleteManagedAccountResponse, type DeleteNetworkFlowReportResponse, type DeleteRecommendationViewResponse, type DeleteReportForecastResponse, type DeleteReportNotificationResponse, type DeleteResourceReportResponse, type DeleteSavedFilterResponse, type DeleteScenarioModelResponse, type DeleteSegmentResponse, type DeleteSsoConnectionForManagedAccountResponse, type DeleteTeamResponse, type DeleteUserCostsUploadResponse, type DeleteVirtualTagConfigResponse, type DeleteVirtualTagConfigValueResponse, type DeleteWorkspaceResponse, type DownloadInvoiceRequest, type DownloadInvoiceResponse, type GetAccessGrantResponse, type GetAccessGrantsRequest, type GetAccessGrantsResponse, type GetAnnotationsRequest, type GetAnnotationsResponse, type GetAnomalyAlertResponse, type GetAnomalyAlertsRequest, type GetAnomalyAlertsResponse, type GetAnomalyNotificationResponse, type GetAnomalyNotificationsRequest, type GetAnomalyNotificationsResponse, type GetAsyncVirtualTagConfigStatusResponse, type GetAuditLogResponse, type GetAuditLogsRequest, type GetAuditLogsResponse, type GetBillingProfileResponse, type GetBillingProfilesRequest, type GetBillingProfilesResponse, type GetBillingRuleResponse, type GetBillingRulesRequest, type GetBillingRulesResponse, type GetBudgetAlertResponse, type GetBudgetAlertsRequest, type GetBudgetAlertsResponse, type GetBudgetRequest, type GetBudgetResponse, type GetBudgetsRequest, type GetBudgetsResponse, type GetBusinessMetricForecastedValuesRequest, type GetBusinessMetricForecastedValuesResponse, type GetBusinessMetricLabelsRequest, type GetBusinessMetricLabelsResponse, type GetBusinessMetricResponse, type GetBusinessMetricValuesRequest, type GetBusinessMetricValuesResponse, type GetBusinessMetricsRequest, type GetBusinessMetricsResponse, type GetCanvasResponse, type GetCanvasesRequest, type GetCanvasesResponse, type GetCostAlertEventResponse, type GetCostAlertEventsRequest, type GetCostAlertEventsResponse, type GetCostAlertResponse, type GetCostAlertsRequest, type GetCostAlertsResponse, type GetCostProviderAccountsRequest, type GetCostProviderAccountsResponse, type GetCostProvidersRequest, type GetCostProvidersResponse, type GetCostReportResponse, type GetCostReportsRequest, type GetCostReportsResponse, type GetCostServicesRequest, type GetCostServicesResponse, type GetCostsRequest, type GetCostsResponse, type GetDashboardResponse, type GetDashboardsRequest, type GetDashboardsResponse, type GetDataExportResponse, type GetExchangeRatesRequest, type GetExchangeRatesResponse, type GetFinancialCommitmentReportResponse, type GetFinancialCommitmentReportsRequest, type GetFinancialCommitmentReportsResponse, type GetFinancialCommitmentsRequest, type GetFinancialCommitmentsResponse, type GetFolderResponse, type GetFoldersRequest, type GetFoldersResponse, type GetForecastedCostsRequest, type GetForecastedCostsResponse, type GetIntegrationResponse, type GetIntegrationsRequest, type GetIntegrationsResponse, type GetInvoiceCostReportResponse, type GetInvoiceResponse, type GetInvoicesRequest, type GetInvoicesResponse, type GetKubernetesEfficiencyReportResponse, type GetKubernetesEfficiencyReportsRequest, type GetKubernetesEfficiencyReportsResponse, type GetManagedAccountResponse, type GetManagedAccountsRequest, type GetManagedAccountsResponse, type GetMeResponse, type GetNetworkFlowLogsRequest, type GetNetworkFlowLogsResponse, type GetNetworkFlowReportResponse, type GetNetworkFlowReportsRequest, type GetNetworkFlowReportsResponse, type GetPriceResponse, type GetPricesRequest, type GetPricesResponse, type GetProductResponse, type GetProductsRequest, type GetProductsResponse, type GetRecommendationResourceResponse, type GetRecommendationResourcesRequest, type GetRecommendationResourcesResponse, type GetRecommendationResponse, type GetRecommendationTypeResourcesRequest, type GetRecommendationTypeResourcesResponse, type GetRecommendationViewResponse, type GetRecommendationViewsRequest, type GetRecommendationViewsResponse, type GetRecommendationsRequest, type GetRecommendationsResponse, type GetReportForecastResponse, type GetReportForecastsRequest, type GetReportForecastsResponse, type GetReportNotificationResponse, type GetReportNotificationsRequest, type GetReportNotificationsResponse, type GetReportResourcesRequest, type GetReportResourcesResponse, type GetResourceReportColumnsRequest, type GetResourceReportColumnsResponse, type GetResourceReportResponse, type GetResourceReportsRequest, type GetResourceReportsResponse, type GetResourceRequest, type GetResourceResponse, type GetSavedFilterResponse, type GetSavedFiltersRequest, type GetSavedFiltersResponse, type GetScenarioModelResponse, type GetScenarioModelsRequest, type GetScenarioModelsResponse, type GetSegmentResponse, type GetSegmentsRequest, type GetSegmentsResponse, type GetTagValuesRequest, type GetTagValuesResponse, type GetTagsRequest, type GetTagsResponse, type GetTeamMembersRequest, type GetTeamMembersResponse, type GetTeamResponse, type GetTeamsRequest, type GetTeamsResponse, type GetUnitCostsRequest, type GetUnitCostsResponse, type GetUserCostsUploadsResponse, type GetUserResponse, type GetUsersRequest, type GetUsersResponse, type GetVirtualTagConfigResponse, type GetVirtualTagConfigStatusResponse, type GetVirtualTagConfigValueResponse, type GetVirtualTagConfigsRequest, type GetVirtualTagConfigsResponse, type GetWorkspaceResponse, type GetWorkspacesRequest, type GetWorkspacesResponse, type NoSlashString, type Path, type PathResponseEdgecases, type PingResponse, type RegenerateInvoiceResponse, type RemoveTeamMemberResponse, type RequestBodyForPathAndMethod, type ResponseBodyForPathAndMethod, type SendAndApproveInvoiceResponse, type SendInvoiceResponse, type SupportedMethods, type UpdateAccessGrantRequest, type UpdateAccessGrantResponse, type UpdateAnnotationRequest, type UpdateAnnotationResponse, type UpdateAnomalyAlertRequest, type UpdateAnomalyAlertResponse, type UpdateAnomalyNotificationRequest, type UpdateAnomalyNotificationResponse, type UpdateAsyncVirtualTagConfigRequest, type UpdateAsyncVirtualTagConfigResponse, type UpdateBillingProfileRequest, type UpdateBillingProfileResponse, type UpdateBillingRuleRequest, type UpdateBillingRuleResponse, type UpdateBudgetAlertRequest, type UpdateBudgetAlertResponse, type UpdateBudgetRequest, type UpdateBudgetResponse, type UpdateBusinessMetricRequest, type UpdateBusinessMetricResponse, type UpdateBusinessMetricValuesCSVRequest, type UpdateBusinessMetricValuesCSVResponse, type UpdateCanvasRequest, type UpdateCanvasResponse, type UpdateCostAlertRequest, type UpdateCostAlertResponse, type UpdateCostReportRequest, type UpdateCostReportResponse, type UpdateDashboardRequest, type UpdateDashboardResponse, type UpdateFinancialCommitmentReportRequest, type UpdateFinancialCommitmentReportResponse, type UpdateFolderRequest, type UpdateFolderResponse, type UpdateIntegrationRequest, type UpdateIntegrationResponse, type UpdateKubernetesEfficiencyReportRequest, type UpdateKubernetesEfficiencyReportResponse, type UpdateManagedAccountRequest, type UpdateManagedAccountResponse, type UpdateMeRequest, type UpdateMeResponse, type UpdateNetworkFlowReportRequest, type UpdateNetworkFlowReportResponse, type UpdateRecommendationViewRequest, type UpdateRecommendationViewResponse, type UpdateReportForecastRequest, type UpdateReportForecastResponse, type UpdateReportNotificationRequest, type UpdateReportNotificationResponse, type UpdateResourceReportRequest, type UpdateResourceReportResponse, type UpdateSavedFilterRequest, type UpdateSavedFilterResponse, type UpdateScenarioModelRequest, type UpdateScenarioModelResponse, type UpdateSegmentRequest, type UpdateSegmentResponse, type UpdateSsoConnectionForManagedAccountRequest, type UpdateSsoConnectionForManagedAccountResponse, type UpdateTagRequest, type UpdateTagResponse, type UpdateTeamRequest, type UpdateTeamResponse, type UpdateUserRequest, type UpdateUserResponse, type UpdateVirtualTagConfigRequest, type UpdateVirtualTagConfigResponse, type UpdateVirtualTagConfigValueRequest, type UpdateVirtualTagConfigValueResponse, type UpdateWorkspaceRequest, type UpdateWorkspaceResponse, VantageAPIError, pathEncode };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var R=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var Re=Object.prototype.hasOwnProperty;var ge=(o,e)=>{for(var t in e)R(o,t,{get:e[t],enumerable:!0})},ye=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ve(e))!Re.call(o,i)&&i!==t&&R(o,i,{get:()=>e[i],enumerable:!(n=le(e,i))||n.enumerable});return o};var Te=o=>ye(R({},"__esModule",{value:!0}),o);var Ae={};ge(Ae,{APIV2Client:()=>y,VantageAPIError:()=>u,pathEncode:()=>s});module.exports=Te(Ae);function s(o){return encodeURIComponent(o)}var Pe={"/v2/exchange_rates/csv":{POST:!0},"/v2/business_metrics/{}/values.csv":{PUT:!0},"/v2/integrations/{}/costs.csv":{POST:!0}},c={};function _e(o){return o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}for(let[o,e]of Object.entries(Pe)){let t=o.split("{}").map(_e).join("(.+?)");for(let[n,i]of Object.entries(e))i&&(c[n]||(c[n]=[]),c[n].push(new RegExp(`^${t}$`)))}function qe(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 Se(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 Se(i,n),g(i,t,p,void 0,this.neverThrow,r);if(qe(t,e)){let d=new FormData;for(let[v,ce]of Object.entries(n))d.append(v,ce);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 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 P(this)),this._annotations}get anomalyAlerts(){return this._anomalyAlerts||(this._anomalyAlerts=new _(this)),this._anomalyAlerts}get anomalyNotifications(){return this._anomalyNotifications||(this._anomalyNotifications=new q(this)),this._anomalyNotifications}get auditLogs(){return this._auditLogs||(this._auditLogs=new S(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 M(this)),this._businessMetrics}get canvases(){return this._canvases||(this._canvases=new G(this)),this._canvases}get costAlerts(){return this._costAlerts||(this._costAlerts=new B(this)),this._costAlerts}get costProviders(){return this._costProviders||(this._costProviders=new f(this)),this._costProviders}get costProviderAccounts(){return this._costProviderAccounts||(this._costProviderAccounts=new F(this)),this._costProviderAccounts}get costReports(){return this._costReports||(this._costReports=new N(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 L(this)),this._integrations}get invoices(){return this._invoices||(this._invoices=new V(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 z(this)),this._networkFlowReports}get ping(){return this._ping||(this._ping=new H(this)),this._ping}get products(){return this._products||(this._products=new J(this)),this._products}get recommendations(){return this._recommendations||(this._recommendations=new Q(this)),this._recommendations}get recommendationViews(){return this._recommendationViews||(this._recommendationViews=new X(this)),this._recommendationViews}get reportForecasts(){return this._reportForecasts||(this._reportForecasts=new Z(this)),this._reportForecasts}get reportNotifications(){return this._reportNotifications||(this._reportNotifications=new Y(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",{})}},P=class{constructor(e){this.client=e}list(e){return this.client.request("/v2/annotations","GET",e)}},_=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)}},q=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",{})}},S=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",{})}},M=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)}},G=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",{})}},B=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",{})}},f=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)}},N=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",{})}},L=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)}},V=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)}},z=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",{})}},H=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",{})}},Q=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)}},X=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",{})}},Z=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",{})}},Y=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,VantageAPIError,pathEncode});
|
|
1
|
+
var R=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var Re=Object.prototype.hasOwnProperty;var ge=(o,e)=>{for(var t in e)R(o,t,{get:e[t],enumerable:!0})},ye=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ve(e))!Re.call(o,i)&&i!==t&&R(o,i,{get:()=>e[i],enumerable:!(n=le(e,i))||n.enumerable});return o};var Te=o=>ye(R({},"__esModule",{value:!0}),o);var Ae={};ge(Ae,{APIV2Client:()=>y,VantageAPIError:()=>u,pathEncode:()=>s});module.exports=Te(Ae);function s(o){return encodeURIComponent(o)}var Pe={"/v2/exchange_rates/csv":{POST:!0},"/v2/business_metrics/{}/values.csv":{PUT:!0},"/v2/integrations/{}/costs.csv":{POST:!0}},c={};function _e(o){return o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}for(let[o,e]of Object.entries(Pe)){let t=o.split("{}").map(_e).join("(.+?)");for(let[n,i]of Object.entries(e))i&&(c[n]||(c[n]=[]),c[n].push(new RegExp(`^${t}$`)))}function qe(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 Se(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 Se(i,n),g(i,t,p,void 0,this.neverThrow,r);if(qe(t,e)){let d=new FormData;for(let[v,ce]of Object.entries(n))d.append(v,ce);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 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 P(this)),this._annotations}get anomalyAlerts(){return this._anomalyAlerts||(this._anomalyAlerts=new _(this)),this._anomalyAlerts}get anomalyNotifications(){return this._anomalyNotifications||(this._anomalyNotifications=new q(this)),this._anomalyNotifications}get auditLogs(){return this._auditLogs||(this._auditLogs=new S(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 M(this)),this._businessMetrics}get canvases(){return this._canvases||(this._canvases=new G(this)),this._canvases}get costAlerts(){return this._costAlerts||(this._costAlerts=new B(this)),this._costAlerts}get costProviders(){return this._costProviders||(this._costProviders=new f(this)),this._costProviders}get costProviderAccounts(){return this._costProviderAccounts||(this._costProviderAccounts=new F(this)),this._costProviderAccounts}get costReports(){return this._costReports||(this._costReports=new N(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 L(this)),this._integrations}get invoices(){return this._invoices||(this._invoices=new V(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 z(this)),this._networkFlowReports}get ping(){return this._ping||(this._ping=new H(this)),this._ping}get products(){return this._products||(this._products=new J(this)),this._products}get recommendations(){return this._recommendations||(this._recommendations=new Q(this)),this._recommendations}get recommendationViews(){return this._recommendationViews||(this._recommendationViews=new X(this)),this._recommendationViews}get reportForecasts(){return this._reportForecasts||(this._reportForecasts=new Z(this)),this._reportForecasts}get reportNotifications(){return this._reportNotifications||(this._reportNotifications=new Y(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",{})}},P=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",{})}},_=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)}},q=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",{})}},S=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",{})}},M=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)}},G=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",{})}},B=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",{})}},f=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)}},N=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",{})}},L=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)}},V=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)}},z=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",{})}},H=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",{})}},Q=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)}},X=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",{})}},Z=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",{})}},Y=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,VantageAPIError,pathEncode});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|