Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.173.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Feb 8, 2024
1 parent dfd4b54 commit e5c2556
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 63 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ management:
docChecksum: 5e4ef027bc51f54368e8b1607b77c098
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.250.2
releaseVersion: 0.6.0
configChecksum: c613369d863897a4c0aadcd4d627b2cf
generationVersion: 2.250.16
releaseVersion: 0.7.0
configChecksum: dd4e1b6bb71c93323bdeb2137c87b142
repoURL: https://github.com/ding-live/ding-ruby.git
repoSubDirectory: .
installationURL: https://github.com/ding-live/ding-ruby
published: true
features:
ruby:
core: 3.2.3
core: 3.2.5
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.81.3
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ Send an OTP code to a user's phone number.


```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::CreateAuthenticationRequest.new(
customer_uuid="eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
phone_number="+1234567890",
customer_uuid: "eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
phone_number: "+1234567890",
)

res = s.otp.create_autentication(req)
Expand All @@ -51,21 +51,21 @@ Check that a code entered by a user is valid.


```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::CreateCheckRequest.new(
authentication_uuid="e0e7b0e9-739d-424b-922f-1c2cb48ab077",
check_code="123456",
customer_uuid="8f1196d5-806e-4b71-9b24-5f96ec052808",
authentication_uuid: "e0e7b0e9-739d-424b-922f-1c2cb48ab077",
check_code: "123456",
customer_uuid: "8f1196d5-806e-4b71-9b24-5f96ec052808",
)

res = s.otp.check(req)
Expand All @@ -82,20 +82,20 @@ Perform a retry if a user has not received the code.


```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::RetryAuthenticationRequest.new(
authentication_uuid="a74ee547-564d-487a-91df-37fb25413a91",
customer_uuid="3c8b3a46-881e-4cdd-93a6-f7f238bf020a",
authentication_uuid: "a74ee547-564d-487a-91df-37fb25413a91",
customer_uuid: "3c8b3a46-881e-4cdd-93a6-f7f238bf020a",
)

res = s.otp.retry(req)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,14 @@ Based on:
### Generated
- [ruby v0.6.0] .
### Releases
- [Ruby Gems v0.6.0] https://rubygems.org/gems/ding_sdk/versions/0.6.0 - .
- [Ruby Gems v0.6.0] https://rubygems.org/gems/ding_sdk/versions/0.6.0 - .

## 2024-02-08 00:13:54
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.173.1 (2.250.16) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.7.0] .
### Releases
- [Ruby Gems v0.7.0] https://rubygems.org/gems/ding_sdk/versions/0.7.0 - .
32 changes: 16 additions & 16 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ Send an OTP code to a user's phone number.


```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::CreateAuthenticationRequest.new(
customer_uuid="eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
phone_number="+1234567890",
customer_uuid: "eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
phone_number: "+1234567890",
)

res = s.otp.create_autentication(req)
Expand All @@ -35,21 +35,21 @@ Check that a code entered by a user is valid.


```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::CreateCheckRequest.new(
authentication_uuid="e0e7b0e9-739d-424b-922f-1c2cb48ab077",
check_code="123456",
customer_uuid="8f1196d5-806e-4b71-9b24-5f96ec052808",
authentication_uuid: "e0e7b0e9-739d-424b-922f-1c2cb48ab077",
check_code: "123456",
customer_uuid: "8f1196d5-806e-4b71-9b24-5f96ec052808",
)

res = s.otp.check(req)
Expand All @@ -66,20 +66,20 @@ Perform a retry if a user has not received the code.


```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::RetryAuthenticationRequest.new(
authentication_uuid="a74ee547-564d-487a-91df-37fb25413a91",
customer_uuid="3c8b3a46-881e-4cdd-93a6-f7f238bf020a",
authentication_uuid: "a74ee547-564d-487a-91df-37fb25413a91",
customer_uuid: "3c8b3a46-881e-4cdd-93a6-f7f238bf020a",
)

res = s.otp.retry(req)
Expand Down
2 changes: 1 addition & 1 deletion ding_sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)

Gem::Specification.new do |s|
s.name = 'ding_sdk'
s.version = '0.6.0'
s.version = '0.7.0'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down
6 changes: 3 additions & 3 deletions docs/sdks/lookup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Perform a phone number lookup
### Example Usage

```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)

Expand Down
32 changes: 16 additions & 16 deletions docs/sdks/otp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ Check a code
### Example Usage

```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::CreateCheckRequest.new(
authentication_uuid="e0e7b0e9-739d-424b-922f-1c2cb48ab077",
check_code="123456",
customer_uuid="8f1196d5-806e-4b71-9b24-5f96ec052808",
authentication_uuid: "e0e7b0e9-739d-424b-922f-1c2cb48ab077",
check_code: "123456",
customer_uuid: "8f1196d5-806e-4b71-9b24-5f96ec052808",
)

res = s.otp.check(req)
Expand Down Expand Up @@ -62,20 +62,20 @@ Send a code
### Example Usage

```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::CreateAuthenticationRequest.new(
customer_uuid="eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
phone_number="+1234567890",
customer_uuid: "eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
phone_number: "+1234567890",
)

res = s.otp.create_autentication(req)
Expand Down Expand Up @@ -105,20 +105,20 @@ Perform a retry
### Example Usage

```ruby
require_relative ding_sdk
require 'ding_sdk'


s = ::DingSDK::Ding.new
s.config_security(
security=::DingSDK::Shared::Security.new(
api_key="YOUR_API_KEY",
::DingSDK::Shared::Security.new(
api_key: "YOUR_API_KEY",
)
)


req = ::DingSDK::Shared::RetryAuthenticationRequest.new(
authentication_uuid="a74ee547-564d-487a-91df-37fb25413a91",
customer_uuid="3c8b3a46-881e-4cdd-93a6-f7f238bf020a",
authentication_uuid: "a74ee547-564d-487a-91df-37fb25413a91",
customer_uuid: "3c8b3a46-881e-4cdd-93a6-f7f238bf020a",
)

res = s.otp.retry(req)
Expand Down
3 changes: 2 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ generation:
fixes:
nameResolutionDec2023: false
parameterOrderingFeb2024: false
requestResponseComponentNamesFeb2024: false
ruby:
version: 0.6.0
version: 0.7.0
author: Ding
description: Ding Ruby SDK
imports:
Expand Down
6 changes: 3 additions & 3 deletions lib/ding_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx)
@server = ''
@language = 'ruby'
@openapi_doc_version = '1.0.0'
@sdk_version = '0.6.0'
@gen_version = '2.250.2'
@user_agent = 'speakeasy-sdk/ruby 0.6.0 2.250.2 1.0.0 ding_sdk'
@sdk_version = '0.7.0'
@gen_version = '2.250.16'
@user_agent = 'speakeasy-sdk/ruby 0.7.0 2.250.16 1.0.0 ding_sdk'
end

sig { returns([String, T::Hash[Symbol, String]]) }
Expand Down
4 changes: 2 additions & 2 deletions lib/ding_sdk/utils/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ def self._get_delimited_query_params(metadata, field_name, obj, delimiter)
_populate_form(field_name, metadata.fetch(:explode, true), obj, delimiter, &get_query_param_field_name)
end

sig { params(clazz: Class, query_params: FieldAugmented, gbls: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).returns(T::Hash[Symbol, T::Array[String]]) }
def self.get_query_params(clazz, query_params, gbls)
sig { params(clazz: Class, query_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, T::Array[String]]) }
def self.get_query_params(clazz, query_params, gbls = nil)
params = {}
param_fields = clazz.fields
param_fields.each do |f|
Expand Down

0 comments on commit e5c2556

Please sign in to comment.