Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK updates #68

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/generated/ListPaginatedUsersItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| **created_at** | **Time** | | |
| **email** | **String** | | |
| **email_verified** | **Boolean** | | |
| **external_id** | **String** | The external ID of the user. Only set if the user was created in a Flex app. | |
| **id** | **String** | | |
| **last_login_at** | **Time** | | |
| **login_count** | **Integer** | | |
Expand All @@ -25,6 +26,7 @@ instance = OpenapiClient::ListPaginatedUsersItem.new(
created_at: null,
email: null,
email_verified: null,
external_id: null,
id: null,
last_login_at: null,
login_count: null,
Expand Down
2 changes: 2 additions & 0 deletions docs/generated/UserInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| **created_at** | **Time** | | |
| **email** | **String** | | |
| **email_verified** | **Boolean** | | |
| **external_id** | **String** | The external ID of the user. Only set if the user was created in a Flex app. | |
| **id** | **String** | | |
| **last_login_at** | **Time** | | |
| **login_count** | **Integer** | | |
Expand All @@ -30,6 +31,7 @@ instance = OpenapiClient::UserInfo.new(
created_at: null,
email: null,
email_verified: null,
external_id: null,
id: null,
last_login_at: null,
login_count: null,
Expand Down
109 changes: 53 additions & 56 deletions lib/openapi_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,66 +11,63 @@
=end

# Common files
require_relative 'openapi_client/api_client'
require_relative 'openapi_client/api_error'
require_relative 'openapi_client/version'
require_relative 'openapi_client/configuration'
require 'openapi_client/api_client'
require 'openapi_client/api_error'
require 'openapi_client/version'
require 'openapi_client/configuration'

# Models
require_relative 'openapi_client/models/app_info'
require_relative 'openapi_client/models/app_response'
require_relative 'openapi_client/models/apple_user_social_connection'
require_relative 'openapi_client/models/auth_methods'
require_relative 'openapi_client/models/create_magic_link_request'
require_relative 'openapi_client/models/create_user_request'
require_relative 'openapi_client/models/element_customization'
require_relative 'openapi_client/models/font_family'
require_relative 'openapi_client/models/github_user_social_connection'
require_relative 'openapi_client/models/google_user_social_connection'
require_relative 'openapi_client/models/layout_config'
require_relative 'openapi_client/models/layouts'
require_relative 'openapi_client/models/link'
require_relative 'openapi_client/models/list_devices_response'
require_relative 'openapi_client/models/list_paginated_users_item'
require_relative 'openapi_client/models/list_paginated_users_response'
require_relative 'openapi_client/models/magic_link'
require_relative 'openapi_client/models/magic_link_auth_method'
require_relative 'openapi_client/models/magic_link_channel'
require_relative 'openapi_client/models/magic_link_response'
require_relative 'openapi_client/models/magic_link_type'
require_relative 'openapi_client/models/model400_error'
require_relative 'openapi_client/models/model401_error'
require_relative 'openapi_client/models/model403_error'
require_relative 'openapi_client/models/model404_error'
require_relative 'openapi_client/models/model500_error'
require_relative 'openapi_client/models/nonce'
require_relative 'openapi_client/models/otp_auth_method'
require_relative 'openapi_client/models/paginated_links'
require_relative 'openapi_client/models/passkeys_auth_method'
require_relative 'openapi_client/models/technologies'
require_relative 'openapi_client/models/ttl_display_unit'
require_relative 'models/update_magic_link_auth_method'
require_relative 'models/update_otp_auth_method'
require_relative 'models/update_passkeys_auth_method'
require_relative 'openapi_client/models/update_user_request'
require_relative 'openapi_client/models/user_event_status'
require_relative 'openapi_client/models/user_info'
require_relative 'openapi_client/models/user_metadata_field'
require_relative 'openapi_client/models/user_metadata_field_type'
require_relative 'openapi_client/models/user_recent_event'
require_relative 'openapi_client/models/user_response'
require_relative 'openapi_client/models/user_social_connections'
require_relative 'openapi_client/models/user_status'
require_relative 'openapi_client/models/web_authn_devices'
require_relative 'openapi_client/models/web_authn_icons'
require_relative 'openapi_client/models/web_authn_type'
require 'openapi_client/models/app_info'
require 'openapi_client/models/app_response'
require 'openapi_client/models/apple_user_social_connection'
require 'openapi_client/models/auth_methods'
require 'openapi_client/models/create_magic_link_request'
require 'openapi_client/models/create_user_request'
require 'openapi_client/models/element_customization'
require 'openapi_client/models/font_family'
require 'openapi_client/models/github_user_social_connection'
require 'openapi_client/models/google_user_social_connection'
require 'openapi_client/models/layout_config'
require 'openapi_client/models/layouts'
require 'openapi_client/models/link'
require 'openapi_client/models/list_devices_response'
require 'openapi_client/models/list_paginated_users_item'
require 'openapi_client/models/list_paginated_users_response'
require 'openapi_client/models/magic_link'
require 'openapi_client/models/magic_link_auth_method'
require 'openapi_client/models/magic_link_channel'
require 'openapi_client/models/magic_link_response'
require 'openapi_client/models/magic_link_type'
require 'openapi_client/models/model400_error'
require 'openapi_client/models/model401_error'
require 'openapi_client/models/model403_error'
require 'openapi_client/models/model404_error'
require 'openapi_client/models/model500_error'
require 'openapi_client/models/nonce'
require 'openapi_client/models/otp_auth_method'
require 'openapi_client/models/paginated_links'
require 'openapi_client/models/passkeys_auth_method'
require 'openapi_client/models/technologies'
require 'openapi_client/models/ttl_display_unit'
require 'openapi_client/models/update_user_request'
require 'openapi_client/models/user_event_status'
require 'openapi_client/models/user_info'
require 'openapi_client/models/user_metadata_field'
require 'openapi_client/models/user_metadata_field_type'
require 'openapi_client/models/user_recent_event'
require 'openapi_client/models/user_response'
require 'openapi_client/models/user_social_connections'
require 'openapi_client/models/user_status'
require 'openapi_client/models/web_authn_devices'
require 'openapi_client/models/web_authn_icons'
require 'openapi_client/models/web_authn_type'

# APIs
require_relative 'openapi_client/api/apps_api'
require_relative 'openapi_client/api/magic_links_api'
require_relative 'openapi_client/api/tokens_api'
require_relative 'openapi_client/api/user_devices_api'
require_relative 'openapi_client/api/users_api'
require 'openapi_client/api/apps_api'
require 'openapi_client/api/magic_links_api'
require 'openapi_client/api/tokens_api'
require 'openapi_client/api/user_devices_api'
require 'openapi_client/api/users_api'

module OpenapiClient
class << self
Expand Down
19 changes: 18 additions & 1 deletion lib/openapi_client/models/list_paginated_users_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class ListPaginatedUsersItem

attr_accessor :email_verified

# The external ID of the user. Only set if the user was created in a Flex app.
attr_accessor :external_id

attr_accessor :id

attr_accessor :last_login_at
Expand Down Expand Up @@ -65,6 +68,7 @@ def self.attribute_map
:'created_at' => :'created_at',
:'email' => :'email',
:'email_verified' => :'email_verified',
:'external_id' => :'external_id',
:'id' => :'id',
:'last_login_at' => :'last_login_at',
:'login_count' => :'login_count',
Expand All @@ -87,6 +91,7 @@ def self.openapi_types
:'created_at' => :'Time',
:'email' => :'String',
:'email_verified' => :'Boolean',
:'external_id' => :'String',
:'id' => :'String',
:'last_login_at' => :'Time',
:'login_count' => :'Integer',
Expand Down Expand Up @@ -138,6 +143,12 @@ def initialize(attributes = {})
self.email_verified = nil
end

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

if attributes.key?(:'id')
self.id = attributes[:'id']
else
Expand Down Expand Up @@ -204,6 +215,10 @@ def list_invalid_properties
invalid_properties.push('invalid value for "email_verified", email_verified cannot be nil.')
end

if @external_id.nil?
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
end

if @id.nil?
invalid_properties.push('invalid value for "id", id cannot be nil.')
end
Expand Down Expand Up @@ -242,6 +257,7 @@ def valid?
return false if @created_at.nil?
return false if @email.nil?
return false if @email_verified.nil?
return false if @external_id.nil?
return false if @id.nil?
return false if @last_login_at.nil?
return false if @login_count.nil?
Expand All @@ -260,6 +276,7 @@ def ==(o)
created_at == o.created_at &&
email == o.email &&
email_verified == o.email_verified &&
external_id == o.external_id &&
id == o.id &&
last_login_at == o.last_login_at &&
login_count == o.login_count &&
Expand All @@ -279,7 +296,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[created_at, email, email_verified, id, last_login_at, login_count, phone, phone_verified, status, updated_at, user_metadata].hash
[created_at, email, email_verified, external_id, id, last_login_at, login_count, phone, phone_verified, status, updated_at, user_metadata].hash
end

# Builds the object from hash
Expand Down
19 changes: 18 additions & 1 deletion lib/openapi_client/models/user_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class UserInfo

attr_accessor :email_verified

# The external ID of the user. Only set if the user was created in a Flex app.
attr_accessor :external_id

attr_accessor :id

attr_accessor :last_login_at
Expand Down Expand Up @@ -76,6 +79,7 @@ def self.attribute_map
:'created_at' => :'created_at',
:'email' => :'email',
:'email_verified' => :'email_verified',
:'external_id' => :'external_id',
:'id' => :'id',
:'last_login_at' => :'last_login_at',
:'login_count' => :'login_count',
Expand Down Expand Up @@ -103,6 +107,7 @@ def self.openapi_types
:'created_at' => :'Time',
:'email' => :'String',
:'email_verified' => :'Boolean',
:'external_id' => :'String',
:'id' => :'String',
:'last_login_at' => :'Time',
:'login_count' => :'Integer',
Expand Down Expand Up @@ -159,6 +164,12 @@ def initialize(attributes = {})
self.email_verified = nil
end

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

if attributes.key?(:'id')
self.id = attributes[:'id']
else
Expand Down Expand Up @@ -261,6 +272,10 @@ def list_invalid_properties
invalid_properties.push('invalid value for "email_verified", email_verified cannot be nil.')
end

if @external_id.nil?
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
end

if @id.nil?
invalid_properties.push('invalid value for "id", id cannot be nil.')
end
Expand Down Expand Up @@ -319,6 +334,7 @@ def valid?
return false if @created_at.nil?
return false if @email.nil?
return false if @email_verified.nil?
return false if @external_id.nil?
return false if @id.nil?
return false if @last_login_at.nil?
return false if @login_count.nil?
Expand All @@ -342,6 +358,7 @@ def ==(o)
created_at == o.created_at &&
email == o.email &&
email_verified == o.email_verified &&
external_id == o.external_id &&
id == o.id &&
last_login_at == o.last_login_at &&
login_count == o.login_count &&
Expand All @@ -366,7 +383,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[created_at, email, email_verified, id, last_login_at, login_count, phone, phone_verified, recent_events, social_connections, status, updated_at, user_metadata, webauthn, webauthn_devices, webauthn_types].hash
[created_at, email, email_verified, external_id, id, last_login_at, login_count, phone, phone_verified, recent_events, social_connections, status, updated_at, user_metadata, webauthn, webauthn_devices, webauthn_types].hash
end

# Builds the object from hash
Expand Down
Loading