@maxim_mazurok/gapi.client.serviceusage-v1beta1 0.2.20260227 → 0.2.20260602

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 +8 -28
  2. package/package.json +1 -1
  3. package/readme.md +17 -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://serviceusage.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20260227
12
+ // Revision: 20260602
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -163,7 +163,7 @@ declare namespace gapi.client {
163
163
  operationDeadline?: number;
164
164
  /** The map between request protocol and the backend address. */
165
165
  overridesByRequestProtocol?: {[P in string]: BackendRule};
166
- /** no-lint */
166
+ /** Path translation specifies how to combine the backend address with the request path in order to produce the appropriate forwarding URL for the request. See PathTranslation for more details. */
167
167
  pathTranslation?:
168
168
  | 'PATH_TRANSLATION_UNSPECIFIED'
169
169
  | 'CONSTANT_ADDRESS'
@@ -277,7 +277,7 @@ declare namespace gapi.client {
277
277
  | 'PACKAGE_MANAGER'[];
278
278
  /** Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest */
279
279
  referenceDocsUri?: string;
280
- /** Configuration for which RPCs should be generated in the GAPIC client. */
280
+ /** Configuration for which RPCs should be generated in the GAPIC client. Note: This field should not be used in most cases. */
281
281
  selectiveGapicGeneration?: SelectiveGapicGeneration;
282
282
  }
283
283
  interface ConsumerPolicy {
@@ -576,7 +576,7 @@ declare namespace gapi.client {
576
576
  customError?: CustomError;
577
577
  /** Additional API documentation. */
578
578
  documentation?: Documentation;
579
- /** Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs. WARNING: Defining any entries in the `endpoints` list disables the automatic generation of default endpoint variations (e.g., `{service}.clients6.google.com`, `content-{service}.googleapis.com`, and mTLS variants like `{service}.mtls.googleapis.com`). To retain these default variations, you are required to explicitly include your main service endpoint (e.g., `myservice.googleapis.com`) in this list alongside any other custom endpoints (like REP, GFE, etc.). */
579
+ /** Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs. */
580
580
  endpoints?: Endpoint[];
581
581
  /** A list of all enum types included in this API service. Enums referenced directly or indirectly by the `apis` are automatically included. Enums which are not referenced but shall be included should be listed here by name by the configuration author. Example: enums: - name: google.someapi.v1.SomeEnum */
582
582
  enums?: Enum[];
@@ -926,26 +926,6 @@ declare namespace gapi.client {
926
926
  /** Total polling timeout. Default value: 5 minutes. */
927
927
  totalPollTimeout?: string;
928
928
  }
929
- interface McpEnableRule {
930
- /** List of enabled MCP services. */
931
- mcpServices?: McpService[];
932
- }
933
- interface McpPolicy {
934
- /** Output only. The time the policy was created. For singleton policies (such as the `default` policy), this is the first touch of the policy. */
935
- createTime?: string;
936
- /** An opaque tag indicating the current version of the policy, used for concurrency control. */
937
- etag?: string;
938
- /** McpEnableRules contains MCP enablement related rules. */
939
- mcpEnableRules?: McpEnableRule[];
940
- /** Output only. The resource name of the policy. Only the `default` policy is supported. We allow the following formats: `projects/{PROJECT_NUMBER}/mcpPolicies/default`, `projects/{PROJECT_ID}/mcpPolicies/default`, `folders/{FOLDER_ID}/mcpPolicies/default`, `organizations/{ORG_ID}/mcpPolicies/default`. */
941
- name?: string;
942
- /** Output only. The time the policy was last updated. */
943
- updateTime?: string;
944
- }
945
- interface McpService {
946
- /** The names of the services that are enabled for MCP. Example: `services/library-example.googleapis.com` */
947
- service?: string;
948
- }
949
929
  interface Method {
950
930
  /** The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue. */
951
931
  edition?: string;
@@ -1175,7 +1155,8 @@ declare namespace gapi.client {
1175
1155
  | 'STREET_VIEW'
1176
1156
  | 'SHOPPING'
1177
1157
  | 'GEO'
1178
- | 'GENERATIVE_AI';
1158
+ | 'GENERATIVE_AI'
1159
+ | 'HEALTH';
1179
1160
  /** Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc */
1180
1161
  protoReferenceDocumentationUri?: string;
1181
1162
  /** Optional link to REST reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rest */
@@ -1312,13 +1293,13 @@ declare namespace gapi.client {
1312
1293
  }
1313
1294
  interface SourceInfo {
1314
1295
  /** All files used during config generation. */
1315
- sourceFiles?: Array<{[P in string]: any}>;
1296
+ sourceFiles?: {[P in string]: any}[];
1316
1297
  }
1317
1298
  interface Status {
1318
1299
  /** The status code, which should be an enum value of google.rpc.Code. */
1319
1300
  code?: number;
1320
1301
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1321
- details?: Array<{[P in string]: any}>;
1302
+ details?: {[P in string]: any}[];
1322
1303
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
1323
1304
  message?: string;
1324
1305
  }
@@ -1359,7 +1340,6 @@ declare namespace gapi.client {
1359
1340
  interface UpdateAdminQuotaPolicyMetadata {}
1360
1341
  interface UpdateConsumerPolicyMetadata {}
1361
1342
  interface UpdateContentSecurityPolicyMetadata {}
1362
- interface UpdateMcpPolicyMetadata {}
1363
1343
  interface Usage {
1364
1344
  /** The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supports [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification channel. To use Google Cloud Pub/Sub as the channel, this must be the name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format documented in https://cloud.google.com/pubsub/docs/overview. */
1365
1345
  producerNotificationChannel?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.serviceusage-v1beta1",
3
- "version": "0.2.20260227",
3
+ "version": "0.2.20260602",
4
4
  "description": "TypeScript typings for Service Usage API v1beta1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Service Usage API:
11
11
  npm install @types/gapi.client.serviceusage-v1beta1 --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.serviceusage-v1beta1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: