ding_sdk 0.8.2 → 0.8.3
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/lib/ding_sdk/models/operations/{create_autentication_response.rb → create_authentication_response.rb} +1 -1
- data/lib/ding_sdk/models/operations.rb +1 -1
- data/lib/ding_sdk/models/shared/code.rb +2 -0
- data/lib/ding_sdk/models/shared/createauthenticationrequest.rb +5 -2
- data/lib/ding_sdk/models/shared/errorresponse.rb +1 -0
- data/lib/ding_sdk/otp.rb +4 -4
- data/lib/ding_sdk/sdkconfiguration.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd2e613d5eae7c7458ef2c7be670ae01de402afdac255b5bd285a938c58a448f
|
4
|
+
data.tar.gz: 328edb84ae567398947419810461d4cbd277c9c67922b328272e678154d4d788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ecb9d80c11bd81a401cf0163e6af6b073359583b740c743c594612d38fb9a1d6523d52e07dd68135d3da4cd1a74b8f09b8c3775dd56293bc214d3bd16e3a094
|
7
|
+
data.tar.gz: 902c64b7971df8fe4038d6710fcdc94d21471923c73fc1ba0c82f51a6e62b6f6f6f06cac447a6de69bfe2afae696652b4eb125c91e57b34707ddb83d49773d13
|
@@ -6,7 +6,7 @@
|
|
6
6
|
module DingSDK
|
7
7
|
module Operations
|
8
8
|
autoload :CheckResponse, 'ding_sdk/models/operations/check_response.rb'
|
9
|
-
autoload :
|
9
|
+
autoload :CreateAuthenticationResponse, 'ding_sdk/models/operations/create_authentication_response.rb'
|
10
10
|
autoload :RetryResponse, 'ding_sdk/models/operations/retry_response.rb'
|
11
11
|
autoload :LookupRequest, 'ding_sdk/models/operations/lookup_request.rb'
|
12
12
|
autoload :LookupResponse, 'ding_sdk/models/operations/lookup_response.rb'
|
@@ -21,6 +21,7 @@ module DingSDK
|
|
21
21
|
# * `invalid_os_version` - The provided OS version is invalid.
|
22
22
|
# * `invalid_device_model` - The provided device model is invalid.
|
23
23
|
# * `invalid_device_id` - The provided device ID is invalid.
|
24
|
+
# * `invalid_template_id` - The provided template ID is invalid.
|
24
25
|
#
|
25
26
|
class Code < T::Enum
|
26
27
|
enums do
|
@@ -40,6 +41,7 @@ module DingSDK
|
|
40
41
|
INVALID_OS_VERSION = new('invalid_os_version')
|
41
42
|
INVALID_DEVICE_MODEL = new('invalid_device_model')
|
42
43
|
INVALID_DEVICE_ID = new('invalid_device_id')
|
44
|
+
INVALID_TEMPLATE_ID = new('invalid_template_id')
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
@@ -33,10 +33,12 @@ module DingSDK
|
|
33
33
|
field :is_returning_user, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('is_returning_user') } }
|
34
34
|
# The version of the user's device operating system.
|
35
35
|
field :os_version, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('os_version') } }
|
36
|
+
# The template id associated with the message content variant to be sent.
|
37
|
+
field :template_id, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('template_id') } }
|
36
38
|
|
37
39
|
|
38
|
-
sig { params(customer_uuid: ::String, phone_number: ::String, app_realm: T.nilable(::String), app_version: T.nilable(::String), callback_url: T.nilable(::String), device_id: T.nilable(::String), device_model: T.nilable(::String), device_type: T.nilable(::DingSDK::Shared::DeviceType), ip: T.nilable(::String), is_returning_user: T.nilable(T::Boolean), os_version: T.nilable(::String)).void }
|
39
|
-
def initialize(customer_uuid: nil, phone_number: nil, app_realm: nil, app_version: nil, callback_url: nil, device_id: nil, device_model: nil, device_type: nil, ip: nil, is_returning_user: nil, os_version: nil)
|
40
|
+
sig { params(customer_uuid: ::String, phone_number: ::String, app_realm: T.nilable(::String), app_version: T.nilable(::String), callback_url: T.nilable(::String), device_id: T.nilable(::String), device_model: T.nilable(::String), device_type: T.nilable(::DingSDK::Shared::DeviceType), ip: T.nilable(::String), is_returning_user: T.nilable(T::Boolean), os_version: T.nilable(::String), template_id: T.nilable(::String)).void }
|
41
|
+
def initialize(customer_uuid: nil, phone_number: nil, app_realm: nil, app_version: nil, callback_url: nil, device_id: nil, device_model: nil, device_type: nil, ip: nil, is_returning_user: nil, os_version: nil, template_id: nil)
|
40
42
|
@customer_uuid = customer_uuid
|
41
43
|
@phone_number = phone_number
|
42
44
|
@app_realm = app_realm
|
@@ -48,6 +50,7 @@ module DingSDK
|
|
48
50
|
@ip = ip
|
49
51
|
@is_returning_user = is_returning_user
|
50
52
|
@os_version = os_version
|
53
|
+
@template_id = template_id
|
51
54
|
end
|
52
55
|
end
|
53
56
|
end
|
@@ -25,6 +25,7 @@ module DingSDK
|
|
25
25
|
# * `invalid_os_version` - The provided OS version is invalid.
|
26
26
|
# * `invalid_device_model` - The provided device model is invalid.
|
27
27
|
# * `invalid_device_id` - The provided device ID is invalid.
|
28
|
+
# * `invalid_template_id` - The provided template ID is invalid.
|
28
29
|
#
|
29
30
|
field :code, T.nilable(::DingSDK::Shared::Code), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(::DingSDK::Shared::Code, true) } }
|
30
31
|
# A link to the documentation that describes the error.
|
data/lib/ding_sdk/otp.rb
CHANGED
@@ -63,9 +63,9 @@ module DingSDK
|
|
63
63
|
end
|
64
64
|
|
65
65
|
|
66
|
-
sig { params(request: T.nilable(::DingSDK::Shared::CreateAuthenticationRequest)).returns(::DingSDK::Operations::
|
67
|
-
def
|
68
|
-
#
|
66
|
+
sig { params(request: T.nilable(::DingSDK::Shared::CreateAuthenticationRequest)).returns(::DingSDK::Operations::CreateAuthenticationResponse) }
|
67
|
+
def create_authentication(request)
|
68
|
+
# create_authentication - Send a code
|
69
69
|
url, params = @sdk_configuration.get_server_details
|
70
70
|
base_url = Utils.template_url(url, params)
|
71
71
|
url = "#{base_url}/authentication"
|
@@ -89,7 +89,7 @@ module DingSDK
|
|
89
89
|
|
90
90
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
91
91
|
|
92
|
-
res = ::DingSDK::Operations::
|
92
|
+
res = ::DingSDK::Operations::CreateAuthenticationResponse.new(
|
93
93
|
status_code: r.status, content_type: content_type, raw_response: r
|
94
94
|
)
|
95
95
|
if r.status == 200
|
@@ -38,9 +38,9 @@ module DingSDK
|
|
38
38
|
@security = security
|
39
39
|
@language = 'ruby'
|
40
40
|
@openapi_doc_version = '1.0.0'
|
41
|
-
@sdk_version = '0.8.
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.8.
|
41
|
+
@sdk_version = '0.8.3'
|
42
|
+
@gen_version = '2.279.1'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.8.3 2.279.1 1.0.0 ding_sdk'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ding_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -147,7 +147,7 @@ files:
|
|
147
147
|
- lib/ding_sdk/lookup.rb
|
148
148
|
- lib/ding_sdk/models/operations.rb
|
149
149
|
- lib/ding_sdk/models/operations/check_response.rb
|
150
|
-
- lib/ding_sdk/models/operations/
|
150
|
+
- lib/ding_sdk/models/operations/create_authentication_response.rb
|
151
151
|
- lib/ding_sdk/models/operations/lookup_request.rb
|
152
152
|
- lib/ding_sdk/models/operations/lookup_response.rb
|
153
153
|
- lib/ding_sdk/models/operations/retry_response.rb
|