didit-sdk 2.35.0 → 2.36.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 +4 -4
- data/CHANGELOG.md +36 -0
- data/lib/didit/resources/bank.rb +61 -69
- data/lib/didit/resources/phone.rb +74 -44
- data/lib/didit/types/components.rb +101 -339
- data/lib/didit/types/phone.rb +537 -80
- data/lib/didit/types.rb +72 -48
- data/lib/didit/version.rb +1 -1
- data/sig/didit/resources/phone.rbs +16 -16
- data/sig/didit/types/components.rbs +82 -288
- data/sig/didit/types/phone.rbs +473 -76
- metadata +1 -1
|
@@ -156,12 +156,12 @@ module Didit
|
|
|
156
156
|
#
|
|
157
157
|
# +POST /v3/phone/check/+
|
|
158
158
|
#
|
|
159
|
-
# @param code [String] The OTP the end user received. Must be 4-8 numeric digits - anything else returns `400`
|
|
160
|
-
# without consuming an attempt. A well-formed but wrong code returns `200` with `status: "Failed"` and consumes
|
|
161
|
-
# one of the 3 attempts.
|
|
162
159
|
# @param phone_number [String] The same phone number used in the matching [`POST
|
|
163
160
|
# /v3/phone/send/`](/standalone-apis/phone-send) call, in E.164 format. This is what links the check to the
|
|
164
161
|
# send.
|
|
162
|
+
# @param code [String] The OTP the end user received. Must be 4-8 numeric digits - anything else returns `400`
|
|
163
|
+
# without consuming an attempt. A well-formed but wrong code returns `200` with `status: "Failed"` and consumes
|
|
164
|
+
# one of the 3 attempts.
|
|
165
165
|
# @param duplicated_phone_number_action [String] What to do when the same number was already used by a different
|
|
166
166
|
# user (different `vendor_data`) of your application. `DECLINE` flips the final `status` to `Declined`;
|
|
167
167
|
# `NO_ACTION` records the risk in `phone.warnings` and fills `phone.matches`.
|
|
@@ -193,16 +193,12 @@ module Didit
|
|
|
193
193
|
# @param phone_no_social_presence_action [String] Action when the social footprint check finds the number
|
|
194
194
|
# registered on none of the platforms it covers. Only NO_ACTION and DECLINE are accepted on this endpoint;
|
|
195
195
|
# REVIEW is available on the workflow configuration key of the same name.
|
|
196
|
-
# @param factor_id [String] A TOTP factor being checked instead of a phone code, as returned when it was
|
|
197
|
-
# enrolled; send the 4-8 digit `code` its authenticator app shows. The answer is `{verification_id, status,
|
|
198
|
-
# attempts}` with `status` `verified` or `failed`; a factor that is `disabled` answers `400 factor_disabled`, an
|
|
199
|
-
# unknown one `404 not_found`.
|
|
200
196
|
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
201
197
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
202
|
-
# @return [Didit::Types::
|
|
198
|
+
# @return [Didit::Types::PhoneVerificationCheckResponse]
|
|
203
199
|
def check_code(
|
|
200
|
+
phone_number:,
|
|
204
201
|
code:,
|
|
205
|
-
phone_number: OMIT,
|
|
206
202
|
duplicated_phone_number_action: OMIT,
|
|
207
203
|
disposable_number_action: OMIT,
|
|
208
204
|
voip_number_action: OMIT,
|
|
@@ -213,7 +209,6 @@ module Didit
|
|
|
213
209
|
low_phone_trust_action: OMIT,
|
|
214
210
|
enable_social: OMIT,
|
|
215
211
|
phone_no_social_presence_action: OMIT,
|
|
216
|
-
factor_id: OMIT,
|
|
217
212
|
idempotency_key: OMIT,
|
|
218
213
|
request_options: nil
|
|
219
214
|
)
|
|
@@ -221,8 +216,8 @@ module Didit
|
|
|
221
216
|
:post,
|
|
222
217
|
"/v3/phone/check/",
|
|
223
218
|
body: {
|
|
224
|
-
"code" => code,
|
|
225
219
|
"phone_number" => phone_number,
|
|
220
|
+
"code" => code,
|
|
226
221
|
"duplicated_phone_number_action" => duplicated_phone_number_action,
|
|
227
222
|
"disposable_number_action" => disposable_number_action,
|
|
228
223
|
"voip_number_action" => voip_number_action,
|
|
@@ -232,11 +227,10 @@ module Didit
|
|
|
232
227
|
"recent_port_action" => recent_port_action,
|
|
233
228
|
"low_phone_trust_action" => low_phone_trust_action,
|
|
234
229
|
"enable_social" => enable_social,
|
|
235
|
-
"phone_no_social_presence_action" => phone_no_social_presence_action
|
|
236
|
-
"factor_id" => factor_id
|
|
230
|
+
"phone_no_social_presence_action" => phone_no_social_presence_action
|
|
237
231
|
},
|
|
238
232
|
headers: { "Idempotency-Key" => idempotency_key },
|
|
239
|
-
response: Types::
|
|
233
|
+
response: Types::PhoneVerificationCheckResponse,
|
|
240
234
|
request_options: request_options
|
|
241
235
|
)
|
|
242
236
|
end
|
|
@@ -359,8 +353,10 @@ module Didit
|
|
|
359
353
|
# @param friendly_name [String] Shown in the authenticator app and in the factor list.
|
|
360
354
|
# @param metadata [Hash{String => String}] Up to 10 keys and values of your own, returned with the factor.
|
|
361
355
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
362
|
-
# @return [Didit::Types::
|
|
356
|
+
# @return [Didit::Types::PhoneFactorsCreateResponse]
|
|
357
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
363
358
|
def create(type:, user_id:, friendly_name: OMIT, metadata: OMIT, request_options: nil)
|
|
359
|
+
@client.deprecated("phone.factors.create", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
364
360
|
@client.request(
|
|
365
361
|
:post,
|
|
366
362
|
"/v3/phone/factors/",
|
|
@@ -370,7 +366,7 @@ module Didit
|
|
|
370
366
|
"friendly_name" => friendly_name,
|
|
371
367
|
"metadata" => metadata
|
|
372
368
|
},
|
|
373
|
-
response: Types::
|
|
369
|
+
response: Types::PhoneFactorsCreateResponse,
|
|
374
370
|
request_options: request_options
|
|
375
371
|
)
|
|
376
372
|
end
|
|
@@ -392,7 +388,9 @@ module Didit
|
|
|
392
388
|
# @param factor_id [String] The factor to delete.
|
|
393
389
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
394
390
|
# @return [nil]
|
|
391
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
395
392
|
def delete(factor_id, request_options: nil)
|
|
393
|
+
@client.deprecated("phone.factors.delete", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
396
394
|
@client.request(
|
|
397
395
|
:delete,
|
|
398
396
|
"/v3/phone/factors/{factor_id}/",
|
|
@@ -427,8 +425,10 @@ module Didit
|
|
|
427
425
|
# @param format [String] `json` (default) for a page, or `csv` to export every row that matches the filters as
|
|
428
426
|
# CSV.
|
|
429
427
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
430
|
-
# @return [Didit::Page<Didit::Types::
|
|
428
|
+
# @return [Didit::Page<Didit::Types::PhoneFactorsListResponseResults>]
|
|
429
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
431
430
|
def list(user_id:, type: OMIT, status: OMIT, limit: OMIT, offset: OMIT, format: OMIT, request_options: nil)
|
|
431
|
+
@client.deprecated("phone.factors.list", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
432
432
|
@client.request(
|
|
433
433
|
:get,
|
|
434
434
|
"/v3/phone/factors/",
|
|
@@ -440,7 +440,7 @@ module Didit
|
|
|
440
440
|
"offset" => offset,
|
|
441
441
|
"format" => format
|
|
442
442
|
},
|
|
443
|
-
page: Types::
|
|
443
|
+
page: Types::PhoneFactorsListResponseResults,
|
|
444
444
|
request_options: request_options
|
|
445
445
|
)
|
|
446
446
|
end
|
|
@@ -458,13 +458,15 @@ module Didit
|
|
|
458
458
|
#
|
|
459
459
|
# @param factor_id [String] The factor.
|
|
460
460
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
461
|
-
# @return [Didit::Types::
|
|
461
|
+
# @return [Didit::Types::PhoneFactorsRetrieveResponse]
|
|
462
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
462
463
|
def retrieve(factor_id, request_options: nil)
|
|
464
|
+
@client.deprecated("phone.factors.retrieve", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
463
465
|
@client.request(
|
|
464
466
|
:get,
|
|
465
467
|
"/v3/phone/factors/{factor_id}/",
|
|
466
468
|
path_params: { "factor_id" => factor_id },
|
|
467
|
-
response: Types::
|
|
469
|
+
response: Types::PhoneFactorsRetrieveResponse,
|
|
468
470
|
request_options: request_options
|
|
469
471
|
)
|
|
470
472
|
end
|
|
@@ -491,8 +493,10 @@ module Didit
|
|
|
491
493
|
# @param metadata [Hash{String => String}] Replaces your keys and values with these, up to 10.
|
|
492
494
|
# @param status [String] `disabled` stops the factor's checks; `verified` turns a disabled factor back on.
|
|
493
495
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
494
|
-
# @return [Didit::Types::
|
|
496
|
+
# @return [Didit::Types::PhoneFactorsUpdateResponse]
|
|
497
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
495
498
|
def update(factor_id, friendly_name: OMIT, metadata: OMIT, status: OMIT, request_options: nil)
|
|
499
|
+
@client.deprecated("phone.factors.update", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
496
500
|
@client.request(
|
|
497
501
|
:patch,
|
|
498
502
|
"/v3/phone/factors/{factor_id}/",
|
|
@@ -502,7 +506,7 @@ module Didit
|
|
|
502
506
|
"metadata" => metadata,
|
|
503
507
|
"status" => status
|
|
504
508
|
},
|
|
505
|
-
response: Types::
|
|
509
|
+
response: Types::PhoneFactorsUpdateResponse,
|
|
506
510
|
request_options: request_options
|
|
507
511
|
)
|
|
508
512
|
end
|
|
@@ -555,7 +559,8 @@ module Didit
|
|
|
555
559
|
# @param purpose [String] Why the flow needs the feature, shown to the networks.
|
|
556
560
|
# @param monthly_volume [Integer] Expected requests a month.
|
|
557
561
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
558
|
-
# @return [Didit::Types::
|
|
562
|
+
# @return [Didit::Types::PhoneNetworkRegistrationsCreateResponse]
|
|
563
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
559
564
|
def create(
|
|
560
565
|
feature:,
|
|
561
566
|
country:,
|
|
@@ -567,6 +572,7 @@ module Didit
|
|
|
567
572
|
monthly_volume: OMIT,
|
|
568
573
|
request_options: nil
|
|
569
574
|
)
|
|
575
|
+
@client.deprecated("phone.network.registrations.create", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
570
576
|
@client.request(
|
|
571
577
|
:post,
|
|
572
578
|
"/v3/phone/network/registrations/",
|
|
@@ -580,7 +586,7 @@ module Didit
|
|
|
580
586
|
"purpose" => purpose,
|
|
581
587
|
"monthly_volume" => monthly_volume
|
|
582
588
|
},
|
|
583
|
-
response: Types::
|
|
589
|
+
response: Types::PhoneNetworkRegistrationsCreateResponse,
|
|
584
590
|
request_options: request_options
|
|
585
591
|
)
|
|
586
592
|
end
|
|
@@ -608,7 +614,8 @@ module Didit
|
|
|
608
614
|
# @param format [String] `json` (default) for a page, or `csv` to export every row that matches the filters
|
|
609
615
|
# as CSV.
|
|
610
616
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
611
|
-
# @return [Didit::Page<Didit::Types::
|
|
617
|
+
# @return [Didit::Page<Didit::Types::PhoneNetworkRegistrationsListResponseResults>]
|
|
618
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
612
619
|
def list(
|
|
613
620
|
feature: OMIT,
|
|
614
621
|
country: OMIT,
|
|
@@ -618,6 +625,7 @@ module Didit
|
|
|
618
625
|
format: OMIT,
|
|
619
626
|
request_options: nil
|
|
620
627
|
)
|
|
628
|
+
@client.deprecated("phone.network.registrations.list", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
621
629
|
@client.request(
|
|
622
630
|
:get,
|
|
623
631
|
"/v3/phone/network/registrations/",
|
|
@@ -629,7 +637,7 @@ module Didit
|
|
|
629
637
|
"offset" => offset,
|
|
630
638
|
"format" => format
|
|
631
639
|
},
|
|
632
|
-
page: Types::
|
|
640
|
+
page: Types::PhoneNetworkRegistrationsListResponseResults,
|
|
633
641
|
request_options: request_options
|
|
634
642
|
)
|
|
635
643
|
end
|
|
@@ -649,13 +657,15 @@ module Didit
|
|
|
649
657
|
#
|
|
650
658
|
# @param registration_id [String] The network feature registration.
|
|
651
659
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
652
|
-
# @return [Didit::Types::
|
|
660
|
+
# @return [Didit::Types::PhoneNetworkRegistrationsRetrieveResponse]
|
|
661
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
653
662
|
def retrieve(registration_id, request_options: nil)
|
|
663
|
+
@client.deprecated("phone.network.registrations.retrieve", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
654
664
|
@client.request(
|
|
655
665
|
:get,
|
|
656
666
|
"/v3/phone/network/registrations/{registration_id}/",
|
|
657
667
|
path_params: { "registration_id" => registration_id },
|
|
658
|
-
response: Types::
|
|
668
|
+
response: Types::PhoneNetworkRegistrationsRetrieveResponse,
|
|
659
669
|
request_options: request_options
|
|
660
670
|
)
|
|
661
671
|
end
|
|
@@ -683,8 +693,10 @@ module Didit
|
|
|
683
693
|
# @param registration_id [String] The network feature registration.
|
|
684
694
|
# @param phone_number [String] A number you hold, in E.164. Didit sends it a code to confirm it.
|
|
685
695
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
686
|
-
# @return [Didit::Types::
|
|
696
|
+
# @return [Didit::Types::PhoneNetworkRegistrationsTestNumbersCreateResponse]
|
|
697
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
687
698
|
def create(registration_id, phone_number:, request_options: nil)
|
|
699
|
+
@client.deprecated("phone.network.registrations.test_numbers.create", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
688
700
|
@client.request(
|
|
689
701
|
:post,
|
|
690
702
|
"/v3/phone/network/registrations/{registration_id}/test-numbers/",
|
|
@@ -692,7 +704,7 @@ module Didit
|
|
|
692
704
|
body: {
|
|
693
705
|
"phone_number" => phone_number
|
|
694
706
|
},
|
|
695
|
-
response: Types::
|
|
707
|
+
response: Types::PhoneNetworkRegistrationsTestNumbersCreateResponse,
|
|
696
708
|
request_options: request_options
|
|
697
709
|
)
|
|
698
710
|
end
|
|
@@ -714,7 +726,9 @@ module Didit
|
|
|
714
726
|
# @param phone_number [String] The test number, in E.164 and URL-encoded.
|
|
715
727
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
716
728
|
# @return [nil]
|
|
729
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
717
730
|
def delete(registration_id, phone_number, request_options: nil)
|
|
731
|
+
@client.deprecated("phone.network.registrations.test_numbers.delete", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
718
732
|
@client.request(
|
|
719
733
|
:delete,
|
|
720
734
|
"/v3/phone/network/registrations/{registration_id}/test-numbers/{phone_number}/",
|
|
@@ -751,8 +765,10 @@ module Didit
|
|
|
751
765
|
# @param app_ids [Array<String>] The bundle ids, package names or `https` origins the key works for.
|
|
752
766
|
# @param name [String] Shown in API keys.
|
|
753
767
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
754
|
-
# @return [Didit::Types::
|
|
768
|
+
# @return [Didit::Types::PhoneSdkKeysCreateResponse]
|
|
769
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
755
770
|
def create(platform:, app_ids:, name: OMIT, request_options: nil)
|
|
771
|
+
@client.deprecated("phone.sdk_keys.create", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
756
772
|
@client.request(
|
|
757
773
|
:post,
|
|
758
774
|
"/v3/phone/sdk-keys/",
|
|
@@ -761,7 +777,7 @@ module Didit
|
|
|
761
777
|
"app_ids" => app_ids,
|
|
762
778
|
"name" => name
|
|
763
779
|
},
|
|
764
|
-
response: Types::
|
|
780
|
+
response: Types::PhoneSdkKeysCreateResponse,
|
|
765
781
|
request_options: request_options
|
|
766
782
|
)
|
|
767
783
|
end
|
|
@@ -782,15 +798,17 @@ module Didit
|
|
|
782
798
|
#
|
|
783
799
|
# @param platform [String] Only keys for this platform.
|
|
784
800
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
785
|
-
# @return [Didit::Types::
|
|
801
|
+
# @return [Didit::Types::PhoneSdkKeysListResponse]
|
|
802
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
786
803
|
def list(platform: OMIT, request_options: nil)
|
|
804
|
+
@client.deprecated("phone.sdk_keys.list", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
787
805
|
@client.request(
|
|
788
806
|
:get,
|
|
789
807
|
"/v3/phone/sdk-keys/",
|
|
790
808
|
query: {
|
|
791
809
|
"platform" => platform
|
|
792
810
|
},
|
|
793
|
-
response: Types::
|
|
811
|
+
response: Types::PhoneSdkKeysListResponse,
|
|
794
812
|
request_options: request_options
|
|
795
813
|
)
|
|
796
814
|
end
|
|
@@ -812,7 +830,9 @@ module Didit
|
|
|
812
830
|
# @param key_id [String] The publishable key to revoke.
|
|
813
831
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
814
832
|
# @return [nil]
|
|
833
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
815
834
|
def revoke(key_id, request_options: nil)
|
|
835
|
+
@client.deprecated("phone.sdk_keys.revoke", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
816
836
|
@client.request(
|
|
817
837
|
:delete,
|
|
818
838
|
"/v3/phone/sdk-keys/{key_id}/",
|
|
@@ -843,8 +863,10 @@ module Didit
|
|
|
843
863
|
# @param overlap_hours [Integer] How long the value being replaced keeps working, from 0 to 168 hours, while
|
|
844
864
|
# the app update ships.
|
|
845
865
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
846
|
-
# @return [Didit::Types::
|
|
866
|
+
# @return [Didit::Types::PhoneSdkKeysRotateResponse]
|
|
867
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
847
868
|
def rotate(key_id, overlap_hours: OMIT, request_options: nil)
|
|
869
|
+
@client.deprecated("phone.sdk_keys.rotate", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
848
870
|
@client.request(
|
|
849
871
|
:post,
|
|
850
872
|
"/v3/phone/sdk-keys/{key_id}/rotate/",
|
|
@@ -852,7 +874,7 @@ module Didit
|
|
|
852
874
|
body: {
|
|
853
875
|
"overlap_hours" => overlap_hours
|
|
854
876
|
},
|
|
855
|
-
response: Types::
|
|
877
|
+
response: Types::PhoneSdkKeysRotateResponse,
|
|
856
878
|
request_options: request_options
|
|
857
879
|
)
|
|
858
880
|
end
|
|
@@ -888,15 +910,17 @@ module Didit
|
|
|
888
910
|
#
|
|
889
911
|
# @param country [String] Only this ISO 3166-1 alpha-2 country.
|
|
890
912
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
891
|
-
# @return [Didit::Types::
|
|
913
|
+
# @return [Didit::Types::PhoneSilentCoverageResponse]
|
|
914
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
892
915
|
def coverage(country: OMIT, request_options: nil)
|
|
916
|
+
@client.deprecated("phone.silent.coverage", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
893
917
|
@client.request(
|
|
894
918
|
:get,
|
|
895
919
|
"/v3/phone/silent/coverage/",
|
|
896
920
|
query: {
|
|
897
921
|
"country" => country
|
|
898
922
|
},
|
|
899
|
-
response: Types::
|
|
923
|
+
response: Types::PhoneSilentCoverageResponse,
|
|
900
924
|
request_options: request_options
|
|
901
925
|
)
|
|
902
926
|
end
|
|
@@ -927,8 +951,10 @@ module Didit
|
|
|
927
951
|
# @param phone_number [String] The number in international format (E.164), for example `+34600000012`.
|
|
928
952
|
# @param ip_address [String] The phone's public IP, so the answer also confirms the device is on mobile data.
|
|
929
953
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
930
|
-
# @return [Didit::Types::
|
|
954
|
+
# @return [Didit::Types::PhoneSilentEligibilityResponse]
|
|
955
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
931
956
|
def eligibility(phone_number:, ip_address: OMIT, request_options: nil)
|
|
957
|
+
@client.deprecated("phone.silent.eligibility", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
932
958
|
@client.request(
|
|
933
959
|
:post,
|
|
934
960
|
"/v3/phone/silent/eligibility/",
|
|
@@ -936,7 +962,7 @@ module Didit
|
|
|
936
962
|
"phone_number" => phone_number,
|
|
937
963
|
"ip_address" => ip_address
|
|
938
964
|
},
|
|
939
|
-
response: Types::
|
|
965
|
+
response: Types::PhoneSilentEligibilityResponse,
|
|
940
966
|
request_options: request_options
|
|
941
967
|
)
|
|
942
968
|
end
|
|
@@ -971,7 +997,8 @@ module Didit
|
|
|
971
997
|
# @param monthly_volume [Integer] Expected silent checks a month.
|
|
972
998
|
# @param flow_screenshots [Array<String>] Links to screens of the flow, as the networks ask for them.
|
|
973
999
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
974
|
-
# @return [Didit::Types::
|
|
1000
|
+
# @return [Didit::Types::PhoneSilentRegistrationsCreateResponse]
|
|
1001
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
975
1002
|
def create(
|
|
976
1003
|
country:,
|
|
977
1004
|
use_case:,
|
|
@@ -982,6 +1009,7 @@ module Didit
|
|
|
982
1009
|
flow_screenshots: OMIT,
|
|
983
1010
|
request_options: nil
|
|
984
1011
|
)
|
|
1012
|
+
@client.deprecated("phone.silent.registrations.create", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
985
1013
|
@client.request(
|
|
986
1014
|
:post,
|
|
987
1015
|
"/v3/phone/silent/registrations/",
|
|
@@ -994,7 +1022,7 @@ module Didit
|
|
|
994
1022
|
"monthly_volume" => monthly_volume,
|
|
995
1023
|
"flow_screenshots" => flow_screenshots
|
|
996
1024
|
},
|
|
997
|
-
response: Types::
|
|
1025
|
+
response: Types::PhoneSilentRegistrationsCreateResponse,
|
|
998
1026
|
request_options: request_options
|
|
999
1027
|
)
|
|
1000
1028
|
end
|
|
@@ -1015,13 +1043,15 @@ module Didit
|
|
|
1015
1043
|
#
|
|
1016
1044
|
# @param registration_id [String] The silent verification registration.
|
|
1017
1045
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1018
|
-
# @return [Didit::Types::
|
|
1046
|
+
# @return [Didit::Types::PhoneSilentRegistrationsRetrieveResponse]
|
|
1047
|
+
# @deprecated Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.
|
|
1019
1048
|
def retrieve(registration_id, request_options: nil)
|
|
1049
|
+
@client.deprecated("phone.silent.registrations.retrieve", "Removed from the API contract on 2026-11-23; this deprecated method is kept through version 2.36.0.")
|
|
1020
1050
|
@client.request(
|
|
1021
1051
|
:get,
|
|
1022
1052
|
"/v3/phone/silent/registrations/{registration_id}/",
|
|
1023
1053
|
path_params: { "registration_id" => registration_id },
|
|
1024
|
-
response: Types::
|
|
1054
|
+
response: Types::PhoneSilentRegistrationsRetrieveResponse,
|
|
1025
1055
|
request_options: request_options
|
|
1026
1056
|
)
|
|
1027
1057
|
end
|