@maxim_mazurok/gapi.client.servicecontrol-v2 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.
- package/index.d.ts +7 -3
- 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://servicecontrol.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260512
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -44,7 +44,7 @@ declare namespace gapi.client {
|
|
|
44
44
|
/** The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop. */
|
|
45
45
|
destination?: Peer;
|
|
46
46
|
/** Supports extensions for advanced use cases, such as logs and metrics. */
|
|
47
|
-
extensions?:
|
|
47
|
+
extensions?: {[P in string]: any}[];
|
|
48
48
|
/** The origin of a network activity. In a multi hop network activity, the origin represents the sender of the first hop. For the first hop, the `source` and the `origin` must have the same content. */
|
|
49
49
|
origin?: Peer;
|
|
50
50
|
/** Represents a network request, such as an HTTP request. */
|
|
@@ -57,6 +57,8 @@ declare namespace gapi.client {
|
|
|
57
57
|
source?: Peer;
|
|
58
58
|
}
|
|
59
59
|
interface AuditLog {
|
|
60
|
+
/** 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. */
|
|
61
|
+
apiVersionIdentifier?: string;
|
|
60
62
|
/** Authentication information. */
|
|
61
63
|
authenticationInfo?: AuthenticationInfo;
|
|
62
64
|
/** Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple. */
|
|
@@ -95,6 +97,8 @@ declare namespace gapi.client {
|
|
|
95
97
|
audiences?: string[];
|
|
96
98
|
/** 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. */
|
|
97
99
|
claims?: {[P in string]: any};
|
|
100
|
+
/** 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. */
|
|
101
|
+
credentialId?: string;
|
|
98
102
|
/** Attributes of the OAuth token associated with the request. */
|
|
99
103
|
oauth?: Oauth;
|
|
100
104
|
/** 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". */
|
|
@@ -333,7 +337,7 @@ declare namespace gapi.client {
|
|
|
333
337
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
334
338
|
code?: number;
|
|
335
339
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
336
|
-
details?:
|
|
340
|
+
details?: {[P in string]: any}[];
|
|
337
341
|
/** 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. */
|
|
338
342
|
message?: string;
|
|
339
343
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Service Control API:
|
|
|
11
11
|
npm install @types/gapi.client.servicecontrol-v2 --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-v2"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|