@maxim_mazurok/gapi.client.cloudbilling-v1beta 0.1.20260313 → 0.2.20260529

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.
Files changed (3) hide show
  1. package/index.d.ts +335 -40
  2. package/package.json +1 -1
  3. package/readme.md +22 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://cloudbilling.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20260313
12
+ // Revision: 20260529
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,15 +28,101 @@ declare namespace gapi.client {
28
28
  ): void;
29
29
 
30
30
  namespace cloudbilling {
31
+ interface AgenticQueryInfo {
32
+ /** The columns queried. */
33
+ columns?: string;
34
+ /** The filter applied to the query. */
35
+ filter?: string;
36
+ /** The group-by clause applied to the query. */
37
+ groupBy?: string;
38
+ /** The row limit applied to the query. */
39
+ limit?: number;
40
+ /** The order-by clause applied to the query. */
41
+ orderBy?: string;
42
+ /** The parents (e.g. projects, billing accounts) queried. */
43
+ parents?: string[];
44
+ /** The view queried. */
45
+ view?: string;
46
+ }
47
+ interface Array {
48
+ /** The elements of the array. */
49
+ element?: ValueProto[];
50
+ }
51
+ interface BillingData {
52
+ /** Information about columns. */
53
+ columnInfo?: ColumnInfo[];
54
+ /** Rows. */
55
+ rows?: Row[];
56
+ }
57
+ interface BillingDataResource {
58
+ /** Optional. If not provided the billing account currently associated with the resource will be used. */
59
+ billingAccount?: string;
60
+ /** Required. Resource name for an entitity that can be used for authorization to access billing data such as `projects/{project}` or `billingAccounts/{billing_account}` */
61
+ resource?: string;
62
+ }
63
+ interface ColumnInfo {
64
+ /** Name of the column. */
65
+ column?: string;
66
+ }
67
+ interface DataSet {
68
+ /** Output only. Actual billing data returned from the Data Mart. Uses the formal message from the Billing Data Service. */
69
+ billingData?: BillingData;
70
+ /** Output only. The query used to fetch this data. */
71
+ queryInfo?: AgenticQueryInfo;
72
+ /** Output only. A suggested chart for the data set, used for UI rendering. */
73
+ suggestedChart?: SuggestedChart;
74
+ }
75
+ interface Datetime {
76
+ /** Represents bit field encoding of year/month/day/hour/minute/second. See class DatetimeValue in civil_time.h for details of encoding. */
77
+ bitFieldDatetimeSeconds?: string;
78
+ /** Non-negative fractions of a second at nanosecond resolution. */
79
+ nanos?: number;
80
+ }
31
81
  interface Decimal {
32
82
  /** The decimal value, as a string. The string representation consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits ("the integer"), optionally followed by a fraction, optionally followed by an exponent. An empty string **should** be interpreted as `0`. The fraction consists of a decimal point followed by zero or more decimal digits. The string must contain at least one digit in either the integer or the fraction. The number formed by the sign, the integer and the fraction is referred to as the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal digits. Services **should** normalize decimal values before storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-case, with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). Services **may** perform additional normalization based on its own needs and the internal decimal implementation selected, such as shifting the decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). Additionally, services **may** preserve trailing zeroes in the fraction to indicate increased precision, but are not required to do so. Note that only the `.` character is supported to divide the integer and the fraction; `,` **should not** be supported regardless of locale. Additionally, thousand separators **should not** be supported. If a service does support them, values **must** be normalized. The ENBF grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range of supported values, the maximum supported precision (total number of digits), and, if applicable, the scale (number of digits after the decimal point), as well as how it behaves when receiving out-of-bounds values. Services **may** choose to accept values passed as input even when the value has a higher precision or scale than the service supports, and **should** round the value to fit the supported scale. Alternatively, the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of the supported range. */
33
83
  value?: string;
34
84
  }
85
+ interface FinalResult {
86
+ /** Output only. Data sets used to support the insights, suitable for UI rendering (tables/charts). */
87
+ dataSets?: DataSet[];
88
+ /** Output only. Contains the full natural language analysis, including thoughts, reasoning, and references. */
89
+ fullAnalysis?: string;
90
+ /** Output only. A list of discrete insights gleaned from the data. */
91
+ insights?: Insight[];
92
+ /** Output only. Links to interoperable tools (e.g., pre-filtered Cost Reports or BQE queries). */
93
+ interopLinks?: InteropLink[];
94
+ /** Output only. A list of suggested follow-up queries for the user. */
95
+ suggestedQueries?: SuggestedQuery[];
96
+ /** Output only. The full natural language summary (re-sent for consistency). */
97
+ summary?: string;
98
+ }
99
+ interface GenerateInsightsRequest {
100
+ /** Optional. Filters cost data by service id. Follows https://google.aip.dev/160 for the filter syntax. eg. filter: "service = 'C7E2-9256-1C43'" */
101
+ filter?: string;
102
+ /** Optional. Overrides the maximum iterations for any selected strategy. */
103
+ overriddenMaxIterationCounts?: number;
104
+ /** Optional. The billing account or projects to analyze. */
105
+ parents?: BillingDataResource[];
106
+ /** Required. The natural language prompt from the user. */
107
+ prompt?: string;
108
+ /** Optional. Additional context for personalization (e.g., user persona, role). */
109
+ userContext?: UserContext;
110
+ }
111
+ interface GenerateInsightsResponse {
112
+ /** Output only. The final structured results and metadata. Usually sent as the final message in the stream. */
113
+ finalResult?: FinalResult;
114
+ /** Output only. The request was rejected (e.g. out of scope). */
115
+ rejection?: Rejection;
116
+ /** Output only. A chunk of the natural language summary (customer-facing). The UI can append these chunks to provide a real-time "typing" effect. */
117
+ summaryChunk?: string;
118
+ /** Output only. A chunk of the agent's internal reasoning process. The UI can use this to render a "Thinking..." log or status. */
119
+ thoughtChunk?: string;
120
+ }
35
121
  interface GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo {
36
122
  /** Interval at which usage is aggregated to compute cost. Example: "MONTHLY" interval indicates that usage is aggregated every month. */
37
- interval?: string;
123
+ interval?: 'INTERVAL_UNSPECIFIED' | 'INTERVAL_MONTHLY' | 'INTERVAL_DAILY';
38
124
  /** Level at which usage is aggregated to compute cost. Example: "ACCOUNT" level indicates that usage is aggregated across all projects in a single account. */
39
- level?: string;
125
+ level?: 'LEVEL_UNSPECIFIED' | 'LEVEL_ACCOUNT' | 'LEVEL_PROJECT';
40
126
  }
41
127
  interface GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice {
42
128
  /** ISO-4217 currency code for the price. */
@@ -162,7 +248,11 @@ declare namespace gapi.client {
162
248
  /** Regional geographic metadata with 1 region. */
163
249
  regionalMetadata?: GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional;
164
250
  /** Type of geographic taxonomy associated with the billing account SKU group SKU. */
165
- type?: string;
251
+ type?:
252
+ | 'TYPE_UNSPECIFIED'
253
+ | 'TYPE_GLOBAL'
254
+ | 'TYPE_REGIONAL'
255
+ | 'TYPE_MULTI_REGIONAL';
166
256
  }
167
257
  interface GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal {}
168
258
  interface GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional {
@@ -225,7 +315,11 @@ declare namespace gapi.client {
225
315
  /** Regional geographic metadata with 1 region. */
226
316
  regionalMetadata?: GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional;
227
317
  /** Type of geographic taxonomy associated with the billing account SKU. */
228
- type?: string;
318
+ type?:
319
+ | 'TYPE_UNSPECIFIED'
320
+ | 'TYPE_GLOBAL'
321
+ | 'TYPE_REGIONAL'
322
+ | 'TYPE_MULTI_REGIONAL';
229
323
  }
230
324
  interface GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal {}
231
325
  interface GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional {
@@ -256,9 +350,9 @@ declare namespace gapi.client {
256
350
  }
257
351
  interface GoogleCloudBillingPricesV1betaAggregationInfo {
258
352
  /** Interval at which usage is aggregated to compute cost. Example: "MONTHLY" interval indicates that usage is aggregated every month. */
259
- interval?: string;
353
+ interval?: 'INTERVAL_UNSPECIFIED' | 'INTERVAL_MONTHLY' | 'INTERVAL_DAILY';
260
354
  /** Level at which usage is aggregated to compute cost. Example: "ACCOUNT" level indicates that usage is aggregated across all projects in a single account. */
261
- level?: string;
355
+ level?: 'LEVEL_UNSPECIFIED' | 'LEVEL_ACCOUNT' | 'LEVEL_PROJECT';
262
356
  }
263
357
  interface GoogleCloudBillingPricesV1betaListPricesResponse {
264
358
  /** Token that can be sent as `page_token` in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages. */
@@ -306,7 +400,11 @@ declare namespace gapi.client {
306
400
  /** Regional geographic metadata with 1 region. */
307
401
  regionalMetadata?: GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional;
308
402
  /** Type of geographic taxonomy associated with the SKU group SKU. */
309
- type?: string;
403
+ type?:
404
+ | 'TYPE_UNSPECIFIED'
405
+ | 'TYPE_GLOBAL'
406
+ | 'TYPE_REGIONAL'
407
+ | 'TYPE_MULTI_REGIONAL';
310
408
  }
311
409
  interface GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal {}
312
410
  interface GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional {
@@ -361,6 +459,36 @@ declare namespace gapi.client {
361
459
  /** Resource name for the SKU group. Example: "skuGroups/0e6403d1-4694-44d2-a696-7a78b1a69301". */
362
460
  name?: string;
363
461
  }
462
+ interface Insight {
463
+ /** Output only. The description of the insight. */
464
+ description?: string;
465
+ /** Output only. The severity of the insight, used for UI rendering (e.g., color-coding). */
466
+ severity?: 'SEVERITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'CRITICAL';
467
+ /** Output only. The title of the insight. */
468
+ title?: string;
469
+ }
470
+ interface InteropLink {
471
+ /** Output only. The label of the link, suitable for UI rendering. */
472
+ label?: string;
473
+ /** Output only. The type of the interop link, e.g., "COST_REPORT", "BQE_QUERY", etc. */
474
+ linkType?:
475
+ | 'LINK_TYPE_UNSPECIFIED'
476
+ | 'COST_REPORT'
477
+ | 'BQE_QUERY'
478
+ | 'FINOPS_HUB';
479
+ /** Output only. The URL of the link. */
480
+ url?: string;
481
+ }
482
+ interface Map {
483
+ /** Represents the map entries in the map. */
484
+ entry?: MapEntry[];
485
+ }
486
+ interface MapEntry {
487
+ /** Represents the serialized map key for the entry. */
488
+ key?: ValueProto;
489
+ /** Represents the serialized map value of the entry. */
490
+ value?: ValueProto;
491
+ }
364
492
  interface Money {
365
493
  /** The three-letter currency code defined in ISO 4217. */
366
494
  currencyCode?: string;
@@ -369,15 +497,124 @@ declare namespace gapi.client {
369
497
  /** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
370
498
  units?: string;
371
499
  }
500
+ interface Range {
501
+ /** Represents the end of the range. */
502
+ end?: ValueProto;
503
+ /** Represents the start of the range. */
504
+ start?: ValueProto;
505
+ }
506
+ interface Rejection {
507
+ /** Output only. A user-facing message explaining the rejection. */
508
+ displayMessage?: string;
509
+ /** Output only. The reason for the rejection. */
510
+ reason?: 'REASON_UNSPECIFIED' | 'EXPLICIT_OUT_OF_SCOPE';
511
+ }
512
+ interface Row {
513
+ /** Values for a row in the column order. */
514
+ values?: ValueProto[];
515
+ }
516
+ interface Struct {
517
+ /** The fields in the struct */
518
+ field?: ValueProto[];
519
+ }
520
+ interface SuggestedChart {
521
+ /** The title of the chart. */
522
+ chartTitle?: string;
523
+ /** The type of the chart. */
524
+ chartType?:
525
+ | 'CHART_TYPE_UNSPECIFIED'
526
+ | 'BAR_CHART'
527
+ | 'UNCHARTABLE'
528
+ | 'LINE_CHART'
529
+ | 'AREA_CHART';
530
+ /** The field used for the series (e.g., color-coding). Optional, but recommended for time-series data. */
531
+ seriesField?: string;
532
+ /** The field used for the x-axis. */
533
+ xAxisField?: string;
534
+ /** The label of the x-axis. */
535
+ xAxisLabel?: string;
536
+ /** The field used for the y-axis. */
537
+ yAxisField?: string;
538
+ /** The label of the y-axis. */
539
+ yAxisLabel?: string;
540
+ }
541
+ interface SuggestedQuery {
542
+ /** The natural language query. */
543
+ query?: string;
544
+ }
545
+ interface UserContext {
546
+ /** Optional. The user's persona (e.g., FinOps Manager, Developer). */
547
+ persona?: 'PERSONA_UNSPECIFIED' | 'FINOPS_MANAGER' | 'DEVELOPER';
548
+ /** Optional. The user's role (e.g., Billing Admin, Project Owner, etc.). */
549
+ role?: string;
550
+ }
551
+ interface ValueProto {
552
+ /** An array of value */
553
+ arrayValue?: Array;
554
+ /** Encoded bignumeric value. For the encoding format see documentation for BigNumericValue::SerializeAsProtoBytes(). */
555
+ bignumericValue?: string;
556
+ /** Primitive for bool. */
557
+ boolValue?: boolean;
558
+ /** Primitive for bytes. */
559
+ bytesValue?: string;
560
+ /** primitive for datetime */
561
+ datetimeValue?: Datetime;
562
+ /** Primitive for date. */
563
+ dateValue?: number;
564
+ /** Primitive for double. */
565
+ doubleValue?: number;
566
+ /** Tag 11 was used for specifying micros timestamps as int64, now obsolete. */
567
+ enumValue?: number;
568
+ /** Primitive for float. */
569
+ floatValue?: number;
570
+ /** Geography encoded using ::stlib::STGeographyEncoder */
571
+ geographyValue?: string;
572
+ /** Primitive value for int32. */
573
+ int32Value?: number;
574
+ /** Primitive for int64. */
575
+ int64Value?: string;
576
+ /** Encoded interval value. For the encoding format see documentation for IntervalValue::SerializeAsBytes(). */
577
+ intervalValue?: string;
578
+ /** Tag 22 was used for json value as bytes, now obsolete. Json value represented as a string document. */
579
+ jsonValue?: string;
580
+ /** Encoded map value. See go/googlesql_map. */
581
+ mapValue?: Map;
582
+ /** Encoded numeric value. For the encoding format see documentation for NumericValue::SerializeAsProtoBytes(). */
583
+ numericValue?: string;
584
+ /** Stores a serialized protocol message. */
585
+ protoValue?: string;
586
+ /** Encoded range value. See go/googlesql_range. */
587
+ rangeValue?: Range;
588
+ /** Primitive for string. */
589
+ stringValue?: string;
590
+ /** A struct of values */
591
+ structValue?: Struct;
592
+ /** Encoded timestamp_pico value. For the encoding format see documentation for googlesql::TimestampPico::SerializeAsBytes(). */
593
+ timestampPicoValue?: string;
594
+ /** primitive for timestamp */
595
+ timestampValue?: string;
596
+ /** Bit field encoding of hour/minute/second/nanos. See TimeValue class for details. */
597
+ timeValue?: string;
598
+ /** Encoded tokenlist value. copybara:strip_begin(internal-comment) See //search/tokens:token_list. copybara:strip_end */
599
+ tokenlistValue?: string;
600
+ /** Primitive for uint32. */
601
+ uint32Value?: number;
602
+ /** Primitive for uint64. */
603
+ uint64Value?: string;
604
+ /** Encoded uuid value. For the encoding format see documentation for UuidValue::SerializeAsBytes(). */
605
+ uuidValue?: string;
606
+ /** User code that switches on this oneoff enum must have a default case so builds won't break when new fields are added. */
607
+ ValueProtoSwitchMustHaveADefault?: boolean;
608
+ }
372
609
  interface ServicesResource {
373
610
  /** Gets a Google Cloud service visible to a billing account. */
374
611
  get(request?: {
375
612
  /** V1 error format. */
376
- '$.xgafv'?: string;
613
+ '$.xgafv'?: '1' | '2';
377
614
  /** OAuth access token. */
378
615
  access_token?: string;
379
616
  /** Data format for response. */
380
- alt?: string;
617
+ alt?: 'json' | 'media' | 'proto';
381
618
  /** JSONP */
382
619
  callback?: string;
383
620
  /** Selector specifying which fields to include in a partial response. */
@@ -400,11 +637,11 @@ declare namespace gapi.client {
400
637
  /** Lists services visible to a billing account. */
401
638
  list(request?: {
402
639
  /** V1 error format. */
403
- '$.xgafv'?: string;
640
+ '$.xgafv'?: '1' | '2';
404
641
  /** OAuth access token. */
405
642
  access_token?: string;
406
643
  /** Data format for response. */
407
- alt?: string;
644
+ alt?: 'json' | 'media' | 'proto';
408
645
  /** JSONP */
409
646
  callback?: string;
410
647
  /** Selector specifying which fields to include in a partial response. */
@@ -433,11 +670,11 @@ declare namespace gapi.client {
433
670
  /** Gets a SKU that is part of a billing account SKU group. */
434
671
  get(request?: {
435
672
  /** V1 error format. */
436
- '$.xgafv'?: string;
673
+ '$.xgafv'?: '1' | '2';
437
674
  /** OAuth access token. */
438
675
  access_token?: string;
439
676
  /** Data format for response. */
440
- alt?: string;
677
+ alt?: 'json' | 'media' | 'proto';
441
678
  /** JSONP */
442
679
  callback?: string;
443
680
  /** Selector specifying which fields to include in a partial response. */
@@ -460,11 +697,11 @@ declare namespace gapi.client {
460
697
  /** Lists SKUs that is part of billing account SKU groups. */
461
698
  list(request?: {
462
699
  /** V1 error format. */
463
- '$.xgafv'?: string;
700
+ '$.xgafv'?: '1' | '2';
464
701
  /** OAuth access token. */
465
702
  access_token?: string;
466
703
  /** Data format for response. */
467
- alt?: string;
704
+ alt?: 'json' | 'media' | 'proto';
468
705
  /** JSONP */
469
706
  callback?: string;
470
707
  /** Selector specifying which fields to include in a partial response. */
@@ -493,11 +730,11 @@ declare namespace gapi.client {
493
730
  /** Gets a SKU group visible to a billing account. */
494
731
  get(request?: {
495
732
  /** V1 error format. */
496
- '$.xgafv'?: string;
733
+ '$.xgafv'?: '1' | '2';
497
734
  /** OAuth access token. */
498
735
  access_token?: string;
499
736
  /** Data format for response. */
500
- alt?: string;
737
+ alt?: 'json' | 'media' | 'proto';
501
738
  /** JSONP */
502
739
  callback?: string;
503
740
  /** Selector specifying which fields to include in a partial response. */
@@ -520,11 +757,11 @@ declare namespace gapi.client {
520
757
  /** Lists SKU groups visible to a billing account. */
521
758
  list(request?: {
522
759
  /** V1 error format. */
523
- '$.xgafv'?: string;
760
+ '$.xgafv'?: '1' | '2';
524
761
  /** OAuth access token. */
525
762
  access_token?: string;
526
763
  /** Data format for response. */
527
- alt?: string;
764
+ alt?: 'json' | 'media' | 'proto';
528
765
  /** JSONP */
529
766
  callback?: string;
530
767
  /** Selector specifying which fields to include in a partial response. */
@@ -554,11 +791,11 @@ declare namespace gapi.client {
554
791
  /** Gets the latest price for SKUs available to your Cloud Billing account. */
555
792
  get(request?: {
556
793
  /** V1 error format. */
557
- '$.xgafv'?: string;
794
+ '$.xgafv'?: '1' | '2';
558
795
  /** OAuth access token. */
559
796
  access_token?: string;
560
797
  /** Data format for response. */
561
- alt?: string;
798
+ alt?: 'json' | 'media' | 'proto';
562
799
  /** JSONP */
563
800
  callback?: string;
564
801
  /** Optional. ISO-4217 currency code for the price. If not specified, the currency of the billing account is used. */
@@ -585,11 +822,11 @@ declare namespace gapi.client {
585
822
  /** Lists the latest prices for SKUs available to your Cloud Billing account. */
586
823
  list(request?: {
587
824
  /** V1 error format. */
588
- '$.xgafv'?: string;
825
+ '$.xgafv'?: '1' | '2';
589
826
  /** OAuth access token. */
590
827
  access_token?: string;
591
828
  /** Data format for response. */
592
- alt?: string;
829
+ alt?: 'json' | 'media' | 'proto';
593
830
  /** JSONP */
594
831
  callback?: string;
595
832
  /** Optional. ISO-4217 currency code for the price. If not specified, currency of billing account will be used. */
@@ -620,11 +857,11 @@ declare namespace gapi.client {
620
857
  /** Gets a SKU visible to a billing account. */
621
858
  get(request?: {
622
859
  /** V1 error format. */
623
- '$.xgafv'?: string;
860
+ '$.xgafv'?: '1' | '2';
624
861
  /** OAuth access token. */
625
862
  access_token?: string;
626
863
  /** Data format for response. */
627
- alt?: string;
864
+ alt?: 'json' | 'media' | 'proto';
628
865
  /** JSONP */
629
866
  callback?: string;
630
867
  /** Selector specifying which fields to include in a partial response. */
@@ -647,11 +884,11 @@ declare namespace gapi.client {
647
884
  /** Lists SKUs visible to a billing account. */
648
885
  list(request?: {
649
886
  /** V1 error format. */
650
- '$.xgafv'?: string;
887
+ '$.xgafv'?: '1' | '2';
651
888
  /** OAuth access token. */
652
889
  access_token?: string;
653
890
  /** Data format for response. */
654
- alt?: string;
891
+ alt?: 'json' | 'media' | 'proto';
655
892
  /** JSONP */
656
893
  callback?: string;
657
894
  /** Selector specifying which fields to include in a partial response. */
@@ -689,11 +926,11 @@ declare namespace gapi.client {
689
926
  /** Gets a publicly listed SKU that is part of a publicly listed SKU group. */
690
927
  get(request?: {
691
928
  /** V1 error format. */
692
- '$.xgafv'?: string;
929
+ '$.xgafv'?: '1' | '2';
693
930
  /** OAuth access token. */
694
931
  access_token?: string;
695
932
  /** Data format for response. */
696
- alt?: string;
933
+ alt?: 'json' | 'media' | 'proto';
697
934
  /** JSONP */
698
935
  callback?: string;
699
936
  /** Selector specifying which fields to include in a partial response. */
@@ -716,11 +953,11 @@ declare namespace gapi.client {
716
953
  /** Lists all publicly listed SKUs contained by a publicly listed SKU group. */
717
954
  list(request?: {
718
955
  /** V1 error format. */
719
- '$.xgafv'?: string;
956
+ '$.xgafv'?: '1' | '2';
720
957
  /** OAuth access token. */
721
958
  access_token?: string;
722
959
  /** Data format for response. */
723
- alt?: string;
960
+ alt?: 'json' | 'media' | 'proto';
724
961
  /** JSONP */
725
962
  callback?: string;
726
963
  /** Selector specifying which fields to include in a partial response. */
@@ -749,11 +986,11 @@ declare namespace gapi.client {
749
986
  /** Gets a publicly listed SKU group. */
750
987
  get(request?: {
751
988
  /** V1 error format. */
752
- '$.xgafv'?: string;
989
+ '$.xgafv'?: '1' | '2';
753
990
  /** OAuth access token. */
754
991
  access_token?: string;
755
992
  /** Data format for response. */
756
- alt?: string;
993
+ alt?: 'json' | 'media' | 'proto';
757
994
  /** JSONP */
758
995
  callback?: string;
759
996
  /** Selector specifying which fields to include in a partial response. */
@@ -776,11 +1013,11 @@ declare namespace gapi.client {
776
1013
  /** Lists all publicly listed SKU groups. */
777
1014
  list(request?: {
778
1015
  /** V1 error format. */
779
- '$.xgafv'?: string;
1016
+ '$.xgafv'?: '1' | '2';
780
1017
  /** OAuth access token. */
781
1018
  access_token?: string;
782
1019
  /** Data format for response. */
783
- alt?: string;
1020
+ alt?: 'json' | 'media' | 'proto';
784
1021
  /** JSONP */
785
1022
  callback?: string;
786
1023
  /** Selector specifying which fields to include in a partial response. */
@@ -808,11 +1045,11 @@ declare namespace gapi.client {
808
1045
  /** Gets the latest price for the given SKU. */
809
1046
  get(request?: {
810
1047
  /** V1 error format. */
811
- '$.xgafv'?: string;
1048
+ '$.xgafv'?: '1' | '2';
812
1049
  /** OAuth access token. */
813
1050
  access_token?: string;
814
1051
  /** Data format for response. */
815
- alt?: string;
1052
+ alt?: 'json' | 'media' | 'proto';
816
1053
  /** JSONP */
817
1054
  callback?: string;
818
1055
  /** Optional. ISO-4217 currency code for the price. If not specified, USD will be used. */
@@ -839,11 +1076,11 @@ declare namespace gapi.client {
839
1076
  /** Lists the latest prices for all SKUs. */
840
1077
  list(request?: {
841
1078
  /** V1 error format. */
842
- '$.xgafv'?: string;
1079
+ '$.xgafv'?: '1' | '2';
843
1080
  /** OAuth access token. */
844
1081
  access_token?: string;
845
1082
  /** Data format for response. */
846
- alt?: string;
1083
+ alt?: 'json' | 'media' | 'proto';
847
1084
  /** JSONP */
848
1085
  callback?: string;
849
1086
  /** Optional. ISO-4217 currency code for the price. If not specified, USD will be used. */
@@ -874,11 +1111,69 @@ declare namespace gapi.client {
874
1111
  price: PriceResource;
875
1112
  prices: PricesResource;
876
1113
  }
1114
+ interface V1betaResource {
1115
+ /** Analyzes cost data for a billing account and/or specific projects. Returns a natural language summary and supporting datasets. */
1116
+ generateInsights(request: {
1117
+ /** V1 error format. */
1118
+ '$.xgafv'?: '1' | '2';
1119
+ /** OAuth access token. */
1120
+ access_token?: string;
1121
+ /** Data format for response. */
1122
+ alt?: 'json' | 'media' | 'proto';
1123
+ /** JSONP */
1124
+ callback?: string;
1125
+ /** Selector specifying which fields to include in a partial response. */
1126
+ fields?: string;
1127
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1128
+ key?: string;
1129
+ /** OAuth 2.0 token for the current user. */
1130
+ oauth_token?: string;
1131
+ /** Returns response with indentations and line breaks. */
1132
+ prettyPrint?: boolean;
1133
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1134
+ quotaUser?: string;
1135
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1136
+ upload_protocol?: string;
1137
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1138
+ uploadType?: string;
1139
+ /** Request body */
1140
+ resource: GenerateInsightsRequest;
1141
+ }): Request<GenerateInsightsResponse>;
1142
+ generateInsights(
1143
+ request: {
1144
+ /** V1 error format. */
1145
+ '$.xgafv'?: '1' | '2';
1146
+ /** OAuth access token. */
1147
+ access_token?: string;
1148
+ /** Data format for response. */
1149
+ alt?: 'json' | 'media' | 'proto';
1150
+ /** JSONP */
1151
+ callback?: string;
1152
+ /** Selector specifying which fields to include in a partial response. */
1153
+ fields?: string;
1154
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1155
+ key?: string;
1156
+ /** OAuth 2.0 token for the current user. */
1157
+ oauth_token?: string;
1158
+ /** Returns response with indentations and line breaks. */
1159
+ prettyPrint?: boolean;
1160
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1161
+ quotaUser?: string;
1162
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1163
+ upload_protocol?: string;
1164
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1165
+ uploadType?: string;
1166
+ },
1167
+ body: GenerateInsightsRequest,
1168
+ ): Request<GenerateInsightsResponse>;
1169
+ }
877
1170
 
878
1171
  const billingAccounts: BillingAccountsResource;
879
1172
 
880
1173
  const skuGroups: SkuGroupsResource;
881
1174
 
882
1175
  const skus: SkusResource;
1176
+
1177
+ const v1beta: V1betaResource;
883
1178
  }
884
1179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbilling-v1beta",
3
- "version": "0.1.20260313",
3
+ "version": "0.2.20260529",
4
4
  "description": "TypeScript typings for Cloud Billing API v1beta",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Cloud Billing API:
11
11
  npm install @types/gapi.client.cloudbilling-v1beta --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.cloudbilling-v1beta"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code:
@@ -84,6 +101,11 @@ await gapi.client.cloudbilling.skuGroups.get({name: 'name'});
84
101
  Lists all publicly listed SKU groups.
85
102
  */
86
103
  await gapi.client.cloudbilling.skuGroups.list({});
104
+
105
+ /*
106
+ Analyzes cost data for a billing account and/or specific projects. Returns a natural language summary and supporting datasets.
107
+ */
108
+ await gapi.client.cloudbilling.generateInsights({});
87
109
  ```
88
110
 
89
111
  For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.cloudbilling-v1beta#Provenance:~:text=none-,Provenance,-Built%20and%20signed)