ory-kratos-client 0.7.0.alpha1 → 0.7.3.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +133 -129
- data/docs/AdminCreateIdentityBody.md +2 -2
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +2 -2
- data/docs/AdminUpdateIdentityBody.md +3 -3
- data/docs/AuthenticateOKBody.md +2 -2
- 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 +3 -3
- 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 +3 -3
- data/docs/IdentityCredentials.md +2 -2
- data/docs/IdentityState.md +15 -0
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- data/docs/SettingsProfileFormConfig.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowBody.md +6 -6
- data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +2 -2
- 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 +6 -6
- data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +2 -2
- 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/SuccessfulSelfServiceSettingsWithoutBrowser.md +2 -2
- data/docs/UiContainer.md +2 -2
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeAnchorAttributes.md +2 -2
- data/docs/UiNodeAttributes.md +4 -4
- data/docs/UiNodeImageAttributes.md +2 -2
- data/docs/UiNodeInputAttributes.md +2 -2
- data/docs/UiNodeTextAttributes.md +2 -2
- data/docs/UiText.md +2 -2
- data/docs/V0alpha1Api.md +131 -121
- 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-kratos-client/api/metadata_api.rb +3 -3
- data/lib/ory-kratos-client/api/v0alpha1_api.rb +3 -3
- data/lib/ory-kratos-client/api_client.rb +4 -4
- data/lib/ory-kratos-client/api_error.rb +3 -3
- data/lib/ory-kratos-client/configuration.rb +5 -5
- data/lib/ory-kratos-client/models/admin_create_identity_body.rb +6 -6
- data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +6 -6
- data/lib/ory-kratos-client/models/admin_update_identity_body.rb +12 -9
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_change_response_item.rb +6 -6
- data/lib/ory-kratos-client/models/container_create_created_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +6 -6
- data/lib/ory-kratos-client/models/error_response.rb +6 -6
- data/lib/ory-kratos-client/models/generic_error.rb +8 -10
- data/lib/ory-kratos-client/models/graph_driver_data.rb +6 -6
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +6 -6
- data/lib/ory-kratos-client/models/health_status.rb +6 -6
- data/lib/ory-kratos-client/models/id_response.rb +6 -6
- data/lib/ory-kratos-client/models/identity.rb +7 -9
- data/lib/ory-kratos-client/models/identity_credentials.rb +6 -6
- data/lib/ory-kratos-client/models/identity_state.rb +37 -0
- data/lib/ory-kratos-client/models/image_delete_response_item.rb +6 -6
- data/lib/ory-kratos-client/models/image_summary.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response200.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response2001.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response503.rb +6 -6
- data/lib/ory-kratos-client/models/json_error.rb +6 -6
- data/lib/ory-kratos-client/models/meta.rb +6 -6
- data/lib/ory-kratos-client/models/plugin.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_args.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_network.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_user.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_device.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_env.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_interface_type.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_mount.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_settings.rb +6 -6
- data/lib/ory-kratos-client/models/port.rb +6 -6
- data/lib/ory-kratos-client/models/recovery_address.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_error.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_login_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_logout_url.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +3 -3
- data/lib/ory-kratos-client/models/self_service_recovery_link.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_registration_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_settings_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +3 -3
- data/lib/ory-kratos-client/models/self_service_verification_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +3 -3
- data/lib/ory-kratos-client/models/service_update_response.rb +6 -6
- data/lib/ory-kratos-client/models/session.rb +6 -6
- data/lib/ory-kratos-client/models/settings_profile_form_config.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +8 -8
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +8 -8
- data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +6 -6
- data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +6 -6
- data/lib/ory-kratos-client/models/successful_self_service_settings_without_browser.rb +6 -6
- data/lib/ory-kratos-client/models/ui_container.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +4 -4
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_text.rb +6 -6
- data/lib/ory-kratos-client/models/verifiable_identity_address.rb +6 -6
- data/lib/ory-kratos-client/models/version.rb +6 -6
- data/lib/ory-kratos-client/models/volume.rb +6 -6
- data/lib/ory-kratos-client/models/volume_usage_data.rb +6 -6
- data/lib/ory-kratos-client/version.rb +4 -4
- data/lib/ory-kratos-client.rb +5 -4
- data/ory-kratos-client.gemspec +3 -3
- data/spec/api_client_spec.rb +31 -31
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/identity_state_spec.rb +28 -0
- data/spec/spec_helper.rb +2 -2
- metadata +39 -35
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::VerifiableIdentityAddress
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
```ruby
|
19
19
|
require 'ory-kratos-client'
|
20
20
|
|
21
|
-
instance =
|
21
|
+
instance = OryKratosClient::VerifiableIdentityAddress.new(
|
22
22
|
created_at: 2014-01-01T23:28:56.782Z,
|
23
23
|
id: null,
|
24
24
|
status: null,
|
data/docs/Version.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::Version
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'ory-kratos-client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = OryKratosClient::Version.new(
|
15
15
|
version: null
|
16
16
|
)
|
17
17
|
```
|
data/docs/Volume.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::Volume
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
```ruby
|
20
20
|
require 'ory-kratos-client'
|
21
21
|
|
22
|
-
instance =
|
22
|
+
instance = OryKratosClient::Volume.new(
|
23
23
|
created_at: null,
|
24
24
|
driver: null,
|
25
25
|
labels: null,
|
data/docs/VolumeUsageData.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::VolumeUsageData
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
```ruby
|
13
13
|
require 'ory-kratos-client'
|
14
14
|
|
15
|
-
instance =
|
15
|
+
instance = OryKratosClient::VolumeUsageData.new(
|
16
16
|
ref_count: null,
|
17
17
|
size: null
|
18
18
|
)
|
@@ -3,16 +3,16 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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 'cgi'
|
14
14
|
|
15
|
-
module
|
15
|
+
module OryKratosClient
|
16
16
|
class MetadataApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
@@ -3,16 +3,16 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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 'cgi'
|
14
14
|
|
15
|
-
module
|
15
|
+
module OryKratosClient
|
16
16
|
class V0alpha1Api
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
@@ -3,10 +3,10 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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
|
|
@@ -17,7 +17,7 @@ require 'tempfile'
|
|
17
17
|
require 'time'
|
18
18
|
require 'typhoeus'
|
19
19
|
|
20
|
-
module
|
20
|
+
module OryKratosClient
|
21
21
|
class ApiClient
|
22
22
|
# The Configuration object holding settings to be used in the API client.
|
23
23
|
attr_accessor :config
|
@@ -276,7 +276,7 @@ module OryHydraClient
|
|
276
276
|
end
|
277
277
|
else
|
278
278
|
# models (e.g. Pet) or oneOf
|
279
|
-
klass =
|
279
|
+
klass = OryKratosClient.const_get(return_type)
|
280
280
|
klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
|
281
281
|
end
|
282
282
|
end
|
@@ -3,14 +3,14 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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
|
-
module
|
13
|
+
module OryKratosClient
|
14
14
|
class ApiError < StandardError
|
15
15
|
attr_reader :code, :response_headers, :response_body
|
16
16
|
|
@@ -3,14 +3,14 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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
|
-
module
|
13
|
+
module OryKratosClient
|
14
14
|
class Configuration
|
15
15
|
# Defines url scheme
|
16
16
|
attr_accessor :scheme
|
@@ -217,10 +217,10 @@ module OryHydraClient
|
|
217
217
|
{
|
218
218
|
'oryAccessToken' =>
|
219
219
|
{
|
220
|
-
type: '
|
220
|
+
type: 'api_key',
|
221
221
|
in: 'header',
|
222
222
|
key: 'Authorization',
|
223
|
-
value:
|
223
|
+
value: api_key_with_prefix('oryAccessToken')
|
224
224
|
},
|
225
225
|
}
|
226
226
|
end
|
@@ -3,17 +3,17 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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 OryKratosClient
|
17
17
|
class AdminCreateIdentityBody
|
18
18
|
# SchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
|
19
19
|
attr_accessor :schema_id
|
@@ -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 `OryKratosClient::AdminCreateIdentityBody` 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 `OryKratosClient::AdminCreateIdentityBody`. 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
|
}
|
@@ -183,7 +183,7 @@ module OryHydraClient
|
|
183
183
|
end
|
184
184
|
else # model
|
185
185
|
# models (e.g. Pet) or oneOf
|
186
|
-
klass =
|
186
|
+
klass = OryKratosClient.const_get(type)
|
187
187
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
188
188
|
end
|
189
189
|
end
|
@@ -3,17 +3,17 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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 OryKratosClient
|
17
17
|
class AdminCreateSelfServiceRecoveryLinkBody
|
18
18
|
# Link Expires In The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`.
|
19
19
|
attr_accessor :expires_in
|
@@ -51,13 +51,13 @@ module OryHydraClient
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
53
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::AdminCreateSelfServiceRecoveryLinkBody` initialize method"
|
55
55
|
end
|
56
56
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::AdminCreateSelfServiceRecoveryLinkBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
61
|
end
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
@@ -194,7 +194,7 @@ module OryHydraClient
|
|
194
194
|
end
|
195
195
|
else # model
|
196
196
|
# models (e.g. Pet) or oneOf
|
197
|
-
klass =
|
197
|
+
klass = OryKratosClient.const_get(type)
|
198
198
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
199
|
end
|
200
200
|
end
|
@@ -3,22 +3,21 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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 OryKratosClient
|
17
17
|
class AdminUpdateIdentityBody
|
18
18
|
# SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID.
|
19
19
|
attr_accessor :schema_id
|
20
20
|
|
21
|
-
# State is the identity's state.
|
22
21
|
attr_accessor :state
|
23
22
|
|
24
23
|
# 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_id`.
|
@@ -42,7 +41,7 @@ module OryHydraClient
|
|
42
41
|
def self.openapi_types
|
43
42
|
{
|
44
43
|
:'schema_id' => :'String',
|
45
|
-
:'state' => :'
|
44
|
+
:'state' => :'IdentityState',
|
46
45
|
:'traits' => :'Object'
|
47
46
|
}
|
48
47
|
end
|
@@ -50,7 +49,6 @@ module OryHydraClient
|
|
50
49
|
# List of attributes with nullable: true
|
51
50
|
def self.openapi_nullable
|
52
51
|
Set.new([
|
53
|
-
:'state',
|
54
52
|
])
|
55
53
|
end
|
56
54
|
|
@@ -58,13 +56,13 @@ module OryHydraClient
|
|
58
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
57
|
def initialize(attributes = {})
|
60
58
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::AdminUpdateIdentityBody` initialize method"
|
62
60
|
end
|
63
61
|
|
64
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::AdminUpdateIdentityBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
66
|
end
|
69
67
|
h[k.to_sym] = v
|
70
68
|
}
|
@@ -86,6 +84,10 @@ module OryHydraClient
|
|
86
84
|
# @return Array for valid properties with the reasons
|
87
85
|
def list_invalid_properties
|
88
86
|
invalid_properties = Array.new
|
87
|
+
if @state.nil?
|
88
|
+
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
89
|
+
end
|
90
|
+
|
89
91
|
if @traits.nil?
|
90
92
|
invalid_properties.push('invalid value for "traits", traits cannot be nil.')
|
91
93
|
end
|
@@ -96,6 +98,7 @@ module OryHydraClient
|
|
96
98
|
# Check to see if the all the properties in the model are valid
|
97
99
|
# @return true if the model is valid
|
98
100
|
def valid?
|
101
|
+
return false if @state.nil?
|
99
102
|
return false if @traits.nil?
|
100
103
|
true
|
101
104
|
end
|
@@ -189,7 +192,7 @@ module OryHydraClient
|
|
189
192
|
end
|
190
193
|
else # model
|
191
194
|
# models (e.g. Pet) or oneOf
|
192
|
-
klass =
|
195
|
+
klass = OryKratosClient.const_get(type)
|
193
196
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
194
197
|
end
|
195
198
|
end
|
@@ -3,17 +3,17 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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 OryKratosClient
|
17
17
|
# AuthenticateOKBody authenticate o k body
|
18
18
|
class AuthenticateOKBody
|
19
19
|
# An opaque token used to authenticate a user after a successful login
|
@@ -53,13 +53,13 @@ module OryHydraClient
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::AuthenticateOKBody` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::AuthenticateOKBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
@@ -184,7 +184,7 @@ module OryHydraClient
|
|
184
184
|
end
|
185
185
|
else # model
|
186
186
|
# models (e.g. Pet) or oneOf
|
187
|
-
klass =
|
187
|
+
klass = OryKratosClient.const_get(type)
|
188
188
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
189
|
end
|
190
190
|
end
|
@@ -3,17 +3,17 @@
|
|
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.7.
|
6
|
+
The version of the OpenAPI document: v0.7.3-alpha.2
|
7
7
|
Contact: hi@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 OryKratosClient
|
17
17
|
# ContainerChangeResponseItem change item in response to ContainerChanges operation
|
18
18
|
class ContainerChangeResponseItem
|
19
19
|
# Kind of change
|
@@ -53,13 +53,13 @@ module OryHydraClient
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::ContainerChangeResponseItem` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::ContainerChangeResponseItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
@@ -184,7 +184,7 @@ module OryHydraClient
|
|
184
184
|
end
|
185
185
|
else # model
|
186
186
|
# models (e.g. Pet) or oneOf
|
187
|
-
klass =
|
187
|
+
klass = OryKratosClient.const_get(type)
|
188
188
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
189
|
end
|
190
190
|
end
|