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.
- checksums.yaml +4 -4
- data/lib/{ding/sdk.rb → ding_sdk/ding.rb} +1 -1
- data/lib/{ding → ding_sdk}/lookup.rb +9 -7
- data/lib/{ding/models/operations/check.rb → ding_sdk/models/operations/check_response.rb} +7 -10
- data/lib/{ding/models/operations/create_autentication.rb → ding_sdk/models/operations/create_autentication_response.rb} +7 -10
- data/lib/ding_sdk/models/operations/lookup_request.rb +27 -0
- data/lib/ding_sdk/models/operations/lookup_response.rb +36 -0
- data/lib/{ding/models/operations/retry_.rb → ding_sdk/models/operations/retry_response.rb} +7 -10
- data/lib/ding_sdk/models/operations.rb +14 -0
- data/lib/{ding/models/shared/errorresponse.rb → ding_sdk/models/shared/code.rb} +1 -36
- data/lib/ding_sdk/models/shared/createauthenticationrequest.rb +54 -0
- data/lib/ding_sdk/models/shared/createauthenticationresponse.rb +37 -0
- data/lib/{ding → ding_sdk}/models/shared/createcheckrequest.rb +5 -6
- data/lib/ding_sdk/models/shared/createcheckresponse.rb +34 -0
- data/lib/ding_sdk/models/shared/createcheckresponse_status.rb +30 -0
- data/lib/ding_sdk/models/shared/device_type.rb +20 -0
- data/lib/ding_sdk/models/shared/errorresponse.rb +44 -0
- data/lib/ding_sdk/models/shared/line_type.rb +28 -0
- data/lib/ding_sdk/models/shared/lookupresponse.rb +42 -0
- data/lib/{ding → ding_sdk}/models/shared/retryauthenticationrequest.rb +4 -5
- data/lib/ding_sdk/models/shared/retryauthenticationresponse.rb +43 -0
- data/lib/ding_sdk/models/shared/retryauthenticationresponse_status.rb +30 -0
- data/lib/{ding → ding_sdk}/models/shared/security.rb +3 -4
- data/lib/ding_sdk/models/shared/status.rb +24 -0
- data/lib/ding_sdk/models/shared.rb +24 -0
- data/lib/{ding → ding_sdk}/otp.rb +17 -13
- data/lib/{ding → ding_sdk}/sdkconfiguration.rb +5 -5
- data/lib/ding_sdk.rb +8 -20
- metadata +30 -21
- data/lib/ding/models/operations/lookup.rb +0 -56
- data/lib/ding/models/shared/createauthenticationrequest.rb +0 -65
- data/lib/ding/models/shared/createauthenticationresponse.rb +0 -52
- data/lib/ding/models/shared/createcheckresponse.rb +0 -55
- data/lib/ding/models/shared/lookupresponse.rb +0 -61
- data/lib/ding/models/shared/retryauthenticationresponse.rb +0 -64
- /data/lib/{ding → ding_sdk}/utils/metadata_fields.rb +0 -0
- /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
|