ory-kratos-client 0.6.0.alpha17 → 0.7.0.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 +82 -95
- data/docs/AdminApi.md +15 -13
- data/docs/AdminCreateIdentityBody.md +20 -0
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +20 -0
- data/docs/AdminUpdateIdentityBody.md +22 -0
- data/docs/GenericError.md +14 -2
- data/docs/Identity.md +12 -4
- data/docs/IdentityCredentials.md +5 -1
- data/docs/JsonError.md +18 -0
- data/docs/LoginFlow.md +5 -1
- data/docs/MetadataApi.md +254 -0
- data/docs/PublicApi.md +216 -210
- data/docs/RecoveryAddress.md +4 -0
- data/docs/SelfServiceError.md +24 -0
- data/docs/SelfServiceErrorContainer.md +24 -0
- data/docs/SelfServiceLoginFlow.md +36 -0
- data/docs/SelfServiceLogoutUrl.md +18 -0
- data/docs/SelfServiceRecoveryFlow.md +32 -0
- data/docs/SelfServiceRecoveryFlowState.md +15 -0
- data/docs/SelfServiceRecoveryLink.md +20 -0
- data/docs/SelfServiceRegistrationFlow.md +30 -0
- data/docs/SelfServiceSettingsFlow.md +34 -0
- data/docs/SelfServiceSettingsFlowState.md +15 -0
- data/docs/SelfServiceVerificationFlow.md +32 -0
- data/docs/SelfServiceVerificationFlowState.md +15 -0
- data/docs/Session.md +4 -4
- data/docs/SubmitSelfServiceLoginFlowBody.md +76 -0
- data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +24 -0
- data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +18 -0
- data/docs/SubmitSelfServiceRecoveryFlowBody.md +75 -0
- data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +22 -0
- data/docs/SubmitSelfServiceRegistrationFlowBody.md +76 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +22 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlowBody.md +79 -0
- data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +22 -0
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +22 -0
- data/docs/SubmitSelfServiceVerificationFlowBody.md +75 -0
- data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +22 -0
- data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +20 -0
- data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +22 -0
- data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +20 -0
- data/docs/UiNodeInputAttributes.md +1 -1
- data/docs/V0alpha1Api.md +2167 -0
- data/docs/VerifiableIdentityAddress.md +32 -0
- data/lib/ory-kratos-client.rb +37 -30
- data/lib/ory-kratos-client/api/admin_api.rb +7 -4
- data/lib/ory-kratos-client/api/metadata_api.rb +248 -0
- data/lib/ory-kratos-client/api/public_api.rb +171 -162
- data/lib/ory-kratos-client/api/v0alpha1_api.rb +2054 -0
- 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 +9 -30
- data/lib/ory-kratos-client/models/admin_create_identity_body.rb +239 -0
- data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +250 -0
- data/lib/ory-kratos-client/models/admin_update_identity_body.rb +245 -0
- 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 +56 -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.rb +252 -0
- data/lib/ory-kratos-client/models/self_service_error_container.rb +260 -0
- data/lib/ory-kratos-client/models/self_service_login_flow.rb +338 -0
- data/lib/ory-kratos-client/models/self_service_logout_url.rb +219 -0
- data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +317 -0
- data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +38 -0
- data/lib/ory-kratos-client/models/self_service_recovery_link.rb +234 -0
- data/lib/ory-kratos-client/models/self_service_registration_flow.rb +302 -0
- data/lib/ory-kratos-client/models/self_service_settings_flow.rb +331 -0
- data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +37 -0
- data/lib/ory-kratos-client/models/self_service_verification_flow.rb +307 -0
- data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +38 -0
- data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
- data/lib/ory-kratos-client/models/session.rb +6 -16
- 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_body.rb +54 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +250 -0
- 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_login_flow_with_password_method_body.rb +298 -0
- data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +225 -0
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +53 -0
- 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_recovery_flow_with_link_method_body.rb +283 -0
- 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_body.rb +54 -0
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +250 -0
- 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_registration_flow_with_password_method_body.rb +299 -0
- 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_body.rb +56 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +255 -0
- 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_password_method_body.rb +283 -0
- 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_settings_flow_with_profile_method_body.rb +250 -0
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +54 -0
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +283 -0
- data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +234 -0
- data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +243 -0
- data/lib/ory-kratos-client/models/successful_self_service_settings_without_browser.rb +238 -0
- 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 +4 -2
- 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/metadata_api_spec.rb +79 -0
- data/spec/api/v0alpha1_api_spec.rb +429 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/admin_create_identity_body_spec.rb +40 -0
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +40 -0
- data/spec/models/admin_update_identity_body_spec.rb +46 -0
- data/spec/models/json_error_spec.rb +34 -0
- data/spec/models/self_service_error_container_spec.rb +52 -0
- data/spec/models/self_service_error_spec.rb +52 -0
- data/spec/models/self_service_login_flow_spec.rb +88 -0
- data/spec/models/self_service_logout_url_spec.rb +34 -0
- data/spec/models/self_service_recovery_flow_spec.rb +76 -0
- data/spec/models/self_service_recovery_flow_state_spec.rb +28 -0
- data/spec/models/self_service_recovery_link_spec.rb +40 -0
- data/spec/models/self_service_registration_flow_spec.rb +70 -0
- data/spec/models/self_service_settings_flow_spec.rb +82 -0
- data/spec/models/self_service_settings_flow_state_spec.rb +28 -0
- data/spec/models/self_service_verification_flow_spec.rb +76 -0
- data/spec/models/self_service_verification_flow_state_spec.rb +28 -0
- data/spec/models/submit_self_service_login_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +56 -0
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +34 -0
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +50 -0
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +56 -0
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +52 -0
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +50 -0
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +50 -0
- data/spec/models/successful_self_service_login_without_browser_spec.rb +40 -0
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +46 -0
- data/spec/models/successful_self_service_settings_without_browser_spec.rb +40 -0
- data/spec/models/verifiable_identity_address_spec.rb +76 -0
- data/spec/spec_helper.rb +1 -1
- metadata +150 -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.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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-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,14 @@ 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
|
+
|
22
|
+
# Credentials represents all credentials that can be used for authenticating this identity.
|
23
|
+
attr_accessor :credentials
|
24
|
+
|
18
25
|
attr_accessor :id
|
19
26
|
|
20
27
|
# RecoveryAddresses contains all the addresses that can be used to recover an identity.
|
@@ -26,9 +33,16 @@ module OryHydraClient
|
|
26
33
|
# SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
|
27
34
|
attr_accessor :schema_url
|
28
35
|
|
36
|
+
# State is the identity's state.
|
37
|
+
attr_accessor :state
|
38
|
+
|
39
|
+
attr_accessor :state_changed_at
|
40
|
+
|
41
|
+
# 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
42
|
attr_accessor :traits
|
30
43
|
|
31
|
-
|
44
|
+
# UpdatedAt is a helper struct field for gobuffalo.pop.
|
45
|
+
attr_accessor :updated_at
|
32
46
|
|
33
47
|
# VerifiableAddresses contains all the addresses that can be verified by the user.
|
34
48
|
attr_accessor :verifiable_addresses
|
@@ -36,12 +50,16 @@ module OryHydraClient
|
|
36
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
51
|
def self.attribute_map
|
38
52
|
{
|
53
|
+
:'created_at' => :'created_at',
|
54
|
+
:'credentials' => :'credentials',
|
39
55
|
:'id' => :'id',
|
40
56
|
:'recovery_addresses' => :'recovery_addresses',
|
41
57
|
:'schema_id' => :'schema_id',
|
42
58
|
:'schema_url' => :'schema_url',
|
59
|
+
:'state' => :'state',
|
60
|
+
:'state_changed_at' => :'state_changed_at',
|
43
61
|
:'traits' => :'traits',
|
44
|
-
:'
|
62
|
+
:'updated_at' => :'updated_at',
|
45
63
|
:'verifiable_addresses' => :'verifiable_addresses'
|
46
64
|
}
|
47
65
|
end
|
@@ -54,19 +72,25 @@ module OryHydraClient
|
|
54
72
|
# Attribute type mapping.
|
55
73
|
def self.openapi_types
|
56
74
|
{
|
75
|
+
:'created_at' => :'Time',
|
76
|
+
:'credentials' => :'Hash<String, IdentityCredentials>',
|
57
77
|
:'id' => :'String',
|
58
78
|
:'recovery_addresses' => :'Array<RecoveryAddress>',
|
59
79
|
:'schema_id' => :'String',
|
60
80
|
:'schema_url' => :'String',
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'
|
81
|
+
:'state' => :'AnyType',
|
82
|
+
:'state_changed_at' => :'Time',
|
83
|
+
:'traits' => :'AnyType',
|
84
|
+
:'updated_at' => :'Time',
|
85
|
+
:'verifiable_addresses' => :'Array<VerifiableIdentityAddress>'
|
64
86
|
}
|
65
87
|
end
|
66
88
|
|
67
89
|
# List of attributes with nullable: true
|
68
90
|
def self.openapi_nullable
|
69
91
|
Set.new([
|
92
|
+
:'state',
|
93
|
+
:'traits',
|
70
94
|
])
|
71
95
|
end
|
72
96
|
|
@@ -85,6 +109,16 @@ module OryHydraClient
|
|
85
109
|
h[k.to_sym] = v
|
86
110
|
}
|
87
111
|
|
112
|
+
if attributes.key?(:'created_at')
|
113
|
+
self.created_at = attributes[:'created_at']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'credentials')
|
117
|
+
if (value = attributes[:'credentials']).is_a?(Hash)
|
118
|
+
self.credentials = value
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
88
122
|
if attributes.key?(:'id')
|
89
123
|
self.id = attributes[:'id']
|
90
124
|
end
|
@@ -103,12 +137,20 @@ module OryHydraClient
|
|
103
137
|
self.schema_url = attributes[:'schema_url']
|
104
138
|
end
|
105
139
|
|
140
|
+
if attributes.key?(:'state')
|
141
|
+
self.state = attributes[:'state']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'state_changed_at')
|
145
|
+
self.state_changed_at = attributes[:'state_changed_at']
|
146
|
+
end
|
147
|
+
|
106
148
|
if attributes.key?(:'traits')
|
107
149
|
self.traits = attributes[:'traits']
|
108
150
|
end
|
109
151
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
self.
|
152
|
+
if attributes.key?(:'updated_at')
|
153
|
+
self.updated_at = attributes[:'updated_at']
|
112
154
|
end
|
113
155
|
|
114
156
|
if attributes.key?(:'verifiable_addresses')
|
@@ -134,10 +176,6 @@ module OryHydraClient
|
|
134
176
|
invalid_properties.push('invalid value for "schema_url", schema_url cannot be nil.')
|
135
177
|
end
|
136
178
|
|
137
|
-
if @traits.nil?
|
138
|
-
invalid_properties.push('invalid value for "traits", traits cannot be nil.')
|
139
|
-
end
|
140
|
-
|
141
179
|
invalid_properties
|
142
180
|
end
|
143
181
|
|
@@ -147,7 +185,6 @@ module OryHydraClient
|
|
147
185
|
return false if @id.nil?
|
148
186
|
return false if @schema_id.nil?
|
149
187
|
return false if @schema_url.nil?
|
150
|
-
return false if @traits.nil?
|
151
188
|
true
|
152
189
|
end
|
153
190
|
|
@@ -156,12 +193,16 @@ module OryHydraClient
|
|
156
193
|
def ==(o)
|
157
194
|
return true if self.equal?(o)
|
158
195
|
self.class == o.class &&
|
196
|
+
created_at == o.created_at &&
|
197
|
+
credentials == o.credentials &&
|
159
198
|
id == o.id &&
|
160
199
|
recovery_addresses == o.recovery_addresses &&
|
161
200
|
schema_id == o.schema_id &&
|
162
201
|
schema_url == o.schema_url &&
|
202
|
+
state == o.state &&
|
203
|
+
state_changed_at == o.state_changed_at &&
|
163
204
|
traits == o.traits &&
|
164
|
-
|
205
|
+
updated_at == o.updated_at &&
|
165
206
|
verifiable_addresses == o.verifiable_addresses
|
166
207
|
end
|
167
208
|
|
@@ -174,7 +215,7 @@ module OryHydraClient
|
|
174
215
|
# Calculates hash code according to all attributes.
|
175
216
|
# @return [Integer] Hash code
|
176
217
|
def hash
|
177
|
-
[id, recovery_addresses, schema_id, schema_url, traits,
|
218
|
+
[created_at, credentials, id, recovery_addresses, schema_id, schema_url, state, state_changed_at, traits, updated_at, verifiable_addresses].hash
|
178
219
|
end
|
179
220
|
|
180
221
|
# 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
|
+
The version of the OpenAPI document: v0.7.0-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -18,18 +18,26 @@ module OryHydraClient
|
|
18
18
|
class IdentityCredentials
|
19
19
|
attr_accessor :config
|
20
20
|
|
21
|
+
# CreatedAt is a helper struct field for gobuffalo.pop.
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
21
24
|
# Identifiers represents a list of unique identifiers this credential type matches.
|
22
25
|
attr_accessor :identifiers
|
23
26
|
|
24
27
|
# and so on.
|
25
28
|
attr_accessor :type
|
26
29
|
|
30
|
+
# UpdatedAt is a helper struct field for gobuffalo.pop.
|
31
|
+
attr_accessor :updated_at
|
32
|
+
|
27
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
34
|
def self.attribute_map
|
29
35
|
{
|
30
36
|
:'config' => :'config',
|
37
|
+
:'created_at' => :'created_at',
|
31
38
|
:'identifiers' => :'identifiers',
|
32
|
-
:'type' => :'type'
|
39
|
+
:'type' => :'type',
|
40
|
+
:'updated_at' => :'updated_at'
|
33
41
|
}
|
34
42
|
end
|
35
43
|
|
@@ -42,8 +50,10 @@ module OryHydraClient
|
|
42
50
|
def self.openapi_types
|
43
51
|
{
|
44
52
|
:'config' => :'Object',
|
53
|
+
:'created_at' => :'Time',
|
45
54
|
:'identifiers' => :'Array<String>',
|
46
|
-
:'type' => :'String'
|
55
|
+
:'type' => :'String',
|
56
|
+
:'updated_at' => :'Time'
|
47
57
|
}
|
48
58
|
end
|
49
59
|
|
@@ -72,6 +82,10 @@ module OryHydraClient
|
|
72
82
|
self.config = attributes[:'config']
|
73
83
|
end
|
74
84
|
|
85
|
+
if attributes.key?(:'created_at')
|
86
|
+
self.created_at = attributes[:'created_at']
|
87
|
+
end
|
88
|
+
|
75
89
|
if attributes.key?(:'identifiers')
|
76
90
|
if (value = attributes[:'identifiers']).is_a?(Array)
|
77
91
|
self.identifiers = value
|
@@ -81,6 +95,10 @@ module OryHydraClient
|
|
81
95
|
if attributes.key?(:'type')
|
82
96
|
self.type = attributes[:'type']
|
83
97
|
end
|
98
|
+
|
99
|
+
if attributes.key?(:'updated_at')
|
100
|
+
self.updated_at = attributes[:'updated_at']
|
101
|
+
end
|
84
102
|
end
|
85
103
|
|
86
104
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -102,8 +120,10 @@ module OryHydraClient
|
|
102
120
|
return true if self.equal?(o)
|
103
121
|
self.class == o.class &&
|
104
122
|
config == o.config &&
|
123
|
+
created_at == o.created_at &&
|
105
124
|
identifiers == o.identifiers &&
|
106
|
-
type == o.type
|
125
|
+
type == o.type &&
|
126
|
+
updated_at == o.updated_at
|
107
127
|
end
|
108
128
|
|
109
129
|
# @see the `==` method
|
@@ -115,7 +135,7 @@ module OryHydraClient
|
|
115
135
|
# Calculates hash code according to all attributes.
|
116
136
|
# @return [Integer] Hash code
|
117
137
|
def hash
|
118
|
-
[config, identifiers, type].hash
|
138
|
+
[config, created_at, identifiers, type, updated_at].hash
|
119
139
|
end
|
120
140
|
|
121
141
|
# 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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-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
|
+
The version of the OpenAPI document: v0.7.0-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -0,0 +1,224 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos API
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: v0.7.0-alpha.1
|
7
|
+
Contact: hi@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryHydraClient
|
17
|
+
# The standard Ory JSON API error format.
|
18
|
+
class JsonError
|
19
|
+
attr_accessor :error
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'error' => :'error'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.openapi_types
|
35
|
+
{
|
36
|
+
:'error' => :'GenericError'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# List of attributes with nullable: true
|
41
|
+
def self.openapi_nullable
|
42
|
+
Set.new([
|
43
|
+
])
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::JsonError` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::JsonError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'error')
|
62
|
+
self.error = attributes[:'error']
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
67
|
+
# @return Array for valid properties with the reasons
|
68
|
+
def list_invalid_properties
|
69
|
+
invalid_properties = Array.new
|
70
|
+
if @error.nil?
|
71
|
+
invalid_properties.push('invalid value for "error", error cannot be nil.')
|
72
|
+
end
|
73
|
+
|
74
|
+
invalid_properties
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
def valid?
|
80
|
+
return false if @error.nil?
|
81
|
+
true
|
82
|
+
end
|
83
|
+
|
84
|
+
# Checks equality by comparing each attribute.
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def ==(o)
|
87
|
+
return true if self.equal?(o)
|
88
|
+
self.class == o.class &&
|
89
|
+
error == o.error
|
90
|
+
end
|
91
|
+
|
92
|
+
# @see the `==` method
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def eql?(o)
|
95
|
+
self == o
|
96
|
+
end
|
97
|
+
|
98
|
+
# Calculates hash code according to all attributes.
|
99
|
+
# @return [Integer] Hash code
|
100
|
+
def hash
|
101
|
+
[error].hash
|
102
|
+
end
|
103
|
+
|
104
|
+
# Builds the object from hash
|
105
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
106
|
+
# @return [Object] Returns the model itself
|
107
|
+
def self.build_from_hash(attributes)
|
108
|
+
new.build_from_hash(attributes)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Builds the object from hash
|
112
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
+
# @return [Object] Returns the model itself
|
114
|
+
def build_from_hash(attributes)
|
115
|
+
return nil unless attributes.is_a?(Hash)
|
116
|
+
self.class.openapi_types.each_pair do |key, type|
|
117
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
118
|
+
self.send("#{key}=", nil)
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
120
|
+
# check to ensure the input is an array given that the attribute
|
121
|
+
# is documented as an array but the input is not
|
122
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
123
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
124
|
+
end
|
125
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
126
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
self
|
131
|
+
end
|
132
|
+
|
133
|
+
# Deserializes the data based on type
|
134
|
+
# @param string type Data type
|
135
|
+
# @param string value Value to be deserialized
|
136
|
+
# @return [Object] Deserialized data
|
137
|
+
def _deserialize(type, value)
|
138
|
+
case type.to_sym
|
139
|
+
when :Time
|
140
|
+
Time.parse(value)
|
141
|
+
when :Date
|
142
|
+
Date.parse(value)
|
143
|
+
when :String
|
144
|
+
value.to_s
|
145
|
+
when :Integer
|
146
|
+
value.to_i
|
147
|
+
when :Float
|
148
|
+
value.to_f
|
149
|
+
when :Boolean
|
150
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
151
|
+
true
|
152
|
+
else
|
153
|
+
false
|
154
|
+
end
|
155
|
+
when :Object
|
156
|
+
# generic object (usually a Hash), return directly
|
157
|
+
value
|
158
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
159
|
+
inner_type = Regexp.last_match[:inner_type]
|
160
|
+
value.map { |v| _deserialize(inner_type, v) }
|
161
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
162
|
+
k_type = Regexp.last_match[:k_type]
|
163
|
+
v_type = Regexp.last_match[:v_type]
|
164
|
+
{}.tap do |hash|
|
165
|
+
value.each do |k, v|
|
166
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
else # model
|
170
|
+
# models (e.g. Pet) or oneOf
|
171
|
+
klass = OryHydraClient.const_get(type)
|
172
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the string representation of the object
|
177
|
+
# @return [String] String presentation of the object
|
178
|
+
def to_s
|
179
|
+
to_hash.to_s
|
180
|
+
end
|
181
|
+
|
182
|
+
# to_body is an alias to to_hash (backward compatibility)
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
184
|
+
def to_body
|
185
|
+
to_hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Returns the object in the form of hash
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
190
|
+
def to_hash
|
191
|
+
hash = {}
|
192
|
+
self.class.attribute_map.each_pair do |attr, param|
|
193
|
+
value = self.send(attr)
|
194
|
+
if value.nil?
|
195
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
196
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
197
|
+
end
|
198
|
+
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Outputs non-array value in the form of hash
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
206
|
+
# @param [Object] value Any valid value
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
208
|
+
def _to_hash(value)
|
209
|
+
if value.is_a?(Array)
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
211
|
+
elsif value.is_a?(Hash)
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
214
|
+
end
|
215
|
+
elsif value.respond_to? :to_hash
|
216
|
+
value.to_hash
|
217
|
+
else
|
218
|
+
value
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|