Skip to content

Commit

Permalink
feat(playintegrity)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### playintegrity:v1

The following keys were deleted:
- schemas.DeviceIntegrity.properties.deviceRecognitionVerdict.items.enumDeprecated

The following keys were added:
- schemas.DeviceIntegrity.properties.recentDeviceActivity.$ref
- schemas.DeviceIntegrity.properties.recentDeviceActivity.description
- schemas.RecentDeviceActivity.description
- schemas.RecentDeviceActivity.id
- schemas.RecentDeviceActivity.properties.deviceActivityLevel.description
- schemas.RecentDeviceActivity.properties.deviceActivityLevel.enum
- schemas.RecentDeviceActivity.properties.deviceActivityLevel.enumDescriptions
- schemas.RecentDeviceActivity.properties.deviceActivityLevel.type
- schemas.RecentDeviceActivity.type

The following keys were changed:
- schemas.DeviceIntegrity.properties.deviceRecognitionVerdict.items.enum
- schemas.DeviceIntegrity.properties.deviceRecognitionVerdict.items.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 5, 2024
1 parent 7181840 commit 767af5f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 13 deletions.
47 changes: 34 additions & 13 deletions discovery/playintegrity-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
}
}
},
"revision": "20231123",
"revision": "20240103",
"rootUrl": "https://playintegrity.googleapis.com/",
"schemas": {
"AccountActivity": {
Expand Down Expand Up @@ -315,28 +315,22 @@
"MEETS_BASIC_INTEGRITY",
"MEETS_DEVICE_INTEGRITY",
"MEETS_STRONG_INTEGRITY",
"MEETS_VIRTUAL_INTEGRITY",
"MEETS_WEAK_INTEGRITY"
],
"enumDeprecated": [
false,
false,
false,
false,
false,
true
"MEETS_VIRTUAL_INTEGRITY"
],
"enumDescriptions": [
"Play does not have sufficient information to evaluate device integrity",
"App is running on a device that passes basic system integrity checks, but may not meet Android platform compatibility requirements and may not be approved to run Google Play services.",
"App is running on GMS Android device with Google Play services.",
"App is running on GMS Android device with Google Play services and has a strong guarantee of system integrity such as a hardware-backed keystore.",
"App is running on an Android emulator with Google Play services which meets core Android compatibility requirements.",
"Deprecated: this enum value will be removed. App is running on a device that passes only weak integrity checks (is a physical device)."
"App is running on an Android emulator with Google Play services which meets core Android compatibility requirements."
],
"type": "string"
},
"type": "array"
},
"recentDeviceActivity": {
"$ref": "RecentDeviceActivity",
"description": "Details about the device activity of the device the app is running on."
}
},
"type": "object"
Expand Down Expand Up @@ -374,6 +368,33 @@
},
"type": "object"
},
"RecentDeviceActivity": {
"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.",
"id": "RecentDeviceActivity",
"properties": {
"deviceActivityLevel": {
"description": "Required. Indicates the activity level of the device.",
"enum": [
"DEVICE_ACTIVITY_LEVEL_UNSPECIFIED",
"UNEVALUATED",
"LEVEL_1",
"LEVEL_2",
"LEVEL_3",
"LEVEL_4"
],
"enumDescriptions": [
"Device activity level has not been set.",
"Device activity level has not been evaluated.",
"Indicates the amount of used tokens. See the documentation for details.",
"Indicates the amount of used tokens. See the documentation for details.",
"Indicates the amount of used tokens. See the documentation for details.",
"Indicates the amount of used tokens. See the documentation for details."
],
"type": "string"
}
},
"type": "object"
},
"RequestDetails": {
"description": "Contains the integrity request information.",
"id": "RequestDetails",
Expand Down
13 changes: 13 additions & 0 deletions src/apis/playintegrity/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ export namespace playintegrity_v1 {
* Details about the integrity of the device the app is running on.
*/
deviceRecognitionVerdict?: string[] | null;
/**
* Details about the device activity of the device the app is running on.
*/
recentDeviceActivity?: Schema$RecentDeviceActivity;
}
/**
* Contains information about the environment Play Integrity API runs in, e.g. Play Protect verdict.
Expand All @@ -220,6 +224,15 @@ export namespace playintegrity_v1 {
*/
playProtectVerdict?: string | null;
}
/**
* 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.
*/
export interface Schema$RecentDeviceActivity {
/**
* Required. Indicates the activity level of the device.
*/
deviceActivityLevel?: string | null;
}
/**
* Contains the integrity request information.
*/
Expand Down

0 comments on commit 767af5f

Please sign in to comment.