@nexgencloud/hyperstack-sdk-typescript 1.51.2-alpha → 1.52.3-alpha
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/README.md +2 -2
- package/api.ts +2403 -543
- package/dist/api.d.ts +1279 -49
- package/dist/api.js +1257 -128
- package/dist/esm/api.d.ts +1279 -49
- package/dist/esm/api.js +1240 -123
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -448,6 +448,93 @@ export interface AuthUserInfoResponseModel {
|
|
|
448
448
|
*/
|
|
449
449
|
'user'?: AuthUserFields;
|
|
450
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @export
|
|
454
|
+
* @interface AutoTopup
|
|
455
|
+
*/
|
|
456
|
+
export interface AutoTopup {
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @type {number}
|
|
460
|
+
* @memberof AutoTopup
|
|
461
|
+
*/
|
|
462
|
+
'id'?: number;
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @type {string}
|
|
466
|
+
* @memberof AutoTopup
|
|
467
|
+
*/
|
|
468
|
+
'status'?: string;
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @type {number}
|
|
472
|
+
* @memberof AutoTopup
|
|
473
|
+
*/
|
|
474
|
+
'threshold_amount'?: number;
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* @type {number}
|
|
478
|
+
* @memberof AutoTopup
|
|
479
|
+
*/
|
|
480
|
+
'topup_amount'?: number;
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @type {string}
|
|
484
|
+
* @memberof AutoTopup
|
|
485
|
+
*/
|
|
486
|
+
'updated_at'?: string;
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
*
|
|
490
|
+
* @export
|
|
491
|
+
* @interface AutoTopupErrorResponse
|
|
492
|
+
*/
|
|
493
|
+
export interface AutoTopupErrorResponse {
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
* @type {string}
|
|
497
|
+
* @memberof AutoTopupErrorResponse
|
|
498
|
+
*/
|
|
499
|
+
'error_reason'?: string;
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @type {string}
|
|
503
|
+
* @memberof AutoTopupErrorResponse
|
|
504
|
+
*/
|
|
505
|
+
'message'?: string;
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @type {boolean}
|
|
509
|
+
* @memberof AutoTopupErrorResponse
|
|
510
|
+
*/
|
|
511
|
+
'status'?: boolean;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @export
|
|
516
|
+
* @interface AutoTopupStatusSchema
|
|
517
|
+
*/
|
|
518
|
+
export interface AutoTopupStatusSchema {
|
|
519
|
+
/**
|
|
520
|
+
* Auto top-up status: active, disabled, pending_setup, cancelled, or null
|
|
521
|
+
* @type {string}
|
|
522
|
+
* @memberof AutoTopupStatusSchema
|
|
523
|
+
*/
|
|
524
|
+
'status'?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Balance threshold that triggers auto top-up
|
|
527
|
+
* @type {number}
|
|
528
|
+
* @memberof AutoTopupStatusSchema
|
|
529
|
+
*/
|
|
530
|
+
'threshold_amount'?: number;
|
|
531
|
+
/**
|
|
532
|
+
* Amount to top up when threshold is reached
|
|
533
|
+
* @type {number}
|
|
534
|
+
* @memberof AutoTopupStatusSchema
|
|
535
|
+
*/
|
|
536
|
+
'topup_amount'?: number;
|
|
537
|
+
}
|
|
451
538
|
/**
|
|
452
539
|
*
|
|
453
540
|
* @export
|
|
@@ -619,10 +706,10 @@ export interface BillingHistory {
|
|
|
619
706
|
'attributes'?: Attributes;
|
|
620
707
|
/**
|
|
621
708
|
*
|
|
622
|
-
* @type {
|
|
709
|
+
* @type {Metrics}
|
|
623
710
|
* @memberof BillingHistory
|
|
624
711
|
*/
|
|
625
|
-
'metrics'?:
|
|
712
|
+
'metrics'?: Metrics;
|
|
626
713
|
}
|
|
627
714
|
/**
|
|
628
715
|
*
|
|
@@ -686,6 +773,37 @@ export interface BillingHistoryFineTuning {
|
|
|
686
773
|
*/
|
|
687
774
|
'total_count'?: number;
|
|
688
775
|
}
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @export
|
|
779
|
+
* @interface BillingHistoryImageGenerationDetails
|
|
780
|
+
*/
|
|
781
|
+
export interface BillingHistoryImageGenerationDetails {
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @type {Array<BillingHistory>}
|
|
785
|
+
* @memberof BillingHistoryImageGenerationDetails
|
|
786
|
+
*/
|
|
787
|
+
'billing_history'?: Array<BillingHistory>;
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @type {number}
|
|
791
|
+
* @memberof BillingHistoryImageGenerationDetails
|
|
792
|
+
*/
|
|
793
|
+
'org_id'?: number;
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @type {Pagination}
|
|
797
|
+
* @memberof BillingHistoryImageGenerationDetails
|
|
798
|
+
*/
|
|
799
|
+
'pagination'?: Pagination;
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @type {number}
|
|
803
|
+
* @memberof BillingHistoryImageGenerationDetails
|
|
804
|
+
*/
|
|
805
|
+
'total_count'?: number;
|
|
806
|
+
}
|
|
689
807
|
/**
|
|
690
808
|
*
|
|
691
809
|
* @export
|
|
@@ -1794,6 +1912,106 @@ export interface ComplianceResponse {
|
|
|
1794
1912
|
*/
|
|
1795
1913
|
'status'?: boolean;
|
|
1796
1914
|
}
|
|
1915
|
+
/**
|
|
1916
|
+
*
|
|
1917
|
+
* @export
|
|
1918
|
+
* @interface ConsentActionResponse
|
|
1919
|
+
*/
|
|
1920
|
+
export interface ConsentActionResponse {
|
|
1921
|
+
/**
|
|
1922
|
+
*
|
|
1923
|
+
* @type {UserConsent}
|
|
1924
|
+
* @memberof ConsentActionResponse
|
|
1925
|
+
*/
|
|
1926
|
+
'consent'?: UserConsent;
|
|
1927
|
+
/**
|
|
1928
|
+
*
|
|
1929
|
+
* @type {string}
|
|
1930
|
+
* @memberof ConsentActionResponse
|
|
1931
|
+
*/
|
|
1932
|
+
'message'?: string;
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
*
|
|
1936
|
+
* @export
|
|
1937
|
+
* @interface ConsentBlock
|
|
1938
|
+
*/
|
|
1939
|
+
export interface ConsentBlock {
|
|
1940
|
+
/**
|
|
1941
|
+
* Block text, may contain ${variable} placeholders
|
|
1942
|
+
* @type {string}
|
|
1943
|
+
* @memberof ConsentBlock
|
|
1944
|
+
*/
|
|
1945
|
+
'text'?: string;
|
|
1946
|
+
/**
|
|
1947
|
+
* Block display type
|
|
1948
|
+
* @type {string}
|
|
1949
|
+
* @memberof ConsentBlock
|
|
1950
|
+
*/
|
|
1951
|
+
'type'?: ConsentBlockTypeEnum;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
export const ConsentBlockTypeEnum = {
|
|
1955
|
+
Text: 'text',
|
|
1956
|
+
Warning: 'warning',
|
|
1957
|
+
Info: 'info',
|
|
1958
|
+
Success: 'success',
|
|
1959
|
+
Failure: 'failure'
|
|
1960
|
+
} as const;
|
|
1961
|
+
|
|
1962
|
+
export type ConsentBlockTypeEnum = typeof ConsentBlockTypeEnum[keyof typeof ConsentBlockTypeEnum];
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
*
|
|
1966
|
+
* @export
|
|
1967
|
+
* @interface ConsentEventsResponse
|
|
1968
|
+
*/
|
|
1969
|
+
export interface ConsentEventsResponse {
|
|
1970
|
+
/**
|
|
1971
|
+
*
|
|
1972
|
+
* @type {UserConsent}
|
|
1973
|
+
* @memberof ConsentEventsResponse
|
|
1974
|
+
*/
|
|
1975
|
+
'consent'?: UserConsent;
|
|
1976
|
+
/**
|
|
1977
|
+
*
|
|
1978
|
+
* @type {Array<UserConsentEvent>}
|
|
1979
|
+
* @memberof ConsentEventsResponse
|
|
1980
|
+
*/
|
|
1981
|
+
'events'?: Array<UserConsentEvent>;
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
*
|
|
1985
|
+
* @export
|
|
1986
|
+
* @interface ConsentTemplate
|
|
1987
|
+
*/
|
|
1988
|
+
export interface ConsentTemplate {
|
|
1989
|
+
/**
|
|
1990
|
+
*
|
|
1991
|
+
* @type {Array<ConsentBlock>}
|
|
1992
|
+
* @memberof ConsentTemplate
|
|
1993
|
+
*/
|
|
1994
|
+
'blocks'?: Array<ConsentBlock>;
|
|
1995
|
+
/**
|
|
1996
|
+
* Template version identifier
|
|
1997
|
+
* @type {string}
|
|
1998
|
+
* @memberof ConsentTemplate
|
|
1999
|
+
*/
|
|
2000
|
+
'version'?: string;
|
|
2001
|
+
}
|
|
2002
|
+
/**
|
|
2003
|
+
*
|
|
2004
|
+
* @export
|
|
2005
|
+
* @interface ConsentTemplatesResponse
|
|
2006
|
+
*/
|
|
2007
|
+
export interface ConsentTemplatesResponse {
|
|
2008
|
+
/**
|
|
2009
|
+
* Templates keyed by consent type
|
|
2010
|
+
* @type {object}
|
|
2011
|
+
* @memberof ConsentTemplatesResponse
|
|
2012
|
+
*/
|
|
2013
|
+
'templates'?: object;
|
|
2014
|
+
}
|
|
1797
2015
|
/**
|
|
1798
2016
|
*
|
|
1799
2017
|
* @export
|
|
@@ -2052,6 +2270,50 @@ export interface ContractInstancesResponse {
|
|
|
2052
2270
|
*/
|
|
2053
2271
|
'status'?: boolean;
|
|
2054
2272
|
}
|
|
2273
|
+
/**
|
|
2274
|
+
*
|
|
2275
|
+
* @export
|
|
2276
|
+
* @interface CreateAutoTopupPayload
|
|
2277
|
+
*/
|
|
2278
|
+
export interface CreateAutoTopupPayload {
|
|
2279
|
+
/**
|
|
2280
|
+
*
|
|
2281
|
+
* @type {number}
|
|
2282
|
+
* @memberof CreateAutoTopupPayload
|
|
2283
|
+
*/
|
|
2284
|
+
'threshold_amount': number;
|
|
2285
|
+
/**
|
|
2286
|
+
*
|
|
2287
|
+
* @type {number}
|
|
2288
|
+
* @memberof CreateAutoTopupPayload
|
|
2289
|
+
*/
|
|
2290
|
+
'topup_amount': number;
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
*
|
|
2294
|
+
* @export
|
|
2295
|
+
* @interface CreateAutoTopupResponse
|
|
2296
|
+
*/
|
|
2297
|
+
export interface CreateAutoTopupResponse {
|
|
2298
|
+
/**
|
|
2299
|
+
*
|
|
2300
|
+
* @type {AutoTopup}
|
|
2301
|
+
* @memberof CreateAutoTopupResponse
|
|
2302
|
+
*/
|
|
2303
|
+
'auto_topup'?: AutoTopup;
|
|
2304
|
+
/**
|
|
2305
|
+
*
|
|
2306
|
+
* @type {string}
|
|
2307
|
+
* @memberof CreateAutoTopupResponse
|
|
2308
|
+
*/
|
|
2309
|
+
'message'?: string;
|
|
2310
|
+
/**
|
|
2311
|
+
*
|
|
2312
|
+
* @type {boolean}
|
|
2313
|
+
* @memberof CreateAutoTopupResponse
|
|
2314
|
+
*/
|
|
2315
|
+
'status'?: boolean;
|
|
2316
|
+
}
|
|
2055
2317
|
/**
|
|
2056
2318
|
*
|
|
2057
2319
|
* @export
|
|
@@ -3091,6 +3353,31 @@ export interface DetachVolumesPayload {
|
|
|
3091
3353
|
*/
|
|
3092
3354
|
'volume_ids'?: Array<number>;
|
|
3093
3355
|
}
|
|
3356
|
+
/**
|
|
3357
|
+
*
|
|
3358
|
+
* @export
|
|
3359
|
+
* @interface DisableAutoTopupResponse
|
|
3360
|
+
*/
|
|
3361
|
+
export interface DisableAutoTopupResponse {
|
|
3362
|
+
/**
|
|
3363
|
+
*
|
|
3364
|
+
* @type {AutoTopup}
|
|
3365
|
+
* @memberof DisableAutoTopupResponse
|
|
3366
|
+
*/
|
|
3367
|
+
'auto_topup'?: AutoTopup;
|
|
3368
|
+
/**
|
|
3369
|
+
*
|
|
3370
|
+
* @type {string}
|
|
3371
|
+
* @memberof DisableAutoTopupResponse
|
|
3372
|
+
*/
|
|
3373
|
+
'message'?: string;
|
|
3374
|
+
/**
|
|
3375
|
+
*
|
|
3376
|
+
* @type {boolean}
|
|
3377
|
+
* @memberof DisableAutoTopupResponse
|
|
3378
|
+
*/
|
|
3379
|
+
'status'?: boolean;
|
|
3380
|
+
}
|
|
3094
3381
|
/**
|
|
3095
3382
|
*
|
|
3096
3383
|
* @export
|
|
@@ -3980,6 +4267,31 @@ export interface GetApiKeysResponseModel {
|
|
|
3980
4267
|
*/
|
|
3981
4268
|
'status'?: boolean;
|
|
3982
4269
|
}
|
|
4270
|
+
/**
|
|
4271
|
+
*
|
|
4272
|
+
* @export
|
|
4273
|
+
* @interface GetAutoTopupResponse
|
|
4274
|
+
*/
|
|
4275
|
+
export interface GetAutoTopupResponse {
|
|
4276
|
+
/**
|
|
4277
|
+
*
|
|
4278
|
+
* @type {AutoTopup}
|
|
4279
|
+
* @memberof GetAutoTopupResponse
|
|
4280
|
+
*/
|
|
4281
|
+
'auto_topup'?: AutoTopup;
|
|
4282
|
+
/**
|
|
4283
|
+
*
|
|
4284
|
+
* @type {string}
|
|
4285
|
+
* @memberof GetAutoTopupResponse
|
|
4286
|
+
*/
|
|
4287
|
+
'message'?: string;
|
|
4288
|
+
/**
|
|
4289
|
+
*
|
|
4290
|
+
* @type {boolean}
|
|
4291
|
+
* @memberof GetAutoTopupResponse
|
|
4292
|
+
*/
|
|
4293
|
+
'status'?: boolean;
|
|
4294
|
+
}
|
|
3983
4295
|
/**
|
|
3984
4296
|
*
|
|
3985
4297
|
* @export
|
|
@@ -4329,6 +4641,31 @@ export interface ImageFields {
|
|
|
4329
4641
|
*/
|
|
4330
4642
|
'version'?: string;
|
|
4331
4643
|
}
|
|
4644
|
+
/**
|
|
4645
|
+
*
|
|
4646
|
+
* @export
|
|
4647
|
+
* @interface ImageGenerationBillingHistoryDetailsResponseSchema
|
|
4648
|
+
*/
|
|
4649
|
+
export interface ImageGenerationBillingHistoryDetailsResponseSchema {
|
|
4650
|
+
/**
|
|
4651
|
+
*
|
|
4652
|
+
* @type {BillingHistoryImageGenerationDetails}
|
|
4653
|
+
* @memberof ImageGenerationBillingHistoryDetailsResponseSchema
|
|
4654
|
+
*/
|
|
4655
|
+
'billing_history_image_generation_details'?: BillingHistoryImageGenerationDetails;
|
|
4656
|
+
/**
|
|
4657
|
+
*
|
|
4658
|
+
* @type {string}
|
|
4659
|
+
* @memberof ImageGenerationBillingHistoryDetailsResponseSchema
|
|
4660
|
+
*/
|
|
4661
|
+
'message'?: string;
|
|
4662
|
+
/**
|
|
4663
|
+
*
|
|
4664
|
+
* @type {boolean}
|
|
4665
|
+
* @memberof ImageGenerationBillingHistoryDetailsResponseSchema
|
|
4666
|
+
*/
|
|
4667
|
+
'status'?: boolean;
|
|
4668
|
+
}
|
|
4332
4669
|
/**
|
|
4333
4670
|
*
|
|
4334
4671
|
* @export
|
|
@@ -5417,39 +5754,94 @@ export interface MetricItemFields {
|
|
|
5417
5754
|
/**
|
|
5418
5755
|
*
|
|
5419
5756
|
* @export
|
|
5420
|
-
* @interface
|
|
5757
|
+
* @interface Metrics
|
|
5421
5758
|
*/
|
|
5422
|
-
export interface
|
|
5759
|
+
export interface Metrics {
|
|
5423
5760
|
/**
|
|
5424
5761
|
*
|
|
5425
|
-
* @type {
|
|
5426
|
-
* @memberof
|
|
5762
|
+
* @type {number}
|
|
5763
|
+
* @memberof Metrics
|
|
5427
5764
|
*/
|
|
5428
|
-
'
|
|
5765
|
+
'incurred_bill'?: number;
|
|
5429
5766
|
/**
|
|
5430
5767
|
*
|
|
5431
|
-
* @type {
|
|
5432
|
-
* @memberof
|
|
5768
|
+
* @type {number}
|
|
5769
|
+
* @memberof Metrics
|
|
5433
5770
|
*/
|
|
5434
|
-
'
|
|
5771
|
+
'input_tokens'?: number;
|
|
5435
5772
|
/**
|
|
5436
5773
|
*
|
|
5437
|
-
* @type {
|
|
5438
|
-
* @memberof
|
|
5774
|
+
* @type {number}
|
|
5775
|
+
* @memberof Metrics
|
|
5439
5776
|
*/
|
|
5440
|
-
'
|
|
5777
|
+
'input_tokens_incurred_bill'?: number;
|
|
5441
5778
|
/**
|
|
5442
5779
|
*
|
|
5443
|
-
* @type {
|
|
5444
|
-
* @memberof
|
|
5780
|
+
* @type {number}
|
|
5781
|
+
* @memberof Metrics
|
|
5445
5782
|
*/
|
|
5446
|
-
'
|
|
5783
|
+
'input_tokens_non_discounted_bill'?: number;
|
|
5447
5784
|
/**
|
|
5448
5785
|
*
|
|
5449
|
-
* @type {
|
|
5450
|
-
* @memberof
|
|
5786
|
+
* @type {number}
|
|
5787
|
+
* @memberof Metrics
|
|
5451
5788
|
*/
|
|
5452
|
-
'
|
|
5789
|
+
'non_discounted_bill'?: number;
|
|
5790
|
+
/**
|
|
5791
|
+
*
|
|
5792
|
+
* @type {number}
|
|
5793
|
+
* @memberof Metrics
|
|
5794
|
+
*/
|
|
5795
|
+
'output_tokens'?: number;
|
|
5796
|
+
/**
|
|
5797
|
+
*
|
|
5798
|
+
* @type {number}
|
|
5799
|
+
* @memberof Metrics
|
|
5800
|
+
*/
|
|
5801
|
+
'output_tokens_incurred_bill'?: number;
|
|
5802
|
+
/**
|
|
5803
|
+
*
|
|
5804
|
+
* @type {number}
|
|
5805
|
+
* @memberof Metrics
|
|
5806
|
+
*/
|
|
5807
|
+
'output_tokens_non_discounted_bill'?: number;
|
|
5808
|
+
}
|
|
5809
|
+
/**
|
|
5810
|
+
*
|
|
5811
|
+
* @export
|
|
5812
|
+
* @interface MetricsFields
|
|
5813
|
+
*/
|
|
5814
|
+
export interface MetricsFields {
|
|
5815
|
+
/**
|
|
5816
|
+
*
|
|
5817
|
+
* @type {MetricItemFields}
|
|
5818
|
+
* @memberof MetricsFields
|
|
5819
|
+
*/
|
|
5820
|
+
'cpu'?: MetricItemFields;
|
|
5821
|
+
/**
|
|
5822
|
+
*
|
|
5823
|
+
* @type {MetricItemFields}
|
|
5824
|
+
* @memberof MetricsFields
|
|
5825
|
+
*/
|
|
5826
|
+
'disk.read'?: MetricItemFields;
|
|
5827
|
+
/**
|
|
5828
|
+
*
|
|
5829
|
+
* @type {MetricItemFields}
|
|
5830
|
+
* @memberof MetricsFields
|
|
5831
|
+
*/
|
|
5832
|
+
'disk.write'?: MetricItemFields;
|
|
5833
|
+
/**
|
|
5834
|
+
*
|
|
5835
|
+
* @type {MetricItemFields}
|
|
5836
|
+
* @memberof MetricsFields
|
|
5837
|
+
*/
|
|
5838
|
+
'memory.usages'?: MetricItemFields;
|
|
5839
|
+
/**
|
|
5840
|
+
*
|
|
5841
|
+
* @type {MetricItemFields}
|
|
5842
|
+
* @memberof MetricsFields
|
|
5843
|
+
*/
|
|
5844
|
+
'network.in'?: MetricItemFields;
|
|
5453
5845
|
/**
|
|
5454
5846
|
*
|
|
5455
5847
|
* @type {MetricItemFields}
|
|
@@ -6422,6 +6814,18 @@ export interface PaymentDetailsFields {
|
|
|
6422
6814
|
* @memberof PaymentDetailsFields
|
|
6423
6815
|
*/
|
|
6424
6816
|
'amount'?: number;
|
|
6817
|
+
/**
|
|
6818
|
+
*
|
|
6819
|
+
* @type {number}
|
|
6820
|
+
* @memberof PaymentDetailsFields
|
|
6821
|
+
*/
|
|
6822
|
+
'attempt_number'?: number;
|
|
6823
|
+
/**
|
|
6824
|
+
*
|
|
6825
|
+
* @type {number}
|
|
6826
|
+
* @memberof PaymentDetailsFields
|
|
6827
|
+
*/
|
|
6828
|
+
'auto_topup_id'?: number;
|
|
6425
6829
|
/**
|
|
6426
6830
|
*
|
|
6427
6831
|
* @type {string}
|
|
@@ -6452,6 +6856,12 @@ export interface PaymentDetailsFields {
|
|
|
6452
6856
|
* @memberof PaymentDetailsFields
|
|
6453
6857
|
*/
|
|
6454
6858
|
'invoice'?: string;
|
|
6859
|
+
/**
|
|
6860
|
+
*
|
|
6861
|
+
* @type {number}
|
|
6862
|
+
* @memberof PaymentDetailsFields
|
|
6863
|
+
*/
|
|
6864
|
+
'max_attempts'?: number;
|
|
6455
6865
|
/**
|
|
6456
6866
|
*
|
|
6457
6867
|
* @type {string}
|
|
@@ -6464,6 +6874,12 @@ export interface PaymentDetailsFields {
|
|
|
6464
6874
|
* @memberof PaymentDetailsFields
|
|
6465
6875
|
*/
|
|
6466
6876
|
'payment_id'?: string;
|
|
6877
|
+
/**
|
|
6878
|
+
*
|
|
6879
|
+
* @type {string}
|
|
6880
|
+
* @memberof PaymentDetailsFields
|
|
6881
|
+
*/
|
|
6882
|
+
'payment_type'?: string;
|
|
6467
6883
|
/**
|
|
6468
6884
|
*
|
|
6469
6885
|
* @type {string}
|
|
@@ -6497,10 +6913,10 @@ export interface PaymentDetailsFields {
|
|
|
6497
6913
|
export interface PaymentDetailsResponse {
|
|
6498
6914
|
/**
|
|
6499
6915
|
*
|
|
6500
|
-
* @type {PaymentDetailsFields}
|
|
6916
|
+
* @type {Array<PaymentDetailsFields>}
|
|
6501
6917
|
* @memberof PaymentDetailsResponse
|
|
6502
6918
|
*/
|
|
6503
|
-
'data'?: PaymentDetailsFields
|
|
6919
|
+
'data'?: Array<PaymentDetailsFields>;
|
|
6504
6920
|
/**
|
|
6505
6921
|
*
|
|
6506
6922
|
* @type {string}
|
|
@@ -6974,6 +7390,63 @@ export interface RbacRoleFields {
|
|
|
6974
7390
|
*/
|
|
6975
7391
|
'policies'?: Array<RolePolicyFields>;
|
|
6976
7392
|
}
|
|
7393
|
+
/**
|
|
7394
|
+
*
|
|
7395
|
+
* @export
|
|
7396
|
+
* @interface RecordConsentRequest
|
|
7397
|
+
*/
|
|
7398
|
+
export interface RecordConsentRequest {
|
|
7399
|
+
/**
|
|
7400
|
+
*
|
|
7401
|
+
* @type {string}
|
|
7402
|
+
* @memberof RecordConsentRequest
|
|
7403
|
+
*/
|
|
7404
|
+
'action': RecordConsentRequestActionEnum;
|
|
7405
|
+
/**
|
|
7406
|
+
*
|
|
7407
|
+
* @type {string}
|
|
7408
|
+
* @memberof RecordConsentRequest
|
|
7409
|
+
*/
|
|
7410
|
+
'consent_method'?: RecordConsentRequestConsentMethodEnum;
|
|
7411
|
+
/**
|
|
7412
|
+
*
|
|
7413
|
+
* @type {string}
|
|
7414
|
+
* @memberof RecordConsentRequest
|
|
7415
|
+
*/
|
|
7416
|
+
'consent_type': RecordConsentRequestConsentTypeEnum;
|
|
7417
|
+
/**
|
|
7418
|
+
* Version identifier. Defaults to the current version for the consent type
|
|
7419
|
+
* @type {string}
|
|
7420
|
+
* @memberof RecordConsentRequest
|
|
7421
|
+
*/
|
|
7422
|
+
'consent_version'?: string;
|
|
7423
|
+
/**
|
|
7424
|
+
* Consent-type-specific metadata
|
|
7425
|
+
* @type {object}
|
|
7426
|
+
* @memberof RecordConsentRequest
|
|
7427
|
+
*/
|
|
7428
|
+
'metadata'?: object;
|
|
7429
|
+
}
|
|
7430
|
+
|
|
7431
|
+
export const RecordConsentRequestActionEnum = {
|
|
7432
|
+
Granted: 'granted',
|
|
7433
|
+
Revoked: 'revoked'
|
|
7434
|
+
} as const;
|
|
7435
|
+
|
|
7436
|
+
export type RecordConsentRequestActionEnum = typeof RecordConsentRequestActionEnum[keyof typeof RecordConsentRequestActionEnum];
|
|
7437
|
+
export const RecordConsentRequestConsentMethodEnum = {
|
|
7438
|
+
WebCheckbox: 'web_checkbox',
|
|
7439
|
+
Api: 'api',
|
|
7440
|
+
AdminOverride: 'admin_override'
|
|
7441
|
+
} as const;
|
|
7442
|
+
|
|
7443
|
+
export type RecordConsentRequestConsentMethodEnum = typeof RecordConsentRequestConsentMethodEnum[keyof typeof RecordConsentRequestConsentMethodEnum];
|
|
7444
|
+
export const RecordConsentRequestConsentTypeEnum = {
|
|
7445
|
+
AutoTopUp: 'auto_top_up'
|
|
7446
|
+
} as const;
|
|
7447
|
+
|
|
7448
|
+
export type RecordConsentRequestConsentTypeEnum = typeof RecordConsentRequestConsentTypeEnum[keyof typeof RecordConsentRequestConsentTypeEnum];
|
|
7449
|
+
|
|
6977
7450
|
/**
|
|
6978
7451
|
*
|
|
6979
7452
|
* @export
|
|
@@ -9081,6 +9554,50 @@ export interface URIs {
|
|
|
9081
9554
|
*/
|
|
9082
9555
|
'landing_page'?: string;
|
|
9083
9556
|
}
|
|
9557
|
+
/**
|
|
9558
|
+
*
|
|
9559
|
+
* @export
|
|
9560
|
+
* @interface UpdateAutoTopupPayload
|
|
9561
|
+
*/
|
|
9562
|
+
export interface UpdateAutoTopupPayload {
|
|
9563
|
+
/**
|
|
9564
|
+
*
|
|
9565
|
+
* @type {number}
|
|
9566
|
+
* @memberof UpdateAutoTopupPayload
|
|
9567
|
+
*/
|
|
9568
|
+
'threshold_amount': number;
|
|
9569
|
+
/**
|
|
9570
|
+
*
|
|
9571
|
+
* @type {number}
|
|
9572
|
+
* @memberof UpdateAutoTopupPayload
|
|
9573
|
+
*/
|
|
9574
|
+
'topup_amount': number;
|
|
9575
|
+
}
|
|
9576
|
+
/**
|
|
9577
|
+
*
|
|
9578
|
+
* @export
|
|
9579
|
+
* @interface UpdateAutoTopupResponse
|
|
9580
|
+
*/
|
|
9581
|
+
export interface UpdateAutoTopupResponse {
|
|
9582
|
+
/**
|
|
9583
|
+
*
|
|
9584
|
+
* @type {AutoTopup}
|
|
9585
|
+
* @memberof UpdateAutoTopupResponse
|
|
9586
|
+
*/
|
|
9587
|
+
'auto_topup'?: AutoTopup;
|
|
9588
|
+
/**
|
|
9589
|
+
*
|
|
9590
|
+
* @type {string}
|
|
9591
|
+
* @memberof UpdateAutoTopupResponse
|
|
9592
|
+
*/
|
|
9593
|
+
'message'?: string;
|
|
9594
|
+
/**
|
|
9595
|
+
*
|
|
9596
|
+
* @type {boolean}
|
|
9597
|
+
* @memberof UpdateAutoTopupResponse
|
|
9598
|
+
*/
|
|
9599
|
+
'status'?: boolean;
|
|
9600
|
+
}
|
|
9084
9601
|
/**
|
|
9085
9602
|
*
|
|
9086
9603
|
* @export
|
|
@@ -9106,6 +9623,52 @@ export interface UpdateClusterNodeGroupPayload {
|
|
|
9106
9623
|
*/
|
|
9107
9624
|
'min_count'?: number;
|
|
9108
9625
|
}
|
|
9626
|
+
/**
|
|
9627
|
+
*
|
|
9628
|
+
* @export
|
|
9629
|
+
* @interface UpdateConsentRequest
|
|
9630
|
+
*/
|
|
9631
|
+
export interface UpdateConsentRequest {
|
|
9632
|
+
/**
|
|
9633
|
+
*
|
|
9634
|
+
* @type {string}
|
|
9635
|
+
* @memberof UpdateConsentRequest
|
|
9636
|
+
*/
|
|
9637
|
+
'action': UpdateConsentRequestActionEnum;
|
|
9638
|
+
/**
|
|
9639
|
+
*
|
|
9640
|
+
* @type {string}
|
|
9641
|
+
* @memberof UpdateConsentRequest
|
|
9642
|
+
*/
|
|
9643
|
+
'consent_method'?: UpdateConsentRequestConsentMethodEnum;
|
|
9644
|
+
/**
|
|
9645
|
+
* Version identifier. Defaults to the current version for the consent type
|
|
9646
|
+
* @type {string}
|
|
9647
|
+
* @memberof UpdateConsentRequest
|
|
9648
|
+
*/
|
|
9649
|
+
'consent_version'?: string;
|
|
9650
|
+
/**
|
|
9651
|
+
* Consent-type-specific metadata
|
|
9652
|
+
* @type {object}
|
|
9653
|
+
* @memberof UpdateConsentRequest
|
|
9654
|
+
*/
|
|
9655
|
+
'metadata'?: object;
|
|
9656
|
+
}
|
|
9657
|
+
|
|
9658
|
+
export const UpdateConsentRequestActionEnum = {
|
|
9659
|
+
Granted: 'granted',
|
|
9660
|
+
Revoked: 'revoked'
|
|
9661
|
+
} as const;
|
|
9662
|
+
|
|
9663
|
+
export type UpdateConsentRequestActionEnum = typeof UpdateConsentRequestActionEnum[keyof typeof UpdateConsentRequestActionEnum];
|
|
9664
|
+
export const UpdateConsentRequestConsentMethodEnum = {
|
|
9665
|
+
WebCheckbox: 'web_checkbox',
|
|
9666
|
+
Api: 'api',
|
|
9667
|
+
AdminOverride: 'admin_override'
|
|
9668
|
+
} as const;
|
|
9669
|
+
|
|
9670
|
+
export type UpdateConsentRequestConsentMethodEnum = typeof UpdateConsentRequestConsentMethodEnum[keyof typeof UpdateConsentRequestConsentMethodEnum];
|
|
9671
|
+
|
|
9109
9672
|
/**
|
|
9110
9673
|
*
|
|
9111
9674
|
* @export
|
|
@@ -9271,6 +9834,129 @@ export interface UpdateVolumeResponse {
|
|
|
9271
9834
|
*/
|
|
9272
9835
|
'volume'?: VolumeFields;
|
|
9273
9836
|
}
|
|
9837
|
+
/**
|
|
9838
|
+
*
|
|
9839
|
+
* @export
|
|
9840
|
+
* @interface UserConsent
|
|
9841
|
+
*/
|
|
9842
|
+
export interface UserConsent {
|
|
9843
|
+
/**
|
|
9844
|
+
*
|
|
9845
|
+
* @type {string}
|
|
9846
|
+
* @memberof UserConsent
|
|
9847
|
+
*/
|
|
9848
|
+
'action'?: string;
|
|
9849
|
+
/**
|
|
9850
|
+
*
|
|
9851
|
+
* @type {string}
|
|
9852
|
+
* @memberof UserConsent
|
|
9853
|
+
*/
|
|
9854
|
+
'consent_method'?: string;
|
|
9855
|
+
/**
|
|
9856
|
+
*
|
|
9857
|
+
* @type {string}
|
|
9858
|
+
* @memberof UserConsent
|
|
9859
|
+
*/
|
|
9860
|
+
'consent_type'?: string;
|
|
9861
|
+
/**
|
|
9862
|
+
*
|
|
9863
|
+
* @type {string}
|
|
9864
|
+
* @memberof UserConsent
|
|
9865
|
+
*/
|
|
9866
|
+
'created_at'?: string;
|
|
9867
|
+
/**
|
|
9868
|
+
*
|
|
9869
|
+
* @type {number}
|
|
9870
|
+
* @memberof UserConsent
|
|
9871
|
+
*/
|
|
9872
|
+
'id'?: number;
|
|
9873
|
+
/**
|
|
9874
|
+
*
|
|
9875
|
+
* @type {string}
|
|
9876
|
+
* @memberof UserConsent
|
|
9877
|
+
*/
|
|
9878
|
+
'ip_address'?: string;
|
|
9879
|
+
/**
|
|
9880
|
+
*
|
|
9881
|
+
* @type {number}
|
|
9882
|
+
* @memberof UserConsent
|
|
9883
|
+
*/
|
|
9884
|
+
'org_id'?: number;
|
|
9885
|
+
/**
|
|
9886
|
+
*
|
|
9887
|
+
* @type {string}
|
|
9888
|
+
* @memberof UserConsent
|
|
9889
|
+
*/
|
|
9890
|
+
'updated_at'?: string;
|
|
9891
|
+
/**
|
|
9892
|
+
*
|
|
9893
|
+
* @type {number}
|
|
9894
|
+
* @memberof UserConsent
|
|
9895
|
+
*/
|
|
9896
|
+
'user_id'?: number;
|
|
9897
|
+
}
|
|
9898
|
+
/**
|
|
9899
|
+
*
|
|
9900
|
+
* @export
|
|
9901
|
+
* @interface UserConsentEvent
|
|
9902
|
+
*/
|
|
9903
|
+
export interface UserConsentEvent {
|
|
9904
|
+
/**
|
|
9905
|
+
*
|
|
9906
|
+
* @type {string}
|
|
9907
|
+
* @memberof UserConsentEvent
|
|
9908
|
+
*/
|
|
9909
|
+
'action'?: string;
|
|
9910
|
+
/**
|
|
9911
|
+
*
|
|
9912
|
+
* @type {number}
|
|
9913
|
+
* @memberof UserConsentEvent
|
|
9914
|
+
*/
|
|
9915
|
+
'consent_id'?: number;
|
|
9916
|
+
/**
|
|
9917
|
+
*
|
|
9918
|
+
* @type {string}
|
|
9919
|
+
* @memberof UserConsentEvent
|
|
9920
|
+
*/
|
|
9921
|
+
'consent_method'?: string;
|
|
9922
|
+
/**
|
|
9923
|
+
*
|
|
9924
|
+
* @type {string}
|
|
9925
|
+
* @memberof UserConsentEvent
|
|
9926
|
+
*/
|
|
9927
|
+
'created_at'?: string;
|
|
9928
|
+
/**
|
|
9929
|
+
*
|
|
9930
|
+
* @type {number}
|
|
9931
|
+
* @memberof UserConsentEvent
|
|
9932
|
+
*/
|
|
9933
|
+
'id'?: number;
|
|
9934
|
+
/**
|
|
9935
|
+
*
|
|
9936
|
+
* @type {string}
|
|
9937
|
+
* @memberof UserConsentEvent
|
|
9938
|
+
*/
|
|
9939
|
+
'ip_address'?: string;
|
|
9940
|
+
/**
|
|
9941
|
+
*
|
|
9942
|
+
* @type {number}
|
|
9943
|
+
* @memberof UserConsentEvent
|
|
9944
|
+
*/
|
|
9945
|
+
'user_id'?: number;
|
|
9946
|
+
}
|
|
9947
|
+
/**
|
|
9948
|
+
*
|
|
9949
|
+
* @export
|
|
9950
|
+
* @interface UserConsentsResponse
|
|
9951
|
+
*/
|
|
9952
|
+
export interface UserConsentsResponse {
|
|
9953
|
+
/**
|
|
9954
|
+
*
|
|
9955
|
+
* @type {Array<UserConsent>}
|
|
9956
|
+
* @memberof UserConsentsResponse
|
|
9957
|
+
*/
|
|
9958
|
+
'consents'?: Array<UserConsent>;
|
|
9959
|
+
}
|
|
9274
9960
|
/**
|
|
9275
9961
|
*
|
|
9276
9962
|
* @export
|
|
@@ -11445,22 +12131,22 @@ export class AuthApi extends BaseAPI {
|
|
|
11445
12131
|
|
|
11446
12132
|
|
|
11447
12133
|
/**
|
|
11448
|
-
*
|
|
12134
|
+
* AutoTopupApi - axios parameter creator
|
|
11449
12135
|
* @export
|
|
11450
12136
|
*/
|
|
11451
|
-
export const
|
|
12137
|
+
export const AutoTopupApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11452
12138
|
return {
|
|
11453
12139
|
/**
|
|
11454
|
-
*
|
|
11455
|
-
* @summary Create
|
|
11456
|
-
* @param {
|
|
12140
|
+
*
|
|
12141
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
12142
|
+
* @param {CreateAutoTopupPayload} payload
|
|
11457
12143
|
* @param {*} [options] Override http request option.
|
|
11458
12144
|
* @throws {RequiredError}
|
|
11459
12145
|
*/
|
|
11460
|
-
|
|
12146
|
+
createAutoTopUp: async (payload: CreateAutoTopupPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11461
12147
|
// verify required parameter 'payload' is not null or undefined
|
|
11462
|
-
assertParamExists('
|
|
11463
|
-
const localVarPath = `/
|
|
12148
|
+
assertParamExists('createAutoTopUp', 'payload', payload)
|
|
12149
|
+
const localVarPath = `/billing/auto-topup`;
|
|
11464
12150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11465
12151
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11466
12152
|
let baseOptions;
|
|
@@ -11490,17 +12176,46 @@ export const BetaAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
11490
12176
|
};
|
|
11491
12177
|
},
|
|
11492
12178
|
/**
|
|
11493
|
-
*
|
|
11494
|
-
* @summary
|
|
11495
|
-
* @param {string} program
|
|
12179
|
+
*
|
|
12180
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
11496
12181
|
* @param {*} [options] Override http request option.
|
|
11497
12182
|
* @throws {RequiredError}
|
|
11498
12183
|
*/
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
const
|
|
11503
|
-
|
|
12184
|
+
disableAutoTopUp: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12185
|
+
const localVarPath = `/billing/auto-topup`;
|
|
12186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12188
|
+
let baseOptions;
|
|
12189
|
+
if (configuration) {
|
|
12190
|
+
baseOptions = configuration.baseOptions;
|
|
12191
|
+
}
|
|
12192
|
+
|
|
12193
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
12194
|
+
const localVarHeaderParameter = {} as any;
|
|
12195
|
+
const localVarQueryParameter = {} as any;
|
|
12196
|
+
|
|
12197
|
+
// authentication apiKey required
|
|
12198
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
12199
|
+
|
|
12200
|
+
|
|
12201
|
+
|
|
12202
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12204
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12205
|
+
|
|
12206
|
+
return {
|
|
12207
|
+
url: toPathString(localVarUrlObj),
|
|
12208
|
+
options: localVarRequestOptions,
|
|
12209
|
+
};
|
|
12210
|
+
},
|
|
12211
|
+
/**
|
|
12212
|
+
*
|
|
12213
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
12214
|
+
* @param {*} [options] Override http request option.
|
|
12215
|
+
* @throws {RequiredError}
|
|
12216
|
+
*/
|
|
12217
|
+
getAutoTopUp: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12218
|
+
const localVarPath = `/billing/auto-topup`;
|
|
11504
12219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11505
12220
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11506
12221
|
let baseOptions;
|
|
@@ -11527,13 +12242,13 @@ export const BetaAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
11527
12242
|
};
|
|
11528
12243
|
},
|
|
11529
12244
|
/**
|
|
11530
|
-
*
|
|
11531
|
-
* @summary
|
|
12245
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](None/docs/api-reference/billing-resources/).
|
|
12246
|
+
* @summary Get auto top-up status and configuration
|
|
11532
12247
|
* @param {*} [options] Override http request option.
|
|
11533
12248
|
* @throws {RequiredError}
|
|
11534
12249
|
*/
|
|
11535
|
-
|
|
11536
|
-
const localVarPath = `/
|
|
12250
|
+
getAutoTopUpStatus: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12251
|
+
const localVarPath = `/billing/auto-topup/status`;
|
|
11537
12252
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11538
12253
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11539
12254
|
let baseOptions;
|
|
@@ -11554,6 +12269,45 @@ export const BetaAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
11554
12269
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11555
12270
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11556
12271
|
|
|
12272
|
+
return {
|
|
12273
|
+
url: toPathString(localVarUrlObj),
|
|
12274
|
+
options: localVarRequestOptions,
|
|
12275
|
+
};
|
|
12276
|
+
},
|
|
12277
|
+
/**
|
|
12278
|
+
*
|
|
12279
|
+
* @summary Update an existing active auto top up configuration
|
|
12280
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
12281
|
+
* @param {*} [options] Override http request option.
|
|
12282
|
+
* @throws {RequiredError}
|
|
12283
|
+
*/
|
|
12284
|
+
updateAutoTopUp: async (payload: UpdateAutoTopupPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12285
|
+
// verify required parameter 'payload' is not null or undefined
|
|
12286
|
+
assertParamExists('updateAutoTopUp', 'payload', payload)
|
|
12287
|
+
const localVarPath = `/billing/auto-topup`;
|
|
12288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12289
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12290
|
+
let baseOptions;
|
|
12291
|
+
if (configuration) {
|
|
12292
|
+
baseOptions = configuration.baseOptions;
|
|
12293
|
+
}
|
|
12294
|
+
|
|
12295
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12296
|
+
const localVarHeaderParameter = {} as any;
|
|
12297
|
+
const localVarQueryParameter = {} as any;
|
|
12298
|
+
|
|
12299
|
+
// authentication apiKey required
|
|
12300
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
12301
|
+
|
|
12302
|
+
|
|
12303
|
+
|
|
12304
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12305
|
+
|
|
12306
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12307
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12308
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12309
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
12310
|
+
|
|
11557
12311
|
return {
|
|
11558
12312
|
url: toPathString(localVarUrlObj),
|
|
11559
12313
|
options: localVarRequestOptions,
|
|
@@ -11563,157 +12317,218 @@ export const BetaAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
11563
12317
|
};
|
|
11564
12318
|
|
|
11565
12319
|
/**
|
|
11566
|
-
*
|
|
12320
|
+
* AutoTopupApi - functional programming interface
|
|
11567
12321
|
* @export
|
|
11568
12322
|
*/
|
|
11569
|
-
export const
|
|
11570
|
-
const localVarAxiosParamCreator =
|
|
12323
|
+
export const AutoTopupApiFp = function(configuration?: Configuration) {
|
|
12324
|
+
const localVarAxiosParamCreator = AutoTopupApiAxiosParamCreator(configuration)
|
|
11571
12325
|
return {
|
|
11572
12326
|
/**
|
|
11573
|
-
*
|
|
11574
|
-
* @summary Create
|
|
11575
|
-
* @param {
|
|
12327
|
+
*
|
|
12328
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
12329
|
+
* @param {CreateAutoTopupPayload} payload
|
|
11576
12330
|
* @param {*} [options] Override http request option.
|
|
11577
12331
|
* @throws {RequiredError}
|
|
11578
12332
|
*/
|
|
11579
|
-
async
|
|
11580
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12333
|
+
async createAutoTopUp(payload: CreateAutoTopupPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAutoTopupResponse>> {
|
|
12334
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAutoTopUp(payload, options);
|
|
11581
12335
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11582
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
12336
|
+
const localVarOperationServerBasePath = operationServerMap['AutoTopupApi.createAutoTopUp']?.[localVarOperationServerIndex]?.url;
|
|
11583
12337
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11584
12338
|
},
|
|
11585
12339
|
/**
|
|
11586
|
-
*
|
|
11587
|
-
* @summary
|
|
11588
|
-
* @param {string} program
|
|
12340
|
+
*
|
|
12341
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
11589
12342
|
* @param {*} [options] Override http request option.
|
|
11590
12343
|
* @throws {RequiredError}
|
|
11591
12344
|
*/
|
|
11592
|
-
async
|
|
11593
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12345
|
+
async disableAutoTopUp(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableAutoTopupResponse>> {
|
|
12346
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disableAutoTopUp(options);
|
|
11594
12347
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11595
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
12348
|
+
const localVarOperationServerBasePath = operationServerMap['AutoTopupApi.disableAutoTopUp']?.[localVarOperationServerIndex]?.url;
|
|
11596
12349
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11597
12350
|
},
|
|
11598
12351
|
/**
|
|
11599
|
-
*
|
|
11600
|
-
* @summary
|
|
12352
|
+
*
|
|
12353
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
11601
12354
|
* @param {*} [options] Override http request option.
|
|
11602
12355
|
* @throws {RequiredError}
|
|
11603
12356
|
*/
|
|
11604
|
-
async
|
|
11605
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12357
|
+
async getAutoTopUp(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAutoTopupResponse>> {
|
|
12358
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAutoTopUp(options);
|
|
11606
12359
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11607
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
12360
|
+
const localVarOperationServerBasePath = operationServerMap['AutoTopupApi.getAutoTopUp']?.[localVarOperationServerIndex]?.url;
|
|
12361
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12362
|
+
},
|
|
12363
|
+
/**
|
|
12364
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](None/docs/api-reference/billing-resources/).
|
|
12365
|
+
* @summary Get auto top-up status and configuration
|
|
12366
|
+
* @param {*} [options] Override http request option.
|
|
12367
|
+
* @throws {RequiredError}
|
|
12368
|
+
*/
|
|
12369
|
+
async getAutoTopUpStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoTopupStatusSchema>> {
|
|
12370
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAutoTopUpStatus(options);
|
|
12371
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12372
|
+
const localVarOperationServerBasePath = operationServerMap['AutoTopupApi.getAutoTopUpStatus']?.[localVarOperationServerIndex]?.url;
|
|
12373
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12374
|
+
},
|
|
12375
|
+
/**
|
|
12376
|
+
*
|
|
12377
|
+
* @summary Update an existing active auto top up configuration
|
|
12378
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
12379
|
+
* @param {*} [options] Override http request option.
|
|
12380
|
+
* @throws {RequiredError}
|
|
12381
|
+
*/
|
|
12382
|
+
async updateAutoTopUp(payload: UpdateAutoTopupPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAutoTopupResponse>> {
|
|
12383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAutoTopUp(payload, options);
|
|
12384
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12385
|
+
const localVarOperationServerBasePath = operationServerMap['AutoTopupApi.updateAutoTopUp']?.[localVarOperationServerIndex]?.url;
|
|
11608
12386
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11609
12387
|
},
|
|
11610
12388
|
}
|
|
11611
12389
|
};
|
|
11612
12390
|
|
|
11613
12391
|
/**
|
|
11614
|
-
*
|
|
12392
|
+
* AutoTopupApi - factory interface
|
|
11615
12393
|
* @export
|
|
11616
12394
|
*/
|
|
11617
|
-
export const
|
|
11618
|
-
const localVarFp =
|
|
12395
|
+
export const AutoTopupApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12396
|
+
const localVarFp = AutoTopupApiFp(configuration)
|
|
11619
12397
|
return {
|
|
11620
12398
|
/**
|
|
11621
|
-
*
|
|
11622
|
-
* @summary Create
|
|
11623
|
-
* @param {
|
|
12399
|
+
*
|
|
12400
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
12401
|
+
* @param {CreateAutoTopupPayload} payload
|
|
11624
12402
|
* @param {*} [options] Override http request option.
|
|
11625
12403
|
* @throws {RequiredError}
|
|
11626
12404
|
*/
|
|
11627
|
-
|
|
11628
|
-
return localVarFp.
|
|
12405
|
+
createAutoTopUp(payload: CreateAutoTopupPayload, options?: RawAxiosRequestConfig): AxiosPromise<CreateAutoTopupResponse> {
|
|
12406
|
+
return localVarFp.createAutoTopUp(payload, options).then((request) => request(axios, basePath));
|
|
11629
12407
|
},
|
|
11630
12408
|
/**
|
|
11631
|
-
*
|
|
11632
|
-
* @summary
|
|
11633
|
-
* @param {string} program
|
|
12409
|
+
*
|
|
12410
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
11634
12411
|
* @param {*} [options] Override http request option.
|
|
11635
12412
|
* @throws {RequiredError}
|
|
11636
12413
|
*/
|
|
11637
|
-
|
|
11638
|
-
return localVarFp.
|
|
12414
|
+
disableAutoTopUp(options?: RawAxiosRequestConfig): AxiosPromise<DisableAutoTopupResponse> {
|
|
12415
|
+
return localVarFp.disableAutoTopUp(options).then((request) => request(axios, basePath));
|
|
11639
12416
|
},
|
|
11640
12417
|
/**
|
|
11641
|
-
*
|
|
11642
|
-
* @summary
|
|
12418
|
+
*
|
|
12419
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
11643
12420
|
* @param {*} [options] Override http request option.
|
|
11644
12421
|
* @throws {RequiredError}
|
|
11645
12422
|
*/
|
|
11646
|
-
|
|
11647
|
-
return localVarFp.
|
|
12423
|
+
getAutoTopUp(options?: RawAxiosRequestConfig): AxiosPromise<GetAutoTopupResponse> {
|
|
12424
|
+
return localVarFp.getAutoTopUp(options).then((request) => request(axios, basePath));
|
|
12425
|
+
},
|
|
12426
|
+
/**
|
|
12427
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](None/docs/api-reference/billing-resources/).
|
|
12428
|
+
* @summary Get auto top-up status and configuration
|
|
12429
|
+
* @param {*} [options] Override http request option.
|
|
12430
|
+
* @throws {RequiredError}
|
|
12431
|
+
*/
|
|
12432
|
+
getAutoTopUpStatus(options?: RawAxiosRequestConfig): AxiosPromise<AutoTopupStatusSchema> {
|
|
12433
|
+
return localVarFp.getAutoTopUpStatus(options).then((request) => request(axios, basePath));
|
|
12434
|
+
},
|
|
12435
|
+
/**
|
|
12436
|
+
*
|
|
12437
|
+
* @summary Update an existing active auto top up configuration
|
|
12438
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
12439
|
+
* @param {*} [options] Override http request option.
|
|
12440
|
+
* @throws {RequiredError}
|
|
12441
|
+
*/
|
|
12442
|
+
updateAutoTopUp(payload: UpdateAutoTopupPayload, options?: RawAxiosRequestConfig): AxiosPromise<UpdateAutoTopupResponse> {
|
|
12443
|
+
return localVarFp.updateAutoTopUp(payload, options).then((request) => request(axios, basePath));
|
|
11648
12444
|
},
|
|
11649
12445
|
};
|
|
11650
12446
|
};
|
|
11651
12447
|
|
|
11652
12448
|
/**
|
|
11653
|
-
*
|
|
12449
|
+
* AutoTopupApi - object-oriented interface
|
|
11654
12450
|
* @export
|
|
11655
|
-
* @class
|
|
12451
|
+
* @class AutoTopupApi
|
|
11656
12452
|
* @extends {BaseAPI}
|
|
11657
12453
|
*/
|
|
11658
|
-
export class
|
|
12454
|
+
export class AutoTopupApi extends BaseAPI {
|
|
11659
12455
|
/**
|
|
11660
|
-
*
|
|
11661
|
-
* @summary Create
|
|
11662
|
-
* @param {
|
|
12456
|
+
*
|
|
12457
|
+
* @summary Create an auto top up configuration and initiate Stripe setup
|
|
12458
|
+
* @param {CreateAutoTopupPayload} payload
|
|
11663
12459
|
* @param {*} [options] Override http request option.
|
|
11664
12460
|
* @throws {RequiredError}
|
|
11665
|
-
* @memberof
|
|
12461
|
+
* @memberof AutoTopupApi
|
|
11666
12462
|
*/
|
|
11667
|
-
public
|
|
11668
|
-
return
|
|
12463
|
+
public createAutoTopUp(payload: CreateAutoTopupPayload, options?: RawAxiosRequestConfig) {
|
|
12464
|
+
return AutoTopupApiFp(this.configuration).createAutoTopUp(payload, options).then((request) => request(this.axios, this.basePath));
|
|
11669
12465
|
}
|
|
11670
12466
|
|
|
11671
12467
|
/**
|
|
11672
|
-
*
|
|
11673
|
-
* @summary
|
|
11674
|
-
* @param {string} program
|
|
12468
|
+
*
|
|
12469
|
+
* @summary Disable auto top up, preventing any future automatic charges
|
|
11675
12470
|
* @param {*} [options] Override http request option.
|
|
11676
12471
|
* @throws {RequiredError}
|
|
11677
|
-
* @memberof
|
|
12472
|
+
* @memberof AutoTopupApi
|
|
11678
12473
|
*/
|
|
11679
|
-
public
|
|
11680
|
-
return
|
|
12474
|
+
public disableAutoTopUp(options?: RawAxiosRequestConfig) {
|
|
12475
|
+
return AutoTopupApiFp(this.configuration).disableAutoTopUp(options).then((request) => request(this.axios, this.basePath));
|
|
11681
12476
|
}
|
|
11682
12477
|
|
|
11683
12478
|
/**
|
|
11684
|
-
*
|
|
11685
|
-
* @summary
|
|
12479
|
+
*
|
|
12480
|
+
* @summary Retrieve the current auto top up configuration and transaction history
|
|
11686
12481
|
* @param {*} [options] Override http request option.
|
|
11687
12482
|
* @throws {RequiredError}
|
|
11688
|
-
* @memberof
|
|
12483
|
+
* @memberof AutoTopupApi
|
|
11689
12484
|
*/
|
|
11690
|
-
public
|
|
11691
|
-
return
|
|
12485
|
+
public getAutoTopUp(options?: RawAxiosRequestConfig) {
|
|
12486
|
+
return AutoTopupApiFp(this.configuration).getAutoTopUp(options).then((request) => request(this.axios, this.basePath));
|
|
12487
|
+
}
|
|
12488
|
+
|
|
12489
|
+
/**
|
|
12490
|
+
* Retrieves the current auto top-up configuration and status for your organization. Returns the status (active, disabled, pending_setup, or null if never configured), along with the threshold and top-up amounts. For additional information, [**click here**](None/docs/api-reference/billing-resources/).
|
|
12491
|
+
* @summary Get auto top-up status and configuration
|
|
12492
|
+
* @param {*} [options] Override http request option.
|
|
12493
|
+
* @throws {RequiredError}
|
|
12494
|
+
* @memberof AutoTopupApi
|
|
12495
|
+
*/
|
|
12496
|
+
public getAutoTopUpStatus(options?: RawAxiosRequestConfig) {
|
|
12497
|
+
return AutoTopupApiFp(this.configuration).getAutoTopUpStatus(options).then((request) => request(this.axios, this.basePath));
|
|
12498
|
+
}
|
|
12499
|
+
|
|
12500
|
+
/**
|
|
12501
|
+
*
|
|
12502
|
+
* @summary Update an existing active auto top up configuration
|
|
12503
|
+
* @param {UpdateAutoTopupPayload} payload
|
|
12504
|
+
* @param {*} [options] Override http request option.
|
|
12505
|
+
* @throws {RequiredError}
|
|
12506
|
+
* @memberof AutoTopupApi
|
|
12507
|
+
*/
|
|
12508
|
+
public updateAutoTopUp(payload: UpdateAutoTopupPayload, options?: RawAxiosRequestConfig) {
|
|
12509
|
+
return AutoTopupApiFp(this.configuration).updateAutoTopUp(payload, options).then((request) => request(this.axios, this.basePath));
|
|
11692
12510
|
}
|
|
11693
12511
|
}
|
|
11694
12512
|
|
|
11695
12513
|
|
|
11696
12514
|
|
|
11697
12515
|
/**
|
|
11698
|
-
*
|
|
12516
|
+
* BetaAccessApi - axios parameter creator
|
|
11699
12517
|
* @export
|
|
11700
12518
|
*/
|
|
11701
|
-
export const
|
|
12519
|
+
export const BetaAccessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11702
12520
|
return {
|
|
11703
12521
|
/**
|
|
11704
|
-
*
|
|
11705
|
-
* @summary
|
|
11706
|
-
* @param {
|
|
11707
|
-
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11708
|
-
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12522
|
+
* Creates a new beta access request for the current user
|
|
12523
|
+
* @summary Create a new beta access request
|
|
12524
|
+
* @param {BetaAccessRequestPayload} payload
|
|
11709
12525
|
* @param {*} [options] Override http request option.
|
|
11710
12526
|
* @throws {RequiredError}
|
|
11711
12527
|
*/
|
|
11712
|
-
|
|
11713
|
-
// verify required parameter '
|
|
11714
|
-
assertParamExists('
|
|
11715
|
-
const localVarPath = `/
|
|
11716
|
-
.replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
|
|
12528
|
+
createBetaAccessRequest: async (payload: BetaAccessRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12529
|
+
// verify required parameter 'payload' is not null or undefined
|
|
12530
|
+
assertParamExists('createBetaAccessRequest', 'payload', payload)
|
|
12531
|
+
const localVarPath = `/auth/beta-access/requests`;
|
|
11717
12532
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11718
12533
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11719
12534
|
let baseOptions;
|
|
@@ -11721,26 +12536,21 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11721
12536
|
baseOptions = configuration.baseOptions;
|
|
11722
12537
|
}
|
|
11723
12538
|
|
|
11724
|
-
const localVarRequestOptions = { method: '
|
|
12539
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11725
12540
|
const localVarHeaderParameter = {} as any;
|
|
11726
12541
|
const localVarQueryParameter = {} as any;
|
|
11727
12542
|
|
|
11728
12543
|
// authentication apiKey required
|
|
11729
12544
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
11730
12545
|
|
|
11731
|
-
if (startDate !== undefined) {
|
|
11732
|
-
localVarQueryParameter['start_date'] = startDate;
|
|
11733
|
-
}
|
|
11734
|
-
|
|
11735
|
-
if (endDate !== undefined) {
|
|
11736
|
-
localVarQueryParameter['end_date'] = endDate;
|
|
11737
|
-
}
|
|
11738
|
-
|
|
11739
12546
|
|
|
11740
12547
|
|
|
12548
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12549
|
+
|
|
11741
12550
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11742
12551
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11743
12552
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12553
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
11744
12554
|
|
|
11745
12555
|
return {
|
|
11746
12556
|
url: toPathString(localVarUrlObj),
|
|
@@ -11748,19 +12558,17 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11748
12558
|
};
|
|
11749
12559
|
},
|
|
11750
12560
|
/**
|
|
11751
|
-
*
|
|
11752
|
-
* @summary
|
|
11753
|
-
* @param {
|
|
11754
|
-
* @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11755
|
-
* @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12561
|
+
* Check the status of a particular beta access requests.
|
|
12562
|
+
* @summary Check the status of beta access requests
|
|
12563
|
+
* @param {string} program
|
|
11756
12564
|
* @param {*} [options] Override http request option.
|
|
11757
12565
|
* @throws {RequiredError}
|
|
11758
12566
|
*/
|
|
11759
|
-
|
|
11760
|
-
// verify required parameter '
|
|
11761
|
-
assertParamExists('
|
|
11762
|
-
const localVarPath = `/
|
|
11763
|
-
.replace(`{${"
|
|
12567
|
+
getBetaAccessRequests: async (program: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12568
|
+
// verify required parameter 'program' is not null or undefined
|
|
12569
|
+
assertParamExists('getBetaAccessRequests', 'program', program)
|
|
12570
|
+
const localVarPath = `/auth/beta-access/requests/{program}`
|
|
12571
|
+
.replace(`{${"program"}}`, encodeURIComponent(String(program)));
|
|
11764
12572
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11765
12573
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11766
12574
|
let baseOptions;
|
|
@@ -11775,14 +12583,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11775
12583
|
// authentication apiKey required
|
|
11776
12584
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
11777
12585
|
|
|
11778
|
-
if (startDate !== undefined) {
|
|
11779
|
-
localVarQueryParameter['start_date'] = startDate;
|
|
11780
|
-
}
|
|
11781
|
-
|
|
11782
|
-
if (endDate !== undefined) {
|
|
11783
|
-
localVarQueryParameter['end_date'] = endDate;
|
|
11784
|
-
}
|
|
11785
|
-
|
|
11786
12586
|
|
|
11787
12587
|
|
|
11788
12588
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -11795,19 +12595,13 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11795
12595
|
};
|
|
11796
12596
|
},
|
|
11797
12597
|
/**
|
|
11798
|
-
*
|
|
11799
|
-
* @summary
|
|
11800
|
-
* @param {number} clusterId
|
|
11801
|
-
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11802
|
-
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12598
|
+
* Check the status of all beta access requests.
|
|
12599
|
+
* @summary Check the status of all beta access requests
|
|
11803
12600
|
* @param {*} [options] Override http request option.
|
|
11804
12601
|
* @throws {RequiredError}
|
|
11805
12602
|
*/
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
assertParamExists('getClusterBillingHistory', 'clusterId', clusterId)
|
|
11809
|
-
const localVarPath = `/billing/billing/history/cluster/{cluster_id}`
|
|
11810
|
-
.replace(`{${"cluster_id"}}`, encodeURIComponent(String(clusterId)));
|
|
12603
|
+
getBetaAccessStatus: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12604
|
+
const localVarPath = `/auth/beta-access/requests`;
|
|
11811
12605
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11812
12606
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11813
12607
|
let baseOptions;
|
|
@@ -11822,14 +12616,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11822
12616
|
// authentication apiKey required
|
|
11823
12617
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
11824
12618
|
|
|
11825
|
-
if (startDate !== undefined) {
|
|
11826
|
-
localVarQueryParameter['start_date'] = startDate;
|
|
11827
|
-
}
|
|
11828
|
-
|
|
11829
|
-
if (endDate !== undefined) {
|
|
11830
|
-
localVarQueryParameter['end_date'] = endDate;
|
|
11831
|
-
}
|
|
11832
|
-
|
|
11833
12619
|
|
|
11834
12620
|
|
|
11835
12621
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -11841,20 +12627,161 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11841
12627
|
options: localVarRequestOptions,
|
|
11842
12628
|
};
|
|
11843
12629
|
},
|
|
12630
|
+
}
|
|
12631
|
+
};
|
|
12632
|
+
|
|
12633
|
+
/**
|
|
12634
|
+
* BetaAccessApi - functional programming interface
|
|
12635
|
+
* @export
|
|
12636
|
+
*/
|
|
12637
|
+
export const BetaAccessApiFp = function(configuration?: Configuration) {
|
|
12638
|
+
const localVarAxiosParamCreator = BetaAccessApiAxiosParamCreator(configuration)
|
|
12639
|
+
return {
|
|
11844
12640
|
/**
|
|
11845
|
-
*
|
|
11846
|
-
* @summary
|
|
11847
|
-
* @param {
|
|
12641
|
+
* Creates a new beta access request for the current user
|
|
12642
|
+
* @summary Create a new beta access request
|
|
12643
|
+
* @param {BetaAccessRequestPayload} payload
|
|
12644
|
+
* @param {*} [options] Override http request option.
|
|
12645
|
+
* @throws {RequiredError}
|
|
12646
|
+
*/
|
|
12647
|
+
async createBetaAccessRequest(payload: BetaAccessRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BetaAccessRequestResponseModel>> {
|
|
12648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBetaAccessRequest(payload, options);
|
|
12649
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12650
|
+
const localVarOperationServerBasePath = operationServerMap['BetaAccessApi.createBetaAccessRequest']?.[localVarOperationServerIndex]?.url;
|
|
12651
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12652
|
+
},
|
|
12653
|
+
/**
|
|
12654
|
+
* Check the status of a particular beta access requests.
|
|
12655
|
+
* @summary Check the status of beta access requests
|
|
12656
|
+
* @param {string} program
|
|
12657
|
+
* @param {*} [options] Override http request option.
|
|
12658
|
+
* @throws {RequiredError}
|
|
12659
|
+
*/
|
|
12660
|
+
async getBetaAccessRequests(program: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BetaAccessStatusResponseModel>> {
|
|
12661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBetaAccessRequests(program, options);
|
|
12662
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12663
|
+
const localVarOperationServerBasePath = operationServerMap['BetaAccessApi.getBetaAccessRequests']?.[localVarOperationServerIndex]?.url;
|
|
12664
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12665
|
+
},
|
|
12666
|
+
/**
|
|
12667
|
+
* Check the status of all beta access requests.
|
|
12668
|
+
* @summary Check the status of all beta access requests
|
|
12669
|
+
* @param {*} [options] Override http request option.
|
|
12670
|
+
* @throws {RequiredError}
|
|
12671
|
+
*/
|
|
12672
|
+
async getBetaAccessStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BetaAccessStatusResponseModel>> {
|
|
12673
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBetaAccessStatus(options);
|
|
12674
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12675
|
+
const localVarOperationServerBasePath = operationServerMap['BetaAccessApi.getBetaAccessStatus']?.[localVarOperationServerIndex]?.url;
|
|
12676
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12677
|
+
},
|
|
12678
|
+
}
|
|
12679
|
+
};
|
|
12680
|
+
|
|
12681
|
+
/**
|
|
12682
|
+
* BetaAccessApi - factory interface
|
|
12683
|
+
* @export
|
|
12684
|
+
*/
|
|
12685
|
+
export const BetaAccessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12686
|
+
const localVarFp = BetaAccessApiFp(configuration)
|
|
12687
|
+
return {
|
|
12688
|
+
/**
|
|
12689
|
+
* Creates a new beta access request for the current user
|
|
12690
|
+
* @summary Create a new beta access request
|
|
12691
|
+
* @param {BetaAccessRequestPayload} payload
|
|
12692
|
+
* @param {*} [options] Override http request option.
|
|
12693
|
+
* @throws {RequiredError}
|
|
12694
|
+
*/
|
|
12695
|
+
createBetaAccessRequest(payload: BetaAccessRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<BetaAccessRequestResponseModel> {
|
|
12696
|
+
return localVarFp.createBetaAccessRequest(payload, options).then((request) => request(axios, basePath));
|
|
12697
|
+
},
|
|
12698
|
+
/**
|
|
12699
|
+
* Check the status of a particular beta access requests.
|
|
12700
|
+
* @summary Check the status of beta access requests
|
|
12701
|
+
* @param {string} program
|
|
12702
|
+
* @param {*} [options] Override http request option.
|
|
12703
|
+
* @throws {RequiredError}
|
|
12704
|
+
*/
|
|
12705
|
+
getBetaAccessRequests(program: string, options?: RawAxiosRequestConfig): AxiosPromise<BetaAccessStatusResponseModel> {
|
|
12706
|
+
return localVarFp.getBetaAccessRequests(program, options).then((request) => request(axios, basePath));
|
|
12707
|
+
},
|
|
12708
|
+
/**
|
|
12709
|
+
* Check the status of all beta access requests.
|
|
12710
|
+
* @summary Check the status of all beta access requests
|
|
12711
|
+
* @param {*} [options] Override http request option.
|
|
12712
|
+
* @throws {RequiredError}
|
|
12713
|
+
*/
|
|
12714
|
+
getBetaAccessStatus(options?: RawAxiosRequestConfig): AxiosPromise<BetaAccessStatusResponseModel> {
|
|
12715
|
+
return localVarFp.getBetaAccessStatus(options).then((request) => request(axios, basePath));
|
|
12716
|
+
},
|
|
12717
|
+
};
|
|
12718
|
+
};
|
|
12719
|
+
|
|
12720
|
+
/**
|
|
12721
|
+
* BetaAccessApi - object-oriented interface
|
|
12722
|
+
* @export
|
|
12723
|
+
* @class BetaAccessApi
|
|
12724
|
+
* @extends {BaseAPI}
|
|
12725
|
+
*/
|
|
12726
|
+
export class BetaAccessApi extends BaseAPI {
|
|
12727
|
+
/**
|
|
12728
|
+
* Creates a new beta access request for the current user
|
|
12729
|
+
* @summary Create a new beta access request
|
|
12730
|
+
* @param {BetaAccessRequestPayload} payload
|
|
12731
|
+
* @param {*} [options] Override http request option.
|
|
12732
|
+
* @throws {RequiredError}
|
|
12733
|
+
* @memberof BetaAccessApi
|
|
12734
|
+
*/
|
|
12735
|
+
public createBetaAccessRequest(payload: BetaAccessRequestPayload, options?: RawAxiosRequestConfig) {
|
|
12736
|
+
return BetaAccessApiFp(this.configuration).createBetaAccessRequest(payload, options).then((request) => request(this.axios, this.basePath));
|
|
12737
|
+
}
|
|
12738
|
+
|
|
12739
|
+
/**
|
|
12740
|
+
* Check the status of a particular beta access requests.
|
|
12741
|
+
* @summary Check the status of beta access requests
|
|
12742
|
+
* @param {string} program
|
|
12743
|
+
* @param {*} [options] Override http request option.
|
|
12744
|
+
* @throws {RequiredError}
|
|
12745
|
+
* @memberof BetaAccessApi
|
|
12746
|
+
*/
|
|
12747
|
+
public getBetaAccessRequests(program: string, options?: RawAxiosRequestConfig) {
|
|
12748
|
+
return BetaAccessApiFp(this.configuration).getBetaAccessRequests(program, options).then((request) => request(this.axios, this.basePath));
|
|
12749
|
+
}
|
|
12750
|
+
|
|
12751
|
+
/**
|
|
12752
|
+
* Check the status of all beta access requests.
|
|
12753
|
+
* @summary Check the status of all beta access requests
|
|
12754
|
+
* @param {*} [options] Override http request option.
|
|
12755
|
+
* @throws {RequiredError}
|
|
12756
|
+
* @memberof BetaAccessApi
|
|
12757
|
+
*/
|
|
12758
|
+
public getBetaAccessStatus(options?: RawAxiosRequestConfig) {
|
|
12759
|
+
return BetaAccessApiFp(this.configuration).getBetaAccessStatus(options).then((request) => request(this.axios, this.basePath));
|
|
12760
|
+
}
|
|
12761
|
+
}
|
|
12762
|
+
|
|
12763
|
+
|
|
12764
|
+
|
|
12765
|
+
/**
|
|
12766
|
+
* BillingApi - axios parameter creator
|
|
12767
|
+
* @export
|
|
12768
|
+
*/
|
|
12769
|
+
export const BillingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12770
|
+
return {
|
|
12771
|
+
/**
|
|
12772
|
+
* User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
12773
|
+
* @summary Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
|
|
12774
|
+
* @param {number} bucketId
|
|
11848
12775
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11849
12776
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11850
12777
|
* @param {*} [options] Override http request option.
|
|
11851
12778
|
* @throws {RequiredError}
|
|
11852
12779
|
*/
|
|
11853
|
-
|
|
11854
|
-
// verify required parameter '
|
|
11855
|
-
assertParamExists('
|
|
11856
|
-
const localVarPath = `/billing/billing/history/
|
|
11857
|
-
.replace(`{${"
|
|
12780
|
+
bucketsBillingHistoryHourlyChart: async (bucketId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12781
|
+
// verify required parameter 'bucketId' is not null or undefined
|
|
12782
|
+
assertParamExists('bucketsBillingHistoryHourlyChart', 'bucketId', bucketId)
|
|
12783
|
+
const localVarPath = `/billing/billing/history/bucket/{bucket_id}/graph`
|
|
12784
|
+
.replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
|
|
11858
12785
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11859
12786
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11860
12787
|
let baseOptions;
|
|
@@ -11889,18 +12816,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11889
12816
|
};
|
|
11890
12817
|
},
|
|
11891
12818
|
/**
|
|
11892
|
-
*
|
|
11893
|
-
* @summary Retrieve Billing History of
|
|
11894
|
-
* @param {
|
|
11895
|
-
* @param {string} [
|
|
11896
|
-
* @param {string} [
|
|
11897
|
-
* @param {number} [perPage] Number of items to return per page
|
|
11898
|
-
* @param {number} [page] Page number
|
|
12819
|
+
* Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'incurred_bill\', \'usage_time\', \'non_discounted_price_per_hour\', \'non_discounted_bill\'.
|
|
12820
|
+
* @summary Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
|
|
12821
|
+
* @param {number} bucketId
|
|
12822
|
+
* @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12823
|
+
* @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11899
12824
|
* @param {*} [options] Override http request option.
|
|
11900
12825
|
* @throws {RequiredError}
|
|
11901
12826
|
*/
|
|
11902
|
-
|
|
11903
|
-
|
|
12827
|
+
getBucketBillingHistory: async (bucketId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12828
|
+
// verify required parameter 'bucketId' is not null or undefined
|
|
12829
|
+
assertParamExists('getBucketBillingHistory', 'bucketId', bucketId)
|
|
12830
|
+
const localVarPath = `/billing/billing/history/bucket/{bucket_id}`
|
|
12831
|
+
.replace(`{${"bucket_id"}}`, encodeURIComponent(String(bucketId)));
|
|
11904
12832
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11905
12833
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11906
12834
|
let baseOptions;
|
|
@@ -11923,18 +12851,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11923
12851
|
localVarQueryParameter['end_date'] = endDate;
|
|
11924
12852
|
}
|
|
11925
12853
|
|
|
11926
|
-
if (search !== undefined) {
|
|
11927
|
-
localVarQueryParameter['search'] = search;
|
|
11928
|
-
}
|
|
11929
|
-
|
|
11930
|
-
if (perPage !== undefined) {
|
|
11931
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
11932
|
-
}
|
|
11933
|
-
|
|
11934
|
-
if (page !== undefined) {
|
|
11935
|
-
localVarQueryParameter['page'] = page;
|
|
11936
|
-
}
|
|
11937
|
-
|
|
11938
12854
|
|
|
11939
12855
|
|
|
11940
12856
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -11947,19 +12863,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11947
12863
|
};
|
|
11948
12864
|
},
|
|
11949
12865
|
/**
|
|
11950
|
-
* User will receive
|
|
11951
|
-
* @summary Retrieve
|
|
11952
|
-
* @param {number}
|
|
12866
|
+
* User will receive billing history of a specific Cluster for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'non_discounted_price_per_hour\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'usage_time_ACTIVE\', \'usage_time_SHUTOFF\', \'usage_time_HIBERNATED\'.
|
|
12867
|
+
* @summary Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
|
|
12868
|
+
* @param {number} clusterId
|
|
11953
12869
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11954
12870
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
11955
12871
|
* @param {*} [options] Override http request option.
|
|
11956
12872
|
* @throws {RequiredError}
|
|
11957
12873
|
*/
|
|
11958
|
-
|
|
11959
|
-
// verify required parameter '
|
|
11960
|
-
assertParamExists('
|
|
11961
|
-
const localVarPath = `/billing/billing/history/
|
|
11962
|
-
.replace(`{${"
|
|
12874
|
+
getClusterBillingHistory: async (clusterId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12875
|
+
// verify required parameter 'clusterId' is not null or undefined
|
|
12876
|
+
assertParamExists('getClusterBillingHistory', 'clusterId', clusterId)
|
|
12877
|
+
const localVarPath = `/billing/billing/history/cluster/{cluster_id}`
|
|
12878
|
+
.replace(`{${"cluster_id"}}`, encodeURIComponent(String(clusterId)));
|
|
11963
12879
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11964
12880
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11965
12881
|
let baseOptions;
|
|
@@ -11994,18 +12910,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11994
12910
|
};
|
|
11995
12911
|
},
|
|
11996
12912
|
/**
|
|
11997
|
-
*
|
|
11998
|
-
* @
|
|
11999
|
-
* @param {
|
|
12000
|
-
* @param {string} [
|
|
12913
|
+
* User will receive hourly cost datapoints for a Cluster for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
12914
|
+
* @summary Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
|
|
12915
|
+
* @param {number} clusterId
|
|
12916
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12917
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12001
12918
|
* @param {*} [options] Override http request option.
|
|
12002
12919
|
* @throws {RequiredError}
|
|
12003
12920
|
*/
|
|
12004
|
-
|
|
12005
|
-
// verify required parameter '
|
|
12006
|
-
assertParamExists('
|
|
12007
|
-
const localVarPath = `/billing/billing/history/
|
|
12008
|
-
.replace(`{${"
|
|
12921
|
+
getClusterBillingHistoryGraph: async (clusterId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12922
|
+
// verify required parameter 'clusterId' is not null or undefined
|
|
12923
|
+
assertParamExists('getClusterBillingHistoryGraph', 'clusterId', clusterId)
|
|
12924
|
+
const localVarPath = `/billing/billing/history/cluster/{cluster_id}/graph`
|
|
12925
|
+
.replace(`{${"cluster_id"}}`, encodeURIComponent(String(clusterId)));
|
|
12009
12926
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12010
12927
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12011
12928
|
let baseOptions;
|
|
@@ -12040,8 +12957,8 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12040
12957
|
};
|
|
12041
12958
|
},
|
|
12042
12959
|
/**
|
|
12043
|
-
* User will receive billing history of
|
|
12044
|
-
* @summary Retrieve Billing History of
|
|
12960
|
+
* User will receive billing history of data_synthesis for the specified billing cycle.
|
|
12961
|
+
* @summary Retrieve Billing History of data synthesis for a specific Billing Cycle
|
|
12045
12962
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12046
12963
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12047
12964
|
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
@@ -12050,8 +12967,8 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12050
12967
|
* @param {*} [options] Override http request option.
|
|
12051
12968
|
* @throws {RequiredError}
|
|
12052
12969
|
*/
|
|
12053
|
-
|
|
12054
|
-
const localVarPath = `/billing/billing/history/
|
|
12970
|
+
getDataSynthesisBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12971
|
+
const localVarPath = `/billing/billing/history/data_synthesis`;
|
|
12055
12972
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12056
12973
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12057
12974
|
let baseOptions;
|
|
@@ -12098,18 +13015,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12098
13015
|
};
|
|
12099
13016
|
},
|
|
12100
13017
|
/**
|
|
12101
|
-
* User will receive hourly cost datapoints for a
|
|
12102
|
-
* @summary Retrieve hourly cost datapoints of a Specific
|
|
13018
|
+
* User will receive hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
13019
|
+
* @summary Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
|
|
12103
13020
|
* @param {number} resourceId
|
|
12104
13021
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12105
13022
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12106
13023
|
* @param {*} [options] Override http request option.
|
|
12107
13024
|
* @throws {RequiredError}
|
|
12108
13025
|
*/
|
|
12109
|
-
|
|
13026
|
+
getDataSynthesisBillingHistoryGraph: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12110
13027
|
// verify required parameter 'resourceId' is not null or undefined
|
|
12111
|
-
assertParamExists('
|
|
12112
|
-
const localVarPath = `/billing/billing/history/
|
|
13028
|
+
assertParamExists('getDataSynthesisBillingHistoryGraph', 'resourceId', resourceId)
|
|
13029
|
+
const localVarPath = `/billing/billing/history/data_synthesis/{resource_id}/graph`
|
|
12113
13030
|
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12114
13031
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12115
13032
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12145,13 +13062,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12145
13062
|
};
|
|
12146
13063
|
},
|
|
12147
13064
|
/**
|
|
12148
|
-
* Retrieve
|
|
12149
|
-
* @
|
|
12150
|
-
* @param {
|
|
13065
|
+
* Retrieve billing history for a specific Data Synthesis resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
13066
|
+
* @param {number} resourceId
|
|
13067
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
13068
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
13069
|
+
* @param {*} [options] Override http request option.
|
|
12151
13070
|
* @throws {RequiredError}
|
|
12152
13071
|
*/
|
|
12153
|
-
|
|
12154
|
-
|
|
13072
|
+
getDataSynthesisHistoryForResource: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13073
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
13074
|
+
assertParamExists('getDataSynthesisHistoryForResource', 'resourceId', resourceId)
|
|
13075
|
+
const localVarPath = `/billing/billing/history/data_synthesis/{resource_id}`
|
|
13076
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12155
13077
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12156
13078
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12157
13079
|
let baseOptions;
|
|
@@ -12166,6 +13088,14 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12166
13088
|
// authentication apiKey required
|
|
12167
13089
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
12168
13090
|
|
|
13091
|
+
if (startDate !== undefined) {
|
|
13092
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
13093
|
+
}
|
|
13094
|
+
|
|
13095
|
+
if (endDate !== undefined) {
|
|
13096
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
13097
|
+
}
|
|
13098
|
+
|
|
12169
13099
|
|
|
12170
13100
|
|
|
12171
13101
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12178,7 +13108,7 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12178
13108
|
};
|
|
12179
13109
|
},
|
|
12180
13110
|
/**
|
|
12181
|
-
* User will receive billing history of
|
|
13111
|
+
* User will receive billing history of fine_tuning for the specified billing cycle.
|
|
12182
13112
|
* @summary Retrieve Billing History of model evaluation for a specific Billing Cycle
|
|
12183
13113
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12184
13114
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
@@ -12188,8 +13118,8 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12188
13118
|
* @param {*} [options] Override http request option.
|
|
12189
13119
|
* @throws {RequiredError}
|
|
12190
13120
|
*/
|
|
12191
|
-
|
|
12192
|
-
const localVarPath = `/billing/billing/history/
|
|
13121
|
+
getFineTuningBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13122
|
+
const localVarPath = `/billing/billing/history/fine_tuning`;
|
|
12193
13123
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12194
13124
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12195
13125
|
let baseOptions;
|
|
@@ -12236,18 +13166,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12236
13166
|
};
|
|
12237
13167
|
},
|
|
12238
13168
|
/**
|
|
12239
|
-
* User will receive hourly cost datapoints for a
|
|
12240
|
-
* @summary Retrieve hourly cost datapoints of a Specific
|
|
13169
|
+
* User will receive hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
13170
|
+
* @summary Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
|
|
12241
13171
|
* @param {number} resourceId
|
|
12242
13172
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12243
13173
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12244
13174
|
* @param {*} [options] Override http request option.
|
|
12245
13175
|
* @throws {RequiredError}
|
|
12246
13176
|
*/
|
|
12247
|
-
|
|
13177
|
+
getFineTuningBillingHistoryGraph: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12248
13178
|
// verify required parameter 'resourceId' is not null or undefined
|
|
12249
|
-
assertParamExists('
|
|
12250
|
-
const localVarPath = `/billing/billing/history/
|
|
13179
|
+
assertParamExists('getFineTuningBillingHistoryGraph', 'resourceId', resourceId)
|
|
13180
|
+
const localVarPath = `/billing/billing/history/fine_tuning/{resource_id}/graph`
|
|
12251
13181
|
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12252
13182
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12253
13183
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12283,20 +13213,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12283
13213
|
};
|
|
12284
13214
|
},
|
|
12285
13215
|
/**
|
|
12286
|
-
*
|
|
12287
|
-
* @summary
|
|
12288
|
-
* @param {
|
|
12289
|
-
* @param {
|
|
13216
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
13217
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
13218
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13219
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13220
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
13221
|
+
* @param {number} [perPage] Number of items to return per page
|
|
13222
|
+
* @param {number} [page] Page number
|
|
12290
13223
|
* @param {*} [options] Override http request option.
|
|
12291
13224
|
* @throws {RequiredError}
|
|
12292
13225
|
*/
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
assertParamExists('getNotificationThreshold', 'thresholdId', thresholdId)
|
|
12296
|
-
// verify required parameter 'payload' is not null or undefined
|
|
12297
|
-
assertParamExists('getNotificationThreshold', 'payload', payload)
|
|
12298
|
-
const localVarPath = `/billing/billing/threshold/{threshold_id}`
|
|
12299
|
-
.replace(`{${"threshold_id"}}`, encodeURIComponent(String(thresholdId)));
|
|
13226
|
+
getImageGenerationBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13227
|
+
const localVarPath = `/billing/billing/history/image_generation`;
|
|
12300
13228
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12301
13229
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12302
13230
|
let baseOptions;
|
|
@@ -12304,21 +13232,38 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12304
13232
|
baseOptions = configuration.baseOptions;
|
|
12305
13233
|
}
|
|
12306
13234
|
|
|
12307
|
-
const localVarRequestOptions = { method: '
|
|
13235
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12308
13236
|
const localVarHeaderParameter = {} as any;
|
|
12309
13237
|
const localVarQueryParameter = {} as any;
|
|
12310
13238
|
|
|
12311
13239
|
// authentication apiKey required
|
|
12312
13240
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
12313
13241
|
|
|
13242
|
+
if (startDate !== undefined) {
|
|
13243
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
13244
|
+
}
|
|
13245
|
+
|
|
13246
|
+
if (endDate !== undefined) {
|
|
13247
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
13248
|
+
}
|
|
12314
13249
|
|
|
12315
|
-
|
|
12316
|
-
|
|
13250
|
+
if (search !== undefined) {
|
|
13251
|
+
localVarQueryParameter['search'] = search;
|
|
13252
|
+
}
|
|
13253
|
+
|
|
13254
|
+
if (perPage !== undefined) {
|
|
13255
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
13256
|
+
}
|
|
13257
|
+
|
|
13258
|
+
if (page !== undefined) {
|
|
13259
|
+
localVarQueryParameter['page'] = page;
|
|
13260
|
+
}
|
|
12317
13261
|
|
|
13262
|
+
|
|
13263
|
+
|
|
12318
13264
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12319
13265
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12320
13266
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12321
|
-
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
12322
13267
|
|
|
12323
13268
|
return {
|
|
12324
13269
|
url: toPathString(localVarUrlObj),
|
|
@@ -12326,18 +13271,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12326
13271
|
};
|
|
12327
13272
|
},
|
|
12328
13273
|
/**
|
|
12329
|
-
*
|
|
12330
|
-
* @summary Retrieve
|
|
13274
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
13275
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
12331
13276
|
* @param {number} resourceId
|
|
12332
|
-
* @param {string} [startDate]
|
|
12333
|
-
* @param {string} [endDate]
|
|
13277
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13278
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12334
13279
|
* @param {*} [options] Override http request option.
|
|
12335
13280
|
* @throws {RequiredError}
|
|
12336
13281
|
*/
|
|
12337
|
-
|
|
13282
|
+
getImageGenerationBillingHistoryGraph: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12338
13283
|
// verify required parameter 'resourceId' is not null or undefined
|
|
12339
|
-
assertParamExists('
|
|
12340
|
-
const localVarPath = `/billing/billing/history/
|
|
13284
|
+
assertParamExists('getImageGenerationBillingHistoryGraph', 'resourceId', resourceId)
|
|
13285
|
+
const localVarPath = `/billing/billing/history/image_generation/{resource_id}/graph`
|
|
12341
13286
|
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12342
13287
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12343
13288
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12373,17 +13318,17 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12373
13318
|
};
|
|
12374
13319
|
},
|
|
12375
13320
|
/**
|
|
12376
|
-
* Retrieve billing history for a specific
|
|
13321
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
12377
13322
|
* @param {number} resourceId
|
|
12378
13323
|
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
12379
13324
|
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
12380
13325
|
* @param {*} [options] Override http request option.
|
|
12381
13326
|
* @throws {RequiredError}
|
|
12382
13327
|
*/
|
|
12383
|
-
|
|
13328
|
+
getImageGenerationHistoryForResource: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12384
13329
|
// verify required parameter 'resourceId' is not null or undefined
|
|
12385
|
-
assertParamExists('
|
|
12386
|
-
const localVarPath = `/billing/billing/history/
|
|
13330
|
+
assertParamExists('getImageGenerationHistoryForResource', 'resourceId', resourceId)
|
|
13331
|
+
const localVarPath = `/billing/billing/history/image_generation/{resource_id}`
|
|
12387
13332
|
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12388
13333
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12389
13334
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12419,19 +13364,13 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12419
13364
|
};
|
|
12420
13365
|
},
|
|
12421
13366
|
/**
|
|
12422
|
-
*
|
|
12423
|
-
* @summary
|
|
12424
|
-
* @param {number} resourceId
|
|
12425
|
-
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12426
|
-
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13367
|
+
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](None/docs/api-reference/billing-resources/last-day-usage/)
|
|
13368
|
+
* @summary GET: Last Day Cost
|
|
12427
13369
|
* @param {*} [options] Override http request option.
|
|
12428
13370
|
* @throws {RequiredError}
|
|
12429
13371
|
*/
|
|
12430
|
-
|
|
12431
|
-
|
|
12432
|
-
assertParamExists('getServerlessInferenceBillingHistoryGraph', 'resourceId', resourceId)
|
|
12433
|
-
const localVarPath = `/billing/billing/history/serverless_inference/{resource_id}/graph`
|
|
12434
|
-
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
13372
|
+
getLastDayCost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13373
|
+
const localVarPath = `/billing/billing/last-day-cost`;
|
|
12435
13374
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12436
13375
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12437
13376
|
let baseOptions;
|
|
@@ -12446,14 +13385,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12446
13385
|
// authentication apiKey required
|
|
12447
13386
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
12448
13387
|
|
|
12449
|
-
if (startDate !== undefined) {
|
|
12450
|
-
localVarQueryParameter['start_date'] = startDate;
|
|
12451
|
-
}
|
|
12452
|
-
|
|
12453
|
-
if (endDate !== undefined) {
|
|
12454
|
-
localVarQueryParameter['end_date'] = endDate;
|
|
12455
|
-
}
|
|
12456
|
-
|
|
12457
13388
|
|
|
12458
13389
|
|
|
12459
13390
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12466,18 +13397,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12466
13397
|
};
|
|
12467
13398
|
},
|
|
12468
13399
|
/**
|
|
12469
|
-
*
|
|
12470
|
-
* @
|
|
12471
|
-
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
12472
|
-
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
13400
|
+
* User will receive billing history of model_evaluation for the specified billing cycle.
|
|
13401
|
+
* @summary Retrieve Billing History of model evaluation for a specific Billing Cycle
|
|
13402
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13403
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13404
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
13405
|
+
* @param {number} [perPage] Number of items to return per page
|
|
13406
|
+
* @param {number} [page] Page number
|
|
12473
13407
|
* @param {*} [options] Override http request option.
|
|
12474
13408
|
* @throws {RequiredError}
|
|
12475
13409
|
*/
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
assertParamExists('getServerlessInferencesBillingHistory', 'resourceId', resourceId)
|
|
12479
|
-
const localVarPath = `/billing/billing/history/serverless_inference/{resource_id}`
|
|
12480
|
-
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
13410
|
+
getModelEvaluationBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13411
|
+
const localVarPath = `/billing/billing/history/model_evaluation`;
|
|
12481
13412
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12482
13413
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12483
13414
|
let baseOptions;
|
|
@@ -12500,6 +13431,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12500
13431
|
localVarQueryParameter['end_date'] = endDate;
|
|
12501
13432
|
}
|
|
12502
13433
|
|
|
13434
|
+
if (search !== undefined) {
|
|
13435
|
+
localVarQueryParameter['search'] = search;
|
|
13436
|
+
}
|
|
13437
|
+
|
|
13438
|
+
if (perPage !== undefined) {
|
|
13439
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
13440
|
+
}
|
|
13441
|
+
|
|
13442
|
+
if (page !== undefined) {
|
|
13443
|
+
localVarQueryParameter['page'] = page;
|
|
13444
|
+
}
|
|
13445
|
+
|
|
12503
13446
|
|
|
12504
13447
|
|
|
12505
13448
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12512,19 +13455,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12512
13455
|
};
|
|
12513
13456
|
},
|
|
12514
13457
|
/**
|
|
12515
|
-
*
|
|
12516
|
-
* @summary Retrieve
|
|
12517
|
-
* @param {number}
|
|
12518
|
-
* @param {string} [startDate]
|
|
12519
|
-
* @param {string} [endDate]
|
|
13458
|
+
* User will receive hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
13459
|
+
* @summary Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
|
|
13460
|
+
* @param {number} resourceId
|
|
13461
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13462
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12520
13463
|
* @param {*} [options] Override http request option.
|
|
12521
13464
|
* @throws {RequiredError}
|
|
12522
13465
|
*/
|
|
12523
|
-
|
|
12524
|
-
// verify required parameter '
|
|
12525
|
-
assertParamExists('
|
|
12526
|
-
const localVarPath = `/billing/billing/history/
|
|
12527
|
-
.replace(`{${"
|
|
13466
|
+
getModelEvaluationBillingHistoryGraph: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13467
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
13468
|
+
assertParamExists('getModelEvaluationBillingHistoryGraph', 'resourceId', resourceId)
|
|
13469
|
+
const localVarPath = `/billing/billing/history/model_evaluation/{resource_id}/graph`
|
|
13470
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12528
13471
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12529
13472
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12530
13473
|
let baseOptions;
|
|
@@ -12559,19 +13502,20 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12559
13502
|
};
|
|
12560
13503
|
},
|
|
12561
13504
|
/**
|
|
12562
|
-
*
|
|
12563
|
-
* @summary
|
|
12564
|
-
* @param {number}
|
|
12565
|
-
* @param {
|
|
12566
|
-
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13505
|
+
* By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
|
|
13506
|
+
* @summary Update: Subscribe or Unsubscribe Notification Threshold
|
|
13507
|
+
* @param {number} thresholdId
|
|
13508
|
+
* @param {SubscribeOrUnsubscribeUpdatePayload} payload
|
|
12567
13509
|
* @param {*} [options] Override http request option.
|
|
12568
13510
|
* @throws {RequiredError}
|
|
12569
13511
|
*/
|
|
12570
|
-
|
|
12571
|
-
// verify required parameter '
|
|
12572
|
-
assertParamExists('
|
|
12573
|
-
|
|
12574
|
-
|
|
13512
|
+
getNotificationThreshold: async (thresholdId: number, payload: SubscribeOrUnsubscribeUpdatePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13513
|
+
// verify required parameter 'thresholdId' is not null or undefined
|
|
13514
|
+
assertParamExists('getNotificationThreshold', 'thresholdId', thresholdId)
|
|
13515
|
+
// verify required parameter 'payload' is not null or undefined
|
|
13516
|
+
assertParamExists('getNotificationThreshold', 'payload', payload)
|
|
13517
|
+
const localVarPath = `/billing/billing/threshold/{threshold_id}`
|
|
13518
|
+
.replace(`{${"threshold_id"}}`, encodeURIComponent(String(thresholdId)));
|
|
12575
13519
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12576
13520
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12577
13521
|
let baseOptions;
|
|
@@ -12579,26 +13523,21 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12579
13523
|
baseOptions = configuration.baseOptions;
|
|
12580
13524
|
}
|
|
12581
13525
|
|
|
12582
|
-
const localVarRequestOptions = { method: '
|
|
13526
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12583
13527
|
const localVarHeaderParameter = {} as any;
|
|
12584
13528
|
const localVarQueryParameter = {} as any;
|
|
12585
13529
|
|
|
12586
13530
|
// authentication apiKey required
|
|
12587
13531
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
12588
13532
|
|
|
12589
|
-
if (startDate !== undefined) {
|
|
12590
|
-
localVarQueryParameter['start_date'] = startDate;
|
|
12591
|
-
}
|
|
12592
|
-
|
|
12593
|
-
if (endDate !== undefined) {
|
|
12594
|
-
localVarQueryParameter['end_date'] = endDate;
|
|
12595
|
-
}
|
|
12596
|
-
|
|
12597
13533
|
|
|
12598
13534
|
|
|
13535
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13536
|
+
|
|
12599
13537
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12600
13538
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12601
13539
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13540
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
12602
13541
|
|
|
12603
13542
|
return {
|
|
12604
13543
|
url: toPathString(localVarUrlObj),
|
|
@@ -12606,15 +13545,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12606
13545
|
};
|
|
12607
13546
|
},
|
|
12608
13547
|
/**
|
|
12609
|
-
* Retrieve
|
|
12610
|
-
* @summary
|
|
12611
|
-
* @param {
|
|
12612
|
-
* @param {string} [
|
|
13548
|
+
* Retrieve billing history of a specific Fine tuning for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'incurred_bill\', \'usage_time\', \'non_discounted_price_per_hour\', \'non_discounted_bill\'.
|
|
13549
|
+
* @summary Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
|
|
13550
|
+
* @param {number} resourceId
|
|
13551
|
+
* @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13552
|
+
* @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12613
13553
|
* @param {*} [options] Override http request option.
|
|
12614
13554
|
* @throws {RequiredError}
|
|
12615
13555
|
*/
|
|
12616
|
-
|
|
12617
|
-
|
|
13556
|
+
getResourceFineTuningBillingHistory: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13557
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
13558
|
+
assertParamExists('getResourceFineTuningBillingHistory', 'resourceId', resourceId)
|
|
13559
|
+
const localVarPath = `/billing/billing/history/fine_tuning/{resource_id}`
|
|
13560
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12618
13561
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12619
13562
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12620
13563
|
let baseOptions;
|
|
@@ -12629,12 +13572,12 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12629
13572
|
// authentication apiKey required
|
|
12630
13573
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
12631
13574
|
|
|
12632
|
-
if (
|
|
12633
|
-
localVarQueryParameter['
|
|
13575
|
+
if (startDate !== undefined) {
|
|
13576
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
12634
13577
|
}
|
|
12635
13578
|
|
|
12636
|
-
if (
|
|
12637
|
-
localVarQueryParameter['
|
|
13579
|
+
if (endDate !== undefined) {
|
|
13580
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
12638
13581
|
}
|
|
12639
13582
|
|
|
12640
13583
|
|
|
@@ -12649,16 +13592,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12649
13592
|
};
|
|
12650
13593
|
},
|
|
12651
13594
|
/**
|
|
12652
|
-
*
|
|
12653
|
-
* @
|
|
12654
|
-
* @param {string} [startDate]
|
|
12655
|
-
* @param {string} [endDate]
|
|
12656
|
-
* @param {string} [graph] Set this value to \"true\" for getting graph value
|
|
13595
|
+
* Retrieve billing history for a specific Model Evaluation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
13596
|
+
* @param {number} resourceId
|
|
13597
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
13598
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
12657
13599
|
* @param {*} [options] Override http request option.
|
|
12658
13600
|
* @throws {RequiredError}
|
|
12659
13601
|
*/
|
|
12660
|
-
|
|
12661
|
-
|
|
13602
|
+
getResourceModelEvaluationBillingHistory: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13603
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
13604
|
+
assertParamExists('getResourceModelEvaluationBillingHistory', 'resourceId', resourceId)
|
|
13605
|
+
const localVarPath = `/billing/billing/history/model_evaluation/{resource_id}`
|
|
13606
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12662
13607
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12663
13608
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12664
13609
|
let baseOptions;
|
|
@@ -12681,10 +13626,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12681
13626
|
localVarQueryParameter['end_date'] = endDate;
|
|
12682
13627
|
}
|
|
12683
13628
|
|
|
12684
|
-
if (graph !== undefined) {
|
|
12685
|
-
localVarQueryParameter['graph'] = graph;
|
|
12686
|
-
}
|
|
12687
|
-
|
|
12688
13629
|
|
|
12689
13630
|
|
|
12690
13631
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12697,19 +13638,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12697
13638
|
};
|
|
12698
13639
|
},
|
|
12699
13640
|
/**
|
|
12700
|
-
* User will receive
|
|
12701
|
-
* @summary Retrieve
|
|
12702
|
-
* @param {number}
|
|
13641
|
+
* User will receive hourly cost datapoints for a serverless inference for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
13642
|
+
* @summary Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
|
|
13643
|
+
* @param {number} resourceId
|
|
12703
13644
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12704
13645
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12705
13646
|
* @param {*} [options] Override http request option.
|
|
12706
13647
|
* @throws {RequiredError}
|
|
12707
13648
|
*/
|
|
12708
|
-
|
|
12709
|
-
// verify required parameter '
|
|
12710
|
-
assertParamExists('
|
|
12711
|
-
const localVarPath = `/billing/billing/history/
|
|
12712
|
-
.replace(`{${"
|
|
13649
|
+
getServerlessInferenceBillingHistoryGraph: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13650
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
13651
|
+
assertParamExists('getServerlessInferenceBillingHistoryGraph', 'resourceId', resourceId)
|
|
13652
|
+
const localVarPath = `/billing/billing/history/serverless_inference/{resource_id}/graph`
|
|
13653
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12713
13654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12714
13655
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12715
13656
|
let baseOptions;
|
|
@@ -12744,19 +13685,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12744
13685
|
};
|
|
12745
13686
|
},
|
|
12746
13687
|
/**
|
|
12747
|
-
*
|
|
12748
|
-
* @
|
|
12749
|
-
* @param {
|
|
12750
|
-
* @param {string} [
|
|
12751
|
-
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13688
|
+
* Retrieve billing history for a specific Serverless Inference resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
13689
|
+
* @param {number} resourceId
|
|
13690
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
13691
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
12752
13692
|
* @param {*} [options] Override http request option.
|
|
12753
13693
|
* @throws {RequiredError}
|
|
12754
13694
|
*/
|
|
12755
|
-
|
|
12756
|
-
// verify required parameter '
|
|
12757
|
-
assertParamExists('
|
|
12758
|
-
const localVarPath = `/billing/billing/
|
|
12759
|
-
.replace(`{${"
|
|
13695
|
+
getServerlessInferencesBillingHistory: async (resourceId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13696
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
13697
|
+
assertParamExists('getServerlessInferencesBillingHistory', 'resourceId', resourceId)
|
|
13698
|
+
const localVarPath = `/billing/billing/history/serverless_inference/{resource_id}`
|
|
13699
|
+
.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId)));
|
|
12760
13700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12761
13701
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12762
13702
|
let baseOptions;
|
|
@@ -12791,19 +13731,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12791
13731
|
};
|
|
12792
13732
|
},
|
|
12793
13733
|
/**
|
|
12794
|
-
*
|
|
12795
|
-
* @summary Retrieve
|
|
12796
|
-
* @param {number}
|
|
12797
|
-
* @param {string} [startDate]
|
|
12798
|
-
* @param {string} [endDate]
|
|
13734
|
+
* Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'incurred_bill\', \'usage_time\', \'non_discounted_price_per_hour\', \'non_discounted_bill\'.
|
|
13735
|
+
* @summary Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
|
|
13736
|
+
* @param {number} snapshotId
|
|
13737
|
+
* @param {string} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13738
|
+
* @param {string} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12799
13739
|
* @param {*} [options] Override http request option.
|
|
12800
13740
|
* @throws {RequiredError}
|
|
12801
13741
|
*/
|
|
12802
|
-
|
|
12803
|
-
// verify required parameter '
|
|
12804
|
-
assertParamExists('
|
|
12805
|
-
const localVarPath = `/billing/billing/history/
|
|
12806
|
-
.replace(`{${"
|
|
13742
|
+
getSnapshotBillingHistory: async (snapshotId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13743
|
+
// verify required parameter 'snapshotId' is not null or undefined
|
|
13744
|
+
assertParamExists('getSnapshotBillingHistory', 'snapshotId', snapshotId)
|
|
13745
|
+
const localVarPath = `/billing/billing/history/snapshot/{snapshot_id}`
|
|
13746
|
+
.replace(`{${"snapshot_id"}}`, encodeURIComponent(String(snapshotId)));
|
|
12807
13747
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12808
13748
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12809
13749
|
let baseOptions;
|
|
@@ -12838,18 +13778,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12838
13778
|
};
|
|
12839
13779
|
},
|
|
12840
13780
|
/**
|
|
12841
|
-
* User will receive
|
|
12842
|
-
* @summary Retrieve
|
|
13781
|
+
* User will receive hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
13782
|
+
* @summary Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
|
|
13783
|
+
* @param {number} snapshotId
|
|
12843
13784
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12844
13785
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12845
|
-
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
12846
|
-
* @param {number} [perPage] Number of items to return per page
|
|
12847
|
-
* @param {number} [page] Page number
|
|
12848
13786
|
* @param {*} [options] Override http request option.
|
|
12849
13787
|
* @throws {RequiredError}
|
|
12850
13788
|
*/
|
|
12851
|
-
|
|
12852
|
-
|
|
13789
|
+
getSnapshotBillingHistoryGraph: async (snapshotId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13790
|
+
// verify required parameter 'snapshotId' is not null or undefined
|
|
13791
|
+
assertParamExists('getSnapshotBillingHistoryGraph', 'snapshotId', snapshotId)
|
|
13792
|
+
const localVarPath = `/billing/billing/history/snapshot/{snapshot_id}/graph`
|
|
13793
|
+
.replace(`{${"snapshot_id"}}`, encodeURIComponent(String(snapshotId)));
|
|
12853
13794
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12854
13795
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12855
13796
|
let baseOptions;
|
|
@@ -12872,16 +13813,47 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12872
13813
|
localVarQueryParameter['end_date'] = endDate;
|
|
12873
13814
|
}
|
|
12874
13815
|
|
|
12875
|
-
|
|
12876
|
-
|
|
13816
|
+
|
|
13817
|
+
|
|
13818
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13819
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13820
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13821
|
+
|
|
13822
|
+
return {
|
|
13823
|
+
url: toPathString(localVarUrlObj),
|
|
13824
|
+
options: localVarRequestOptions,
|
|
13825
|
+
};
|
|
13826
|
+
},
|
|
13827
|
+
/**
|
|
13828
|
+
* Retrieve active billing metrics for the organization\'s resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](None/docs/billing/pricebook/)
|
|
13829
|
+
* @summary GET: Billing usage
|
|
13830
|
+
* @param {string} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
|
|
13831
|
+
* @param {string} [environment] Filter resources by environment ID or Name
|
|
13832
|
+
* @param {*} [options] Override http request option.
|
|
13833
|
+
* @throws {RequiredError}
|
|
13834
|
+
*/
|
|
13835
|
+
getUsage: async (deleted?: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13836
|
+
const localVarPath = `/billing/billing/usage`;
|
|
13837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13839
|
+
let baseOptions;
|
|
13840
|
+
if (configuration) {
|
|
13841
|
+
baseOptions = configuration.baseOptions;
|
|
12877
13842
|
}
|
|
12878
13843
|
|
|
12879
|
-
|
|
12880
|
-
|
|
13844
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13845
|
+
const localVarHeaderParameter = {} as any;
|
|
13846
|
+
const localVarQueryParameter = {} as any;
|
|
13847
|
+
|
|
13848
|
+
// authentication apiKey required
|
|
13849
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
13850
|
+
|
|
13851
|
+
if (deleted !== undefined) {
|
|
13852
|
+
localVarQueryParameter['deleted'] = deleted;
|
|
12881
13853
|
}
|
|
12882
13854
|
|
|
12883
|
-
if (
|
|
12884
|
-
localVarQueryParameter['
|
|
13855
|
+
if (environment !== undefined) {
|
|
13856
|
+
localVarQueryParameter['environment'] = environment;
|
|
12885
13857
|
}
|
|
12886
13858
|
|
|
12887
13859
|
|
|
@@ -12896,19 +13868,16 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12896
13868
|
};
|
|
12897
13869
|
},
|
|
12898
13870
|
/**
|
|
12899
|
-
* User will
|
|
12900
|
-
* @summary Retrieve
|
|
12901
|
-
* @param {number} vmId
|
|
13871
|
+
* User will receive billing history for the specified billing cycle. This data will include \'incurred_bill\', \'non_discounted_bill\', \'vm_cost\', \'volume_cost\'
|
|
13872
|
+
* @summary Retrieve Billing History for a specific Billing Cycle
|
|
12902
13873
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12903
13874
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13875
|
+
* @param {string} [graph] Set this value to \"true\" for getting graph value
|
|
12904
13876
|
* @param {*} [options] Override http request option.
|
|
12905
13877
|
* @throws {RequiredError}
|
|
12906
13878
|
*/
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
assertParamExists('getVMSubResourceCosts', 'vmId', vmId)
|
|
12910
|
-
const localVarPath = `/billing/billing/virtual-machine/{vm_id}/sub-resource`
|
|
12911
|
-
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
13879
|
+
getUserBillingHistory: async (startDate?: string, endDate?: string, graph?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13880
|
+
const localVarPath = `/billing/billing/history`;
|
|
12912
13881
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12913
13882
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12914
13883
|
let baseOptions;
|
|
@@ -12931,6 +13900,10 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12931
13900
|
localVarQueryParameter['end_date'] = endDate;
|
|
12932
13901
|
}
|
|
12933
13902
|
|
|
13903
|
+
if (graph !== undefined) {
|
|
13904
|
+
localVarQueryParameter['graph'] = graph;
|
|
13905
|
+
}
|
|
13906
|
+
|
|
12934
13907
|
|
|
12935
13908
|
|
|
12936
13909
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12943,18 +13916,18 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12943
13916
|
};
|
|
12944
13917
|
},
|
|
12945
13918
|
/**
|
|
12946
|
-
* User will receive
|
|
12947
|
-
* @summary Retrieve
|
|
13919
|
+
* User will receive billing history of a specific Virtual Machine for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'non_discounted_price_per_hour\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'usage_time_ACTIVE\', \'usage_time_SHUTOFF\', \'usage_time_HIBERNATED\'
|
|
13920
|
+
* @summary Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
|
|
12948
13921
|
* @param {number} vmId
|
|
12949
13922
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12950
13923
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12951
13924
|
* @param {*} [options] Override http request option.
|
|
12952
13925
|
* @throws {RequiredError}
|
|
12953
13926
|
*/
|
|
12954
|
-
|
|
13927
|
+
getVMBillingDetails: async (vmId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12955
13928
|
// verify required parameter 'vmId' is not null or undefined
|
|
12956
|
-
assertParamExists('
|
|
12957
|
-
const localVarPath = `/billing/billing/virtual-machine/{vm_id}
|
|
13929
|
+
assertParamExists('getVMBillingDetails', 'vmId', vmId)
|
|
13930
|
+
const localVarPath = `/billing/billing/history/virtual-machine/{vm_id}`
|
|
12958
13931
|
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
12959
13932
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12960
13933
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12990,19 +13963,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12990
13963
|
};
|
|
12991
13964
|
},
|
|
12992
13965
|
/**
|
|
12993
|
-
*
|
|
12994
|
-
* @summary Retrieve
|
|
12995
|
-
* @param {number}
|
|
13966
|
+
* User will receive vm billing events history
|
|
13967
|
+
* @summary Retrieve VM billing events history
|
|
13968
|
+
* @param {number} vmId
|
|
12996
13969
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12997
13970
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
12998
13971
|
* @param {*} [options] Override http request option.
|
|
12999
13972
|
* @throws {RequiredError}
|
|
13000
13973
|
*/
|
|
13001
|
-
|
|
13002
|
-
// verify required parameter '
|
|
13003
|
-
assertParamExists('
|
|
13004
|
-
const localVarPath = `/billing/billing/
|
|
13005
|
-
.replace(`{${"
|
|
13974
|
+
getVMBillingEvents: async (vmId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13975
|
+
// verify required parameter 'vmId' is not null or undefined
|
|
13976
|
+
assertParamExists('getVMBillingEvents', 'vmId', vmId)
|
|
13977
|
+
const localVarPath = `/billing/billing/virtual-machine/{vm_id}/billing-events`
|
|
13978
|
+
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
13006
13979
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13007
13980
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13008
13981
|
let baseOptions;
|
|
@@ -13037,19 +14010,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13037
14010
|
};
|
|
13038
14011
|
},
|
|
13039
14012
|
/**
|
|
13040
|
-
* User will receive
|
|
13041
|
-
* @summary Retrieve
|
|
13042
|
-
* @param {number}
|
|
14013
|
+
* User will receive hourly cost datapoints for a VM for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
14014
|
+
* @summary Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
|
|
14015
|
+
* @param {number} vmId
|
|
13043
14016
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13044
14017
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13045
14018
|
* @param {*} [options] Override http request option.
|
|
13046
14019
|
* @throws {RequiredError}
|
|
13047
14020
|
*/
|
|
13048
|
-
|
|
13049
|
-
// verify required parameter '
|
|
13050
|
-
assertParamExists('
|
|
13051
|
-
const localVarPath = `/billing/billing/
|
|
13052
|
-
.replace(`{${"
|
|
14021
|
+
getVMBillingGraph: async (vmId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14022
|
+
// verify required parameter 'vmId' is not null or undefined
|
|
14023
|
+
assertParamExists('getVMBillingGraph', 'vmId', vmId)
|
|
14024
|
+
const localVarPath = `/billing/billing/history/virtual-machine/{vm_id}/graph`
|
|
14025
|
+
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
13053
14026
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13054
14027
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13055
14028
|
let baseOptions;
|
|
@@ -13084,8 +14057,8 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13084
14057
|
};
|
|
13085
14058
|
},
|
|
13086
14059
|
/**
|
|
13087
|
-
* User will receive billing history of
|
|
13088
|
-
* @summary Retrieve Billing History of
|
|
14060
|
+
* User will receive billing history of virtual machine for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'status\', \'incurred_bill\', \'usage_time\', \'price_per_hour\'
|
|
14061
|
+
* @summary Retrieve Billing History of Virtual Machine for a specific Billing Cycle
|
|
13089
14062
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13090
14063
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13091
14064
|
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
@@ -13094,8 +14067,8 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13094
14067
|
* @param {*} [options] Override http request option.
|
|
13095
14068
|
* @throws {RequiredError}
|
|
13096
14069
|
*/
|
|
13097
|
-
|
|
13098
|
-
const localVarPath = `/billing/billing/history/
|
|
14070
|
+
getVMBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14071
|
+
const localVarPath = `/billing/billing/history/virtual-machine`;
|
|
13099
14072
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13100
14073
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13101
14074
|
let baseOptions;
|
|
@@ -13142,19 +14115,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13142
14115
|
};
|
|
13143
14116
|
},
|
|
13144
14117
|
/**
|
|
13145
|
-
* User will
|
|
13146
|
-
* @summary Retrieve
|
|
13147
|
-
* @param {number}
|
|
14118
|
+
* User will get total costs and non_discount costs of sub resources on a specific Virtual Machine for the specified billing cycle. on a Specific VM for the Specified Billing Cycle
|
|
14119
|
+
* @summary Retrieve Total Costs and Non Discount Costs for Sub Resources
|
|
14120
|
+
* @param {number} vmId
|
|
13148
14121
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13149
14122
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13150
14123
|
* @param {*} [options] Override http request option.
|
|
13151
14124
|
* @throws {RequiredError}
|
|
13152
14125
|
*/
|
|
13153
|
-
|
|
13154
|
-
// verify required parameter '
|
|
13155
|
-
assertParamExists('
|
|
13156
|
-
const localVarPath = `/billing/billing/
|
|
13157
|
-
.replace(`{${"
|
|
14126
|
+
getVMSubResourceCosts: async (vmId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14127
|
+
// verify required parameter 'vmId' is not null or undefined
|
|
14128
|
+
assertParamExists('getVMSubResourceCosts', 'vmId', vmId)
|
|
14129
|
+
const localVarPath = `/billing/billing/virtual-machine/{vm_id}/sub-resource`
|
|
14130
|
+
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
13158
14131
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13159
14132
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13160
14133
|
let baseOptions;
|
|
@@ -13189,16 +14162,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13189
14162
|
};
|
|
13190
14163
|
},
|
|
13191
14164
|
/**
|
|
13192
|
-
* User will receive
|
|
13193
|
-
* @summary Retrieve
|
|
14165
|
+
* User will receive sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. Machine sub resources for a specific billing cycle
|
|
14166
|
+
* @summary Retrieve Sub-Resources Historical Cost datapoints of a Virtual
|
|
14167
|
+
* @param {number} vmId
|
|
13194
14168
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13195
14169
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13196
|
-
* @param {string} [search] Search by Contract \"Description\" or \"ID\"
|
|
13197
14170
|
* @param {*} [options] Override http request option.
|
|
13198
14171
|
* @throws {RequiredError}
|
|
13199
14172
|
*/
|
|
13200
|
-
|
|
13201
|
-
|
|
14173
|
+
getVMSubResourceGraph: async (vmId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14174
|
+
// verify required parameter 'vmId' is not null or undefined
|
|
14175
|
+
assertParamExists('getVMSubResourceGraph', 'vmId', vmId)
|
|
14176
|
+
const localVarPath = `/billing/billing/virtual-machine/{vm_id}/sub-resource/graph`
|
|
14177
|
+
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
13202
14178
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13203
14179
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13204
14180
|
let baseOptions;
|
|
@@ -13221,10 +14197,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13221
14197
|
localVarQueryParameter['end_date'] = endDate;
|
|
13222
14198
|
}
|
|
13223
14199
|
|
|
13224
|
-
if (search !== undefined) {
|
|
13225
|
-
localVarQueryParameter['search'] = search;
|
|
13226
|
-
}
|
|
13227
|
-
|
|
13228
14200
|
|
|
13229
14201
|
|
|
13230
14202
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13237,18 +14209,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13237
14209
|
};
|
|
13238
14210
|
},
|
|
13239
14211
|
/**
|
|
13240
|
-
*
|
|
13241
|
-
* @summary Retrieve Billing History of a
|
|
14212
|
+
* Retrieve billing history of a specific Volume for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'price_per_hour\', \'incurred_bill\', \'usage_time\', \'non_discounted_price_per_hour\', \'non_discounted_bill\'.
|
|
14213
|
+
* @summary Retrieve Billing History of a Specific Volume for a specific Billing Cycle
|
|
14214
|
+
* @param {number} volumeId
|
|
13242
14215
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13243
14216
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13244
|
-
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
13245
|
-
* @param {number} [perPage] Number of items to return per page
|
|
13246
|
-
* @param {number} [page] Page number
|
|
13247
14217
|
* @param {*} [options] Override http request option.
|
|
13248
14218
|
* @throws {RequiredError}
|
|
13249
14219
|
*/
|
|
13250
|
-
|
|
13251
|
-
|
|
14220
|
+
getVolumeBillingDetails: async (volumeId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14221
|
+
// verify required parameter 'volumeId' is not null or undefined
|
|
14222
|
+
assertParamExists('getVolumeBillingDetails', 'volumeId', volumeId)
|
|
14223
|
+
const localVarPath = `/billing/billing/history/volume/{volume_id}`
|
|
14224
|
+
.replace(`{${"volume_id"}}`, encodeURIComponent(String(volumeId)));
|
|
13252
14225
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13253
14226
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13254
14227
|
let baseOptions;
|
|
@@ -13271,18 +14244,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13271
14244
|
localVarQueryParameter['end_date'] = endDate;
|
|
13272
14245
|
}
|
|
13273
14246
|
|
|
13274
|
-
if (search !== undefined) {
|
|
13275
|
-
localVarQueryParameter['search'] = search;
|
|
13276
|
-
}
|
|
13277
|
-
|
|
13278
|
-
if (perPage !== undefined) {
|
|
13279
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
13280
|
-
}
|
|
13281
|
-
|
|
13282
|
-
if (page !== undefined) {
|
|
13283
|
-
localVarQueryParameter['page'] = page;
|
|
13284
|
-
}
|
|
13285
|
-
|
|
13286
14247
|
|
|
13287
14248
|
|
|
13288
14249
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13295,18 +14256,19 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13295
14256
|
};
|
|
13296
14257
|
},
|
|
13297
14258
|
/**
|
|
13298
|
-
* User will receive
|
|
13299
|
-
* @summary Retrieve
|
|
14259
|
+
* User will receive volume billing events history
|
|
14260
|
+
* @summary Retrieve Volume billing events history
|
|
14261
|
+
* @param {number} volumeId
|
|
13300
14262
|
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13301
14263
|
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
13302
|
-
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
13303
|
-
* @param {number} [perPage] Number of items to return per page
|
|
13304
|
-
* @param {number} [page] Page number
|
|
13305
14264
|
* @param {*} [options] Override http request option.
|
|
13306
14265
|
* @throws {RequiredError}
|
|
13307
14266
|
*/
|
|
13308
|
-
|
|
13309
|
-
|
|
14267
|
+
getVolumeBillingEvents: async (volumeId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14268
|
+
// verify required parameter 'volumeId' is not null or undefined
|
|
14269
|
+
assertParamExists('getVolumeBillingEvents', 'volumeId', volumeId)
|
|
14270
|
+
const localVarPath = `/billing/billing/volume/{volume_id}/billing-events`
|
|
14271
|
+
.replace(`{${"volume_id"}}`, encodeURIComponent(String(volumeId)));
|
|
13310
14272
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13311
14273
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13312
14274
|
let baseOptions;
|
|
@@ -13329,18 +14291,6 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13329
14291
|
localVarQueryParameter['end_date'] = endDate;
|
|
13330
14292
|
}
|
|
13331
14293
|
|
|
13332
|
-
if (search !== undefined) {
|
|
13333
|
-
localVarQueryParameter['search'] = search;
|
|
13334
|
-
}
|
|
13335
|
-
|
|
13336
|
-
if (perPage !== undefined) {
|
|
13337
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
13338
|
-
}
|
|
13339
|
-
|
|
13340
|
-
if (page !== undefined) {
|
|
13341
|
-
localVarQueryParameter['page'] = page;
|
|
13342
|
-
}
|
|
13343
|
-
|
|
13344
14294
|
|
|
13345
14295
|
|
|
13346
14296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13353,11 +14303,280 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13353
14303
|
};
|
|
13354
14304
|
},
|
|
13355
14305
|
/**
|
|
13356
|
-
*
|
|
13357
|
-
* @summary
|
|
13358
|
-
* @param {
|
|
13359
|
-
* @
|
|
13360
|
-
|
|
14306
|
+
* User will receive billing history of volumes for thespecified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'status\', \'incurred_bill\', \'usage_time\', \'price_per_hour\'
|
|
14307
|
+
* @summary Retrieve Billing History of Volume for a specific Billing Cycle
|
|
14308
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14309
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14310
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
14311
|
+
* @param {number} [perPage] Number of items to return per page
|
|
14312
|
+
* @param {number} [page] Page number
|
|
14313
|
+
* @param {*} [options] Override http request option.
|
|
14314
|
+
* @throws {RequiredError}
|
|
14315
|
+
*/
|
|
14316
|
+
getVolumeBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14317
|
+
const localVarPath = `/billing/billing/history/volume`;
|
|
14318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14319
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14320
|
+
let baseOptions;
|
|
14321
|
+
if (configuration) {
|
|
14322
|
+
baseOptions = configuration.baseOptions;
|
|
14323
|
+
}
|
|
14324
|
+
|
|
14325
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14326
|
+
const localVarHeaderParameter = {} as any;
|
|
14327
|
+
const localVarQueryParameter = {} as any;
|
|
14328
|
+
|
|
14329
|
+
// authentication apiKey required
|
|
14330
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
14331
|
+
|
|
14332
|
+
if (startDate !== undefined) {
|
|
14333
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
14334
|
+
}
|
|
14335
|
+
|
|
14336
|
+
if (endDate !== undefined) {
|
|
14337
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
14338
|
+
}
|
|
14339
|
+
|
|
14340
|
+
if (search !== undefined) {
|
|
14341
|
+
localVarQueryParameter['search'] = search;
|
|
14342
|
+
}
|
|
14343
|
+
|
|
14344
|
+
if (perPage !== undefined) {
|
|
14345
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
14346
|
+
}
|
|
14347
|
+
|
|
14348
|
+
if (page !== undefined) {
|
|
14349
|
+
localVarQueryParameter['page'] = page;
|
|
14350
|
+
}
|
|
14351
|
+
|
|
14352
|
+
|
|
14353
|
+
|
|
14354
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14356
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14357
|
+
|
|
14358
|
+
return {
|
|
14359
|
+
url: toPathString(localVarUrlObj),
|
|
14360
|
+
options: localVarRequestOptions,
|
|
14361
|
+
};
|
|
14362
|
+
},
|
|
14363
|
+
/**
|
|
14364
|
+
* User will receive hourly cost datapoints for a Volume for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
14365
|
+
* @summary Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
|
|
14366
|
+
* @param {number} volumeId
|
|
14367
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14368
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14369
|
+
* @param {*} [options] Override http request option.
|
|
14370
|
+
* @throws {RequiredError}
|
|
14371
|
+
*/
|
|
14372
|
+
getVolumeBillingHistoryGraph: async (volumeId: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14373
|
+
// verify required parameter 'volumeId' is not null or undefined
|
|
14374
|
+
assertParamExists('getVolumeBillingHistoryGraph', 'volumeId', volumeId)
|
|
14375
|
+
const localVarPath = `/billing/billing/history/volume/{volume_id}/graph`
|
|
14376
|
+
.replace(`{${"volume_id"}}`, encodeURIComponent(String(volumeId)));
|
|
14377
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14378
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14379
|
+
let baseOptions;
|
|
14380
|
+
if (configuration) {
|
|
14381
|
+
baseOptions = configuration.baseOptions;
|
|
14382
|
+
}
|
|
14383
|
+
|
|
14384
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14385
|
+
const localVarHeaderParameter = {} as any;
|
|
14386
|
+
const localVarQueryParameter = {} as any;
|
|
14387
|
+
|
|
14388
|
+
// authentication apiKey required
|
|
14389
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
14390
|
+
|
|
14391
|
+
if (startDate !== undefined) {
|
|
14392
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
14393
|
+
}
|
|
14394
|
+
|
|
14395
|
+
if (endDate !== undefined) {
|
|
14396
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
14397
|
+
}
|
|
14398
|
+
|
|
14399
|
+
|
|
14400
|
+
|
|
14401
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14403
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14404
|
+
|
|
14405
|
+
return {
|
|
14406
|
+
url: toPathString(localVarUrlObj),
|
|
14407
|
+
options: localVarRequestOptions,
|
|
14408
|
+
};
|
|
14409
|
+
},
|
|
14410
|
+
/**
|
|
14411
|
+
* User will receive billing history of contracts for the specified billing cycle. This data will include \'description\', gpu_type\',\'infrahub_id\', \'status\', \'incurred_bill\', \'price_per_hour\'
|
|
14412
|
+
* @summary Retrieve Billing History of Contract for a specific Billing Cycle
|
|
14413
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14414
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14415
|
+
* @param {string} [search] Search by Contract \"Description\" or \"ID\"
|
|
14416
|
+
* @param {*} [options] Override http request option.
|
|
14417
|
+
* @throws {RequiredError}
|
|
14418
|
+
*/
|
|
14419
|
+
listBillingContractHistory: async (startDate?: string, endDate?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14420
|
+
const localVarPath = `/billing/billing/history/contract`;
|
|
14421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14422
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14423
|
+
let baseOptions;
|
|
14424
|
+
if (configuration) {
|
|
14425
|
+
baseOptions = configuration.baseOptions;
|
|
14426
|
+
}
|
|
14427
|
+
|
|
14428
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14429
|
+
const localVarHeaderParameter = {} as any;
|
|
14430
|
+
const localVarQueryParameter = {} as any;
|
|
14431
|
+
|
|
14432
|
+
// authentication apiKey required
|
|
14433
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
14434
|
+
|
|
14435
|
+
if (startDate !== undefined) {
|
|
14436
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
14437
|
+
}
|
|
14438
|
+
|
|
14439
|
+
if (endDate !== undefined) {
|
|
14440
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
14441
|
+
}
|
|
14442
|
+
|
|
14443
|
+
if (search !== undefined) {
|
|
14444
|
+
localVarQueryParameter['search'] = search;
|
|
14445
|
+
}
|
|
14446
|
+
|
|
14447
|
+
|
|
14448
|
+
|
|
14449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14451
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14452
|
+
|
|
14453
|
+
return {
|
|
14454
|
+
url: toPathString(localVarUrlObj),
|
|
14455
|
+
options: localVarRequestOptions,
|
|
14456
|
+
};
|
|
14457
|
+
},
|
|
14458
|
+
/**
|
|
14459
|
+
* User will receive billing history of buckets for thespecified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'status\', \'incurred_bill\', \'usage_time\', \'price_per_hour\'
|
|
14460
|
+
* @summary Retrieve Billing History of a Bucket for a specific Billing Cycle
|
|
14461
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14462
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14463
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
14464
|
+
* @param {number} [perPage] Number of items to return per page
|
|
14465
|
+
* @param {number} [page] Page number
|
|
14466
|
+
* @param {*} [options] Override http request option.
|
|
14467
|
+
* @throws {RequiredError}
|
|
14468
|
+
*/
|
|
14469
|
+
listBucketBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14470
|
+
const localVarPath = `/billing/billing/history/bucket`;
|
|
14471
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14472
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14473
|
+
let baseOptions;
|
|
14474
|
+
if (configuration) {
|
|
14475
|
+
baseOptions = configuration.baseOptions;
|
|
14476
|
+
}
|
|
14477
|
+
|
|
14478
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14479
|
+
const localVarHeaderParameter = {} as any;
|
|
14480
|
+
const localVarQueryParameter = {} as any;
|
|
14481
|
+
|
|
14482
|
+
// authentication apiKey required
|
|
14483
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
14484
|
+
|
|
14485
|
+
if (startDate !== undefined) {
|
|
14486
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
14487
|
+
}
|
|
14488
|
+
|
|
14489
|
+
if (endDate !== undefined) {
|
|
14490
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
14491
|
+
}
|
|
14492
|
+
|
|
14493
|
+
if (search !== undefined) {
|
|
14494
|
+
localVarQueryParameter['search'] = search;
|
|
14495
|
+
}
|
|
14496
|
+
|
|
14497
|
+
if (perPage !== undefined) {
|
|
14498
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
14499
|
+
}
|
|
14500
|
+
|
|
14501
|
+
if (page !== undefined) {
|
|
14502
|
+
localVarQueryParameter['page'] = page;
|
|
14503
|
+
}
|
|
14504
|
+
|
|
14505
|
+
|
|
14506
|
+
|
|
14507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14509
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14510
|
+
|
|
14511
|
+
return {
|
|
14512
|
+
url: toPathString(localVarUrlObj),
|
|
14513
|
+
options: localVarRequestOptions,
|
|
14514
|
+
};
|
|
14515
|
+
},
|
|
14516
|
+
/**
|
|
14517
|
+
* User will receive billing history of clusters for the specified billing cycle. This data will include \'resource_name\', \'infrahub_id\', \'status\', \'incurred_bill\', \'usage_time\', \'price_per_hour\'
|
|
14518
|
+
* @summary Retrieve Billing History of Clusters for a specific Billing Cycle
|
|
14519
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14520
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14521
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
14522
|
+
* @param {number} [perPage] Number of items to return per page
|
|
14523
|
+
* @param {number} [page] Page number
|
|
14524
|
+
* @param {*} [options] Override http request option.
|
|
14525
|
+
* @throws {RequiredError}
|
|
14526
|
+
*/
|
|
14527
|
+
listClustersBillingHistory: async (startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14528
|
+
const localVarPath = `/billing/billing/history/cluster`;
|
|
14529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14530
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14531
|
+
let baseOptions;
|
|
14532
|
+
if (configuration) {
|
|
14533
|
+
baseOptions = configuration.baseOptions;
|
|
14534
|
+
}
|
|
14535
|
+
|
|
14536
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14537
|
+
const localVarHeaderParameter = {} as any;
|
|
14538
|
+
const localVarQueryParameter = {} as any;
|
|
14539
|
+
|
|
14540
|
+
// authentication apiKey required
|
|
14541
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
14542
|
+
|
|
14543
|
+
if (startDate !== undefined) {
|
|
14544
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
14545
|
+
}
|
|
14546
|
+
|
|
14547
|
+
if (endDate !== undefined) {
|
|
14548
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
14549
|
+
}
|
|
14550
|
+
|
|
14551
|
+
if (search !== undefined) {
|
|
14552
|
+
localVarQueryParameter['search'] = search;
|
|
14553
|
+
}
|
|
14554
|
+
|
|
14555
|
+
if (perPage !== undefined) {
|
|
14556
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
14557
|
+
}
|
|
14558
|
+
|
|
14559
|
+
if (page !== undefined) {
|
|
14560
|
+
localVarQueryParameter['page'] = page;
|
|
14561
|
+
}
|
|
14562
|
+
|
|
14563
|
+
|
|
14564
|
+
|
|
14565
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14566
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14567
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14568
|
+
|
|
14569
|
+
return {
|
|
14570
|
+
url: toPathString(localVarUrlObj),
|
|
14571
|
+
options: localVarRequestOptions,
|
|
14572
|
+
};
|
|
14573
|
+
},
|
|
14574
|
+
/**
|
|
14575
|
+
* Retrieve all the notification thresholds for an organization.
|
|
14576
|
+
* @summary GET: All Thresholds for Organization
|
|
14577
|
+
* @param {*} [options] Override http request option.
|
|
14578
|
+
* @throws {RequiredError}
|
|
14579
|
+
*/
|
|
13361
14580
|
listOrgNotificationThresholds: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13362
14581
|
const localVarPath = `/billing/billing/threshold`;
|
|
13363
14582
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13649,6 +14868,52 @@ export const BillingApiFp = function(configuration?: Configuration) {
|
|
|
13649
14868
|
const localVarOperationServerBasePath = operationServerMap['BillingApi.getFineTuningBillingHistoryGraph']?.[localVarOperationServerIndex]?.url;
|
|
13650
14869
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13651
14870
|
},
|
|
14871
|
+
/**
|
|
14872
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
14873
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
14874
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14875
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14876
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
14877
|
+
* @param {number} [perPage] Number of items to return per page
|
|
14878
|
+
* @param {number} [page] Page number
|
|
14879
|
+
* @param {*} [options] Override http request option.
|
|
14880
|
+
* @throws {RequiredError}
|
|
14881
|
+
*/
|
|
14882
|
+
async getImageGenerationBillingHistory(startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenBasedBillingHistoryResponse>> {
|
|
14883
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options);
|
|
14884
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14885
|
+
const localVarOperationServerBasePath = operationServerMap['BillingApi.getImageGenerationBillingHistory']?.[localVarOperationServerIndex]?.url;
|
|
14886
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14887
|
+
},
|
|
14888
|
+
/**
|
|
14889
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
14890
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
14891
|
+
* @param {number} resourceId
|
|
14892
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14893
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14894
|
+
* @param {*} [options] Override http request option.
|
|
14895
|
+
* @throws {RequiredError}
|
|
14896
|
+
*/
|
|
14897
|
+
async getImageGenerationBillingHistoryGraph(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageGenerationBillingHistoryDetailsResponseSchema>> {
|
|
14898
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options);
|
|
14899
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14900
|
+
const localVarOperationServerBasePath = operationServerMap['BillingApi.getImageGenerationBillingHistoryGraph']?.[localVarOperationServerIndex]?.url;
|
|
14901
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14902
|
+
},
|
|
14903
|
+
/**
|
|
14904
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
14905
|
+
* @param {number} resourceId
|
|
14906
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
14907
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
14908
|
+
* @param {*} [options] Override http request option.
|
|
14909
|
+
* @throws {RequiredError}
|
|
14910
|
+
*/
|
|
14911
|
+
async getImageGenerationHistoryForResource(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageGenerationBillingHistoryDetailsResponseSchema>> {
|
|
14912
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getImageGenerationHistoryForResource(resourceId, startDate, endDate, options);
|
|
14913
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14914
|
+
const localVarOperationServerBasePath = operationServerMap['BillingApi.getImageGenerationHistoryForResource']?.[localVarOperationServerIndex]?.url;
|
|
14915
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14916
|
+
},
|
|
13652
14917
|
/**
|
|
13653
14918
|
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](None/docs/api-reference/billing-resources/last-day-usage/)
|
|
13654
14919
|
* @summary GET: Last Day Cost
|
|
@@ -14194,6 +15459,43 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
|
|
|
14194
15459
|
getFineTuningBillingHistoryGraph(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourceLevelVolumeGraphBillingDetailsResponseModel> {
|
|
14195
15460
|
return localVarFp.getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
14196
15461
|
},
|
|
15462
|
+
/**
|
|
15463
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
15464
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
15465
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15466
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15467
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
15468
|
+
* @param {number} [perPage] Number of items to return per page
|
|
15469
|
+
* @param {number} [page] Page number
|
|
15470
|
+
* @param {*} [options] Override http request option.
|
|
15471
|
+
* @throws {RequiredError}
|
|
15472
|
+
*/
|
|
15473
|
+
getImageGenerationBillingHistory(startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<TokenBasedBillingHistoryResponse> {
|
|
15474
|
+
return localVarFp.getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(axios, basePath));
|
|
15475
|
+
},
|
|
15476
|
+
/**
|
|
15477
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
15478
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
15479
|
+
* @param {number} resourceId
|
|
15480
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15481
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15482
|
+
* @param {*} [options] Override http request option.
|
|
15483
|
+
* @throws {RequiredError}
|
|
15484
|
+
*/
|
|
15485
|
+
getImageGenerationBillingHistoryGraph(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageGenerationBillingHistoryDetailsResponseSchema> {
|
|
15486
|
+
return localVarFp.getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
15487
|
+
},
|
|
15488
|
+
/**
|
|
15489
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
15490
|
+
* @param {number} resourceId
|
|
15491
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
15492
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
15493
|
+
* @param {*} [options] Override http request option.
|
|
15494
|
+
* @throws {RequiredError}
|
|
15495
|
+
*/
|
|
15496
|
+
getImageGenerationHistoryForResource(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageGenerationBillingHistoryDetailsResponseSchema> {
|
|
15497
|
+
return localVarFp.getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
15498
|
+
},
|
|
14197
15499
|
/**
|
|
14198
15500
|
* Retrieve the previous day\'s costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](None/docs/api-reference/billing-resources/last-day-usage/)
|
|
14199
15501
|
* @summary GET: Last Day Cost
|
|
@@ -14663,14 +15965,57 @@ export class BillingApi extends BaseAPI {
|
|
|
14663
15965
|
* User will receive hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints.
|
|
14664
15966
|
* @summary Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
|
|
14665
15967
|
* @param {number} resourceId
|
|
14666
|
-
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
14667
|
-
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15968
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15969
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15970
|
+
* @param {*} [options] Override http request option.
|
|
15971
|
+
* @throws {RequiredError}
|
|
15972
|
+
* @memberof BillingApi
|
|
15973
|
+
*/
|
|
15974
|
+
public getFineTuningBillingHistoryGraph(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
|
|
15975
|
+
return BillingApiFp(this.configuration).getFineTuningBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
15976
|
+
}
|
|
15977
|
+
|
|
15978
|
+
/**
|
|
15979
|
+
* User will receive billing history of image_generation for the specified billing cycle.
|
|
15980
|
+
* @summary Retrieve Billing History of image generation for a specific Billing Cycle
|
|
15981
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15982
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15983
|
+
* @param {string} [search] Search by resource \"Name\" or \"ID\"
|
|
15984
|
+
* @param {number} [perPage] Number of items to return per page
|
|
15985
|
+
* @param {number} [page] Page number
|
|
15986
|
+
* @param {*} [options] Override http request option.
|
|
15987
|
+
* @throws {RequiredError}
|
|
15988
|
+
* @memberof BillingApi
|
|
15989
|
+
*/
|
|
15990
|
+
public getImageGenerationBillingHistory(startDate?: string, endDate?: string, search?: string, perPage?: number, page?: number, options?: RawAxiosRequestConfig) {
|
|
15991
|
+
return BillingApiFp(this.configuration).getImageGenerationBillingHistory(startDate, endDate, search, perPage, page, options).then((request) => request(this.axios, this.basePath));
|
|
15992
|
+
}
|
|
15993
|
+
|
|
15994
|
+
/**
|
|
15995
|
+
* User will receive hourly cost datapoints for an image generation job for a specified billing cycle. This data will include \'incurred_bill\' graph datapoints. billing cycle
|
|
15996
|
+
* @summary Retrieve hourly cost datapoints of a Specific Image Generation for a specific
|
|
15997
|
+
* @param {number} resourceId
|
|
15998
|
+
* @param {string} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
15999
|
+
* @param {string} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
16000
|
+
* @param {*} [options] Override http request option.
|
|
16001
|
+
* @throws {RequiredError}
|
|
16002
|
+
* @memberof BillingApi
|
|
16003
|
+
*/
|
|
16004
|
+
public getImageGenerationBillingHistoryGraph(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
|
|
16005
|
+
return BillingApiFp(this.configuration).getImageGenerationBillingHistoryGraph(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
16006
|
+
}
|
|
16007
|
+
|
|
16008
|
+
/**
|
|
16009
|
+
* Retrieve billing history for a specific Image Generation resource. Includes: \'resource_name\', \'infrahub_id\', \'base_model\', \'base_model_display_name\', \'lora_adapter\', \'incurred_bill\', \'non_discounted_bill\', \'usage_time\', \'input_tokens\', \'output_tokens\', \'input_tokens_incurred_bill\', \'input_tokens_non_discounted_bill\', \'output_tokens_incurred_bill\', \'output_tokens_non_discounted_bill\'
|
|
16010
|
+
* @param {number} resourceId
|
|
16011
|
+
* @param {string} [startDate] YYYY-MM-DDTHH:MM:SS
|
|
16012
|
+
* @param {string} [endDate] YYYY-MM-DDTHH:MM:SS
|
|
14668
16013
|
* @param {*} [options] Override http request option.
|
|
14669
16014
|
* @throws {RequiredError}
|
|
14670
16015
|
* @memberof BillingApi
|
|
14671
16016
|
*/
|
|
14672
|
-
public
|
|
14673
|
-
return BillingApiFp(this.configuration).
|
|
16017
|
+
public getImageGenerationHistoryForResource(resourceId: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) {
|
|
16018
|
+
return BillingApiFp(this.configuration).getImageGenerationHistoryForResource(resourceId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
14674
16019
|
}
|
|
14675
16020
|
|
|
14676
16021
|
/**
|
|
@@ -24612,32 +25957,284 @@ export class TemplateApi extends BaseAPI {
|
|
|
24612
25957
|
* @param {UpdateTemplate} payload
|
|
24613
25958
|
* @param {*} [options] Override http request option.
|
|
24614
25959
|
* @throws {RequiredError}
|
|
24615
|
-
* @memberof TemplateApi
|
|
25960
|
+
* @memberof TemplateApi
|
|
25961
|
+
*/
|
|
25962
|
+
public updateTemplate(id: number, payload: UpdateTemplate, options?: RawAxiosRequestConfig) {
|
|
25963
|
+
return TemplateApiFp(this.configuration).updateTemplate(id, payload, options).then((request) => request(this.axios, this.basePath));
|
|
25964
|
+
}
|
|
25965
|
+
}
|
|
25966
|
+
|
|
25967
|
+
|
|
25968
|
+
|
|
25969
|
+
/**
|
|
25970
|
+
* UserApi - axios parameter creator
|
|
25971
|
+
* @export
|
|
25972
|
+
*/
|
|
25973
|
+
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25974
|
+
return {
|
|
25975
|
+
/**
|
|
25976
|
+
* Add billing details associated with your user in the request body.
|
|
25977
|
+
* @summary POST: Insert billing info
|
|
25978
|
+
* @param {UserInfoPostPayload} payload
|
|
25979
|
+
* @param {*} [options] Override http request option.
|
|
25980
|
+
* @throws {RequiredError}
|
|
25981
|
+
*/
|
|
25982
|
+
addUserBillingInfo: async (payload: UserInfoPostPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25983
|
+
// verify required parameter 'payload' is not null or undefined
|
|
25984
|
+
assertParamExists('addUserBillingInfo', 'payload', payload)
|
|
25985
|
+
const localVarPath = `/billing/user/info`;
|
|
25986
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25987
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25988
|
+
let baseOptions;
|
|
25989
|
+
if (configuration) {
|
|
25990
|
+
baseOptions = configuration.baseOptions;
|
|
25991
|
+
}
|
|
25992
|
+
|
|
25993
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
25994
|
+
const localVarHeaderParameter = {} as any;
|
|
25995
|
+
const localVarQueryParameter = {} as any;
|
|
25996
|
+
|
|
25997
|
+
// authentication apiKey required
|
|
25998
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
25999
|
+
|
|
26000
|
+
|
|
26001
|
+
|
|
26002
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26003
|
+
|
|
26004
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26005
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26006
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26007
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
26008
|
+
|
|
26009
|
+
return {
|
|
26010
|
+
url: toPathString(localVarUrlObj),
|
|
26011
|
+
options: localVarRequestOptions,
|
|
26012
|
+
};
|
|
26013
|
+
},
|
|
26014
|
+
/**
|
|
26015
|
+
* Retrieve the billing details associated with your user.
|
|
26016
|
+
* @summary GET: Retrieve billing info
|
|
26017
|
+
* @param {*} [options] Override http request option.
|
|
26018
|
+
* @throws {RequiredError}
|
|
26019
|
+
*/
|
|
26020
|
+
getUserBillingInfo: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26021
|
+
const localVarPath = `/billing/user/info`;
|
|
26022
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26023
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26024
|
+
let baseOptions;
|
|
26025
|
+
if (configuration) {
|
|
26026
|
+
baseOptions = configuration.baseOptions;
|
|
26027
|
+
}
|
|
26028
|
+
|
|
26029
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26030
|
+
const localVarHeaderParameter = {} as any;
|
|
26031
|
+
const localVarQueryParameter = {} as any;
|
|
26032
|
+
|
|
26033
|
+
// authentication apiKey required
|
|
26034
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
26035
|
+
|
|
26036
|
+
|
|
26037
|
+
|
|
26038
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26039
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26040
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26041
|
+
|
|
26042
|
+
return {
|
|
26043
|
+
url: toPathString(localVarUrlObj),
|
|
26044
|
+
options: localVarRequestOptions,
|
|
26045
|
+
};
|
|
26046
|
+
},
|
|
26047
|
+
/**
|
|
26048
|
+
* Update the billing information for your user in the request body.
|
|
26049
|
+
* @summary PUT: Update billing info
|
|
26050
|
+
* @param {UserInfoPostPayload} payload
|
|
26051
|
+
* @param {*} [options] Override http request option.
|
|
26052
|
+
* @throws {RequiredError}
|
|
26053
|
+
*/
|
|
26054
|
+
updateUserBillingInfo: async (payload: UserInfoPostPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26055
|
+
// verify required parameter 'payload' is not null or undefined
|
|
26056
|
+
assertParamExists('updateUserBillingInfo', 'payload', payload)
|
|
26057
|
+
const localVarPath = `/billing/user/info`;
|
|
26058
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26059
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26060
|
+
let baseOptions;
|
|
26061
|
+
if (configuration) {
|
|
26062
|
+
baseOptions = configuration.baseOptions;
|
|
26063
|
+
}
|
|
26064
|
+
|
|
26065
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
26066
|
+
const localVarHeaderParameter = {} as any;
|
|
26067
|
+
const localVarQueryParameter = {} as any;
|
|
26068
|
+
|
|
26069
|
+
// authentication apiKey required
|
|
26070
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
26071
|
+
|
|
26072
|
+
|
|
26073
|
+
|
|
26074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26075
|
+
|
|
26076
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26078
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26079
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
|
|
26080
|
+
|
|
26081
|
+
return {
|
|
26082
|
+
url: toPathString(localVarUrlObj),
|
|
26083
|
+
options: localVarRequestOptions,
|
|
26084
|
+
};
|
|
26085
|
+
},
|
|
26086
|
+
}
|
|
26087
|
+
};
|
|
26088
|
+
|
|
26089
|
+
/**
|
|
26090
|
+
* UserApi - functional programming interface
|
|
26091
|
+
* @export
|
|
26092
|
+
*/
|
|
26093
|
+
export const UserApiFp = function(configuration?: Configuration) {
|
|
26094
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
26095
|
+
return {
|
|
26096
|
+
/**
|
|
26097
|
+
* Add billing details associated with your user in the request body.
|
|
26098
|
+
* @summary POST: Insert billing info
|
|
26099
|
+
* @param {UserInfoPostPayload} payload
|
|
26100
|
+
* @param {*} [options] Override http request option.
|
|
26101
|
+
* @throws {RequiredError}
|
|
26102
|
+
*/
|
|
26103
|
+
async addUserBillingInfo(payload: UserInfoPostPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddUserInfoSuccessResponseModel>> {
|
|
26104
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addUserBillingInfo(payload, options);
|
|
26105
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26106
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.addUserBillingInfo']?.[localVarOperationServerIndex]?.url;
|
|
26107
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26108
|
+
},
|
|
26109
|
+
/**
|
|
26110
|
+
* Retrieve the billing details associated with your user.
|
|
26111
|
+
* @summary GET: Retrieve billing info
|
|
26112
|
+
* @param {*} [options] Override http request option.
|
|
26113
|
+
* @throws {RequiredError}
|
|
26114
|
+
*/
|
|
26115
|
+
async getUserBillingInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UsersInfoListResponse>> {
|
|
26116
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBillingInfo(options);
|
|
26117
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26118
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserBillingInfo']?.[localVarOperationServerIndex]?.url;
|
|
26119
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26120
|
+
},
|
|
26121
|
+
/**
|
|
26122
|
+
* Update the billing information for your user in the request body.
|
|
26123
|
+
* @summary PUT: Update billing info
|
|
26124
|
+
* @param {UserInfoPostPayload} payload
|
|
26125
|
+
* @param {*} [options] Override http request option.
|
|
26126
|
+
* @throws {RequiredError}
|
|
26127
|
+
*/
|
|
26128
|
+
async updateUserBillingInfo(payload: UserInfoPostPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddUserInfoSuccessResponseModel>> {
|
|
26129
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserBillingInfo(payload, options);
|
|
26130
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26131
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.updateUserBillingInfo']?.[localVarOperationServerIndex]?.url;
|
|
26132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26133
|
+
},
|
|
26134
|
+
}
|
|
26135
|
+
};
|
|
26136
|
+
|
|
26137
|
+
/**
|
|
26138
|
+
* UserApi - factory interface
|
|
26139
|
+
* @export
|
|
26140
|
+
*/
|
|
26141
|
+
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26142
|
+
const localVarFp = UserApiFp(configuration)
|
|
26143
|
+
return {
|
|
26144
|
+
/**
|
|
26145
|
+
* Add billing details associated with your user in the request body.
|
|
26146
|
+
* @summary POST: Insert billing info
|
|
26147
|
+
* @param {UserInfoPostPayload} payload
|
|
26148
|
+
* @param {*} [options] Override http request option.
|
|
26149
|
+
* @throws {RequiredError}
|
|
26150
|
+
*/
|
|
26151
|
+
addUserBillingInfo(payload: UserInfoPostPayload, options?: RawAxiosRequestConfig): AxiosPromise<AddUserInfoSuccessResponseModel> {
|
|
26152
|
+
return localVarFp.addUserBillingInfo(payload, options).then((request) => request(axios, basePath));
|
|
26153
|
+
},
|
|
26154
|
+
/**
|
|
26155
|
+
* Retrieve the billing details associated with your user.
|
|
26156
|
+
* @summary GET: Retrieve billing info
|
|
26157
|
+
* @param {*} [options] Override http request option.
|
|
26158
|
+
* @throws {RequiredError}
|
|
26159
|
+
*/
|
|
26160
|
+
getUserBillingInfo(options?: RawAxiosRequestConfig): AxiosPromise<UsersInfoListResponse> {
|
|
26161
|
+
return localVarFp.getUserBillingInfo(options).then((request) => request(axios, basePath));
|
|
26162
|
+
},
|
|
26163
|
+
/**
|
|
26164
|
+
* Update the billing information for your user in the request body.
|
|
26165
|
+
* @summary PUT: Update billing info
|
|
26166
|
+
* @param {UserInfoPostPayload} payload
|
|
26167
|
+
* @param {*} [options] Override http request option.
|
|
26168
|
+
* @throws {RequiredError}
|
|
26169
|
+
*/
|
|
26170
|
+
updateUserBillingInfo(payload: UserInfoPostPayload, options?: RawAxiosRequestConfig): AxiosPromise<AddUserInfoSuccessResponseModel> {
|
|
26171
|
+
return localVarFp.updateUserBillingInfo(payload, options).then((request) => request(axios, basePath));
|
|
26172
|
+
},
|
|
26173
|
+
};
|
|
26174
|
+
};
|
|
26175
|
+
|
|
26176
|
+
/**
|
|
26177
|
+
* UserApi - object-oriented interface
|
|
26178
|
+
* @export
|
|
26179
|
+
* @class UserApi
|
|
26180
|
+
* @extends {BaseAPI}
|
|
26181
|
+
*/
|
|
26182
|
+
export class UserApi extends BaseAPI {
|
|
26183
|
+
/**
|
|
26184
|
+
* Add billing details associated with your user in the request body.
|
|
26185
|
+
* @summary POST: Insert billing info
|
|
26186
|
+
* @param {UserInfoPostPayload} payload
|
|
26187
|
+
* @param {*} [options] Override http request option.
|
|
26188
|
+
* @throws {RequiredError}
|
|
26189
|
+
* @memberof UserApi
|
|
26190
|
+
*/
|
|
26191
|
+
public addUserBillingInfo(payload: UserInfoPostPayload, options?: RawAxiosRequestConfig) {
|
|
26192
|
+
return UserApiFp(this.configuration).addUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
|
|
26193
|
+
}
|
|
26194
|
+
|
|
26195
|
+
/**
|
|
26196
|
+
* Retrieve the billing details associated with your user.
|
|
26197
|
+
* @summary GET: Retrieve billing info
|
|
26198
|
+
* @param {*} [options] Override http request option.
|
|
26199
|
+
* @throws {RequiredError}
|
|
26200
|
+
* @memberof UserApi
|
|
26201
|
+
*/
|
|
26202
|
+
public getUserBillingInfo(options?: RawAxiosRequestConfig) {
|
|
26203
|
+
return UserApiFp(this.configuration).getUserBillingInfo(options).then((request) => request(this.axios, this.basePath));
|
|
26204
|
+
}
|
|
26205
|
+
|
|
26206
|
+
/**
|
|
26207
|
+
* Update the billing information for your user in the request body.
|
|
26208
|
+
* @summary PUT: Update billing info
|
|
26209
|
+
* @param {UserInfoPostPayload} payload
|
|
26210
|
+
* @param {*} [options] Override http request option.
|
|
26211
|
+
* @throws {RequiredError}
|
|
26212
|
+
* @memberof UserApi
|
|
24616
26213
|
*/
|
|
24617
|
-
public
|
|
24618
|
-
return
|
|
26214
|
+
public updateUserBillingInfo(payload: UserInfoPostPayload, options?: RawAxiosRequestConfig) {
|
|
26215
|
+
return UserApiFp(this.configuration).updateUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
|
|
24619
26216
|
}
|
|
24620
26217
|
}
|
|
24621
26218
|
|
|
24622
26219
|
|
|
24623
26220
|
|
|
24624
26221
|
/**
|
|
24625
|
-
*
|
|
26222
|
+
* UserConsentApi - axios parameter creator
|
|
24626
26223
|
* @export
|
|
24627
26224
|
*/
|
|
24628
|
-
export const
|
|
26225
|
+
export const UserConsentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
24629
26226
|
return {
|
|
24630
26227
|
/**
|
|
24631
|
-
* Add
|
|
24632
|
-
* @summary
|
|
24633
|
-
* @param {
|
|
26228
|
+
* Add a new consent given by the User
|
|
26229
|
+
* @summary Add a new User consent
|
|
26230
|
+
* @param {RecordConsentRequest} payload
|
|
24634
26231
|
* @param {*} [options] Override http request option.
|
|
24635
26232
|
* @throws {RequiredError}
|
|
24636
26233
|
*/
|
|
24637
|
-
|
|
26234
|
+
addANewConsentForAUser: async (payload: RecordConsentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24638
26235
|
// verify required parameter 'payload' is not null or undefined
|
|
24639
|
-
assertParamExists('
|
|
24640
|
-
const localVarPath = `/
|
|
26236
|
+
assertParamExists('addANewConsentForAUser', 'payload', payload)
|
|
26237
|
+
const localVarPath = `/auth/user-consent`;
|
|
24641
26238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24642
26239
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24643
26240
|
let baseOptions;
|
|
@@ -24667,13 +26264,13 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
24667
26264
|
};
|
|
24668
26265
|
},
|
|
24669
26266
|
/**
|
|
24670
|
-
*
|
|
24671
|
-
* @summary
|
|
26267
|
+
* Returns current consent templates for all consent types
|
|
26268
|
+
* @summary Get all consent templates
|
|
24672
26269
|
* @param {*} [options] Override http request option.
|
|
24673
26270
|
* @throws {RequiredError}
|
|
24674
26271
|
*/
|
|
24675
|
-
|
|
24676
|
-
const localVarPath = `/
|
|
26272
|
+
getAllConsentTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26273
|
+
const localVarPath = `/auth/user-consent/templates`;
|
|
24677
26274
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24678
26275
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24679
26276
|
let baseOptions;
|
|
@@ -24700,16 +26297,95 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
24700
26297
|
};
|
|
24701
26298
|
},
|
|
24702
26299
|
/**
|
|
24703
|
-
*
|
|
24704
|
-
* @summary
|
|
24705
|
-
* @param {
|
|
26300
|
+
* Fetch all the recorded consents given from a User
|
|
26301
|
+
* @summary Get Consents for a User
|
|
26302
|
+
* @param {string} [consentType] Filter by consent type
|
|
24706
26303
|
* @param {*} [options] Override http request option.
|
|
24707
26304
|
* @throws {RequiredError}
|
|
24708
26305
|
*/
|
|
24709
|
-
|
|
26306
|
+
getAllConsentsForAUser: async (consentType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26307
|
+
const localVarPath = `/auth/user-consent`;
|
|
26308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26310
|
+
let baseOptions;
|
|
26311
|
+
if (configuration) {
|
|
26312
|
+
baseOptions = configuration.baseOptions;
|
|
26313
|
+
}
|
|
26314
|
+
|
|
26315
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26316
|
+
const localVarHeaderParameter = {} as any;
|
|
26317
|
+
const localVarQueryParameter = {} as any;
|
|
26318
|
+
|
|
26319
|
+
// authentication apiKey required
|
|
26320
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
26321
|
+
|
|
26322
|
+
if (consentType !== undefined) {
|
|
26323
|
+
localVarQueryParameter['consent_type'] = consentType;
|
|
26324
|
+
}
|
|
26325
|
+
|
|
26326
|
+
|
|
26327
|
+
|
|
26328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26331
|
+
|
|
26332
|
+
return {
|
|
26333
|
+
url: toPathString(localVarUrlObj),
|
|
26334
|
+
options: localVarRequestOptions,
|
|
26335
|
+
};
|
|
26336
|
+
},
|
|
26337
|
+
/**
|
|
26338
|
+
* Returns the current consent template for a specific consent type
|
|
26339
|
+
* @summary Get consent template for a specific type
|
|
26340
|
+
* @param {string} consentType
|
|
26341
|
+
* @param {*} [options] Override http request option.
|
|
26342
|
+
* @throws {RequiredError}
|
|
26343
|
+
*/
|
|
26344
|
+
getConsentTemplateByType: async (consentType: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26345
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
26346
|
+
assertParamExists('getConsentTemplateByType', 'consentType', consentType)
|
|
26347
|
+
const localVarPath = `/auth/user-consent/templates/{consent_type}`
|
|
26348
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
26349
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26350
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26351
|
+
let baseOptions;
|
|
26352
|
+
if (configuration) {
|
|
26353
|
+
baseOptions = configuration.baseOptions;
|
|
26354
|
+
}
|
|
26355
|
+
|
|
26356
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26357
|
+
const localVarHeaderParameter = {} as any;
|
|
26358
|
+
const localVarQueryParameter = {} as any;
|
|
26359
|
+
|
|
26360
|
+
// authentication apiKey required
|
|
26361
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
26362
|
+
|
|
26363
|
+
|
|
26364
|
+
|
|
26365
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26366
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26367
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26368
|
+
|
|
26369
|
+
return {
|
|
26370
|
+
url: toPathString(localVarUrlObj),
|
|
26371
|
+
options: localVarRequestOptions,
|
|
26372
|
+
};
|
|
26373
|
+
},
|
|
26374
|
+
/**
|
|
26375
|
+
* Revoke or grant a consent to the User
|
|
26376
|
+
* @summary Grant or revoke an existing consent
|
|
26377
|
+
* @param {string} consentType
|
|
26378
|
+
* @param {UpdateConsentRequest} payload
|
|
26379
|
+
* @param {*} [options] Override http request option.
|
|
26380
|
+
* @throws {RequiredError}
|
|
26381
|
+
*/
|
|
26382
|
+
updateAConsentActionByType: async (consentType: string, payload: UpdateConsentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26383
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
26384
|
+
assertParamExists('updateAConsentActionByType', 'consentType', consentType)
|
|
24710
26385
|
// verify required parameter 'payload' is not null or undefined
|
|
24711
|
-
assertParamExists('
|
|
24712
|
-
const localVarPath = `/
|
|
26386
|
+
assertParamExists('updateAConsentActionByType', 'payload', payload)
|
|
26387
|
+
const localVarPath = `/auth/user-consent/{consent_type}`
|
|
26388
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
24713
26389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24714
26390
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24715
26391
|
let baseOptions;
|
|
@@ -24717,7 +26393,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
24717
26393
|
baseOptions = configuration.baseOptions;
|
|
24718
26394
|
}
|
|
24719
26395
|
|
|
24720
|
-
const localVarRequestOptions = { method: '
|
|
26396
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
24721
26397
|
const localVarHeaderParameter = {} as any;
|
|
24722
26398
|
const localVarQueryParameter = {} as any;
|
|
24723
26399
|
|
|
@@ -24742,132 +26418,316 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
24742
26418
|
};
|
|
24743
26419
|
|
|
24744
26420
|
/**
|
|
24745
|
-
*
|
|
26421
|
+
* UserConsentApi - functional programming interface
|
|
24746
26422
|
* @export
|
|
24747
26423
|
*/
|
|
24748
|
-
export const
|
|
24749
|
-
const localVarAxiosParamCreator =
|
|
26424
|
+
export const UserConsentApiFp = function(configuration?: Configuration) {
|
|
26425
|
+
const localVarAxiosParamCreator = UserConsentApiAxiosParamCreator(configuration)
|
|
24750
26426
|
return {
|
|
24751
26427
|
/**
|
|
24752
|
-
* Add
|
|
24753
|
-
* @summary
|
|
24754
|
-
* @param {
|
|
26428
|
+
* Add a new consent given by the User
|
|
26429
|
+
* @summary Add a new User consent
|
|
26430
|
+
* @param {RecordConsentRequest} payload
|
|
24755
26431
|
* @param {*} [options] Override http request option.
|
|
24756
26432
|
* @throws {RequiredError}
|
|
24757
26433
|
*/
|
|
24758
|
-
async
|
|
24759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26434
|
+
async addANewConsentForAUser(payload: RecordConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsentActionResponse>> {
|
|
26435
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addANewConsentForAUser(payload, options);
|
|
24760
26436
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24761
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
26437
|
+
const localVarOperationServerBasePath = operationServerMap['UserConsentApi.addANewConsentForAUser']?.[localVarOperationServerIndex]?.url;
|
|
24762
26438
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24763
26439
|
},
|
|
24764
26440
|
/**
|
|
24765
|
-
*
|
|
24766
|
-
* @summary
|
|
26441
|
+
* Returns current consent templates for all consent types
|
|
26442
|
+
* @summary Get all consent templates
|
|
24767
26443
|
* @param {*} [options] Override http request option.
|
|
24768
26444
|
* @throws {RequiredError}
|
|
24769
26445
|
*/
|
|
24770
|
-
async
|
|
24771
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26446
|
+
async getAllConsentTemplates(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsentTemplatesResponse>> {
|
|
26447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllConsentTemplates(options);
|
|
24772
26448
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24773
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
26449
|
+
const localVarOperationServerBasePath = operationServerMap['UserConsentApi.getAllConsentTemplates']?.[localVarOperationServerIndex]?.url;
|
|
24774
26450
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24775
26451
|
},
|
|
24776
26452
|
/**
|
|
24777
|
-
*
|
|
24778
|
-
* @summary
|
|
24779
|
-
* @param {
|
|
26453
|
+
* Fetch all the recorded consents given from a User
|
|
26454
|
+
* @summary Get Consents for a User
|
|
26455
|
+
* @param {string} [consentType] Filter by consent type
|
|
24780
26456
|
* @param {*} [options] Override http request option.
|
|
24781
26457
|
* @throws {RequiredError}
|
|
24782
26458
|
*/
|
|
24783
|
-
async
|
|
24784
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
26459
|
+
async getAllConsentsForAUser(consentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserConsentsResponse>> {
|
|
26460
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllConsentsForAUser(consentType, options);
|
|
24785
26461
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24786
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
26462
|
+
const localVarOperationServerBasePath = operationServerMap['UserConsentApi.getAllConsentsForAUser']?.[localVarOperationServerIndex]?.url;
|
|
26463
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26464
|
+
},
|
|
26465
|
+
/**
|
|
26466
|
+
* Returns the current consent template for a specific consent type
|
|
26467
|
+
* @summary Get consent template for a specific type
|
|
26468
|
+
* @param {string} consentType
|
|
26469
|
+
* @param {*} [options] Override http request option.
|
|
26470
|
+
* @throws {RequiredError}
|
|
26471
|
+
*/
|
|
26472
|
+
async getConsentTemplateByType(consentType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsentTemplate>> {
|
|
26473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConsentTemplateByType(consentType, options);
|
|
26474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26475
|
+
const localVarOperationServerBasePath = operationServerMap['UserConsentApi.getConsentTemplateByType']?.[localVarOperationServerIndex]?.url;
|
|
26476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26477
|
+
},
|
|
26478
|
+
/**
|
|
26479
|
+
* Revoke or grant a consent to the User
|
|
26480
|
+
* @summary Grant or revoke an existing consent
|
|
26481
|
+
* @param {string} consentType
|
|
26482
|
+
* @param {UpdateConsentRequest} payload
|
|
26483
|
+
* @param {*} [options] Override http request option.
|
|
26484
|
+
* @throws {RequiredError}
|
|
26485
|
+
*/
|
|
26486
|
+
async updateAConsentActionByType(consentType: string, payload: UpdateConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsentActionResponse>> {
|
|
26487
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAConsentActionByType(consentType, payload, options);
|
|
26488
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26489
|
+
const localVarOperationServerBasePath = operationServerMap['UserConsentApi.updateAConsentActionByType']?.[localVarOperationServerIndex]?.url;
|
|
24787
26490
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24788
26491
|
},
|
|
24789
26492
|
}
|
|
24790
26493
|
};
|
|
24791
26494
|
|
|
24792
26495
|
/**
|
|
24793
|
-
*
|
|
26496
|
+
* UserConsentApi - factory interface
|
|
24794
26497
|
* @export
|
|
24795
26498
|
*/
|
|
24796
|
-
export const
|
|
24797
|
-
const localVarFp =
|
|
26499
|
+
export const UserConsentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26500
|
+
const localVarFp = UserConsentApiFp(configuration)
|
|
24798
26501
|
return {
|
|
24799
26502
|
/**
|
|
24800
|
-
* Add
|
|
24801
|
-
* @summary
|
|
24802
|
-
* @param {
|
|
26503
|
+
* Add a new consent given by the User
|
|
26504
|
+
* @summary Add a new User consent
|
|
26505
|
+
* @param {RecordConsentRequest} payload
|
|
24803
26506
|
* @param {*} [options] Override http request option.
|
|
24804
26507
|
* @throws {RequiredError}
|
|
24805
26508
|
*/
|
|
24806
|
-
|
|
24807
|
-
return localVarFp.
|
|
26509
|
+
addANewConsentForAUser(payload: RecordConsentRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConsentActionResponse> {
|
|
26510
|
+
return localVarFp.addANewConsentForAUser(payload, options).then((request) => request(axios, basePath));
|
|
24808
26511
|
},
|
|
24809
26512
|
/**
|
|
24810
|
-
*
|
|
24811
|
-
* @summary
|
|
26513
|
+
* Returns current consent templates for all consent types
|
|
26514
|
+
* @summary Get all consent templates
|
|
24812
26515
|
* @param {*} [options] Override http request option.
|
|
24813
26516
|
* @throws {RequiredError}
|
|
24814
26517
|
*/
|
|
24815
|
-
|
|
24816
|
-
return localVarFp.
|
|
26518
|
+
getAllConsentTemplates(options?: RawAxiosRequestConfig): AxiosPromise<ConsentTemplatesResponse> {
|
|
26519
|
+
return localVarFp.getAllConsentTemplates(options).then((request) => request(axios, basePath));
|
|
24817
26520
|
},
|
|
24818
26521
|
/**
|
|
24819
|
-
*
|
|
24820
|
-
* @summary
|
|
24821
|
-
* @param {
|
|
26522
|
+
* Fetch all the recorded consents given from a User
|
|
26523
|
+
* @summary Get Consents for a User
|
|
26524
|
+
* @param {string} [consentType] Filter by consent type
|
|
24822
26525
|
* @param {*} [options] Override http request option.
|
|
24823
26526
|
* @throws {RequiredError}
|
|
24824
26527
|
*/
|
|
24825
|
-
|
|
24826
|
-
return localVarFp.
|
|
26528
|
+
getAllConsentsForAUser(consentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserConsentsResponse> {
|
|
26529
|
+
return localVarFp.getAllConsentsForAUser(consentType, options).then((request) => request(axios, basePath));
|
|
26530
|
+
},
|
|
26531
|
+
/**
|
|
26532
|
+
* Returns the current consent template for a specific consent type
|
|
26533
|
+
* @summary Get consent template for a specific type
|
|
26534
|
+
* @param {string} consentType
|
|
26535
|
+
* @param {*} [options] Override http request option.
|
|
26536
|
+
* @throws {RequiredError}
|
|
26537
|
+
*/
|
|
26538
|
+
getConsentTemplateByType(consentType: string, options?: RawAxiosRequestConfig): AxiosPromise<ConsentTemplate> {
|
|
26539
|
+
return localVarFp.getConsentTemplateByType(consentType, options).then((request) => request(axios, basePath));
|
|
26540
|
+
},
|
|
26541
|
+
/**
|
|
26542
|
+
* Revoke or grant a consent to the User
|
|
26543
|
+
* @summary Grant or revoke an existing consent
|
|
26544
|
+
* @param {string} consentType
|
|
26545
|
+
* @param {UpdateConsentRequest} payload
|
|
26546
|
+
* @param {*} [options] Override http request option.
|
|
26547
|
+
* @throws {RequiredError}
|
|
26548
|
+
*/
|
|
26549
|
+
updateAConsentActionByType(consentType: string, payload: UpdateConsentRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConsentActionResponse> {
|
|
26550
|
+
return localVarFp.updateAConsentActionByType(consentType, payload, options).then((request) => request(axios, basePath));
|
|
24827
26551
|
},
|
|
24828
26552
|
};
|
|
24829
26553
|
};
|
|
24830
26554
|
|
|
24831
26555
|
/**
|
|
24832
|
-
*
|
|
26556
|
+
* UserConsentApi - object-oriented interface
|
|
24833
26557
|
* @export
|
|
24834
|
-
* @class
|
|
26558
|
+
* @class UserConsentApi
|
|
24835
26559
|
* @extends {BaseAPI}
|
|
24836
26560
|
*/
|
|
24837
|
-
export class
|
|
26561
|
+
export class UserConsentApi extends BaseAPI {
|
|
24838
26562
|
/**
|
|
24839
|
-
* Add
|
|
24840
|
-
* @summary
|
|
24841
|
-
* @param {
|
|
26563
|
+
* Add a new consent given by the User
|
|
26564
|
+
* @summary Add a new User consent
|
|
26565
|
+
* @param {RecordConsentRequest} payload
|
|
24842
26566
|
* @param {*} [options] Override http request option.
|
|
24843
26567
|
* @throws {RequiredError}
|
|
24844
|
-
* @memberof
|
|
26568
|
+
* @memberof UserConsentApi
|
|
24845
26569
|
*/
|
|
24846
|
-
public
|
|
24847
|
-
return
|
|
26570
|
+
public addANewConsentForAUser(payload: RecordConsentRequest, options?: RawAxiosRequestConfig) {
|
|
26571
|
+
return UserConsentApiFp(this.configuration).addANewConsentForAUser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
24848
26572
|
}
|
|
24849
26573
|
|
|
24850
26574
|
/**
|
|
24851
|
-
*
|
|
24852
|
-
* @summary
|
|
26575
|
+
* Returns current consent templates for all consent types
|
|
26576
|
+
* @summary Get all consent templates
|
|
24853
26577
|
* @param {*} [options] Override http request option.
|
|
24854
26578
|
* @throws {RequiredError}
|
|
24855
|
-
* @memberof
|
|
26579
|
+
* @memberof UserConsentApi
|
|
24856
26580
|
*/
|
|
24857
|
-
public
|
|
24858
|
-
return
|
|
26581
|
+
public getAllConsentTemplates(options?: RawAxiosRequestConfig) {
|
|
26582
|
+
return UserConsentApiFp(this.configuration).getAllConsentTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
24859
26583
|
}
|
|
24860
26584
|
|
|
24861
26585
|
/**
|
|
24862
|
-
*
|
|
24863
|
-
* @summary
|
|
24864
|
-
* @param {
|
|
26586
|
+
* Fetch all the recorded consents given from a User
|
|
26587
|
+
* @summary Get Consents for a User
|
|
26588
|
+
* @param {string} [consentType] Filter by consent type
|
|
24865
26589
|
* @param {*} [options] Override http request option.
|
|
24866
26590
|
* @throws {RequiredError}
|
|
24867
|
-
* @memberof
|
|
26591
|
+
* @memberof UserConsentApi
|
|
24868
26592
|
*/
|
|
24869
|
-
public
|
|
24870
|
-
return
|
|
26593
|
+
public getAllConsentsForAUser(consentType?: string, options?: RawAxiosRequestConfig) {
|
|
26594
|
+
return UserConsentApiFp(this.configuration).getAllConsentsForAUser(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
26595
|
+
}
|
|
26596
|
+
|
|
26597
|
+
/**
|
|
26598
|
+
* Returns the current consent template for a specific consent type
|
|
26599
|
+
* @summary Get consent template for a specific type
|
|
26600
|
+
* @param {string} consentType
|
|
26601
|
+
* @param {*} [options] Override http request option.
|
|
26602
|
+
* @throws {RequiredError}
|
|
26603
|
+
* @memberof UserConsentApi
|
|
26604
|
+
*/
|
|
26605
|
+
public getConsentTemplateByType(consentType: string, options?: RawAxiosRequestConfig) {
|
|
26606
|
+
return UserConsentApiFp(this.configuration).getConsentTemplateByType(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
26607
|
+
}
|
|
26608
|
+
|
|
26609
|
+
/**
|
|
26610
|
+
* Revoke or grant a consent to the User
|
|
26611
|
+
* @summary Grant or revoke an existing consent
|
|
26612
|
+
* @param {string} consentType
|
|
26613
|
+
* @param {UpdateConsentRequest} payload
|
|
26614
|
+
* @param {*} [options] Override http request option.
|
|
26615
|
+
* @throws {RequiredError}
|
|
26616
|
+
* @memberof UserConsentApi
|
|
26617
|
+
*/
|
|
26618
|
+
public updateAConsentActionByType(consentType: string, payload: UpdateConsentRequest, options?: RawAxiosRequestConfig) {
|
|
26619
|
+
return UserConsentApiFp(this.configuration).updateAConsentActionByType(consentType, payload, options).then((request) => request(this.axios, this.basePath));
|
|
26620
|
+
}
|
|
26621
|
+
}
|
|
26622
|
+
|
|
26623
|
+
|
|
26624
|
+
|
|
26625
|
+
/**
|
|
26626
|
+
* UserConsentEventsApi - axios parameter creator
|
|
26627
|
+
* @export
|
|
26628
|
+
*/
|
|
26629
|
+
export const UserConsentEventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26630
|
+
return {
|
|
26631
|
+
/**
|
|
26632
|
+
* Get all consent audit events
|
|
26633
|
+
* @summary Get audit trail for a consent
|
|
26634
|
+
* @param {string} consentType
|
|
26635
|
+
* @param {*} [options] Override http request option.
|
|
26636
|
+
* @throws {RequiredError}
|
|
26637
|
+
*/
|
|
26638
|
+
getConsentAuditEvents: async (consentType: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26639
|
+
// verify required parameter 'consentType' is not null or undefined
|
|
26640
|
+
assertParamExists('getConsentAuditEvents', 'consentType', consentType)
|
|
26641
|
+
const localVarPath = `/auth/user-consent-events/{consent_type}/events`
|
|
26642
|
+
.replace(`{${"consent_type"}}`, encodeURIComponent(String(consentType)));
|
|
26643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26645
|
+
let baseOptions;
|
|
26646
|
+
if (configuration) {
|
|
26647
|
+
baseOptions = configuration.baseOptions;
|
|
26648
|
+
}
|
|
26649
|
+
|
|
26650
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26651
|
+
const localVarHeaderParameter = {} as any;
|
|
26652
|
+
const localVarQueryParameter = {} as any;
|
|
26653
|
+
|
|
26654
|
+
// authentication apiKey required
|
|
26655
|
+
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
26656
|
+
|
|
26657
|
+
|
|
26658
|
+
|
|
26659
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26661
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26662
|
+
|
|
26663
|
+
return {
|
|
26664
|
+
url: toPathString(localVarUrlObj),
|
|
26665
|
+
options: localVarRequestOptions,
|
|
26666
|
+
};
|
|
26667
|
+
},
|
|
26668
|
+
}
|
|
26669
|
+
};
|
|
26670
|
+
|
|
26671
|
+
/**
|
|
26672
|
+
* UserConsentEventsApi - functional programming interface
|
|
26673
|
+
* @export
|
|
26674
|
+
*/
|
|
26675
|
+
export const UserConsentEventsApiFp = function(configuration?: Configuration) {
|
|
26676
|
+
const localVarAxiosParamCreator = UserConsentEventsApiAxiosParamCreator(configuration)
|
|
26677
|
+
return {
|
|
26678
|
+
/**
|
|
26679
|
+
* Get all consent audit events
|
|
26680
|
+
* @summary Get audit trail for a consent
|
|
26681
|
+
* @param {string} consentType
|
|
26682
|
+
* @param {*} [options] Override http request option.
|
|
26683
|
+
* @throws {RequiredError}
|
|
26684
|
+
*/
|
|
26685
|
+
async getConsentAuditEvents(consentType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsentEventsResponse>> {
|
|
26686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConsentAuditEvents(consentType, options);
|
|
26687
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26688
|
+
const localVarOperationServerBasePath = operationServerMap['UserConsentEventsApi.getConsentAuditEvents']?.[localVarOperationServerIndex]?.url;
|
|
26689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26690
|
+
},
|
|
26691
|
+
}
|
|
26692
|
+
};
|
|
26693
|
+
|
|
26694
|
+
/**
|
|
26695
|
+
* UserConsentEventsApi - factory interface
|
|
26696
|
+
* @export
|
|
26697
|
+
*/
|
|
26698
|
+
export const UserConsentEventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26699
|
+
const localVarFp = UserConsentEventsApiFp(configuration)
|
|
26700
|
+
return {
|
|
26701
|
+
/**
|
|
26702
|
+
* Get all consent audit events
|
|
26703
|
+
* @summary Get audit trail for a consent
|
|
26704
|
+
* @param {string} consentType
|
|
26705
|
+
* @param {*} [options] Override http request option.
|
|
26706
|
+
* @throws {RequiredError}
|
|
26707
|
+
*/
|
|
26708
|
+
getConsentAuditEvents(consentType: string, options?: RawAxiosRequestConfig): AxiosPromise<ConsentEventsResponse> {
|
|
26709
|
+
return localVarFp.getConsentAuditEvents(consentType, options).then((request) => request(axios, basePath));
|
|
26710
|
+
},
|
|
26711
|
+
};
|
|
26712
|
+
};
|
|
26713
|
+
|
|
26714
|
+
/**
|
|
26715
|
+
* UserConsentEventsApi - object-oriented interface
|
|
26716
|
+
* @export
|
|
26717
|
+
* @class UserConsentEventsApi
|
|
26718
|
+
* @extends {BaseAPI}
|
|
26719
|
+
*/
|
|
26720
|
+
export class UserConsentEventsApi extends BaseAPI {
|
|
26721
|
+
/**
|
|
26722
|
+
* Get all consent audit events
|
|
26723
|
+
* @summary Get audit trail for a consent
|
|
26724
|
+
* @param {string} consentType
|
|
26725
|
+
* @param {*} [options] Override http request option.
|
|
26726
|
+
* @throws {RequiredError}
|
|
26727
|
+
* @memberof UserConsentEventsApi
|
|
26728
|
+
*/
|
|
26729
|
+
public getConsentAuditEvents(consentType: string, options?: RawAxiosRequestConfig) {
|
|
26730
|
+
return UserConsentEventsApiFp(this.configuration).getConsentAuditEvents(consentType, options).then((request) => request(this.axios, this.basePath));
|
|
24871
26731
|
}
|
|
24872
26732
|
}
|
|
24873
26733
|
|