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
data/lib/didit/types/phone.rb
CHANGED
|
@@ -79,41 +79,24 @@ module Didit
|
|
|
79
79
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
-
#
|
|
83
|
-
module
|
|
84
|
-
|
|
85
|
-
DECLINED = "Declined"
|
|
86
|
-
IN_REVIEW = "In Review"
|
|
87
|
-
NOT_FINISHED = "Not Finished"
|
|
88
|
-
EXPIRED = "Expired"
|
|
89
|
-
|
|
90
|
-
VALUES = [APPROVED, DECLINED, IN_REVIEW, NOT_FINISHED, EXPIRED].freeze
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Severity. `error` risks decline the verification, `warning` flags it for review, `information` is recorded
|
|
94
|
-
# without affecting the status.
|
|
95
|
-
module PhoneCheckCodeResponsePhoneWarningsLogType
|
|
96
|
-
ERROR = "error"
|
|
97
|
-
WARNING = "warning"
|
|
98
|
-
INFORMATION = "information"
|
|
82
|
+
# The factor to enroll: `totp`, for an authenticator app.
|
|
83
|
+
module PhoneFactorsCreateParamsType
|
|
84
|
+
TOTP = "totp"
|
|
99
85
|
|
|
100
|
-
VALUES = [
|
|
86
|
+
VALUES = [TOTP].freeze
|
|
101
87
|
end
|
|
102
88
|
|
|
103
|
-
# `
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
DECLINED = "Declined"
|
|
109
|
-
FAILED = "Failed"
|
|
110
|
-
EXPIRED_OR_NOT_FOUND = "Expired or Not Found"
|
|
89
|
+
# `unverified` until the first successful check, then `verified`.
|
|
90
|
+
module PhoneFactorsCreateResponseStatus
|
|
91
|
+
UNVERIFIED = "unverified"
|
|
92
|
+
VERIFIED = "verified"
|
|
93
|
+
DISABLED = "disabled"
|
|
111
94
|
|
|
112
|
-
VALUES = [
|
|
95
|
+
VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
|
|
113
96
|
end
|
|
114
97
|
|
|
115
|
-
# The factor
|
|
116
|
-
module
|
|
98
|
+
# The factor type.
|
|
99
|
+
module PhoneFactorsCreateResponseType
|
|
117
100
|
TOTP = "totp"
|
|
118
101
|
|
|
119
102
|
VALUES = [TOTP].freeze
|
|
@@ -143,6 +126,38 @@ module Didit
|
|
|
143
126
|
VALUES = [TOTP].freeze
|
|
144
127
|
end
|
|
145
128
|
|
|
129
|
+
# `unverified` until the first successful check, `verified` after it, `disabled` while its checks are turned off.
|
|
130
|
+
module PhoneFactorsListResponseResultsStatus
|
|
131
|
+
UNVERIFIED = "unverified"
|
|
132
|
+
VERIFIED = "verified"
|
|
133
|
+
DISABLED = "disabled"
|
|
134
|
+
|
|
135
|
+
VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# The factor.
|
|
139
|
+
module PhoneFactorsListResponseResultsType
|
|
140
|
+
TOTP = "totp"
|
|
141
|
+
|
|
142
|
+
VALUES = [TOTP].freeze
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# `unverified` until the first successful check, `verified` after it, `disabled` while its checks are turned off.
|
|
146
|
+
module PhoneFactorsRetrieveResponseStatus
|
|
147
|
+
UNVERIFIED = "unverified"
|
|
148
|
+
VERIFIED = "verified"
|
|
149
|
+
DISABLED = "disabled"
|
|
150
|
+
|
|
151
|
+
VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# The factor.
|
|
155
|
+
module PhoneFactorsRetrieveResponseType
|
|
156
|
+
TOTP = "totp"
|
|
157
|
+
|
|
158
|
+
VALUES = [TOTP].freeze
|
|
159
|
+
end
|
|
160
|
+
|
|
146
161
|
# `disabled` stops the factor's checks; `verified` turns a disabled factor back on.
|
|
147
162
|
module PhoneFactorsUpdateParamsStatus
|
|
148
163
|
DISABLED = "disabled"
|
|
@@ -151,6 +166,22 @@ module Didit
|
|
|
151
166
|
VALUES = [DISABLED, VERIFIED].freeze
|
|
152
167
|
end
|
|
153
168
|
|
|
169
|
+
# `unverified` until the first successful check, `verified` after it, `disabled` while its checks are turned off.
|
|
170
|
+
module PhoneFactorsUpdateResponseStatus
|
|
171
|
+
UNVERIFIED = "unverified"
|
|
172
|
+
VERIFIED = "verified"
|
|
173
|
+
DISABLED = "disabled"
|
|
174
|
+
|
|
175
|
+
VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# The factor.
|
|
179
|
+
module PhoneFactorsUpdateResponseType
|
|
180
|
+
TOTP = "totp"
|
|
181
|
+
|
|
182
|
+
VALUES = [TOTP].freeze
|
|
183
|
+
end
|
|
184
|
+
|
|
154
185
|
# The network feature to ask approval for.
|
|
155
186
|
module PhoneNetworkRegistrationsCreateParamsFeature
|
|
156
187
|
SILENT_VERIFICATION = "silent_verification"
|
|
@@ -171,6 +202,64 @@ module Didit
|
|
|
171
202
|
VALUES = [SIGNUP, LOGIN, PAYMENT, ACCOUNT_RECOVERY, FRAUD_CHECK].freeze
|
|
172
203
|
end
|
|
173
204
|
|
|
205
|
+
# The network feature.
|
|
206
|
+
module PhoneNetworkRegistrationsCreateResponseFeature
|
|
207
|
+
SILENT_VERIFICATION = "silent_verification"
|
|
208
|
+
SIM_SWAP = "sim_swap"
|
|
209
|
+
NUMBER_VERIFICATION = "number_verification"
|
|
210
|
+
|
|
211
|
+
VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Where this network stands: `submitted` - the request reached it; `in_review` - it is reviewing; `approved`;
|
|
215
|
+
# `rejected`.
|
|
216
|
+
module PhoneNetworkRegistrationsCreateResponseNetworksStatus
|
|
217
|
+
SUBMITTED = "submitted"
|
|
218
|
+
IN_REVIEW = "in_review"
|
|
219
|
+
APPROVED = "approved"
|
|
220
|
+
REJECTED = "rejected"
|
|
221
|
+
|
|
222
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, REJECTED].freeze
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# `submitted` - sent to the networks; `in_review` - they are reviewing; `approved` - every network approved;
|
|
226
|
+
# `partly_approved` - some approved and some rejected; `rejected` - none approved.
|
|
227
|
+
module PhoneNetworkRegistrationsCreateResponseStatus
|
|
228
|
+
SUBMITTED = "submitted"
|
|
229
|
+
IN_REVIEW = "in_review"
|
|
230
|
+
APPROVED = "approved"
|
|
231
|
+
PARTLY_APPROVED = "partly_approved"
|
|
232
|
+
REJECTED = "rejected"
|
|
233
|
+
|
|
234
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# `on` while the networks review: the feature answers for your verified test numbers, marked `test: true`. `off`
|
|
238
|
+
# once the registration is approved or rejected.
|
|
239
|
+
module PhoneNetworkRegistrationsCreateResponseTestAccess
|
|
240
|
+
ON = "on"
|
|
241
|
+
OFF = "off"
|
|
242
|
+
|
|
243
|
+
VALUES = [ON, OFF].freeze
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# `code_sent` - Didit sent it a code, which makes it a verified test number once checked; `verified` - it answers
|
|
247
|
+
# the feature under test access.
|
|
248
|
+
module PhoneNetworkRegistrationsCreateResponseTestNumbersStatus
|
|
249
|
+
CODE_SENT = "code_sent"
|
|
250
|
+
VERIFIED = "verified"
|
|
251
|
+
|
|
252
|
+
VALUES = [CODE_SENT, VERIFIED].freeze
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# `on` - the registration is under review, so the feature answers for its test numbers, with `test: true` in the
|
|
256
|
+
# answer.
|
|
257
|
+
module PhoneNetworkRegistrationsCreateResponseTestNumbersTestAccess
|
|
258
|
+
ON = "on"
|
|
259
|
+
|
|
260
|
+
VALUES = [ON].freeze
|
|
261
|
+
end
|
|
262
|
+
|
|
174
263
|
# Known values of an open enum: the API may send others.
|
|
175
264
|
module PhoneNetworkRegistrationsListParamsFeature
|
|
176
265
|
SILENT_VERIFICATION = "silent_verification"
|
|
@@ -199,6 +288,101 @@ module Didit
|
|
|
199
288
|
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
200
289
|
end
|
|
201
290
|
|
|
291
|
+
# The network feature.
|
|
292
|
+
module PhoneNetworkRegistrationsListResponseResultsFeature
|
|
293
|
+
SILENT_VERIFICATION = "silent_verification"
|
|
294
|
+
SIM_SWAP = "sim_swap"
|
|
295
|
+
NUMBER_VERIFICATION = "number_verification"
|
|
296
|
+
|
|
297
|
+
VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Where the registration stands.
|
|
301
|
+
module PhoneNetworkRegistrationsListResponseResultsStatus
|
|
302
|
+
SUBMITTED = "submitted"
|
|
303
|
+
IN_REVIEW = "in_review"
|
|
304
|
+
APPROVED = "approved"
|
|
305
|
+
PARTLY_APPROVED = "partly_approved"
|
|
306
|
+
REJECTED = "rejected"
|
|
307
|
+
|
|
308
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# The network feature.
|
|
312
|
+
module PhoneNetworkRegistrationsRetrieveResponseFeature
|
|
313
|
+
SILENT_VERIFICATION = "silent_verification"
|
|
314
|
+
SIM_SWAP = "sim_swap"
|
|
315
|
+
NUMBER_VERIFICATION = "number_verification"
|
|
316
|
+
|
|
317
|
+
VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# Where this network stands: `submitted` - the request reached it; `in_review` - it is reviewing; `approved`;
|
|
321
|
+
# `rejected`.
|
|
322
|
+
module PhoneNetworkRegistrationsRetrieveResponseNetworksStatus
|
|
323
|
+
SUBMITTED = "submitted"
|
|
324
|
+
IN_REVIEW = "in_review"
|
|
325
|
+
APPROVED = "approved"
|
|
326
|
+
REJECTED = "rejected"
|
|
327
|
+
|
|
328
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, REJECTED].freeze
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# `submitted` - sent to the networks; `in_review` - they are reviewing; `approved` - every network approved;
|
|
332
|
+
# `partly_approved` - some approved and some rejected; `rejected` - none approved.
|
|
333
|
+
module PhoneNetworkRegistrationsRetrieveResponseStatus
|
|
334
|
+
SUBMITTED = "submitted"
|
|
335
|
+
IN_REVIEW = "in_review"
|
|
336
|
+
APPROVED = "approved"
|
|
337
|
+
PARTLY_APPROVED = "partly_approved"
|
|
338
|
+
REJECTED = "rejected"
|
|
339
|
+
|
|
340
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# `on` while the networks review: the feature answers for your verified test numbers, marked `test: true`. `off`
|
|
344
|
+
# once the registration is approved or rejected.
|
|
345
|
+
module PhoneNetworkRegistrationsRetrieveResponseTestAccess
|
|
346
|
+
ON = "on"
|
|
347
|
+
OFF = "off"
|
|
348
|
+
|
|
349
|
+
VALUES = [ON, OFF].freeze
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# `code_sent` - Didit sent it a code, which makes it a verified test number once checked; `verified` - it answers
|
|
353
|
+
# the feature under test access.
|
|
354
|
+
module PhoneNetworkRegistrationsRetrieveResponseTestNumbersStatus
|
|
355
|
+
CODE_SENT = "code_sent"
|
|
356
|
+
VERIFIED = "verified"
|
|
357
|
+
|
|
358
|
+
VALUES = [CODE_SENT, VERIFIED].freeze
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# `on` - the registration is under review, so the feature answers for its test numbers, with `test: true` in the
|
|
362
|
+
# answer.
|
|
363
|
+
module PhoneNetworkRegistrationsRetrieveResponseTestNumbersTestAccess
|
|
364
|
+
ON = "on"
|
|
365
|
+
|
|
366
|
+
VALUES = [ON].freeze
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# `code_sent` - Didit sent it a code, which makes it a verified test number once checked; `verified` - it answers
|
|
370
|
+
# the feature under test access.
|
|
371
|
+
module PhoneNetworkRegistrationsTestNumbersCreateResponseStatus
|
|
372
|
+
CODE_SENT = "code_sent"
|
|
373
|
+
VERIFIED = "verified"
|
|
374
|
+
|
|
375
|
+
VALUES = [CODE_SENT, VERIFIED].freeze
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# `on` - the registration is under review, so the feature answers for its test numbers, with `test: true` in the
|
|
379
|
+
# answer.
|
|
380
|
+
module PhoneNetworkRegistrationsTestNumbersCreateResponseTestAccess
|
|
381
|
+
ON = "on"
|
|
382
|
+
|
|
383
|
+
VALUES = [ON].freeze
|
|
384
|
+
end
|
|
385
|
+
|
|
202
386
|
# The platform the key is for: `ios`, `android` or `web`.
|
|
203
387
|
module PhoneSdkKeysCreateParamsPlatform
|
|
204
388
|
IOS = "ios"
|
|
@@ -208,6 +392,25 @@ module Didit
|
|
|
208
392
|
VALUES = [IOS, ANDROID, WEB].freeze
|
|
209
393
|
end
|
|
210
394
|
|
|
395
|
+
# The platform it is for.
|
|
396
|
+
module PhoneSdkKeysCreateResponsePlatform
|
|
397
|
+
IOS = "ios"
|
|
398
|
+
ANDROID = "android"
|
|
399
|
+
WEB = "web"
|
|
400
|
+
|
|
401
|
+
VALUES = [IOS, ANDROID, WEB].freeze
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# `active` - it works; `expiring` - it was rotated and stops working at `previous_expires_at`; `revoked` - it
|
|
405
|
+
# stopped working.
|
|
406
|
+
module PhoneSdkKeysCreateResponseStatus
|
|
407
|
+
ACTIVE = "active"
|
|
408
|
+
EXPIRING = "expiring"
|
|
409
|
+
REVOKED = "revoked"
|
|
410
|
+
|
|
411
|
+
VALUES = [ACTIVE, EXPIRING, REVOKED].freeze
|
|
412
|
+
end
|
|
413
|
+
|
|
211
414
|
# Known values of an open enum: the API may send others.
|
|
212
415
|
module PhoneSdkKeysListParamsPlatform
|
|
213
416
|
IOS = "ios"
|
|
@@ -217,6 +420,43 @@ module Didit
|
|
|
217
420
|
VALUES = [IOS, ANDROID, WEB].freeze
|
|
218
421
|
end
|
|
219
422
|
|
|
423
|
+
# The platform it is for.
|
|
424
|
+
module PhoneSdkKeysListResponseResultsPlatform
|
|
425
|
+
IOS = "ios"
|
|
426
|
+
ANDROID = "android"
|
|
427
|
+
WEB = "web"
|
|
428
|
+
|
|
429
|
+
VALUES = [IOS, ANDROID, WEB].freeze
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# An active key works, an expiring key works until its rotation overlap ends, and a revoked key has stopped
|
|
433
|
+
# working.
|
|
434
|
+
module PhoneSdkKeysListResponseResultsStatus
|
|
435
|
+
ACTIVE = "active"
|
|
436
|
+
EXPIRING = "expiring"
|
|
437
|
+
REVOKED = "revoked"
|
|
438
|
+
|
|
439
|
+
VALUES = [ACTIVE, EXPIRING, REVOKED].freeze
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# The platform it is for.
|
|
443
|
+
module PhoneSdkKeysRotateResponsePlatform
|
|
444
|
+
IOS = "ios"
|
|
445
|
+
ANDROID = "android"
|
|
446
|
+
WEB = "web"
|
|
447
|
+
|
|
448
|
+
VALUES = [IOS, ANDROID, WEB].freeze
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# `active` - the new value works; `expiring` - it was rotated again; `revoked` - it stopped working.
|
|
452
|
+
module PhoneSdkKeysRotateResponseStatus
|
|
453
|
+
ACTIVE = "active"
|
|
454
|
+
EXPIRING = "expiring"
|
|
455
|
+
REVOKED = "revoked"
|
|
456
|
+
|
|
457
|
+
VALUES = [ACTIVE, EXPIRING, REVOKED].freeze
|
|
458
|
+
end
|
|
459
|
+
|
|
220
460
|
# Preferred delivery channel. If the channel is unavailable for the destination country or number, the message
|
|
221
461
|
# automatically falls back to SMS - the send still reports `Success`.
|
|
222
462
|
module PhoneSendCodeParamsOptionsPreferredChannel
|
|
@@ -242,6 +482,26 @@ module Didit
|
|
|
242
482
|
VALUES = [ANDROID, IOS, IPADOS, TVOS, WEB].freeze
|
|
243
483
|
end
|
|
244
484
|
|
|
485
|
+
# `live` - the network answers silent checks for production traffic. `test` - it answers only while it approves
|
|
486
|
+
# production use, for the verified test numbers of a registration.
|
|
487
|
+
module PhoneSilentCoverageResponseCountriesNetworksApproval
|
|
488
|
+
LIVE = "live"
|
|
489
|
+
TEST = "test"
|
|
490
|
+
|
|
491
|
+
VALUES = [LIVE, TEST].freeze
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# When `eligible` is `false`, why: `unsupported_network` - the number's mobile network cannot run the check;
|
|
495
|
+
# `not_mobile_data` - the device is not on mobile data (send `ip_address` to have this checked);
|
|
496
|
+
# `country_not_covered` - silent verification does not run in the number's country.
|
|
497
|
+
module PhoneSilentEligibilityResponseReason
|
|
498
|
+
UNSUPPORTED_NETWORK = "unsupported_network"
|
|
499
|
+
NOT_MOBILE_DATA = "not_mobile_data"
|
|
500
|
+
COUNTRY_NOT_COVERED = "country_not_covered"
|
|
501
|
+
|
|
502
|
+
VALUES = [UNSUPPORTED_NETWORK, NOT_MOBILE_DATA, COUNTRY_NOT_COVERED].freeze
|
|
503
|
+
end
|
|
504
|
+
|
|
245
505
|
# What silent verification is used for.
|
|
246
506
|
module PhoneSilentRegistrationsCreateParamsUseCase
|
|
247
507
|
SIGNUP = "signup"
|
|
@@ -252,72 +512,269 @@ module Didit
|
|
|
252
512
|
VALUES = [SIGNUP, LOGIN, PAYMENT, ACCOUNT_RECOVERY].freeze
|
|
253
513
|
end
|
|
254
514
|
|
|
255
|
-
|
|
256
|
-
|
|
515
|
+
# Where this network stands: `submitted` - the request reached it; `in_review` - it is reviewing; `approved`;
|
|
516
|
+
# `rejected`.
|
|
517
|
+
module PhoneSilentRegistrationsCreateResponseNetworksStatus
|
|
518
|
+
SUBMITTED = "submitted"
|
|
519
|
+
IN_REVIEW = "in_review"
|
|
520
|
+
APPROVED = "approved"
|
|
521
|
+
REJECTED = "rejected"
|
|
522
|
+
|
|
523
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, REJECTED].freeze
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
# `submitted` - sent to the networks; `in_review` - they are reviewing; `approved` - every network approved;
|
|
527
|
+
# `partly_approved` - some approved and some rejected; `rejected` - none approved.
|
|
528
|
+
module PhoneSilentRegistrationsCreateResponseStatus
|
|
529
|
+
SUBMITTED = "submitted"
|
|
530
|
+
IN_REVIEW = "in_review"
|
|
531
|
+
APPROVED = "approved"
|
|
532
|
+
PARTLY_APPROVED = "partly_approved"
|
|
533
|
+
REJECTED = "rejected"
|
|
534
|
+
|
|
535
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
# Where this network stands: `submitted` - the request reached it; `in_review` - it is reviewing; `approved`;
|
|
539
|
+
# `rejected`.
|
|
540
|
+
module PhoneSilentRegistrationsRetrieveResponseNetworksStatus
|
|
541
|
+
SUBMITTED = "submitted"
|
|
542
|
+
IN_REVIEW = "in_review"
|
|
543
|
+
APPROVED = "approved"
|
|
544
|
+
REJECTED = "rejected"
|
|
545
|
+
|
|
546
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, REJECTED].freeze
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
# `submitted` - sent to the networks; `in_review` - they are reviewing; `approved` - every network approved;
|
|
550
|
+
# `partly_approved` - some approved and some rejected; `rejected` - none approved.
|
|
551
|
+
module PhoneSilentRegistrationsRetrieveResponseStatus
|
|
552
|
+
SUBMITTED = "submitted"
|
|
553
|
+
IN_REVIEW = "in_review"
|
|
554
|
+
APPROVED = "approved"
|
|
555
|
+
PARTLY_APPROVED = "partly_approved"
|
|
556
|
+
REJECTED = "rejected"
|
|
557
|
+
|
|
558
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# The enrollment of a TOTP factor: `totp.uri` is what the authenticator app needs.
|
|
562
|
+
class PhoneFactorsCreateResponse < Didit::Model
|
|
563
|
+
field :factor_id, "factor_id", :string
|
|
564
|
+
field :type, "type", :string
|
|
257
565
|
field :status, "status", :string
|
|
258
|
-
field :
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
field :
|
|
264
|
-
|
|
566
|
+
field :totp, "totp", "PhoneFactorsCreateResponseTotp"
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
# A `totp` factor: what the authenticator app needs.
|
|
570
|
+
class PhoneFactorsCreateResponseTotp < Didit::Model
|
|
571
|
+
field :uri, "uri", :string
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
class PhoneFactorsListResponse < Didit::Model
|
|
575
|
+
field :count, "count", :integer
|
|
576
|
+
field :next, "next", :string
|
|
577
|
+
field :previous, "previous", :string
|
|
578
|
+
field :results, "results", [:array, "PhoneFactorsListResponseResults"]
|
|
265
579
|
end
|
|
266
580
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
581
|
+
class PhoneFactorsListResponseResults < Didit::Model
|
|
582
|
+
field :factor_id, "factor_id", :string
|
|
583
|
+
field :type, "type", :string
|
|
270
584
|
field :status, "status", :string
|
|
271
|
-
field :
|
|
272
|
-
field :
|
|
273
|
-
field :
|
|
274
|
-
field :
|
|
275
|
-
field :
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
field :
|
|
280
|
-
field :verification_attempts, "verification_attempts", :integer
|
|
281
|
-
field :verified_at, "verified_at", :datetime
|
|
282
|
-
field :warnings, "warnings", [:array, "PhoneCheckCodeResponsePhoneWarnings"]
|
|
283
|
-
field :lifecycle, "lifecycle", [:array, "PhoneCheckCodeResponsePhoneLifecycle"]
|
|
284
|
-
field :matches, "matches", [:array, "PhoneCheckCodeResponsePhoneMatches"]
|
|
285
|
-
field :phone_social, "phone_social", "PhoneSocialFootprint"
|
|
286
|
-
field :phone_intelligence, "phone_intelligence", "PhoneIntelligence"
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
# Current network serving the number, from the carrier lookup run at finalization.
|
|
290
|
-
class PhoneCheckCodeResponsePhoneCarrier < Didit::Model
|
|
291
|
-
field :name, "name", :string
|
|
585
|
+
field :user_id, "user_id", :string
|
|
586
|
+
field :friendly_name, "friendly_name", :string
|
|
587
|
+
field :metadata, "metadata", [:map, :string]
|
|
588
|
+
field :created_at, "created_at", :datetime
|
|
589
|
+
field :last_used_at, "last_used_at", :datetime
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
class PhoneFactorsRetrieveResponse < Didit::Model
|
|
593
|
+
field :factor_id, "factor_id", :string
|
|
292
594
|
field :type, "type", :string
|
|
595
|
+
field :status, "status", :string
|
|
596
|
+
field :user_id, "user_id", :string
|
|
597
|
+
field :friendly_name, "friendly_name", :string
|
|
598
|
+
field :metadata, "metadata", [:map, :string]
|
|
599
|
+
field :created_at, "created_at", :datetime
|
|
600
|
+
field :last_used_at, "last_used_at", :datetime
|
|
293
601
|
end
|
|
294
602
|
|
|
295
|
-
class
|
|
603
|
+
class PhoneFactorsUpdateResponse < Didit::Model
|
|
604
|
+
field :factor_id, "factor_id", :string
|
|
296
605
|
field :type, "type", :string
|
|
297
|
-
field :
|
|
298
|
-
field :
|
|
299
|
-
field :
|
|
606
|
+
field :status, "status", :string
|
|
607
|
+
field :user_id, "user_id", :string
|
|
608
|
+
field :friendly_name, "friendly_name", :string
|
|
609
|
+
field :metadata, "metadata", [:map, :string]
|
|
610
|
+
field :created_at, "created_at", :datetime
|
|
611
|
+
field :last_used_at, "last_used_at", :datetime
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
class PhoneNetworkRegistrationsCreateResponse < Didit::Model
|
|
615
|
+
field :registration_id, "registration_id", :string
|
|
616
|
+
field :feature, "feature", :string
|
|
617
|
+
field :country, "country", :string
|
|
618
|
+
field :use_case, "use_case", :string
|
|
619
|
+
field :status, "status", :string
|
|
620
|
+
field :networks, "networks", [:array, "PhoneNetworkRegistrationsCreateResponseNetworks"]
|
|
621
|
+
field :live_at, "live_at", :datetime
|
|
622
|
+
field :test_access, "test_access", :string
|
|
623
|
+
field :test_numbers, "test_numbers", [:array, "PhoneNetworkRegistrationsCreateResponseTestNumbers"]
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# One mobile network's decision on a registration.
|
|
627
|
+
class PhoneNetworkRegistrationsCreateResponseNetworks < Didit::Model
|
|
628
|
+
field :name, "name", :string
|
|
629
|
+
field :status, "status", :string
|
|
630
|
+
field :decided_at, "decided_at", :datetime
|
|
631
|
+
field :reason, "reason", :string
|
|
300
632
|
end
|
|
301
633
|
|
|
302
|
-
class
|
|
303
|
-
field :session_id, "session_id", :string
|
|
304
|
-
field :session_number, "session_number", :integer
|
|
305
|
-
field :vendor_data, "vendor_data", :string
|
|
306
|
-
field :verification_date, "verification_date", :string
|
|
634
|
+
class PhoneNetworkRegistrationsCreateResponseTestNumbers < Didit::Model
|
|
307
635
|
field :phone_number, "phone_number", :string
|
|
308
636
|
field :status, "status", :string
|
|
309
|
-
field :
|
|
310
|
-
field :
|
|
311
|
-
|
|
637
|
+
field :verification_id, "verification_id", :string
|
|
638
|
+
field :test_access, "test_access", :string
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
class PhoneNetworkRegistrationsListResponse < Didit::Model
|
|
642
|
+
field :count, "count", :integer
|
|
643
|
+
field :next, "next", :string
|
|
644
|
+
field :previous, "previous", :string
|
|
645
|
+
field :results, "results", [:array, "PhoneNetworkRegistrationsListResponseResults"]
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
class PhoneNetworkRegistrationsListResponseResults < Didit::Model
|
|
649
|
+
field :registration_id, "registration_id", :string
|
|
650
|
+
field :feature, "feature", :string
|
|
651
|
+
field :country, "country", :string
|
|
652
|
+
field :use_case, "use_case", :string
|
|
653
|
+
field :status, "status", :string
|
|
312
654
|
end
|
|
313
655
|
|
|
314
|
-
class
|
|
656
|
+
class PhoneNetworkRegistrationsRetrieveResponse < Didit::Model
|
|
657
|
+
field :registration_id, "registration_id", :string
|
|
315
658
|
field :feature, "feature", :string
|
|
316
|
-
field :
|
|
317
|
-
field :
|
|
318
|
-
field :
|
|
319
|
-
field :
|
|
320
|
-
field :
|
|
659
|
+
field :country, "country", :string
|
|
660
|
+
field :use_case, "use_case", :string
|
|
661
|
+
field :status, "status", :string
|
|
662
|
+
field :networks, "networks", [:array, "PhoneNetworkRegistrationsRetrieveResponseNetworks"]
|
|
663
|
+
field :live_at, "live_at", :datetime
|
|
664
|
+
field :test_access, "test_access", :string
|
|
665
|
+
field :test_numbers, "test_numbers", [:array, "PhoneNetworkRegistrationsRetrieveResponseTestNumbers"]
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
# One mobile network's decision on a registration.
|
|
669
|
+
class PhoneNetworkRegistrationsRetrieveResponseNetworks < Didit::Model
|
|
670
|
+
field :name, "name", :string
|
|
671
|
+
field :status, "status", :string
|
|
672
|
+
field :decided_at, "decided_at", :datetime
|
|
673
|
+
field :reason, "reason", :string
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
class PhoneNetworkRegistrationsRetrieveResponseTestNumbers < Didit::Model
|
|
677
|
+
field :phone_number, "phone_number", :string
|
|
678
|
+
field :status, "status", :string
|
|
679
|
+
field :verification_id, "verification_id", :string
|
|
680
|
+
field :test_access, "test_access", :string
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
class PhoneNetworkRegistrationsTestNumbersCreateResponse < Didit::Model
|
|
684
|
+
field :phone_number, "phone_number", :string
|
|
685
|
+
field :status, "status", :string
|
|
686
|
+
field :verification_id, "verification_id", :string
|
|
687
|
+
field :test_access, "test_access", :string
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
# A publishable key of a client SDK. It is not a secret: it is bound to the app ids it may run in and cannot make
|
|
691
|
+
# a server call.
|
|
692
|
+
class PhoneSdkKeysCreateResponse < Didit::Model
|
|
693
|
+
field :key_id, "key_id", :string
|
|
694
|
+
field :platform, "platform", :string
|
|
695
|
+
field :publishable_key, "publishable_key", :string
|
|
696
|
+
field :app_ids, "app_ids", [:array, :string]
|
|
697
|
+
field :status, "status", :string
|
|
698
|
+
field :created_at, "created_at", :datetime
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
# The publishable keys of your client SDKs.
|
|
702
|
+
class PhoneSdkKeysListResponse < Didit::Model
|
|
703
|
+
field :results, "results", [:array, "PhoneSdkKeysListResponseResults"]
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# A client SDK key as returned by the list operation.
|
|
707
|
+
class PhoneSdkKeysListResponseResults < Didit::Model
|
|
708
|
+
field :key_id, "key_id", :string
|
|
709
|
+
field :platform, "platform", :string
|
|
710
|
+
field :status, "status", :string
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
class PhoneSdkKeysRotateResponse < Didit::Model
|
|
714
|
+
field :key_id, "key_id", :string
|
|
715
|
+
field :platform, "platform", :string
|
|
716
|
+
field :publishable_key, "publishable_key", :string
|
|
717
|
+
field :app_ids, "app_ids", [:array, :string]
|
|
718
|
+
field :status, "status", :string
|
|
719
|
+
field :created_at, "created_at", :datetime
|
|
720
|
+
field :previous_expires_at, "previous_expires_at", :datetime
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# Where silent verification runs: one entry per country, and per country the mobile networks that can run the
|
|
724
|
+
# check.
|
|
725
|
+
class PhoneSilentCoverageResponse < Didit::Model
|
|
726
|
+
field :countries, "countries", [:array, "PhoneSilentCoverageResponseCountries"]
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
class PhoneSilentCoverageResponseCountries < Didit::Model
|
|
730
|
+
field :country, "country", :string
|
|
731
|
+
field :wifi, "wifi", :boolean
|
|
732
|
+
field :networks, "networks", [:array, "PhoneSilentCoverageResponseCountriesNetworks"]
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
class PhoneSilentCoverageResponseCountriesNetworks < Didit::Model
|
|
736
|
+
field :name, "name", :string
|
|
737
|
+
field :approval, "approval", :string
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
class PhoneSilentEligibilityResponse < Didit::Model
|
|
741
|
+
field :eligible, "eligible", :boolean
|
|
742
|
+
field :reason, "reason", :string
|
|
743
|
+
field :network, "network", :string
|
|
744
|
+
field :country, "country", :string
|
|
745
|
+
field :wifi_possible, "wifi_possible", :boolean
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
class PhoneSilentRegistrationsCreateResponse < Didit::Model
|
|
749
|
+
field :registration_id, "registration_id", :string
|
|
750
|
+
field :country, "country", :string
|
|
751
|
+
field :status, "status", :string
|
|
752
|
+
field :networks, "networks", [:array, "PhoneSilentRegistrationsCreateResponseNetworks"]
|
|
753
|
+
field :live_at, "live_at", :datetime
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
# One mobile network's decision on a registration.
|
|
757
|
+
class PhoneSilentRegistrationsCreateResponseNetworks < Didit::Model
|
|
758
|
+
field :name, "name", :string
|
|
759
|
+
field :status, "status", :string
|
|
760
|
+
field :decided_at, "decided_at", :datetime
|
|
761
|
+
field :reason, "reason", :string
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
class PhoneSilentRegistrationsRetrieveResponse < Didit::Model
|
|
765
|
+
field :registration_id, "registration_id", :string
|
|
766
|
+
field :country, "country", :string
|
|
767
|
+
field :status, "status", :string
|
|
768
|
+
field :networks, "networks", [:array, "PhoneSilentRegistrationsRetrieveResponseNetworks"]
|
|
769
|
+
field :live_at, "live_at", :datetime
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
# One mobile network's decision on a registration.
|
|
773
|
+
class PhoneSilentRegistrationsRetrieveResponseNetworks < Didit::Model
|
|
774
|
+
field :name, "name", :string
|
|
775
|
+
field :status, "status", :string
|
|
776
|
+
field :decided_at, "decided_at", :datetime
|
|
777
|
+
field :reason, "reason", :string
|
|
321
778
|
end
|
|
322
779
|
end
|
|
323
780
|
end
|