@maxim_mazurok/gapi.client.playintegrity-v1 0.1.20260317 → 0.2.20260604
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 +75 -23
- 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://playintegrity.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260604
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -30,21 +30,44 @@ declare namespace gapi.client {
|
|
|
30
30
|
namespace playintegrity {
|
|
31
31
|
interface AccountActivity {
|
|
32
32
|
/** Required. Indicates the activity level of the account. */
|
|
33
|
-
activityLevel?:
|
|
33
|
+
activityLevel?:
|
|
34
|
+
| 'ACTIVITY_LEVEL_UNSPECIFIED'
|
|
35
|
+
| 'UNEVALUATED'
|
|
36
|
+
| 'UNUSUAL'
|
|
37
|
+
| 'UNKNOWN'
|
|
38
|
+
| 'TYPICAL_BASIC'
|
|
39
|
+
| 'TYPICAL_STRONG';
|
|
34
40
|
}
|
|
35
41
|
interface AccountDetails {
|
|
36
42
|
/** (Restricted Access) Details about the account activity for the user in the scope. */
|
|
37
43
|
accountActivity?: AccountActivity;
|
|
38
44
|
/** Required. Details about the licensing status of the user for the app in the scope. */
|
|
39
|
-
appLicensingVerdict?:
|
|
45
|
+
appLicensingVerdict?:
|
|
46
|
+
| 'UNKNOWN'
|
|
47
|
+
| 'LICENSED'
|
|
48
|
+
| 'UNLICENSED'
|
|
49
|
+
| 'UNEVALUATED';
|
|
40
50
|
}
|
|
41
51
|
interface AppAccessRiskVerdict {
|
|
42
52
|
/** List of detected app types signalled for App Access Risk. */
|
|
43
|
-
appsDetected?:
|
|
53
|
+
appsDetected?:
|
|
54
|
+
| 'APPS_DETECTED_UNSPECIFIED'
|
|
55
|
+
| 'KNOWN_INSTALLED'
|
|
56
|
+
| 'KNOWN_CAPTURING'
|
|
57
|
+
| 'KNOWN_OVERLAYS'
|
|
58
|
+
| 'KNOWN_CONTROLLING'
|
|
59
|
+
| 'UNKNOWN_INSTALLED'
|
|
60
|
+
| 'UNKNOWN_CAPTURING'
|
|
61
|
+
| 'UNKNOWN_OVERLAYS'
|
|
62
|
+
| 'UNKNOWN_CONTROLLING'[];
|
|
44
63
|
}
|
|
45
64
|
interface AppIntegrity {
|
|
46
65
|
/** Required. Details about the app recognition verdict */
|
|
47
|
-
appRecognitionVerdict?:
|
|
66
|
+
appRecognitionVerdict?:
|
|
67
|
+
| 'UNKNOWN'
|
|
68
|
+
| 'PLAY_RECOGNIZED'
|
|
69
|
+
| 'UNRECOGNIZED_VERSION'
|
|
70
|
+
| 'UNEVALUATED';
|
|
48
71
|
/** The SHA256 hash of the requesting app's signing certificates (base64 web-safe encoded). Set iff app_recognition_verdict != UNEVALUATED. */
|
|
49
72
|
certificateSha256Digest?: string[];
|
|
50
73
|
/** Package name of the application under attestation. Set iff app_recognition_verdict != UNEVALUATED. */
|
|
@@ -78,9 +101,19 @@ declare namespace gapi.client {
|
|
|
78
101
|
/** Details about the device recall bits set by the developer. */
|
|
79
102
|
deviceRecall?: DeviceRecall;
|
|
80
103
|
/** Details about the integrity of the device the app is running on. */
|
|
81
|
-
deviceRecognitionVerdict?:
|
|
104
|
+
deviceRecognitionVerdict?:
|
|
105
|
+
| 'UNKNOWN'
|
|
106
|
+
| 'MEETS_BASIC_INTEGRITY'
|
|
107
|
+
| 'MEETS_DEVICE_INTEGRITY'
|
|
108
|
+
| 'MEETS_STRONG_INTEGRITY'
|
|
109
|
+
| 'MEETS_VIRTUAL_INTEGRITY'[];
|
|
82
110
|
/** Contains legacy details about the integrity of the device the app is running on. Only for devices with Android version T or higher and only for apps opted in to the new verdicts. Only available during the transition period to the new verdicts system and will be removed afterwards. */
|
|
83
|
-
legacyDeviceRecognitionVerdict?:
|
|
111
|
+
legacyDeviceRecognitionVerdict?:
|
|
112
|
+
| 'UNKNOWN'
|
|
113
|
+
| 'MEETS_BASIC_INTEGRITY'
|
|
114
|
+
| 'MEETS_DEVICE_INTEGRITY'
|
|
115
|
+
| 'MEETS_STRONG_INTEGRITY'
|
|
116
|
+
| 'MEETS_VIRTUAL_INTEGRITY'[];
|
|
84
117
|
/** Details about the device activity of the device the app is running on. */
|
|
85
118
|
recentDeviceActivity?: RecentDeviceActivity;
|
|
86
119
|
}
|
|
@@ -94,15 +127,28 @@ declare namespace gapi.client {
|
|
|
94
127
|
/** The evaluation of the App Access Risk verdicts. */
|
|
95
128
|
appAccessRiskVerdict?: AppAccessRiskVerdict;
|
|
96
129
|
/** The evaluation of Play Protect verdict. */
|
|
97
|
-
playProtectVerdict?:
|
|
130
|
+
playProtectVerdict?:
|
|
131
|
+
| 'PLAY_PROTECT_VERDICT_UNSPECIFIED'
|
|
132
|
+
| 'UNEVALUATED'
|
|
133
|
+
| 'NO_ISSUES'
|
|
134
|
+
| 'NO_DATA'
|
|
135
|
+
| 'MEDIUM_RISK'
|
|
136
|
+
| 'HIGH_RISK'
|
|
137
|
+
| 'POSSIBLE_RISK';
|
|
98
138
|
}
|
|
99
139
|
interface PcAccountDetails {
|
|
100
140
|
/** Required. Details about the licensing status of the user for the app in the scope. */
|
|
101
|
-
appLicensingVerdict?:
|
|
141
|
+
appLicensingVerdict?:
|
|
142
|
+
| 'UNKNOWN'
|
|
143
|
+
| 'LICENSED'
|
|
144
|
+
| 'UNLICENSED'
|
|
145
|
+
| 'UNEVALUATED';
|
|
102
146
|
}
|
|
103
147
|
interface PcDeviceIntegrity {
|
|
104
148
|
/** Details about the integrity of the device the app is running on. */
|
|
105
|
-
deviceRecognitionVerdict?:
|
|
149
|
+
deviceRecognitionVerdict?:
|
|
150
|
+
| 'DEVICE_RECOGNITION_VERDICT_UNSPECIFIED'
|
|
151
|
+
| 'MEETS_PC_INTEGRITY'[];
|
|
106
152
|
}
|
|
107
153
|
interface PcRequestDetails {
|
|
108
154
|
/** Request hash that was provided in the request. */
|
|
@@ -128,7 +174,13 @@ declare namespace gapi.client {
|
|
|
128
174
|
}
|
|
129
175
|
interface RecentDeviceActivity {
|
|
130
176
|
/** Required. Indicates the activity level of the device. */
|
|
131
|
-
deviceActivityLevel?:
|
|
177
|
+
deviceActivityLevel?:
|
|
178
|
+
| 'DEVICE_ACTIVITY_LEVEL_UNSPECIFIED'
|
|
179
|
+
| 'UNEVALUATED'
|
|
180
|
+
| 'LEVEL_1'
|
|
181
|
+
| 'LEVEL_2'
|
|
182
|
+
| 'LEVEL_3'
|
|
183
|
+
| 'LEVEL_4';
|
|
132
184
|
}
|
|
133
185
|
interface RequestDetails {
|
|
134
186
|
/** Nonce that was provided in the request (which is base64 web-safe no-wrap). */
|
|
@@ -185,11 +237,11 @@ declare namespace gapi.client {
|
|
|
185
237
|
/** Writes recall bits for the device where Play Integrity API token is obtained. The endpoint is available to select Play partners in an early access program (EAP). */
|
|
186
238
|
write(request: {
|
|
187
239
|
/** V1 error format. */
|
|
188
|
-
'$.xgafv'?:
|
|
240
|
+
'$.xgafv'?: '1' | '2';
|
|
189
241
|
/** OAuth access token. */
|
|
190
242
|
access_token?: string;
|
|
191
243
|
/** Data format for response. */
|
|
192
|
-
alt?:
|
|
244
|
+
alt?: 'json' | 'media' | 'proto';
|
|
193
245
|
/** JSONP */
|
|
194
246
|
callback?: string;
|
|
195
247
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -214,11 +266,11 @@ declare namespace gapi.client {
|
|
|
214
266
|
write(
|
|
215
267
|
request: {
|
|
216
268
|
/** V1 error format. */
|
|
217
|
-
'$.xgafv'?:
|
|
269
|
+
'$.xgafv'?: '1' | '2';
|
|
218
270
|
/** OAuth access token. */
|
|
219
271
|
access_token?: string;
|
|
220
272
|
/** Data format for response. */
|
|
221
|
-
alt?:
|
|
273
|
+
alt?: 'json' | 'media' | 'proto';
|
|
222
274
|
/** JSONP */
|
|
223
275
|
callback?: string;
|
|
224
276
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -245,11 +297,11 @@ declare namespace gapi.client {
|
|
|
245
297
|
/** Decodes the integrity token and returns the token payload. */
|
|
246
298
|
decodeIntegrityToken(request: {
|
|
247
299
|
/** V1 error format. */
|
|
248
|
-
'$.xgafv'?:
|
|
300
|
+
'$.xgafv'?: '1' | '2';
|
|
249
301
|
/** OAuth access token. */
|
|
250
302
|
access_token?: string;
|
|
251
303
|
/** Data format for response. */
|
|
252
|
-
alt?:
|
|
304
|
+
alt?: 'json' | 'media' | 'proto';
|
|
253
305
|
/** JSONP */
|
|
254
306
|
callback?: string;
|
|
255
307
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -274,11 +326,11 @@ declare namespace gapi.client {
|
|
|
274
326
|
decodeIntegrityToken(
|
|
275
327
|
request: {
|
|
276
328
|
/** V1 error format. */
|
|
277
|
-
'$.xgafv'?:
|
|
329
|
+
'$.xgafv'?: '1' | '2';
|
|
278
330
|
/** OAuth access token. */
|
|
279
331
|
access_token?: string;
|
|
280
332
|
/** Data format for response. */
|
|
281
|
-
alt?:
|
|
333
|
+
alt?: 'json' | 'media' | 'proto';
|
|
282
334
|
/** JSONP */
|
|
283
335
|
callback?: string;
|
|
284
336
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -303,11 +355,11 @@ declare namespace gapi.client {
|
|
|
303
355
|
/** Decodes the PC integrity token and returns the PC token payload. */
|
|
304
356
|
decodePcIntegrityToken(request: {
|
|
305
357
|
/** V1 error format. */
|
|
306
|
-
'$.xgafv'?:
|
|
358
|
+
'$.xgafv'?: '1' | '2';
|
|
307
359
|
/** OAuth access token. */
|
|
308
360
|
access_token?: string;
|
|
309
361
|
/** Data format for response. */
|
|
310
|
-
alt?:
|
|
362
|
+
alt?: 'json' | 'media' | 'proto';
|
|
311
363
|
/** JSONP */
|
|
312
364
|
callback?: string;
|
|
313
365
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -332,11 +384,11 @@ declare namespace gapi.client {
|
|
|
332
384
|
decodePcIntegrityToken(
|
|
333
385
|
request: {
|
|
334
386
|
/** V1 error format. */
|
|
335
|
-
'$.xgafv'?:
|
|
387
|
+
'$.xgafv'?: '1' | '2';
|
|
336
388
|
/** OAuth access token. */
|
|
337
389
|
access_token?: string;
|
|
338
390
|
/** Data format for response. */
|
|
339
|
-
alt?:
|
|
391
|
+
alt?: 'json' | 'media' | 'proto';
|
|
340
392
|
/** JSONP */
|
|
341
393
|
callback?: string;
|
|
342
394
|
/** Selector specifying which fields to include in a partial response. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Google Play Integrity API:
|
|
|
11
11
|
npm install @types/gapi.client.playintegrity-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.playintegrity-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|