ory-client 0.2.0.alpha48 → 1.0.0.alpha0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1435) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +15 -15
  3. data/README.md +245 -210
  4. data/docs/AcceptOAuth2ConsentRequest.md +28 -0
  5. data/docs/AcceptOAuth2ConsentRequestSession.md +20 -0
  6. data/docs/AcceptOAuth2LoginRequest.md +30 -0
  7. data/docs/ActiveProjectInConsole.md +18 -0
  8. data/docs/CheckOplSyntaxResult.md +18 -0
  9. data/docs/CheckPermissionResult.md +18 -0
  10. data/docs/CourierApi.md +85 -0
  11. data/docs/CourierMessageStatus.md +15 -0
  12. data/docs/CourierMessageType.md +15 -0
  13. data/docs/CreateCustomDomainBody.md +24 -0
  14. data/docs/CreateIdentityBody.md +32 -0
  15. data/docs/CreateJsonWebKeySet.md +22 -0
  16. data/docs/CreateProjectInvite.md +18 -0
  17. data/docs/CreateRecoveryCodeForIdentityBody.md +20 -0
  18. data/docs/CreateRecoveryLinkForIdentityBody.md +20 -0
  19. data/docs/CreateRelationshipBody.md +26 -0
  20. data/docs/CreateSubscriptionBody.md +22 -0
  21. data/docs/CustomDomain.md +34 -0
  22. data/docs/CustomDomainQuota.md +22 -0
  23. data/docs/DeleteMySessionsCount.md +18 -0
  24. data/docs/ErrorBrowserLocationChangeRequired.md +34 -0
  25. data/docs/ErrorFlowReplaced.md +34 -0
  26. data/docs/ErrorGeneric.md +18 -0
  27. data/docs/ErrorOAuth2.md +26 -0
  28. data/docs/ExpandedPermissionTree.md +22 -0
  29. data/docs/FlowError.md +24 -0
  30. data/docs/FrontendApi.md +1995 -0
  31. data/docs/Identity.md +2 -2
  32. data/docs/IdentityApi.md +1160 -0
  33. data/docs/IdentityWithCredentials.md +20 -0
  34. data/docs/IdentityWithCredentialsOidc.md +18 -0
  35. data/docs/IdentityWithCredentialsOidcConfig.md +20 -0
  36. data/docs/IdentityWithCredentialsOidcConfigProvider.md +20 -0
  37. data/docs/IdentityWithCredentialsPassword.md +18 -0
  38. data/docs/IdentityWithCredentialsPasswordConfig.md +20 -0
  39. data/docs/InternalIsOwnerForProjectBySlugBody.md +22 -0
  40. data/docs/InternalProvisionMockSubscription.md +20 -0
  41. data/docs/IntrospectedOAuth2Token.md +44 -0
  42. data/docs/InviteQuota.md +22 -0
  43. data/docs/JsonWebKey.md +50 -0
  44. data/docs/JsonWebKeySet.md +18 -0
  45. data/docs/JwkApi.md +511 -0
  46. data/docs/LoginFlow.md +44 -0
  47. data/docs/LogoutFlow.md +20 -0
  48. data/docs/ManagedIdentitySchema.md +1 -1
  49. data/docs/Message.md +36 -0
  50. data/docs/Namespace.md +18 -0
  51. data/docs/NormalizedProject.md +2 -4
  52. data/docs/NormalizedProjectRevision.md +74 -36
  53. data/docs/NormalizedProjectRevisionHook.md +2 -2
  54. data/docs/NormalizedProjectRevisionIdentitySchema.md +2 -2
  55. data/docs/NormalizedProjectRevisionThirdPartyProvider.md +1 -1
  56. data/docs/OAuth2Api.md +2026 -0
  57. data/docs/OAuth2Client.md +47 -27
  58. data/docs/OAuth2ClientTokenLifespans.md +36 -0
  59. data/docs/OAuth2ConsentRequest.md +42 -0
  60. data/docs/OAuth2ConsentRequestOpenIDConnectContext.md +26 -0
  61. data/docs/OAuth2ConsentSession.md +32 -0
  62. data/docs/OAuth2ConsentSessionExpiresAt.md +26 -0
  63. data/docs/OAuth2LoginRequest.md +34 -0
  64. data/docs/OAuth2LogoutRequest.md +28 -0
  65. data/docs/OAuth2RedirectTo.md +18 -0
  66. data/docs/OAuth2TokenExchange.md +28 -0
  67. data/docs/OidcApi.md +473 -0
  68. data/docs/OidcConfiguration.md +74 -0
  69. data/docs/OidcUserInfo.md +54 -0
  70. data/docs/Pagination.md +4 -0
  71. data/docs/PaginationHeaders.md +20 -0
  72. data/docs/ParseError.md +22 -0
  73. data/docs/PerformNativeLogoutBody.md +18 -0
  74. data/docs/PermissionApi.md +405 -0
  75. data/docs/PostCheckPermissionBody.md +26 -0
  76. data/docs/PostCheckPermissionOrErrorBody.md +26 -0
  77. data/docs/Project.md +3 -3
  78. data/docs/ProjectApi.md +927 -0
  79. data/docs/ProjectApiKey.md +3 -3
  80. data/docs/ProjectHost.md +2 -2
  81. data/docs/ProjectInvite.md +3 -3
  82. data/docs/ProjectMetadata.md +2 -2
  83. data/docs/RecoveryCodeForIdentity.md +22 -0
  84. data/docs/RecoveryFlow.md +34 -0
  85. data/docs/RecoveryFlowState.md +15 -0
  86. data/docs/RecoveryIdentityAddress.md +26 -0
  87. data/docs/RecoveryLinkForIdentity.md +20 -0
  88. data/docs/RegistrationFlow.md +36 -0
  89. data/docs/RejectOAuth2Request.md +26 -0
  90. data/docs/Relationship.md +26 -0
  91. data/docs/RelationshipApi.md +460 -0
  92. data/docs/RelationshipNamespaces.md +18 -0
  93. data/docs/RelationshipPatch.md +20 -0
  94. data/docs/Relationships.md +20 -0
  95. data/docs/SelfServiceFlowExpiredError.md +3 -1
  96. data/docs/Session.md +3 -1
  97. data/docs/SessionDevice.md +7 -1
  98. data/docs/SetActiveProjectInConsoleBody.md +18 -0
  99. data/docs/SetCustomDomainBody.md +24 -0
  100. data/docs/SetProject.md +20 -0
  101. data/docs/SettingsFlow.md +36 -0
  102. data/docs/SettingsFlowState.md +15 -0
  103. data/docs/SourcePosition.md +20 -0
  104. data/docs/StripeCustomer.md +18 -0
  105. data/docs/Subscription.md +2 -2
  106. data/docs/SuccessfulNativeLogin.md +20 -0
  107. data/docs/SuccessfulNativeRegistration.md +22 -0
  108. data/docs/SuccessfulProjectUpdate.md +1 -1
  109. data/docs/TokenPaginationRequestParameters.md +20 -0
  110. data/docs/TokenPaginationResponseHeaders.md +20 -0
  111. data/docs/TrustOAuth2JwtGrantIssuer.md +28 -0
  112. data/docs/TrustedOAuth2JwtGrantIssuer.md +32 -0
  113. data/docs/TrustedOAuth2JwtGrantJsonWebKey.md +20 -0
  114. data/docs/UiNode.md +2 -2
  115. data/docs/UiNodeInputAttributes.md +2 -2
  116. data/docs/UiText.md +1 -1
  117. data/docs/UpdateIdentityBody.md +28 -0
  118. data/docs/UpdateLoginFlowBody.md +87 -0
  119. data/docs/UpdateLoginFlowWithLookupSecretMethod.md +22 -0
  120. data/docs/UpdateLoginFlowWithOidcMethod.md +24 -0
  121. data/docs/UpdateLoginFlowWithPasswordMethod.md +26 -0
  122. data/docs/UpdateLoginFlowWithTotpMethod.md +22 -0
  123. data/docs/UpdateLoginFlowWithWebAuthnMethod.md +24 -0
  124. data/docs/UpdateRecoveryFlowBody.md +78 -0
  125. data/docs/UpdateRecoveryFlowWithCodeMethod.md +24 -0
  126. data/docs/UpdateRecoveryFlowWithLinkMethod.md +22 -0
  127. data/docs/UpdateRegistrationFlowBody.md +81 -0
  128. data/docs/UpdateRegistrationFlowWithOidcMethod.md +24 -0
  129. data/docs/UpdateRegistrationFlowWithPasswordMethod.md +24 -0
  130. data/docs/UpdateRegistrationFlowWithWebAuthnMethod.md +26 -0
  131. data/docs/UpdateSettingsFlowBody.md +90 -0
  132. data/docs/UpdateSettingsFlowWithLookupMethod.md +28 -0
  133. data/docs/UpdateSettingsFlowWithOidcMethod.md +26 -0
  134. data/docs/UpdateSettingsFlowWithPasswordMethod.md +22 -0
  135. data/docs/UpdateSettingsFlowWithProfileMethod.md +22 -0
  136. data/docs/UpdateSettingsFlowWithTotpMethod.md +24 -0
  137. data/docs/UpdateSettingsFlowWithWebAuthnMethod.md +26 -0
  138. data/docs/UpdateSubscriptionBody.md +20 -0
  139. data/docs/UpdateVerificationFlowBody.md +75 -0
  140. data/docs/UpdateVerificationFlowWithCodeMethodBody.md +26 -0
  141. data/docs/UpdateVerificationFlowWithLinkMethod.md +22 -0
  142. data/docs/VerifiableIdentityAddress.md +1 -1
  143. data/docs/VerificationFlow.md +34 -0
  144. data/docs/VerificationFlowState.md +15 -0
  145. data/docs/WellknownApi.md +69 -0
  146. data/lib/ory-client/api/courier_api.rb +103 -0
  147. data/lib/ory-client/api/frontend_api.rb +1965 -0
  148. data/lib/ory-client/api/identity_api.rb +1120 -0
  149. data/lib/ory-client/api/jwk_api.rb +506 -0
  150. data/lib/ory-client/api/metadata_api.rb +1 -1
  151. data/lib/ory-client/api/o_auth2_api.rb +1926 -0
  152. data/lib/ory-client/api/oidc_api.rb +459 -0
  153. data/lib/ory-client/api/permission_api.rb +399 -0
  154. data/lib/ory-client/api/project_api.rb +864 -0
  155. data/lib/ory-client/api/relationship_api.rb +433 -0
  156. data/lib/ory-client/api/wellknown_api.rb +79 -0
  157. data/lib/ory-client/api_client.rb +1 -1
  158. data/lib/ory-client/api_error.rb +1 -1
  159. data/lib/ory-client/configuration.rb +8 -1
  160. data/lib/ory-client/models/accept_o_auth2_consent_request.rb +270 -0
  161. data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +232 -0
  162. data/lib/ory-client/models/accept_o_auth2_login_request.rb +285 -0
  163. data/lib/ory-client/models/active_project_in_console.rb +221 -0
  164. data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
  165. data/lib/ory-client/models/check_opl_syntax_result.rb +222 -0
  166. data/lib/ory-client/models/check_permission_result.rb +226 -0
  167. data/lib/ory-client/models/cloud_account.rb +1 -1
  168. data/lib/ory-client/models/courier_message_status.rb +39 -0
  169. data/lib/ory-client/models/courier_message_type.rb +37 -0
  170. data/lib/ory-client/models/create_custom_domain_body.rb +253 -0
  171. data/lib/ory-client/models/create_identity_body.rb +305 -0
  172. data/lib/ory-client/models/create_json_web_key_set.rb +256 -0
  173. data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
  174. data/lib/ory-client/models/create_project_body.rb +2 -1
  175. data/lib/ory-client/models/create_project_invite.rb +220 -0
  176. data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +253 -0
  177. data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +253 -0
  178. data/lib/ory-client/models/create_relationship_body.rb +260 -0
  179. data/lib/ory-client/models/create_subscription_body.rb +248 -0
  180. data/lib/ory-client/models/custom_domain.rb +297 -0
  181. data/lib/ory-client/models/custom_domain_quota.rb +238 -0
  182. data/lib/ory-client/models/delete_my_sessions_count.rb +221 -0
  183. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
  184. data/lib/ory-client/models/error_browser_location_change_required.rb +307 -0
  185. data/lib/ory-client/models/error_flow_replaced.rb +308 -0
  186. data/lib/ory-client/models/error_generic.rb +225 -0
  187. data/lib/ory-client/models/error_o_auth2.rb +261 -0
  188. data/lib/ory-client/models/expanded_permission_tree.rb +280 -0
  189. data/lib/ory-client/models/flow_error.rb +254 -0
  190. data/lib/ory-client/models/generic_error.rb +1 -1
  191. data/lib/ory-client/models/generic_error_content.rb +1 -1
  192. data/lib/ory-client/models/get_managed_identity_schema_location.rb +2 -1
  193. data/lib/ory-client/models/get_version200_response.rb +1 -1
  194. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  195. data/lib/ory-client/models/health_status.rb +1 -1
  196. data/lib/ory-client/models/identity.rb +6 -3
  197. data/lib/ory-client/models/identity_credentials.rb +1 -1
  198. data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
  199. data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
  200. data/lib/ory-client/models/identity_credentials_password.rb +1 -1
  201. data/lib/ory-client/models/identity_credentials_type.rb +1 -1
  202. data/lib/ory-client/models/identity_schema_container.rb +2 -1
  203. data/lib/ory-client/models/identity_schema_preset.rb +1 -1
  204. data/lib/ory-client/models/identity_state.rb +1 -1
  205. data/lib/ory-client/models/identity_with_credentials.rb +229 -0
  206. data/lib/ory-client/models/identity_with_credentials_oidc.rb +220 -0
  207. data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +231 -0
  208. data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +241 -0
  209. data/lib/ory-client/models/identity_with_credentials_password.rb +220 -0
  210. data/lib/ory-client/models/identity_with_credentials_password_config.rb +231 -0
  211. data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +251 -0
  212. data/lib/ory-client/models/internal_provision_mock_subscription.rb +240 -0
  213. data/lib/ory-client/models/introspected_o_auth2_token.rb +360 -0
  214. data/lib/ory-client/models/invite_quota.rb +238 -0
  215. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
  216. data/lib/ory-client/models/is_ready200_response.rb +1 -1
  217. data/lib/ory-client/models/is_ready503_response.rb +1 -1
  218. data/lib/ory-client/models/json_patch.rb +1 -2
  219. data/lib/ory-client/models/json_web_key.rb +4 -5
  220. data/lib/ory-client/models/json_web_key_set.rb +7 -7
  221. data/lib/ory-client/models/keto_namespace.rb +1 -1
  222. data/lib/ory-client/models/login_flow.rb +377 -0
  223. data/lib/ory-client/models/logout_flow.rb +241 -0
  224. data/lib/ory-client/models/managed_identity_schema.rb +1 -2
  225. data/lib/ory-client/models/managed_identity_schema_validation_result.rb +2 -1
  226. data/lib/ory-client/models/message.rb +336 -0
  227. data/lib/ory-client/models/namespace.rb +220 -0
  228. data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
  229. data/lib/ory-client/models/normalized_project.rb +3 -20
  230. data/lib/ory-client/models/normalized_project_revision.rb +275 -49
  231. data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -3
  232. data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -3
  233. data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -2
  234. data/lib/ory-client/models/null_plan.rb +1 -1
  235. data/lib/ory-client/models/o_auth2_client.rb +293 -37
  236. data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +481 -0
  237. data/lib/ory-client/models/o_auth2_consent_request.rb +345 -0
  238. data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +266 -0
  239. data/lib/ory-client/models/o_auth2_consent_session.rb +289 -0
  240. data/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +255 -0
  241. data/lib/ory-client/models/o_auth2_login_request.rb +335 -0
  242. data/lib/ory-client/models/o_auth2_logout_request.rb +269 -0
  243. data/lib/ory-client/models/o_auth2_redirect_to.rb +226 -0
  244. data/lib/ory-client/models/o_auth2_token_exchange.rb +271 -0
  245. data/lib/ory-client/models/oidc_configuration.rb +572 -0
  246. data/lib/ory-client/models/oidc_user_info.rb +401 -0
  247. data/lib/ory-client/models/pagination.rb +56 -2
  248. data/lib/ory-client/models/pagination_headers.rb +230 -0
  249. data/lib/ory-client/models/parse_error.rb +237 -0
  250. data/lib/ory-client/models/perform_native_logout_body.rb +226 -0
  251. data/lib/ory-client/models/post_check_permission_body.rb +260 -0
  252. data/lib/ory-client/models/post_check_permission_or_error_body.rb +260 -0
  253. data/lib/ory-client/models/project.rb +2 -4
  254. data/lib/ory-client/models/project_api_key.rb +1 -4
  255. data/lib/ory-client/models/project_host.rb +1 -3
  256. data/lib/ory-client/models/project_invite.rb +35 -4
  257. data/lib/ory-client/models/project_metadata.rb +2 -3
  258. data/lib/ory-client/models/project_service_identity.rb +1 -1
  259. data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
  260. data/lib/ory-client/models/project_service_permission.rb +1 -1
  261. data/lib/ory-client/models/project_services.rb +1 -1
  262. data/lib/ory-client/models/recovery_code_for_identity.rb +251 -0
  263. data/lib/ory-client/models/recovery_flow.rb +334 -0
  264. data/lib/ory-client/models/recovery_flow_state.rb +38 -0
  265. data/lib/ory-client/models/recovery_identity_address.rb +272 -0
  266. data/lib/ory-client/models/recovery_link_for_identity.rb +236 -0
  267. data/lib/ory-client/models/registration_flow.rb +337 -0
  268. data/lib/ory-client/models/reject_o_auth2_request.rb +260 -0
  269. data/lib/ory-client/models/relation_query.rb +2 -1
  270. data/lib/ory-client/models/relationship.rb +275 -0
  271. data/lib/ory-client/models/relationship_namespaces.rb +222 -0
  272. data/lib/ory-client/models/relationship_patch.rb +263 -0
  273. data/lib/ory-client/models/relationships.rb +232 -0
  274. data/lib/ory-client/models/schema_patch.rb +1 -1
  275. data/lib/ory-client/models/self_service_flow_expired_error.rb +13 -2
  276. data/lib/ory-client/models/session.rb +15 -2
  277. data/lib/ory-client/models/session_authentication_method.rb +3 -3
  278. data/lib/ory-client/models/session_device.rb +39 -3
  279. data/lib/ory-client/models/set_active_project_in_console_body.rb +226 -0
  280. data/lib/ory-client/models/set_custom_domain_body.rb +253 -0
  281. data/lib/ory-client/models/set_project.rb +239 -0
  282. data/lib/ory-client/models/settings_flow.rb +348 -0
  283. data/lib/ory-client/models/settings_flow_state.rb +37 -0
  284. data/lib/ory-client/models/source_position.rb +228 -0
  285. data/lib/ory-client/models/stripe_customer.rb +219 -0
  286. data/lib/ory-client/models/subject_set.rb +1 -1
  287. data/lib/ory-client/models/subscription.rb +2 -3
  288. data/lib/ory-client/models/successful_native_login.rb +235 -0
  289. data/lib/ory-client/models/successful_native_registration.rb +244 -0
  290. data/lib/ory-client/models/successful_project_update.rb +2 -2
  291. data/lib/ory-client/models/token_pagination.rb +1 -1
  292. data/lib/ory-client/models/token_pagination_headers.rb +1 -1
  293. data/lib/ory-client/models/token_pagination_request_parameters.rb +265 -0
  294. data/lib/ory-client/models/token_pagination_response_headers.rb +231 -0
  295. data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +292 -0
  296. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +291 -0
  297. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +231 -0
  298. data/lib/ory-client/models/ui_container.rb +1 -1
  299. data/lib/ory-client/models/ui_node.rb +5 -5
  300. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  301. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  302. data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
  303. data/lib/ory-client/models/ui_node_input_attributes.rb +3 -3
  304. data/lib/ory-client/models/ui_node_meta.rb +1 -1
  305. data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
  306. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  307. data/lib/ory-client/models/ui_text.rb +36 -1
  308. data/lib/ory-client/models/update_identity_body.rb +286 -0
  309. data/lib/ory-client/models/update_login_flow_body.rb +61 -0
  310. data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +251 -0
  311. data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +261 -0
  312. data/lib/ory-client/models/update_login_flow_with_password_method.rb +276 -0
  313. data/lib/ory-client/models/update_login_flow_with_totp_method.rb +251 -0
  314. data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +261 -0
  315. data/lib/ory-client/models/update_recovery_flow_body.rb +56 -0
  316. data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +256 -0
  317. data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +251 -0
  318. data/lib/ory-client/models/update_registration_flow_body.rb +58 -0
  319. data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +261 -0
  320. data/lib/ory-client/models/update_registration_flow_with_password_method.rb +266 -0
  321. data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +271 -0
  322. data/lib/ory-client/models/update_settings_flow_body.rb +64 -0
  323. data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +276 -0
  324. data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +266 -0
  325. data/lib/ory-client/models/update_settings_flow_with_password_method.rb +251 -0
  326. data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +251 -0
  327. data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +256 -0
  328. data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +266 -0
  329. data/lib/ory-client/models/update_subscription_body.rb +234 -0
  330. data/lib/ory-client/models/update_verification_flow_body.rb +54 -0
  331. data/lib/ory-client/models/update_verification_flow_with_code_method_body.rb +260 -0
  332. data/lib/ory-client/models/update_verification_flow_with_link_method.rb +251 -0
  333. data/lib/ory-client/models/verifiable_identity_address.rb +2 -1
  334. data/lib/ory-client/models/verification_flow.rb +319 -0
  335. data/lib/ory-client/models/verification_flow_state.rb +38 -0
  336. data/lib/ory-client/models/version.rb +1 -1
  337. data/lib/ory-client/models/warning.rb +1 -1
  338. data/lib/ory-client/version.rb +2 -2
  339. data/lib/ory-client.rb +119 -100
  340. data/ory-client.gemspec +1 -1
  341. data/spec/api/courier_api_spec.rb +50 -0
  342. data/spec/api/frontend_api_spec.rb +415 -0
  343. data/spec/api/identity_api_spec.rb +239 -0
  344. data/spec/api/jwk_api_spec.rb +125 -0
  345. data/spec/api/metadata_api_spec.rb +1 -1
  346. data/spec/api/o_auth2_api_spec.rb +391 -0
  347. data/spec/api/oidc_api_spec.rb +117 -0
  348. data/spec/api/permission_api_spec.rb +114 -0
  349. data/spec/api/project_api_spec.rb +194 -0
  350. data/spec/api/relationship_api_spec.rb +120 -0
  351. data/spec/api/wellknown_api_spec.rb +46 -0
  352. data/spec/api_client_spec.rb +1 -1
  353. data/spec/configuration_spec.rb +1 -1
  354. data/spec/models/accept_o_auth2_consent_request_session_spec.rb +40 -0
  355. data/spec/models/accept_o_auth2_consent_request_spec.rb +64 -0
  356. data/spec/models/accept_o_auth2_login_request_spec.rb +70 -0
  357. data/spec/models/active_project_in_console_spec.rb +34 -0
  358. data/spec/models/authenticator_assurance_level_spec.rb +1 -1
  359. data/spec/models/check_opl_syntax_result_spec.rb +34 -0
  360. data/spec/models/check_permission_result_spec.rb +34 -0
  361. data/spec/models/cloud_account_spec.rb +1 -1
  362. data/spec/models/courier_message_status_spec.rb +28 -0
  363. data/spec/models/courier_message_type_spec.rb +28 -0
  364. data/spec/models/create_custom_domain_body_spec.rb +52 -0
  365. data/spec/models/create_identity_body_spec.rb +76 -0
  366. data/spec/models/create_json_web_key_set_spec.rb +46 -0
  367. data/spec/models/create_project_api_key_request_spec.rb +1 -1
  368. data/spec/models/create_project_body_spec.rb +1 -1
  369. data/spec/models/create_project_invite_spec.rb +34 -0
  370. data/spec/models/create_recovery_code_for_identity_body_spec.rb +40 -0
  371. data/spec/models/create_recovery_link_for_identity_body_spec.rb +40 -0
  372. data/spec/models/create_relationship_body_spec.rb +58 -0
  373. data/spec/models/create_subscription_body_spec.rb +46 -0
  374. data/spec/models/custom_domain_quota_spec.rb +46 -0
  375. data/spec/models/custom_domain_spec.rb +82 -0
  376. data/spec/models/delete_my_sessions_count_spec.rb +34 -0
  377. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
  378. data/spec/models/error_browser_location_change_required_spec.rb +82 -0
  379. data/spec/models/error_flow_replaced_spec.rb +82 -0
  380. data/spec/models/error_generic_spec.rb +34 -0
  381. data/spec/models/error_o_auth2_spec.rb +58 -0
  382. data/spec/models/expanded_permission_tree_spec.rb +50 -0
  383. data/spec/models/flow_error_spec.rb +52 -0
  384. data/spec/models/generic_error_content_spec.rb +1 -1
  385. data/spec/models/generic_error_spec.rb +1 -1
  386. data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
  387. data/spec/models/get_version200_response_spec.rb +1 -1
  388. data/spec/models/health_not_ready_status_spec.rb +1 -1
  389. data/spec/models/health_status_spec.rb +1 -1
  390. data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
  391. data/spec/models/identity_credentials_oidc_spec.rb +1 -1
  392. data/spec/models/identity_credentials_password_spec.rb +1 -1
  393. data/spec/models/identity_credentials_spec.rb +1 -1
  394. data/spec/models/identity_credentials_type_spec.rb +1 -1
  395. data/spec/models/identity_schema_container_spec.rb +1 -1
  396. data/spec/models/identity_schema_preset_spec.rb +1 -1
  397. data/spec/models/identity_spec.rb +1 -1
  398. data/spec/models/identity_state_spec.rb +1 -1
  399. data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +40 -0
  400. data/spec/models/identity_with_credentials_oidc_config_spec.rb +40 -0
  401. data/spec/models/identity_with_credentials_oidc_spec.rb +34 -0
  402. data/spec/models/identity_with_credentials_password_config_spec.rb +40 -0
  403. data/spec/models/identity_with_credentials_password_spec.rb +34 -0
  404. data/spec/models/identity_with_credentials_spec.rb +40 -0
  405. data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +46 -0
  406. data/spec/models/internal_provision_mock_subscription_spec.rb +40 -0
  407. data/spec/models/introspected_o_auth2_token_spec.rb +112 -0
  408. data/spec/models/invite_quota_spec.rb +46 -0
  409. data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
  410. data/spec/models/is_ready200_response_spec.rb +1 -1
  411. data/spec/models/is_ready503_response_spec.rb +1 -1
  412. data/spec/models/json_patch_spec.rb +1 -1
  413. data/spec/models/json_web_key_set_spec.rb +7 -7
  414. data/spec/models/json_web_key_spec.rb +7 -7
  415. data/spec/models/keto_namespace_spec.rb +1 -1
  416. data/spec/models/login_flow_spec.rb +112 -0
  417. data/spec/models/logout_flow_spec.rb +40 -0
  418. data/spec/models/managed_identity_schema_spec.rb +1 -1
  419. data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
  420. data/spec/models/message_spec.rb +92 -0
  421. data/spec/models/namespace_spec.rb +34 -0
  422. data/spec/models/needs_privileged_session_error_spec.rb +1 -1
  423. data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
  424. data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
  425. data/spec/models/normalized_project_revision_spec.rb +123 -1
  426. data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
  427. data/spec/models/normalized_project_spec.rb +1 -7
  428. data/spec/models/null_plan_spec.rb +1 -1
  429. data/spec/models/o_auth2_client_spec.rb +61 -1
  430. data/spec/models/o_auth2_client_token_lifespans_spec.rb +88 -0
  431. data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +58 -0
  432. data/spec/models/o_auth2_consent_request_spec.rb +106 -0
  433. data/spec/models/o_auth2_consent_session_expires_at_spec.rb +58 -0
  434. data/spec/models/o_auth2_consent_session_spec.rb +76 -0
  435. data/spec/models/o_auth2_login_request_spec.rb +82 -0
  436. data/spec/models/o_auth2_logout_request_spec.rb +64 -0
  437. data/spec/models/o_auth2_redirect_to_spec.rb +34 -0
  438. data/spec/models/o_auth2_token_exchange_spec.rb +64 -0
  439. data/spec/models/oidc_configuration_spec.rb +202 -0
  440. data/spec/models/oidc_user_info_spec.rb +142 -0
  441. data/spec/models/pagination_headers_spec.rb +40 -0
  442. data/spec/models/pagination_spec.rb +13 -1
  443. data/spec/models/parse_error_spec.rb +46 -0
  444. data/spec/models/perform_native_logout_body_spec.rb +34 -0
  445. data/spec/models/post_check_permission_body_spec.rb +58 -0
  446. data/spec/models/post_check_permission_or_error_body_spec.rb +58 -0
  447. data/spec/models/project_api_key_spec.rb +1 -1
  448. data/spec/models/project_host_spec.rb +1 -1
  449. data/spec/models/project_invite_spec.rb +5 -1
  450. data/spec/models/project_metadata_spec.rb +1 -1
  451. data/spec/models/project_service_identity_spec.rb +1 -1
  452. data/spec/models/project_service_o_auth2_spec.rb +1 -1
  453. data/spec/models/project_service_permission_spec.rb +1 -1
  454. data/spec/models/project_services_spec.rb +1 -1
  455. data/spec/models/project_spec.rb +1 -1
  456. data/spec/models/recovery_code_for_identity_spec.rb +46 -0
  457. data/spec/models/recovery_flow_spec.rb +82 -0
  458. data/spec/models/recovery_flow_state_spec.rb +28 -0
  459. data/spec/models/recovery_identity_address_spec.rb +58 -0
  460. data/spec/models/recovery_link_for_identity_spec.rb +40 -0
  461. data/spec/models/registration_flow_spec.rb +88 -0
  462. data/spec/models/reject_o_auth2_request_spec.rb +58 -0
  463. data/spec/models/relation_query_spec.rb +1 -1
  464. data/spec/models/relationship_namespaces_spec.rb +34 -0
  465. data/spec/models/relationship_patch_spec.rb +44 -0
  466. data/spec/models/relationship_spec.rb +58 -0
  467. data/spec/models/relationships_spec.rb +40 -0
  468. data/spec/models/schema_patch_spec.rb +1 -1
  469. data/spec/models/self_service_flow_expired_error_spec.rb +7 -1
  470. data/spec/models/session_authentication_method_spec.rb +2 -2
  471. data/spec/models/session_device_spec.rb +19 -1
  472. data/spec/models/session_spec.rb +7 -1
  473. data/spec/models/set_active_project_in_console_body_spec.rb +34 -0
  474. data/spec/models/set_custom_domain_body_spec.rb +52 -0
  475. data/spec/models/set_project_spec.rb +40 -0
  476. data/spec/models/settings_flow_spec.rb +88 -0
  477. data/spec/models/settings_flow_state_spec.rb +28 -0
  478. data/spec/models/source_position_spec.rb +40 -0
  479. data/spec/models/stripe_customer_spec.rb +34 -0
  480. data/spec/models/subject_set_spec.rb +1 -1
  481. data/spec/models/subscription_spec.rb +1 -1
  482. data/spec/models/successful_native_login_spec.rb +40 -0
  483. data/spec/models/successful_native_registration_spec.rb +46 -0
  484. data/spec/models/successful_project_update_spec.rb +1 -1
  485. data/spec/models/token_pagination_headers_spec.rb +1 -1
  486. data/spec/models/token_pagination_request_parameters_spec.rb +40 -0
  487. data/spec/models/token_pagination_response_headers_spec.rb +40 -0
  488. data/spec/models/token_pagination_spec.rb +1 -1
  489. data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +64 -0
  490. data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +76 -0
  491. data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +40 -0
  492. data/spec/models/ui_container_spec.rb +1 -1
  493. data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
  494. data/spec/models/ui_node_attributes_spec.rb +1 -1
  495. data/spec/models/ui_node_image_attributes_spec.rb +1 -1
  496. data/spec/models/ui_node_input_attributes_spec.rb +1 -1
  497. data/spec/models/ui_node_meta_spec.rb +1 -1
  498. data/spec/models/ui_node_script_attributes_spec.rb +1 -1
  499. data/spec/models/ui_node_spec.rb +2 -2
  500. data/spec/models/ui_node_text_attributes_spec.rb +1 -1
  501. data/spec/models/ui_text_spec.rb +5 -1
  502. data/spec/models/update_identity_body_spec.rb +64 -0
  503. data/spec/models/update_login_flow_body_spec.rb +43 -0
  504. data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +46 -0
  505. data/spec/models/update_login_flow_with_oidc_method_spec.rb +52 -0
  506. data/spec/models/update_login_flow_with_password_method_spec.rb +58 -0
  507. data/spec/models/update_login_flow_with_totp_method_spec.rb +46 -0
  508. data/spec/models/update_login_flow_with_web_authn_method_spec.rb +52 -0
  509. data/spec/models/update_recovery_flow_body_spec.rb +43 -0
  510. data/spec/models/update_recovery_flow_with_code_method_spec.rb +52 -0
  511. data/spec/models/update_recovery_flow_with_link_method_spec.rb +46 -0
  512. data/spec/models/update_registration_flow_body_spec.rb +43 -0
  513. data/spec/models/update_registration_flow_with_oidc_method_spec.rb +52 -0
  514. data/spec/models/update_registration_flow_with_password_method_spec.rb +52 -0
  515. data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +58 -0
  516. data/spec/models/update_settings_flow_body_spec.rb +43 -0
  517. data/spec/models/update_settings_flow_with_lookup_method_spec.rb +64 -0
  518. data/spec/models/update_settings_flow_with_oidc_method_spec.rb +58 -0
  519. data/spec/models/update_settings_flow_with_password_method_spec.rb +46 -0
  520. data/spec/models/update_settings_flow_with_profile_method_spec.rb +46 -0
  521. data/spec/models/update_settings_flow_with_totp_method_spec.rb +52 -0
  522. data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +58 -0
  523. data/spec/models/update_subscription_body_spec.rb +40 -0
  524. data/spec/models/update_verification_flow_body_spec.rb +43 -0
  525. data/spec/models/update_verification_flow_with_code_method_body_spec.rb +58 -0
  526. data/spec/models/update_verification_flow_with_link_method_spec.rb +46 -0
  527. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  528. data/spec/models/verification_flow_spec.rb +82 -0
  529. data/spec/models/verification_flow_state_spec.rb +28 -0
  530. data/spec/models/version_spec.rb +1 -1
  531. data/spec/models/warning_spec.rb +1 -1
  532. data/spec/spec_helper.rb +1 -1
  533. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.16.0.gem +0 -0
  534. data/vendor/bundle/ruby/2.5.0/cache/parser-3.1.3.0.gem +0 -0
  535. data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.6.gem +0 -0
  536. data/vendor/bundle/ruby/2.5.0/cache/rspec-3.12.0.gem +0 -0
  537. data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.12.0.gem +0 -0
  538. data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.12.0.gem +0 -0
  539. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.12.0.gem +0 -0
  540. data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.12.0.gem +0 -0
  541. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  542. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  543. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  544. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/gem.build_complete +0 -0
  545. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/gem_make.out +41 -0
  546. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/mkmf.log +0 -0
  547. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/psych.so +0 -0
  548. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/gem_make.out +2 -2
  549. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/mkmf.log +1 -1
  550. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  551. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/.github/workflows/ruby.yml +41 -0
  552. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.gitignore +0 -0
  553. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.rspec +0 -0
  554. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  555. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Gemfile +0 -0
  556. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Guardfile +0 -0
  557. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/LICENSE +0 -0
  558. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/README.md +118 -0
  559. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Rakefile +0 -0
  560. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/ethon.gemspec +0 -0
  561. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curl.rb +0 -0
  562. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/curls/classes.rb +65 -0
  563. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/codes.rb +0 -0
  564. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/constants.rb +0 -0
  565. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/form_options.rb +0 -0
  566. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/functions.rb +0 -0
  567. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/infos.rb +0 -0
  568. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/messages.rb +0 -0
  569. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/curls/options.rb +503 -0
  570. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/settings.rb +0 -0
  571. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/easy/callbacks.rb +149 -0
  572. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/debug_info.rb +0 -0
  573. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/features.rb +0 -0
  574. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/form.rb +0 -0
  575. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/header.rb +0 -0
  576. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/actionable.rb +0 -0
  577. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/custom.rb +0 -0
  578. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/delete.rb +0 -0
  579. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/get.rb +0 -0
  580. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/head.rb +0 -0
  581. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/options.rb +0 -0
  582. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/patch.rb +0 -0
  583. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/post.rb +0 -0
  584. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/postable.rb +0 -0
  585. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/put.rb +0 -0
  586. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/putable.rb +0 -0
  587. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http.rb +0 -0
  588. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/easy/informations.rb +116 -0
  589. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/mirror.rb +0 -0
  590. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/operations.rb +0 -0
  591. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/options.rb +0 -0
  592. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/params.rb +0 -0
  593. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/queryable.rb +0 -0
  594. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/easy/response_callbacks.rb +136 -0
  595. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/util.rb +0 -0
  596. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy.rb +0 -0
  597. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/ethon_error.rb +0 -0
  598. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/global_init.rb +0 -0
  599. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_option.rb +0 -0
  600. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_value.rb +0 -0
  601. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_add.rb +0 -0
  602. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_fdset.rb +0 -0
  603. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_remove.rb +0 -0
  604. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_timeout.rb +0 -0
  605. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/select.rb +0 -0
  606. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors.rb +0 -0
  607. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/libc.rb +0 -0
  608. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/loggable.rb +0 -0
  609. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/operations.rb +0 -0
  610. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/options.rb +0 -0
  611. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/stack.rb +0 -0
  612. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi.rb +0 -0
  613. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/lib/ethon/version.rb +6 -0
  614. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon.rb +0 -0
  615. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/benchmarks.rb +0 -0
  616. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/memory_leaks.rb +0 -0
  617. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/perf_spec_helper.rb +0 -0
  618. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/memory_test_helpers.rb +0 -0
  619. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/os_memory_leak_tracker.rb +0 -0
  620. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/ruby_object_leak_tracker.rb +0 -0
  621. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/curl_spec.rb +0 -0
  622. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/callbacks_spec.rb +81 -0
  623. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/debug_info_spec.rb +0 -0
  624. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/features_spec.rb +0 -0
  625. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/form_spec.rb +0 -0
  626. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/header_spec.rb +0 -0
  627. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/custom_spec.rb +0 -0
  628. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/delete_spec.rb +0 -0
  629. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/get_spec.rb +0 -0
  630. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/head_spec.rb +0 -0
  631. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/options_spec.rb +0 -0
  632. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/patch_spec.rb +0 -0
  633. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/post_spec.rb +0 -0
  634. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/put_spec.rb +0 -0
  635. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http_spec.rb +0 -0
  636. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/informations_spec.rb +126 -0
  637. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/mirror_spec.rb +47 -0
  638. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.16.0/spec/ethon/easy/operations_spec.rb +271 -0
  639. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/options_spec.rb +0 -0
  640. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/queryable_spec.rb +0 -0
  641. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/response_callbacks_spec.rb +0 -0
  642. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/util_spec.rb +0 -0
  643. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy_spec.rb +0 -0
  644. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/libc_spec.rb +0 -0
  645. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/loggable_spec.rb +0 -0
  646. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/operations_spec.rb +0 -0
  647. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/options_spec.rb +0 -0
  648. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/stack_spec.rb +0 -0
  649. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi_spec.rb +0 -0
  650. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/spec_helper.rb +0 -0
  651. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/localhost_server.rb +0 -0
  652. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/server.rb +0 -0
  653. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  654. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  655. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/LICENSE.txt +0 -0
  656. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/bin/ruby-parse +0 -0
  657. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/bin/ruby-rewrite +0 -0
  658. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/gauntlet_parser.rb +0 -0
  659. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/all.rb +0 -0
  660. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/ast/node.rb +0 -0
  661. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ast/processor.rb +291 -0
  662. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/base.rb +0 -0
  663. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/builders/default.rb +2317 -0
  664. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/clobbering_error.rb +0 -0
  665. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/color.rb +0 -0
  666. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/context.rb +0 -0
  667. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/current.rb +119 -0
  668. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/current_arg_stack.rb +0 -0
  669. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/deprecation.rb +0 -0
  670. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/diagnostic/engine.rb +0 -0
  671. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/diagnostic.rb +0 -0
  672. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/dedenter.rb +0 -0
  673. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/explanation.rb +0 -0
  674. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/literal.rb +0 -0
  675. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/lexer/stack_state.rb +0 -0
  676. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/lexer.rb +25045 -0
  677. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/macruby.rb +9632 -0
  678. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/max_numparam_stack.rb +0 -0
  679. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/messages.rb +120 -0
  680. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/meta.rb +40 -0
  681. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/rewriter.rb +0 -0
  682. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby18.rb +9270 -0
  683. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby19.rb +9556 -0
  684. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby20.rb +10227 -0
  685. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby21.rb +10201 -0
  686. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby22.rb +10300 -0
  687. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby23.rb +10320 -0
  688. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby24.rb +10452 -0
  689. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby25.rb +10372 -0
  690. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby26.rb +10350 -0
  691. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby27.rb +11945 -0
  692. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/ruby28.rb +0 -0
  693. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby30.rb +12241 -0
  694. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby31.rb +12714 -0
  695. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/ruby32.rb +12691 -0
  696. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/rubymotion.rb +9513 -0
  697. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/runner/ruby_parse.rb +0 -0
  698. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
  699. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/runner.rb +0 -0
  700. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/buffer.rb +0 -0
  701. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/comment/associator.rb +0 -0
  702. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/comment.rb +0 -0
  703. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/collection.rb +0 -0
  704. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/condition.rb +0 -0
  705. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/constant.rb +0 -0
  706. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/definition.rb +0 -0
  707. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/for.rb +0 -0
  708. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/heredoc.rb +0 -0
  709. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/index.rb +0 -0
  710. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/keyword.rb +0 -0
  711. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/method_definition.rb +0 -0
  712. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
  713. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/operator.rb +0 -0
  714. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/rescue_body.rb +0 -0
  715. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/send.rb +0 -0
  716. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/ternary.rb +0 -0
  717. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map/variable.rb +0 -0
  718. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/map.rb +0 -0
  719. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/range.rb +0 -0
  720. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/rewriter/action.rb +0 -0
  721. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/rewriter.rb +0 -0
  722. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
  723. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/source/tree_rewriter.rb +0 -0
  724. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/static_environment.rb +87 -0
  725. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/syntax_error.rb +0 -0
  726. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/tree_rewriter.rb +0 -0
  727. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser/variables_stack.rb +0 -0
  728. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/lib/parser/version.rb +5 -0
  729. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.2.1 → parser-3.1.3.0}/lib/parser.rb +0 -0
  730. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.3.0/parser.gemspec +43 -0
  731. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/.gitignore +0 -0
  732. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Gemfile +0 -0
  733. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/LICENSE +0 -0
  734. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Mavenfile +0 -0
  735. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/README.md +0 -0
  736. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Rakefile +0 -0
  737. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/console +0 -0
  738. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/setup +0 -0
  739. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/.sitearchdir.time +0 -0
  740. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/Makefile +271 -0
  741. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/api.o +0 -0
  742. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/depend +0 -0
  743. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/dumper.o +0 -0
  744. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/emitter.o +0 -0
  745. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/extconf.rb +0 -0
  746. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/loader.o +0 -0
  747. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/parser.o +0 -0
  748. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.c +0 -0
  749. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.h +0 -0
  750. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych.o +0 -0
  751. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych.so +0 -0
  752. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.c +0 -0
  753. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.h +0 -0
  754. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_emitter.o +0 -0
  755. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.c +0 -0
  756. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.h +0 -0
  757. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_parser.o +0 -0
  758. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.c +0 -0
  759. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.h +0 -0
  760. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_to_ruby.o +0 -0
  761. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.c +0 -0
  762. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.h +0 -0
  763. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/psych_yaml_tree.o +0 -0
  764. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/reader.o +0 -0
  765. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/scanner.o +0 -0
  766. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/writer.o +0 -0
  767. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/LICENSE +0 -0
  768. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/api.c +0 -0
  769. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/config.h +0 -0
  770. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/dumper.c +0 -0
  771. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/emitter.c +0 -0
  772. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/loader.c +0 -0
  773. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/parser.c +0 -0
  774. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/reader.c +0 -0
  775. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/scanner.c +0 -0
  776. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/writer.c +0 -0
  777. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml.h +0 -0
  778. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml_private.h +0 -0
  779. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/class_loader.rb +0 -0
  780. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/coder.rb +0 -0
  781. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/core_ext.rb +0 -0
  782. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/exception.rb +0 -0
  783. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handler.rb +0 -0
  784. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/document_stream.rb +0 -0
  785. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/recorder.rb +0 -0
  786. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/ruby_events.rb +0 -0
  787. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/stream.rb +0 -0
  788. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/tree_builder.rb +0 -0
  789. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/yaml_events.rb +0 -0
  790. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/alias.rb +0 -0
  791. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/document.rb +0 -0
  792. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/mapping.rb +0 -0
  793. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/node.rb +0 -0
  794. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/scalar.rb +0 -0
  795. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/sequence.rb +0 -0
  796. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/stream.rb +0 -0
  797. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes.rb +0 -0
  798. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/omap.rb +0 -0
  799. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/parser.rb +0 -0
  800. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/scalar_scanner.rb +0 -0
  801. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/set.rb +0 -0
  802. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/stream.rb +0 -0
  803. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/streaming.rb +0 -0
  804. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/syntax_error.rb +0 -0
  805. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/tree_builder.rb +0 -0
  806. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/lib/psych/versions.rb +10 -0
  807. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/depth_first.rb +0 -0
  808. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/emitter.rb +0 -0
  809. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/json_tree.rb +0 -0
  810. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/to_ruby.rb +0 -0
  811. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/visitor.rb +0 -0
  812. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/yaml_tree.rb +0 -0
  813. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors.rb +0 -0
  814. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/y.rb +0 -0
  815. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych.rb +0 -0
  816. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/lib/psych.so +0 -0
  817. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/psych.gemspec +0 -0
  818. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.11.0 → rspec-3.12.0}/LICENSE.md +0 -0
  819. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.11.0 → rspec-3.12.0}/README.md +0 -0
  820. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.12.0/lib/rspec/version.rb +5 -0
  821. data/vendor/bundle/ruby/2.5.0/gems/{rspec-3.11.0 → rspec-3.12.0}/lib/rspec.rb +0 -0
  822. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/.document +0 -0
  823. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/.yardopts +0 -0
  824. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/Changelog.md +2360 -0
  825. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/LICENSE.md +0 -0
  826. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/README.md +0 -0
  827. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/exe/rspec +0 -0
  828. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/autorun.rb +0 -0
  829. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/backtrace_formatter.rb +0 -0
  830. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/coordinator.rb +0 -0
  831. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
  832. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/fork_runner.rb +0 -0
  833. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/server.rb +0 -0
  834. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/shell_command.rb +0 -0
  835. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/shell_runner.rb +0 -0
  836. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/bisect/utilities.rb +0 -0
  837. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/configuration.rb +2385 -0
  838. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/configuration_options.rb +0 -0
  839. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/did_you_mean.rb +0 -0
  840. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/drb.rb +0 -0
  841. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/dsl.rb +0 -0
  842. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example.rb +0 -0
  843. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example_group.rb +0 -0
  844. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/example_status_persister.rb +0 -0
  845. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/filter_manager.rb +0 -0
  846. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/flat_map.rb +0 -0
  847. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
  848. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_formatter.rb +0 -0
  849. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
  850. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
  851. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
  852. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/console_codes.rb +0 -0
  853. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
  854. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
  855. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/exception_presenter.rb +525 -0
  856. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
  857. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
  858. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/helpers.rb +0 -0
  859. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/html_formatter.rb +0 -0
  860. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/html_printer.rb +412 -0
  861. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -0
  862. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/json_formatter.rb +0 -0
  863. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
  864. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
  865. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/protocol.rb +0 -0
  866. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
  867. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
  868. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/formatters.rb +0 -0
  869. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/hooks.rb +0 -0
  870. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/invocations.rb +0 -0
  871. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/memoized_helpers.rb +0 -0
  872. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/metadata.rb +0 -0
  873. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/metadata_filter.rb +0 -0
  874. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
  875. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
  876. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
  877. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/null.rb +0 -0
  878. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
  879. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
  880. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/notifications.rb +0 -0
  881. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/option_parser.rb +323 -0
  882. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/ordering.rb +0 -0
  883. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/output_wrapper.rb +0 -0
  884. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/pending.rb +0 -0
  885. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/profiler.rb +0 -0
  886. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer/.rspec +0 -0
  887. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
  888. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/project_initializer.rb +0 -0
  889. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/rake_task.rb +0 -0
  890. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/reporter.rb +0 -0
  891. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/ruby_project.rb +0 -0
  892. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/runner.rb +0 -0
  893. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/sandbox.rb +0 -0
  894. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/set.rb +0 -0
  895. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shared_context.rb +0 -0
  896. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shared_example_group.rb +0 -0
  897. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/shell_escape.rb +0 -0
  898. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
  899. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.12.0/lib/rspec/core/version.rb +9 -0
  900. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/warnings.rb +0 -0
  901. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core/world.rb +0 -0
  902. data/vendor/bundle/ruby/2.5.0/gems/{rspec-core-3.11.0 → rspec-core-3.12.0}/lib/rspec/core.rb +0 -0
  903. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/.document +0 -0
  904. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/.yardopts +0 -0
  905. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.12.0/Changelog.md +1285 -0
  906. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/LICENSE.md +0 -0
  907. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/README.md +0 -0
  908. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  909. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/configuration.rb +0 -0
  910. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/expectation_target.rb +0 -0
  911. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/fail_with.rb +0 -0
  912. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/failure_aggregator.rb +0 -0
  913. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/handler.rb +0 -0
  914. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/minitest_integration.rb +0 -0
  915. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations/syntax.rb +0 -0
  916. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.12.0/lib/rspec/expectations/version.rb +8 -0
  917. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/expectations.rb +0 -0
  918. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/aliased_matcher.rb +0 -0
  919. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/all.rb +0 -0
  920. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
  921. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be.rb +0 -0
  922. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  923. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  924. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  925. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/be_within.rb +0 -0
  926. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/change.rb +0 -0
  927. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/compound.rb +0 -0
  928. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
  929. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/count_expectation.rb +0 -0
  930. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/cover.rb +0 -0
  931. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/eq.rb +0 -0
  932. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/eql.rb +0 -0
  933. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/equal.rb +0 -0
  934. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/exist.rb +0 -0
  935. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/has.rb +0 -0
  936. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  937. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/include.rb +0 -0
  938. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/match.rb +0 -0
  939. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/operators.rb +0 -0
  940. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/output.rb +0 -0
  941. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/raise_error.rb +0 -0
  942. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
  943. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  944. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  945. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
  946. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in/yield.rb +0 -0
  947. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/built_in.rb +0 -0
  948. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/composable.rb +0 -0
  949. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/dsl.rb +0 -0
  950. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/english_phrasing.rb +0 -0
  951. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  952. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/fail_matchers.rb +0 -0
  953. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  954. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  955. data/vendor/bundle/ruby/2.5.0/gems/{rspec-expectations-3.11.1 → rspec-expectations-3.12.0}/lib/rspec/matchers/matcher_protocol.rb +0 -0
  956. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.12.0/lib/rspec/matchers.rb +1044 -0
  957. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/.document +0 -0
  958. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/.yardopts +0 -0
  959. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/Changelog.md +1212 -0
  960. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/LICENSE.md +0 -0
  961. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/README.md +0 -0
  962. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  963. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  964. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  965. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  966. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  967. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  968. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  969. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  970. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  971. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/any_instance.rb +0 -0
  972. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
  973. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/argument_matchers.rb +0 -0
  974. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/configuration.rb +0 -0
  975. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/error_generator.rb +380 -0
  976. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/example_methods.rb +0 -0
  977. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  978. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/marshal_extension.rb +0 -0
  979. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  980. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  981. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/receive.rb +0 -0
  982. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  983. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  984. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/message_chain.rb +0 -0
  985. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/message_expectation.rb +820 -0
  986. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/method_double.rb +0 -0
  987. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/method_reference.rb +214 -0
  988. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/minitest_integration.rb +0 -0
  989. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/mutate_const.rb +0 -0
  990. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/object_reference.rb +0 -0
  991. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/order_group.rb +0 -0
  992. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/proxy.rb +0 -0
  993. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/space.rb +0 -0
  994. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/standalone.rb +0 -0
  995. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/syntax.rb +0 -0
  996. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/targets.rb +0 -0
  997. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/test_double.rb +0 -0
  998. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/verifying_double.rb +0 -0
  999. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/verifying_message_expectation.rb +55 -0
  1000. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  1001. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.12.0/lib/rspec/mocks/version.rb +9 -0
  1002. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.1 → rspec-mocks-3.12.0}/lib/rspec/mocks.rb +0 -0
  1003. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.12.0/Changelog.md +364 -0
  1004. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/LICENSE.md +0 -0
  1005. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/README.md +0 -0
  1006. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/caller_filter.rb +0 -0
  1007. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/comparable_version.rb +0 -0
  1008. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/differ.rb +0 -0
  1009. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/directory_maker.rb +0 -0
  1010. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/encoded_string.rb +0 -0
  1011. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  1012. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/hunk_generator.rb +0 -0
  1013. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/matcher_definition.rb +0 -0
  1014. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/method_signature_verifier.rb +0 -0
  1015. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/mutex.rb +0 -0
  1016. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/object_formatter.rb +0 -0
  1017. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/recursive_const_methods.rb +0 -0
  1018. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/reentrant_mutex.rb +0 -0
  1019. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.12.0/lib/rspec/support/ruby_features.rb +198 -0
  1020. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source/location.rb +0 -0
  1021. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source/node.rb +0 -0
  1022. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source/token.rb +0 -0
  1023. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/source.rb +0 -0
  1024. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  1025. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  1026. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/formatting_support.rb +0 -0
  1027. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/in_sub_process.rb +0 -0
  1028. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  1029. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/shell_out.rb +0 -0
  1030. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  1031. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/string_matcher.rb +0 -0
  1032. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  1033. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  1034. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/spec.rb +0 -0
  1035. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.12.0/lib/rspec/support/version.rb +7 -0
  1036. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/warnings.rb +0 -0
  1037. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
  1038. data/vendor/bundle/ruby/2.5.0/gems/{rspec-support-3.11.1 → rspec-support-3.12.0}/lib/rspec/support.rb +0 -0
  1039. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
  1040. data/vendor/bundle/ruby/2.5.0/specifications/ethon-0.16.0.gemspec +32 -0
  1041. data/vendor/bundle/ruby/2.5.0/specifications/parser-3.1.3.0.gemspec +63 -0
  1042. data/vendor/bundle/ruby/2.5.0/specifications/psych-4.0.6.gemspec +38 -0
  1043. data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.12.0.gemspec +43 -0
  1044. data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.12.0.gemspec +63 -0
  1045. data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.12.0.gemspec +51 -0
  1046. data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.12.0.gemspec +51 -0
  1047. data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.12.0.gemspec +39 -0
  1048. metadata +979 -903
  1049. data/docs/AcceptConsentRequest.md +0 -28
  1050. data/docs/AcceptLoginRequest.md +0 -30
  1051. data/docs/ActiveProject.md +0 -18
  1052. data/docs/AdminApi.md +0 -2154
  1053. data/docs/AdminCreateIdentityBody.md +0 -32
  1054. data/docs/AdminCreateIdentityImportCredentialsOidc.md +0 -18
  1055. data/docs/AdminCreateIdentityImportCredentialsOidcConfig.md +0 -20
  1056. data/docs/AdminCreateIdentityImportCredentialsOidcProvider.md +0 -20
  1057. data/docs/AdminCreateIdentityImportCredentialsPassword.md +0 -18
  1058. data/docs/AdminCreateIdentityImportCredentialsPasswordConfig.md +0 -20
  1059. data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +0 -20
  1060. data/docs/AdminIdentityImportCredentials.md +0 -20
  1061. data/docs/AdminUpdateIdentityBody.md +0 -28
  1062. data/docs/CnameSettings.md +0 -34
  1063. data/docs/CompletedRequest.md +0 -18
  1064. data/docs/ConsentRequest.md +0 -42
  1065. data/docs/ConsentRequestSession.md +0 -20
  1066. data/docs/CreateCustomHostnameBody.md +0 -24
  1067. data/docs/CreateSubscriptionPayload.md +0 -22
  1068. data/docs/ExpandTree.md +0 -22
  1069. data/docs/FlushInactiveOAuth2TokensRequest.md +0 -18
  1070. data/docs/FlushLoginConsentRequest.md +0 -18
  1071. data/docs/GetCheckResponse.md +0 -18
  1072. data/docs/GetRelationTuplesResponse.md +0 -20
  1073. data/docs/InvitePayload.md +0 -18
  1074. data/docs/IsOwnerForProjectBySlugPayload.md +0 -22
  1075. data/docs/JSONWebKey.md +0 -50
  1076. data/docs/JSONWebKeySet.md +0 -18
  1077. data/docs/JsonError.md +0 -24
  1078. data/docs/JsonWebKeySetGeneratorRequest.md +0 -22
  1079. data/docs/LoginRequest.md +0 -34
  1080. data/docs/LogoutRequest.md +0 -28
  1081. data/docs/OAuth2TokenIntrospection.md +0 -44
  1082. data/docs/Oauth2TokenResponse.md +0 -28
  1083. data/docs/OauthTokenResponse.md +0 -28
  1084. data/docs/OpenIDConnectContext.md +0 -26
  1085. data/docs/PatchDelta.md +0 -20
  1086. data/docs/PatchDocument.md +0 -24
  1087. data/docs/PreviousConsentSession.md +0 -30
  1088. data/docs/ProvisionMockSubscriptionPayload.md +0 -20
  1089. data/docs/PublicApi.md +0 -738
  1090. data/docs/QuotaCustomDomains.md +0 -22
  1091. data/docs/QuotaProjectMemberSeats.md +0 -22
  1092. data/docs/ReadApi.md +0 -467
  1093. data/docs/RecoveryAddress.md +0 -26
  1094. data/docs/RefreshTokenHookRequest.md +0 -24
  1095. data/docs/RefreshTokenHookResponse.md +0 -18
  1096. data/docs/RejectRequest.md +0 -26
  1097. data/docs/RelationTuple.md +0 -26
  1098. data/docs/RequestWasHandledResponse.md +0 -18
  1099. data/docs/RevokedSessions.md +0 -18
  1100. data/docs/SelfServiceBrowserLocationChangeRequiredError.md +0 -34
  1101. data/docs/SelfServiceError.md +0 -24
  1102. data/docs/SelfServiceLoginFlow.md +0 -40
  1103. data/docs/SelfServiceLogoutUrl.md +0 -20
  1104. data/docs/SelfServiceRecoveryFlow.md +0 -34
  1105. data/docs/SelfServiceRecoveryFlowState.md +0 -15
  1106. data/docs/SelfServiceRecoveryLink.md +0 -20
  1107. data/docs/SelfServiceRegistrationFlow.md +0 -32
  1108. data/docs/SelfServiceSettingsFlow.md +0 -36
  1109. data/docs/SelfServiceSettingsFlowState.md +0 -15
  1110. data/docs/SelfServiceVerificationFlow.md +0 -34
  1111. data/docs/SelfServiceVerificationFlowState.md +0 -15
  1112. data/docs/SettingsProfileFormConfig.md +0 -24
  1113. data/docs/StripeCustomerResponse.md +0 -18
  1114. data/docs/SubmitSelfServiceFlowWithWebAuthnRegistrationMethod.md +0 -20
  1115. data/docs/SubmitSelfServiceLoginFlowBody.md +0 -87
  1116. data/docs/SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.md +0 -22
  1117. data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +0 -24
  1118. data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +0 -26
  1119. data/docs/SubmitSelfServiceLoginFlowWithTotpMethodBody.md +0 -22
  1120. data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +0 -24
  1121. data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +0 -18
  1122. data/docs/SubmitSelfServiceRecoveryFlowBody.md +0 -75
  1123. data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +0 -22
  1124. data/docs/SubmitSelfServiceRegistrationFlowBody.md +0 -81
  1125. data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +0 -24
  1126. data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +0 -24
  1127. data/docs/SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody.md +0 -26
  1128. data/docs/SubmitSelfServiceSettingsFlowBody.md +0 -90
  1129. data/docs/SubmitSelfServiceSettingsFlowWithLookupMethodBody.md +0 -28
  1130. data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +0 -26
  1131. data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +0 -22
  1132. data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +0 -22
  1133. data/docs/SubmitSelfServiceSettingsFlowWithTotpMethodBody.md +0 -24
  1134. data/docs/SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody.md +0 -26
  1135. data/docs/SubmitSelfServiceVerificationFlowBody.md +0 -75
  1136. data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +0 -22
  1137. data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +0 -20
  1138. data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +0 -22
  1139. data/docs/TrustJwtGrantIssuerBody.md +0 -28
  1140. data/docs/TrustedJsonWebKey.md +0 -20
  1141. data/docs/TrustedJwtGrantIssuer.md +0 -32
  1142. data/docs/UpdateCustomHostnameBody.md +0 -24
  1143. data/docs/UpdateProject.md +0 -20
  1144. data/docs/UpdateSubscriptionPayload.md +0 -20
  1145. data/docs/UserinfoResponse.md +0 -54
  1146. data/docs/V0alpha2Api.md +0 -3623
  1147. data/docs/WellKnown.md +0 -70
  1148. data/docs/WriteApi.md +0 -233
  1149. data/lib/ory-client/api/admin_api.rb +0 -2184
  1150. data/lib/ory-client/api/public_api.rb +0 -723
  1151. data/lib/ory-client/api/read_api.rb +0 -449
  1152. data/lib/ory-client/api/v0alpha2_api.rb +0 -3484
  1153. data/lib/ory-client/api/write_api.rb +0 -228
  1154. data/lib/ory-client/models/accept_consent_request.rb +0 -270
  1155. data/lib/ory-client/models/accept_login_request.rb +0 -285
  1156. data/lib/ory-client/models/active_project.rb +0 -221
  1157. data/lib/ory-client/models/admin_create_identity_body.rb +0 -304
  1158. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +0 -219
  1159. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +0 -231
  1160. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +0 -240
  1161. data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +0 -219
  1162. data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +0 -230
  1163. data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +0 -251
  1164. data/lib/ory-client/models/admin_identity_import_credentials.rb +0 -228
  1165. data/lib/ory-client/models/admin_update_identity_body.rb +0 -285
  1166. data/lib/ory-client/models/cname_settings.rb +0 -296
  1167. data/lib/ory-client/models/completed_request.rb +0 -225
  1168. data/lib/ory-client/models/consent_request.rb +0 -345
  1169. data/lib/ory-client/models/consent_request_session.rb +0 -232
  1170. data/lib/ory-client/models/create_custom_hostname_body.rb +0 -252
  1171. data/lib/ory-client/models/create_subscription_payload.rb +0 -247
  1172. data/lib/ory-client/models/expand_tree.rb +0 -280
  1173. data/lib/ory-client/models/flush_inactive_o_auth2_tokens_request.rb +0 -220
  1174. data/lib/ory-client/models/flush_login_consent_request.rb +0 -220
  1175. data/lib/ory-client/models/get_check_response.rb +0 -226
  1176. data/lib/ory-client/models/get_relation_tuples_response.rb +0 -231
  1177. data/lib/ory-client/models/invite_payload.rb +0 -219
  1178. data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +0 -250
  1179. data/lib/ory-client/models/json_error.rb +0 -255
  1180. data/lib/ory-client/models/json_web_key_set_generator_request.rb +0 -255
  1181. data/lib/ory-client/models/login_request.rb +0 -335
  1182. data/lib/ory-client/models/logout_request.rb +0 -269
  1183. data/lib/ory-client/models/o_auth2_token_introspection.rb +0 -360
  1184. data/lib/ory-client/models/oauth2_token_response.rb +0 -265
  1185. data/lib/ory-client/models/oauth_token_response.rb +0 -271
  1186. data/lib/ory-client/models/open_id_connect_context.rb +0 -266
  1187. data/lib/ory-client/models/patch_delta.rb +0 -262
  1188. data/lib/ory-client/models/patch_document.rb +0 -261
  1189. data/lib/ory-client/models/previous_consent_session.rb +0 -280
  1190. data/lib/ory-client/models/provision_mock_subscription_payload.rb +0 -238
  1191. data/lib/ory-client/models/quota_custom_domains.rb +0 -237
  1192. data/lib/ory-client/models/quota_project_member_seats.rb +0 -237
  1193. data/lib/ory-client/models/recovery_address.rb +0 -272
  1194. data/lib/ory-client/models/refresh_token_hook_request.rb +0 -254
  1195. data/lib/ory-client/models/refresh_token_hook_response.rb +0 -219
  1196. data/lib/ory-client/models/reject_request.rb +0 -260
  1197. data/lib/ory-client/models/relation_tuple.rb +0 -274
  1198. data/lib/ory-client/models/request_was_handled_response.rb +0 -225
  1199. data/lib/ory-client/models/revoked_sessions.rb +0 -220
  1200. data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +0 -307
  1201. data/lib/ory-client/models/self_service_error.rb +0 -253
  1202. data/lib/ory-client/models/self_service_login_flow.rb +0 -357
  1203. data/lib/ory-client/models/self_service_logout_url.rb +0 -240
  1204. data/lib/ory-client/models/self_service_recovery_flow.rb +0 -333
  1205. data/lib/ory-client/models/self_service_recovery_flow_state.rb +0 -38
  1206. data/lib/ory-client/models/self_service_recovery_link.rb +0 -235
  1207. data/lib/ory-client/models/self_service_registration_flow.rb +0 -317
  1208. data/lib/ory-client/models/self_service_settings_flow.rb +0 -347
  1209. data/lib/ory-client/models/self_service_settings_flow_state.rb +0 -37
  1210. data/lib/ory-client/models/self_service_verification_flow.rb +0 -318
  1211. data/lib/ory-client/models/self_service_verification_flow_state.rb +0 -38
  1212. data/lib/ory-client/models/settings_profile_form_config.rb +0 -267
  1213. data/lib/ory-client/models/stripe_customer_response.rb +0 -219
  1214. data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +0 -230
  1215. data/lib/ory-client/models/submit_self_service_login_flow_body.rb +0 -61
  1216. data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +0 -250
  1217. data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +0 -261
  1218. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +0 -275
  1219. data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +0 -250
  1220. data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +0 -260
  1221. data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +0 -226
  1222. data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +0 -53
  1223. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +0 -250
  1224. data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +0 -57
  1225. data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +0 -261
  1226. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +0 -266
  1227. data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +0 -270
  1228. data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +0 -63
  1229. data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +0 -275
  1230. data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +0 -266
  1231. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +0 -250
  1232. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +0 -251
  1233. data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +0 -255
  1234. data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +0 -265
  1235. data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +0 -54
  1236. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +0 -250
  1237. data/lib/ory-client/models/successful_self_service_login_without_browser.rb +0 -235
  1238. data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +0 -244
  1239. data/lib/ory-client/models/trust_jwt_grant_issuer_body.rb +0 -291
  1240. data/lib/ory-client/models/trusted_json_web_key.rb +0 -230
  1241. data/lib/ory-client/models/trusted_jwt_grant_issuer.rb +0 -290
  1242. data/lib/ory-client/models/update_custom_hostname_body.rb +0 -252
  1243. data/lib/ory-client/models/update_project.rb +0 -239
  1244. data/lib/ory-client/models/update_subscription_payload.rb +0 -233
  1245. data/lib/ory-client/models/userinfo_response.rb +0 -401
  1246. data/lib/ory-client/models/well_known.rb +0 -538
  1247. data/spec/api/admin_api_spec.rb +0 -442
  1248. data/spec/api/public_api_spec.rb +0 -167
  1249. data/spec/api/read_api_spec.rb +0 -124
  1250. data/spec/api/v0alpha2_api_spec.rb +0 -695
  1251. data/spec/api/write_api_spec.rb +0 -77
  1252. data/spec/models/accept_consent_request_spec.rb +0 -64
  1253. data/spec/models/accept_login_request_spec.rb +0 -70
  1254. data/spec/models/active_project_spec.rb +0 -34
  1255. data/spec/models/admin_create_identity_body_spec.rb +0 -76
  1256. data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +0 -40
  1257. data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +0 -40
  1258. data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +0 -34
  1259. data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +0 -40
  1260. data/spec/models/admin_create_identity_import_credentials_password_spec.rb +0 -34
  1261. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +0 -40
  1262. data/spec/models/admin_identity_import_credentials_spec.rb +0 -40
  1263. data/spec/models/admin_update_identity_body_spec.rb +0 -64
  1264. data/spec/models/cname_settings_spec.rb +0 -82
  1265. data/spec/models/completed_request_spec.rb +0 -34
  1266. data/spec/models/consent_request_session_spec.rb +0 -40
  1267. data/spec/models/consent_request_spec.rb +0 -106
  1268. data/spec/models/create_custom_hostname_body_spec.rb +0 -52
  1269. data/spec/models/create_subscription_payload_spec.rb +0 -46
  1270. data/spec/models/expand_tree_spec.rb +0 -50
  1271. data/spec/models/flush_inactive_o_auth2_tokens_request_spec.rb +0 -34
  1272. data/spec/models/flush_login_consent_request_spec.rb +0 -34
  1273. data/spec/models/get_check_response_spec.rb +0 -34
  1274. data/spec/models/get_relation_tuples_response_spec.rb +0 -40
  1275. data/spec/models/invite_payload_spec.rb +0 -34
  1276. data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +0 -46
  1277. data/spec/models/json_error_spec.rb +0 -52
  1278. data/spec/models/json_web_key_set_generator_request_spec.rb +0 -46
  1279. data/spec/models/login_request_spec.rb +0 -82
  1280. data/spec/models/logout_request_spec.rb +0 -64
  1281. data/spec/models/o_auth2_token_introspection_spec.rb +0 -112
  1282. data/spec/models/oauth2_token_response_spec.rb +0 -64
  1283. data/spec/models/oauth_token_response_spec.rb +0 -64
  1284. data/spec/models/open_id_connect_context_spec.rb +0 -58
  1285. data/spec/models/patch_delta_spec.rb +0 -44
  1286. data/spec/models/patch_document_spec.rb +0 -52
  1287. data/spec/models/previous_consent_session_spec.rb +0 -70
  1288. data/spec/models/provision_mock_subscription_payload_spec.rb +0 -40
  1289. data/spec/models/quota_custom_domains_spec.rb +0 -46
  1290. data/spec/models/quota_project_member_seats_spec.rb +0 -46
  1291. data/spec/models/recovery_address_spec.rb +0 -58
  1292. data/spec/models/refresh_token_hook_request_spec.rb +0 -52
  1293. data/spec/models/refresh_token_hook_response_spec.rb +0 -34
  1294. data/spec/models/reject_request_spec.rb +0 -58
  1295. data/spec/models/relation_tuple_spec.rb +0 -58
  1296. data/spec/models/request_was_handled_response_spec.rb +0 -34
  1297. data/spec/models/revoked_sessions_spec.rb +0 -34
  1298. data/spec/models/self_service_browser_location_change_required_error_spec.rb +0 -82
  1299. data/spec/models/self_service_error_spec.rb +0 -52
  1300. data/spec/models/self_service_login_flow_spec.rb +0 -100
  1301. data/spec/models/self_service_logout_url_spec.rb +0 -40
  1302. data/spec/models/self_service_recovery_flow_spec.rb +0 -82
  1303. data/spec/models/self_service_recovery_flow_state_spec.rb +0 -28
  1304. data/spec/models/self_service_recovery_link_spec.rb +0 -40
  1305. data/spec/models/self_service_registration_flow_spec.rb +0 -76
  1306. data/spec/models/self_service_settings_flow_spec.rb +0 -88
  1307. data/spec/models/self_service_settings_flow_state_spec.rb +0 -28
  1308. data/spec/models/self_service_verification_flow_spec.rb +0 -82
  1309. data/spec/models/self_service_verification_flow_state_spec.rb +0 -28
  1310. data/spec/models/settings_profile_form_config_spec.rb +0 -52
  1311. data/spec/models/stripe_customer_response_spec.rb +0 -34
  1312. data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +0 -40
  1313. data/spec/models/submit_self_service_login_flow_body_spec.rb +0 -43
  1314. data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +0 -46
  1315. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +0 -52
  1316. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +0 -58
  1317. data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +0 -46
  1318. data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +0 -52
  1319. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +0 -34
  1320. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +0 -43
  1321. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +0 -46
  1322. data/spec/models/submit_self_service_registration_flow_body_spec.rb +0 -43
  1323. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +0 -52
  1324. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +0 -52
  1325. data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +0 -58
  1326. data/spec/models/submit_self_service_settings_flow_body_spec.rb +0 -43
  1327. data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +0 -64
  1328. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +0 -58
  1329. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +0 -46
  1330. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +0 -46
  1331. data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +0 -52
  1332. data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +0 -58
  1333. data/spec/models/submit_self_service_verification_flow_body_spec.rb +0 -43
  1334. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +0 -46
  1335. data/spec/models/successful_self_service_login_without_browser_spec.rb +0 -40
  1336. data/spec/models/successful_self_service_registration_without_browser_spec.rb +0 -46
  1337. data/spec/models/trust_jwt_grant_issuer_body_spec.rb +0 -64
  1338. data/spec/models/trusted_json_web_key_spec.rb +0 -40
  1339. data/spec/models/trusted_jwt_grant_issuer_spec.rb +0 -76
  1340. data/spec/models/update_custom_hostname_body_spec.rb +0 -52
  1341. data/spec/models/update_project_spec.rb +0 -40
  1342. data/spec/models/update_subscription_payload_spec.rb +0 -40
  1343. data/spec/models/userinfo_response_spec.rb +0 -142
  1344. data/spec/models/well_known_spec.rb +0 -190
  1345. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.15.0.gem +0 -0
  1346. data/vendor/bundle/ruby/2.5.0/cache/parser-3.1.2.1.gem +0 -0
  1347. data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.5.gem +0 -0
  1348. data/vendor/bundle/ruby/2.5.0/cache/rspec-3.11.0.gem +0 -0
  1349. data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.11.0.gem +0 -0
  1350. data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.11.1.gem +0 -0
  1351. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.11.1.gem +0 -0
  1352. data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.11.1.gem +0 -0
  1353. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.5/gem_make.out +0 -41
  1354. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.5/psych.so +0 -0
  1355. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/.github/workflows/ruby.yml +0 -41
  1356. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/CHANGELOG.md +0 -372
  1357. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/README.md +0 -95
  1358. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb +0 -55
  1359. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/curls/options.rb +0 -502
  1360. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/easy/callbacks.rb +0 -148
  1361. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/easy/informations.rb +0 -113
  1362. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/easy/response_callbacks.rb +0 -131
  1363. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/lib/ethon/version.rb +0 -6
  1364. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/callbacks_spec.rb +0 -59
  1365. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/informations_spec.rb +0 -120
  1366. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/mirror_spec.rb +0 -47
  1367. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/easy/operations_spec.rb +0 -268
  1368. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ast/processor.rb +0 -288
  1369. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/builders/default.rb +0 -2309
  1370. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/current.rb +0 -119
  1371. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/lexer.rb +0 -25015
  1372. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/macruby.rb +0 -6177
  1373. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/messages.rb +0 -118
  1374. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/meta.rb +0 -39
  1375. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby18.rb +0 -5708
  1376. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby19.rb +0 -6126
  1377. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby20.rb +0 -6563
  1378. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby21.rb +0 -6611
  1379. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby22.rb +0 -6655
  1380. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby23.rb +0 -6669
  1381. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby24.rb +0 -6736
  1382. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby25.rb +0 -6694
  1383. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby26.rb +0 -6721
  1384. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby27.rb +0 -7914
  1385. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby30.rb +0 -8096
  1386. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby31.rb +0 -8358
  1387. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/ruby32.rb +0 -8338
  1388. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/rubymotion.rb +0 -6125
  1389. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/static_environment.rb +0 -69
  1390. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/lib/parser/version.rb +0 -5
  1391. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.2.1/parser.gemspec +0 -43
  1392. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/Makefile +0 -271
  1393. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/api.o +0 -0
  1394. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/dumper.o +0 -0
  1395. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/emitter.o +0 -0
  1396. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/loader.o +0 -0
  1397. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/parser.o +0 -0
  1398. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych.o +0 -0
  1399. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych.so +0 -0
  1400. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_emitter.o +0 -0
  1401. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_parser.o +0 -0
  1402. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_to_ruby.o +0 -0
  1403. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/psych_yaml_tree.o +0 -0
  1404. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/reader.o +0 -0
  1405. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/scanner.o +0 -0
  1406. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/ext/psych/writer.o +0 -0
  1407. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/lib/psych/versions.rb +0 -10
  1408. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.5/lib/psych.so +0 -0
  1409. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.11.0/lib/rspec/version.rb +0 -5
  1410. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/Changelog.md +0 -2355
  1411. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/configuration.rb +0 -2383
  1412. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb +0 -521
  1413. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb +0 -414
  1414. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/option_parser.rb +0 -325
  1415. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.11.0/lib/rspec/core/version.rb +0 -9
  1416. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.11.1/Changelog.md +0 -1277
  1417. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.11.1/lib/rspec/expectations/version.rb +0 -8
  1418. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.11.1/lib/rspec/matchers.rb +0 -1041
  1419. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/Changelog.md +0 -1193
  1420. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb +0 -369
  1421. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb +0 -822
  1422. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb +0 -202
  1423. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
  1424. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.11.1/lib/rspec/mocks/version.rb +0 -9
  1425. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.11.1/Changelog.md +0 -357
  1426. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.11.1/lib/rspec/support/ruby_features.rb +0 -194
  1427. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.11.1/lib/rspec/support/version.rb +0 -7
  1428. data/vendor/bundle/ruby/2.5.0/specifications/ethon-0.15.0.gemspec +0 -32
  1429. data/vendor/bundle/ruby/2.5.0/specifications/parser-3.1.2.1.gemspec +0 -63
  1430. data/vendor/bundle/ruby/2.5.0/specifications/psych-4.0.5.gemspec +0 -38
  1431. data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.11.0.gemspec +0 -43
  1432. data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.11.0.gemspec +0 -63
  1433. data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.11.1.gemspec +0 -51
  1434. data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.11.1.gemspec +0 -51
  1435. data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.11.1.gemspec +0 -39
@@ -1,3484 +0,0 @@
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.2.0-alpha.48
7
- Contact: support@ory.sh
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.0.1
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module OryClient
16
- class V0alpha2Api
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Create an Identity
23
- # This endpoint creates an identity. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
24
- # @param [Hash] opts the optional parameters
25
- # @option opts [AdminCreateIdentityBody] :admin_create_identity_body
26
- # @return [Identity]
27
- def admin_create_identity(opts = {})
28
- data, _status_code, _headers = admin_create_identity_with_http_info(opts)
29
- data
30
- end
31
-
32
- # Create an Identity
33
- # This endpoint creates an identity. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
34
- # @param [Hash] opts the optional parameters
35
- # @option opts [AdminCreateIdentityBody] :admin_create_identity_body
36
- # @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
37
- def admin_create_identity_with_http_info(opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_create_identity ...'
40
- end
41
- # resource path
42
- local_var_path = '/admin/identities'
43
-
44
- # query parameters
45
- query_params = opts[:query_params] || {}
46
-
47
- # header parameters
48
- header_params = opts[:header_params] || {}
49
- # HTTP header 'Accept' (if needed)
50
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
- # HTTP header 'Content-Type'
52
- content_type = @api_client.select_header_content_type(['application/json'])
53
- if !content_type.nil?
54
- header_params['Content-Type'] = content_type
55
- end
56
-
57
- # form parameters
58
- form_params = opts[:form_params] || {}
59
-
60
- # http body (model)
61
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'admin_create_identity_body'])
62
-
63
- # return_type
64
- return_type = opts[:debug_return_type] || 'Identity'
65
-
66
- # auth_names
67
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
68
-
69
- new_options = opts.merge(
70
- :operation => :"V0alpha2Api.admin_create_identity",
71
- :header_params => header_params,
72
- :query_params => query_params,
73
- :form_params => form_params,
74
- :body => post_body,
75
- :auth_names => auth_names,
76
- :return_type => return_type
77
- )
78
-
79
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
- if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_create_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- end
83
- return data, status_code, headers
84
- end
85
-
86
- # Create a Recovery Link
87
- # This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
88
- # @param [Hash] opts the optional parameters
89
- # @option opts [AdminCreateSelfServiceRecoveryLinkBody] :admin_create_self_service_recovery_link_body
90
- # @return [SelfServiceRecoveryLink]
91
- def admin_create_self_service_recovery_link(opts = {})
92
- data, _status_code, _headers = admin_create_self_service_recovery_link_with_http_info(opts)
93
- data
94
- end
95
-
96
- # Create a Recovery Link
97
- # This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
98
- # @param [Hash] opts the optional parameters
99
- # @option opts [AdminCreateSelfServiceRecoveryLinkBody] :admin_create_self_service_recovery_link_body
100
- # @return [Array<(SelfServiceRecoveryLink, Integer, Hash)>] SelfServiceRecoveryLink data, response status code and response headers
101
- def admin_create_self_service_recovery_link_with_http_info(opts = {})
102
- if @api_client.config.debugging
103
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_create_self_service_recovery_link ...'
104
- end
105
- # resource path
106
- local_var_path = '/admin/recovery/link'
107
-
108
- # query parameters
109
- query_params = opts[:query_params] || {}
110
-
111
- # header parameters
112
- header_params = opts[:header_params] || {}
113
- # HTTP header 'Accept' (if needed)
114
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
115
- # HTTP header 'Content-Type'
116
- content_type = @api_client.select_header_content_type(['application/json'])
117
- if !content_type.nil?
118
- header_params['Content-Type'] = content_type
119
- end
120
-
121
- # form parameters
122
- form_params = opts[:form_params] || {}
123
-
124
- # http body (model)
125
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'admin_create_self_service_recovery_link_body'])
126
-
127
- # return_type
128
- return_type = opts[:debug_return_type] || 'SelfServiceRecoveryLink'
129
-
130
- # auth_names
131
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
132
-
133
- new_options = opts.merge(
134
- :operation => :"V0alpha2Api.admin_create_self_service_recovery_link",
135
- :header_params => header_params,
136
- :query_params => query_params,
137
- :form_params => form_params,
138
- :body => post_body,
139
- :auth_names => auth_names,
140
- :return_type => return_type
141
- )
142
-
143
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
144
- if @api_client.config.debugging
145
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_create_self_service_recovery_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
- end
147
- return data, status_code, headers
148
- end
149
-
150
- # Delete an Identity
151
- # 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).
152
- # @param id [String] ID is the identity&#39;s ID.
153
- # @param [Hash] opts the optional parameters
154
- # @return [nil]
155
- def admin_delete_identity(id, opts = {})
156
- admin_delete_identity_with_http_info(id, opts)
157
- nil
158
- end
159
-
160
- # Delete an Identity
161
- # 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&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
162
- # @param id [String] ID is the identity&#39;s ID.
163
- # @param [Hash] opts the optional parameters
164
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
165
- def admin_delete_identity_with_http_info(id, opts = {})
166
- if @api_client.config.debugging
167
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_delete_identity ...'
168
- end
169
- # verify the required parameter 'id' is set
170
- if @api_client.config.client_side_validation && id.nil?
171
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_delete_identity"
172
- end
173
- # resource path
174
- local_var_path = '/admin/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
175
-
176
- # query parameters
177
- query_params = opts[:query_params] || {}
178
-
179
- # header parameters
180
- header_params = opts[:header_params] || {}
181
- # HTTP header 'Accept' (if needed)
182
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
183
-
184
- # form parameters
185
- form_params = opts[:form_params] || {}
186
-
187
- # http body (model)
188
- post_body = opts[:debug_body]
189
-
190
- # return_type
191
- return_type = opts[:debug_return_type]
192
-
193
- # auth_names
194
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
195
-
196
- new_options = opts.merge(
197
- :operation => :"V0alpha2Api.admin_delete_identity",
198
- :header_params => header_params,
199
- :query_params => query_params,
200
- :form_params => form_params,
201
- :body => post_body,
202
- :auth_names => auth_names,
203
- :return_type => return_type
204
- )
205
-
206
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
207
- if @api_client.config.debugging
208
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_delete_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
209
- end
210
- return data, status_code, headers
211
- end
212
-
213
- # Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
214
- # This endpoint is useful for: To forcefully logout Identity from all devices and sessions
215
- # @param id [String] ID is the identity&#39;s ID.
216
- # @param [Hash] opts the optional parameters
217
- # @return [nil]
218
- def admin_delete_identity_sessions(id, opts = {})
219
- admin_delete_identity_sessions_with_http_info(id, opts)
220
- nil
221
- end
222
-
223
- # Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
224
- # This endpoint is useful for: To forcefully logout Identity from all devices and sessions
225
- # @param id [String] ID is the identity&#39;s ID.
226
- # @param [Hash] opts the optional parameters
227
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
228
- def admin_delete_identity_sessions_with_http_info(id, opts = {})
229
- if @api_client.config.debugging
230
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_delete_identity_sessions ...'
231
- end
232
- # verify the required parameter 'id' is set
233
- if @api_client.config.client_side_validation && id.nil?
234
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_delete_identity_sessions"
235
- end
236
- # resource path
237
- local_var_path = '/admin/identities/{id}/sessions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
238
-
239
- # query parameters
240
- query_params = opts[:query_params] || {}
241
-
242
- # header parameters
243
- header_params = opts[:header_params] || {}
244
- # HTTP header 'Accept' (if needed)
245
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
246
-
247
- # form parameters
248
- form_params = opts[:form_params] || {}
249
-
250
- # http body (model)
251
- post_body = opts[:debug_body]
252
-
253
- # return_type
254
- return_type = opts[:debug_return_type]
255
-
256
- # auth_names
257
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
258
-
259
- new_options = opts.merge(
260
- :operation => :"V0alpha2Api.admin_delete_identity_sessions",
261
- :header_params => header_params,
262
- :query_params => query_params,
263
- :form_params => form_params,
264
- :body => post_body,
265
- :auth_names => auth_names,
266
- :return_type => return_type
267
- )
268
-
269
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
270
- if @api_client.config.debugging
271
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_delete_identity_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
- end
273
- return data, status_code, headers
274
- end
275
-
276
- # Calling this endpoint extends the given session ID. If `session.earliest_possible_extend` is set it will only extend the session after the specified time has passed.
277
- # Retrieve the session ID from the `/sessions/whoami` endpoint / `toSession` SDK method.
278
- # @param id [String] ID is the session&#39;s ID.
279
- # @param [Hash] opts the optional parameters
280
- # @return [Session]
281
- def admin_extend_session(id, opts = {})
282
- data, _status_code, _headers = admin_extend_session_with_http_info(id, opts)
283
- data
284
- end
285
-
286
- # Calling this endpoint extends the given session ID. If &#x60;session.earliest_possible_extend&#x60; is set it will only extend the session after the specified time has passed.
287
- # Retrieve the session ID from the &#x60;/sessions/whoami&#x60; endpoint / &#x60;toSession&#x60; SDK method.
288
- # @param id [String] ID is the session&#39;s ID.
289
- # @param [Hash] opts the optional parameters
290
- # @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
291
- def admin_extend_session_with_http_info(id, opts = {})
292
- if @api_client.config.debugging
293
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_extend_session ...'
294
- end
295
- # verify the required parameter 'id' is set
296
- if @api_client.config.client_side_validation && id.nil?
297
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_extend_session"
298
- end
299
- # resource path
300
- local_var_path = '/admin/sessions/{id}/extend'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
301
-
302
- # query parameters
303
- query_params = opts[:query_params] || {}
304
-
305
- # header parameters
306
- header_params = opts[:header_params] || {}
307
- # HTTP header 'Accept' (if needed)
308
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
309
-
310
- # form parameters
311
- form_params = opts[:form_params] || {}
312
-
313
- # http body (model)
314
- post_body = opts[:debug_body]
315
-
316
- # return_type
317
- return_type = opts[:debug_return_type] || 'Session'
318
-
319
- # auth_names
320
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
321
-
322
- new_options = opts.merge(
323
- :operation => :"V0alpha2Api.admin_extend_session",
324
- :header_params => header_params,
325
- :query_params => query_params,
326
- :form_params => form_params,
327
- :body => post_body,
328
- :auth_names => auth_names,
329
- :return_type => return_type
330
- )
331
-
332
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
333
- if @api_client.config.debugging
334
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_extend_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
335
- end
336
- return data, status_code, headers
337
- end
338
-
339
- # Get an Identity
340
- # Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
341
- # @param id [String] ID must be set to the ID of identity you want to get
342
- # @param [Hash] opts the optional parameters
343
- # @option opts [Array<String>] :include_credential DeclassifyCredentials will declassify one or more identity&#39;s credentials Currently, only &#x60;oidc&#x60; is supported. This will return the initial OAuth 2.0 Access, Refresh and (optionally) OpenID Connect ID Token.
344
- # @return [Identity]
345
- def admin_get_identity(id, opts = {})
346
- data, _status_code, _headers = admin_get_identity_with_http_info(id, opts)
347
- data
348
- end
349
-
350
- # Get an Identity
351
- # Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
352
- # @param id [String] ID must be set to the ID of identity you want to get
353
- # @param [Hash] opts the optional parameters
354
- # @option opts [Array<String>] :include_credential DeclassifyCredentials will declassify one or more identity&#39;s credentials Currently, only &#x60;oidc&#x60; is supported. This will return the initial OAuth 2.0 Access, Refresh and (optionally) OpenID Connect ID Token.
355
- # @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
356
- def admin_get_identity_with_http_info(id, opts = {})
357
- if @api_client.config.debugging
358
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_get_identity ...'
359
- end
360
- # verify the required parameter 'id' is set
361
- if @api_client.config.client_side_validation && id.nil?
362
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_get_identity"
363
- end
364
- # resource path
365
- local_var_path = '/admin/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
366
-
367
- # query parameters
368
- query_params = opts[:query_params] || {}
369
- query_params[:'include_credential'] = @api_client.build_collection_param(opts[:'include_credential'], :multi) if !opts[:'include_credential'].nil?
370
-
371
- # header parameters
372
- header_params = opts[:header_params] || {}
373
- # HTTP header 'Accept' (if needed)
374
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
375
-
376
- # form parameters
377
- form_params = opts[:form_params] || {}
378
-
379
- # http body (model)
380
- post_body = opts[:debug_body]
381
-
382
- # return_type
383
- return_type = opts[:debug_return_type] || 'Identity'
384
-
385
- # auth_names
386
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
387
-
388
- new_options = opts.merge(
389
- :operation => :"V0alpha2Api.admin_get_identity",
390
- :header_params => header_params,
391
- :query_params => query_params,
392
- :form_params => form_params,
393
- :body => post_body,
394
- :auth_names => auth_names,
395
- :return_type => return_type
396
- )
397
-
398
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
399
- if @api_client.config.debugging
400
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_get_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
401
- end
402
- return data, status_code, headers
403
- end
404
-
405
- # List Identities
406
- # 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).
407
- # @param [Hash] opts the optional parameters
408
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
409
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
410
- # @return [Array<Identity>]
411
- def admin_list_identities(opts = {})
412
- data, _status_code, _headers = admin_list_identities_with_http_info(opts)
413
- data
414
- end
415
-
416
- # List Identities
417
- # Lists all identities. Does not support search at the moment. Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
418
- # @param [Hash] opts the optional parameters
419
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
420
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
421
- # @return [Array<(Array<Identity>, Integer, Hash)>] Array<Identity> data, response status code and response headers
422
- def admin_list_identities_with_http_info(opts = {})
423
- if @api_client.config.debugging
424
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_list_identities ...'
425
- end
426
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 1000
427
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.admin_list_identities, must be smaller than or equal to 1000.'
428
- end
429
-
430
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
431
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.admin_list_identities, must be greater than or equal to 1.'
432
- end
433
-
434
- if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
435
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling V0alpha2Api.admin_list_identities, must be greater than or equal to 1.'
436
- end
437
-
438
- # resource path
439
- local_var_path = '/admin/identities'
440
-
441
- # query parameters
442
- query_params = opts[:query_params] || {}
443
- query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
444
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
445
-
446
- # header parameters
447
- header_params = opts[:header_params] || {}
448
- # HTTP header 'Accept' (if needed)
449
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
450
-
451
- # form parameters
452
- form_params = opts[:form_params] || {}
453
-
454
- # http body (model)
455
- post_body = opts[:debug_body]
456
-
457
- # return_type
458
- return_type = opts[:debug_return_type] || 'Array<Identity>'
459
-
460
- # auth_names
461
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
462
-
463
- new_options = opts.merge(
464
- :operation => :"V0alpha2Api.admin_list_identities",
465
- :header_params => header_params,
466
- :query_params => query_params,
467
- :form_params => form_params,
468
- :body => post_body,
469
- :auth_names => auth_names,
470
- :return_type => return_type
471
- )
472
-
473
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
474
- if @api_client.config.debugging
475
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_list_identities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
476
- end
477
- return data, status_code, headers
478
- end
479
-
480
- # This endpoint returns all sessions that belong to the given Identity.
481
- # This endpoint is useful for: Listing all sessions that belong to an Identity in an administrative context.
482
- # @param id [String] ID is the identity&#39;s ID.
483
- # @param [Hash] opts the optional parameters
484
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
485
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
486
- # @option opts [Boolean] :active Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.
487
- # @return [Array<Session>]
488
- def admin_list_identity_sessions(id, opts = {})
489
- data, _status_code, _headers = admin_list_identity_sessions_with_http_info(id, opts)
490
- data
491
- end
492
-
493
- # This endpoint returns all sessions that belong to the given Identity.
494
- # This endpoint is useful for: Listing all sessions that belong to an Identity in an administrative context.
495
- # @param id [String] ID is the identity&#39;s ID.
496
- # @param [Hash] opts the optional parameters
497
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
498
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
499
- # @option opts [Boolean] :active Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.
500
- # @return [Array<(Array<Session>, Integer, Hash)>] Array<Session> data, response status code and response headers
501
- def admin_list_identity_sessions_with_http_info(id, opts = {})
502
- if @api_client.config.debugging
503
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_list_identity_sessions ...'
504
- end
505
- # verify the required parameter 'id' is set
506
- if @api_client.config.client_side_validation && id.nil?
507
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_list_identity_sessions"
508
- end
509
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 1000
510
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.admin_list_identity_sessions, must be smaller than or equal to 1000.'
511
- end
512
-
513
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
514
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.admin_list_identity_sessions, must be greater than or equal to 1.'
515
- end
516
-
517
- if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
518
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling V0alpha2Api.admin_list_identity_sessions, must be greater than or equal to 1.'
519
- end
520
-
521
- # resource path
522
- local_var_path = '/admin/identities/{id}/sessions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
523
-
524
- # query parameters
525
- query_params = opts[:query_params] || {}
526
- query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
527
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
528
- query_params[:'active'] = opts[:'active'] if !opts[:'active'].nil?
529
-
530
- # header parameters
531
- header_params = opts[:header_params] || {}
532
- # HTTP header 'Accept' (if needed)
533
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
534
-
535
- # form parameters
536
- form_params = opts[:form_params] || {}
537
-
538
- # http body (model)
539
- post_body = opts[:debug_body]
540
-
541
- # return_type
542
- return_type = opts[:debug_return_type] || 'Array<Session>'
543
-
544
- # auth_names
545
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
546
-
547
- new_options = opts.merge(
548
- :operation => :"V0alpha2Api.admin_list_identity_sessions",
549
- :header_params => header_params,
550
- :query_params => query_params,
551
- :form_params => form_params,
552
- :body => post_body,
553
- :auth_names => auth_names,
554
- :return_type => return_type
555
- )
556
-
557
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
558
- if @api_client.config.debugging
559
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_list_identity_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
560
- end
561
- return data, status_code, headers
562
- end
563
-
564
- # Partially updates an Identity's field using [JSON Patch](https://jsonpatch.com/)
565
- # NOTE: The fields `id`, `stateChangedAt` and `credentials` are not updateable. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
566
- # @param id [String] ID must be set to the ID of identity you want to update
567
- # @param [Hash] opts the optional parameters
568
- # @option opts [Array<JsonPatch>] :json_patch
569
- # @return [Identity]
570
- def admin_patch_identity(id, opts = {})
571
- data, _status_code, _headers = admin_patch_identity_with_http_info(id, opts)
572
- data
573
- end
574
-
575
- # Partially updates an Identity&#39;s field using [JSON Patch](https://jsonpatch.com/)
576
- # NOTE: The fields &#x60;id&#x60;, &#x60;stateChangedAt&#x60; and &#x60;credentials&#x60; are not updateable. Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
577
- # @param id [String] ID must be set to the ID of identity you want to update
578
- # @param [Hash] opts the optional parameters
579
- # @option opts [Array<JsonPatch>] :json_patch
580
- # @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
581
- def admin_patch_identity_with_http_info(id, opts = {})
582
- if @api_client.config.debugging
583
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_patch_identity ...'
584
- end
585
- # verify the required parameter 'id' is set
586
- if @api_client.config.client_side_validation && id.nil?
587
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_patch_identity"
588
- end
589
- # resource path
590
- local_var_path = '/admin/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
591
-
592
- # query parameters
593
- query_params = opts[:query_params] || {}
594
-
595
- # header parameters
596
- header_params = opts[:header_params] || {}
597
- # HTTP header 'Accept' (if needed)
598
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
599
- # HTTP header 'Content-Type'
600
- content_type = @api_client.select_header_content_type(['application/json'])
601
- if !content_type.nil?
602
- header_params['Content-Type'] = content_type
603
- end
604
-
605
- # form parameters
606
- form_params = opts[:form_params] || {}
607
-
608
- # http body (model)
609
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_patch'])
610
-
611
- # return_type
612
- return_type = opts[:debug_return_type] || 'Identity'
613
-
614
- # auth_names
615
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
616
-
617
- new_options = opts.merge(
618
- :operation => :"V0alpha2Api.admin_patch_identity",
619
- :header_params => header_params,
620
- :query_params => query_params,
621
- :form_params => form_params,
622
- :body => post_body,
623
- :auth_names => auth_names,
624
- :return_type => return_type
625
- )
626
-
627
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
628
- if @api_client.config.debugging
629
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_patch_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
630
- end
631
- return data, status_code, headers
632
- end
633
-
634
- # Update an Identity
635
- # This endpoint updates an identity. The full identity payload (except credentials) is expected. This endpoint does not support patching. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
636
- # @param id [String] ID must be set to the ID of identity you want to update
637
- # @param [Hash] opts the optional parameters
638
- # @option opts [AdminUpdateIdentityBody] :admin_update_identity_body
639
- # @return [Identity]
640
- def admin_update_identity(id, opts = {})
641
- data, _status_code, _headers = admin_update_identity_with_http_info(id, opts)
642
- data
643
- end
644
-
645
- # Update an Identity
646
- # This endpoint updates an identity. 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).
647
- # @param id [String] ID must be set to the ID of identity you want to update
648
- # @param [Hash] opts the optional parameters
649
- # @option opts [AdminUpdateIdentityBody] :admin_update_identity_body
650
- # @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
651
- def admin_update_identity_with_http_info(id, opts = {})
652
- if @api_client.config.debugging
653
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_update_identity ...'
654
- end
655
- # verify the required parameter 'id' is set
656
- if @api_client.config.client_side_validation && id.nil?
657
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_update_identity"
658
- end
659
- # resource path
660
- local_var_path = '/admin/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
661
-
662
- # query parameters
663
- query_params = opts[:query_params] || {}
664
-
665
- # header parameters
666
- header_params = opts[:header_params] || {}
667
- # HTTP header 'Accept' (if needed)
668
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
669
- # HTTP header 'Content-Type'
670
- content_type = @api_client.select_header_content_type(['application/json'])
671
- if !content_type.nil?
672
- header_params['Content-Type'] = content_type
673
- end
674
-
675
- # form parameters
676
- form_params = opts[:form_params] || {}
677
-
678
- # http body (model)
679
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'admin_update_identity_body'])
680
-
681
- # return_type
682
- return_type = opts[:debug_return_type] || 'Identity'
683
-
684
- # auth_names
685
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
686
-
687
- new_options = opts.merge(
688
- :operation => :"V0alpha2Api.admin_update_identity",
689
- :header_params => header_params,
690
- :query_params => query_params,
691
- :form_params => form_params,
692
- :body => post_body,
693
- :auth_names => auth_names,
694
- :return_type => return_type
695
- )
696
-
697
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
698
- if @api_client.config.debugging
699
- @api_client.config.logger.debug "API called: V0alpha2Api#admin_update_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
700
- end
701
- return data, status_code, headers
702
- end
703
-
704
- # # Create a Project
705
- # Creates a new project.
706
- # @param [Hash] opts the optional parameters
707
- # @option opts [CreateProjectBody] :create_project_body
708
- # @return [Project]
709
- def create_project(opts = {})
710
- data, _status_code, _headers = create_project_with_http_info(opts)
711
- data
712
- end
713
-
714
- # # Create a Project
715
- # Creates a new project.
716
- # @param [Hash] opts the optional parameters
717
- # @option opts [CreateProjectBody] :create_project_body
718
- # @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
719
- def create_project_with_http_info(opts = {})
720
- if @api_client.config.debugging
721
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.create_project ...'
722
- end
723
- # resource path
724
- local_var_path = '/projects'
725
-
726
- # query parameters
727
- query_params = opts[:query_params] || {}
728
-
729
- # header parameters
730
- header_params = opts[:header_params] || {}
731
- # HTTP header 'Accept' (if needed)
732
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
733
- # HTTP header 'Content-Type'
734
- content_type = @api_client.select_header_content_type(['application/json'])
735
- if !content_type.nil?
736
- header_params['Content-Type'] = content_type
737
- end
738
-
739
- # form parameters
740
- form_params = opts[:form_params] || {}
741
-
742
- # http body (model)
743
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_project_body'])
744
-
745
- # return_type
746
- return_type = opts[:debug_return_type] || 'Project'
747
-
748
- # auth_names
749
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
750
-
751
- new_options = opts.merge(
752
- :operation => :"V0alpha2Api.create_project",
753
- :header_params => header_params,
754
- :query_params => query_params,
755
- :form_params => form_params,
756
- :body => post_body,
757
- :auth_names => auth_names,
758
- :return_type => return_type
759
- )
760
-
761
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
762
- if @api_client.config.debugging
763
- @api_client.config.logger.debug "API called: V0alpha2Api#create_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
764
- end
765
- return data, status_code, headers
766
- end
767
-
768
- # # Create API Token
769
- # Create an API token for a project.
770
- # @param project [String] The Project ID or Project slug
771
- # @param [Hash] opts the optional parameters
772
- # @option opts [CreateProjectApiKeyRequest] :create_project_api_key_request
773
- # @return [ProjectApiKey]
774
- def create_project_api_key(project, opts = {})
775
- data, _status_code, _headers = create_project_api_key_with_http_info(project, opts)
776
- data
777
- end
778
-
779
- # # Create API Token
780
- # Create an API token for a project.
781
- # @param project [String] The Project ID or Project slug
782
- # @param [Hash] opts the optional parameters
783
- # @option opts [CreateProjectApiKeyRequest] :create_project_api_key_request
784
- # @return [Array<(ProjectApiKey, Integer, Hash)>] ProjectApiKey data, response status code and response headers
785
- def create_project_api_key_with_http_info(project, opts = {})
786
- if @api_client.config.debugging
787
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.create_project_api_key ...'
788
- end
789
- # verify the required parameter 'project' is set
790
- if @api_client.config.client_side_validation && project.nil?
791
- fail ArgumentError, "Missing the required parameter 'project' when calling V0alpha2Api.create_project_api_key"
792
- end
793
- # resource path
794
- local_var_path = '/projects/{project}/tokens'.sub('{' + 'project' + '}', CGI.escape(project.to_s))
795
-
796
- # query parameters
797
- query_params = opts[:query_params] || {}
798
-
799
- # header parameters
800
- header_params = opts[:header_params] || {}
801
- # HTTP header 'Accept' (if needed)
802
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
803
- # HTTP header 'Content-Type'
804
- content_type = @api_client.select_header_content_type(['application/json'])
805
- if !content_type.nil?
806
- header_params['Content-Type'] = content_type
807
- end
808
-
809
- # form parameters
810
- form_params = opts[:form_params] || {}
811
-
812
- # http body (model)
813
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_project_api_key_request'])
814
-
815
- # return_type
816
- return_type = opts[:debug_return_type] || 'ProjectApiKey'
817
-
818
- # auth_names
819
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
820
-
821
- new_options = opts.merge(
822
- :operation => :"V0alpha2Api.create_project_api_key",
823
- :header_params => header_params,
824
- :query_params => query_params,
825
- :form_params => form_params,
826
- :body => post_body,
827
- :auth_names => auth_names,
828
- :return_type => return_type
829
- )
830
-
831
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
832
- if @api_client.config.debugging
833
- @api_client.config.logger.debug "API called: V0alpha2Api#create_project_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
834
- end
835
- return data, status_code, headers
836
- end
837
-
838
- # Create a Logout URL for Browsers
839
- # This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token. The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.
840
- # @param [Hash] opts the optional parameters
841
- # @option opts [String] :cookie HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
842
- # @return [SelfServiceLogoutUrl]
843
- def create_self_service_logout_flow_url_for_browsers(opts = {})
844
- data, _status_code, _headers = create_self_service_logout_flow_url_for_browsers_with_http_info(opts)
845
- data
846
- end
847
-
848
- # Create a Logout URL for Browsers
849
- # This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the &#x60;/self-service/logout/api&#x60; URL directly with the Ory Session Token. The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.
850
- # @param [Hash] opts the optional parameters
851
- # @option opts [String] :cookie HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
852
- # @return [Array<(SelfServiceLogoutUrl, Integer, Hash)>] SelfServiceLogoutUrl data, response status code and response headers
853
- def create_self_service_logout_flow_url_for_browsers_with_http_info(opts = {})
854
- if @api_client.config.debugging
855
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.create_self_service_logout_flow_url_for_browsers ...'
856
- end
857
- # resource path
858
- local_var_path = '/self-service/logout/browser'
859
-
860
- # query parameters
861
- query_params = opts[:query_params] || {}
862
-
863
- # header parameters
864
- header_params = opts[:header_params] || {}
865
- # HTTP header 'Accept' (if needed)
866
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
867
- header_params[:'cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
868
-
869
- # form parameters
870
- form_params = opts[:form_params] || {}
871
-
872
- # http body (model)
873
- post_body = opts[:debug_body]
874
-
875
- # return_type
876
- return_type = opts[:debug_return_type] || 'SelfServiceLogoutUrl'
877
-
878
- # auth_names
879
- auth_names = opts[:debug_auth_names] || []
880
-
881
- new_options = opts.merge(
882
- :operation => :"V0alpha2Api.create_self_service_logout_flow_url_for_browsers",
883
- :header_params => header_params,
884
- :query_params => query_params,
885
- :form_params => form_params,
886
- :body => post_body,
887
- :auth_names => auth_names,
888
- :return_type => return_type
889
- )
890
-
891
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
892
- if @api_client.config.debugging
893
- @api_client.config.logger.debug "API called: V0alpha2Api#create_self_service_logout_flow_url_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
894
- end
895
- return data, status_code, headers
896
- end
897
-
898
- # # Delete API Token
899
- # Deletes an API Token and immediately removes it.
900
- # @param project [String] The Project ID or Project slug
901
- # @param token_id [String] The Token ID
902
- # @param [Hash] opts the optional parameters
903
- # @return [nil]
904
- def delete_project_api_key(project, token_id, opts = {})
905
- delete_project_api_key_with_http_info(project, token_id, opts)
906
- nil
907
- end
908
-
909
- # # Delete API Token
910
- # Deletes an API Token and immediately removes it.
911
- # @param project [String] The Project ID or Project slug
912
- # @param token_id [String] The Token ID
913
- # @param [Hash] opts the optional parameters
914
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
915
- def delete_project_api_key_with_http_info(project, token_id, opts = {})
916
- if @api_client.config.debugging
917
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.delete_project_api_key ...'
918
- end
919
- # verify the required parameter 'project' is set
920
- if @api_client.config.client_side_validation && project.nil?
921
- fail ArgumentError, "Missing the required parameter 'project' when calling V0alpha2Api.delete_project_api_key"
922
- end
923
- # verify the required parameter 'token_id' is set
924
- if @api_client.config.client_side_validation && token_id.nil?
925
- fail ArgumentError, "Missing the required parameter 'token_id' when calling V0alpha2Api.delete_project_api_key"
926
- end
927
- # resource path
928
- local_var_path = '/projects/{project}/tokens/{token_id}'.sub('{' + 'project' + '}', CGI.escape(project.to_s)).sub('{' + 'token_id' + '}', CGI.escape(token_id.to_s))
929
-
930
- # query parameters
931
- query_params = opts[:query_params] || {}
932
-
933
- # header parameters
934
- header_params = opts[:header_params] || {}
935
- # HTTP header 'Accept' (if needed)
936
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
937
-
938
- # form parameters
939
- form_params = opts[:form_params] || {}
940
-
941
- # http body (model)
942
- post_body = opts[:debug_body]
943
-
944
- # return_type
945
- return_type = opts[:debug_return_type]
946
-
947
- # auth_names
948
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
949
-
950
- new_options = opts.merge(
951
- :operation => :"V0alpha2Api.delete_project_api_key",
952
- :header_params => header_params,
953
- :query_params => query_params,
954
- :form_params => form_params,
955
- :body => post_body,
956
- :auth_names => auth_names,
957
- :return_type => return_type
958
- )
959
-
960
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
961
- if @api_client.config.debugging
962
- @api_client.config.logger.debug "API called: V0alpha2Api#delete_project_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
963
- end
964
- return data, status_code, headers
965
- end
966
-
967
- # Get a JSON Schema
968
- # @param id [String] ID must be set to the ID of schema you want to get
969
- # @param [Hash] opts the optional parameters
970
- # @return [Object]
971
- def get_identity_schema(id, opts = {})
972
- data, _status_code, _headers = get_identity_schema_with_http_info(id, opts)
973
- data
974
- end
975
-
976
- # Get a JSON Schema
977
- # @param id [String] ID must be set to the ID of schema you want to get
978
- # @param [Hash] opts the optional parameters
979
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
980
- def get_identity_schema_with_http_info(id, opts = {})
981
- if @api_client.config.debugging
982
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_identity_schema ...'
983
- end
984
- # verify the required parameter 'id' is set
985
- if @api_client.config.client_side_validation && id.nil?
986
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_identity_schema"
987
- end
988
- # resource path
989
- local_var_path = '/schemas/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
990
-
991
- # query parameters
992
- query_params = opts[:query_params] || {}
993
-
994
- # header parameters
995
- header_params = opts[:header_params] || {}
996
- # HTTP header 'Accept' (if needed)
997
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
998
-
999
- # form parameters
1000
- form_params = opts[:form_params] || {}
1001
-
1002
- # http body (model)
1003
- post_body = opts[:debug_body]
1004
-
1005
- # return_type
1006
- return_type = opts[:debug_return_type] || 'Object'
1007
-
1008
- # auth_names
1009
- auth_names = opts[:debug_auth_names] || []
1010
-
1011
- new_options = opts.merge(
1012
- :operation => :"V0alpha2Api.get_identity_schema",
1013
- :header_params => header_params,
1014
- :query_params => query_params,
1015
- :form_params => form_params,
1016
- :body => post_body,
1017
- :auth_names => auth_names,
1018
- :return_type => return_type
1019
- )
1020
-
1021
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1022
- if @api_client.config.debugging
1023
- @api_client.config.logger.debug "API called: V0alpha2Api#get_identity_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1024
- end
1025
- return data, status_code, headers
1026
- end
1027
-
1028
- # # Get a Project
1029
- # Get a projects you have access to by its ID.
1030
- # @param project_id [String] Project ID The project&#39;s ID.
1031
- # @param [Hash] opts the optional parameters
1032
- # @return [Project]
1033
- def get_project(project_id, opts = {})
1034
- data, _status_code, _headers = get_project_with_http_info(project_id, opts)
1035
- data
1036
- end
1037
-
1038
- # # Get a Project
1039
- # Get a projects you have access to by its ID.
1040
- # @param project_id [String] Project ID The project&#39;s ID.
1041
- # @param [Hash] opts the optional parameters
1042
- # @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
1043
- def get_project_with_http_info(project_id, opts = {})
1044
- if @api_client.config.debugging
1045
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_project ...'
1046
- end
1047
- # verify the required parameter 'project_id' is set
1048
- if @api_client.config.client_side_validation && project_id.nil?
1049
- fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.get_project"
1050
- end
1051
- # resource path
1052
- local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
1053
-
1054
- # query parameters
1055
- query_params = opts[:query_params] || {}
1056
-
1057
- # header parameters
1058
- header_params = opts[:header_params] || {}
1059
- # HTTP header 'Accept' (if needed)
1060
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1061
-
1062
- # form parameters
1063
- form_params = opts[:form_params] || {}
1064
-
1065
- # http body (model)
1066
- post_body = opts[:debug_body]
1067
-
1068
- # return_type
1069
- return_type = opts[:debug_return_type] || 'Project'
1070
-
1071
- # auth_names
1072
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
1073
-
1074
- new_options = opts.merge(
1075
- :operation => :"V0alpha2Api.get_project",
1076
- :header_params => header_params,
1077
- :query_params => query_params,
1078
- :form_params => form_params,
1079
- :body => post_body,
1080
- :auth_names => auth_names,
1081
- :return_type => return_type
1082
- )
1083
-
1084
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1085
- if @api_client.config.debugging
1086
- @api_client.config.logger.debug "API called: V0alpha2Api#get_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
- end
1088
- return data, status_code, headers
1089
- end
1090
-
1091
- # Get all members associated with this project.
1092
- # This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
1093
- # @param project_id [String] Project ID The project&#39;s ID.
1094
- # @param [Hash] opts the optional parameters
1095
- # @return [Array<CloudAccount>]
1096
- def get_project_members(project_id, opts = {})
1097
- data, _status_code, _headers = get_project_members_with_http_info(project_id, opts)
1098
- data
1099
- end
1100
-
1101
- # Get all members associated with this project.
1102
- # This endpoint requires the user to be a member of the project with the role &#x60;OWNER&#x60; or &#x60;DEVELOPER&#x60;.
1103
- # @param project_id [String] Project ID The project&#39;s ID.
1104
- # @param [Hash] opts the optional parameters
1105
- # @return [Array<(Array<CloudAccount>, Integer, Hash)>] Array<CloudAccount> data, response status code and response headers
1106
- def get_project_members_with_http_info(project_id, opts = {})
1107
- if @api_client.config.debugging
1108
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_project_members ...'
1109
- end
1110
- # verify the required parameter 'project_id' is set
1111
- if @api_client.config.client_side_validation && project_id.nil?
1112
- fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.get_project_members"
1113
- end
1114
- # resource path
1115
- local_var_path = '/projects/{project_id}/members'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
1116
-
1117
- # query parameters
1118
- query_params = opts[:query_params] || {}
1119
-
1120
- # header parameters
1121
- header_params = opts[:header_params] || {}
1122
- # HTTP header 'Accept' (if needed)
1123
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1124
-
1125
- # form parameters
1126
- form_params = opts[:form_params] || {}
1127
-
1128
- # http body (model)
1129
- post_body = opts[:debug_body]
1130
-
1131
- # return_type
1132
- return_type = opts[:debug_return_type] || 'Array<CloudAccount>'
1133
-
1134
- # auth_names
1135
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
1136
-
1137
- new_options = opts.merge(
1138
- :operation => :"V0alpha2Api.get_project_members",
1139
- :header_params => header_params,
1140
- :query_params => query_params,
1141
- :form_params => form_params,
1142
- :body => post_body,
1143
- :auth_names => auth_names,
1144
- :return_type => return_type
1145
- )
1146
-
1147
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1148
- if @api_client.config.debugging
1149
- @api_client.config.logger.debug "API called: V0alpha2Api#get_project_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1150
- end
1151
- return data, status_code, headers
1152
- end
1153
-
1154
- # Get Self-Service Errors
1155
- # 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: `?id=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).
1156
- # @param id [String] Error is the error&#39;s ID
1157
- # @param [Hash] opts the optional parameters
1158
- # @return [SelfServiceError]
1159
- def get_self_service_error(id, opts = {})
1160
- data, _status_code, _headers = get_self_service_error_with_http_info(id, opts)
1161
- data
1162
- end
1163
-
1164
- # Get Self-Service Errors
1165
- # 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;?id&#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).
1166
- # @param id [String] Error is the error&#39;s ID
1167
- # @param [Hash] opts the optional parameters
1168
- # @return [Array<(SelfServiceError, Integer, Hash)>] SelfServiceError data, response status code and response headers
1169
- def get_self_service_error_with_http_info(id, opts = {})
1170
- if @api_client.config.debugging
1171
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_error ...'
1172
- end
1173
- # verify the required parameter 'id' is set
1174
- if @api_client.config.client_side_validation && id.nil?
1175
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_error"
1176
- end
1177
- # resource path
1178
- local_var_path = '/self-service/errors'
1179
-
1180
- # query parameters
1181
- query_params = opts[:query_params] || {}
1182
- query_params[:'id'] = id
1183
-
1184
- # header parameters
1185
- header_params = opts[:header_params] || {}
1186
- # HTTP header 'Accept' (if needed)
1187
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1188
-
1189
- # form parameters
1190
- form_params = opts[:form_params] || {}
1191
-
1192
- # http body (model)
1193
- post_body = opts[:debug_body]
1194
-
1195
- # return_type
1196
- return_type = opts[:debug_return_type] || 'SelfServiceError'
1197
-
1198
- # auth_names
1199
- auth_names = opts[:debug_auth_names] || []
1200
-
1201
- new_options = opts.merge(
1202
- :operation => :"V0alpha2Api.get_self_service_error",
1203
- :header_params => header_params,
1204
- :query_params => query_params,
1205
- :form_params => form_params,
1206
- :body => post_body,
1207
- :auth_names => auth_names,
1208
- :return_type => return_type
1209
- )
1210
-
1211
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1212
- if @api_client.config.debugging
1213
- @api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_error\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1214
- end
1215
- return data, status_code, headers
1216
- end
1217
-
1218
- # Get Login Flow
1219
- # This endpoint returns a login flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/login', async function (req, res) { const flow = await client.getSelfServiceLoginFlow(req.header('cookie'), req.query['flow']) res.render('login', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1220
- # @param id [String] 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;).
1221
- # @param [Hash] opts the optional parameters
1222
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1223
- # @return [SelfServiceLoginFlow]
1224
- def get_self_service_login_flow(id, opts = {})
1225
- data, _status_code, _headers = get_self_service_login_flow_with_http_info(id, opts)
1226
- data
1227
- end
1228
-
1229
- # Get Login Flow
1230
- # This endpoint returns a login flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/login&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceLoginFlow(req.header(&#39;cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;login&#39;, flow) }) &#x60;&#x60;&#x60; This request may fail due to several reasons. The &#x60;error.id&#x60; can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;self_service_flow_expired&#x60;: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1231
- # @param id [String] 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;).
1232
- # @param [Hash] opts the optional parameters
1233
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1234
- # @return [Array<(SelfServiceLoginFlow, Integer, Hash)>] SelfServiceLoginFlow data, response status code and response headers
1235
- def get_self_service_login_flow_with_http_info(id, opts = {})
1236
- if @api_client.config.debugging
1237
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_login_flow ...'
1238
- end
1239
- # verify the required parameter 'id' is set
1240
- if @api_client.config.client_side_validation && id.nil?
1241
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_login_flow"
1242
- end
1243
- # resource path
1244
- local_var_path = '/self-service/login/flows'
1245
-
1246
- # query parameters
1247
- query_params = opts[:query_params] || {}
1248
- query_params[:'id'] = id
1249
-
1250
- # header parameters
1251
- header_params = opts[:header_params] || {}
1252
- # HTTP header 'Accept' (if needed)
1253
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1254
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
1255
-
1256
- # form parameters
1257
- form_params = opts[:form_params] || {}
1258
-
1259
- # http body (model)
1260
- post_body = opts[:debug_body]
1261
-
1262
- # return_type
1263
- return_type = opts[:debug_return_type] || 'SelfServiceLoginFlow'
1264
-
1265
- # auth_names
1266
- auth_names = opts[:debug_auth_names] || []
1267
-
1268
- new_options = opts.merge(
1269
- :operation => :"V0alpha2Api.get_self_service_login_flow",
1270
- :header_params => header_params,
1271
- :query_params => query_params,
1272
- :form_params => form_params,
1273
- :body => post_body,
1274
- :auth_names => auth_names,
1275
- :return_type => return_type
1276
- )
1277
-
1278
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1279
- if @api_client.config.debugging
1280
- @api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_login_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1281
- end
1282
- return data, status_code, headers
1283
- end
1284
-
1285
- # Get Recovery Flow
1286
- # This endpoint returns a recovery flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/recovery', async function (req, res) { const flow = await client.getSelfServiceRecoveryFlow(req.header('Cookie'), req.query['flow']) res.render('recovery', flow) }) ``` More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery).
1287
- # @param id [String] The Flow ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/recovery?flow&#x3D;abcde&#x60;).
1288
- # @param [Hash] opts the optional parameters
1289
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1290
- # @return [SelfServiceRecoveryFlow]
1291
- def get_self_service_recovery_flow(id, opts = {})
1292
- data, _status_code, _headers = get_self_service_recovery_flow_with_http_info(id, opts)
1293
- data
1294
- end
1295
-
1296
- # Get Recovery Flow
1297
- # This endpoint returns a recovery flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/recovery&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceRecoveryFlow(req.header(&#39;Cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;recovery&#39;, flow) }) &#x60;&#x60;&#x60; More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery).
1298
- # @param id [String] The Flow ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/recovery?flow&#x3D;abcde&#x60;).
1299
- # @param [Hash] opts the optional parameters
1300
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1301
- # @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
1302
- def get_self_service_recovery_flow_with_http_info(id, opts = {})
1303
- if @api_client.config.debugging
1304
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_recovery_flow ...'
1305
- end
1306
- # verify the required parameter 'id' is set
1307
- if @api_client.config.client_side_validation && id.nil?
1308
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_recovery_flow"
1309
- end
1310
- # resource path
1311
- local_var_path = '/self-service/recovery/flows'
1312
-
1313
- # query parameters
1314
- query_params = opts[:query_params] || {}
1315
- query_params[:'id'] = id
1316
-
1317
- # header parameters
1318
- header_params = opts[:header_params] || {}
1319
- # HTTP header 'Accept' (if needed)
1320
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1321
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
1322
-
1323
- # form parameters
1324
- form_params = opts[:form_params] || {}
1325
-
1326
- # http body (model)
1327
- post_body = opts[:debug_body]
1328
-
1329
- # return_type
1330
- return_type = opts[:debug_return_type] || 'SelfServiceRecoveryFlow'
1331
-
1332
- # auth_names
1333
- auth_names = opts[:debug_auth_names] || []
1334
-
1335
- new_options = opts.merge(
1336
- :operation => :"V0alpha2Api.get_self_service_recovery_flow",
1337
- :header_params => header_params,
1338
- :query_params => query_params,
1339
- :form_params => form_params,
1340
- :body => post_body,
1341
- :auth_names => auth_names,
1342
- :return_type => return_type
1343
- )
1344
-
1345
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1346
- if @api_client.config.debugging
1347
- @api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_recovery_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1348
- end
1349
- return data, status_code, headers
1350
- end
1351
-
1352
- # Get Registration Flow
1353
- # This endpoint returns a registration flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/registration', async function (req, res) { const flow = await client.getSelfServiceRegistrationFlow(req.header('cookie'), req.query['flow']) res.render('registration', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1354
- # @param id [String] 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;).
1355
- # @param [Hash] opts the optional parameters
1356
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1357
- # @return [SelfServiceRegistrationFlow]
1358
- def get_self_service_registration_flow(id, opts = {})
1359
- data, _status_code, _headers = get_self_service_registration_flow_with_http_info(id, opts)
1360
- data
1361
- end
1362
-
1363
- # Get Registration Flow
1364
- # This endpoint returns a registration flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/registration&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceRegistrationFlow(req.header(&#39;cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;registration&#39;, flow) }) &#x60;&#x60;&#x60; This request may fail due to several reasons. The &#x60;error.id&#x60; can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;self_service_flow_expired&#x60;: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1365
- # @param id [String] 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;).
1366
- # @param [Hash] opts the optional parameters
1367
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1368
- # @return [Array<(SelfServiceRegistrationFlow, Integer, Hash)>] SelfServiceRegistrationFlow data, response status code and response headers
1369
- def get_self_service_registration_flow_with_http_info(id, opts = {})
1370
- if @api_client.config.debugging
1371
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_registration_flow ...'
1372
- end
1373
- # verify the required parameter 'id' is set
1374
- if @api_client.config.client_side_validation && id.nil?
1375
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_registration_flow"
1376
- end
1377
- # resource path
1378
- local_var_path = '/self-service/registration/flows'
1379
-
1380
- # query parameters
1381
- query_params = opts[:query_params] || {}
1382
- query_params[:'id'] = id
1383
-
1384
- # header parameters
1385
- header_params = opts[:header_params] || {}
1386
- # HTTP header 'Accept' (if needed)
1387
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1388
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
1389
-
1390
- # form parameters
1391
- form_params = opts[:form_params] || {}
1392
-
1393
- # http body (model)
1394
- post_body = opts[:debug_body]
1395
-
1396
- # return_type
1397
- return_type = opts[:debug_return_type] || 'SelfServiceRegistrationFlow'
1398
-
1399
- # auth_names
1400
- auth_names = opts[:debug_auth_names] || []
1401
-
1402
- new_options = opts.merge(
1403
- :operation => :"V0alpha2Api.get_self_service_registration_flow",
1404
- :header_params => header_params,
1405
- :query_params => query_params,
1406
- :form_params => form_params,
1407
- :body => post_body,
1408
- :auth_names => auth_names,
1409
- :return_type => return_type
1410
- )
1411
-
1412
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1413
- if @api_client.config.debugging
1414
- @api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_registration_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1415
- end
1416
- return data, status_code, headers
1417
- end
1418
-
1419
- # Get Settings Flow
1420
- # 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. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. You can access this endpoint without credentials when using Ory Kratos' Admin API. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
1421
- # @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;).
1422
- # @param [Hash] opts the optional parameters
1423
- # @option opts [String] :x_session_token The Session Token When using the SDK in an app without a browser, please include the session token here.
1424
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1425
- # @return [SelfServiceSettingsFlow]
1426
- def get_self_service_settings_flow(id, opts = {})
1427
- data, _status_code, _headers = get_self_service_settings_flow_with_http_info(id, opts)
1428
- data
1429
- end
1430
-
1431
- # Get Settings Flow
1432
- # 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. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. You can access this endpoint without credentials when using Ory Kratos&#39; Admin API. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. &#x60;security_identity_mismatch&#x60;: The flow was interrupted with &#x60;session_refresh_required&#x60; but apparently some other identity logged in instead. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
1433
- # @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;).
1434
- # @param [Hash] opts the optional parameters
1435
- # @option opts [String] :x_session_token The Session Token When using the SDK in an app without a browser, please include the session token here.
1436
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
1437
- # @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
1438
- def get_self_service_settings_flow_with_http_info(id, opts = {})
1439
- if @api_client.config.debugging
1440
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_settings_flow ...'
1441
- end
1442
- # verify the required parameter 'id' is set
1443
- if @api_client.config.client_side_validation && id.nil?
1444
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_settings_flow"
1445
- end
1446
- # resource path
1447
- local_var_path = '/self-service/settings/flows'
1448
-
1449
- # query parameters
1450
- query_params = opts[:query_params] || {}
1451
- query_params[:'id'] = id
1452
-
1453
- # header parameters
1454
- header_params = opts[:header_params] || {}
1455
- # HTTP header 'Accept' (if needed)
1456
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1457
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
1458
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
1459
-
1460
- # form parameters
1461
- form_params = opts[:form_params] || {}
1462
-
1463
- # http body (model)
1464
- post_body = opts[:debug_body]
1465
-
1466
- # return_type
1467
- return_type = opts[:debug_return_type] || 'SelfServiceSettingsFlow'
1468
-
1469
- # auth_names
1470
- auth_names = opts[:debug_auth_names] || []
1471
-
1472
- new_options = opts.merge(
1473
- :operation => :"V0alpha2Api.get_self_service_settings_flow",
1474
- :header_params => header_params,
1475
- :query_params => query_params,
1476
- :form_params => form_params,
1477
- :body => post_body,
1478
- :auth_names => auth_names,
1479
- :return_type => return_type
1480
- )
1481
-
1482
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1483
- if @api_client.config.debugging
1484
- @api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_settings_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1485
- end
1486
- return data, status_code, headers
1487
- end
1488
-
1489
- # # Get Verification Flow
1490
- # This endpoint returns a verification flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/recovery', async function (req, res) { const flow = await client.getSelfServiceVerificationFlow(req.header('cookie'), req.query['flow']) res.render('verification', flow) }) 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).
1491
- # @param id [String] The Flow ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/verification?flow&#x3D;abcde&#x60;).
1492
- # @param [Hash] opts the optional parameters
1493
- # @option opts [String] :cookie HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
1494
- # @return [SelfServiceVerificationFlow]
1495
- def get_self_service_verification_flow(id, opts = {})
1496
- data, _status_code, _headers = get_self_service_verification_flow_with_http_info(id, opts)
1497
- data
1498
- end
1499
-
1500
- # # Get Verification Flow
1501
- # This endpoint returns a verification flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/recovery&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceVerificationFlow(req.header(&#39;cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;verification&#39;, flow) }) 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).
1502
- # @param id [String] The Flow ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/verification?flow&#x3D;abcde&#x60;).
1503
- # @param [Hash] opts the optional parameters
1504
- # @option opts [String] :cookie HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
1505
- # @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
1506
- def get_self_service_verification_flow_with_http_info(id, opts = {})
1507
- if @api_client.config.debugging
1508
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_verification_flow ...'
1509
- end
1510
- # verify the required parameter 'id' is set
1511
- if @api_client.config.client_side_validation && id.nil?
1512
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_verification_flow"
1513
- end
1514
- # resource path
1515
- local_var_path = '/self-service/verification/flows'
1516
-
1517
- # query parameters
1518
- query_params = opts[:query_params] || {}
1519
- query_params[:'id'] = id
1520
-
1521
- # header parameters
1522
- header_params = opts[:header_params] || {}
1523
- # HTTP header 'Accept' (if needed)
1524
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1525
- header_params[:'cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
1526
-
1527
- # form parameters
1528
- form_params = opts[:form_params] || {}
1529
-
1530
- # http body (model)
1531
- post_body = opts[:debug_body]
1532
-
1533
- # return_type
1534
- return_type = opts[:debug_return_type] || 'SelfServiceVerificationFlow'
1535
-
1536
- # auth_names
1537
- auth_names = opts[:debug_auth_names] || []
1538
-
1539
- new_options = opts.merge(
1540
- :operation => :"V0alpha2Api.get_self_service_verification_flow",
1541
- :header_params => header_params,
1542
- :query_params => query_params,
1543
- :form_params => form_params,
1544
- :body => post_body,
1545
- :auth_names => auth_names,
1546
- :return_type => return_type
1547
- )
1548
-
1549
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1550
- if @api_client.config.debugging
1551
- @api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_verification_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1552
- end
1553
- return data, status_code, headers
1554
- end
1555
-
1556
- # Get WebAuthn JavaScript
1557
- # This endpoint provides JavaScript which is needed in order to perform WebAuthn login and registration. If you are building a JavaScript Browser App (e.g. in ReactJS or AngularJS) you will need to load this file: ```html <script src=\"https://public-kratos.example.org/.well-known/ory/webauthn.js\" type=\"script\" async /> ``` More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1558
- # @param [Hash] opts the optional parameters
1559
- # @return [String]
1560
- def get_web_authn_java_script(opts = {})
1561
- data, _status_code, _headers = get_web_authn_java_script_with_http_info(opts)
1562
- data
1563
- end
1564
-
1565
- # Get WebAuthn JavaScript
1566
- # This endpoint provides JavaScript which is needed in order to perform WebAuthn login and registration. If you are building a JavaScript Browser App (e.g. in ReactJS or AngularJS) you will need to load this file: &#x60;&#x60;&#x60;html &lt;script src&#x3D;\&quot;https://public-kratos.example.org/.well-known/ory/webauthn.js\&quot; type&#x3D;\&quot;script\&quot; async /&gt; &#x60;&#x60;&#x60; More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1567
- # @param [Hash] opts the optional parameters
1568
- # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1569
- def get_web_authn_java_script_with_http_info(opts = {})
1570
- if @api_client.config.debugging
1571
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.get_web_authn_java_script ...'
1572
- end
1573
- # resource path
1574
- local_var_path = '/.well-known/ory/webauthn.js'
1575
-
1576
- # query parameters
1577
- query_params = opts[:query_params] || {}
1578
-
1579
- # header parameters
1580
- header_params = opts[:header_params] || {}
1581
- # HTTP header 'Accept' (if needed)
1582
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1583
-
1584
- # form parameters
1585
- form_params = opts[:form_params] || {}
1586
-
1587
- # http body (model)
1588
- post_body = opts[:debug_body]
1589
-
1590
- # return_type
1591
- return_type = opts[:debug_return_type] || 'String'
1592
-
1593
- # auth_names
1594
- auth_names = opts[:debug_auth_names] || []
1595
-
1596
- new_options = opts.merge(
1597
- :operation => :"V0alpha2Api.get_web_authn_java_script",
1598
- :header_params => header_params,
1599
- :query_params => query_params,
1600
- :form_params => form_params,
1601
- :body => post_body,
1602
- :auth_names => auth_names,
1603
- :return_type => return_type
1604
- )
1605
-
1606
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1607
- if @api_client.config.debugging
1608
- @api_client.config.logger.debug "API called: V0alpha2Api#get_web_authn_java_script\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1609
- end
1610
- return data, status_code, headers
1611
- end
1612
-
1613
- # Initialize Login Flow for Browsers
1614
- # This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it 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. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1615
- # @param [Hash] opts the optional parameters
1616
- # @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.
1617
- # @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session&#39;s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \&quot;upgrade\&quot; the session&#39;s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \&quot;aal2\&quot;.
1618
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1619
- # @return [SelfServiceLoginFlow]
1620
- def initialize_self_service_login_flow_for_browsers(opts = {})
1621
- data, _status_code, _headers = initialize_self_service_login_flow_for_browsers_with_http_info(opts)
1622
- data
1623
- end
1624
-
1625
- # Initialize Login Flow for Browsers
1626
- # This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to &#x60;selfservice.flows.login.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If a valid user session exists already, the browser will be redirected to &#x60;urls.default_redirect_url&#x60; unless the query parameter &#x60;?refresh&#x3D;true&#x60; was set. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;session_aal1_required&#x60;: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1627
- # @param [Hash] opts the optional parameters
1628
- # @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.
1629
- # @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session&#39;s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \&quot;upgrade\&quot; the session&#39;s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \&quot;aal2\&quot;.
1630
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1631
- # @return [Array<(SelfServiceLoginFlow, Integer, Hash)>] SelfServiceLoginFlow data, response status code and response headers
1632
- def initialize_self_service_login_flow_for_browsers_with_http_info(opts = {})
1633
- if @api_client.config.debugging
1634
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_login_flow_for_browsers ...'
1635
- end
1636
- # resource path
1637
- local_var_path = '/self-service/login/browser'
1638
-
1639
- # query parameters
1640
- query_params = opts[:query_params] || {}
1641
- query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
1642
- query_params[:'aal'] = opts[:'aal'] if !opts[:'aal'].nil?
1643
- query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
1644
-
1645
- # header parameters
1646
- header_params = opts[:header_params] || {}
1647
- # HTTP header 'Accept' (if needed)
1648
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1649
-
1650
- # form parameters
1651
- form_params = opts[:form_params] || {}
1652
-
1653
- # http body (model)
1654
- post_body = opts[:debug_body]
1655
-
1656
- # return_type
1657
- return_type = opts[:debug_return_type] || 'SelfServiceLoginFlow'
1658
-
1659
- # auth_names
1660
- auth_names = opts[:debug_auth_names] || []
1661
-
1662
- new_options = opts.merge(
1663
- :operation => :"V0alpha2Api.initialize_self_service_login_flow_for_browsers",
1664
- :header_params => header_params,
1665
- :query_params => query_params,
1666
- :form_params => form_params,
1667
- :body => post_body,
1668
- :auth_names => auth_names,
1669
- :return_type => return_type
1670
- )
1671
-
1672
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1673
- if @api_client.config.debugging
1674
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_login_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1675
- end
1676
- return data, status_code, headers
1677
- end
1678
-
1679
- # Initialize Login Flow for APIs, Services, Apps, ...
1680
- # This endpoint initiates a login flow for API clients that do not use a browser, 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>`. 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. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. 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](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1681
- # @param [Hash] opts the optional parameters
1682
- # @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.
1683
- # @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session&#39;s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \&quot;upgrade\&quot; the session&#39;s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \&quot;aal2\&quot;.
1684
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
1685
- # @return [SelfServiceLoginFlow]
1686
- def initialize_self_service_login_flow_without_browser(opts = {})
1687
- data, _status_code, _headers = initialize_self_service_login_flow_without_browser_with_http_info(opts)
1688
- data
1689
- end
1690
-
1691
- # Initialize Login Flow for APIs, Services, Apps, ...
1692
- # This endpoint initiates a login flow for API clients that do not use a browser, 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 &#x60;?refresh&#x3D;true&#x60; is set. To fetch an existing login flow call &#x60;/self-service/login/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. 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. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;session_aal1_required&#x60;: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. 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](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1693
- # @param [Hash] opts the optional parameters
1694
- # @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.
1695
- # @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session&#39;s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \&quot;upgrade\&quot; the session&#39;s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \&quot;aal2\&quot;.
1696
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
1697
- # @return [Array<(SelfServiceLoginFlow, Integer, Hash)>] SelfServiceLoginFlow data, response status code and response headers
1698
- def initialize_self_service_login_flow_without_browser_with_http_info(opts = {})
1699
- if @api_client.config.debugging
1700
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_login_flow_without_browser ...'
1701
- end
1702
- # resource path
1703
- local_var_path = '/self-service/login/api'
1704
-
1705
- # query parameters
1706
- query_params = opts[:query_params] || {}
1707
- query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
1708
- query_params[:'aal'] = opts[:'aal'] if !opts[:'aal'].nil?
1709
-
1710
- # header parameters
1711
- header_params = opts[:header_params] || {}
1712
- # HTTP header 'Accept' (if needed)
1713
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1714
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
1715
-
1716
- # form parameters
1717
- form_params = opts[:form_params] || {}
1718
-
1719
- # http body (model)
1720
- post_body = opts[:debug_body]
1721
-
1722
- # return_type
1723
- return_type = opts[:debug_return_type] || 'SelfServiceLoginFlow'
1724
-
1725
- # auth_names
1726
- auth_names = opts[:debug_auth_names] || []
1727
-
1728
- new_options = opts.merge(
1729
- :operation => :"V0alpha2Api.initialize_self_service_login_flow_without_browser",
1730
- :header_params => header_params,
1731
- :query_params => query_params,
1732
- :form_params => form_params,
1733
- :body => post_body,
1734
- :auth_names => auth_names,
1735
- :return_type => return_type
1736
- )
1737
-
1738
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1739
- if @api_client.config.debugging
1740
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_login_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1741
- end
1742
- return data, status_code, headers
1743
- end
1744
-
1745
- # Initialize Recovery Flow for Browsers
1746
- # 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. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects or a 400 bad request error if the user is already authenticated. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery).
1747
- # @param [Hash] opts the optional parameters
1748
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1749
- # @return [SelfServiceRecoveryFlow]
1750
- def initialize_self_service_recovery_flow_for_browsers(opts = {})
1751
- data, _status_code, _headers = initialize_self_service_recovery_flow_for_browsers_with_http_info(opts)
1752
- data
1753
- end
1754
-
1755
- # Initialize Recovery Flow for Browsers
1756
- # This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to &#x60;selfservice.flows.recovery.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If a valid user session exists, the browser is returned to the configured return URL. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects or a 400 bad request error if the user is already authenticated. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery).
1757
- # @param [Hash] opts the optional parameters
1758
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1759
- # @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
1760
- def initialize_self_service_recovery_flow_for_browsers_with_http_info(opts = {})
1761
- if @api_client.config.debugging
1762
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_recovery_flow_for_browsers ...'
1763
- end
1764
- # resource path
1765
- local_var_path = '/self-service/recovery/browser'
1766
-
1767
- # query parameters
1768
- query_params = opts[:query_params] || {}
1769
- query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
1770
-
1771
- # header parameters
1772
- header_params = opts[:header_params] || {}
1773
- # HTTP header 'Accept' (if needed)
1774
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1775
-
1776
- # form parameters
1777
- form_params = opts[:form_params] || {}
1778
-
1779
- # http body (model)
1780
- post_body = opts[:debug_body]
1781
-
1782
- # return_type
1783
- return_type = opts[:debug_return_type] || 'SelfServiceRecoveryFlow'
1784
-
1785
- # auth_names
1786
- auth_names = opts[:debug_auth_names] || []
1787
-
1788
- new_options = opts.merge(
1789
- :operation => :"V0alpha2Api.initialize_self_service_recovery_flow_for_browsers",
1790
- :header_params => header_params,
1791
- :query_params => query_params,
1792
- :form_params => form_params,
1793
- :body => post_body,
1794
- :auth_names => auth_names,
1795
- :return_type => return_type
1796
- )
1797
-
1798
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1799
- if @api_client.config.debugging
1800
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_recovery_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1801
- end
1802
- return data, status_code, headers
1803
- end
1804
-
1805
- # Initialize Recovery Flow for APIs, Services, Apps, ...
1806
- # 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>`. 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).
1807
- # @param [Hash] opts the optional parameters
1808
- # @return [SelfServiceRecoveryFlow]
1809
- def initialize_self_service_recovery_flow_without_browser(opts = {})
1810
- data, _status_code, _headers = initialize_self_service_recovery_flow_without_browser_with_http_info(opts)
1811
- data
1812
- end
1813
-
1814
- # Initialize Recovery Flow for APIs, Services, Apps, ...
1815
- # 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 &#x60;/self-service/recovery/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. 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).
1816
- # @param [Hash] opts the optional parameters
1817
- # @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
1818
- def initialize_self_service_recovery_flow_without_browser_with_http_info(opts = {})
1819
- if @api_client.config.debugging
1820
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_recovery_flow_without_browser ...'
1821
- end
1822
- # resource path
1823
- local_var_path = '/self-service/recovery/api'
1824
-
1825
- # query parameters
1826
- query_params = opts[:query_params] || {}
1827
-
1828
- # header parameters
1829
- header_params = opts[:header_params] || {}
1830
- # HTTP header 'Accept' (if needed)
1831
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1832
-
1833
- # form parameters
1834
- form_params = opts[:form_params] || {}
1835
-
1836
- # http body (model)
1837
- post_body = opts[:debug_body]
1838
-
1839
- # return_type
1840
- return_type = opts[:debug_return_type] || 'SelfServiceRecoveryFlow'
1841
-
1842
- # auth_names
1843
- auth_names = opts[:debug_auth_names] || []
1844
-
1845
- new_options = opts.merge(
1846
- :operation => :"V0alpha2Api.initialize_self_service_recovery_flow_without_browser",
1847
- :header_params => header_params,
1848
- :query_params => query_params,
1849
- :form_params => form_params,
1850
- :body => post_body,
1851
- :auth_names => auth_names,
1852
- :return_type => return_type
1853
- )
1854
-
1855
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1856
- if @api_client.config.debugging
1857
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_recovery_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1858
- end
1859
- return data, status_code, headers
1860
- end
1861
-
1862
- # Initialize Registration Flow for Browsers
1863
- # This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it 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`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1864
- # @param [Hash] opts the optional parameters
1865
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1866
- # @return [SelfServiceRegistrationFlow]
1867
- def initialize_self_service_registration_flow_for_browsers(opts = {})
1868
- data, _status_code, _headers = initialize_self_service_registration_flow_for_browsers_with_http_info(opts)
1869
- data
1870
- end
1871
-
1872
- # Initialize Registration Flow for Browsers
1873
- # This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to &#x60;selfservice.flows.registration.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If a valid user session exists already, the browser will be redirected to &#x60;urls.default_redirect_url&#x60;. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1874
- # @param [Hash] opts the optional parameters
1875
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1876
- # @return [Array<(SelfServiceRegistrationFlow, Integer, Hash)>] SelfServiceRegistrationFlow data, response status code and response headers
1877
- def initialize_self_service_registration_flow_for_browsers_with_http_info(opts = {})
1878
- if @api_client.config.debugging
1879
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_registration_flow_for_browsers ...'
1880
- end
1881
- # resource path
1882
- local_var_path = '/self-service/registration/browser'
1883
-
1884
- # query parameters
1885
- query_params = opts[:query_params] || {}
1886
- query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
1887
-
1888
- # header parameters
1889
- header_params = opts[:header_params] || {}
1890
- # HTTP header 'Accept' (if needed)
1891
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1892
-
1893
- # form parameters
1894
- form_params = opts[:form_params] || {}
1895
-
1896
- # http body (model)
1897
- post_body = opts[:debug_body]
1898
-
1899
- # return_type
1900
- return_type = opts[:debug_return_type] || 'SelfServiceRegistrationFlow'
1901
-
1902
- # auth_names
1903
- auth_names = opts[:debug_auth_names] || []
1904
-
1905
- new_options = opts.merge(
1906
- :operation => :"V0alpha2Api.initialize_self_service_registration_flow_for_browsers",
1907
- :header_params => header_params,
1908
- :query_params => query_params,
1909
- :form_params => form_params,
1910
- :body => post_body,
1911
- :auth_names => auth_names,
1912
- :return_type => return_type
1913
- )
1914
-
1915
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1916
- if @api_client.config.debugging
1917
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_registration_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1918
- end
1919
- return data, status_code, headers
1920
- end
1921
-
1922
- # Initialize Registration Flow for APIs, Services, Apps, ...
1923
- # 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>`. 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. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. 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](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1924
- # @param [Hash] opts the optional parameters
1925
- # @return [SelfServiceRegistrationFlow]
1926
- def initialize_self_service_registration_flow_without_browser(opts = {})
1927
- data, _status_code, _headers = initialize_self_service_registration_flow_without_browser_with_http_info(opts)
1928
- data
1929
- end
1930
-
1931
- # Initialize Registration Flow for APIs, Services, Apps, ...
1932
- # 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 &#x60;?refresh&#x3D;true&#x60; is set. To fetch an existing registration flow call &#x60;/self-service/registration/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. 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. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. 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](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
1933
- # @param [Hash] opts the optional parameters
1934
- # @return [Array<(SelfServiceRegistrationFlow, Integer, Hash)>] SelfServiceRegistrationFlow data, response status code and response headers
1935
- def initialize_self_service_registration_flow_without_browser_with_http_info(opts = {})
1936
- if @api_client.config.debugging
1937
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_registration_flow_without_browser ...'
1938
- end
1939
- # resource path
1940
- local_var_path = '/self-service/registration/api'
1941
-
1942
- # query parameters
1943
- query_params = opts[:query_params] || {}
1944
-
1945
- # header parameters
1946
- header_params = opts[:header_params] || {}
1947
- # HTTP header 'Accept' (if needed)
1948
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1949
-
1950
- # form parameters
1951
- form_params = opts[:form_params] || {}
1952
-
1953
- # http body (model)
1954
- post_body = opts[:debug_body]
1955
-
1956
- # return_type
1957
- return_type = opts[:debug_return_type] || 'SelfServiceRegistrationFlow'
1958
-
1959
- # auth_names
1960
- auth_names = opts[:debug_auth_names] || []
1961
-
1962
- new_options = opts.merge(
1963
- :operation => :"V0alpha2Api.initialize_self_service_registration_flow_without_browser",
1964
- :header_params => header_params,
1965
- :query_params => query_params,
1966
- :form_params => form_params,
1967
- :body => post_body,
1968
- :auth_names => auth_names,
1969
- :return_type => return_type
1970
- )
1971
-
1972
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1973
- if @api_client.config.debugging
1974
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_registration_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1975
- end
1976
- return data, status_code, headers
1977
- end
1978
-
1979
- # Initialize Settings Flow for Browsers
1980
- # 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. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid user session was set, the browser will be redirected to the login endpoint. If this endpoint is called via an AJAX request, the response contains the settings flow without any redirects or a 401 forbidden error if no valid session was set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
1981
- # @param [Hash] opts the optional parameters
1982
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1983
- # @return [SelfServiceSettingsFlow]
1984
- def initialize_self_service_settings_flow_for_browsers(opts = {})
1985
- data, _status_code, _headers = initialize_self_service_settings_flow_for_browsers_with_http_info(opts)
1986
- data
1987
- end
1988
-
1989
- # Initialize Settings Flow for Browsers
1990
- # This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to &#x60;selfservice.flows.settings.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If no valid Ory Kratos Session Cookie is included in the request, a login flow will be initialized. If this endpoint is opened as a link in the browser, it will be redirected to &#x60;selfservice.flows.settings.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If no valid user session was set, the browser will be redirected to the login endpoint. If this endpoint is called via an AJAX request, the response contains the settings flow without any redirects or a 401 forbidden error if no valid session was set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
1991
- # @param [Hash] opts the optional parameters
1992
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
1993
- # @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
1994
- def initialize_self_service_settings_flow_for_browsers_with_http_info(opts = {})
1995
- if @api_client.config.debugging
1996
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_settings_flow_for_browsers ...'
1997
- end
1998
- # resource path
1999
- local_var_path = '/self-service/settings/browser'
2000
-
2001
- # query parameters
2002
- query_params = opts[:query_params] || {}
2003
- query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
2004
-
2005
- # header parameters
2006
- header_params = opts[:header_params] || {}
2007
- # HTTP header 'Accept' (if needed)
2008
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2009
-
2010
- # form parameters
2011
- form_params = opts[:form_params] || {}
2012
-
2013
- # http body (model)
2014
- post_body = opts[:debug_body]
2015
-
2016
- # return_type
2017
- return_type = opts[:debug_return_type] || 'SelfServiceSettingsFlow'
2018
-
2019
- # auth_names
2020
- auth_names = opts[:debug_auth_names] || []
2021
-
2022
- new_options = opts.merge(
2023
- :operation => :"V0alpha2Api.initialize_self_service_settings_flow_for_browsers",
2024
- :header_params => header_params,
2025
- :query_params => query_params,
2026
- :form_params => form_params,
2027
- :body => post_body,
2028
- :auth_names => auth_names,
2029
- :return_type => return_type
2030
- )
2031
-
2032
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2033
- if @api_client.config.debugging
2034
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_settings_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2035
- end
2036
- return data, status_code, headers
2037
- end
2038
-
2039
- # Initialize Settings Flow for APIs, Services, Apps, ...
2040
- # 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>`. 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. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. 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).
2041
- # @param [Hash] opts the optional parameters
2042
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
2043
- # @return [SelfServiceSettingsFlow]
2044
- def initialize_self_service_settings_flow_without_browser(opts = {})
2045
- data, _status_code, _headers = initialize_self_service_settings_flow_without_browser_with_http_info(opts)
2046
- data
2047
- end
2048
-
2049
- # Initialize Settings Flow for APIs, Services, Apps, ...
2050
- # 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 &#x60;/self-service/settings/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. 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. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. 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 &amp; Profile Management Documentation](../self-service/flows/user-settings).
2051
- # @param [Hash] opts the optional parameters
2052
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
2053
- # @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
2054
- def initialize_self_service_settings_flow_without_browser_with_http_info(opts = {})
2055
- if @api_client.config.debugging
2056
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_settings_flow_without_browser ...'
2057
- end
2058
- # resource path
2059
- local_var_path = '/self-service/settings/api'
2060
-
2061
- # query parameters
2062
- query_params = opts[:query_params] || {}
2063
-
2064
- # header parameters
2065
- header_params = opts[:header_params] || {}
2066
- # HTTP header 'Accept' (if needed)
2067
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2068
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
2069
-
2070
- # form parameters
2071
- form_params = opts[:form_params] || {}
2072
-
2073
- # http body (model)
2074
- post_body = opts[:debug_body]
2075
-
2076
- # return_type
2077
- return_type = opts[:debug_return_type] || 'SelfServiceSettingsFlow'
2078
-
2079
- # auth_names
2080
- auth_names = opts[:debug_auth_names] || []
2081
-
2082
- new_options = opts.merge(
2083
- :operation => :"V0alpha2Api.initialize_self_service_settings_flow_without_browser",
2084
- :header_params => header_params,
2085
- :query_params => query_params,
2086
- :form_params => form_params,
2087
- :body => post_body,
2088
- :auth_names => auth_names,
2089
- :return_type => return_type
2090
- )
2091
-
2092
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2093
- if @api_client.config.debugging
2094
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_settings_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2095
- end
2096
- return data, status_code, headers
2097
- end
2098
-
2099
- # Initialize Verification Flow for Browser Clients
2100
- # 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=`. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects. 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).
2101
- # @param [Hash] opts the optional parameters
2102
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
2103
- # @return [SelfServiceVerificationFlow]
2104
- def initialize_self_service_verification_flow_for_browsers(opts = {})
2105
- data, _status_code, _headers = initialize_self_service_verification_flow_for_browsers_with_http_info(opts)
2106
- data
2107
- end
2108
-
2109
- # Initialize Verification Flow for Browser Clients
2110
- # This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to &#x60;selfservice.flows.verification.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects. 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).
2111
- # @param [Hash] opts the optional parameters
2112
- # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
2113
- # @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
2114
- def initialize_self_service_verification_flow_for_browsers_with_http_info(opts = {})
2115
- if @api_client.config.debugging
2116
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_verification_flow_for_browsers ...'
2117
- end
2118
- # resource path
2119
- local_var_path = '/self-service/verification/browser'
2120
-
2121
- # query parameters
2122
- query_params = opts[:query_params] || {}
2123
- query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
2124
-
2125
- # header parameters
2126
- header_params = opts[:header_params] || {}
2127
- # HTTP header 'Accept' (if needed)
2128
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2129
-
2130
- # form parameters
2131
- form_params = opts[:form_params] || {}
2132
-
2133
- # http body (model)
2134
- post_body = opts[:debug_body]
2135
-
2136
- # return_type
2137
- return_type = opts[:debug_return_type] || 'SelfServiceVerificationFlow'
2138
-
2139
- # auth_names
2140
- auth_names = opts[:debug_auth_names] || []
2141
-
2142
- new_options = opts.merge(
2143
- :operation => :"V0alpha2Api.initialize_self_service_verification_flow_for_browsers",
2144
- :header_params => header_params,
2145
- :query_params => query_params,
2146
- :form_params => form_params,
2147
- :body => post_body,
2148
- :auth_names => auth_names,
2149
- :return_type => return_type
2150
- )
2151
-
2152
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2153
- if @api_client.config.debugging
2154
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_verification_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2155
- end
2156
- return data, status_code, headers
2157
- end
2158
-
2159
- # Initialize Verification Flow for APIs, Services, Apps, ...
2160
- # 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>`. 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/self-service/flows/verify-email-account-activation).
2161
- # @param [Hash] opts the optional parameters
2162
- # @return [SelfServiceVerificationFlow]
2163
- def initialize_self_service_verification_flow_without_browser(opts = {})
2164
- data, _status_code, _headers = initialize_self_service_verification_flow_without_browser_with_http_info(opts)
2165
- data
2166
- end
2167
-
2168
- # Initialize Verification Flow for APIs, Services, Apps, ...
2169
- # 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 &#x60;/self-service/verification/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. 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/self-service/flows/verify-email-account-activation).
2170
- # @param [Hash] opts the optional parameters
2171
- # @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
2172
- def initialize_self_service_verification_flow_without_browser_with_http_info(opts = {})
2173
- if @api_client.config.debugging
2174
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_verification_flow_without_browser ...'
2175
- end
2176
- # resource path
2177
- local_var_path = '/self-service/verification/api'
2178
-
2179
- # query parameters
2180
- query_params = opts[:query_params] || {}
2181
-
2182
- # header parameters
2183
- header_params = opts[:header_params] || {}
2184
- # HTTP header 'Accept' (if needed)
2185
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2186
-
2187
- # form parameters
2188
- form_params = opts[:form_params] || {}
2189
-
2190
- # http body (model)
2191
- post_body = opts[:debug_body]
2192
-
2193
- # return_type
2194
- return_type = opts[:debug_return_type] || 'SelfServiceVerificationFlow'
2195
-
2196
- # auth_names
2197
- auth_names = opts[:debug_auth_names] || []
2198
-
2199
- new_options = opts.merge(
2200
- :operation => :"V0alpha2Api.initialize_self_service_verification_flow_without_browser",
2201
- :header_params => header_params,
2202
- :query_params => query_params,
2203
- :form_params => form_params,
2204
- :body => post_body,
2205
- :auth_names => auth_names,
2206
- :return_type => return_type
2207
- )
2208
-
2209
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2210
- if @api_client.config.debugging
2211
- @api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_verification_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2212
- end
2213
- return data, status_code, headers
2214
- end
2215
-
2216
- # Get all Identity Schemas
2217
- # @param [Hash] opts the optional parameters
2218
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
2219
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
2220
- # @return [Array<IdentitySchemaContainer>]
2221
- def list_identity_schemas(opts = {})
2222
- data, _status_code, _headers = list_identity_schemas_with_http_info(opts)
2223
- data
2224
- end
2225
-
2226
- # Get all Identity Schemas
2227
- # @param [Hash] opts the optional parameters
2228
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
2229
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
2230
- # @return [Array<(Array<IdentitySchemaContainer>, Integer, Hash)>] Array<IdentitySchemaContainer> data, response status code and response headers
2231
- def list_identity_schemas_with_http_info(opts = {})
2232
- if @api_client.config.debugging
2233
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.list_identity_schemas ...'
2234
- end
2235
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 1000
2236
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.list_identity_schemas, must be smaller than or equal to 1000.'
2237
- end
2238
-
2239
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
2240
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.list_identity_schemas, must be greater than or equal to 1.'
2241
- end
2242
-
2243
- if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
2244
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling V0alpha2Api.list_identity_schemas, must be greater than or equal to 1.'
2245
- end
2246
-
2247
- # resource path
2248
- local_var_path = '/schemas'
2249
-
2250
- # query parameters
2251
- query_params = opts[:query_params] || {}
2252
- query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
2253
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2254
-
2255
- # header parameters
2256
- header_params = opts[:header_params] || {}
2257
- # HTTP header 'Accept' (if needed)
2258
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2259
-
2260
- # form parameters
2261
- form_params = opts[:form_params] || {}
2262
-
2263
- # http body (model)
2264
- post_body = opts[:debug_body]
2265
-
2266
- # return_type
2267
- return_type = opts[:debug_return_type] || 'Array<IdentitySchemaContainer>'
2268
-
2269
- # auth_names
2270
- auth_names = opts[:debug_auth_names] || []
2271
-
2272
- new_options = opts.merge(
2273
- :operation => :"V0alpha2Api.list_identity_schemas",
2274
- :header_params => header_params,
2275
- :query_params => query_params,
2276
- :form_params => form_params,
2277
- :body => post_body,
2278
- :auth_names => auth_names,
2279
- :return_type => return_type
2280
- )
2281
-
2282
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2283
- if @api_client.config.debugging
2284
- @api_client.config.logger.debug "API called: V0alpha2Api#list_identity_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2285
- end
2286
- return data, status_code, headers
2287
- end
2288
-
2289
- # # List a Project's API Tokens
2290
- # A list of all the project's API tokens.
2291
- # @param project [String] The Project ID or Project slug
2292
- # @param [Hash] opts the optional parameters
2293
- # @return [Array<ProjectApiKey>]
2294
- def list_project_api_keys(project, opts = {})
2295
- data, _status_code, _headers = list_project_api_keys_with_http_info(project, opts)
2296
- data
2297
- end
2298
-
2299
- # # List a Project&#39;s API Tokens
2300
- # A list of all the project&#39;s API tokens.
2301
- # @param project [String] The Project ID or Project slug
2302
- # @param [Hash] opts the optional parameters
2303
- # @return [Array<(Array<ProjectApiKey>, Integer, Hash)>] Array<ProjectApiKey> data, response status code and response headers
2304
- def list_project_api_keys_with_http_info(project, opts = {})
2305
- if @api_client.config.debugging
2306
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.list_project_api_keys ...'
2307
- end
2308
- # verify the required parameter 'project' is set
2309
- if @api_client.config.client_side_validation && project.nil?
2310
- fail ArgumentError, "Missing the required parameter 'project' when calling V0alpha2Api.list_project_api_keys"
2311
- end
2312
- # resource path
2313
- local_var_path = '/projects/{project}/tokens'.sub('{' + 'project' + '}', CGI.escape(project.to_s))
2314
-
2315
- # query parameters
2316
- query_params = opts[:query_params] || {}
2317
-
2318
- # header parameters
2319
- header_params = opts[:header_params] || {}
2320
- # HTTP header 'Accept' (if needed)
2321
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2322
-
2323
- # form parameters
2324
- form_params = opts[:form_params] || {}
2325
-
2326
- # http body (model)
2327
- post_body = opts[:debug_body]
2328
-
2329
- # return_type
2330
- return_type = opts[:debug_return_type] || 'Array<ProjectApiKey>'
2331
-
2332
- # auth_names
2333
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
2334
-
2335
- new_options = opts.merge(
2336
- :operation => :"V0alpha2Api.list_project_api_keys",
2337
- :header_params => header_params,
2338
- :query_params => query_params,
2339
- :form_params => form_params,
2340
- :body => post_body,
2341
- :auth_names => auth_names,
2342
- :return_type => return_type
2343
- )
2344
-
2345
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2346
- if @api_client.config.debugging
2347
- @api_client.config.logger.debug "API called: V0alpha2Api#list_project_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2348
- end
2349
- return data, status_code, headers
2350
- end
2351
-
2352
- # # List All Projects
2353
- # Lists all projects you have access to.
2354
- # @param [Hash] opts the optional parameters
2355
- # @return [Array<ProjectMetadata>]
2356
- def list_projects(opts = {})
2357
- data, _status_code, _headers = list_projects_with_http_info(opts)
2358
- data
2359
- end
2360
-
2361
- # # List All Projects
2362
- # Lists all projects you have access to.
2363
- # @param [Hash] opts the optional parameters
2364
- # @return [Array<(Array<ProjectMetadata>, Integer, Hash)>] Array<ProjectMetadata> data, response status code and response headers
2365
- def list_projects_with_http_info(opts = {})
2366
- if @api_client.config.debugging
2367
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.list_projects ...'
2368
- end
2369
- # resource path
2370
- local_var_path = '/projects'
2371
-
2372
- # query parameters
2373
- query_params = opts[:query_params] || {}
2374
-
2375
- # header parameters
2376
- header_params = opts[:header_params] || {}
2377
- # HTTP header 'Accept' (if needed)
2378
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2379
-
2380
- # form parameters
2381
- form_params = opts[:form_params] || {}
2382
-
2383
- # http body (model)
2384
- post_body = opts[:debug_body]
2385
-
2386
- # return_type
2387
- return_type = opts[:debug_return_type] || 'Array<ProjectMetadata>'
2388
-
2389
- # auth_names
2390
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
2391
-
2392
- new_options = opts.merge(
2393
- :operation => :"V0alpha2Api.list_projects",
2394
- :header_params => header_params,
2395
- :query_params => query_params,
2396
- :form_params => form_params,
2397
- :body => post_body,
2398
- :auth_names => auth_names,
2399
- :return_type => return_type
2400
- )
2401
-
2402
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2403
- if @api_client.config.debugging
2404
- @api_client.config.logger.debug "API called: V0alpha2Api#list_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2405
- end
2406
- return data, status_code, headers
2407
- end
2408
-
2409
- # This endpoints returns all other active sessions that belong to the logged-in user. The current session can be retrieved by calling the `/sessions/whoami` endpoint.
2410
- # This endpoint is useful for: Displaying all other sessions that belong to the logged-in user
2411
- # @param [Hash] opts the optional parameters
2412
- # @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of &#x60;MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj&#x60;.
2413
- # @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: &#x60;ory_kratos_session&#x3D;a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f&#x3D;&#x3D;&#x60;. It is ok if more than one cookie are included here as all other cookies will be ignored.
2414
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
2415
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
2416
- # @return [Array<Session>]
2417
- def list_sessions(opts = {})
2418
- data, _status_code, _headers = list_sessions_with_http_info(opts)
2419
- data
2420
- end
2421
-
2422
- # This endpoints returns all other active sessions that belong to the logged-in user. The current session can be retrieved by calling the &#x60;/sessions/whoami&#x60; endpoint.
2423
- # This endpoint is useful for: Displaying all other sessions that belong to the logged-in user
2424
- # @param [Hash] opts the optional parameters
2425
- # @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of &#x60;MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj&#x60;.
2426
- # @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: &#x60;ory_kratos_session&#x3D;a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f&#x3D;&#x3D;&#x60;. It is ok if more than one cookie are included here as all other cookies will be ignored.
2427
- # @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 250)
2428
- # @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1)
2429
- # @return [Array<(Array<Session>, Integer, Hash)>] Array<Session> data, response status code and response headers
2430
- def list_sessions_with_http_info(opts = {})
2431
- if @api_client.config.debugging
2432
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.list_sessions ...'
2433
- end
2434
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 1000
2435
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.list_sessions, must be smaller than or equal to 1000.'
2436
- end
2437
-
2438
- if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
2439
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.list_sessions, must be greater than or equal to 1.'
2440
- end
2441
-
2442
- if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
2443
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling V0alpha2Api.list_sessions, must be greater than or equal to 1.'
2444
- end
2445
-
2446
- # resource path
2447
- local_var_path = '/sessions'
2448
-
2449
- # query parameters
2450
- query_params = opts[:query_params] || {}
2451
- query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
2452
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2453
-
2454
- # header parameters
2455
- header_params = opts[:header_params] || {}
2456
- # HTTP header 'Accept' (if needed)
2457
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2458
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
2459
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
2460
-
2461
- # form parameters
2462
- form_params = opts[:form_params] || {}
2463
-
2464
- # http body (model)
2465
- post_body = opts[:debug_body]
2466
-
2467
- # return_type
2468
- return_type = opts[:debug_return_type] || 'Array<Session>'
2469
-
2470
- # auth_names
2471
- auth_names = opts[:debug_auth_names] || []
2472
-
2473
- new_options = opts.merge(
2474
- :operation => :"V0alpha2Api.list_sessions",
2475
- :header_params => header_params,
2476
- :query_params => query_params,
2477
- :form_params => form_params,
2478
- :body => post_body,
2479
- :auth_names => auth_names,
2480
- :return_type => return_type
2481
- )
2482
-
2483
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2484
- if @api_client.config.debugging
2485
- @api_client.config.logger.debug "API called: V0alpha2Api#list_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2486
- end
2487
- return data, status_code, headers
2488
- end
2489
-
2490
- # Patch an Ory Cloud Project Configuration`
2491
- # Deprecated: Use the `patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Cloud Project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
2492
- # @param project_id [String] Project ID The project&#39;s ID.
2493
- # @param [Hash] opts the optional parameters
2494
- # @option opts [Array<JsonPatch>] :json_patch
2495
- # @return [SuccessfulProjectUpdate]
2496
- def patch_project(project_id, opts = {})
2497
- data, _status_code, _headers = patch_project_with_http_info(project_id, opts)
2498
- data
2499
- end
2500
-
2501
- # Patch an Ory Cloud Project Configuration&#x60;
2502
- # Deprecated: Use the &#x60;patchProjectWithRevision&#x60; endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Cloud Project configuration keys for Ory&#39;s services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the &#x60;version&#x60; key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
2503
- # @param project_id [String] Project ID The project&#39;s ID.
2504
- # @param [Hash] opts the optional parameters
2505
- # @option opts [Array<JsonPatch>] :json_patch
2506
- # @return [Array<(SuccessfulProjectUpdate, Integer, Hash)>] SuccessfulProjectUpdate data, response status code and response headers
2507
- def patch_project_with_http_info(project_id, opts = {})
2508
- if @api_client.config.debugging
2509
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.patch_project ...'
2510
- end
2511
- # verify the required parameter 'project_id' is set
2512
- if @api_client.config.client_side_validation && project_id.nil?
2513
- fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.patch_project"
2514
- end
2515
- # resource path
2516
- local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
2517
-
2518
- # query parameters
2519
- query_params = opts[:query_params] || {}
2520
-
2521
- # header parameters
2522
- header_params = opts[:header_params] || {}
2523
- # HTTP header 'Accept' (if needed)
2524
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2525
- # HTTP header 'Content-Type'
2526
- content_type = @api_client.select_header_content_type(['application/json'])
2527
- if !content_type.nil?
2528
- header_params['Content-Type'] = content_type
2529
- end
2530
-
2531
- # form parameters
2532
- form_params = opts[:form_params] || {}
2533
-
2534
- # http body (model)
2535
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_patch'])
2536
-
2537
- # return_type
2538
- return_type = opts[:debug_return_type] || 'SuccessfulProjectUpdate'
2539
-
2540
- # auth_names
2541
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
2542
-
2543
- new_options = opts.merge(
2544
- :operation => :"V0alpha2Api.patch_project",
2545
- :header_params => header_params,
2546
- :query_params => query_params,
2547
- :form_params => form_params,
2548
- :body => post_body,
2549
- :auth_names => auth_names,
2550
- :return_type => return_type
2551
- )
2552
-
2553
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2554
- if @api_client.config.debugging
2555
- @api_client.config.logger.debug "API called: V0alpha2Api#patch_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2556
- end
2557
- return data, status_code, headers
2558
- end
2559
-
2560
- # # Irrecoverably Purge a Project
2561
- # !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. !! Use with extreme caution !!
2562
- # @param project_id [String] Project ID The project&#39;s ID.
2563
- # @param [Hash] opts the optional parameters
2564
- # @return [nil]
2565
- def purge_project(project_id, opts = {})
2566
- purge_project_with_http_info(project_id, opts)
2567
- nil
2568
- end
2569
-
2570
- # # Irrecoverably Purge a Project
2571
- # !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. !! Use with extreme caution !!
2572
- # @param project_id [String] Project ID The project&#39;s ID.
2573
- # @param [Hash] opts the optional parameters
2574
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2575
- def purge_project_with_http_info(project_id, opts = {})
2576
- if @api_client.config.debugging
2577
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.purge_project ...'
2578
- end
2579
- # verify the required parameter 'project_id' is set
2580
- if @api_client.config.client_side_validation && project_id.nil?
2581
- fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.purge_project"
2582
- end
2583
- # resource path
2584
- local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
2585
-
2586
- # query parameters
2587
- query_params = opts[:query_params] || {}
2588
-
2589
- # header parameters
2590
- header_params = opts[:header_params] || {}
2591
- # HTTP header 'Accept' (if needed)
2592
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2593
-
2594
- # form parameters
2595
- form_params = opts[:form_params] || {}
2596
-
2597
- # http body (model)
2598
- post_body = opts[:debug_body]
2599
-
2600
- # return_type
2601
- return_type = opts[:debug_return_type]
2602
-
2603
- # auth_names
2604
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
2605
-
2606
- new_options = opts.merge(
2607
- :operation => :"V0alpha2Api.purge_project",
2608
- :header_params => header_params,
2609
- :query_params => query_params,
2610
- :form_params => form_params,
2611
- :body => post_body,
2612
- :auth_names => auth_names,
2613
- :return_type => return_type
2614
- )
2615
-
2616
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2617
- if @api_client.config.debugging
2618
- @api_client.config.logger.debug "API called: V0alpha2Api#purge_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2619
- end
2620
- return data, status_code, headers
2621
- end
2622
-
2623
- # Remove a member associated with this project. This also sets their invite status to `REMOVED`.
2624
- # This endpoint requires the user to be a member of the project with the role `OWNER`.
2625
- # @param project_id [String] Project ID The project&#39;s ID.
2626
- # @param member_id [String] Member ID
2627
- # @param [Hash] opts the optional parameters
2628
- # @return [nil]
2629
- def remove_project_member(project_id, member_id, opts = {})
2630
- remove_project_member_with_http_info(project_id, member_id, opts)
2631
- nil
2632
- end
2633
-
2634
- # Remove a member associated with this project. This also sets their invite status to &#x60;REMOVED&#x60;.
2635
- # This endpoint requires the user to be a member of the project with the role &#x60;OWNER&#x60;.
2636
- # @param project_id [String] Project ID The project&#39;s ID.
2637
- # @param member_id [String] Member ID
2638
- # @param [Hash] opts the optional parameters
2639
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2640
- def remove_project_member_with_http_info(project_id, member_id, opts = {})
2641
- if @api_client.config.debugging
2642
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.remove_project_member ...'
2643
- end
2644
- # verify the required parameter 'project_id' is set
2645
- if @api_client.config.client_side_validation && project_id.nil?
2646
- fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.remove_project_member"
2647
- end
2648
- # verify the required parameter 'member_id' is set
2649
- if @api_client.config.client_side_validation && member_id.nil?
2650
- fail ArgumentError, "Missing the required parameter 'member_id' when calling V0alpha2Api.remove_project_member"
2651
- end
2652
- # resource path
2653
- local_var_path = '/projects/{project_id}/members/{member_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'member_id' + '}', CGI.escape(member_id.to_s))
2654
-
2655
- # query parameters
2656
- query_params = opts[:query_params] || {}
2657
-
2658
- # header parameters
2659
- header_params = opts[:header_params] || {}
2660
- # HTTP header 'Accept' (if needed)
2661
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2662
-
2663
- # form parameters
2664
- form_params = opts[:form_params] || {}
2665
-
2666
- # http body (model)
2667
- post_body = opts[:debug_body]
2668
-
2669
- # return_type
2670
- return_type = opts[:debug_return_type]
2671
-
2672
- # auth_names
2673
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
2674
-
2675
- new_options = opts.merge(
2676
- :operation => :"V0alpha2Api.remove_project_member",
2677
- :header_params => header_params,
2678
- :query_params => query_params,
2679
- :form_params => form_params,
2680
- :body => post_body,
2681
- :auth_names => auth_names,
2682
- :return_type => return_type
2683
- )
2684
-
2685
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2686
- if @api_client.config.debugging
2687
- @api_client.config.logger.debug "API called: V0alpha2Api#remove_project_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2688
- end
2689
- return data, status_code, headers
2690
- end
2691
-
2692
- # Calling this endpoint invalidates the specified session. The current session cannot be revoked. Session data are not deleted.
2693
- # This endpoint is useful for: To forcefully logout the current user from another device or session
2694
- # @param id [String] ID is the session&#39;s ID.
2695
- # @param [Hash] opts the optional parameters
2696
- # @return [nil]
2697
- def revoke_session(id, opts = {})
2698
- revoke_session_with_http_info(id, opts)
2699
- nil
2700
- end
2701
-
2702
- # Calling this endpoint invalidates the specified session. The current session cannot be revoked. Session data are not deleted.
2703
- # This endpoint is useful for: To forcefully logout the current user from another device or session
2704
- # @param id [String] ID is the session&#39;s ID.
2705
- # @param [Hash] opts the optional parameters
2706
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2707
- def revoke_session_with_http_info(id, opts = {})
2708
- if @api_client.config.debugging
2709
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.revoke_session ...'
2710
- end
2711
- # verify the required parameter 'id' is set
2712
- if @api_client.config.client_side_validation && id.nil?
2713
- fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.revoke_session"
2714
- end
2715
- # resource path
2716
- local_var_path = '/sessions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2717
-
2718
- # query parameters
2719
- query_params = opts[:query_params] || {}
2720
-
2721
- # header parameters
2722
- header_params = opts[:header_params] || {}
2723
- # HTTP header 'Accept' (if needed)
2724
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2725
-
2726
- # form parameters
2727
- form_params = opts[:form_params] || {}
2728
-
2729
- # http body (model)
2730
- post_body = opts[:debug_body]
2731
-
2732
- # return_type
2733
- return_type = opts[:debug_return_type]
2734
-
2735
- # auth_names
2736
- auth_names = opts[:debug_auth_names] || []
2737
-
2738
- new_options = opts.merge(
2739
- :operation => :"V0alpha2Api.revoke_session",
2740
- :header_params => header_params,
2741
- :query_params => query_params,
2742
- :form_params => form_params,
2743
- :body => post_body,
2744
- :auth_names => auth_names,
2745
- :return_type => return_type
2746
- )
2747
-
2748
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2749
- if @api_client.config.debugging
2750
- @api_client.config.logger.debug "API called: V0alpha2Api#revoke_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2751
- end
2752
- return data, status_code, headers
2753
- end
2754
-
2755
- # Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted.
2756
- # This endpoint is useful for: To forcefully logout the current user from all other devices and sessions
2757
- # @param [Hash] opts the optional parameters
2758
- # @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of &#x60;MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj&#x60;.
2759
- # @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: &#x60;ory_kratos_session&#x3D;a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f&#x3D;&#x3D;&#x60;. It is ok if more than one cookie are included here as all other cookies will be ignored.
2760
- # @return [RevokedSessions]
2761
- def revoke_sessions(opts = {})
2762
- data, _status_code, _headers = revoke_sessions_with_http_info(opts)
2763
- data
2764
- end
2765
-
2766
- # Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted.
2767
- # This endpoint is useful for: To forcefully logout the current user from all other devices and sessions
2768
- # @param [Hash] opts the optional parameters
2769
- # @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of &#x60;MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj&#x60;.
2770
- # @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: &#x60;ory_kratos_session&#x3D;a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f&#x3D;&#x3D;&#x60;. It is ok if more than one cookie are included here as all other cookies will be ignored.
2771
- # @return [Array<(RevokedSessions, Integer, Hash)>] RevokedSessions data, response status code and response headers
2772
- def revoke_sessions_with_http_info(opts = {})
2773
- if @api_client.config.debugging
2774
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.revoke_sessions ...'
2775
- end
2776
- # resource path
2777
- local_var_path = '/sessions'
2778
-
2779
- # query parameters
2780
- query_params = opts[:query_params] || {}
2781
-
2782
- # header parameters
2783
- header_params = opts[:header_params] || {}
2784
- # HTTP header 'Accept' (if needed)
2785
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2786
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
2787
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
2788
-
2789
- # form parameters
2790
- form_params = opts[:form_params] || {}
2791
-
2792
- # http body (model)
2793
- post_body = opts[:debug_body]
2794
-
2795
- # return_type
2796
- return_type = opts[:debug_return_type] || 'RevokedSessions'
2797
-
2798
- # auth_names
2799
- auth_names = opts[:debug_auth_names] || []
2800
-
2801
- new_options = opts.merge(
2802
- :operation => :"V0alpha2Api.revoke_sessions",
2803
- :header_params => header_params,
2804
- :query_params => query_params,
2805
- :form_params => form_params,
2806
- :body => post_body,
2807
- :auth_names => auth_names,
2808
- :return_type => return_type
2809
- )
2810
-
2811
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2812
- if @api_client.config.debugging
2813
- @api_client.config.logger.debug "API called: V0alpha2Api#revoke_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2814
- end
2815
- return data, status_code, headers
2816
- end
2817
-
2818
- # Submit a Login Flow
2819
- # :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
2820
- # @param flow [String] 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;).
2821
- # @param submit_self_service_login_flow_body [SubmitSelfServiceLoginFlowBody]
2822
- # @param [Hash] opts the optional parameters
2823
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
2824
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
2825
- # @return [SuccessfulSelfServiceLoginWithoutBrowser]
2826
- def submit_self_service_login_flow(flow, submit_self_service_login_flow_body, opts = {})
2827
- data, _status_code, _headers = submit_self_service_login_flow_with_http_info(flow, submit_self_service_login_flow_body, opts)
2828
- data
2829
- end
2830
-
2831
- # Submit a Login Flow
2832
- # :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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 410 if the original flow expired with the appropriate error messages set and optionally a &#x60;use_flow_id&#x60; parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of &#x60;application/x-www-form-urlencoded&#x60; or &#x60;application/json&#x60; to be sent in the body and respond with a HTTP 303 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 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of &#x60;application/json&#x60; will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a &#x60;Set-Cookie&#x60; header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with &#x60;Accept: application/json&#x60; in the header, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! &#x60;browser_location_change_required&#x60;: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
2833
- # @param flow [String] 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;).
2834
- # @param submit_self_service_login_flow_body [SubmitSelfServiceLoginFlowBody]
2835
- # @param [Hash] opts the optional parameters
2836
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
2837
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
2838
- # @return [Array<(SuccessfulSelfServiceLoginWithoutBrowser, Integer, Hash)>] SuccessfulSelfServiceLoginWithoutBrowser data, response status code and response headers
2839
- def submit_self_service_login_flow_with_http_info(flow, submit_self_service_login_flow_body, opts = {})
2840
- if @api_client.config.debugging
2841
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_login_flow ...'
2842
- end
2843
- # verify the required parameter 'flow' is set
2844
- if @api_client.config.client_side_validation && flow.nil?
2845
- fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_login_flow"
2846
- end
2847
- # verify the required parameter 'submit_self_service_login_flow_body' is set
2848
- if @api_client.config.client_side_validation && submit_self_service_login_flow_body.nil?
2849
- fail ArgumentError, "Missing the required parameter 'submit_self_service_login_flow_body' when calling V0alpha2Api.submit_self_service_login_flow"
2850
- end
2851
- # resource path
2852
- local_var_path = '/self-service/login'
2853
-
2854
- # query parameters
2855
- query_params = opts[:query_params] || {}
2856
- query_params[:'flow'] = flow
2857
-
2858
- # header parameters
2859
- header_params = opts[:header_params] || {}
2860
- # HTTP header 'Accept' (if needed)
2861
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2862
- # HTTP header 'Content-Type'
2863
- content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
2864
- if !content_type.nil?
2865
- header_params['Content-Type'] = content_type
2866
- end
2867
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
2868
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
2869
-
2870
- # form parameters
2871
- form_params = opts[:form_params] || {}
2872
-
2873
- # http body (model)
2874
- post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_self_service_login_flow_body)
2875
-
2876
- # return_type
2877
- return_type = opts[:debug_return_type] || 'SuccessfulSelfServiceLoginWithoutBrowser'
2878
-
2879
- # auth_names
2880
- auth_names = opts[:debug_auth_names] || []
2881
-
2882
- new_options = opts.merge(
2883
- :operation => :"V0alpha2Api.submit_self_service_login_flow",
2884
- :header_params => header_params,
2885
- :query_params => query_params,
2886
- :form_params => form_params,
2887
- :body => post_body,
2888
- :auth_names => auth_names,
2889
- :return_type => return_type
2890
- )
2891
-
2892
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2893
- if @api_client.config.debugging
2894
- @api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_login_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2895
- end
2896
- return data, status_code, headers
2897
- end
2898
-
2899
- # Complete Self-Service Logout
2900
- # This endpoint logs out an identity in a self-service manner. If the `Accept` HTTP header is not set to `application/json`, the browser will be redirected (HTTP 303 See Other) to the `return_to` parameter of the initial request or fall back to `urls.default_return_to`. If the `Accept` HTTP header is set to `application/json`, a 204 No Content response will be sent on successful logout instead. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token. More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout).
2901
- # @param [Hash] opts the optional parameters
2902
- # @option opts [String] :token A Valid Logout Token If you do not have a logout token because you only have a session cookie, call &#x60;/self-service/logout/browser&#x60; to generate a URL for this endpoint.
2903
- # @option opts [String] :return_to The URL to return to after the logout was completed.
2904
- # @return [nil]
2905
- def submit_self_service_logout_flow(opts = {})
2906
- submit_self_service_logout_flow_with_http_info(opts)
2907
- nil
2908
- end
2909
-
2910
- # Complete Self-Service Logout
2911
- # This endpoint logs out an identity in a self-service manner. If the &#x60;Accept&#x60; HTTP header is not set to &#x60;application/json&#x60;, the browser will be redirected (HTTP 303 See Other) to the &#x60;return_to&#x60; parameter of the initial request or fall back to &#x60;urls.default_return_to&#x60;. If the &#x60;Accept&#x60; HTTP header is set to &#x60;application/json&#x60;, a 204 No Content response will be sent on successful logout instead. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the &#x60;/self-service/logout/api&#x60; URL directly with the Ory Session Token. More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout).
2912
- # @param [Hash] opts the optional parameters
2913
- # @option opts [String] :token A Valid Logout Token If you do not have a logout token because you only have a session cookie, call &#x60;/self-service/logout/browser&#x60; to generate a URL for this endpoint.
2914
- # @option opts [String] :return_to The URL to return to after the logout was completed.
2915
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2916
- def submit_self_service_logout_flow_with_http_info(opts = {})
2917
- if @api_client.config.debugging
2918
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_logout_flow ...'
2919
- end
2920
- # resource path
2921
- local_var_path = '/self-service/logout'
2922
-
2923
- # query parameters
2924
- query_params = opts[:query_params] || {}
2925
- query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil?
2926
- query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
2927
-
2928
- # header parameters
2929
- header_params = opts[:header_params] || {}
2930
- # HTTP header 'Accept' (if needed)
2931
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2932
-
2933
- # form parameters
2934
- form_params = opts[:form_params] || {}
2935
-
2936
- # http body (model)
2937
- post_body = opts[:debug_body]
2938
-
2939
- # return_type
2940
- return_type = opts[:debug_return_type]
2941
-
2942
- # auth_names
2943
- auth_names = opts[:debug_auth_names] || []
2944
-
2945
- new_options = opts.merge(
2946
- :operation => :"V0alpha2Api.submit_self_service_logout_flow",
2947
- :header_params => header_params,
2948
- :query_params => query_params,
2949
- :form_params => form_params,
2950
- :body => post_body,
2951
- :auth_names => auth_names,
2952
- :return_type => return_type
2953
- )
2954
-
2955
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2956
- if @api_client.config.debugging
2957
- @api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_logout_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2958
- end
2959
- return data, status_code, headers
2960
- end
2961
-
2962
- # Perform Logout for APIs, Services, Apps, ...
2963
- # Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when the Ory Session Token has been revoked already before. If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned. This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.
2964
- # @param submit_self_service_logout_flow_without_browser_body [SubmitSelfServiceLogoutFlowWithoutBrowserBody]
2965
- # @param [Hash] opts the optional parameters
2966
- # @return [nil]
2967
- def submit_self_service_logout_flow_without_browser(submit_self_service_logout_flow_without_browser_body, opts = {})
2968
- submit_self_service_logout_flow_without_browser_with_http_info(submit_self_service_logout_flow_without_browser_body, opts)
2969
- nil
2970
- end
2971
-
2972
- # Perform Logout for APIs, Services, Apps, ...
2973
- # Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when the Ory Session Token has been revoked already before. If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned. This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.
2974
- # @param submit_self_service_logout_flow_without_browser_body [SubmitSelfServiceLogoutFlowWithoutBrowserBody]
2975
- # @param [Hash] opts the optional parameters
2976
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2977
- def submit_self_service_logout_flow_without_browser_with_http_info(submit_self_service_logout_flow_without_browser_body, opts = {})
2978
- if @api_client.config.debugging
2979
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_logout_flow_without_browser ...'
2980
- end
2981
- # verify the required parameter 'submit_self_service_logout_flow_without_browser_body' is set
2982
- if @api_client.config.client_side_validation && submit_self_service_logout_flow_without_browser_body.nil?
2983
- fail ArgumentError, "Missing the required parameter 'submit_self_service_logout_flow_without_browser_body' when calling V0alpha2Api.submit_self_service_logout_flow_without_browser"
2984
- end
2985
- # resource path
2986
- local_var_path = '/self-service/logout/api'
2987
-
2988
- # query parameters
2989
- query_params = opts[:query_params] || {}
2990
-
2991
- # header parameters
2992
- header_params = opts[:header_params] || {}
2993
- # HTTP header 'Accept' (if needed)
2994
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2995
- # HTTP header 'Content-Type'
2996
- content_type = @api_client.select_header_content_type(['application/json'])
2997
- if !content_type.nil?
2998
- header_params['Content-Type'] = content_type
2999
- end
3000
-
3001
- # form parameters
3002
- form_params = opts[:form_params] || {}
3003
-
3004
- # http body (model)
3005
- post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_self_service_logout_flow_without_browser_body)
3006
-
3007
- # return_type
3008
- return_type = opts[:debug_return_type]
3009
-
3010
- # auth_names
3011
- auth_names = opts[:debug_auth_names] || []
3012
-
3013
- new_options = opts.merge(
3014
- :operation => :"V0alpha2Api.submit_self_service_logout_flow_without_browser",
3015
- :header_params => header_params,
3016
- :query_params => query_params,
3017
- :form_params => form_params,
3018
- :body => post_body,
3019
- :auth_names => auth_names,
3020
- :return_type => return_type
3021
- )
3022
-
3023
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3024
- if @api_client.config.debugging
3025
- @api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_logout_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3026
- end
3027
- return data, status_code, headers
3028
- end
3029
-
3030
- # Complete Recovery Flow
3031
- # Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` 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 `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other 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).
3032
- # @param flow [String] The Recovery Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/recovery?flow&#x3D;abcde&#x60;).
3033
- # @param submit_self_service_recovery_flow_body [SubmitSelfServiceRecoveryFlowBody]
3034
- # @param [Hash] opts the optional parameters
3035
- # @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. This parameter is usually set in a link and not used by any direct API call.
3036
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3037
- # @return [SelfServiceRecoveryFlow]
3038
- def submit_self_service_recovery_flow(flow, submit_self_service_recovery_flow_body, opts = {})
3039
- data, _status_code, _headers = submit_self_service_recovery_flow_with_http_info(flow, submit_self_service_recovery_flow_body, opts)
3040
- data
3041
- end
3042
-
3043
- # Complete Recovery Flow
3044
- # 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 and Browser clients with HTTP Header &#x60;Accept: application/json&#x60; it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header &#x60;Accept&#x60; or with &#x60;Accept: text/*&#x60; it returns a HTTP 303 See Other 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 303 See Other 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).
3045
- # @param flow [String] The Recovery Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/recovery?flow&#x3D;abcde&#x60;).
3046
- # @param submit_self_service_recovery_flow_body [SubmitSelfServiceRecoveryFlowBody]
3047
- # @param [Hash] opts the optional parameters
3048
- # @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. This parameter is usually set in a link and not used by any direct API call.
3049
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3050
- # @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
3051
- def submit_self_service_recovery_flow_with_http_info(flow, submit_self_service_recovery_flow_body, opts = {})
3052
- if @api_client.config.debugging
3053
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_recovery_flow ...'
3054
- end
3055
- # verify the required parameter 'flow' is set
3056
- if @api_client.config.client_side_validation && flow.nil?
3057
- fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_recovery_flow"
3058
- end
3059
- # verify the required parameter 'submit_self_service_recovery_flow_body' is set
3060
- if @api_client.config.client_side_validation && submit_self_service_recovery_flow_body.nil?
3061
- fail ArgumentError, "Missing the required parameter 'submit_self_service_recovery_flow_body' when calling V0alpha2Api.submit_self_service_recovery_flow"
3062
- end
3063
- # resource path
3064
- local_var_path = '/self-service/recovery'
3065
-
3066
- # query parameters
3067
- query_params = opts[:query_params] || {}
3068
- query_params[:'flow'] = flow
3069
- query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil?
3070
-
3071
- # header parameters
3072
- header_params = opts[:header_params] || {}
3073
- # HTTP header 'Accept' (if needed)
3074
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3075
- # HTTP header 'Content-Type'
3076
- content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
3077
- if !content_type.nil?
3078
- header_params['Content-Type'] = content_type
3079
- end
3080
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
3081
-
3082
- # form parameters
3083
- form_params = opts[:form_params] || {}
3084
-
3085
- # http body (model)
3086
- post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_self_service_recovery_flow_body)
3087
-
3088
- # return_type
3089
- return_type = opts[:debug_return_type] || 'SelfServiceRecoveryFlow'
3090
-
3091
- # auth_names
3092
- auth_names = opts[:debug_auth_names] || []
3093
-
3094
- new_options = opts.merge(
3095
- :operation => :"V0alpha2Api.submit_self_service_recovery_flow",
3096
- :header_params => header_params,
3097
- :query_params => query_params,
3098
- :form_params => form_params,
3099
- :body => post_body,
3100
- :auth_names => auth_names,
3101
- :return_type => return_type
3102
- )
3103
-
3104
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3105
- if @api_client.config.debugging
3106
- @api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_recovery_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3107
- end
3108
- return data, status_code, headers
3109
- end
3110
-
3111
- # Submit a Registration Flow
3112
- # Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint behaves differently for API and browser flows. API flows expect `application/json` 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 `session` and `session_token` will also be included; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after registration URL or the `return_to` value if it was set and if the registration succeeded; a HTTP 303 redirect to the registration UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
3113
- # @param flow [String] 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;).
3114
- # @param submit_self_service_registration_flow_body [SubmitSelfServiceRegistrationFlowBody]
3115
- # @param [Hash] opts the optional parameters
3116
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3117
- # @return [SuccessfulSelfServiceRegistrationWithoutBrowser]
3118
- def submit_self_service_registration_flow(flow, submit_self_service_registration_flow_body, opts = {})
3119
- data, _status_code, _headers = submit_self_service_registration_flow_with_http_info(flow, submit_self_service_registration_flow_body, opts)
3120
- data
3121
- end
3122
-
3123
- # Submit a Registration Flow
3124
- # 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 410 if the original flow expired with the appropriate error messages set and optionally a &#x60;use_flow_id&#x60; parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of &#x60;application/x-www-form-urlencoded&#x60; or &#x60;application/json&#x60; to be sent in the body and respond with a HTTP 303 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 303 redirect to the registration UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of &#x60;application/json&#x60; will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a &#x60;Set-Cookie&#x60; header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with &#x60;Accept: application/json&#x60; in the header, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! &#x60;browser_location_change_required&#x60;: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration).
3125
- # @param flow [String] 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;).
3126
- # @param submit_self_service_registration_flow_body [SubmitSelfServiceRegistrationFlowBody]
3127
- # @param [Hash] opts the optional parameters
3128
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3129
- # @return [Array<(SuccessfulSelfServiceRegistrationWithoutBrowser, Integer, Hash)>] SuccessfulSelfServiceRegistrationWithoutBrowser data, response status code and response headers
3130
- def submit_self_service_registration_flow_with_http_info(flow, submit_self_service_registration_flow_body, opts = {})
3131
- if @api_client.config.debugging
3132
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_registration_flow ...'
3133
- end
3134
- # verify the required parameter 'flow' is set
3135
- if @api_client.config.client_side_validation && flow.nil?
3136
- fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_registration_flow"
3137
- end
3138
- # verify the required parameter 'submit_self_service_registration_flow_body' is set
3139
- if @api_client.config.client_side_validation && submit_self_service_registration_flow_body.nil?
3140
- fail ArgumentError, "Missing the required parameter 'submit_self_service_registration_flow_body' when calling V0alpha2Api.submit_self_service_registration_flow"
3141
- end
3142
- # resource path
3143
- local_var_path = '/self-service/registration'
3144
-
3145
- # query parameters
3146
- query_params = opts[:query_params] || {}
3147
- query_params[:'flow'] = flow
3148
-
3149
- # header parameters
3150
- header_params = opts[:header_params] || {}
3151
- # HTTP header 'Accept' (if needed)
3152
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3153
- # HTTP header 'Content-Type'
3154
- content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
3155
- if !content_type.nil?
3156
- header_params['Content-Type'] = content_type
3157
- end
3158
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
3159
-
3160
- # form parameters
3161
- form_params = opts[:form_params] || {}
3162
-
3163
- # http body (model)
3164
- post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_self_service_registration_flow_body)
3165
-
3166
- # return_type
3167
- return_type = opts[:debug_return_type] || 'SuccessfulSelfServiceRegistrationWithoutBrowser'
3168
-
3169
- # auth_names
3170
- auth_names = opts[:debug_auth_names] || []
3171
-
3172
- new_options = opts.merge(
3173
- :operation => :"V0alpha2Api.submit_self_service_registration_flow",
3174
- :header_params => header_params,
3175
- :query_params => query_params,
3176
- :form_params => form_params,
3177
- :body => post_body,
3178
- :auth_names => auth_names,
3179
- :return_type => return_type
3180
- )
3181
-
3182
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3183
- if @api_client.config.debugging
3184
- @api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_registration_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3185
- end
3186
- return data, status_code, headers
3187
- end
3188
-
3189
- # Complete Settings Flow
3190
- # Use this endpoint to complete a settings flow by sending an identity's updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect `application/json` to be sent in the body and respond with HTTP 200 and an application/json body with the session token on success; HTTP 303 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 `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Implies that the user needs to re-authenticate. Browser flows without HTTP Header `Accept` or with `Accept: text/*` respond with a HTTP 303 redirect to the post/after settings URL or the `return_to` value if it was set and if the flow succeeded; a HTTP 303 redirect to the Settings UI URL with the flow ID containing the validation errors otherwise. a HTTP 303 redirect to the login endpoint when `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Browser flows with HTTP Header `Accept: application/json` respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 401 when the endpoint is called without a valid session cookie. HTTP 403 when the page is accessed without a session cookie or the session's AAL is too low. HTTP 400 on form validation errors. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called with a `Accept: application/json` HTTP header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_refresh_required`: The identity requested to change something that needs a privileged session. Redirect the identity to the login init endpoint with query parameters `?refresh=true&return_to=<the-current-browser-url>`, or initiate a refresh login flow otherwise. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
3191
- # @param flow [String] 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;).
3192
- # @param submit_self_service_settings_flow_body [SubmitSelfServiceSettingsFlowBody]
3193
- # @param [Hash] opts the optional parameters
3194
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
3195
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3196
- # @return [SelfServiceSettingsFlow]
3197
- def submit_self_service_settings_flow(flow, submit_self_service_settings_flow_body, opts = {})
3198
- data, _status_code, _headers = submit_self_service_settings_flow_with_http_info(flow, submit_self_service_settings_flow_body, opts)
3199
- data
3200
- end
3201
-
3202
- # Complete Settings Flow
3203
- # 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 303 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 or the session&#39;s AAL is too low. Implies that the user needs to re-authenticate. Browser flows without HTTP Header &#x60;Accept&#x60; or with &#x60;Accept: text/*&#x60; respond with a HTTP 303 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 303 redirect to the Settings UI URL with the flow ID containing the validation errors otherwise. a HTTP 303 redirect to the login endpoint when &#x60;selfservice.flows.settings.privileged_session_max_age&#x60; was reached or the session&#39;s AAL is too low. Browser flows with HTTP Header &#x60;Accept: application/json&#x60; respond with HTTP 200 and a application/json body with the signed in identity and a &#x60;Set-Cookie&#x60; header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 401 when the endpoint is called without a valid session cookie. HTTP 403 when the page is accessed without a session cookie or the session&#39;s AAL is too low. HTTP 400 on form validation errors. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called with a &#x60;Accept: application/json&#x60; HTTP header, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_refresh_required&#x60;: The identity requested to change something that needs a privileged session. Redirect the identity to the login init endpoint with query parameters &#x60;?refresh&#x3D;true&amp;return_to&#x3D;&lt;the-current-browser-url&gt;&#x60;, or initiate a refresh login flow otherwise. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. &#x60;security_identity_mismatch&#x60;: The flow was interrupted with &#x60;session_refresh_required&#x60; but apparently some other identity logged in instead. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! &#x60;browser_location_change_required&#x60;: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
3204
- # @param flow [String] 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;).
3205
- # @param submit_self_service_settings_flow_body [SubmitSelfServiceSettingsFlowBody]
3206
- # @param [Hash] opts the optional parameters
3207
- # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
3208
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3209
- # @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
3210
- def submit_self_service_settings_flow_with_http_info(flow, submit_self_service_settings_flow_body, opts = {})
3211
- if @api_client.config.debugging
3212
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_settings_flow ...'
3213
- end
3214
- # verify the required parameter 'flow' is set
3215
- if @api_client.config.client_side_validation && flow.nil?
3216
- fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_settings_flow"
3217
- end
3218
- # verify the required parameter 'submit_self_service_settings_flow_body' is set
3219
- if @api_client.config.client_side_validation && submit_self_service_settings_flow_body.nil?
3220
- fail ArgumentError, "Missing the required parameter 'submit_self_service_settings_flow_body' when calling V0alpha2Api.submit_self_service_settings_flow"
3221
- end
3222
- # resource path
3223
- local_var_path = '/self-service/settings'
3224
-
3225
- # query parameters
3226
- query_params = opts[:query_params] || {}
3227
- query_params[:'flow'] = flow
3228
-
3229
- # header parameters
3230
- header_params = opts[:header_params] || {}
3231
- # HTTP header 'Accept' (if needed)
3232
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3233
- # HTTP header 'Content-Type'
3234
- content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
3235
- if !content_type.nil?
3236
- header_params['Content-Type'] = content_type
3237
- end
3238
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
3239
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
3240
-
3241
- # form parameters
3242
- form_params = opts[:form_params] || {}
3243
-
3244
- # http body (model)
3245
- post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_self_service_settings_flow_body)
3246
-
3247
- # return_type
3248
- return_type = opts[:debug_return_type] || 'SelfServiceSettingsFlow'
3249
-
3250
- # auth_names
3251
- auth_names = opts[:debug_auth_names] || []
3252
-
3253
- new_options = opts.merge(
3254
- :operation => :"V0alpha2Api.submit_self_service_settings_flow",
3255
- :header_params => header_params,
3256
- :query_params => query_params,
3257
- :form_params => form_params,
3258
- :body => post_body,
3259
- :auth_names => auth_names,
3260
- :return_type => return_type
3261
- )
3262
-
3263
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3264
- if @api_client.config.debugging
3265
- @api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_settings_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3266
- end
3267
- return data, status_code, headers
3268
- end
3269
-
3270
- # # Complete Verification Flow
3271
- # Use this endpoint to complete a verification flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 303 See Other redirect with a fresh verification flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/*` it returns a HTTP 303 See Other redirect to the Verification UI URL with the Verification Flow ID appended. `sent_email` is the success state after `choose_method` when using the `link` 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 `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a verification link\") does not have any API capabilities. The server responds with a HTTP 303 See Other 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).
3272
- # @param flow [String] The Verification Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/verification?flow&#x3D;abcde&#x60;).
3273
- # @param submit_self_service_verification_flow_body [SubmitSelfServiceVerificationFlowBody]
3274
- # @param [Hash] opts the optional parameters
3275
- # @option opts [String] :token Verification Token The verification token which completes the verification request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
3276
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3277
- # @return [SelfServiceVerificationFlow]
3278
- def submit_self_service_verification_flow(flow, submit_self_service_verification_flow_body, opts = {})
3279
- data, _status_code, _headers = submit_self_service_verification_flow_with_http_info(flow, submit_self_service_verification_flow_body, opts)
3280
- data
3281
- end
3282
-
3283
- # # Complete Verification Flow
3284
- # 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 and Browser clients with HTTP Header &#x60;Accept: application/json&#x60; it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 303 See Other redirect with a fresh verification flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header &#x60;Accept&#x60; or with &#x60;Accept: text/*&#x60; it returns a HTTP 303 See Other 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 303 See Other 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).
3285
- # @param flow [String] The Verification Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/verification?flow&#x3D;abcde&#x60;).
3286
- # @param submit_self_service_verification_flow_body [SubmitSelfServiceVerificationFlowBody]
3287
- # @param [Hash] opts the optional parameters
3288
- # @option opts [String] :token Verification Token The verification token which completes the verification request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
3289
- # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
3290
- # @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
3291
- def submit_self_service_verification_flow_with_http_info(flow, submit_self_service_verification_flow_body, opts = {})
3292
- if @api_client.config.debugging
3293
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_verification_flow ...'
3294
- end
3295
- # verify the required parameter 'flow' is set
3296
- if @api_client.config.client_side_validation && flow.nil?
3297
- fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_verification_flow"
3298
- end
3299
- # verify the required parameter 'submit_self_service_verification_flow_body' is set
3300
- if @api_client.config.client_side_validation && submit_self_service_verification_flow_body.nil?
3301
- fail ArgumentError, "Missing the required parameter 'submit_self_service_verification_flow_body' when calling V0alpha2Api.submit_self_service_verification_flow"
3302
- end
3303
- # resource path
3304
- local_var_path = '/self-service/verification'
3305
-
3306
- # query parameters
3307
- query_params = opts[:query_params] || {}
3308
- query_params[:'flow'] = flow
3309
- query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil?
3310
-
3311
- # header parameters
3312
- header_params = opts[:header_params] || {}
3313
- # HTTP header 'Accept' (if needed)
3314
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3315
- # HTTP header 'Content-Type'
3316
- content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
3317
- if !content_type.nil?
3318
- header_params['Content-Type'] = content_type
3319
- end
3320
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
3321
-
3322
- # form parameters
3323
- form_params = opts[:form_params] || {}
3324
-
3325
- # http body (model)
3326
- post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_self_service_verification_flow_body)
3327
-
3328
- # return_type
3329
- return_type = opts[:debug_return_type] || 'SelfServiceVerificationFlow'
3330
-
3331
- # auth_names
3332
- auth_names = opts[:debug_auth_names] || []
3333
-
3334
- new_options = opts.merge(
3335
- :operation => :"V0alpha2Api.submit_self_service_verification_flow",
3336
- :header_params => header_params,
3337
- :query_params => query_params,
3338
- :form_params => form_params,
3339
- :body => post_body,
3340
- :auth_names => auth_names,
3341
- :return_type => return_type
3342
- )
3343
-
3344
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3345
- if @api_client.config.debugging
3346
- @api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_verification_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3347
- end
3348
- return data, status_code, headers
3349
- end
3350
-
3351
- # Check Who the Current HTTP Session Belongs To
3352
- # 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 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. 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 `X-Session-Token` header! This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor.
3353
- # @param [Hash] opts the optional parameters
3354
- # @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of &#x60;MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj&#x60;.
3355
- # @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: &#x60;ory_kratos_session&#x3D;a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f&#x3D;&#x3D;&#x60;. It is ok if more than one cookie are included here as all other cookies will be ignored.
3356
- # @return [Session]
3357
- def to_session(opts = {})
3358
- data, _status_code, _headers = to_session_with_http_info(opts)
3359
- data
3360
- end
3361
-
3362
- # Check Who the Current HTTP Session Belongs To
3363
- # 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. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/protected-endpoint&#39;, async function (req, res) { const session &#x3D; await client.toSession(undefined, req.header(&#39;cookie&#39;)) console.log(session) }) &#x60;&#x60;&#x60; When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: &#x60;&#x60;&#x60;js pseudo-code example ... const session &#x3D; await client.toSession(\&quot;the-session-token\&quot;) console.log(session) &#x60;&#x60;&#x60; Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. 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! This endpoint authenticates users by checking if the &#x60;Cookie&#x60; HTTP header was set containing an Ory Kratos Session Cookie; if the &#x60;Authorization: bearer &lt;ory-session-token&gt;&#x60; HTTP header was set with a valid Ory Kratos Session Token; if the &#x60;X-Session-Token&#x60; HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The &#x60;error.id&#x60; can be one of: &#x60;session_inactive&#x60;: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). &#x60;session_aal2_required&#x60;: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor.
3364
- # @param [Hash] opts the optional parameters
3365
- # @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of &#x60;MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj&#x60;.
3366
- # @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: &#x60;ory_kratos_session&#x3D;a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f&#x3D;&#x3D;&#x60;. It is ok if more than one cookie are included here as all other cookies will be ignored.
3367
- # @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
3368
- def to_session_with_http_info(opts = {})
3369
- if @api_client.config.debugging
3370
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.to_session ...'
3371
- end
3372
- # resource path
3373
- local_var_path = '/sessions/whoami'
3374
-
3375
- # query parameters
3376
- query_params = opts[:query_params] || {}
3377
-
3378
- # header parameters
3379
- header_params = opts[:header_params] || {}
3380
- # HTTP header 'Accept' (if needed)
3381
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3382
- header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
3383
- header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
3384
-
3385
- # form parameters
3386
- form_params = opts[:form_params] || {}
3387
-
3388
- # http body (model)
3389
- post_body = opts[:debug_body]
3390
-
3391
- # return_type
3392
- return_type = opts[:debug_return_type] || 'Session'
3393
-
3394
- # auth_names
3395
- auth_names = opts[:debug_auth_names] || []
3396
-
3397
- new_options = opts.merge(
3398
- :operation => :"V0alpha2Api.to_session",
3399
- :header_params => header_params,
3400
- :query_params => query_params,
3401
- :form_params => form_params,
3402
- :body => post_body,
3403
- :auth_names => auth_names,
3404
- :return_type => return_type
3405
- )
3406
-
3407
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3408
- if @api_client.config.debugging
3409
- @api_client.config.logger.debug "API called: V0alpha2Api#to_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3410
- end
3411
- return data, status_code, headers
3412
- end
3413
-
3414
- # # Update an Ory Cloud Project Configuration
3415
- # This endpoints allows you to update the Ory Cloud Project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service!
3416
- # @param project_id [String] Project ID The project&#39;s ID.
3417
- # @param [Hash] opts the optional parameters
3418
- # @option opts [UpdateProject] :update_project
3419
- # @return [SuccessfulProjectUpdate]
3420
- def update_project(project_id, opts = {})
3421
- data, _status_code, _headers = update_project_with_http_info(project_id, opts)
3422
- data
3423
- end
3424
-
3425
- # # Update an Ory Cloud Project Configuration
3426
- # This endpoints allows you to update the Ory Cloud Project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the &#x60;version&#x60; key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service&#39;s configuration will completely override your current configuration for that service!
3427
- # @param project_id [String] Project ID The project&#39;s ID.
3428
- # @param [Hash] opts the optional parameters
3429
- # @option opts [UpdateProject] :update_project
3430
- # @return [Array<(SuccessfulProjectUpdate, Integer, Hash)>] SuccessfulProjectUpdate data, response status code and response headers
3431
- def update_project_with_http_info(project_id, opts = {})
3432
- if @api_client.config.debugging
3433
- @api_client.config.logger.debug 'Calling API: V0alpha2Api.update_project ...'
3434
- end
3435
- # verify the required parameter 'project_id' is set
3436
- if @api_client.config.client_side_validation && project_id.nil?
3437
- fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.update_project"
3438
- end
3439
- # resource path
3440
- local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
3441
-
3442
- # query parameters
3443
- query_params = opts[:query_params] || {}
3444
-
3445
- # header parameters
3446
- header_params = opts[:header_params] || {}
3447
- # HTTP header 'Accept' (if needed)
3448
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3449
- # HTTP header 'Content-Type'
3450
- content_type = @api_client.select_header_content_type(['application/json'])
3451
- if !content_type.nil?
3452
- header_params['Content-Type'] = content_type
3453
- end
3454
-
3455
- # form parameters
3456
- form_params = opts[:form_params] || {}
3457
-
3458
- # http body (model)
3459
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_project'])
3460
-
3461
- # return_type
3462
- return_type = opts[:debug_return_type] || 'SuccessfulProjectUpdate'
3463
-
3464
- # auth_names
3465
- auth_names = opts[:debug_auth_names] || ['oryAccessToken']
3466
-
3467
- new_options = opts.merge(
3468
- :operation => :"V0alpha2Api.update_project",
3469
- :header_params => header_params,
3470
- :query_params => query_params,
3471
- :form_params => form_params,
3472
- :body => post_body,
3473
- :auth_names => auth_names,
3474
- :return_type => return_type
3475
- )
3476
-
3477
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3478
- if @api_client.config.debugging
3479
- @api_client.config.logger.debug "API called: V0alpha2Api#update_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3480
- end
3481
- return data, status_code, headers
3482
- end
3483
- end
3484
- end