{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-recaptcha/json-schema/google-recaptcha-google-cloud-recaptchaenterprise-v1-assessment-schema.json",
  "title": "GoogleCloudRecaptchaenterpriseV1Assessment",
  "description": "A reCAPTCHA Enterprise assessment resource.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-recaptcha-projects-api-openapi.yml#/components/schemas/GoogleCloudRecaptchaenterpriseV1Assessment",
  "properties": {
    "policyEvaluation": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1PolicyEvaluation",
      "description": "Output only. Provides information about the policy evaluation for this assessment."
    },
    "fraudSignals": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudSignals",
      "description": "Output only. Fraud Signals specific to the users involved in a payment transaction."
    },
    "accountDefenderAssessment": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment",
      "description": "Output only. Assessment returned by Account defense when an account identifier is provided."
    },
    "accountVerification": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo",
      "description": "Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature."
    },
    "tokenProperties": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TokenProperties",
      "description": "Output only. Properties of the provided event token."
    },
    "phoneFraudAssessment": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment",
      "description": "Output only. Assessment returned when a site key, a token, `user_info.account_id`, and a phone number in `user_info.user_ids` are provided. SMS defense must be enabled."
    },
    "assessmentEnvironment": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment",
      "description": "Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user."
    },
    "privatePasswordLeakVerification": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification",
      "description": "Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials."
    },
    "name": {
      "type": "string",
      "description": "Output only. Identifier. The resource name for the Assessment in the format `projects/{project}/assessments/{assessment}`.",
      "readOnly": true
    },
    "fraudPreventionAssessment": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment",
      "description": "Output only. Assessment returned by Fraud Prevention when TransactionData is provided."
    },
    "event": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1Event",
      "description": "Optional. The event being assessed."
    },
    "riskAnalysis": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1RiskAnalysis",
      "description": "Output only. The risk analysis result for the event being assessed."
    },
    "firewallPolicyAssessment": {
      "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment",
      "description": "Output only. Assessment returned when firewall policies belonging to the project are evaluated using the field firewall_policy_evaluation."
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": {
      "type": "object",
      "properties": {
        "accountTakeoverVerdict": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict",
          "description": "Output only. Account takeover risk assessment for this request."
        },
        "labels": {
          "description": "Output only. Labels for this request.",
          "type": "array",
          "readOnly": true,
          "items": {
            "enum": [
              "ACCOUNT_DEFENDER_LABEL_UNSPECIFIED",
              "PROFILE_MATCH",
              "SUSPICIOUS_LOGIN_ACTIVITY",
              "SUSPICIOUS_ACCOUNT_CREATION",
              "RELATED_ACCOUNTS_NUMBER_HIGH"
            ],
            "type": "string"
          }
        }
      },
      "description": "Account defense risk assessment."
    },
    "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason": {
      "properties": {
        "reason": {
          "enum": [
            "RISK_REASON_UNSPECIFIED",
            "CLIENT_HISTORICAL_BOT_ACTIVITY",
            "ACCOUNT_IN_LARGE_RELATED_GROUP",
            "CLIENT_ACCESSED_MANY_ACCOUNTS",
            "DISPOSABLE_EMAIL_DOMAIN"
          ],
          "description": "Output only. A risk reason associated with this request.",
          "type": "string",
          "readOnly": true
        }
      },
      "description": "Risk explainability reasons for Account defense.",
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict": {
      "properties": {
        "trustReasons": {
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason"
          },
          "readOnly": true,
          "description": "Output only. Unordered list. Reasons why the request appears trustworthy. Trust reasons can be returned even if the risk is high, as risky requests can still have some trust signals.",
          "type": "array"
        },
        "risk": {
          "type": "number",
          "readOnly": true,
          "format": "float",
          "description": "Output only. Account takeover attempt probability. Values are from 0.0 (lowest risk) to 1.0 (highest risk)."
        },
        "riskReasons": {
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason"
          },
          "description": "Output only. Unordered list. Reasons why the request appears risky. Risk reasons can be returned even if the risk is low, as trustworthy requests can still have some risk signals."
        }
      },
      "type": "object",
      "description": "Account takeover risk assessment."
    },
    "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason": {
      "type": "object",
      "description": "Trust explainability reasons for Account defense.",
      "properties": {
        "reason": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. A trust reason associated with this request.",
          "enum": [
            "TRUST_REASON_UNSPECIFIED",
            "PROFILE_MATCH",
            "ACCOUNT_HISTORY_REPUTABLE",
            "IDENTITY_GLOBAL_ACTIVITY_REPUTABLE",
            "IDENTITY_HISTORY_REPUTABLE"
          ]
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo": {
      "properties": {
        "languageCode": {
          "description": "Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.",
          "type": "string"
        },
        "endpoints": {
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo"
          },
          "type": "array",
          "description": "Optional. Endpoints that can be used for identity verification."
        },
        "username": {
          "description": "Username of the account that is being verified. Deprecated. Customers should now provide the `account_id` field in `event.user_info`.",
          "type": "string",
          "deprecated": true
        },
        "latestVerificationResult": {
          "description": "Output only. Result of the latest account verification challenge.",
          "enum": [
            "RESULT_UNSPECIFIED",
            "SUCCESS_USER_VERIFIED",
            "ERROR_USER_NOT_VERIFIED",
            "ERROR_SITE_ONBOARDING_INCOMPLETE",
            "ERROR_RECIPIENT_NOT_ALLOWED",
            "ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED",
            "ERROR_CRITICAL_INTERNAL",
            "ERROR_CUSTOMER_QUOTA_EXHAUSTED",
            "ERROR_VERIFICATION_BYPASSED",
            "ERROR_VERDICT_MISMATCH"
          ],
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object",
      "description": "Information about account verification, used for identity verification."
    },
    "GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment": {
      "properties": {
        "client": {
          "description": "Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include: - \"github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager\" - \"wordpress.org/plugins/recaptcha-something\"",
          "type": "string"
        },
        "version": {
          "type": "string",
          "description": "Optional. The version of the client module. For example, \"1.0.0\"."
        }
      },
      "type": "object",
      "description": "The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user."
    },
    "GoogleCloudRecaptchaenterpriseV1Bot": {
      "description": "Bot information and metadata.",
      "properties": {
        "botType": {
          "type": "string",
          "description": "Optional. Enumerated field representing the type of bot.",
          "enum": [
            "BOT_TYPE_UNSPECIFIED",
            "AI_AGENT",
            "CONTENT_SCRAPER",
            "SEARCH_INDEXER"
          ]
        },
        "name": {
          "type": "string",
          "description": "Optional. Enumerated string value that indicates the identity of the bot, formatted in kebab-case. Current example values include the following: * google-agent - AI_AGENT * browser-base - AI_AGENT * chat-gpt - AI_AGENT * aws-bedrock - AI_AGENT * cybaa-bot - AI_AGENT * cloudflare - AI_AGENT * payhawk - AI_AGENT * duck-duck-go - AI_AGENT * mediaboard - CONTENT_SCRAPER * marker-io - AI_AGENT * anchor-browser - AI_AGENT * shopify - AI_AGENT * stackscope - CONTENT_SCRAPER * manus - AI_AGENT * kernel-sh - AI_AGENT * zvelo - SEARCH_INDEXER * meta-muse - AI_AGENT * duck-duck-bot - SEARCH_INDEXER * my-porta - SEARCH_INDEXER * ison-search - SEARCH_INDEXER * rokt - SEARCH_INDEXER Ensure that your applications can handle identifier values not explicitly listed here. Deprecated values might take some time to stop showing up in responses. New values can be pushed so this list should be taken as non exhaustive."
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1ChallengeRuleEvaluation": {
      "description": "Information about the evaluation of a `ChallengeRule`.",
      "properties": {},
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo": {
      "description": "Information about a verification endpoint that can be used for 2FA.",
      "properties": {
        "requestToken": {
          "readOnly": true,
          "description": "Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.",
          "type": "string"
        },
        "lastVerificationTime": {
          "readOnly": true,
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. Timestamp of the last successful verification for the endpoint, if any."
        },
        "emailAddress": {
          "description": "Email address for which to trigger a verification request.",
          "type": "string"
        },
        "phoneNumber": {
          "description": "Phone number for which to trigger a verification request. Should be given in E.164 format.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1Event": {
      "properties": {
        "requestedUri": {
          "type": "string",
          "description": "Optional. The URI resource the user requested that triggered an assessment."
        },
        "transactionData": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TransactionData",
          "description": "Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Enterprise Fraud Prevention and the FraudPreventionAssessment component in the response."
        },
        "wafTokenAssessment": {
          "description": "Optional. Flag for running Web Application Firewall (WAF) token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.",
          "type": "boolean"
        },
        "userIpAddress": {
          "type": "string",
          "description": "Optional. The IP address in the request from the user's device related to this event."
        },
        "userInfo": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1UserInfo",
          "description": "Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout."
        },
        "fraudPrevention": {
          "enum": [
            "FRAUD_PREVENTION_UNSPECIFIED",
            "ENABLED",
            "DISABLED"
          ],
          "type": "string",
          "description": "Optional. The Fraud Prevention setting for this assessment."
        },
        "expectedAction": {
          "type": "string",
          "description": "Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with recaptcha enterprise. Required for Universal keys."
        },
        "firewallPolicyEvaluation": {
          "description": "Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy is evaluated and a suggested firewall action is returned in the response.",
          "type": "boolean"
        },
        "express": {
          "description": "Optional. Flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference an Express site key.",
          "type": "boolean"
        },
        "userAgent": {
          "type": "string",
          "description": "Optional. The user agent present in the request from the user's device related to this event."
        },
        "siteKey": {
          "type": "string",
          "description": "Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token."
        },
        "ja4": {
          "type": "string",
          "description": "Optional. JA4 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/FoxIO-LLC/ja4."
        },
        "ja3": {
          "type": "string",
          "description": "Optional. JA3 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/salesforce/ja3."
        },
        "headers": {
          "type": "array",
          "description": "Optional. HTTP header information about the request.",
          "items": {
            "type": "string"
          }
        },
        "hashedAccountId": {
          "description": "Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.",
          "type": "string",
          "format": "byte",
          "deprecated": true
        },
        "token": {
          "description": "Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site.",
          "type": "string"
        }
      },
      "description": "The event being assessed.",
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallAction": {
      "description": "An individual action. Each action represents what to do if a policy matches.",
      "properties": {
        "block": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction",
          "description": "This action denies access to a given page. The user gets an HTTP error code."
        },
        "redirect": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction",
          "description": "This action redirects the request to a reCAPTCHA interstitial to attach a token."
        },
        "includeRecaptchaScript": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction",
          "description": "This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend."
        },
        "allow": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction",
          "description": "The user request did not match any policy and should be allowed access to the requested resource."
        },
        "substitute": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction",
          "description": "This action transparently serves a different page to an offending user."
        },
        "setHeader": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction",
          "description": "This action sets a custom header but allow the request to continue to the customer backend."
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction": {
      "description": "An allow action continues processing a request unimpeded.",
      "properties": {},
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction": {
      "properties": {},
      "description": "A block action serves an HTTP error code a prevents the request from hitting the backend.",
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction": {
      "description": "An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests.",
      "type": "object",
      "properties": {}
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction": {
      "description": "A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token.",
      "type": "object",
      "properties": {}
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction": {
      "description": "A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend.",
      "type": "object",
      "properties": {
        "value": {
          "description": "Optional. The header value to set in the request to the backend server.",
          "type": "string"
        },
        "key": {
          "description": "Optional. The header key to set in the request to the backend server.",
          "type": "string"
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction": {
      "type": "object",
      "properties": {
        "path": {
          "description": "Optional. The address to redirect to. The target is a relative path in the current host. Example: \"/blog/404.html\".",
          "type": "string"
        }
      },
      "description": "A substitute action transparently serves a different page than the one requested."
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallPolicy": {
      "type": "object",
      "description": "A FirewallPolicy represents a single matching pattern and resulting actions to take.",
      "properties": {
        "name": {
          "description": "Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.",
          "type": "string"
        },
        "path": {
          "type": "string",
          "description": "Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters."
        },
        "actions": {
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallAction"
          },
          "description": "Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.",
          "type": "array"
        },
        "condition": {
          "type": "string",
          "description": "Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters."
        },
        "description": {
          "description": "Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.",
          "type": "string"
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment": {
      "description": "Policy config assessment.",
      "properties": {
        "firewallPolicy": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FirewallPolicy",
          "description": "Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty."
        },
        "error": {
          "$ref": "#/$defs/GoogleRpcStatus",
          "description": "Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty."
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment": {
      "description": "Assessment for Fraud Prevention.",
      "properties": {
        "stolenInstrumentVerdict": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict",
          "description": "Output only. Assessment of this transaction for risk of a stolen instrument."
        },
        "cardTestingVerdict": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict",
          "description": "Output only. Assessment of this transaction for risk of being part of a card testing attack."
        },
        "riskReasons": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. Reasons why the transaction is probably fraudulent and received a high transaction risk score.",
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason"
          }
        },
        "transactionRisk": {
          "readOnly": true,
          "type": "number",
          "description": "Output only. Probability of this transaction being fraudulent. Summarizes the combined risk of attack vectors below. Values are from 0.0 (lowest) to 1.0 (highest).",
          "format": "float"
        },
        "behavioralTrustVerdict": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict",
          "description": "Output only. Assessment of this transaction for behavioral trust."
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict": {
      "description": "Information about behavioral trust of the transaction.",
      "properties": {
        "trust": {
          "readOnly": true,
          "description": "Output only. Probability of this transaction attempt being executed in a behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0 (highest).",
          "format": "float",
          "type": "number"
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict": {
      "properties": {
        "risk": {
          "description": "Output only. Probability of this transaction attempt being part of a card testing attack. Values are from 0.0 (lowest) to 1.0 (highest).",
          "readOnly": true,
          "type": "number",
          "format": "float"
        }
      },
      "type": "object",
      "description": "Information about card testing fraud, where an adversary is testing fraudulently obtained cards or brute forcing their details."
    },
    "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason": {
      "description": "Risk reasons applicable to the Fraud Prevention assessment.",
      "properties": {
        "reason": {
          "readOnly": true,
          "description": "Output only. Risk reasons applicable to the Fraud Prevention assessment.",
          "enum": [
            "REASON_UNSPECIFIED",
            "HIGH_TRANSACTION_VELOCITY",
            "EXCESSIVE_ENUMERATION_PATTERN",
            "SHORT_IDENTITY_HISTORY",
            "GEOLOCATION_DISCREPANCY",
            "ASSOCIATED_WITH_FRAUD_CLUSTER"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict": {
      "description": "Information about stolen instrument fraud, where the user is not the legitimate owner of the instrument being used for the purchase.",
      "properties": {
        "risk": {
          "type": "number",
          "format": "float",
          "description": "Output only. Probability of this transaction being executed with a stolen instrument. Values are from 0.0 (lowest) to 1.0 (highest).",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1FraudSignals": {
      "description": "Fraud signals describing users and cards involved in the transaction.",
      "type": "object",
      "properties": {
        "userSignals": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals",
          "description": "Output only. Signals describing the end user in this transaction."
        },
        "cardSignals": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals",
          "description": "Output only. Signals describing the payment card or cards used in this transaction."
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals": {
      "description": "Signals describing the payment card used in this transaction.",
      "type": "object",
      "properties": {
        "cardLabels": {
          "readOnly": true,
          "type": "array",
          "description": "Output only. The labels for the payment card in this transaction.",
          "items": {
            "enum": [
              "CARD_LABEL_UNSPECIFIED",
              "PREPAID",
              "VIRTUAL",
              "UNEXPECTED_LOCATION"
            ],
            "type": "string"
          }
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals": {
      "properties": {
        "syntheticRisk": {
          "format": "float",
          "description": "Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic components in their identity, such as a randomly generated email address, temporary phone number, or fake shipping address.",
          "type": "number",
          "readOnly": true
        },
        "activeDaysLowerBound": {
          "readOnly": true,
          "format": "int32",
          "description": "Output only. This user (based on email, phone, and other identifiers) has been seen on the internet for at least this number of days.",
          "type": "integer"
        }
      },
      "type": "object",
      "description": "Signals describing the user involved in this transaction."
    },
    "GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment": {
      "type": "object",
      "description": "Assessment for Phone Fraud",
      "properties": {
        "smsTollFraudVerdict": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict",
          "description": "Output only. Assessment of this phone event for risk of SMS toll fraud."
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1PolicyEvaluation": {
      "type": "object",
      "properties": {
        "challengeRuleEvaluation": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1ChallengeRuleEvaluation",
          "description": "Output only. Populated if one or more Challenge rules were matched. Its presence in the assessment indicates that at least one challenge rule was matched and determined whether a challenge was presented to the user."
        }
      },
      "description": "Information about the policy evaluation."
    },
    "GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification": {
      "properties": {
        "lookupHashPrefix": {
          "description": "Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix.",
          "format": "byte",
          "type": "string"
        },
        "reencryptedUserCredentialsHash": {
          "description": "Output only. Corresponds to the re-encryption of the `encrypted_user_credentials_hash` field. It is used to match potential password leaks within `encrypted_leak_match_prefixes`.",
          "format": "byte",
          "readOnly": true,
          "type": "string"
        },
        "encryptedUserCredentialsHash": {
          "description": "Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through `reencrypted_user_credentials_hash`.",
          "type": "string",
          "format": "byte"
        },
        "encryptedLeakMatchPrefixes": {
          "readOnly": true,
          "items": {
            "format": "byte",
            "type": "string"
          },
          "description": "Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of `reencrypted_user_credentials_hash`",
          "type": "array"
        }
      },
      "type": "object",
      "description": "Private password leak verification info."
    },
    "GoogleCloudRecaptchaenterpriseV1RiskAnalysis": {
      "type": "object",
      "description": "Risk analysis result for an event.",
      "properties": {
        "extendedVerdictReasons": {
          "readOnly": true,
          "items": {
            "type": "string"
          },
          "description": "Output only. Additional reasons contributing to the risk analysis verdict. These reasons are available to Enterprise tier projects only. Contact sales for more information. The set of reasons is subject to change.",
          "type": "array"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CLASSIFICATION_REASON_UNSPECIFIED",
              "AUTOMATION",
              "UNEXPECTED_ENVIRONMENT",
              "TOO_MUCH_TRAFFIC",
              "UNEXPECTED_USAGE_PATTERNS",
              "LOW_CONFIDENCE_SCORE",
              "SUSPECTED_CARDING",
              "SUSPECTED_CHARGEBACK"
            ]
          },
          "readOnly": true,
          "description": "Output only. Reasons contributing to the risk analysis verdict."
        },
        "score": {
          "readOnly": true,
          "format": "float",
          "type": "number",
          "description": "Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic)."
        },
        "verifiedBots": {
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1Bot"
          },
          "description": "Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event."
        },
        "challenge": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Challenge information for Universal, `POLICY_BASED_CHALLENGE` and `INVISIBLE` keys.",
          "enum": [
            "CHALLENGE_UNSPECIFIED",
            "NOCAPTCHA",
            "PASSED",
            "FAILED"
          ]
        },
        "lastChallengeType": {
          "description": "Output only. Type of the last challenge presented to the user for Universal, `POLICY_BASED_CHALLENGE` and `INVISIBLE` keys. The field is only set when a challenge was presented to the user.",
          "enum": [
            "CHALLENGE_TYPE_UNSPECIFIED",
            "CHALLENGE_TYPE_VISUAL",
            "CHALLENGE_TYPE_AUDIO",
            "CHALLENGE_TYPE_QR_CODE"
          ],
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict": {
      "description": "Information about SMS toll fraud.",
      "type": "object",
      "properties": {
        "reasons": {
          "items": {
            "type": "string",
            "enum": [
              "SMS_TOLL_FRAUD_REASON_UNSPECIFIED",
              "INVALID_PHONE_NUMBER"
            ]
          },
          "description": "Output only. Reasons contributing to the SMS toll fraud verdict.",
          "type": "array",
          "readOnly": true
        },
        "risk": {
          "format": "float",
          "type": "number",
          "description": "Output only. Probability of an SMS event being fraudulent. Values are from 0.0 (lowest) to 1.0 (highest).",
          "readOnly": true
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1TokenProperties": {
      "type": "object",
      "description": "Properties of the provided event token.",
      "properties": {
        "action": {
          "description": "Output only. Action name provided at token generation.",
          "type": "string",
          "readOnly": true
        },
        "clientSignalsFailed": {
          "readOnly": true,
          "type": "boolean",
          "description": "Output only. Indicates a failure collecting reCAPTCHA signals at token generation. This might be a transient condition, or persistent for a user's environment."
        },
        "androidPackageName": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The name of the Android package with which the token was generated (Android keys only)."
        },
        "iosBundleId": {
          "description": "Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).",
          "readOnly": true,
          "type": "string"
        },
        "createTime": {
          "format": "google-datetime",
          "description": "Output only. The timestamp corresponding to the generation of the token.",
          "type": "string",
          "readOnly": true
        },
        "valid": {
          "description": "Output only. Indicates whether the provided user response token is valid. If `false`, the token is invalid, either because the user failed the challenge or for a reason provided in the `invalid_reason` field.",
          "type": "boolean",
          "readOnly": true
        },
        "invalidReason": {
          "enum": [
            "INVALID_REASON_UNSPECIFIED",
            "UNKNOWN_INVALID_REASON",
            "MALFORMED",
            "EXPIRED",
            "DUPE",
            "MISSING",
            "BROWSER_ERROR",
            "UNEXPECTED_ACTION",
            "KEY_MISMATCH",
            "DOMAIN_MISMATCH"
          ],
          "readOnly": true,
          "type": "string",
          "description": "Output only. Reason associated with the response when valid = false."
        },
        "clientProperties": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TokenPropertiesClientProperties",
          "description": "Output only. Information collected by the reCAPTCHA Enterprise client-side integration when the token is generated."
        },
        "hostname": {
          "description": "Output only. The hostname of the page on which the token was generated (Web keys only).",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1TokenPropertiesClientProperties": {
      "type": "object",
      "description": "Information collected by the reCAPTCHA Enterprise client-side integration when the token is generated.",
      "properties": {
        "userIpAddress": {
          "description": "Output only. The user's IP address at token generation. This can be either an IPv4 address (e.g., `192.0.2.1`) or an IPv6 address in canonical format per RFC 5952 section 4 (e.g., `2001:db8::1`). IPv4-mapped IPv6 addresses are canonicalized to standard IPv4.",
          "readOnly": true,
          "type": "string"
        },
        "userAgent": {
          "readOnly": true,
          "description": "Output only. The `User-Agent` header string observed by reCAPTCHA during token generation. This string is truncated to a maximum length of 1000 characters.",
          "type": "string"
        }
      }
    },
    "GoogleCloudRecaptchaenterpriseV1TransactionData": {
      "properties": {
        "gatewayInfo": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo",
          "description": "Optional. Information about the payment gateway's response to the transaction."
        },
        "items": {
          "description": "Optional. Items purchased in this transaction.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TransactionDataItem"
          }
        },
        "billingAddress": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TransactionDataAddress",
          "description": "Optional. Address associated with the payment method when applicable."
        },
        "value": {
          "type": "number",
          "description": "Optional. The decimal value of the transaction in the specified currency.",
          "format": "double"
        },
        "transactionId": {
          "type": "string",
          "description": "Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id."
        },
        "user": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TransactionDataUser",
          "description": "Optional. Information about the user paying/initiating the transaction."
        },
        "merchants": {
          "description": "Optional. Information about the user or users fulfilling the transaction.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TransactionDataUser"
          }
        },
        "paymentMethod": {
          "description": "Optional. The payment method for the transaction. The allowed values are: * credit-card * debit-card * gift-card * processor-{name} (If a third-party is used, for example, processor-paypal) * custom-{name} (If an alternative method is used, for example, custom-crypto)",
          "type": "string"
        },
        "shippingAddress": {
          "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1TransactionDataAddress",
          "description": "Optional. Destination address if this transaction involves shipping a physical item."
        },
        "cardLastFour": {
          "description": "Optional. The last four digits of the card.",
          "type": "string"
        },
        "shippingValue": {
          "type": "number",
          "description": "Optional. The value of shipping in the specified currency. 0 for free or no shipping.",
          "format": "double"
        },
        "currencyCode": {
          "type": "string",
          "description": "Optional. The currency code in ISO-4217 format."
        },
        "cardBin": {
          "type": "string",
          "description": "Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card."
        }
      },
      "type": "object",
      "description": "Transaction data associated with a payment protected by reCAPTCHA Enterprise."
    },
    "GoogleCloudRecaptchaenterpriseV1TransactionDataAddress": {
      "description": "Structured address format for billing and shipping addresses.",
      "properties": {
        "regionCode": {
          "type": "string",
          "description": "Optional. The CLDR country/region of the address."
        },
        "postalCode": {
          "type": "string",
          "description": "Optional. The postal or ZIP code of the address."
        },
        "locality": {
          "type": "string",
          "description": "Optional. The town/city of the address."
        },
        "recipient": {
          "type": "string",
          "description": "Optional. The recipient name, potentially including information such as \"care of\"."
        },
        "administrativeArea": {
          "description": "Optional. The state, province, or otherwise administrative area of the address.",
          "type": "string"
        },
        "address": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number."
        }
      },
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo": {
      "properties": {
        "avsResponseCode": {
          "description": "Optional. AVS response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization).",
          "type": "string"
        },
        "gatewayResponseCode": {
          "description": "Optional. Gateway response code describing the state of the transaction.",
          "type": "string"
        },
        "cvvResponseCode": {
          "description": "Optional. CVV response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization).",
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Optional. Name of the gateway service (for example, stripe, square, paypal)."
        }
      },
      "type": "object",
      "description": "Details about the transaction from the gateway."
    },
    "GoogleCloudRecaptchaenterpriseV1TransactionDataItem": {
      "type": "object",
      "properties": {
        "value": {
          "description": "Optional. The value per item that the user is paying, in the transaction currency, after discounts.",
          "type": "number",
          "format": "double"
        },
        "merchantAccountId": {
          "description": "Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.",
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Optional. The full name of the item."
        },
        "quantity": {
          "type": "string",
          "description": "Optional. The quantity of this item that is being purchased.",
          "format": "int64"
        }
      },
      "description": "Line items being purchased in this transaction."
    },
    "GoogleCloudRecaptchaenterpriseV1TransactionDataUser": {
      "type": "object",
      "properties": {
        "phoneVerified": {
          "type": "boolean",
          "description": "Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar)."
        },
        "accountId": {
          "description": "Optional. Unique account identifier for this user. If using Account defense, this should match the `user_info.account_id` field. Otherwise, a unique and persistent identifier for this account.",
          "type": "string"
        },
        "phoneNumber": {
          "type": "string",
          "description": "Optional. The phone number of the user, with country code."
        },
        "email": {
          "type": "string",
          "description": "Optional. The email address of the user."
        },
        "creationMs": {
          "description": "Optional. The epoch milliseconds of the user's account creation.",
          "type": "string",
          "format": "int64"
        },
        "emailVerified": {
          "type": "boolean",
          "description": "Optional. Whether the email has been verified to be accessible by the user (OTP or similar)."
        }
      },
      "description": "Details about a user's account involved in the transaction."
    },
    "GoogleCloudRecaptchaenterpriseV1UserId": {
      "properties": {
        "phoneNumber": {
          "type": "string",
          "description": "Optional. A phone number. Should use the E.164 format."
        },
        "email": {
          "description": "Optional. An email address.",
          "type": "string"
        },
        "username": {
          "type": "string",
          "description": "Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user."
        }
      },
      "description": "An identifier associated with a user.",
      "type": "object"
    },
    "GoogleCloudRecaptchaenterpriseV1UserInfo": {
      "type": "object",
      "description": "User information associated with a request protected by reCAPTCHA Enterprise.",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout."
        },
        "createAccountTime": {
          "format": "google-datetime",
          "description": "Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.",
          "type": "string"
        },
        "userIds": {
          "description": "Optional. Identifiers associated with this user or request.",
          "items": {
            "$ref": "#/$defs/GoogleCloudRecaptchaenterpriseV1UserId"
          },
          "type": "array"
        }
      }
    },
    "GoogleRpcStatus": {
      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client."
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL."
            }
          },
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use."
        },
        "code": {
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}