ory-client 0.0.1.alpha17 → 0.0.1.alpha18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +138 -129
- data/docs/AdminCreateIdentityBody.md +2 -2
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +2 -2
- data/docs/AdminUpdateIdentityBody.md +2 -2
- data/docs/AuthenticateOKBody.md +2 -2
- data/docs/AuthenticatorAssuranceLevel.md +15 -0
- data/docs/ContainerChangeResponseItem.md +2 -2
- data/docs/ContainerCreateCreatedBody.md +2 -2
- data/docs/ContainerTopOKBody.md +2 -2
- data/docs/ContainerUpdateOKBody.md +2 -2
- data/docs/ContainerWaitOKBody.md +2 -2
- data/docs/ContainerWaitOKBodyError.md +2 -2
- data/docs/ErrorResponse.md +2 -2
- data/docs/GenericError.md +2 -2
- data/docs/GraphDriverData.md +2 -2
- data/docs/HealthNotReadyStatus.md +2 -2
- data/docs/HealthStatus.md +2 -2
- data/docs/IdResponse.md +2 -2
- data/docs/Identity.md +2 -2
- data/docs/IdentityCredentials.md +3 -3
- data/docs/IdentityCredentialsType.md +15 -0
- data/docs/IdentityState.md +2 -2
- data/docs/ImageDeleteResponseItem.md +2 -2
- data/docs/ImageSummary.md +2 -2
- data/docs/InlineResponse200.md +2 -2
- data/docs/InlineResponse2001.md +2 -2
- data/docs/InlineResponse503.md +2 -2
- data/docs/JsonError.md +2 -2
- data/docs/Meta.md +2 -2
- data/docs/MetadataApi.md +13 -13
- data/docs/Plugin.md +2 -2
- data/docs/PluginConfig.md +2 -2
- data/docs/PluginConfigArgs.md +2 -2
- data/docs/PluginConfigInterface.md +2 -2
- data/docs/PluginConfigLinux.md +2 -2
- data/docs/PluginConfigNetwork.md +2 -2
- data/docs/PluginConfigRootfs.md +2 -2
- data/docs/PluginConfigUser.md +2 -2
- data/docs/PluginDevice.md +2 -2
- data/docs/PluginEnv.md +2 -2
- data/docs/PluginInterfaceType.md +2 -2
- data/docs/PluginMount.md +2 -2
- data/docs/PluginSettings.md +2 -2
- data/docs/Port.md +2 -2
- data/docs/RecoveryAddress.md +2 -2
- data/docs/SelfServiceError.md +2 -2
- data/docs/SelfServiceLoginFlow.md +6 -4
- data/docs/SelfServiceLogoutUrl.md +2 -2
- data/docs/SelfServiceRecoveryFlow.md +2 -2
- data/docs/SelfServiceRecoveryFlowState.md +2 -2
- data/docs/SelfServiceRecoveryLink.md +2 -2
- data/docs/SelfServiceRegistrationFlow.md +3 -3
- data/docs/SelfServiceSettingsFlow.md +2 -2
- data/docs/SelfServiceSettingsFlowState.md +2 -2
- data/docs/SelfServiceVerificationFlow.md +2 -2
- data/docs/SelfServiceVerificationFlowState.md +2 -2
- data/docs/ServiceUpdateResponse.md +2 -2
- data/docs/Session.md +9 -5
- data/docs/SessionAuthenticationMethod.md +20 -0
- data/docs/SessionDevice.md +18 -0
- data/docs/SettingsProfileFormConfig.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowBody.md +14 -9
- data/docs/SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowWithTotpMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +2 -2
- data/docs/SubmitSelfServiceRecoveryFlowBody.md +6 -6
- data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +2 -2
- data/docs/SubmitSelfServiceRegistrationFlowBody.md +6 -6
- data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowBody.md +14 -9
- data/docs/SubmitSelfServiceSettingsFlowWithLookupMethodBody.md +26 -0
- data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowWithTotpMethodBody.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody.md +26 -0
- data/docs/SubmitSelfServiceVerificationFlowBody.md +6 -6
- data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +2 -2
- data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +2 -2
- data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +2 -2
- data/docs/UiContainer.md +2 -2
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeAnchorAttributes.md +4 -2
- data/docs/UiNodeAttributes.md +4 -4
- data/docs/UiNodeImageAttributes.md +9 -3
- data/docs/UiNodeInputAttributes.md +4 -2
- data/docs/UiNodeTextAttributes.md +4 -2
- data/docs/UiText.md +2 -2
- data/docs/V0alpha2Api.md +2194 -0
- data/docs/VerifiableIdentityAddress.md +2 -2
- data/docs/Version.md +2 -2
- data/docs/Volume.md +2 -2
- data/docs/VolumeUsageData.md +2 -2
- data/lib/ory-client/api/metadata_api.rb +3 -3
- data/lib/ory-client/api/v0alpha2_api.rb +2069 -0
- data/lib/ory-client/api_client.rb +4 -4
- data/lib/ory-client/api_error.rb +3 -3
- data/lib/ory-client/configuration.rb +3 -3
- data/lib/ory-client/models/admin_create_identity_body.rb +6 -6
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +6 -6
- data/lib/ory-client/models/admin_update_identity_body.rb +6 -6
- data/lib/ory-client/models/authenticate_ok_body.rb +6 -6
- data/lib/ory-client/models/authenticator_assurance_level.rb +39 -0
- data/lib/ory-client/models/container_change_response_item.rb +6 -6
- data/lib/ory-client/models/container_create_created_body.rb +6 -6
- data/lib/ory-client/models/container_top_ok_body.rb +6 -6
- data/lib/ory-client/models/container_update_ok_body.rb +6 -6
- data/lib/ory-client/models/container_wait_ok_body.rb +6 -6
- data/lib/ory-client/models/container_wait_ok_body_error.rb +6 -6
- data/lib/ory-client/models/error_response.rb +6 -6
- data/lib/ory-client/models/generic_error.rb +6 -6
- data/lib/ory-client/models/graph_driver_data.rb +6 -6
- data/lib/ory-client/models/health_not_ready_status.rb +6 -6
- data/lib/ory-client/models/health_status.rb +6 -6
- data/lib/ory-client/models/id_response.rb +6 -6
- data/lib/ory-client/models/identity.rb +6 -6
- data/lib/ory-client/models/identity_credentials.rb +7 -8
- data/lib/ory-client/models/identity_credentials_type.rb +38 -0
- data/lib/ory-client/models/identity_state.rb +3 -3
- data/lib/ory-client/models/image_delete_response_item.rb +6 -6
- data/lib/ory-client/models/image_summary.rb +6 -6
- data/lib/ory-client/models/inline_response200.rb +6 -6
- data/lib/ory-client/models/inline_response2001.rb +6 -6
- data/lib/ory-client/models/inline_response503.rb +6 -6
- data/lib/ory-client/models/json_error.rb +6 -6
- data/lib/ory-client/models/meta.rb +6 -6
- data/lib/ory-client/models/plugin.rb +6 -6
- data/lib/ory-client/models/plugin_config.rb +6 -6
- data/lib/ory-client/models/plugin_config_args.rb +6 -6
- data/lib/ory-client/models/plugin_config_interface.rb +6 -6
- data/lib/ory-client/models/plugin_config_linux.rb +6 -6
- data/lib/ory-client/models/plugin_config_network.rb +6 -6
- data/lib/ory-client/models/plugin_config_rootfs.rb +6 -6
- data/lib/ory-client/models/plugin_config_user.rb +6 -6
- data/lib/ory-client/models/plugin_device.rb +6 -6
- data/lib/ory-client/models/plugin_env.rb +6 -6
- data/lib/ory-client/models/plugin_interface_type.rb +6 -6
- data/lib/ory-client/models/plugin_mount.rb +6 -6
- data/lib/ory-client/models/plugin_settings.rb +6 -6
- data/lib/ory-client/models/port.rb +6 -6
- data/lib/ory-client/models/recovery_address.rb +6 -6
- data/lib/ory-client/models/self_service_error.rb +6 -6
- data/lib/ory-client/models/self_service_login_flow.rb +18 -10
- data/lib/ory-client/models/self_service_logout_url.rb +6 -6
- data/lib/ory-client/models/self_service_recovery_flow.rb +6 -6
- data/lib/ory-client/models/self_service_recovery_flow_state.rb +3 -3
- data/lib/ory-client/models/self_service_recovery_link.rb +6 -6
- data/lib/ory-client/models/self_service_registration_flow.rb +7 -8
- data/lib/ory-client/models/self_service_settings_flow.rb +6 -6
- data/lib/ory-client/models/self_service_settings_flow_state.rb +3 -3
- data/lib/ory-client/models/self_service_verification_flow.rb +6 -6
- data/lib/ory-client/models/self_service_verification_flow_state.rb +3 -3
- data/lib/ory-client/models/service_update_response.rb +6 -6
- data/lib/ory-client/models/session.rb +31 -10
- data/lib/ory-client/models/session_authentication_method.rb +263 -0
- data/lib/ory-client/models/session_device.rb +219 -0
- data/lib/ory-client/models/settings_profile_form_config.rb +6 -6
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +9 -6
- data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +249 -0
- data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +8 -8
- data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +249 -0
- data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +244 -0
- data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +6 -6
- data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +6 -6
- data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +6 -6
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +9 -6
- data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +264 -0
- data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +8 -8
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +6 -6
- data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +254 -0
- data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +264 -0
- data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +6 -6
- data/lib/ory-client/models/successful_self_service_login_without_browser.rb +6 -6
- data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +6 -6
- data/lib/ory-client/models/ui_container.rb +6 -6
- data/lib/ory-client/models/ui_node.rb +6 -6
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +22 -7
- data/lib/ory-client/models/ui_node_attributes.rb +4 -4
- data/lib/ory-client/models/ui_node_image_attributes.rb +45 -10
- data/lib/ory-client/models/ui_node_input_attributes.rb +17 -7
- data/lib/ory-client/models/ui_node_text_attributes.rb +22 -7
- data/lib/ory-client/models/ui_text.rb +6 -6
- data/lib/ory-client/models/verifiable_identity_address.rb +6 -6
- data/lib/ory-client/models/version.rb +6 -6
- data/lib/ory-client/models/volume.rb +6 -6
- data/lib/ory-client/models/volume_usage_data.rb +6 -6
- data/lib/ory-client/version.rb +4 -4
- data/lib/ory-client.rb +15 -6
- data/ory-client.gemspec +3 -3
- data/spec/api/v0alpha2_api_spec.rb +434 -0
- data/spec/api_client_spec.rb +31 -31
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/authenticator_assurance_level_spec.rb +28 -0
- data/spec/models/identity_credentials_type_spec.rb +28 -0
- data/spec/models/session_authentication_method_spec.rb +44 -0
- data/spec/models/session_device_spec.rb +34 -0
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +58 -0
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +52 -0
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +58 -0
- data/spec/spec_helper.rb +2 -2
- metadata +46 -2
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
# nolint:deadcode,unused
|
18
18
|
module SubmitSelfServiceVerificationFlowBody
|
19
19
|
class << self
|
@@ -46,7 +46,7 @@ module OryHydraClient
|
|
46
46
|
klass = openapi_discriminator_mapping[discriminator_value.to_sym]
|
47
47
|
return nil unless klass
|
48
48
|
|
49
|
-
|
49
|
+
OryClient.const_get(klass).build_from_hash(data)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
class SubmitSelfServiceVerificationFlowWithLinkMethodBody
|
18
18
|
# Sending the anti-csrf token is only required for browser login flows.
|
19
19
|
attr_accessor :csrf_token
|
@@ -79,13 +79,13 @@ module OryHydraClient
|
|
79
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
80
80
|
def initialize(attributes = {})
|
81
81
|
if (!attributes.is_a?(Hash))
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::SubmitSelfServiceVerificationFlowWithLinkMethodBody` initialize method"
|
83
83
|
end
|
84
84
|
|
85
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
86
86
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
87
|
if (!self.class.attribute_map.key?(k.to_sym))
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::SubmitSelfServiceVerificationFlowWithLinkMethodBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
89
89
|
end
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
@@ -227,7 +227,7 @@ module OryHydraClient
|
|
227
227
|
end
|
228
228
|
else # model
|
229
229
|
# models (e.g. Pet) or oneOf
|
230
|
-
klass =
|
230
|
+
klass = OryClient.const_get(type)
|
231
231
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
232
232
|
end
|
233
233
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
# The Response for Login Flows via API
|
18
18
|
class SuccessfulSelfServiceLoginWithoutBrowser
|
19
19
|
attr_accessor :session
|
@@ -52,13 +52,13 @@ module OryHydraClient
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
53
|
def initialize(attributes = {})
|
54
54
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::SuccessfulSelfServiceLoginWithoutBrowser` initialize method"
|
56
56
|
end
|
57
57
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::SuccessfulSelfServiceLoginWithoutBrowser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
62
|
end
|
63
63
|
h[k.to_sym] = v
|
64
64
|
}
|
@@ -178,7 +178,7 @@ module OryHydraClient
|
|
178
178
|
end
|
179
179
|
else # model
|
180
180
|
# models (e.g. Pet) or oneOf
|
181
|
-
klass =
|
181
|
+
klass = OryClient.const_get(type)
|
182
182
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
183
183
|
end
|
184
184
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
# The Response for Registration Flows via API
|
18
18
|
class SuccessfulSelfServiceRegistrationWithoutBrowser
|
19
19
|
attr_accessor :identity
|
@@ -56,13 +56,13 @@ module OryHydraClient
|
|
56
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
57
|
def initialize(attributes = {})
|
58
58
|
if (!attributes.is_a?(Hash))
|
59
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::SuccessfulSelfServiceRegistrationWithoutBrowser` initialize method"
|
60
60
|
end
|
61
61
|
|
62
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
63
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::SuccessfulSelfServiceRegistrationWithoutBrowser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
66
|
end
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
@@ -187,7 +187,7 @@ module OryHydraClient
|
|
187
187
|
end
|
188
188
|
else # model
|
189
189
|
# models (e.g. Pet) or oneOf
|
190
|
-
klass =
|
190
|
+
klass = OryClient.const_get(type)
|
191
191
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
192
192
|
end
|
193
193
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
# Container represents a HTML Form. The container can work with both HTTP Form and JSON requests
|
18
18
|
class UiContainer
|
19
19
|
# Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`.
|
@@ -61,13 +61,13 @@ module OryHydraClient
|
|
61
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
62
|
def initialize(attributes = {})
|
63
63
|
if (!attributes.is_a?(Hash))
|
64
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::UiContainer` initialize method"
|
65
65
|
end
|
66
66
|
|
67
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
68
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
69
|
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::UiContainer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
71
|
end
|
72
72
|
h[k.to_sym] = v
|
73
73
|
}
|
@@ -211,7 +211,7 @@ module OryHydraClient
|
|
211
211
|
end
|
212
212
|
else # model
|
213
213
|
# models (e.g. Pet) or oneOf
|
214
|
-
klass =
|
214
|
+
klass = OryClient.const_get(type)
|
215
215
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
216
|
end
|
217
217
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
# Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `<img>` tag, or an `<input element>` but also `some plain text`.
|
18
18
|
class UiNode
|
19
19
|
attr_accessor :attributes
|
@@ -63,13 +63,13 @@ module OryHydraClient
|
|
63
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
64
64
|
def initialize(attributes = {})
|
65
65
|
if (!attributes.is_a?(Hash))
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::UiNode` initialize method"
|
67
67
|
end
|
68
68
|
|
69
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
70
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
71
|
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::UiNode`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
73
|
end
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
@@ -226,7 +226,7 @@ module OryHydraClient
|
|
226
226
|
end
|
227
227
|
else # model
|
228
228
|
# models (e.g. Pet) or oneOf
|
229
|
-
klass =
|
229
|
+
klass = OryClient.const_get(type)
|
230
230
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
231
231
|
end
|
232
232
|
end
|
@@ -3,27 +3,31 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
class UiNodeAnchorAttributes
|
18
18
|
# The link's href (destination) URL. format: uri
|
19
19
|
attr_accessor :href
|
20
20
|
|
21
|
+
# A unique identifier
|
22
|
+
attr_accessor :id
|
23
|
+
|
21
24
|
attr_accessor :title
|
22
25
|
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'href' => :'href',
|
30
|
+
:'id' => :'id',
|
27
31
|
:'title' => :'title'
|
28
32
|
}
|
29
33
|
end
|
@@ -37,6 +41,7 @@ module OryHydraClient
|
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
43
|
:'href' => :'String',
|
44
|
+
:'id' => :'String',
|
40
45
|
:'title' => :'UiText'
|
41
46
|
}
|
42
47
|
end
|
@@ -51,13 +56,13 @@ module OryHydraClient
|
|
51
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
57
|
def initialize(attributes = {})
|
53
58
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::UiNodeAnchorAttributes` initialize method"
|
55
60
|
end
|
56
61
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::UiNodeAnchorAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
66
|
end
|
62
67
|
h[k.to_sym] = v
|
63
68
|
}
|
@@ -66,6 +71,10 @@ module OryHydraClient
|
|
66
71
|
self.href = attributes[:'href']
|
67
72
|
end
|
68
73
|
|
74
|
+
if attributes.key?(:'id')
|
75
|
+
self.id = attributes[:'id']
|
76
|
+
end
|
77
|
+
|
69
78
|
if attributes.key?(:'title')
|
70
79
|
self.title = attributes[:'title']
|
71
80
|
end
|
@@ -79,6 +88,10 @@ module OryHydraClient
|
|
79
88
|
invalid_properties.push('invalid value for "href", href cannot be nil.')
|
80
89
|
end
|
81
90
|
|
91
|
+
if @id.nil?
|
92
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
93
|
+
end
|
94
|
+
|
82
95
|
if @title.nil?
|
83
96
|
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
84
97
|
end
|
@@ -90,6 +103,7 @@ module OryHydraClient
|
|
90
103
|
# @return true if the model is valid
|
91
104
|
def valid?
|
92
105
|
return false if @href.nil?
|
106
|
+
return false if @id.nil?
|
93
107
|
return false if @title.nil?
|
94
108
|
true
|
95
109
|
end
|
@@ -100,6 +114,7 @@ module OryHydraClient
|
|
100
114
|
return true if self.equal?(o)
|
101
115
|
self.class == o.class &&
|
102
116
|
href == o.href &&
|
117
|
+
id == o.id &&
|
103
118
|
title == o.title
|
104
119
|
end
|
105
120
|
|
@@ -112,7 +127,7 @@ module OryHydraClient
|
|
112
127
|
# Calculates hash code according to all attributes.
|
113
128
|
# @return [Integer] Hash code
|
114
129
|
def hash
|
115
|
-
[href, title].hash
|
130
|
+
[href, id, title].hash
|
116
131
|
end
|
117
132
|
|
118
133
|
# Builds the object from hash
|
@@ -182,7 +197,7 @@ module OryHydraClient
|
|
182
197
|
end
|
183
198
|
else # model
|
184
199
|
# models (e.g. Pet) or oneOf
|
185
|
-
klass =
|
200
|
+
klass = OryClient.const_get(type)
|
186
201
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
202
|
end
|
188
203
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
module UiNodeAttributes
|
18
18
|
class << self
|
19
19
|
# List of class defined in oneOf (OpenAPI v3)
|
@@ -83,7 +83,7 @@ module OryHydraClient
|
|
83
83
|
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
84
84
|
end
|
85
85
|
else # model
|
86
|
-
const =
|
86
|
+
const = OryClient.const_get(klass)
|
87
87
|
if const
|
88
88
|
if const.respond_to?(:openapi_one_of) # nested oneOf model
|
89
89
|
model = const.build(data)
|
@@ -3,25 +3,37 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.18
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryClient
|
17
17
|
class UiNodeImageAttributes
|
18
|
+
# Height of the image
|
19
|
+
attr_accessor :height
|
20
|
+
|
21
|
+
# A unique identifier
|
22
|
+
attr_accessor :id
|
23
|
+
|
18
24
|
# The image's source URL. format: uri
|
19
25
|
attr_accessor :src
|
20
26
|
|
27
|
+
# Width of the image
|
28
|
+
attr_accessor :width
|
29
|
+
|
21
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
31
|
def self.attribute_map
|
23
32
|
{
|
24
|
-
:'
|
33
|
+
:'height' => :'height',
|
34
|
+
:'id' => :'id',
|
35
|
+
:'src' => :'src',
|
36
|
+
:'width' => :'width'
|
25
37
|
}
|
26
38
|
end
|
27
39
|
|
@@ -33,7 +45,10 @@ module OryHydraClient
|
|
33
45
|
# Attribute type mapping.
|
34
46
|
def self.openapi_types
|
35
47
|
{
|
36
|
-
:'
|
48
|
+
:'height' => :'Integer',
|
49
|
+
:'id' => :'String',
|
50
|
+
:'src' => :'String',
|
51
|
+
:'width' => :'Integer'
|
37
52
|
}
|
38
53
|
end
|
39
54
|
|
@@ -47,26 +62,42 @@ module OryHydraClient
|
|
47
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
63
|
def initialize(attributes = {})
|
49
64
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::UiNodeImageAttributes` initialize method"
|
51
66
|
end
|
52
67
|
|
53
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::UiNodeImageAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
72
|
end
|
58
73
|
h[k.to_sym] = v
|
59
74
|
}
|
60
75
|
|
76
|
+
if attributes.key?(:'height')
|
77
|
+
self.height = attributes[:'height']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'id')
|
81
|
+
self.id = attributes[:'id']
|
82
|
+
end
|
83
|
+
|
61
84
|
if attributes.key?(:'src')
|
62
85
|
self.src = attributes[:'src']
|
63
86
|
end
|
87
|
+
|
88
|
+
if attributes.key?(:'width')
|
89
|
+
self.width = attributes[:'width']
|
90
|
+
end
|
64
91
|
end
|
65
92
|
|
66
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
67
94
|
# @return Array for valid properties with the reasons
|
68
95
|
def list_invalid_properties
|
69
96
|
invalid_properties = Array.new
|
97
|
+
if @id.nil?
|
98
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
99
|
+
end
|
100
|
+
|
70
101
|
if @src.nil?
|
71
102
|
invalid_properties.push('invalid value for "src", src cannot be nil.')
|
72
103
|
end
|
@@ -77,6 +108,7 @@ module OryHydraClient
|
|
77
108
|
# Check to see if the all the properties in the model are valid
|
78
109
|
# @return true if the model is valid
|
79
110
|
def valid?
|
111
|
+
return false if @id.nil?
|
80
112
|
return false if @src.nil?
|
81
113
|
true
|
82
114
|
end
|
@@ -86,7 +118,10 @@ module OryHydraClient
|
|
86
118
|
def ==(o)
|
87
119
|
return true if self.equal?(o)
|
88
120
|
self.class == o.class &&
|
89
|
-
|
121
|
+
height == o.height &&
|
122
|
+
id == o.id &&
|
123
|
+
src == o.src &&
|
124
|
+
width == o.width
|
90
125
|
end
|
91
126
|
|
92
127
|
# @see the `==` method
|
@@ -98,7 +133,7 @@ module OryHydraClient
|
|
98
133
|
# Calculates hash code according to all attributes.
|
99
134
|
# @return [Integer] Hash code
|
100
135
|
def hash
|
101
|
-
[src].hash
|
136
|
+
[height, id, src, width].hash
|
102
137
|
end
|
103
138
|
|
104
139
|
# Builds the object from hash
|
@@ -168,7 +203,7 @@ module OryHydraClient
|
|
168
203
|
end
|
169
204
|
else # model
|
170
205
|
# models (e.g. Pet) or oneOf
|
171
|
-
klass =
|
206
|
+
klass = OryClient.const_get(type)
|
172
207
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
208
|
end
|
174
209
|
end
|