Skip to content

Commit

Permalink
Merge pull request #40 from passageidentity/sdk-updates-1706576205
Browse files Browse the repository at this point in the history
SDK updates
  • Loading branch information
danilo-kaltner authored Jan 30, 2024
2 parents 3cdf469 + 0d11faa commit 8007062
Show file tree
Hide file tree
Showing 18 changed files with 363 additions and 42 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to this project will be documented in this file.

## [0.5.0] - 2024-01-30

### Added

- `AppleUserSocialConnection` model has been added

### Changed

- `UserEventInfo` has been renamed to `UserRecentEvent`
- Docs have been moved to `/docs`
- `GithubSocialConnection` has been renamed to `GithubUserSocialConnection`
- `GoogleSocialConnection` has been renamed to `GoogleUserSocialConnection`

## [0.4.0] - 2024-01-18

### Added
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::GithubSocialConnection
# OpenapiClient::AppleUserSocialConnection

## Properties

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

instance = OpenapiClient::GithubSocialConnection.new(
instance = OpenapiClient::AppleUserSocialConnection.new(
provider_id: null,
created_at: null,
last_login_at: null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::GoogleSocialConnection
# OpenapiClient::GithubUserSocialConnection

## Properties

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

instance = OpenapiClient::GoogleSocialConnection.new(
instance = OpenapiClient::GithubUserSocialConnection.new(
provider_id: null,
created_at: null,
last_login_at: null,
Expand Down
24 changes: 24 additions & 0 deletions docs/generated/GoogleUserSocialConnection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# OpenapiClient::GoogleUserSocialConnection

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **provider_id** | **String** | The external ID of the Social Connection. | |
| **created_at** | **Time** | | |
| **last_login_at** | **Time** | | |
| **provider_identifier** | **String** | The email of connected social user. | |

## Example

```ruby
require 'openapi_client'

instance = OpenapiClient::GoogleUserSocialConnection.new(
provider_id: null,
created_at: null,
last_login_at: null,
provider_identifier: null
)
```

7 changes: 4 additions & 3 deletions docs/generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ Class | Method | HTTP request | Description

- [OpenapiClient::AppInfo](docs/AppInfo.md)
- [OpenapiClient::AppResponse](docs/AppResponse.md)
- [OpenapiClient::AppleUserSocialConnection](docs/AppleUserSocialConnection.md)
- [OpenapiClient::AuthMethods](docs/AuthMethods.md)
- [OpenapiClient::CreateMagicLinkRequest](docs/CreateMagicLinkRequest.md)
- [OpenapiClient::CreateUserRequest](docs/CreateUserRequest.md)
- [OpenapiClient::ElementCustomization](docs/ElementCustomization.md)
- [OpenapiClient::FontFamily](docs/FontFamily.md)
- [OpenapiClient::GithubSocialConnection](docs/GithubSocialConnection.md)
- [OpenapiClient::GoogleSocialConnection](docs/GoogleSocialConnection.md)
- [OpenapiClient::GithubUserSocialConnection](docs/GithubUserSocialConnection.md)
- [OpenapiClient::GoogleUserSocialConnection](docs/GoogleUserSocialConnection.md)
- [OpenapiClient::LayoutConfig](docs/LayoutConfig.md)
- [OpenapiClient::Layouts](docs/Layouts.md)
- [OpenapiClient::ListDevicesResponse](docs/ListDevicesResponse.md)
Expand All @@ -130,10 +131,10 @@ Class | Method | HTTP request | Description
- [OpenapiClient::UpdateOtpAuthMethod](docs/UpdateOtpAuthMethod.md)
- [OpenapiClient::UpdatePasskeysAuthMethod](docs/UpdatePasskeysAuthMethod.md)
- [OpenapiClient::UpdateUserRequest](docs/UpdateUserRequest.md)
- [OpenapiClient::UserEventInfo](docs/UserEventInfo.md)
- [OpenapiClient::UserInfo](docs/UserInfo.md)
- [OpenapiClient::UserMetadataField](docs/UserMetadataField.md)
- [OpenapiClient::UserMetadataFieldType](docs/UserMetadataFieldType.md)
- [OpenapiClient::UserRecentEvent](docs/UserRecentEvent.md)
- [OpenapiClient::UserResponse](docs/UserResponse.md)
- [OpenapiClient::UserSocialConnections](docs/UserSocialConnections.md)
- [OpenapiClient::UserStatus](docs/UserStatus.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/UserInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| **login_count** | **Integer** | | |
| **phone** | **String** | | |
| **phone_verified** | **Boolean** | | |
| **recent_events** | [**Array<UserEventInfo>**](UserEventInfo.md) | | |
| **recent_events** | [**Array<UserRecentEvent>**](UserRecentEvent.md) | | |
| **social_connections** | [**UserSocialConnections**](UserSocialConnections.md) | | |
| **status** | [**UserStatus**](UserStatus.md) | | |
| **updated_at** | **Time** | | |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenapiClient::UserEventInfo
# OpenapiClient::UserRecentEvent

## Properties

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

instance = OpenapiClient::UserEventInfo.new(
instance = OpenapiClient::UserRecentEvent.new(
created_at: null,
id: null,
ip_addr: null,
Expand Down
10 changes: 6 additions & 4 deletions docs/generated/UserSocialConnections.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **google** | [**GoogleSocialConnection**](GoogleSocialConnection.md) | | [optional] |
| **github** | [**GithubSocialConnection**](GithubSocialConnection.md) | | [optional] |
| **apple** | [**AppleUserSocialConnection**](AppleUserSocialConnection.md) | | [optional] |
| **github** | [**GithubUserSocialConnection**](GithubUserSocialConnection.md) | | [optional] |
| **google** | [**GoogleUserSocialConnection**](GoogleUserSocialConnection.md) | | [optional] |

## Example

```ruby
require 'openapi_client'

instance = OpenapiClient::UserSocialConnections.new(
google: null,
github: null
apple: null,
github: null,
google: null
)
```

7 changes: 4 additions & 3 deletions lib/openapi_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
# 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_social_connection'
require_relative 'openapi_client/models/google_social_connection'
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/list_devices_response'
Expand All @@ -46,10 +47,10 @@
require_relative 'openapi_client/models/update_otp_auth_method'
require_relative 'openapi_client/models/update_passkeys_auth_method'
require_relative 'openapi_client/models/update_user_request'
require_relative 'openapi_client/models/user_event_info'
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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
require 'time'

module OpenapiClient
class GoogleSocialConnection
class AppleUserSocialConnection
# The external ID of the Social Connection.
attr_accessor :provider_id

Expand Down Expand Up @@ -60,13 +60,13 @@ def self.openapi_nullable
# @param [Hash] attributes Model attributes in the form of hash
def initialize(attributes = {})
if (!attributes.is_a?(Hash))
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::GoogleSocialConnection` initialize method"
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::AppleUserSocialConnection` initialize method"
end

# check to see if the attribute exists and convert string to symbol for hash key
attributes = attributes.each_with_object({}) { |(k, v), h|
if (!self.class.attribute_map.key?(k.to_sym))
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::GoogleSocialConnection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::AppleUserSocialConnection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
require 'time'

module OpenapiClient
class GithubSocialConnection
class GithubUserSocialConnection
# The external ID of the Social Connection.
attr_accessor :provider_id

Expand Down Expand Up @@ -60,13 +60,13 @@ def self.openapi_nullable
# @param [Hash] attributes Model attributes in the form of hash
def initialize(attributes = {})
if (!attributes.is_a?(Hash))
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::GithubSocialConnection` initialize method"
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::GithubUserSocialConnection` initialize method"
end

# check to see if the attribute exists and convert string to symbol for hash key
attributes = attributes.each_with_object({}) { |(k, v), h|
if (!self.class.attribute_map.key?(k.to_sym))
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::GithubSocialConnection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::GithubUserSocialConnection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
}
Expand Down
Loading

0 comments on commit 8007062

Please sign in to comment.