passageidentity 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/docs/generated/{GithubSocialConnection.md → AppleUserSocialConnection.md} +2 -2
- data/docs/generated/{GoogleSocialConnection.md → GithubUserSocialConnection.md} +2 -2
- data/docs/generated/GoogleUserSocialConnection.md +24 -0
- data/docs/generated/README.md +4 -3
- data/docs/generated/UserInfo.md +1 -1
- data/docs/generated/{UserEventInfo.md → UserRecentEvent.md} +2 -2
- data/docs/generated/UserSocialConnections.md +6 -4
- data/lib/openapi_client/models/{google_social_connection.rb → apple_user_social_connection.rb} +3 -3
- data/lib/openapi_client/models/{github_social_connection.rb → github_user_social_connection.rb} +3 -3
- data/lib/openapi_client/models/google_user_social_connection.rb +271 -0
- data/lib/openapi_client/models/otp_auth_method.rb +3 -3
- data/lib/openapi_client/models/ttl_display_unit.rb +1 -1
- data/lib/openapi_client/models/user_info.rb +1 -1
- data/lib/openapi_client/models/{user_event_info.rb → user_recent_event.rb} +3 -3
- data/lib/openapi_client/models/user_social_connections.rb +19 -10
- data/lib/openapi_client.rb +4 -3
- data/lib/passageidentity/version.rb +1 -1
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e054f6f2f16c809e2837abab2c504fdc74a72efc17637684fa16d7df46cb711
|
4
|
+
data.tar.gz: 7a2fdf636d8c50c6608f6bdf8f136c738ebc4a5778994ee571feaa04d480e640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2c9626cbf491d68743c64ec42559dcfff2f9e555775937f89ba63f56e42ab3f98517f9aebac6b93ec84a145260374934b98dab1041051470663e0b429c6285
|
7
|
+
data.tar.gz: e4d50ed30523768f29e90fff59f864fbef471e59bc09dd33ad297ab287f2ff79966c187977212fd0ba8ff33bf63bc492150d96e9dd53266aa14c3414c49353c6
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,19 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.5.0] - 2024-01-30
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
- `AppleUserSocialConnection` model has been added
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- `UserEventInfo` has been renamed to `UserRecentEvent`
|
14
|
+
- Docs have been moved to `/docs`
|
15
|
+
- `GithubSocialConnection` has been renamed to `GithubUserSocialConnection`
|
16
|
+
- `GoogleSocialConnection` has been renamed to `GoogleUserSocialConnection`
|
17
|
+
|
5
18
|
## [0.4.0] - 2024-01-18
|
6
19
|
|
7
20
|
### Added
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# OpenapiClient::
|
1
|
+
# OpenapiClient::AppleUserSocialConnection
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
```ruby
|
15
15
|
require 'openapi_client'
|
16
16
|
|
17
|
-
instance = OpenapiClient::
|
17
|
+
instance = OpenapiClient::AppleUserSocialConnection.new(
|
18
18
|
provider_id: null,
|
19
19
|
created_at: null,
|
20
20
|
last_login_at: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# OpenapiClient::
|
1
|
+
# OpenapiClient::GithubUserSocialConnection
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
```ruby
|
15
15
|
require 'openapi_client'
|
16
16
|
|
17
|
-
instance = OpenapiClient::
|
17
|
+
instance = OpenapiClient::GithubUserSocialConnection.new(
|
18
18
|
provider_id: null,
|
19
19
|
created_at: null,
|
20
20
|
last_login_at: null,
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::GoogleUserSocialConnection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **provider_id** | **String** | The external ID of the Social Connection. | |
|
8
|
+
| **created_at** | **Time** | | |
|
9
|
+
| **last_login_at** | **Time** | | |
|
10
|
+
| **provider_identifier** | **String** | The email of connected social user. | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'openapi_client'
|
16
|
+
|
17
|
+
instance = OpenapiClient::GoogleUserSocialConnection.new(
|
18
|
+
provider_id: null,
|
19
|
+
created_at: null,
|
20
|
+
last_login_at: null,
|
21
|
+
provider_identifier: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/generated/README.md
CHANGED
@@ -103,13 +103,14 @@ Class | Method | HTTP request | Description
|
|
103
103
|
|
104
104
|
- [OpenapiClient::AppInfo](docs/AppInfo.md)
|
105
105
|
- [OpenapiClient::AppResponse](docs/AppResponse.md)
|
106
|
+
- [OpenapiClient::AppleUserSocialConnection](docs/AppleUserSocialConnection.md)
|
106
107
|
- [OpenapiClient::AuthMethods](docs/AuthMethods.md)
|
107
108
|
- [OpenapiClient::CreateMagicLinkRequest](docs/CreateMagicLinkRequest.md)
|
108
109
|
- [OpenapiClient::CreateUserRequest](docs/CreateUserRequest.md)
|
109
110
|
- [OpenapiClient::ElementCustomization](docs/ElementCustomization.md)
|
110
111
|
- [OpenapiClient::FontFamily](docs/FontFamily.md)
|
111
|
-
- [OpenapiClient::
|
112
|
-
- [OpenapiClient::
|
112
|
+
- [OpenapiClient::GithubUserSocialConnection](docs/GithubUserSocialConnection.md)
|
113
|
+
- [OpenapiClient::GoogleUserSocialConnection](docs/GoogleUserSocialConnection.md)
|
113
114
|
- [OpenapiClient::LayoutConfig](docs/LayoutConfig.md)
|
114
115
|
- [OpenapiClient::Layouts](docs/Layouts.md)
|
115
116
|
- [OpenapiClient::ListDevicesResponse](docs/ListDevicesResponse.md)
|
@@ -130,10 +131,10 @@ Class | Method | HTTP request | Description
|
|
130
131
|
- [OpenapiClient::UpdateOtpAuthMethod](docs/UpdateOtpAuthMethod.md)
|
131
132
|
- [OpenapiClient::UpdatePasskeysAuthMethod](docs/UpdatePasskeysAuthMethod.md)
|
132
133
|
- [OpenapiClient::UpdateUserRequest](docs/UpdateUserRequest.md)
|
133
|
-
- [OpenapiClient::UserEventInfo](docs/UserEventInfo.md)
|
134
134
|
- [OpenapiClient::UserInfo](docs/UserInfo.md)
|
135
135
|
- [OpenapiClient::UserMetadataField](docs/UserMetadataField.md)
|
136
136
|
- [OpenapiClient::UserMetadataFieldType](docs/UserMetadataFieldType.md)
|
137
|
+
- [OpenapiClient::UserRecentEvent](docs/UserRecentEvent.md)
|
137
138
|
- [OpenapiClient::UserResponse](docs/UserResponse.md)
|
138
139
|
- [OpenapiClient::UserSocialConnections](docs/UserSocialConnections.md)
|
139
140
|
- [OpenapiClient::UserStatus](docs/UserStatus.md)
|
data/docs/generated/UserInfo.md
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
| **login_count** | **Integer** | | |
|
13
13
|
| **phone** | **String** | | |
|
14
14
|
| **phone_verified** | **Boolean** | | |
|
15
|
-
| **recent_events** | [**Array<
|
15
|
+
| **recent_events** | [**Array<UserRecentEvent>**](UserRecentEvent.md) | | |
|
16
16
|
| **social_connections** | [**UserSocialConnections**](UserSocialConnections.md) | | |
|
17
17
|
| **status** | [**UserStatus**](UserStatus.md) | | |
|
18
18
|
| **updated_at** | **Time** | | |
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# OpenapiClient::
|
1
|
+
# OpenapiClient::UserRecentEvent
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
```ruby
|
16
16
|
require 'openapi_client'
|
17
17
|
|
18
|
-
instance = OpenapiClient::
|
18
|
+
instance = OpenapiClient::UserRecentEvent.new(
|
19
19
|
created_at: null,
|
20
20
|
id: null,
|
21
21
|
ip_addr: null,
|
@@ -4,8 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **github** | [**
|
7
|
+
| **apple** | [**AppleUserSocialConnection**](AppleUserSocialConnection.md) | | [optional] |
|
8
|
+
| **github** | [**GithubUserSocialConnection**](GithubUserSocialConnection.md) | | [optional] |
|
9
|
+
| **google** | [**GoogleUserSocialConnection**](GoogleUserSocialConnection.md) | | [optional] |
|
9
10
|
|
10
11
|
## Example
|
11
12
|
|
@@ -13,8 +14,9 @@
|
|
13
14
|
require 'openapi_client'
|
14
15
|
|
15
16
|
instance = OpenapiClient::UserSocialConnections.new(
|
16
|
-
|
17
|
-
github: null
|
17
|
+
apple: null,
|
18
|
+
github: null,
|
19
|
+
google: null
|
18
20
|
)
|
19
21
|
```
|
20
22
|
|
data/lib/openapi_client/models/{google_social_connection.rb → apple_user_social_connection.rb}
RENAMED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OpenapiClient
|
17
|
-
class
|
17
|
+
class AppleUserSocialConnection
|
18
18
|
# The external ID of the Social Connection.
|
19
19
|
attr_accessor :provider_id
|
20
20
|
|
@@ -60,13 +60,13 @@ module OpenapiClient
|
|
60
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
61
|
def initialize(attributes = {})
|
62
62
|
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::AppleUserSocialConnection` initialize method"
|
64
64
|
end
|
65
65
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::
|
69
|
+
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
|
70
70
|
end
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
data/lib/openapi_client/models/{github_social_connection.rb → github_user_social_connection.rb}
RENAMED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OpenapiClient
|
17
|
-
class
|
17
|
+
class GithubUserSocialConnection
|
18
18
|
# The external ID of the Social Connection.
|
19
19
|
attr_accessor :provider_id
|
20
20
|
|
@@ -60,13 +60,13 @@ module OpenapiClient
|
|
60
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
61
|
def initialize(attributes = {})
|
62
62
|
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::GithubUserSocialConnection` initialize method"
|
64
64
|
end
|
65
65
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::
|
69
|
+
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
|
70
70
|
end
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
@@ -0,0 +1,271 @@
|
|
1
|
+
=begin
|
2
|
+
#Passage Management API
|
3
|
+
|
4
|
+
#Passage's management API to manage your Passage apps and users.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1
|
7
|
+
Contact: support@passage.id
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OpenapiClient
|
17
|
+
class GoogleUserSocialConnection
|
18
|
+
# The external ID of the Social Connection.
|
19
|
+
attr_accessor :provider_id
|
20
|
+
|
21
|
+
attr_accessor :created_at
|
22
|
+
|
23
|
+
attr_accessor :last_login_at
|
24
|
+
|
25
|
+
# The email of connected social user.
|
26
|
+
attr_accessor :provider_identifier
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'provider_id' => :'provider_id',
|
32
|
+
:'created_at' => :'created_at',
|
33
|
+
:'last_login_at' => :'last_login_at',
|
34
|
+
:'provider_identifier' => :'provider_identifier'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Returns all the JSON keys this model knows about
|
39
|
+
def self.acceptable_attributes
|
40
|
+
attribute_map.values
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
def self.openapi_types
|
45
|
+
{
|
46
|
+
:'provider_id' => :'String',
|
47
|
+
:'created_at' => :'Time',
|
48
|
+
:'last_login_at' => :'Time',
|
49
|
+
:'provider_identifier' => :'String'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# List of attributes with nullable: true
|
54
|
+
def self.openapi_nullable
|
55
|
+
Set.new([
|
56
|
+
])
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
if (!attributes.is_a?(Hash))
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::GoogleUserSocialConnection` initialize method"
|
64
|
+
end
|
65
|
+
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::GoogleUserSocialConnection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
|
+
end
|
71
|
+
h[k.to_sym] = v
|
72
|
+
}
|
73
|
+
|
74
|
+
if attributes.key?(:'provider_id')
|
75
|
+
self.provider_id = attributes[:'provider_id']
|
76
|
+
else
|
77
|
+
self.provider_id = nil
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'created_at')
|
81
|
+
self.created_at = attributes[:'created_at']
|
82
|
+
else
|
83
|
+
self.created_at = nil
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'last_login_at')
|
87
|
+
self.last_login_at = attributes[:'last_login_at']
|
88
|
+
else
|
89
|
+
self.last_login_at = nil
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'provider_identifier')
|
93
|
+
self.provider_identifier = attributes[:'provider_identifier']
|
94
|
+
else
|
95
|
+
self.provider_identifier = nil
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
100
|
+
# @return Array for valid properties with the reasons
|
101
|
+
def list_invalid_properties
|
102
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
103
|
+
invalid_properties = Array.new
|
104
|
+
if @provider_id.nil?
|
105
|
+
invalid_properties.push('invalid value for "provider_id", provider_id cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
|
+
if @created_at.nil?
|
109
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
if @last_login_at.nil?
|
113
|
+
invalid_properties.push('invalid value for "last_login_at", last_login_at cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @provider_identifier.nil?
|
117
|
+
invalid_properties.push('invalid value for "provider_identifier", provider_identifier cannot be nil.')
|
118
|
+
end
|
119
|
+
|
120
|
+
invalid_properties
|
121
|
+
end
|
122
|
+
|
123
|
+
# Check to see if the all the properties in the model are valid
|
124
|
+
# @return true if the model is valid
|
125
|
+
def valid?
|
126
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
127
|
+
return false if @provider_id.nil?
|
128
|
+
return false if @created_at.nil?
|
129
|
+
return false if @last_login_at.nil?
|
130
|
+
return false if @provider_identifier.nil?
|
131
|
+
true
|
132
|
+
end
|
133
|
+
|
134
|
+
# Checks equality by comparing each attribute.
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def ==(o)
|
137
|
+
return true if self.equal?(o)
|
138
|
+
self.class == o.class &&
|
139
|
+
provider_id == o.provider_id &&
|
140
|
+
created_at == o.created_at &&
|
141
|
+
last_login_at == o.last_login_at &&
|
142
|
+
provider_identifier == o.provider_identifier
|
143
|
+
end
|
144
|
+
|
145
|
+
# @see the `==` method
|
146
|
+
# @param [Object] Object to be compared
|
147
|
+
def eql?(o)
|
148
|
+
self == o
|
149
|
+
end
|
150
|
+
|
151
|
+
# Calculates hash code according to all attributes.
|
152
|
+
# @return [Integer] Hash code
|
153
|
+
def hash
|
154
|
+
[provider_id, created_at, last_login_at, provider_identifier].hash
|
155
|
+
end
|
156
|
+
|
157
|
+
# Builds the object from hash
|
158
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
159
|
+
# @return [Object] Returns the model itself
|
160
|
+
def self.build_from_hash(attributes)
|
161
|
+
return nil unless attributes.is_a?(Hash)
|
162
|
+
attributes = attributes.transform_keys(&:to_sym)
|
163
|
+
transformed_hash = {}
|
164
|
+
openapi_types.each_pair do |key, type|
|
165
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
166
|
+
transformed_hash["#{key}"] = nil
|
167
|
+
elsif type =~ /\AArray<(.*)>/i
|
168
|
+
# check to ensure the input is an array given that the attribute
|
169
|
+
# is documented as an array but the input is not
|
170
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
171
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
172
|
+
end
|
173
|
+
elsif !attributes[attribute_map[key]].nil?
|
174
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
175
|
+
end
|
176
|
+
end
|
177
|
+
new(transformed_hash)
|
178
|
+
end
|
179
|
+
|
180
|
+
# Deserializes the data based on type
|
181
|
+
# @param string type Data type
|
182
|
+
# @param string value Value to be deserialized
|
183
|
+
# @return [Object] Deserialized data
|
184
|
+
def self._deserialize(type, value)
|
185
|
+
case type.to_sym
|
186
|
+
when :Time
|
187
|
+
Time.parse(value)
|
188
|
+
when :Date
|
189
|
+
Date.parse(value)
|
190
|
+
when :String
|
191
|
+
value.to_s
|
192
|
+
when :Integer
|
193
|
+
value.to_i
|
194
|
+
when :Float
|
195
|
+
value.to_f
|
196
|
+
when :Boolean
|
197
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
198
|
+
true
|
199
|
+
else
|
200
|
+
false
|
201
|
+
end
|
202
|
+
when :Object
|
203
|
+
# generic object (usually a Hash), return directly
|
204
|
+
value
|
205
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
206
|
+
inner_type = Regexp.last_match[:inner_type]
|
207
|
+
value.map { |v| _deserialize(inner_type, v) }
|
208
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
209
|
+
k_type = Regexp.last_match[:k_type]
|
210
|
+
v_type = Regexp.last_match[:v_type]
|
211
|
+
{}.tap do |hash|
|
212
|
+
value.each do |k, v|
|
213
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
else # model
|
217
|
+
# models (e.g. Pet) or oneOf
|
218
|
+
klass = OpenapiClient.const_get(type)
|
219
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns the string representation of the object
|
224
|
+
# @return [String] String presentation of the object
|
225
|
+
def to_s
|
226
|
+
to_hash.to_s
|
227
|
+
end
|
228
|
+
|
229
|
+
# to_body is an alias to to_hash (backward compatibility)
|
230
|
+
# @return [Hash] Returns the object in the form of hash
|
231
|
+
def to_body
|
232
|
+
to_hash
|
233
|
+
end
|
234
|
+
|
235
|
+
# Returns the object in the form of hash
|
236
|
+
# @return [Hash] Returns the object in the form of hash
|
237
|
+
def to_hash
|
238
|
+
hash = {}
|
239
|
+
self.class.attribute_map.each_pair do |attr, param|
|
240
|
+
value = self.send(attr)
|
241
|
+
if value.nil?
|
242
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
243
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
244
|
+
end
|
245
|
+
|
246
|
+
hash[param] = _to_hash(value)
|
247
|
+
end
|
248
|
+
hash
|
249
|
+
end
|
250
|
+
|
251
|
+
# Outputs non-array value in the form of hash
|
252
|
+
# For object, use to_hash. Otherwise, just return the value
|
253
|
+
# @param [Object] value Any valid value
|
254
|
+
# @return [Hash] Returns the value in the form of hash
|
255
|
+
def _to_hash(value)
|
256
|
+
if value.is_a?(Array)
|
257
|
+
value.compact.map { |v| _to_hash(v) }
|
258
|
+
elsif value.is_a?(Hash)
|
259
|
+
{}.tap do |hash|
|
260
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
261
|
+
end
|
262
|
+
elsif value.respond_to? :to_hash
|
263
|
+
value.to_hash
|
264
|
+
else
|
265
|
+
value
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
end
|
270
|
+
|
271
|
+
end
|
@@ -156,9 +156,9 @@ module OpenapiClient
|
|
156
156
|
fail ArgumentError, 'ttl cannot be nil'
|
157
157
|
end
|
158
158
|
|
159
|
-
|
160
|
-
|
161
|
-
|
159
|
+
if ttl < 60
|
160
|
+
fail ArgumentError, 'invalid value for "ttl", must be greater than or equal to 60.'
|
161
|
+
end
|
162
162
|
|
163
163
|
@ttl = ttl
|
164
164
|
end
|
@@ -35,7 +35,7 @@ module OpenapiClient
|
|
35
35
|
# @param [String] The enum value in the form of the string
|
36
36
|
# @return [String] The enum value
|
37
37
|
def build_from_hash(value)
|
38
|
-
return value if TtlDisplayUnit.all_vars.include?(value)
|
38
|
+
return value if TtlDisplayUnit.all_vars.include?(value)
|
39
39
|
raise "Invalid ENUM value #{value} for class #TtlDisplayUnit"
|
40
40
|
end
|
41
41
|
end
|
@@ -108,7 +108,7 @@ module OpenapiClient
|
|
108
108
|
:'login_count' => :'Integer',
|
109
109
|
:'phone' => :'String',
|
110
110
|
:'phone_verified' => :'Boolean',
|
111
|
-
:'recent_events' => :'Array<
|
111
|
+
:'recent_events' => :'Array<UserRecentEvent>',
|
112
112
|
:'social_connections' => :'UserSocialConnections',
|
113
113
|
:'status' => :'UserStatus',
|
114
114
|
:'updated_at' => :'Time',
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OpenapiClient
|
17
|
-
class
|
17
|
+
class UserRecentEvent
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :id
|
@@ -62,13 +62,13 @@ module OpenapiClient
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
63
|
def initialize(attributes = {})
|
64
64
|
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UserRecentEvent` initialize method"
|
66
66
|
end
|
67
67
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UserRecentEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
72
|
end
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
@@ -15,15 +15,18 @@ require 'time'
|
|
15
15
|
|
16
16
|
module OpenapiClient
|
17
17
|
class UserSocialConnections
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :apple
|
19
19
|
|
20
20
|
attr_accessor :github
|
21
21
|
|
22
|
+
attr_accessor :google
|
23
|
+
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
|
-
:'
|
26
|
-
:'github' => :'github'
|
27
|
+
:'apple' => :'apple',
|
28
|
+
:'github' => :'github',
|
29
|
+
:'google' => :'google'
|
27
30
|
}
|
28
31
|
end
|
29
32
|
|
@@ -35,8 +38,9 @@ module OpenapiClient
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
38
|
-
:'
|
39
|
-
:'github' => :'
|
41
|
+
:'apple' => :'AppleUserSocialConnection',
|
42
|
+
:'github' => :'GithubUserSocialConnection',
|
43
|
+
:'google' => :'GoogleUserSocialConnection'
|
40
44
|
}
|
41
45
|
end
|
42
46
|
|
@@ -61,13 +65,17 @@ module OpenapiClient
|
|
61
65
|
h[k.to_sym] = v
|
62
66
|
}
|
63
67
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
68
|
+
if attributes.key?(:'apple')
|
69
|
+
self.apple = attributes[:'apple']
|
66
70
|
end
|
67
71
|
|
68
72
|
if attributes.key?(:'github')
|
69
73
|
self.github = attributes[:'github']
|
70
74
|
end
|
75
|
+
|
76
|
+
if attributes.key?(:'google')
|
77
|
+
self.google = attributes[:'google']
|
78
|
+
end
|
71
79
|
end
|
72
80
|
|
73
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -90,8 +98,9 @@ module OpenapiClient
|
|
90
98
|
def ==(o)
|
91
99
|
return true if self.equal?(o)
|
92
100
|
self.class == o.class &&
|
93
|
-
|
94
|
-
github == o.github
|
101
|
+
apple == o.apple &&
|
102
|
+
github == o.github &&
|
103
|
+
google == o.google
|
95
104
|
end
|
96
105
|
|
97
106
|
# @see the `==` method
|
@@ -103,7 +112,7 @@ module OpenapiClient
|
|
103
112
|
# Calculates hash code according to all attributes.
|
104
113
|
# @return [Integer] Hash code
|
105
114
|
def hash
|
106
|
-
[
|
115
|
+
[apple, github, google].hash
|
107
116
|
end
|
108
117
|
|
109
118
|
# Builds the object from hash
|
data/lib/openapi_client.rb
CHANGED
@@ -19,13 +19,14 @@ require_relative 'openapi_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require_relative 'openapi_client/models/app_info'
|
21
21
|
require_relative 'openapi_client/models/app_response'
|
22
|
+
require_relative 'openapi_client/models/apple_user_social_connection'
|
22
23
|
require_relative 'openapi_client/models/auth_methods'
|
23
24
|
require_relative 'openapi_client/models/create_magic_link_request'
|
24
25
|
require_relative 'openapi_client/models/create_user_request'
|
25
26
|
require_relative 'openapi_client/models/element_customization'
|
26
27
|
require_relative 'openapi_client/models/font_family'
|
27
|
-
require_relative 'openapi_client/models/
|
28
|
-
require_relative 'openapi_client/models/
|
28
|
+
require_relative 'openapi_client/models/github_user_social_connection'
|
29
|
+
require_relative 'openapi_client/models/google_user_social_connection'
|
29
30
|
require_relative 'openapi_client/models/layout_config'
|
30
31
|
require_relative 'openapi_client/models/layouts'
|
31
32
|
require_relative 'openapi_client/models/list_devices_response'
|
@@ -46,10 +47,10 @@ require_relative 'openapi_client/models/update_magic_link_auth_method'
|
|
46
47
|
require_relative 'openapi_client/models/update_otp_auth_method'
|
47
48
|
require_relative 'openapi_client/models/update_passkeys_auth_method'
|
48
49
|
require_relative 'openapi_client/models/update_user_request'
|
49
|
-
require_relative 'openapi_client/models/user_event_info'
|
50
50
|
require_relative 'openapi_client/models/user_info'
|
51
51
|
require_relative 'openapi_client/models/user_metadata_field'
|
52
52
|
require_relative 'openapi_client/models/user_metadata_field_type'
|
53
|
+
require_relative 'openapi_client/models/user_recent_event'
|
53
54
|
require_relative 'openapi_client/models/user_response'
|
54
55
|
require_relative 'openapi_client/models/user_social_connections'
|
55
56
|
require_relative 'openapi_client/models/user_status'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passageidentity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Passage Identity
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -90,14 +90,15 @@ files:
|
|
90
90
|
- docs/custom/UserApi.md
|
91
91
|
- docs/generated/AppInfo.md
|
92
92
|
- docs/generated/AppResponse.md
|
93
|
+
- docs/generated/AppleUserSocialConnection.md
|
93
94
|
- docs/generated/AppsApi.md
|
94
95
|
- docs/generated/AuthMethods.md
|
95
96
|
- docs/generated/CreateMagicLinkRequest.md
|
96
97
|
- docs/generated/CreateUserRequest.md
|
97
98
|
- docs/generated/ElementCustomization.md
|
98
99
|
- docs/generated/FontFamily.md
|
99
|
-
- docs/generated/
|
100
|
-
- docs/generated/
|
100
|
+
- docs/generated/GithubUserSocialConnection.md
|
101
|
+
- docs/generated/GoogleUserSocialConnection.md
|
101
102
|
- docs/generated/LayoutConfig.md
|
102
103
|
- docs/generated/Layouts.md
|
103
104
|
- docs/generated/ListDevicesResponse.md
|
@@ -122,10 +123,10 @@ files:
|
|
122
123
|
- docs/generated/UpdatePasskeysAuthMethod.md
|
123
124
|
- docs/generated/UpdateUserRequest.md
|
124
125
|
- docs/generated/UserDevicesApi.md
|
125
|
-
- docs/generated/UserEventInfo.md
|
126
126
|
- docs/generated/UserInfo.md
|
127
127
|
- docs/generated/UserMetadataField.md
|
128
128
|
- docs/generated/UserMetadataFieldType.md
|
129
|
+
- docs/generated/UserRecentEvent.md
|
129
130
|
- docs/generated/UserResponse.md
|
130
131
|
- docs/generated/UserSocialConnections.md
|
131
132
|
- docs/generated/UserStatus.md
|
@@ -145,13 +146,14 @@ files:
|
|
145
146
|
- lib/openapi_client/configuration.rb
|
146
147
|
- lib/openapi_client/models/app_info.rb
|
147
148
|
- lib/openapi_client/models/app_response.rb
|
149
|
+
- lib/openapi_client/models/apple_user_social_connection.rb
|
148
150
|
- lib/openapi_client/models/auth_methods.rb
|
149
151
|
- lib/openapi_client/models/create_magic_link_request.rb
|
150
152
|
- lib/openapi_client/models/create_user_request.rb
|
151
153
|
- lib/openapi_client/models/element_customization.rb
|
152
154
|
- lib/openapi_client/models/font_family.rb
|
153
|
-
- lib/openapi_client/models/
|
154
|
-
- lib/openapi_client/models/
|
155
|
+
- lib/openapi_client/models/github_user_social_connection.rb
|
156
|
+
- lib/openapi_client/models/google_user_social_connection.rb
|
155
157
|
- lib/openapi_client/models/layout_config.rb
|
156
158
|
- lib/openapi_client/models/layouts.rb
|
157
159
|
- lib/openapi_client/models/list_devices_response.rb
|
@@ -172,10 +174,10 @@ files:
|
|
172
174
|
- lib/openapi_client/models/update_otp_auth_method.rb
|
173
175
|
- lib/openapi_client/models/update_passkeys_auth_method.rb
|
174
176
|
- lib/openapi_client/models/update_user_request.rb
|
175
|
-
- lib/openapi_client/models/user_event_info.rb
|
176
177
|
- lib/openapi_client/models/user_info.rb
|
177
178
|
- lib/openapi_client/models/user_metadata_field.rb
|
178
179
|
- lib/openapi_client/models/user_metadata_field_type.rb
|
180
|
+
- lib/openapi_client/models/user_recent_event.rb
|
179
181
|
- lib/openapi_client/models/user_response.rb
|
180
182
|
- lib/openapi_client/models/user_social_connections.rb
|
181
183
|
- lib/openapi_client/models/user_status.rb
|