|
166 | 166 | "scopes": [
|
167 | 167 | "https://www.googleapis.com/auth/playintegrity"
|
168 | 168 | ]
|
| 169 | +}, |
| 170 | +"decodePcIntegrityToken": { |
| 171 | +"description": "Decodes the PC integrity token and returns the PC token payload.", |
| 172 | +"flatPath": "v1/{v1Id}:decodePcIntegrityToken", |
| 173 | +"httpMethod": "POST", |
| 174 | +"id": "playintegrity.decodePcIntegrityToken", |
| 175 | +"parameterOrder": [ |
| 176 | +"packageName" |
| 177 | +], |
| 178 | +"parameters": { |
| 179 | +"packageName": { |
| 180 | +"description": "Package name of the app the attached integrity token belongs to.", |
| 181 | +"location": "path", |
| 182 | +"pattern": "^[^/]+$", |
| 183 | +"required": true, |
| 184 | +"type": "string" |
| 185 | +} |
| 186 | +}, |
| 187 | +"path": "v1/{+packageName}:decodePcIntegrityToken", |
| 188 | +"request": { |
| 189 | +"$ref": "DecodePcIntegrityTokenRequest" |
| 190 | +}, |
| 191 | +"response": { |
| 192 | +"$ref": "DecodePcIntegrityTokenResponse" |
| 193 | +}, |
| 194 | +"scopes": [ |
| 195 | +"https://www.googleapis.com/auth/playintegrity" |
| 196 | +] |
169 | 197 | }
|
170 | 198 | }
|
171 | 199 | }
|
172 | 200 | },
|
173 |
| -"revision": "20250223", |
| 201 | +"revision": "20250514", |
174 | 202 | "rootUrl": "https://playintegrity.googleapis.com/",
|
175 | 203 | "schemas": {
|
176 | 204 | "AccountActivity": {
|
|
324 | 352 | },
|
325 | 353 | "type": "object"
|
326 | 354 | },
|
| 355 | +"DecodePcIntegrityTokenRequest": { |
| 356 | +"description": "Request to decode the PC integrity token.", |
| 357 | +"id": "DecodePcIntegrityTokenRequest", |
| 358 | +"properties": { |
| 359 | +"integrityToken": { |
| 360 | +"description": "Encoded integrity token.", |
| 361 | +"type": "string" |
| 362 | +} |
| 363 | +}, |
| 364 | +"type": "object" |
| 365 | +}, |
| 366 | +"DecodePcIntegrityTokenResponse": { |
| 367 | +"description": "Response containing the decoded PC integrity payload.", |
| 368 | +"id": "DecodePcIntegrityTokenResponse", |
| 369 | +"properties": { |
| 370 | +"tokenPayloadExternal": { |
| 371 | +"$ref": "PcTokenPayloadExternal", |
| 372 | +"description": "Plain token payload generated from the decoded integrity token." |
| 373 | +} |
| 374 | +}, |
| 375 | +"type": "object" |
| 376 | +}, |
327 | 377 | "DeviceAttributes": {
|
328 | 378 | "description": "Contains information about the device for which the integrity token was generated, e.g. Android SDK version.",
|
329 | 379 | "id": "DeviceAttributes",
|
|
445 | 495 | },
|
446 | 496 | "type": "object"
|
447 | 497 | },
|
| 498 | +"PcDeviceIntegrity": { |
| 499 | +"description": "Contains the device attestation information.", |
| 500 | +"id": "PcDeviceIntegrity", |
| 501 | +"properties": { |
| 502 | +"deviceRecognitionVerdict": { |
| 503 | +"description": "Details about the integrity of the device the app is running on.", |
| 504 | +"items": { |
| 505 | +"enum": [ |
| 506 | +"DEVICE_RECOGNITION_VERDICT_UNSPECIFIED", |
| 507 | +"MEETS_PC_INTEGRITY" |
| 508 | +], |
| 509 | +"enumDescriptions": [ |
| 510 | +"Unspecified device integrity.", |
| 511 | +"App is running on Windows Device with Google Desktop Services." |
| 512 | +], |
| 513 | +"type": "string" |
| 514 | +}, |
| 515 | +"type": "array" |
| 516 | +} |
| 517 | +}, |
| 518 | +"type": "object" |
| 519 | +}, |
| 520 | +"PcRequestDetails": { |
| 521 | +"description": "Contains the integrity request information.", |
| 522 | +"id": "PcRequestDetails", |
| 523 | +"properties": { |
| 524 | +"requestHash": { |
| 525 | +"description": "Request hash that was provided in the request.", |
| 526 | +"type": "string" |
| 527 | +}, |
| 528 | +"requestPackageName": { |
| 529 | +"description": "Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity.", |
| 530 | +"type": "string" |
| 531 | +}, |
| 532 | +"requestTime": { |
| 533 | +"description": "Required. Timestamp, of the integrity application request.", |
| 534 | +"format": "google-datetime", |
| 535 | +"type": "string" |
| 536 | +} |
| 537 | +}, |
| 538 | +"type": "object" |
| 539 | +}, |
| 540 | +"PcTokenPayloadExternal": { |
| 541 | +"description": "Contains PC device attestation details.", |
| 542 | +"id": "PcTokenPayloadExternal", |
| 543 | +"properties": { |
| 544 | +"deviceIntegrity": { |
| 545 | +"$ref": "PcDeviceIntegrity", |
| 546 | +"description": "Required. Details about the device integrity." |
| 547 | +}, |
| 548 | +"requestDetails": { |
| 549 | +"$ref": "PcRequestDetails", |
| 550 | +"description": "Required. Details about the integrity request." |
| 551 | +} |
| 552 | +}, |
| 553 | +"type": "object" |
| 554 | +}, |
448 | 555 | "RecentDeviceActivity": {
|
449 | 556 | "description": "Recent device activity can help developers identify devices that have exhibited hyperactive attestation activity, which could be a sign of an attack or token farming.",
|
450 | 557 | "id": "RecentDeviceActivity",
|
|
0 commit comments