didit-sdk 2.34.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.
@@ -79,6 +79,384 @@ module Didit
79
79
  VALUES = [NO_ACTION, DECLINE].freeze
80
80
  end
81
81
 
82
+ # The factor to enroll: `totp`, for an authenticator app.
83
+ module PhoneFactorsCreateParamsType
84
+ TOTP = "totp"
85
+
86
+ VALUES = [TOTP].freeze
87
+ end
88
+
89
+ # `unverified` until the first successful check, then `verified`.
90
+ module PhoneFactorsCreateResponseStatus
91
+ UNVERIFIED = "unverified"
92
+ VERIFIED = "verified"
93
+ DISABLED = "disabled"
94
+
95
+ VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
96
+ end
97
+
98
+ # The factor type.
99
+ module PhoneFactorsCreateResponseType
100
+ TOTP = "totp"
101
+
102
+ VALUES = [TOTP].freeze
103
+ end
104
+
105
+ # Known values of an open enum: the API may send others.
106
+ module PhoneFactorsListParamsFormat
107
+ JSON = "json"
108
+ CSV = "csv"
109
+
110
+ VALUES = [JSON, CSV].freeze
111
+ end
112
+
113
+ # Known values of an open enum: the API may send others.
114
+ module PhoneFactorsListParamsStatus
115
+ UNVERIFIED = "unverified"
116
+ VERIFIED = "verified"
117
+ DISABLED = "disabled"
118
+
119
+ VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
120
+ end
121
+
122
+ # Known values of an open enum: the API may send others.
123
+ module PhoneFactorsListParamsType
124
+ TOTP = "totp"
125
+
126
+ VALUES = [TOTP].freeze
127
+ end
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
+
161
+ # `disabled` stops the factor's checks; `verified` turns a disabled factor back on.
162
+ module PhoneFactorsUpdateParamsStatus
163
+ DISABLED = "disabled"
164
+ VERIFIED = "verified"
165
+
166
+ VALUES = [DISABLED, VERIFIED].freeze
167
+ end
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
+
185
+ # The network feature to ask approval for.
186
+ module PhoneNetworkRegistrationsCreateParamsFeature
187
+ SILENT_VERIFICATION = "silent_verification"
188
+ SIM_SWAP = "sim_swap"
189
+ NUMBER_VERIFICATION = "number_verification"
190
+
191
+ VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
192
+ end
193
+
194
+ # What you use the feature for.
195
+ module PhoneNetworkRegistrationsCreateParamsUseCase
196
+ SIGNUP = "signup"
197
+ LOGIN = "login"
198
+ PAYMENT = "payment"
199
+ ACCOUNT_RECOVERY = "account_recovery"
200
+ FRAUD_CHECK = "fraud_check"
201
+
202
+ VALUES = [SIGNUP, LOGIN, PAYMENT, ACCOUNT_RECOVERY, FRAUD_CHECK].freeze
203
+ end
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
+
263
+ # Known values of an open enum: the API may send others.
264
+ module PhoneNetworkRegistrationsListParamsFeature
265
+ SILENT_VERIFICATION = "silent_verification"
266
+ SIM_SWAP = "sim_swap"
267
+ NUMBER_VERIFICATION = "number_verification"
268
+
269
+ VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
270
+ end
271
+
272
+ # Known values of an open enum: the API may send others.
273
+ module PhoneNetworkRegistrationsListParamsFormat
274
+ JSON = "json"
275
+ CSV = "csv"
276
+
277
+ VALUES = [JSON, CSV].freeze
278
+ end
279
+
280
+ # Known values of an open enum: the API may send others.
281
+ module PhoneNetworkRegistrationsListParamsStatus
282
+ SUBMITTED = "submitted"
283
+ IN_REVIEW = "in_review"
284
+ APPROVED = "approved"
285
+ PARTLY_APPROVED = "partly_approved"
286
+ REJECTED = "rejected"
287
+
288
+ VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
289
+ end
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
+
386
+ # The platform the key is for: `ios`, `android` or `web`.
387
+ module PhoneSdkKeysCreateParamsPlatform
388
+ IOS = "ios"
389
+ ANDROID = "android"
390
+ WEB = "web"
391
+
392
+ VALUES = [IOS, ANDROID, WEB].freeze
393
+ end
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
+
414
+ # Known values of an open enum: the API may send others.
415
+ module PhoneSdkKeysListParamsPlatform
416
+ IOS = "ios"
417
+ ANDROID = "android"
418
+ WEB = "web"
419
+
420
+ VALUES = [IOS, ANDROID, WEB].freeze
421
+ end
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
+
82
460
  # Preferred delivery channel. If the channel is unavailable for the destination country or number, the message
83
461
  # automatically falls back to SMS - the send still reports `Success`.
84
462
  module PhoneSendCodeParamsOptionsPreferredChannel
@@ -103,5 +481,300 @@ module Didit
103
481
 
104
482
  VALUES = [ANDROID, IOS, IPADOS, TVOS, WEB].freeze
105
483
  end
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
+
505
+ # What silent verification is used for.
506
+ module PhoneSilentRegistrationsCreateParamsUseCase
507
+ SIGNUP = "signup"
508
+ LOGIN = "login"
509
+ PAYMENT = "payment"
510
+ ACCOUNT_RECOVERY = "account_recovery"
511
+
512
+ VALUES = [SIGNUP, LOGIN, PAYMENT, ACCOUNT_RECOVERY].freeze
513
+ end
514
+
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
565
+ field :status, "status", :string
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"]
579
+ end
580
+
581
+ class PhoneFactorsListResponseResults < Didit::Model
582
+ field :factor_id, "factor_id", :string
583
+ field :type, "type", :string
584
+ field :status, "status", :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
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
601
+ end
602
+
603
+ class PhoneFactorsUpdateResponse < Didit::Model
604
+ field :factor_id, "factor_id", :string
605
+ field :type, "type", :string
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
632
+ end
633
+
634
+ class PhoneNetworkRegistrationsCreateResponseTestNumbers < Didit::Model
635
+ field :phone_number, "phone_number", :string
636
+ field :status, "status", :string
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
654
+ end
655
+
656
+ class PhoneNetworkRegistrationsRetrieveResponse < Didit::Model
657
+ field :registration_id, "registration_id", :string
658
+ field :feature, "feature", :string
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
778
+ end
106
779
  end
107
780
  end