regen all APIs

This commit is contained in:
Sebastian Thiel
2024-03-05 19:02:07 +01:00
parent ca974aa0a5
commit 55badfe90e
1998 changed files with 490545 additions and 148021 deletions

View File

@@ -23,7 +23,7 @@ use crate::{client, client::GetToken, client::serde_with};
/// Identifies the an OAuth2 authorization scope.
/// A scope is needed when requesting an
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
#[derive(PartialEq, Eq, Hash)]
#[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Debug, Clone, Copy)]
pub enum Scope {
/// Private Service: https://www.googleapis.com/auth/playintegrity
Full,
@@ -164,7 +164,7 @@ impl<'a, S> PlayIntegrity<S> {
// ############
// SCHEMAS ###
// ##########
/// Contains a signal helping apps differentiating between likely genuine users and likely non-genuine traffic (such as accounts being used for fraud, accounts used by automated traffic, or accounts used in device farms) based on the presence and volume of Play store activity.
/// (Restricted Access) Contains a signal helping apps differentiating between likely genuine and likely non-genuine user traffic.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
@@ -187,7 +187,7 @@ impl client::Part for AccountActivity {}
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct AccountDetails {
/// Details about the account activity for the user in the scope.
/// (Restricted Access) Details about the account activity for the user in the scope.
#[serde(rename="accountActivity")]
pub account_activity: Option<AccountActivity>,
@@ -200,6 +200,26 @@ pub struct AccountDetails {
impl client::Part for AccountDetails {}
/// Contains signals about others apps on the device which could be used to access or control the requesting app.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct AppAccessRiskVerdict {
/// Required. App access risk verdict related to apps that are not installed by Google Play, and are not preloaded on the system image by the device manufacturer.
#[serde(rename="otherApps")]
pub other_apps: Option<String>,
/// Required. App access risk verdict related to apps that are not installed by the Google Play Store, and are not preloaded on the system image by the device manufacturer.
#[serde(rename="playOrSystemApps")]
pub play_or_system_apps: Option<String>,
}
impl client::Part for AppAccessRiskVerdict {}
/// Contains the application integrity information.
///
/// This type is not used in any activity, and only used as *part* of another schema.
@@ -276,15 +296,55 @@ impl client::ResponseResult for DecodeIntegrityTokenResponse {}
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DeviceIntegrity {
/// Details about the integrity of the device the app is running on
/// Details about the integrity of the device the app is running on.
#[serde(rename="deviceRecognitionVerdict")]
pub device_recognition_verdict: Option<Vec<String>>,
/// Details about the device activity of the device the app is running on.
#[serde(rename="recentDeviceActivity")]
pub recent_device_activity: Option<RecentDeviceActivity>,
}
impl client::Part for DeviceIntegrity {}
/// Contains information about the environment Play Integrity API runs in, e.g. Play Protect verdict.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct EnvironmentDetails {
/// The evaluation of the App Access Risk verdicts.
#[serde(rename="appAccessRiskVerdict")]
pub app_access_risk_verdict: Option<AppAccessRiskVerdict>,
/// The evaluation of Play Protect verdict.
#[serde(rename="playProtectVerdict")]
pub play_protect_verdict: Option<String>,
}
impl client::Part for EnvironmentDetails {}
/// 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.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct RecentDeviceActivity {
/// Required. Indicates the activity level of the device.
#[serde(rename="deviceActivityLevel")]
pub device_activity_level: Option<String>,
}
impl client::Part for RecentDeviceActivity {}
/// Contains the integrity request information.
///
/// This type is not used in any activity, and only used as *part* of another schema.
@@ -348,6 +408,10 @@ pub struct TokenPayloadExternal {
#[serde(rename="deviceIntegrity")]
pub device_integrity: Option<DeviceIntegrity>,
/// Details of the environment Play Integrity API runs in.
#[serde(rename="environmentDetails")]
pub environment_details: Option<EnvironmentDetails>,
/// Required. Details about the integrity request.
#[serde(rename="requestDetails")]

View File

@@ -2,7 +2,7 @@
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *Play Integrity* crate version *5.0.3+20230123*, where *20230123* is the exact revision of the *playintegrity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
//! This documentation was generated from *Play Integrity* crate version *5.0.3+20240304*, where *20240304* is the exact revision of the *playintegrity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
//!
//! Everything else about the *Play Integrity* *v1* API can be found at the
//! [official documentation site](https://developer.android.com/google/play/integrity).