@maxim_mazurok/gapi.client.serviceusage-v1 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.
- package/index.d.ts +8 -28
- package/package.json +1 -1
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260602
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -159,7 +159,7 @@ declare namespace gapi.client {
|
|
|
159
159
|
operationDeadline?: number;
|
|
160
160
|
/** The map between request protocol and the backend address. */
|
|
161
161
|
overridesByRequestProtocol?: {[P in string]: BackendRule};
|
|
162
|
-
/**
|
|
162
|
+
/** 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. */
|
|
163
163
|
pathTranslation?:
|
|
164
164
|
| 'PATH_TRANSLATION_UNSPECIFIED'
|
|
165
165
|
| 'CONSTANT_ADDRESS'
|
|
@@ -278,7 +278,7 @@ declare namespace gapi.client {
|
|
|
278
278
|
| 'PACKAGE_MANAGER'[];
|
|
279
279
|
/** Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest */
|
|
280
280
|
referenceDocsUri?: string;
|
|
281
|
-
/** Configuration for which RPCs should be generated in the GAPIC client. */
|
|
281
|
+
/** Configuration for which RPCs should be generated in the GAPIC client. Note: This field should not be used in most cases. */
|
|
282
282
|
selectiveGapicGeneration?: SelectiveGapicGeneration;
|
|
283
283
|
}
|
|
284
284
|
interface ConsumerPolicy {
|
|
@@ -555,7 +555,7 @@ declare namespace gapi.client {
|
|
|
555
555
|
customError?: CustomError;
|
|
556
556
|
/** Additional API documentation. */
|
|
557
557
|
documentation?: Documentation;
|
|
558
|
-
/** 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.
|
|
558
|
+
/** 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. */
|
|
559
559
|
endpoints?: Endpoint[];
|
|
560
560
|
/** 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 */
|
|
561
561
|
enums?: Enum[];
|
|
@@ -865,26 +865,6 @@ declare namespace gapi.client {
|
|
|
865
865
|
/** Total polling timeout. Default value: 5 minutes. */
|
|
866
866
|
totalPollTimeout?: string;
|
|
867
867
|
}
|
|
868
|
-
interface McpEnableRule {
|
|
869
|
-
/** List of enabled MCP services. */
|
|
870
|
-
mcpServices?: McpService[];
|
|
871
|
-
}
|
|
872
|
-
interface McpPolicy {
|
|
873
|
-
/** Output only. The time the policy was created. For singleton policies (such as the `default` policy), this is the first touch of the policy. */
|
|
874
|
-
createTime?: string;
|
|
875
|
-
/** An opaque tag indicating the current version of the policy, used for concurrency control. */
|
|
876
|
-
etag?: string;
|
|
877
|
-
/** McpEnableRules contains MCP enablement related rules. */
|
|
878
|
-
mcpEnableRules?: McpEnableRule[];
|
|
879
|
-
/** 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`. */
|
|
880
|
-
name?: string;
|
|
881
|
-
/** Output only. The time the policy was last updated. */
|
|
882
|
-
updateTime?: string;
|
|
883
|
-
}
|
|
884
|
-
interface McpService {
|
|
885
|
-
/** The names of the services that are enabled for MCP. Example: `services/library-example.googleapis.com` */
|
|
886
|
-
service?: string;
|
|
887
|
-
}
|
|
888
868
|
interface Method {
|
|
889
869
|
/** 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. */
|
|
890
870
|
edition?: string;
|
|
@@ -1096,7 +1076,8 @@ declare namespace gapi.client {
|
|
|
1096
1076
|
| 'STREET_VIEW'
|
|
1097
1077
|
| 'SHOPPING'
|
|
1098
1078
|
| 'GEO'
|
|
1099
|
-
| 'GENERATIVE_AI'
|
|
1079
|
+
| 'GENERATIVE_AI'
|
|
1080
|
+
| 'HEALTH';
|
|
1100
1081
|
/** Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc */
|
|
1101
1082
|
protoReferenceDocumentationUri?: string;
|
|
1102
1083
|
/** Optional link to REST reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rest */
|
|
@@ -1179,13 +1160,13 @@ declare namespace gapi.client {
|
|
|
1179
1160
|
}
|
|
1180
1161
|
interface SourceInfo {
|
|
1181
1162
|
/** All files used during config generation. */
|
|
1182
|
-
sourceFiles?:
|
|
1163
|
+
sourceFiles?: {[P in string]: any}[];
|
|
1183
1164
|
}
|
|
1184
1165
|
interface Status {
|
|
1185
1166
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1186
1167
|
code?: number;
|
|
1187
1168
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1188
|
-
details?:
|
|
1169
|
+
details?: {[P in string]: any}[];
|
|
1189
1170
|
/** 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. */
|
|
1190
1171
|
message?: string;
|
|
1191
1172
|
}
|
|
@@ -1226,7 +1207,6 @@ declare namespace gapi.client {
|
|
|
1226
1207
|
interface UpdateAdminQuotaPolicyMetadata {}
|
|
1227
1208
|
interface UpdateConsumerPolicyMetadata {}
|
|
1228
1209
|
interface UpdateContentSecurityPolicyMetadata {}
|
|
1229
|
-
interface UpdateMcpPolicyMetadata {}
|
|
1230
1210
|
interface Usage {
|
|
1231
1211
|
/** 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. */
|
|
1232
1212
|
producerNotificationChannel?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Service Usage API:
|
|
|
11
11
|
npm install @types/gapi.client.serviceusage-v1 --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-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|