ding_sdk 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{ding/sdk.rb → ding_sdk/ding.rb} +1 -1
  3. data/lib/{ding → ding_sdk}/lookup.rb +9 -7
  4. data/lib/{ding/models/operations/check.rb → ding_sdk/models/operations/check_response.rb} +7 -10
  5. data/lib/{ding/models/operations/create_autentication.rb → ding_sdk/models/operations/create_autentication_response.rb} +7 -10
  6. data/lib/ding_sdk/models/operations/lookup_request.rb +27 -0
  7. data/lib/ding_sdk/models/operations/lookup_response.rb +36 -0
  8. data/lib/{ding/models/operations/retry_.rb → ding_sdk/models/operations/retry_response.rb} +7 -10
  9. data/lib/ding_sdk/models/operations.rb +14 -0
  10. data/lib/{ding/models/shared/errorresponse.rb → ding_sdk/models/shared/code.rb} +1 -36
  11. data/lib/ding_sdk/models/shared/createauthenticationrequest.rb +54 -0
  12. data/lib/ding_sdk/models/shared/createauthenticationresponse.rb +37 -0
  13. data/lib/{ding → ding_sdk}/models/shared/createcheckrequest.rb +5 -6
  14. data/lib/ding_sdk/models/shared/createcheckresponse.rb +34 -0
  15. data/lib/ding_sdk/models/shared/createcheckresponse_status.rb +30 -0
  16. data/lib/ding_sdk/models/shared/device_type.rb +20 -0
  17. data/lib/ding_sdk/models/shared/errorresponse.rb +44 -0
  18. data/lib/ding_sdk/models/shared/line_type.rb +28 -0
  19. data/lib/ding_sdk/models/shared/lookupresponse.rb +42 -0
  20. data/lib/{ding → ding_sdk}/models/shared/retryauthenticationrequest.rb +4 -5
  21. data/lib/ding_sdk/models/shared/retryauthenticationresponse.rb +43 -0
  22. data/lib/ding_sdk/models/shared/retryauthenticationresponse_status.rb +30 -0
  23. data/lib/{ding → ding_sdk}/models/shared/security.rb +3 -4
  24. data/lib/ding_sdk/models/shared/status.rb +24 -0
  25. data/lib/ding_sdk/models/shared.rb +24 -0
  26. data/lib/{ding → ding_sdk}/otp.rb +17 -13
  27. data/lib/{ding → ding_sdk}/sdkconfiguration.rb +5 -5
  28. data/lib/ding_sdk.rb +8 -20
  29. metadata +30 -21
  30. data/lib/ding/models/operations/lookup.rb +0 -56
  31. data/lib/ding/models/shared/createauthenticationrequest.rb +0 -65
  32. data/lib/ding/models/shared/createauthenticationresponse.rb +0 -52
  33. data/lib/ding/models/shared/createcheckresponse.rb +0 -55
  34. data/lib/ding/models/shared/lookupresponse.rb +0 -61
  35. data/lib/ding/models/shared/retryauthenticationresponse.rb +0 -64
  36. /data/lib/{ding → ding_sdk}/utils/metadata_fields.rb +0 -0
  37. /data/lib/{ding → ding_sdk}/utils/utils.rb +0 -0
@@ -1,61 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module DingSDK
10
- module Shared
11
- # LineType - The type of phone line.
12
- class LineType < T::Enum
13
- enums do
14
- FIXED_LINE = new('FixedLine')
15
- MOBILE = new('Mobile')
16
- TOLL_FREE = new('TollFree')
17
- PREMIUM_RATE = new('PremiumRate')
18
- SHARED_COST = new('SharedCost')
19
- VOIP = new('Voip')
20
- PAGER = new('Pager')
21
- VOICE_MAIL = new('VoiceMail')
22
- UNIVERSAL_ACCESS = new('UniversalAccess')
23
- SERVICE = new('Service')
24
- UNKNOWN = new('Unknown')
25
- end
26
- end
27
-
28
-
29
-
30
- class LookupResponse < ::DingSDK::Utils::FieldAugmented
31
- extend T::Sig
32
-
33
- # The carrier of the phone number.
34
- field :carrier, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('carrier') } }
35
- # The ISO 3166-1 alpha-2 country code of the phone number.
36
- field :country_code, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('country_code') } }
37
- # The type of phone line.
38
- field :line_type, T.nilable(Shared::LineType), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('line_type'), 'decoder': Utils.enum_from_string(Shared::LineType, true) } }
39
- # The mobile country code of the phone number.
40
- field :mcc, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('mcc') } }
41
- # The mobile network code of the phone number.
42
- field :mnc, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('mnc') } }
43
- # Whether the phone number has been ported.
44
- field :number_ported, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('number_ported') } }
45
- # An E.164 formatted phone number.
46
- field :phone_number, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('phone_number') } }
47
-
48
-
49
- sig { params(carrier: T.nilable(String), country_code: T.nilable(String), line_type: T.nilable(Shared::LineType), mcc: T.nilable(String), mnc: T.nilable(String), number_ported: T.nilable(T::Boolean), phone_number: T.nilable(String)).void }
50
- def initialize(carrier: nil, country_code: nil, line_type: nil, mcc: nil, mnc: nil, number_ported: nil, phone_number: nil)
51
- @carrier = carrier
52
- @country_code = country_code
53
- @line_type = line_type
54
- @mcc = mcc
55
- @mnc = mnc
56
- @number_ported = number_ported
57
- @phone_number = phone_number
58
- end
59
- end
60
- end
61
- end
@@ -1,64 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
-
9
- module DingSDK
10
- module Shared
11
- # RetryAuthenticationResponseStatus - The status of the retry. Possible values are:
12
- # * `approved` - The retry was approved and a new code was sent.
13
- # * `denied` - The retry was denied.
14
- # * `no_attempt` - No attempt was sent yet, so a retry cannot be completed.
15
- # * `rate_limited` - The authentication was rate limited and cannot be retried.
16
- # * `expired_auth` - The authentication has expired and cannot be retried.
17
- # * `already_validated` - The authentication has already been validated.
18
- #
19
- class RetryAuthenticationResponseStatus < T::Enum
20
- enums do
21
- APPROVED = new('approved')
22
- DENIED = new('denied')
23
- NO_ATTEMPT = new('no_attempt')
24
- RATE_LIMITED = new('rate_limited')
25
- EXPIRED_AUTH = new('expired_auth')
26
- ALREADY_VALIDATED = new('already_validated')
27
- end
28
- end
29
-
30
-
31
-
32
- class RetryAuthenticationResponse < ::DingSDK::Utils::FieldAugmented
33
- extend T::Sig
34
-
35
- # The UUID of the corresponding authentication.
36
- field :authentication_uuid, T.nilable(String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('authentication_uuid') } }
37
-
38
- field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
39
- # The time at which the next retry will be available.
40
- field :next_retry_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('next_retry_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
41
- # The number of remaining retries.
42
- field :remaining_retry, T.nilable(Integer), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('remaining_retry') } }
43
- # The status of the retry. Possible values are:
44
- # * `approved` - The retry was approved and a new code was sent.
45
- # * `denied` - The retry was denied.
46
- # * `no_attempt` - No attempt was sent yet, so a retry cannot be completed.
47
- # * `rate_limited` - The authentication was rate limited and cannot be retried.
48
- # * `expired_auth` - The authentication has expired and cannot be retried.
49
- # * `already_validated` - The authentication has already been validated.
50
- #
51
- field :status, T.nilable(Shared::RetryAuthenticationResponseStatus), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Shared::RetryAuthenticationResponseStatus, true) } }
52
-
53
-
54
- sig { params(authentication_uuid: T.nilable(String), created_at: T.nilable(DateTime), next_retry_at: T.nilable(DateTime), remaining_retry: T.nilable(Integer), status: T.nilable(Shared::RetryAuthenticationResponseStatus)).void }
55
- def initialize(authentication_uuid: nil, created_at: nil, next_retry_at: nil, remaining_retry: nil, status: nil)
56
- @authentication_uuid = authentication_uuid
57
- @created_at = created_at
58
- @next_retry_at = next_retry_at
59
- @remaining_retry = remaining_retry
60
- @status = status
61
- end
62
- end
63
- end
64
- end
File without changes
File without changes