ory-client 0.0.1.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +231 -0
  4. data/Rakefile +10 -0
  5. data/docs/AuthenticateOKBody.md +20 -0
  6. data/docs/ContainerChangeResponseItem.md +20 -0
  7. data/docs/ContainerCreateCreatedBody.md +20 -0
  8. data/docs/ContainerTopOKBody.md +20 -0
  9. data/docs/ContainerUpdateOKBody.md +18 -0
  10. data/docs/ContainerWaitOKBody.md +20 -0
  11. data/docs/ContainerWaitOKBodyError.md +18 -0
  12. data/docs/CreateIdentity.md +20 -0
  13. data/docs/CreateRecoveryLink.md +20 -0
  14. data/docs/DefaultApi.md +2922 -0
  15. data/docs/ErrorResponse.md +18 -0
  16. data/docs/GenericError.md +30 -0
  17. data/docs/GraphDriverData.md +20 -0
  18. data/docs/HealthNotReadyStatus.md +18 -0
  19. data/docs/HealthStatus.md +18 -0
  20. data/docs/IdResponse.md +18 -0
  21. data/docs/Identity.md +32 -0
  22. data/docs/IdentityCredentials.md +26 -0
  23. data/docs/ImageDeleteResponseItem.md +20 -0
  24. data/docs/ImageSummary.md +36 -0
  25. data/docs/InlineResponse200.md +18 -0
  26. data/docs/InlineResponse2001.md +18 -0
  27. data/docs/InlineResponse503.md +18 -0
  28. data/docs/JsonError.md +18 -0
  29. data/docs/LoginFlow.md +36 -0
  30. data/docs/LoginViaApiResponse.md +20 -0
  31. data/docs/Meta.md +18 -0
  32. data/docs/Plugin.md +28 -0
  33. data/docs/PluginConfig.md +48 -0
  34. data/docs/PluginConfigArgs.md +24 -0
  35. data/docs/PluginConfigInterface.md +20 -0
  36. data/docs/PluginConfigLinux.md +22 -0
  37. data/docs/PluginConfigNetwork.md +18 -0
  38. data/docs/PluginConfigRootfs.md +20 -0
  39. data/docs/PluginConfigUser.md +20 -0
  40. data/docs/PluginDevice.md +24 -0
  41. data/docs/PluginEnv.md +24 -0
  42. data/docs/PluginInterfaceType.md +22 -0
  43. data/docs/PluginMount.md +30 -0
  44. data/docs/PluginSettings.md +24 -0
  45. data/docs/Port.md +24 -0
  46. data/docs/RecoveryAddress.md +26 -0
  47. data/docs/RecoveryFlow.md +32 -0
  48. data/docs/RecoveryLink.md +20 -0
  49. data/docs/RegistrationFlow.md +30 -0
  50. data/docs/RegistrationViaApiResponse.md +22 -0
  51. data/docs/RevokeSession.md +18 -0
  52. data/docs/SelfServiceErrorContainer.md +24 -0
  53. data/docs/ServiceUpdateResponse.md +18 -0
  54. data/docs/Session.md +28 -0
  55. data/docs/SettingsFlow.md +34 -0
  56. data/docs/SettingsProfileFormConfig.md +24 -0
  57. data/docs/SettingsViaApiResponse.md +20 -0
  58. data/docs/SubmitSelfServiceBrowserSettingsOIDCFlowPayload.md +22 -0
  59. data/docs/SubmitSelfServiceLoginFlow.md +47 -0
  60. data/docs/SubmitSelfServiceLoginFlowWithPasswordMethod.md +24 -0
  61. data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethod.md +20 -0
  62. data/docs/SubmitSelfServiceRegistrationFlow.md +47 -0
  63. data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethod.md +24 -0
  64. data/docs/SubmitSelfServiceSettingsFlow.md +49 -0
  65. data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethod.md +22 -0
  66. data/docs/SubmitSelfServiceSettingsFlowWithProfileMethod.md +22 -0
  67. data/docs/SubmitSelfServiceVerificationFlowWithLinkMethod.md +20 -0
  68. data/docs/UiContainer.md +24 -0
  69. data/docs/UiNode.md +26 -0
  70. data/docs/UiNodeAnchorAttributes.md +20 -0
  71. data/docs/UiNodeAttributes.md +53 -0
  72. data/docs/UiNodeImageAttributes.md +18 -0
  73. data/docs/UiNodeInputAttributes.md +30 -0
  74. data/docs/UiNodeInputAttributesValue.md +51 -0
  75. data/docs/UiNodeTextAttributes.md +18 -0
  76. data/docs/UiText.md +24 -0
  77. data/docs/UpdateIdentity.md +20 -0
  78. data/docs/VerifiableIdentityAddress.md +32 -0
  79. data/docs/VerificationFlow.md +32 -0
  80. data/docs/Version.md +18 -0
  81. data/docs/Volume.md +34 -0
  82. data/docs/VolumeUsageData.md +20 -0
  83. data/lib/ory-client.rb +117 -0
  84. data/lib/ory-client/api/default_api.rb +2705 -0
  85. data/lib/ory-client/api_client.rb +390 -0
  86. data/lib/ory-client/api_error.rb +57 -0
  87. data/lib/ory-client/configuration.rb +297 -0
  88. data/lib/ory-client/models/authenticate_ok_body.rb +240 -0
  89. data/lib/ory-client/models/container_change_response_item.rb +240 -0
  90. data/lib/ory-client/models/container_create_created_body.rb +242 -0
  91. data/lib/ory-client/models/container_top_ok_body.rb +244 -0
  92. data/lib/ory-client/models/container_update_ok_body.rb +227 -0
  93. data/lib/ory-client/models/container_wait_ok_body.rb +239 -0
  94. data/lib/ory-client/models/container_wait_ok_body_error.rb +220 -0
  95. data/lib/ory-client/models/create_identity.rb +239 -0
  96. data/lib/ory-client/models/create_recovery_link.rb +250 -0
  97. data/lib/ory-client/models/error_response.rb +224 -0
  98. data/lib/ory-client/models/generic_error.rb +286 -0
  99. data/lib/ory-client/models/graph_driver_data.rb +241 -0
  100. data/lib/ory-client/models/health_not_ready_status.rb +221 -0
  101. data/lib/ory-client/models/health_status.rb +219 -0
  102. data/lib/ory-client/models/id_response.rb +225 -0
  103. data/lib/ory-client/models/identity.rb +309 -0
  104. data/lib/ory-client/models/identity_credentials.rb +261 -0
  105. data/lib/ory-client/models/image_delete_response_item.rb +230 -0
  106. data/lib/ory-client/models/image_summary.rb +366 -0
  107. data/lib/ory-client/models/inline_response200.rb +224 -0
  108. data/lib/ory-client/models/inline_response2001.rb +224 -0
  109. data/lib/ory-client/models/inline_response503.rb +226 -0
  110. data/lib/ory-client/models/json_error.rb +224 -0
  111. data/lib/ory-client/models/login_flow.rb +338 -0
  112. data/lib/ory-client/models/login_via_api_response.rb +239 -0
  113. data/lib/ory-client/models/meta.rb +219 -0
  114. data/lib/ory-client/models/plugin.rb +288 -0
  115. data/lib/ory-client/models/plugin_config.rb +434 -0
  116. data/lib/ory-client/models/plugin_config_args.rb +274 -0
  117. data/lib/ory-client/models/plugin_config_interface.rb +242 -0
  118. data/lib/ory-client/models/plugin_config_linux.rb +259 -0
  119. data/lib/ory-client/models/plugin_config_network.rb +225 -0
  120. data/lib/ory-client/models/plugin_config_rootfs.rb +232 -0
  121. data/lib/ory-client/models/plugin_config_user.rb +230 -0
  122. data/lib/ory-client/models/plugin_device.rb +272 -0
  123. data/lib/ory-client/models/plugin_env.rb +272 -0
  124. data/lib/ory-client/models/plugin_interface_type.rb +255 -0
  125. data/lib/ory-client/models/plugin_mount.rb +319 -0
  126. data/lib/ory-client/models/plugin_settings.rb +277 -0
  127. data/lib/ory-client/models/port.rb +260 -0
  128. data/lib/ory-client/models/recovery_address.rb +271 -0
  129. data/lib/ory-client/models/recovery_flow.rb +317 -0
  130. data/lib/ory-client/models/recovery_link.rb +234 -0
  131. data/lib/ory-client/models/registration_flow.rb +302 -0
  132. data/lib/ory-client/models/registration_via_api_response.rb +248 -0
  133. data/lib/ory-client/models/revoke_session.rb +224 -0
  134. data/lib/ory-client/models/self_service_error_container.rb +260 -0
  135. data/lib/ory-client/models/service_update_response.rb +222 -0
  136. data/lib/ory-client/models/session.rb +288 -0
  137. data/lib/ory-client/models/settings_flow.rb +331 -0
  138. data/lib/ory-client/models/settings_profile_form_config.rb +266 -0
  139. data/lib/ory-client/models/settings_via_api_response.rb +238 -0
  140. data/lib/ory-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +239 -0
  141. data/lib/ory-client/models/submit_self_service_login_flow.rb +104 -0
  142. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method.rb +249 -0
  143. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method.rb +229 -0
  144. data/lib/ory-client/models/submit_self_service_registration_flow.rb +104 -0
  145. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method.rb +276 -0
  146. data/lib/ory-client/models/submit_self_service_settings_flow.rb +105 -0
  147. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method.rb +244 -0
  148. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method.rb +245 -0
  149. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method.rb +230 -0
  150. data/lib/ory-client/models/ui_container.rb +267 -0
  151. data/lib/ory-client/models/ui_node.rb +282 -0
  152. data/lib/ory-client/models/ui_node_anchor_attributes.rb +238 -0
  153. data/lib/ory-client/models/ui_node_attributes.rb +107 -0
  154. data/lib/ory-client/models/ui_node_image_attributes.rb +224 -0
  155. data/lib/ory-client/models/ui_node_input_attributes.rb +292 -0
  156. data/lib/ory-client/models/ui_node_input_attributes_value.rb +106 -0
  157. data/lib/ory-client/models/ui_node_text_attributes.rb +223 -0
  158. data/lib/ory-client/models/ui_text.rb +262 -0
  159. data/lib/ory-client/models/update_identity.rb +234 -0
  160. data/lib/ory-client/models/verifiable_identity_address.rb +313 -0
  161. data/lib/ory-client/models/verification_flow.rb +307 -0
  162. data/lib/ory-client/models/version.rb +219 -0
  163. data/lib/ory-client/models/volume.rb +335 -0
  164. data/lib/ory-client/models/volume_usage_data.rb +240 -0
  165. data/lib/ory-client/version.rb +15 -0
  166. data/ory-client.gemspec +38 -0
  167. data/spec/api/default_api_spec.rb +549 -0
  168. data/spec/api_client_spec.rb +226 -0
  169. data/spec/configuration_spec.rb +42 -0
  170. data/spec/models/authenticate_ok_body_spec.rb +40 -0
  171. data/spec/models/container_change_response_item_spec.rb +40 -0
  172. data/spec/models/container_create_created_body_spec.rb +40 -0
  173. data/spec/models/container_top_ok_body_spec.rb +40 -0
  174. data/spec/models/container_update_ok_body_spec.rb +34 -0
  175. data/spec/models/container_wait_ok_body_error_spec.rb +34 -0
  176. data/spec/models/container_wait_ok_body_spec.rb +40 -0
  177. data/spec/models/create_identity_spec.rb +40 -0
  178. data/spec/models/create_recovery_link_spec.rb +40 -0
  179. data/spec/models/error_response_spec.rb +34 -0
  180. data/spec/models/generic_error_spec.rb +70 -0
  181. data/spec/models/graph_driver_data_spec.rb +40 -0
  182. data/spec/models/health_not_ready_status_spec.rb +34 -0
  183. data/spec/models/health_status_spec.rb +34 -0
  184. data/spec/models/id_response_spec.rb +34 -0
  185. data/spec/models/identity_credentials_spec.rb +58 -0
  186. data/spec/models/identity_spec.rb +76 -0
  187. data/spec/models/image_delete_response_item_spec.rb +40 -0
  188. data/spec/models/image_summary_spec.rb +88 -0
  189. data/spec/models/inline_response2001_spec.rb +34 -0
  190. data/spec/models/inline_response200_spec.rb +34 -0
  191. data/spec/models/inline_response503_spec.rb +34 -0
  192. data/spec/models/json_error_spec.rb +34 -0
  193. data/spec/models/login_flow_spec.rb +88 -0
  194. data/spec/models/login_via_api_response_spec.rb +40 -0
  195. data/spec/models/meta_spec.rb +34 -0
  196. data/spec/models/plugin_config_args_spec.rb +52 -0
  197. data/spec/models/plugin_config_interface_spec.rb +40 -0
  198. data/spec/models/plugin_config_linux_spec.rb +46 -0
  199. data/spec/models/plugin_config_network_spec.rb +34 -0
  200. data/spec/models/plugin_config_rootfs_spec.rb +40 -0
  201. data/spec/models/plugin_config_spec.rb +124 -0
  202. data/spec/models/plugin_config_user_spec.rb +40 -0
  203. data/spec/models/plugin_device_spec.rb +52 -0
  204. data/spec/models/plugin_env_spec.rb +52 -0
  205. data/spec/models/plugin_interface_type_spec.rb +46 -0
  206. data/spec/models/plugin_mount_spec.rb +70 -0
  207. data/spec/models/plugin_settings_spec.rb +52 -0
  208. data/spec/models/plugin_spec.rb +64 -0
  209. data/spec/models/port_spec.rb +52 -0
  210. data/spec/models/recovery_address_spec.rb +58 -0
  211. data/spec/models/recovery_flow_spec.rb +76 -0
  212. data/spec/models/recovery_link_spec.rb +40 -0
  213. data/spec/models/registration_flow_spec.rb +70 -0
  214. data/spec/models/registration_via_api_response_spec.rb +46 -0
  215. data/spec/models/revoke_session_spec.rb +34 -0
  216. data/spec/models/self_service_error_container_spec.rb +52 -0
  217. data/spec/models/service_update_response_spec.rb +34 -0
  218. data/spec/models/session_spec.rb +64 -0
  219. data/spec/models/settings_flow_spec.rb +82 -0
  220. data/spec/models/settings_profile_form_config_spec.rb +52 -0
  221. data/spec/models/settings_via_api_response_spec.rb +40 -0
  222. data/spec/models/submit_self_service_browser_settings_oidc_flow_payload_spec.rb +46 -0
  223. data/spec/models/submit_self_service_login_flow_spec.rb +31 -0
  224. data/spec/models/submit_self_service_login_flow_with_password_method_spec.rb +52 -0
  225. data/spec/models/submit_self_service_recovery_flow_with_link_method_spec.rb +40 -0
  226. data/spec/models/submit_self_service_registration_flow_spec.rb +31 -0
  227. data/spec/models/submit_self_service_registration_flow_with_password_method_spec.rb +52 -0
  228. data/spec/models/submit_self_service_settings_flow_spec.rb +31 -0
  229. data/spec/models/submit_self_service_settings_flow_with_password_method_spec.rb +46 -0
  230. data/spec/models/submit_self_service_settings_flow_with_profile_method_spec.rb +46 -0
  231. data/spec/models/submit_self_service_verification_flow_with_link_method_spec.rb +40 -0
  232. data/spec/models/ui_container_spec.rb +52 -0
  233. data/spec/models/ui_node_anchor_attributes_spec.rb +40 -0
  234. data/spec/models/ui_node_attributes_spec.rb +31 -0
  235. data/spec/models/ui_node_image_attributes_spec.rb +34 -0
  236. data/spec/models/ui_node_input_attributes_spec.rb +70 -0
  237. data/spec/models/ui_node_input_attributes_value_spec.rb +31 -0
  238. data/spec/models/ui_node_spec.rb +58 -0
  239. data/spec/models/ui_node_text_attributes_spec.rb +34 -0
  240. data/spec/models/ui_text_spec.rb +52 -0
  241. data/spec/models/update_identity_spec.rb +40 -0
  242. data/spec/models/verifiable_identity_address_spec.rb +76 -0
  243. data/spec/models/verification_flow_spec.rb +76 -0
  244. data/spec/models/version_spec.rb +34 -0
  245. data/spec/models/volume_spec.rb +82 -0
  246. data/spec/models/volume_usage_data_spec.rb +40 -0
  247. data/spec/spec_helper.rb +111 -0
  248. metadata +413 -0
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #Ory APIs
3
+
4
+ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
+
6
+ The version of the OpenAPI document: 0.0.1.alpha5
7
+ Contact: support@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ module OryHydraClient
14
+ VERSION = '0.0.1.alpha5'
15
+ end
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Ory APIs
5
+
6
+ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
7
+
8
+ The version of the OpenAPI document: v0.0.1-alpha.5
9
+ Contact: support@ory.sh
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.1.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "ory-client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "ory-client"
20
+ s.version = OryHydraClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["ORY GmbH"]
23
+ s.email = ["opensource@ory.sh"]
24
+ s.homepage = "https://www.ory.sh"
25
+ s.summary = "Ory APIs Ruby Gem"
26
+ s.description = "Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. "
27
+ s.license = "Apache-2.0"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+
34
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
+ s.test_files = `find spec/*`.split("\n")
36
+ s.executables = []
37
+ s.require_paths = ["lib"]
38
+ end
@@ -0,0 +1,549 @@
1
+ =begin
2
+ #Ory APIs
3
+
4
+ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
+
6
+ The version of the OpenAPI document: v0.0.1-alpha.3
7
+ Contact: support@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for OryHydraClient::DefaultApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DefaultApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OryHydraClient::DefaultApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DefaultApi' do
30
+ it 'should create an instance of DefaultApi' do
31
+ expect(@api_instance).to be_instance_of(OryHydraClient::DefaultApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_identity_admin
36
+ # Create an Identity
37
+ # This endpoint creates an identity. It is NOT possible to set an identity's credentials (password, ...) using this method! A way to achieve that will be introduced in the future. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [CreateIdentity] :create_identity
40
+ # @return [Identity]
41
+ describe 'create_identity_admin test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for create_recovery_link_admin
48
+ # Create a Recovery Link
49
+ # This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [CreateRecoveryLink] :create_recovery_link
52
+ # @return [RecoveryLink]
53
+ describe 'create_recovery_link_admin test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for delete_identity_admin
60
+ # Delete an Identity
61
+ # Calling this endpoint irrecoverably and permanently deletes the identity given its ID. This action can not be undone. This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is assumed that is has been deleted already. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
62
+ # @param id ID is the identity's ID.
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [nil]
65
+ describe 'delete_identity_admin test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for get_identity_admin
72
+ # Get an Identity
73
+ # Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
74
+ # @param id ID must be set to the ID of identity you want to get
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [Identity]
77
+ describe 'get_identity_admin test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for get_schema
84
+ # Get a Traits Schema Definition
85
+ # @param id ID must be set to the ID of schema you want to get
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [Object]
88
+ describe 'get_schema test' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ # unit tests for get_schema_admin
95
+ # Get a Traits Schema Definition
96
+ # @param id ID must be set to the ID of schema you want to get
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Object]
99
+ describe 'get_schema_admin test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ # unit tests for get_self_service_error
106
+ # Get User-Facing Self-Service Errors
107
+ # 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).
108
+ # @param error Error is the container's ID
109
+ # @param [Hash] opts the optional parameters
110
+ # @return [SelfServiceErrorContainer]
111
+ describe 'get_self_service_error test' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
+ end
115
+ end
116
+
117
+ # unit tests for get_self_service_error_admin
118
+ # Get User-Facing Self-Service Errors
119
+ # 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).
120
+ # @param error Error is the container's ID
121
+ # @param [Hash] opts the optional parameters
122
+ # @return [SelfServiceErrorContainer]
123
+ describe 'get_self_service_error_admin test' do
124
+ it 'should work' do
125
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
126
+ end
127
+ end
128
+
129
+ # unit tests for get_self_service_login_flow
130
+ # Get Login Flow
131
+ # This endpoint returns a login flow's context with, for example, error details and other information. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
132
+ # @param id The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [LoginFlow]
135
+ describe 'get_self_service_login_flow test' do
136
+ it 'should work' do
137
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
138
+ end
139
+ end
140
+
141
+ # unit tests for get_self_service_login_flow_admin
142
+ # Get Login Flow
143
+ # This endpoint returns a login flow's context with, for example, error details and other information. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
144
+ # @param id The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
145
+ # @param [Hash] opts the optional parameters
146
+ # @return [LoginFlow]
147
+ describe 'get_self_service_login_flow_admin test' do
148
+ it 'should work' do
149
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
150
+ end
151
+ end
152
+
153
+ # unit tests for get_self_service_recovery_flow
154
+ # Get information about a recovery flow
155
+ # This endpoint returns a recovery flow's context with, for example, error details and other information. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
156
+ # @param id The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`).
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [RecoveryFlow]
159
+ describe 'get_self_service_recovery_flow test' do
160
+ it 'should work' do
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ # unit tests for get_self_service_recovery_flow_admin
166
+ # Get information about a recovery flow
167
+ # This endpoint returns a recovery flow's context with, for example, error details and other information. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
168
+ # @param id The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`).
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [RecoveryFlow]
171
+ describe 'get_self_service_recovery_flow_admin test' do
172
+ it 'should work' do
173
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
+ end
175
+ end
176
+
177
+ # unit tests for get_self_service_registration_flow
178
+ # Get Registration Flow
179
+ # This endpoint returns a registration flow's context with, for example, error details and other information. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
180
+ # @param id The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
181
+ # @param [Hash] opts the optional parameters
182
+ # @return [RegistrationFlow]
183
+ describe 'get_self_service_registration_flow test' do
184
+ it 'should work' do
185
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
186
+ end
187
+ end
188
+
189
+ # unit tests for get_self_service_registration_flow_admin
190
+ # Get Registration Flow
191
+ # This endpoint returns a registration flow's context with, for example, error details and other information. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
192
+ # @param id The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
193
+ # @param [Hash] opts the optional parameters
194
+ # @return [RegistrationFlow]
195
+ describe 'get_self_service_registration_flow_admin test' do
196
+ it 'should work' do
197
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
198
+ end
199
+ end
200
+
201
+ # unit tests for get_self_service_settings_flow
202
+ # Get Settings Flow
203
+ # 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).
204
+ # @param id ID is the Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
205
+ # @param [Hash] opts the optional parameters
206
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
207
+ # @return [SettingsFlow]
208
+ describe 'get_self_service_settings_flow test' do
209
+ it 'should work' do
210
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
211
+ end
212
+ end
213
+
214
+ # unit tests for get_self_service_settings_flow_admin
215
+ # Get Settings Flow
216
+ # 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).
217
+ # @param id ID is the Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
218
+ # @param [Hash] opts the optional parameters
219
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
220
+ # @return [SettingsFlow]
221
+ describe 'get_self_service_settings_flow_admin test' do
222
+ it 'should work' do
223
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
224
+ end
225
+ end
226
+
227
+ # unit tests for get_self_service_verification_flow
228
+ # Get Verification Flow
229
+ # This endpoint returns a verification flow's context with, for example, error details and other information. More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
230
+ # @param id The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
231
+ # @param [Hash] opts the optional parameters
232
+ # @return [VerificationFlow]
233
+ describe 'get_self_service_verification_flow test' do
234
+ it 'should work' do
235
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
236
+ end
237
+ end
238
+
239
+ # unit tests for get_self_service_verification_flow_admin
240
+ # Get Verification Flow
241
+ # This endpoint returns a verification flow's context with, for example, error details and other information. More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
242
+ # @param id The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
243
+ # @param [Hash] opts the optional parameters
244
+ # @return [VerificationFlow]
245
+ describe 'get_self_service_verification_flow_admin test' do
246
+ it 'should work' do
247
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
248
+ end
249
+ end
250
+
251
+ # unit tests for get_version_admin
252
+ # Return Running Software Version.
253
+ # 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.
254
+ # @param [Hash] opts the optional parameters
255
+ # @return [InlineResponse2001]
256
+ describe 'get_version_admin test' do
257
+ it 'should work' do
258
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
259
+ end
260
+ end
261
+
262
+ # unit tests for initialize_self_service_browser_logout_flow
263
+ # Initialize Browser-Based Logout User Flow
264
+ # This endpoint initializes a logout flow. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). On successful logout, the browser will be redirected (HTTP 302 Found) to the `return_to` parameter of the initial request or fall back to `urls.default_return_to`. More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout).
265
+ # @param [Hash] opts the optional parameters
266
+ # @return [nil]
267
+ describe 'initialize_self_service_browser_logout_flow test' do
268
+ it 'should work' do
269
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
270
+ end
271
+ end
272
+
273
+ # unit tests for initialize_self_service_login_for_browsers
274
+ # Initialize Login Flow for browsers
275
+ # This endpoint initializes a browser-based user login flow. Once initialized, the browser will be redirected to `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
276
+ # @param [Hash] opts the optional parameters
277
+ # @option opts [Boolean] :refresh Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
278
+ # @return [nil]
279
+ describe 'initialize_self_service_login_for_browsers test' do
280
+ it 'should work' do
281
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
282
+ end
283
+ end
284
+
285
+ # unit tests for initialize_self_service_login_for_native_apps
286
+ # Initialize Login Flow for Native Apps and API clients
287
+ # This endpoint initiates a login flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=<flow_id>`. :::warning You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). ::: More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
288
+ # @param [Hash] opts the optional parameters
289
+ # @option opts [Boolean] :refresh Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
290
+ # @return [LoginFlow]
291
+ describe 'initialize_self_service_login_for_native_apps test' do
292
+ it 'should work' do
293
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
294
+ end
295
+ end
296
+
297
+ # unit tests for initialize_self_service_recovery_for_browsers
298
+ # Initialize Recovery Flow for Browser Clients
299
+ # This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to `selfservice.flows.recovery.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists, the browser is returned to the configured return URL. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
300
+ # @param [Hash] opts the optional parameters
301
+ # @return [nil]
302
+ describe 'initialize_self_service_recovery_for_browsers test' do
303
+ it 'should work' do
304
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
305
+ end
306
+ end
307
+
308
+ # unit tests for initialize_self_service_recovery_for_native_apps
309
+ # Initialize Recovery Flow for Native Apps and API clients
310
+ # This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. :::warning You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). ::: More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
311
+ # @param [Hash] opts the optional parameters
312
+ # @return [RecoveryFlow]
313
+ describe 'initialize_self_service_recovery_for_native_apps test' do
314
+ it 'should work' do
315
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
316
+ end
317
+ end
318
+
319
+ # unit tests for initialize_self_service_registration_for_browsers
320
+ # Initialize Registration Flow for browsers
321
+ # This endpoint initializes a browser-based user registration flow. Once initialized, the browser will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. :::note This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). ::: More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
322
+ # @param [Hash] opts the optional parameters
323
+ # @return [nil]
324
+ describe 'initialize_self_service_registration_for_browsers test' do
325
+ it 'should work' do
326
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
327
+ end
328
+ end
329
+
330
+ # unit tests for initialize_self_service_registration_for_native_apps
331
+ # Initialize Registration Flow for Native Apps and API clients
332
+ # This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing registration flow call `/self-service/registration/flows?flow=<flow_id>`. :::warning You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). ::: More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
333
+ # @param [Hash] opts the optional parameters
334
+ # @return [RegistrationFlow]
335
+ describe 'initialize_self_service_registration_for_native_apps test' do
336
+ it 'should work' do
337
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
338
+ end
339
+ end
340
+
341
+ # unit tests for initialize_self_service_settings_for_browsers
342
+ # Initialize Settings Flow for Browsers
343
+ # This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid Ory Kratos Session Cookie is included in the request, a login flow will be initialized. :::note This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). ::: More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
344
+ # @param [Hash] opts the optional parameters
345
+ # @return [nil]
346
+ describe 'initialize_self_service_settings_for_browsers test' do
347
+ it 'should work' do
348
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
349
+ end
350
+ end
351
+
352
+ # unit tests for initialize_self_service_settings_for_native_apps
353
+ # Initialize Settings Flow for Native Apps and API clients
354
+ # This endpoint initiates a settings flow for API clients such as mobile devices, smart TVs, and so on. You must provide a valid Ory Kratos Session Token for this endpoint to respond with HTTP 200 OK. To fetch an existing settings flow call `/self-service/settings/flows?flow=<flow_id>`. :::warning You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). ::: More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
355
+ # @param [Hash] opts the optional parameters
356
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
357
+ # @return [SettingsFlow]
358
+ describe 'initialize_self_service_settings_for_native_apps test' do
359
+ it 'should work' do
360
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
361
+ end
362
+ end
363
+
364
+ # unit tests for initialize_self_service_verification_for_browsers
365
+ # Initialize Verification Flow for Browser Clients
366
+ # This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to `selfservice.flows.verification.ui_url` with the flow ID set as the query parameter `?flow=`. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [nil]
369
+ describe 'initialize_self_service_verification_for_browsers test' do
370
+ it 'should work' do
371
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
372
+ end
373
+ end
374
+
375
+ # unit tests for initialize_self_service_verification_for_native_apps
376
+ # Initialize Verification Flow for Native Apps and API clients
377
+ # This endpoint initiates a verification flow for API clients such as mobile devices, smart TVs, and so on. To fetch an existing verification flow call `/self-service/verification/flows?flow=<flow_id>`. :::warning You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). ::: More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [VerificationFlow]
380
+ describe 'initialize_self_service_verification_for_native_apps test' do
381
+ it 'should work' do
382
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
383
+ end
384
+ end
385
+
386
+ # unit tests for is_alive_admin
387
+ # Check HTTP Server Status
388
+ # 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.
389
+ # @param [Hash] opts the optional parameters
390
+ # @return [InlineResponse200]
391
+ describe 'is_alive_admin test' do
392
+ it 'should work' do
393
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
394
+ end
395
+ end
396
+
397
+ # unit tests for is_ready_admin
398
+ # Check HTTP Server and Database Status
399
+ # 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.
400
+ # @param [Hash] opts the optional parameters
401
+ # @return [InlineResponse200]
402
+ describe 'is_ready_admin test' do
403
+ it 'should work' do
404
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
405
+ end
406
+ end
407
+
408
+ # unit tests for list_identities_admin
409
+ # List Identities
410
+ # Lists all identities. Does not support search at the moment. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
411
+ # @param [Hash] opts the optional parameters
412
+ # @option opts [Integer] :per_page Items per Page This is the number of items per page.
413
+ # @option opts [Integer] :page Pagination Page
414
+ # @return [Array<Identity>]
415
+ describe 'list_identities_admin test' do
416
+ it 'should work' do
417
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
418
+ end
419
+ end
420
+
421
+ # unit tests for prometheus_admin
422
+ # Get snapshot metrics from the Hydra service. If you&#39;re using k8s, you can then add annotations to your deployment like so:
423
+ # &#x60;&#x60;&#x60; metadata: annotations: prometheus.io/port: \&quot;4434\&quot; prometheus.io/path: \&quot;/metrics/prometheus\&quot; &#x60;&#x60;&#x60;
424
+ # @param [Hash] opts the optional parameters
425
+ # @return [nil]
426
+ describe 'prometheus_admin test' do
427
+ it 'should work' do
428
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
429
+ end
430
+ end
431
+
432
+ # unit tests for revoke_session
433
+ # Initialize Logout Flow for API Clients - Revoke a Session
434
+ # Use this endpoint to revoke a session using its token. This endpoint is particularly useful for API clients such as mobile apps to log the user out of the system and invalidate the session. This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.
435
+ # @param revoke_session
436
+ # @param [Hash] opts the optional parameters
437
+ # @return [nil]
438
+ describe 'revoke_session test' do
439
+ it 'should work' do
440
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
441
+ end
442
+ end
443
+
444
+ # unit tests for submit_self_service_login_flow
445
+ # Submit a Login Flow
446
+ # Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect &#x60;application/json&#x60; to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. Browser flows expect &#x60;application/x-www-form-urlencoded&#x60; to be sent in the body and responds with a HTTP 302 redirect to the post/after login URL or the &#x60;return_to&#x60; value if it was set and if the login succeeded; a HTTP 302 redirect to the login UI URL with the flow ID containing the validation errors otherwise. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
447
+ # @param flow The Login Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?flow&#x3D;abcde&#x60;).
448
+ # @param [Hash] opts the optional parameters
449
+ # @option opts [SubmitSelfServiceLoginFlow] :submit_self_service_login_flow
450
+ # @return [LoginViaApiResponse]
451
+ describe 'submit_self_service_login_flow test' do
452
+ it 'should work' do
453
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
454
+ end
455
+ end
456
+
457
+ # unit tests for submit_self_service_recovery_flow
458
+ # Complete Recovery Flow
459
+ # Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: &#x60;choose_method&#x60; expects &#x60;flow&#x60; (in the URL query) and &#x60;email&#x60; (in the body) to be sent and works with API- and Browser-initiated flows. For API clients it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 302 Found redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients it returns a HTTP 302 Found redirect to the Recovery UI URL with the Recovery Flow ID appended. &#x60;sent_email&#x60; is the success state after &#x60;choose_method&#x60; for the &#x60;link&#x60; method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in &#x60;choose_method&#x60; state. &#x60;passed_challenge&#x60; expects a &#x60;token&#x60; to be sent in the URL query and given the nature of the flow (\&quot;sending a recovery link\&quot;) does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
460
+ # @param flow The Registration Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?flow&#x3D;abcde&#x60;).
461
+ # @param [Hash] opts the optional parameters
462
+ # @option opts [Object] :body
463
+ # @return [nil]
464
+ describe 'submit_self_service_recovery_flow test' do
465
+ it 'should work' do
466
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
467
+ end
468
+ end
469
+
470
+ # unit tests for submit_self_service_recovery_flow_with_link_method
471
+ # Complete Recovery Flow with Link Method
472
+ # Use this endpoint to complete a recovery flow using the link method. This endpoint behaves differently for API and browser flows and has several states: &#x60;choose_method&#x60; expects &#x60;flow&#x60; (in the URL query) and &#x60;email&#x60; (in the body) to be sent and works with API- and Browser-initiated flows. For API clients it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 302 Found redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients it returns a HTTP 302 Found redirect to the Recovery UI URL with the Recovery Flow ID appended. &#x60;sent_email&#x60; is the success state after &#x60;choose_method&#x60; and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in &#x60;choose_method&#x60; state. &#x60;passed_challenge&#x60; expects a &#x60;token&#x60; to be sent in the URL query and given the nature of the flow (\&quot;sending a recovery link\&quot;) does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
473
+ # @param [Hash] opts the optional parameters
474
+ # @option opts [String] :token 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.
475
+ # @option opts [String] :flow The Flow ID format: uuid
476
+ # @option opts [SubmitSelfServiceRecoveryFlowWithLinkMethod] :submit_self_service_recovery_flow_with_link_method
477
+ # @return [nil]
478
+ describe 'submit_self_service_recovery_flow_with_link_method test' do
479
+ it 'should work' do
480
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
481
+ end
482
+ end
483
+
484
+ # unit tests for submit_self_service_registration_flow
485
+ # Submit a Registration Flow
486
+ # Use this endpoint to complete a registration flow by sending an identity&#39;s traits and password. This endpoint behaves differently for API and browser flows. API flows expect &#x60;application/json&#x60; to be sent in the body and respond with HTTP 200 and a application/json body with the created identity success - if the session hook is configured the &#x60;session&#x60; and &#x60;session_token&#x60; will also be included; HTTP 302 redirect to a fresh registration flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. Browser flows expect &#x60;application/x-www-form-urlencoded&#x60; to be sent in the body and responds with a HTTP 302 redirect to the post/after registration URL or the &#x60;return_to&#x60; value if it was set and if the registration succeeded; a HTTP 302 redirect to the registration UI URL with the flow ID containing the validation errors otherwise. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
487
+ # @param flow The Registration Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?flow&#x3D;abcde&#x60;).
488
+ # @param [Hash] opts the optional parameters
489
+ # @option opts [SubmitSelfServiceRegistrationFlow] :submit_self_service_registration_flow
490
+ # @return [RegistrationViaApiResponse]
491
+ describe 'submit_self_service_registration_flow test' do
492
+ it 'should work' do
493
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
494
+ end
495
+ end
496
+
497
+ # unit tests for submit_self_service_settings_flow
498
+ # Complete Settings Flow
499
+ # Use this endpoint to complete a settings flow by sending an identity&#39;s updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect &#x60;application/json&#x60; to be sent in the body and respond with HTTP 200 and an application/json body with the session token on success; HTTP 302 redirect to a fresh settings flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. HTTP 401 when the endpoint is called without a valid session token. HTTP 403 when &#x60;selfservice.flows.settings.privileged_session_max_age&#x60; was reached. Implies that the user needs to re-authenticate. Browser flows expect &#x60;application/x-www-form-urlencoded&#x60; to be sent in the body and responds with a HTTP 302 redirect to the post/after settings URL or the &#x60;return_to&#x60; value if it was set and if the flow succeeded; a HTTP 302 redirect to the Settings UI URL with the flow ID containing the validation errors otherwise. a HTTP 302 redirect to the login endpoint when &#x60;selfservice.flows.settings.privileged_session_max_age&#x60; was reached. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
500
+ # @param flow 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;).
501
+ # @param [Hash] opts the optional parameters
502
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
503
+ # @option opts [SubmitSelfServiceSettingsFlow] :submit_self_service_settings_flow
504
+ # @return [SettingsViaApiResponse]
505
+ describe 'submit_self_service_settings_flow test' do
506
+ it 'should work' do
507
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
508
+ end
509
+ end
510
+
511
+ # unit tests for submit_self_service_verification_flow
512
+ # Complete Verification Flow
513
+ # Use this endpoint to complete a verification flow. This endpoint behaves differently for API and browser flows and has several states: &#x60;choose_method&#x60; expects &#x60;flow&#x60; (in the URL query) and &#x60;email&#x60; (in the body) to be sent and works with API- and Browser-initiated flows. For API clients it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 302 Found redirect with a fresh verification flow if the flow was otherwise invalid (e.g. expired). For Browser clients it returns a HTTP 302 Found redirect to the Verification UI URL with the Verification Flow ID appended. &#x60;sent_email&#x60; is the success state after &#x60;choose_method&#x60; when using the &#x60;link&#x60; method and allows the user to request another verification email. It works for both API and Browser-initiated flows and returns the same responses as the flow in &#x60;choose_method&#x60; state. &#x60;passed_challenge&#x60; expects a &#x60;token&#x60; to be sent in the URL query and given the nature of the flow (\&quot;sending a verification link\&quot;) does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Verification UI URL with a new Verification Flow ID which contains an error message that the verification link was invalid. More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
514
+ # @param flow The Registration Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?flow&#x3D;abcde&#x60;).
515
+ # @param [Hash] opts the optional parameters
516
+ # @option opts [Object] :body
517
+ # @return [nil]
518
+ describe 'submit_self_service_verification_flow test' do
519
+ it 'should work' do
520
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
521
+ end
522
+ end
523
+
524
+ # unit tests for to_session
525
+ # Check Who the Current HTTP Session Belongs To
526
+ # Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. Additionally when the request it successful it adds the user ID to the &#39;X-Kratos-Authenticated-Identity-Id&#39; header in the response. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the &#x60;X-Session-Token&#x60; header!
527
+ # @param [Hash] opts the optional parameters
528
+ # @option opts [String] :x_session_token
529
+ # @return [Session]
530
+ describe 'to_session test' do
531
+ it 'should work' do
532
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
533
+ end
534
+ end
535
+
536
+ # unit tests for update_identity_admin
537
+ # Update an Identity
538
+ # This endpoint updates an identity. It is NOT possible to set an identity&#39;s credentials (password, ...) using this method! A way to achieve that will be introduced in the future. The full identity payload (except credentials) is expected. This endpoint does not support patching. Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
539
+ # @param id ID must be set to the ID of identity you want to update
540
+ # @param [Hash] opts the optional parameters
541
+ # @option opts [UpdateIdentity] :update_identity
542
+ # @return [Identity]
543
+ describe 'update_identity_admin test' do
544
+ it 'should work' do
545
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
546
+ end
547
+ end
548
+
549
+ end