ory-kratos-client 0.6.0.alpha15 → 0.6.3.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -24
- data/docs/AdminApi.md +15 -13
- data/docs/GenericError.md +14 -2
- data/docs/Identity.md +6 -4
- data/docs/IdentityCredentials.md +5 -1
- data/docs/JsonError.md +18 -0
- data/docs/LoginFlow.md +5 -1
- data/docs/PublicApi.md +216 -210
- data/docs/RecoveryAddress.md +4 -0
- data/docs/SelfServiceErrorContainer.md +24 -0
- data/docs/VerifiableIdentityAddress.md +32 -0
- data/lib/ory-kratos-client.rb +4 -4
- data/lib/ory-kratos-client/api/admin_api.rb +7 -4
- data/lib/ory-kratos-client/api/public_api.rb +171 -162
- data/lib/ory-kratos-client/api_client.rb +1 -1
- data/lib/ory-kratos-client/api_error.rb +1 -1
- data/lib/ory-kratos-client/configuration.rb +15 -22
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_change_response_item.rb +1 -1
- data/lib/ory-kratos-client/models/container_create_created_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +1 -1
- data/lib/ory-kratos-client/models/create_identity.rb +1 -1
- data/lib/ory-kratos-client/models/create_recovery_link.rb +1 -1
- data/lib/ory-kratos-client/models/error_container.rb +1 -1
- data/lib/ory-kratos-client/models/error_response.rb +1 -1
- data/lib/ory-kratos-client/models/generic_error.rb +76 -9
- data/lib/ory-kratos-client/models/generic_error_payload.rb +1 -1
- data/lib/ory-kratos-client/models/graph_driver_data.rb +1 -1
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-kratos-client/models/health_status.rb +1 -1
- data/lib/ory-kratos-client/models/id_response.rb +1 -1
- data/lib/ory-kratos-client/models/identity.rb +24 -15
- data/lib/ory-kratos-client/models/identity_credentials.rb +25 -5
- data/lib/ory-kratos-client/models/image_delete_response_item.rb +1 -1
- data/lib/ory-kratos-client/models/image_summary.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
- data/lib/ory-kratos-client/models/json_error.rb +224 -0
- data/lib/ory-kratos-client/models/login_flow.rb +25 -5
- data/lib/ory-kratos-client/models/login_via_api_response.rb +1 -1
- data/lib/ory-kratos-client/models/meta.rb +1 -1
- data/lib/ory-kratos-client/models/plugin.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_args.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_network.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_user.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_device.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_env.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_interface_type.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_mount.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_settings.rb +1 -1
- data/lib/ory-kratos-client/models/port.rb +1 -1
- data/lib/ory-kratos-client/models/recovery_address.rb +22 -2
- data/lib/ory-kratos-client/models/recovery_flow.rb +1 -1
- data/lib/ory-kratos-client/models/recovery_link.rb +1 -1
- data/lib/ory-kratos-client/models/registration_flow.rb +1 -1
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +1 -1
- data/lib/ory-kratos-client/models/revoke_session.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_error_container.rb +260 -0
- data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
- data/lib/ory-kratos-client/models/session.rb +1 -1
- data/lib/ory-kratos-client/models/settings_flow.rb +1 -1
- data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method.rb +22 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
- data/lib/ory-kratos-client/models/ui_container.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_text.rb +1 -1
- data/lib/ory-kratos-client/models/update_identity.rb +1 -1
- data/lib/ory-kratos-client/models/verifiable_address.rb +1 -1
- data/lib/ory-kratos-client/models/verifiable_identity_address.rb +313 -0
- data/lib/ory-kratos-client/models/verification_flow.rb +1 -1
- data/lib/ory-kratos-client/models/version.rb +1 -1
- data/lib/ory-kratos-client/models/volume.rb +1 -1
- data/lib/ory-kratos-client/models/volume_usage_data.rb +1 -1
- data/lib/ory-kratos-client/version.rb +2 -2
- data/ory-kratos-client.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/json_error_spec.rb +34 -0
- data/spec/models/self_service_error_container_spec.rb +52 -0
- data/spec/models/verifiable_identity_address_spec.rb +76 -0
- data/spec/spec_helper.rb +1 -1
- metadata +14 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -138,9 +138,9 @@ module OryHydraClient
|
|
138
138
|
attr_accessor :force_ending_format
|
139
139
|
|
140
140
|
def initialize
|
141
|
-
@scheme = '
|
142
|
-
@host = '
|
143
|
-
@base_path = '
|
141
|
+
@scheme = 'http'
|
142
|
+
@host = 'localhost'
|
143
|
+
@base_path = ''
|
144
144
|
@server_index = 0
|
145
145
|
@server_operation_index = {}
|
146
146
|
@server_variables = {}
|
@@ -215,6 +215,13 @@ module OryHydraClient
|
|
215
215
|
# Returns Auth Settings hash for api client.
|
216
216
|
def auth_settings
|
217
217
|
{
|
218
|
+
'oryToken' =>
|
219
|
+
{
|
220
|
+
type: 'bearer',
|
221
|
+
in: 'header',
|
222
|
+
key: 'Authorization',
|
223
|
+
value: "Bearer #{access_token}"
|
224
|
+
},
|
218
225
|
'sessionCookie' =>
|
219
226
|
{
|
220
227
|
type: 'api_key',
|
@@ -224,10 +231,10 @@ module OryHydraClient
|
|
224
231
|
},
|
225
232
|
'sessionToken' =>
|
226
233
|
{
|
227
|
-
type: '
|
234
|
+
type: 'bearer',
|
228
235
|
in: 'header',
|
229
|
-
key: '
|
230
|
-
value:
|
236
|
+
key: 'Authorization',
|
237
|
+
value: "Bearer #{access_token}"
|
231
238
|
},
|
232
239
|
}
|
233
240
|
end
|
@@ -236,22 +243,8 @@ module OryHydraClient
|
|
236
243
|
def server_settings
|
237
244
|
[
|
238
245
|
{
|
239
|
-
url: "
|
246
|
+
url: "",
|
240
247
|
description: "No description provided",
|
241
|
-
variables: {
|
242
|
-
api: {
|
243
|
-
description: "Target the public or administrative API.",
|
244
|
-
default_value: "public",
|
245
|
-
enum_values: [
|
246
|
-
"public",
|
247
|
-
"admin"
|
248
|
-
]
|
249
|
-
},
|
250
|
-
tenant: {
|
251
|
-
description: "Tenant ID as provided by Ory Cloud.",
|
252
|
-
default_value: "demo",
|
253
|
-
}
|
254
|
-
}
|
255
248
|
}
|
256
249
|
]
|
257
250
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.2-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -14,14 +14,38 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OryHydraClient
|
17
|
-
# Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.
|
18
17
|
class GenericError
|
19
|
-
|
18
|
+
# The status code
|
19
|
+
attr_accessor :code
|
20
|
+
|
21
|
+
# Debug information This field is often not exposed to protect against leaking sensitive information.
|
22
|
+
attr_accessor :debug
|
23
|
+
|
24
|
+
# Further error details
|
25
|
+
attr_accessor :details
|
26
|
+
|
27
|
+
# Error message The error's message.
|
28
|
+
attr_accessor :message
|
29
|
+
|
30
|
+
# A human-readable reason for the error
|
31
|
+
attr_accessor :reason
|
32
|
+
|
33
|
+
# The request ID The request ID is often exposed internally in order to trace errors across service architectures. This is often a UUID.
|
34
|
+
attr_accessor :request
|
35
|
+
|
36
|
+
# The status description
|
37
|
+
attr_accessor :status
|
20
38
|
|
21
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
40
|
def self.attribute_map
|
23
41
|
{
|
24
|
-
:'
|
42
|
+
:'code' => :'code',
|
43
|
+
:'debug' => :'debug',
|
44
|
+
:'details' => :'details',
|
45
|
+
:'message' => :'message',
|
46
|
+
:'reason' => :'reason',
|
47
|
+
:'request' => :'request',
|
48
|
+
:'status' => :'status'
|
25
49
|
}
|
26
50
|
end
|
27
51
|
|
@@ -33,7 +57,13 @@ module OryHydraClient
|
|
33
57
|
# Attribute type mapping.
|
34
58
|
def self.openapi_types
|
35
59
|
{
|
36
|
-
:'
|
60
|
+
:'code' => :'Integer',
|
61
|
+
:'debug' => :'String',
|
62
|
+
:'details' => :'Hash<String, Object>',
|
63
|
+
:'message' => :'String',
|
64
|
+
:'reason' => :'String',
|
65
|
+
:'request' => :'String',
|
66
|
+
:'status' => :'String'
|
37
67
|
}
|
38
68
|
end
|
39
69
|
|
@@ -58,8 +88,34 @@ module OryHydraClient
|
|
58
88
|
h[k.to_sym] = v
|
59
89
|
}
|
60
90
|
|
61
|
-
if attributes.key?(:'
|
62
|
-
self.
|
91
|
+
if attributes.key?(:'code')
|
92
|
+
self.code = attributes[:'code']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'debug')
|
96
|
+
self.debug = attributes[:'debug']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'details')
|
100
|
+
if (value = attributes[:'details']).is_a?(Hash)
|
101
|
+
self.details = value
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'message')
|
106
|
+
self.message = attributes[:'message']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'reason')
|
110
|
+
self.reason = attributes[:'reason']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'request')
|
114
|
+
self.request = attributes[:'request']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'status')
|
118
|
+
self.status = attributes[:'status']
|
63
119
|
end
|
64
120
|
end
|
65
121
|
|
@@ -67,12 +123,17 @@ module OryHydraClient
|
|
67
123
|
# @return Array for valid properties with the reasons
|
68
124
|
def list_invalid_properties
|
69
125
|
invalid_properties = Array.new
|
126
|
+
if @message.nil?
|
127
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
128
|
+
end
|
129
|
+
|
70
130
|
invalid_properties
|
71
131
|
end
|
72
132
|
|
73
133
|
# Check to see if the all the properties in the model are valid
|
74
134
|
# @return true if the model is valid
|
75
135
|
def valid?
|
136
|
+
return false if @message.nil?
|
76
137
|
true
|
77
138
|
end
|
78
139
|
|
@@ -81,7 +142,13 @@ module OryHydraClient
|
|
81
142
|
def ==(o)
|
82
143
|
return true if self.equal?(o)
|
83
144
|
self.class == o.class &&
|
84
|
-
|
145
|
+
code == o.code &&
|
146
|
+
debug == o.debug &&
|
147
|
+
details == o.details &&
|
148
|
+
message == o.message &&
|
149
|
+
reason == o.reason &&
|
150
|
+
request == o.request &&
|
151
|
+
status == o.status
|
85
152
|
end
|
86
153
|
|
87
154
|
# @see the `==` method
|
@@ -93,7 +160,7 @@ module OryHydraClient
|
|
93
160
|
# Calculates hash code according to all attributes.
|
94
161
|
# @return [Integer] Hash code
|
95
162
|
def hash
|
96
|
-
[
|
163
|
+
[code, debug, details, message, reason, request, status].hash
|
97
164
|
end
|
98
165
|
|
99
166
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.2-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.6.
|
6
|
+
The version of the OpenAPI document: v0.6.3-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -14,7 +14,11 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OryHydraClient
|
17
|
+
# An identity can be a real human, a service, an IoT device - everything that can be described as an \"actor\" in a system.
|
17
18
|
class Identity
|
19
|
+
# CreatedAt is a helper struct field for gobuffalo.pop.
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
18
22
|
attr_accessor :id
|
19
23
|
|
20
24
|
# RecoveryAddresses contains all the addresses that can be used to recover an identity.
|
@@ -26,9 +30,11 @@ module OryHydraClient
|
|
26
30
|
# SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
|
27
31
|
attr_accessor :schema_url
|
28
32
|
|
33
|
+
# Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`.
|
29
34
|
attr_accessor :traits
|
30
35
|
|
31
|
-
|
36
|
+
# UpdatedAt is a helper struct field for gobuffalo.pop.
|
37
|
+
attr_accessor :updated_at
|
32
38
|
|
33
39
|
# VerifiableAddresses contains all the addresses that can be verified by the user.
|
34
40
|
attr_accessor :verifiable_addresses
|
@@ -36,12 +42,13 @@ module OryHydraClient
|
|
36
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
43
|
def self.attribute_map
|
38
44
|
{
|
45
|
+
:'created_at' => :'created_at',
|
39
46
|
:'id' => :'id',
|
40
47
|
:'recovery_addresses' => :'recovery_addresses',
|
41
48
|
:'schema_id' => :'schema_id',
|
42
49
|
:'schema_url' => :'schema_url',
|
43
50
|
:'traits' => :'traits',
|
44
|
-
:'
|
51
|
+
:'updated_at' => :'updated_at',
|
45
52
|
:'verifiable_addresses' => :'verifiable_addresses'
|
46
53
|
}
|
47
54
|
end
|
@@ -54,19 +61,21 @@ module OryHydraClient
|
|
54
61
|
# Attribute type mapping.
|
55
62
|
def self.openapi_types
|
56
63
|
{
|
64
|
+
:'created_at' => :'Time',
|
57
65
|
:'id' => :'String',
|
58
66
|
:'recovery_addresses' => :'Array<RecoveryAddress>',
|
59
67
|
:'schema_id' => :'String',
|
60
68
|
:'schema_url' => :'String',
|
61
|
-
:'traits' => :'
|
62
|
-
:'
|
63
|
-
:'verifiable_addresses' => :'Array<
|
69
|
+
:'traits' => :'AnyType',
|
70
|
+
:'updated_at' => :'Time',
|
71
|
+
:'verifiable_addresses' => :'Array<VerifiableIdentityAddress>'
|
64
72
|
}
|
65
73
|
end
|
66
74
|
|
67
75
|
# List of attributes with nullable: true
|
68
76
|
def self.openapi_nullable
|
69
77
|
Set.new([
|
78
|
+
:'traits',
|
70
79
|
])
|
71
80
|
end
|
72
81
|
|
@@ -85,6 +94,10 @@ module OryHydraClient
|
|
85
94
|
h[k.to_sym] = v
|
86
95
|
}
|
87
96
|
|
97
|
+
if attributes.key?(:'created_at')
|
98
|
+
self.created_at = attributes[:'created_at']
|
99
|
+
end
|
100
|
+
|
88
101
|
if attributes.key?(:'id')
|
89
102
|
self.id = attributes[:'id']
|
90
103
|
end
|
@@ -107,8 +120,8 @@ module OryHydraClient
|
|
107
120
|
self.traits = attributes[:'traits']
|
108
121
|
end
|
109
122
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
self.
|
123
|
+
if attributes.key?(:'updated_at')
|
124
|
+
self.updated_at = attributes[:'updated_at']
|
112
125
|
end
|
113
126
|
|
114
127
|
if attributes.key?(:'verifiable_addresses')
|
@@ -134,10 +147,6 @@ module OryHydraClient
|
|
134
147
|
invalid_properties.push('invalid value for "schema_url", schema_url cannot be nil.')
|
135
148
|
end
|
136
149
|
|
137
|
-
if @traits.nil?
|
138
|
-
invalid_properties.push('invalid value for "traits", traits cannot be nil.')
|
139
|
-
end
|
140
|
-
|
141
150
|
invalid_properties
|
142
151
|
end
|
143
152
|
|
@@ -147,7 +156,6 @@ module OryHydraClient
|
|
147
156
|
return false if @id.nil?
|
148
157
|
return false if @schema_id.nil?
|
149
158
|
return false if @schema_url.nil?
|
150
|
-
return false if @traits.nil?
|
151
159
|
true
|
152
160
|
end
|
153
161
|
|
@@ -156,12 +164,13 @@ module OryHydraClient
|
|
156
164
|
def ==(o)
|
157
165
|
return true if self.equal?(o)
|
158
166
|
self.class == o.class &&
|
167
|
+
created_at == o.created_at &&
|
159
168
|
id == o.id &&
|
160
169
|
recovery_addresses == o.recovery_addresses &&
|
161
170
|
schema_id == o.schema_id &&
|
162
171
|
schema_url == o.schema_url &&
|
163
172
|
traits == o.traits &&
|
164
|
-
|
173
|
+
updated_at == o.updated_at &&
|
165
174
|
verifiable_addresses == o.verifiable_addresses
|
166
175
|
end
|
167
176
|
|
@@ -174,7 +183,7 @@ module OryHydraClient
|
|
174
183
|
# Calculates hash code according to all attributes.
|
175
184
|
# @return [Integer] Hash code
|
176
185
|
def hash
|
177
|
-
[id, recovery_addresses, schema_id, schema_url, traits,
|
186
|
+
[created_at, id, recovery_addresses, schema_id, schema_url, traits, updated_at, verifiable_addresses].hash
|
178
187
|
end
|
179
188
|
|
180
189
|
# Builds the object from hash
|