Skip to content

Commit

Permalink
SDK updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 5, 2023
1 parent dd18bf8 commit bbf7560
Show file tree
Hide file tree
Showing 16 changed files with 665 additions and 41 deletions.
8 changes: 4 additions & 4 deletions docs/generated/AuthMethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **passkey** | [**PasskeyAuthMethod**](PasskeyAuthMethod.md) | | |
| **otp** | [**EmailSmsAuthMethod**](EmailSmsAuthMethod.md) | | |
| **magic_link** | [**EmailSmsAuthMethod**](EmailSmsAuthMethod.md) | | |
| **passkeys** | [**PasskeysAuthMethod**](PasskeysAuthMethod.md) | | |
| **otp** | [**OtpAuthMethod**](OtpAuthMethod.md) | | |
| **magic_link** | [**MagicLinkAuthMethod**](MagicLinkAuthMethod.md) | | |

## Example

```ruby
require 'openapi_client'

instance = OpenapiClient::AuthMethods.new(
passkey: null,
passkeys: null,
otp: null,
magic_link: null
)
Expand Down
22 changes: 22 additions & 0 deletions docs/generated/MagicLinkAuthMethod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# OpenapiClient::MagicLinkAuthMethod

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **enabled** | **Boolean** | | |
| **ttl** | **Integer** | Maximum time (IN SECONDS) for the auth to expire. | [default to 300] |
| **ttl_display_unit** | [**TtlDisplayUnit**](TtlDisplayUnit.md) | | |

## Example

```ruby
require 'openapi_client'

instance = OpenapiClient::MagicLinkAuthMethod.new(
enabled: null,
ttl: null,
ttl_display_unit: null
)
```

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::EmailSmsAuthMethod
# OpenapiClient::OtpAuthMethod

## Properties

Expand All @@ -13,7 +13,7 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::EmailSmsAuthMethod.new(
instance = OpenapiClient::OtpAuthMethod.new(
enabled: null,
ttl: null,
ttl_display_unit: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::PasskeyAuthMethod
# OpenapiClient::PasskeysAuthMethod

## Properties

Expand All @@ -11,7 +11,7 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::PasskeyAuthMethod.new(
instance = OpenapiClient::PasskeysAuthMethod.new(
enabled: null
)
```
Expand Down
22 changes: 22 additions & 0 deletions docs/generated/UpdateMagicLinkAuthMethod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# OpenapiClient::UpdateMagicLinkAuthMethod

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **enabled** | **Boolean** | | [optional] |
| **ttl** | **Integer** | Maximum time (IN SECONDS) for the auth to expire. | [optional][default to 300] |
| **ttl_display_unit** | [**TtlDisplayUnit**](TtlDisplayUnit.md) | | [optional] |

## Example

```ruby
require 'openapi_client'

instance = OpenapiClient::UpdateMagicLinkAuthMethod.new(
enabled: null,
ttl: null,
ttl_display_unit: null
)
```

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::UpdateEmailSmsAuthMethod
# OpenapiClient::UpdateOtpAuthMethod

## Properties

Expand All @@ -13,7 +13,7 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::UpdateEmailSmsAuthMethod.new(
instance = OpenapiClient::UpdateOtpAuthMethod.new(
enabled: null,
ttl: null,
ttl_display_unit: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::UpdatePasskeyAuthMethod
# OpenapiClient::UpdatePasskeysAuthMethod

## Properties

Expand All @@ -11,7 +11,7 @@
```ruby
require 'openapi_client'

instance = OpenapiClient::UpdatePasskeyAuthMethod.new(
instance = OpenapiClient::UpdatePasskeysAuthMethod.new(
enabled: null
)
```
Expand Down
1 change: 0 additions & 1 deletion lib/openapi_client/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def build_request(http_method, path, request, opts = {})

request.url url
request.params = query_params

request
end

Expand Down
26 changes: 13 additions & 13 deletions lib/openapi_client/models/auth_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module OpenapiClient
# Denotes what methods this app is allowed to use for authentication with configurations
class AuthMethods
attr_accessor :passkey
attr_accessor :passkeys

attr_accessor :otp

Expand All @@ -25,7 +25,7 @@ class AuthMethods
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'passkey' => :'passkey',
:'passkeys' => :'passkeys',
:'otp' => :'otp',
:'magic_link' => :'magic_link'
}
Expand All @@ -39,9 +39,9 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'passkey' => :'PasskeyAuthMethod',
:'otp' => :'EmailSmsAuthMethod',
:'magic_link' => :'EmailSmsAuthMethod'
:'passkeys' => :'PasskeysAuthMethod',
:'otp' => :'OtpAuthMethod',
:'magic_link' => :'MagicLinkAuthMethod'
}
end

Expand All @@ -66,10 +66,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'passkey')
self.passkey = attributes[:'passkey']
if attributes.key?(:'passkeys')
self.passkeys = attributes[:'passkeys']
else
self.passkey = nil
self.passkeys = nil
end

if attributes.key?(:'otp')
Expand All @@ -90,8 +90,8 @@ def initialize(attributes = {})
def list_invalid_properties
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
invalid_properties = Array.new
if @passkey.nil?
invalid_properties.push('invalid value for "passkey", passkey cannot be nil.')
if @passkeys.nil?
invalid_properties.push('invalid value for "passkeys", passkeys cannot be nil.')
end

if @otp.nil?
Expand All @@ -109,7 +109,7 @@ def list_invalid_properties
# @return true if the model is valid
def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @passkey.nil?
return false if @passkeys.nil?
return false if @otp.nil?
return false if @magic_link.nil?
true
Expand All @@ -120,7 +120,7 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
passkey == o.passkey &&
passkeys == o.passkeys &&
otp == o.otp &&
magic_link == o.magic_link
end
Expand All @@ -134,7 +134,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[passkey, otp, magic_link].hash
[passkeys, otp, magic_link].hash
end

# Builds the object from hash
Expand Down
Loading

0 comments on commit bbf7560

Please sign in to comment.