Skip to content

Commit

Permalink
feat(recaptchaenterprise): update the API
Browse files Browse the repository at this point in the history
#### recaptchaenterprise:v1

The following keys were added:
- schemas.GoogleCloudRecaptchaenterpriseV1Assessment.properties.fraudSignals.$ref
- schemas.GoogleCloudRecaptchaenterpriseV1Assessment.properties.fraudSignals.description
- schemas.GoogleCloudRecaptchaenterpriseV1Assessment.properties.fraudSignals.readOnly
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.id
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.properties.cardSignals.$ref
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.properties.cardSignals.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.properties.cardSignals.readOnly
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.properties.userSignals.$ref
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.properties.userSignals.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.properties.userSignals.readOnly
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignals.type
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.id
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.properties.cardLabels.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.properties.cardLabels.items.enum
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.properties.cardLabels.items.enumDescriptions
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.properties.cardLabels.items.type
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.properties.cardLabels.readOnly
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.properties.cardLabels.type
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals.type
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.id
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.activeDaysLowerBound.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.activeDaysLowerBound.format
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.activeDaysLowerBound.readOnly
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.activeDaysLowerBound.type
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.syntheticRisk.description
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.syntheticRisk.format
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.syntheticRisk.readOnly
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.properties.syntheticRisk.type
- schemas.GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals.type
  • Loading branch information
yoshi-automation authored and sofisl committed Sep 22, 2023
1 parent 64cfc3b commit c7fcfc0
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 1 deletion.
70 changes: 69 additions & 1 deletion discovery/recaptchaenterprise-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@
}
}
},
"revision": "20230729",
"revision": "20230917",
"rootUrl": "https://recaptchaenterprise.googleapis.com/",
"schemas": {
"GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": {
Expand Down Expand Up @@ -902,6 +902,11 @@
"$ref": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment",
"description": "Assessment returned by Fraud Prevention when TransactionData is provided."
},
"fraudSignals": {
"$ref": "GoogleCloudRecaptchaenterpriseV1FraudSignals",
"description": "Output only. Fraud Signals specific to the users involved in a payment transaction.",
"readOnly": true
},
"name": {
"description": "Output only. The resource name for the Assessment in the format \"projects/{project}/assessments/{assessment}\".",
"readOnly": true,
Expand Down Expand Up @@ -1217,6 +1222,69 @@
},
"type": "object"
},
"GoogleCloudRecaptchaenterpriseV1FraudSignals": {
"description": "Fraud signals describing users and cards involved in the transaction.",
"id": "GoogleCloudRecaptchaenterpriseV1FraudSignals",
"properties": {
"cardSignals": {
"$ref": "GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals",
"description": "Output only. Signals describing the payment card or cards used in this transaction.",
"readOnly": true
},
"userSignals": {
"$ref": "GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals",
"description": "Output only. Signals describing the end user in this transaction.",
"readOnly": true
}
},
"type": "object"
},
"GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals": {
"description": "Signals describing the payment card used in this transaction.",
"id": "GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals",
"properties": {
"cardLabels": {
"description": "Output only. The labels for the payment card in this transaction.",
"items": {
"enum": [
"CARD_LABEL_UNSPECIFIED",
"PREPAID",
"VIRTUAL",
"UNEXPECTED_LOCATION"
],
"enumDescriptions": [
"No label specified.",
"This card has been detected as prepaid.",
"This card has been detected as virtual, such as a card number generated for a single transaction or merchant.",
"This card has been detected as being used in an unexpected geographic location."
],
"type": "string"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
},
"GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals": {
"description": "Signals describing the user involved in this transaction.",
"id": "GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals",
"properties": {
"activeDaysLowerBound": {
"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.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"syntheticRisk": {
"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.",
"format": "float",
"readOnly": true,
"type": "number"
}
},
"type": "object"
},
"GoogleCloudRecaptchaenterpriseV1IOSKeySettings": {
"description": "Settings specific to keys that can be used by iOS apps.",
"id": "GoogleCloudRecaptchaenterpriseV1IOSKeySettings",
Expand Down
39 changes: 39 additions & 0 deletions src/apis/recaptchaenterprise/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ export namespace recaptchaenterprise_v1 {
* Assessment returned by Fraud Prevention when TransactionData is provided.
*/
fraudPreventionAssessment?: Schema$GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment;
/**
* Output only. Fraud Signals specific to the users involved in a payment transaction.
*/
fraudSignals?: Schema$GoogleCloudRecaptchaenterpriseV1FraudSignals;
/**
* Output only. The resource name for the Assessment in the format "projects/{project\}/assessments/{assessment\}".
*/
Expand Down Expand Up @@ -498,6 +502,41 @@ export namespace recaptchaenterprise_v1 {
*/
risk?: number | null;
}
/**
* Fraud signals describing users and cards involved in the transaction.
*/
export interface Schema$GoogleCloudRecaptchaenterpriseV1FraudSignals {
/**
* Output only. Signals describing the payment card or cards used in this transaction.
*/
cardSignals?: Schema$GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals;
/**
* Output only. Signals describing the end user in this transaction.
*/
userSignals?: Schema$GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals;
}
/**
* Signals describing the payment card used in this transaction.
*/
export interface Schema$GoogleCloudRecaptchaenterpriseV1FraudSignalsCardSignals {
/**
* Output only. The labels for the payment card in this transaction.
*/
cardLabels?: string[] | null;
}
/**
* Signals describing the user involved in this transaction.
*/
export interface Schema$GoogleCloudRecaptchaenterpriseV1FraudSignalsUserSignals {
/**
* Output only. This user (based on email, phone, and other identifiers) has been seen on the internet for at least this number of days.
*/
activeDaysLowerBound?: number | null;
/**
* 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.
*/
syntheticRisk?: number | null;
}
/**
* Settings specific to keys that can be used by iOS apps.
*/
Expand Down

0 comments on commit c7fcfc0

Please sign in to comment.