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
|
class LoginFlowMethod
|
@@ -27,6 +28,11 @@ module OryHydraClient
|
|
27
28
|
}
|
28
29
|
end
|
29
30
|
|
31
|
+
# Returns all the JSON keys this model knows about
|
32
|
+
def self.acceptable_attributes
|
33
|
+
attribute_map.values
|
34
|
+
end
|
35
|
+
|
30
36
|
# Attribute type mapping.
|
31
37
|
def self.openapi_types
|
32
38
|
{
|
@@ -122,7 +128,9 @@ module OryHydraClient
|
|
122
128
|
def build_from_hash(attributes)
|
123
129
|
return nil unless attributes.is_a?(Hash)
|
124
130
|
self.class.openapi_types.each_pair do |key, type|
|
125
|
-
if
|
131
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
132
|
+
self.send("#{key}=", nil)
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
126
134
|
# check to ensure the input is an array given that the attribute
|
127
135
|
# is documented as an array but the input is not
|
128
136
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -130,7 +138,7 @@ module OryHydraClient
|
|
130
138
|
end
|
131
139
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
140
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
-
end
|
141
|
+
end
|
134
142
|
end
|
135
143
|
|
136
144
|
self
|
@@ -142,8 +150,8 @@ module OryHydraClient
|
|
142
150
|
# @return [Object] Deserialized data
|
143
151
|
def _deserialize(type, value)
|
144
152
|
case type.to_sym
|
145
|
-
when :
|
146
|
-
|
153
|
+
when :Time
|
154
|
+
Time.parse(value)
|
147
155
|
when :Date
|
148
156
|
Date.parse(value)
|
149
157
|
when :String
|
@@ -173,7 +181,9 @@ module OryHydraClient
|
|
173
181
|
end
|
174
182
|
end
|
175
183
|
else # model
|
176
|
-
|
184
|
+
# models (e.g. Pet) or oneOf
|
185
|
+
klass = OryHydraClient.const_get(type)
|
186
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
187
|
end
|
178
188
|
end
|
179
189
|
|
@@ -199,7 +209,7 @@ module OryHydraClient
|
|
199
209
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
210
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
211
|
end
|
202
|
-
|
212
|
+
|
203
213
|
hash[param] = _to_hash(value)
|
204
214
|
end
|
205
215
|
hash
|
@@ -222,5 +232,7 @@ module OryHydraClient
|
|
222
232
|
value
|
223
233
|
end
|
224
234
|
end
|
235
|
+
|
225
236
|
end
|
237
|
+
|
226
238
|
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 LoginFlowMethodConfig
|
@@ -39,6 +40,11 @@ module OryHydraClient
|
|
39
40
|
}
|
40
41
|
end
|
41
42
|
|
43
|
+
# Returns all the JSON keys this model knows about
|
44
|
+
def self.acceptable_attributes
|
45
|
+
attribute_map.values
|
46
|
+
end
|
47
|
+
|
42
48
|
# Attribute type mapping.
|
43
49
|
def self.openapi_types
|
44
50
|
{
|
@@ -163,7 +169,9 @@ module OryHydraClient
|
|
163
169
|
def build_from_hash(attributes)
|
164
170
|
return nil unless attributes.is_a?(Hash)
|
165
171
|
self.class.openapi_types.each_pair do |key, type|
|
166
|
-
if
|
172
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
173
|
+
self.send("#{key}=", nil)
|
174
|
+
elsif type =~ /\AArray<(.*)>/i
|
167
175
|
# check to ensure the input is an array given that the attribute
|
168
176
|
# is documented as an array but the input is not
|
169
177
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -171,7 +179,7 @@ module OryHydraClient
|
|
171
179
|
end
|
172
180
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
173
181
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
174
|
-
end
|
182
|
+
end
|
175
183
|
end
|
176
184
|
|
177
185
|
self
|
@@ -183,8 +191,8 @@ module OryHydraClient
|
|
183
191
|
# @return [Object] Deserialized data
|
184
192
|
def _deserialize(type, value)
|
185
193
|
case type.to_sym
|
186
|
-
when :
|
187
|
-
|
194
|
+
when :Time
|
195
|
+
Time.parse(value)
|
188
196
|
when :Date
|
189
197
|
Date.parse(value)
|
190
198
|
when :String
|
@@ -214,7 +222,9 @@ module OryHydraClient
|
|
214
222
|
end
|
215
223
|
end
|
216
224
|
else # model
|
217
|
-
|
225
|
+
# models (e.g. Pet) or oneOf
|
226
|
+
klass = OryHydraClient.const_get(type)
|
227
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
228
|
end
|
219
229
|
end
|
220
230
|
|
@@ -240,7 +250,7 @@ module OryHydraClient
|
|
240
250
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
241
251
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
252
|
end
|
243
|
-
|
253
|
+
|
244
254
|
hash[param] = _to_hash(value)
|
245
255
|
end
|
246
256
|
hash
|
@@ -263,5 +273,7 @@ module OryHydraClient
|
|
263
273
|
value
|
264
274
|
end
|
265
275
|
end
|
276
|
+
|
266
277
|
end
|
278
|
+
|
267
279
|
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
|
# The Response for Login Flows via API
|
@@ -28,6 +29,11 @@ module OryHydraClient
|
|
28
29
|
}
|
29
30
|
end
|
30
31
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
31
37
|
# Attribute type mapping.
|
32
38
|
def self.openapi_types
|
33
39
|
{
|
@@ -123,7 +129,9 @@ module OryHydraClient
|
|
123
129
|
def build_from_hash(attributes)
|
124
130
|
return nil unless attributes.is_a?(Hash)
|
125
131
|
self.class.openapi_types.each_pair do |key, type|
|
126
|
-
if
|
132
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
133
|
+
self.send("#{key}=", nil)
|
134
|
+
elsif type =~ /\AArray<(.*)>/i
|
127
135
|
# check to ensure the input is an array given that the attribute
|
128
136
|
# is documented as an array but the input is not
|
129
137
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -131,7 +139,7 @@ module OryHydraClient
|
|
131
139
|
end
|
132
140
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
141
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
-
end
|
142
|
+
end
|
135
143
|
end
|
136
144
|
|
137
145
|
self
|
@@ -143,8 +151,8 @@ module OryHydraClient
|
|
143
151
|
# @return [Object] Deserialized data
|
144
152
|
def _deserialize(type, value)
|
145
153
|
case type.to_sym
|
146
|
-
when :
|
147
|
-
|
154
|
+
when :Time
|
155
|
+
Time.parse(value)
|
148
156
|
when :Date
|
149
157
|
Date.parse(value)
|
150
158
|
when :String
|
@@ -174,7 +182,9 @@ module OryHydraClient
|
|
174
182
|
end
|
175
183
|
end
|
176
184
|
else # model
|
177
|
-
|
185
|
+
# models (e.g. Pet) or oneOf
|
186
|
+
klass = OryHydraClient.const_get(type)
|
187
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
178
188
|
end
|
179
189
|
end
|
180
190
|
|
@@ -200,7 +210,7 @@ module OryHydraClient
|
|
200
210
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
211
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
212
|
end
|
203
|
-
|
213
|
+
|
204
214
|
hash[param] = _to_hash(value)
|
205
215
|
end
|
206
216
|
hash
|
@@ -223,5 +233,7 @@ module OryHydraClient
|
|
223
233
|
value
|
224
234
|
end
|
225
235
|
end
|
236
|
+
|
226
237
|
end
|
238
|
+
|
227
239
|
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 Message
|
@@ -33,6 +34,11 @@ module OryHydraClient
|
|
33
34
|
}
|
34
35
|
end
|
35
36
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
36
42
|
# Attribute type mapping.
|
37
43
|
def self.openapi_types
|
38
44
|
{
|
@@ -130,7 +136,9 @@ module OryHydraClient
|
|
130
136
|
def build_from_hash(attributes)
|
131
137
|
return nil unless attributes.is_a?(Hash)
|
132
138
|
self.class.openapi_types.each_pair do |key, type|
|
133
|
-
if
|
139
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
140
|
+
self.send("#{key}=", nil)
|
141
|
+
elsif type =~ /\AArray<(.*)>/i
|
134
142
|
# check to ensure the input is an array given that the attribute
|
135
143
|
# is documented as an array but the input is not
|
136
144
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -138,7 +146,7 @@ module OryHydraClient
|
|
138
146
|
end
|
139
147
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
148
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
141
|
-
end
|
149
|
+
end
|
142
150
|
end
|
143
151
|
|
144
152
|
self
|
@@ -150,8 +158,8 @@ module OryHydraClient
|
|
150
158
|
# @return [Object] Deserialized data
|
151
159
|
def _deserialize(type, value)
|
152
160
|
case type.to_sym
|
153
|
-
when :
|
154
|
-
|
161
|
+
when :Time
|
162
|
+
Time.parse(value)
|
155
163
|
when :Date
|
156
164
|
Date.parse(value)
|
157
165
|
when :String
|
@@ -181,7 +189,9 @@ module OryHydraClient
|
|
181
189
|
end
|
182
190
|
end
|
183
191
|
else # model
|
184
|
-
|
192
|
+
# models (e.g. Pet) or oneOf
|
193
|
+
klass = OryHydraClient.const_get(type)
|
194
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
185
195
|
end
|
186
196
|
end
|
187
197
|
|
@@ -207,7 +217,7 @@ module OryHydraClient
|
|
207
217
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
208
218
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
209
219
|
end
|
210
|
-
|
220
|
+
|
211
221
|
hash[param] = _to_hash(value)
|
212
222
|
end
|
213
223
|
hash
|
@@ -230,5 +240,7 @@ module OryHydraClient
|
|
230
240
|
value
|
231
241
|
end
|
232
242
|
end
|
243
|
+
|
233
244
|
end
|
245
|
+
|
234
246
|
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 RecoveryAddress
|
@@ -29,6 +30,11 @@ module OryHydraClient
|
|
29
30
|
}
|
30
31
|
end
|
31
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
@@ -135,7 +141,9 @@ module OryHydraClient
|
|
135
141
|
def build_from_hash(attributes)
|
136
142
|
return nil unless attributes.is_a?(Hash)
|
137
143
|
self.class.openapi_types.each_pair do |key, type|
|
138
|
-
if
|
144
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
145
|
+
self.send("#{key}=", nil)
|
146
|
+
elsif type =~ /\AArray<(.*)>/i
|
139
147
|
# check to ensure the input is an array given that the attribute
|
140
148
|
# is documented as an array but the input is not
|
141
149
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -143,7 +151,7 @@ module OryHydraClient
|
|
143
151
|
end
|
144
152
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
153
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
146
|
-
end
|
154
|
+
end
|
147
155
|
end
|
148
156
|
|
149
157
|
self
|
@@ -155,8 +163,8 @@ module OryHydraClient
|
|
155
163
|
# @return [Object] Deserialized data
|
156
164
|
def _deserialize(type, value)
|
157
165
|
case type.to_sym
|
158
|
-
when :
|
159
|
-
|
166
|
+
when :Time
|
167
|
+
Time.parse(value)
|
160
168
|
when :Date
|
161
169
|
Date.parse(value)
|
162
170
|
when :String
|
@@ -186,7 +194,9 @@ module OryHydraClient
|
|
186
194
|
end
|
187
195
|
end
|
188
196
|
else # model
|
189
|
-
|
197
|
+
# models (e.g. Pet) or oneOf
|
198
|
+
klass = OryHydraClient.const_get(type)
|
199
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
200
|
end
|
191
201
|
end
|
192
202
|
|
@@ -212,7 +222,7 @@ module OryHydraClient
|
|
212
222
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
223
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
224
|
end
|
215
|
-
|
225
|
+
|
216
226
|
hash[param] = _to_hash(value)
|
217
227
|
end
|
218
228
|
hash
|
@@ -235,5 +245,7 @@ module OryHydraClient
|
|
235
245
|
value
|
236
246
|
end
|
237
247
|
end
|
248
|
+
|
238
249
|
end
|
250
|
+
|
239
251
|
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 request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery)
|
@@ -54,13 +55,18 @@ module OryHydraClient
|
|
54
55
|
}
|
55
56
|
end
|
56
57
|
|
58
|
+
# Returns all the JSON keys this model knows about
|
59
|
+
def self.acceptable_attributes
|
60
|
+
attribute_map.values
|
61
|
+
end
|
62
|
+
|
57
63
|
# Attribute type mapping.
|
58
64
|
def self.openapi_types
|
59
65
|
{
|
60
66
|
:'active' => :'String',
|
61
|
-
:'expires_at' => :'
|
67
|
+
:'expires_at' => :'Time',
|
62
68
|
:'id' => :'String',
|
63
|
-
:'issued_at' => :'
|
69
|
+
:'issued_at' => :'Time',
|
64
70
|
:'messages' => :'Array<Message>',
|
65
71
|
:'methods' => :'Hash<String, RecoveryFlowMethod>',
|
66
72
|
:'request_url' => :'String',
|
@@ -215,7 +221,9 @@ module OryHydraClient
|
|
215
221
|
def build_from_hash(attributes)
|
216
222
|
return nil unless attributes.is_a?(Hash)
|
217
223
|
self.class.openapi_types.each_pair do |key, type|
|
218
|
-
if
|
224
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
225
|
+
self.send("#{key}=", nil)
|
226
|
+
elsif type =~ /\AArray<(.*)>/i
|
219
227
|
# check to ensure the input is an array given that the attribute
|
220
228
|
# is documented as an array but the input is not
|
221
229
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -223,7 +231,7 @@ module OryHydraClient
|
|
223
231
|
end
|
224
232
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
225
233
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
226
|
-
end
|
234
|
+
end
|
227
235
|
end
|
228
236
|
|
229
237
|
self
|
@@ -235,8 +243,8 @@ module OryHydraClient
|
|
235
243
|
# @return [Object] Deserialized data
|
236
244
|
def _deserialize(type, value)
|
237
245
|
case type.to_sym
|
238
|
-
when :
|
239
|
-
|
246
|
+
when :Time
|
247
|
+
Time.parse(value)
|
240
248
|
when :Date
|
241
249
|
Date.parse(value)
|
242
250
|
when :String
|
@@ -266,7 +274,9 @@ module OryHydraClient
|
|
266
274
|
end
|
267
275
|
end
|
268
276
|
else # model
|
269
|
-
|
277
|
+
# models (e.g. Pet) or oneOf
|
278
|
+
klass = OryHydraClient.const_get(type)
|
279
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
270
280
|
end
|
271
281
|
end
|
272
282
|
|
@@ -292,7 +302,7 @@ module OryHydraClient
|
|
292
302
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
293
303
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
294
304
|
end
|
295
|
-
|
305
|
+
|
296
306
|
hash[param] = _to_hash(value)
|
297
307
|
end
|
298
308
|
hash
|
@@ -315,5 +325,7 @@ module OryHydraClient
|
|
315
325
|
value
|
316
326
|
end
|
317
327
|
end
|
328
|
+
|
318
329
|
end
|
330
|
+
|
319
331
|
end
|