@maxim_mazurok/gapi.client.playintegrity-v1 0.0.20250511 → 0.0.20250513
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 +85 -1
- package/package.json +1 -1
- package/readme.md +7 -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://playintegrity.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250513
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -60,6 +60,14 @@ declare namespace gapi.client {
|
|
|
60
60
|
/** Plain token payload generated from the decoded integrity token. */
|
|
61
61
|
tokenPayloadExternal?: TokenPayloadExternal;
|
|
62
62
|
}
|
|
63
|
+
interface DecodePcIntegrityTokenRequest {
|
|
64
|
+
/** Encoded integrity token. */
|
|
65
|
+
integrityToken?: string;
|
|
66
|
+
}
|
|
67
|
+
interface DecodePcIntegrityTokenResponse {
|
|
68
|
+
/** Plain token payload generated from the decoded integrity token. */
|
|
69
|
+
tokenPayloadExternal?: PcTokenPayloadExternal;
|
|
70
|
+
}
|
|
63
71
|
interface DeviceAttributes {
|
|
64
72
|
/** Android SDK version of the device, as defined in the public Android documentation: https://developer.android.com/reference/android/os/Build.VERSION_CODES. It won't be set if a necessary requirement was missed. For example DeviceIntegrity did not meet the minimum bar. */
|
|
65
73
|
sdkVersion?: number;
|
|
@@ -88,6 +96,24 @@ declare namespace gapi.client {
|
|
|
88
96
|
/** The evaluation of Play Protect verdict. */
|
|
89
97
|
playProtectVerdict?: string;
|
|
90
98
|
}
|
|
99
|
+
interface PcDeviceIntegrity {
|
|
100
|
+
/** Details about the integrity of the device the app is running on. */
|
|
101
|
+
deviceRecognitionVerdict?: string[];
|
|
102
|
+
}
|
|
103
|
+
interface PcRequestDetails {
|
|
104
|
+
/** Request hash that was provided in the request. */
|
|
105
|
+
requestHash?: string;
|
|
106
|
+
/** Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity. */
|
|
107
|
+
requestPackageName?: string;
|
|
108
|
+
/** Required. Timestamp, of the integrity application request. */
|
|
109
|
+
requestTime?: string;
|
|
110
|
+
}
|
|
111
|
+
interface PcTokenPayloadExternal {
|
|
112
|
+
/** Required. Details about the device integrity. */
|
|
113
|
+
deviceIntegrity?: PcDeviceIntegrity;
|
|
114
|
+
/** Required. Details about the integrity request. */
|
|
115
|
+
requestDetails?: PcRequestDetails;
|
|
116
|
+
}
|
|
91
117
|
interface RecentDeviceActivity {
|
|
92
118
|
/** Required. Indicates the activity level of the device. */
|
|
93
119
|
deviceActivityLevel?: string;
|
|
@@ -262,6 +288,64 @@ declare namespace gapi.client {
|
|
|
262
288
|
},
|
|
263
289
|
body: DecodeIntegrityTokenRequest,
|
|
264
290
|
): Request<DecodeIntegrityTokenResponse>;
|
|
291
|
+
/** Decodes the PC integrity token and returns the PC token payload. */
|
|
292
|
+
decodePcIntegrityToken(request: {
|
|
293
|
+
/** V1 error format. */
|
|
294
|
+
'$.xgafv'?: string;
|
|
295
|
+
/** OAuth access token. */
|
|
296
|
+
access_token?: string;
|
|
297
|
+
/** Data format for response. */
|
|
298
|
+
alt?: string;
|
|
299
|
+
/** JSONP */
|
|
300
|
+
callback?: string;
|
|
301
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
302
|
+
fields?: string;
|
|
303
|
+
/** 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. */
|
|
304
|
+
key?: string;
|
|
305
|
+
/** OAuth 2.0 token for the current user. */
|
|
306
|
+
oauth_token?: string;
|
|
307
|
+
/** Package name of the app the attached integrity token belongs to. */
|
|
308
|
+
packageName: string;
|
|
309
|
+
/** Returns response with indentations and line breaks. */
|
|
310
|
+
prettyPrint?: boolean;
|
|
311
|
+
/** 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. */
|
|
312
|
+
quotaUser?: string;
|
|
313
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
314
|
+
upload_protocol?: string;
|
|
315
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
316
|
+
uploadType?: string;
|
|
317
|
+
/** Request body */
|
|
318
|
+
resource: DecodePcIntegrityTokenRequest;
|
|
319
|
+
}): Request<DecodePcIntegrityTokenResponse>;
|
|
320
|
+
decodePcIntegrityToken(
|
|
321
|
+
request: {
|
|
322
|
+
/** V1 error format. */
|
|
323
|
+
'$.xgafv'?: string;
|
|
324
|
+
/** OAuth access token. */
|
|
325
|
+
access_token?: string;
|
|
326
|
+
/** Data format for response. */
|
|
327
|
+
alt?: string;
|
|
328
|
+
/** JSONP */
|
|
329
|
+
callback?: string;
|
|
330
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
331
|
+
fields?: string;
|
|
332
|
+
/** 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. */
|
|
333
|
+
key?: string;
|
|
334
|
+
/** OAuth 2.0 token for the current user. */
|
|
335
|
+
oauth_token?: string;
|
|
336
|
+
/** Package name of the app the attached integrity token belongs to. */
|
|
337
|
+
packageName: string;
|
|
338
|
+
/** Returns response with indentations and line breaks. */
|
|
339
|
+
prettyPrint?: boolean;
|
|
340
|
+
/** 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. */
|
|
341
|
+
quotaUser?: string;
|
|
342
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
343
|
+
upload_protocol?: string;
|
|
344
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
345
|
+
uploadType?: string;
|
|
346
|
+
},
|
|
347
|
+
body: DecodePcIntegrityTokenRequest,
|
|
348
|
+
): Request<DecodePcIntegrityTokenResponse>;
|
|
265
349
|
}
|
|
266
350
|
|
|
267
351
|
const deviceRecall: DeviceRecallResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -82,4 +82,11 @@ Decodes the integrity token and returns the token payload.
|
|
|
82
82
|
await gapi.client.playintegrity.decodeIntegrityToken({
|
|
83
83
|
packageName: 'packageName',
|
|
84
84
|
});
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
Decodes the PC integrity token and returns the PC token payload.
|
|
88
|
+
*/
|
|
89
|
+
await gapi.client.playintegrity.decodePcIntegrityToken({
|
|
90
|
+
packageName: 'packageName',
|
|
91
|
+
});
|
|
85
92
|
```
|