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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/docs/AdminUpdateIdentityBody.md +1 -1
  4. data/docs/Identity.md +1 -1
  5. data/docs/IdentityState.md +15 -0
  6. data/docs/V0alpha1Api.md +3 -3
  7. data/lib/ory-kratos-client.rb +2 -1
  8. data/lib/ory-kratos-client/api/metadata_api.rb +1 -1
  9. data/lib/ory-kratos-client/api/v0alpha1_api.rb +1 -1
  10. data/lib/ory-kratos-client/api_client.rb +1 -1
  11. data/lib/ory-kratos-client/api_error.rb +1 -1
  12. data/lib/ory-kratos-client/configuration.rb +1 -1
  13. data/lib/ory-kratos-client/models/admin_create_identity_body.rb +1 -1
  14. data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
  15. data/lib/ory-kratos-client/models/admin_update_identity_body.rb +7 -4
  16. data/lib/ory-kratos-client/models/authenticate_ok_body.rb +1 -1
  17. data/lib/ory-kratos-client/models/container_change_response_item.rb +1 -1
  18. data/lib/ory-kratos-client/models/container_create_created_body.rb +1 -1
  19. data/lib/ory-kratos-client/models/container_top_ok_body.rb +1 -1
  20. data/lib/ory-kratos-client/models/container_update_ok_body.rb +1 -1
  21. data/lib/ory-kratos-client/models/container_wait_ok_body.rb +1 -1
  22. data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +1 -1
  23. data/lib/ory-kratos-client/models/error_response.rb +1 -1
  24. data/lib/ory-kratos-client/models/generic_error.rb +1 -1
  25. data/lib/ory-kratos-client/models/graph_driver_data.rb +1 -1
  26. data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
  27. data/lib/ory-kratos-client/models/health_status.rb +1 -1
  28. data/lib/ory-kratos-client/models/id_response.rb +1 -1
  29. data/lib/ory-kratos-client/models/identity.rb +2 -4
  30. data/lib/ory-kratos-client/models/identity_credentials.rb +1 -1
  31. data/lib/ory-kratos-client/models/identity_state.rb +37 -0
  32. data/lib/ory-kratos-client/models/image_delete_response_item.rb +1 -1
  33. data/lib/ory-kratos-client/models/image_summary.rb +1 -1
  34. data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
  35. data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
  36. data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
  37. data/lib/ory-kratos-client/models/json_error.rb +1 -1
  38. data/lib/ory-kratos-client/models/meta.rb +1 -1
  39. data/lib/ory-kratos-client/models/plugin.rb +1 -1
  40. data/lib/ory-kratos-client/models/plugin_config.rb +1 -1
  41. data/lib/ory-kratos-client/models/plugin_config_args.rb +1 -1
  42. data/lib/ory-kratos-client/models/plugin_config_interface.rb +1 -1
  43. data/lib/ory-kratos-client/models/plugin_config_linux.rb +1 -1
  44. data/lib/ory-kratos-client/models/plugin_config_network.rb +1 -1
  45. data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +1 -1
  46. data/lib/ory-kratos-client/models/plugin_config_user.rb +1 -1
  47. data/lib/ory-kratos-client/models/plugin_device.rb +1 -1
  48. data/lib/ory-kratos-client/models/plugin_env.rb +1 -1
  49. data/lib/ory-kratos-client/models/plugin_interface_type.rb +1 -1
  50. data/lib/ory-kratos-client/models/plugin_mount.rb +1 -1
  51. data/lib/ory-kratos-client/models/plugin_settings.rb +1 -1
  52. data/lib/ory-kratos-client/models/port.rb +1 -1
  53. data/lib/ory-kratos-client/models/recovery_address.rb +1 -1
  54. data/lib/ory-kratos-client/models/self_service_error.rb +1 -1
  55. data/lib/ory-kratos-client/models/self_service_login_flow.rb +1 -1
  56. data/lib/ory-kratos-client/models/self_service_logout_url.rb +1 -1
  57. data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +1 -1
  58. data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +1 -1
  59. data/lib/ory-kratos-client/models/self_service_recovery_link.rb +1 -1
  60. data/lib/ory-kratos-client/models/self_service_registration_flow.rb +1 -1
  61. data/lib/ory-kratos-client/models/self_service_settings_flow.rb +1 -1
  62. data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +1 -1
  63. data/lib/ory-kratos-client/models/self_service_verification_flow.rb +1 -1
  64. data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +1 -1
  65. data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
  66. data/lib/ory-kratos-client/models/session.rb +1 -1
  67. data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
  68. data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +1 -1
  69. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
  70. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
  71. data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
  72. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +1 -1
  73. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +3 -3
  74. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +1 -1
  75. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
  76. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
  77. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +1 -1
  78. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
  79. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
  80. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
  81. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +1 -1
  82. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +3 -3
  83. data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +1 -1
  84. data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +1 -1
  85. data/lib/ory-kratos-client/models/successful_self_service_settings_without_browser.rb +1 -1
  86. data/lib/ory-kratos-client/models/ui_container.rb +1 -1
  87. data/lib/ory-kratos-client/models/ui_node.rb +1 -1
  88. data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +1 -1
  89. data/lib/ory-kratos-client/models/ui_node_attributes.rb +1 -1
  90. data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +1 -1
  91. data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +1 -1
  92. data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +1 -1
  93. data/lib/ory-kratos-client/models/ui_text.rb +1 -1
  94. data/lib/ory-kratos-client/models/verifiable_identity_address.rb +1 -1
  95. data/lib/ory-kratos-client/models/version.rb +1 -1
  96. data/lib/ory-kratos-client/models/volume.rb +1 -1
  97. data/lib/ory-kratos-client/models/volume_usage_data.rb +1 -1
  98. data/lib/ory-kratos-client/version.rb +2 -2
  99. data/ory-kratos-client.gemspec +1 -1
  100. data/spec/api_client_spec.rb +1 -1
  101. data/spec/configuration_spec.rb +1 -1
  102. data/spec/models/identity_state_spec.rb +28 -0
  103. data/spec/spec_helper.rb +1 -1
  104. metadata +40 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1b628c41a084235279797aab92d28bc2f99ee7fcfe7d0f22011f58639c375e5
4
- data.tar.gz: 8521978a621e0407de4d3fca6e53b9961271f1f9745fe5cf0617398651384573
3
+ metadata.gz: 2ff871880746d12fbfa369c9ba214a69ef7081ef009d57b42767fbc1e986a1fc
4
+ data.tar.gz: 892496531370ff436496c3b482b4d1c0ebb9fd4c42e38ea3a4631d0243d116d2
5
5
  SHA512:
6
- metadata.gz: f963902d0187439bd8997544b5f8a6ecb073119c2e30b1ff0e357d55ef8d130815115e89e598cdcae25b42ce9b05a0b69e29796d88a8edc7b7a6380d019435dd
7
- data.tar.gz: 8f05d9f71ca4865066798ac711c6b623956122f1eee695dc5cb26de3b02a20a2289d8cb4d92c08bc295892ff24c059483d3550799d50ec54a23931af77add047
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.0-alpha.1
15
- - Package version: v0.7.0-alpha.1
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.0-alpha.1.gem
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.0-alpha.1.gem` to install the development dependencies)
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.0-alpha.1'
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** | [**AnyType**](.md) | State is the identity's 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** | [**AnyType**](.md) | State is the identity's 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: TODO, traits: 3.56}) # AdminUpdateIdentityBody |
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: 'password'}) # SubmitSelfServiceRecoveryFlowBody |
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: 'password'}) # SubmitSelfServiceVerificationFlowBody |
2049
+ submit_self_service_verification_flow_body: OryHydraClient::SubmitSelfServiceVerificationFlowWithLinkMethodBody.new({email: 'email_example', method: 'link'}) # SubmitSelfServiceVerificationFlowBody |
2050
2050
  }
2051
2051
 
2052
2052
  begin
@@ -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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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' => :'AnyType',
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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.0-alpha.1
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' => :'AnyType',
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.0-alpha.1
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