ory-kratos-client 0.6.1.alpha1 → 0.7.1.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +83 -95
  3. data/docs/AdminApi.md +15 -13
  4. data/docs/AdminCreateIdentityBody.md +20 -0
  5. data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +20 -0
  6. data/docs/AdminUpdateIdentityBody.md +22 -0
  7. data/docs/GenericError.md +14 -2
  8. data/docs/Identity.md +12 -2
  9. data/docs/IdentityCredentials.md +5 -1
  10. data/docs/IdentityState.md +15 -0
  11. data/docs/JsonError.md +18 -0
  12. data/docs/LoginFlow.md +5 -1
  13. data/docs/MetadataApi.md +254 -0
  14. data/docs/PublicApi.md +216 -210
  15. data/docs/RecoveryAddress.md +4 -0
  16. data/docs/SelfServiceError.md +24 -0
  17. data/docs/SelfServiceErrorContainer.md +24 -0
  18. data/docs/SelfServiceLoginFlow.md +36 -0
  19. data/docs/SelfServiceLogoutUrl.md +18 -0
  20. data/docs/SelfServiceRecoveryFlow.md +32 -0
  21. data/docs/SelfServiceRecoveryFlowState.md +15 -0
  22. data/docs/SelfServiceRecoveryLink.md +20 -0
  23. data/docs/SelfServiceRegistrationFlow.md +30 -0
  24. data/docs/SelfServiceSettingsFlow.md +34 -0
  25. data/docs/SelfServiceSettingsFlowState.md +15 -0
  26. data/docs/SelfServiceVerificationFlow.md +32 -0
  27. data/docs/SelfServiceVerificationFlowState.md +15 -0
  28. data/docs/Session.md +4 -4
  29. data/docs/SubmitSelfServiceLoginFlowBody.md +76 -0
  30. data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +22 -0
  31. data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +24 -0
  32. data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +18 -0
  33. data/docs/SubmitSelfServiceRecoveryFlowBody.md +75 -0
  34. data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +22 -0
  35. data/docs/SubmitSelfServiceRegistrationFlowBody.md +76 -0
  36. data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +22 -0
  37. data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +24 -0
  38. data/docs/SubmitSelfServiceSettingsFlowBody.md +79 -0
  39. data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +24 -0
  40. data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +22 -0
  41. data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +22 -0
  42. data/docs/SubmitSelfServiceVerificationFlowBody.md +75 -0
  43. data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +22 -0
  44. data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +20 -0
  45. data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +22 -0
  46. data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +20 -0
  47. data/docs/UiNodeInputAttributes.md +1 -1
  48. data/docs/V0alpha1Api.md +2167 -0
  49. data/docs/VerifiableIdentityAddress.md +32 -0
  50. data/lib/ory-kratos-client.rb +38 -30
  51. data/lib/ory-kratos-client/api/admin_api.rb +7 -4
  52. data/lib/ory-kratos-client/api/metadata_api.rb +248 -0
  53. data/lib/ory-kratos-client/api/public_api.rb +171 -162
  54. data/lib/ory-kratos-client/api/v0alpha1_api.rb +2054 -0
  55. data/lib/ory-kratos-client/api_client.rb +1 -1
  56. data/lib/ory-kratos-client/api_error.rb +1 -1
  57. data/lib/ory-kratos-client/configuration.rb +9 -30
  58. data/lib/ory-kratos-client/models/admin_create_identity_body.rb +239 -0
  59. data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +250 -0
  60. data/lib/ory-kratos-client/models/admin_update_identity_body.rb +248 -0
  61. data/lib/ory-kratos-client/models/authenticate_ok_body.rb +1 -1
  62. data/lib/ory-kratos-client/models/container_change_response_item.rb +1 -1
  63. data/lib/ory-kratos-client/models/container_create_created_body.rb +1 -1
  64. data/lib/ory-kratos-client/models/container_top_ok_body.rb +1 -1
  65. data/lib/ory-kratos-client/models/container_update_ok_body.rb +1 -1
  66. data/lib/ory-kratos-client/models/container_wait_ok_body.rb +1 -1
  67. data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +1 -1
  68. data/lib/ory-kratos-client/models/create_identity.rb +1 -1
  69. data/lib/ory-kratos-client/models/create_recovery_link.rb +1 -1
  70. data/lib/ory-kratos-client/models/error_container.rb +1 -1
  71. data/lib/ory-kratos-client/models/error_response.rb +1 -1
  72. data/lib/ory-kratos-client/models/generic_error.rb +76 -9
  73. data/lib/ory-kratos-client/models/generic_error_payload.rb +1 -1
  74. data/lib/ory-kratos-client/models/graph_driver_data.rb +1 -1
  75. data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
  76. data/lib/ory-kratos-client/models/health_status.rb +1 -1
  77. data/lib/ory-kratos-client/models/id_response.rb +1 -1
  78. data/lib/ory-kratos-client/models/identity.rb +57 -9
  79. data/lib/ory-kratos-client/models/identity_credentials.rb +25 -5
  80. data/lib/ory-kratos-client/models/identity_state.rb +37 -0
  81. data/lib/ory-kratos-client/models/image_delete_response_item.rb +1 -1
  82. data/lib/ory-kratos-client/models/image_summary.rb +1 -1
  83. data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
  84. data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
  85. data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
  86. data/lib/ory-kratos-client/models/json_error.rb +224 -0
  87. data/lib/ory-kratos-client/models/login_flow.rb +25 -5
  88. data/lib/ory-kratos-client/models/login_via_api_response.rb +1 -1
  89. data/lib/ory-kratos-client/models/meta.rb +1 -1
  90. data/lib/ory-kratos-client/models/plugin.rb +1 -1
  91. data/lib/ory-kratos-client/models/plugin_config.rb +1 -1
  92. data/lib/ory-kratos-client/models/plugin_config_args.rb +1 -1
  93. data/lib/ory-kratos-client/models/plugin_config_interface.rb +1 -1
  94. data/lib/ory-kratos-client/models/plugin_config_linux.rb +1 -1
  95. data/lib/ory-kratos-client/models/plugin_config_network.rb +1 -1
  96. data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +1 -1
  97. data/lib/ory-kratos-client/models/plugin_config_user.rb +1 -1
  98. data/lib/ory-kratos-client/models/plugin_device.rb +1 -1
  99. data/lib/ory-kratos-client/models/plugin_env.rb +1 -1
  100. data/lib/ory-kratos-client/models/plugin_interface_type.rb +1 -1
  101. data/lib/ory-kratos-client/models/plugin_mount.rb +1 -1
  102. data/lib/ory-kratos-client/models/plugin_settings.rb +1 -1
  103. data/lib/ory-kratos-client/models/port.rb +1 -1
  104. data/lib/ory-kratos-client/models/recovery_address.rb +22 -2
  105. data/lib/ory-kratos-client/models/recovery_flow.rb +1 -1
  106. data/lib/ory-kratos-client/models/recovery_link.rb +1 -1
  107. data/lib/ory-kratos-client/models/registration_flow.rb +1 -1
  108. data/lib/ory-kratos-client/models/registration_via_api_response.rb +1 -1
  109. data/lib/ory-kratos-client/models/revoke_session.rb +1 -1
  110. data/lib/ory-kratos-client/models/self_service_error.rb +252 -0
  111. data/lib/ory-kratos-client/models/self_service_error_container.rb +260 -0
  112. data/lib/ory-kratos-client/models/self_service_login_flow.rb +338 -0
  113. data/lib/ory-kratos-client/models/self_service_logout_url.rb +219 -0
  114. data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +317 -0
  115. data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +38 -0
  116. data/lib/ory-kratos-client/models/self_service_recovery_link.rb +234 -0
  117. data/lib/ory-kratos-client/models/self_service_registration_flow.rb +302 -0
  118. data/lib/ory-kratos-client/models/self_service_settings_flow.rb +331 -0
  119. data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +37 -0
  120. data/lib/ory-kratos-client/models/self_service_verification_flow.rb +307 -0
  121. data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +38 -0
  122. data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
  123. data/lib/ory-kratos-client/models/session.rb +6 -16
  124. data/lib/ory-kratos-client/models/settings_flow.rb +1 -1
  125. data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
  126. data/lib/ory-kratos-client/models/settings_via_api_response.rb +1 -1
  127. data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
  128. data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +1 -1
  129. data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +54 -0
  130. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +250 -0
  131. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
  132. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +298 -0
  133. data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +225 -0
  134. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +53 -0
  135. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
  136. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +283 -0
  137. data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +1 -1
  138. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +54 -0
  139. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +250 -0
  140. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method.rb +22 -1
  141. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +299 -0
  142. data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +1 -1
  143. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +56 -0
  144. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +255 -0
  145. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
  146. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +283 -0
  147. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
  148. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +250 -0
  149. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +54 -0
  150. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
  151. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +283 -0
  152. data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +234 -0
  153. data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +243 -0
  154. data/lib/ory-kratos-client/models/successful_self_service_settings_without_browser.rb +238 -0
  155. data/lib/ory-kratos-client/models/ui_container.rb +1 -1
  156. data/lib/ory-kratos-client/models/ui_node.rb +1 -1
  157. data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +1 -1
  158. data/lib/ory-kratos-client/models/ui_node_attributes.rb +1 -1
  159. data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +1 -1
  160. data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +4 -2
  161. data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +1 -1
  162. data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +1 -1
  163. data/lib/ory-kratos-client/models/ui_text.rb +1 -1
  164. data/lib/ory-kratos-client/models/update_identity.rb +1 -1
  165. data/lib/ory-kratos-client/models/verifiable_address.rb +1 -1
  166. data/lib/ory-kratos-client/models/verifiable_identity_address.rb +313 -0
  167. data/lib/ory-kratos-client/models/verification_flow.rb +1 -1
  168. data/lib/ory-kratos-client/models/version.rb +1 -1
  169. data/lib/ory-kratos-client/models/volume.rb +1 -1
  170. data/lib/ory-kratos-client/models/volume_usage_data.rb +1 -1
  171. data/lib/ory-kratos-client/version.rb +2 -2
  172. data/ory-kratos-client.gemspec +1 -1
  173. data/spec/api/metadata_api_spec.rb +79 -0
  174. data/spec/api/v0alpha1_api_spec.rb +429 -0
  175. data/spec/api_client_spec.rb +1 -1
  176. data/spec/configuration_spec.rb +4 -4
  177. data/spec/models/admin_create_identity_body_spec.rb +40 -0
  178. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +40 -0
  179. data/spec/models/admin_update_identity_body_spec.rb +46 -0
  180. data/spec/models/identity_state_spec.rb +28 -0
  181. data/spec/models/json_error_spec.rb +34 -0
  182. data/spec/models/self_service_error_container_spec.rb +52 -0
  183. data/spec/models/self_service_error_spec.rb +52 -0
  184. data/spec/models/self_service_login_flow_spec.rb +88 -0
  185. data/spec/models/self_service_logout_url_spec.rb +34 -0
  186. data/spec/models/self_service_recovery_flow_spec.rb +76 -0
  187. data/spec/models/self_service_recovery_flow_state_spec.rb +28 -0
  188. data/spec/models/self_service_recovery_link_spec.rb +40 -0
  189. data/spec/models/self_service_registration_flow_spec.rb +70 -0
  190. data/spec/models/self_service_settings_flow_spec.rb +82 -0
  191. data/spec/models/self_service_settings_flow_state_spec.rb +28 -0
  192. data/spec/models/self_service_verification_flow_spec.rb +76 -0
  193. data/spec/models/self_service_verification_flow_state_spec.rb +28 -0
  194. data/spec/models/submit_self_service_login_flow_body_spec.rb +43 -0
  195. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +46 -0
  196. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +56 -0
  197. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +34 -0
  198. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +43 -0
  199. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +50 -0
  200. data/spec/models/submit_self_service_registration_flow_body_spec.rb +43 -0
  201. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +46 -0
  202. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +56 -0
  203. data/spec/models/submit_self_service_settings_flow_body_spec.rb +43 -0
  204. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +52 -0
  205. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +50 -0
  206. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +46 -0
  207. data/spec/models/submit_self_service_verification_flow_body_spec.rb +43 -0
  208. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +50 -0
  209. data/spec/models/successful_self_service_login_without_browser_spec.rb +40 -0
  210. data/spec/models/successful_self_service_registration_without_browser_spec.rb +46 -0
  211. data/spec/models/successful_self_service_settings_without_browser_spec.rb +40 -0
  212. data/spec/models/verifiable_identity_address_spec.rb +76 -0
  213. data/spec/spec_helper.rb +1 -1
  214. metadata +155 -3
@@ -0,0 +1,32 @@
1
+ # OryHydraClient::VerifiableIdentityAddress
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | When this entry was created | [optional] |
8
+ | **id** | **String** | | |
9
+ | **status** | **String** | VerifiableAddressStatus must not exceed 16 characters as that is the limitation in the SQL Schema | |
10
+ | **updated_at** | **Time** | When this entry was last updated | [optional] |
11
+ | **value** | **String** | The address value example foo@user.com | |
12
+ | **verified** | **Boolean** | Indicates if the address has already been verified | |
13
+ | **verified_at** | **Time** | | [optional] |
14
+ | **via** | **String** | VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema | |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'ory-kratos-client'
20
+
21
+ instance = OryHydraClient::VerifiableIdentityAddress.new(
22
+ created_at: 2014-01-01T23:28:56.782Z,
23
+ id: null,
24
+ status: null,
25
+ updated_at: 2014-01-01T23:28:56.782Z,
26
+ value: null,
27
+ verified: true,
28
+ verified_at: null,
29
+ via: null
30
+ )
31
+ ```
32
+
@@ -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.6.1-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
@@ -17,6 +17,9 @@ require 'ory-kratos-client/version'
17
17
  require 'ory-kratos-client/configuration'
18
18
 
19
19
  # Models
20
+ require 'ory-kratos-client/models/admin_create_identity_body'
21
+ require 'ory-kratos-client/models/admin_create_self_service_recovery_link_body'
22
+ require 'ory-kratos-client/models/admin_update_identity_body'
20
23
  require 'ory-kratos-client/models/authenticate_ok_body'
21
24
  require 'ory-kratos-client/models/container_change_response_item'
22
25
  require 'ory-kratos-client/models/container_create_created_body'
@@ -24,25 +27,21 @@ require 'ory-kratos-client/models/container_top_ok_body'
24
27
  require 'ory-kratos-client/models/container_update_ok_body'
25
28
  require 'ory-kratos-client/models/container_wait_ok_body'
26
29
  require 'ory-kratos-client/models/container_wait_ok_body_error'
27
- require 'ory-kratos-client/models/create_identity'
28
- require 'ory-kratos-client/models/create_recovery_link'
29
- require 'ory-kratos-client/models/error_container'
30
30
  require 'ory-kratos-client/models/error_response'
31
31
  require 'ory-kratos-client/models/generic_error'
32
- require 'ory-kratos-client/models/generic_error_payload'
33
32
  require 'ory-kratos-client/models/graph_driver_data'
34
33
  require 'ory-kratos-client/models/health_not_ready_status'
35
34
  require 'ory-kratos-client/models/health_status'
36
35
  require 'ory-kratos-client/models/id_response'
37
36
  require 'ory-kratos-client/models/identity'
38
37
  require 'ory-kratos-client/models/identity_credentials'
38
+ require 'ory-kratos-client/models/identity_state'
39
39
  require 'ory-kratos-client/models/image_delete_response_item'
40
40
  require 'ory-kratos-client/models/image_summary'
41
41
  require 'ory-kratos-client/models/inline_response200'
42
42
  require 'ory-kratos-client/models/inline_response2001'
43
43
  require 'ory-kratos-client/models/inline_response503'
44
- require 'ory-kratos-client/models/login_flow'
45
- require 'ory-kratos-client/models/login_via_api_response'
44
+ require 'ory-kratos-client/models/json_error'
46
45
  require 'ory-kratos-client/models/meta'
47
46
  require 'ory-kratos-client/models/plugin'
48
47
  require 'ory-kratos-client/models/plugin_config'
@@ -59,45 +58,54 @@ require 'ory-kratos-client/models/plugin_mount'
59
58
  require 'ory-kratos-client/models/plugin_settings'
60
59
  require 'ory-kratos-client/models/port'
61
60
  require 'ory-kratos-client/models/recovery_address'
62
- require 'ory-kratos-client/models/recovery_flow'
63
- require 'ory-kratos-client/models/recovery_link'
64
- require 'ory-kratos-client/models/registration_flow'
65
- require 'ory-kratos-client/models/registration_via_api_response'
66
- require 'ory-kratos-client/models/revoke_session'
61
+ require 'ory-kratos-client/models/self_service_error'
62
+ require 'ory-kratos-client/models/self_service_login_flow'
63
+ require 'ory-kratos-client/models/self_service_logout_url'
64
+ require 'ory-kratos-client/models/self_service_recovery_flow'
65
+ require 'ory-kratos-client/models/self_service_recovery_flow_state'
66
+ require 'ory-kratos-client/models/self_service_recovery_link'
67
+ require 'ory-kratos-client/models/self_service_registration_flow'
68
+ require 'ory-kratos-client/models/self_service_settings_flow'
69
+ require 'ory-kratos-client/models/self_service_settings_flow_state'
70
+ require 'ory-kratos-client/models/self_service_verification_flow'
71
+ require 'ory-kratos-client/models/self_service_verification_flow_state'
67
72
  require 'ory-kratos-client/models/service_update_response'
68
73
  require 'ory-kratos-client/models/session'
69
- require 'ory-kratos-client/models/settings_flow'
70
74
  require 'ory-kratos-client/models/settings_profile_form_config'
71
- require 'ory-kratos-client/models/settings_via_api_response'
72
- require 'ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload'
73
- require 'ory-kratos-client/models/submit_self_service_login_flow'
74
- require 'ory-kratos-client/models/submit_self_service_login_flow_with_password_method'
75
- require 'ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method'
76
- require 'ory-kratos-client/models/submit_self_service_registration_flow'
77
- require 'ory-kratos-client/models/submit_self_service_registration_flow_with_password_method'
78
- require 'ory-kratos-client/models/submit_self_service_settings_flow'
79
- require 'ory-kratos-client/models/submit_self_service_settings_flow_with_password_method'
80
- require 'ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method'
81
- require 'ory-kratos-client/models/submit_self_service_verification_flow_with_link_method'
75
+ require 'ory-kratos-client/models/submit_self_service_login_flow_body'
76
+ require 'ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body'
77
+ require 'ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body'
78
+ require 'ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body'
79
+ require 'ory-kratos-client/models/submit_self_service_recovery_flow_body'
80
+ require 'ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body'
81
+ require 'ory-kratos-client/models/submit_self_service_registration_flow_body'
82
+ require 'ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body'
83
+ require 'ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body'
84
+ require 'ory-kratos-client/models/submit_self_service_settings_flow_body'
85
+ require 'ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body'
86
+ require 'ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body'
87
+ require 'ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body'
88
+ require 'ory-kratos-client/models/submit_self_service_verification_flow_body'
89
+ require 'ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body'
90
+ require 'ory-kratos-client/models/successful_self_service_login_without_browser'
91
+ require 'ory-kratos-client/models/successful_self_service_registration_without_browser'
92
+ require 'ory-kratos-client/models/successful_self_service_settings_without_browser'
82
93
  require 'ory-kratos-client/models/ui_container'
83
94
  require 'ory-kratos-client/models/ui_node'
84
95
  require 'ory-kratos-client/models/ui_node_anchor_attributes'
85
96
  require 'ory-kratos-client/models/ui_node_attributes'
86
97
  require 'ory-kratos-client/models/ui_node_image_attributes'
87
98
  require 'ory-kratos-client/models/ui_node_input_attributes'
88
- require 'ory-kratos-client/models/ui_node_input_attributes_value'
89
99
  require 'ory-kratos-client/models/ui_node_text_attributes'
90
100
  require 'ory-kratos-client/models/ui_text'
91
- require 'ory-kratos-client/models/update_identity'
92
- require 'ory-kratos-client/models/verifiable_address'
93
- require 'ory-kratos-client/models/verification_flow'
101
+ require 'ory-kratos-client/models/verifiable_identity_address'
94
102
  require 'ory-kratos-client/models/version'
95
103
  require 'ory-kratos-client/models/volume'
96
104
  require 'ory-kratos-client/models/volume_usage_data'
97
105
 
98
106
  # APIs
99
- require 'ory-kratos-client/api/admin_api'
100
- require 'ory-kratos-client/api/public_api'
107
+ require 'ory-kratos-client/api/metadata_api'
108
+ require 'ory-kratos-client/api/v0alpha1_api'
101
109
 
102
110
  module OryHydraClient
103
111
  class << self
@@ -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.6.1-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -332,7 +332,7 @@ module OryHydraClient
332
332
  # This endpoint returns the error associated with a user-facing self service errors. This endpoint supports stub values to help you implement the error UI: `?error=stub:500` - returns a stub 500 (Internal Server Error) error. More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
333
333
  # @param error [String] Error is the container&#39;s ID
334
334
  # @param [Hash] opts the optional parameters
335
- # @return [ErrorContainer]
335
+ # @return [SelfServiceErrorContainer]
336
336
  def get_self_service_error(error, opts = {})
337
337
  data, _status_code, _headers = get_self_service_error_with_http_info(error, opts)
338
338
  data
@@ -342,7 +342,7 @@ module OryHydraClient
342
342
  # This endpoint returns the error associated with a user-facing self service errors. This endpoint supports stub values to help you implement the error UI: &#x60;?error&#x3D;stub:500&#x60; - returns a stub 500 (Internal Server Error) error. More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
343
343
  # @param error [String] Error is the container&#39;s ID
344
344
  # @param [Hash] opts the optional parameters
345
- # @return [Array<(ErrorContainer, Integer, Hash)>] ErrorContainer data, response status code and response headers
345
+ # @return [Array<(SelfServiceErrorContainer, Integer, Hash)>] SelfServiceErrorContainer data, response status code and response headers
346
346
  def get_self_service_error_with_http_info(error, opts = {})
347
347
  if @api_client.config.debugging
348
348
  @api_client.config.logger.debug 'Calling API: AdminApi.get_self_service_error ...'
@@ -370,7 +370,7 @@ module OryHydraClient
370
370
  post_body = opts[:debug_body]
371
371
 
372
372
  # return_type
373
- return_type = opts[:debug_return_type] || 'ErrorContainer'
373
+ return_type = opts[:debug_return_type] || 'SelfServiceErrorContainer'
374
374
 
375
375
  # auth_names
376
376
  auth_names = opts[:debug_auth_names] || []
@@ -588,6 +588,7 @@ module OryHydraClient
588
588
  # When accessing this endpoint through Ory Kratos' Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set. The public endpoint does not return 404 status codes but instead 403 or 500 to improve data privacy. You can access this endpoint without credentials when using Ory Kratos' Admin API. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
589
589
  # @param id [String] ID is the Settings Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/settings?flow&#x3D;abcde&#x60;).
590
590
  # @param [Hash] opts the optional parameters
591
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
591
592
  # @return [SettingsFlow]
592
593
  def get_self_service_settings_flow(id, opts = {})
593
594
  data, _status_code, _headers = get_self_service_settings_flow_with_http_info(id, opts)
@@ -598,6 +599,7 @@ module OryHydraClient
598
599
  # When accessing this endpoint through Ory Kratos&#39; Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set. The public endpoint does not return 404 status codes but instead 403 or 500 to improve data privacy. You can access this endpoint without credentials when using Ory Kratos&#39; Admin API. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
599
600
  # @param id [String] ID is the Settings Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/settings?flow&#x3D;abcde&#x60;).
600
601
  # @param [Hash] opts the optional parameters
602
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
601
603
  # @return [Array<(SettingsFlow, Integer, Hash)>] SettingsFlow data, response status code and response headers
602
604
  def get_self_service_settings_flow_with_http_info(id, opts = {})
603
605
  if @api_client.config.debugging
@@ -618,6 +620,7 @@ module OryHydraClient
618
620
  header_params = opts[:header_params] || {}
619
621
  # HTTP header 'Accept' (if needed)
620
622
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
623
+ header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
621
624
 
622
625
  # form parameters
623
626
  form_params = opts[:form_params] || {}
@@ -0,0 +1,248 @@
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 'cgi'
14
+
15
+ module OryHydraClient
16
+ class MetadataApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Return Running Software Version.
23
+ # This endpoint returns the version of Ory Kratos. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [InlineResponse2001]
26
+ def get_version(opts = {})
27
+ data, _status_code, _headers = get_version_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Return Running Software Version.
32
+ # This endpoint returns the version of Ory Kratos. If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
35
+ def get_version_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: MetadataApi.get_version ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/version'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+
45
+ # header parameters
46
+ header_params = opts[:header_params] || {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = opts[:form_params] || {}
52
+
53
+ # http body (model)
54
+ post_body = opts[:debug_body]
55
+
56
+ # return_type
57
+ return_type = opts[:debug_return_type] || 'InlineResponse2001'
58
+
59
+ # auth_names
60
+ auth_names = opts[:debug_auth_names] || []
61
+
62
+ new_options = opts.merge(
63
+ :operation => :"MetadataApi.get_version",
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type
70
+ )
71
+
72
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: MetadataApi#get_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Check HTTP Server Status
80
+ # This endpoint returns a HTTP 200 status code when Ory Kratos is accepting incoming HTTP requests. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [InlineResponse200]
83
+ def is_alive(opts = {})
84
+ data, _status_code, _headers = is_alive_with_http_info(opts)
85
+ data
86
+ end
87
+
88
+ # Check HTTP Server Status
89
+ # This endpoint returns a HTTP 200 status code when Ory Kratos is accepting incoming HTTP requests. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
92
+ def is_alive_with_http_info(opts = {})
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug 'Calling API: MetadataApi.is_alive ...'
95
+ end
96
+ # resource path
97
+ local_var_path = '/health/alive'
98
+
99
+ # query parameters
100
+ query_params = opts[:query_params] || {}
101
+
102
+ # header parameters
103
+ header_params = opts[:header_params] || {}
104
+ # HTTP header 'Accept' (if needed)
105
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
106
+
107
+ # form parameters
108
+ form_params = opts[:form_params] || {}
109
+
110
+ # http body (model)
111
+ post_body = opts[:debug_body]
112
+
113
+ # return_type
114
+ return_type = opts[:debug_return_type] || 'InlineResponse200'
115
+
116
+ # auth_names
117
+ auth_names = opts[:debug_auth_names] || []
118
+
119
+ new_options = opts.merge(
120
+ :operation => :"MetadataApi.is_alive",
121
+ :header_params => header_params,
122
+ :query_params => query_params,
123
+ :form_params => form_params,
124
+ :body => post_body,
125
+ :auth_names => auth_names,
126
+ :return_type => return_type
127
+ )
128
+
129
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: MetadataApi#is_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+
136
+ # Check HTTP Server and Database Status
137
+ # This endpoint returns a HTTP 200 status code when Ory Kratos is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance.
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [InlineResponse200]
140
+ def is_ready(opts = {})
141
+ data, _status_code, _headers = is_ready_with_http_info(opts)
142
+ data
143
+ end
144
+
145
+ # Check HTTP Server and Database Status
146
+ # This endpoint returns a HTTP 200 status code when Ory Kratos is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set. Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance.
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
149
+ def is_ready_with_http_info(opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: MetadataApi.is_ready ...'
152
+ end
153
+ # resource path
154
+ local_var_path = '/health/ready'
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
163
+
164
+ # form parameters
165
+ form_params = opts[:form_params] || {}
166
+
167
+ # http body (model)
168
+ post_body = opts[:debug_body]
169
+
170
+ # return_type
171
+ return_type = opts[:debug_return_type] || 'InlineResponse200'
172
+
173
+ # auth_names
174
+ auth_names = opts[:debug_auth_names] || []
175
+
176
+ new_options = opts.merge(
177
+ :operation => :"MetadataApi.is_ready",
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names,
183
+ :return_type => return_type
184
+ )
185
+
186
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: MetadataApi#is_ready\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
192
+
193
+ # Get snapshot metrics from the service. If you're using k8s, you can then add annotations to your deployment like so:
194
+ # ``` metadata: annotations: prometheus.io/port: \"4434\" prometheus.io/path: \"/metrics/prometheus\" ```
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [nil]
197
+ def prometheus(opts = {})
198
+ prometheus_with_http_info(opts)
199
+ nil
200
+ end
201
+
202
+ # Get snapshot metrics from the service. If you&#39;re using k8s, you can then add annotations to your deployment like so:
203
+ # &#x60;&#x60;&#x60; metadata: annotations: prometheus.io/port: \&quot;4434\&quot; prometheus.io/path: \&quot;/metrics/prometheus\&quot; &#x60;&#x60;&#x60;
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
206
+ def prometheus_with_http_info(opts = {})
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug 'Calling API: MetadataApi.prometheus ...'
209
+ end
210
+ # resource path
211
+ local_var_path = '/metrics/prometheus'
212
+
213
+ # query parameters
214
+ query_params = opts[:query_params] || {}
215
+
216
+ # header parameters
217
+ header_params = opts[:header_params] || {}
218
+
219
+ # form parameters
220
+ form_params = opts[:form_params] || {}
221
+
222
+ # http body (model)
223
+ post_body = opts[:debug_body]
224
+
225
+ # return_type
226
+ return_type = opts[:debug_return_type]
227
+
228
+ # auth_names
229
+ auth_names = opts[:debug_auth_names] || []
230
+
231
+ new_options = opts.merge(
232
+ :operation => :"MetadataApi.prometheus",
233
+ :header_params => header_params,
234
+ :query_params => query_params,
235
+ :form_params => form_params,
236
+ :body => post_body,
237
+ :auth_names => auth_names,
238
+ :return_type => return_type
239
+ )
240
+
241
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug "API called: MetadataApi#prometheus\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
244
+ end
245
+ return data, status_code, headers
246
+ end
247
+ end
248
+ end