@maxim_mazurok/gapi.client.servicecontrol-v1 0.2.20260220 → 0.2.20260512

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 +7 -3
  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://servicecontrol.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260220
12
+ // Revision: 20260512
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -65,6 +65,8 @@ declare namespace gapi.client {
65
65
  stringValue?: TruncatableString;
66
66
  }
67
67
  interface AuditLog {
68
+ /** The API version identifier of the operation that uses interface based versioning (IBV). For example, `"2026-01-01-preview"`. The version identifier generally follows the format of [variant_]date[_decorator]. It should not be parsed because the exact format varies across services. */
69
+ apiVersionIdentifier?: string;
68
70
  /** Authentication information. */
69
71
  authenticationInfo?: AuthenticationInfo;
70
72
  /** Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple. */
@@ -103,6 +105,8 @@ declare namespace gapi.client {
103
105
  audiences?: string[];
104
106
  /** Structured claims presented with the credential. JWTs include `{key: value}` pairs for standard and private claims. The following is a subset of the standard required and optional claims that would typically be presented for a Google-based JWT: {'iss': 'accounts.google.com', 'sub': '113289723416554971153', 'aud': ['123456789012', 'pubsub.googleapis.com'], 'azp': '123456789012.apps.googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp': 1353604926} SAML assertions are similarly specified, but with an identity provider dependent structure. */
105
107
  claims?: {[P in string]: any};
108
+ /** Identifies the client credential id used for authentication. credential_id is in the format of AUTH_METHOD:IDENTIFIER, e.g. "serviceaccount:XXXXX, apikey:XXXXX" where the format of the IDENTIFIER can vary for different AUTH_METHODs. */
109
+ credentialId?: string;
106
110
  /** Attributes of the OAuth token associated with the request. */
107
111
  oauth?: Oauth;
108
112
  /** The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: "123456789012.apps.googleusercontent.com". */
@@ -265,7 +269,7 @@ declare namespace gapi.client {
265
269
  }
266
270
  interface Exemplar {
267
271
  /** Contextual information about the example value. Examples are: Trace: type.googleapis.com/google.monitoring.v3.SpanContext Literal string: type.googleapis.com/google.protobuf.StringValue Labels dropped during aggregation: type.googleapis.com/google.monitoring.v3.DroppedLabels There may be only a single attachment of any given message type in a single exemplar, and this is enforced by the system. */
268
- attachments?: Array<{[P in string]: any}>;
272
+ attachments?: {[P in string]: any}[];
269
273
  /** The observation (sampling) time of the above value. */
270
274
  timestamp?: string;
271
275
  /** Value of the exemplar point. This value determines to which bucket the exemplar belongs. */
@@ -670,7 +674,7 @@ declare namespace gapi.client {
670
674
  /** The status code, which should be an enum value of google.rpc.Code. */
671
675
  code?: number;
672
676
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
673
- details?: Array<{[P in string]: any}>;
677
+ details?: {[P in string]: any}[];
674
678
  /** 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. */
675
679
  message?: string;
676
680
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.servicecontrol-v1",
3
- "version": "0.2.20260220",
3
+ "version": "0.2.20260512",
4
4
  "description": "TypeScript typings for Service Control API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Service Control API:
11
11
  npm install @types/gapi.client.servicecontrol-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.servicecontrol-v1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: