ory-kratos-client 0.7.0.alpha1 → 0.7.1.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/AdminUpdateIdentityBody.md +1 -1
- data/docs/Identity.md +1 -1
- data/docs/IdentityState.md +15 -0
- data/docs/V0alpha1Api.md +3 -3
- data/lib/ory-kratos-client.rb +2 -1
- data/lib/ory-kratos-client/api/metadata_api.rb +1 -1
- data/lib/ory-kratos-client/api/v0alpha1_api.rb +1 -1
- data/lib/ory-kratos-client/api_client.rb +1 -1
- data/lib/ory-kratos-client/api_error.rb +1 -1
- data/lib/ory-kratos-client/configuration.rb +1 -1
- data/lib/ory-kratos-client/models/admin_create_identity_body.rb +1 -1
- data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-kratos-client/models/admin_update_identity_body.rb +7 -4
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_change_response_item.rb +1 -1
- data/lib/ory-kratos-client/models/container_create_created_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +1 -1
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +1 -1
- data/lib/ory-kratos-client/models/error_response.rb +1 -1
- data/lib/ory-kratos-client/models/generic_error.rb +1 -1
- data/lib/ory-kratos-client/models/graph_driver_data.rb +1 -1
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-kratos-client/models/health_status.rb +1 -1
- data/lib/ory-kratos-client/models/id_response.rb +1 -1
- data/lib/ory-kratos-client/models/identity.rb +2 -4
- data/lib/ory-kratos-client/models/identity_credentials.rb +1 -1
- data/lib/ory-kratos-client/models/identity_state.rb +37 -0
- data/lib/ory-kratos-client/models/image_delete_response_item.rb +1 -1
- data/lib/ory-kratos-client/models/image_summary.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
- data/lib/ory-kratos-client/models/json_error.rb +1 -1
- data/lib/ory-kratos-client/models/meta.rb +1 -1
- data/lib/ory-kratos-client/models/plugin.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_args.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_network.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_config_user.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_device.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_env.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_interface_type.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_mount.rb +1 -1
- data/lib/ory-kratos-client/models/plugin_settings.rb +1 -1
- data/lib/ory-kratos-client/models/port.rb +1 -1
- data/lib/ory-kratos-client/models/recovery_address.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_error.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_login_flow.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_registration_flow.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_settings_flow.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_verification_flow.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
- data/lib/ory-kratos-client/models/session.rb +1 -1
- data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +3 -3
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +3 -3
- data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-kratos-client/models/successful_self_service_settings_without_browser.rb +1 -1
- data/lib/ory-kratos-client/models/ui_container.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-kratos-client/models/ui_text.rb +1 -1
- data/lib/ory-kratos-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-kratos-client/models/version.rb +1 -1
- data/lib/ory-kratos-client/models/volume.rb +1 -1
- data/lib/ory-kratos-client/models/volume_usage_data.rb +1 -1
- data/lib/ory-kratos-client/version.rb +2 -2
- data/ory-kratos-client.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +28 -0
- data/spec/spec_helper.rb +1 -1
- metadata +40 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ff871880746d12fbfa369c9ba214a69ef7081ef009d57b42767fbc1e986a1fc
|
4
|
+
data.tar.gz: 892496531370ff436496c3b482b4d1c0ebb9fd4c42e38ea3a4631d0243d116d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62afe84b14768fcd198f5cc936921b9405abfe9589443a213db07cbe654037b4a7251e7afd92c6d584bca5d461758f1418d10ff94e68eefe603f863116e7347c
|
7
|
+
data.tar.gz: 0f8e49a6f3d47430f165095044f88ec6e08b677b13567fd62e72e9d26c4144092619c71b84a943323eca223a42f9744e59ffaf8fa00fee581f4f7cefa437248e
|
data/README.md
CHANGED
@@ -11,8 +11,8 @@ technology capable of authorizing incoming requests.
|
|
11
11
|
|
12
12
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
13
13
|
|
14
|
-
- API version: v0.7.
|
15
|
-
- Package version: v0.7.
|
14
|
+
- API version: v0.7.1-alpha.1
|
15
|
+
- Package version: v0.7.1-alpha.1
|
16
16
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
17
17
|
|
18
18
|
## Installation
|
@@ -28,16 +28,16 @@ gem build ory-kratos-client.gemspec
|
|
28
28
|
Then either install the gem locally:
|
29
29
|
|
30
30
|
```shell
|
31
|
-
gem install ./ory-kratos-client-v0.7.
|
31
|
+
gem install ./ory-kratos-client-v0.7.1-alpha.1.gem
|
32
32
|
```
|
33
33
|
|
34
|
-
(for development, run `gem install --dev ./ory-kratos-client-v0.7.
|
34
|
+
(for development, run `gem install --dev ./ory-kratos-client-v0.7.1-alpha.1.gem` to install the development dependencies)
|
35
35
|
|
36
36
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
37
37
|
|
38
38
|
Finally add this to the Gemfile:
|
39
39
|
|
40
|
-
gem 'ory-kratos-client', '~> v0.7.
|
40
|
+
gem 'ory-kratos-client', '~> v0.7.1-alpha.1'
|
41
41
|
|
42
42
|
### Install from Git
|
43
43
|
|
@@ -137,6 +137,7 @@ Class | Method | HTTP request | Description
|
|
137
137
|
- [OryHydraClient::IdResponse](docs/IdResponse.md)
|
138
138
|
- [OryHydraClient::Identity](docs/Identity.md)
|
139
139
|
- [OryHydraClient::IdentityCredentials](docs/IdentityCredentials.md)
|
140
|
+
- [OryHydraClient::IdentityState](docs/IdentityState.md)
|
140
141
|
- [OryHydraClient::ImageDeleteResponseItem](docs/ImageDeleteResponseItem.md)
|
141
142
|
- [OryHydraClient::ImageSummary](docs/ImageSummary.md)
|
142
143
|
- [OryHydraClient::InlineResponse200](docs/InlineResponse200.md)
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **schema_id** | **String** | 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. | [optional] |
|
8
|
-
| **state** | [**
|
8
|
+
| **state** | [**IdentityState**](IdentityState.md) | | |
|
9
9
|
| **traits** | **Object** | 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`. | |
|
10
10
|
|
11
11
|
## Example
|
data/docs/Identity.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
| **recovery_addresses** | [**Array<RecoveryAddress>**](RecoveryAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] |
|
11
11
|
| **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | |
|
12
12
|
| **schema_url** | **String** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | |
|
13
|
-
| **state** | [**
|
13
|
+
| **state** | [**IdentityState**](IdentityState.md) | | [optional] |
|
14
14
|
| **state_changed_at** | **Time** | | [optional] |
|
15
15
|
| **traits** | [**AnyType**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | |
|
16
16
|
| **updated_at** | **Time** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] |
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# OryHydraClient::IdentityState
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'ory-kratos-client'
|
12
|
+
|
13
|
+
instance = OryHydraClient::IdentityState.new()
|
14
|
+
```
|
15
|
+
|
data/docs/V0alpha1Api.md
CHANGED
@@ -407,7 +407,7 @@ end
|
|
407
407
|
api_instance = OryHydraClient::V0alpha1Api.new
|
408
408
|
id = 'id_example' # String | ID must be set to the ID of identity you want to update
|
409
409
|
opts = {
|
410
|
-
admin_update_identity_body: OryHydraClient::AdminUpdateIdentityBody.new({state:
|
410
|
+
admin_update_identity_body: OryHydraClient::AdminUpdateIdentityBody.new({state: OryHydraClient::IdentityState::ACTIVE, traits: 3.56}) # AdminUpdateIdentityBody |
|
411
411
|
}
|
412
412
|
|
413
413
|
begin
|
@@ -1838,7 +1838,7 @@ api_instance = OryHydraClient::V0alpha1Api.new
|
|
1838
1838
|
flow = 'flow_example' # String | The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`).
|
1839
1839
|
opts = {
|
1840
1840
|
token: 'token_example', # String | Recovery Token The recovery token which completes the recovery request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
|
1841
|
-
submit_self_service_recovery_flow_body: OryHydraClient::SubmitSelfServiceRecoveryFlowWithLinkMethodBody.new({email: 'email_example', method: '
|
1841
|
+
submit_self_service_recovery_flow_body: OryHydraClient::SubmitSelfServiceRecoveryFlowWithLinkMethodBody.new({email: 'email_example', method: 'link'}) # SubmitSelfServiceRecoveryFlowBody |
|
1842
1842
|
}
|
1843
1843
|
|
1844
1844
|
begin
|
@@ -2046,7 +2046,7 @@ api_instance = OryHydraClient::V0alpha1Api.new
|
|
2046
2046
|
flow = 'flow_example' # String | The Verification Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
|
2047
2047
|
opts = {
|
2048
2048
|
token: 'token_example', # String | Verification Token The verification token which completes the verification request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
|
2049
|
-
submit_self_service_verification_flow_body: OryHydraClient::SubmitSelfServiceVerificationFlowWithLinkMethodBody.new({email: 'email_example', method: '
|
2049
|
+
submit_self_service_verification_flow_body: OryHydraClient::SubmitSelfServiceVerificationFlowWithLinkMethodBody.new({email: 'email_example', method: 'link'}) # SubmitSelfServiceVerificationFlowBody |
|
2050
2050
|
}
|
2051
2051
|
|
2052
2052
|
begin
|
data/lib/ory-kratos-client.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -35,6 +35,7 @@ require 'ory-kratos-client/models/health_status'
|
|
35
35
|
require 'ory-kratos-client/models/id_response'
|
36
36
|
require 'ory-kratos-client/models/identity'
|
37
37
|
require 'ory-kratos-client/models/identity_credentials'
|
38
|
+
require 'ory-kratos-client/models/identity_state'
|
38
39
|
require 'ory-kratos-client/models/image_delete_response_item'
|
39
40
|
require 'ory-kratos-client/models/image_summary'
|
40
41
|
require 'ory-kratos-client/models/inline_response200'
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -18,7 +18,6 @@ module OryHydraClient
|
|
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
|
|
@@ -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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -33,7 +33,6 @@ module OryHydraClient
|
|
33
33
|
# SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
|
34
34
|
attr_accessor :schema_url
|
35
35
|
|
36
|
-
# State is the identity's state.
|
37
36
|
attr_accessor :state
|
38
37
|
|
39
38
|
attr_accessor :state_changed_at
|
@@ -78,7 +77,7 @@ module OryHydraClient
|
|
78
77
|
:'recovery_addresses' => :'Array<RecoveryAddress>',
|
79
78
|
:'schema_id' => :'String',
|
80
79
|
:'schema_url' => :'String',
|
81
|
-
:'state' => :'
|
80
|
+
:'state' => :'IdentityState',
|
82
81
|
:'state_changed_at' => :'Time',
|
83
82
|
:'traits' => :'AnyType',
|
84
83
|
:'updated_at' => :'Time',
|
@@ -89,7 +88,6 @@ module OryHydraClient
|
|
89
88
|
# List of attributes with nullable: true
|
90
89
|
def self.openapi_nullable
|
91
90
|
Set.new([
|
92
|
-
:'state',
|
93
91
|
:'traits',
|
94
92
|
])
|
95
93
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.7.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos API
|
3
|
+
|
4
|
+
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.1
|
7
|
+
Contact: hi@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryHydraClient
|
17
|
+
class IdentityState
|
18
|
+
ACTIVE = "active".freeze
|
19
|
+
INACTIVE = "inactive".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = IdentityState.constants.select { |c| IdentityState::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #IdentityState" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|