ory-kratos-client 0.5.2.alpha1 → 0.5.5.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/docs/AdminApi.md +382 -143
- data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +12 -11
- data/docs/CompleteSelfServiceRecoveryFlowWithLinkMethod.md +10 -9
- data/docs/CompleteSelfServiceSettingsFlowWithPasswordMethod.md +10 -9
- data/docs/CompleteSelfServiceVerificationFlowWithLinkMethod.md +10 -9
- data/docs/CreateIdentity.md +10 -9
- data/docs/CreateRecoveryLink.md +10 -9
- data/docs/ErrorContainer.md +10 -9
- data/docs/FormField.md +20 -19
- data/docs/GenericError.md +8 -7
- data/docs/GenericErrorPayload.md +20 -19
- data/docs/HealthApi.md +50 -15
- data/docs/HealthNotReadyStatus.md +8 -7
- data/docs/HealthStatus.md +8 -7
- data/docs/Identity.md +18 -17
- data/docs/LoginFlow.md +24 -23
- data/docs/LoginFlowMethod.md +10 -9
- data/docs/LoginFlowMethodConfig.md +16 -15
- data/docs/LoginViaApiResponse.md +10 -9
- data/docs/Message.md +14 -13
- data/docs/PublicApi.md +707 -237
- data/docs/RecoveryAddress.md +12 -11
- data/docs/RecoveryFlow.md +24 -23
- data/docs/RecoveryFlowMethod.md +10 -9
- data/docs/RecoveryFlowMethodConfig.md +14 -13
- data/docs/RecoveryLink.md +10 -9
- data/docs/RegistrationFlow.md +22 -21
- data/docs/RegistrationFlowMethod.md +10 -9
- data/docs/RegistrationFlowMethodConfig.md +16 -15
- data/docs/RegistrationViaApiResponse.md +12 -11
- data/docs/RevokeSession.md +8 -7
- data/docs/Session.md +18 -17
- data/docs/SettingsFlow.md +26 -25
- data/docs/SettingsFlowMethod.md +10 -9
- data/docs/SettingsFlowMethodConfig.md +14 -13
- data/docs/SettingsViaApiResponse.md +10 -9
- data/docs/UpdateIdentity.md +10 -9
- data/docs/VerifiableAddress.md +18 -17
- data/docs/VerificationFlow.md +24 -23
- data/docs/VerificationFlowMethod.md +10 -9
- data/docs/VerificationFlowMethodConfig.md +14 -13
- data/docs/Version.md +8 -7
- data/docs/VersionApi.md +26 -9
- data/lib/ory-kratos-client.rb +2 -2
- data/lib/ory-kratos-client/api/admin_api.rb +58 -44
- data/lib/ory-kratos-client/api/health_api.rb +10 -8
- data/lib/ory-kratos-client/api/public_api.rb +113 -86
- data/lib/ory-kratos-client/api/version_api.rb +6 -5
- data/lib/ory-kratos-client/api_client.rb +50 -48
- data/lib/ory-kratos-client/api_error.rb +2 -2
- data/lib/ory-kratos-client/configuration.rb +34 -7
- data/lib/ory-kratos-client/models/complete_self_service_login_flow_with_password_method.rb +20 -8
- data/lib/ory-kratos-client/models/complete_self_service_recovery_flow_with_link_method.rb +20 -8
- data/lib/ory-kratos-client/models/complete_self_service_settings_flow_with_password_method.rb +20 -8
- data/lib/ory-kratos-client/models/complete_self_service_verification_flow_with_link_method.rb +20 -8
- data/lib/ory-kratos-client/models/create_identity.rb +20 -8
- data/lib/ory-kratos-client/models/create_recovery_link.rb +20 -8
- data/lib/ory-kratos-client/models/error_container.rb +20 -8
- data/lib/ory-kratos-client/models/form_field.rb +20 -8
- data/lib/ory-kratos-client/models/generic_error.rb +20 -8
- data/lib/ory-kratos-client/models/generic_error_payload.rb +20 -8
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +20 -8
- data/lib/ory-kratos-client/models/health_status.rb +20 -8
- data/lib/ory-kratos-client/models/identity.rb +20 -8
- data/lib/ory-kratos-client/models/login_flow.rb +22 -10
- data/lib/ory-kratos-client/models/login_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/login_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/login_via_api_response.rb +20 -8
- data/lib/ory-kratos-client/models/message.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_address.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_flow.rb +22 -10
- data/lib/ory-kratos-client/models/recovery_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_link.rb +21 -9
- data/lib/ory-kratos-client/models/registration_flow.rb +22 -10
- data/lib/ory-kratos-client/models/registration_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/registration_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +20 -8
- data/lib/ory-kratos-client/models/revoke_session.rb +20 -8
- data/lib/ory-kratos-client/models/session.rb +23 -11
- data/lib/ory-kratos-client/models/settings_flow.rb +22 -10
- data/lib/ory-kratos-client/models/settings_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/settings_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +20 -8
- data/lib/ory-kratos-client/models/update_identity.rb +20 -8
- data/lib/ory-kratos-client/models/verifiable_address.rb +21 -9
- data/lib/ory-kratos-client/models/verification_flow.rb +22 -10
- data/lib/ory-kratos-client/models/verification_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/verification_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/version.rb +20 -8
- data/lib/ory-kratos-client/version.rb +3 -3
- data/ory-kratos-client.gemspec +4 -5
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +51 -71
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.5.
|
6
|
+
The version of the OpenAPI document: v0.5.5-alpha.4
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.
|
@@ -24,6 +25,11 @@ module OryHydraClient
|
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
@@ -103,7 +109,9 @@ module OryHydraClient
|
|
103
109
|
def build_from_hash(attributes)
|
104
110
|
return nil unless attributes.is_a?(Hash)
|
105
111
|
self.class.openapi_types.each_pair do |key, type|
|
106
|
-
if
|
112
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
113
|
+
self.send("#{key}=", nil)
|
114
|
+
elsif type =~ /\AArray<(.*)>/i
|
107
115
|
# check to ensure the input is an array given that the attribute
|
108
116
|
# is documented as an array but the input is not
|
109
117
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -111,7 +119,7 @@ module OryHydraClient
|
|
111
119
|
end
|
112
120
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
121
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
-
end
|
122
|
+
end
|
115
123
|
end
|
116
124
|
|
117
125
|
self
|
@@ -123,8 +131,8 @@ module OryHydraClient
|
|
123
131
|
# @return [Object] Deserialized data
|
124
132
|
def _deserialize(type, value)
|
125
133
|
case type.to_sym
|
126
|
-
when :
|
127
|
-
|
134
|
+
when :Time
|
135
|
+
Time.parse(value)
|
128
136
|
when :Date
|
129
137
|
Date.parse(value)
|
130
138
|
when :String
|
@@ -154,7 +162,9 @@ module OryHydraClient
|
|
154
162
|
end
|
155
163
|
end
|
156
164
|
else # model
|
157
|
-
|
165
|
+
# models (e.g. Pet) or oneOf
|
166
|
+
klass = OryHydraClient.const_get(type)
|
167
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
158
168
|
end
|
159
169
|
end
|
160
170
|
|
@@ -180,7 +190,7 @@ module OryHydraClient
|
|
180
190
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
181
191
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
182
192
|
end
|
183
|
-
|
193
|
+
|
184
194
|
hash[param] = _to_hash(value)
|
185
195
|
end
|
186
196
|
hash
|
@@ -203,5 +213,7 @@ module OryHydraClient
|
|
203
213
|
value
|
204
214
|
end
|
205
215
|
end
|
216
|
+
|
206
217
|
end
|
218
|
+
|
207
219
|
end
|
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.5.
|
6
|
+
The version of the OpenAPI document: v0.5.5-alpha.4
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
class GenericErrorPayload
|
@@ -43,6 +44,11 @@ module OryHydraClient
|
|
43
44
|
}
|
44
45
|
end
|
45
46
|
|
47
|
+
# Returns all the JSON keys this model knows about
|
48
|
+
def self.acceptable_attributes
|
49
|
+
attribute_map.values
|
50
|
+
end
|
51
|
+
|
46
52
|
# Attribute type mapping.
|
47
53
|
def self.openapi_types
|
48
54
|
{
|
@@ -158,7 +164,9 @@ module OryHydraClient
|
|
158
164
|
def build_from_hash(attributes)
|
159
165
|
return nil unless attributes.is_a?(Hash)
|
160
166
|
self.class.openapi_types.each_pair do |key, type|
|
161
|
-
if
|
167
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
168
|
+
self.send("#{key}=", nil)
|
169
|
+
elsif type =~ /\AArray<(.*)>/i
|
162
170
|
# check to ensure the input is an array given that the attribute
|
163
171
|
# is documented as an array but the input is not
|
164
172
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -166,7 +174,7 @@ module OryHydraClient
|
|
166
174
|
end
|
167
175
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
168
176
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
169
|
-
end
|
177
|
+
end
|
170
178
|
end
|
171
179
|
|
172
180
|
self
|
@@ -178,8 +186,8 @@ module OryHydraClient
|
|
178
186
|
# @return [Object] Deserialized data
|
179
187
|
def _deserialize(type, value)
|
180
188
|
case type.to_sym
|
181
|
-
when :
|
182
|
-
|
189
|
+
when :Time
|
190
|
+
Time.parse(value)
|
183
191
|
when :Date
|
184
192
|
Date.parse(value)
|
185
193
|
when :String
|
@@ -209,7 +217,9 @@ module OryHydraClient
|
|
209
217
|
end
|
210
218
|
end
|
211
219
|
else # model
|
212
|
-
|
220
|
+
# models (e.g. Pet) or oneOf
|
221
|
+
klass = OryHydraClient.const_get(type)
|
222
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
213
223
|
end
|
214
224
|
end
|
215
225
|
|
@@ -235,7 +245,7 @@ module OryHydraClient
|
|
235
245
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
236
246
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
237
247
|
end
|
238
|
-
|
248
|
+
|
239
249
|
hash[param] = _to_hash(value)
|
240
250
|
end
|
241
251
|
hash
|
@@ -258,5 +268,7 @@ module OryHydraClient
|
|
258
268
|
value
|
259
269
|
end
|
260
270
|
end
|
271
|
+
|
261
272
|
end
|
273
|
+
|
262
274
|
end
|
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.5.
|
6
|
+
The version of the OpenAPI document: v0.5.5-alpha.4
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
class HealthNotReadyStatus
|
@@ -24,6 +25,11 @@ module OryHydraClient
|
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
@@ -105,7 +111,9 @@ module OryHydraClient
|
|
105
111
|
def build_from_hash(attributes)
|
106
112
|
return nil unless attributes.is_a?(Hash)
|
107
113
|
self.class.openapi_types.each_pair do |key, type|
|
108
|
-
if
|
114
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
115
|
+
self.send("#{key}=", nil)
|
116
|
+
elsif type =~ /\AArray<(.*)>/i
|
109
117
|
# check to ensure the input is an array given that the attribute
|
110
118
|
# is documented as an array but the input is not
|
111
119
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -113,7 +121,7 @@ module OryHydraClient
|
|
113
121
|
end
|
114
122
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
123
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
116
|
-
end
|
124
|
+
end
|
117
125
|
end
|
118
126
|
|
119
127
|
self
|
@@ -125,8 +133,8 @@ module OryHydraClient
|
|
125
133
|
# @return [Object] Deserialized data
|
126
134
|
def _deserialize(type, value)
|
127
135
|
case type.to_sym
|
128
|
-
when :
|
129
|
-
|
136
|
+
when :Time
|
137
|
+
Time.parse(value)
|
130
138
|
when :Date
|
131
139
|
Date.parse(value)
|
132
140
|
when :String
|
@@ -156,7 +164,9 @@ module OryHydraClient
|
|
156
164
|
end
|
157
165
|
end
|
158
166
|
else # model
|
159
|
-
|
167
|
+
# models (e.g. Pet) or oneOf
|
168
|
+
klass = OryHydraClient.const_get(type)
|
169
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
160
170
|
end
|
161
171
|
end
|
162
172
|
|
@@ -182,7 +192,7 @@ module OryHydraClient
|
|
182
192
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
183
193
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
184
194
|
end
|
185
|
-
|
195
|
+
|
186
196
|
hash[param] = _to_hash(value)
|
187
197
|
end
|
188
198
|
hash
|
@@ -205,5 +215,7 @@ module OryHydraClient
|
|
205
215
|
value
|
206
216
|
end
|
207
217
|
end
|
218
|
+
|
208
219
|
end
|
220
|
+
|
209
221
|
end
|
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.5.
|
6
|
+
The version of the OpenAPI document: v0.5.5-alpha.4
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
class HealthStatus
|
@@ -24,6 +25,11 @@ module OryHydraClient
|
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
@@ -103,7 +109,9 @@ module OryHydraClient
|
|
103
109
|
def build_from_hash(attributes)
|
104
110
|
return nil unless attributes.is_a?(Hash)
|
105
111
|
self.class.openapi_types.each_pair do |key, type|
|
106
|
-
if
|
112
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
113
|
+
self.send("#{key}=", nil)
|
114
|
+
elsif type =~ /\AArray<(.*)>/i
|
107
115
|
# check to ensure the input is an array given that the attribute
|
108
116
|
# is documented as an array but the input is not
|
109
117
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -111,7 +119,7 @@ module OryHydraClient
|
|
111
119
|
end
|
112
120
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
121
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
-
end
|
122
|
+
end
|
115
123
|
end
|
116
124
|
|
117
125
|
self
|
@@ -123,8 +131,8 @@ module OryHydraClient
|
|
123
131
|
# @return [Object] Deserialized data
|
124
132
|
def _deserialize(type, value)
|
125
133
|
case type.to_sym
|
126
|
-
when :
|
127
|
-
|
134
|
+
when :Time
|
135
|
+
Time.parse(value)
|
128
136
|
when :Date
|
129
137
|
Date.parse(value)
|
130
138
|
when :String
|
@@ -154,7 +162,9 @@ module OryHydraClient
|
|
154
162
|
end
|
155
163
|
end
|
156
164
|
else # model
|
157
|
-
|
165
|
+
# models (e.g. Pet) or oneOf
|
166
|
+
klass = OryHydraClient.const_get(type)
|
167
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
158
168
|
end
|
159
169
|
end
|
160
170
|
|
@@ -180,7 +190,7 @@ module OryHydraClient
|
|
180
190
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
181
191
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
182
192
|
end
|
183
|
-
|
193
|
+
|
184
194
|
hash[param] = _to_hash(value)
|
185
195
|
end
|
186
196
|
hash
|
@@ -203,5 +213,7 @@ module OryHydraClient
|
|
203
213
|
value
|
204
214
|
end
|
205
215
|
end
|
216
|
+
|
206
217
|
end
|
218
|
+
|
207
219
|
end
|
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.5.
|
6
|
+
The version of the OpenAPI document: v0.5.5-alpha.4
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
class Identity
|
@@ -42,6 +43,11 @@ module OryHydraClient
|
|
42
43
|
}
|
43
44
|
end
|
44
45
|
|
46
|
+
# Returns all the JSON keys this model knows about
|
47
|
+
def self.acceptable_attributes
|
48
|
+
attribute_map.values
|
49
|
+
end
|
50
|
+
|
45
51
|
# Attribute type mapping.
|
46
52
|
def self.openapi_types
|
47
53
|
{
|
@@ -175,7 +181,9 @@ module OryHydraClient
|
|
175
181
|
def build_from_hash(attributes)
|
176
182
|
return nil unless attributes.is_a?(Hash)
|
177
183
|
self.class.openapi_types.each_pair do |key, type|
|
178
|
-
if
|
184
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
185
|
+
self.send("#{key}=", nil)
|
186
|
+
elsif type =~ /\AArray<(.*)>/i
|
179
187
|
# check to ensure the input is an array given that the attribute
|
180
188
|
# is documented as an array but the input is not
|
181
189
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -183,7 +191,7 @@ module OryHydraClient
|
|
183
191
|
end
|
184
192
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
185
193
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
186
|
-
end
|
194
|
+
end
|
187
195
|
end
|
188
196
|
|
189
197
|
self
|
@@ -195,8 +203,8 @@ module OryHydraClient
|
|
195
203
|
# @return [Object] Deserialized data
|
196
204
|
def _deserialize(type, value)
|
197
205
|
case type.to_sym
|
198
|
-
when :
|
199
|
-
|
206
|
+
when :Time
|
207
|
+
Time.parse(value)
|
200
208
|
when :Date
|
201
209
|
Date.parse(value)
|
202
210
|
when :String
|
@@ -226,7 +234,9 @@ module OryHydraClient
|
|
226
234
|
end
|
227
235
|
end
|
228
236
|
else # model
|
229
|
-
|
237
|
+
# models (e.g. Pet) or oneOf
|
238
|
+
klass = OryHydraClient.const_get(type)
|
239
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
230
240
|
end
|
231
241
|
end
|
232
242
|
|
@@ -252,7 +262,7 @@ module OryHydraClient
|
|
252
262
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
253
263
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
254
264
|
end
|
255
|
-
|
265
|
+
|
256
266
|
hash[param] = _to_hash(value)
|
257
267
|
end
|
258
268
|
hash
|
@@ -275,5 +285,7 @@ module OryHydraClient
|
|
275
285
|
value
|
276
286
|
end
|
277
287
|
end
|
288
|
+
|
278
289
|
end
|
290
|
+
|
279
291
|
end
|
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.5.
|
6
|
+
The version of the OpenAPI document: v0.5.5-alpha.4
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued.
|
@@ -55,14 +56,19 @@ module OryHydraClient
|
|
55
56
|
}
|
56
57
|
end
|
57
58
|
|
59
|
+
# Returns all the JSON keys this model knows about
|
60
|
+
def self.acceptable_attributes
|
61
|
+
attribute_map.values
|
62
|
+
end
|
63
|
+
|
58
64
|
# Attribute type mapping.
|
59
65
|
def self.openapi_types
|
60
66
|
{
|
61
67
|
:'active' => :'String',
|
62
|
-
:'expires_at' => :'
|
68
|
+
:'expires_at' => :'Time',
|
63
69
|
:'forced' => :'Boolean',
|
64
70
|
:'id' => :'String',
|
65
|
-
:'issued_at' => :'
|
71
|
+
:'issued_at' => :'Time',
|
66
72
|
:'messages' => :'Array<Message>',
|
67
73
|
:'methods' => :'Hash<String, LoginFlowMethod>',
|
68
74
|
:'request_url' => :'String',
|
@@ -211,7 +217,9 @@ module OryHydraClient
|
|
211
217
|
def build_from_hash(attributes)
|
212
218
|
return nil unless attributes.is_a?(Hash)
|
213
219
|
self.class.openapi_types.each_pair do |key, type|
|
214
|
-
if
|
220
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
221
|
+
self.send("#{key}=", nil)
|
222
|
+
elsif type =~ /\AArray<(.*)>/i
|
215
223
|
# check to ensure the input is an array given that the attribute
|
216
224
|
# is documented as an array but the input is not
|
217
225
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -219,7 +227,7 @@ module OryHydraClient
|
|
219
227
|
end
|
220
228
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
221
229
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
222
|
-
end
|
230
|
+
end
|
223
231
|
end
|
224
232
|
|
225
233
|
self
|
@@ -231,8 +239,8 @@ module OryHydraClient
|
|
231
239
|
# @return [Object] Deserialized data
|
232
240
|
def _deserialize(type, value)
|
233
241
|
case type.to_sym
|
234
|
-
when :
|
235
|
-
|
242
|
+
when :Time
|
243
|
+
Time.parse(value)
|
236
244
|
when :Date
|
237
245
|
Date.parse(value)
|
238
246
|
when :String
|
@@ -262,7 +270,9 @@ module OryHydraClient
|
|
262
270
|
end
|
263
271
|
end
|
264
272
|
else # model
|
265
|
-
|
273
|
+
# models (e.g. Pet) or oneOf
|
274
|
+
klass = OryHydraClient.const_get(type)
|
275
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
266
276
|
end
|
267
277
|
end
|
268
278
|
|
@@ -288,7 +298,7 @@ module OryHydraClient
|
|
288
298
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
289
299
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
290
300
|
end
|
291
|
-
|
301
|
+
|
292
302
|
hash[param] = _to_hash(value)
|
293
303
|
end
|
294
304
|
hash
|
@@ -311,5 +321,7 @@ module OryHydraClient
|
|
311
321
|
value
|
312
322
|
end
|
313
323
|
end
|
324
|
+
|
314
325
|
end
|
326
|
+
|
315
327
|
end
|