google-apis-identitytoolkit_v2 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 247069b00c18754325832b6ed819c17a5479818a9c6ec326d2d2cb8d0b9fcbbc
4
- data.tar.gz: 5bf559519feba503b541bb135488a59b49e979667adaeb57f3625beb2b7dbd61
3
+ metadata.gz: 1f02aed29964e015c76a1b8a5fa04d8d4c5dff2e12d92b7d505deb4c1075880e
4
+ data.tar.gz: 60bb39e907b54d533b005f0e9e0faedeaa07567e18594ba1e9f5bb5f84750f8d
5
5
  SHA512:
6
- metadata.gz: 2ff7b5c9882816c9749015c3098e3a768a33cf03f81c6f439b80a9bed476a87e638a1113bb1439344f5af627bbdeb1d37be7b8cf673adf726bdcc5289eb7901e
7
- data.tar.gz: 7324817aefa320b8e32c1e0e60be82f2665e3742cb4e6edf8651011d7ac1543687d612f41927db497fbda89158eb2de4c0f7d1073ef0284174b1b17c55bf3a95
6
+ metadata.gz: 0fc18be0eb8478cdd5785718a3fd28c4d75c3c18315ded64f87baa881a8dac8e15d9d6c556bceb2af085e08734a22e1ae2822fbd6bb5109a557d7d3476ba31a4
7
+ data.tar.gz: 20e6aab0eb60da7597186cd013cef8c8ec50bb2b5b2f85ebfa4d1521fc4be931f1a3339e0ec5501d042db9d2cc5c59a5cf2b6a2826690ff16f594a82c9eacadb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-identitytoolkit_v2
2
2
 
3
+ ### v0.23.0 (2024-12-02)
4
+
5
+ * Regenerated from discovery document revision 20241024
6
+ * Regenerated using generator version 0.15.1
7
+
8
+ ### v0.22.0 (2024-05-19)
9
+
10
+ * Regenerated using generator version 0.15.0
11
+
3
12
  ### v0.21.0 (2024-04-28)
4
13
 
5
14
  * Regenerated from discovery document revision 20240417
@@ -1401,8 +1401,8 @@ module Google
1401
1401
  include Google::Apis::Core::Hashable
1402
1402
 
1403
1403
  # The reCAPTCHA config for email/password provider, containing the enforcement
1404
- # status. The email/password provider contains all related user flows protected
1405
- # by reCAPTCHA.
1404
+ # status. The email/password provider contains all email related user flows
1405
+ # protected by reCAPTCHA.
1406
1406
  # Corresponds to the JSON property `emailPasswordEnforcementState`
1407
1407
  # @return [String]
1408
1408
  attr_accessor :email_password_enforcement_state
@@ -1413,11 +1413,25 @@ module Google
1413
1413
  # @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule>]
1414
1414
  attr_accessor :managed_rules
1415
1415
 
1416
+ # The reCAPTCHA config for phone provider, containing the enforcement status.
1417
+ # The phone provider contains all SMS related user flows protected by reCAPTCHA.
1418
+ # Corresponds to the JSON property `phoneEnforcementState`
1419
+ # @return [String]
1420
+ attr_accessor :phone_enforcement_state
1421
+
1416
1422
  # The reCAPTCHA keys.
1417
1423
  # Corresponds to the JSON property `recaptchaKeys`
1418
1424
  # @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaKey>]
1419
1425
  attr_accessor :recaptcha_keys
1420
1426
 
1427
+ # The managed rules for the authentication action based on reCAPTCHA toll fraud
1428
+ # risk scores. Toll fraud managed rules will only take effect when the
1429
+ # phone_enforcement_state is AUDIT or ENFORCE and use_sms_toll_fraud_protection
1430
+ # is true.
1431
+ # Corresponds to the JSON property `tollFraudManagedRules`
1432
+ # @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule>]
1433
+ attr_accessor :toll_fraud_managed_rules
1434
+
1421
1435
  # Whether to use the account defender for reCAPTCHA assessment. Defaults to `
1422
1436
  # false`.
1423
1437
  # Corresponds to the JSON property `useAccountDefender`
@@ -1425,6 +1439,21 @@ module Google
1425
1439
  attr_accessor :use_account_defender
1426
1440
  alias_method :use_account_defender?, :use_account_defender
1427
1441
 
1442
+ # Whether to use the rCE bot score for reCAPTCHA phone provider. Can only be
1443
+ # true when the phone_enforcement_state is AUDIT or ENFORCE.
1444
+ # Corresponds to the JSON property `useSmsBotScore`
1445
+ # @return [Boolean]
1446
+ attr_accessor :use_sms_bot_score
1447
+ alias_method :use_sms_bot_score?, :use_sms_bot_score
1448
+
1449
+ # Whether to use the rCE sms toll fraud protection risk score for reCAPTCHA
1450
+ # phone provider. Can only be true when the phone_enforcement_state is AUDIT or
1451
+ # ENFORCE.
1452
+ # Corresponds to the JSON property `useSmsTollFraudProtection`
1453
+ # @return [Boolean]
1454
+ attr_accessor :use_sms_toll_fraud_protection
1455
+ alias_method :use_sms_toll_fraud_protection?, :use_sms_toll_fraud_protection
1456
+
1428
1457
  def initialize(**args)
1429
1458
  update!(**args)
1430
1459
  end
@@ -1433,8 +1462,12 @@ module Google
1433
1462
  def update!(**args)
1434
1463
  @email_password_enforcement_state = args[:email_password_enforcement_state] if args.key?(:email_password_enforcement_state)
1435
1464
  @managed_rules = args[:managed_rules] if args.key?(:managed_rules)
1465
+ @phone_enforcement_state = args[:phone_enforcement_state] if args.key?(:phone_enforcement_state)
1436
1466
  @recaptcha_keys = args[:recaptcha_keys] if args.key?(:recaptcha_keys)
1467
+ @toll_fraud_managed_rules = args[:toll_fraud_managed_rules] if args.key?(:toll_fraud_managed_rules)
1437
1468
  @use_account_defender = args[:use_account_defender] if args.key?(:use_account_defender)
1469
+ @use_sms_bot_score = args[:use_sms_bot_score] if args.key?(:use_sms_bot_score)
1470
+ @use_sms_toll_fraud_protection = args[:use_sms_toll_fraud_protection] if args.key?(:use_sms_toll_fraud_protection)
1438
1471
  end
1439
1472
  end
1440
1473
 
@@ -1498,6 +1531,39 @@ module Google
1498
1531
  end
1499
1532
  end
1500
1533
 
1534
+ # The config for a reCAPTCHA toll fraud assessment managed rule. Models a single
1535
+ # interval [start_score, end_score]. The end_score is implicit. It is either the
1536
+ # closest smaller end_score (if one is available) or 0. Intervals in aggregate
1537
+ # span [0, 1] without overlapping.
1538
+ class GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule
1539
+ include Google::Apis::Core::Hashable
1540
+
1541
+ # The action taken if the reCAPTCHA score of a request is within the interval [
1542
+ # start_score, end_score].
1543
+ # Corresponds to the JSON property `action`
1544
+ # @return [String]
1545
+ attr_accessor :action
1546
+
1547
+ # The start score (inclusive) for an action. Must be a value between 0.0 and 1.0,
1548
+ # at 11 discrete values; e.g. 0, 0.1, 0.2, 0.3, ... 0.9, 1.0. A score of 0.0
1549
+ # indicates the safest request (likely legitimate), whereas 1.0 indicates the
1550
+ # riskiest request (likely toll fraud). See https://cloud.google.com/recaptcha-
1551
+ # enterprise/docs/sms-fraud-detection#create-assessment-sms.
1552
+ # Corresponds to the JSON property `startScore`
1553
+ # @return [Float]
1554
+ attr_accessor :start_score
1555
+
1556
+ def initialize(**args)
1557
+ update!(**args)
1558
+ end
1559
+
1560
+ # Update properties of this object
1561
+ def update!(**args)
1562
+ @action = args[:action] if args.key?(:action)
1563
+ @start_score = args[:start_score] if args.key?(:start_score)
1564
+ end
1565
+ end
1566
+
1501
1567
  # Configuration for logging requests made to this project to Stackdriver Logging
1502
1568
  class GoogleCloudIdentitytoolkitAdminV2RequestLogging
1503
1569
  include Google::Apis::Core::Hashable
@@ -2464,6 +2530,19 @@ module Google
2464
2530
  # @return [String]
2465
2531
  attr_accessor :recaptcha_key
2466
2532
 
2533
+ # Whether to use the rCE bot score for reCAPTCHA phone provider.
2534
+ # Corresponds to the JSON property `useSmsBotScore`
2535
+ # @return [Boolean]
2536
+ attr_accessor :use_sms_bot_score
2537
+ alias_method :use_sms_bot_score?, :use_sms_bot_score
2538
+
2539
+ # Whether to use the rCE sms toll fraud protection risk score for reCAPTCHA
2540
+ # phone provider.
2541
+ # Corresponds to the JSON property `useSmsTollFraudProtection`
2542
+ # @return [Boolean]
2543
+ attr_accessor :use_sms_toll_fraud_protection
2544
+ alias_method :use_sms_toll_fraud_protection?, :use_sms_toll_fraud_protection
2545
+
2467
2546
  def initialize(**args)
2468
2547
  update!(**args)
2469
2548
  end
@@ -2472,6 +2551,8 @@ module Google
2472
2551
  def update!(**args)
2473
2552
  @recaptcha_enforcement_state = args[:recaptcha_enforcement_state] if args.key?(:recaptcha_enforcement_state)
2474
2553
  @recaptcha_key = args[:recaptcha_key] if args.key?(:recaptcha_key)
2554
+ @use_sms_bot_score = args[:use_sms_bot_score] if args.key?(:use_sms_bot_score)
2555
+ @use_sms_toll_fraud_protection = args[:use_sms_toll_fraud_protection] if args.key?(:use_sms_toll_fraud_protection)
2475
2556
  end
2476
2557
  end
2477
2558
 
@@ -2643,6 +2724,18 @@ module Google
2643
2724
  # @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AutoRetrievalInfo]
2644
2725
  attr_accessor :auto_retrieval_info
2645
2726
 
2727
+ # The reCAPTCHA Enterprise token provided by the reCAPTCHA client-side
2728
+ # integration. Required when reCAPTCHA enterprise is enabled.
2729
+ # Corresponds to the JSON property `captchaResponse`
2730
+ # @return [String]
2731
+ attr_accessor :captcha_response
2732
+
2733
+ # The client type, web, android or ios. Required when reCAPTCHA Enterprise is
2734
+ # enabled.
2735
+ # Corresponds to the JSON property `clientType`
2736
+ # @return [String]
2737
+ attr_accessor :client_type
2738
+
2646
2739
  # iOS only. Receipt of successful app token validation with APNS.
2647
2740
  # Corresponds to the JSON property `iosReceipt`
2648
2741
  # @return [String]
@@ -2671,6 +2764,12 @@ module Google
2671
2764
  # @return [String]
2672
2765
  attr_accessor :recaptcha_token
2673
2766
 
2767
+ # The reCAPTCHA version of the reCAPTCHA token in the captcha_response. Required
2768
+ # when reCAPTCHA Enterprise is enabled.
2769
+ # Corresponds to the JSON property `recaptchaVersion`
2770
+ # @return [String]
2771
+ attr_accessor :recaptcha_version
2772
+
2674
2773
  # Android only. Used to assert application identity in place of a recaptcha
2675
2774
  # token. A SafetyNet Token can be generated via the [SafetyNet Android
2676
2775
  # Attestation API](https://developer.android.com/training/safetynet/attestation.
@@ -2686,11 +2785,14 @@ module Google
2686
2785
  # Update properties of this object
2687
2786
  def update!(**args)
2688
2787
  @auto_retrieval_info = args[:auto_retrieval_info] if args.key?(:auto_retrieval_info)
2788
+ @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
2789
+ @client_type = args[:client_type] if args.key?(:client_type)
2689
2790
  @ios_receipt = args[:ios_receipt] if args.key?(:ios_receipt)
2690
2791
  @ios_secret = args[:ios_secret] if args.key?(:ios_secret)
2691
2792
  @phone_number = args[:phone_number] if args.key?(:phone_number)
2692
2793
  @play_integrity_token = args[:play_integrity_token] if args.key?(:play_integrity_token)
2693
2794
  @recaptcha_token = args[:recaptcha_token] if args.key?(:recaptcha_token)
2795
+ @recaptcha_version = args[:recaptcha_version] if args.key?(:recaptcha_version)
2694
2796
  @safety_net_token = args[:safety_net_token] if args.key?(:safety_net_token)
2695
2797
  end
2696
2798
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module IdentitytoolkitV2
18
18
  # Version of the google-apis-identitytoolkit_v2 gem
19
- GEM_VERSION = "0.21.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240417"
25
+ REVISION = "20241024"
26
26
  end
27
27
  end
28
28
  end
@@ -292,6 +292,12 @@ module Google
292
292
  include Google::Apis::Core::JsonObjectSupport
293
293
  end
294
294
 
295
+ class GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
295
301
  class GoogleCloudIdentitytoolkitAdminV2RequestLogging
296
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
303
 
@@ -1006,9 +1012,14 @@ module Google
1006
1012
  property :email_password_enforcement_state, as: 'emailPasswordEnforcementState'
1007
1013
  collection :managed_rules, as: 'managedRules', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule::Representation
1008
1014
 
1015
+ property :phone_enforcement_state, as: 'phoneEnforcementState'
1009
1016
  collection :recaptcha_keys, as: 'recaptchaKeys', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaKey, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaKey::Representation
1010
1017
 
1018
+ collection :toll_fraud_managed_rules, as: 'tollFraudManagedRules', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule::Representation
1019
+
1011
1020
  property :use_account_defender, as: 'useAccountDefender'
1021
+ property :use_sms_bot_score, as: 'useSmsBotScore'
1022
+ property :use_sms_toll_fraud_protection, as: 'useSmsTollFraudProtection'
1012
1023
  end
1013
1024
  end
1014
1025
 
@@ -1028,6 +1039,14 @@ module Google
1028
1039
  end
1029
1040
  end
1030
1041
 
1042
+ class GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule
1043
+ # @private
1044
+ class Representation < Google::Apis::Core::JsonRepresentation
1045
+ property :action, as: 'action'
1046
+ property :start_score, as: 'startScore'
1047
+ end
1048
+ end
1049
+
1031
1050
  class GoogleCloudIdentitytoolkitAdminV2RequestLogging
1032
1051
  # @private
1033
1052
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1309,6 +1328,8 @@ module Google
1309
1328
  collection :recaptcha_enforcement_state, as: 'recaptchaEnforcementState', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState::Representation
1310
1329
 
1311
1330
  property :recaptcha_key, as: 'recaptchaKey'
1331
+ property :use_sms_bot_score, as: 'useSmsBotScore'
1332
+ property :use_sms_toll_fraud_protection, as: 'useSmsTollFraudProtection'
1312
1333
  end
1313
1334
  end
1314
1335
 
@@ -1365,11 +1386,14 @@ module Google
1365
1386
  class Representation < Google::Apis::Core::JsonRepresentation
1366
1387
  property :auto_retrieval_info, as: 'autoRetrievalInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AutoRetrievalInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AutoRetrievalInfo::Representation
1367
1388
 
1389
+ property :captcha_response, as: 'captchaResponse'
1390
+ property :client_type, as: 'clientType'
1368
1391
  property :ios_receipt, as: 'iosReceipt'
1369
1392
  property :ios_secret, as: 'iosSecret'
1370
1393
  property :phone_number, as: 'phoneNumber'
1371
1394
  property :play_integrity_token, as: 'playIntegrityToken'
1372
1395
  property :recaptcha_token, as: 'recaptchaToken'
1396
+ property :recaptcha_version, as: 'recaptchaVersion'
1373
1397
  property :safety_net_token, as: 'safetyNetToken'
1374
1398
  end
1375
1399
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-identitytoolkit_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-28 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-identitytoolkit_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.23.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-identitytoolkit_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Identity Toolkit API V2