ory-kratos-client 0.5.5.alpha2 → 0.6.0.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +85 -36
- data/docs/AdminApi.md +206 -20
- data/docs/AuthenticateOKBody.md +20 -0
- data/docs/ContainerChangeResponseItem.md +20 -0
- data/docs/ContainerCreateCreatedBody.md +20 -0
- data/docs/ContainerTopOKBody.md +20 -0
- data/docs/ContainerUpdateOKBody.md +18 -0
- data/docs/ContainerWaitOKBody.md +20 -0
- data/docs/ContainerWaitOKBodyError.md +18 -0
- data/docs/ErrorContainer.md +1 -1
- data/docs/ErrorResponse.md +18 -0
- data/docs/GenericErrorPayload.md +1 -1
- data/docs/GraphDriverData.md +20 -0
- data/docs/IdResponse.md +18 -0
- data/docs/IdentityCredentials.md +22 -0
- data/docs/ImageDeleteResponseItem.md +20 -0
- data/docs/ImageSummary.md +36 -0
- data/docs/InlineResponse200.md +18 -0
- data/docs/InlineResponse2001.md +18 -0
- data/docs/InlineResponse503.md +18 -0
- data/docs/LoginFlow.md +5 -7
- data/docs/Meta.md +18 -0
- data/docs/Plugin.md +28 -0
- data/docs/PluginConfig.md +48 -0
- data/docs/PluginConfigArgs.md +24 -0
- data/docs/PluginConfigInterface.md +20 -0
- data/docs/PluginConfigLinux.md +22 -0
- data/docs/PluginConfigNetwork.md +18 -0
- data/docs/PluginConfigRootfs.md +20 -0
- data/docs/PluginConfigUser.md +20 -0
- data/docs/PluginDevice.md +24 -0
- data/docs/PluginEnv.md +24 -0
- data/docs/PluginInterfaceType.md +22 -0
- data/docs/PluginMount.md +30 -0
- data/docs/PluginSettings.md +24 -0
- data/docs/Port.md +24 -0
- data/docs/PublicApi.md +481 -552
- data/docs/RecoveryFlow.md +4 -6
- data/docs/RegistrationFlow.md +4 -6
- data/docs/ServiceUpdateResponse.md +18 -0
- data/docs/SettingsFlow.md +4 -6
- data/docs/{RecoveryFlowMethodConfig.md → SettingsProfileFormConfig.md} +6 -6
- data/docs/SubmitSelfServiceBrowserSettingsOIDCFlowPayload.md +22 -0
- data/docs/SubmitSelfServiceLoginFlow.md +47 -0
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethod.md +24 -0
- data/docs/{CompleteSelfServiceRecoveryFlowWithLinkMethod.md → SubmitSelfServiceRecoveryFlowWithLinkMethod.md} +2 -2
- data/docs/SubmitSelfServiceRegistrationFlow.md +47 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethod.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlow.md +49 -0
- data/docs/{CompleteSelfServiceSettingsFlowWithPasswordMethod.md → SubmitSelfServiceSettingsFlowWithPasswordMethod.md} +4 -2
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethod.md +22 -0
- data/docs/{CompleteSelfServiceVerificationFlowWithLinkMethod.md → SubmitSelfServiceVerificationFlowWithLinkMethod.md} +2 -2
- data/docs/{SettingsFlowMethodConfig.md → UiContainer.md} +6 -6
- data/docs/UiNode.md +26 -0
- data/docs/UiNodeAnchorAttributes.md +20 -0
- data/docs/UiNodeAttributes.md +53 -0
- data/docs/UiNodeImageAttributes.md +18 -0
- data/docs/UiNodeInputAttributes.md +30 -0
- data/docs/UiNodeInputAttributesValue.md +51 -0
- data/docs/UiNodeTextAttributes.md +18 -0
- data/docs/UiText.md +24 -0
- data/docs/VerificationFlow.md +6 -8
- data/docs/Volume.md +34 -0
- data/docs/VolumeUsageData.md +20 -0
- data/lib/ory-kratos-client.rb +59 -23
- data/lib/ory-kratos-client/api/admin_api.rb +207 -36
- data/lib/ory-kratos-client/api/public_api.rb +494 -538
- data/lib/ory-kratos-client/api_client.rb +6 -6
- data/lib/ory-kratos-client/api_error.rb +5 -5
- data/lib/ory-kratos-client/configuration.rb +36 -13
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +240 -0
- data/lib/ory-kratos-client/models/container_change_response_item.rb +240 -0
- data/lib/ory-kratos-client/models/container_create_created_body.rb +242 -0
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +244 -0
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +227 -0
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +239 -0
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +220 -0
- data/lib/ory-kratos-client/models/create_identity.rb +5 -5
- data/lib/ory-kratos-client/models/create_recovery_link.rb +5 -5
- data/lib/ory-kratos-client/models/error_container.rb +9 -7
- data/lib/ory-kratos-client/models/{registration_flow_method.rb → error_response.rb} +19 -33
- data/lib/ory-kratos-client/models/generic_error.rb +5 -5
- data/lib/ory-kratos-client/models/generic_error_payload.rb +9 -7
- data/lib/ory-kratos-client/models/graph_driver_data.rb +241 -0
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +5 -5
- data/lib/ory-kratos-client/models/health_status.rb +5 -5
- data/lib/ory-kratos-client/models/id_response.rb +225 -0
- data/lib/ory-kratos-client/models/identity.rb +5 -5
- data/lib/ory-kratos-client/models/identity_credentials.rb +241 -0
- data/lib/ory-kratos-client/models/{complete_self_service_login_flow_with_password_method.rb → image_delete_response_item.rb} +24 -33
- data/lib/ory-kratos-client/models/image_summary.rb +366 -0
- data/lib/ory-kratos-client/models/{recovery_flow_method.rb → inline_response200.rb} +19 -33
- data/lib/ory-kratos-client/models/{settings_flow_method.rb → inline_response2001.rb} +19 -33
- data/lib/ory-kratos-client/models/inline_response503.rb +226 -0
- data/lib/ory-kratos-client/models/login_flow.rb +29 -38
- data/lib/ory-kratos-client/models/login_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/meta.rb +219 -0
- data/lib/ory-kratos-client/models/plugin.rb +288 -0
- data/lib/ory-kratos-client/models/plugin_config.rb +434 -0
- data/lib/ory-kratos-client/models/plugin_config_args.rb +274 -0
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +242 -0
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +259 -0
- data/lib/ory-kratos-client/models/{message.rb → plugin_config_network.rb} +17 -38
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +232 -0
- data/lib/ory-kratos-client/models/plugin_config_user.rb +230 -0
- data/lib/ory-kratos-client/models/plugin_device.rb +272 -0
- data/lib/ory-kratos-client/models/plugin_env.rb +272 -0
- data/lib/ory-kratos-client/models/{settings_flow_method_config.rb → plugin_interface_type.rb} +40 -52
- data/lib/ory-kratos-client/models/plugin_mount.rb +319 -0
- data/lib/ory-kratos-client/models/plugin_settings.rb +277 -0
- data/lib/ory-kratos-client/models/port.rb +260 -0
- data/lib/ory-kratos-client/models/recovery_address.rb +5 -5
- data/lib/ory-kratos-client/models/recovery_flow.rb +24 -38
- data/lib/ory-kratos-client/models/recovery_link.rb +5 -5
- data/lib/ory-kratos-client/models/registration_flow.rb +24 -38
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/revoke_session.rb +5 -5
- data/lib/ory-kratos-client/models/service_update_response.rb +222 -0
- data/lib/ory-kratos-client/models/session.rb +5 -5
- data/lib/ory-kratos-client/models/settings_flow.rb +24 -38
- data/lib/ory-kratos-client/models/{login_flow_method_config.rb → settings_profile_form_config.rb} +22 -35
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +239 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +104 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +249 -0
- data/lib/ory-kratos-client/models/{complete_self_service_recovery_flow_with_link_method.rb → submit_self_service_recovery_flow_with_link_method.rb} +8 -8
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +104 -0
- data/lib/ory-kratos-client/models/{recovery_flow_method_config.rb → submit_self_service_registration_flow_with_password_method.rb} +38 -50
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +105 -0
- data/lib/ory-kratos-client/models/{complete_self_service_settings_flow_with_password_method.rb → submit_self_service_settings_flow_with_password_method.rb} +19 -9
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +245 -0
- data/lib/ory-kratos-client/models/{complete_self_service_verification_flow_with_link_method.rb → submit_self_service_verification_flow_with_link_method.rb} +9 -8
- data/lib/ory-kratos-client/models/{registration_flow_method_config.rb → ui_container.rb} +23 -35
- data/lib/ory-kratos-client/models/ui_node.rb +282 -0
- data/lib/ory-kratos-client/models/{verification_flow_method.rb → ui_node_anchor_attributes.rb} +28 -28
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +107 -0
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +224 -0
- data/lib/ory-kratos-client/models/{form_field.rb → ui_node_input_attributes.rb} +26 -25
- data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +106 -0
- data/lib/ory-kratos-client/models/{login_flow_method.rb → ui_node_text_attributes.rb} +18 -33
- data/lib/ory-kratos-client/models/{verification_flow_method_config.rb → ui_text.rb} +44 -49
- data/lib/ory-kratos-client/models/update_identity.rb +5 -5
- data/lib/ory-kratos-client/models/verifiable_address.rb +5 -5
- data/lib/ory-kratos-client/models/verification_flow.rb +32 -36
- data/lib/ory-kratos-client/models/version.rb +5 -5
- data/lib/ory-kratos-client/models/volume.rb +335 -0
- data/lib/ory-kratos-client/models/volume_usage_data.rb +240 -0
- data/lib/ory-kratos-client/version.rb +6 -6
- data/ory-kratos-client.gemspec +7 -7
- data/spec/api/admin_api_spec.rb +134 -41
- data/spec/api/public_api_spec.rb +268 -37
- data/spec/api_client_spec.rb +5 -5
- data/spec/configuration_spec.rb +8 -8
- data/spec/models/authenticate_ok_body_spec.rb +40 -0
- data/spec/models/container_change_response_item_spec.rb +40 -0
- data/spec/models/container_create_created_body_spec.rb +40 -0
- data/spec/models/container_top_ok_body_spec.rb +40 -0
- data/spec/models/container_update_ok_body_spec.rb +34 -0
- data/spec/models/container_wait_ok_body_error_spec.rb +34 -0
- data/spec/models/container_wait_ok_body_spec.rb +40 -0
- data/spec/models/create_identity_spec.rb +8 -15
- data/spec/models/create_recovery_link_spec.rb +8 -15
- data/spec/models/error_container_spec.rb +8 -15
- data/spec/models/error_response_spec.rb +34 -0
- data/spec/models/generic_error_payload_spec.rb +8 -15
- data/spec/models/generic_error_spec.rb +8 -33
- data/spec/models/graph_driver_data_spec.rb +40 -0
- data/spec/models/health_not_ready_status_spec.rb +8 -15
- data/spec/models/health_status_spec.rb +8 -15
- data/spec/models/id_response_spec.rb +34 -0
- data/spec/models/identity_credentials_spec.rb +46 -0
- data/spec/models/identity_spec.rb +27 -16
- data/spec/models/image_delete_response_item_spec.rb +40 -0
- data/spec/models/image_summary_spec.rb +88 -0
- data/spec/models/inline_response2001_spec.rb +34 -0
- data/spec/models/inline_response200_spec.rb +34 -0
- data/spec/models/inline_response503_spec.rb +34 -0
- data/spec/models/login_flow_spec.rb +11 -24
- data/spec/models/login_via_api_response_spec.rb +8 -15
- data/spec/models/meta_spec.rb +34 -0
- data/spec/models/plugin_config_args_spec.rb +52 -0
- data/spec/models/plugin_config_interface_spec.rb +40 -0
- data/spec/models/plugin_config_linux_spec.rb +46 -0
- data/spec/models/plugin_config_network_spec.rb +34 -0
- data/spec/models/plugin_config_rootfs_spec.rb +40 -0
- data/spec/models/plugin_config_spec.rb +124 -0
- data/spec/models/plugin_config_user_spec.rb +40 -0
- data/spec/models/plugin_device_spec.rb +52 -0
- data/spec/models/plugin_env_spec.rb +52 -0
- data/spec/models/plugin_interface_type_spec.rb +46 -0
- data/spec/models/{settings_request_spec.rb → plugin_mount_spec.rb} +18 -31
- data/spec/models/plugin_settings_spec.rb +52 -0
- data/spec/models/{registration_request_spec.rb → plugin_spec.rb} +16 -23
- data/spec/models/port_spec.rb +52 -0
- data/spec/models/recovery_address_spec.rb +8 -15
- data/spec/models/recovery_flow_spec.rb +12 -25
- data/spec/models/recovery_link_spec.rb +8 -15
- data/spec/models/registration_flow_spec.rb +11 -24
- data/spec/models/registration_via_api_response_spec.rb +8 -15
- data/spec/models/revoke_session_spec.rb +8 -15
- data/spec/models/service_update_response_spec.rb +34 -0
- data/spec/models/session_spec.rb +17 -18
- data/spec/models/settings_flow_spec.rb +12 -25
- data/spec/models/settings_profile_form_config_spec.rb +52 -0
- data/spec/models/settings_via_api_response_spec.rb +8 -15
- data/spec/models/submit_self_service_browser_settings_oidc_flow_payload_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_login_flow_with_password_method_spec.rb +52 -0
- data/spec/models/submit_self_service_recovery_flow_with_link_method_spec.rb +40 -0
- data/spec/models/submit_self_service_registration_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_registration_flow_with_password_method_spec.rb +46 -0
- data/spec/models/submit_self_service_settings_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_settings_flow_with_password_method_spec.rb +46 -0
- data/spec/models/submit_self_service_settings_flow_with_profile_method_spec.rb +46 -0
- data/spec/models/submit_self_service_verification_flow_with_link_method_spec.rb +40 -0
- data/spec/models/{registration_flow_method_config_spec.rb → ui_container_spec.rb} +12 -25
- data/spec/models/ui_node_anchor_attributes_spec.rb +40 -0
- data/spec/models/ui_node_attributes_spec.rb +31 -0
- data/spec/models/ui_node_image_attributes_spec.rb +34 -0
- data/spec/models/{verification_request_spec.rb → ui_node_input_attributes_spec.rb} +18 -25
- data/spec/models/ui_node_input_attributes_value_spec.rb +31 -0
- data/spec/models/{login_flow_method_config_spec.rb → ui_node_spec.rb} +15 -22
- data/spec/models/ui_node_text_attributes_spec.rb +34 -0
- data/spec/models/{message_spec.rb → ui_text_spec.rb} +11 -18
- data/spec/models/update_identity_spec.rb +8 -15
- data/spec/models/verifiable_address_spec.rb +10 -17
- data/spec/models/verification_flow_spec.rb +12 -25
- data/spec/models/version_spec.rb +8 -15
- data/spec/models/{recovery_request_spec.rb → volume_spec.rb} +24 -25
- data/spec/models/volume_usage_data_spec.rb +40 -0
- data/spec/spec_helper.rb +5 -5
- metadata +225 -160
- data/docs/CommonApi.md +0 -345
- data/docs/CompleteSelfServiceBrowserProfileManagementFlowPayload.md +0 -17
- data/docs/CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload.md +0 -19
- data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +0 -22
- data/docs/Error.md +0 -17
- data/docs/Form.md +0 -23
- data/docs/FormField.md +0 -30
- data/docs/HealthApi.md +0 -131
- data/docs/LoginFlowMethod.md +0 -20
- data/docs/LoginFlowMethodConfig.md +0 -26
- data/docs/LoginRequest.md +0 -31
- data/docs/LoginRequestMethod.md +0 -19
- data/docs/LoginRequestMethodConfig.md +0 -25
- data/docs/Message.md +0 -24
- data/docs/OidcStrategyCredentialsConfig.md +0 -19
- data/docs/OidcStrategyRequestMethod.md +0 -25
- data/docs/ProfileManagementRequest.md +0 -29
- data/docs/ProviderCredentialsConfig.md +0 -19
- data/docs/RecoveryFlowMethod.md +0 -20
- data/docs/RecoveryRequest.md +0 -31
- data/docs/RecoveryRequestMethod.md +0 -19
- data/docs/RegistrationFlowMethod.md +0 -20
- data/docs/RegistrationFlowMethodConfig.md +0 -26
- data/docs/RegistrationRequest.md +0 -29
- data/docs/RegistrationRequestMethod.md +0 -19
- data/docs/RegistrationRequestMethodConfig.md +0 -25
- data/docs/RequestMethodConfig.md +0 -23
- data/docs/SettingsFlowMethod.md +0 -20
- data/docs/SettingsRequest.md +0 -33
- data/docs/SettingsRequestMethod.md +0 -19
- data/docs/VerificationFlowMethod.md +0 -20
- data/docs/VerificationFlowMethodConfig.md +0 -24
- data/docs/VerificationRequest.md +0 -31
- data/docs/VersionApi.md +0 -69
- data/lib/ory-kratos-client/api/common_api.rb +0 -456
- data/lib/ory-kratos-client/api/health_api.rb +0 -136
- data/lib/ory-kratos-client/api/version_api.rb +0 -79
- data/lib/ory-kratos-client/models/complete_self_service_browser_profile_management_flow_payload.rb +0 -212
- data/lib/ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload.rb +0 -222
- data/lib/ory-kratos-client/models/error.rb +0 -207
- data/lib/ory-kratos-client/models/form.rb +0 -256
- data/lib/ory-kratos-client/models/login_request.rb +0 -304
- data/lib/ory-kratos-client/models/login_request_method.rb +0 -226
- data/lib/ory-kratos-client/models/login_request_method_config.rb +0 -267
- data/lib/ory-kratos-client/models/oidc_strategy_credentials_config.rb +0 -215
- data/lib/ory-kratos-client/models/oidc_strategy_request_method.rb +0 -252
- data/lib/ory-kratos-client/models/profile_management_request.rb +0 -300
- data/lib/ory-kratos-client/models/provider_credentials_config.rb +0 -215
- data/lib/ory-kratos-client/models/recovery_request.rb +0 -309
- data/lib/ory-kratos-client/models/recovery_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/registration_request.rb +0 -294
- data/lib/ory-kratos-client/models/registration_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/registration_request_method_config.rb +0 -267
- data/lib/ory-kratos-client/models/request_method_config.rb +0 -255
- data/lib/ory-kratos-client/models/settings_request.rb +0 -323
- data/lib/ory-kratos-client/models/settings_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/verification_request.rb +0 -276
- data/spec/api/common_api_spec.rb +0 -83
- data/spec/api/health_api_spec.rb +0 -57
- data/spec/api/version_api_spec.rb +0 -46
- data/spec/models/complete_self_service_browser_profile_management_flow_payload_spec.rb +0 -41
- data/spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb +0 -47
- data/spec/models/complete_self_service_login_flow_with_password_method_spec.rb +0 -53
- data/spec/models/complete_self_service_recovery_flow_with_link_method_spec.rb +0 -47
- data/spec/models/complete_self_service_settings_flow_with_password_method_spec.rb +0 -47
- data/spec/models/complete_self_service_verification_flow_with_link_method_spec.rb +0 -47
- data/spec/models/error_spec.rb +0 -41
- data/spec/models/form_field_spec.rb +0 -65
- data/spec/models/form_spec.rb +0 -59
- data/spec/models/login_flow_method_spec.rb +0 -47
- data/spec/models/login_request_method_config_spec.rb +0 -35
- data/spec/models/login_request_method_spec.rb +0 -47
- data/spec/models/login_request_spec.rb +0 -71
- data/spec/models/oidc_strategy_credentials_config_spec.rb +0 -47
- data/spec/models/oidc_strategy_request_method_spec.rb +0 -65
- data/spec/models/profile_management_request_spec.rb +0 -77
- data/spec/models/provider_credentials_config_spec.rb +0 -47
- data/spec/models/recovery_flow_method_config_spec.rb +0 -59
- data/spec/models/recovery_flow_method_spec.rb +0 -47
- data/spec/models/recovery_request_method_spec.rb +0 -47
- data/spec/models/registration_flow_method_spec.rb +0 -47
- data/spec/models/registration_request_method_config_spec.rb +0 -35
- data/spec/models/registration_request_method_spec.rb +0 -47
- data/spec/models/request_method_config_spec.rb +0 -59
- data/spec/models/settings_flow_method_config_spec.rb +0 -59
- data/spec/models/settings_flow_method_spec.rb +0 -47
- data/spec/models/settings_request_method_spec.rb +0 -47
- data/spec/models/verification_flow_method_config_spec.rb +0 -59
- data/spec/models/verification_flow_method_spec.rb +0 -47
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#Ory Kratos
|
2
|
+
#Ory Kratos API
|
3
3
|
|
4
|
-
#
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v0.5.5-alpha.2
|
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.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: v0.6.0-alpha.4
|
7
|
+
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,33 +14,31 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OryHydraClient
|
17
|
-
#
|
18
|
-
class
|
19
|
-
#
|
17
|
+
# InputAttributes represents the attributes of an input node
|
18
|
+
class UiNodeInputAttributes
|
19
|
+
# Sets the input's disabled field to true or false.
|
20
20
|
attr_accessor :disabled
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :label
|
23
23
|
|
24
|
-
#
|
24
|
+
# The input's element name.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
-
#
|
27
|
+
# The input's pattern.
|
28
28
|
attr_accessor :pattern
|
29
29
|
|
30
|
-
#
|
30
|
+
# Mark this input field as required.
|
31
31
|
attr_accessor :required
|
32
32
|
|
33
|
-
# Type is the equivalent of `<input type=\"{{.Type}}\">`
|
34
33
|
attr_accessor :type
|
35
34
|
|
36
|
-
# Value is the equivalent of `<input value=\"{{.Value}}\">`
|
37
35
|
attr_accessor :value
|
38
36
|
|
39
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
38
|
def self.attribute_map
|
41
39
|
{
|
42
40
|
:'disabled' => :'disabled',
|
43
|
-
:'
|
41
|
+
:'label' => :'label',
|
44
42
|
:'name' => :'name',
|
45
43
|
:'pattern' => :'pattern',
|
46
44
|
:'required' => :'required',
|
@@ -58,12 +56,12 @@ module OryHydraClient
|
|
58
56
|
def self.openapi_types
|
59
57
|
{
|
60
58
|
:'disabled' => :'Boolean',
|
61
|
-
:'
|
59
|
+
:'label' => :'UiText',
|
62
60
|
:'name' => :'String',
|
63
61
|
:'pattern' => :'String',
|
64
62
|
:'required' => :'Boolean',
|
65
63
|
:'type' => :'String',
|
66
|
-
:'value' => :'
|
64
|
+
:'value' => :'UiNodeInputAttributesValue'
|
67
65
|
}
|
68
66
|
end
|
69
67
|
|
@@ -77,13 +75,13 @@ module OryHydraClient
|
|
77
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
78
76
|
def initialize(attributes = {})
|
79
77
|
if (!attributes.is_a?(Hash))
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::UiNodeInputAttributes` initialize method"
|
81
79
|
end
|
82
80
|
|
83
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
82
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
83
|
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::UiNodeInputAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
85
|
end
|
88
86
|
h[k.to_sym] = v
|
89
87
|
}
|
@@ -92,10 +90,8 @@ module OryHydraClient
|
|
92
90
|
self.disabled = attributes[:'disabled']
|
93
91
|
end
|
94
92
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
|
97
|
-
self.messages = value
|
98
|
-
end
|
93
|
+
if attributes.key?(:'label')
|
94
|
+
self.label = attributes[:'label']
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'name')
|
@@ -123,6 +119,10 @@ module OryHydraClient
|
|
123
119
|
# @return Array for valid properties with the reasons
|
124
120
|
def list_invalid_properties
|
125
121
|
invalid_properties = Array.new
|
122
|
+
if @disabled.nil?
|
123
|
+
invalid_properties.push('invalid value for "disabled", disabled cannot be nil.')
|
124
|
+
end
|
125
|
+
|
126
126
|
if @name.nil?
|
127
127
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
128
128
|
end
|
@@ -137,6 +137,7 @@ module OryHydraClient
|
|
137
137
|
# Check to see if the all the properties in the model are valid
|
138
138
|
# @return true if the model is valid
|
139
139
|
def valid?
|
140
|
+
return false if @disabled.nil?
|
140
141
|
return false if @name.nil?
|
141
142
|
return false if @type.nil?
|
142
143
|
true
|
@@ -148,7 +149,7 @@ module OryHydraClient
|
|
148
149
|
return true if self.equal?(o)
|
149
150
|
self.class == o.class &&
|
150
151
|
disabled == o.disabled &&
|
151
|
-
|
152
|
+
label == o.label &&
|
152
153
|
name == o.name &&
|
153
154
|
pattern == o.pattern &&
|
154
155
|
required == o.required &&
|
@@ -165,7 +166,7 @@ module OryHydraClient
|
|
165
166
|
# Calculates hash code according to all attributes.
|
166
167
|
# @return [Integer] Hash code
|
167
168
|
def hash
|
168
|
-
[disabled,
|
169
|
+
[disabled, label, name, pattern, required, type, value].hash
|
169
170
|
end
|
170
171
|
|
171
172
|
# Builds the object from hash
|
@@ -0,0 +1,106 @@
|
|
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.6.0-alpha.4
|
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
|
+
module UiNodeInputAttributesValue
|
18
|
+
class << self
|
19
|
+
# List of class defined in oneOf (OpenAPI v3)
|
20
|
+
def openapi_one_of
|
21
|
+
[
|
22
|
+
:'Boolean',
|
23
|
+
:'Float',
|
24
|
+
:'String'
|
25
|
+
]
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the object
|
29
|
+
# @param [Mixed] Data to be matched against the list of oneOf items
|
30
|
+
# @return [Object] Returns the model or the data itself
|
31
|
+
def build(data)
|
32
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
33
|
+
# Note:
|
34
|
+
# - We do not attempt to check whether exactly one item matches.
|
35
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
36
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
37
|
+
# - TODO: scalar values are defacto behaving as if they were nullable.
|
38
|
+
# - TODO: logging when debugging is set.
|
39
|
+
openapi_one_of.each do |klass|
|
40
|
+
begin
|
41
|
+
next if klass == :AnyType # "nullable: true"
|
42
|
+
typed_data = find_and_cast_into_type(klass, data)
|
43
|
+
return typed_data if typed_data
|
44
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
openapi_one_of.include?(:AnyType) ? data : nil
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
SchemaMismatchError = Class.new(StandardError)
|
54
|
+
|
55
|
+
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
56
|
+
def find_and_cast_into_type(klass, data)
|
57
|
+
return if data.nil?
|
58
|
+
|
59
|
+
case klass.to_s
|
60
|
+
when 'Boolean'
|
61
|
+
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
62
|
+
when 'Float'
|
63
|
+
return data if data.instance_of?(Float)
|
64
|
+
when 'Integer'
|
65
|
+
return data if data.instance_of?(Integer)
|
66
|
+
when 'Time'
|
67
|
+
return Time.parse(data)
|
68
|
+
when 'Date'
|
69
|
+
return Date.parse(data)
|
70
|
+
when 'String'
|
71
|
+
return data if data.instance_of?(String)
|
72
|
+
when 'Object' # "type: object"
|
73
|
+
return data if data.instance_of?(Hash)
|
74
|
+
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
75
|
+
if data.instance_of?(Array)
|
76
|
+
sub_type = Regexp.last_match[:sub_type]
|
77
|
+
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
78
|
+
end
|
79
|
+
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
80
|
+
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
81
|
+
sub_type = Regexp.last_match[:sub_type]
|
82
|
+
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
83
|
+
end
|
84
|
+
else # model
|
85
|
+
const = OryHydraClient.const_get(klass)
|
86
|
+
if const
|
87
|
+
if const.respond_to?(:openapi_one_of) # nested oneOf model
|
88
|
+
model = const.build(data)
|
89
|
+
return model if model
|
90
|
+
else
|
91
|
+
# raise if data contains keys that are not known to the model
|
92
|
+
raise unless (data.keys - const.acceptable_attributes).empty?
|
93
|
+
model = const.build_from_hash(data)
|
94
|
+
return model if model && model.valid?
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
raise # if no match by now, raise
|
100
|
+
rescue
|
101
|
+
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#Ory Kratos
|
2
|
+
#Ory Kratos API
|
3
3
|
|
4
|
-
#
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v0.5.5-alpha.2
|
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.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: v0.6.0-alpha.4
|
7
|
+
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,17 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OryHydraClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
# and so on.
|
21
|
-
attr_accessor :method
|
17
|
+
class UiNodeTextAttributes
|
18
|
+
attr_accessor :text
|
22
19
|
|
23
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
21
|
def self.attribute_map
|
25
22
|
{
|
26
|
-
:'
|
27
|
-
:'method' => :'method'
|
23
|
+
:'text' => :'text'
|
28
24
|
}
|
29
25
|
end
|
30
26
|
|
@@ -36,8 +32,7 @@ module OryHydraClient
|
|
36
32
|
# Attribute type mapping.
|
37
33
|
def self.openapi_types
|
38
34
|
{
|
39
|
-
:'
|
40
|
-
:'method' => :'String'
|
35
|
+
:'text' => :'UiText'
|
41
36
|
}
|
42
37
|
end
|
43
38
|
|
@@ -51,23 +46,19 @@ module OryHydraClient
|
|
51
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
47
|
def initialize(attributes = {})
|
53
48
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::UiNodeTextAttributes` initialize method"
|
55
50
|
end
|
56
51
|
|
57
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::UiNodeTextAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
56
|
end
|
62
57
|
h[k.to_sym] = v
|
63
58
|
}
|
64
59
|
|
65
|
-
if attributes.key?(:'
|
66
|
-
self.
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes.key?(:'method')
|
70
|
-
self.method = attributes[:'method']
|
60
|
+
if attributes.key?(:'text')
|
61
|
+
self.text = attributes[:'text']
|
71
62
|
end
|
72
63
|
end
|
73
64
|
|
@@ -75,12 +66,8 @@ module OryHydraClient
|
|
75
66
|
# @return Array for valid properties with the reasons
|
76
67
|
def list_invalid_properties
|
77
68
|
invalid_properties = Array.new
|
78
|
-
if @
|
79
|
-
invalid_properties.push('invalid value for "
|
80
|
-
end
|
81
|
-
|
82
|
-
if @method.nil?
|
83
|
-
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
69
|
+
if @text.nil?
|
70
|
+
invalid_properties.push('invalid value for "text", text cannot be nil.')
|
84
71
|
end
|
85
72
|
|
86
73
|
invalid_properties
|
@@ -89,8 +76,7 @@ module OryHydraClient
|
|
89
76
|
# Check to see if the all the properties in the model are valid
|
90
77
|
# @return true if the model is valid
|
91
78
|
def valid?
|
92
|
-
return false if @
|
93
|
-
return false if @method.nil?
|
79
|
+
return false if @text.nil?
|
94
80
|
true
|
95
81
|
end
|
96
82
|
|
@@ -99,8 +85,7 @@ module OryHydraClient
|
|
99
85
|
def ==(o)
|
100
86
|
return true if self.equal?(o)
|
101
87
|
self.class == o.class &&
|
102
|
-
|
103
|
-
method == o.method
|
88
|
+
text == o.text
|
104
89
|
end
|
105
90
|
|
106
91
|
# @see the `==` method
|
@@ -112,7 +97,7 @@ module OryHydraClient
|
|
112
97
|
# Calculates hash code according to all attributes.
|
113
98
|
# @return [Integer] Hash code
|
114
99
|
def hash
|
115
|
-
[
|
100
|
+
[text].hash
|
116
101
|
end
|
117
102
|
|
118
103
|
# Builds the object from hash
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#Ory Kratos
|
2
|
+
#Ory Kratos API
|
3
3
|
|
4
|
-
#
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v0.5.5-alpha.2
|
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.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: v0.6.0-alpha.4
|
7
|
+
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,25 +14,24 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OryHydraClient
|
17
|
-
class
|
18
|
-
#
|
19
|
-
attr_accessor :
|
17
|
+
class UiText
|
18
|
+
# The message's context. Useful when customizing messages.
|
19
|
+
attr_accessor :context
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :fields
|
21
|
+
attr_accessor :id
|
23
22
|
|
24
|
-
|
23
|
+
# The message text. Written in american english.
|
24
|
+
attr_accessor :text
|
25
25
|
|
26
|
-
|
27
|
-
attr_accessor :method
|
26
|
+
attr_accessor :type
|
28
27
|
|
29
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
29
|
def self.attribute_map
|
31
30
|
{
|
32
|
-
:'
|
33
|
-
:'
|
34
|
-
:'
|
35
|
-
:'
|
31
|
+
:'context' => :'context',
|
32
|
+
:'id' => :'id',
|
33
|
+
:'text' => :'text',
|
34
|
+
:'type' => :'type'
|
36
35
|
}
|
37
36
|
end
|
38
37
|
|
@@ -44,10 +43,10 @@ module OryHydraClient
|
|
44
43
|
# Attribute type mapping.
|
45
44
|
def self.openapi_types
|
46
45
|
{
|
47
|
-
:'
|
48
|
-
:'
|
49
|
-
:'
|
50
|
-
:'
|
46
|
+
:'context' => :'Object',
|
47
|
+
:'id' => :'Integer',
|
48
|
+
:'text' => :'String',
|
49
|
+
:'type' => :'String'
|
51
50
|
}
|
52
51
|
end
|
53
52
|
|
@@ -61,35 +60,31 @@ module OryHydraClient
|
|
61
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
61
|
def initialize(attributes = {})
|
63
62
|
if (!attributes.is_a?(Hash))
|
64
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::UiText` initialize method"
|
65
64
|
end
|
66
65
|
|
67
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
68
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::UiText`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
70
|
end
|
72
71
|
h[k.to_sym] = v
|
73
72
|
}
|
74
73
|
|
75
|
-
if attributes.key?(:'
|
76
|
-
self.
|
74
|
+
if attributes.key?(:'context')
|
75
|
+
self.context = attributes[:'context']
|
77
76
|
end
|
78
77
|
|
79
|
-
if attributes.key?(:'
|
80
|
-
|
81
|
-
self.fields = value
|
82
|
-
end
|
78
|
+
if attributes.key?(:'id')
|
79
|
+
self.id = attributes[:'id']
|
83
80
|
end
|
84
81
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
|
87
|
-
self.messages = value
|
88
|
-
end
|
82
|
+
if attributes.key?(:'text')
|
83
|
+
self.text = attributes[:'text']
|
89
84
|
end
|
90
85
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
86
|
+
if attributes.key?(:'type')
|
87
|
+
self.type = attributes[:'type']
|
93
88
|
end
|
94
89
|
end
|
95
90
|
|
@@ -97,16 +92,16 @@ module OryHydraClient
|
|
97
92
|
# @return Array for valid properties with the reasons
|
98
93
|
def list_invalid_properties
|
99
94
|
invalid_properties = Array.new
|
100
|
-
if @
|
101
|
-
invalid_properties.push('invalid value for "
|
95
|
+
if @id.nil?
|
96
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
102
97
|
end
|
103
98
|
|
104
|
-
if @
|
105
|
-
invalid_properties.push('invalid value for "
|
99
|
+
if @text.nil?
|
100
|
+
invalid_properties.push('invalid value for "text", text cannot be nil.')
|
106
101
|
end
|
107
102
|
|
108
|
-
if @
|
109
|
-
invalid_properties.push('invalid value for "
|
103
|
+
if @type.nil?
|
104
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
110
105
|
end
|
111
106
|
|
112
107
|
invalid_properties
|
@@ -115,9 +110,9 @@ module OryHydraClient
|
|
115
110
|
# Check to see if the all the properties in the model are valid
|
116
111
|
# @return true if the model is valid
|
117
112
|
def valid?
|
118
|
-
return false if @
|
119
|
-
return false if @
|
120
|
-
return false if @
|
113
|
+
return false if @id.nil?
|
114
|
+
return false if @text.nil?
|
115
|
+
return false if @type.nil?
|
121
116
|
true
|
122
117
|
end
|
123
118
|
|
@@ -126,10 +121,10 @@ module OryHydraClient
|
|
126
121
|
def ==(o)
|
127
122
|
return true if self.equal?(o)
|
128
123
|
self.class == o.class &&
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
124
|
+
context == o.context &&
|
125
|
+
id == o.id &&
|
126
|
+
text == o.text &&
|
127
|
+
type == o.type
|
133
128
|
end
|
134
129
|
|
135
130
|
# @see the `==` method
|
@@ -141,7 +136,7 @@ module OryHydraClient
|
|
141
136
|
# Calculates hash code according to all attributes.
|
142
137
|
# @return [Integer] Hash code
|
143
138
|
def hash
|
144
|
-
[
|
139
|
+
[context, id, text, type].hash
|
145
140
|
end
|
146
141
|
|
147
142
|
# Builds the object from hash
|