Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ public function getName()
return $this->name;
}
/**
* Output only. Assessment returned when a site key, a token, and a phone
* number as `user_id` are provided. SMS defense needs to be enabled.
* 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.
*
* @param GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment $phoneFraudAssessment
*/
Expand Down
34 changes: 18 additions & 16 deletions src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ class GoogleCloudRecaptchaenterpriseV1Bot extends \Google\Model
* 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 - SEARCH_INDEXER * 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 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.
* 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.
*
* @var string
*/
Expand Down Expand Up @@ -85,14 +86,15 @@ public function getBotType()
* 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 - SEARCH_INDEXER * 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 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.
* 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.
*
* @param string $name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class GoogleCloudRecaptchaenterpriseV1ChallengeRule extends \Google\Model
* Optional. A CEL condition that must be met for this rule to apply. If
* unspecified, the rule applies unconditionally. The following fields can be
* referenced in the condition: * `score` * `user_ip_address` * `user_asn` *
* `user_agent` * `verified_bots.name` * `verified_bots.bot_type` Examples: *
* `score < 0.5` * `user_ip_address == "123.45.67.89"` *
* `user_agent.contains("Chrome")` * `score < 0.5 && user_ip_address ==
* "123.45.67.89"`
* `user_agent` * `region_code` * `verified_bots.name` *
* `verified_bots.bot_type` Examples: * `score < 0.5` * `user_ip_address ==
* "123.45.67.89"` * `user_agent.contains("Chrome")` * `score < 0.5 &&
* user_ip_address == "123.45.67.89"`
*
* @var string
*/
Expand Down Expand Up @@ -56,10 +56,10 @@ public function getChallenge()
* Optional. A CEL condition that must be met for this rule to apply. If
* unspecified, the rule applies unconditionally. The following fields can be
* referenced in the condition: * `score` * `user_ip_address` * `user_asn` *
* `user_agent` * `verified_bots.name` * `verified_bots.bot_type` Examples: *
* `score < 0.5` * `user_ip_address == "123.45.67.89"` *
* `user_agent.contains("Chrome")` * `score < 0.5 && user_ip_address ==
* "123.45.67.89"`
* `user_agent` * `region_code` * `verified_bots.name` *
* `verified_bots.bot_type` Examples: * `score < 0.5` * `user_ip_address ==
* "123.45.67.89"` * `user_agent.contains("Chrome")` * `score < 0.5 &&
* user_ip_address == "123.45.67.89"`
*
* @param string $condition
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class GoogleCloudRecaptchaenterpriseV1TestingOptions extends \Google\Model
*/
public const TESTING_CHALLENGE_UNSOLVABLE_CHALLENGE = 'UNSOLVABLE_CHALLENGE';
/**
* Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
* challenge requests for this site return nocaptcha if NOCAPTCHA, or an
* unsolvable challenge if CHALLENGE.
* Optional. For challenge-based keys only (`CHECKBOX`, `INVISIBLE`), all
* challenge requests for this site do not show a challenge if `NOCAPTCHA`, or
* show an unsolvable challenge if `UNSOLVABLE_CHALLENGE`.
*
* @var string
*/
Expand All @@ -50,9 +50,9 @@ class GoogleCloudRecaptchaenterpriseV1TestingOptions extends \Google\Model
public $testingScore;

/**
* Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
* challenge requests for this site return nocaptcha if NOCAPTCHA, or an
* unsolvable challenge if CHALLENGE.
* Optional. For challenge-based keys only (`CHECKBOX`, `INVISIBLE`), all
* challenge requests for this site do not show a challenge if `NOCAPTCHA`, or
* show an unsolvable challenge if `UNSOLVABLE_CHALLENGE`.
*
* Accepted values: TESTING_CHALLENGE_UNSPECIFIED, NOCAPTCHA,
* UNSOLVABLE_CHALLENGE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class GoogleCloudRecaptchaenterpriseV1TokenProperties extends \Google\Model
/**
* The action provided at token generation was different than the
* `expected_action` in the assessment request. The comparison is case-
* insensitive. This reason can only be returned if all of the following are
* true: - your `site_key` has the POLICY_BASED_CHALLENGE integration type -
* you set an action score threshold higher than 0.0 - you provided a non-
* empty `expected_action`
* insensitive. This reason can only be returned if an `expected_action` is
* provided and either: - your `site_key` is a Universal key, or - your
* `site_key` has the `POLICY_BASED_CHALLENGE` integration type with an action
* score threshold higher than 0.0
*/
public const INVALID_REASON_UNEXPECTED_ACTION = 'UNEXPECTED_ACTION';
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class GoogleCloudRecaptchaenterpriseV1TransactionDataUser extends \Google\Model
{
/**
* Optional. Unique account identifier for this user. If using Account
* defense, this should match the hashed_account_id field. Otherwise, a unique
* and persistent identifier for this account.
* defense, this should match the `user_info.account_id` field. Otherwise, a
* unique and persistent identifier for this account.
*
* @var string
*/
Expand Down Expand Up @@ -62,8 +62,8 @@ class GoogleCloudRecaptchaenterpriseV1TransactionDataUser extends \Google\Model

/**
* Optional. Unique account identifier for this user. If using Account
* defense, this should match the hashed_account_id field. Otherwise, a unique
* and persistent identifier for this account.
* defense, this should match the `user_info.account_id` field. Otherwise, a
* unique and persistent identifier for this account.
*
* @param string $accountId
*/
Expand Down
Loading